diff --git a/eng/Packages.Data.props b/eng/Packages.Data.props index 98991752cb78..81c6a94c9767 100644 --- a/eng/Packages.Data.props +++ b/eng/Packages.Data.props @@ -203,7 +203,7 @@ All should have PrivateAssets="All" set so they don't become package dependencies --> - + diff --git a/eng/emitter-package-lock.json b/eng/emitter-package-lock.json index ca6485281e08..609bf9e79f92 100644 --- a/eng/emitter-package-lock.json +++ b/eng/emitter-package-lock.json @@ -5,7 +5,7 @@ "packages": { "": { "dependencies": { - "@azure-tools/typespec-csharp": "0.2.0-beta.20240217.1" + "@azure-tools/typespec-csharp": "https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-js-test-autorest@local/npm/registry/@azure-tools/typespec-csharp/-/typespec-csharp-0.2.0-alpha.20240218.1.tgz" }, "devDependencies": { "@azure-tools/typespec-azure-core": "0.38.0", @@ -17,9 +17,9 @@ } }, "node_modules/@autorest/csharp": { - "version": "3.0.0-beta.20240217.1", - "resolved": "https://registry.npmjs.org/@autorest/csharp/-/csharp-3.0.0-beta.20240217.1.tgz", - "integrity": "sha512-Owg4/QRC4qei6+B5K2JAziMoQnHN2A68s+I2cxggYzILYqS3lRtofGmkMoal7m7+wERrKHv/hbCweUyiAgNvjw==" + "version": "3.0.0-alpha.20240218.1", + "resolved": "https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-js-test-autorest@local/npm/registry/@autorest/csharp/-/csharp-3.0.0-alpha.20240218.1.tgz", + "integrity": "sha512-9V4gP7iZ5S+FpmvaM5ynRDqVuVVDHEG4TrIh0lK2hbq3emnHwV7YrAOOezVOq0+ux6itOLXUJ4dl7F1L9oXhHA==" }, "node_modules/@azure-tools/typespec-azure-core": { "version": "0.38.0", @@ -55,11 +55,12 @@ } }, "node_modules/@azure-tools/typespec-csharp": { - "version": "0.2.0-beta.20240217.1", - "resolved": "https://registry.npmjs.org/@azure-tools/typespec-csharp/-/typespec-csharp-0.2.0-beta.20240217.1.tgz", - "integrity": "sha512-z7EwITYZUioaWhKdAUM0jOTiXoUuuwCbsWxG0fxBoHY95nMJnZDj3i+Jl5vRp8dztAkIi7OpLXgUCDEAzCTUXQ==", + "version": "0.2.0-alpha.20240218.1", + "resolved": "https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-js-test-autorest@local/npm/registry/@azure-tools/typespec-csharp/-/typespec-csharp-0.2.0-alpha.20240218.1.tgz", + "integrity": "sha512-6Wor71jvb93XaC/kryGwH6vaWLDUZDcF1AoGQFxcuGUvOkkthnvFLLj/P8WdYv/ThWAreoX3Mp/chJykTjnUXA==", + "license": "MIT", "dependencies": { - "@autorest/csharp": "3.0.0-beta.20240217.1", + "@autorest/csharp": "3.0.0-alpha.20240218.1", "json-serialize-refs": "0.1.0-0", "winston": "^3.8.2" }, diff --git a/eng/emitter-package.json b/eng/emitter-package.json index 7f837fbe20ba..3c8e1f0dec06 100644 --- a/eng/emitter-package.json +++ b/eng/emitter-package.json @@ -1,14 +1,17 @@ { "main": "dist/src/index.js", "dependencies": { - "@azure-tools/typespec-csharp": "0.2.0-beta.20240217.1" + "@azure-tools/typespec-csharp": "https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-js-test-autorest@local/npm/registry/@azure-tools/typespec-csharp/-/typespec-csharp-0.2.0-alpha.20240218.1.tgz" }, "devDependencies": { - "@typespec/http": "0.52.1", - "@typespec/compiler": "0.52.0", - "@typespec/versioning": "0.52.0", "@azure-tools/typespec-azure-core": "0.38.0", + "@typespec/rest": "0.52.0", + "@typespec/compiler": "0.52.0", "@azure-tools/typespec-client-generator-core": "0.38.0", - "@typespec/rest": "0.52.0" + "@typespec/http": "0.52.1", + "@typespec/versioning": "0.52.0" + }, + "overrides": { + "@autorest/csharp": "https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-js-test-autorest@local/npm/registry/@autorest/csharp/-/csharp-3.0.0-alpha.20240218.1.tgz" } } diff --git a/sdk/advisor/Azure.ResourceManager.Advisor/src/Generated/LongRunningOperation/AdvisorArmOperation.cs b/sdk/advisor/Azure.ResourceManager.Advisor/src/Generated/LongRunningOperation/AdvisorArmOperation.cs index 8ecfe60dc2d7..9642c1898360 100644 --- a/sdk/advisor/Azure.ResourceManager.Advisor/src/Generated/LongRunningOperation/AdvisorArmOperation.cs +++ b/sdk/advisor/Azure.ResourceManager.Advisor/src/Generated/LongRunningOperation/AdvisorArmOperation.cs @@ -20,21 +20,24 @@ internal class AdvisorArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of AdvisorArmOperation for mocking. protected AdvisorArmOperation() { } - internal AdvisorArmOperation(Response response) + internal AdvisorArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal AdvisorArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "AdvisorArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal AdvisorArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline p public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/advisor/Azure.ResourceManager.Advisor/src/Generated/LongRunningOperation/AdvisorArmOperationOfT.cs b/sdk/advisor/Azure.ResourceManager.Advisor/src/Generated/LongRunningOperation/AdvisorArmOperationOfT.cs index c6d1089b697d..1d4cd7efdb81 100644 --- a/sdk/advisor/Azure.ResourceManager.Advisor/src/Generated/LongRunningOperation/AdvisorArmOperationOfT.cs +++ b/sdk/advisor/Azure.ResourceManager.Advisor/src/Generated/LongRunningOperation/AdvisorArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class AdvisorArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of AdvisorArmOperation for mocking. protected AdvisorArmOperation() { } - internal AdvisorArmOperation(Response response) + internal AdvisorArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal AdvisorArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "AdvisorArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal AdvisorArmOperation(IOperationSource source, ClientDiagnostics clien public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/advisor/Azure.ResourceManager.Advisor/src/Generated/Models/MetadataEntityResource.Serialization.cs b/sdk/advisor/Azure.ResourceManager.Advisor/src/Generated/Models/MetadataEntityResource.Serialization.cs new file mode 100644 index 000000000000..4a6e155a7f3a --- /dev/null +++ b/sdk/advisor/Azure.ResourceManager.Advisor/src/Generated/Models/MetadataEntityResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Advisor +{ + public partial class MetadataEntityResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MetadataEntityData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MetadataEntityData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/advisor/Azure.ResourceManager.Advisor/src/Generated/Models/ResourceRecommendationBaseResource.Serialization.cs b/sdk/advisor/Azure.ResourceManager.Advisor/src/Generated/Models/ResourceRecommendationBaseResource.Serialization.cs new file mode 100644 index 000000000000..ae665ceecad2 --- /dev/null +++ b/sdk/advisor/Azure.ResourceManager.Advisor/src/Generated/Models/ResourceRecommendationBaseResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Advisor +{ + public partial class ResourceRecommendationBaseResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ResourceRecommendationBaseData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ResourceRecommendationBaseData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/advisor/Azure.ResourceManager.Advisor/src/Generated/Models/SuppressionContractResource.Serialization.cs b/sdk/advisor/Azure.ResourceManager.Advisor/src/Generated/Models/SuppressionContractResource.Serialization.cs new file mode 100644 index 000000000000..2824045a4339 --- /dev/null +++ b/sdk/advisor/Azure.ResourceManager.Advisor/src/Generated/Models/SuppressionContractResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Advisor +{ + public partial class SuppressionContractResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SuppressionContractData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SuppressionContractData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/advisor/Azure.ResourceManager.Advisor/src/Generated/RestOperations/ConfigurationsRestOperations.cs b/sdk/advisor/Azure.ResourceManager.Advisor/src/Generated/RestOperations/ConfigurationsRestOperations.cs index 0efb25feae20..886d9e741bf4 100644 --- a/sdk/advisor/Azure.ResourceManager.Advisor/src/Generated/RestOperations/ConfigurationsRestOperations.cs +++ b/sdk/advisor/Azure.ResourceManager.Advisor/src/Generated/RestOperations/ConfigurationsRestOperations.cs @@ -37,6 +37,17 @@ public ConfigurationsRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Advisor/configurations", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,18 @@ public Response ListBySubscription(string subscriptionI } } + internal RequestUriBuilder CreateCreateInSubscriptionRequestUri(string subscriptionId, ConfigurationName configurationName, ConfigData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Advisor/configurations/", false); + uri.AppendPath(configurationName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateInSubscriptionRequest(string subscriptionId, ConfigurationName configurationName, ConfigData data) { var message = _pipeline.CreateMessage(); @@ -182,6 +205,19 @@ public Response CreateInSubscription(string subscriptionId, Configur } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroup) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroup, true); + uri.AppendPath("/providers/Microsoft.Advisor/configurations", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroup) { var message = _pipeline.CreateMessage(); @@ -255,6 +291,20 @@ public Response ListByResourceGroup(string subscription } } + internal RequestUriBuilder CreateCreateInResourceGroupRequestUri(string subscriptionId, string resourceGroup, ConfigurationName configurationName, ConfigData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroup, true); + uri.AppendPath("/providers/Microsoft.Advisor/configurations/", false); + uri.AppendPath(configurationName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateInResourceGroupRequest(string subscriptionId, string resourceGroup, ConfigurationName configurationName, ConfigData data) { var message = _pipeline.CreateMessage(); @@ -339,6 +389,14 @@ public Response CreateInResourceGroup(string subscriptionId, string } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/advisor/Azure.ResourceManager.Advisor/src/Generated/RestOperations/RecommendationMetadataRestOperations.cs b/sdk/advisor/Azure.ResourceManager.Advisor/src/Generated/RestOperations/RecommendationMetadataRestOperations.cs index a25cd8a352d3..616e718e3b0c 100644 --- a/sdk/advisor/Azure.ResourceManager.Advisor/src/Generated/RestOperations/RecommendationMetadataRestOperations.cs +++ b/sdk/advisor/Azure.ResourceManager.Advisor/src/Generated/RestOperations/RecommendationMetadataRestOperations.cs @@ -37,6 +37,16 @@ public RecommendationMetadataRestOperations(HttpPipeline pipeline, string applic _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string name) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Advisor/metadata/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string name) { var message = _pipeline.CreateMessage(); @@ -107,6 +117,15 @@ public Response Get(string name, CancellationToken cancellat } } + internal RequestUriBuilder CreateListRequestUri() + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Advisor/metadata", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest() { var message = _pipeline.CreateMessage(); @@ -162,6 +181,14 @@ public Response List(CancellationToken cancellationTok } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink) { var message = _pipeline.CreateMessage(); diff --git a/sdk/advisor/Azure.ResourceManager.Advisor/src/Generated/RestOperations/RecommendationsRestOperations.cs b/sdk/advisor/Azure.ResourceManager.Advisor/src/Generated/RestOperations/RecommendationsRestOperations.cs index 0040a24de457..08b94ff6bd7b 100644 --- a/sdk/advisor/Azure.ResourceManager.Advisor/src/Generated/RestOperations/RecommendationsRestOperations.cs +++ b/sdk/advisor/Azure.ResourceManager.Advisor/src/Generated/RestOperations/RecommendationsRestOperations.cs @@ -37,6 +37,17 @@ public RecommendationsRestOperations(HttpPipeline pipeline, string applicationId _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGenerateRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Advisor/generateRecommendations", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGenerateRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -94,6 +105,18 @@ public Response Generate(string subscriptionId, CancellationToken cancellationTo } } + internal RequestUriBuilder CreateGetGenerateStatusRequestUri(string subscriptionId, Guid operationId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Advisor/generateRecommendations/", false); + uri.AppendPath(operationId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetGenerateStatusRequest(string subscriptionId, Guid operationId) { var message = _pipeline.CreateMessage(); @@ -156,6 +179,29 @@ public Response GetGenerateStatus(string subscriptionId, Guid operationId, Cance } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string filter, int? top, string skipToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Advisor/recommendations", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string filter, int? top, string skipToken) { var message = _pipeline.CreateMessage(); @@ -241,6 +287,18 @@ public Response List(string subscriptionId } } + internal RequestUriBuilder CreateGetRequestUri(string resourceUri, string recommendationId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceUri, false); + uri.AppendPath("/providers/Microsoft.Advisor/recommendations/", false); + uri.AppendPath(recommendationId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string resourceUri, string recommendationId) { var message = _pipeline.CreateMessage(); @@ -317,6 +375,14 @@ public Response Get(string resourceUri, string r } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string filter, int? top, string skipToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string filter, int? top, string skipToken) { var message = _pipeline.CreateMessage(); diff --git a/sdk/advisor/Azure.ResourceManager.Advisor/src/Generated/RestOperations/SuppressionsRestOperations.cs b/sdk/advisor/Azure.ResourceManager.Advisor/src/Generated/RestOperations/SuppressionsRestOperations.cs index c41441432e97..a7218f96e6d3 100644 --- a/sdk/advisor/Azure.ResourceManager.Advisor/src/Generated/RestOperations/SuppressionsRestOperations.cs +++ b/sdk/advisor/Azure.ResourceManager.Advisor/src/Generated/RestOperations/SuppressionsRestOperations.cs @@ -37,6 +37,20 @@ public SuppressionsRestOperations(HttpPipeline pipeline, string applicationId, U _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string resourceUri, string recommendationId, string name) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceUri, false); + uri.AppendPath("/providers/Microsoft.Advisor/recommendations/", false); + uri.AppendPath(recommendationId, true); + uri.AppendPath("/suppressions/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string resourceUri, string recommendationId, string name) { var message = _pipeline.CreateMessage(); @@ -119,6 +133,20 @@ public Response Get(string resourceUri, string recommen } } + internal RequestUriBuilder CreateCreateRequestUri(string resourceUri, string recommendationId, string name, SuppressionContractData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceUri, false); + uri.AppendPath("/providers/Microsoft.Advisor/recommendations/", false); + uri.AppendPath(recommendationId, true); + uri.AppendPath("/suppressions/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string resourceUri, string recommendationId, string name, SuppressionContractData data) { var message = _pipeline.CreateMessage(); @@ -205,6 +233,20 @@ public Response Create(string resourceUri, string recom } } + internal RequestUriBuilder CreateDeleteRequestUri(string resourceUri, string recommendationId, string name) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceUri, false); + uri.AppendPath("/providers/Microsoft.Advisor/recommendations/", false); + uri.AppendPath(recommendationId, true); + uri.AppendPath("/suppressions/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string resourceUri, string recommendationId, string name) { var message = _pipeline.CreateMessage(); @@ -273,6 +315,25 @@ public Response Delete(string resourceUri, string recommendationId, string name, } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, int? top, string skipToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Advisor/suppressions", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, int? top, string skipToken) { var message = _pipeline.CreateMessage(); @@ -352,6 +413,14 @@ public Response List(string subscriptionId, int? } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, int? top, string skipToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, int? top, string skipToken) { var message = _pipeline.CreateMessage(); diff --git a/sdk/advisor/Azure.ResourceManager.Advisor/src/Generated/SuppressionContractCollection.cs b/sdk/advisor/Azure.ResourceManager.Advisor/src/Generated/SuppressionContractCollection.cs index 48d4d704f1c5..8d388614279e 100644 --- a/sdk/advisor/Azure.ResourceManager.Advisor/src/Generated/SuppressionContractCollection.cs +++ b/sdk/advisor/Azure.ResourceManager.Advisor/src/Generated/SuppressionContractCollection.cs @@ -87,7 +87,9 @@ public virtual async Task> CreateOrUpd try { var response = await _suppressionContractSuppressionsRestClient.CreateAsync(Id.Parent, Id.Name, name, data, cancellationToken).ConfigureAwait(false); - var operation = new AdvisorArmOperation(Response.FromValue(new SuppressionContractResource(Client, response), response.GetRawResponse())); + var uri = _suppressionContractSuppressionsRestClient.CreateCreateRequestUri(Id.Parent, Id.Name, name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AdvisorArmOperation(Response.FromValue(new SuppressionContractResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -136,7 +138,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUnti try { var response = _suppressionContractSuppressionsRestClient.Create(Id.Parent, Id.Name, name, data, cancellationToken); - var operation = new AdvisorArmOperation(Response.FromValue(new SuppressionContractResource(Client, response), response.GetRawResponse())); + var uri = _suppressionContractSuppressionsRestClient.CreateCreateRequestUri(Id.Parent, Id.Name, name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AdvisorArmOperation(Response.FromValue(new SuppressionContractResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/advisor/Azure.ResourceManager.Advisor/src/Generated/SuppressionContractResource.cs b/sdk/advisor/Azure.ResourceManager.Advisor/src/Generated/SuppressionContractResource.cs index e5d7e185443b..07653af3a254 100644 --- a/sdk/advisor/Azure.ResourceManager.Advisor/src/Generated/SuppressionContractResource.cs +++ b/sdk/advisor/Azure.ResourceManager.Advisor/src/Generated/SuppressionContractResource.cs @@ -199,7 +199,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _suppressionContractSuppressionsRestClient.DeleteAsync(Id.Parent.Parent, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new AdvisorArmOperation(response); + var uri = _suppressionContractSuppressionsRestClient.CreateDeleteRequestUri(Id.Parent.Parent, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AdvisorArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -241,7 +243,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _suppressionContractSuppressionsRestClient.Delete(Id.Parent.Parent, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new AdvisorArmOperation(response); + var uri = _suppressionContractSuppressionsRestClient.CreateDeleteRequestUri(Id.Parent.Parent, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AdvisorArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -287,7 +291,9 @@ public virtual async Task> UpdateAsync try { var response = await _suppressionContractSuppressionsRestClient.CreateAsync(Id.Parent.Parent, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new AdvisorArmOperation(Response.FromValue(new SuppressionContractResource(Client, response), response.GetRawResponse())); + var uri = _suppressionContractSuppressionsRestClient.CreateCreateRequestUri(Id.Parent.Parent, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AdvisorArmOperation(Response.FromValue(new SuppressionContractResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -333,7 +339,9 @@ public virtual ArmOperation Update(WaitUntil waitUn try { var response = _suppressionContractSuppressionsRestClient.Create(Id.Parent.Parent, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new AdvisorArmOperation(Response.FromValue(new SuppressionContractResource(Client, response), response.GetRawResponse())); + var uri = _suppressionContractSuppressionsRestClient.CreateCreateRequestUri(Id.Parent.Parent, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AdvisorArmOperation(Response.FromValue(new SuppressionContractResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/src/Generated/AgFoodPlatformPrivateEndpointConnectionCollection.cs b/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/src/Generated/AgFoodPlatformPrivateEndpointConnectionCollection.cs index e326fc4dd695..5a34338417a8 100644 --- a/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/src/Generated/AgFoodPlatformPrivateEndpointConnectionCollection.cs +++ b/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/src/Generated/AgFoodPlatformPrivateEndpointConnectionCollection.cs @@ -90,7 +90,9 @@ public virtual async Task(Response.FromValue(new AgFoodPlatformPrivateEndpointConnectionResource(Client, response), response.GetRawResponse())); + var uri = _agFoodPlatformPrivateEndpointConnectionPrivateEndpointConnectionsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, privateEndpointConnectionName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AgFoodPlatformArmOperation(Response.FromValue(new AgFoodPlatformPrivateEndpointConnectionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation Cre try { var response = _agFoodPlatformPrivateEndpointConnectionPrivateEndpointConnectionsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, privateEndpointConnectionName, data, cancellationToken); - var operation = new AgFoodPlatformArmOperation(Response.FromValue(new AgFoodPlatformPrivateEndpointConnectionResource(Client, response), response.GetRawResponse())); + var uri = _agFoodPlatformPrivateEndpointConnectionPrivateEndpointConnectionsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, privateEndpointConnectionName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AgFoodPlatformArmOperation(Response.FromValue(new AgFoodPlatformPrivateEndpointConnectionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/src/Generated/AgFoodPlatformPrivateEndpointConnectionResource.cs b/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/src/Generated/AgFoodPlatformPrivateEndpointConnectionResource.cs index 4536d1fdaf41..eccc29f14a96 100644 --- a/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/src/Generated/AgFoodPlatformPrivateEndpointConnectionResource.cs +++ b/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/src/Generated/AgFoodPlatformPrivateEndpointConnectionResource.cs @@ -288,7 +288,9 @@ public virtual async Task(Response.FromValue(new AgFoodPlatformPrivateEndpointConnectionResource(Client, response), response.GetRawResponse())); + var uri = _agFoodPlatformPrivateEndpointConnectionPrivateEndpointConnectionsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AgFoodPlatformArmOperation(Response.FromValue(new AgFoodPlatformPrivateEndpointConnectionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -334,7 +336,9 @@ public virtual ArmOperation Upd try { var response = _agFoodPlatformPrivateEndpointConnectionPrivateEndpointConnectionsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new AgFoodPlatformArmOperation(Response.FromValue(new AgFoodPlatformPrivateEndpointConnectionResource(Client, response), response.GetRawResponse())); + var uri = _agFoodPlatformPrivateEndpointConnectionPrivateEndpointConnectionsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AgFoodPlatformArmOperation(Response.FromValue(new AgFoodPlatformPrivateEndpointConnectionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/src/Generated/ExtensionCollection.cs b/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/src/Generated/ExtensionCollection.cs index b83b2e015dda..0fa913e8e536 100644 --- a/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/src/Generated/ExtensionCollection.cs +++ b/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/src/Generated/ExtensionCollection.cs @@ -88,7 +88,9 @@ public virtual async Task> CreateOrUpdateAsync(W try { var response = await _extensionRestClient.CreateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, extensionId, cancellationToken).ConfigureAwait(false); - var operation = new AgFoodPlatformArmOperation(Response.FromValue(new ExtensionResource(Client, response), response.GetRawResponse())); + var uri = _extensionRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, extensionId); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AgFoodPlatformArmOperation(Response.FromValue(new ExtensionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -135,7 +137,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUnti try { var response = _extensionRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, extensionId, cancellationToken); - var operation = new AgFoodPlatformArmOperation(Response.FromValue(new ExtensionResource(Client, response), response.GetRawResponse())); + var uri = _extensionRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, extensionId); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AgFoodPlatformArmOperation(Response.FromValue(new ExtensionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/src/Generated/ExtensionResource.cs b/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/src/Generated/ExtensionResource.cs index 96a5ae8e36f2..da6b511eb8d6 100644 --- a/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/src/Generated/ExtensionResource.cs +++ b/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/src/Generated/ExtensionResource.cs @@ -200,7 +200,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _extensionRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new AgFoodPlatformArmOperation(response); + var uri = _extensionRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AgFoodPlatformArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -242,7 +244,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _extensionRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new AgFoodPlatformArmOperation(response); + var uri = _extensionRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AgFoodPlatformArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/src/Generated/FarmBeatCollection.cs b/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/src/Generated/FarmBeatCollection.cs index 019c5ac0f549..2f83595bf9a4 100644 --- a/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/src/Generated/FarmBeatCollection.cs +++ b/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/src/Generated/FarmBeatCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> CreateOrUpdateAsync(Wa try { var response = await _farmBeatFarmBeatsModelsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, farmBeatsResourceName, data, cancellationToken).ConfigureAwait(false); - var operation = new AgFoodPlatformArmOperation(Response.FromValue(new FarmBeatResource(Client, response), response.GetRawResponse())); + var uri = _farmBeatFarmBeatsModelsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, farmBeatsResourceName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AgFoodPlatformArmOperation(Response.FromValue(new FarmBeatResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -140,7 +142,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil try { var response = _farmBeatFarmBeatsModelsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, farmBeatsResourceName, data, cancellationToken); - var operation = new AgFoodPlatformArmOperation(Response.FromValue(new FarmBeatResource(Client, response), response.GetRawResponse())); + var uri = _farmBeatFarmBeatsModelsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, farmBeatsResourceName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AgFoodPlatformArmOperation(Response.FromValue(new FarmBeatResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/src/Generated/FarmBeatResource.cs b/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/src/Generated/FarmBeatResource.cs index c87acc74dd9b..8cd397d7f0ea 100644 --- a/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/src/Generated/FarmBeatResource.cs +++ b/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/src/Generated/FarmBeatResource.cs @@ -409,7 +409,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _farmBeatFarmBeatsModelsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new AgFoodPlatformArmOperation(response); + var uri = _farmBeatFarmBeatsModelsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AgFoodPlatformArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -451,7 +453,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _farmBeatFarmBeatsModelsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); - var operation = new AgFoodPlatformArmOperation(response); + var uri = _farmBeatFarmBeatsModelsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AgFoodPlatformArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/src/Generated/LongRunningOperation/AgFoodPlatformArmOperation.cs b/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/src/Generated/LongRunningOperation/AgFoodPlatformArmOperation.cs index 7e11c4b20b2d..b33f04827183 100644 --- a/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/src/Generated/LongRunningOperation/AgFoodPlatformArmOperation.cs +++ b/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/src/Generated/LongRunningOperation/AgFoodPlatformArmOperation.cs @@ -20,21 +20,24 @@ internal class AgFoodPlatformArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of AgFoodPlatformArmOperation for mocking. protected AgFoodPlatformArmOperation() { } - internal AgFoodPlatformArmOperation(Response response) + internal AgFoodPlatformArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal AgFoodPlatformArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "AgFoodPlatformArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal AgFoodPlatformArmOperation(ClientDiagnostics clientDiagnostics, HttpPip public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/src/Generated/LongRunningOperation/AgFoodPlatformArmOperationOfT.cs b/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/src/Generated/LongRunningOperation/AgFoodPlatformArmOperationOfT.cs index 624e3758fa9a..f2fff0f6c076 100644 --- a/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/src/Generated/LongRunningOperation/AgFoodPlatformArmOperationOfT.cs +++ b/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/src/Generated/LongRunningOperation/AgFoodPlatformArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class AgFoodPlatformArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of AgFoodPlatformArmOperation for mocking. protected AgFoodPlatformArmOperation() { } - internal AgFoodPlatformArmOperation(Response response) + internal AgFoodPlatformArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal AgFoodPlatformArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "AgFoodPlatformArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal AgFoodPlatformArmOperation(IOperationSource source, ClientDiagnostic public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/src/Generated/Models/AgFoodPlatformPrivateEndpointConnectionResource.Serialization.cs b/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/src/Generated/Models/AgFoodPlatformPrivateEndpointConnectionResource.Serialization.cs new file mode 100644 index 000000000000..fd251b9c90ff --- /dev/null +++ b/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/src/Generated/Models/AgFoodPlatformPrivateEndpointConnectionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AgFoodPlatform +{ + public partial class AgFoodPlatformPrivateEndpointConnectionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + AgFoodPlatformPrivateEndpointConnectionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + AgFoodPlatformPrivateEndpointConnectionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/src/Generated/Models/AgFoodPlatformPrivateLinkResource.Serialization.cs b/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/src/Generated/Models/AgFoodPlatformPrivateLinkResource.Serialization.cs new file mode 100644 index 000000000000..670d76bbcc70 --- /dev/null +++ b/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/src/Generated/Models/AgFoodPlatformPrivateLinkResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AgFoodPlatform +{ + public partial class AgFoodPlatformPrivateLinkResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + AgFoodPlatformPrivateLinkResourceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + AgFoodPlatformPrivateLinkResourceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/src/Generated/Models/ExtensionResource.Serialization.cs b/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/src/Generated/Models/ExtensionResource.Serialization.cs new file mode 100644 index 000000000000..6eda33a0c071 --- /dev/null +++ b/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/src/Generated/Models/ExtensionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AgFoodPlatform +{ + public partial class ExtensionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ExtensionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ExtensionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/src/Generated/Models/FarmBeatResource.Serialization.cs b/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/src/Generated/Models/FarmBeatResource.Serialization.cs new file mode 100644 index 000000000000..77e4616d36ca --- /dev/null +++ b/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/src/Generated/Models/FarmBeatResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AgFoodPlatform +{ + public partial class FarmBeatResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + FarmBeatData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + FarmBeatData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/src/Generated/Models/FarmBeatsExtensionResource.Serialization.cs b/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/src/Generated/Models/FarmBeatsExtensionResource.Serialization.cs new file mode 100644 index 000000000000..cdc7213e6301 --- /dev/null +++ b/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/src/Generated/Models/FarmBeatsExtensionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AgFoodPlatform +{ + public partial class FarmBeatsExtensionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + FarmBeatsExtensionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + FarmBeatsExtensionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/src/Generated/RestOperations/ExtensionsRestOperations.cs b/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/src/Generated/RestOperations/ExtensionsRestOperations.cs index 861df4831638..5bd582ebb6af 100644 --- a/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/src/Generated/RestOperations/ExtensionsRestOperations.cs +++ b/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/src/Generated/RestOperations/ExtensionsRestOperations.cs @@ -38,6 +38,22 @@ public ExtensionsRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string farmBeatsResourceName, string extensionId) + { + 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.AgFoodPlatform/farmBeats/", false); + uri.AppendPath(farmBeatsResourceName, true); + uri.AppendPath("/extensions/", false); + uri.AppendPath(extensionId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string farmBeatsResourceName, string extensionId) { var message = _pipeline.CreateMessage(); @@ -122,6 +138,22 @@ public Response Create(string subscriptionId, string resourceGrou } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string farmBeatsResourceName, string extensionId) + { + 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.AgFoodPlatform/farmBeats/", false); + uri.AppendPath(farmBeatsResourceName, true); + uri.AppendPath("/extensions/", false); + uri.AppendPath(extensionId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string farmBeatsResourceName, string extensionId) { var message = _pipeline.CreateMessage(); @@ -210,6 +242,22 @@ public Response Get(string subscriptionId, string resourceGroupNa } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string farmBeatsResourceName, string extensionId) + { + 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.AgFoodPlatform/farmBeats/", false); + uri.AppendPath(farmBeatsResourceName, true); + uri.AppendPath("/extensions/", false); + uri.AppendPath(extensionId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string farmBeatsResourceName, string extensionId) { var message = _pipeline.CreateMessage(); @@ -294,6 +342,22 @@ public Response Update(string subscriptionId, string resourceGrou } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string farmBeatsResourceName, string extensionId) + { + 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.AgFoodPlatform/farmBeats/", false); + uri.AppendPath(farmBeatsResourceName, true); + uri.AppendPath("/extensions/", false); + uri.AppendPath(extensionId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string farmBeatsResourceName, string extensionId) { var message = _pipeline.CreateMessage(); @@ -370,6 +434,43 @@ public Response Delete(string subscriptionId, string resourceGroupName, string f } } + internal RequestUriBuilder CreateListByFarmBeatsRequestUri(string subscriptionId, string resourceGroupName, string farmBeatsResourceName, IEnumerable extensionIds, IEnumerable extensionCategories, int? maxPageSize, string skipToken) + { + 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.AgFoodPlatform/farmBeats/", false); + uri.AppendPath(farmBeatsResourceName, true); + uri.AppendPath("/extensions", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (extensionIds != null && Optional.IsCollectionDefined(extensionIds)) + { + foreach (var param in extensionIds) + { + uri.AppendQuery("extensionIds", param, true); + } + } + if (extensionCategories != null && Optional.IsCollectionDefined(extensionCategories)) + { + foreach (var param in extensionCategories) + { + uri.AppendQuery("extensionCategories", param, true); + } + } + if (maxPageSize != null) + { + uri.AppendQuery("$maxPageSize", maxPageSize.Value, true); + } + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } + return uri; + } + internal HttpMessage CreateListByFarmBeatsRequest(string subscriptionId, string resourceGroupName, string farmBeatsResourceName, IEnumerable extensionIds, IEnumerable extensionCategories, int? maxPageSize, string skipToken) { var message = _pipeline.CreateMessage(); @@ -485,6 +586,14 @@ public Response ListByFarmBeats(string subscriptionId, st } } + internal RequestUriBuilder CreateListByFarmBeatsNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string farmBeatsResourceName, IEnumerable extensionIds, IEnumerable extensionCategories, int? maxPageSize, string skipToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByFarmBeatsNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string farmBeatsResourceName, IEnumerable extensionIds, IEnumerable extensionCategories, int? maxPageSize, string skipToken) { var message = _pipeline.CreateMessage(); diff --git a/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/src/Generated/RestOperations/FarmBeatsExtensionsRestOperations.cs b/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/src/Generated/RestOperations/FarmBeatsExtensionsRestOperations.cs index 031349350458..63d4b79b17fa 100644 --- a/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/src/Generated/RestOperations/FarmBeatsExtensionsRestOperations.cs +++ b/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/src/Generated/RestOperations/FarmBeatsExtensionsRestOperations.cs @@ -38,6 +38,47 @@ public FarmBeatsExtensionsRestOperations(HttpPipeline pipeline, string applicati _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(IEnumerable farmBeatsExtensionIds, IEnumerable farmBeatsExtensionNames, IEnumerable extensionCategories, IEnumerable publisherIds, int? maxPageSize) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.AgFoodPlatform/farmBeatsExtensionDefinitions", false); + if (farmBeatsExtensionIds != null && Optional.IsCollectionDefined(farmBeatsExtensionIds)) + { + foreach (var param in farmBeatsExtensionIds) + { + uri.AppendQuery("farmBeatsExtensionIds", param, true); + } + } + if (farmBeatsExtensionNames != null && Optional.IsCollectionDefined(farmBeatsExtensionNames)) + { + foreach (var param in farmBeatsExtensionNames) + { + uri.AppendQuery("farmBeatsExtensionNames", param, true); + } + } + if (extensionCategories != null && Optional.IsCollectionDefined(extensionCategories)) + { + foreach (var param in extensionCategories) + { + uri.AppendQuery("extensionCategories", param, true); + } + } + if (publisherIds != null && Optional.IsCollectionDefined(publisherIds)) + { + foreach (var param in publisherIds) + { + uri.AppendQuery("publisherIds", param, true); + } + } + if (maxPageSize != null) + { + uri.AppendQuery("$maxPageSize", maxPageSize.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(IEnumerable farmBeatsExtensionIds, IEnumerable farmBeatsExtensionNames, IEnumerable extensionCategories, IEnumerable publisherIds, int? maxPageSize) { var message = _pipeline.CreateMessage(); @@ -141,6 +182,16 @@ public Response List(IEnumerable farmBea } } + internal RequestUriBuilder CreateGetRequestUri(string farmBeatsExtensionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.AgFoodPlatform/farmBeatsExtensionDefinitions/", false); + uri.AppendPath(farmBeatsExtensionId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string farmBeatsExtensionId) { var message = _pipeline.CreateMessage(); @@ -211,6 +262,14 @@ public Response Get(string farmBeatsExtensionId, Cancell } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, IEnumerable farmBeatsExtensionIds, IEnumerable farmBeatsExtensionNames, IEnumerable extensionCategories, IEnumerable publisherIds, int? maxPageSize) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, IEnumerable farmBeatsExtensionIds, IEnumerable farmBeatsExtensionNames, IEnumerable extensionCategories, IEnumerable publisherIds, int? maxPageSize) { var message = _pipeline.CreateMessage(); diff --git a/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/src/Generated/RestOperations/FarmBeatsModelsRestOperations.cs b/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/src/Generated/RestOperations/FarmBeatsModelsRestOperations.cs index 18e6d3871436..e52a6e4127d2 100644 --- a/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/src/Generated/RestOperations/FarmBeatsModelsRestOperations.cs +++ b/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/src/Generated/RestOperations/FarmBeatsModelsRestOperations.cs @@ -37,6 +37,20 @@ public FarmBeatsModelsRestOperations(HttpPipeline pipeline, string applicationId _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string farmBeatsResourceName) + { + 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.AgFoodPlatform/farmBeats/", false); + uri.AppendPath(farmBeatsResourceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string farmBeatsResourceName) { var message = _pipeline.CreateMessage(); @@ -119,6 +133,20 @@ public Response Get(string subscriptionId, string resourceGroupNam } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string farmBeatsResourceName, FarmBeatData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AgFoodPlatform/farmBeats/", false); + uri.AppendPath(farmBeatsResourceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string farmBeatsResourceName, FarmBeatData data) { var message = _pipeline.CreateMessage(); @@ -207,6 +235,20 @@ public Response CreateOrUpdate(string subscriptionId, string resou } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string farmBeatsResourceName, FarmBeatPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AgFoodPlatform/farmBeats/", false); + uri.AppendPath(farmBeatsResourceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string farmBeatsResourceName, FarmBeatPatch patch) { var message = _pipeline.CreateMessage(); @@ -285,6 +327,20 @@ public Response Update(string subscriptionId, string resourceGroupName, string f } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string farmBeatsResourceName) + { + 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.AgFoodPlatform/farmBeats/", false); + uri.AppendPath(farmBeatsResourceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string farmBeatsResourceName) { var message = _pipeline.CreateMessage(); @@ -355,6 +411,25 @@ public Response Delete(string subscriptionId, string resourceGroupName, string f } } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId, int? maxPageSize, string skipToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.AgFoodPlatform/farmBeats", false); + if (maxPageSize != null) + { + uri.AppendQuery("$maxPageSize", maxPageSize.Value, true); + } + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId, int? maxPageSize, string skipToken) { var message = _pipeline.CreateMessage(); @@ -440,6 +515,27 @@ public Response ListBySubscription(string subscriptionId, } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName, int? maxPageSize, string skipToken) + { + 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.AgFoodPlatform/farmBeats", false); + if (maxPageSize != null) + { + uri.AppendQuery("$maxPageSize", maxPageSize.Value, true); + } + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName, int? maxPageSize, string skipToken) { var message = _pipeline.CreateMessage(); @@ -531,6 +627,22 @@ public Response ListByResourceGroup(string subscriptionId } } + internal RequestUriBuilder CreateGetOperationResultRequestUri(string subscriptionId, string resourceGroupName, string farmBeatsResourceName, string operationResultsId) + { + 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.AgFoodPlatform/farmBeats/", false); + uri.AppendPath(farmBeatsResourceName, true); + uri.AppendPath("/operationResults/", false); + uri.AppendPath(operationResultsId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetOperationResultRequest(string subscriptionId, string resourceGroupName, string farmBeatsResourceName, string operationResultsId) { var message = _pipeline.CreateMessage(); @@ -615,6 +727,14 @@ public Response GetOperationResult(string subscriptionId, str } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId, int? maxPageSize, string skipToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId, int? maxPageSize, string skipToken) { var message = _pipeline.CreateMessage(); @@ -693,6 +813,14 @@ public Response ListBySubscriptionNextPage(string nextLin } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, int? maxPageSize, string skipToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, int? maxPageSize, string skipToken) { var message = _pipeline.CreateMessage(); diff --git a/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/src/Generated/RestOperations/LocationsRestOperations.cs b/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/src/Generated/RestOperations/LocationsRestOperations.cs index b22a6a1c7e72..28b75c0745a3 100644 --- a/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/src/Generated/RestOperations/LocationsRestOperations.cs +++ b/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/src/Generated/RestOperations/LocationsRestOperations.cs @@ -37,6 +37,17 @@ public LocationsRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCheckNameAvailabilityRequestUri(string subscriptionId, CheckNameAvailabilityContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.AgFoodPlatform/checkNameAvailability", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCheckNameAvailabilityRequest(string subscriptionId, CheckNameAvailabilityContent content) { var message = _pipeline.CreateMessage(); diff --git a/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs b/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs index cd33ff068b22..4ffa75498b26 100644 --- a/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs +++ b/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs @@ -37,6 +37,22 @@ public PrivateEndpointConnectionsRestOperations(HttpPipeline pipeline, string ap _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string farmBeatsResourceName, string privateEndpointConnectionName, AgFoodPlatformPrivateEndpointConnectionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AgFoodPlatform/farmBeats/", false); + uri.AppendPath(farmBeatsResourceName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string farmBeatsResourceName, string privateEndpointConnectionName, AgFoodPlatformPrivateEndpointConnectionData data) { var message = _pipeline.CreateMessage(); @@ -129,6 +145,22 @@ public Response CreateOrUpdate(stri } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string farmBeatsResourceName, string privateEndpointConnectionName) + { + 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.AgFoodPlatform/farmBeats/", false); + uri.AppendPath(farmBeatsResourceName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string farmBeatsResourceName, string privateEndpointConnectionName) { var message = _pipeline.CreateMessage(); @@ -217,6 +249,22 @@ public Response Get(string subscrip } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string farmBeatsResourceName, string privateEndpointConnectionName) + { + 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.AgFoodPlatform/farmBeats/", false); + uri.AppendPath(farmBeatsResourceName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string farmBeatsResourceName, string privateEndpointConnectionName) { var message = _pipeline.CreateMessage(); @@ -295,6 +343,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string f } } + internal RequestUriBuilder CreateListByResourceRequestUri(string subscriptionId, string resourceGroupName, string farmBeatsResourceName) + { + 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.AgFoodPlatform/farmBeats/", false); + uri.AppendPath(farmBeatsResourceName, true); + uri.AppendPath("/privateEndpointConnections", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceRequest(string subscriptionId, string resourceGroupName, string farmBeatsResourceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs b/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs index 58a2f63260bb..c534bba784d9 100644 --- a/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs +++ b/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs @@ -37,6 +37,21 @@ public PrivateLinkResourcesRestOperations(HttpPipeline pipeline, string applicat _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByResourceRequestUri(string subscriptionId, string resourceGroupName, string farmBeatsResourceName) + { + 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.AgFoodPlatform/farmBeats/", false); + uri.AppendPath(farmBeatsResourceName, true); + uri.AppendPath("/privateLinkResources", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceRequest(string subscriptionId, string resourceGroupName, string farmBeatsResourceName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByResource(stri } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string farmBeatsResourceName, string subResourceName) + { + 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.AgFoodPlatform/farmBeats/", false); + uri.AppendPath(farmBeatsResourceName, true); + uri.AppendPath("/privateLinkResources/", false); + uri.AppendPath(subResourceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string farmBeatsResourceName, string subResourceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement/src/Generated/AlertProcessingRuleCollection.cs b/sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement/src/Generated/AlertProcessingRuleCollection.cs index f4921ba6eff1..003ec9b86338 100644 --- a/sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement/src/Generated/AlertProcessingRuleCollection.cs +++ b/sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement/src/Generated/AlertProcessingRuleCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> CreateOrUpd try { var response = await _alertProcessingRuleRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, alertProcessingRuleName, data, cancellationToken).ConfigureAwait(false); - var operation = new AlertsManagementArmOperation(Response.FromValue(new AlertProcessingRuleResource(Client, response), response.GetRawResponse())); + var uri = _alertProcessingRuleRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, alertProcessingRuleName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AlertsManagementArmOperation(Response.FromValue(new AlertProcessingRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -140,7 +142,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUnti try { var response = _alertProcessingRuleRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, alertProcessingRuleName, data, cancellationToken); - var operation = new AlertsManagementArmOperation(Response.FromValue(new AlertProcessingRuleResource(Client, response), response.GetRawResponse())); + var uri = _alertProcessingRuleRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, alertProcessingRuleName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AlertsManagementArmOperation(Response.FromValue(new AlertProcessingRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement/src/Generated/AlertProcessingRuleResource.cs b/sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement/src/Generated/AlertProcessingRuleResource.cs index 7ecd2c08ee94..19751975fe18 100644 --- a/sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement/src/Generated/AlertProcessingRuleResource.cs +++ b/sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement/src/Generated/AlertProcessingRuleResource.cs @@ -202,7 +202,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _alertProcessingRuleRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new AlertsManagementArmOperation(response); + var uri = _alertProcessingRuleRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AlertsManagementArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -244,7 +246,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _alertProcessingRuleRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); - var operation = new AlertsManagementArmOperation(response); + var uri = _alertProcessingRuleRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AlertsManagementArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement/src/Generated/LongRunningOperation/AlertsManagementArmOperation.cs b/sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement/src/Generated/LongRunningOperation/AlertsManagementArmOperation.cs index bf9a13bf0b17..92ab1c92228e 100644 --- a/sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement/src/Generated/LongRunningOperation/AlertsManagementArmOperation.cs +++ b/sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement/src/Generated/LongRunningOperation/AlertsManagementArmOperation.cs @@ -20,21 +20,24 @@ internal class AlertsManagementArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of AlertsManagementArmOperation for mocking. protected AlertsManagementArmOperation() { } - internal AlertsManagementArmOperation(Response response) + internal AlertsManagementArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal AlertsManagementArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "AlertsManagementArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal AlertsManagementArmOperation(ClientDiagnostics clientDiagnostics, HttpP public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement/src/Generated/LongRunningOperation/AlertsManagementArmOperationOfT.cs b/sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement/src/Generated/LongRunningOperation/AlertsManagementArmOperationOfT.cs index acf8e95a65ef..83893f249ac1 100644 --- a/sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement/src/Generated/LongRunningOperation/AlertsManagementArmOperationOfT.cs +++ b/sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement/src/Generated/LongRunningOperation/AlertsManagementArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class AlertsManagementArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of AlertsManagementArmOperation for mocking. protected AlertsManagementArmOperation() { } - internal AlertsManagementArmOperation(Response response) + internal AlertsManagementArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal AlertsManagementArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "AlertsManagementArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal AlertsManagementArmOperation(IOperationSource source, ClientDiagnost public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement/src/Generated/Models/AlertProcessingRuleResource.Serialization.cs b/sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement/src/Generated/Models/AlertProcessingRuleResource.Serialization.cs new file mode 100644 index 000000000000..31d4a543c504 --- /dev/null +++ b/sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement/src/Generated/Models/AlertProcessingRuleResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AlertsManagement +{ + public partial class AlertProcessingRuleResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + AlertProcessingRuleData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + AlertProcessingRuleData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement/src/Generated/Models/ServiceAlertResource.Serialization.cs b/sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement/src/Generated/Models/ServiceAlertResource.Serialization.cs new file mode 100644 index 000000000000..725de69fec60 --- /dev/null +++ b/sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement/src/Generated/Models/ServiceAlertResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AlertsManagement +{ + public partial class ServiceAlertResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ServiceAlertData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ServiceAlertData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement/src/Generated/Models/SmartGroupResource.Serialization.cs b/sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement/src/Generated/Models/SmartGroupResource.Serialization.cs new file mode 100644 index 000000000000..092bfde6ef4b --- /dev/null +++ b/sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement/src/Generated/Models/SmartGroupResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AlertsManagement +{ + public partial class SmartGroupResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SmartGroupData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SmartGroupData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement/src/Generated/RestOperations/AlertProcessingRulesRestOperations.cs b/sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement/src/Generated/RestOperations/AlertProcessingRulesRestOperations.cs index 8e44bed127a6..2246f1564ecf 100644 --- a/sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement/src/Generated/RestOperations/AlertProcessingRulesRestOperations.cs +++ b/sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement/src/Generated/RestOperations/AlertProcessingRulesRestOperations.cs @@ -37,6 +37,17 @@ public AlertProcessingRulesRestOperations(HttpPipeline pipeline, string applicat _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.AlertsManagement/actionRules", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,19 @@ public Response ListBySubscription(string subscription } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.AlertsManagement/actionRules", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -177,6 +201,20 @@ public Response ListByResourceGroup(string subscriptio } } + internal RequestUriBuilder CreateGetByNameRequestUri(string subscriptionId, string resourceGroupName, string alertProcessingRuleName) + { + 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.AlertsManagement/actionRules/", false); + uri.AppendPath(alertProcessingRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetByNameRequest(string subscriptionId, string resourceGroupName, string alertProcessingRuleName) { var message = _pipeline.CreateMessage(); @@ -259,6 +297,20 @@ public Response GetByName(string subscriptionId, string } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string alertProcessingRuleName, AlertProcessingRuleData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AlertsManagement/actionRules/", false); + uri.AppendPath(alertProcessingRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string alertProcessingRuleName, AlertProcessingRuleData data) { var message = _pipeline.CreateMessage(); @@ -347,6 +399,20 @@ public Response CreateOrUpdate(string subscriptionId, s } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string alertProcessingRuleName) + { + 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.AlertsManagement/actionRules/", false); + uri.AppendPath(alertProcessingRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string alertProcessingRuleName) { var message = _pipeline.CreateMessage(); @@ -417,6 +483,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string alertProcessingRuleName, AlertProcessingRulePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AlertsManagement/actionRules/", false); + uri.AppendPath(alertProcessingRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string alertProcessingRuleName, AlertProcessingRulePatch patch) { var message = _pipeline.CreateMessage(); @@ -503,6 +583,14 @@ public Response Update(string subscriptionId, string re } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -571,6 +659,14 @@ public Response ListBySubscriptionNextPage(string next } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement/src/Generated/RestOperations/AlertsRestOperations.cs b/sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement/src/Generated/RestOperations/AlertsRestOperations.cs index a0b8544851df..5e2ce6f6df61 100644 --- a/sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement/src/Generated/RestOperations/AlertsRestOperations.cs +++ b/sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement/src/Generated/RestOperations/AlertsRestOperations.cs @@ -37,6 +37,16 @@ public AlertsRestOperations(HttpPipeline pipeline, string applicationId, Uri end _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateMetaDataRequestUri(RetrievedInformationIdentifier identifier) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.AlertsManagement/alertsMetaData", false); + uri.AppendQuery("api-version", _apiVersion, true); + uri.AppendQuery("identifier", identifier.ToString(), true); + return uri; + } + internal HttpMessage CreateMetaDataRequest(RetrievedInformationIdentifier identifier) { var message = _pipeline.CreateMessage(); @@ -95,6 +105,85 @@ public Response MetaData(RetrievedInformationIdentifier id } } + internal RequestUriBuilder CreateGetAllRequestUri(string subscriptionId, string targetResource, string targetResourceType, string targetResourceGroup, MonitorServiceSourceForAlert? monitorService, MonitorCondition? monitorCondition, ServiceAlertSeverity? severity, ServiceAlertState? alertState, string alertRule, string smartGroupId, bool? includeContext, bool? includeEgressConfig, long? pageCount, ListServiceAlertsSortByField? sortBy, AlertsManagementQuerySortOrder? sortOrder, string select, TimeRangeFilter? timeRange, string customTimeRange) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.AlertsManagement/alerts", false); + if (targetResource != null) + { + uri.AppendQuery("targetResource", targetResource, true); + } + if (targetResourceType != null) + { + uri.AppendQuery("targetResourceType", targetResourceType, true); + } + if (targetResourceGroup != null) + { + uri.AppendQuery("targetResourceGroup", targetResourceGroup, true); + } + if (monitorService != null) + { + uri.AppendQuery("monitorService", monitorService.Value.ToString(), true); + } + if (monitorCondition != null) + { + uri.AppendQuery("monitorCondition", monitorCondition.Value.ToString(), true); + } + if (severity != null) + { + uri.AppendQuery("severity", severity.Value.ToString(), true); + } + if (alertState != null) + { + uri.AppendQuery("alertState", alertState.Value.ToString(), true); + } + if (alertRule != null) + { + uri.AppendQuery("alertRule", alertRule, true); + } + if (smartGroupId != null) + { + uri.AppendQuery("smartGroupId", smartGroupId, true); + } + if (includeContext != null) + { + uri.AppendQuery("includeContext", includeContext.Value, true); + } + if (includeEgressConfig != null) + { + uri.AppendQuery("includeEgressConfig", includeEgressConfig.Value, true); + } + if (pageCount != null) + { + uri.AppendQuery("pageCount", pageCount.Value, true); + } + if (sortBy != null) + { + uri.AppendQuery("sortBy", sortBy.Value.ToString(), true); + } + if (sortOrder != null) + { + uri.AppendQuery("sortOrder", sortOrder.Value.ToString(), true); + } + if (select != null) + { + uri.AppendQuery("select", select, true); + } + if (timeRange != null) + { + uri.AppendQuery("timeRange", timeRange.Value.ToString(), true); + } + if (customTimeRange != null) + { + uri.AppendQuery("customTimeRange", customTimeRange, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetAllRequest(string subscriptionId, string targetResource, string targetResourceType, string targetResourceGroup, MonitorServiceSourceForAlert? monitorService, MonitorCondition? monitorCondition, ServiceAlertSeverity? severity, ServiceAlertState? alertState, string alertRule, string smartGroupId, bool? includeContext, bool? includeEgressConfig, long? pageCount, ListServiceAlertsSortByField? sortBy, AlertsManagementQuerySortOrder? sortOrder, string select, TimeRangeFilter? timeRange, string customTimeRange) { var message = _pipeline.CreateMessage(); @@ -264,6 +353,18 @@ public Response GetAll(string subscriptionId, string tar } } + internal RequestUriBuilder CreateGetByIdRequestUri(string subscriptionId, Guid alertId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.AlertsManagement/alerts/", false); + uri.AppendPath(alertId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetByIdRequest(string subscriptionId, Guid alertId) { var message = _pipeline.CreateMessage(); @@ -338,6 +439,20 @@ public Response GetById(string subscriptionId, Guid alertId, C } } + internal RequestUriBuilder CreateChangeStateRequestUri(string subscriptionId, Guid alertId, ServiceAlertState newState, string comment) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.AlertsManagement/alerts/", false); + uri.AppendPath(alertId, true); + uri.AppendPath("/changestate", false); + uri.AppendQuery("api-version", _apiVersion, true); + uri.AppendQuery("newState", newState.ToString(), true); + return uri; + } + internal HttpMessage CreateChangeStateRequest(string subscriptionId, Guid alertId, ServiceAlertState newState, string comment) { var message = _pipeline.CreateMessage(); @@ -421,6 +536,19 @@ public Response ChangeState(string subscriptionId, Guid alertI } } + internal RequestUriBuilder CreateGetHistoryRequestUri(string subscriptionId, Guid alertId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.AlertsManagement/alerts/", false); + uri.AppendPath(alertId, true); + uri.AppendPath("/history", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetHistoryRequest(string subscriptionId, Guid alertId) { var message = _pipeline.CreateMessage(); @@ -492,6 +620,62 @@ public Response GetHistory(string subscriptionId, Guid } } + internal RequestUriBuilder CreateGetSummaryRequestUri(string subscriptionId, AlertsSummaryGroupByField groupby, bool? includeSmartGroupsCount, string targetResource, string targetResourceType, string targetResourceGroup, MonitorServiceSourceForAlert? monitorService, MonitorCondition? monitorCondition, ServiceAlertSeverity? severity, ServiceAlertState? alertState, string alertRule, TimeRangeFilter? timeRange, string customTimeRange) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.AlertsManagement/alertsSummary", false); + uri.AppendQuery("groupby", groupby.ToString(), true); + if (includeSmartGroupsCount != null) + { + uri.AppendQuery("includeSmartGroupsCount", includeSmartGroupsCount.Value, true); + } + if (targetResource != null) + { + uri.AppendQuery("targetResource", targetResource, true); + } + if (targetResourceType != null) + { + uri.AppendQuery("targetResourceType", targetResourceType, true); + } + if (targetResourceGroup != null) + { + uri.AppendQuery("targetResourceGroup", targetResourceGroup, true); + } + if (monitorService != null) + { + uri.AppendQuery("monitorService", monitorService.Value.ToString(), true); + } + if (monitorCondition != null) + { + uri.AppendQuery("monitorCondition", monitorCondition.Value.ToString(), true); + } + if (severity != null) + { + uri.AppendQuery("severity", severity.Value.ToString(), true); + } + if (alertState != null) + { + uri.AppendQuery("alertState", alertState.Value.ToString(), true); + } + if (alertRule != null) + { + uri.AppendQuery("alertRule", alertRule, true); + } + if (timeRange != null) + { + uri.AppendQuery("timeRange", timeRange.Value.ToString(), true); + } + if (customTimeRange != null) + { + uri.AppendQuery("customTimeRange", customTimeRange, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetSummaryRequest(string subscriptionId, AlertsSummaryGroupByField groupby, bool? includeSmartGroupsCount, string targetResource, string targetResourceType, string targetResourceGroup, MonitorServiceSourceForAlert? monitorService, MonitorCondition? monitorCondition, ServiceAlertSeverity? severity, ServiceAlertState? alertState, string alertRule, TimeRangeFilter? timeRange, string customTimeRange) { var message = _pipeline.CreateMessage(); @@ -628,6 +812,14 @@ public Response GetSummary(string subscriptionId, AlertsSum } } + internal RequestUriBuilder CreateGetAllNextPageRequestUri(string nextLink, string subscriptionId, string targetResource, string targetResourceType, string targetResourceGroup, MonitorServiceSourceForAlert? monitorService, MonitorCondition? monitorCondition, ServiceAlertSeverity? severity, ServiceAlertState? alertState, string alertRule, string smartGroupId, bool? includeContext, bool? includeEgressConfig, long? pageCount, ListServiceAlertsSortByField? sortBy, AlertsManagementQuerySortOrder? sortOrder, string select, TimeRangeFilter? timeRange, string customTimeRange) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateGetAllNextPageRequest(string nextLink, string subscriptionId, string targetResource, string targetResourceType, string targetResourceGroup, MonitorServiceSourceForAlert? monitorService, MonitorCondition? monitorCondition, ServiceAlertSeverity? severity, ServiceAlertState? alertState, string alertRule, string smartGroupId, bool? includeContext, bool? includeEgressConfig, long? pageCount, ListServiceAlertsSortByField? sortBy, AlertsManagementQuerySortOrder? sortOrder, string select, TimeRangeFilter? timeRange, string customTimeRange) { var message = _pipeline.CreateMessage(); diff --git a/sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement/src/Generated/RestOperations/SmartGroupsRestOperations.cs b/sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement/src/Generated/RestOperations/SmartGroupsRestOperations.cs index dce1966d06f5..783e7f4e0d99 100644 --- a/sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement/src/Generated/RestOperations/SmartGroupsRestOperations.cs +++ b/sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement/src/Generated/RestOperations/SmartGroupsRestOperations.cs @@ -37,6 +37,61 @@ public SmartGroupsRestOperations(HttpPipeline pipeline, string applicationId, Ur _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetAllRequestUri(string subscriptionId, string targetResource, string targetResourceGroup, string targetResourceType, MonitorServiceSourceForAlert? monitorService, MonitorCondition? monitorCondition, ServiceAlertSeverity? severity, ServiceAlertState? smartGroupState, TimeRangeFilter? timeRange, long? pageCount, SmartGroupsSortByField? sortBy, AlertsManagementQuerySortOrder? sortOrder) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.AlertsManagement/smartGroups", false); + if (targetResource != null) + { + uri.AppendQuery("targetResource", targetResource, true); + } + if (targetResourceGroup != null) + { + uri.AppendQuery("targetResourceGroup", targetResourceGroup, true); + } + if (targetResourceType != null) + { + uri.AppendQuery("targetResourceType", targetResourceType, true); + } + if (monitorService != null) + { + uri.AppendQuery("monitorService", monitorService.Value.ToString(), true); + } + if (monitorCondition != null) + { + uri.AppendQuery("monitorCondition", monitorCondition.Value.ToString(), true); + } + if (severity != null) + { + uri.AppendQuery("severity", severity.Value.ToString(), true); + } + if (smartGroupState != null) + { + uri.AppendQuery("smartGroupState", smartGroupState.Value.ToString(), true); + } + if (timeRange != null) + { + uri.AppendQuery("timeRange", timeRange.Value.ToString(), true); + } + if (pageCount != null) + { + uri.AppendQuery("pageCount", pageCount.Value, true); + } + if (sortBy != null) + { + uri.AppendQuery("sortBy", sortBy.Value.ToString(), true); + } + if (sortOrder != null) + { + uri.AppendQuery("sortOrder", sortOrder.Value.ToString(), true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetAllRequest(string subscriptionId, string targetResource, string targetResourceGroup, string targetResourceType, MonitorServiceSourceForAlert? monitorService, MonitorCondition? monitorCondition, ServiceAlertSeverity? severity, ServiceAlertState? smartGroupState, TimeRangeFilter? timeRange, long? pageCount, SmartGroupsSortByField? sortBy, AlertsManagementQuerySortOrder? sortOrder) { var message = _pipeline.CreateMessage(); @@ -170,6 +225,18 @@ public Response GetAll(string subscriptionId, string targetReso } } + internal RequestUriBuilder CreateGetByIdRequestUri(string subscriptionId, Guid smartGroupId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.AlertsManagement/smartGroups/", false); + uri.AppendPath(smartGroupId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetByIdRequest(string subscriptionId, Guid smartGroupId) { var message = _pipeline.CreateMessage(); @@ -244,6 +311,20 @@ public Response GetById(string subscriptionId, Guid smartGroupId } } + internal RequestUriBuilder CreateChangeStateRequestUri(string subscriptionId, Guid smartGroupId, ServiceAlertState newState) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.AlertsManagement/smartGroups/", false); + uri.AppendPath(smartGroupId, true); + uri.AppendPath("/changeState", false); + uri.AppendQuery("api-version", _apiVersion, true); + uri.AppendQuery("newState", newState.ToString(), true); + return uri; + } + internal HttpMessage CreateChangeStateRequest(string subscriptionId, Guid smartGroupId, ServiceAlertState newState) { var message = _pipeline.CreateMessage(); @@ -318,6 +399,19 @@ public Response ChangeState(string subscriptionId, Guid smartGro } } + internal RequestUriBuilder CreateGetHistoryRequestUri(string subscriptionId, Guid smartGroupId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.AlertsManagement/smartGroups/", false); + uri.AppendPath(smartGroupId, true); + uri.AppendPath("/history", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetHistoryRequest(string subscriptionId, Guid smartGroupId) { var message = _pipeline.CreateMessage(); @@ -389,6 +483,14 @@ public Response GetHistory(string subscriptionId, Guid s } } + internal RequestUriBuilder CreateGetAllNextPageRequestUri(string nextLink, string subscriptionId, string targetResource, string targetResourceGroup, string targetResourceType, MonitorServiceSourceForAlert? monitorService, MonitorCondition? monitorCondition, ServiceAlertSeverity? severity, ServiceAlertState? smartGroupState, TimeRangeFilter? timeRange, long? pageCount, SmartGroupsSortByField? sortBy, AlertsManagementQuerySortOrder? sortOrder) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateGetAllNextPageRequest(string nextLink, string subscriptionId, string targetResource, string targetResourceGroup, string targetResourceType, MonitorServiceSourceForAlert? monitorService, MonitorCondition? monitorCondition, ServiceAlertSeverity? severity, ServiceAlertState? smartGroupState, TimeRangeFilter? timeRange, long? pageCount, SmartGroupsSortByField? sortBy, AlertsManagementQuerySortOrder? sortOrder) { var message = _pipeline.CreateMessage(); diff --git a/sdk/analysisservices/Azure.ResourceManager.Analysis/src/Generated/LongRunningOperation/AnalysisArmOperation.cs b/sdk/analysisservices/Azure.ResourceManager.Analysis/src/Generated/LongRunningOperation/AnalysisArmOperation.cs index 7544ca677bf2..a40293ad59f2 100644 --- a/sdk/analysisservices/Azure.ResourceManager.Analysis/src/Generated/LongRunningOperation/AnalysisArmOperation.cs +++ b/sdk/analysisservices/Azure.ResourceManager.Analysis/src/Generated/LongRunningOperation/AnalysisArmOperation.cs @@ -20,21 +20,24 @@ internal class AnalysisArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of AnalysisArmOperation for mocking. protected AnalysisArmOperation() { } - internal AnalysisArmOperation(Response response) + internal AnalysisArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal AnalysisArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "AnalysisArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal AnalysisArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/analysisservices/Azure.ResourceManager.Analysis/src/Generated/LongRunningOperation/AnalysisArmOperationOfT.cs b/sdk/analysisservices/Azure.ResourceManager.Analysis/src/Generated/LongRunningOperation/AnalysisArmOperationOfT.cs index bc3f8dd6cb6d..93625b03e4e0 100644 --- a/sdk/analysisservices/Azure.ResourceManager.Analysis/src/Generated/LongRunningOperation/AnalysisArmOperationOfT.cs +++ b/sdk/analysisservices/Azure.ResourceManager.Analysis/src/Generated/LongRunningOperation/AnalysisArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class AnalysisArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of AnalysisArmOperation for mocking. protected AnalysisArmOperation() { } - internal AnalysisArmOperation(Response response) + internal AnalysisArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal AnalysisArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "AnalysisArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal AnalysisArmOperation(IOperationSource source, ClientDiagnostics clie public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/analysisservices/Azure.ResourceManager.Analysis/src/Generated/Models/AnalysisServerResource.Serialization.cs b/sdk/analysisservices/Azure.ResourceManager.Analysis/src/Generated/Models/AnalysisServerResource.Serialization.cs new file mode 100644 index 000000000000..cf0eea86bd7b --- /dev/null +++ b/sdk/analysisservices/Azure.ResourceManager.Analysis/src/Generated/Models/AnalysisServerResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Analysis +{ + public partial class AnalysisServerResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + AnalysisServerData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + AnalysisServerData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/analysisservices/Azure.ResourceManager.Analysis/src/Generated/RestOperations/ServersRestOperations.cs b/sdk/analysisservices/Azure.ResourceManager.Analysis/src/Generated/RestOperations/ServersRestOperations.cs index b5ad115f9b4a..52f7a2d22863 100644 --- a/sdk/analysisservices/Azure.ResourceManager.Analysis/src/Generated/RestOperations/ServersRestOperations.cs +++ b/sdk/analysisservices/Azure.ResourceManager.Analysis/src/Generated/RestOperations/ServersRestOperations.cs @@ -37,6 +37,20 @@ public ServersRestOperations(HttpPipeline pipeline, string applicationId, Uri en _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetDetailsRequestUri(string subscriptionId, string resourceGroupName, string serverName) + { + 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.AnalysisServices/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetDetailsRequest(string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); @@ -119,6 +133,20 @@ public Response GetDetails(string subscriptionId, string res } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string serverName, AnalysisServerData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AnalysisServices/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string serverName, AnalysisServerData data) { var message = _pipeline.CreateMessage(); @@ -199,6 +227,20 @@ public Response Create(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string serverName) + { + 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.AnalysisServices/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); @@ -271,6 +313,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string serverName, AnalysisServerPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AnalysisServices/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string serverName, AnalysisServerPatch patch) { var message = _pipeline.CreateMessage(); @@ -349,6 +405,21 @@ public Response Update(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateSuspendRequestUri(string subscriptionId, string resourceGroupName, string serverName) + { + 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.AnalysisServices/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/suspend", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateSuspendRequest(string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); @@ -420,6 +491,21 @@ public Response Suspend(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreateResumeRequestUri(string subscriptionId, string resourceGroupName, string serverName) + { + 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.AnalysisServices/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/resume", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateResumeRequest(string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); @@ -491,6 +577,19 @@ public Response Resume(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.AnalysisServices/servers", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -564,6 +663,17 @@ public Response ListByResourceGroup(string subscriptionId, stri } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.AnalysisServices/servers", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -631,6 +741,17 @@ public Response List(string subscriptionId, CancellationToken c } } + internal RequestUriBuilder CreateListSkusForNewRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.AnalysisServices/skus", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListSkusForNewRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -698,6 +819,21 @@ public Response ListSkusForNew(string subscript } } + internal RequestUriBuilder CreateListSkusForExistingRequestUri(string subscriptionId, string resourceGroupName, string serverName) + { + 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.AnalysisServices/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/skus", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListSkusForExistingRequest(string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); @@ -777,6 +913,21 @@ public Response ListSkusForExisting(string } } + internal RequestUriBuilder CreateListGatewayStatusRequestUri(string subscriptionId, string resourceGroupName, string serverName) + { + 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.AnalysisServices/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/listGatewayStatus", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListGatewayStatusRequest(string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); @@ -856,6 +1007,21 @@ public Response ListGatewayStatus(string subscriptionId, } } + internal RequestUriBuilder CreateDissociateGatewayRequestUri(string subscriptionId, string resourceGroupName, string serverName) + { + 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.AnalysisServices/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/dissociateGateway", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDissociateGatewayRequest(string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); @@ -925,6 +1091,19 @@ public Response DissociateGateway(string subscriptionId, string resourceGroupNam } } + internal RequestUriBuilder CreateCheckNameAvailabilityRequestUri(string subscriptionId, AzureLocation location, AnalysisServerNameAvailabilityContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.AnalysisServices/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/checkNameAvailability", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCheckNameAvailabilityRequest(string subscriptionId, AzureLocation location, AnalysisServerNameAvailabilityContent content) { var message = _pipeline.CreateMessage(); diff --git a/sdk/apicenter/Azure.ResourceManager.ApiCenter/src/Generated/ApiCenterServiceCollection.cs b/sdk/apicenter/Azure.ResourceManager.ApiCenter/src/Generated/ApiCenterServiceCollection.cs index 15242bf4fb53..7120b6ae633e 100644 --- a/sdk/apicenter/Azure.ResourceManager.ApiCenter/src/Generated/ApiCenterServiceCollection.cs +++ b/sdk/apicenter/Azure.ResourceManager.ApiCenter/src/Generated/ApiCenterServiceCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> CreateOrUpdate try { var response = await _apiCenterServiceServicesRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, serviceName, data, cancellationToken).ConfigureAwait(false); - var operation = new ApiCenterArmOperation(Response.FromValue(new ApiCenterServiceResource(Client, response), response.GetRawResponse())); + var uri = _apiCenterServiceServicesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, serviceName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiCenterArmOperation(Response.FromValue(new ApiCenterServiceResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -140,7 +142,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil w try { var response = _apiCenterServiceServicesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, serviceName, data, cancellationToken); - var operation = new ApiCenterArmOperation(Response.FromValue(new ApiCenterServiceResource(Client, response), response.GetRawResponse())); + var uri = _apiCenterServiceServicesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, serviceName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiCenterArmOperation(Response.FromValue(new ApiCenterServiceResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/apicenter/Azure.ResourceManager.ApiCenter/src/Generated/ApiCenterServiceResource.cs b/sdk/apicenter/Azure.ResourceManager.ApiCenter/src/Generated/ApiCenterServiceResource.cs index c2221225fb6e..3b84bcedefef 100644 --- a/sdk/apicenter/Azure.ResourceManager.ApiCenter/src/Generated/ApiCenterServiceResource.cs +++ b/sdk/apicenter/Azure.ResourceManager.ApiCenter/src/Generated/ApiCenterServiceResource.cs @@ -201,7 +201,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _apiCenterServiceServicesRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new ApiCenterArmOperation(response); + var uri = _apiCenterServiceServicesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiCenterArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -243,7 +245,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _apiCenterServiceServicesRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); - var operation = new ApiCenterArmOperation(response); + var uri = _apiCenterServiceServicesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiCenterArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/apicenter/Azure.ResourceManager.ApiCenter/src/Generated/LongRunningOperation/ApiCenterArmOperation.cs b/sdk/apicenter/Azure.ResourceManager.ApiCenter/src/Generated/LongRunningOperation/ApiCenterArmOperation.cs index 63b6ed172f82..27d771f8be3d 100644 --- a/sdk/apicenter/Azure.ResourceManager.ApiCenter/src/Generated/LongRunningOperation/ApiCenterArmOperation.cs +++ b/sdk/apicenter/Azure.ResourceManager.ApiCenter/src/Generated/LongRunningOperation/ApiCenterArmOperation.cs @@ -20,21 +20,24 @@ internal class ApiCenterArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of ApiCenterArmOperation for mocking. protected ApiCenterArmOperation() { } - internal ApiCenterArmOperation(Response response) + internal ApiCenterArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal ApiCenterArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "ApiCenterArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal ApiCenterArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/apicenter/Azure.ResourceManager.ApiCenter/src/Generated/LongRunningOperation/ApiCenterArmOperationOfT.cs b/sdk/apicenter/Azure.ResourceManager.ApiCenter/src/Generated/LongRunningOperation/ApiCenterArmOperationOfT.cs index afd56dea6e38..d5526fbad55c 100644 --- a/sdk/apicenter/Azure.ResourceManager.ApiCenter/src/Generated/LongRunningOperation/ApiCenterArmOperationOfT.cs +++ b/sdk/apicenter/Azure.ResourceManager.ApiCenter/src/Generated/LongRunningOperation/ApiCenterArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class ApiCenterArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of ApiCenterArmOperation for mocking. protected ApiCenterArmOperation() { } - internal ApiCenterArmOperation(Response response) + internal ApiCenterArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal ApiCenterArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "ApiCenterArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal ApiCenterArmOperation(IOperationSource source, ClientDiagnostics cli public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/apicenter/Azure.ResourceManager.ApiCenter/src/Generated/Models/ApiCenterServiceResource.Serialization.cs b/sdk/apicenter/Azure.ResourceManager.ApiCenter/src/Generated/Models/ApiCenterServiceResource.Serialization.cs new file mode 100644 index 000000000000..88d24e83eb11 --- /dev/null +++ b/sdk/apicenter/Azure.ResourceManager.ApiCenter/src/Generated/Models/ApiCenterServiceResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ApiCenter +{ + public partial class ApiCenterServiceResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ApiCenterServiceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ApiCenterServiceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/apicenter/Azure.ResourceManager.ApiCenter/src/Generated/RestOperations/ServicesRestOperations.cs b/sdk/apicenter/Azure.ResourceManager.ApiCenter/src/Generated/RestOperations/ServicesRestOperations.cs index fff886499033..ee54bf8fc761 100644 --- a/sdk/apicenter/Azure.ResourceManager.ApiCenter/src/Generated/RestOperations/ServicesRestOperations.cs +++ b/sdk/apicenter/Azure.ResourceManager.ApiCenter/src/Generated/RestOperations/ServicesRestOperations.cs @@ -37,6 +37,17 @@ public ServicesRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ApiCenter/services", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,19 @@ public Response ListBySubscription(string subscripti } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.ApiCenter/services", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -177,6 +201,20 @@ public Response ListByResourceGroup(string subscript } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serviceName) + { + 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.ApiCenter/services/", false); + uri.AppendPath(serviceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serviceName) { var message = _pipeline.CreateMessage(); @@ -259,6 +297,20 @@ public Response Get(string subscriptionId, string resource } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serviceName, ApiCenterServiceData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ApiCenter/services/", false); + uri.AppendPath(serviceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serviceName, ApiCenterServiceData data) { var message = _pipeline.CreateMessage(); @@ -347,6 +399,20 @@ public Response CreateOrUpdate(string subscriptionId, stri } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string serviceName, ApiCenterServicePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ApiCenter/services/", false); + uri.AppendPath(serviceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string serviceName, ApiCenterServicePatch patch) { var message = _pipeline.CreateMessage(); @@ -433,6 +499,20 @@ public Response Update(string subscriptionId, string resou } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string serviceName) + { + 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.ApiCenter/services/", false); + uri.AppendPath(serviceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string serviceName) { var message = _pipeline.CreateMessage(); @@ -503,6 +583,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -571,6 +659,14 @@ public Response ListBySubscriptionNextPage(string ne } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiDiagnosticCollection.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiDiagnosticCollection.cs index b5901686d9e8..f292a5c46f18 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiDiagnosticCollection.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiDiagnosticCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> CreateOrUpdateAsy try { var response = await _apiDiagnosticRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, diagnosticId, data, ifMatch, cancellationToken).ConfigureAwait(false); - var operation = new ApiManagementArmOperation(Response.FromValue(new ApiDiagnosticResource(Client, response), response.GetRawResponse())); + var uri = _apiDiagnosticRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, diagnosticId, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(Response.FromValue(new ApiDiagnosticResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -141,7 +143,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wait try { var response = _apiDiagnosticRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, diagnosticId, data, ifMatch, cancellationToken); - var operation = new ApiManagementArmOperation(Response.FromValue(new ApiDiagnosticResource(Client, response), response.GetRawResponse())); + var uri = _apiDiagnosticRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, diagnosticId, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(Response.FromValue(new ApiDiagnosticResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiDiagnosticResource.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiDiagnosticResource.cs index c837a9b33152..bb6773529d30 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiDiagnosticResource.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiDiagnosticResource.cs @@ -202,7 +202,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, ETag if try { var response = await _apiDiagnosticRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, ifMatch, cancellationToken).ConfigureAwait(false); - var operation = new ApiManagementArmOperation(response); + var uri = _apiDiagnosticRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -245,7 +247,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, ETag ifMatch, Cancellati try { var response = _apiDiagnosticRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, ifMatch, cancellationToken); - var operation = new ApiManagementArmOperation(response); + var uri = _apiDiagnosticRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiIssueAttachmentCollection.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiIssueAttachmentCollection.cs index b35ad7523711..7664379243f7 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiIssueAttachmentCollection.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiIssueAttachmentCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> CreateOrUpda try { var response = await _apiIssueAttachmentRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, attachmentId, data, ifMatch, cancellationToken).ConfigureAwait(false); - var operation = new ApiManagementArmOperation(Response.FromValue(new ApiIssueAttachmentResource(Client, response), response.GetRawResponse())); + var uri = _apiIssueAttachmentRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, attachmentId, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(Response.FromValue(new ApiIssueAttachmentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -141,7 +143,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil try { var response = _apiIssueAttachmentRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, attachmentId, data, ifMatch, cancellationToken); - var operation = new ApiManagementArmOperation(Response.FromValue(new ApiIssueAttachmentResource(Client, response), response.GetRawResponse())); + var uri = _apiIssueAttachmentRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, attachmentId, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(Response.FromValue(new ApiIssueAttachmentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiIssueAttachmentResource.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiIssueAttachmentResource.cs index 229cd6ead6de..51d24e034979 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiIssueAttachmentResource.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiIssueAttachmentResource.cs @@ -203,7 +203,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, ETag if try { var response = await _apiIssueAttachmentRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, ifMatch, cancellationToken).ConfigureAwait(false); - var operation = new ApiManagementArmOperation(response); + var uri = _apiIssueAttachmentRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -246,7 +248,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, ETag ifMatch, Cancellati try { var response = _apiIssueAttachmentRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, ifMatch, cancellationToken); - var operation = new ApiManagementArmOperation(response); + var uri = _apiIssueAttachmentRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -293,7 +297,9 @@ public virtual async Task> UpdateAsync( try { var response = await _apiIssueAttachmentRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, ifMatch, cancellationToken).ConfigureAwait(false); - var operation = new ApiManagementArmOperation(Response.FromValue(new ApiIssueAttachmentResource(Client, response), response.GetRawResponse())); + var uri = _apiIssueAttachmentRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(Response.FromValue(new ApiIssueAttachmentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -340,7 +346,9 @@ public virtual ArmOperation Update(WaitUntil waitUnt try { var response = _apiIssueAttachmentRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, ifMatch, cancellationToken); - var operation = new ApiManagementArmOperation(Response.FromValue(new ApiIssueAttachmentResource(Client, response), response.GetRawResponse())); + var uri = _apiIssueAttachmentRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(Response.FromValue(new ApiIssueAttachmentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiIssueCollection.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiIssueCollection.cs index 0d3e15274529..218d3438ff91 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiIssueCollection.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiIssueCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> CreateOrUpdateAsync(Wa try { var response = await _apiIssueRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, issueId, data, ifMatch, cancellationToken).ConfigureAwait(false); - var operation = new ApiManagementArmOperation(Response.FromValue(new ApiIssueResource(Client, response), response.GetRawResponse())); + var uri = _apiIssueRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, issueId, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(Response.FromValue(new ApiIssueResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -141,7 +143,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil try { var response = _apiIssueRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, issueId, data, ifMatch, cancellationToken); - var operation = new ApiManagementArmOperation(Response.FromValue(new ApiIssueResource(Client, response), response.GetRawResponse())); + var uri = _apiIssueRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, issueId, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(Response.FromValue(new ApiIssueResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiIssueCommentCollection.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiIssueCommentCollection.cs index fcf756e98bbc..c8ac67f72ec7 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiIssueCommentCollection.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiIssueCommentCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> CreateOrUpdateA try { var response = await _apiIssueCommentRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, commentId, data, ifMatch, cancellationToken).ConfigureAwait(false); - var operation = new ApiManagementArmOperation(Response.FromValue(new ApiIssueCommentResource(Client, response), response.GetRawResponse())); + var uri = _apiIssueCommentRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, commentId, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(Response.FromValue(new ApiIssueCommentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -141,7 +143,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wa try { var response = _apiIssueCommentRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, commentId, data, ifMatch, cancellationToken); - var operation = new ApiManagementArmOperation(Response.FromValue(new ApiIssueCommentResource(Client, response), response.GetRawResponse())); + var uri = _apiIssueCommentRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, commentId, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(Response.FromValue(new ApiIssueCommentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiIssueCommentResource.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiIssueCommentResource.cs index eae0459a8f31..e120728c2de4 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiIssueCommentResource.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiIssueCommentResource.cs @@ -203,7 +203,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, ETag if try { var response = await _apiIssueCommentRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, ifMatch, cancellationToken).ConfigureAwait(false); - var operation = new ApiManagementArmOperation(response); + var uri = _apiIssueCommentRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -246,7 +248,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, ETag ifMatch, Cancellati try { var response = _apiIssueCommentRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, ifMatch, cancellationToken); - var operation = new ApiManagementArmOperation(response); + var uri = _apiIssueCommentRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -293,7 +297,9 @@ public virtual async Task> UpdateAsync(Wai try { var response = await _apiIssueCommentRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, ifMatch, cancellationToken).ConfigureAwait(false); - var operation = new ApiManagementArmOperation(Response.FromValue(new ApiIssueCommentResource(Client, response), response.GetRawResponse())); + var uri = _apiIssueCommentRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(Response.FromValue(new ApiIssueCommentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -340,7 +346,9 @@ public virtual ArmOperation Update(WaitUntil waitUntil, try { var response = _apiIssueCommentRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, ifMatch, cancellationToken); - var operation = new ApiManagementArmOperation(Response.FromValue(new ApiIssueCommentResource(Client, response), response.GetRawResponse())); + var uri = _apiIssueCommentRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(Response.FromValue(new ApiIssueCommentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiIssueResource.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiIssueResource.cs index 05e2d5a1e654..716420b4cd0b 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiIssueResource.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiIssueResource.cs @@ -343,7 +343,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, ETag if try { var response = await _apiIssueRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, ifMatch, cancellationToken).ConfigureAwait(false); - var operation = new ApiManagementArmOperation(response); + var uri = _apiIssueRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -386,7 +388,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, ETag ifMatch, Cancellati try { var response = _apiIssueRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, ifMatch, cancellationToken); - var operation = new ApiManagementArmOperation(response); + var uri = _apiIssueRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementAuthorizationServerCollection.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementAuthorizationServerCollection.cs index eb57327cc865..cc46c4d6010a 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementAuthorizationServerCollection.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementAuthorizationServerCollection.cs @@ -91,7 +91,9 @@ public virtual async Task try { var response = await _apiManagementAuthorizationServerAuthorizationServerRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, authsid, data, ifMatch, cancellationToken).ConfigureAwait(false); - var operation = new ApiManagementArmOperation(Response.FromValue(new ApiManagementAuthorizationServerResource(Client, response), response.GetRawResponse())); + var uri = _apiManagementAuthorizationServerAuthorizationServerRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, authsid, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(Response.FromValue(new ApiManagementAuthorizationServerResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -141,7 +143,9 @@ public virtual ArmOperation CreateOrUp try { var response = _apiManagementAuthorizationServerAuthorizationServerRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, authsid, data, ifMatch, cancellationToken); - var operation = new ApiManagementArmOperation(Response.FromValue(new ApiManagementAuthorizationServerResource(Client, response), response.GetRawResponse())); + var uri = _apiManagementAuthorizationServerAuthorizationServerRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, authsid, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(Response.FromValue(new ApiManagementAuthorizationServerResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementAuthorizationServerResource.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementAuthorizationServerResource.cs index 45e4fa29f585..113fccbcccd0 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementAuthorizationServerResource.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementAuthorizationServerResource.cs @@ -202,7 +202,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, ETag if try { var response = await _apiManagementAuthorizationServerAuthorizationServerRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch, cancellationToken).ConfigureAwait(false); - var operation = new ApiManagementArmOperation(response); + var uri = _apiManagementAuthorizationServerAuthorizationServerRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -245,7 +247,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, ETag ifMatch, Cancellati try { var response = _apiManagementAuthorizationServerAuthorizationServerRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch, cancellationToken); - var operation = new ApiManagementArmOperation(response); + var uri = _apiManagementAuthorizationServerAuthorizationServerRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementBackendCollection.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementBackendCollection.cs index bfd79a958e50..c2fab52ed9fa 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementBackendCollection.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementBackendCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> CreateOrUp try { var response = await _apiManagementBackendBackendRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, backendId, data, ifMatch, cancellationToken).ConfigureAwait(false); - var operation = new ApiManagementArmOperation(Response.FromValue(new ApiManagementBackendResource(Client, response), response.GetRawResponse())); + var uri = _apiManagementBackendBackendRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, backendId, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(Response.FromValue(new ApiManagementBackendResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -141,7 +143,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUnt try { var response = _apiManagementBackendBackendRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, backendId, data, ifMatch, cancellationToken); - var operation = new ApiManagementArmOperation(Response.FromValue(new ApiManagementBackendResource(Client, response), response.GetRawResponse())); + var uri = _apiManagementBackendBackendRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, backendId, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(Response.FromValue(new ApiManagementBackendResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementBackendResource.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementBackendResource.cs index bcd2d501e165..19ea976d1c1e 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementBackendResource.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementBackendResource.cs @@ -202,7 +202,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, ETag if try { var response = await _apiManagementBackendBackendRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch, cancellationToken).ConfigureAwait(false); - var operation = new ApiManagementArmOperation(response); + var uri = _apiManagementBackendBackendRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -245,7 +247,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, ETag ifMatch, Cancellati try { var response = _apiManagementBackendBackendRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch, cancellationToken); - var operation = new ApiManagementArmOperation(response); + var uri = _apiManagementBackendBackendRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementCacheCollection.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementCacheCollection.cs index 7444d9c79d97..5316976915ec 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementCacheCollection.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementCacheCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> CreateOrUpda try { var response = await _apiManagementCacheCacheRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cacheId, data, ifMatch, cancellationToken).ConfigureAwait(false); - var operation = new ApiManagementArmOperation(Response.FromValue(new ApiManagementCacheResource(Client, response), response.GetRawResponse())); + var uri = _apiManagementCacheCacheRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cacheId, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(Response.FromValue(new ApiManagementCacheResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -141,7 +143,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil try { var response = _apiManagementCacheCacheRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cacheId, data, ifMatch, cancellationToken); - var operation = new ApiManagementArmOperation(Response.FromValue(new ApiManagementCacheResource(Client, response), response.GetRawResponse())); + var uri = _apiManagementCacheCacheRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cacheId, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(Response.FromValue(new ApiManagementCacheResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementCacheResource.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementCacheResource.cs index 85d1f332d6f4..04b1b8452029 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementCacheResource.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementCacheResource.cs @@ -202,7 +202,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, ETag if try { var response = await _apiManagementCacheCacheRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch, cancellationToken).ConfigureAwait(false); - var operation = new ApiManagementArmOperation(response); + var uri = _apiManagementCacheCacheRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -245,7 +247,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, ETag ifMatch, Cancellati try { var response = _apiManagementCacheCacheRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch, cancellationToken); - var operation = new ApiManagementArmOperation(response); + var uri = _apiManagementCacheCacheRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementCertificateCollection.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementCertificateCollection.cs index 59b0f775aa61..85ae6c62c72d 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementCertificateCollection.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementCertificateCollection.cs @@ -92,7 +92,9 @@ public virtual async Task> Create try { var response = await _apiManagementCertificateCertificateRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, certificateId, content, ifMatch, cancellationToken).ConfigureAwait(false); - var operation = new ApiManagementArmOperation(Response.FromValue(new ApiManagementCertificateResource(Client, response), response.GetRawResponse())); + var uri = _apiManagementCertificateCertificateRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, certificateId, content, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(Response.FromValue(new ApiManagementCertificateResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -142,7 +144,9 @@ public virtual ArmOperation CreateOrUpdate(Wai try { var response = _apiManagementCertificateCertificateRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, certificateId, content, ifMatch, cancellationToken); - var operation = new ApiManagementArmOperation(Response.FromValue(new ApiManagementCertificateResource(Client, response), response.GetRawResponse())); + var uri = _apiManagementCertificateCertificateRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, certificateId, content, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(Response.FromValue(new ApiManagementCertificateResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementCertificateResource.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementCertificateResource.cs index ed6944a53f0a..ee5451462095 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementCertificateResource.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementCertificateResource.cs @@ -202,7 +202,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, ETag if try { var response = await _apiManagementCertificateCertificateRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch, cancellationToken).ConfigureAwait(false); - var operation = new ApiManagementArmOperation(response); + var uri = _apiManagementCertificateCertificateRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -245,7 +247,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, ETag ifMatch, Cancellati try { var response = _apiManagementCertificateCertificateRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch, cancellationToken); - var operation = new ApiManagementArmOperation(response); + var uri = _apiManagementCertificateCertificateRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -292,7 +296,9 @@ public virtual async Task> Update try { var response = await _apiManagementCertificateCertificateRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, content, ifMatch, cancellationToken).ConfigureAwait(false); - var operation = new ApiManagementArmOperation(Response.FromValue(new ApiManagementCertificateResource(Client, response), response.GetRawResponse())); + var uri = _apiManagementCertificateCertificateRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, content, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(Response.FromValue(new ApiManagementCertificateResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -339,7 +345,9 @@ public virtual ArmOperation Update(WaitUntil w try { var response = _apiManagementCertificateCertificateRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, content, ifMatch, cancellationToken); - var operation = new ApiManagementArmOperation(Response.FromValue(new ApiManagementCertificateResource(Client, response), response.GetRawResponse())); + var uri = _apiManagementCertificateCertificateRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, content, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(Response.FromValue(new ApiManagementCertificateResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementDiagnosticCollection.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementDiagnosticCollection.cs index ce9978f79140..e00b70c163c2 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementDiagnosticCollection.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementDiagnosticCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> CreateO try { var response = await _apiManagementDiagnosticDiagnosticRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, diagnosticId, data, ifMatch, cancellationToken).ConfigureAwait(false); - var operation = new ApiManagementArmOperation(Response.FromValue(new ApiManagementDiagnosticResource(Client, response), response.GetRawResponse())); + var uri = _apiManagementDiagnosticDiagnosticRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, diagnosticId, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(Response.FromValue(new ApiManagementDiagnosticResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -141,7 +143,9 @@ public virtual ArmOperation CreateOrUpdate(Wait try { var response = _apiManagementDiagnosticDiagnosticRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, diagnosticId, data, ifMatch, cancellationToken); - var operation = new ApiManagementArmOperation(Response.FromValue(new ApiManagementDiagnosticResource(Client, response), response.GetRawResponse())); + var uri = _apiManagementDiagnosticDiagnosticRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, diagnosticId, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(Response.FromValue(new ApiManagementDiagnosticResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementDiagnosticResource.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementDiagnosticResource.cs index c7f3a408c88d..99f649f1071b 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementDiagnosticResource.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementDiagnosticResource.cs @@ -201,7 +201,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, ETag if try { var response = await _apiManagementDiagnosticDiagnosticRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch, cancellationToken).ConfigureAwait(false); - var operation = new ApiManagementArmOperation(response); + var uri = _apiManagementDiagnosticDiagnosticRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -244,7 +246,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, ETag ifMatch, Cancellati try { var response = _apiManagementDiagnosticDiagnosticRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch, cancellationToken); - var operation = new ApiManagementArmOperation(response); + var uri = _apiManagementDiagnosticDiagnosticRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementEmailTemplateCollection.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementEmailTemplateCollection.cs index 4d8698a84ac3..d2891098e113 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementEmailTemplateCollection.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementEmailTemplateCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> Crea try { var response = await _apiManagementEmailTemplateEmailTemplateRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, templateName, content, ifMatch, cancellationToken).ConfigureAwait(false); - var operation = new ApiManagementArmOperation(Response.FromValue(new ApiManagementEmailTemplateResource(Client, response), response.GetRawResponse())); + var uri = _apiManagementEmailTemplateEmailTemplateRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, templateName, content, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(Response.FromValue(new ApiManagementEmailTemplateResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -138,7 +140,9 @@ public virtual ArmOperation CreateOrUpdate(W try { var response = _apiManagementEmailTemplateEmailTemplateRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, templateName, content, ifMatch, cancellationToken); - var operation = new ApiManagementArmOperation(Response.FromValue(new ApiManagementEmailTemplateResource(Client, response), response.GetRawResponse())); + var uri = _apiManagementEmailTemplateEmailTemplateRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, templateName, content, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(Response.FromValue(new ApiManagementEmailTemplateResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementEmailTemplateResource.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementEmailTemplateResource.cs index d9b9ad669159..9a7d6d8bb16b 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementEmailTemplateResource.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementEmailTemplateResource.cs @@ -202,7 +202,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, ETag if try { var response = await _apiManagementEmailTemplateEmailTemplateRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch, cancellationToken).ConfigureAwait(false); - var operation = new ApiManagementArmOperation(response); + var uri = _apiManagementEmailTemplateEmailTemplateRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -245,7 +247,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, ETag ifMatch, Cancellati try { var response = _apiManagementEmailTemplateEmailTemplateRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch, cancellationToken); - var operation = new ApiManagementArmOperation(response); + var uri = _apiManagementEmailTemplateEmailTemplateRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementGatewayCertificateAuthorityCollection.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementGatewayCertificateAuthorityCollection.cs index 9e1efbba50f4..c37d3e3081cb 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementGatewayCertificateAuthorityCollection.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementGatewayCertificateAuthorityCollection.cs @@ -91,7 +91,9 @@ public virtual async Task(Response.FromValue(new ApiManagementGatewayCertificateAuthorityResource(Client, response), response.GetRawResponse())); + var uri = _apiManagementGatewayCertificateAuthorityGatewayCertificateAuthorityRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, certificateId, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(Response.FromValue(new ApiManagementGatewayCertificateAuthorityResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -141,7 +143,9 @@ public virtual ArmOperation Cr try { var response = _apiManagementGatewayCertificateAuthorityGatewayCertificateAuthorityRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, certificateId, data, ifMatch, cancellationToken); - var operation = new ApiManagementArmOperation(Response.FromValue(new ApiManagementGatewayCertificateAuthorityResource(Client, response), response.GetRawResponse())); + var uri = _apiManagementGatewayCertificateAuthorityGatewayCertificateAuthorityRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, certificateId, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(Response.FromValue(new ApiManagementGatewayCertificateAuthorityResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementGatewayCertificateAuthorityResource.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementGatewayCertificateAuthorityResource.cs index 90faf013b041..98dbae2ccdbe 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementGatewayCertificateAuthorityResource.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementGatewayCertificateAuthorityResource.cs @@ -202,7 +202,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, ETag if try { var response = await _apiManagementGatewayCertificateAuthorityGatewayCertificateAuthorityRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, ifMatch, cancellationToken).ConfigureAwait(false); - var operation = new ApiManagementArmOperation(response); + var uri = _apiManagementGatewayCertificateAuthorityGatewayCertificateAuthorityRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -245,7 +247,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, ETag ifMatch, Cancellati try { var response = _apiManagementGatewayCertificateAuthorityGatewayCertificateAuthorityRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, ifMatch, cancellationToken); - var operation = new ApiManagementArmOperation(response); + var uri = _apiManagementGatewayCertificateAuthorityGatewayCertificateAuthorityRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -292,7 +296,9 @@ public virtual async Task(Response.FromValue(new ApiManagementGatewayCertificateAuthorityResource(Client, response), response.GetRawResponse())); + var uri = _apiManagementGatewayCertificateAuthorityGatewayCertificateAuthorityRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(Response.FromValue(new ApiManagementGatewayCertificateAuthorityResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -339,7 +345,9 @@ public virtual ArmOperation Up try { var response = _apiManagementGatewayCertificateAuthorityGatewayCertificateAuthorityRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, ifMatch, cancellationToken); - var operation = new ApiManagementArmOperation(Response.FromValue(new ApiManagementGatewayCertificateAuthorityResource(Client, response), response.GetRawResponse())); + var uri = _apiManagementGatewayCertificateAuthorityGatewayCertificateAuthorityRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(Response.FromValue(new ApiManagementGatewayCertificateAuthorityResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementGatewayCollection.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementGatewayCollection.cs index 65a57b8ff86b..6748ef4d7a25 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementGatewayCollection.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementGatewayCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> CreateOrUp try { var response = await _apiManagementGatewayGatewayRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, gatewayId, data, ifMatch, cancellationToken).ConfigureAwait(false); - var operation = new ApiManagementArmOperation(Response.FromValue(new ApiManagementGatewayResource(Client, response), response.GetRawResponse())); + var uri = _apiManagementGatewayGatewayRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, gatewayId, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(Response.FromValue(new ApiManagementGatewayResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -141,7 +143,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUnt try { var response = _apiManagementGatewayGatewayRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, gatewayId, data, ifMatch, cancellationToken); - var operation = new ApiManagementArmOperation(Response.FromValue(new ApiManagementGatewayResource(Client, response), response.GetRawResponse())); + var uri = _apiManagementGatewayGatewayRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, gatewayId, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(Response.FromValue(new ApiManagementGatewayResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementGatewayHostnameConfigurationCollection.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementGatewayHostnameConfigurationCollection.cs index b7e215d38444..2869a61c7c37 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementGatewayHostnameConfigurationCollection.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementGatewayHostnameConfigurationCollection.cs @@ -91,7 +91,9 @@ public virtual async Task(Response.FromValue(new ApiManagementGatewayHostnameConfigurationResource(Client, response), response.GetRawResponse())); + var uri = _apiManagementGatewayHostnameConfigurationGatewayHostnameConfigurationRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, hcId, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(Response.FromValue(new ApiManagementGatewayHostnameConfigurationResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -141,7 +143,9 @@ public virtual ArmOperation C try { var response = _apiManagementGatewayHostnameConfigurationGatewayHostnameConfigurationRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, hcId, data, ifMatch, cancellationToken); - var operation = new ApiManagementArmOperation(Response.FromValue(new ApiManagementGatewayHostnameConfigurationResource(Client, response), response.GetRawResponse())); + var uri = _apiManagementGatewayHostnameConfigurationGatewayHostnameConfigurationRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, hcId, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(Response.FromValue(new ApiManagementGatewayHostnameConfigurationResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementGatewayHostnameConfigurationResource.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementGatewayHostnameConfigurationResource.cs index f846ef53570f..382c73e36d81 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementGatewayHostnameConfigurationResource.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementGatewayHostnameConfigurationResource.cs @@ -202,7 +202,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, ETag if try { var response = await _apiManagementGatewayHostnameConfigurationGatewayHostnameConfigurationRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, ifMatch, cancellationToken).ConfigureAwait(false); - var operation = new ApiManagementArmOperation(response); + var uri = _apiManagementGatewayHostnameConfigurationGatewayHostnameConfigurationRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -245,7 +247,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, ETag ifMatch, Cancellati try { var response = _apiManagementGatewayHostnameConfigurationGatewayHostnameConfigurationRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, ifMatch, cancellationToken); - var operation = new ApiManagementArmOperation(response); + var uri = _apiManagementGatewayHostnameConfigurationGatewayHostnameConfigurationRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -292,7 +296,9 @@ public virtual async Task(Response.FromValue(new ApiManagementGatewayHostnameConfigurationResource(Client, response), response.GetRawResponse())); + var uri = _apiManagementGatewayHostnameConfigurationGatewayHostnameConfigurationRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(Response.FromValue(new ApiManagementGatewayHostnameConfigurationResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -339,7 +345,9 @@ public virtual ArmOperation U try { var response = _apiManagementGatewayHostnameConfigurationGatewayHostnameConfigurationRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, ifMatch, cancellationToken); - var operation = new ApiManagementArmOperation(Response.FromValue(new ApiManagementGatewayHostnameConfigurationResource(Client, response), response.GetRawResponse())); + var uri = _apiManagementGatewayHostnameConfigurationGatewayHostnameConfigurationRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(Response.FromValue(new ApiManagementGatewayHostnameConfigurationResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementGatewayResource.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementGatewayResource.cs index 813ce9bcf058..7aedea11d128 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementGatewayResource.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementGatewayResource.cs @@ -345,7 +345,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, ETag if try { var response = await _apiManagementGatewayGatewayRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch, cancellationToken).ConfigureAwait(false); - var operation = new ApiManagementArmOperation(response); + var uri = _apiManagementGatewayGatewayRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -388,7 +390,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, ETag ifMatch, Cancellati try { var response = _apiManagementGatewayGatewayRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch, cancellationToken); - var operation = new ApiManagementArmOperation(response); + var uri = _apiManagementGatewayGatewayRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementGlobalSchemaResource.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementGlobalSchemaResource.cs index 88cce00a27a0..4723b370926d 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementGlobalSchemaResource.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementGlobalSchemaResource.cs @@ -201,7 +201,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, ETag if try { var response = await _apiManagementGlobalSchemaGlobalSchemaRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch, cancellationToken).ConfigureAwait(false); - var operation = new ApiManagementArmOperation(response); + var uri = _apiManagementGlobalSchemaGlobalSchemaRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -244,7 +246,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, ETag ifMatch, Cancellati try { var response = _apiManagementGlobalSchemaGlobalSchemaRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch, cancellationToken); - var operation = new ApiManagementArmOperation(response); + var uri = _apiManagementGlobalSchemaGlobalSchemaRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementGroupCollection.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementGroupCollection.cs index 24e149043936..d3791d5094c3 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementGroupCollection.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementGroupCollection.cs @@ -92,7 +92,9 @@ public virtual async Task> CreateOrUpda try { var response = await _apiManagementGroupGroupRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, groupId, content, ifMatch, cancellationToken).ConfigureAwait(false); - var operation = new ApiManagementArmOperation(Response.FromValue(new ApiManagementGroupResource(Client, response), response.GetRawResponse())); + var uri = _apiManagementGroupGroupRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, groupId, content, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(Response.FromValue(new ApiManagementGroupResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -142,7 +144,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil try { var response = _apiManagementGroupGroupRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, groupId, content, ifMatch, cancellationToken); - var operation = new ApiManagementArmOperation(Response.FromValue(new ApiManagementGroupResource(Client, response), response.GetRawResponse())); + var uri = _apiManagementGroupGroupRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, groupId, content, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(Response.FromValue(new ApiManagementGroupResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementGroupResource.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementGroupResource.cs index 97d5167ed97d..189e618afe62 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementGroupResource.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementGroupResource.cs @@ -207,7 +207,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, ETag if try { var response = await _apiManagementGroupGroupRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch, cancellationToken).ConfigureAwait(false); - var operation = new ApiManagementArmOperation(response); + var uri = _apiManagementGroupGroupRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -250,7 +252,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, ETag ifMatch, Cancellati try { var response = _apiManagementGroupGroupRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch, cancellationToken); - var operation = new ApiManagementArmOperation(response); + var uri = _apiManagementGroupGroupRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementIdentityProviderCollection.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementIdentityProviderCollection.cs index 5091535658d2..ac6fcfdd3acf 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementIdentityProviderCollection.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementIdentityProviderCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> C try { var response = await _apiManagementIdentityProviderIdentityProviderRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, identityProviderName, content, ifMatch, cancellationToken).ConfigureAwait(false); - var operation = new ApiManagementArmOperation(Response.FromValue(new ApiManagementIdentityProviderResource(Client, response), response.GetRawResponse())); + var uri = _apiManagementIdentityProviderIdentityProviderRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, identityProviderName, content, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(Response.FromValue(new ApiManagementIdentityProviderResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -138,7 +140,9 @@ public virtual ArmOperation CreateOrUpdat try { var response = _apiManagementIdentityProviderIdentityProviderRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, identityProviderName, content, ifMatch, cancellationToken); - var operation = new ApiManagementArmOperation(Response.FromValue(new ApiManagementIdentityProviderResource(Client, response), response.GetRawResponse())); + var uri = _apiManagementIdentityProviderIdentityProviderRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, identityProviderName, content, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(Response.FromValue(new ApiManagementIdentityProviderResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementIdentityProviderResource.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementIdentityProviderResource.cs index 0289ad7004e2..46b435ac6677 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementIdentityProviderResource.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementIdentityProviderResource.cs @@ -202,7 +202,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, ETag if try { var response = await _apiManagementIdentityProviderIdentityProviderRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch, cancellationToken).ConfigureAwait(false); - var operation = new ApiManagementArmOperation(response); + var uri = _apiManagementIdentityProviderIdentityProviderRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -245,7 +247,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, ETag ifMatch, Cancellati try { var response = _apiManagementIdentityProviderIdentityProviderRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch, cancellationToken); - var operation = new ApiManagementArmOperation(response); + var uri = _apiManagementIdentityProviderIdentityProviderRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementLoggerCollection.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementLoggerCollection.cs index 657322e7f6ab..931a7f882a6b 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementLoggerCollection.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementLoggerCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> CreateOrUpd try { var response = await _apiManagementLoggerLoggerRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, loggerId, data, ifMatch, cancellationToken).ConfigureAwait(false); - var operation = new ApiManagementArmOperation(Response.FromValue(new ApiManagementLoggerResource(Client, response), response.GetRawResponse())); + var uri = _apiManagementLoggerLoggerRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, loggerId, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(Response.FromValue(new ApiManagementLoggerResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -141,7 +143,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUnti try { var response = _apiManagementLoggerLoggerRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, loggerId, data, ifMatch, cancellationToken); - var operation = new ApiManagementArmOperation(Response.FromValue(new ApiManagementLoggerResource(Client, response), response.GetRawResponse())); + var uri = _apiManagementLoggerLoggerRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, loggerId, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(Response.FromValue(new ApiManagementLoggerResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementLoggerResource.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementLoggerResource.cs index 748129c976ca..96d0cdf1afc4 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementLoggerResource.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementLoggerResource.cs @@ -202,7 +202,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, ETag if try { var response = await _apiManagementLoggerLoggerRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch, cancellationToken).ConfigureAwait(false); - var operation = new ApiManagementArmOperation(response); + var uri = _apiManagementLoggerLoggerRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -245,7 +247,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, ETag ifMatch, Cancellati try { var response = _apiManagementLoggerLoggerRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch, cancellationToken); - var operation = new ApiManagementArmOperation(response); + var uri = _apiManagementLoggerLoggerRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementNamedValueResource.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementNamedValueResource.cs index a903437cc0f2..e0dfcd6a9521 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementNamedValueResource.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementNamedValueResource.cs @@ -202,7 +202,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, ETag if try { var response = await _apiManagementNamedValueNamedValueRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch, cancellationToken).ConfigureAwait(false); - var operation = new ApiManagementArmOperation(response); + var uri = _apiManagementNamedValueNamedValueRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -245,7 +247,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, ETag ifMatch, Cancellati try { var response = _apiManagementNamedValueNamedValueRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch, cancellationToken); - var operation = new ApiManagementArmOperation(response); + var uri = _apiManagementNamedValueNamedValueRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementNotificationCollection.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementNotificationCollection.cs index 3cee8bc104ed..c7e9a38fcfc2 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementNotificationCollection.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementNotificationCollection.cs @@ -86,7 +86,9 @@ public virtual async Task> Creat try { var response = await _apiManagementNotificationNotificationRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, notificationName, ifMatch, cancellationToken).ConfigureAwait(false); - var operation = new ApiManagementArmOperation(Response.FromValue(new ApiManagementNotificationResource(Client, response), response.GetRawResponse())); + var uri = _apiManagementNotificationNotificationRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, notificationName, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(Response.FromValue(new ApiManagementNotificationResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -130,7 +132,9 @@ public virtual ArmOperation CreateOrUpdate(Wa try { var response = _apiManagementNotificationNotificationRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, notificationName, ifMatch, cancellationToken); - var operation = new ApiManagementArmOperation(Response.FromValue(new ApiManagementNotificationResource(Client, response), response.GetRawResponse())); + var uri = _apiManagementNotificationNotificationRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, notificationName, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(Response.FromValue(new ApiManagementNotificationResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementNotificationResource.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementNotificationResource.cs index cc34dd15b9e5..a98895655f34 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementNotificationResource.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementNotificationResource.cs @@ -211,7 +211,9 @@ public virtual async Task> Updat try { var response = await _apiManagementNotificationNotificationRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch, cancellationToken).ConfigureAwait(false); - var operation = new ApiManagementArmOperation(Response.FromValue(new ApiManagementNotificationResource(Client, response), response.GetRawResponse())); + var uri = _apiManagementNotificationNotificationRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(Response.FromValue(new ApiManagementNotificationResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -254,7 +256,9 @@ public virtual ArmOperation Update(WaitUntil try { var response = _apiManagementNotificationNotificationRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch, cancellationToken); - var operation = new ApiManagementArmOperation(Response.FromValue(new ApiManagementNotificationResource(Client, response), response.GetRawResponse())); + var uri = _apiManagementNotificationNotificationRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(Response.FromValue(new ApiManagementNotificationResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementOpenIdConnectProviderCollection.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementOpenIdConnectProviderCollection.cs index 0eeeac4aff47..d6bf834b3d42 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementOpenIdConnectProviderCollection.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementOpenIdConnectProviderCollection.cs @@ -91,7 +91,9 @@ public virtual async Task(Response.FromValue(new ApiManagementOpenIdConnectProviderResource(Client, response), response.GetRawResponse())); + var uri = _apiManagementOpenIdConnectProviderOpenIdConnectProviderRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, openId, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(Response.FromValue(new ApiManagementOpenIdConnectProviderResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -141,7 +143,9 @@ public virtual ArmOperation CreateOr try { var response = _apiManagementOpenIdConnectProviderOpenIdConnectProviderRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, openId, data, ifMatch, cancellationToken); - var operation = new ApiManagementArmOperation(Response.FromValue(new ApiManagementOpenIdConnectProviderResource(Client, response), response.GetRawResponse())); + var uri = _apiManagementOpenIdConnectProviderOpenIdConnectProviderRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, openId, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(Response.FromValue(new ApiManagementOpenIdConnectProviderResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementOpenIdConnectProviderResource.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementOpenIdConnectProviderResource.cs index 3452432e9056..6031f72b0e0b 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementOpenIdConnectProviderResource.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementOpenIdConnectProviderResource.cs @@ -202,7 +202,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, ETag if try { var response = await _apiManagementOpenIdConnectProviderOpenIdConnectProviderRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch, cancellationToken).ConfigureAwait(false); - var operation = new ApiManagementArmOperation(response); + var uri = _apiManagementOpenIdConnectProviderOpenIdConnectProviderRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -245,7 +247,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, ETag ifMatch, Cancellati try { var response = _apiManagementOpenIdConnectProviderOpenIdConnectProviderRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch, cancellationToken); - var operation = new ApiManagementArmOperation(response); + var uri = _apiManagementOpenIdConnectProviderOpenIdConnectProviderRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementPolicyCollection.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementPolicyCollection.cs index 7a1f5e2c833b..252748c697eb 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementPolicyCollection.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementPolicyCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> CreateOrUpd try { var response = await _apiManagementPolicyPolicyRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, policyId, data, ifMatch, cancellationToken).ConfigureAwait(false); - var operation = new ApiManagementArmOperation(Response.FromValue(new ApiManagementPolicyResource(Client, response), response.GetRawResponse())); + var uri = _apiManagementPolicyPolicyRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, policyId, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(Response.FromValue(new ApiManagementPolicyResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -138,7 +140,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUnti try { var response = _apiManagementPolicyPolicyRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, policyId, data, ifMatch, cancellationToken); - var operation = new ApiManagementArmOperation(Response.FromValue(new ApiManagementPolicyResource(Client, response), response.GetRawResponse())); + var uri = _apiManagementPolicyPolicyRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, policyId, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(Response.FromValue(new ApiManagementPolicyResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementPolicyResource.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementPolicyResource.cs index 15feeb93cb4a..11c9ec766c5b 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementPolicyResource.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementPolicyResource.cs @@ -204,7 +204,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, ETag if try { var response = await _apiManagementPolicyPolicyRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch, cancellationToken).ConfigureAwait(false); - var operation = new ApiManagementArmOperation(response); + var uri = _apiManagementPolicyPolicyRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -247,7 +249,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, ETag ifMatch, Cancellati try { var response = _apiManagementPolicyPolicyRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch, cancellationToken); - var operation = new ApiManagementArmOperation(response); + var uri = _apiManagementPolicyPolicyRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -294,7 +298,9 @@ public virtual async Task> UpdateAsync try { var response = await _apiManagementPolicyPolicyRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, ifMatch, cancellationToken).ConfigureAwait(false); - var operation = new ApiManagementArmOperation(Response.FromValue(new ApiManagementPolicyResource(Client, response), response.GetRawResponse())); + var uri = _apiManagementPolicyPolicyRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(Response.FromValue(new ApiManagementPolicyResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -341,7 +347,9 @@ public virtual ArmOperation Update(WaitUntil waitUn try { var response = _apiManagementPolicyPolicyRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, ifMatch, cancellationToken); - var operation = new ApiManagementArmOperation(Response.FromValue(new ApiManagementPolicyResource(Client, response), response.GetRawResponse())); + var uri = _apiManagementPolicyPolicyRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(Response.FromValue(new ApiManagementPolicyResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementPortalDelegationSettingResource.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementPortalDelegationSettingResource.cs index 76d3df9c923c..efaa9daf72fe 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementPortalDelegationSettingResource.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementPortalDelegationSettingResource.cs @@ -291,7 +291,9 @@ public virtual async Task(Response.FromValue(new ApiManagementPortalDelegationSettingResource(Client, response), response.GetRawResponse())); + var uri = _apiManagementPortalDelegationSettingDelegationSettingsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(Response.FromValue(new ApiManagementPortalDelegationSettingResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -338,7 +340,9 @@ public virtual ArmOperation Create try { var response = _apiManagementPortalDelegationSettingDelegationSettingsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, data, ifMatch, cancellationToken); - var operation = new ApiManagementArmOperation(Response.FromValue(new ApiManagementPortalDelegationSettingResource(Client, response), response.GetRawResponse())); + var uri = _apiManagementPortalDelegationSettingDelegationSettingsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(Response.FromValue(new ApiManagementPortalDelegationSettingResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementPortalSignInSettingResource.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementPortalSignInSettingResource.cs index 8b5313c01e2a..0af202ea6db1 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementPortalSignInSettingResource.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementPortalSignInSettingResource.cs @@ -290,7 +290,9 @@ public virtual async Task try { var response = await _apiManagementPortalSignInSettingSignInSettingsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, data, ifMatch, cancellationToken).ConfigureAwait(false); - var operation = new ApiManagementArmOperation(Response.FromValue(new ApiManagementPortalSignInSettingResource(Client, response), response.GetRawResponse())); + var uri = _apiManagementPortalSignInSettingSignInSettingsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(Response.FromValue(new ApiManagementPortalSignInSettingResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -337,7 +339,9 @@ public virtual ArmOperation CreateOrUp try { var response = _apiManagementPortalSignInSettingSignInSettingsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, data, ifMatch, cancellationToken); - var operation = new ApiManagementArmOperation(Response.FromValue(new ApiManagementPortalSignInSettingResource(Client, response), response.GetRawResponse())); + var uri = _apiManagementPortalSignInSettingSignInSettingsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(Response.FromValue(new ApiManagementPortalSignInSettingResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementPortalSignUpSettingResource.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementPortalSignUpSettingResource.cs index bb3adb3558e2..1487d0a37bbf 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementPortalSignUpSettingResource.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementPortalSignUpSettingResource.cs @@ -290,7 +290,9 @@ public virtual async Task try { var response = await _apiManagementPortalSignUpSettingSignUpSettingsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, data, ifMatch, cancellationToken).ConfigureAwait(false); - var operation = new ApiManagementArmOperation(Response.FromValue(new ApiManagementPortalSignUpSettingResource(Client, response), response.GetRawResponse())); + var uri = _apiManagementPortalSignUpSettingSignUpSettingsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(Response.FromValue(new ApiManagementPortalSignUpSettingResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -337,7 +339,9 @@ public virtual ArmOperation CreateOrUp try { var response = _apiManagementPortalSignUpSettingSignUpSettingsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, data, ifMatch, cancellationToken); - var operation = new ApiManagementArmOperation(Response.FromValue(new ApiManagementPortalSignUpSettingResource(Client, response), response.GetRawResponse())); + var uri = _apiManagementPortalSignUpSettingSignUpSettingsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(Response.FromValue(new ApiManagementPortalSignUpSettingResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementProductCollection.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementProductCollection.cs index b54ff9ed5719..da947fa5ed80 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementProductCollection.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementProductCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> CreateOrUp try { var response = await _apiManagementProductProductRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, productId, data, ifMatch, cancellationToken).ConfigureAwait(false); - var operation = new ApiManagementArmOperation(Response.FromValue(new ApiManagementProductResource(Client, response), response.GetRawResponse())); + var uri = _apiManagementProductProductRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, productId, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(Response.FromValue(new ApiManagementProductResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -141,7 +143,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUnt try { var response = _apiManagementProductProductRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, productId, data, ifMatch, cancellationToken); - var operation = new ApiManagementArmOperation(Response.FromValue(new ApiManagementProductResource(Client, response), response.GetRawResponse())); + var uri = _apiManagementProductProductRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, productId, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(Response.FromValue(new ApiManagementProductResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementProductPolicyCollection.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementProductPolicyCollection.cs index 021321cf185a..aa42359e8a3e 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementProductPolicyCollection.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementProductPolicyCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> Crea try { var response = await _apiManagementProductPolicyProductPolicyRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, policyId, data, ifMatch, cancellationToken).ConfigureAwait(false); - var operation = new ApiManagementArmOperation(Response.FromValue(new ApiManagementProductPolicyResource(Client, response), response.GetRawResponse())); + var uri = _apiManagementProductPolicyProductPolicyRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, policyId, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(Response.FromValue(new ApiManagementProductPolicyResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -138,7 +140,9 @@ public virtual ArmOperation CreateOrUpdate(W try { var response = _apiManagementProductPolicyProductPolicyRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, policyId, data, ifMatch, cancellationToken); - var operation = new ApiManagementArmOperation(Response.FromValue(new ApiManagementProductPolicyResource(Client, response), response.GetRawResponse())); + var uri = _apiManagementProductPolicyProductPolicyRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, policyId, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(Response.FromValue(new ApiManagementProductPolicyResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementProductPolicyResource.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementProductPolicyResource.cs index b11d6410823a..04fd9d75e815 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementProductPolicyResource.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementProductPolicyResource.cs @@ -205,7 +205,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, ETag if try { var response = await _apiManagementProductPolicyProductPolicyRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, ifMatch, cancellationToken).ConfigureAwait(false); - var operation = new ApiManagementArmOperation(response); + var uri = _apiManagementProductPolicyProductPolicyRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -248,7 +250,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, ETag ifMatch, Cancellati try { var response = _apiManagementProductPolicyProductPolicyRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, ifMatch, cancellationToken); - var operation = new ApiManagementArmOperation(response); + var uri = _apiManagementProductPolicyProductPolicyRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -295,7 +299,9 @@ public virtual async Task> Upda try { var response = await _apiManagementProductPolicyProductPolicyRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, ifMatch, cancellationToken).ConfigureAwait(false); - var operation = new ApiManagementArmOperation(Response.FromValue(new ApiManagementProductPolicyResource(Client, response), response.GetRawResponse())); + var uri = _apiManagementProductPolicyProductPolicyRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(Response.FromValue(new ApiManagementProductPolicyResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -342,7 +348,9 @@ public virtual ArmOperation Update(WaitUntil try { var response = _apiManagementProductPolicyProductPolicyRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, ifMatch, cancellationToken); - var operation = new ApiManagementArmOperation(Response.FromValue(new ApiManagementProductPolicyResource(Client, response), response.GetRawResponse())); + var uri = _apiManagementProductPolicyProductPolicyRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(Response.FromValue(new ApiManagementProductPolicyResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementProductResource.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementProductResource.cs index 53d06a2607ff..bdcaf62d6689 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementProductResource.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementProductResource.cs @@ -352,7 +352,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, ETag if try { var response = await _apiManagementProductProductRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch, deleteSubscriptions, cancellationToken).ConfigureAwait(false); - var operation = new ApiManagementArmOperation(response); + var uri = _apiManagementProductProductRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch, deleteSubscriptions); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -396,7 +398,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, ETag ifMatch, bool? dele try { var response = _apiManagementProductProductRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch, deleteSubscriptions, cancellationToken); - var operation = new ApiManagementArmOperation(response); + var uri = _apiManagementProductProductRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch, deleteSubscriptions); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementProductTagCollection.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementProductTagCollection.cs index 0255246e4abf..389514783e5f 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementProductTagCollection.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementProductTagCollection.cs @@ -88,7 +88,9 @@ public virtual async Task> CreateO try { var response = await _apiManagementProductTagTagRestClient.AssignToProductAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, tagId, cancellationToken).ConfigureAwait(false); - var operation = new ApiManagementArmOperation(Response.FromValue(new ApiManagementProductTagResource(Client, response), response.GetRawResponse())); + var uri = _apiManagementProductTagTagRestClient.CreateAssignToProductRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, tagId); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(Response.FromValue(new ApiManagementProductTagResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -135,7 +137,9 @@ public virtual ArmOperation CreateOrUpdate(Wait try { var response = _apiManagementProductTagTagRestClient.AssignToProduct(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, tagId, cancellationToken); - var operation = new ApiManagementArmOperation(Response.FromValue(new ApiManagementProductTagResource(Client, response), response.GetRawResponse())); + var uri = _apiManagementProductTagTagRestClient.CreateAssignToProductRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, tagId); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(Response.FromValue(new ApiManagementProductTagResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementProductTagResource.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementProductTagResource.cs index 5597ef2d0b17..c2ea241b8490 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementProductTagResource.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementProductTagResource.cs @@ -201,7 +201,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _apiManagementProductTagTagRestClient.DetachFromProductAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new ApiManagementArmOperation(response); + var uri = _apiManagementProductTagTagRestClient.CreateDetachFromProductRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -243,7 +245,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _apiManagementProductTagTagRestClient.DetachFromProduct(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new ApiManagementArmOperation(response); + var uri = _apiManagementProductTagTagRestClient.CreateDetachFromProductRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -285,7 +289,9 @@ public virtual async Task> UpdateA try { var response = await _apiManagementProductTagTagRestClient.AssignToProductAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new ApiManagementArmOperation(Response.FromValue(new ApiManagementProductTagResource(Client, response), response.GetRawResponse())); + var uri = _apiManagementProductTagTagRestClient.CreateAssignToProductRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(Response.FromValue(new ApiManagementProductTagResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -327,7 +333,9 @@ public virtual ArmOperation Update(WaitUntil wa try { var response = _apiManagementProductTagTagRestClient.AssignToProduct(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new ApiManagementArmOperation(Response.FromValue(new ApiManagementProductTagResource(Client, response), response.GetRawResponse())); + var uri = _apiManagementProductTagTagRestClient.CreateAssignToProductRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(Response.FromValue(new ApiManagementProductTagResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementSubscriptionCollection.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementSubscriptionCollection.cs index 9b37beeb93e8..b07dc3a229e8 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementSubscriptionCollection.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementSubscriptionCollection.cs @@ -98,7 +98,9 @@ public virtual async Task> Creat try { var response = await _apiManagementSubscriptionSubscriptionRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, sid, content, notify, ifMatch, appType, cancellationToken).ConfigureAwait(false); - var operation = new ApiManagementArmOperation(Response.FromValue(new ApiManagementSubscriptionResource(Client, response), response.GetRawResponse())); + var uri = _apiManagementSubscriptionSubscriptionRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, sid, content, notify, ifMatch, appType); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(Response.FromValue(new ApiManagementSubscriptionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -154,7 +156,9 @@ public virtual ArmOperation CreateOrUpdate(Wa try { var response = _apiManagementSubscriptionSubscriptionRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, sid, content, notify, ifMatch, appType, cancellationToken); - var operation = new ApiManagementArmOperation(Response.FromValue(new ApiManagementSubscriptionResource(Client, response), response.GetRawResponse())); + var uri = _apiManagementSubscriptionSubscriptionRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, sid, content, notify, ifMatch, appType); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(Response.FromValue(new ApiManagementSubscriptionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementSubscriptionResource.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementSubscriptionResource.cs index a4161e4d14b4..0e1ef03ae4ae 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementSubscriptionResource.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementSubscriptionResource.cs @@ -202,7 +202,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, ETag if try { var response = await _apiManagementSubscriptionSubscriptionRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch, cancellationToken).ConfigureAwait(false); - var operation = new ApiManagementArmOperation(response); + var uri = _apiManagementSubscriptionSubscriptionRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -245,7 +247,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, ETag ifMatch, Cancellati try { var response = _apiManagementSubscriptionSubscriptionRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch, cancellationToken); - var operation = new ApiManagementArmOperation(response); + var uri = _apiManagementSubscriptionSubscriptionRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementTagCollection.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementTagCollection.cs index ae354f611674..b90d5ca8af5a 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementTagCollection.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementTagCollection.cs @@ -92,7 +92,9 @@ public virtual async Task> CreateOrUpdate try { var response = await _apiManagementTagTagRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, tagId, content, ifMatch, cancellationToken).ConfigureAwait(false); - var operation = new ApiManagementArmOperation(Response.FromValue(new ApiManagementTagResource(Client, response), response.GetRawResponse())); + var uri = _apiManagementTagTagRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, tagId, content, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(Response.FromValue(new ApiManagementTagResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -142,7 +144,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil w try { var response = _apiManagementTagTagRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, tagId, content, ifMatch, cancellationToken); - var operation = new ApiManagementArmOperation(Response.FromValue(new ApiManagementTagResource(Client, response), response.GetRawResponse())); + var uri = _apiManagementTagTagRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, tagId, content, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(Response.FromValue(new ApiManagementTagResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementTagResource.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementTagResource.cs index a9fb3c013b44..be1919d0e79c 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementTagResource.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementTagResource.cs @@ -202,7 +202,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, ETag if try { var response = await _apiManagementTagTagRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch, cancellationToken).ConfigureAwait(false); - var operation = new ApiManagementArmOperation(response); + var uri = _apiManagementTagTagRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -245,7 +247,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, ETag ifMatch, Cancellati try { var response = _apiManagementTagTagRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch, cancellationToken); - var operation = new ApiManagementArmOperation(response); + var uri = _apiManagementTagTagRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementUserCollection.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementUserCollection.cs index 97cccf96e376..182585b38fb7 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementUserCollection.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementUserCollection.cs @@ -93,7 +93,9 @@ public virtual async Task> CreateOrUpdat try { var response = await _apiManagementUserUserRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, userId, content, notify, ifMatch, cancellationToken).ConfigureAwait(false); - var operation = new ApiManagementArmOperation(Response.FromValue(new ApiManagementUserResource(Client, response), response.GetRawResponse())); + var uri = _apiManagementUserUserRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, userId, content, notify, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(Response.FromValue(new ApiManagementUserResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -144,7 +146,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil try { var response = _apiManagementUserUserRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, userId, content, notify, ifMatch, cancellationToken); - var operation = new ApiManagementArmOperation(Response.FromValue(new ApiManagementUserResource(Client, response), response.GetRawResponse())); + var uri = _apiManagementUserUserRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, userId, content, notify, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(Response.FromValue(new ApiManagementUserResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementUserResource.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementUserResource.cs index 5e01fa1b4401..9dcb1941ad48 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementUserResource.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementUserResource.cs @@ -287,7 +287,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, ETag if try { var response = await _apiManagementUserUserRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch, deleteSubscriptions, notify, appType, cancellationToken).ConfigureAwait(false); - var operation = new ApiManagementArmOperation(response); + var uri = _apiManagementUserUserRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch, deleteSubscriptions, notify, appType); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -333,7 +335,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, ETag ifMatch, bool? dele try { var response = _apiManagementUserUserRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch, deleteSubscriptions, notify, appType, cancellationToken); - var operation = new ApiManagementArmOperation(response); + var uri = _apiManagementUserUserRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch, deleteSubscriptions, notify, appType); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiOperationCollection.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiOperationCollection.cs index 0bd54716fad9..8fbb612578a6 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiOperationCollection.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiOperationCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> CreateOrUpdateAsyn try { var response = await _apiOperationRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, operationId, data, ifMatch, cancellationToken).ConfigureAwait(false); - var operation = new ApiManagementArmOperation(Response.FromValue(new ApiOperationResource(Client, response), response.GetRawResponse())); + var uri = _apiOperationRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, operationId, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(Response.FromValue(new ApiOperationResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -141,7 +143,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitU try { var response = _apiOperationRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, operationId, data, ifMatch, cancellationToken); - var operation = new ApiManagementArmOperation(Response.FromValue(new ApiOperationResource(Client, response), response.GetRawResponse())); + var uri = _apiOperationRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, operationId, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(Response.FromValue(new ApiOperationResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiOperationPolicyCollection.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiOperationPolicyCollection.cs index d04a62ee22cf..9d1154851881 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiOperationPolicyCollection.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiOperationPolicyCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> CreateOrUpda try { var response = await _apiOperationPolicyRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, policyId, data, ifMatch, cancellationToken).ConfigureAwait(false); - var operation = new ApiManagementArmOperation(Response.FromValue(new ApiOperationPolicyResource(Client, response), response.GetRawResponse())); + var uri = _apiOperationPolicyRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, policyId, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(Response.FromValue(new ApiOperationPolicyResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -138,7 +140,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil try { var response = _apiOperationPolicyRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, policyId, data, ifMatch, cancellationToken); - var operation = new ApiManagementArmOperation(Response.FromValue(new ApiOperationPolicyResource(Client, response), response.GetRawResponse())); + var uri = _apiOperationPolicyRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, policyId, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(Response.FromValue(new ApiOperationPolicyResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiOperationPolicyResource.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiOperationPolicyResource.cs index 151ca640f65e..3b9817d68d9e 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiOperationPolicyResource.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiOperationPolicyResource.cs @@ -206,7 +206,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, ETag if try { var response = await _apiOperationPolicyRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, ifMatch, cancellationToken).ConfigureAwait(false); - var operation = new ApiManagementArmOperation(response); + var uri = _apiOperationPolicyRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -249,7 +251,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, ETag ifMatch, Cancellati try { var response = _apiOperationPolicyRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, ifMatch, cancellationToken); - var operation = new ApiManagementArmOperation(response); + var uri = _apiOperationPolicyRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -296,7 +300,9 @@ public virtual async Task> UpdateAsync( try { var response = await _apiOperationPolicyRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, ifMatch, cancellationToken).ConfigureAwait(false); - var operation = new ApiManagementArmOperation(Response.FromValue(new ApiOperationPolicyResource(Client, response), response.GetRawResponse())); + var uri = _apiOperationPolicyRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(Response.FromValue(new ApiOperationPolicyResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -343,7 +349,9 @@ public virtual ArmOperation Update(WaitUntil waitUnt try { var response = _apiOperationPolicyRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, ifMatch, cancellationToken); - var operation = new ApiManagementArmOperation(Response.FromValue(new ApiOperationPolicyResource(Client, response), response.GetRawResponse())); + var uri = _apiOperationPolicyRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(Response.FromValue(new ApiOperationPolicyResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiOperationResource.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiOperationResource.cs index 6616b86c9197..ade3b3ceccfb 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiOperationResource.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiOperationResource.cs @@ -339,7 +339,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, ETag if try { var response = await _apiOperationRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, ifMatch, cancellationToken).ConfigureAwait(false); - var operation = new ApiManagementArmOperation(response); + var uri = _apiOperationRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -382,7 +384,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, ETag ifMatch, Cancellati try { var response = _apiOperationRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, ifMatch, cancellationToken); - var operation = new ApiManagementArmOperation(response); + var uri = _apiOperationRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiOperationTagCollection.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiOperationTagCollection.cs index c3d07e14dc85..7a8a1a193128 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiOperationTagCollection.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiOperationTagCollection.cs @@ -88,7 +88,9 @@ public virtual async Task> CreateOrUpdateA try { var response = await _apiOperationTagTagRestClient.AssignToOperationAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, tagId, cancellationToken).ConfigureAwait(false); - var operation = new ApiManagementArmOperation(Response.FromValue(new ApiOperationTagResource(Client, response), response.GetRawResponse())); + var uri = _apiOperationTagTagRestClient.CreateAssignToOperationRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, tagId); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(Response.FromValue(new ApiOperationTagResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -135,7 +137,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wa try { var response = _apiOperationTagTagRestClient.AssignToOperation(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, tagId, cancellationToken); - var operation = new ApiManagementArmOperation(Response.FromValue(new ApiOperationTagResource(Client, response), response.GetRawResponse())); + var uri = _apiOperationTagTagRestClient.CreateAssignToOperationRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, tagId); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(Response.FromValue(new ApiOperationTagResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiOperationTagResource.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiOperationTagResource.cs index f0350d05bcb9..f17b14a09997 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiOperationTagResource.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiOperationTagResource.cs @@ -202,7 +202,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _apiOperationTagTagRestClient.DetachFromOperationAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new ApiManagementArmOperation(response); + var uri = _apiOperationTagTagRestClient.CreateDetachFromOperationRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -244,7 +246,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _apiOperationTagTagRestClient.DetachFromOperation(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new ApiManagementArmOperation(response); + var uri = _apiOperationTagTagRestClient.CreateDetachFromOperationRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -286,7 +290,9 @@ public virtual async Task> UpdateAsync(Wai try { var response = await _apiOperationTagTagRestClient.AssignToOperationAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new ApiManagementArmOperation(Response.FromValue(new ApiOperationTagResource(Client, response), response.GetRawResponse())); + var uri = _apiOperationTagTagRestClient.CreateAssignToOperationRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(Response.FromValue(new ApiOperationTagResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -328,7 +334,9 @@ public virtual ArmOperation Update(WaitUntil waitUntil, try { var response = _apiOperationTagTagRestClient.AssignToOperation(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new ApiManagementArmOperation(Response.FromValue(new ApiOperationTagResource(Client, response), response.GetRawResponse())); + var uri = _apiOperationTagTagRestClient.CreateAssignToOperationRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(Response.FromValue(new ApiOperationTagResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiPolicyCollection.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiPolicyCollection.cs index cdb4a63a7f17..58227f4b7212 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiPolicyCollection.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiPolicyCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> CreateOrUpdateAsync(W try { var response = await _apiPolicyRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, policyId, data, ifMatch, cancellationToken).ConfigureAwait(false); - var operation = new ApiManagementArmOperation(Response.FromValue(new ApiPolicyResource(Client, response), response.GetRawResponse())); + var uri = _apiPolicyRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, policyId, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(Response.FromValue(new ApiPolicyResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -138,7 +140,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUnti try { var response = _apiPolicyRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, policyId, data, ifMatch, cancellationToken); - var operation = new ApiManagementArmOperation(Response.FromValue(new ApiPolicyResource(Client, response), response.GetRawResponse())); + var uri = _apiPolicyRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, policyId, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(Response.FromValue(new ApiPolicyResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiPolicyResource.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiPolicyResource.cs index 04ae4312338c..f4f933575ad3 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiPolicyResource.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiPolicyResource.cs @@ -205,7 +205,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, ETag if try { var response = await _apiPolicyRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, ifMatch, cancellationToken).ConfigureAwait(false); - var operation = new ApiManagementArmOperation(response); + var uri = _apiPolicyRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -248,7 +250,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, ETag ifMatch, Cancellati try { var response = _apiPolicyRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, ifMatch, cancellationToken); - var operation = new ApiManagementArmOperation(response); + var uri = _apiPolicyRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -295,7 +299,9 @@ public virtual async Task> UpdateAsync(WaitUntil try { var response = await _apiPolicyRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, ifMatch, cancellationToken).ConfigureAwait(false); - var operation = new ApiManagementArmOperation(Response.FromValue(new ApiPolicyResource(Client, response), response.GetRawResponse())); + var uri = _apiPolicyRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(Response.FromValue(new ApiPolicyResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -342,7 +348,9 @@ public virtual ArmOperation Update(WaitUntil waitUntil, Polic try { var response = _apiPolicyRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, ifMatch, cancellationToken); - var operation = new ApiManagementArmOperation(Response.FromValue(new ApiPolicyResource(Client, response), response.GetRawResponse())); + var uri = _apiPolicyRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(Response.FromValue(new ApiPolicyResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiReleaseCollection.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiReleaseCollection.cs index 4a891e7adb28..9ab19ded5a92 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiReleaseCollection.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiReleaseCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> CreateOrUpdateAsync( try { var response = await _apiReleaseRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, releaseId, data, ifMatch, cancellationToken).ConfigureAwait(false); - var operation = new ApiManagementArmOperation(Response.FromValue(new ApiReleaseResource(Client, response), response.GetRawResponse())); + var uri = _apiReleaseRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, releaseId, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(Response.FromValue(new ApiReleaseResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -141,7 +143,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUnt try { var response = _apiReleaseRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, releaseId, data, ifMatch, cancellationToken); - var operation = new ApiManagementArmOperation(Response.FromValue(new ApiReleaseResource(Client, response), response.GetRawResponse())); + var uri = _apiReleaseRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, releaseId, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(Response.FromValue(new ApiReleaseResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiReleaseResource.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiReleaseResource.cs index 6ba48f24c981..05cacb6867b1 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiReleaseResource.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiReleaseResource.cs @@ -202,7 +202,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, ETag if try { var response = await _apiReleaseRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, ifMatch, cancellationToken).ConfigureAwait(false); - var operation = new ApiManagementArmOperation(response); + var uri = _apiReleaseRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -245,7 +247,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, ETag ifMatch, Cancellati try { var response = _apiReleaseRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, ifMatch, cancellationToken); - var operation = new ApiManagementArmOperation(response); + var uri = _apiReleaseRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiResource.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiResource.cs index 45e07f88b33a..125f9cc51131 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiResource.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiResource.cs @@ -768,7 +768,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, ETag if try { var response = await _apiRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch, deleteRevisions, cancellationToken).ConfigureAwait(false); - var operation = new ApiManagementArmOperation(response); + var uri = _apiRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch, deleteRevisions); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -812,7 +814,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, ETag ifMatch, bool? dele try { var response = _apiRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch, deleteRevisions, cancellationToken); - var operation = new ApiManagementArmOperation(response); + var uri = _apiRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch, deleteRevisions); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiSchemaResource.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiSchemaResource.cs index bfa46ec1cad7..90a91a9d6d84 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiSchemaResource.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiSchemaResource.cs @@ -203,7 +203,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, ETag if try { var response = await _apiSchemaRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, ifMatch, force, cancellationToken).ConfigureAwait(false); - var operation = new ApiManagementArmOperation(response); + var uri = _apiSchemaRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, ifMatch, force); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -247,7 +249,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, ETag ifMatch, bool? forc try { var response = _apiSchemaRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, ifMatch, force, cancellationToken); - var operation = new ApiManagementArmOperation(response); + var uri = _apiSchemaRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, ifMatch, force); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiTagCollection.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiTagCollection.cs index 8103e79f2ea5..ff0adee8bcdd 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiTagCollection.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiTagCollection.cs @@ -88,7 +88,9 @@ public virtual async Task> CreateOrUpdateAsync(Wait try { var response = await _apiTagTagRestClient.AssignToApiAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, tagId, cancellationToken).ConfigureAwait(false); - var operation = new ApiManagementArmOperation(Response.FromValue(new ApiTagResource(Client, response), response.GetRawResponse())); + var uri = _apiTagTagRestClient.CreateAssignToApiRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, tagId); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(Response.FromValue(new ApiTagResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -135,7 +137,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, try { var response = _apiTagTagRestClient.AssignToApi(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, tagId, cancellationToken); - var operation = new ApiManagementArmOperation(Response.FromValue(new ApiTagResource(Client, response), response.GetRawResponse())); + var uri = _apiTagTagRestClient.CreateAssignToApiRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, tagId); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(Response.FromValue(new ApiTagResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiTagDescriptionCollection.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiTagDescriptionCollection.cs index 7573832d5590..c18711de6dc0 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiTagDescriptionCollection.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiTagDescriptionCollection.cs @@ -92,7 +92,9 @@ public virtual async Task> CreateOrUpdat try { var response = await _apiTagDescriptionRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, tagDescriptionId, content, ifMatch, cancellationToken).ConfigureAwait(false); - var operation = new ApiManagementArmOperation(Response.FromValue(new ApiTagDescriptionResource(Client, response), response.GetRawResponse())); + var uri = _apiTagDescriptionRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, tagDescriptionId, content, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(Response.FromValue(new ApiTagDescriptionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -142,7 +144,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil try { var response = _apiTagDescriptionRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, tagDescriptionId, content, ifMatch, cancellationToken); - var operation = new ApiManagementArmOperation(Response.FromValue(new ApiTagDescriptionResource(Client, response), response.GetRawResponse())); + var uri = _apiTagDescriptionRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, tagDescriptionId, content, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(Response.FromValue(new ApiTagDescriptionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiTagDescriptionResource.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiTagDescriptionResource.cs index 0508f6e053b5..dffa9d9e697e 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiTagDescriptionResource.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiTagDescriptionResource.cs @@ -203,7 +203,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, ETag if try { var response = await _apiTagDescriptionRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, ifMatch, cancellationToken).ConfigureAwait(false); - var operation = new ApiManagementArmOperation(response); + var uri = _apiTagDescriptionRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -246,7 +248,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, ETag ifMatch, Cancellati try { var response = _apiTagDescriptionRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, ifMatch, cancellationToken); - var operation = new ApiManagementArmOperation(response); + var uri = _apiTagDescriptionRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -293,7 +297,9 @@ public virtual async Task> UpdateAsync(W try { var response = await _apiTagDescriptionRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content, ifMatch, cancellationToken).ConfigureAwait(false); - var operation = new ApiManagementArmOperation(Response.FromValue(new ApiTagDescriptionResource(Client, response), response.GetRawResponse())); + var uri = _apiTagDescriptionRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(Response.FromValue(new ApiTagDescriptionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -340,7 +346,9 @@ public virtual ArmOperation Update(WaitUntil waitUnti try { var response = _apiTagDescriptionRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content, ifMatch, cancellationToken); - var operation = new ApiManagementArmOperation(Response.FromValue(new ApiTagDescriptionResource(Client, response), response.GetRawResponse())); + var uri = _apiTagDescriptionRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(Response.FromValue(new ApiTagDescriptionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiTagResource.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiTagResource.cs index 05656b4f3472..6fe6645ff3f1 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiTagResource.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiTagResource.cs @@ -201,7 +201,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _apiTagTagRestClient.DetachFromApiAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new ApiManagementArmOperation(response); + var uri = _apiTagTagRestClient.CreateDetachFromApiRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -243,7 +245,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _apiTagTagRestClient.DetachFromApi(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new ApiManagementArmOperation(response); + var uri = _apiTagTagRestClient.CreateDetachFromApiRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -285,7 +289,9 @@ public virtual async Task> UpdateAsync(WaitUntil wa try { var response = await _apiTagTagRestClient.AssignToApiAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new ApiManagementArmOperation(Response.FromValue(new ApiTagResource(Client, response), response.GetRawResponse())); + var uri = _apiTagTagRestClient.CreateAssignToApiRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(Response.FromValue(new ApiTagResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -327,7 +333,9 @@ public virtual ArmOperation Update(WaitUntil waitUntil, Cancella try { var response = _apiTagTagRestClient.AssignToApi(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new ApiManagementArmOperation(Response.FromValue(new ApiTagResource(Client, response), response.GetRawResponse())); + var uri = _apiTagTagRestClient.CreateAssignToApiRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(Response.FromValue(new ApiTagResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiVersionSetCollection.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiVersionSetCollection.cs index c23d8a6ede1f..630d3fdcf351 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiVersionSetCollection.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiVersionSetCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> CreateOrUpdateAsy try { var response = await _apiVersionSetRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, versionSetId, data, ifMatch, cancellationToken).ConfigureAwait(false); - var operation = new ApiManagementArmOperation(Response.FromValue(new ApiVersionSetResource(Client, response), response.GetRawResponse())); + var uri = _apiVersionSetRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, versionSetId, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(Response.FromValue(new ApiVersionSetResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -141,7 +143,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wait try { var response = _apiVersionSetRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, versionSetId, data, ifMatch, cancellationToken); - var operation = new ApiManagementArmOperation(Response.FromValue(new ApiVersionSetResource(Client, response), response.GetRawResponse())); + var uri = _apiVersionSetRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, versionSetId, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(Response.FromValue(new ApiVersionSetResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiVersionSetResource.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiVersionSetResource.cs index 95611d5cbd16..bf3ce5ed204e 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiVersionSetResource.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiVersionSetResource.cs @@ -202,7 +202,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, ETag if try { var response = await _apiVersionSetRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch, cancellationToken).ConfigureAwait(false); - var operation = new ApiManagementArmOperation(response); + var uri = _apiVersionSetRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -245,7 +247,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, ETag ifMatch, Cancellati try { var response = _apiVersionSetRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch, cancellationToken); - var operation = new ApiManagementArmOperation(response); + var uri = _apiVersionSetRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/LongRunningOperation/ApiManagementArmOperation.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/LongRunningOperation/ApiManagementArmOperation.cs index 02732b9462cd..34be2543cc5e 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/LongRunningOperation/ApiManagementArmOperation.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/LongRunningOperation/ApiManagementArmOperation.cs @@ -20,21 +20,24 @@ internal class ApiManagementArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of ApiManagementArmOperation for mocking. protected ApiManagementArmOperation() { } - internal ApiManagementArmOperation(Response response) + internal ApiManagementArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal ApiManagementArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "ApiManagementArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal ApiManagementArmOperation(ClientDiagnostics clientDiagnostics, HttpPipe public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/LongRunningOperation/ApiManagementArmOperationOfT.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/LongRunningOperation/ApiManagementArmOperationOfT.cs index 2d2cacc7665a..f19ba31b21b4 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/LongRunningOperation/ApiManagementArmOperationOfT.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/LongRunningOperation/ApiManagementArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class ApiManagementArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of ApiManagementArmOperation for mocking. protected ApiManagementArmOperation() { } - internal ApiManagementArmOperation(Response response) + internal ApiManagementArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal ApiManagementArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "ApiManagementArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal ApiManagementArmOperation(IOperationSource source, ClientDiagnostics public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiDiagnosticResource.Serialization.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiDiagnosticResource.Serialization.cs new file mode 100644 index 000000000000..24c0670d1f15 --- /dev/null +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiDiagnosticResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ApiManagement +{ + public partial class ApiDiagnosticResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DiagnosticContractData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DiagnosticContractData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiIssueAttachmentResource.Serialization.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiIssueAttachmentResource.Serialization.cs new file mode 100644 index 000000000000..97e93cb6737d --- /dev/null +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiIssueAttachmentResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ApiManagement +{ + public partial class ApiIssueAttachmentResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ApiIssueAttachmentData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ApiIssueAttachmentData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiIssueCommentResource.Serialization.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiIssueCommentResource.Serialization.cs new file mode 100644 index 000000000000..3c5408abbcb8 --- /dev/null +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiIssueCommentResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ApiManagement +{ + public partial class ApiIssueCommentResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ApiIssueCommentData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ApiIssueCommentData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiIssueResource.Serialization.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiIssueResource.Serialization.cs new file mode 100644 index 000000000000..fcfcf06ce2b9 --- /dev/null +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiIssueResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ApiManagement +{ + public partial class ApiIssueResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + IssueContractData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + IssueContractData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementAuthorizationServerResource.Serialization.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementAuthorizationServerResource.Serialization.cs new file mode 100644 index 000000000000..4dd8329061c8 --- /dev/null +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementAuthorizationServerResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ApiManagement +{ + public partial class ApiManagementAuthorizationServerResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ApiManagementAuthorizationServerData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ApiManagementAuthorizationServerData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementBackendResource.Serialization.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementBackendResource.Serialization.cs new file mode 100644 index 000000000000..b746e10f917d --- /dev/null +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementBackendResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ApiManagement +{ + public partial class ApiManagementBackendResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ApiManagementBackendData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ApiManagementBackendData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementCacheResource.Serialization.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementCacheResource.Serialization.cs new file mode 100644 index 000000000000..48d5a342d07d --- /dev/null +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementCacheResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ApiManagement +{ + public partial class ApiManagementCacheResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ApiManagementCacheData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ApiManagementCacheData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementCertificateResource.Serialization.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementCertificateResource.Serialization.cs new file mode 100644 index 000000000000..46741bf5d9cd --- /dev/null +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementCertificateResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ApiManagement +{ + public partial class ApiManagementCertificateResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ApiManagementCertificateData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ApiManagementCertificateData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementDeletedServiceResource.Serialization.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementDeletedServiceResource.Serialization.cs new file mode 100644 index 000000000000..6a9902be3961 --- /dev/null +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementDeletedServiceResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ApiManagement +{ + public partial class ApiManagementDeletedServiceResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ApiManagementDeletedServiceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ApiManagementDeletedServiceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementDiagnosticResource.Serialization.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementDiagnosticResource.Serialization.cs new file mode 100644 index 000000000000..7472ec30afd7 --- /dev/null +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementDiagnosticResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ApiManagement +{ + public partial class ApiManagementDiagnosticResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DiagnosticContractData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DiagnosticContractData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementEmailTemplateResource.Serialization.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementEmailTemplateResource.Serialization.cs new file mode 100644 index 000000000000..fbeed4f0a19a --- /dev/null +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementEmailTemplateResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ApiManagement +{ + public partial class ApiManagementEmailTemplateResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ApiManagementEmailTemplateData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ApiManagementEmailTemplateData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementGatewayCertificateAuthorityResource.Serialization.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementGatewayCertificateAuthorityResource.Serialization.cs new file mode 100644 index 000000000000..5d24637f056e --- /dev/null +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementGatewayCertificateAuthorityResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ApiManagement +{ + public partial class ApiManagementGatewayCertificateAuthorityResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ApiManagementGatewayCertificateAuthorityData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ApiManagementGatewayCertificateAuthorityData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementGatewayHostnameConfigurationResource.Serialization.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementGatewayHostnameConfigurationResource.Serialization.cs new file mode 100644 index 000000000000..db314071a832 --- /dev/null +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementGatewayHostnameConfigurationResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ApiManagement +{ + public partial class ApiManagementGatewayHostnameConfigurationResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ApiManagementGatewayHostnameConfigurationData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ApiManagementGatewayHostnameConfigurationData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementGatewayResource.Serialization.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementGatewayResource.Serialization.cs new file mode 100644 index 000000000000..04985b02c79e --- /dev/null +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementGatewayResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ApiManagement +{ + public partial class ApiManagementGatewayResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ApiManagementGatewayData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ApiManagementGatewayData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementGlobalSchemaResource.Serialization.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementGlobalSchemaResource.Serialization.cs new file mode 100644 index 000000000000..19988108849b --- /dev/null +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementGlobalSchemaResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ApiManagement +{ + public partial class ApiManagementGlobalSchemaResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ApiManagementGlobalSchemaData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ApiManagementGlobalSchemaData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementGroupResource.Serialization.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementGroupResource.Serialization.cs new file mode 100644 index 000000000000..201f9ac56bb0 --- /dev/null +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementGroupResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ApiManagement +{ + public partial class ApiManagementGroupResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ApiManagementGroupData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ApiManagementGroupData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementIdentityProviderResource.Serialization.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementIdentityProviderResource.Serialization.cs new file mode 100644 index 000000000000..40de73fe23c6 --- /dev/null +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementIdentityProviderResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ApiManagement +{ + public partial class ApiManagementIdentityProviderResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ApiManagementIdentityProviderData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ApiManagementIdentityProviderData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementIssueResource.Serialization.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementIssueResource.Serialization.cs new file mode 100644 index 000000000000..e07ef26796c3 --- /dev/null +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementIssueResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ApiManagement +{ + public partial class ApiManagementIssueResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + IssueContractData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + IssueContractData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementLoggerResource.Serialization.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementLoggerResource.Serialization.cs new file mode 100644 index 000000000000..79b2a22ffa23 --- /dev/null +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementLoggerResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ApiManagement +{ + public partial class ApiManagementLoggerResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ApiManagementLoggerData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ApiManagementLoggerData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementNamedValueResource.Serialization.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementNamedValueResource.Serialization.cs new file mode 100644 index 000000000000..304a46e079dc --- /dev/null +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementNamedValueResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ApiManagement +{ + public partial class ApiManagementNamedValueResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ApiManagementNamedValueData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ApiManagementNamedValueData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementNotificationResource.Serialization.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementNotificationResource.Serialization.cs new file mode 100644 index 000000000000..67b6b34b102c --- /dev/null +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementNotificationResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ApiManagement +{ + public partial class ApiManagementNotificationResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ApiManagementNotificationData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ApiManagementNotificationData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementOpenIdConnectProviderResource.Serialization.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementOpenIdConnectProviderResource.Serialization.cs new file mode 100644 index 000000000000..986438ed5f75 --- /dev/null +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementOpenIdConnectProviderResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ApiManagement +{ + public partial class ApiManagementOpenIdConnectProviderResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ApiManagementOpenIdConnectProviderData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ApiManagementOpenIdConnectProviderData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementPolicyResource.Serialization.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementPolicyResource.Serialization.cs new file mode 100644 index 000000000000..de4e5c0bdbcb --- /dev/null +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementPolicyResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ApiManagement +{ + public partial class ApiManagementPolicyResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + PolicyContractData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + PolicyContractData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementPortalDelegationSettingResource.Serialization.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementPortalDelegationSettingResource.Serialization.cs new file mode 100644 index 000000000000..84ec8145d2ee --- /dev/null +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementPortalDelegationSettingResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ApiManagement +{ + public partial class ApiManagementPortalDelegationSettingResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ApiManagementPortalDelegationSettingData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ApiManagementPortalDelegationSettingData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementPortalRevisionResource.Serialization.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementPortalRevisionResource.Serialization.cs new file mode 100644 index 000000000000..98a0be54605b --- /dev/null +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementPortalRevisionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ApiManagement +{ + public partial class ApiManagementPortalRevisionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ApiManagementPortalRevisionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ApiManagementPortalRevisionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementPortalSignInSettingResource.Serialization.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementPortalSignInSettingResource.Serialization.cs new file mode 100644 index 000000000000..6327f4b10cfb --- /dev/null +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementPortalSignInSettingResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ApiManagement +{ + public partial class ApiManagementPortalSignInSettingResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ApiManagementPortalSignInSettingData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ApiManagementPortalSignInSettingData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementPortalSignUpSettingResource.Serialization.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementPortalSignUpSettingResource.Serialization.cs new file mode 100644 index 000000000000..7cd75e40feaa --- /dev/null +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementPortalSignUpSettingResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ApiManagement +{ + public partial class ApiManagementPortalSignUpSettingResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ApiManagementPortalSignUpSettingData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ApiManagementPortalSignUpSettingData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementPrivateEndpointConnectionResource.Serialization.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementPrivateEndpointConnectionResource.Serialization.cs new file mode 100644 index 000000000000..fc27265f9e05 --- /dev/null +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementPrivateEndpointConnectionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ApiManagement +{ + public partial class ApiManagementPrivateEndpointConnectionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ApiManagementPrivateEndpointConnectionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ApiManagementPrivateEndpointConnectionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementPrivateLinkResource.Serialization.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementPrivateLinkResource.Serialization.cs new file mode 100644 index 000000000000..158800519c83 --- /dev/null +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementPrivateLinkResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ApiManagement +{ + public partial class ApiManagementPrivateLinkResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ApiManagementPrivateLinkResourceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ApiManagementPrivateLinkResourceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementProductPolicyResource.Serialization.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementProductPolicyResource.Serialization.cs new file mode 100644 index 000000000000..501bee51c025 --- /dev/null +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementProductPolicyResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ApiManagement +{ + public partial class ApiManagementProductPolicyResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + PolicyContractData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + PolicyContractData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementProductResource.Serialization.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementProductResource.Serialization.cs new file mode 100644 index 000000000000..61dc8d3890d7 --- /dev/null +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementProductResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ApiManagement +{ + public partial class ApiManagementProductResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ApiManagementProductData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ApiManagementProductData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementProductTagResource.Serialization.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementProductTagResource.Serialization.cs new file mode 100644 index 000000000000..d23c0105ba7f --- /dev/null +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementProductTagResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ApiManagement +{ + public partial class ApiManagementProductTagResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + TagContractData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + TagContractData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementServiceResource.Serialization.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementServiceResource.Serialization.cs new file mode 100644 index 000000000000..3e2bad01f93e --- /dev/null +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementServiceResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ApiManagement +{ + public partial class ApiManagementServiceResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ApiManagementServiceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ApiManagementServiceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementSubscriptionResource.Serialization.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementSubscriptionResource.Serialization.cs new file mode 100644 index 000000000000..1dd7a3fecacd --- /dev/null +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementSubscriptionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ApiManagement +{ + public partial class ApiManagementSubscriptionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SubscriptionContractData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SubscriptionContractData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementTagResource.Serialization.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementTagResource.Serialization.cs new file mode 100644 index 000000000000..08515bbbde35 --- /dev/null +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementTagResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ApiManagement +{ + public partial class ApiManagementTagResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + TagContractData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + TagContractData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementTenantSettingResource.Serialization.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementTenantSettingResource.Serialization.cs new file mode 100644 index 000000000000..abf497b20626 --- /dev/null +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementTenantSettingResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ApiManagement +{ + public partial class ApiManagementTenantSettingResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ApiManagementTenantSettingData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ApiManagementTenantSettingData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementUserResource.Serialization.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementUserResource.Serialization.cs new file mode 100644 index 000000000000..f635599ce0ad --- /dev/null +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementUserResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ApiManagement +{ + public partial class ApiManagementUserResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + UserContractData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + UserContractData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementUserSubscriptionResource.Serialization.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementUserSubscriptionResource.Serialization.cs new file mode 100644 index 000000000000..25b5de805c76 --- /dev/null +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementUserSubscriptionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ApiManagement +{ + public partial class ApiManagementUserSubscriptionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SubscriptionContractData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SubscriptionContractData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiOperationPolicyResource.Serialization.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiOperationPolicyResource.Serialization.cs new file mode 100644 index 000000000000..624226ebbf77 --- /dev/null +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiOperationPolicyResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ApiManagement +{ + public partial class ApiOperationPolicyResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + PolicyContractData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + PolicyContractData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiOperationResource.Serialization.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiOperationResource.Serialization.cs new file mode 100644 index 000000000000..bedd92d9e9db --- /dev/null +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiOperationResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ApiManagement +{ + public partial class ApiOperationResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ApiOperationData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ApiOperationData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiOperationTagResource.Serialization.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiOperationTagResource.Serialization.cs new file mode 100644 index 000000000000..b991557285d0 --- /dev/null +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiOperationTagResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ApiManagement +{ + public partial class ApiOperationTagResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + TagContractData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + TagContractData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiPolicyResource.Serialization.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiPolicyResource.Serialization.cs new file mode 100644 index 000000000000..a11635ffafbe --- /dev/null +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiPolicyResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ApiManagement +{ + public partial class ApiPolicyResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + PolicyContractData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + PolicyContractData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiReleaseResource.Serialization.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiReleaseResource.Serialization.cs new file mode 100644 index 000000000000..0b0ddefdbb7e --- /dev/null +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiReleaseResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ApiManagement +{ + public partial class ApiReleaseResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ApiReleaseData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ApiReleaseData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiResource.Serialization.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiResource.Serialization.cs new file mode 100644 index 000000000000..62c8610a8751 --- /dev/null +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ApiManagement +{ + public partial class ApiResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ApiData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ApiData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiSchemaResource.Serialization.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiSchemaResource.Serialization.cs new file mode 100644 index 000000000000..b1b544b292cc --- /dev/null +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiSchemaResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ApiManagement +{ + public partial class ApiSchemaResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ApiSchemaData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ApiSchemaData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiTagDescriptionResource.Serialization.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiTagDescriptionResource.Serialization.cs new file mode 100644 index 000000000000..6de880483d24 --- /dev/null +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiTagDescriptionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ApiManagement +{ + public partial class ApiTagDescriptionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ApiTagDescriptionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ApiTagDescriptionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiTagResource.Serialization.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiTagResource.Serialization.cs new file mode 100644 index 000000000000..3c91d7c7bed2 --- /dev/null +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiTagResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ApiManagement +{ + public partial class ApiTagResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + TagContractData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + TagContractData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiVersionSetResource.Serialization.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiVersionSetResource.Serialization.cs new file mode 100644 index 000000000000..1bb73c6f1d4a --- /dev/null +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiVersionSetResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ApiManagement +{ + public partial class ApiVersionSetResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ApiVersionSetData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ApiVersionSetData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/TenantAccessInfoResource.Serialization.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/TenantAccessInfoResource.Serialization.cs new file mode 100644 index 000000000000..b5274b802449 --- /dev/null +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/TenantAccessInfoResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ApiManagement +{ + public partial class TenantAccessInfoResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + TenantAccessInfoData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + TenantAccessInfoData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/ApiDiagnosticRestOperations.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/ApiDiagnosticRestOperations.cs index db864985bfcc..e51aa3029587 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/ApiDiagnosticRestOperations.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/ApiDiagnosticRestOperations.cs @@ -37,6 +37,35 @@ public ApiDiagnosticRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByServiceRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string filter, int? top, int? skip) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apis/", false); + uri.AppendPath(apiId, true); + uri.AppendPath("/diagnostics", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skip != null) + { + uri.AppendQuery("$skip", skip.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByServiceRequest(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string filter, int? top, int? skip) { var message = _pipeline.CreateMessage(); @@ -140,6 +169,24 @@ public Response ListByService(string subscriptionId, strin } } + internal RequestUriBuilder CreateGetEntityTagRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string diagnosticId) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apis/", false); + uri.AppendPath(apiId, true); + uri.AppendPath("/diagnostics/", false); + uri.AppendPath(diagnosticId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetEntityTagRequest(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string diagnosticId) { var message = _pipeline.CreateMessage(); @@ -236,6 +283,24 @@ public Response GetEntityTag(string subscriptionId, string resourceGroupNa } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string diagnosticId) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apis/", false); + uri.AppendPath(apiId, true); + uri.AppendPath("/diagnostics/", false); + uri.AppendPath(diagnosticId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string diagnosticId) { var message = _pipeline.CreateMessage(); @@ -330,6 +395,24 @@ public Response Get(string subscriptionId, string resour } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string diagnosticId, DiagnosticContractData data, ETag? ifMatch) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apis/", false); + uri.AppendPath(apiId, true); + uri.AppendPath("/diagnostics/", false); + uri.AppendPath(diagnosticId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string diagnosticId, DiagnosticContractData data, ETag? ifMatch) { var message = _pipeline.CreateMessage(); @@ -436,6 +519,24 @@ public Response CreateOrUpdate(string subscriptionId, st } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string diagnosticId, ETag ifMatch, DiagnosticContractData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apis/", false); + uri.AppendPath(apiId, true); + uri.AppendPath("/diagnostics/", false); + uri.AppendPath(diagnosticId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string diagnosticId, ETag ifMatch, DiagnosticContractData data) { var message = _pipeline.CreateMessage(); @@ -537,6 +638,24 @@ public Response Update(string subscriptionId, string res } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string diagnosticId, ETag ifMatch) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apis/", false); + uri.AppendPath(apiId, true); + uri.AppendPath("/diagnostics/", false); + uri.AppendPath(diagnosticId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string diagnosticId, ETag ifMatch) { var message = _pipeline.CreateMessage(); @@ -622,6 +741,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListByServiceNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string apiId, string filter, int? top, int? skip) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByServiceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string apiId, string filter, int? top, int? skip) { var message = _pipeline.CreateMessage(); diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/ApiIssueAttachmentRestOperations.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/ApiIssueAttachmentRestOperations.cs index 64f94382dd4e..dae090ca277c 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/ApiIssueAttachmentRestOperations.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/ApiIssueAttachmentRestOperations.cs @@ -37,6 +37,37 @@ public ApiIssueAttachmentRestOperations(HttpPipeline pipeline, string applicatio _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByServiceRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string issueId, string filter, int? top, int? skip) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apis/", false); + uri.AppendPath(apiId, true); + uri.AppendPath("/issues/", false); + uri.AppendPath(issueId, true); + uri.AppendPath("/attachments", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skip != null) + { + uri.AppendQuery("$skip", skip.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByServiceRequest(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string issueId, string filter, int? top, int? skip) { var message = _pipeline.CreateMessage(); @@ -146,6 +177,26 @@ public Response ListByService(string subscriptionId, } } + internal RequestUriBuilder CreateGetEntityTagRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string issueId, string attachmentId) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apis/", false); + uri.AppendPath(apiId, true); + uri.AppendPath("/issues/", false); + uri.AppendPath(issueId, true); + uri.AppendPath("/attachments/", false); + uri.AppendPath(attachmentId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetEntityTagRequest(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string issueId, string attachmentId) { var message = _pipeline.CreateMessage(); @@ -248,6 +299,26 @@ public Response GetEntityTag(string subscriptionId, string resourceGroupNa } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string issueId, string attachmentId) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apis/", false); + uri.AppendPath(apiId, true); + uri.AppendPath("/issues/", false); + uri.AppendPath(issueId, true); + uri.AppendPath("/attachments/", false); + uri.AppendPath(attachmentId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string issueId, string attachmentId) { var message = _pipeline.CreateMessage(); @@ -348,6 +419,26 @@ public Response Get(string subscriptionId, string resour } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string issueId, string attachmentId, ApiIssueAttachmentData data, ETag? ifMatch) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apis/", false); + uri.AppendPath(apiId, true); + uri.AppendPath("/issues/", false); + uri.AppendPath(issueId, true); + uri.AppendPath("/attachments/", false); + uri.AppendPath(attachmentId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string issueId, string attachmentId, ApiIssueAttachmentData data, ETag? ifMatch) { var message = _pipeline.CreateMessage(); @@ -460,6 +551,26 @@ public Response CreateOrUpdate(string subscriptionId, st } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string issueId, string attachmentId, ETag ifMatch) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apis/", false); + uri.AppendPath(apiId, true); + uri.AppendPath("/issues/", false); + uri.AppendPath(issueId, true); + uri.AppendPath("/attachments/", false); + uri.AppendPath(attachmentId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string issueId, string attachmentId, ETag ifMatch) { var message = _pipeline.CreateMessage(); @@ -551,6 +662,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListByServiceNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string apiId, string issueId, string filter, int? top, int? skip) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByServiceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string apiId, string issueId, string filter, int? top, int? skip) { var message = _pipeline.CreateMessage(); diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/ApiIssueCommentRestOperations.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/ApiIssueCommentRestOperations.cs index f03fe5ed7a03..16302fee2075 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/ApiIssueCommentRestOperations.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/ApiIssueCommentRestOperations.cs @@ -37,6 +37,37 @@ public ApiIssueCommentRestOperations(HttpPipeline pipeline, string applicationId _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByServiceRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string issueId, string filter, int? top, int? skip) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apis/", false); + uri.AppendPath(apiId, true); + uri.AppendPath("/issues/", false); + uri.AppendPath(issueId, true); + uri.AppendPath("/comments", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skip != null) + { + uri.AppendQuery("$skip", skip.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByServiceRequest(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string issueId, string filter, int? top, int? skip) { var message = _pipeline.CreateMessage(); @@ -146,6 +177,26 @@ public Response ListByService(string subscriptionId, str } } + internal RequestUriBuilder CreateGetEntityTagRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string issueId, string commentId) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apis/", false); + uri.AppendPath(apiId, true); + uri.AppendPath("/issues/", false); + uri.AppendPath(issueId, true); + uri.AppendPath("/comments/", false); + uri.AppendPath(commentId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetEntityTagRequest(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string issueId, string commentId) { var message = _pipeline.CreateMessage(); @@ -248,6 +299,26 @@ public Response GetEntityTag(string subscriptionId, string resourceGroupNa } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string issueId, string commentId) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apis/", false); + uri.AppendPath(apiId, true); + uri.AppendPath("/issues/", false); + uri.AppendPath(issueId, true); + uri.AppendPath("/comments/", false); + uri.AppendPath(commentId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string issueId, string commentId) { var message = _pipeline.CreateMessage(); @@ -348,6 +419,26 @@ public Response Get(string subscriptionId, string resourceG } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string issueId, string commentId, ApiIssueCommentData data, ETag? ifMatch) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apis/", false); + uri.AppendPath(apiId, true); + uri.AppendPath("/issues/", false); + uri.AppendPath(issueId, true); + uri.AppendPath("/comments/", false); + uri.AppendPath(commentId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string issueId, string commentId, ApiIssueCommentData data, ETag? ifMatch) { var message = _pipeline.CreateMessage(); @@ -460,6 +551,26 @@ public Response CreateOrUpdate(string subscriptionId, strin } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string issueId, string commentId, ETag ifMatch) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apis/", false); + uri.AppendPath(apiId, true); + uri.AppendPath("/issues/", false); + uri.AppendPath(issueId, true); + uri.AppendPath("/comments/", false); + uri.AppendPath(commentId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string issueId, string commentId, ETag ifMatch) { var message = _pipeline.CreateMessage(); @@ -551,6 +662,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListByServiceNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string apiId, string issueId, string filter, int? top, int? skip) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByServiceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string apiId, string issueId, string filter, int? top, int? skip) { var message = _pipeline.CreateMessage(); diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/ApiIssueRestOperations.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/ApiIssueRestOperations.cs index f6ead96eb010..000bb086bd74 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/ApiIssueRestOperations.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/ApiIssueRestOperations.cs @@ -37,6 +37,39 @@ public ApiIssueRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByServiceRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string filter, bool? expandCommentsAttachments, int? top, int? skip) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apis/", false); + uri.AppendPath(apiId, true); + uri.AppendPath("/issues", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (expandCommentsAttachments != null) + { + uri.AppendQuery("expandCommentsAttachments", expandCommentsAttachments.Value, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skip != null) + { + uri.AppendQuery("$skip", skip.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByServiceRequest(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string filter, bool? expandCommentsAttachments, int? top, int? skip) { var message = _pipeline.CreateMessage(); @@ -146,6 +179,24 @@ public Response ListByService(string subscriptionId, string res } } + internal RequestUriBuilder CreateGetEntityTagRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string issueId) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apis/", false); + uri.AppendPath(apiId, true); + uri.AppendPath("/issues/", false); + uri.AppendPath(issueId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetEntityTagRequest(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string issueId) { var message = _pipeline.CreateMessage(); @@ -242,6 +293,28 @@ public Response GetEntityTag(string subscriptionId, string resourceGroupNa } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string issueId, bool? expandCommentsAttachments) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apis/", false); + uri.AppendPath(apiId, true); + uri.AppendPath("/issues/", false); + uri.AppendPath(issueId, true); + if (expandCommentsAttachments != null) + { + uri.AppendQuery("expandCommentsAttachments", expandCommentsAttachments.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string issueId, bool? expandCommentsAttachments) { var message = _pipeline.CreateMessage(); @@ -342,6 +415,24 @@ public Response Get(string subscriptionId, string resourceGro } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string issueId, IssueContractData data, ETag? ifMatch) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apis/", false); + uri.AppendPath(apiId, true); + uri.AppendPath("/issues/", false); + uri.AppendPath(issueId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string issueId, IssueContractData data, ETag? ifMatch) { var message = _pipeline.CreateMessage(); @@ -448,6 +539,24 @@ public Response CreateOrUpdate(string subscriptionId, string } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string issueId, ETag ifMatch, ApiIssuePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apis/", false); + uri.AppendPath(apiId, true); + uri.AppendPath("/issues/", false); + uri.AppendPath(issueId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string issueId, ETag ifMatch, ApiIssuePatch patch) { var message = _pipeline.CreateMessage(); @@ -549,6 +658,24 @@ public Response Update(string subscriptionId, string resource } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string issueId, ETag ifMatch) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apis/", false); + uri.AppendPath(apiId, true); + uri.AppendPath("/issues/", false); + uri.AppendPath(issueId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string issueId, ETag ifMatch) { var message = _pipeline.CreateMessage(); @@ -634,6 +761,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListByServiceNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string apiId, string filter, bool? expandCommentsAttachments, int? top, int? skip) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByServiceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string apiId, string filter, bool? expandCommentsAttachments, int? top, int? skip) { var message = _pipeline.CreateMessage(); diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/ApiManagementRestOperations.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/ApiManagementRestOperations.cs index 2a96fc8ab6a7..788bb8f3f81f 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/ApiManagementRestOperations.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/ApiManagementRestOperations.cs @@ -36,6 +36,21 @@ public ApiManagementRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreatePerformConnectivityCheckAsyncRequestUri(string subscriptionId, string resourceGroupName, string serviceName, ConnectivityCheckContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/connectivityCheck", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreatePerformConnectivityCheckAsyncRequest(string subscriptionId, string resourceGroupName, string serviceName, ConnectivityCheckContent content) { var message = _pipeline.CreateMessage(); diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/ApiManagementServiceRestOperations.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/ApiManagementServiceRestOperations.cs index c54b5fe7924d..f22df4a8994b 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/ApiManagementServiceRestOperations.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/ApiManagementServiceRestOperations.cs @@ -37,6 +37,21 @@ public ApiManagementServiceRestOperations(HttpPipeline pipeline, string applicat _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateRestoreRequestUri(string subscriptionId, string resourceGroupName, string serviceName, ApiManagementServiceBackupRestoreContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/restore", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRestoreRequest(string subscriptionId, string resourceGroupName, string serviceName, ApiManagementServiceBackupRestoreContent content) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,21 @@ public Response Restore(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreateBackupRequestUri(string subscriptionId, string resourceGroupName, string serviceName, ApiManagementServiceBackupRestoreContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/backup", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateBackupRequest(string subscriptionId, string resourceGroupName, string serviceName, ApiManagementServiceBackupRestoreContent content) { var message = _pipeline.CreateMessage(); @@ -195,6 +225,20 @@ public Response Backup(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serviceName, ApiManagementServiceData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serviceName, ApiManagementServiceData data) { var message = _pipeline.CreateMessage(); @@ -275,6 +319,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string serviceName, ApiManagementServicePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string serviceName, ApiManagementServicePatch patch) { var message = _pipeline.CreateMessage(); @@ -353,6 +411,20 @@ public Response Update(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serviceName) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serviceName) { var message = _pipeline.CreateMessage(); @@ -435,6 +507,20 @@ public Response Get(string subscriptionId, string reso } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string serviceName) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string serviceName) { var message = _pipeline.CreateMessage(); @@ -507,6 +593,19 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.ApiManagement/service", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -580,6 +679,17 @@ public Response ListByResourceGroup(string subsc } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ApiManagement/service", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -647,6 +757,21 @@ public Response List(string subscriptionId, Canc } } + internal RequestUriBuilder CreateGetSsoTokenRequestUri(string subscriptionId, string resourceGroupName, string serviceName) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/getssotoken", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetSsoTokenRequest(string subscriptionId, string resourceGroupName, string serviceName) { var message = _pipeline.CreateMessage(); @@ -726,6 +851,17 @@ public Response GetSsoToken(string subscr } } + internal RequestUriBuilder CreateCheckNameAvailabilityRequestUri(string subscriptionId, ApiManagementServiceNameAvailabilityContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ApiManagement/checkNameAvailability", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCheckNameAvailabilityRequest(string subscriptionId, ApiManagementServiceNameAvailabilityContent content) { var message = _pipeline.CreateMessage(); @@ -801,6 +937,17 @@ public Response CheckNameAvailabilit } } + internal RequestUriBuilder CreateGetDomainOwnershipIdentifierRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ApiManagement/getDomainOwnershipIdentifier", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetDomainOwnershipIdentifierRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -868,6 +1015,21 @@ public Response GetDomai } } + internal RequestUriBuilder CreateApplyNetworkConfigurationUpdatesRequestUri(string subscriptionId, string resourceGroupName, string serviceName, ApiManagementServiceApplyNetworkConfigurationContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/applynetworkconfigurationupdates", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateApplyNetworkConfigurationUpdatesRequest(string subscriptionId, string resourceGroupName, string serviceName, ApiManagementServiceApplyNetworkConfigurationContent content) { var message = _pipeline.CreateMessage(); @@ -948,6 +1110,14 @@ public Response ApplyNetworkConfigurationUpdates(string subscriptionId, string r } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -1020,6 +1190,14 @@ public Response ListByResourceGroupNextPage(stri } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/ApiManagementServiceSkusRestOperations.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/ApiManagementServiceSkusRestOperations.cs index d2814c6dcfeb..38e8ccc56e49 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/ApiManagementServiceSkusRestOperations.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/ApiManagementServiceSkusRestOperations.cs @@ -37,6 +37,21 @@ public ApiManagementServiceSkusRestOperations(HttpPipeline pipeline, string appl _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListAvailableServiceSkusRequestUri(string subscriptionId, string resourceGroupName, string serviceName) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/skus", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListAvailableServiceSkusRequest(string subscriptionId, string resourceGroupName, string serviceName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,14 @@ public Response ListAvailableServiceSkus(string subscription } } + internal RequestUriBuilder CreateListAvailableServiceSkusNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serviceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListAvailableServiceSkusNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serviceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/ApiManagementSkusRestOperations.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/ApiManagementSkusRestOperations.cs index 3873ec1e789e..703d669de98c 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/ApiManagementSkusRestOperations.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/ApiManagementSkusRestOperations.cs @@ -37,6 +37,17 @@ public ApiManagementSkusRestOperations(HttpPipeline pipeline, string application _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ApiManagement/skus", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,14 @@ public Response List(string subscriptionId, Cancellatio } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/ApiOperationPolicyRestOperations.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/ApiOperationPolicyRestOperations.cs index b536472bf818..4f2f3c380445 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/ApiOperationPolicyRestOperations.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/ApiOperationPolicyRestOperations.cs @@ -37,6 +37,25 @@ public ApiOperationPolicyRestOperations(HttpPipeline pipeline, string applicatio _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByOperationRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string operationId) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apis/", false); + uri.AppendPath(apiId, true); + uri.AppendPath("/operations/", false); + uri.AppendPath(operationId, true); + uri.AppendPath("/policies", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByOperationRequest(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string operationId) { var message = _pipeline.CreateMessage(); @@ -128,6 +147,26 @@ public Response ListByOperation(string subscriptionId, string } } + internal RequestUriBuilder CreateGetEntityTagRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string operationId, PolicyName policyId) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apis/", false); + uri.AppendPath(apiId, true); + uri.AppendPath("/operations/", false); + uri.AppendPath(operationId, true); + uri.AppendPath("/policies/", false); + uri.AppendPath(policyId.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetEntityTagRequest(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string operationId, PolicyName policyId) { var message = _pipeline.CreateMessage(); @@ -228,6 +267,30 @@ public Response GetEntityTag(string subscriptionId, string resourceGroupNa } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string operationId, PolicyName policyId, PolicyExportFormat? format) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apis/", false); + uri.AppendPath(apiId, true); + uri.AppendPath("/operations/", false); + uri.AppendPath(operationId, true); + uri.AppendPath("/policies/", false); + uri.AppendPath(policyId.ToString(), true); + if (format != null) + { + uri.AppendQuery("format", format.Value.ToString(), true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string operationId, PolicyName policyId, PolicyExportFormat? format) { var message = _pipeline.CreateMessage(); @@ -332,6 +395,26 @@ public Response Get(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string operationId, PolicyName policyId, PolicyContractData data, ETag? ifMatch) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apis/", false); + uri.AppendPath(apiId, true); + uri.AppendPath("/operations/", false); + uri.AppendPath(operationId, true); + uri.AppendPath("/policies/", false); + uri.AppendPath(policyId.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string operationId, PolicyName policyId, PolicyContractData data, ETag? ifMatch) { var message = _pipeline.CreateMessage(); @@ -442,6 +525,26 @@ public Response CreateOrUpdate(string subscriptionId, string } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string operationId, PolicyName policyId, ETag ifMatch) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apis/", false); + uri.AppendPath(apiId, true); + uri.AppendPath("/operations/", false); + uri.AppendPath(operationId, true); + uri.AppendPath("/policies/", false); + uri.AppendPath(policyId.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string operationId, PolicyName policyId, ETag ifMatch) { var message = _pipeline.CreateMessage(); diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/ApiOperationRestOperations.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/ApiOperationRestOperations.cs index c4d7dea2c4ec..ad567d9f5a16 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/ApiOperationRestOperations.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/ApiOperationRestOperations.cs @@ -37,6 +37,39 @@ public ApiOperationRestOperations(HttpPipeline pipeline, string applicationId, U _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByApiRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string filter, int? top, int? skip, string tags) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apis/", false); + uri.AppendPath(apiId, true); + uri.AppendPath("/operations", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skip != null) + { + uri.AppendQuery("$skip", skip.Value, true); + } + if (tags != null) + { + uri.AppendQuery("tags", tags, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByApiRequest(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string filter, int? top, int? skip, string tags) { var message = _pipeline.CreateMessage(); @@ -146,6 +179,24 @@ public Response ListByApi(string subscriptionId, string res } } + internal RequestUriBuilder CreateGetEntityTagRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string operationId) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apis/", false); + uri.AppendPath(apiId, true); + uri.AppendPath("/operations/", false); + uri.AppendPath(operationId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetEntityTagRequest(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string operationId) { var message = _pipeline.CreateMessage(); @@ -242,6 +293,24 @@ public Response GetEntityTag(string subscriptionId, string resourceGroupNa } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string operationId) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apis/", false); + uri.AppendPath(apiId, true); + uri.AppendPath("/operations/", false); + uri.AppendPath(operationId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string operationId) { var message = _pipeline.CreateMessage(); @@ -336,6 +405,24 @@ public Response Get(string subscriptionId, string resourceGrou } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string operationId, ApiOperationData data, ETag? ifMatch) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apis/", false); + uri.AppendPath(apiId, true); + uri.AppendPath("/operations/", false); + uri.AppendPath(operationId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string operationId, ApiOperationData data, ETag? ifMatch) { var message = _pipeline.CreateMessage(); @@ -442,6 +529,24 @@ public Response CreateOrUpdate(string subscriptionId, string r } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string operationId, ETag ifMatch, ApiOperationPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apis/", false); + uri.AppendPath(apiId, true); + uri.AppendPath("/operations/", false); + uri.AppendPath(operationId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string operationId, ETag ifMatch, ApiOperationPatch patch) { var message = _pipeline.CreateMessage(); @@ -543,6 +648,24 @@ public Response Update(string subscriptionId, string resourceG } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string operationId, ETag ifMatch) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apis/", false); + uri.AppendPath(apiId, true); + uri.AppendPath("/operations/", false); + uri.AppendPath(operationId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string operationId, ETag ifMatch) { var message = _pipeline.CreateMessage(); @@ -628,6 +751,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListByApiNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string apiId, string filter, int? top, int? skip, string tags) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByApiNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string apiId, string filter, int? top, int? skip, string tags) { var message = _pipeline.CreateMessage(); diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/ApiPolicyRestOperations.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/ApiPolicyRestOperations.cs index 586fcd8f031d..c498b35f95e4 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/ApiPolicyRestOperations.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/ApiPolicyRestOperations.cs @@ -37,6 +37,23 @@ public ApiPolicyRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByApiRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string apiId) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apis/", false); + uri.AppendPath(apiId, true); + uri.AppendPath("/policies", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByApiRequest(string subscriptionId, string resourceGroupName, string serviceName, string apiId) { var message = _pipeline.CreateMessage(); @@ -122,6 +139,24 @@ public Response ListByApi(string subscriptionId, string resour } } + internal RequestUriBuilder CreateGetEntityTagRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string apiId, PolicyName policyId) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apis/", false); + uri.AppendPath(apiId, true); + uri.AppendPath("/policies/", false); + uri.AppendPath(policyId.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetEntityTagRequest(string subscriptionId, string resourceGroupName, string serviceName, string apiId, PolicyName policyId) { var message = _pipeline.CreateMessage(); @@ -216,6 +251,28 @@ public Response GetEntityTag(string subscriptionId, string resourceGroupNa } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string apiId, PolicyName policyId, PolicyExportFormat? format) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apis/", false); + uri.AppendPath(apiId, true); + uri.AppendPath("/policies/", false); + uri.AppendPath(policyId.ToString(), true); + if (format != null) + { + uri.AppendQuery("format", format.Value.ToString(), true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serviceName, string apiId, PolicyName policyId, PolicyExportFormat? format) { var message = _pipeline.CreateMessage(); @@ -314,6 +371,24 @@ public Response Get(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string apiId, PolicyName policyId, PolicyContractData data, ETag? ifMatch) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apis/", false); + uri.AppendPath(apiId, true); + uri.AppendPath("/policies/", false); + uri.AppendPath(policyId.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serviceName, string apiId, PolicyName policyId, PolicyContractData data, ETag? ifMatch) { var message = _pipeline.CreateMessage(); @@ -418,6 +493,24 @@ public Response CreateOrUpdate(string subscriptionId, string } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string apiId, PolicyName policyId, ETag ifMatch) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apis/", false); + uri.AppendPath(apiId, true); + uri.AppendPath("/policies/", false); + uri.AppendPath(policyId.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string serviceName, string apiId, PolicyName policyId, ETag ifMatch) { var message = _pipeline.CreateMessage(); diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/ApiProductRestOperations.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/ApiProductRestOperations.cs index 9d86647df7d0..026f22af5035 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/ApiProductRestOperations.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/ApiProductRestOperations.cs @@ -37,6 +37,35 @@ public ApiProductRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByApisRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string filter, int? top, int? skip) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apis/", false); + uri.AppendPath(apiId, true); + uri.AppendPath("/products", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skip != null) + { + uri.AppendQuery("$skip", skip.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByApisRequest(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string filter, int? top, int? skip) { var message = _pipeline.CreateMessage(); @@ -140,6 +169,14 @@ public Response ListByApis(string subscriptionId, string reso } } + internal RequestUriBuilder CreateListByApisNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string apiId, string filter, int? top, int? skip) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByApisNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string apiId, string filter, int? top, int? skip) { var message = _pipeline.CreateMessage(); diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/ApiReleaseRestOperations.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/ApiReleaseRestOperations.cs index 744d7fe91a3b..8b7bffe6910e 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/ApiReleaseRestOperations.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/ApiReleaseRestOperations.cs @@ -37,6 +37,35 @@ public ApiReleaseRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByServiceRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string filter, int? top, int? skip) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apis/", false); + uri.AppendPath(apiId, true); + uri.AppendPath("/releases", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skip != null) + { + uri.AppendQuery("$skip", skip.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByServiceRequest(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string filter, int? top, int? skip) { var message = _pipeline.CreateMessage(); @@ -140,6 +169,24 @@ public Response ListByService(string subscriptionId, strin } } + internal RequestUriBuilder CreateGetEntityTagRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string releaseId) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apis/", false); + uri.AppendPath(apiId, true); + uri.AppendPath("/releases/", false); + uri.AppendPath(releaseId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetEntityTagRequest(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string releaseId) { var message = _pipeline.CreateMessage(); @@ -236,6 +283,24 @@ public Response GetEntityTag(string subscriptionId, string resourceGroupNa } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string releaseId) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apis/", false); + uri.AppendPath(apiId, true); + uri.AppendPath("/releases/", false); + uri.AppendPath(releaseId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string releaseId) { var message = _pipeline.CreateMessage(); @@ -330,6 +395,24 @@ public Response Get(string subscriptionId, string resourceGroupN } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string releaseId, ApiReleaseData data, ETag? ifMatch) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apis/", false); + uri.AppendPath(apiId, true); + uri.AppendPath("/releases/", false); + uri.AppendPath(releaseId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string releaseId, ApiReleaseData data, ETag? ifMatch) { var message = _pipeline.CreateMessage(); @@ -436,6 +519,24 @@ public Response CreateOrUpdate(string subscriptionId, string res } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string releaseId, ETag ifMatch, ApiReleaseData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apis/", false); + uri.AppendPath(apiId, true); + uri.AppendPath("/releases/", false); + uri.AppendPath(releaseId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string releaseId, ETag ifMatch, ApiReleaseData data) { var message = _pipeline.CreateMessage(); @@ -537,6 +638,24 @@ public Response Update(string subscriptionId, string resourceGro } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string releaseId, ETag ifMatch) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apis/", false); + uri.AppendPath(apiId, true); + uri.AppendPath("/releases/", false); + uri.AppendPath(releaseId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string releaseId, ETag ifMatch) { var message = _pipeline.CreateMessage(); @@ -622,6 +741,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListByServiceNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string apiId, string filter, int? top, int? skip) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByServiceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string apiId, string filter, int? top, int? skip) { var message = _pipeline.CreateMessage(); diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/ApiRestOperations.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/ApiRestOperations.cs index 3acb6eb34be0..6ae1d1302189 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/ApiRestOperations.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/ApiRestOperations.cs @@ -37,6 +37,41 @@ public ApiRestOperations(HttpPipeline pipeline, string applicationId, Uri endpoi _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByServiceRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string filter, int? top, int? skip, string tags, bool? expandApiVersionSet) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apis", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skip != null) + { + uri.AppendQuery("$skip", skip.Value, true); + } + if (tags != null) + { + uri.AppendQuery("tags", tags, true); + } + if (expandApiVersionSet != null) + { + uri.AppendQuery("expandApiVersionSet", expandApiVersionSet.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByServiceRequest(string subscriptionId, string resourceGroupName, string serviceName, string filter, int? top, int? skip, string tags, bool? expandApiVersionSet) { var message = _pipeline.CreateMessage(); @@ -146,6 +181,22 @@ public Response ListByService(string subscriptionId, string resou } } + internal RequestUriBuilder CreateGetEntityTagRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string apiId) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apis/", false); + uri.AppendPath(apiId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetEntityTagRequest(string subscriptionId, string resourceGroupName, string serviceName, string apiId) { var message = _pipeline.CreateMessage(); @@ -236,6 +287,22 @@ public Response GetEntityTag(string subscriptionId, string resourceGroupNa } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string apiId) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apis/", false); + uri.AppendPath(apiId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serviceName, string apiId) { var message = _pipeline.CreateMessage(); @@ -324,6 +391,22 @@ public Response Get(string subscriptionId, string resourceGroupName, st } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string apiId, ApiCreateOrUpdateContent content, ETag? ifMatch) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apis/", false); + uri.AppendPath(apiId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serviceName, string apiId, ApiCreateOrUpdateContent content, ETag? ifMatch) { var message = _pipeline.CreateMessage(); @@ -416,6 +499,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string apiId, ETag ifMatch, ApiPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apis/", false); + uri.AppendPath(apiId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string serviceName, string apiId, ETag ifMatch, ApiPatch patch) { var message = _pipeline.CreateMessage(); @@ -511,6 +610,26 @@ public Response Update(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string apiId, ETag ifMatch, bool? deleteRevisions) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apis/", false); + uri.AppendPath(apiId, true); + if (deleteRevisions != null) + { + uri.AppendQuery("deleteRevisions", deleteRevisions.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string serviceName, string apiId, ETag ifMatch, bool? deleteRevisions) { var message = _pipeline.CreateMessage(); @@ -596,6 +715,37 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListByTagsRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string filter, int? top, int? skip, bool? includeNotTaggedApis) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apisByTags", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skip != null) + { + uri.AppendQuery("$skip", skip.Value, true); + } + if (includeNotTaggedApis != null) + { + uri.AppendQuery("includeNotTaggedApis", includeNotTaggedApis.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByTagsRequest(string subscriptionId, string resourceGroupName, string serviceName, string filter, int? top, int? skip, bool? includeNotTaggedApis) { var message = _pipeline.CreateMessage(); @@ -699,6 +849,14 @@ public Response ListByTags(string subscriptionId, string } } + internal RequestUriBuilder CreateListByServiceNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string filter, int? top, int? skip, string tags, bool? expandApiVersionSet) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByServiceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string filter, int? top, int? skip, string tags, bool? expandApiVersionSet) { var message = _pipeline.CreateMessage(); @@ -785,6 +943,14 @@ public Response ListByServiceNextPage(string nextLink, string sub } } + internal RequestUriBuilder CreateListByTagsNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string filter, int? top, int? skip, bool? includeNotTaggedApis) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByTagsNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string filter, int? top, int? skip, bool? includeNotTaggedApis) { var message = _pipeline.CreateMessage(); diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/ApiRevisionRestOperations.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/ApiRevisionRestOperations.cs index f7273137f849..63083f65e876 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/ApiRevisionRestOperations.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/ApiRevisionRestOperations.cs @@ -37,6 +37,35 @@ public ApiRevisionRestOperations(HttpPipeline pipeline, string applicationId, Ur _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByServiceRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string filter, int? top, int? skip) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apis/", false); + uri.AppendPath(apiId, true); + uri.AppendPath("/revisions", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skip != null) + { + uri.AppendQuery("$skip", skip.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByServiceRequest(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string filter, int? top, int? skip) { var message = _pipeline.CreateMessage(); @@ -140,6 +169,14 @@ public Response ListByService(string subscriptionId, stri } } + internal RequestUriBuilder CreateListByServiceNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string apiId, string filter, int? top, int? skip) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByServiceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string apiId, string filter, int? top, int? skip) { var message = _pipeline.CreateMessage(); diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/ApiSchemaRestOperations.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/ApiSchemaRestOperations.cs index 6146360a2007..ba125203b13a 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/ApiSchemaRestOperations.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/ApiSchemaRestOperations.cs @@ -37,6 +37,35 @@ public ApiSchemaRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByApiRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string filter, int? top, int? skip) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apis/", false); + uri.AppendPath(apiId, true); + uri.AppendPath("/schemas", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skip != null) + { + uri.AppendQuery("$skip", skip.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByApiRequest(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string filter, int? top, int? skip) { var message = _pipeline.CreateMessage(); @@ -140,6 +169,24 @@ public Response ListByApi(string subscriptionId, string resour } } + internal RequestUriBuilder CreateGetEntityTagRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string schemaId) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apis/", false); + uri.AppendPath(apiId, true); + uri.AppendPath("/schemas/", false); + uri.AppendPath(schemaId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetEntityTagRequest(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string schemaId) { var message = _pipeline.CreateMessage(); @@ -236,6 +283,24 @@ public Response GetEntityTag(string subscriptionId, string resourceGroupNa } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string schemaId) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apis/", false); + uri.AppendPath(apiId, true); + uri.AppendPath("/schemas/", false); + uri.AppendPath(schemaId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string schemaId) { var message = _pipeline.CreateMessage(); @@ -330,6 +395,24 @@ public Response Get(string subscriptionId, string resourceGroupNa } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string schemaId, ApiSchemaData data, ETag? ifMatch) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apis/", false); + uri.AppendPath(apiId, true); + uri.AppendPath("/schemas/", false); + uri.AppendPath(schemaId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string schemaId, ApiSchemaData data, ETag? ifMatch) { var message = _pipeline.CreateMessage(); @@ -428,6 +511,28 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string schemaId, ETag ifMatch, bool? force) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apis/", false); + uri.AppendPath(apiId, true); + uri.AppendPath("/schemas/", false); + uri.AppendPath(schemaId, true); + if (force != null) + { + uri.AppendQuery("force", force.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string schemaId, ETag ifMatch, bool? force) { var message = _pipeline.CreateMessage(); @@ -519,6 +624,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListByApiNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string apiId, string filter, int? top, int? skip) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByApiNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string apiId, string filter, int? top, int? skip) { var message = _pipeline.CreateMessage(); diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/ApiTagDescriptionRestOperations.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/ApiTagDescriptionRestOperations.cs index 204b74a12868..8907c58b4089 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/ApiTagDescriptionRestOperations.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/ApiTagDescriptionRestOperations.cs @@ -37,6 +37,35 @@ public ApiTagDescriptionRestOperations(HttpPipeline pipeline, string application _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByServiceRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string filter, int? top, int? skip) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apis/", false); + uri.AppendPath(apiId, true); + uri.AppendPath("/tagDescriptions", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skip != null) + { + uri.AppendQuery("$skip", skip.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByServiceRequest(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string filter, int? top, int? skip) { var message = _pipeline.CreateMessage(); @@ -140,6 +169,24 @@ public Response ListByService(string subscriptionId, s } } + internal RequestUriBuilder CreateGetEntityTagRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string tagDescriptionId) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apis/", false); + uri.AppendPath(apiId, true); + uri.AppendPath("/tagDescriptions/", false); + uri.AppendPath(tagDescriptionId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetEntityTagRequest(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string tagDescriptionId) { var message = _pipeline.CreateMessage(); @@ -236,6 +283,24 @@ public Response GetEntityTag(string subscriptionId, string resourceGroupNa } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string tagDescriptionId) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apis/", false); + uri.AppendPath(apiId, true); + uri.AppendPath("/tagDescriptions/", false); + uri.AppendPath(tagDescriptionId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string tagDescriptionId) { var message = _pipeline.CreateMessage(); @@ -330,6 +395,24 @@ public Response Get(string subscriptionId, string resourc } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string tagDescriptionId, ApiTagDescriptionCreateOrUpdateContent content, ETag? ifMatch) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apis/", false); + uri.AppendPath(apiId, true); + uri.AppendPath("/tagDescriptions/", false); + uri.AppendPath(tagDescriptionId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string tagDescriptionId, ApiTagDescriptionCreateOrUpdateContent content, ETag? ifMatch) { var message = _pipeline.CreateMessage(); @@ -436,6 +519,24 @@ public Response CreateOrUpdate(string subscriptionId, str } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string tagDescriptionId, ETag ifMatch) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apis/", false); + uri.AppendPath(apiId, true); + uri.AppendPath("/tagDescriptions/", false); + uri.AppendPath(tagDescriptionId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string tagDescriptionId, ETag ifMatch) { var message = _pipeline.CreateMessage(); @@ -521,6 +622,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListByServiceNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string apiId, string filter, int? top, int? skip) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByServiceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string apiId, string filter, int? top, int? skip) { var message = _pipeline.CreateMessage(); diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/ApiVersionSetRestOperations.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/ApiVersionSetRestOperations.cs index e78081ceb08e..1b8c753440c7 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/ApiVersionSetRestOperations.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/ApiVersionSetRestOperations.cs @@ -37,6 +37,33 @@ public ApiVersionSetRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByServiceRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string filter, int? top, int? skip) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apiVersionSets", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skip != null) + { + uri.AppendQuery("$skip", skip.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByServiceRequest(string subscriptionId, string resourceGroupName, string serviceName, string filter, int? top, int? skip) { var message = _pipeline.CreateMessage(); @@ -134,6 +161,22 @@ public Response ListByService(string subscriptionId, st } } + internal RequestUriBuilder CreateGetEntityTagRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string versionSetId) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apiVersionSets/", false); + uri.AppendPath(versionSetId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetEntityTagRequest(string subscriptionId, string resourceGroupName, string serviceName, string versionSetId) { var message = _pipeline.CreateMessage(); @@ -224,6 +267,22 @@ public Response GetEntityTag(string subscriptionId, string resourceGroupNa } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string versionSetId) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apiVersionSets/", false); + uri.AppendPath(versionSetId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serviceName, string versionSetId) { var message = _pipeline.CreateMessage(); @@ -312,6 +371,22 @@ public Response Get(string subscriptionId, string resourceGro } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string versionSetId, ApiVersionSetData data, ETag? ifMatch) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apiVersionSets/", false); + uri.AppendPath(versionSetId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serviceName, string versionSetId, ApiVersionSetData data, ETag? ifMatch) { var message = _pipeline.CreateMessage(); @@ -412,6 +487,22 @@ public Response CreateOrUpdate(string subscriptionId, string } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string versionSetId, ETag ifMatch, ApiVersionSetPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apiVersionSets/", false); + uri.AppendPath(versionSetId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string serviceName, string versionSetId, ETag ifMatch, ApiVersionSetPatch patch) { var message = _pipeline.CreateMessage(); @@ -507,6 +598,22 @@ public Response Update(string subscriptionId, string resource } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string versionSetId, ETag ifMatch) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apiVersionSets/", false); + uri.AppendPath(versionSetId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string serviceName, string versionSetId, ETag ifMatch) { var message = _pipeline.CreateMessage(); @@ -586,6 +693,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListByServiceNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string filter, int? top, int? skip) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByServiceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string filter, int? top, int? skip) { var message = _pipeline.CreateMessage(); diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/AuthorizationServerRestOperations.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/AuthorizationServerRestOperations.cs index f4beb4291e8c..071e67103da5 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/AuthorizationServerRestOperations.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/AuthorizationServerRestOperations.cs @@ -37,6 +37,33 @@ public AuthorizationServerRestOperations(HttpPipeline pipeline, string applicati _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByServiceRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string filter, int? top, int? skip) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/authorizationServers", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skip != null) + { + uri.AppendQuery("$skip", skip.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByServiceRequest(string subscriptionId, string resourceGroupName, string serviceName, string filter, int? top, int? skip) { var message = _pipeline.CreateMessage(); @@ -134,6 +161,22 @@ public Response ListByService(string subscription } } + internal RequestUriBuilder CreateGetEntityTagRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string authsid) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/authorizationServers/", false); + uri.AppendPath(authsid, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetEntityTagRequest(string subscriptionId, string resourceGroupName, string serviceName, string authsid) { var message = _pipeline.CreateMessage(); @@ -224,6 +267,22 @@ public Response GetEntityTag(string subscriptionId, string resourceGroupNa } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string authsid) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/authorizationServers/", false); + uri.AppendPath(authsid, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serviceName, string authsid) { var message = _pipeline.CreateMessage(); @@ -312,6 +371,22 @@ public Response Get(string subscriptionId, } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string authsid, ApiManagementAuthorizationServerData data, ETag? ifMatch) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/authorizationServers/", false); + uri.AppendPath(authsid, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serviceName, string authsid, ApiManagementAuthorizationServerData data, ETag? ifMatch) { var message = _pipeline.CreateMessage(); @@ -412,6 +487,22 @@ public Response CreateOrUpdate(string subs } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string authsid, ETag ifMatch, ApiManagementAuthorizationServerPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/authorizationServers/", false); + uri.AppendPath(authsid, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string serviceName, string authsid, ETag ifMatch, ApiManagementAuthorizationServerPatch patch) { var message = _pipeline.CreateMessage(); @@ -507,6 +598,22 @@ public Response Update(string subscription } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string authsid, ETag ifMatch) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/authorizationServers/", false); + uri.AppendPath(authsid, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string serviceName, string authsid, ETag ifMatch) { var message = _pipeline.CreateMessage(); @@ -586,6 +693,23 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListSecretsRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string authsid) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/authorizationServers/", false); + uri.AppendPath(authsid, true); + uri.AppendPath("/listSecrets", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListSecretsRequest(string subscriptionId, string resourceGroupName, string serviceName, string authsid) { var message = _pipeline.CreateMessage(); @@ -671,6 +795,14 @@ public Response ListSecrets(string subscript } } + internal RequestUriBuilder CreateListByServiceNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string filter, int? top, int? skip) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByServiceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string filter, int? top, int? skip) { var message = _pipeline.CreateMessage(); diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/BackendRestOperations.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/BackendRestOperations.cs index d237bf27a89d..c9fa25e66855 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/BackendRestOperations.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/BackendRestOperations.cs @@ -37,6 +37,33 @@ public BackendRestOperations(HttpPipeline pipeline, string applicationId, Uri en _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByServiceRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string filter, int? top, int? skip) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/backends", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skip != null) + { + uri.AppendQuery("$skip", skip.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByServiceRequest(string subscriptionId, string resourceGroupName, string serviceName, string filter, int? top, int? skip) { var message = _pipeline.CreateMessage(); @@ -134,6 +161,22 @@ public Response ListByService(string subscriptionId, string r } } + internal RequestUriBuilder CreateGetEntityTagRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string backendId) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/backends/", false); + uri.AppendPath(backendId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetEntityTagRequest(string subscriptionId, string resourceGroupName, string serviceName, string backendId) { var message = _pipeline.CreateMessage(); @@ -224,6 +267,22 @@ public Response GetEntityTag(string subscriptionId, string resourceGroupNa } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string backendId) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/backends/", false); + uri.AppendPath(backendId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serviceName, string backendId) { var message = _pipeline.CreateMessage(); @@ -312,6 +371,22 @@ public Response Get(string subscriptionId, string reso } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string backendId, ApiManagementBackendData data, ETag? ifMatch) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/backends/", false); + uri.AppendPath(backendId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serviceName, string backendId, ApiManagementBackendData data, ETag? ifMatch) { var message = _pipeline.CreateMessage(); @@ -412,6 +487,22 @@ public Response CreateOrUpdate(string subscriptionId, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string backendId, ETag ifMatch, ApiManagementBackendPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/backends/", false); + uri.AppendPath(backendId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string serviceName, string backendId, ETag ifMatch, ApiManagementBackendPatch patch) { var message = _pipeline.CreateMessage(); @@ -507,6 +598,22 @@ public Response Update(string subscriptionId, string r } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string backendId, ETag ifMatch) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/backends/", false); + uri.AppendPath(backendId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string serviceName, string backendId, ETag ifMatch) { var message = _pipeline.CreateMessage(); @@ -586,6 +693,23 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateReconnectRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string backendId, BackendReconnectContract backendReconnectContract) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/backends/", false); + uri.AppendPath(backendId, true); + uri.AppendPath("/reconnect", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateReconnectRequest(string subscriptionId, string resourceGroupName, string serviceName, string backendId, BackendReconnectContract backendReconnectContract) { var message = _pipeline.CreateMessage(); @@ -670,6 +794,14 @@ public Response Reconnect(string subscriptionId, string resourceGroupName, strin } } + internal RequestUriBuilder CreateListByServiceNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string filter, int? top, int? skip) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByServiceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string filter, int? top, int? skip) { var message = _pipeline.CreateMessage(); diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/CacheRestOperations.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/CacheRestOperations.cs index dca89992c924..2d5a8ad4dfeb 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/CacheRestOperations.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/CacheRestOperations.cs @@ -37,6 +37,29 @@ public CacheRestOperations(HttpPipeline pipeline, string applicationId, Uri endp _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByServiceRequestUri(string subscriptionId, string resourceGroupName, string serviceName, int? top, int? skip) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/caches", false); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skip != null) + { + uri.AppendQuery("$skip", skip.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByServiceRequest(string subscriptionId, string resourceGroupName, string serviceName, int? top, int? skip) { var message = _pipeline.CreateMessage(); @@ -128,6 +151,22 @@ public Response ListByService(string subscriptionId, string res } } + internal RequestUriBuilder CreateGetEntityTagRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string cacheId) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/caches/", false); + uri.AppendPath(cacheId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetEntityTagRequest(string subscriptionId, string resourceGroupName, string serviceName, string cacheId) { var message = _pipeline.CreateMessage(); @@ -218,6 +257,22 @@ public Response GetEntityTag(string subscriptionId, string resourceGroupNa } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string cacheId) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/caches/", false); + uri.AppendPath(cacheId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serviceName, string cacheId) { var message = _pipeline.CreateMessage(); @@ -306,6 +361,22 @@ public Response Get(string subscriptionId, string resour } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string cacheId, ApiManagementCacheData data, ETag? ifMatch) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/caches/", false); + uri.AppendPath(cacheId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serviceName, string cacheId, ApiManagementCacheData data, ETag? ifMatch) { var message = _pipeline.CreateMessage(); @@ -406,6 +477,22 @@ public Response CreateOrUpdate(string subscriptionId, st } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string cacheId, ETag ifMatch, ApiManagementCachePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/caches/", false); + uri.AppendPath(cacheId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string serviceName, string cacheId, ETag ifMatch, ApiManagementCachePatch patch) { var message = _pipeline.CreateMessage(); @@ -501,6 +588,22 @@ public Response Update(string subscriptionId, string res } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string cacheId, ETag ifMatch) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/caches/", false); + uri.AppendPath(cacheId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string serviceName, string cacheId, ETag ifMatch) { var message = _pipeline.CreateMessage(); @@ -580,6 +683,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListByServiceNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, int? top, int? skip) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByServiceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, int? top, int? skip) { var message = _pipeline.CreateMessage(); diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/CertificateRestOperations.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/CertificateRestOperations.cs index 53723e58eb02..5319b98321a8 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/CertificateRestOperations.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/CertificateRestOperations.cs @@ -37,6 +37,37 @@ public CertificateRestOperations(HttpPipeline pipeline, string applicationId, Ur _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByServiceRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string filter, int? top, int? skip, bool? isKeyVaultRefreshFailed) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/certificates", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skip != null) + { + uri.AppendQuery("$skip", skip.Value, true); + } + if (isKeyVaultRefreshFailed != null) + { + uri.AppendQuery("isKeyVaultRefreshFailed", isKeyVaultRefreshFailed.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByServiceRequest(string subscriptionId, string resourceGroupName, string serviceName, string filter, int? top, int? skip, bool? isKeyVaultRefreshFailed) { var message = _pipeline.CreateMessage(); @@ -140,6 +171,22 @@ public Response ListByService(string subscriptionId, stri } } + internal RequestUriBuilder CreateGetEntityTagRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string certificateId) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/certificates/", false); + uri.AppendPath(certificateId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetEntityTagRequest(string subscriptionId, string resourceGroupName, string serviceName, string certificateId) { var message = _pipeline.CreateMessage(); @@ -230,6 +277,22 @@ public Response GetEntityTag(string subscriptionId, string resourceGroupNa } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string certificateId) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/certificates/", false); + uri.AppendPath(certificateId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serviceName, string certificateId) { var message = _pipeline.CreateMessage(); @@ -318,6 +381,22 @@ public Response Get(string subscriptionId, string } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string certificateId, ApiManagementCertificateCreateOrUpdateContent content, ETag? ifMatch) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/certificates/", false); + uri.AppendPath(certificateId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serviceName, string certificateId, ApiManagementCertificateCreateOrUpdateContent content, ETag? ifMatch) { var message = _pipeline.CreateMessage(); @@ -418,6 +497,22 @@ public Response CreateOrUpdate(string subscription } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string certificateId, ETag ifMatch) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/certificates/", false); + uri.AppendPath(certificateId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string serviceName, string certificateId, ETag ifMatch) { var message = _pipeline.CreateMessage(); @@ -497,6 +592,23 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateRefreshSecretRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string certificateId) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/certificates/", false); + uri.AppendPath(certificateId, true); + uri.AppendPath("/refreshSecret", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRefreshSecretRequest(string subscriptionId, string resourceGroupName, string serviceName, string certificateId) { var message = _pipeline.CreateMessage(); @@ -582,6 +694,14 @@ public Response RefreshSecret(string subscriptionI } } + internal RequestUriBuilder CreateListByServiceNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string filter, int? top, int? skip, bool? isKeyVaultRefreshFailed) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByServiceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string filter, int? top, int? skip, bool? isKeyVaultRefreshFailed) { var message = _pipeline.CreateMessage(); diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/ContentItemRestOperations.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/ContentItemRestOperations.cs index 828fc970e848..0e29cee44dd0 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/ContentItemRestOperations.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/ContentItemRestOperations.cs @@ -37,6 +37,23 @@ public ContentItemRestOperations(HttpPipeline pipeline, string applicationId, Ur _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByServiceRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string contentTypeId) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/contentTypes/", false); + uri.AppendPath(contentTypeId, true); + uri.AppendPath("/contentItems", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByServiceRequest(string subscriptionId, string resourceGroupName, string serviceName, string contentTypeId) { var message = _pipeline.CreateMessage(); @@ -122,6 +139,24 @@ public Response ListByService(string subscriptionId, stri } } + internal RequestUriBuilder CreateGetEntityTagRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string contentTypeId, string contentItemId) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/contentTypes/", false); + uri.AppendPath(contentTypeId, true); + uri.AppendPath("/contentItems/", false); + uri.AppendPath(contentItemId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetEntityTagRequest(string subscriptionId, string resourceGroupName, string serviceName, string contentTypeId, string contentItemId) { var message = _pipeline.CreateMessage(); @@ -218,6 +253,24 @@ public Response GetEntityTag(string subscriptionId, string resourceGroupNa } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string contentTypeId, string contentItemId) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/contentTypes/", false); + uri.AppendPath(contentTypeId, true); + uri.AppendPath("/contentItems/", false); + uri.AppendPath(contentItemId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serviceName, string contentTypeId, string contentItemId) { var message = _pipeline.CreateMessage(); @@ -308,6 +361,24 @@ public Response Get(string subscriptionId, string reso } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string contentTypeId, string contentItemId, ETag? ifMatch) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/contentTypes/", false); + uri.AppendPath(contentTypeId, true); + uri.AppendPath("/contentItems/", false); + uri.AppendPath(contentItemId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serviceName, string contentTypeId, string contentItemId, ETag? ifMatch) { var message = _pipeline.CreateMessage(); @@ -406,6 +477,24 @@ public Response CreateOrUpdate(string subscriptionId, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string contentTypeId, string contentItemId, ETag ifMatch) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/contentTypes/", false); + uri.AppendPath(contentTypeId, true); + uri.AppendPath("/contentItems/", false); + uri.AppendPath(contentItemId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string serviceName, string contentTypeId, string contentItemId, ETag ifMatch) { var message = _pipeline.CreateMessage(); @@ -491,6 +580,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListByServiceNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string contentTypeId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByServiceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string contentTypeId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/ContentTypeRestOperations.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/ContentTypeRestOperations.cs index 4a5c44eada19..42c86a22d6b6 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/ContentTypeRestOperations.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/ContentTypeRestOperations.cs @@ -37,6 +37,21 @@ public ContentTypeRestOperations(HttpPipeline pipeline, string applicationId, Ur _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByServiceRequestUri(string subscriptionId, string resourceGroupName, string serviceName) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/contentTypes", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByServiceRequest(string subscriptionId, string resourceGroupName, string serviceName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByService(string subscriptionId, stri } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string contentTypeId) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/contentTypes/", false); + uri.AppendPath(contentTypeId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serviceName, string contentTypeId) { var message = _pipeline.CreateMessage(); @@ -200,6 +231,22 @@ public Response Get(string subscriptionId, string reso } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string contentTypeId, ETag? ifMatch) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/contentTypes/", false); + uri.AppendPath(contentTypeId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serviceName, string contentTypeId, ETag? ifMatch) { var message = _pipeline.CreateMessage(); @@ -292,6 +339,22 @@ public Response CreateOrUpdate(string subscriptionId, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string contentTypeId, ETag ifMatch) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/contentTypes/", false); + uri.AppendPath(contentTypeId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string serviceName, string contentTypeId, ETag ifMatch) { var message = _pipeline.CreateMessage(); @@ -371,6 +434,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListByServiceNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serviceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByServiceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serviceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/DelegationSettingsRestOperations.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/DelegationSettingsRestOperations.cs index 3f057b998be4..bb54125daf81 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/DelegationSettingsRestOperations.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/DelegationSettingsRestOperations.cs @@ -37,6 +37,21 @@ public DelegationSettingsRestOperations(HttpPipeline pipeline, string applicatio _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetEntityTagRequestUri(string subscriptionId, string resourceGroupName, string serviceName) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/portalsettings/delegation", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetEntityTagRequest(string subscriptionId, string resourceGroupName, string serviceName) { var message = _pipeline.CreateMessage(); @@ -122,6 +137,21 @@ public Response GetEntityTag(string subscriptionId, string resourceGroupNa } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serviceName) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/portalsettings/delegation", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serviceName) { var message = _pipeline.CreateMessage(); @@ -205,6 +235,21 @@ public Response Get(string subscriptio } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string serviceName, ETag ifMatch, ApiManagementPortalDelegationSettingData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/portalsettings/delegation", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string serviceName, ETag ifMatch, ApiManagementPortalDelegationSettingData data) { var message = _pipeline.CreateMessage(); @@ -285,6 +330,21 @@ public Response Update(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serviceName, ApiManagementPortalDelegationSettingData data, ETag? ifMatch) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/portalsettings/delegation", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serviceName, ApiManagementPortalDelegationSettingData data, ETag? ifMatch) { var message = _pipeline.CreateMessage(); @@ -378,6 +438,21 @@ public Response CreateOrUpdate(string } } + internal RequestUriBuilder CreateListSecretsRequestUri(string subscriptionId, string resourceGroupName, string serviceName) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/portalsettings/delegation/listSecrets", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListSecretsRequest(string subscriptionId, string resourceGroupName, string serviceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/DeletedServicesRestOperations.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/DeletedServicesRestOperations.cs index 7191bf897c40..735cd65daba5 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/DeletedServicesRestOperations.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/DeletedServicesRestOperations.cs @@ -37,6 +37,17 @@ public DeletedServicesRestOperations(HttpPipeline pipeline, string applicationId _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ApiManagement/deletedservices", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,20 @@ public Response ListBySubscription(string subscriptio } } + internal RequestUriBuilder CreateGetByNameRequestUri(string subscriptionId, AzureLocation location, string serviceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ApiManagement/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/deletedservices/", false); + uri.AppendPath(serviceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetByNameRequest(string subscriptionId, AzureLocation location, string serviceName) { var message = _pipeline.CreateMessage(); @@ -184,6 +209,20 @@ public Response GetByName(string subscriptionId } } + internal RequestUriBuilder CreatePurgeRequestUri(string subscriptionId, AzureLocation location, string serviceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ApiManagement/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/deletedservices/", false); + uri.AppendPath(serviceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreatePurgeRequest(string subscriptionId, AzureLocation location, string serviceName) { var message = _pipeline.CreateMessage(); @@ -254,6 +293,14 @@ public Response Purge(string subscriptionId, AzureLocation location, string serv } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/DiagnosticRestOperations.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/DiagnosticRestOperations.cs index 89bd396dc6ee..0ffce46595a0 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/DiagnosticRestOperations.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/DiagnosticRestOperations.cs @@ -37,6 +37,33 @@ public DiagnosticRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByServiceRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string filter, int? top, int? skip) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/diagnostics", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skip != null) + { + uri.AppendQuery("$skip", skip.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByServiceRequest(string subscriptionId, string resourceGroupName, string serviceName, string filter, int? top, int? skip) { var message = _pipeline.CreateMessage(); @@ -134,6 +161,22 @@ public Response ListByService(string subscriptionId, strin } } + internal RequestUriBuilder CreateGetEntityTagRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string diagnosticId) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/diagnostics/", false); + uri.AppendPath(diagnosticId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetEntityTagRequest(string subscriptionId, string resourceGroupName, string serviceName, string diagnosticId) { var message = _pipeline.CreateMessage(); @@ -224,6 +267,22 @@ public Response GetEntityTag(string subscriptionId, string resourceGroupNa } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string diagnosticId) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/diagnostics/", false); + uri.AppendPath(diagnosticId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serviceName, string diagnosticId) { var message = _pipeline.CreateMessage(); @@ -312,6 +371,22 @@ public Response Get(string subscriptionId, string resour } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string diagnosticId, DiagnosticContractData data, ETag? ifMatch) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/diagnostics/", false); + uri.AppendPath(diagnosticId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serviceName, string diagnosticId, DiagnosticContractData data, ETag? ifMatch) { var message = _pipeline.CreateMessage(); @@ -412,6 +487,22 @@ public Response CreateOrUpdate(string subscriptionId, st } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string diagnosticId, ETag ifMatch, DiagnosticContractData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/diagnostics/", false); + uri.AppendPath(diagnosticId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string serviceName, string diagnosticId, ETag ifMatch, DiagnosticContractData data) { var message = _pipeline.CreateMessage(); @@ -507,6 +598,22 @@ public Response Update(string subscriptionId, string res } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string diagnosticId, ETag ifMatch) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/diagnostics/", false); + uri.AppendPath(diagnosticId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string serviceName, string diagnosticId, ETag ifMatch) { var message = _pipeline.CreateMessage(); @@ -586,6 +693,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListByServiceNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string filter, int? top, int? skip) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByServiceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string filter, int? top, int? skip) { var message = _pipeline.CreateMessage(); diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/EmailTemplateRestOperations.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/EmailTemplateRestOperations.cs index 949227840259..c38d4203f27e 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/EmailTemplateRestOperations.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/EmailTemplateRestOperations.cs @@ -37,6 +37,33 @@ public EmailTemplateRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByServiceRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string filter, int? top, int? skip) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/templates", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skip != null) + { + uri.AppendQuery("$skip", skip.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByServiceRequest(string subscriptionId, string resourceGroupName, string serviceName, string filter, int? top, int? skip) { var message = _pipeline.CreateMessage(); @@ -134,6 +161,22 @@ public Response ListByService(string subscriptionId, st } } + internal RequestUriBuilder CreateGetEntityTagRequestUri(string subscriptionId, string resourceGroupName, string serviceName, TemplateName templateName) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/templates/", false); + uri.AppendPath(templateName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetEntityTagRequest(string subscriptionId, string resourceGroupName, string serviceName, TemplateName templateName) { var message = _pipeline.CreateMessage(); @@ -222,6 +265,22 @@ public Response GetEntityTag(string subscriptionId, string resourceGroupNa } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serviceName, TemplateName templateName) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/templates/", false); + uri.AppendPath(templateName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serviceName, TemplateName templateName) { var message = _pipeline.CreateMessage(); @@ -308,6 +367,22 @@ public Response Get(string subscriptionId, strin } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serviceName, TemplateName templateName, ApiManagementEmailTemplateCreateOrUpdateContent content, ETag? ifMatch) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/templates/", false); + uri.AppendPath(templateName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serviceName, TemplateName templateName, ApiManagementEmailTemplateCreateOrUpdateContent content, ETag? ifMatch) { var message = _pipeline.CreateMessage(); @@ -406,6 +481,22 @@ public Response CreateOrUpdate(string subscripti } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string serviceName, TemplateName templateName, ETag ifMatch, ApiManagementEmailTemplateCreateOrUpdateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/templates/", false); + uri.AppendPath(templateName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string serviceName, TemplateName templateName, ETag ifMatch, ApiManagementEmailTemplateCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); @@ -499,6 +590,22 @@ public Response Update(string subscriptionId, st } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string serviceName, TemplateName templateName, ETag ifMatch) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/templates/", false); + uri.AppendPath(templateName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string serviceName, TemplateName templateName, ETag ifMatch) { var message = _pipeline.CreateMessage(); @@ -576,6 +683,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListByServiceNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string filter, int? top, int? skip) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByServiceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string filter, int? top, int? skip) { var message = _pipeline.CreateMessage(); diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/GatewayApiRestOperations.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/GatewayApiRestOperations.cs index 7547e013049f..b5543c8b4432 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/GatewayApiRestOperations.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/GatewayApiRestOperations.cs @@ -37,6 +37,35 @@ public GatewayApiRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByServiceRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string gatewayId, string filter, int? top, int? skip) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/gateways/", false); + uri.AppendPath(gatewayId, true); + uri.AppendPath("/apis", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skip != null) + { + uri.AppendQuery("$skip", skip.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByServiceRequest(string subscriptionId, string resourceGroupName, string serviceName, string gatewayId, string filter, int? top, int? skip) { var message = _pipeline.CreateMessage(); @@ -140,6 +169,24 @@ public Response ListByService(string subscrip } } + internal RequestUriBuilder CreateGetEntityTagRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string gatewayId, string apiId) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/gateways/", false); + uri.AppendPath(gatewayId, true); + uri.AppendPath("/apis/", false); + uri.AppendPath(apiId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetEntityTagRequest(string subscriptionId, string resourceGroupName, string serviceName, string gatewayId, string apiId) { var message = _pipeline.CreateMessage(); @@ -236,6 +283,24 @@ public Response GetEntityTag(string subscriptionId, string resourceGroupNa } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string gatewayId, string apiId, AssociationContract associationContract) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/gateways/", false); + uri.AppendPath(gatewayId, true); + uri.AppendPath("/apis/", false); + uri.AppendPath(apiId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serviceName, string gatewayId, string apiId, AssociationContract associationContract) { var message = _pipeline.CreateMessage(); @@ -337,6 +402,24 @@ public Response CreateOrUpdate(string subscriptionId, string res } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string gatewayId, string apiId) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/gateways/", false); + uri.AppendPath(gatewayId, true); + uri.AppendPath("/apis/", false); + uri.AppendPath(apiId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string serviceName, string gatewayId, string apiId) { var message = _pipeline.CreateMessage(); @@ -419,6 +502,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListByServiceNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string gatewayId, string filter, int? top, int? skip) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByServiceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string gatewayId, string filter, int? top, int? skip) { var message = _pipeline.CreateMessage(); diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/GatewayCertificateAuthorityRestOperations.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/GatewayCertificateAuthorityRestOperations.cs index 805dbba2b147..2be7db91f920 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/GatewayCertificateAuthorityRestOperations.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/GatewayCertificateAuthorityRestOperations.cs @@ -37,6 +37,35 @@ public GatewayCertificateAuthorityRestOperations(HttpPipeline pipeline, string a _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByServiceRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string gatewayId, string filter, int? top, int? skip) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/gateways/", false); + uri.AppendPath(gatewayId, true); + uri.AppendPath("/certificateAuthorities", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skip != null) + { + uri.AppendQuery("$skip", skip.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByServiceRequest(string subscriptionId, string resourceGroupName, string serviceName, string gatewayId, string filter, int? top, int? skip) { var message = _pipeline.CreateMessage(); @@ -140,6 +169,24 @@ public Response ListByService(string subs } } + internal RequestUriBuilder CreateGetEntityTagRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string gatewayId, string certificateId) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/gateways/", false); + uri.AppendPath(gatewayId, true); + uri.AppendPath("/certificateAuthorities/", false); + uri.AppendPath(certificateId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetEntityTagRequest(string subscriptionId, string resourceGroupName, string serviceName, string gatewayId, string certificateId) { var message = _pipeline.CreateMessage(); @@ -236,6 +283,24 @@ public Response GetEntityTag(string subscriptionId, string resourceGroupNa } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string gatewayId, string certificateId) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/gateways/", false); + uri.AppendPath(gatewayId, true); + uri.AppendPath("/certificateAuthorities/", false); + uri.AppendPath(certificateId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serviceName, string gatewayId, string certificateId) { var message = _pipeline.CreateMessage(); @@ -330,6 +395,24 @@ public Response Get(string subscri } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string gatewayId, string certificateId, ApiManagementGatewayCertificateAuthorityData data, ETag? ifMatch) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/gateways/", false); + uri.AppendPath(gatewayId, true); + uri.AppendPath("/certificateAuthorities/", false); + uri.AppendPath(certificateId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serviceName, string gatewayId, string certificateId, ApiManagementGatewayCertificateAuthorityData data, ETag? ifMatch) { var message = _pipeline.CreateMessage(); @@ -436,6 +519,24 @@ public Response CreateOrUpdate(str } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string gatewayId, string certificateId, ETag ifMatch) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/gateways/", false); + uri.AppendPath(gatewayId, true); + uri.AppendPath("/certificateAuthorities/", false); + uri.AppendPath(certificateId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string serviceName, string gatewayId, string certificateId, ETag ifMatch) { var message = _pipeline.CreateMessage(); @@ -521,6 +622,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListByServiceNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string gatewayId, string filter, int? top, int? skip) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByServiceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string gatewayId, string filter, int? top, int? skip) { var message = _pipeline.CreateMessage(); diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/GatewayHostnameConfigurationRestOperations.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/GatewayHostnameConfigurationRestOperations.cs index 7e6d1623b130..bb5466971571 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/GatewayHostnameConfigurationRestOperations.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/GatewayHostnameConfigurationRestOperations.cs @@ -37,6 +37,35 @@ public GatewayHostnameConfigurationRestOperations(HttpPipeline pipeline, string _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByServiceRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string gatewayId, string filter, int? top, int? skip) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/gateways/", false); + uri.AppendPath(gatewayId, true); + uri.AppendPath("/hostnameConfigurations", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skip != null) + { + uri.AppendQuery("$skip", skip.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByServiceRequest(string subscriptionId, string resourceGroupName, string serviceName, string gatewayId, string filter, int? top, int? skip) { var message = _pipeline.CreateMessage(); @@ -140,6 +169,24 @@ public Response ListByService(string sub } } + internal RequestUriBuilder CreateGetEntityTagRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string gatewayId, string hcId) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/gateways/", false); + uri.AppendPath(gatewayId, true); + uri.AppendPath("/hostnameConfigurations/", false); + uri.AppendPath(hcId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetEntityTagRequest(string subscriptionId, string resourceGroupName, string serviceName, string gatewayId, string hcId) { var message = _pipeline.CreateMessage(); @@ -236,6 +283,24 @@ public Response GetEntityTag(string subscriptionId, string resourceGroupNa } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string gatewayId, string hcId) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/gateways/", false); + uri.AppendPath(gatewayId, true); + uri.AppendPath("/hostnameConfigurations/", false); + uri.AppendPath(hcId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serviceName, string gatewayId, string hcId) { var message = _pipeline.CreateMessage(); @@ -330,6 +395,24 @@ public Response Get(string subscr } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string gatewayId, string hcId, ApiManagementGatewayHostnameConfigurationData data, ETag? ifMatch) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/gateways/", false); + uri.AppendPath(gatewayId, true); + uri.AppendPath("/hostnameConfigurations/", false); + uri.AppendPath(hcId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serviceName, string gatewayId, string hcId, ApiManagementGatewayHostnameConfigurationData data, ETag? ifMatch) { var message = _pipeline.CreateMessage(); @@ -436,6 +519,24 @@ public Response CreateOrUpdate(st } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string gatewayId, string hcId, ETag ifMatch) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/gateways/", false); + uri.AppendPath(gatewayId, true); + uri.AppendPath("/hostnameConfigurations/", false); + uri.AppendPath(hcId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string serviceName, string gatewayId, string hcId, ETag ifMatch) { var message = _pipeline.CreateMessage(); @@ -521,6 +622,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListByServiceNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string gatewayId, string filter, int? top, int? skip) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByServiceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string gatewayId, string filter, int? top, int? skip) { var message = _pipeline.CreateMessage(); diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/GatewayRestOperations.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/GatewayRestOperations.cs index 69bad10e7ba6..c8e5ddbb7d20 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/GatewayRestOperations.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/GatewayRestOperations.cs @@ -37,6 +37,33 @@ public GatewayRestOperations(HttpPipeline pipeline, string applicationId, Uri en _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByServiceRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string filter, int? top, int? skip) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/gateways", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skip != null) + { + uri.AppendQuery("$skip", skip.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByServiceRequest(string subscriptionId, string resourceGroupName, string serviceName, string filter, int? top, int? skip) { var message = _pipeline.CreateMessage(); @@ -134,6 +161,22 @@ public Response ListByService(string subscriptionId, string r } } + internal RequestUriBuilder CreateGetEntityTagRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string gatewayId) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/gateways/", false); + uri.AppendPath(gatewayId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetEntityTagRequest(string subscriptionId, string resourceGroupName, string serviceName, string gatewayId) { var message = _pipeline.CreateMessage(); @@ -224,6 +267,22 @@ public Response GetEntityTag(string subscriptionId, string resourceGroupNa } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string gatewayId) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/gateways/", false); + uri.AppendPath(gatewayId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serviceName, string gatewayId) { var message = _pipeline.CreateMessage(); @@ -312,6 +371,22 @@ public Response Get(string subscriptionId, string reso } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string gatewayId, ApiManagementGatewayData data, ETag? ifMatch) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/gateways/", false); + uri.AppendPath(gatewayId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serviceName, string gatewayId, ApiManagementGatewayData data, ETag? ifMatch) { var message = _pipeline.CreateMessage(); @@ -412,6 +487,22 @@ public Response CreateOrUpdate(string subscriptionId, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string gatewayId, ETag ifMatch, ApiManagementGatewayData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/gateways/", false); + uri.AppendPath(gatewayId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string serviceName, string gatewayId, ETag ifMatch, ApiManagementGatewayData data) { var message = _pipeline.CreateMessage(); @@ -507,6 +598,22 @@ public Response Update(string subscriptionId, string r } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string gatewayId, ETag ifMatch) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/gateways/", false); + uri.AppendPath(gatewayId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string serviceName, string gatewayId, ETag ifMatch) { var message = _pipeline.CreateMessage(); @@ -586,6 +693,23 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListKeysRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string gatewayId) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/gateways/", false); + uri.AppendPath(gatewayId, true); + uri.AppendPath("/listKeys", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListKeysRequest(string subscriptionId, string resourceGroupName, string serviceName, string gatewayId) { var message = _pipeline.CreateMessage(); @@ -671,6 +795,23 @@ public Response ListKeys(string subscriptionId, string reso } } + internal RequestUriBuilder CreateRegenerateKeyRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string gatewayId, GatewayKeyRegenerateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/gateways/", false); + uri.AppendPath(gatewayId, true); + uri.AppendPath("/regenerateKey", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRegenerateKeyRequest(string subscriptionId, string resourceGroupName, string serviceName, string gatewayId, GatewayKeyRegenerateContent content) { var message = _pipeline.CreateMessage(); @@ -754,6 +895,23 @@ public Response RegenerateKey(string subscriptionId, string resourceGroupName, s } } + internal RequestUriBuilder CreateGenerateTokenRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string gatewayId, GatewayTokenRequestContract gatewayTokenRequestContract) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/gateways/", false); + uri.AppendPath(gatewayId, true); + uri.AppendPath("/generateToken", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGenerateTokenRequest(string subscriptionId, string resourceGroupName, string serviceName, string gatewayId, GatewayTokenRequestContract gatewayTokenRequestContract) { var message = _pipeline.CreateMessage(); @@ -847,6 +1005,14 @@ public Response GenerateToken(string subscriptionId, strin } } + internal RequestUriBuilder CreateListByServiceNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string filter, int? top, int? skip) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByServiceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string filter, int? top, int? skip) { var message = _pipeline.CreateMessage(); diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/GlobalSchemaRestOperations.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/GlobalSchemaRestOperations.cs index fd541b91c8c4..a0eebe5ab235 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/GlobalSchemaRestOperations.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/GlobalSchemaRestOperations.cs @@ -37,6 +37,33 @@ public GlobalSchemaRestOperations(HttpPipeline pipeline, string applicationId, U _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByServiceRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string filter, int? top, int? skip) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/schemas", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skip != null) + { + uri.AppendQuery("$skip", skip.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByServiceRequest(string subscriptionId, string resourceGroupName, string serviceName, string filter, int? top, int? skip) { var message = _pipeline.CreateMessage(); @@ -134,6 +161,22 @@ public Response ListByService(string subscriptionId, str } } + internal RequestUriBuilder CreateGetEntityTagRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string schemaId) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/schemas/", false); + uri.AppendPath(schemaId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetEntityTagRequest(string subscriptionId, string resourceGroupName, string serviceName, string schemaId) { var message = _pipeline.CreateMessage(); @@ -224,6 +267,22 @@ public Response GetEntityTag(string subscriptionId, string resourceGroupNa } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string schemaId) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/schemas/", false); + uri.AppendPath(schemaId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serviceName, string schemaId) { var message = _pipeline.CreateMessage(); @@ -312,6 +371,22 @@ public Response Get(string subscriptionId, string } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string schemaId, ApiManagementGlobalSchemaData data, ETag? ifMatch) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/schemas/", false); + uri.AppendPath(schemaId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serviceName, string schemaId, ApiManagementGlobalSchemaData data, ETag? ifMatch) { var message = _pipeline.CreateMessage(); @@ -404,6 +479,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string schemaId, ETag ifMatch) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/schemas/", false); + uri.AppendPath(schemaId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string serviceName, string schemaId, ETag ifMatch) { var message = _pipeline.CreateMessage(); @@ -483,6 +574,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListByServiceNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string filter, int? top, int? skip) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByServiceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string filter, int? top, int? skip) { var message = _pipeline.CreateMessage(); diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/GroupRestOperations.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/GroupRestOperations.cs index d2b9d5b8f780..0e74ca8bd417 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/GroupRestOperations.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/GroupRestOperations.cs @@ -37,6 +37,33 @@ public GroupRestOperations(HttpPipeline pipeline, string applicationId, Uri endp _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByServiceRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string filter, int? top, int? skip) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/groups", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skip != null) + { + uri.AppendQuery("$skip", skip.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByServiceRequest(string subscriptionId, string resourceGroupName, string serviceName, string filter, int? top, int? skip) { var message = _pipeline.CreateMessage(); @@ -134,6 +161,22 @@ public Response ListByService(string subscriptionId, string res } } + internal RequestUriBuilder CreateGetEntityTagRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string groupId) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/groups/", false); + uri.AppendPath(groupId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetEntityTagRequest(string subscriptionId, string resourceGroupName, string serviceName, string groupId) { var message = _pipeline.CreateMessage(); @@ -224,6 +267,22 @@ public Response GetEntityTag(string subscriptionId, string resourceGroupNa } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string groupId) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/groups/", false); + uri.AppendPath(groupId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serviceName, string groupId) { var message = _pipeline.CreateMessage(); @@ -312,6 +371,22 @@ public Response Get(string subscriptionId, string resour } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string groupId, ApiManagementGroupCreateOrUpdateContent content, ETag? ifMatch) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/groups/", false); + uri.AppendPath(groupId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serviceName, string groupId, ApiManagementGroupCreateOrUpdateContent content, ETag? ifMatch) { var message = _pipeline.CreateMessage(); @@ -412,6 +487,22 @@ public Response CreateOrUpdate(string subscriptionId, st } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string groupId, ETag ifMatch, ApiManagementGroupPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/groups/", false); + uri.AppendPath(groupId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string serviceName, string groupId, ETag ifMatch, ApiManagementGroupPatch patch) { var message = _pipeline.CreateMessage(); @@ -507,6 +598,22 @@ public Response Update(string subscriptionId, string res } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string groupId, ETag ifMatch) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/groups/", false); + uri.AppendPath(groupId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string serviceName, string groupId, ETag ifMatch) { var message = _pipeline.CreateMessage(); @@ -586,6 +693,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListByServiceNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string filter, int? top, int? skip) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByServiceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string filter, int? top, int? skip) { var message = _pipeline.CreateMessage(); diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/GroupUserRestOperations.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/GroupUserRestOperations.cs index d184feb34eaf..eea4bc0b7fbd 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/GroupUserRestOperations.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/GroupUserRestOperations.cs @@ -37,6 +37,35 @@ public GroupUserRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string groupId, string filter, int? top, int? skip) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/groups/", false); + uri.AppendPath(groupId, true); + uri.AppendPath("/users", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skip != null) + { + uri.AppendQuery("$skip", skip.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string serviceName, string groupId, string filter, int? top, int? skip) { var message = _pipeline.CreateMessage(); @@ -140,6 +169,24 @@ public Response List(string subscriptionId, st } } + internal RequestUriBuilder CreateCheckEntityExistsRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string groupId, string userId) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/groups/", false); + uri.AppendPath(groupId, true); + uri.AppendPath("/users/", false); + uri.AppendPath(userId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCheckEntityExistsRequest(string subscriptionId, string resourceGroupName, string serviceName, string groupId, string userId) { var message = _pipeline.CreateMessage(); @@ -236,6 +283,24 @@ public Response CheckEntityExists(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string groupId, string userId) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/groups/", false); + uri.AppendPath(groupId, true); + uri.AppendPath("/users/", false); + uri.AppendPath(userId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string serviceName, string groupId, string userId) { var message = _pipeline.CreateMessage(); @@ -328,6 +393,24 @@ public Response Create(string subscriptionId, string } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string groupId, string userId) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/groups/", false); + uri.AppendPath(groupId, true); + uri.AppendPath("/users/", false); + uri.AppendPath(userId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string serviceName, string groupId, string userId) { var message = _pipeline.CreateMessage(); @@ -410,6 +493,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string groupId, string filter, int? top, int? skip) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string groupId, string filter, int? top, int? skip) { var message = _pipeline.CreateMessage(); diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/IdentityProviderRestOperations.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/IdentityProviderRestOperations.cs index 378aa6d7cccd..84b40c1e83ef 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/IdentityProviderRestOperations.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/IdentityProviderRestOperations.cs @@ -37,6 +37,21 @@ public IdentityProviderRestOperations(HttpPipeline pipeline, string applicationI _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByServiceRequestUri(string subscriptionId, string resourceGroupName, string serviceName) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/identityProviders", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByServiceRequest(string subscriptionId, string resourceGroupName, string serviceName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByService(string subscriptionId, strin } } + internal RequestUriBuilder CreateGetEntityTagRequestUri(string subscriptionId, string resourceGroupName, string serviceName, IdentityProviderType identityProviderName) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/identityProviders/", false); + uri.AppendPath(identityProviderName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetEntityTagRequest(string subscriptionId, string resourceGroupName, string serviceName, IdentityProviderType identityProviderName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response GetEntityTag(string subscriptionId, string resourceGroupNa } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serviceName, IdentityProviderType identityProviderName) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/identityProviders/", false); + uri.AppendPath(identityProviderName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serviceName, IdentityProviderType identityProviderName) { var message = _pipeline.CreateMessage(); @@ -290,6 +337,22 @@ public Response Get(string subscriptionId, st } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serviceName, IdentityProviderType identityProviderName, ApiManagementIdentityProviderCreateOrUpdateContent content, ETag? ifMatch) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/identityProviders/", false); + uri.AppendPath(identityProviderName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serviceName, IdentityProviderType identityProviderName, ApiManagementIdentityProviderCreateOrUpdateContent content, ETag? ifMatch) { var message = _pipeline.CreateMessage(); @@ -388,6 +451,22 @@ public Response CreateOrUpdate(string subscri } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string serviceName, IdentityProviderType identityProviderName, ETag ifMatch, ApiManagementIdentityProviderPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/identityProviders/", false); + uri.AppendPath(identityProviderName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string serviceName, IdentityProviderType identityProviderName, ETag ifMatch, ApiManagementIdentityProviderPatch patch) { var message = _pipeline.CreateMessage(); @@ -481,6 +560,22 @@ public Response Update(string subscriptionId, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string serviceName, IdentityProviderType identityProviderName, ETag ifMatch) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/identityProviders/", false); + uri.AppendPath(identityProviderName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string serviceName, IdentityProviderType identityProviderName, ETag ifMatch) { var message = _pipeline.CreateMessage(); @@ -558,6 +653,23 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListSecretsRequestUri(string subscriptionId, string resourceGroupName, string serviceName, IdentityProviderType identityProviderName) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/identityProviders/", false); + uri.AppendPath(identityProviderName.ToString(), true); + uri.AppendPath("/listSecrets", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListSecretsRequest(string subscriptionId, string resourceGroupName, string serviceName, IdentityProviderType identityProviderName) { var message = _pipeline.CreateMessage(); @@ -641,6 +753,14 @@ public Response ListSecrets(string subscriptionId, string } } + internal RequestUriBuilder CreateListByServiceNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serviceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByServiceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serviceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/IssueRestOperations.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/IssueRestOperations.cs index d08359464c46..f6e9cb571133 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/IssueRestOperations.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/IssueRestOperations.cs @@ -37,6 +37,33 @@ public IssueRestOperations(HttpPipeline pipeline, string applicationId, Uri endp _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByServiceRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string filter, int? top, int? skip) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/issues", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skip != null) + { + uri.AppendQuery("$skip", skip.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByServiceRequest(string subscriptionId, string resourceGroupName, string serviceName, string filter, int? top, int? skip) { var message = _pipeline.CreateMessage(); @@ -134,6 +161,22 @@ public Response ListByService(string subscriptionId, string res } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string issueId) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/issues/", false); + uri.AppendPath(issueId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serviceName, string issueId) { var message = _pipeline.CreateMessage(); @@ -222,6 +265,14 @@ public Response Get(string subscriptionId, string resourceGro } } + internal RequestUriBuilder CreateListByServiceNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string filter, int? top, int? skip) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByServiceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string filter, int? top, int? skip) { var message = _pipeline.CreateMessage(); diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/LoggerRestOperations.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/LoggerRestOperations.cs index 31ff806591be..20c3240fdcd9 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/LoggerRestOperations.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/LoggerRestOperations.cs @@ -37,6 +37,33 @@ public LoggerRestOperations(HttpPipeline pipeline, string applicationId, Uri end _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByServiceRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string filter, int? top, int? skip) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/loggers", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skip != null) + { + uri.AppendQuery("$skip", skip.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByServiceRequest(string subscriptionId, string resourceGroupName, string serviceName, string filter, int? top, int? skip) { var message = _pipeline.CreateMessage(); @@ -134,6 +161,22 @@ public Response ListByService(string subscriptionId, string re } } + internal RequestUriBuilder CreateGetEntityTagRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string loggerId) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/loggers/", false); + uri.AppendPath(loggerId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetEntityTagRequest(string subscriptionId, string resourceGroupName, string serviceName, string loggerId) { var message = _pipeline.CreateMessage(); @@ -224,6 +267,22 @@ public Response GetEntityTag(string subscriptionId, string resourceGroupNa } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string loggerId) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/loggers/", false); + uri.AppendPath(loggerId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serviceName, string loggerId) { var message = _pipeline.CreateMessage(); @@ -312,6 +371,22 @@ public Response Get(string subscriptionId, string resou } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string loggerId, ApiManagementLoggerData data, ETag? ifMatch) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/loggers/", false); + uri.AppendPath(loggerId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serviceName, string loggerId, ApiManagementLoggerData data, ETag? ifMatch) { var message = _pipeline.CreateMessage(); @@ -412,6 +487,22 @@ public Response CreateOrUpdate(string subscriptionId, s } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string loggerId, ETag ifMatch, ApiManagementLoggerPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/loggers/", false); + uri.AppendPath(loggerId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string serviceName, string loggerId, ETag ifMatch, ApiManagementLoggerPatch patch) { var message = _pipeline.CreateMessage(); @@ -507,6 +598,22 @@ public Response Update(string subscriptionId, string re } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string loggerId, ETag ifMatch) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/loggers/", false); + uri.AppendPath(loggerId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string serviceName, string loggerId, ETag ifMatch) { var message = _pipeline.CreateMessage(); @@ -586,6 +693,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListByServiceNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string filter, int? top, int? skip) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByServiceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string filter, int? top, int? skip) { var message = _pipeline.CreateMessage(); diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/NamedValueRestOperations.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/NamedValueRestOperations.cs index 77ffcce7803f..f642af1cc3f2 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/NamedValueRestOperations.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/NamedValueRestOperations.cs @@ -37,6 +37,37 @@ public NamedValueRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByServiceRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string filter, int? top, int? skip, bool? isKeyVaultRefreshFailed) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/namedValues", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skip != null) + { + uri.AppendQuery("$skip", skip.Value, true); + } + if (isKeyVaultRefreshFailed != null) + { + uri.AppendQuery("isKeyVaultRefreshFailed", isKeyVaultRefreshFailed.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByServiceRequest(string subscriptionId, string resourceGroupName, string serviceName, string filter, int? top, int? skip, bool? isKeyVaultRefreshFailed) { var message = _pipeline.CreateMessage(); @@ -140,6 +171,22 @@ public Response ListByService(string subscriptionId, strin } } + internal RequestUriBuilder CreateGetEntityTagRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string namedValueId) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/namedValues/", false); + uri.AppendPath(namedValueId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetEntityTagRequest(string subscriptionId, string resourceGroupName, string serviceName, string namedValueId) { var message = _pipeline.CreateMessage(); @@ -230,6 +277,22 @@ public Response GetEntityTag(string subscriptionId, string resourceGroupNa } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string namedValueId) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/namedValues/", false); + uri.AppendPath(namedValueId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serviceName, string namedValueId) { var message = _pipeline.CreateMessage(); @@ -318,6 +381,22 @@ public Response Get(string subscriptionId, string r } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string namedValueId, ApiManagementNamedValueCreateOrUpdateContent content, ETag? ifMatch) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/namedValues/", false); + uri.AppendPath(namedValueId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serviceName, string namedValueId, ApiManagementNamedValueCreateOrUpdateContent content, ETag? ifMatch) { var message = _pipeline.CreateMessage(); @@ -410,6 +489,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string namedValueId, ETag ifMatch, ApiManagementNamedValuePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/namedValues/", false); + uri.AppendPath(namedValueId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string serviceName, string namedValueId, ETag ifMatch, ApiManagementNamedValuePatch patch) { var message = _pipeline.CreateMessage(); @@ -497,6 +592,22 @@ public Response Update(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string namedValueId, ETag ifMatch) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/namedValues/", false); + uri.AppendPath(namedValueId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string serviceName, string namedValueId, ETag ifMatch) { var message = _pipeline.CreateMessage(); @@ -576,6 +687,23 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListValueRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string namedValueId) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/namedValues/", false); + uri.AppendPath(namedValueId, true); + uri.AppendPath("/listValue", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListValueRequest(string subscriptionId, string resourceGroupName, string serviceName, string namedValueId) { var message = _pipeline.CreateMessage(); @@ -661,6 +789,23 @@ public Response ListValue(string subscriptionId, strin } } + internal RequestUriBuilder CreateRefreshSecretRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string namedValueId) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/namedValues/", false); + uri.AppendPath(namedValueId, true); + uri.AppendPath("/refreshSecret", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRefreshSecretRequest(string subscriptionId, string resourceGroupName, string serviceName, string namedValueId) { var message = _pipeline.CreateMessage(); @@ -738,6 +883,14 @@ public Response RefreshSecret(string subscriptionId, string resourceGroupName, s } } + internal RequestUriBuilder CreateListByServiceNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string filter, int? top, int? skip, bool? isKeyVaultRefreshFailed) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByServiceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string filter, int? top, int? skip, bool? isKeyVaultRefreshFailed) { var message = _pipeline.CreateMessage(); diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/NetworkStatusRestOperations.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/NetworkStatusRestOperations.cs index f948fbc9c45c..f2dc9a8fec08 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/NetworkStatusRestOperations.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/NetworkStatusRestOperations.cs @@ -38,6 +38,21 @@ public NetworkStatusRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByServiceRequestUri(string subscriptionId, string resourceGroupName, string serviceName) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/networkstatus", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByServiceRequest(string subscriptionId, string resourceGroupName, string serviceName) { var message = _pipeline.CreateMessage(); @@ -127,6 +142,23 @@ public Response> ListByService( } } + internal RequestUriBuilder CreateListByLocationRequestUri(string subscriptionId, string resourceGroupName, string serviceName, AzureLocation locationName) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/locations/", false); + uri.AppendPath(locationName, true); + uri.AppendPath("/networkstatus", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByLocationRequest(string subscriptionId, string resourceGroupName, string serviceName, AzureLocation locationName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/NotificationRecipientEmailRestOperations.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/NotificationRecipientEmailRestOperations.cs index ec774781433e..93d4ccebb95d 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/NotificationRecipientEmailRestOperations.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/NotificationRecipientEmailRestOperations.cs @@ -37,6 +37,23 @@ public NotificationRecipientEmailRestOperations(HttpPipeline pipeline, string ap _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByNotificationRequestUri(string subscriptionId, string resourceGroupName, string serviceName, NotificationName notificationName) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/notifications/", false); + uri.AppendPath(notificationName.ToString(), true); + uri.AppendPath("/recipientEmails", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByNotificationRequest(string subscriptionId, string resourceGroupName, string serviceName, NotificationName notificationName) { var message = _pipeline.CreateMessage(); @@ -120,6 +137,24 @@ public Response ListByNotification(string subscription } } + internal RequestUriBuilder CreateCheckEntityExistsRequestUri(string subscriptionId, string resourceGroupName, string serviceName, NotificationName notificationName, string email) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/notifications/", false); + uri.AppendPath(notificationName.ToString(), true); + uri.AppendPath("/recipientEmails/", false); + uri.AppendPath(email, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCheckEntityExistsRequest(string subscriptionId, string resourceGroupName, string serviceName, NotificationName notificationName, string email) { var message = _pipeline.CreateMessage(); @@ -214,6 +249,24 @@ public Response CheckEntityExists(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serviceName, NotificationName notificationName, string email) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/notifications/", false); + uri.AppendPath(notificationName.ToString(), true); + uri.AppendPath("/recipientEmails/", false); + uri.AppendPath(email, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serviceName, NotificationName notificationName, string email) { var message = _pipeline.CreateMessage(); @@ -304,6 +357,24 @@ public Response CreateOrUpdate(string subscriptionId, st } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string serviceName, NotificationName notificationName, string email) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/notifications/", false); + uri.AppendPath(notificationName.ToString(), true); + uri.AppendPath("/recipientEmails/", false); + uri.AppendPath(email, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string serviceName, NotificationName notificationName, string email) { var message = _pipeline.CreateMessage(); diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/NotificationRecipientUserRestOperations.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/NotificationRecipientUserRestOperations.cs index 693f735626df..7da5ffe60fca 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/NotificationRecipientUserRestOperations.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/NotificationRecipientUserRestOperations.cs @@ -37,6 +37,23 @@ public NotificationRecipientUserRestOperations(HttpPipeline pipeline, string app _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByNotificationRequestUri(string subscriptionId, string resourceGroupName, string serviceName, NotificationName notificationName) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/notifications/", false); + uri.AppendPath(notificationName.ToString(), true); + uri.AppendPath("/recipientUsers", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByNotificationRequest(string subscriptionId, string resourceGroupName, string serviceName, NotificationName notificationName) { var message = _pipeline.CreateMessage(); @@ -120,6 +137,24 @@ public Response ListByNotification(string subscriptionI } } + internal RequestUriBuilder CreateCheckEntityExistsRequestUri(string subscriptionId, string resourceGroupName, string serviceName, NotificationName notificationName, string userId) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/notifications/", false); + uri.AppendPath(notificationName.ToString(), true); + uri.AppendPath("/recipientUsers/", false); + uri.AppendPath(userId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCheckEntityExistsRequest(string subscriptionId, string resourceGroupName, string serviceName, NotificationName notificationName, string userId) { var message = _pipeline.CreateMessage(); @@ -214,6 +249,24 @@ public Response CheckEntityExists(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serviceName, NotificationName notificationName, string userId) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/notifications/", false); + uri.AppendPath(notificationName.ToString(), true); + uri.AppendPath("/recipientUsers/", false); + uri.AppendPath(userId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serviceName, NotificationName notificationName, string userId) { var message = _pipeline.CreateMessage(); @@ -304,6 +357,24 @@ public Response CreateOrUpdate(string subscriptionId, str } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string serviceName, NotificationName notificationName, string userId) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/notifications/", false); + uri.AppendPath(notificationName.ToString(), true); + uri.AppendPath("/recipientUsers/", false); + uri.AppendPath(userId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string serviceName, NotificationName notificationName, string userId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/NotificationRestOperations.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/NotificationRestOperations.cs index 89141a266e84..396836c5cff2 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/NotificationRestOperations.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/NotificationRestOperations.cs @@ -37,6 +37,29 @@ public NotificationRestOperations(HttpPipeline pipeline, string applicationId, U _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByServiceRequestUri(string subscriptionId, string resourceGroupName, string serviceName, int? top, int? skip) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/notifications", false); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skip != null) + { + uri.AppendQuery("$skip", skip.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByServiceRequest(string subscriptionId, string resourceGroupName, string serviceName, int? top, int? skip) { var message = _pipeline.CreateMessage(); @@ -128,6 +151,22 @@ public Response ListByService(string subscriptionId, str } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serviceName, NotificationName notificationName) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/notifications/", false); + uri.AppendPath(notificationName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serviceName, NotificationName notificationName) { var message = _pipeline.CreateMessage(); @@ -214,6 +253,22 @@ public Response Get(string subscriptionId, string } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serviceName, NotificationName notificationName, ETag? ifMatch) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/notifications/", false); + uri.AppendPath(notificationName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serviceName, NotificationName notificationName, ETag? ifMatch) { var message = _pipeline.CreateMessage(); @@ -302,6 +357,14 @@ public Response CreateOrUpdate(string subscriptio } } + internal RequestUriBuilder CreateListByServiceNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, int? top, int? skip) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByServiceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, int? top, int? skip) { var message = _pipeline.CreateMessage(); diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/OpenIdConnectProviderRestOperations.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/OpenIdConnectProviderRestOperations.cs index 9440dca4fcfb..01e824f75e32 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/OpenIdConnectProviderRestOperations.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/OpenIdConnectProviderRestOperations.cs @@ -37,6 +37,33 @@ public OpenIdConnectProviderRestOperations(HttpPipeline pipeline, string applica _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByServiceRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string filter, int? top, int? skip) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/openidConnectProviders", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skip != null) + { + uri.AppendQuery("$skip", skip.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByServiceRequest(string subscriptionId, string resourceGroupName, string serviceName, string filter, int? top, int? skip) { var message = _pipeline.CreateMessage(); @@ -134,6 +161,22 @@ public Response ListByService(string subscripti } } + internal RequestUriBuilder CreateGetEntityTagRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string openId) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/openidConnectProviders/", false); + uri.AppendPath(openId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetEntityTagRequest(string subscriptionId, string resourceGroupName, string serviceName, string openId) { var message = _pipeline.CreateMessage(); @@ -224,6 +267,22 @@ public Response GetEntityTag(string subscriptionId, string resourceGroupNa } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string openId) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/openidConnectProviders/", false); + uri.AppendPath(openId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serviceName, string openId) { var message = _pipeline.CreateMessage(); @@ -312,6 +371,22 @@ public Response Get(string subscriptionI } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string openId, ApiManagementOpenIdConnectProviderData data, ETag? ifMatch) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/openidConnectProviders/", false); + uri.AppendPath(openId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serviceName, string openId, ApiManagementOpenIdConnectProviderData data, ETag? ifMatch) { var message = _pipeline.CreateMessage(); @@ -412,6 +487,22 @@ public Response CreateOrUpdate(string su } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string openId, ETag ifMatch, ApiManagementOpenIdConnectProviderPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/openidConnectProviders/", false); + uri.AppendPath(openId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string serviceName, string openId, ETag ifMatch, ApiManagementOpenIdConnectProviderPatch patch) { var message = _pipeline.CreateMessage(); @@ -507,6 +598,22 @@ public Response Update(string subscripti } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string openId, ETag ifMatch) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/openidConnectProviders/", false); + uri.AppendPath(openId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string serviceName, string openId, ETag ifMatch) { var message = _pipeline.CreateMessage(); @@ -586,6 +693,23 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListSecretsRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string openId) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/openidConnectProviders/", false); + uri.AppendPath(openId, true); + uri.AppendPath("/listSecrets", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListSecretsRequest(string subscriptionId, string resourceGroupName, string serviceName, string openId) { var message = _pipeline.CreateMessage(); @@ -671,6 +795,14 @@ public Response ListSecrets(string subscriptionId, string } } + internal RequestUriBuilder CreateListByServiceNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string filter, int? top, int? skip) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByServiceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string filter, int? top, int? skip) { var message = _pipeline.CreateMessage(); diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/OperationRestOperations.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/OperationRestOperations.cs index 11ff847f05ec..6876926361f0 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/OperationRestOperations.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/OperationRestOperations.cs @@ -37,6 +37,39 @@ public OperationRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByTagsRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string filter, int? top, int? skip, bool? includeNotTaggedOperations) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apis/", false); + uri.AppendPath(apiId, true); + uri.AppendPath("/operationsByTags", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skip != null) + { + uri.AppendQuery("$skip", skip.Value, true); + } + if (includeNotTaggedOperations != null) + { + uri.AppendQuery("includeNotTaggedOperations", includeNotTaggedOperations.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByTagsRequest(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string filter, int? top, int? skip, bool? includeNotTaggedOperations) { var message = _pipeline.CreateMessage(); @@ -146,6 +179,14 @@ public Response ListByTags(string subscriptionId, string } } + internal RequestUriBuilder CreateListByTagsNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string apiId, string filter, int? top, int? skip, bool? includeNotTaggedOperations) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByTagsNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string apiId, string filter, int? top, int? skip, bool? includeNotTaggedOperations) { var message = _pipeline.CreateMessage(); diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/OutboundNetworkDependenciesEndpointsRestOperations.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/OutboundNetworkDependenciesEndpointsRestOperations.cs index 6d3684c38d52..147fccb52d19 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/OutboundNetworkDependenciesEndpointsRestOperations.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/OutboundNetworkDependenciesEndpointsRestOperations.cs @@ -37,6 +37,21 @@ public OutboundNetworkDependenciesEndpointsRestOperations(HttpPipeline pipeline, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByServiceRequestUri(string subscriptionId, string resourceGroupName, string serviceName) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/outboundNetworkDependenciesEndpoints", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByServiceRequest(string subscriptionId, string resourceGroupName, string serviceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/PolicyDescriptionRestOperations.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/PolicyDescriptionRestOperations.cs index 6609aeb8ad4e..bb73f6bbc2b8 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/PolicyDescriptionRestOperations.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/PolicyDescriptionRestOperations.cs @@ -37,6 +37,25 @@ public PolicyDescriptionRestOperations(HttpPipeline pipeline, string application _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByServiceRequestUri(string subscriptionId, string resourceGroupName, string serviceName, PolicyScopeContract? scope) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/policyDescriptions", false); + if (scope != null) + { + uri.AppendQuery("scope", scope.Value.ToSerialString(), true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByServiceRequest(string subscriptionId, string resourceGroupName, string serviceName, PolicyScopeContract? scope) { var message = _pipeline.CreateMessage(); diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/PolicyRestOperations.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/PolicyRestOperations.cs index bfcb2325068f..c19fb81f4563 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/PolicyRestOperations.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/PolicyRestOperations.cs @@ -37,6 +37,21 @@ public PolicyRestOperations(HttpPipeline pipeline, string applicationId, Uri end _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByServiceRequestUri(string subscriptionId, string resourceGroupName, string serviceName) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/policies", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByServiceRequest(string subscriptionId, string resourceGroupName, string serviceName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByService(string subscriptionId, string re } } + internal RequestUriBuilder CreateGetEntityTagRequestUri(string subscriptionId, string resourceGroupName, string serviceName, PolicyName policyId) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/policies/", false); + uri.AppendPath(policyId.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetEntityTagRequest(string subscriptionId, string resourceGroupName, string serviceName, PolicyName policyId) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,26 @@ public Response GetEntityTag(string subscriptionId, string resourceGroupNa } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serviceName, PolicyName policyId, PolicyExportFormat? format) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/policies/", false); + uri.AppendPath(policyId.ToString(), true); + if (format != null) + { + uri.AppendQuery("format", format.Value.ToString(), true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serviceName, PolicyName policyId, PolicyExportFormat? format) { var message = _pipeline.CreateMessage(); @@ -296,6 +347,22 @@ public Response Get(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serviceName, PolicyName policyId, PolicyContractData data, ETag? ifMatch) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/policies/", false); + uri.AppendPath(policyId.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serviceName, PolicyName policyId, PolicyContractData data, ETag? ifMatch) { var message = _pipeline.CreateMessage(); @@ -394,6 +461,22 @@ public Response CreateOrUpdate(string subscriptionId, string } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string serviceName, PolicyName policyId, ETag ifMatch) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/policies/", false); + uri.AppendPath(policyId.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string serviceName, PolicyName policyId, ETag ifMatch) { var message = _pipeline.CreateMessage(); diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/PortalRevisionRestOperations.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/PortalRevisionRestOperations.cs index 73d0b49ecd73..d96fc6d8faae 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/PortalRevisionRestOperations.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/PortalRevisionRestOperations.cs @@ -37,6 +37,33 @@ public PortalRevisionRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByServiceRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string filter, int? top, int? skip) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/portalRevisions", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skip != null) + { + uri.AppendQuery("$skip", skip.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByServiceRequest(string subscriptionId, string resourceGroupName, string serviceName, string filter, int? top, int? skip) { var message = _pipeline.CreateMessage(); @@ -150,6 +177,22 @@ public Response ListByService(string subscriptionId, s } } + internal RequestUriBuilder CreateGetEntityTagRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string portalRevisionId) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/portalRevisions/", false); + uri.AppendPath(portalRevisionId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetEntityTagRequest(string subscriptionId, string resourceGroupName, string serviceName, string portalRevisionId) { var message = _pipeline.CreateMessage(); @@ -240,6 +283,22 @@ public Response GetEntityTag(string subscriptionId, string resourceGroupNa } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string portalRevisionId) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/portalRevisions/", false); + uri.AppendPath(portalRevisionId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serviceName, string portalRevisionId) { var message = _pipeline.CreateMessage(); @@ -328,6 +387,22 @@ public Response Get(string subscriptionId, stri } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string portalRevisionId, ApiManagementPortalRevisionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/portalRevisions/", false); + uri.AppendPath(portalRevisionId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serviceName, string portalRevisionId, ApiManagementPortalRevisionData data) { var message = _pipeline.CreateMessage(); @@ -412,6 +487,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string portalRevisionId, ETag ifMatch, ApiManagementPortalRevisionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/portalRevisions/", false); + uri.AppendPath(portalRevisionId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string serviceName, string portalRevisionId, ETag ifMatch, ApiManagementPortalRevisionData data) { var message = _pipeline.CreateMessage(); @@ -499,6 +590,14 @@ public Response Update(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListByServiceNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string filter, int? top, int? skip) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByServiceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string filter, int? top, int? skip) { var message = _pipeline.CreateMessage(); diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/PortalSettingsRestOperations.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/PortalSettingsRestOperations.cs index 3172d33c04fa..60c3bc5947c6 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/PortalSettingsRestOperations.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/PortalSettingsRestOperations.cs @@ -37,6 +37,21 @@ public PortalSettingsRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByServiceRequestUri(string subscriptionId, string resourceGroupName, string serviceName) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/portalsettings", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByServiceRequest(string subscriptionId, string resourceGroupName, string serviceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/PrivateEndpointConnectionRestOperations.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/PrivateEndpointConnectionRestOperations.cs index 40e9d09d1803..be7032dd5c3a 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/PrivateEndpointConnectionRestOperations.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/PrivateEndpointConnectionRestOperations.cs @@ -37,6 +37,21 @@ public PrivateEndpointConnectionRestOperations(HttpPipeline pipeline, string app _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByServiceRequestUri(string subscriptionId, string resourceGroupName, string serviceName) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/privateEndpointConnections", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByServiceRequest(string subscriptionId, string resourceGroupName, string serviceName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByService( } } + internal RequestUriBuilder CreateGetByNameRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string privateEndpointConnectionName) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetByNameRequest(string subscriptionId, string resourceGroupName, string serviceName, string privateEndpointConnectionName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response GetByName(string sub } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string privateEndpointConnectionName, ApiManagementPrivateEndpointConnectionCreateOrUpdateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serviceName, string privateEndpointConnectionName, ApiManagementPrivateEndpointConnectionCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); @@ -288,6 +335,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string privateEndpointConnectionName) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string serviceName, string privateEndpointConnectionName) { var message = _pipeline.CreateMessage(); @@ -366,6 +429,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListPrivateLinkResourcesRequestUri(string subscriptionId, string resourceGroupName, string serviceName) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/privateLinkResources", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListPrivateLinkResourcesRequest(string subscriptionId, string resourceGroupName, string serviceName) { var message = _pipeline.CreateMessage(); @@ -445,6 +523,22 @@ public Response ListPrivateLinkResou } } + internal RequestUriBuilder CreateGetPrivateLinkResourceRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string privateLinkSubResourceName) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/privateLinkResources/", false); + uri.AppendPath(privateLinkSubResourceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetPrivateLinkResourceRequest(string subscriptionId, string resourceGroupName, string serviceName, string privateLinkSubResourceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/ProductApiRestOperations.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/ProductApiRestOperations.cs index 4fd75fe05ef9..377527d79d98 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/ProductApiRestOperations.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/ProductApiRestOperations.cs @@ -37,6 +37,35 @@ public ProductApiRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByProductRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string productId, string filter, int? top, int? skip) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/products/", false); + uri.AppendPath(productId, true); + uri.AppendPath("/apis", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skip != null) + { + uri.AppendQuery("$skip", skip.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByProductRequest(string subscriptionId, string resourceGroupName, string serviceName, string productId, string filter, int? top, int? skip) { var message = _pipeline.CreateMessage(); @@ -140,6 +169,24 @@ public Response ListByProduct(string subscrip } } + internal RequestUriBuilder CreateCheckEntityExistsRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string productId, string apiId) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/products/", false); + uri.AppendPath(productId, true); + uri.AppendPath("/apis/", false); + uri.AppendPath(apiId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCheckEntityExistsRequest(string subscriptionId, string resourceGroupName, string serviceName, string productId, string apiId) { var message = _pipeline.CreateMessage(); @@ -236,6 +283,24 @@ public Response CheckEntityExists(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string productId, string apiId) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/products/", false); + uri.AppendPath(productId, true); + uri.AppendPath("/apis/", false); + uri.AppendPath(apiId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serviceName, string productId, string apiId) { var message = _pipeline.CreateMessage(); @@ -328,6 +393,24 @@ public Response CreateOrUpdate(string subscriptionId, string res } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string productId, string apiId) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/products/", false); + uri.AppendPath(productId, true); + uri.AppendPath("/apis/", false); + uri.AppendPath(apiId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string serviceName, string productId, string apiId) { var message = _pipeline.CreateMessage(); @@ -410,6 +493,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListByProductNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string productId, string filter, int? top, int? skip) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByProductNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string productId, string filter, int? top, int? skip) { var message = _pipeline.CreateMessage(); diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/ProductGroupRestOperations.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/ProductGroupRestOperations.cs index 28489ace25ad..81140639663f 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/ProductGroupRestOperations.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/ProductGroupRestOperations.cs @@ -37,6 +37,35 @@ public ProductGroupRestOperations(HttpPipeline pipeline, string applicationId, U _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByProductRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string productId, string filter, int? top, int? skip) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/products/", false); + uri.AppendPath(productId, true); + uri.AppendPath("/groups", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skip != null) + { + uri.AppendQuery("$skip", skip.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByProductRequest(string subscriptionId, string resourceGroupName, string serviceName, string productId, string filter, int? top, int? skip) { var message = _pipeline.CreateMessage(); @@ -140,6 +169,24 @@ public Response ListByProduct(string subscr } } + internal RequestUriBuilder CreateCheckEntityExistsRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string productId, string groupId) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/products/", false); + uri.AppendPath(productId, true); + uri.AppendPath("/groups/", false); + uri.AppendPath(groupId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCheckEntityExistsRequest(string subscriptionId, string resourceGroupName, string serviceName, string productId, string groupId) { var message = _pipeline.CreateMessage(); @@ -236,6 +283,24 @@ public Response CheckEntityExists(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string productId, string groupId) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/products/", false); + uri.AppendPath(productId, true); + uri.AppendPath("/groups/", false); + uri.AppendPath(groupId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serviceName, string productId, string groupId) { var message = _pipeline.CreateMessage(); @@ -328,6 +393,24 @@ public Response CreateOrUpdate(string subscriptionId, string r } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string productId, string groupId) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/products/", false); + uri.AppendPath(productId, true); + uri.AppendPath("/groups/", false); + uri.AppendPath(groupId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string serviceName, string productId, string groupId) { var message = _pipeline.CreateMessage(); @@ -410,6 +493,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListByProductNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string productId, string filter, int? top, int? skip) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByProductNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string productId, string filter, int? top, int? skip) { var message = _pipeline.CreateMessage(); diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/ProductPolicyRestOperations.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/ProductPolicyRestOperations.cs index e678181bea6d..d1387d2feb5d 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/ProductPolicyRestOperations.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/ProductPolicyRestOperations.cs @@ -37,6 +37,23 @@ public ProductPolicyRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByProductRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string productId) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/products/", false); + uri.AppendPath(productId, true); + uri.AppendPath("/policies", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByProductRequest(string subscriptionId, string resourceGroupName, string serviceName, string productId) { var message = _pipeline.CreateMessage(); @@ -122,6 +139,24 @@ public Response ListByProduct(string subscriptionId, string re } } + internal RequestUriBuilder CreateGetEntityTagRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string productId, PolicyName policyId) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/products/", false); + uri.AppendPath(productId, true); + uri.AppendPath("/policies/", false); + uri.AppendPath(policyId.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetEntityTagRequest(string subscriptionId, string resourceGroupName, string serviceName, string productId, PolicyName policyId) { var message = _pipeline.CreateMessage(); @@ -216,6 +251,28 @@ public Response GetEntityTag(string subscriptionId, string resourceGroupNa } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string productId, PolicyName policyId, PolicyExportFormat? format) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/products/", false); + uri.AppendPath(productId, true); + uri.AppendPath("/policies/", false); + uri.AppendPath(policyId.ToString(), true); + if (format != null) + { + uri.AppendQuery("format", format.Value.ToString(), true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serviceName, string productId, PolicyName policyId, PolicyExportFormat? format) { var message = _pipeline.CreateMessage(); @@ -314,6 +371,24 @@ public Response Get(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string productId, PolicyName policyId, PolicyContractData data, ETag? ifMatch) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/products/", false); + uri.AppendPath(productId, true); + uri.AppendPath("/policies/", false); + uri.AppendPath(policyId.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serviceName, string productId, PolicyName policyId, PolicyContractData data, ETag? ifMatch) { var message = _pipeline.CreateMessage(); @@ -418,6 +493,24 @@ public Response CreateOrUpdate(string subscriptionId, string } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string productId, PolicyName policyId, ETag ifMatch) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/products/", false); + uri.AppendPath(productId, true); + uri.AppendPath("/policies/", false); + uri.AppendPath(policyId.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string serviceName, string productId, PolicyName policyId, ETag ifMatch) { var message = _pipeline.CreateMessage(); diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/ProductRestOperations.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/ProductRestOperations.cs index 984cc09406b0..a67198415f1e 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/ProductRestOperations.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/ProductRestOperations.cs @@ -37,6 +37,41 @@ public ProductRestOperations(HttpPipeline pipeline, string applicationId, Uri en _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByServiceRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string filter, int? top, int? skip, bool? expandGroups, string tags) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/products", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skip != null) + { + uri.AppendQuery("$skip", skip.Value, true); + } + if (expandGroups != null) + { + uri.AppendQuery("expandGroups", expandGroups.Value, true); + } + if (tags != null) + { + uri.AppendQuery("tags", tags, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByServiceRequest(string subscriptionId, string resourceGroupName, string serviceName, string filter, int? top, int? skip, bool? expandGroups, string tags) { var message = _pipeline.CreateMessage(); @@ -146,6 +181,22 @@ public Response ListByService(string subscriptionId, string r } } + internal RequestUriBuilder CreateGetEntityTagRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string productId) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/products/", false); + uri.AppendPath(productId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetEntityTagRequest(string subscriptionId, string resourceGroupName, string serviceName, string productId) { var message = _pipeline.CreateMessage(); @@ -236,6 +287,22 @@ public Response GetEntityTag(string subscriptionId, string resourceGroupNa } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string productId) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/products/", false); + uri.AppendPath(productId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serviceName, string productId) { var message = _pipeline.CreateMessage(); @@ -324,6 +391,22 @@ public Response Get(string subscriptionId, string reso } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string productId, ApiManagementProductData data, ETag? ifMatch) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/products/", false); + uri.AppendPath(productId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serviceName, string productId, ApiManagementProductData data, ETag? ifMatch) { var message = _pipeline.CreateMessage(); @@ -424,6 +507,22 @@ public Response CreateOrUpdate(string subscriptionId, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string productId, ETag ifMatch, ApiManagementProductPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/products/", false); + uri.AppendPath(productId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string serviceName, string productId, ETag ifMatch, ApiManagementProductPatch patch) { var message = _pipeline.CreateMessage(); @@ -519,6 +618,26 @@ public Response Update(string subscriptionId, string r } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string productId, ETag ifMatch, bool? deleteSubscriptions) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/products/", false); + uri.AppendPath(productId, true); + if (deleteSubscriptions != null) + { + uri.AppendQuery("deleteSubscriptions", deleteSubscriptions.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string serviceName, string productId, ETag ifMatch, bool? deleteSubscriptions) { var message = _pipeline.CreateMessage(); @@ -604,6 +723,37 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListByTagsRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string filter, int? top, int? skip, bool? includeNotTaggedProducts) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/productsByTags", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skip != null) + { + uri.AppendQuery("$skip", skip.Value, true); + } + if (includeNotTaggedProducts != null) + { + uri.AppendQuery("includeNotTaggedProducts", includeNotTaggedProducts.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByTagsRequest(string subscriptionId, string resourceGroupName, string serviceName, string filter, int? top, int? skip, bool? includeNotTaggedProducts) { var message = _pipeline.CreateMessage(); @@ -707,6 +857,14 @@ public Response ListByTags(string subscriptionId, string } } + internal RequestUriBuilder CreateListByServiceNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string filter, int? top, int? skip, bool? expandGroups, string tags) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByServiceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string filter, int? top, int? skip, bool? expandGroups, string tags) { var message = _pipeline.CreateMessage(); @@ -793,6 +951,14 @@ public Response ListByServiceNextPage(string nextLink, string } } + internal RequestUriBuilder CreateListByTagsNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string filter, int? top, int? skip, bool? includeNotTaggedProducts) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByTagsNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string filter, int? top, int? skip, bool? includeNotTaggedProducts) { var message = _pipeline.CreateMessage(); diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/ProductSubscriptionsRestOperations.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/ProductSubscriptionsRestOperations.cs index cf61410e2068..adccd202e370 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/ProductSubscriptionsRestOperations.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/ProductSubscriptionsRestOperations.cs @@ -37,6 +37,35 @@ public ProductSubscriptionsRestOperations(HttpPipeline pipeline, string applicat _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string productId, string filter, int? top, int? skip) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/products/", false); + uri.AppendPath(productId, true); + uri.AppendPath("/subscriptions", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skip != null) + { + uri.AppendQuery("$skip", skip.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string serviceName, string productId, string filter, int? top, int? skip) { var message = _pipeline.CreateMessage(); @@ -140,6 +169,14 @@ public Response List(string subscriptionId, string resou } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string productId, string filter, int? top, int? skip) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string productId, string filter, int? top, int? skip) { var message = _pipeline.CreateMessage(); diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/QuotaByCounterKeysRestOperations.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/QuotaByCounterKeysRestOperations.cs index 40b84a3b0a5d..b051c87167ed 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/QuotaByCounterKeysRestOperations.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/QuotaByCounterKeysRestOperations.cs @@ -37,6 +37,22 @@ public QuotaByCounterKeysRestOperations(HttpPipeline pipeline, string applicatio _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByServiceRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string quotaCounterKey) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/quotas/", false); + uri.AppendPath(quotaCounterKey, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByServiceRequest(string subscriptionId, string resourceGroupName, string serviceName, string quotaCounterKey) { var message = _pipeline.CreateMessage(); @@ -121,6 +137,22 @@ public Response ListByService(string subscriptionId, str } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string quotaCounterKey, QuotaCounterValueUpdateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/quotas/", false); + uri.AppendPath(quotaCounterKey, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string serviceName, string quotaCounterKey, QuotaCounterValueUpdateContent content) { var message = _pipeline.CreateMessage(); diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/QuotaByPeriodKeysRestOperations.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/QuotaByPeriodKeysRestOperations.cs index a10b185faa43..29b8f6ed01db 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/QuotaByPeriodKeysRestOperations.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/QuotaByPeriodKeysRestOperations.cs @@ -37,6 +37,24 @@ public QuotaByPeriodKeysRestOperations(HttpPipeline pipeline, string application _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string quotaCounterKey, string quotaPeriodKey) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/quotas/", false); + uri.AppendPath(quotaCounterKey, true); + uri.AppendPath("/periods/", false); + uri.AppendPath(quotaPeriodKey, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serviceName, string quotaCounterKey, string quotaPeriodKey) { var message = _pipeline.CreateMessage(); @@ -127,6 +145,24 @@ public Response Get(string subscriptionId, string resource } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string quotaCounterKey, string quotaPeriodKey, QuotaCounterValueUpdateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/quotas/", false); + uri.AppendPath(quotaCounterKey, true); + uri.AppendPath("/periods/", false); + uri.AppendPath(quotaPeriodKey, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string serviceName, string quotaCounterKey, string quotaPeriodKey, QuotaCounterValueUpdateContent content) { var message = _pipeline.CreateMessage(); diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/RegionRestOperations.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/RegionRestOperations.cs index f7d52add08f0..a07cf0bb192d 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/RegionRestOperations.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/RegionRestOperations.cs @@ -37,6 +37,21 @@ public RegionRestOperations(HttpPipeline pipeline, string applicationId, Uri end _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByServiceRequestUri(string subscriptionId, string resourceGroupName, string serviceName) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/regions", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByServiceRequest(string subscriptionId, string resourceGroupName, string serviceName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,14 @@ public Response ListByService(string subscriptionId, string re } } + internal RequestUriBuilder CreateListByServiceNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serviceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByServiceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serviceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/ReportsRestOperations.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/ReportsRestOperations.cs index aac9218c91ff..fc80a5585ecd 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/ReportsRestOperations.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/ReportsRestOperations.cs @@ -37,6 +37,34 @@ public ReportsRestOperations(HttpPipeline pipeline, string applicationId, Uri en _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByApiRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string filter, int? top, int? skip, string orderBy) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/reports/byApi", false); + uri.AppendQuery("$filter", filter, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skip != null) + { + uri.AppendQuery("$skip", skip.Value, true); + } + if (orderBy != null) + { + uri.AppendQuery("$orderby", orderBy, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByApiRequest(string subscriptionId, string resourceGroupName, string serviceName, string filter, int? top, int? skip, string orderBy) { var message = _pipeline.CreateMessage(); @@ -139,6 +167,34 @@ public Response ListByApi(string subscriptionId, string resour } } + internal RequestUriBuilder CreateListByUserRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string filter, int? top, int? skip, string orderBy) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/reports/byUser", false); + uri.AppendQuery("$filter", filter, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skip != null) + { + uri.AppendQuery("$skip", skip.Value, true); + } + if (orderBy != null) + { + uri.AppendQuery("$orderby", orderBy, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByUserRequest(string subscriptionId, string resourceGroupName, string serviceName, string filter, int? top, int? skip, string orderBy) { var message = _pipeline.CreateMessage(); @@ -241,6 +297,34 @@ public Response ListByUser(string subscriptionId, string resou } } + internal RequestUriBuilder CreateListByOperationRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string filter, int? top, int? skip, string orderBy) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/reports/byOperation", false); + uri.AppendQuery("$filter", filter, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skip != null) + { + uri.AppendQuery("$skip", skip.Value, true); + } + if (orderBy != null) + { + uri.AppendQuery("$orderby", orderBy, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByOperationRequest(string subscriptionId, string resourceGroupName, string serviceName, string filter, int? top, int? skip, string orderBy) { var message = _pipeline.CreateMessage(); @@ -343,6 +427,34 @@ public Response ListByOperation(string subscriptionId, string } } + internal RequestUriBuilder CreateListByProductRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string filter, int? top, int? skip, string orderBy) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/reports/byProduct", false); + uri.AppendQuery("$filter", filter, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skip != null) + { + uri.AppendQuery("$skip", skip.Value, true); + } + if (orderBy != null) + { + uri.AppendQuery("$orderby", orderBy, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByProductRequest(string subscriptionId, string resourceGroupName, string serviceName, string filter, int? top, int? skip, string orderBy) { var message = _pipeline.CreateMessage(); @@ -445,6 +557,30 @@ public Response ListByProduct(string subscriptionId, string re } } + internal RequestUriBuilder CreateListByGeoRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string filter, int? top, int? skip) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/reports/byGeo", false); + uri.AppendQuery("$filter", filter, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skip != null) + { + uri.AppendQuery("$skip", skip.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByGeoRequest(string subscriptionId, string resourceGroupName, string serviceName, string filter, int? top, int? skip) { var message = _pipeline.CreateMessage(); @@ -541,6 +677,34 @@ public Response ListByGeo(string subscriptionId, string resour } } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string filter, int? top, int? skip, string orderBy) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/reports/bySubscription", false); + uri.AppendQuery("$filter", filter, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skip != null) + { + uri.AppendQuery("$skip", skip.Value, true); + } + if (orderBy != null) + { + uri.AppendQuery("$orderby", orderBy, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId, string resourceGroupName, string serviceName, string filter, int? top, int? skip, string orderBy) { var message = _pipeline.CreateMessage(); @@ -643,6 +807,35 @@ public Response ListBySubscription(string subscriptionId, stri } } + internal RequestUriBuilder CreateListByTimeRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string filter, TimeSpan interval, int? top, int? skip, string orderBy) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/reports/byTime", false); + uri.AppendQuery("$filter", filter, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skip != null) + { + uri.AppendQuery("$skip", skip.Value, true); + } + if (orderBy != null) + { + uri.AppendQuery("$orderby", orderBy, true); + } + uri.AppendQuery("interval", interval, "P", true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByTimeRequest(string subscriptionId, string resourceGroupName, string serviceName, string filter, TimeSpan interval, int? top, int? skip, string orderBy) { var message = _pipeline.CreateMessage(); @@ -748,6 +941,30 @@ public Response ListByTime(string subscriptionId, string resou } } + internal RequestUriBuilder CreateListByRequestRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string filter, int? top, int? skip) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/reports/byRequest", false); + uri.AppendQuery("$filter", filter, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skip != null) + { + uri.AppendQuery("$skip", skip.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByRequestRequest(string subscriptionId, string resourceGroupName, string serviceName, string filter, int? top, int? skip) { var message = _pipeline.CreateMessage(); @@ -844,6 +1061,14 @@ public Response ListByRequest(string subscriptionId, st } } + internal RequestUriBuilder CreateListByApiNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string filter, int? top, int? skip, string orderBy) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByApiNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string filter, int? top, int? skip, string orderBy) { var message = _pipeline.CreateMessage(); @@ -930,6 +1155,14 @@ public Response ListByApiNextPage(string nextLink, string subs } } + internal RequestUriBuilder CreateListByUserNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string filter, int? top, int? skip, string orderBy) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByUserNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string filter, int? top, int? skip, string orderBy) { var message = _pipeline.CreateMessage(); @@ -1016,6 +1249,14 @@ public Response ListByUserNextPage(string nextLink, string sub } } + internal RequestUriBuilder CreateListByOperationNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string filter, int? top, int? skip, string orderBy) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByOperationNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string filter, int? top, int? skip, string orderBy) { var message = _pipeline.CreateMessage(); @@ -1102,6 +1343,14 @@ public Response ListByOperationNextPage(string nextLink, strin } } + internal RequestUriBuilder CreateListByProductNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string filter, int? top, int? skip, string orderBy) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByProductNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string filter, int? top, int? skip, string orderBy) { var message = _pipeline.CreateMessage(); @@ -1188,6 +1437,14 @@ public Response ListByProductNextPage(string nextLink, string } } + internal RequestUriBuilder CreateListByGeoNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string filter, int? top, int? skip) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByGeoNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string filter, int? top, int? skip) { var message = _pipeline.CreateMessage(); @@ -1272,6 +1529,14 @@ public Response ListByGeoNextPage(string nextLink, string subs } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string filter, int? top, int? skip, string orderBy) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string filter, int? top, int? skip, string orderBy) { var message = _pipeline.CreateMessage(); @@ -1358,6 +1623,14 @@ public Response ListBySubscriptionNextPage(string nextLink, st } } + internal RequestUriBuilder CreateListByTimeNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string filter, TimeSpan interval, int? top, int? skip, string orderBy) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByTimeNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string filter, TimeSpan interval, int? top, int? skip, string orderBy) { var message = _pipeline.CreateMessage(); diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/SignInSettingsRestOperations.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/SignInSettingsRestOperations.cs index deb05abf569f..fd96de6b8734 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/SignInSettingsRestOperations.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/SignInSettingsRestOperations.cs @@ -36,6 +36,21 @@ public SignInSettingsRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetEntityTagRequestUri(string subscriptionId, string resourceGroupName, string serviceName) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/portalsettings/signin", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetEntityTagRequest(string subscriptionId, string resourceGroupName, string serviceName) { var message = _pipeline.CreateMessage(); @@ -121,6 +136,21 @@ public Response GetEntityTag(string subscriptionId, string resourceGroupNa } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serviceName) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/portalsettings/signin", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serviceName) { var message = _pipeline.CreateMessage(); @@ -204,6 +234,21 @@ public Response Get(string subscriptionId, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string serviceName, ETag ifMatch, ApiManagementPortalSignInSettingData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/portalsettings/signin", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string serviceName, ETag ifMatch, ApiManagementPortalSignInSettingData data) { var message = _pipeline.CreateMessage(); @@ -284,6 +329,21 @@ public Response Update(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serviceName, ApiManagementPortalSignInSettingData data, ETag? ifMatch) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/portalsettings/signin", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serviceName, ApiManagementPortalSignInSettingData data, ETag? ifMatch) { var message = _pipeline.CreateMessage(); diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/SignUpSettingsRestOperations.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/SignUpSettingsRestOperations.cs index 31a99a99d471..bdbc23b2f83a 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/SignUpSettingsRestOperations.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/SignUpSettingsRestOperations.cs @@ -36,6 +36,21 @@ public SignUpSettingsRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetEntityTagRequestUri(string subscriptionId, string resourceGroupName, string serviceName) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/portalsettings/signup", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetEntityTagRequest(string subscriptionId, string resourceGroupName, string serviceName) { var message = _pipeline.CreateMessage(); @@ -121,6 +136,21 @@ public Response GetEntityTag(string subscriptionId, string resourceGroupNa } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serviceName) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/portalsettings/signup", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serviceName) { var message = _pipeline.CreateMessage(); @@ -204,6 +234,21 @@ public Response Get(string subscriptionId, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string serviceName, ETag ifMatch, ApiManagementPortalSignUpSettingData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/portalsettings/signup", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string serviceName, ETag ifMatch, ApiManagementPortalSignUpSettingData data) { var message = _pipeline.CreateMessage(); @@ -284,6 +329,21 @@ public Response Update(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serviceName, ApiManagementPortalSignUpSettingData data, ETag? ifMatch) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/portalsettings/signup", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serviceName, ApiManagementPortalSignUpSettingData data, ETag? ifMatch) { var message = _pipeline.CreateMessage(); diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/SubscriptionRestOperations.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/SubscriptionRestOperations.cs index 74c8efda0bb8..becb49960af8 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/SubscriptionRestOperations.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/SubscriptionRestOperations.cs @@ -37,6 +37,33 @@ public SubscriptionRestOperations(HttpPipeline pipeline, string applicationId, U _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string filter, int? top, int? skip) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/subscriptions", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skip != null) + { + uri.AppendQuery("$skip", skip.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string serviceName, string filter, int? top, int? skip) { var message = _pipeline.CreateMessage(); @@ -134,6 +161,22 @@ public Response List(string subscriptionId, string resou } } + internal RequestUriBuilder CreateGetEntityTagRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string sid) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(sid, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetEntityTagRequest(string subscriptionId, string resourceGroupName, string serviceName, string sid) { var message = _pipeline.CreateMessage(); @@ -224,6 +267,22 @@ public Response GetEntityTag(string subscriptionId, string resourceGroupNa } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string sid) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(sid, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serviceName, string sid) { var message = _pipeline.CreateMessage(); @@ -312,6 +371,30 @@ public Response Get(string subscriptionId, string reso } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string sid, ApiManagementSubscriptionCreateOrUpdateContent content, bool? notify, ETag? ifMatch, AppType? appType) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(sid, true); + if (notify != null) + { + uri.AppendQuery("notify", notify.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + if (appType != null) + { + uri.AppendQuery("appType", appType.Value.ToString(), true); + } + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serviceName, string sid, ApiManagementSubscriptionCreateOrUpdateContent content, bool? notify, ETag? ifMatch, AppType? appType) { var message = _pipeline.CreateMessage(); @@ -432,6 +515,30 @@ public Response CreateOrUpdate(string subscriptionId, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string sid, ETag ifMatch, ApiManagementSubscriptionPatch patch, bool? notify, AppType? appType) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(sid, true); + if (notify != null) + { + uri.AppendQuery("notify", notify.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + if (appType != null) + { + uri.AppendQuery("appType", appType.Value.ToString(), true); + } + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string serviceName, string sid, ETag ifMatch, ApiManagementSubscriptionPatch patch, bool? notify, AppType? appType) { var message = _pipeline.CreateMessage(); @@ -547,6 +654,22 @@ public Response Update(string subscriptionId, string r } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string sid, ETag ifMatch) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(sid, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string serviceName, string sid, ETag ifMatch) { var message = _pipeline.CreateMessage(); @@ -626,6 +749,23 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateRegeneratePrimaryKeyRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string sid) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(sid, true); + uri.AppendPath("/regeneratePrimaryKey", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRegeneratePrimaryKeyRequest(string subscriptionId, string resourceGroupName, string serviceName, string sid) { var message = _pipeline.CreateMessage(); @@ -701,6 +841,23 @@ public Response RegeneratePrimaryKey(string subscriptionId, string resourceGroup } } + internal RequestUriBuilder CreateRegenerateSecondaryKeyRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string sid) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(sid, true); + uri.AppendPath("/regenerateSecondaryKey", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRegenerateSecondaryKeyRequest(string subscriptionId, string resourceGroupName, string serviceName, string sid) { var message = _pipeline.CreateMessage(); @@ -776,6 +933,23 @@ public Response RegenerateSecondaryKey(string subscriptionId, string resourceGro } } + internal RequestUriBuilder CreateListSecretsRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string sid) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(sid, true); + uri.AppendPath("/listSecrets", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListSecretsRequest(string subscriptionId, string resourceGroupName, string serviceName, string sid) { var message = _pipeline.CreateMessage(); @@ -861,6 +1035,14 @@ public Response ListSecrets(string subscriptionId, str } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string filter, int? top, int? skip) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string filter, int? top, int? skip) { var message = _pipeline.CreateMessage(); diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/TagResourceRestOperations.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/TagResourceRestOperations.cs index 57fea4d0dce9..1ca58f804354 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/TagResourceRestOperations.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/TagResourceRestOperations.cs @@ -37,6 +37,33 @@ public TagResourceRestOperations(HttpPipeline pipeline, string applicationId, Ur _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByServiceRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string filter, int? top, int? skip) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/tagResources", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skip != null) + { + uri.AppendQuery("$skip", skip.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByServiceRequest(string subscriptionId, string resourceGroupName, string serviceName, string filter, int? top, int? skip) { var message = _pipeline.CreateMessage(); @@ -134,6 +161,14 @@ public Response ListByService(string subscriptionId, stri } } + internal RequestUriBuilder CreateListByServiceNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string filter, int? top, int? skip) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByServiceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string filter, int? top, int? skip) { var message = _pipeline.CreateMessage(); diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/TagRestOperations.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/TagRestOperations.cs index 44f31bfd504a..330ae5830bb6 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/TagRestOperations.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/TagRestOperations.cs @@ -37,6 +37,37 @@ public TagRestOperations(HttpPipeline pipeline, string applicationId, Uri endpoi _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByOperationRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string operationId, string filter, int? top, int? skip) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apis/", false); + uri.AppendPath(apiId, true); + uri.AppendPath("/operations/", false); + uri.AppendPath(operationId, true); + uri.AppendPath("/tags", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skip != null) + { + uri.AppendQuery("$skip", skip.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByOperationRequest(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string operationId, string filter, int? top, int? skip) { var message = _pipeline.CreateMessage(); @@ -146,6 +177,26 @@ public Response ListByOperation(string subscriptionId, string res } } + internal RequestUriBuilder CreateGetEntityStateByOperationRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string operationId, string tagId) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apis/", false); + uri.AppendPath(apiId, true); + uri.AppendPath("/operations/", false); + uri.AppendPath(operationId, true); + uri.AppendPath("/tags/", false); + uri.AppendPath(tagId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetEntityStateByOperationRequest(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string operationId, string tagId) { var message = _pipeline.CreateMessage(); @@ -248,6 +299,26 @@ public Response GetEntityStateByOperation(string subscriptionId, string re } } + internal RequestUriBuilder CreateGetByOperationRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string operationId, string tagId) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apis/", false); + uri.AppendPath(apiId, true); + uri.AppendPath("/operations/", false); + uri.AppendPath(operationId, true); + uri.AppendPath("/tags/", false); + uri.AppendPath(tagId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetByOperationRequest(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string operationId, string tagId) { var message = _pipeline.CreateMessage(); @@ -348,6 +419,26 @@ public Response GetByOperation(string subscriptionId, string re } } + internal RequestUriBuilder CreateAssignToOperationRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string operationId, string tagId) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apis/", false); + uri.AppendPath(apiId, true); + uri.AppendPath("/operations/", false); + uri.AppendPath(operationId, true); + uri.AppendPath("/tags/", false); + uri.AppendPath(tagId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateAssignToOperationRequest(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string operationId, string tagId) { var message = _pipeline.CreateMessage(); @@ -446,6 +537,26 @@ public Response AssignToOperation(string subscriptionId, string } } + internal RequestUriBuilder CreateDetachFromOperationRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string operationId, string tagId) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apis/", false); + uri.AppendPath(apiId, true); + uri.AppendPath("/operations/", false); + uri.AppendPath(operationId, true); + uri.AppendPath("/tags/", false); + uri.AppendPath(tagId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDetachFromOperationRequest(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string operationId, string tagId) { var message = _pipeline.CreateMessage(); @@ -534,6 +645,35 @@ public Response DetachFromOperation(string subscriptionId, string resourceGroupN } } + internal RequestUriBuilder CreateListByApiRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string filter, int? top, int? skip) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apis/", false); + uri.AppendPath(apiId, true); + uri.AppendPath("/tags", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skip != null) + { + uri.AppendQuery("$skip", skip.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByApiRequest(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string filter, int? top, int? skip) { var message = _pipeline.CreateMessage(); @@ -637,6 +777,24 @@ public Response ListByApi(string subscriptionId, string resourceG } } + internal RequestUriBuilder CreateGetEntityStateByApiRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string tagId) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apis/", false); + uri.AppendPath(apiId, true); + uri.AppendPath("/tags/", false); + uri.AppendPath(tagId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetEntityStateByApiRequest(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string tagId) { var message = _pipeline.CreateMessage(); @@ -733,6 +891,24 @@ public Response GetEntityStateByApi(string subscriptionId, string resource } } + internal RequestUriBuilder CreateGetByApiRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string tagId) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apis/", false); + uri.AppendPath(apiId, true); + uri.AppendPath("/tags/", false); + uri.AppendPath(tagId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetByApiRequest(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string tagId) { var message = _pipeline.CreateMessage(); @@ -827,6 +1003,24 @@ public Response GetByApi(string subscriptionId, string resource } } + internal RequestUriBuilder CreateAssignToApiRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string tagId) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apis/", false); + uri.AppendPath(apiId, true); + uri.AppendPath("/tags/", false); + uri.AppendPath(tagId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateAssignToApiRequest(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string tagId) { var message = _pipeline.CreateMessage(); @@ -919,6 +1113,24 @@ public Response AssignToApi(string subscriptionId, string resou } } + internal RequestUriBuilder CreateDetachFromApiRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string tagId) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apis/", false); + uri.AppendPath(apiId, true); + uri.AppendPath("/tags/", false); + uri.AppendPath(tagId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDetachFromApiRequest(string subscriptionId, string resourceGroupName, string serviceName, string apiId, string tagId) { var message = _pipeline.CreateMessage(); @@ -1001,6 +1213,35 @@ public Response DetachFromApi(string subscriptionId, string resourceGroupName, s } } + internal RequestUriBuilder CreateListByProductRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string productId, string filter, int? top, int? skip) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/products/", false); + uri.AppendPath(productId, true); + uri.AppendPath("/tags", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skip != null) + { + uri.AppendQuery("$skip", skip.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByProductRequest(string subscriptionId, string resourceGroupName, string serviceName, string productId, string filter, int? top, int? skip) { var message = _pipeline.CreateMessage(); @@ -1104,6 +1345,24 @@ public Response ListByProduct(string subscriptionId, string resou } } + internal RequestUriBuilder CreateGetEntityStateByProductRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string productId, string tagId) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/products/", false); + uri.AppendPath(productId, true); + uri.AppendPath("/tags/", false); + uri.AppendPath(tagId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetEntityStateByProductRequest(string subscriptionId, string resourceGroupName, string serviceName, string productId, string tagId) { var message = _pipeline.CreateMessage(); @@ -1200,6 +1459,24 @@ public Response GetEntityStateByProduct(string subscriptionId, string reso } } + internal RequestUriBuilder CreateGetByProductRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string productId, string tagId) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/products/", false); + uri.AppendPath(productId, true); + uri.AppendPath("/tags/", false); + uri.AppendPath(tagId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetByProductRequest(string subscriptionId, string resourceGroupName, string serviceName, string productId, string tagId) { var message = _pipeline.CreateMessage(); @@ -1294,6 +1571,24 @@ public Response GetByProduct(string subscriptionId, string reso } } + internal RequestUriBuilder CreateAssignToProductRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string productId, string tagId) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/products/", false); + uri.AppendPath(productId, true); + uri.AppendPath("/tags/", false); + uri.AppendPath(tagId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateAssignToProductRequest(string subscriptionId, string resourceGroupName, string serviceName, string productId, string tagId) { var message = _pipeline.CreateMessage(); @@ -1386,6 +1681,24 @@ public Response AssignToProduct(string subscriptionId, string r } } + internal RequestUriBuilder CreateDetachFromProductRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string productId, string tagId) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/products/", false); + uri.AppendPath(productId, true); + uri.AppendPath("/tags/", false); + uri.AppendPath(tagId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDetachFromProductRequest(string subscriptionId, string resourceGroupName, string serviceName, string productId, string tagId) { var message = _pipeline.CreateMessage(); @@ -1468,6 +1781,37 @@ public Response DetachFromProduct(string subscriptionId, string resourceGroupNam } } + internal RequestUriBuilder CreateListByServiceRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string filter, int? top, int? skip, string scope) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/tags", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skip != null) + { + uri.AppendQuery("$skip", skip.Value, true); + } + if (scope != null) + { + uri.AppendQuery("scope", scope, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByServiceRequest(string subscriptionId, string resourceGroupName, string serviceName, string filter, int? top, int? skip, string scope) { var message = _pipeline.CreateMessage(); @@ -1571,6 +1915,22 @@ public Response ListByService(string subscriptionId, string resou } } + internal RequestUriBuilder CreateGetEntityStateRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string tagId) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/tags/", false); + uri.AppendPath(tagId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetEntityStateRequest(string subscriptionId, string resourceGroupName, string serviceName, string tagId) { var message = _pipeline.CreateMessage(); @@ -1661,6 +2021,22 @@ public Response GetEntityState(string subscriptionId, string resourceGroup } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string tagId) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/tags/", false); + uri.AppendPath(tagId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serviceName, string tagId) { var message = _pipeline.CreateMessage(); @@ -1749,6 +2125,22 @@ public Response Get(string subscriptionId, string resourceGroup } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string tagId, ApiManagementTagCreateOrUpdateContent content, ETag? ifMatch) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/tags/", false); + uri.AppendPath(tagId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serviceName, string tagId, ApiManagementTagCreateOrUpdateContent content, ETag? ifMatch) { var message = _pipeline.CreateMessage(); @@ -1849,6 +2241,22 @@ public Response CreateOrUpdate(string subscriptionId, string re } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string tagId, ETag ifMatch, ApiManagementTagCreateOrUpdateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/tags/", false); + uri.AppendPath(tagId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string serviceName, string tagId, ETag ifMatch, ApiManagementTagCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); @@ -1944,6 +2352,22 @@ public Response Update(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string tagId, ETag ifMatch) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/tags/", false); + uri.AppendPath(tagId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string serviceName, string tagId, ETag ifMatch) { var message = _pipeline.CreateMessage(); @@ -2023,6 +2447,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListByOperationNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string apiId, string operationId, string filter, int? top, int? skip) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByOperationNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string apiId, string operationId, string filter, int? top, int? skip) { var message = _pipeline.CreateMessage(); @@ -2113,6 +2545,14 @@ public Response ListByOperationNextPage(string nextLink, string s } } + internal RequestUriBuilder CreateListByApiNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string apiId, string filter, int? top, int? skip) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByApiNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string apiId, string filter, int? top, int? skip) { var message = _pipeline.CreateMessage(); @@ -2199,6 +2639,14 @@ public Response ListByApiNextPage(string nextLink, string subscri } } + internal RequestUriBuilder CreateListByProductNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string productId, string filter, int? top, int? skip) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByProductNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string productId, string filter, int? top, int? skip) { var message = _pipeline.CreateMessage(); @@ -2285,6 +2733,14 @@ public Response ListByProductNextPage(string nextLink, string sub } } + internal RequestUriBuilder CreateListByServiceNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string filter, int? top, int? skip, string scope) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByServiceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string filter, int? top, int? skip, string scope) { var message = _pipeline.CreateMessage(); diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/TenantAccessGitRestOperations.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/TenantAccessGitRestOperations.cs index 4b9d9b541f04..4128b95b8e1f 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/TenantAccessGitRestOperations.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/TenantAccessGitRestOperations.cs @@ -36,6 +36,23 @@ public TenantAccessGitRestOperations(HttpPipeline pipeline, string applicationId _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateRegeneratePrimaryKeyRequestUri(string subscriptionId, string resourceGroupName, string serviceName, AccessName accessName) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/tenant/", false); + uri.AppendPath(accessName.ToString(), true); + uri.AppendPath("/git/regeneratePrimaryKey", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRegeneratePrimaryKeyRequest(string subscriptionId, string resourceGroupName, string serviceName, AccessName accessName) { var message = _pipeline.CreateMessage(); @@ -109,6 +126,23 @@ public Response RegeneratePrimaryKey(string subscriptionId, string resourceGroup } } + internal RequestUriBuilder CreateRegenerateSecondaryKeyRequestUri(string subscriptionId, string resourceGroupName, string serviceName, AccessName accessName) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/tenant/", false); + uri.AppendPath(accessName.ToString(), true); + uri.AppendPath("/git/regenerateSecondaryKey", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRegenerateSecondaryKeyRequest(string subscriptionId, string resourceGroupName, string serviceName, AccessName accessName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/TenantAccessRestOperations.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/TenantAccessRestOperations.cs index 2975ded82549..90665e6855b0 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/TenantAccessRestOperations.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/TenantAccessRestOperations.cs @@ -37,6 +37,25 @@ public TenantAccessRestOperations(HttpPipeline pipeline, string applicationId, U _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByServiceRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/tenant", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByServiceRequest(string subscriptionId, string resourceGroupName, string serviceName, string filter) { var message = _pipeline.CreateMessage(); @@ -122,6 +141,22 @@ public Response ListByService(string subscriptionId } } + internal RequestUriBuilder CreateGetEntityTagRequestUri(string subscriptionId, string resourceGroupName, string serviceName, AccessName accessName) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/tenant/", false); + uri.AppendPath(accessName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetEntityTagRequest(string subscriptionId, string resourceGroupName, string serviceName, AccessName accessName) { var message = _pipeline.CreateMessage(); @@ -210,6 +245,22 @@ public Response GetEntityTag(string subscriptionId, string resourceGroupNa } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serviceName, AccessName accessName) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/tenant/", false); + uri.AppendPath(accessName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serviceName, AccessName accessName) { var message = _pipeline.CreateMessage(); @@ -296,6 +347,22 @@ public Response Get(string subscriptionId, string resource } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string serviceName, AccessName accessName, ETag ifMatch, TenantAccessInfoCreateOrUpdateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/tenant/", false); + uri.AppendPath(accessName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string serviceName, AccessName accessName, ETag ifMatch, TenantAccessInfoCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); @@ -389,6 +456,22 @@ public Response Create(string subscriptionId, string resou } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string serviceName, AccessName accessName, ETag ifMatch, TenantAccessInfoPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/tenant/", false); + uri.AppendPath(accessName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string serviceName, AccessName accessName, ETag ifMatch, TenantAccessInfoPatch patch) { var message = _pipeline.CreateMessage(); @@ -482,6 +565,23 @@ public Response Update(string subscriptionId, string resou } } + internal RequestUriBuilder CreateRegeneratePrimaryKeyRequestUri(string subscriptionId, string resourceGroupName, string serviceName, AccessName accessName) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/tenant/", false); + uri.AppendPath(accessName.ToString(), true); + uri.AppendPath("/regeneratePrimaryKey", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRegeneratePrimaryKeyRequest(string subscriptionId, string resourceGroupName, string serviceName, AccessName accessName) { var message = _pipeline.CreateMessage(); @@ -555,6 +655,23 @@ public Response RegeneratePrimaryKey(string subscriptionId, string resourceGroup } } + internal RequestUriBuilder CreateRegenerateSecondaryKeyRequestUri(string subscriptionId, string resourceGroupName, string serviceName, AccessName accessName) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/tenant/", false); + uri.AppendPath(accessName.ToString(), true); + uri.AppendPath("/regenerateSecondaryKey", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRegenerateSecondaryKeyRequest(string subscriptionId, string resourceGroupName, string serviceName, AccessName accessName) { var message = _pipeline.CreateMessage(); @@ -628,6 +745,23 @@ public Response RegenerateSecondaryKey(string subscriptionId, string resourceGro } } + internal RequestUriBuilder CreateListSecretsRequestUri(string subscriptionId, string resourceGroupName, string serviceName, AccessName accessName) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/tenant/", false); + uri.AppendPath(accessName.ToString(), true); + uri.AppendPath("/listSecrets", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListSecretsRequest(string subscriptionId, string resourceGroupName, string serviceName, AccessName accessName) { var message = _pipeline.CreateMessage(); @@ -711,6 +845,14 @@ public Response ListSecrets(string subscriptionI } } + internal RequestUriBuilder CreateListByServiceNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByServiceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string filter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/TenantConfigurationRestOperations.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/TenantConfigurationRestOperations.cs index c6efc569762b..e1a47a2968db 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/TenantConfigurationRestOperations.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/TenantConfigurationRestOperations.cs @@ -37,6 +37,23 @@ public TenantConfigurationRestOperations(HttpPipeline pipeline, string applicati _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateDeployRequestUri(string subscriptionId, string resourceGroupName, string serviceName, ConfigurationName configurationName, ConfigurationDeployContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/tenant/", false); + uri.AppendPath(configurationName.ToString(), true); + uri.AppendPath("/deploy", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeployRequest(string subscriptionId, string resourceGroupName, string serviceName, ConfigurationName configurationName, ConfigurationDeployContent content) { var message = _pipeline.CreateMessage(); @@ -120,6 +137,23 @@ public Response Deploy(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateSaveRequestUri(string subscriptionId, string resourceGroupName, string serviceName, ConfigurationName configurationName, ConfigurationSaveContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/tenant/", false); + uri.AppendPath(configurationName.ToString(), true); + uri.AppendPath("/save", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateSaveRequest(string subscriptionId, string resourceGroupName, string serviceName, ConfigurationName configurationName, ConfigurationSaveContent content) { var message = _pipeline.CreateMessage(); @@ -203,6 +237,23 @@ public Response Save(string subscriptionId, string resourceGroupName, string ser } } + internal RequestUriBuilder CreateValidateRequestUri(string subscriptionId, string resourceGroupName, string serviceName, ConfigurationName configurationName, ConfigurationDeployContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/tenant/", false); + uri.AppendPath(configurationName.ToString(), true); + uri.AppendPath("/validate", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateValidateRequest(string subscriptionId, string resourceGroupName, string serviceName, ConfigurationName configurationName, ConfigurationDeployContent content) { var message = _pipeline.CreateMessage(); @@ -286,6 +337,23 @@ public Response Validate(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreateGetSyncStateRequestUri(string subscriptionId, string resourceGroupName, string serviceName, ConfigurationName configurationName) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/tenant/", false); + uri.AppendPath(configurationName.ToString(), true); + uri.AppendPath("/syncState", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetSyncStateRequest(string subscriptionId, string resourceGroupName, string serviceName, ConfigurationName configurationName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/TenantSettingsRestOperations.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/TenantSettingsRestOperations.cs index 716f1a88f70d..4c0d010ba0ed 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/TenantSettingsRestOperations.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/TenantSettingsRestOperations.cs @@ -37,6 +37,25 @@ public TenantSettingsRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByServiceRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/settings", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByServiceRequest(string subscriptionId, string resourceGroupName, string serviceName, string filter) { var message = _pipeline.CreateMessage(); @@ -122,6 +141,22 @@ public Response ListByService(string subscriptionId, s } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serviceName, SettingsType settingsType) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/settings/", false); + uri.AppendPath(settingsType.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serviceName, SettingsType settingsType) { var message = _pipeline.CreateMessage(); @@ -208,6 +243,14 @@ public Response Get(string subscriptionId, strin } } + internal RequestUriBuilder CreateListByServiceNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByServiceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string filter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/UserConfirmationPasswordRestOperations.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/UserConfirmationPasswordRestOperations.cs index 4f06d21ceedb..4af339d98f21 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/UserConfirmationPasswordRestOperations.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/UserConfirmationPasswordRestOperations.cs @@ -36,6 +36,27 @@ public UserConfirmationPasswordRestOperations(HttpPipeline pipeline, string appl _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateSendRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string userId, AppType? appType) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/users/", false); + uri.AppendPath(userId, true); + uri.AppendPath("/confirmations/password/send", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (appType != null) + { + uri.AppendQuery("appType", appType.Value.ToString(), true); + } + return uri; + } + internal HttpMessage CreateSendRequest(string subscriptionId, string resourceGroupName, string serviceName, string userId, AppType? appType) { var message = _pipeline.CreateMessage(); diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/UserGroupRestOperations.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/UserGroupRestOperations.cs index 5ac160d40908..219453dc45d4 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/UserGroupRestOperations.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/UserGroupRestOperations.cs @@ -37,6 +37,35 @@ public UserGroupRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string userId, string filter, int? top, int? skip) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/users/", false); + uri.AppendPath(userId, true); + uri.AppendPath("/groups", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skip != null) + { + uri.AppendQuery("$skip", skip.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string serviceName, string userId, string filter, int? top, int? skip) { var message = _pipeline.CreateMessage(); @@ -140,6 +169,14 @@ public Response List(string subscriptionId, string resourceGrou } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string userId, string filter, int? top, int? skip) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string userId, string filter, int? top, int? skip) { var message = _pipeline.CreateMessage(); diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/UserIdentitiesRestOperations.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/UserIdentitiesRestOperations.cs index 5aa72d7280fe..0111eb4bd320 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/UserIdentitiesRestOperations.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/UserIdentitiesRestOperations.cs @@ -37,6 +37,23 @@ public UserIdentitiesRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string userId) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/users/", false); + uri.AppendPath(userId, true); + uri.AppendPath("/identities", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string serviceName, string userId) { var message = _pipeline.CreateMessage(); @@ -122,6 +139,14 @@ public Response List(string subscriptionId, string resou } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string userId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string userId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/UserRestOperations.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/UserRestOperations.cs index 21bad12034a8..6c8c468e38b8 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/UserRestOperations.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/UserRestOperations.cs @@ -37,6 +37,37 @@ public UserRestOperations(HttpPipeline pipeline, string applicationId, Uri endpo _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByServiceRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string filter, int? top, int? skip, bool? expandGroups) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/users", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skip != null) + { + uri.AppendQuery("$skip", skip.Value, true); + } + if (expandGroups != null) + { + uri.AppendQuery("expandGroups", expandGroups.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByServiceRequest(string subscriptionId, string resourceGroupName, string serviceName, string filter, int? top, int? skip, bool? expandGroups) { var message = _pipeline.CreateMessage(); @@ -140,6 +171,22 @@ public Response ListByService(string subscriptionId, string reso } } + internal RequestUriBuilder CreateGetEntityTagRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string userId) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/users/", false); + uri.AppendPath(userId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetEntityTagRequest(string subscriptionId, string resourceGroupName, string serviceName, string userId) { var message = _pipeline.CreateMessage(); @@ -230,6 +277,22 @@ public Response GetEntityTag(string subscriptionId, string resourceGroupNa } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string userId) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/users/", false); + uri.AppendPath(userId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serviceName, string userId) { var message = _pipeline.CreateMessage(); @@ -318,6 +381,26 @@ public Response Get(string subscriptionId, string resourceGrou } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string userId, ApiManagementUserCreateOrUpdateContent content, bool? notify, ETag? ifMatch) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/users/", false); + uri.AppendPath(userId, true); + if (notify != null) + { + uri.AppendQuery("notify", notify.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serviceName, string userId, ApiManagementUserCreateOrUpdateContent content, bool? notify, ETag? ifMatch) { var message = _pipeline.CreateMessage(); @@ -424,6 +507,22 @@ public Response CreateOrUpdate(string subscriptionId, string r } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string userId, ETag ifMatch, ApiManagementUserPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/users/", false); + uri.AppendPath(userId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string serviceName, string userId, ETag ifMatch, ApiManagementUserPatch patch) { var message = _pipeline.CreateMessage(); @@ -519,6 +618,34 @@ public Response Update(string subscriptionId, string resourceG } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string userId, ETag ifMatch, bool? deleteSubscriptions, bool? notify, AppType? appType) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/users/", false); + uri.AppendPath(userId, true); + if (deleteSubscriptions != null) + { + uri.AppendQuery("deleteSubscriptions", deleteSubscriptions.Value, true); + } + if (notify != null) + { + uri.AppendQuery("notify", notify.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + if (appType != null) + { + uri.AppendQuery("appType", appType.Value.ToString(), true); + } + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string serviceName, string userId, ETag ifMatch, bool? deleteSubscriptions, bool? notify, AppType? appType) { var message = _pipeline.CreateMessage(); @@ -616,6 +743,23 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateGenerateSsoUriRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string userId) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/users/", false); + uri.AppendPath(userId, true); + uri.AppendPath("/generateSsoUrl", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGenerateSsoUriRequest(string subscriptionId, string resourceGroupName, string serviceName, string userId) { var message = _pipeline.CreateMessage(); @@ -701,6 +845,23 @@ public Response GenerateSsoUri(string subscriptionId, stri } } + internal RequestUriBuilder CreateGetSharedAccessTokenRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string userId, UserTokenContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/users/", false); + uri.AppendPath(userId, true); + uri.AppendPath("/token", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetSharedAccessTokenRequest(string subscriptionId, string resourceGroupName, string serviceName, string userId, UserTokenContent content) { var message = _pipeline.CreateMessage(); @@ -794,6 +955,14 @@ public Response GetSharedAccessToken(string subscriptionId, str } } + internal RequestUriBuilder CreateListByServiceNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string filter, int? top, int? skip, bool? expandGroups) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByServiceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string filter, int? top, int? skip, bool? expandGroups) { var message = _pipeline.CreateMessage(); diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/UserSubscriptionRestOperations.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/UserSubscriptionRestOperations.cs index d8a7946a3c63..fed825a85394 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/UserSubscriptionRestOperations.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/UserSubscriptionRestOperations.cs @@ -37,6 +37,35 @@ public UserSubscriptionRestOperations(HttpPipeline pipeline, string applicationI _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string userId, string filter, int? top, int? skip) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/users/", false); + uri.AppendPath(userId, true); + uri.AppendPath("/subscriptions", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skip != null) + { + uri.AppendQuery("$skip", skip.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string serviceName, string userId, string filter, int? top, int? skip) { var message = _pipeline.CreateMessage(); @@ -140,6 +169,24 @@ public Response List(string subscriptionId, string resou } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string userId, string sid) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/users/", false); + uri.AppendPath(userId, true); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(sid, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serviceName, string userId, string sid) { var message = _pipeline.CreateMessage(); @@ -234,6 +281,14 @@ public Response Get(string subscriptionId, string reso } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string userId, string filter, int? top, int? skip) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string userId, string filter, int? top, int? skip) { var message = _pipeline.CreateMessage(); diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/TenantAccessInfoCollection.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/TenantAccessInfoCollection.cs index 0915abd95b70..ab984fd3dbbb 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/TenantAccessInfoCollection.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/TenantAccessInfoCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> CreateOrUpdate try { var response = await _tenantAccessInfoTenantAccessRestClient.CreateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, accessName, ifMatch, content, cancellationToken).ConfigureAwait(false); - var operation = new ApiManagementArmOperation(Response.FromValue(new TenantAccessInfoResource(Client, response), response.GetRawResponse())); + var uri = _tenantAccessInfoTenantAccessRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, accessName, ifMatch, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(Response.FromValue(new TenantAccessInfoResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -138,7 +140,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil w try { var response = _tenantAccessInfoTenantAccessRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, accessName, ifMatch, content, cancellationToken); - var operation = new ApiManagementArmOperation(Response.FromValue(new TenantAccessInfoResource(Client, response), response.GetRawResponse())); + var uri = _tenantAccessInfoTenantAccessRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, accessName, ifMatch, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ApiManagementArmOperation(Response.FromValue(new TenantAccessInfoResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/appcomplianceautomation/Azure.ResourceManager.AppComplianceAutomation/src/Generated/LongRunningOperation/AppComplianceAutomationArmOperation.cs b/sdk/appcomplianceautomation/Azure.ResourceManager.AppComplianceAutomation/src/Generated/LongRunningOperation/AppComplianceAutomationArmOperation.cs index 930ddc468277..7c5486a1961e 100644 --- a/sdk/appcomplianceautomation/Azure.ResourceManager.AppComplianceAutomation/src/Generated/LongRunningOperation/AppComplianceAutomationArmOperation.cs +++ b/sdk/appcomplianceautomation/Azure.ResourceManager.AppComplianceAutomation/src/Generated/LongRunningOperation/AppComplianceAutomationArmOperation.cs @@ -20,21 +20,24 @@ internal class AppComplianceAutomationArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of AppComplianceAutomationArmOperation for mocking. protected AppComplianceAutomationArmOperation() { } - internal AppComplianceAutomationArmOperation(Response response) + internal AppComplianceAutomationArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal AppComplianceAutomationArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "AppComplianceAutomationArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal AppComplianceAutomationArmOperation(ClientDiagnostics clientDiagnostics public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/appcomplianceautomation/Azure.ResourceManager.AppComplianceAutomation/src/Generated/LongRunningOperation/AppComplianceAutomationArmOperationOfT.cs b/sdk/appcomplianceautomation/Azure.ResourceManager.AppComplianceAutomation/src/Generated/LongRunningOperation/AppComplianceAutomationArmOperationOfT.cs index 185425a3bff1..6353dbd3095c 100644 --- a/sdk/appcomplianceautomation/Azure.ResourceManager.AppComplianceAutomation/src/Generated/LongRunningOperation/AppComplianceAutomationArmOperationOfT.cs +++ b/sdk/appcomplianceautomation/Azure.ResourceManager.AppComplianceAutomation/src/Generated/LongRunningOperation/AppComplianceAutomationArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class AppComplianceAutomationArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of AppComplianceAutomationArmOperation for mocking. protected AppComplianceAutomationArmOperation() { } - internal AppComplianceAutomationArmOperation(Response response) + internal AppComplianceAutomationArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal AppComplianceAutomationArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "AppComplianceAutomationArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal AppComplianceAutomationArmOperation(IOperationSource source, ClientD public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/appcomplianceautomation/Azure.ResourceManager.AppComplianceAutomation/src/Generated/Models/ReportResource.Serialization.cs b/sdk/appcomplianceautomation/Azure.ResourceManager.AppComplianceAutomation/src/Generated/Models/ReportResource.Serialization.cs new file mode 100644 index 000000000000..8152ee81ff0a --- /dev/null +++ b/sdk/appcomplianceautomation/Azure.ResourceManager.AppComplianceAutomation/src/Generated/Models/ReportResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppComplianceAutomation +{ + public partial class ReportResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ReportResourceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ReportResourceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/appcomplianceautomation/Azure.ResourceManager.AppComplianceAutomation/src/Generated/Models/SnapshotResource.Serialization.cs b/sdk/appcomplianceautomation/Azure.ResourceManager.AppComplianceAutomation/src/Generated/Models/SnapshotResource.Serialization.cs new file mode 100644 index 000000000000..d92746c393d9 --- /dev/null +++ b/sdk/appcomplianceautomation/Azure.ResourceManager.AppComplianceAutomation/src/Generated/Models/SnapshotResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppComplianceAutomation +{ + public partial class SnapshotResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SnapshotResourceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SnapshotResourceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/appcomplianceautomation/Azure.ResourceManager.AppComplianceAutomation/src/Generated/RestOperations/ReportRestOperations.cs b/sdk/appcomplianceautomation/Azure.ResourceManager.AppComplianceAutomation/src/Generated/RestOperations/ReportRestOperations.cs index 55ae26ba8b26..f28943574976 100644 --- a/sdk/appcomplianceautomation/Azure.ResourceManager.AppComplianceAutomation/src/Generated/RestOperations/ReportRestOperations.cs +++ b/sdk/appcomplianceautomation/Azure.ResourceManager.AppComplianceAutomation/src/Generated/RestOperations/ReportRestOperations.cs @@ -37,6 +37,16 @@ public ReportRestOperations(HttpPipeline pipeline, string applicationId, Uri end _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string reportName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.AppComplianceAutomation/reports/", false); + uri.AppendPath(reportName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string reportName) { var message = _pipeline.CreateMessage(); @@ -107,6 +117,16 @@ public Response Get(string reportName, CancellationToken can } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string reportName, ReportResourceData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.AppComplianceAutomation/reports/", false); + uri.AppendPath(reportName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string reportName, ReportResourceData data) { var message = _pipeline.CreateMessage(); @@ -173,6 +193,16 @@ public Response CreateOrUpdate(string reportName, ReportResourceData data, Cance } } + internal RequestUriBuilder CreateUpdateRequestUri(string reportName, ReportResourcePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.AppComplianceAutomation/reports/", false); + uri.AppendPath(reportName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string reportName, ReportResourcePatch patch) { var message = _pipeline.CreateMessage(); @@ -241,6 +271,16 @@ public Response Update(string reportName, ReportResourcePatch patch, Cancellatio } } + internal RequestUriBuilder CreateDeleteRequestUri(string reportName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.AppComplianceAutomation/reports/", false); + uri.AppendPath(reportName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string reportName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/appcomplianceautomation/Azure.ResourceManager.AppComplianceAutomation/src/Generated/RestOperations/ReportsRestOperations.cs b/sdk/appcomplianceautomation/Azure.ResourceManager.AppComplianceAutomation/src/Generated/RestOperations/ReportsRestOperations.cs index 220fe1dce697..a237fea22deb 100644 --- a/sdk/appcomplianceautomation/Azure.ResourceManager.AppComplianceAutomation/src/Generated/RestOperations/ReportsRestOperations.cs +++ b/sdk/appcomplianceautomation/Azure.ResourceManager.AppComplianceAutomation/src/Generated/RestOperations/ReportsRestOperations.cs @@ -37,6 +37,35 @@ public ReportsRestOperations(HttpPipeline pipeline, string applicationId, Uri en _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string skipToken, int? top, string select, string offerGuid, string reportCreatorTenantId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.AppComplianceAutomation/reports", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (select != null) + { + uri.AppendQuery("$select", select, true); + } + if (offerGuid != null) + { + uri.AppendQuery("offerGuid", offerGuid, true); + } + if (reportCreatorTenantId != null) + { + uri.AppendQuery("reportCreatorTenantId", reportCreatorTenantId, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string skipToken, int? top, string select, string offerGuid, string reportCreatorTenantId) { var message = _pipeline.CreateMessage(); @@ -122,6 +151,14 @@ public Response List(string skipToken = null, int? top = nul } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string skipToken, int? top, string select, string offerGuid, string reportCreatorTenantId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string skipToken, int? top, string select, string offerGuid, string reportCreatorTenantId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/appcomplianceautomation/Azure.ResourceManager.AppComplianceAutomation/src/Generated/RestOperations/SnapshotRestOperations.cs b/sdk/appcomplianceautomation/Azure.ResourceManager.AppComplianceAutomation/src/Generated/RestOperations/SnapshotRestOperations.cs index d2a99afb7b39..684f548175c3 100644 --- a/sdk/appcomplianceautomation/Azure.ResourceManager.AppComplianceAutomation/src/Generated/RestOperations/SnapshotRestOperations.cs +++ b/sdk/appcomplianceautomation/Azure.ResourceManager.AppComplianceAutomation/src/Generated/RestOperations/SnapshotRestOperations.cs @@ -37,6 +37,18 @@ public SnapshotRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string reportName, string snapshotName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.AppComplianceAutomation/reports/", false); + uri.AppendPath(reportName, true); + uri.AppendPath("/snapshots/", false); + uri.AppendPath(snapshotName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string reportName, string snapshotName) { var message = _pipeline.CreateMessage(); @@ -113,6 +125,19 @@ public Response Get(string reportName, string snapshotName } } + internal RequestUriBuilder CreateDownloadRequestUri(string reportName, string snapshotName, SnapshotDownloadContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.AppComplianceAutomation/reports/", false); + uri.AppendPath(reportName, true); + uri.AppendPath("/snapshots/", false); + uri.AppendPath(snapshotName, true); + uri.AppendPath("/download", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDownloadRequest(string reportName, string snapshotName, SnapshotDownloadContent content) { var message = _pipeline.CreateMessage(); diff --git a/sdk/appcomplianceautomation/Azure.ResourceManager.AppComplianceAutomation/src/Generated/RestOperations/SnapshotsRestOperations.cs b/sdk/appcomplianceautomation/Azure.ResourceManager.AppComplianceAutomation/src/Generated/RestOperations/SnapshotsRestOperations.cs index c2790096b426..1414f58489b4 100644 --- a/sdk/appcomplianceautomation/Azure.ResourceManager.AppComplianceAutomation/src/Generated/RestOperations/SnapshotsRestOperations.cs +++ b/sdk/appcomplianceautomation/Azure.ResourceManager.AppComplianceAutomation/src/Generated/RestOperations/SnapshotsRestOperations.cs @@ -37,6 +37,37 @@ public SnapshotsRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string reportName, string skipToken, int? top, string select, string reportCreatorTenantId, string offerGuid) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.AppComplianceAutomation/reports/", false); + uri.AppendPath(reportName, true); + uri.AppendPath("/snapshots", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (select != null) + { + uri.AppendQuery("$select", select, true); + } + if (reportCreatorTenantId != null) + { + uri.AppendQuery("reportCreatorTenantId", reportCreatorTenantId, true); + } + if (offerGuid != null) + { + uri.AppendQuery("offerGuid", offerGuid, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string reportName, string skipToken, int? top, string select, string reportCreatorTenantId, string offerGuid) { var message = _pipeline.CreateMessage(); @@ -134,6 +165,14 @@ public Response List(string reportName, string skipToken = } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string reportName, string skipToken, int? top, string select, string reportCreatorTenantId, string offerGuid) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string reportName, string skipToken, int? top, string select, string reportCreatorTenantId, string offerGuid) { var message = _pipeline.CreateMessage(); diff --git a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/AppConfigurationKeyValueCollection.cs b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/AppConfigurationKeyValueCollection.cs index c7fe2b26bd0e..7a9a7f101be5 100644 --- a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/AppConfigurationKeyValueCollection.cs +++ b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/AppConfigurationKeyValueCollection.cs @@ -87,7 +87,9 @@ public virtual async Task> Create try { var response = await _appConfigurationKeyValueKeyValuesRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, keyValueName, data, cancellationToken).ConfigureAwait(false); - var operation = new AppConfigurationArmOperation(Response.FromValue(new AppConfigurationKeyValueResource(Client, response), response.GetRawResponse())); + var uri = _appConfigurationKeyValueKeyValuesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, keyValueName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppConfigurationArmOperation(Response.FromValue(new AppConfigurationKeyValueResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -136,7 +138,9 @@ public virtual ArmOperation CreateOrUpdate(Wai try { var response = _appConfigurationKeyValueKeyValuesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, keyValueName, data, cancellationToken); - var operation = new AppConfigurationArmOperation(Response.FromValue(new AppConfigurationKeyValueResource(Client, response), response.GetRawResponse())); + var uri = _appConfigurationKeyValueKeyValuesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, keyValueName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppConfigurationArmOperation(Response.FromValue(new AppConfigurationKeyValueResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/AppConfigurationKeyValueResource.cs b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/AppConfigurationKeyValueResource.cs index a1184c438091..f6c0058217d0 100644 --- a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/AppConfigurationKeyValueResource.cs +++ b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/AppConfigurationKeyValueResource.cs @@ -289,7 +289,9 @@ public virtual async Task> Update try { var response = await _appConfigurationKeyValueKeyValuesRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new AppConfigurationArmOperation(Response.FromValue(new AppConfigurationKeyValueResource(Client, response), response.GetRawResponse())); + var uri = _appConfigurationKeyValueKeyValuesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppConfigurationArmOperation(Response.FromValue(new AppConfigurationKeyValueResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -335,7 +337,9 @@ public virtual ArmOperation Update(WaitUntil w try { var response = _appConfigurationKeyValueKeyValuesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new AppConfigurationArmOperation(Response.FromValue(new AppConfigurationKeyValueResource(Client, response), response.GetRawResponse())); + var uri = _appConfigurationKeyValueKeyValuesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppConfigurationArmOperation(Response.FromValue(new AppConfigurationKeyValueResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/LongRunningOperation/AppConfigurationArmOperation.cs b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/LongRunningOperation/AppConfigurationArmOperation.cs index 97604e2f58ca..cfe1eb4a6af7 100644 --- a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/LongRunningOperation/AppConfigurationArmOperation.cs +++ b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/LongRunningOperation/AppConfigurationArmOperation.cs @@ -20,21 +20,24 @@ internal class AppConfigurationArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of AppConfigurationArmOperation for mocking. protected AppConfigurationArmOperation() { } - internal AppConfigurationArmOperation(Response response) + internal AppConfigurationArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal AppConfigurationArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "AppConfigurationArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal AppConfigurationArmOperation(ClientDiagnostics clientDiagnostics, HttpP public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/LongRunningOperation/AppConfigurationArmOperationOfT.cs b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/LongRunningOperation/AppConfigurationArmOperationOfT.cs index 85130f8917a2..031e90ad9991 100644 --- a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/LongRunningOperation/AppConfigurationArmOperationOfT.cs +++ b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/LongRunningOperation/AppConfigurationArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class AppConfigurationArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of AppConfigurationArmOperation for mocking. protected AppConfigurationArmOperation() { } - internal AppConfigurationArmOperation(Response response) + internal AppConfigurationArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal AppConfigurationArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "AppConfigurationArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal AppConfigurationArmOperation(IOperationSource source, ClientDiagnost public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Models/AppConfigurationKeyValueResource.Serialization.cs b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Models/AppConfigurationKeyValueResource.Serialization.cs new file mode 100644 index 000000000000..d0bf021d40e9 --- /dev/null +++ b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Models/AppConfigurationKeyValueResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppConfiguration +{ + public partial class AppConfigurationKeyValueResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + AppConfigurationKeyValueData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + AppConfigurationKeyValueData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Models/AppConfigurationPrivateEndpointConnectionResource.Serialization.cs b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Models/AppConfigurationPrivateEndpointConnectionResource.Serialization.cs new file mode 100644 index 000000000000..6ac4ba34a66d --- /dev/null +++ b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Models/AppConfigurationPrivateEndpointConnectionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppConfiguration +{ + public partial class AppConfigurationPrivateEndpointConnectionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + AppConfigurationPrivateEndpointConnectionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + AppConfigurationPrivateEndpointConnectionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Models/AppConfigurationPrivateLinkResource.Serialization.cs b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Models/AppConfigurationPrivateLinkResource.Serialization.cs new file mode 100644 index 000000000000..abe851a1043e --- /dev/null +++ b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Models/AppConfigurationPrivateLinkResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppConfiguration +{ + public partial class AppConfigurationPrivateLinkResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + AppConfigurationPrivateLinkResourceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + AppConfigurationPrivateLinkResourceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Models/AppConfigurationReplicaResource.Serialization.cs b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Models/AppConfigurationReplicaResource.Serialization.cs new file mode 100644 index 000000000000..5f3e57ad509c --- /dev/null +++ b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Models/AppConfigurationReplicaResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppConfiguration +{ + public partial class AppConfigurationReplicaResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + AppConfigurationReplicaData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + AppConfigurationReplicaData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Models/AppConfigurationStoreResource.Serialization.cs b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Models/AppConfigurationStoreResource.Serialization.cs new file mode 100644 index 000000000000..ad1ad0ac411d --- /dev/null +++ b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Models/AppConfigurationStoreResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppConfiguration +{ + public partial class AppConfigurationStoreResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + AppConfigurationStoreData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + AppConfigurationStoreData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Models/DeletedAppConfigurationStoreResource.Serialization.cs b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Models/DeletedAppConfigurationStoreResource.Serialization.cs new file mode 100644 index 000000000000..1414945ae5e0 --- /dev/null +++ b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Models/DeletedAppConfigurationStoreResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppConfiguration +{ + public partial class DeletedAppConfigurationStoreResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DeletedAppConfigurationStoreData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DeletedAppConfigurationStoreData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/RestOperations/AppConfigurationManagementRestOperations.cs b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/RestOperations/AppConfigurationManagementRestOperations.cs index 30e669330d3e..d3206d850e01 100644 --- a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/RestOperations/AppConfigurationManagementRestOperations.cs +++ b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/RestOperations/AppConfigurationManagementRestOperations.cs @@ -37,6 +37,17 @@ public AppConfigurationManagementRestOperations(HttpPipeline pipeline, string ap _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCheckAppConfigurationNameAvailabilityRequestUri(string subscriptionId, AppConfigurationNameAvailabilityContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.AppConfiguration/checkNameAvailability", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCheckAppConfigurationNameAvailabilityRequest(string subscriptionId, AppConfigurationNameAvailabilityContent content) { var message = _pipeline.CreateMessage(); diff --git a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/RestOperations/ConfigurationStoresRestOperations.cs b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/RestOperations/ConfigurationStoresRestOperations.cs index cecafe2850be..b979ca6c3f71 100644 --- a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/RestOperations/ConfigurationStoresRestOperations.cs +++ b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/RestOperations/ConfigurationStoresRestOperations.cs @@ -37,6 +37,21 @@ public ConfigurationStoresRestOperations(HttpPipeline pipeline, string applicati _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string skipToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.AppConfiguration/configurationStores", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string skipToken) { var message = _pipeline.CreateMessage(); @@ -110,6 +125,23 @@ public Response List(string subscriptionId, str } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName, string skipToken) + { + 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.AppConfiguration/configurationStores", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName, string skipToken) { var message = _pipeline.CreateMessage(); @@ -189,6 +221,20 @@ public Response ListByResourceGroup(string subs } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string configStoreName) + { + 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.AppConfiguration/configurationStores/", false); + uri.AppendPath(configStoreName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string configStoreName) { var message = _pipeline.CreateMessage(); @@ -271,6 +317,20 @@ public Response Get(string subscriptionId, string res } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string configStoreName, AppConfigurationStoreData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AppConfiguration/configurationStores/", false); + uri.AppendPath(configStoreName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string configStoreName, AppConfigurationStoreData data) { var message = _pipeline.CreateMessage(); @@ -349,6 +409,20 @@ public Response Create(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string configStoreName) + { + 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.AppConfiguration/configurationStores/", false); + uri.AppendPath(configStoreName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string configStoreName) { var message = _pipeline.CreateMessage(); @@ -421,6 +495,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string configStoreName, AppConfigurationStorePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AppConfiguration/configurationStores/", false); + uri.AppendPath(configStoreName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string configStoreName, AppConfigurationStorePatch patch) { var message = _pipeline.CreateMessage(); @@ -499,6 +587,25 @@ public Response Update(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateListKeysRequestUri(string subscriptionId, string resourceGroupName, string configStoreName, string skipToken) + { + 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.AppConfiguration/configurationStores/", false); + uri.AppendPath(configStoreName, true); + uri.AppendPath("/listKeys", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } + return uri; + } + internal HttpMessage CreateListKeysRequest(string subscriptionId, string resourceGroupName, string configStoreName, string skipToken) { var message = _pipeline.CreateMessage(); @@ -584,6 +691,21 @@ public Response ListKeys(string subscript } } + internal RequestUriBuilder CreateRegenerateKeyRequestUri(string subscriptionId, string resourceGroupName, string configStoreName, AppConfigurationRegenerateKeyContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AppConfiguration/configurationStores/", false); + uri.AppendPath(configStoreName, true); + uri.AppendPath("/regenerateKey", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRegenerateKeyRequest(string subscriptionId, string resourceGroupName, string configStoreName, AppConfigurationRegenerateKeyContent content) { var message = _pipeline.CreateMessage(); @@ -671,6 +793,17 @@ public Response RegenerateKey(string subscriptionId } } + internal RequestUriBuilder CreateListDeletedRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.AppConfiguration/deletedConfigurationStores", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListDeletedRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -738,6 +871,20 @@ public Response ListDeleted(string subscrip } } + internal RequestUriBuilder CreateGetDeletedRequestUri(string subscriptionId, AzureLocation location, string configStoreName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.AppConfiguration/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/deletedConfigurationStores/", false); + uri.AppendPath(configStoreName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetDeletedRequest(string subscriptionId, AzureLocation location, string configStoreName) { var message = _pipeline.CreateMessage(); @@ -818,6 +965,21 @@ public Response GetDeleted(string subscription } } + internal RequestUriBuilder CreatePurgeDeletedRequestUri(string subscriptionId, AzureLocation location, string configStoreName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.AppConfiguration/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/deletedConfigurationStores/", false); + uri.AppendPath(configStoreName, true); + uri.AppendPath("/purge", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreatePurgeDeletedRequest(string subscriptionId, AzureLocation location, string configStoreName) { var message = _pipeline.CreateMessage(); @@ -889,6 +1051,14 @@ public Response PurgeDeleted(string subscriptionId, AzureLocation location, stri } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string skipToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string skipToken) { var message = _pipeline.CreateMessage(); @@ -959,6 +1129,14 @@ public Response ListNextPage(string nextLink, s } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string skipToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string skipToken) { var message = _pipeline.CreateMessage(); @@ -1033,6 +1211,14 @@ public Response ListByResourceGroupNextPage(str } } + internal RequestUriBuilder CreateListKeysNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string configStoreName, string skipToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListKeysNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string configStoreName, string skipToken) { var message = _pipeline.CreateMessage(); @@ -1111,6 +1297,14 @@ public Response ListKeysNextPage(string n } } + internal RequestUriBuilder CreateListDeletedNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListDeletedNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/RestOperations/KeyValuesRestOperations.cs b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/RestOperations/KeyValuesRestOperations.cs index 28480a7a16f8..c93dc3922a8e 100644 --- a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/RestOperations/KeyValuesRestOperations.cs +++ b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/RestOperations/KeyValuesRestOperations.cs @@ -36,6 +36,22 @@ public KeyValuesRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string configStoreName, string keyValueName) + { + 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.AppConfiguration/configurationStores/", false); + uri.AppendPath(configStoreName, true); + uri.AppendPath("/keyValues/", false); + uri.AppendPath(keyValueName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string configStoreName, string keyValueName) { var message = _pipeline.CreateMessage(); @@ -124,6 +140,22 @@ public Response Get(string subscriptionId, string } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string configStoreName, string keyValueName, AppConfigurationKeyValueData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AppConfiguration/configurationStores/", false); + uri.AppendPath(configStoreName, true); + uri.AppendPath("/keyValues/", false); + uri.AppendPath(keyValueName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string configStoreName, string keyValueName, AppConfigurationKeyValueData data) { var message = _pipeline.CreateMessage(); @@ -216,6 +248,22 @@ public Response CreateOrUpdate(string subscription } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string configStoreName, string keyValueName) + { + 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.AppConfiguration/configurationStores/", false); + uri.AppendPath(configStoreName, true); + uri.AppendPath("/keyValues/", false); + uri.AppendPath(keyValueName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string configStoreName, string keyValueName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs index b973bf9a02fb..e770ba7b92d1 100644 --- a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs +++ b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs @@ -37,6 +37,21 @@ public PrivateEndpointConnectionsRestOperations(HttpPipeline pipeline, string ap _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByConfigurationStoreRequestUri(string subscriptionId, string resourceGroupName, string configStoreName) + { + 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.AppConfiguration/configurationStores/", false); + uri.AppendPath(configStoreName, true); + uri.AppendPath("/privateEndpointConnections", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByConfigurationStoreRequest(string subscriptionId, string resourceGroupName, string configStoreName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByConfi } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string configStoreName, string privateEndpointConnectionName) + { + 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.AppConfiguration/configurationStores/", false); + uri.AppendPath(configStoreName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string configStoreName, string privateEndpointConnectionName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscr } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string configStoreName, string privateEndpointConnectionName, AppConfigurationPrivateEndpointConnectionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AppConfiguration/configurationStores/", false); + uri.AppendPath(configStoreName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string configStoreName, string privateEndpointConnectionName, AppConfigurationPrivateEndpointConnectionData data) { var message = _pipeline.CreateMessage(); @@ -288,6 +335,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string configStoreName, string privateEndpointConnectionName) + { + 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.AppConfiguration/configurationStores/", false); + uri.AppendPath(configStoreName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string configStoreName, string privateEndpointConnectionName) { var message = _pipeline.CreateMessage(); @@ -366,6 +429,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateListByConfigurationStoreNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string configStoreName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByConfigurationStoreNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string configStoreName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs index 2d511e613cac..d3a65372fa0b 100644 --- a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs +++ b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs @@ -37,6 +37,21 @@ public PrivateLinkResourcesRestOperations(HttpPipeline pipeline, string applicat _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByConfigurationStoreRequestUri(string subscriptionId, string resourceGroupName, string configStoreName) + { + 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.AppConfiguration/configurationStores/", false); + uri.AppendPath(configStoreName, true); + uri.AppendPath("/privateLinkResources", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByConfigurationStoreRequest(string subscriptionId, string resourceGroupName, string configStoreName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByConfigurati } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string configStoreName, string groupName) + { + 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.AppConfiguration/configurationStores/", false); + uri.AppendPath(configStoreName, true); + uri.AppendPath("/privateLinkResources/", false); + uri.AppendPath(groupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string configStoreName, string groupName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,14 @@ public Response Get(string subscription } } + internal RequestUriBuilder CreateListByConfigurationStoreNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string configStoreName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByConfigurationStoreNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string configStoreName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/RestOperations/ReplicasRestOperations.cs b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/RestOperations/ReplicasRestOperations.cs index be632b7aa01b..297da8f6b27f 100644 --- a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/RestOperations/ReplicasRestOperations.cs +++ b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/RestOperations/ReplicasRestOperations.cs @@ -37,6 +37,25 @@ public ReplicasRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByConfigurationStoreRequestUri(string subscriptionId, string resourceGroupName, string configStoreName, string skipToken) + { + 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.AppConfiguration/configurationStores/", false); + uri.AppendPath(configStoreName, true); + uri.AppendPath("/replicas", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } + return uri; + } + internal HttpMessage CreateListByConfigurationStoreRequest(string subscriptionId, string resourceGroupName, string configStoreName, string skipToken) { var message = _pipeline.CreateMessage(); @@ -122,6 +141,22 @@ public Response ListByConfigurationStore(string subscriptionI } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string configStoreName, string replicaName) + { + 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.AppConfiguration/configurationStores/", false); + uri.AppendPath(configStoreName, true); + uri.AppendPath("/replicas/", false); + uri.AppendPath(replicaName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string configStoreName, string replicaName) { var message = _pipeline.CreateMessage(); @@ -210,6 +245,22 @@ public Response Get(string subscriptionId, string r } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string configStoreName, string replicaName, AppConfigurationReplicaData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AppConfiguration/configurationStores/", false); + uri.AppendPath(configStoreName, true); + uri.AppendPath("/replicas/", false); + uri.AppendPath(replicaName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string configStoreName, string replicaName, AppConfigurationReplicaData data) { var message = _pipeline.CreateMessage(); @@ -294,6 +345,22 @@ public Response Create(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string configStoreName, string replicaName) + { + 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.AppConfiguration/configurationStores/", false); + uri.AppendPath(configStoreName, true); + uri.AppendPath("/replicas/", false); + uri.AppendPath(replicaName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string configStoreName, string replicaName) { var message = _pipeline.CreateMessage(); @@ -372,6 +439,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateListByConfigurationStoreNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string configStoreName, string skipToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByConfigurationStoreNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string configStoreName, string skipToken) { var message = _pipeline.CreateMessage(); diff --git a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/AppPlatformBuildCollection.cs b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/AppPlatformBuildCollection.cs index a54e60388ae2..82aee126f420 100644 --- a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/AppPlatformBuildCollection.cs +++ b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/AppPlatformBuildCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> CreateOrUpdate try { var response = await _appPlatformBuildBuildServiceRestClient.CreateOrUpdateBuildAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, buildName, data, cancellationToken).ConfigureAwait(false); - var operation = new AppPlatformArmOperation(Response.FromValue(new AppPlatformBuildResource(Client, response), response.GetRawResponse())); + var uri = _appPlatformBuildBuildServiceRestClient.CreateCreateOrUpdateBuildRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, buildName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppPlatformArmOperation(Response.FromValue(new AppPlatformBuildResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil w try { var response = _appPlatformBuildBuildServiceRestClient.CreateOrUpdateBuild(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, buildName, data, cancellationToken); - var operation = new AppPlatformArmOperation(Response.FromValue(new AppPlatformBuildResource(Client, response), response.GetRawResponse())); + var uri = _appPlatformBuildBuildServiceRestClient.CreateCreateOrUpdateBuildRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, buildName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppPlatformArmOperation(Response.FromValue(new AppPlatformBuildResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/AppPlatformBuildResource.cs b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/AppPlatformBuildResource.cs index 16cb84919d2d..5b9b65cb6ba8 100644 --- a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/AppPlatformBuildResource.cs +++ b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/AppPlatformBuildResource.cs @@ -274,7 +274,9 @@ public virtual async Task> UpdateAsync(Wa try { var response = await _appPlatformBuildBuildServiceRestClient.CreateOrUpdateBuildAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new AppPlatformArmOperation(Response.FromValue(new AppPlatformBuildResource(Client, response), response.GetRawResponse())); + var uri = _appPlatformBuildBuildServiceRestClient.CreateCreateOrUpdateBuildRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppPlatformArmOperation(Response.FromValue(new AppPlatformBuildResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -320,7 +322,9 @@ public virtual ArmOperation Update(WaitUntil waitUntil try { var response = _appPlatformBuildBuildServiceRestClient.CreateOrUpdateBuild(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new AppPlatformArmOperation(Response.FromValue(new AppPlatformBuildResource(Client, response), response.GetRawResponse())); + var uri = _appPlatformBuildBuildServiceRestClient.CreateCreateOrUpdateBuildRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppPlatformArmOperation(Response.FromValue(new AppPlatformBuildResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/LongRunningOperation/AppPlatformArmOperation.cs b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/LongRunningOperation/AppPlatformArmOperation.cs index 6cf31b108b73..87052a2b444b 100644 --- a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/LongRunningOperation/AppPlatformArmOperation.cs +++ b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/LongRunningOperation/AppPlatformArmOperation.cs @@ -20,21 +20,24 @@ internal class AppPlatformArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of AppPlatformArmOperation for mocking. protected AppPlatformArmOperation() { } - internal AppPlatformArmOperation(Response response) + internal AppPlatformArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal AppPlatformArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "AppPlatformArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal AppPlatformArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeli public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/LongRunningOperation/AppPlatformArmOperationOfT.cs b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/LongRunningOperation/AppPlatformArmOperationOfT.cs index 27c2dd83dd06..01bfae2ec3ed 100644 --- a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/LongRunningOperation/AppPlatformArmOperationOfT.cs +++ b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/LongRunningOperation/AppPlatformArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class AppPlatformArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of AppPlatformArmOperation for mocking. protected AppPlatformArmOperation() { } - internal AppPlatformArmOperation(Response response) + internal AppPlatformArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal AppPlatformArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "AppPlatformArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal AppPlatformArmOperation(IOperationSource source, ClientDiagnostics c public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformApiPortalCustomDomainResource.Serialization.cs b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformApiPortalCustomDomainResource.Serialization.cs new file mode 100644 index 000000000000..e00161b0e5b4 --- /dev/null +++ b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformApiPortalCustomDomainResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppPlatform +{ + public partial class AppPlatformApiPortalCustomDomainResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + AppPlatformApiPortalCustomDomainData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + AppPlatformApiPortalCustomDomainData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformApiPortalResource.Serialization.cs b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformApiPortalResource.Serialization.cs new file mode 100644 index 000000000000..33c5b59c5835 --- /dev/null +++ b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformApiPortalResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppPlatform +{ + public partial class AppPlatformApiPortalResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + AppPlatformApiPortalData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + AppPlatformApiPortalData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformAppResource.Serialization.cs b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformAppResource.Serialization.cs new file mode 100644 index 000000000000..f95f37676267 --- /dev/null +++ b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformAppResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppPlatform +{ + public partial class AppPlatformAppResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + AppPlatformAppData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + AppPlatformAppData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformBindingResource.Serialization.cs b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformBindingResource.Serialization.cs new file mode 100644 index 000000000000..307642aff114 --- /dev/null +++ b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformBindingResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppPlatform +{ + public partial class AppPlatformBindingResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + AppPlatformBindingData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + AppPlatformBindingData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformBuildResource.Serialization.cs b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformBuildResource.Serialization.cs new file mode 100644 index 000000000000..ceedda6bc341 --- /dev/null +++ b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformBuildResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppPlatform +{ + public partial class AppPlatformBuildResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + AppPlatformBuildData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + AppPlatformBuildData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformBuildResultResource.Serialization.cs b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformBuildResultResource.Serialization.cs new file mode 100644 index 000000000000..80adaf0c6615 --- /dev/null +++ b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformBuildResultResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppPlatform +{ + public partial class AppPlatformBuildResultResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + AppPlatformBuildResultData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + AppPlatformBuildResultData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformBuildServiceAgentPoolResource.Serialization.cs b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformBuildServiceAgentPoolResource.Serialization.cs new file mode 100644 index 000000000000..04c745732e0e --- /dev/null +++ b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformBuildServiceAgentPoolResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppPlatform +{ + public partial class AppPlatformBuildServiceAgentPoolResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + AppPlatformBuildServiceAgentPoolData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + AppPlatformBuildServiceAgentPoolData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformBuildServiceResource.Serialization.cs b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformBuildServiceResource.Serialization.cs new file mode 100644 index 000000000000..c6033b407ebd --- /dev/null +++ b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformBuildServiceResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppPlatform +{ + public partial class AppPlatformBuildServiceResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + AppPlatformBuildServiceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + AppPlatformBuildServiceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformBuilderResource.Serialization.cs b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformBuilderResource.Serialization.cs new file mode 100644 index 000000000000..8cc059e95fff --- /dev/null +++ b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformBuilderResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppPlatform +{ + public partial class AppPlatformBuilderResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + AppPlatformBuilderData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + AppPlatformBuilderData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformBuildpackBindingResource.Serialization.cs b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformBuildpackBindingResource.Serialization.cs new file mode 100644 index 000000000000..a2cfd0c88fea --- /dev/null +++ b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformBuildpackBindingResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppPlatform +{ + public partial class AppPlatformBuildpackBindingResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + AppPlatformBuildpackBindingData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + AppPlatformBuildpackBindingData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformCertificateResource.Serialization.cs b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformCertificateResource.Serialization.cs new file mode 100644 index 000000000000..e653be0a910a --- /dev/null +++ b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformCertificateResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppPlatform +{ + public partial class AppPlatformCertificateResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + AppPlatformCertificateData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + AppPlatformCertificateData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformConfigServerResource.Serialization.cs b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformConfigServerResource.Serialization.cs new file mode 100644 index 000000000000..5774b93d8439 --- /dev/null +++ b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformConfigServerResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppPlatform +{ + public partial class AppPlatformConfigServerResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + AppPlatformConfigServerData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + AppPlatformConfigServerData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformConfigurationServiceResource.Serialization.cs b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformConfigurationServiceResource.Serialization.cs new file mode 100644 index 000000000000..24721784c4f1 --- /dev/null +++ b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformConfigurationServiceResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppPlatform +{ + public partial class AppPlatformConfigurationServiceResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + AppPlatformConfigurationServiceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + AppPlatformConfigurationServiceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformCustomDomainResource.Serialization.cs b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformCustomDomainResource.Serialization.cs new file mode 100644 index 000000000000..7b3ebcec931c --- /dev/null +++ b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformCustomDomainResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppPlatform +{ + public partial class AppPlatformCustomDomainResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + AppPlatformCustomDomainData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + AppPlatformCustomDomainData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformDeploymentResource.Serialization.cs b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformDeploymentResource.Serialization.cs new file mode 100644 index 000000000000..4449e00e19eb --- /dev/null +++ b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformDeploymentResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppPlatform +{ + public partial class AppPlatformDeploymentResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + AppPlatformDeploymentData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + AppPlatformDeploymentData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformGatewayCustomDomainResource.Serialization.cs b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformGatewayCustomDomainResource.Serialization.cs new file mode 100644 index 000000000000..03386b399b02 --- /dev/null +++ b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformGatewayCustomDomainResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppPlatform +{ + public partial class AppPlatformGatewayCustomDomainResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + AppPlatformGatewayCustomDomainData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + AppPlatformGatewayCustomDomainData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformGatewayResource.Serialization.cs b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformGatewayResource.Serialization.cs new file mode 100644 index 000000000000..42aac8c14035 --- /dev/null +++ b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformGatewayResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppPlatform +{ + public partial class AppPlatformGatewayResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + AppPlatformGatewayData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + AppPlatformGatewayData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformGatewayRouteConfigResource.Serialization.cs b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformGatewayRouteConfigResource.Serialization.cs new file mode 100644 index 000000000000..5c493543e3c6 --- /dev/null +++ b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformGatewayRouteConfigResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppPlatform +{ + public partial class AppPlatformGatewayRouteConfigResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + AppPlatformGatewayRouteConfigData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + AppPlatformGatewayRouteConfigData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformMonitoringSettingResource.Serialization.cs b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformMonitoringSettingResource.Serialization.cs new file mode 100644 index 000000000000..36e75123bb3a --- /dev/null +++ b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformMonitoringSettingResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppPlatform +{ + public partial class AppPlatformMonitoringSettingResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + AppPlatformMonitoringSettingData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + AppPlatformMonitoringSettingData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformServiceRegistryResource.Serialization.cs b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformServiceRegistryResource.Serialization.cs new file mode 100644 index 000000000000..336d7ca98800 --- /dev/null +++ b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformServiceRegistryResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppPlatform +{ + public partial class AppPlatformServiceRegistryResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + AppPlatformServiceRegistryData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + AppPlatformServiceRegistryData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformServiceResource.Serialization.cs b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformServiceResource.Serialization.cs new file mode 100644 index 000000000000..640e1f75d735 --- /dev/null +++ b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformServiceResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppPlatform +{ + public partial class AppPlatformServiceResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + AppPlatformServiceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + AppPlatformServiceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformStorageResource.Serialization.cs b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformStorageResource.Serialization.cs new file mode 100644 index 000000000000..a01a0f6bf61f --- /dev/null +++ b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformStorageResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppPlatform +{ + public partial class AppPlatformStorageResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + AppPlatformStorageData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + AppPlatformStorageData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformSupportedBuildpackResource.Serialization.cs b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformSupportedBuildpackResource.Serialization.cs new file mode 100644 index 000000000000..aaa4bfb1ca03 --- /dev/null +++ b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformSupportedBuildpackResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppPlatform +{ + public partial class AppPlatformSupportedBuildpackResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + AppPlatformSupportedBuildpackData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + AppPlatformSupportedBuildpackData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformSupportedStackResource.Serialization.cs b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformSupportedStackResource.Serialization.cs new file mode 100644 index 000000000000..922d922b2065 --- /dev/null +++ b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformSupportedStackResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppPlatform +{ + public partial class AppPlatformSupportedStackResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + AppPlatformSupportedStackData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + AppPlatformSupportedStackData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/RestOperations/ApiPortalCustomDomainsRestOperations.cs b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/RestOperations/ApiPortalCustomDomainsRestOperations.cs index 0ea6335243d0..508d15f4dcd7 100644 --- a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/RestOperations/ApiPortalCustomDomainsRestOperations.cs +++ b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/RestOperations/ApiPortalCustomDomainsRestOperations.cs @@ -37,6 +37,24 @@ public ApiPortalCustomDomainsRestOperations(HttpPipeline pipeline, string applic _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string apiPortalName, string domainName) + { + 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.AppPlatform/Spring/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apiPortals/", false); + uri.AppendPath(apiPortalName, true); + uri.AppendPath("/domains/", false); + uri.AppendPath(domainName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serviceName, string apiPortalName, string domainName) { var message = _pipeline.CreateMessage(); @@ -131,6 +149,24 @@ public Response Get(string subscriptionId, } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string apiPortalName, string domainName, AppPlatformApiPortalCustomDomainData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AppPlatform/Spring/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apiPortals/", false); + uri.AppendPath(apiPortalName, true); + uri.AppendPath("/domains/", false); + uri.AppendPath(domainName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serviceName, string apiPortalName, string domainName, AppPlatformApiPortalCustomDomainData data) { var message = _pipeline.CreateMessage(); @@ -221,6 +257,24 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string apiPortalName, string domainName) + { + 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.AppPlatform/Spring/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apiPortals/", false); + uri.AppendPath(apiPortalName, true); + uri.AppendPath("/domains/", false); + uri.AppendPath(domainName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string serviceName, string apiPortalName, string domainName) { var message = _pipeline.CreateMessage(); @@ -305,6 +359,23 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string apiPortalName) + { + 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.AppPlatform/Spring/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apiPortals/", false); + uri.AppendPath(apiPortalName, true); + uri.AppendPath("/domains", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string serviceName, string apiPortalName) { var message = _pipeline.CreateMessage(); @@ -390,6 +461,14 @@ public Response List(string subscriptionId, s } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string apiPortalName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string apiPortalName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/RestOperations/ApiPortalsRestOperations.cs b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/RestOperations/ApiPortalsRestOperations.cs index d6c8c3917ed4..a6554661e730 100644 --- a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/RestOperations/ApiPortalsRestOperations.cs +++ b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/RestOperations/ApiPortalsRestOperations.cs @@ -37,6 +37,22 @@ public ApiPortalsRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string apiPortalName) + { + 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.AppPlatform/Spring/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apiPortals/", false); + uri.AppendPath(apiPortalName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serviceName, string apiPortalName) { var message = _pipeline.CreateMessage(); @@ -125,6 +141,22 @@ public Response Get(string subscriptionId, string reso } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string apiPortalName, AppPlatformApiPortalData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AppPlatform/Spring/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apiPortals/", false); + uri.AppendPath(apiPortalName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serviceName, string apiPortalName, AppPlatformApiPortalData data) { var message = _pipeline.CreateMessage(); @@ -209,6 +241,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string apiPortalName) + { + 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.AppPlatform/Spring/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apiPortals/", false); + uri.AppendPath(apiPortalName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string serviceName, string apiPortalName) { var message = _pipeline.CreateMessage(); @@ -287,6 +335,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string serviceName) + { + 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.AppPlatform/Spring/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apiPortals", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string serviceName) { var message = _pipeline.CreateMessage(); @@ -366,6 +429,23 @@ public Response List(string subscriptionId, string resour } } + internal RequestUriBuilder CreateValidateDomainRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string apiPortalName, AppPlatformCustomDomainValidateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AppPlatform/Spring/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apiPortals/", false); + uri.AppendPath(apiPortalName, true); + uri.AppendPath("/validateDomain", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateValidateDomainRequest(string subscriptionId, string resourceGroupName, string serviceName, string apiPortalName, AppPlatformCustomDomainValidateContent content) { var message = _pipeline.CreateMessage(); @@ -459,6 +539,14 @@ public Response ValidateDomain(string sub } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serviceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serviceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/RestOperations/AppsRestOperations.cs b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/RestOperations/AppsRestOperations.cs index 160d692a60dc..bed75cc91006 100644 --- a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/RestOperations/AppsRestOperations.cs +++ b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/RestOperations/AppsRestOperations.cs @@ -37,6 +37,26 @@ public AppsRestOperations(HttpPipeline pipeline, string applicationId, Uri endpo _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string appName, string syncStatus) + { + 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.AppPlatform/Spring/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apps/", false); + uri.AppendPath(appName, true); + uri.AppendQuery("api-version", _apiVersion, true); + if (syncStatus != null) + { + uri.AppendQuery("syncStatus", syncStatus, true); + } + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serviceName, string appName, string syncStatus) { var message = _pipeline.CreateMessage(); @@ -131,6 +151,22 @@ public Response Get(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string appName, AppPlatformAppData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AppPlatform/Spring/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apps/", false); + uri.AppendPath(appName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serviceName, string appName, AppPlatformAppData data) { var message = _pipeline.CreateMessage(); @@ -217,6 +253,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string appName) + { + 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.AppPlatform/Spring/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apps/", false); + uri.AppendPath(appName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string serviceName, string appName) { var message = _pipeline.CreateMessage(); @@ -295,6 +347,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string appName, AppPlatformAppData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AppPlatform/Spring/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apps/", false); + uri.AppendPath(appName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string serviceName, string appName, AppPlatformAppData data) { var message = _pipeline.CreateMessage(); @@ -379,6 +447,21 @@ public Response Update(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string serviceName) + { + 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.AppPlatform/Spring/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apps", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string serviceName) { var message = _pipeline.CreateMessage(); @@ -458,6 +541,23 @@ public Response List(string subscriptionId, string resourceGrou } } + internal RequestUriBuilder CreateGetResourceUploadUriRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string appName) + { + 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.AppPlatform/Spring/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apps/", false); + uri.AppendPath(appName, true); + uri.AppendPath("/getResourceUploadUrl", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetResourceUploadUriRequest(string subscriptionId, string resourceGroupName, string serviceName, string appName) { var message = _pipeline.CreateMessage(); @@ -543,6 +643,23 @@ public Response GetResourceUploadUri(string sub } } + internal RequestUriBuilder CreateSetActiveDeploymentsRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string appName, ActiveAppPlatformDeploymentsContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AppPlatform/Spring/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apps/", false); + uri.AppendPath(appName, true); + uri.AppendPath("/setActiveDeployments", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateSetActiveDeploymentsRequest(string subscriptionId, string resourceGroupName, string serviceName, string appName, ActiveAppPlatformDeploymentsContent content) { var message = _pipeline.CreateMessage(); @@ -628,6 +745,23 @@ public Response SetActiveDeployments(string subscriptionId, string resourceGroup } } + internal RequestUriBuilder CreateValidateDomainRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string appName, AppPlatformCustomDomainValidateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AppPlatform/Spring/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apps/", false); + uri.AppendPath(appName, true); + uri.AppendPath("/validateDomain", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateValidateDomainRequest(string subscriptionId, string resourceGroupName, string serviceName, string appName, AppPlatformCustomDomainValidateContent content) { var message = _pipeline.CreateMessage(); @@ -721,6 +855,14 @@ public Response ValidateDomain(string sub } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serviceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serviceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/RestOperations/BindingsRestOperations.cs b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/RestOperations/BindingsRestOperations.cs index 672044b30b04..ad650d8a03bb 100644 --- a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/RestOperations/BindingsRestOperations.cs +++ b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/RestOperations/BindingsRestOperations.cs @@ -37,6 +37,24 @@ public BindingsRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string appName, string bindingName) + { + 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.AppPlatform/Spring/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apps/", false); + uri.AppendPath(appName, true); + uri.AppendPath("/bindings/", false); + uri.AppendPath(bindingName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serviceName, string appName, string bindingName) { var message = _pipeline.CreateMessage(); @@ -131,6 +149,24 @@ public Response Get(string subscriptionId, string resour } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string appName, string bindingName, AppPlatformBindingData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AppPlatform/Spring/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apps/", false); + uri.AppendPath(appName, true); + uri.AppendPath("/bindings/", false); + uri.AppendPath(bindingName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serviceName, string appName, string bindingName, AppPlatformBindingData data) { var message = _pipeline.CreateMessage(); @@ -223,6 +259,24 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string appName, string bindingName) + { + 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.AppPlatform/Spring/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apps/", false); + uri.AppendPath(appName, true); + uri.AppendPath("/bindings/", false); + uri.AppendPath(bindingName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string serviceName, string appName, string bindingName) { var message = _pipeline.CreateMessage(); @@ -307,6 +361,24 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string appName, string bindingName, AppPlatformBindingData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AppPlatform/Spring/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apps/", false); + uri.AppendPath(appName, true); + uri.AppendPath("/bindings/", false); + uri.AppendPath(bindingName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string serviceName, string appName, string bindingName, AppPlatformBindingData data) { var message = _pipeline.CreateMessage(); @@ -397,6 +469,23 @@ public Response Update(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string appName) + { + 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.AppPlatform/Spring/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apps/", false); + uri.AppendPath(appName, true); + uri.AppendPath("/bindings", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string serviceName, string appName) { var message = _pipeline.CreateMessage(); @@ -482,6 +571,14 @@ public Response List(string subscriptionId, string resource } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string appName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string appName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/RestOperations/BuildServiceAgentPoolRestOperations.cs b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/RestOperations/BuildServiceAgentPoolRestOperations.cs index 2254863cc721..21560e62e607 100644 --- a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/RestOperations/BuildServiceAgentPoolRestOperations.cs +++ b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/RestOperations/BuildServiceAgentPoolRestOperations.cs @@ -37,6 +37,23 @@ public BuildServiceAgentPoolRestOperations(HttpPipeline pipeline, string applica _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string buildServiceName) + { + 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.AppPlatform/Spring/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/buildServices/", false); + uri.AppendPath(buildServiceName, true); + uri.AppendPath("/agentPools", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string serviceName, string buildServiceName) { var message = _pipeline.CreateMessage(); @@ -122,6 +139,24 @@ public Response List(string subscriptionId, s } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string buildServiceName, string agentPoolName) + { + 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.AppPlatform/Spring/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/buildServices/", false); + uri.AppendPath(buildServiceName, true); + uri.AppendPath("/agentPools/", false); + uri.AppendPath(agentPoolName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serviceName, string buildServiceName, string agentPoolName) { var message = _pipeline.CreateMessage(); @@ -216,6 +251,24 @@ public Response Get(string subscriptionId, } } + internal RequestUriBuilder CreateUpdatePutRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string buildServiceName, string agentPoolName, AppPlatformBuildServiceAgentPoolData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AppPlatform/Spring/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/buildServices/", false); + uri.AppendPath(buildServiceName, true); + uri.AppendPath("/agentPools/", false); + uri.AppendPath(agentPoolName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdatePutRequest(string subscriptionId, string resourceGroupName, string serviceName, string buildServiceName, string agentPoolName, AppPlatformBuildServiceAgentPoolData data) { var message = _pipeline.CreateMessage(); @@ -306,6 +359,14 @@ public Response UpdatePut(string subscriptionId, string resourceGroupName, strin } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string buildServiceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string buildServiceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/RestOperations/BuildServiceBuilderRestOperations.cs b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/RestOperations/BuildServiceBuilderRestOperations.cs index 56e94fb3cab1..c4ba1a8d54b7 100644 --- a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/RestOperations/BuildServiceBuilderRestOperations.cs +++ b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/RestOperations/BuildServiceBuilderRestOperations.cs @@ -37,6 +37,24 @@ public BuildServiceBuilderRestOperations(HttpPipeline pipeline, string applicati _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string buildServiceName, string builderName) + { + 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.AppPlatform/Spring/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/buildServices/", false); + uri.AppendPath(buildServiceName, true); + uri.AppendPath("/builders/", false); + uri.AppendPath(builderName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serviceName, string buildServiceName, string builderName) { var message = _pipeline.CreateMessage(); @@ -131,6 +149,24 @@ public Response Get(string subscriptionId, string resour } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string buildServiceName, string builderName, AppPlatformBuilderData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AppPlatform/Spring/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/buildServices/", false); + uri.AppendPath(buildServiceName, true); + uri.AppendPath("/builders/", false); + uri.AppendPath(builderName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serviceName, string buildServiceName, string builderName, AppPlatformBuilderData data) { var message = _pipeline.CreateMessage(); @@ -221,6 +257,24 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string buildServiceName, string builderName) + { + 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.AppPlatform/Spring/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/buildServices/", false); + uri.AppendPath(buildServiceName, true); + uri.AppendPath("/builders/", false); + uri.AppendPath(builderName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string serviceName, string buildServiceName, string builderName) { var message = _pipeline.CreateMessage(); @@ -305,6 +359,23 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string buildServiceName) + { + 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.AppPlatform/Spring/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/buildServices/", false); + uri.AppendPath(buildServiceName, true); + uri.AppendPath("/builders", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string serviceName, string buildServiceName) { var message = _pipeline.CreateMessage(); @@ -390,6 +461,25 @@ public Response List(string subscriptionId, string resou } } + internal RequestUriBuilder CreateListDeploymentsRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string buildServiceName, string builderName) + { + 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.AppPlatform/Spring/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/buildServices/", false); + uri.AppendPath(buildServiceName, true); + uri.AppendPath("/builders/", false); + uri.AppendPath(builderName, true); + uri.AppendPath("/listUsingDeployments", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListDeploymentsRequest(string subscriptionId, string resourceGroupName, string serviceName, string buildServiceName, string builderName) { var message = _pipeline.CreateMessage(); @@ -481,6 +571,14 @@ public Response ListDeployments(string subscriptionId, string re } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string buildServiceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string buildServiceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/RestOperations/BuildServiceRestOperations.cs b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/RestOperations/BuildServiceRestOperations.cs index 9240eab73347..cfdb8b39f2fd 100644 --- a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/RestOperations/BuildServiceRestOperations.cs +++ b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/RestOperations/BuildServiceRestOperations.cs @@ -37,6 +37,21 @@ public BuildServiceRestOperations(HttpPipeline pipeline, string applicationId, U _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListBuildServicesRequestUri(string subscriptionId, string resourceGroupName, string serviceName) + { + 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.AppPlatform/Spring/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/buildServices", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBuildServicesRequest(string subscriptionId, string resourceGroupName, string serviceName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListBuildServices(string subscriptionId, st } } + internal RequestUriBuilder CreateGetBuildServiceRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string buildServiceName) + { + 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.AppPlatform/Spring/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/buildServices/", false); + uri.AppendPath(buildServiceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetBuildServiceRequest(string subscriptionId, string resourceGroupName, string serviceName, string buildServiceName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,23 @@ public Response GetBuildService(string subscription } } + internal RequestUriBuilder CreateListBuildsRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string buildServiceName) + { + 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.AppPlatform/Spring/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/buildServices/", false); + uri.AppendPath(buildServiceName, true); + uri.AppendPath("/builds", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBuildsRequest(string subscriptionId, string resourceGroupName, string serviceName, string buildServiceName) { var message = _pipeline.CreateMessage(); @@ -289,6 +337,24 @@ public Response ListBuilds(string subscriptionId, string resourceG } } + internal RequestUriBuilder CreateGetBuildRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string buildServiceName, string buildName) + { + 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.AppPlatform/Spring/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/buildServices/", false); + uri.AppendPath(buildServiceName, true); + uri.AppendPath("/builds/", false); + uri.AppendPath(buildName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetBuildRequest(string subscriptionId, string resourceGroupName, string serviceName, string buildServiceName, string buildName) { var message = _pipeline.CreateMessage(); @@ -383,6 +449,24 @@ public Response GetBuild(string subscriptionId, string res } } + internal RequestUriBuilder CreateCreateOrUpdateBuildRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string buildServiceName, string buildName, AppPlatformBuildData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AppPlatform/Spring/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/buildServices/", false); + uri.AppendPath(buildServiceName, true); + uri.AppendPath("/builds/", false); + uri.AppendPath(buildName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateBuildRequest(string subscriptionId, string resourceGroupName, string serviceName, string buildServiceName, string buildName, AppPlatformBuildData data) { var message = _pipeline.CreateMessage(); @@ -483,6 +567,25 @@ public Response CreateOrUpdateBuild(string subscriptionId, } } + internal RequestUriBuilder CreateListBuildResultsRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string buildServiceName, string buildName) + { + 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.AppPlatform/Spring/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/buildServices/", false); + uri.AppendPath(buildServiceName, true); + uri.AppendPath("/builds/", false); + uri.AppendPath(buildName, true); + uri.AppendPath("/results", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBuildResultsRequest(string subscriptionId, string resourceGroupName, string serviceName, string buildServiceName, string buildName) { var message = _pipeline.CreateMessage(); @@ -574,6 +677,26 @@ public Response ListBuildResults(string subscriptionId, stri } } + internal RequestUriBuilder CreateGetBuildResultRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string buildServiceName, string buildName, string buildResultName) + { + 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.AppPlatform/Spring/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/buildServices/", false); + uri.AppendPath(buildServiceName, true); + uri.AppendPath("/builds/", false); + uri.AppendPath(buildName, true); + uri.AppendPath("/results/", false); + uri.AppendPath(buildResultName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetBuildResultRequest(string subscriptionId, string resourceGroupName, string serviceName, string buildServiceName, string buildName, string buildResultName) { var message = _pipeline.CreateMessage(); @@ -674,6 +797,27 @@ public Response GetBuildResult(string subscriptionId } } + internal RequestUriBuilder CreateGetBuildResultLogRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string buildServiceName, string buildName, string buildResultName) + { + 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.AppPlatform/Spring/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/buildServices/", false); + uri.AppendPath(buildServiceName, true); + uri.AppendPath("/builds/", false); + uri.AppendPath(buildName, true); + uri.AppendPath("/results/", false); + uri.AppendPath(buildResultName, true); + uri.AppendPath("/getLogFileUrl", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetBuildResultLogRequest(string subscriptionId, string resourceGroupName, string serviceName, string buildServiceName, string buildName, string buildResultName) { var message = _pipeline.CreateMessage(); @@ -771,6 +915,23 @@ public Response GetBuildResultLog(string subscription } } + internal RequestUriBuilder CreateGetResourceUploadUriRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string buildServiceName) + { + 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.AppPlatform/Spring/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/buildServices/", false); + uri.AppendPath(buildServiceName, true); + uri.AppendPath("/getResourceUploadUrl", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetResourceUploadUriRequest(string subscriptionId, string resourceGroupName, string serviceName, string buildServiceName) { var message = _pipeline.CreateMessage(); @@ -856,6 +1017,23 @@ public Response GetResourceUploadUri(string sub } } + internal RequestUriBuilder CreateListSupportedBuildpacksRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string buildServiceName) + { + 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.AppPlatform/Spring/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/buildServices/", false); + uri.AppendPath(buildServiceName, true); + uri.AppendPath("/supportedBuildpacks", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListSupportedBuildpacksRequest(string subscriptionId, string resourceGroupName, string serviceName, string buildServiceName) { var message = _pipeline.CreateMessage(); @@ -941,6 +1119,24 @@ public Response ListSupportedBuildpacks(string subscrip } } + internal RequestUriBuilder CreateGetSupportedBuildpackRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string buildServiceName, string buildpackName) + { + 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.AppPlatform/Spring/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/buildServices/", false); + uri.AppendPath(buildServiceName, true); + uri.AppendPath("/supportedBuildpacks/", false); + uri.AppendPath(buildpackName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetSupportedBuildpackRequest(string subscriptionId, string resourceGroupName, string serviceName, string buildServiceName, string buildpackName) { var message = _pipeline.CreateMessage(); @@ -1035,6 +1231,23 @@ public Response GetSupportedBuildpack(string } } + internal RequestUriBuilder CreateListSupportedStacksRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string buildServiceName) + { + 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.AppPlatform/Spring/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/buildServices/", false); + uri.AppendPath(buildServiceName, true); + uri.AppendPath("/supportedStacks", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListSupportedStacksRequest(string subscriptionId, string resourceGroupName, string serviceName, string buildServiceName) { var message = _pipeline.CreateMessage(); @@ -1120,6 +1333,24 @@ public Response ListSupportedStacks(string subscriptionId, } } + internal RequestUriBuilder CreateGetSupportedStackRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string buildServiceName, string stackName) + { + 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.AppPlatform/Spring/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/buildServices/", false); + uri.AppendPath(buildServiceName, true); + uri.AppendPath("/supportedStacks/", false); + uri.AppendPath(stackName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetSupportedStackRequest(string subscriptionId, string resourceGroupName, string serviceName, string buildServiceName, string stackName) { var message = _pipeline.CreateMessage(); @@ -1214,6 +1445,14 @@ public Response GetSupportedStack(string subscrip } } + internal RequestUriBuilder CreateListBuildServicesNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serviceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBuildServicesNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serviceName) { var message = _pipeline.CreateMessage(); @@ -1290,6 +1529,14 @@ public Response ListBuildServicesNextPage(string nextLink, } } + internal RequestUriBuilder CreateListBuildsNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string buildServiceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBuildsNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string buildServiceName) { var message = _pipeline.CreateMessage(); @@ -1370,6 +1617,14 @@ public Response ListBuildsNextPage(string nextLink, string subscri } } + internal RequestUriBuilder CreateListBuildResultsNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string buildServiceName, string buildName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBuildResultsNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string buildServiceName, string buildName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/RestOperations/BuildpackBindingRestOperations.cs b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/RestOperations/BuildpackBindingRestOperations.cs index 638802ed4951..284a35fb6907 100644 --- a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/RestOperations/BuildpackBindingRestOperations.cs +++ b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/RestOperations/BuildpackBindingRestOperations.cs @@ -37,6 +37,26 @@ public BuildpackBindingRestOperations(HttpPipeline pipeline, string applicationI _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string buildServiceName, string builderName, string buildpackBindingName) + { + 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.AppPlatform/Spring/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/buildServices/", false); + uri.AppendPath(buildServiceName, true); + uri.AppendPath("/builders/", false); + uri.AppendPath(builderName, true); + uri.AppendPath("/buildpackBindings/", false); + uri.AppendPath(buildpackBindingName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serviceName, string buildServiceName, string builderName, string buildpackBindingName) { var message = _pipeline.CreateMessage(); @@ -137,6 +157,26 @@ public Response Get(string subscriptionId, stri } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string buildServiceName, string builderName, string buildpackBindingName, AppPlatformBuildpackBindingData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AppPlatform/Spring/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/buildServices/", false); + uri.AppendPath(buildServiceName, true); + uri.AppendPath("/builders/", false); + uri.AppendPath(builderName, true); + uri.AppendPath("/buildpackBindings/", false); + uri.AppendPath(buildpackBindingName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serviceName, string buildServiceName, string builderName, string buildpackBindingName, AppPlatformBuildpackBindingData data) { var message = _pipeline.CreateMessage(); @@ -233,6 +273,26 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string buildServiceName, string builderName, string buildpackBindingName) + { + 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.AppPlatform/Spring/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/buildServices/", false); + uri.AppendPath(buildServiceName, true); + uri.AppendPath("/builders/", false); + uri.AppendPath(builderName, true); + uri.AppendPath("/buildpackBindings/", false); + uri.AppendPath(buildpackBindingName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string serviceName, string buildServiceName, string builderName, string buildpackBindingName) { var message = _pipeline.CreateMessage(); @@ -323,6 +383,25 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string buildServiceName, string builderName) + { + 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.AppPlatform/Spring/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/buildServices/", false); + uri.AppendPath(buildServiceName, true); + uri.AppendPath("/builders/", false); + uri.AppendPath(builderName, true); + uri.AppendPath("/buildpackBindings", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string serviceName, string buildServiceName, string builderName) { var message = _pipeline.CreateMessage(); @@ -414,6 +493,14 @@ public Response List(string subscriptionId, string } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string buildServiceName, string builderName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string buildServiceName, string builderName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/RestOperations/CertificatesRestOperations.cs b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/RestOperations/CertificatesRestOperations.cs index 22c10796a43f..872baac662c9 100644 --- a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/RestOperations/CertificatesRestOperations.cs +++ b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/RestOperations/CertificatesRestOperations.cs @@ -37,6 +37,22 @@ public CertificatesRestOperations(HttpPipeline pipeline, string applicationId, U _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string certificateName) + { + 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.AppPlatform/Spring/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/certificates/", false); + uri.AppendPath(certificateName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serviceName, string certificateName) { var message = _pipeline.CreateMessage(); @@ -125,6 +141,22 @@ public Response Get(string subscriptionId, string re } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string certificateName, AppPlatformCertificateData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AppPlatform/Spring/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/certificates/", false); + uri.AppendPath(certificateName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serviceName, string certificateName, AppPlatformCertificateData data) { var message = _pipeline.CreateMessage(); @@ -211,6 +243,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string certificateName) + { + 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.AppPlatform/Spring/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/certificates/", false); + uri.AppendPath(certificateName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string serviceName, string certificateName) { var message = _pipeline.CreateMessage(); @@ -289,6 +337,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string serviceName) + { + 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.AppPlatform/Spring/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/certificates", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string serviceName) { var message = _pipeline.CreateMessage(); @@ -368,6 +431,14 @@ public Response List(string subscriptionId, string reso } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serviceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serviceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/RestOperations/ConfigServersRestOperations.cs b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/RestOperations/ConfigServersRestOperations.cs index 6776bacd8b3a..a44ec3d1364b 100644 --- a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/RestOperations/ConfigServersRestOperations.cs +++ b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/RestOperations/ConfigServersRestOperations.cs @@ -37,6 +37,21 @@ public ConfigServersRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serviceName) + { + 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.AppPlatform/Spring/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/configServers/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serviceName) { var message = _pipeline.CreateMessage(); @@ -120,6 +135,21 @@ public Response Get(string subscriptionId, string r } } + internal RequestUriBuilder CreateUpdatePutRequestUri(string subscriptionId, string resourceGroupName, string serviceName, AppPlatformConfigServerData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AppPlatform/Spring/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/configServers/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdatePutRequest(string subscriptionId, string resourceGroupName, string serviceName, AppPlatformConfigServerData data) { var message = _pipeline.CreateMessage(); @@ -199,6 +229,21 @@ public Response UpdatePut(string subscriptionId, string resourceGroupName, strin } } + internal RequestUriBuilder CreateUpdatePatchRequestUri(string subscriptionId, string resourceGroupName, string serviceName, AppPlatformConfigServerData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AppPlatform/Spring/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/configServers/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdatePatchRequest(string subscriptionId, string resourceGroupName, string serviceName, AppPlatformConfigServerData data) { var message = _pipeline.CreateMessage(); @@ -278,6 +323,21 @@ public Response UpdatePatch(string subscriptionId, string resourceGroupName, str } } + internal RequestUriBuilder CreateValidateRequestUri(string subscriptionId, string resourceGroupName, string serviceName, ConfigServerSettings settings) + { + 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.AppPlatform/Spring/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/configServers/validate", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateValidateRequest(string subscriptionId, string resourceGroupName, string serviceName, ConfigServerSettings settings) { var message = _pipeline.CreateMessage(); diff --git a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/RestOperations/ConfigurationServicesRestOperations.cs b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/RestOperations/ConfigurationServicesRestOperations.cs index 258c4f094095..50c6c304dcd6 100644 --- a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/RestOperations/ConfigurationServicesRestOperations.cs +++ b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/RestOperations/ConfigurationServicesRestOperations.cs @@ -37,6 +37,22 @@ public ConfigurationServicesRestOperations(HttpPipeline pipeline, string applica _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string configurationServiceName) + { + 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.AppPlatform/Spring/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/configurationServices/", false); + uri.AppendPath(configurationServiceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serviceName, string configurationServiceName) { var message = _pipeline.CreateMessage(); @@ -125,6 +141,22 @@ public Response Get(string subscriptionId, } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string configurationServiceName, AppPlatformConfigurationServiceData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AppPlatform/Spring/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/configurationServices/", false); + uri.AppendPath(configurationServiceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serviceName, string configurationServiceName, AppPlatformConfigurationServiceData data) { var message = _pipeline.CreateMessage(); @@ -209,6 +241,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string configurationServiceName) + { + 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.AppPlatform/Spring/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/configurationServices/", false); + uri.AppendPath(configurationServiceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string serviceName, string configurationServiceName) { var message = _pipeline.CreateMessage(); @@ -287,6 +335,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string serviceName) + { + 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.AppPlatform/Spring/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/configurationServices", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string serviceName) { var message = _pipeline.CreateMessage(); @@ -366,6 +429,23 @@ public Response List(string subscriptionId, st } } + internal RequestUriBuilder CreateValidateRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string configurationServiceName, AppPlatformConfigurationServiceSettings settings) + { + 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.AppPlatform/Spring/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/configurationServices/", false); + uri.AppendPath(configurationServiceName, true); + uri.AppendPath("/validate", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateValidateRequest(string subscriptionId, string resourceGroupName, string serviceName, string configurationServiceName, AppPlatformConfigurationServiceSettings settings) { var message = _pipeline.CreateMessage(); @@ -451,6 +531,14 @@ public Response Validate(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serviceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serviceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/RestOperations/CustomDomainsRestOperations.cs b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/RestOperations/CustomDomainsRestOperations.cs index f27e49a857e6..91e939e6566b 100644 --- a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/RestOperations/CustomDomainsRestOperations.cs +++ b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/RestOperations/CustomDomainsRestOperations.cs @@ -37,6 +37,24 @@ public CustomDomainsRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string appName, string domainName) + { + 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.AppPlatform/Spring/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apps/", false); + uri.AppendPath(appName, true); + uri.AppendPath("/domains/", false); + uri.AppendPath(domainName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serviceName, string appName, string domainName) { var message = _pipeline.CreateMessage(); @@ -131,6 +149,24 @@ public Response Get(string subscriptionId, string r } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string appName, string domainName, AppPlatformCustomDomainData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AppPlatform/Spring/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apps/", false); + uri.AppendPath(appName, true); + uri.AppendPath("/domains/", false); + uri.AppendPath(domainName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serviceName, string appName, string domainName, AppPlatformCustomDomainData data) { var message = _pipeline.CreateMessage(); @@ -223,6 +259,24 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string appName, string domainName) + { + 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.AppPlatform/Spring/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apps/", false); + uri.AppendPath(appName, true); + uri.AppendPath("/domains/", false); + uri.AppendPath(domainName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string serviceName, string appName, string domainName) { var message = _pipeline.CreateMessage(); @@ -307,6 +361,24 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string appName, string domainName, AppPlatformCustomDomainData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AppPlatform/Spring/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apps/", false); + uri.AppendPath(appName, true); + uri.AppendPath("/domains/", false); + uri.AppendPath(domainName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string serviceName, string appName, string domainName, AppPlatformCustomDomainData data) { var message = _pipeline.CreateMessage(); @@ -397,6 +469,23 @@ public Response Update(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string appName) + { + 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.AppPlatform/Spring/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apps/", false); + uri.AppendPath(appName, true); + uri.AppendPath("/domains", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string serviceName, string appName) { var message = _pipeline.CreateMessage(); @@ -482,6 +571,14 @@ public Response List(string subscriptionId, string res } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string appName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string appName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/RestOperations/DeploymentsRestOperations.cs b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/RestOperations/DeploymentsRestOperations.cs index b2281d94dc5b..42790e66fee7 100644 --- a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/RestOperations/DeploymentsRestOperations.cs +++ b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/RestOperations/DeploymentsRestOperations.cs @@ -38,6 +38,24 @@ public DeploymentsRestOperations(HttpPipeline pipeline, string applicationId, Ur _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string appName, string deploymentName) + { + 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.AppPlatform/Spring/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apps/", false); + uri.AppendPath(appName, true); + uri.AppendPath("/deployments/", false); + uri.AppendPath(deploymentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serviceName, string appName, string deploymentName) { var message = _pipeline.CreateMessage(); @@ -132,6 +150,24 @@ public Response Get(string subscriptionId, string res } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string appName, string deploymentName, AppPlatformDeploymentData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AppPlatform/Spring/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apps/", false); + uri.AppendPath(appName, true); + uri.AppendPath("/deployments/", false); + uri.AppendPath(deploymentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serviceName, string appName, string deploymentName, AppPlatformDeploymentData data) { var message = _pipeline.CreateMessage(); @@ -224,6 +260,24 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string appName, string deploymentName) + { + 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.AppPlatform/Spring/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apps/", false); + uri.AppendPath(appName, true); + uri.AppendPath("/deployments/", false); + uri.AppendPath(deploymentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string serviceName, string appName, string deploymentName) { var message = _pipeline.CreateMessage(); @@ -308,6 +362,24 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string appName, string deploymentName, AppPlatformDeploymentData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AppPlatform/Spring/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apps/", false); + uri.AppendPath(appName, true); + uri.AppendPath("/deployments/", false); + uri.AppendPath(deploymentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string serviceName, string appName, string deploymentName, AppPlatformDeploymentData data) { var message = _pipeline.CreateMessage(); @@ -398,6 +470,30 @@ public Response Update(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string appName, IEnumerable version) + { + 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.AppPlatform/Spring/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apps/", false); + uri.AppendPath(appName, true); + uri.AppendPath("/deployments", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (version != null && Optional.IsCollectionDefined(version)) + { + foreach (var param in version) + { + uri.AppendQuery("version", param, true); + } + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string serviceName, string appName, IEnumerable version) { var message = _pipeline.CreateMessage(); @@ -492,6 +588,28 @@ public Response List(string subscriptionId, string resou } } + internal RequestUriBuilder CreateListForClusterRequestUri(string subscriptionId, string resourceGroupName, string serviceName, IEnumerable version) + { + 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.AppPlatform/Spring/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/deployments", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (version != null && Optional.IsCollectionDefined(version)) + { + foreach (var param in version) + { + uri.AppendQuery("version", param, true); + } + } + return uri; + } + internal HttpMessage CreateListForClusterRequest(string subscriptionId, string resourceGroupName, string serviceName, IEnumerable version) { var message = _pipeline.CreateMessage(); @@ -580,6 +698,25 @@ public Response ListForCluster(string subscriptionId, st } } + internal RequestUriBuilder CreateStartRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string appName, string deploymentName) + { + 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.AppPlatform/Spring/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apps/", false); + uri.AppendPath(appName, true); + uri.AppendPath("/deployments/", false); + uri.AppendPath(deploymentName, true); + uri.AppendPath("/start", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStartRequest(string subscriptionId, string resourceGroupName, string serviceName, string appName, string deploymentName) { var message = _pipeline.CreateMessage(); @@ -663,6 +800,25 @@ public Response Start(string subscriptionId, string resourceGroupName, string se } } + internal RequestUriBuilder CreateStopRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string appName, string deploymentName) + { + 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.AppPlatform/Spring/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apps/", false); + uri.AppendPath(appName, true); + uri.AppendPath("/deployments/", false); + uri.AppendPath(deploymentName, true); + uri.AppendPath("/stop", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStopRequest(string subscriptionId, string resourceGroupName, string serviceName, string appName, string deploymentName) { var message = _pipeline.CreateMessage(); @@ -746,6 +902,25 @@ public Response Stop(string subscriptionId, string resourceGroupName, string ser } } + internal RequestUriBuilder CreateRestartRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string appName, string deploymentName) + { + 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.AppPlatform/Spring/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apps/", false); + uri.AppendPath(appName, true); + uri.AppendPath("/deployments/", false); + uri.AppendPath(deploymentName, true); + uri.AppendPath("/restart", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRestartRequest(string subscriptionId, string resourceGroupName, string serviceName, string appName, string deploymentName) { var message = _pipeline.CreateMessage(); @@ -829,6 +1004,25 @@ public Response Restart(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreateEnableRemoteDebuggingRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string appName, string deploymentName, ApplicationRemoteDebuggingContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AppPlatform/Spring/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apps/", false); + uri.AppendPath(appName, true); + uri.AppendPath("/deployments/", false); + uri.AppendPath(deploymentName, true); + uri.AppendPath("/enableRemoteDebugging", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateEnableRemoteDebuggingRequest(string subscriptionId, string resourceGroupName, string serviceName, string appName, string deploymentName, ApplicationRemoteDebuggingContent content) { var message = _pipeline.CreateMessage(); @@ -921,6 +1115,25 @@ public Response EnableRemoteDebugging(string subscriptionId, string resourceGrou } } + internal RequestUriBuilder CreateDisableRemoteDebuggingRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string appName, string deploymentName) + { + 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.AppPlatform/Spring/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apps/", false); + uri.AppendPath(appName, true); + uri.AppendPath("/deployments/", false); + uri.AppendPath(deploymentName, true); + uri.AppendPath("/disableRemoteDebugging", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDisableRemoteDebuggingRequest(string subscriptionId, string resourceGroupName, string serviceName, string appName, string deploymentName) { var message = _pipeline.CreateMessage(); @@ -1004,6 +1217,25 @@ public Response DisableRemoteDebugging(string subscriptionId, string resourceGro } } + internal RequestUriBuilder CreateGetRemoteDebuggingConfigRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string appName, string deploymentName) + { + 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.AppPlatform/Spring/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apps/", false); + uri.AppendPath(appName, true); + uri.AppendPath("/deployments/", false); + uri.AppendPath(deploymentName, true); + uri.AppendPath("/getRemoteDebuggingConfig", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRemoteDebuggingConfigRequest(string subscriptionId, string resourceGroupName, string serviceName, string appName, string deploymentName) { var message = _pipeline.CreateMessage(); @@ -1095,6 +1327,25 @@ public Response GetRemoteDebuggingConfig(strin } } + internal RequestUriBuilder CreateGetLogFileUriRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string appName, string deploymentName) + { + 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.AppPlatform/Spring/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apps/", false); + uri.AppendPath(appName, true); + uri.AppendPath("/deployments/", false); + uri.AppendPath(deploymentName, true); + uri.AppendPath("/getLogFileUrl", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetLogFileUriRequest(string subscriptionId, string resourceGroupName, string serviceName, string appName, string deploymentName) { var message = _pipeline.CreateMessage(); @@ -1190,6 +1441,25 @@ public Response GetLogFileUri(string subscriptionId } } + internal RequestUriBuilder CreateGenerateHeapDumpRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string appName, string deploymentName, ApplicationDiagnosticContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AppPlatform/Spring/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apps/", false); + uri.AppendPath(appName, true); + uri.AppendPath("/deployments/", false); + uri.AppendPath(deploymentName, true); + uri.AppendPath("/generateHeapDump", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGenerateHeapDumpRequest(string subscriptionId, string resourceGroupName, string serviceName, string appName, string deploymentName, ApplicationDiagnosticContent content) { var message = _pipeline.CreateMessage(); @@ -1281,6 +1551,25 @@ public Response GenerateHeapDump(string subscriptionId, string resourceGroupName } } + internal RequestUriBuilder CreateGenerateThreadDumpRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string appName, string deploymentName, ApplicationDiagnosticContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AppPlatform/Spring/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apps/", false); + uri.AppendPath(appName, true); + uri.AppendPath("/deployments/", false); + uri.AppendPath(deploymentName, true); + uri.AppendPath("/generateThreadDump", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGenerateThreadDumpRequest(string subscriptionId, string resourceGroupName, string serviceName, string appName, string deploymentName, ApplicationDiagnosticContent content) { var message = _pipeline.CreateMessage(); @@ -1372,6 +1661,25 @@ public Response GenerateThreadDump(string subscriptionId, string resourceGroupNa } } + internal RequestUriBuilder CreateStartJfrRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string appName, string deploymentName, ApplicationDiagnosticContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AppPlatform/Spring/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/apps/", false); + uri.AppendPath(appName, true); + uri.AppendPath("/deployments/", false); + uri.AppendPath(deploymentName, true); + uri.AppendPath("/startJFR", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStartJfrRequest(string subscriptionId, string resourceGroupName, string serviceName, string appName, string deploymentName, ApplicationDiagnosticContent content) { var message = _pipeline.CreateMessage(); @@ -1463,6 +1771,14 @@ public Response StartJfr(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string appName, IEnumerable version) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string appName, IEnumerable version) { var message = _pipeline.CreateMessage(); @@ -1545,6 +1861,14 @@ public Response ListNextPage(string nextLink, string sub } } + internal RequestUriBuilder CreateListForClusterNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, IEnumerable version) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListForClusterNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, IEnumerable version) { var message = _pipeline.CreateMessage(); diff --git a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/RestOperations/GatewayCustomDomainsRestOperations.cs b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/RestOperations/GatewayCustomDomainsRestOperations.cs index a21ef0526d1c..ce8b49ef5c36 100644 --- a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/RestOperations/GatewayCustomDomainsRestOperations.cs +++ b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/RestOperations/GatewayCustomDomainsRestOperations.cs @@ -37,6 +37,24 @@ public GatewayCustomDomainsRestOperations(HttpPipeline pipeline, string applicat _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string gatewayName, string domainName) + { + 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.AppPlatform/Spring/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/gateways/", false); + uri.AppendPath(gatewayName, true); + uri.AppendPath("/domains/", false); + uri.AppendPath(domainName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serviceName, string gatewayName, string domainName) { var message = _pipeline.CreateMessage(); @@ -131,6 +149,24 @@ public Response Get(string subscriptionId, s } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string gatewayName, string domainName, AppPlatformGatewayCustomDomainData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AppPlatform/Spring/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/gateways/", false); + uri.AppendPath(gatewayName, true); + uri.AppendPath("/domains/", false); + uri.AppendPath(domainName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serviceName, string gatewayName, string domainName, AppPlatformGatewayCustomDomainData data) { var message = _pipeline.CreateMessage(); @@ -221,6 +257,24 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string gatewayName, string domainName) + { + 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.AppPlatform/Spring/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/gateways/", false); + uri.AppendPath(gatewayName, true); + uri.AppendPath("/domains/", false); + uri.AppendPath(domainName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string serviceName, string gatewayName, string domainName) { var message = _pipeline.CreateMessage(); @@ -305,6 +359,23 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string gatewayName) + { + 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.AppPlatform/Spring/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/gateways/", false); + uri.AppendPath(gatewayName, true); + uri.AppendPath("/domains", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string serviceName, string gatewayName) { var message = _pipeline.CreateMessage(); @@ -390,6 +461,14 @@ public Response List(string subscriptionId, str } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string gatewayName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string gatewayName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/RestOperations/GatewayRouteConfigsRestOperations.cs b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/RestOperations/GatewayRouteConfigsRestOperations.cs index dbf6ee0c9f46..eb44c3f97878 100644 --- a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/RestOperations/GatewayRouteConfigsRestOperations.cs +++ b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/RestOperations/GatewayRouteConfigsRestOperations.cs @@ -37,6 +37,24 @@ public GatewayRouteConfigsRestOperations(HttpPipeline pipeline, string applicati _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string gatewayName, string routeConfigName) + { + 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.AppPlatform/Spring/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/gateways/", false); + uri.AppendPath(gatewayName, true); + uri.AppendPath("/routeConfigs/", false); + uri.AppendPath(routeConfigName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serviceName, string gatewayName, string routeConfigName) { var message = _pipeline.CreateMessage(); @@ -131,6 +149,24 @@ public Response Get(string subscriptionId, st } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string gatewayName, string routeConfigName, AppPlatformGatewayRouteConfigData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AppPlatform/Spring/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/gateways/", false); + uri.AppendPath(gatewayName, true); + uri.AppendPath("/routeConfigs/", false); + uri.AppendPath(routeConfigName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serviceName, string gatewayName, string routeConfigName, AppPlatformGatewayRouteConfigData data) { var message = _pipeline.CreateMessage(); @@ -221,6 +257,24 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string gatewayName, string routeConfigName) + { + 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.AppPlatform/Spring/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/gateways/", false); + uri.AppendPath(gatewayName, true); + uri.AppendPath("/routeConfigs/", false); + uri.AppendPath(routeConfigName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string serviceName, string gatewayName, string routeConfigName) { var message = _pipeline.CreateMessage(); @@ -305,6 +359,23 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string gatewayName) + { + 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.AppPlatform/Spring/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/gateways/", false); + uri.AppendPath(gatewayName, true); + uri.AppendPath("/routeConfigs", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string serviceName, string gatewayName) { var message = _pipeline.CreateMessage(); @@ -390,6 +461,14 @@ public Response List(string subscriptionId, stri } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string gatewayName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serviceName, string gatewayName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/RestOperations/GatewaysRestOperations.cs b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/RestOperations/GatewaysRestOperations.cs index 3b837ba509d0..cdd7a953517f 100644 --- a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/RestOperations/GatewaysRestOperations.cs +++ b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/RestOperations/GatewaysRestOperations.cs @@ -37,6 +37,22 @@ public GatewaysRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string gatewayName) + { + 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.AppPlatform/Spring/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/gateways/", false); + uri.AppendPath(gatewayName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serviceName, string gatewayName) { var message = _pipeline.CreateMessage(); @@ -125,6 +141,22 @@ public Response Get(string subscriptionId, string resour } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string gatewayName, AppPlatformGatewayData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AppPlatform/Spring/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/gateways/", false); + uri.AppendPath(gatewayName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serviceName, string gatewayName, AppPlatformGatewayData data) { var message = _pipeline.CreateMessage(); @@ -209,6 +241,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string gatewayName) + { + 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.AppPlatform/Spring/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/gateways/", false); + uri.AppendPath(gatewayName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string serviceName, string gatewayName) { var message = _pipeline.CreateMessage(); @@ -287,6 +335,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string serviceName) + { + 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.AppPlatform/Spring/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/gateways", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string serviceName) { var message = _pipeline.CreateMessage(); @@ -366,6 +429,23 @@ public Response List(string subscriptionId, string resource } } + internal RequestUriBuilder CreateValidateDomainRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string gatewayName, AppPlatformCustomDomainValidateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AppPlatform/Spring/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/gateways/", false); + uri.AppendPath(gatewayName, true); + uri.AppendPath("/validateDomain", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateValidateDomainRequest(string subscriptionId, string resourceGroupName, string serviceName, string gatewayName, AppPlatformCustomDomainValidateContent content) { var message = _pipeline.CreateMessage(); @@ -459,6 +539,14 @@ public Response ValidateDomain(string sub } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serviceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serviceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/RestOperations/MonitoringSettingsRestOperations.cs b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/RestOperations/MonitoringSettingsRestOperations.cs index e560ce25580f..b37acbb1c46f 100644 --- a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/RestOperations/MonitoringSettingsRestOperations.cs +++ b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/RestOperations/MonitoringSettingsRestOperations.cs @@ -36,6 +36,21 @@ public MonitoringSettingsRestOperations(HttpPipeline pipeline, string applicatio _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serviceName) + { + 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.AppPlatform/Spring/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/monitoringSettings/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serviceName) { var message = _pipeline.CreateMessage(); @@ -119,6 +134,21 @@ public Response Get(string subscriptionId, str } } + internal RequestUriBuilder CreateUpdatePutRequestUri(string subscriptionId, string resourceGroupName, string serviceName, AppPlatformMonitoringSettingData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AppPlatform/Spring/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/monitoringSettings/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdatePutRequest(string subscriptionId, string resourceGroupName, string serviceName, AppPlatformMonitoringSettingData data) { var message = _pipeline.CreateMessage(); @@ -198,6 +228,21 @@ public Response UpdatePut(string subscriptionId, string resourceGroupName, strin } } + internal RequestUriBuilder CreateUpdatePatchRequestUri(string subscriptionId, string resourceGroupName, string serviceName, AppPlatformMonitoringSettingData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AppPlatform/Spring/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/monitoringSettings/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdatePatchRequest(string subscriptionId, string resourceGroupName, string serviceName, AppPlatformMonitoringSettingData data) { var message = _pipeline.CreateMessage(); diff --git a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/RestOperations/RuntimeVersionsRestOperations.cs b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/RestOperations/RuntimeVersionsRestOperations.cs index ae8cf1376bd1..37547ba22a38 100644 --- a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/RestOperations/RuntimeVersionsRestOperations.cs +++ b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/RestOperations/RuntimeVersionsRestOperations.cs @@ -37,6 +37,15 @@ public RuntimeVersionsRestOperations(HttpPipeline pipeline, string applicationId _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRuntimeVersionsRequestUri() + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.AppPlatform/runtimeVersions", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRuntimeVersionsRequest() { var message = _pipeline.CreateMessage(); diff --git a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/RestOperations/ServiceRegistriesRestOperations.cs b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/RestOperations/ServiceRegistriesRestOperations.cs index e8b5a85285b3..1a0cfe5e0fa4 100644 --- a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/RestOperations/ServiceRegistriesRestOperations.cs +++ b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/RestOperations/ServiceRegistriesRestOperations.cs @@ -37,6 +37,22 @@ public ServiceRegistriesRestOperations(HttpPipeline pipeline, string application _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string serviceRegistryName) + { + 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.AppPlatform/Spring/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/serviceRegistries/", false); + uri.AppendPath(serviceRegistryName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serviceName, string serviceRegistryName) { var message = _pipeline.CreateMessage(); @@ -125,6 +141,22 @@ public Response Get(string subscriptionId, strin } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string serviceRegistryName) + { + 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.AppPlatform/Spring/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/serviceRegistries/", false); + uri.AppendPath(serviceRegistryName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serviceName, string serviceRegistryName) { var message = _pipeline.CreateMessage(); @@ -201,6 +233,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string serviceRegistryName) + { + 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.AppPlatform/Spring/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/serviceRegistries/", false); + uri.AppendPath(serviceRegistryName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string serviceName, string serviceRegistryName) { var message = _pipeline.CreateMessage(); @@ -279,6 +327,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string serviceName) + { + 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.AppPlatform/Spring/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/serviceRegistries", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string serviceName) { var message = _pipeline.CreateMessage(); @@ -358,6 +421,14 @@ public Response List(string subscriptionId, string } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serviceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serviceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/RestOperations/ServicesRestOperations.cs b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/RestOperations/ServicesRestOperations.cs index 020811713b3c..35d84ce57ee4 100644 --- a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/RestOperations/ServicesRestOperations.cs +++ b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/RestOperations/ServicesRestOperations.cs @@ -37,6 +37,20 @@ public ServicesRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serviceName) + { + 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.AppPlatform/Spring/", false); + uri.AppendPath(serviceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serviceName) { var message = _pipeline.CreateMessage(); @@ -119,6 +133,20 @@ public Response Get(string subscriptionId, string resour } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serviceName, AppPlatformServiceData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AppPlatform/Spring/", false); + uri.AppendPath(serviceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serviceName, AppPlatformServiceData data) { var message = _pipeline.CreateMessage(); @@ -199,6 +227,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string serviceName) + { + 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.AppPlatform/Spring/", false); + uri.AppendPath(serviceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string serviceName) { var message = _pipeline.CreateMessage(); @@ -271,6 +313,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string serviceName, AppPlatformServiceData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AppPlatform/Spring/", false); + uri.AppendPath(serviceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string serviceName, AppPlatformServiceData data) { var message = _pipeline.CreateMessage(); @@ -349,6 +405,21 @@ public Response Update(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListTestKeysRequestUri(string subscriptionId, string resourceGroupName, string serviceName) + { + 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.AppPlatform/Spring/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/listTestKeys", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListTestKeysRequest(string subscriptionId, string resourceGroupName, string serviceName) { var message = _pipeline.CreateMessage(); @@ -428,6 +499,21 @@ public Response ListTestKeys(string subscriptionId, } } + internal RequestUriBuilder CreateRegenerateTestKeyRequestUri(string subscriptionId, string resourceGroupName, string serviceName, RegenerateAppPlatformServiceTestKeyContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AppPlatform/Spring/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/regenerateTestKey", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRegenerateTestKeyRequest(string subscriptionId, string resourceGroupName, string serviceName, RegenerateAppPlatformServiceTestKeyContent content) { var message = _pipeline.CreateMessage(); @@ -515,6 +601,21 @@ public Response RegenerateTestKey(string subscriptio } } + internal RequestUriBuilder CreateDisableTestEndpointRequestUri(string subscriptionId, string resourceGroupName, string serviceName) + { + 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.AppPlatform/Spring/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/disableTestEndpoint", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDisableTestEndpointRequest(string subscriptionId, string resourceGroupName, string serviceName) { var message = _pipeline.CreateMessage(); @@ -584,6 +685,21 @@ public Response DisableTestEndpoint(string subscriptionId, string resourceGroupN } } + internal RequestUriBuilder CreateEnableTestEndpointRequestUri(string subscriptionId, string resourceGroupName, string serviceName) + { + 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.AppPlatform/Spring/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/enableTestEndpoint", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateEnableTestEndpointRequest(string subscriptionId, string resourceGroupName, string serviceName) { var message = _pipeline.CreateMessage(); @@ -663,6 +779,21 @@ public Response EnableTestEndpoint(string subscripti } } + internal RequestUriBuilder CreateStopRequestUri(string subscriptionId, string resourceGroupName, string serviceName) + { + 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.AppPlatform/Spring/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/stop", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStopRequest(string subscriptionId, string resourceGroupName, string serviceName) { var message = _pipeline.CreateMessage(); @@ -732,6 +863,21 @@ public Response Stop(string subscriptionId, string resourceGroupName, string ser } } + internal RequestUriBuilder CreateStartRequestUri(string subscriptionId, string resourceGroupName, string serviceName) + { + 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.AppPlatform/Spring/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/start", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStartRequest(string subscriptionId, string resourceGroupName, string serviceName) { var message = _pipeline.CreateMessage(); @@ -801,6 +947,19 @@ public Response Start(string subscriptionId, string resourceGroupName, string se } } + internal RequestUriBuilder CreateCheckNameAvailabilityRequestUri(string subscriptionId, AzureLocation location, AppPlatformNameAvailabilityContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.AppPlatform/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/checkNameAvailability", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCheckNameAvailabilityRequest(string subscriptionId, AzureLocation location, AppPlatformNameAvailabilityContent content) { var message = _pipeline.CreateMessage(); @@ -880,6 +1039,17 @@ public Response CheckNameAvailability(string } } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.AppPlatform/Spring", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -947,6 +1117,19 @@ public Response ListBySubscription(string subscriptionId, C } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName) + { + 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.AppPlatform/Spring", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -1020,6 +1203,14 @@ public Response List(string subscriptionId, string resource } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -1088,6 +1279,14 @@ public Response ListBySubscriptionNextPage(string nextLink, } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/RestOperations/SkusRestOperations.cs b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/RestOperations/SkusRestOperations.cs index adcddc9879a7..36f4e2019ba7 100644 --- a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/RestOperations/SkusRestOperations.cs +++ b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/RestOperations/SkusRestOperations.cs @@ -37,6 +37,17 @@ public SkusRestOperations(HttpPipeline pipeline, string applicationId, Uri endpo _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.AppPlatform/skus", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,14 @@ public Response List(string subscriptionId, CancellationToken c } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/RestOperations/StoragesRestOperations.cs b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/RestOperations/StoragesRestOperations.cs index f19ec274674c..1428faafe4bb 100644 --- a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/RestOperations/StoragesRestOperations.cs +++ b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/RestOperations/StoragesRestOperations.cs @@ -37,6 +37,22 @@ public StoragesRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string storageName) + { + 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.AppPlatform/Spring/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/storages/", false); + uri.AppendPath(storageName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serviceName, string storageName) { var message = _pipeline.CreateMessage(); @@ -125,6 +141,22 @@ public Response Get(string subscriptionId, string resour } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string storageName, AppPlatformStorageData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AppPlatform/Spring/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/storages/", false); + uri.AppendPath(storageName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serviceName, string storageName, AppPlatformStorageData data) { var message = _pipeline.CreateMessage(); @@ -211,6 +243,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string storageName) + { + 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.AppPlatform/Spring/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/storages/", false); + uri.AppendPath(storageName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string serviceName, string storageName) { var message = _pipeline.CreateMessage(); @@ -289,6 +337,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string serviceName) + { + 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.AppPlatform/Spring/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/storages", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string serviceName) { var message = _pipeline.CreateMessage(); @@ -368,6 +431,14 @@ public Response List(string subscriptionId, string resource } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serviceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serviceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/InventoryItemCollection.cs b/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/InventoryItemCollection.cs index a4d85ed068a0..8e8c059f095d 100644 --- a/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/InventoryItemCollection.cs +++ b/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/InventoryItemCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> CreateOrUpdateAsy try { var response = await _inventoryItemRestClient.CreateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, inventoryItemName, data, cancellationToken).ConfigureAwait(false); - var operation = new ArcScVmmArmOperation(Response.FromValue(new InventoryItemResource(Client, response), response.GetRawResponse())); + var uri = _inventoryItemRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, inventoryItemName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ArcScVmmArmOperation(Response.FromValue(new InventoryItemResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wait try { var response = _inventoryItemRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, inventoryItemName, data, cancellationToken); - var operation = new ArcScVmmArmOperation(Response.FromValue(new InventoryItemResource(Client, response), response.GetRawResponse())); + var uri = _inventoryItemRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, inventoryItemName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ArcScVmmArmOperation(Response.FromValue(new InventoryItemResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/InventoryItemResource.cs b/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/InventoryItemResource.cs index 28b2daa16e08..4831f35cdec7 100644 --- a/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/InventoryItemResource.cs +++ b/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/InventoryItemResource.cs @@ -200,7 +200,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _inventoryItemRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new ArcScVmmArmOperation(response); + var uri = _inventoryItemRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ArcScVmmArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -242,7 +244,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _inventoryItemRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new ArcScVmmArmOperation(response); + var uri = _inventoryItemRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ArcScVmmArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -288,7 +292,9 @@ public virtual async Task> UpdateAsync(WaitU try { var response = await _inventoryItemRestClient.CreateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new ArcScVmmArmOperation(Response.FromValue(new InventoryItemResource(Client, response), response.GetRawResponse())); + var uri = _inventoryItemRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ArcScVmmArmOperation(Response.FromValue(new InventoryItemResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -334,7 +340,9 @@ public virtual ArmOperation Update(WaitUntil waitUntil, I try { var response = _inventoryItemRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new ArcScVmmArmOperation(Response.FromValue(new InventoryItemResource(Client, response), response.GetRawResponse())); + var uri = _inventoryItemRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ArcScVmmArmOperation(Response.FromValue(new InventoryItemResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/LongRunningOperation/ArcScVmmArmOperation.cs b/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/LongRunningOperation/ArcScVmmArmOperation.cs index bde066f78034..f4623a43d98c 100644 --- a/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/LongRunningOperation/ArcScVmmArmOperation.cs +++ b/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/LongRunningOperation/ArcScVmmArmOperation.cs @@ -20,21 +20,24 @@ internal class ArcScVmmArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of ArcScVmmArmOperation for mocking. protected ArcScVmmArmOperation() { } - internal ArcScVmmArmOperation(Response response) + internal ArcScVmmArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal ArcScVmmArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "ArcScVmmArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal ArcScVmmArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/LongRunningOperation/ArcScVmmArmOperationOfT.cs b/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/LongRunningOperation/ArcScVmmArmOperationOfT.cs index 9ec3db82a1da..fcb4c64f21f3 100644 --- a/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/LongRunningOperation/ArcScVmmArmOperationOfT.cs +++ b/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/LongRunningOperation/ArcScVmmArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class ArcScVmmArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of ArcScVmmArmOperation for mocking. protected ArcScVmmArmOperation() { } - internal ArcScVmmArmOperation(Response response) + internal ArcScVmmArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal ArcScVmmArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "ArcScVmmArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal ArcScVmmArmOperation(IOperationSource source, ClientDiagnostics clie public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/Models/InventoryItemResource.Serialization.cs b/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/Models/InventoryItemResource.Serialization.cs new file mode 100644 index 000000000000..972e289d1e4c --- /dev/null +++ b/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/Models/InventoryItemResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ArcScVmm +{ + public partial class InventoryItemResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + InventoryItemData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + InventoryItemData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/Models/ScVmmAvailabilitySetResource.Serialization.cs b/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/Models/ScVmmAvailabilitySetResource.Serialization.cs new file mode 100644 index 000000000000..4ec8ddc26102 --- /dev/null +++ b/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/Models/ScVmmAvailabilitySetResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ArcScVmm +{ + public partial class ScVmmAvailabilitySetResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ScVmmAvailabilitySetData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ScVmmAvailabilitySetData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/Models/ScVmmCloudResource.Serialization.cs b/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/Models/ScVmmCloudResource.Serialization.cs new file mode 100644 index 000000000000..a744ce669b77 --- /dev/null +++ b/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/Models/ScVmmCloudResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ArcScVmm +{ + public partial class ScVmmCloudResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ScVmmCloudData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ScVmmCloudData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/Models/ScVmmServerResource.Serialization.cs b/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/Models/ScVmmServerResource.Serialization.cs new file mode 100644 index 000000000000..45f0d5859cdf --- /dev/null +++ b/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/Models/ScVmmServerResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ArcScVmm +{ + public partial class ScVmmServerResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ScVmmServerData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ScVmmServerData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/Models/ScVmmVirtualMachineResource.Serialization.cs b/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/Models/ScVmmVirtualMachineResource.Serialization.cs new file mode 100644 index 000000000000..e6b2bb9bd771 --- /dev/null +++ b/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/Models/ScVmmVirtualMachineResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ArcScVmm +{ + public partial class ScVmmVirtualMachineResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ScVmmVirtualMachineData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ScVmmVirtualMachineData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/Models/ScVmmVirtualMachineTemplateResource.Serialization.cs b/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/Models/ScVmmVirtualMachineTemplateResource.Serialization.cs new file mode 100644 index 000000000000..33942a70d3de --- /dev/null +++ b/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/Models/ScVmmVirtualMachineTemplateResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ArcScVmm +{ + public partial class ScVmmVirtualMachineTemplateResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ScVmmVirtualMachineTemplateData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ScVmmVirtualMachineTemplateData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/Models/ScVmmVirtualNetworkResource.Serialization.cs b/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/Models/ScVmmVirtualNetworkResource.Serialization.cs new file mode 100644 index 000000000000..387f86ebc51c --- /dev/null +++ b/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/Models/ScVmmVirtualNetworkResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ArcScVmm +{ + public partial class ScVmmVirtualNetworkResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ScVmmVirtualNetworkData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ScVmmVirtualNetworkData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/RestOperations/AvailabilitySetsRestOperations.cs b/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/RestOperations/AvailabilitySetsRestOperations.cs index 4cd3f53dea5d..d712343d8765 100644 --- a/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/RestOperations/AvailabilitySetsRestOperations.cs +++ b/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/RestOperations/AvailabilitySetsRestOperations.cs @@ -37,6 +37,20 @@ public AvailabilitySetsRestOperations(HttpPipeline pipeline, string applicationI _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string availabilitySetName) + { + 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.ScVmm/availabilitySets/", false); + uri.AppendPath(availabilitySetName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string availabilitySetName) { var message = _pipeline.CreateMessage(); @@ -119,6 +133,20 @@ public Response Get(string subscriptionId, string reso } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string availabilitySetName, ScVmmAvailabilitySetData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ScVmm/availabilitySets/", false); + uri.AppendPath(availabilitySetName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string availabilitySetName, ScVmmAvailabilitySetData data) { var message = _pipeline.CreateMessage(); @@ -197,6 +225,24 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string availabilitySetName, bool? force) + { + 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.ScVmm/availabilitySets/", false); + uri.AppendPath(availabilitySetName, true); + uri.AppendQuery("api-version", _apiVersion, true); + if (force != null) + { + uri.AppendQuery("force", force.Value, true); + } + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string availabilitySetName, bool? force) { var message = _pipeline.CreateMessage(); @@ -275,6 +321,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string availabilitySetName, ResourcePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ScVmm/availabilitySets/", false); + uri.AppendPath(availabilitySetName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string availabilitySetName, ResourcePatch patch) { var message = _pipeline.CreateMessage(); @@ -355,6 +415,19 @@ public Response Update(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.ScVmm/availabilitySets", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -428,6 +501,17 @@ public Response ListByResourceGroup(string subscripti } } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ScVmm/availabilitySets", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -495,6 +579,14 @@ public Response ListBySubscription(string subscriptio } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -567,6 +659,14 @@ public Response ListByResourceGroupNextPage(string ne } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/RestOperations/CloudsRestOperations.cs b/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/RestOperations/CloudsRestOperations.cs index 7c5aee63c0a4..ef843267e096 100644 --- a/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/RestOperations/CloudsRestOperations.cs +++ b/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/RestOperations/CloudsRestOperations.cs @@ -37,6 +37,20 @@ public CloudsRestOperations(HttpPipeline pipeline, string applicationId, Uri end _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string cloudName) + { + 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.ScVmm/clouds/", false); + uri.AppendPath(cloudName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string cloudName) { var message = _pipeline.CreateMessage(); @@ -119,6 +133,20 @@ public Response Get(string subscriptionId, string resourceGroupN } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string cloudName, ScVmmCloudData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ScVmm/clouds/", false); + uri.AppendPath(cloudName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string cloudName, ScVmmCloudData data) { var message = _pipeline.CreateMessage(); @@ -197,6 +225,24 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string cloudName, bool? force) + { + 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.ScVmm/clouds/", false); + uri.AppendPath(cloudName, true); + uri.AppendQuery("api-version", _apiVersion, true); + if (force != null) + { + uri.AppendQuery("force", force.Value, true); + } + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string cloudName, bool? force) { var message = _pipeline.CreateMessage(); @@ -275,6 +321,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string cloudName, ResourcePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ScVmm/clouds/", false); + uri.AppendPath(cloudName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string cloudName, ResourcePatch patch) { var message = _pipeline.CreateMessage(); @@ -355,6 +415,19 @@ public Response Update(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.ScVmm/clouds", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -428,6 +501,17 @@ public Response ListByResourceGroup(string subscriptionId, stri } } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ScVmm/clouds", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -495,6 +579,14 @@ public Response ListBySubscription(string subscriptionId, Cance } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -567,6 +659,14 @@ public Response ListByResourceGroupNextPage(string nextLink, st } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/RestOperations/InventoryItemsRestOperations.cs b/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/RestOperations/InventoryItemsRestOperations.cs index 3bdacc88e501..cc6734d63dd1 100644 --- a/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/RestOperations/InventoryItemsRestOperations.cs +++ b/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/RestOperations/InventoryItemsRestOperations.cs @@ -37,6 +37,22 @@ public InventoryItemsRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string vmmServerName, string inventoryItemName, InventoryItemData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ScVmm/vmmServers/", false); + uri.AppendPath(vmmServerName, true); + uri.AppendPath("/inventoryItems/", false); + uri.AppendPath(inventoryItemName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string vmmServerName, string inventoryItemName, InventoryItemData data) { var message = _pipeline.CreateMessage(); @@ -129,6 +145,22 @@ public Response Create(string subscriptionId, string resource } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string vmmServerName, string inventoryItemName) + { + 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.ScVmm/vmmServers/", false); + uri.AppendPath(vmmServerName, true); + uri.AppendPath("/inventoryItems/", false); + uri.AppendPath(inventoryItemName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string vmmServerName, string inventoryItemName) { var message = _pipeline.CreateMessage(); @@ -217,6 +249,22 @@ public Response Get(string subscriptionId, string resourceGro } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string vmmServerName, string inventoryItemName) + { + 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.ScVmm/vmmServers/", false); + uri.AppendPath(vmmServerName, true); + uri.AppendPath("/inventoryItems/", false); + uri.AppendPath(inventoryItemName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string vmmServerName, string inventoryItemName) { var message = _pipeline.CreateMessage(); @@ -293,6 +341,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string v } } + internal RequestUriBuilder CreateListByVmmServerRequestUri(string subscriptionId, string resourceGroupName, string vmmServerName) + { + 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.ScVmm/vmmServers/", false); + uri.AppendPath(vmmServerName, true); + uri.AppendPath("/inventoryItems", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByVmmServerRequest(string subscriptionId, string resourceGroupName, string vmmServerName) { var message = _pipeline.CreateMessage(); @@ -372,6 +435,14 @@ public Response ListByVmmServer(string subscriptionId, strin } } + internal RequestUriBuilder CreateListByVmmServerNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string vmmServerName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByVmmServerNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string vmmServerName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/RestOperations/VirtualMachineTemplatesRestOperations.cs b/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/RestOperations/VirtualMachineTemplatesRestOperations.cs index 177545c1418f..7509db47b1c0 100644 --- a/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/RestOperations/VirtualMachineTemplatesRestOperations.cs +++ b/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/RestOperations/VirtualMachineTemplatesRestOperations.cs @@ -37,6 +37,20 @@ public VirtualMachineTemplatesRestOperations(HttpPipeline pipeline, string appli _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string virtualMachineTemplateName) + { + 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.ScVmm/virtualMachineTemplates/", false); + uri.AppendPath(virtualMachineTemplateName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string virtualMachineTemplateName) { var message = _pipeline.CreateMessage(); @@ -119,6 +133,20 @@ public Response Get(string subscriptionId, stri } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string virtualMachineTemplateName, ScVmmVirtualMachineTemplateData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ScVmm/virtualMachineTemplates/", false); + uri.AppendPath(virtualMachineTemplateName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string virtualMachineTemplateName, ScVmmVirtualMachineTemplateData data) { var message = _pipeline.CreateMessage(); @@ -197,6 +225,24 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string virtualMachineTemplateName, bool? force) + { + 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.ScVmm/virtualMachineTemplates/", false); + uri.AppendPath(virtualMachineTemplateName, true); + uri.AppendQuery("api-version", _apiVersion, true); + if (force != null) + { + uri.AppendQuery("force", force.Value, true); + } + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string virtualMachineTemplateName, bool? force) { var message = _pipeline.CreateMessage(); @@ -275,6 +321,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string v } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string virtualMachineTemplateName, ResourcePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ScVmm/virtualMachineTemplates/", false); + uri.AppendPath(virtualMachineTemplateName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string virtualMachineTemplateName, ResourcePatch patch) { var message = _pipeline.CreateMessage(); @@ -355,6 +415,19 @@ public Response Update(string subscriptionId, string resourceGroupName, string v } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.ScVmm/virtualMachineTemplates", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -428,6 +501,17 @@ public Response ListByResourceGroup(string sub } } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ScVmm/virtualMachineTemplates", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -495,6 +579,14 @@ public Response ListBySubscription(string subs } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -567,6 +659,14 @@ public Response ListByResourceGroupNextPage(st } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/RestOperations/VirtualMachinesRestOperations.cs b/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/RestOperations/VirtualMachinesRestOperations.cs index 55758abf267f..7563c8fc8183 100644 --- a/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/RestOperations/VirtualMachinesRestOperations.cs +++ b/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/RestOperations/VirtualMachinesRestOperations.cs @@ -37,6 +37,20 @@ public VirtualMachinesRestOperations(HttpPipeline pipeline, string applicationId _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string virtualMachineName) + { + 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.ScVmm/virtualMachines/", false); + uri.AppendPath(virtualMachineName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string virtualMachineName) { var message = _pipeline.CreateMessage(); @@ -119,6 +133,20 @@ public Response Get(string subscriptionId, string resou } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string virtualMachineName, ScVmmVirtualMachineData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ScVmm/virtualMachines/", false); + uri.AppendPath(virtualMachineName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string virtualMachineName, ScVmmVirtualMachineData data) { var message = _pipeline.CreateMessage(); @@ -197,6 +225,28 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string virtualMachineName, bool? retain, bool? force) + { + 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.ScVmm/virtualMachines/", false); + uri.AppendPath(virtualMachineName, true); + uri.AppendQuery("api-version", _apiVersion, true); + if (retain != null) + { + uri.AppendQuery("retain", retain.Value, true); + } + if (force != null) + { + uri.AppendQuery("force", force.Value, true); + } + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string virtualMachineName, bool? retain, bool? force) { var message = _pipeline.CreateMessage(); @@ -281,6 +331,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string v } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string virtualMachineName, ScVmmVirtualMachinePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ScVmm/virtualMachines/", false); + uri.AppendPath(virtualMachineName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string virtualMachineName, ScVmmVirtualMachinePatch patch) { var message = _pipeline.CreateMessage(); @@ -361,6 +425,21 @@ public Response Update(string subscriptionId, string resourceGroupName, string v } } + internal RequestUriBuilder CreateStopRequestUri(string subscriptionId, string resourceGroupName, string virtualMachineName, StopVirtualMachineContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ScVmm/virtualMachines/", false); + uri.AppendPath(virtualMachineName, true); + uri.AppendPath("/stop", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStopRequest(string subscriptionId, string resourceGroupName, string virtualMachineName, StopVirtualMachineContent content) { var message = _pipeline.CreateMessage(); @@ -441,6 +520,21 @@ public Response Stop(string subscriptionId, string resourceGroupName, string vir } } + internal RequestUriBuilder CreateStartRequestUri(string subscriptionId, string resourceGroupName, string virtualMachineName) + { + 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.ScVmm/virtualMachines/", false); + uri.AppendPath(virtualMachineName, true); + uri.AppendPath("/start", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStartRequest(string subscriptionId, string resourceGroupName, string virtualMachineName) { var message = _pipeline.CreateMessage(); @@ -512,6 +606,21 @@ public Response Start(string subscriptionId, string resourceGroupName, string vi } } + internal RequestUriBuilder CreateRestartRequestUri(string subscriptionId, string resourceGroupName, string virtualMachineName) + { + 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.ScVmm/virtualMachines/", false); + uri.AppendPath(virtualMachineName, true); + uri.AppendPath("/restart", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRestartRequest(string subscriptionId, string resourceGroupName, string virtualMachineName) { var message = _pipeline.CreateMessage(); @@ -583,6 +692,21 @@ public Response Restart(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreateCreateCheckpointRequestUri(string subscriptionId, string resourceGroupName, string virtualMachineName, VirtualMachineCreateCheckpoint body) + { + 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.ScVmm/virtualMachines/", false); + uri.AppendPath(virtualMachineName, true); + uri.AppendPath("/createCheckpoint", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateCheckpointRequest(string subscriptionId, string resourceGroupName, string virtualMachineName, VirtualMachineCreateCheckpoint body) { var message = _pipeline.CreateMessage(); @@ -663,6 +787,21 @@ public Response CreateCheckpoint(string subscriptionId, string resourceGroupName } } + internal RequestUriBuilder CreateDeleteCheckpointRequestUri(string subscriptionId, string resourceGroupName, string virtualMachineName, VirtualMachineDeleteCheckpoint body) + { + 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.ScVmm/virtualMachines/", false); + uri.AppendPath(virtualMachineName, true); + uri.AppendPath("/deleteCheckpoint", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteCheckpointRequest(string subscriptionId, string resourceGroupName, string virtualMachineName, VirtualMachineDeleteCheckpoint body) { var message = _pipeline.CreateMessage(); @@ -743,6 +882,21 @@ public Response DeleteCheckpoint(string subscriptionId, string resourceGroupName } } + internal RequestUriBuilder CreateRestoreCheckpointRequestUri(string subscriptionId, string resourceGroupName, string virtualMachineName, VirtualMachineRestoreCheckpoint body) + { + 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.ScVmm/virtualMachines/", false); + uri.AppendPath(virtualMachineName, true); + uri.AppendPath("/restoreCheckpoint", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRestoreCheckpointRequest(string subscriptionId, string resourceGroupName, string virtualMachineName, VirtualMachineRestoreCheckpoint body) { var message = _pipeline.CreateMessage(); @@ -823,6 +977,19 @@ public Response RestoreCheckpoint(string subscriptionId, string resourceGroupNam } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.ScVmm/virtualMachines", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -896,6 +1063,17 @@ public Response ListByResourceGroup(string subscriptio } } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ScVmm/virtualMachines", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -963,6 +1141,14 @@ public Response ListBySubscription(string subscription } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -1035,6 +1221,14 @@ public Response ListByResourceGroupNextPage(string nex } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/RestOperations/VirtualNetworksRestOperations.cs b/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/RestOperations/VirtualNetworksRestOperations.cs index 58d44ae8eca7..36dc0d3f5468 100644 --- a/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/RestOperations/VirtualNetworksRestOperations.cs +++ b/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/RestOperations/VirtualNetworksRestOperations.cs @@ -37,6 +37,20 @@ public VirtualNetworksRestOperations(HttpPipeline pipeline, string applicationId _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string virtualNetworkName) + { + 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.ScVmm/virtualNetworks/", false); + uri.AppendPath(virtualNetworkName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string virtualNetworkName) { var message = _pipeline.CreateMessage(); @@ -119,6 +133,20 @@ public Response Get(string subscriptionId, string resou } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string virtualNetworkName, ScVmmVirtualNetworkData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ScVmm/virtualNetworks/", false); + uri.AppendPath(virtualNetworkName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string virtualNetworkName, ScVmmVirtualNetworkData data) { var message = _pipeline.CreateMessage(); @@ -197,6 +225,24 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string virtualNetworkName, bool? force) + { + 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.ScVmm/virtualNetworks/", false); + uri.AppendPath(virtualNetworkName, true); + uri.AppendQuery("api-version", _apiVersion, true); + if (force != null) + { + uri.AppendQuery("force", force.Value, true); + } + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string virtualNetworkName, bool? force) { var message = _pipeline.CreateMessage(); @@ -275,6 +321,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string v } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string virtualNetworkName, ResourcePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ScVmm/virtualNetworks/", false); + uri.AppendPath(virtualNetworkName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string virtualNetworkName, ResourcePatch patch) { var message = _pipeline.CreateMessage(); @@ -355,6 +415,19 @@ public Response Update(string subscriptionId, string resourceGroupName, string v } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.ScVmm/virtualNetworks", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -428,6 +501,17 @@ public Response ListByResourceGroup(string subscriptio } } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ScVmm/virtualNetworks", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -495,6 +579,14 @@ public Response ListBySubscription(string subscription } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -567,6 +659,14 @@ public Response ListByResourceGroupNextPage(string nex } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/RestOperations/VmmServersRestOperations.cs b/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/RestOperations/VmmServersRestOperations.cs index 22d2aa9f1780..e76ff19f3710 100644 --- a/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/RestOperations/VmmServersRestOperations.cs +++ b/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/RestOperations/VmmServersRestOperations.cs @@ -37,6 +37,20 @@ public VmmServersRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string vmmServerName) + { + 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.ScVmm/vmmServers/", false); + uri.AppendPath(vmmServerName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string vmmServerName) { var message = _pipeline.CreateMessage(); @@ -119,6 +133,20 @@ public Response Get(string subscriptionId, string resourceGroup } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string vmmServerName, ScVmmServerData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ScVmm/vmmServers/", false); + uri.AppendPath(vmmServerName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string vmmServerName, ScVmmServerData data) { var message = _pipeline.CreateMessage(); @@ -197,6 +225,24 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string vmmServerName, bool? force) + { + 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.ScVmm/vmmServers/", false); + uri.AppendPath(vmmServerName, true); + uri.AppendQuery("api-version", _apiVersion, true); + if (force != null) + { + uri.AppendQuery("force", force.Value, true); + } + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string vmmServerName, bool? force) { var message = _pipeline.CreateMessage(); @@ -275,6 +321,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string v } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string vmmServerName, ResourcePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ScVmm/vmmServers/", false); + uri.AppendPath(vmmServerName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string vmmServerName, ResourcePatch patch) { var message = _pipeline.CreateMessage(); @@ -355,6 +415,19 @@ public Response Update(string subscriptionId, string resourceGroupName, string v } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.ScVmm/vmmServers", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -428,6 +501,17 @@ public Response ListByResourceGroup(string subscriptionId, } } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ScVmm/vmmServers", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -495,6 +579,14 @@ public Response ListBySubscription(string subscriptionId, C } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -567,6 +659,14 @@ public Response ListByResourceGroupNextPage(string nextLink } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/AttestationPrivateEndpointConnectionCollection.cs b/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/AttestationPrivateEndpointConnectionCollection.cs index 959f1226c396..2006356c863d 100644 --- a/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/AttestationPrivateEndpointConnectionCollection.cs +++ b/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/AttestationPrivateEndpointConnectionCollection.cs @@ -90,7 +90,9 @@ public virtual async Task(Response.FromValue(new AttestationPrivateEndpointConnectionResource(Client, response), response.GetRawResponse())); + var uri = _attestationPrivateEndpointConnectionPrivateEndpointConnectionsRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, privateEndpointConnectionName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AttestationArmOperation(Response.FromValue(new AttestationPrivateEndpointConnectionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation Create try { var response = _attestationPrivateEndpointConnectionPrivateEndpointConnectionsRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, privateEndpointConnectionName, data, cancellationToken); - var operation = new AttestationArmOperation(Response.FromValue(new AttestationPrivateEndpointConnectionResource(Client, response), response.GetRawResponse())); + var uri = _attestationPrivateEndpointConnectionPrivateEndpointConnectionsRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, privateEndpointConnectionName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AttestationArmOperation(Response.FromValue(new AttestationPrivateEndpointConnectionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/AttestationPrivateEndpointConnectionResource.cs b/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/AttestationPrivateEndpointConnectionResource.cs index b7c0cba47008..da2af8b8d501 100644 --- a/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/AttestationPrivateEndpointConnectionResource.cs +++ b/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/AttestationPrivateEndpointConnectionResource.cs @@ -200,7 +200,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _attestationPrivateEndpointConnectionPrivateEndpointConnectionsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new AttestationArmOperation(response); + var uri = _attestationPrivateEndpointConnectionPrivateEndpointConnectionsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AttestationArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -242,7 +244,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _attestationPrivateEndpointConnectionPrivateEndpointConnectionsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new AttestationArmOperation(response); + var uri = _attestationPrivateEndpointConnectionPrivateEndpointConnectionsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AttestationArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -288,7 +292,9 @@ public virtual async Task(Response.FromValue(new AttestationPrivateEndpointConnectionResource(Client, response), response.GetRawResponse())); + var uri = _attestationPrivateEndpointConnectionPrivateEndpointConnectionsRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AttestationArmOperation(Response.FromValue(new AttestationPrivateEndpointConnectionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -334,7 +340,9 @@ public virtual ArmOperation Update try { var response = _attestationPrivateEndpointConnectionPrivateEndpointConnectionsRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new AttestationArmOperation(Response.FromValue(new AttestationPrivateEndpointConnectionResource(Client, response), response.GetRawResponse())); + var uri = _attestationPrivateEndpointConnectionPrivateEndpointConnectionsRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AttestationArmOperation(Response.FromValue(new AttestationPrivateEndpointConnectionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/AttestationProviderCollection.cs b/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/AttestationProviderCollection.cs index 0ccef35eb8bc..605a07698905 100644 --- a/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/AttestationProviderCollection.cs +++ b/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/AttestationProviderCollection.cs @@ -92,7 +92,9 @@ public virtual async Task> CreateOrUpd try { var response = await _attestationProviderRestClient.CreateAsync(Id.SubscriptionId, Id.ResourceGroupName, providerName, content, cancellationToken).ConfigureAwait(false); - var operation = new AttestationArmOperation(Response.FromValue(new AttestationProviderResource(Client, response), response.GetRawResponse())); + var uri = _attestationProviderRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, providerName, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AttestationArmOperation(Response.FromValue(new AttestationProviderResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -141,7 +143,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUnti try { var response = _attestationProviderRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, providerName, content, cancellationToken); - var operation = new AttestationArmOperation(Response.FromValue(new AttestationProviderResource(Client, response), response.GetRawResponse())); + var uri = _attestationProviderRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, providerName, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AttestationArmOperation(Response.FromValue(new AttestationProviderResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/AttestationProviderResource.cs b/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/AttestationProviderResource.cs index e68c23f9eac8..59632f0a388c 100644 --- a/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/AttestationProviderResource.cs +++ b/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/AttestationProviderResource.cs @@ -276,7 +276,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _attestationProviderRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new AttestationArmOperation(response); + var uri = _attestationProviderRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AttestationArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -318,7 +320,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _attestationProviderRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); - var operation = new AttestationArmOperation(response); + var uri = _attestationProviderRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AttestationArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/LongRunningOperation/AttestationArmOperation.cs b/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/LongRunningOperation/AttestationArmOperation.cs index a7a1455d722c..1e45f194be61 100644 --- a/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/LongRunningOperation/AttestationArmOperation.cs +++ b/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/LongRunningOperation/AttestationArmOperation.cs @@ -20,21 +20,24 @@ internal class AttestationArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of AttestationArmOperation for mocking. protected AttestationArmOperation() { } - internal AttestationArmOperation(Response response) + internal AttestationArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal AttestationArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "AttestationArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal AttestationArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeli public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/LongRunningOperation/AttestationArmOperationOfT.cs b/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/LongRunningOperation/AttestationArmOperationOfT.cs index 341605197a99..8cc004fe2d3b 100644 --- a/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/LongRunningOperation/AttestationArmOperationOfT.cs +++ b/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/LongRunningOperation/AttestationArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class AttestationArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of AttestationArmOperation for mocking. protected AttestationArmOperation() { } - internal AttestationArmOperation(Response response) + internal AttestationArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal AttestationArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "AttestationArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal AttestationArmOperation(IOperationSource source, ClientDiagnostics c public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/Models/AttestationPrivateEndpointConnectionResource.Serialization.cs b/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/Models/AttestationPrivateEndpointConnectionResource.Serialization.cs new file mode 100644 index 000000000000..2444430c1d36 --- /dev/null +++ b/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/Models/AttestationPrivateEndpointConnectionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Attestation +{ + public partial class AttestationPrivateEndpointConnectionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + AttestationPrivateEndpointConnectionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + AttestationPrivateEndpointConnectionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/Models/AttestationProviderResource.Serialization.cs b/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/Models/AttestationProviderResource.Serialization.cs new file mode 100644 index 000000000000..44520826428a --- /dev/null +++ b/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/Models/AttestationProviderResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Attestation +{ + public partial class AttestationProviderResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + AttestationProviderData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + AttestationProviderData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/RestOperations/AttestationProvidersRestOperations.cs b/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/RestOperations/AttestationProvidersRestOperations.cs index 85464a7a8bde..ee053cab0965 100644 --- a/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/RestOperations/AttestationProvidersRestOperations.cs +++ b/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/RestOperations/AttestationProvidersRestOperations.cs @@ -37,6 +37,20 @@ public AttestationProvidersRestOperations(HttpPipeline pipeline, string applicat _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string providerName) + { + 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.Attestation/attestationProviders/", false); + uri.AppendPath(providerName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string providerName) { var message = _pipeline.CreateMessage(); @@ -119,6 +133,20 @@ public Response Get(string subscriptionId, string resou } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string providerName, AttestationProviderCreateOrUpdateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Attestation/attestationProviders/", false); + uri.AppendPath(providerName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string providerName, AttestationProviderCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); @@ -207,6 +235,20 @@ public Response Create(string subscriptionId, string re } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string providerName, AttestationProviderPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Attestation/attestationProviders/", false); + uri.AppendPath(providerName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string providerName, AttestationProviderPatch patch) { var message = _pipeline.CreateMessage(); @@ -293,6 +335,20 @@ public Response Update(string subscriptionId, string re } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string providerName) + { + 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.Attestation/attestationProviders/", false); + uri.AppendPath(providerName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string providerName) { var message = _pipeline.CreateMessage(); @@ -365,6 +421,17 @@ public Response Delete(string subscriptionId, string resourceGroupName, string p } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Attestation/attestationProviders", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -432,6 +499,19 @@ public Response List(string subscriptionId, Cance } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.Attestation/attestationProviders", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -505,6 +585,17 @@ public Response ListByResourceGroup(string subscr } } + internal RequestUriBuilder CreateListDefaultRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Attestation/defaultProviders", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListDefaultRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -572,6 +663,19 @@ public Response ListDefault(string subscriptionId } } + internal RequestUriBuilder CreateGetDefaultByLocationRequestUri(string subscriptionId, AzureLocation location) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Attestation/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/defaultProvider", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetDefaultByLocationRequest(string subscriptionId, AzureLocation location) { var message = _pipeline.CreateMessage(); diff --git a/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs b/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs index 5d5e8d35411f..b598aadd98ad 100644 --- a/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs +++ b/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs @@ -37,6 +37,21 @@ public PrivateEndpointConnectionsRestOperations(HttpPipeline pipeline, string ap _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string providerName) + { + 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.Attestation/attestationProviders/", false); + uri.AppendPath(providerName, true); + uri.AppendPath("/privateEndpointConnections", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string providerName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response List(string subs } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string providerName, string privateEndpointConnectionName) + { + 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.Attestation/attestationProviders/", false); + uri.AppendPath(providerName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string providerName, string privateEndpointConnectionName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscriptio } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string providerName, string privateEndpointConnectionName, AttestationPrivateEndpointConnectionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Attestation/attestationProviders/", false); + uri.AppendPath(providerName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string providerName, string privateEndpointConnectionName, AttestationPrivateEndpointConnectionData data) { var message = _pipeline.CreateMessage(); @@ -296,6 +343,22 @@ public Response Create(string subscrip } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string providerName, string privateEndpointConnectionName) + { + 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.Attestation/attestationProviders/", false); + uri.AppendPath(providerName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string providerName, string privateEndpointConnectionName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs b/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs index c39dc12e30c6..d0fcf4a9c20e 100644 --- a/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs +++ b/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs @@ -37,6 +37,21 @@ public PrivateLinkResourcesRestOperations(HttpPipeline pipeline, string applicat _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByProviderRequestUri(string subscriptionId, string resourceGroupName, string providerName) + { + 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.Attestation/attestationProviders/", false); + uri.AppendPath(providerName, true); + uri.AppendPath("/privateLinkResources", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByProviderRequest(string subscriptionId, string resourceGroupName, string providerName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/AuthorizationRoleDefinitionCollection.cs b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/AuthorizationRoleDefinitionCollection.cs index 37426b0ad0a1..33d7af58adf5 100644 --- a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/AuthorizationRoleDefinitionCollection.cs +++ b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/AuthorizationRoleDefinitionCollection.cs @@ -79,7 +79,9 @@ public virtual async Task> Cre try { var response = await _authorizationRoleDefinitionRoleDefinitionsRestClient.CreateOrUpdateAsync(Id, roleDefinitionId, data, cancellationToken).ConfigureAwait(false); - var operation = new AuthorizationArmOperation(Response.FromValue(new AuthorizationRoleDefinitionResource(Client, response), response.GetRawResponse())); + var uri = _authorizationRoleDefinitionRoleDefinitionsRestClient.CreateCreateOrUpdateRequestUri(Id, roleDefinitionId, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AuthorizationArmOperation(Response.FromValue(new AuthorizationRoleDefinitionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -127,7 +129,9 @@ public virtual ArmOperation CreateOrUpdate( try { var response = _authorizationRoleDefinitionRoleDefinitionsRestClient.CreateOrUpdate(Id, roleDefinitionId, data, cancellationToken); - var operation = new AuthorizationArmOperation(Response.FromValue(new AuthorizationRoleDefinitionResource(Client, response), response.GetRawResponse())); + var uri = _authorizationRoleDefinitionRoleDefinitionsRestClient.CreateCreateOrUpdateRequestUri(Id, roleDefinitionId, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AuthorizationArmOperation(Response.FromValue(new AuthorizationRoleDefinitionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/AuthorizationRoleDefinitionResource.cs b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/AuthorizationRoleDefinitionResource.cs index 19a64dec0d8c..8aac24109a6c 100644 --- a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/AuthorizationRoleDefinitionResource.cs +++ b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/AuthorizationRoleDefinitionResource.cs @@ -198,7 +198,9 @@ public virtual async Task> Del try { var response = await _authorizationRoleDefinitionRoleDefinitionsRestClient.DeleteAsync(Id.Parent, new ResourceIdentifier(Id.Name), cancellationToken).ConfigureAwait(false); - var operation = new AuthorizationArmOperation(Response.FromValue(new AuthorizationRoleDefinitionResource(Client, response), response.GetRawResponse())); + var uri = _authorizationRoleDefinitionRoleDefinitionsRestClient.CreateDeleteRequestUri(Id.Parent, new ResourceIdentifier(Id.Name)); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AuthorizationArmOperation(Response.FromValue(new AuthorizationRoleDefinitionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -240,7 +242,9 @@ public virtual ArmOperation Delete(WaitUnti try { var response = _authorizationRoleDefinitionRoleDefinitionsRestClient.Delete(Id.Parent, new ResourceIdentifier(Id.Name), cancellationToken); - var operation = new AuthorizationArmOperation(Response.FromValue(new AuthorizationRoleDefinitionResource(Client, response), response.GetRawResponse())); + var uri = _authorizationRoleDefinitionRoleDefinitionsRestClient.CreateDeleteRequestUri(Id.Parent, new ResourceIdentifier(Id.Name)); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AuthorizationArmOperation(Response.FromValue(new AuthorizationRoleDefinitionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -286,7 +290,9 @@ public virtual async Task> Upd try { var response = await _authorizationRoleDefinitionRoleDefinitionsRestClient.CreateOrUpdateAsync(Id.Parent, new ResourceIdentifier(Id.Name), data, cancellationToken).ConfigureAwait(false); - var operation = new AuthorizationArmOperation(Response.FromValue(new AuthorizationRoleDefinitionResource(Client, response), response.GetRawResponse())); + var uri = _authorizationRoleDefinitionRoleDefinitionsRestClient.CreateCreateOrUpdateRequestUri(Id.Parent, new ResourceIdentifier(Id.Name), data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AuthorizationArmOperation(Response.FromValue(new AuthorizationRoleDefinitionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -332,7 +338,9 @@ public virtual ArmOperation Update(WaitUnti try { var response = _authorizationRoleDefinitionRoleDefinitionsRestClient.CreateOrUpdate(Id.Parent, new ResourceIdentifier(Id.Name), data, cancellationToken); - var operation = new AuthorizationArmOperation(Response.FromValue(new AuthorizationRoleDefinitionResource(Client, response), response.GetRawResponse())); + var uri = _authorizationRoleDefinitionRoleDefinitionsRestClient.CreateCreateOrUpdateRequestUri(Id.Parent, new ResourceIdentifier(Id.Name), data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AuthorizationArmOperation(Response.FromValue(new AuthorizationRoleDefinitionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/LongRunningOperation/AuthorizationArmOperationOfT.cs b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/LongRunningOperation/AuthorizationArmOperationOfT.cs index 21125a25b3f2..5f2a3184c201 100644 --- a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/LongRunningOperation/AuthorizationArmOperationOfT.cs +++ b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/LongRunningOperation/AuthorizationArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class AuthorizationArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of AuthorizationArmOperation for mocking. protected AuthorizationArmOperation() { } - internal AuthorizationArmOperation(Response response) + internal AuthorizationArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal AuthorizationArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "AuthorizationArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal AuthorizationArmOperation(IOperationSource source, ClientDiagnostics public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/AuthorizationProviderOperationsMetadataResource.Serialization.cs b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/AuthorizationProviderOperationsMetadataResource.Serialization.cs new file mode 100644 index 000000000000..b1f6d32e3217 --- /dev/null +++ b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/AuthorizationProviderOperationsMetadataResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Authorization +{ + public partial class AuthorizationProviderOperationsMetadataResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + AuthorizationProviderOperationsMetadataData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + AuthorizationProviderOperationsMetadataData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/AuthorizationRoleDefinitionResource.Serialization.cs b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/AuthorizationRoleDefinitionResource.Serialization.cs new file mode 100644 index 000000000000..92b5e05fdfe6 --- /dev/null +++ b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/AuthorizationRoleDefinitionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Authorization +{ + public partial class AuthorizationRoleDefinitionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + AuthorizationRoleDefinitionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + AuthorizationRoleDefinitionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/DenyAssignmentResource.Serialization.cs b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/DenyAssignmentResource.Serialization.cs new file mode 100644 index 000000000000..9573c3480664 --- /dev/null +++ b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/DenyAssignmentResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Authorization +{ + public partial class DenyAssignmentResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DenyAssignmentData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DenyAssignmentData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/RoleAssignmentResource.Serialization.cs b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/RoleAssignmentResource.Serialization.cs new file mode 100644 index 000000000000..a116f937e34c --- /dev/null +++ b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/RoleAssignmentResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Authorization +{ + public partial class RoleAssignmentResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + RoleAssignmentData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + RoleAssignmentData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/RoleAssignmentScheduleInstanceResource.Serialization.cs b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/RoleAssignmentScheduleInstanceResource.Serialization.cs new file mode 100644 index 000000000000..547a15660ae1 --- /dev/null +++ b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/RoleAssignmentScheduleInstanceResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Authorization +{ + public partial class RoleAssignmentScheduleInstanceResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + RoleAssignmentScheduleInstanceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + RoleAssignmentScheduleInstanceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/RoleAssignmentScheduleRequestResource.Serialization.cs b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/RoleAssignmentScheduleRequestResource.Serialization.cs new file mode 100644 index 000000000000..31a50bb83086 --- /dev/null +++ b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/RoleAssignmentScheduleRequestResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Authorization +{ + public partial class RoleAssignmentScheduleRequestResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + RoleAssignmentScheduleRequestData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + RoleAssignmentScheduleRequestData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/RoleAssignmentScheduleResource.Serialization.cs b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/RoleAssignmentScheduleResource.Serialization.cs new file mode 100644 index 000000000000..bac32b5c9aba --- /dev/null +++ b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/RoleAssignmentScheduleResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Authorization +{ + public partial class RoleAssignmentScheduleResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + RoleAssignmentScheduleData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + RoleAssignmentScheduleData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/RoleEligibilityScheduleInstanceResource.Serialization.cs b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/RoleEligibilityScheduleInstanceResource.Serialization.cs new file mode 100644 index 000000000000..815459f239cc --- /dev/null +++ b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/RoleEligibilityScheduleInstanceResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Authorization +{ + public partial class RoleEligibilityScheduleInstanceResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + RoleEligibilityScheduleInstanceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + RoleEligibilityScheduleInstanceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/RoleEligibilityScheduleRequestResource.Serialization.cs b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/RoleEligibilityScheduleRequestResource.Serialization.cs new file mode 100644 index 000000000000..8e930fd2d3b2 --- /dev/null +++ b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/RoleEligibilityScheduleRequestResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Authorization +{ + public partial class RoleEligibilityScheduleRequestResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + RoleEligibilityScheduleRequestData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + RoleEligibilityScheduleRequestData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/RoleEligibilityScheduleResource.Serialization.cs b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/RoleEligibilityScheduleResource.Serialization.cs new file mode 100644 index 000000000000..ced6a9ec30ac --- /dev/null +++ b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/RoleEligibilityScheduleResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Authorization +{ + public partial class RoleEligibilityScheduleResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + RoleEligibilityScheduleData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + RoleEligibilityScheduleData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/RoleManagementPolicyAssignmentResource.Serialization.cs b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/RoleManagementPolicyAssignmentResource.Serialization.cs new file mode 100644 index 000000000000..d986a2a390ce --- /dev/null +++ b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/RoleManagementPolicyAssignmentResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Authorization +{ + public partial class RoleManagementPolicyAssignmentResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + RoleManagementPolicyAssignmentData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + RoleManagementPolicyAssignmentData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/RoleManagementPolicyResource.Serialization.cs b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/RoleManagementPolicyResource.Serialization.cs new file mode 100644 index 000000000000..8a5108d210b4 --- /dev/null +++ b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/RoleManagementPolicyResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Authorization +{ + public partial class RoleManagementPolicyResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + RoleManagementPolicyData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + RoleManagementPolicyData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RestOperations/AzurePermissionsForResourceGroupRestOperations.cs b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RestOperations/AzurePermissionsForResourceGroupRestOperations.cs index 0cbaf66a7349..85a67bdacde2 100644 --- a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RestOperations/AzurePermissionsForResourceGroupRestOperations.cs +++ b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RestOperations/AzurePermissionsForResourceGroupRestOperations.cs @@ -37,6 +37,19 @@ public AzurePermissionsForResourceGroupRestOperations(HttpPipeline pipeline, str _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName) + { + 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.Authorization/permissions", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -110,6 +123,14 @@ public Response List(string subscriptionId, } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RestOperations/AzurePermissionsForResourceRestOperations.cs b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RestOperations/AzurePermissionsForResourceRestOperations.cs index 3fdd5db976de..1e9fe06fe6b6 100644 --- a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RestOperations/AzurePermissionsForResourceRestOperations.cs +++ b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RestOperations/AzurePermissionsForResourceRestOperations.cs @@ -37,6 +37,27 @@ public AzurePermissionsForResourceRestOperations(HttpPipeline pipeline, string a _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string resourceProviderNamespace, string parentResourcePath, string resourceType, string resourceName) + { + 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/", false); + uri.AppendPath(resourceProviderNamespace, false); + uri.AppendPath("/", false); + uri.AppendPath(parentResourcePath, false); + uri.AppendPath("/", false); + uri.AppendPath(resourceType, false); + uri.AppendPath("/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/providers/Microsoft.Authorization/permissions", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string resourceProviderNamespace, string parentResourcePath, string resourceType, string resourceName) { var message = _pipeline.CreateMessage(); @@ -134,6 +155,14 @@ public Response List(string subscriptionId, } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string resourceProviderNamespace, string parentResourcePath, string resourceType, string resourceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string resourceProviderNamespace, string parentResourcePath, string resourceType, string resourceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RestOperations/ClassicAdministratorsRestOperations.cs b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RestOperations/ClassicAdministratorsRestOperations.cs index 094d6e30ed44..a9e6d23353ab 100644 --- a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RestOperations/ClassicAdministratorsRestOperations.cs +++ b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RestOperations/ClassicAdministratorsRestOperations.cs @@ -37,6 +37,17 @@ public ClassicAdministratorsRestOperations(HttpPipeline pipeline, string applica _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Authorization/classicAdministrators", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,14 @@ public Response List(string subscri } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RestOperations/DenyAssignmentsRestOperations.cs b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RestOperations/DenyAssignmentsRestOperations.cs index 7472b436b218..b0f3bd20400e 100644 --- a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RestOperations/DenyAssignmentsRestOperations.cs +++ b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RestOperations/DenyAssignmentsRestOperations.cs @@ -37,6 +37,31 @@ public DenyAssignmentsRestOperations(HttpPipeline pipeline, string applicationId _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListForResourceRequestUri(string subscriptionId, string resourceGroupName, string resourceProviderNamespace, string parentResourcePath, string resourceType, string resourceName, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourcegroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/", false); + uri.AppendPath(resourceProviderNamespace, false); + uri.AppendPath("/", false); + uri.AppendPath(parentResourcePath, false); + uri.AppendPath("/", false); + uri.AppendPath(resourceType, false); + uri.AppendPath("/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/providers/Microsoft.Authorization/denyAssignments", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + return uri; + } + internal HttpMessage CreateListForResourceRequest(string subscriptionId, string resourceGroupName, string resourceProviderNamespace, string parentResourcePath, string resourceType, string resourceName, string filter) { var message = _pipeline.CreateMessage(); @@ -140,6 +165,23 @@ public Response ListForResource(string subscriptionId, } } + internal RequestUriBuilder CreateListForResourceGroupRequestUri(string subscriptionId, string resourceGroupName, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Authorization/denyAssignments", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + return uri; + } + internal HttpMessage CreateListForResourceGroupRequest(string subscriptionId, string resourceGroupName, string filter) { var message = _pipeline.CreateMessage(); @@ -219,6 +261,21 @@ public Response ListForResourceGroup(string subscripti } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Authorization/denyAssignments", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string filter) { var message = _pipeline.CreateMessage(); @@ -292,6 +349,18 @@ public Response List(string subscriptionId, string fil } } + internal RequestUriBuilder CreateGetRequestUri(string scope, string denyAssignmentId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.Authorization/denyAssignments/", false); + uri.AppendPath(denyAssignmentId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string scope, string denyAssignmentId) { var message = _pipeline.CreateMessage(); @@ -368,6 +437,21 @@ public Response Get(string scope, string denyAssignmentId, C } } + internal RequestUriBuilder CreateListForScopeRequestUri(string scope, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.Authorization/denyAssignments", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + return uri; + } + internal HttpMessage CreateListForScopeRequest(string scope, string filter) { var message = _pipeline.CreateMessage(); @@ -439,6 +523,14 @@ public Response ListForScope(string scope, string filt } } + internal RequestUriBuilder CreateListForResourceNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string resourceProviderNamespace, string parentResourcePath, string resourceType, string resourceName, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListForResourceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string resourceProviderNamespace, string parentResourcePath, string resourceType, string resourceName, string filter) { var message = _pipeline.CreateMessage(); @@ -529,6 +621,14 @@ public Response ListForResourceNextPage(string nextLin } } + internal RequestUriBuilder CreateListForResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListForResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string filter) { var message = _pipeline.CreateMessage(); @@ -603,6 +703,14 @@ public Response ListForResourceGroupNextPage(string ne } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string filter) { var message = _pipeline.CreateMessage(); @@ -673,6 +781,14 @@ public Response ListNextPage(string nextLink, string s } } + internal RequestUriBuilder CreateListForScopeNextPageRequestUri(string nextLink, string scope, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListForScopeNextPageRequest(string nextLink, string scope, string filter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RestOperations/EligibleChildResourcesRestOperations.cs b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RestOperations/EligibleChildResourcesRestOperations.cs index a7261dafd48c..212f4000025b 100644 --- a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RestOperations/EligibleChildResourcesRestOperations.cs +++ b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RestOperations/EligibleChildResourcesRestOperations.cs @@ -37,6 +37,21 @@ public EligibleChildResourcesRestOperations(HttpPipeline pipeline, string applic _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string scope, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.Authorization/eligibleChildResources", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string scope, string filter) { var message = _pipeline.CreateMessage(); @@ -108,6 +123,14 @@ public Response Get(string scope, string filte } } + internal RequestUriBuilder CreateGetNextPageRequestUri(string nextLink, string scope, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateGetNextPageRequest(string nextLink, string scope, string filter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RestOperations/GlobalAdministratorRestOperations.cs b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RestOperations/GlobalAdministratorRestOperations.cs index 672294b5a876..9245c5a1885f 100644 --- a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RestOperations/GlobalAdministratorRestOperations.cs +++ b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RestOperations/GlobalAdministratorRestOperations.cs @@ -35,6 +35,15 @@ public GlobalAdministratorRestOperations(HttpPipeline pipeline, string applicati _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateElevateAccessRequestUri() + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Authorization/elevateAccess", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateElevateAccessRequest() { var message = _pipeline.CreateMessage(); diff --git a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RestOperations/ProviderOperationsMetadataRestOperations.cs b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RestOperations/ProviderOperationsMetadataRestOperations.cs index f5b4c0fb57d9..f2996137c76a 100644 --- a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RestOperations/ProviderOperationsMetadataRestOperations.cs +++ b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RestOperations/ProviderOperationsMetadataRestOperations.cs @@ -37,6 +37,20 @@ public ProviderOperationsMetadataRestOperations(HttpPipeline pipeline, string ap _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string resourceProviderNamespace, string expand) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Authorization/providerOperations/", false); + uri.AppendPath(resourceProviderNamespace, false); + uri.AppendQuery("api-version", _apiVersion, true); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + return uri; + } + internal HttpMessage CreateGetRequest(string resourceProviderNamespace, string expand) { var message = _pipeline.CreateMessage(); @@ -111,6 +125,19 @@ public Response Get(string resource } } + internal RequestUriBuilder CreateListRequestUri(string expand) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Authorization/providerOperations", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string expand) { var message = _pipeline.CreateMessage(); @@ -172,6 +199,14 @@ public Response List(string e } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string expand) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string expand) { var message = _pipeline.CreateMessage(); diff --git a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RestOperations/RoleAssignmentScheduleInstancesRestOperations.cs b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RestOperations/RoleAssignmentScheduleInstancesRestOperations.cs index c050580ead5e..24dc00756cf3 100644 --- a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RestOperations/RoleAssignmentScheduleInstancesRestOperations.cs +++ b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RestOperations/RoleAssignmentScheduleInstancesRestOperations.cs @@ -37,6 +37,21 @@ public RoleAssignmentScheduleInstancesRestOperations(HttpPipeline pipeline, stri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListForScopeRequestUri(string scope, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.Authorization/roleAssignmentScheduleInstances", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListForScopeRequest(string scope, string filter) { var message = _pipeline.CreateMessage(); @@ -108,6 +123,18 @@ public Response ListForScope(string sc } } + internal RequestUriBuilder CreateGetRequestUri(string scope, string roleAssignmentScheduleInstanceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.Authorization/roleAssignmentScheduleInstances/", false); + uri.AppendPath(roleAssignmentScheduleInstanceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string scope, string roleAssignmentScheduleInstanceName) { var message = _pipeline.CreateMessage(); @@ -184,6 +211,14 @@ public Response Get(string scope, string rol } } + internal RequestUriBuilder CreateListForScopeNextPageRequestUri(string nextLink, string scope, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListForScopeNextPageRequest(string nextLink, string scope, string filter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RestOperations/RoleAssignmentScheduleRequestsRestOperations.cs b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RestOperations/RoleAssignmentScheduleRequestsRestOperations.cs index d5e0ec5d964c..52ec4a4c0401 100644 --- a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RestOperations/RoleAssignmentScheduleRequestsRestOperations.cs +++ b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RestOperations/RoleAssignmentScheduleRequestsRestOperations.cs @@ -37,6 +37,18 @@ public RoleAssignmentScheduleRequestsRestOperations(HttpPipeline pipeline, strin _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateRequestUri(string scope, string roleAssignmentScheduleRequestName, RoleAssignmentScheduleRequestData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.Authorization/roleAssignmentScheduleRequests/", false); + uri.AppendPath(roleAssignmentScheduleRequestName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string scope, string roleAssignmentScheduleRequestName, RoleAssignmentScheduleRequestData data) { var message = _pipeline.CreateMessage(); @@ -117,6 +129,18 @@ public Response Create(string scope, string r } } + internal RequestUriBuilder CreateGetRequestUri(string scope, string roleAssignmentScheduleRequestName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.Authorization/roleAssignmentScheduleRequests/", false); + uri.AppendPath(roleAssignmentScheduleRequestName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string scope, string roleAssignmentScheduleRequestName) { var message = _pipeline.CreateMessage(); @@ -193,6 +217,21 @@ public Response Get(string scope, string role } } + internal RequestUriBuilder CreateListForScopeRequestUri(string scope, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.Authorization/roleAssignmentScheduleRequests", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListForScopeRequest(string scope, string filter) { var message = _pipeline.CreateMessage(); @@ -264,6 +303,19 @@ public Response ListForScope(string sco } } + internal RequestUriBuilder CreateCancelRequestUri(string scope, string roleAssignmentScheduleRequestName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.Authorization/roleAssignmentScheduleRequests/", false); + uri.AppendPath(roleAssignmentScheduleRequestName, true); + uri.AppendPath("/cancel", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCancelRequest(string scope, string roleAssignmentScheduleRequestName) { var message = _pipeline.CreateMessage(); @@ -327,6 +379,19 @@ public Response Cancel(string scope, string roleAssignmentScheduleRequestName, C } } + internal RequestUriBuilder CreateValidateRequestUri(string scope, string roleAssignmentScheduleRequestName, RoleAssignmentScheduleRequestData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.Authorization/roleAssignmentScheduleRequests/", false); + uri.AppendPath(roleAssignmentScheduleRequestName, true); + uri.AppendPath("/validate", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateValidateRequest(string scope, string roleAssignmentScheduleRequestName, RoleAssignmentScheduleRequestData data) { var message = _pipeline.CreateMessage(); @@ -408,6 +473,14 @@ public Response Validate(string scope, string } } + internal RequestUriBuilder CreateListForScopeNextPageRequestUri(string nextLink, string scope, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListForScopeNextPageRequest(string nextLink, string scope, string filter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RestOperations/RoleAssignmentSchedulesRestOperations.cs b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RestOperations/RoleAssignmentSchedulesRestOperations.cs index 041ad79bc37b..7cb2e9359a9c 100644 --- a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RestOperations/RoleAssignmentSchedulesRestOperations.cs +++ b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RestOperations/RoleAssignmentSchedulesRestOperations.cs @@ -37,6 +37,18 @@ public RoleAssignmentSchedulesRestOperations(HttpPipeline pipeline, string appli _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string scope, string roleAssignmentScheduleName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.Authorization/roleAssignmentSchedules/", false); + uri.AppendPath(roleAssignmentScheduleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string scope, string roleAssignmentScheduleName) { var message = _pipeline.CreateMessage(); @@ -113,6 +125,21 @@ public Response Get(string scope, string roleAssignm } } + internal RequestUriBuilder CreateListForScopeRequestUri(string scope, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.Authorization/roleAssignmentSchedules", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListForScopeRequest(string scope, string filter) { var message = _pipeline.CreateMessage(); @@ -184,6 +211,14 @@ public Response ListForScope(string scope, str } } + internal RequestUriBuilder CreateListForScopeNextPageRequestUri(string nextLink, string scope, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListForScopeNextPageRequest(string nextLink, string scope, string filter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RestOperations/RoleAssignmentsRestOperations.cs b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RestOperations/RoleAssignmentsRestOperations.cs index 52d6bc0e0cb8..bef8e8ba1a3e 100644 --- a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RestOperations/RoleAssignmentsRestOperations.cs +++ b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RestOperations/RoleAssignmentsRestOperations.cs @@ -37,6 +37,22 @@ public RoleAssignmentsRestOperations(HttpPipeline pipeline, string applicationId _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string scope, string roleAssignmentName, string tenantId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.Authorization/roleAssignments/", false); + uri.AppendPath(roleAssignmentName, false); + uri.AppendQuery("api-version", _apiVersion, true); + if (tenantId != null) + { + uri.AppendQuery("tenantId", tenantId, true); + } + return uri; + } + internal HttpMessage CreateGetRequest(string scope, string roleAssignmentName, string tenantId) { var message = _pipeline.CreateMessage(); @@ -117,6 +133,18 @@ public Response Get(string scope, string roleAssignmentName, } } + internal RequestUriBuilder CreateCreateRequestUri(string scope, string roleAssignmentName, RoleAssignmentCreateOrUpdateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.Authorization/roleAssignments/", false); + uri.AppendPath(roleAssignmentName, false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string scope, string roleAssignmentName, RoleAssignmentCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); @@ -197,6 +225,22 @@ public Response Create(string scope, string roleAssignmentNa } } + internal RequestUriBuilder CreateDeleteRequestUri(string scope, string roleAssignmentName, string tenantId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.Authorization/roleAssignments/", false); + uri.AppendPath(roleAssignmentName, false); + uri.AppendQuery("api-version", _apiVersion, true); + if (tenantId != null) + { + uri.AppendQuery("tenantId", tenantId, true); + } + return uri; + } + internal HttpMessage CreateDeleteRequest(string scope, string roleAssignmentName, string tenantId) { var message = _pipeline.CreateMessage(); @@ -277,6 +321,29 @@ public Response Delete(string scope, string roleAssignmentNa } } + internal RequestUriBuilder CreateListForScopeRequestUri(string scope, string filter, string tenantId, string skipToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.Authorization/roleAssignments", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, false); + } + uri.AppendQuery("api-version", _apiVersion, true); + if (tenantId != null) + { + uri.AppendQuery("tenantId", tenantId, true); + } + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, false); + } + return uri; + } + internal HttpMessage CreateListForScopeRequest(string scope, string filter, string tenantId, string skipToken) { var message = _pipeline.CreateMessage(); @@ -360,6 +427,14 @@ public Response ListForScope(string scope, string filt } } + internal RequestUriBuilder CreateListForScopeNextPageRequestUri(string nextLink, string scope, string filter, string tenantId, string skipToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListForScopeNextPageRequest(string nextLink, string scope, string filter, string tenantId, string skipToken) { var message = _pipeline.CreateMessage(); diff --git a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RestOperations/RoleDefinitionsRestOperations.cs b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RestOperations/RoleDefinitionsRestOperations.cs index 753b6958f82e..b096eca758bd 100644 --- a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RestOperations/RoleDefinitionsRestOperations.cs +++ b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RestOperations/RoleDefinitionsRestOperations.cs @@ -37,6 +37,18 @@ public RoleDefinitionsRestOperations(HttpPipeline pipeline, string applicationId _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateDeleteRequestUri(string scope, ResourceIdentifier roleDefinitionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.Authorization/roleDefinitions/", false); + uri.AppendPath(roleDefinitionId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string scope, ResourceIdentifier roleDefinitionId) { var message = _pipeline.CreateMessage(); @@ -111,6 +123,18 @@ public Response Delete(string scope, ResourceId } } + internal RequestUriBuilder CreateGetRequestUri(string scope, ResourceIdentifier roleDefinitionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.Authorization/roleDefinitions/", false); + uri.AppendPath(roleDefinitionId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string scope, ResourceIdentifier roleDefinitionId) { var message = _pipeline.CreateMessage(); @@ -185,6 +209,18 @@ public Response Get(string scope, ResourceIdent } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string scope, ResourceIdentifier roleDefinitionId, AuthorizationRoleDefinitionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.Authorization/roleDefinitions/", false); + uri.AppendPath(roleDefinitionId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string scope, ResourceIdentifier roleDefinitionId, AuthorizationRoleDefinitionData data) { var message = _pipeline.CreateMessage(); @@ -263,6 +299,21 @@ public Response CreateOrUpdate(string scope, Re } } + internal RequestUriBuilder CreateListRequestUri(string scope, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.Authorization/roleDefinitions", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string scope, string filter) { var message = _pipeline.CreateMessage(); @@ -334,6 +385,14 @@ public Response List(string scope, string filter = nul } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string scope, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string scope, string filter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RestOperations/RoleEligibilityScheduleInstancesRestOperations.cs b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RestOperations/RoleEligibilityScheduleInstancesRestOperations.cs index 30470d4ab500..fbd187944117 100644 --- a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RestOperations/RoleEligibilityScheduleInstancesRestOperations.cs +++ b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RestOperations/RoleEligibilityScheduleInstancesRestOperations.cs @@ -37,6 +37,21 @@ public RoleEligibilityScheduleInstancesRestOperations(HttpPipeline pipeline, str _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListForScopeRequestUri(string scope, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.Authorization/roleEligibilityScheduleInstances", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListForScopeRequest(string scope, string filter) { var message = _pipeline.CreateMessage(); @@ -108,6 +123,18 @@ public Response ListForScope(string s } } + internal RequestUriBuilder CreateGetRequestUri(string scope, string roleEligibilityScheduleInstanceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.Authorization/roleEligibilityScheduleInstances/", false); + uri.AppendPath(roleEligibilityScheduleInstanceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string scope, string roleEligibilityScheduleInstanceName) { var message = _pipeline.CreateMessage(); @@ -184,6 +211,14 @@ public Response Get(string scope, string ro } } + internal RequestUriBuilder CreateListForScopeNextPageRequestUri(string nextLink, string scope, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListForScopeNextPageRequest(string nextLink, string scope, string filter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RestOperations/RoleEligibilityScheduleRequestsRestOperations.cs b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RestOperations/RoleEligibilityScheduleRequestsRestOperations.cs index f757601a7c76..60cfa3d041d8 100644 --- a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RestOperations/RoleEligibilityScheduleRequestsRestOperations.cs +++ b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RestOperations/RoleEligibilityScheduleRequestsRestOperations.cs @@ -37,6 +37,18 @@ public RoleEligibilityScheduleRequestsRestOperations(HttpPipeline pipeline, stri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateRequestUri(string scope, string roleEligibilityScheduleRequestName, RoleEligibilityScheduleRequestData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.Authorization/roleEligibilityScheduleRequests/", false); + uri.AppendPath(roleEligibilityScheduleRequestName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string scope, string roleEligibilityScheduleRequestName, RoleEligibilityScheduleRequestData data) { var message = _pipeline.CreateMessage(); @@ -117,6 +129,18 @@ public Response Create(string scope, string } } + internal RequestUriBuilder CreateGetRequestUri(string scope, string roleEligibilityScheduleRequestName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.Authorization/roleEligibilityScheduleRequests/", false); + uri.AppendPath(roleEligibilityScheduleRequestName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string scope, string roleEligibilityScheduleRequestName) { var message = _pipeline.CreateMessage(); @@ -193,6 +217,21 @@ public Response Get(string scope, string rol } } + internal RequestUriBuilder CreateListForScopeRequestUri(string scope, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.Authorization/roleEligibilityScheduleRequests", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListForScopeRequest(string scope, string filter) { var message = _pipeline.CreateMessage(); @@ -264,6 +303,19 @@ public Response ListForScope(string sc } } + internal RequestUriBuilder CreateCancelRequestUri(string scope, string roleEligibilityScheduleRequestName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.Authorization/roleEligibilityScheduleRequests/", false); + uri.AppendPath(roleEligibilityScheduleRequestName, true); + uri.AppendPath("/cancel", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCancelRequest(string scope, string roleEligibilityScheduleRequestName) { var message = _pipeline.CreateMessage(); @@ -327,6 +379,19 @@ public Response Cancel(string scope, string roleEligibilityScheduleRequestName, } } + internal RequestUriBuilder CreateValidateRequestUri(string scope, string roleEligibilityScheduleRequestName, RoleEligibilityScheduleRequestData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.Authorization/roleEligibilityScheduleRequests/", false); + uri.AppendPath(roleEligibilityScheduleRequestName, true); + uri.AppendPath("/validate", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateValidateRequest(string scope, string roleEligibilityScheduleRequestName, RoleEligibilityScheduleRequestData data) { var message = _pipeline.CreateMessage(); @@ -408,6 +473,14 @@ public Response Validate(string scope, strin } } + internal RequestUriBuilder CreateListForScopeNextPageRequestUri(string nextLink, string scope, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListForScopeNextPageRequest(string nextLink, string scope, string filter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RestOperations/RoleEligibilitySchedulesRestOperations.cs b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RestOperations/RoleEligibilitySchedulesRestOperations.cs index ce0d5ddbe6e6..a33f75be96a6 100644 --- a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RestOperations/RoleEligibilitySchedulesRestOperations.cs +++ b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RestOperations/RoleEligibilitySchedulesRestOperations.cs @@ -37,6 +37,18 @@ public RoleEligibilitySchedulesRestOperations(HttpPipeline pipeline, string appl _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string scope, string roleEligibilityScheduleName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.Authorization/roleEligibilitySchedules/", false); + uri.AppendPath(roleEligibilityScheduleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string scope, string roleEligibilityScheduleName) { var message = _pipeline.CreateMessage(); @@ -113,6 +125,21 @@ public Response Get(string scope, string roleEligib } } + internal RequestUriBuilder CreateListForScopeRequestUri(string scope, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.Authorization/roleEligibilitySchedules", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListForScopeRequest(string scope, string filter) { var message = _pipeline.CreateMessage(); @@ -184,6 +211,14 @@ public Response ListForScope(string scope, st } } + internal RequestUriBuilder CreateListForScopeNextPageRequestUri(string nextLink, string scope, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListForScopeNextPageRequest(string nextLink, string scope, string filter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RestOperations/RoleManagementPoliciesRestOperations.cs b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RestOperations/RoleManagementPoliciesRestOperations.cs index 84d3f75307f4..cfd990c547fc 100644 --- a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RestOperations/RoleManagementPoliciesRestOperations.cs +++ b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RestOperations/RoleManagementPoliciesRestOperations.cs @@ -37,6 +37,18 @@ public RoleManagementPoliciesRestOperations(HttpPipeline pipeline, string applic _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string scope, string roleManagementPolicyName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.Authorization/roleManagementPolicies/", false); + uri.AppendPath(roleManagementPolicyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string scope, string roleManagementPolicyName) { var message = _pipeline.CreateMessage(); @@ -113,6 +125,18 @@ public Response Get(string scope, string roleManagemen } } + internal RequestUriBuilder CreateUpdateRequestUri(string scope, string roleManagementPolicyName, RoleManagementPolicyData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.Authorization/roleManagementPolicies/", false); + uri.AppendPath(roleManagementPolicyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string scope, string roleManagementPolicyName, RoleManagementPolicyData data) { var message = _pipeline.CreateMessage(); @@ -193,6 +217,17 @@ public Response Update(string scope, string roleManage } } + internal RequestUriBuilder CreateListForScopeRequestUri(string scope) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.Authorization/roleManagementPolicies", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListForScopeRequest(string scope) { var message = _pipeline.CreateMessage(); @@ -258,6 +293,14 @@ public Response ListForScope(string scope, Cance } } + internal RequestUriBuilder CreateListForScopeNextPageRequestUri(string nextLink, string scope) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListForScopeNextPageRequest(string nextLink, string scope) { var message = _pipeline.CreateMessage(); diff --git a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RestOperations/RoleManagementPolicyAssignmentsRestOperations.cs b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RestOperations/RoleManagementPolicyAssignmentsRestOperations.cs index 93d5d598484d..946336a79774 100644 --- a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RestOperations/RoleManagementPolicyAssignmentsRestOperations.cs +++ b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RestOperations/RoleManagementPolicyAssignmentsRestOperations.cs @@ -37,6 +37,18 @@ public RoleManagementPolicyAssignmentsRestOperations(HttpPipeline pipeline, stri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string scope, string roleManagementPolicyAssignmentName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.Authorization/roleManagementPolicyAssignments/", false); + uri.AppendPath(roleManagementPolicyAssignmentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string scope, string roleManagementPolicyAssignmentName) { var message = _pipeline.CreateMessage(); @@ -113,6 +125,18 @@ public Response Get(string scope, string rol } } + internal RequestUriBuilder CreateCreateRequestUri(string scope, string roleManagementPolicyAssignmentName, RoleManagementPolicyAssignmentData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.Authorization/roleManagementPolicyAssignments/", false); + uri.AppendPath(roleManagementPolicyAssignmentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string scope, string roleManagementPolicyAssignmentName, RoleManagementPolicyAssignmentData data) { var message = _pipeline.CreateMessage(); @@ -193,6 +217,17 @@ public Response Create(string scope, string } } + internal RequestUriBuilder CreateListForScopeRequestUri(string scope) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.Authorization/roleManagementPolicyAssignments", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListForScopeRequest(string scope) { var message = _pipeline.CreateMessage(); @@ -258,6 +293,14 @@ public Response ListForScope(string sc } } + internal RequestUriBuilder CreateListForScopeNextPageRequestUri(string nextLink, string scope) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListForScopeNextPageRequest(string nextLink, string scope) { var message = _pipeline.CreateMessage(); diff --git a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RoleAssignmentCollection.cs b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RoleAssignmentCollection.cs index d2fa0768eef6..6d980fa0a716 100644 --- a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RoleAssignmentCollection.cs +++ b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RoleAssignmentCollection.cs @@ -80,7 +80,9 @@ public virtual async Task> CreateOrUpdateAs try { var response = await _roleAssignmentRestClient.CreateAsync(Id, roleAssignmentName, content, cancellationToken).ConfigureAwait(false); - var operation = new AuthorizationArmOperation(Response.FromValue(new RoleAssignmentResource(Client, response), response.GetRawResponse())); + var uri = _roleAssignmentRestClient.CreateCreateRequestUri(Id, roleAssignmentName, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AuthorizationArmOperation(Response.FromValue(new RoleAssignmentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -128,7 +130,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wai try { var response = _roleAssignmentRestClient.Create(Id, roleAssignmentName, content, cancellationToken); - var operation = new AuthorizationArmOperation(Response.FromValue(new RoleAssignmentResource(Client, response), response.GetRawResponse())); + var uri = _roleAssignmentRestClient.CreateCreateRequestUri(Id, roleAssignmentName, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AuthorizationArmOperation(Response.FromValue(new RoleAssignmentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RoleAssignmentResource.cs b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RoleAssignmentResource.cs index f64a6c3eed1c..d3ea62e3cc85 100644 --- a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RoleAssignmentResource.cs +++ b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RoleAssignmentResource.cs @@ -202,7 +202,9 @@ public virtual async Task> DeleteAsync(Wait try { var response = await _roleAssignmentRestClient.DeleteAsync(Id.Parent, Id.Name, tenantId, cancellationToken).ConfigureAwait(false); - var operation = new AuthorizationArmOperation(Response.FromValue(new RoleAssignmentResource(Client, response), response.GetRawResponse())); + var uri = _roleAssignmentRestClient.CreateDeleteRequestUri(Id.Parent, Id.Name, tenantId); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AuthorizationArmOperation(Response.FromValue(new RoleAssignmentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -245,7 +247,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, try { var response = _roleAssignmentRestClient.Delete(Id.Parent, Id.Name, tenantId, cancellationToken); - var operation = new AuthorizationArmOperation(Response.FromValue(new RoleAssignmentResource(Client, response), response.GetRawResponse())); + var uri = _roleAssignmentRestClient.CreateDeleteRequestUri(Id.Parent, Id.Name, tenantId); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AuthorizationArmOperation(Response.FromValue(new RoleAssignmentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -291,7 +295,9 @@ public virtual async Task> UpdateAsync(Wait try { var response = await _roleAssignmentRestClient.CreateAsync(Id.Parent, Id.Name, content, cancellationToken).ConfigureAwait(false); - var operation = new AuthorizationArmOperation(Response.FromValue(new RoleAssignmentResource(Client, response), response.GetRawResponse())); + var uri = _roleAssignmentRestClient.CreateCreateRequestUri(Id.Parent, Id.Name, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AuthorizationArmOperation(Response.FromValue(new RoleAssignmentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -337,7 +343,9 @@ public virtual ArmOperation Update(WaitUntil waitUntil, try { var response = _roleAssignmentRestClient.Create(Id.Parent, Id.Name, content, cancellationToken); - var operation = new AuthorizationArmOperation(Response.FromValue(new RoleAssignmentResource(Client, response), response.GetRawResponse())); + var uri = _roleAssignmentRestClient.CreateCreateRequestUri(Id.Parent, Id.Name, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AuthorizationArmOperation(Response.FromValue(new RoleAssignmentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RoleAssignmentScheduleRequestCollection.cs b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RoleAssignmentScheduleRequestCollection.cs index e85a520dc144..68514e0f23fa 100644 --- a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RoleAssignmentScheduleRequestCollection.cs +++ b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RoleAssignmentScheduleRequestCollection.cs @@ -80,7 +80,9 @@ public virtual async Task> C try { var response = await _roleAssignmentScheduleRequestRestClient.CreateAsync(Id, roleAssignmentScheduleRequestName, data, cancellationToken).ConfigureAwait(false); - var operation = new AuthorizationArmOperation(Response.FromValue(new RoleAssignmentScheduleRequestResource(Client, response), response.GetRawResponse())); + var uri = _roleAssignmentScheduleRequestRestClient.CreateCreateRequestUri(Id, roleAssignmentScheduleRequestName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AuthorizationArmOperation(Response.FromValue(new RoleAssignmentScheduleRequestResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -129,7 +131,9 @@ public virtual ArmOperation CreateOrUpdat try { var response = _roleAssignmentScheduleRequestRestClient.Create(Id, roleAssignmentScheduleRequestName, data, cancellationToken); - var operation = new AuthorizationArmOperation(Response.FromValue(new RoleAssignmentScheduleRequestResource(Client, response), response.GetRawResponse())); + var uri = _roleAssignmentScheduleRequestRestClient.CreateCreateRequestUri(Id, roleAssignmentScheduleRequestName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AuthorizationArmOperation(Response.FromValue(new RoleAssignmentScheduleRequestResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RoleAssignmentScheduleRequestResource.cs b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RoleAssignmentScheduleRequestResource.cs index 76e45de00210..57aaa97b942a 100644 --- a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RoleAssignmentScheduleRequestResource.cs +++ b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RoleAssignmentScheduleRequestResource.cs @@ -202,7 +202,9 @@ public virtual async Task> U try { var response = await _roleAssignmentScheduleRequestRestClient.CreateAsync(Id.Parent, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new AuthorizationArmOperation(Response.FromValue(new RoleAssignmentScheduleRequestResource(Client, response), response.GetRawResponse())); + var uri = _roleAssignmentScheduleRequestRestClient.CreateCreateRequestUri(Id.Parent, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AuthorizationArmOperation(Response.FromValue(new RoleAssignmentScheduleRequestResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -248,7 +250,9 @@ public virtual ArmOperation Update(WaitUn try { var response = _roleAssignmentScheduleRequestRestClient.Create(Id.Parent, Id.Name, data, cancellationToken); - var operation = new AuthorizationArmOperation(Response.FromValue(new RoleAssignmentScheduleRequestResource(Client, response), response.GetRawResponse())); + var uri = _roleAssignmentScheduleRequestRestClient.CreateCreateRequestUri(Id.Parent, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AuthorizationArmOperation(Response.FromValue(new RoleAssignmentScheduleRequestResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RoleEligibilityScheduleRequestCollection.cs b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RoleEligibilityScheduleRequestCollection.cs index 6f80dd187105..a7723b5d245a 100644 --- a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RoleEligibilityScheduleRequestCollection.cs +++ b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RoleEligibilityScheduleRequestCollection.cs @@ -80,7 +80,9 @@ public virtual async Task> try { var response = await _roleEligibilityScheduleRequestRestClient.CreateAsync(Id, roleEligibilityScheduleRequestName, data, cancellationToken).ConfigureAwait(false); - var operation = new AuthorizationArmOperation(Response.FromValue(new RoleEligibilityScheduleRequestResource(Client, response), response.GetRawResponse())); + var uri = _roleEligibilityScheduleRequestRestClient.CreateCreateRequestUri(Id, roleEligibilityScheduleRequestName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AuthorizationArmOperation(Response.FromValue(new RoleEligibilityScheduleRequestResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -129,7 +131,9 @@ public virtual ArmOperation CreateOrUpda try { var response = _roleEligibilityScheduleRequestRestClient.Create(Id, roleEligibilityScheduleRequestName, data, cancellationToken); - var operation = new AuthorizationArmOperation(Response.FromValue(new RoleEligibilityScheduleRequestResource(Client, response), response.GetRawResponse())); + var uri = _roleEligibilityScheduleRequestRestClient.CreateCreateRequestUri(Id, roleEligibilityScheduleRequestName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AuthorizationArmOperation(Response.FromValue(new RoleEligibilityScheduleRequestResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RoleEligibilityScheduleRequestResource.cs b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RoleEligibilityScheduleRequestResource.cs index 1915e8663f17..9e1b43289c43 100644 --- a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RoleEligibilityScheduleRequestResource.cs +++ b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RoleEligibilityScheduleRequestResource.cs @@ -202,7 +202,9 @@ public virtual async Task> try { var response = await _roleEligibilityScheduleRequestRestClient.CreateAsync(Id.Parent, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new AuthorizationArmOperation(Response.FromValue(new RoleEligibilityScheduleRequestResource(Client, response), response.GetRawResponse())); + var uri = _roleEligibilityScheduleRequestRestClient.CreateCreateRequestUri(Id.Parent, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AuthorizationArmOperation(Response.FromValue(new RoleEligibilityScheduleRequestResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -248,7 +250,9 @@ public virtual ArmOperation Update(WaitU try { var response = _roleEligibilityScheduleRequestRestClient.Create(Id.Parent, Id.Name, data, cancellationToken); - var operation = new AuthorizationArmOperation(Response.FromValue(new RoleEligibilityScheduleRequestResource(Client, response), response.GetRawResponse())); + var uri = _roleEligibilityScheduleRequestRestClient.CreateCreateRequestUri(Id.Parent, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AuthorizationArmOperation(Response.FromValue(new RoleEligibilityScheduleRequestResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RoleManagementPolicyAssignmentCollection.cs b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RoleManagementPolicyAssignmentCollection.cs index 7fc92d96d2ae..3fcc54f36a33 100644 --- a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RoleManagementPolicyAssignmentCollection.cs +++ b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RoleManagementPolicyAssignmentCollection.cs @@ -80,7 +80,9 @@ public virtual async Task> try { var response = await _roleManagementPolicyAssignmentRestClient.CreateAsync(Id, roleManagementPolicyAssignmentName, data, cancellationToken).ConfigureAwait(false); - var operation = new AuthorizationArmOperation(Response.FromValue(new RoleManagementPolicyAssignmentResource(Client, response), response.GetRawResponse())); + var uri = _roleManagementPolicyAssignmentRestClient.CreateCreateRequestUri(Id, roleManagementPolicyAssignmentName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AuthorizationArmOperation(Response.FromValue(new RoleManagementPolicyAssignmentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -129,7 +131,9 @@ public virtual ArmOperation CreateOrUpda try { var response = _roleManagementPolicyAssignmentRestClient.Create(Id, roleManagementPolicyAssignmentName, data, cancellationToken); - var operation = new AuthorizationArmOperation(Response.FromValue(new RoleManagementPolicyAssignmentResource(Client, response), response.GetRawResponse())); + var uri = _roleManagementPolicyAssignmentRestClient.CreateCreateRequestUri(Id, roleManagementPolicyAssignmentName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AuthorizationArmOperation(Response.FromValue(new RoleManagementPolicyAssignmentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RoleManagementPolicyAssignmentResource.cs b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RoleManagementPolicyAssignmentResource.cs index f39f9cd3681b..6449ef1079d2 100644 --- a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RoleManagementPolicyAssignmentResource.cs +++ b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RoleManagementPolicyAssignmentResource.cs @@ -202,7 +202,9 @@ public virtual async Task> try { var response = await _roleManagementPolicyAssignmentRestClient.CreateAsync(Id.Parent, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new AuthorizationArmOperation(Response.FromValue(new RoleManagementPolicyAssignmentResource(Client, response), response.GetRawResponse())); + var uri = _roleManagementPolicyAssignmentRestClient.CreateCreateRequestUri(Id.Parent, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AuthorizationArmOperation(Response.FromValue(new RoleManagementPolicyAssignmentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -248,7 +250,9 @@ public virtual ArmOperation Update(WaitU try { var response = _roleManagementPolicyAssignmentRestClient.Create(Id.Parent, Id.Name, data, cancellationToken); - var operation = new AuthorizationArmOperation(Response.FromValue(new RoleManagementPolicyAssignmentResource(Client, response), response.GetRawResponse())); + var uri = _roleManagementPolicyAssignmentRestClient.CreateCreateRequestUri(Id.Parent, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AuthorizationArmOperation(Response.FromValue(new RoleManagementPolicyAssignmentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/AutomanageConfigurationProfileCollection.cs b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/AutomanageConfigurationProfileCollection.cs index fda25f46475e..cc378d764222 100644 --- a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/AutomanageConfigurationProfileCollection.cs +++ b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/AutomanageConfigurationProfileCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> try { var response = await _automanageConfigurationProfileConfigurationProfilesRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, configurationProfileName, data, cancellationToken).ConfigureAwait(false); - var operation = new AutomanageArmOperation(Response.FromValue(new AutomanageConfigurationProfileResource(Client, response), response.GetRawResponse())); + var uri = _automanageConfigurationProfileConfigurationProfilesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, configurationProfileName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomanageArmOperation(Response.FromValue(new AutomanageConfigurationProfileResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -140,7 +142,9 @@ public virtual ArmOperation CreateOrUpda try { var response = _automanageConfigurationProfileConfigurationProfilesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, configurationProfileName, data, cancellationToken); - var operation = new AutomanageArmOperation(Response.FromValue(new AutomanageConfigurationProfileResource(Client, response), response.GetRawResponse())); + var uri = _automanageConfigurationProfileConfigurationProfilesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, configurationProfileName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomanageArmOperation(Response.FromValue(new AutomanageConfigurationProfileResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/AutomanageConfigurationProfileResource.cs b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/AutomanageConfigurationProfileResource.cs index 076b5a5054f2..b1810eddb648 100644 --- a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/AutomanageConfigurationProfileResource.cs +++ b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/AutomanageConfigurationProfileResource.cs @@ -271,7 +271,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _automanageConfigurationProfileConfigurationProfilesRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new AutomanageArmOperation(response); + var uri = _automanageConfigurationProfileConfigurationProfilesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomanageArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -313,7 +315,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _automanageConfigurationProfileConfigurationProfilesRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); - var operation = new AutomanageArmOperation(response); + var uri = _automanageConfigurationProfileConfigurationProfilesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomanageArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/AutomanageConfigurationProfileVersionCollection.cs b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/AutomanageConfigurationProfileVersionCollection.cs index d39e8be6d1f3..17924873d7d9 100644 --- a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/AutomanageConfigurationProfileVersionCollection.cs +++ b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/AutomanageConfigurationProfileVersionCollection.cs @@ -90,7 +90,9 @@ public virtual async Task(Response.FromValue(new AutomanageConfigurationProfileVersionResource(Client, response), response.GetRawResponse())); + var uri = _automanageConfigurationProfileVersionConfigurationProfilesVersionsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, versionName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomanageArmOperation(Response.FromValue(new AutomanageConfigurationProfileVersionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation Creat try { var response = _automanageConfigurationProfileVersionConfigurationProfilesVersionsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, versionName, data, cancellationToken); - var operation = new AutomanageArmOperation(Response.FromValue(new AutomanageConfigurationProfileVersionResource(Client, response), response.GetRawResponse())); + var uri = _automanageConfigurationProfileVersionConfigurationProfilesVersionsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, versionName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomanageArmOperation(Response.FromValue(new AutomanageConfigurationProfileVersionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/AutomanageConfigurationProfileVersionResource.cs b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/AutomanageConfigurationProfileVersionResource.cs index 3a74702c1b23..f14ee66ee3d6 100644 --- a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/AutomanageConfigurationProfileVersionResource.cs +++ b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/AutomanageConfigurationProfileVersionResource.cs @@ -201,7 +201,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _automanageConfigurationProfileVersionConfigurationProfilesVersionsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new AutomanageArmOperation(response); + var uri = _automanageConfigurationProfileVersionConfigurationProfilesVersionsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomanageArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -243,7 +245,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _automanageConfigurationProfileVersionConfigurationProfilesVersionsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new AutomanageArmOperation(response); + var uri = _automanageConfigurationProfileVersionConfigurationProfilesVersionsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomanageArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -289,7 +293,9 @@ public virtual async Task(Response.FromValue(new AutomanageConfigurationProfileVersionResource(Client, response), response.GetRawResponse())); + var uri = _automanageConfigurationProfileVersionConfigurationProfilesVersionsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomanageArmOperation(Response.FromValue(new AutomanageConfigurationProfileVersionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -335,7 +341,9 @@ public virtual ArmOperation Updat try { var response = _automanageConfigurationProfileVersionConfigurationProfilesVersionsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new AutomanageArmOperation(Response.FromValue(new AutomanageConfigurationProfileVersionResource(Client, response), response.GetRawResponse())); + var uri = _automanageConfigurationProfileVersionConfigurationProfilesVersionsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomanageArmOperation(Response.FromValue(new AutomanageConfigurationProfileVersionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/AutomanageHciClusterConfigurationProfileAssignmentCollection.cs b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/AutomanageHciClusterConfigurationProfileAssignmentCollection.cs index cf933ddb2928..3f3da6dd1687 100644 --- a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/AutomanageHciClusterConfigurationProfileAssignmentCollection.cs +++ b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/AutomanageHciClusterConfigurationProfileAssignmentCollection.cs @@ -95,7 +95,9 @@ public virtual async Task(Response.FromValue(new AutomanageHciClusterConfigurationProfileAssignmentResource(Client, response), response.GetRawResponse())); + var uri = _automanageHciClusterConfigurationProfileAssignmentConfigurationProfileHCIAssignmentsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, configurationProfileAssignmentName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomanageArmOperation(Response.FromValue(new AutomanageHciClusterConfigurationProfileAssignmentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -144,7 +146,9 @@ public virtual ArmOperation(Response.FromValue(new AutomanageHciClusterConfigurationProfileAssignmentResource(Client, response), response.GetRawResponse())); + var uri = _automanageHciClusterConfigurationProfileAssignmentConfigurationProfileHCIAssignmentsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, configurationProfileAssignmentName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomanageArmOperation(Response.FromValue(new AutomanageHciClusterConfigurationProfileAssignmentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/AutomanageHciClusterConfigurationProfileAssignmentResource.cs b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/AutomanageHciClusterConfigurationProfileAssignmentResource.cs index 7dc67e5e3df5..4ead41f9766f 100644 --- a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/AutomanageHciClusterConfigurationProfileAssignmentResource.cs +++ b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/AutomanageHciClusterConfigurationProfileAssignmentResource.cs @@ -269,7 +269,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _automanageHciClusterConfigurationProfileAssignmentConfigurationProfileHCIAssignmentsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new AutomanageArmOperation(response); + var uri = _automanageHciClusterConfigurationProfileAssignmentConfigurationProfileHCIAssignmentsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomanageArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -311,7 +313,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _automanageHciClusterConfigurationProfileAssignmentConfigurationProfileHCIAssignmentsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new AutomanageArmOperation(response); + var uri = _automanageHciClusterConfigurationProfileAssignmentConfigurationProfileHCIAssignmentsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomanageArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -357,7 +361,9 @@ public virtual async Task(Response.FromValue(new AutomanageHciClusterConfigurationProfileAssignmentResource(Client, response), response.GetRawResponse())); + var uri = _automanageHciClusterConfigurationProfileAssignmentConfigurationProfileHCIAssignmentsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomanageArmOperation(Response.FromValue(new AutomanageHciClusterConfigurationProfileAssignmentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -403,7 +409,9 @@ public virtual ArmOperation(Response.FromValue(new AutomanageHciClusterConfigurationProfileAssignmentResource(Client, response), response.GetRawResponse())); + var uri = _automanageHciClusterConfigurationProfileAssignmentConfigurationProfileHCIAssignmentsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomanageArmOperation(Response.FromValue(new AutomanageHciClusterConfigurationProfileAssignmentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/AutomanageHcrpConfigurationProfileAssignmentCollection.cs b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/AutomanageHcrpConfigurationProfileAssignmentCollection.cs index 195e4aab9103..d3d01ef0e7de 100644 --- a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/AutomanageHcrpConfigurationProfileAssignmentCollection.cs +++ b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/AutomanageHcrpConfigurationProfileAssignmentCollection.cs @@ -95,7 +95,9 @@ public virtual async Task(Response.FromValue(new AutomanageHcrpConfigurationProfileAssignmentResource(Client, response), response.GetRawResponse())); + var uri = _automanageHcrpConfigurationProfileAssignmentConfigurationProfileHCRPAssignmentsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, configurationProfileAssignmentName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomanageArmOperation(Response.FromValue(new AutomanageHcrpConfigurationProfileAssignmentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -144,7 +146,9 @@ public virtual ArmOperation(Response.FromValue(new AutomanageHcrpConfigurationProfileAssignmentResource(Client, response), response.GetRawResponse())); + var uri = _automanageHcrpConfigurationProfileAssignmentConfigurationProfileHCRPAssignmentsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, configurationProfileAssignmentName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomanageArmOperation(Response.FromValue(new AutomanageHcrpConfigurationProfileAssignmentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/AutomanageHcrpConfigurationProfileAssignmentResource.cs b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/AutomanageHcrpConfigurationProfileAssignmentResource.cs index f3444c86e561..19d217061f44 100644 --- a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/AutomanageHcrpConfigurationProfileAssignmentResource.cs +++ b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/AutomanageHcrpConfigurationProfileAssignmentResource.cs @@ -269,7 +269,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _automanageHcrpConfigurationProfileAssignmentConfigurationProfileHCRPAssignmentsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new AutomanageArmOperation(response); + var uri = _automanageHcrpConfigurationProfileAssignmentConfigurationProfileHCRPAssignmentsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomanageArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -311,7 +313,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _automanageHcrpConfigurationProfileAssignmentConfigurationProfileHCRPAssignmentsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new AutomanageArmOperation(response); + var uri = _automanageHcrpConfigurationProfileAssignmentConfigurationProfileHCRPAssignmentsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomanageArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -357,7 +361,9 @@ public virtual async Task(Response.FromValue(new AutomanageHcrpConfigurationProfileAssignmentResource(Client, response), response.GetRawResponse())); + var uri = _automanageHcrpConfigurationProfileAssignmentConfigurationProfileHCRPAssignmentsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomanageArmOperation(Response.FromValue(new AutomanageHcrpConfigurationProfileAssignmentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -403,7 +409,9 @@ public virtual ArmOperation(Response.FromValue(new AutomanageHcrpConfigurationProfileAssignmentResource(Client, response), response.GetRawResponse())); + var uri = _automanageHcrpConfigurationProfileAssignmentConfigurationProfileHCRPAssignmentsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomanageArmOperation(Response.FromValue(new AutomanageHcrpConfigurationProfileAssignmentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/AutomanageVmConfigurationProfileAssignmentCollection.cs b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/AutomanageVmConfigurationProfileAssignmentCollection.cs index 442f7b887401..7b6288ea510b 100644 --- a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/AutomanageVmConfigurationProfileAssignmentCollection.cs +++ b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/AutomanageVmConfigurationProfileAssignmentCollection.cs @@ -90,7 +90,9 @@ public virtual async Task(Response.FromValue(new AutomanageVmConfigurationProfileAssignmentResource(Client, response), response.GetRawResponse())); + var uri = _automanageVmConfigurationProfileAssignmentConfigurationProfileAssignmentsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, configurationProfileAssignmentName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomanageArmOperation(Response.FromValue(new AutomanageVmConfigurationProfileAssignmentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation try { var response = _automanageVmConfigurationProfileAssignmentConfigurationProfileAssignmentsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, configurationProfileAssignmentName, data, cancellationToken); - var operation = new AutomanageArmOperation(Response.FromValue(new AutomanageVmConfigurationProfileAssignmentResource(Client, response), response.GetRawResponse())); + var uri = _automanageVmConfigurationProfileAssignmentConfigurationProfileAssignmentsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, configurationProfileAssignmentName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomanageArmOperation(Response.FromValue(new AutomanageVmConfigurationProfileAssignmentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/AutomanageVmConfigurationProfileAssignmentResource.cs b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/AutomanageVmConfigurationProfileAssignmentResource.cs index a13fb39692cf..4021811edd25 100644 --- a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/AutomanageVmConfigurationProfileAssignmentResource.cs +++ b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/AutomanageVmConfigurationProfileAssignmentResource.cs @@ -269,7 +269,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _automanageVmConfigurationProfileAssignmentConfigurationProfileAssignmentsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new AutomanageArmOperation(response); + var uri = _automanageVmConfigurationProfileAssignmentConfigurationProfileAssignmentsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomanageArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -311,7 +313,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _automanageVmConfigurationProfileAssignmentConfigurationProfileAssignmentsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new AutomanageArmOperation(response); + var uri = _automanageVmConfigurationProfileAssignmentConfigurationProfileAssignmentsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomanageArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -357,7 +361,9 @@ public virtual async Task(Response.FromValue(new AutomanageVmConfigurationProfileAssignmentResource(Client, response), response.GetRawResponse())); + var uri = _automanageVmConfigurationProfileAssignmentConfigurationProfileAssignmentsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomanageArmOperation(Response.FromValue(new AutomanageVmConfigurationProfileAssignmentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -403,7 +409,9 @@ public virtual ArmOperation try { var response = _automanageVmConfigurationProfileAssignmentConfigurationProfileAssignmentsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new AutomanageArmOperation(Response.FromValue(new AutomanageVmConfigurationProfileAssignmentResource(Client, response), response.GetRawResponse())); + var uri = _automanageVmConfigurationProfileAssignmentConfigurationProfileAssignmentsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomanageArmOperation(Response.FromValue(new AutomanageVmConfigurationProfileAssignmentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/LongRunningOperation/AutomanageArmOperation.cs b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/LongRunningOperation/AutomanageArmOperation.cs index a8b34d28c965..2214539876b6 100644 --- a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/LongRunningOperation/AutomanageArmOperation.cs +++ b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/LongRunningOperation/AutomanageArmOperation.cs @@ -20,21 +20,24 @@ internal class AutomanageArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of AutomanageArmOperation for mocking. protected AutomanageArmOperation() { } - internal AutomanageArmOperation(Response response) + internal AutomanageArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal AutomanageArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "AutomanageArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal AutomanageArmOperation(ClientDiagnostics clientDiagnostics, HttpPipelin public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/LongRunningOperation/AutomanageArmOperationOfT.cs b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/LongRunningOperation/AutomanageArmOperationOfT.cs index 016db93dba4c..74985ebdac92 100644 --- a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/LongRunningOperation/AutomanageArmOperationOfT.cs +++ b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/LongRunningOperation/AutomanageArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class AutomanageArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of AutomanageArmOperation for mocking. protected AutomanageArmOperation() { } - internal AutomanageArmOperation(Response response) + internal AutomanageArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal AutomanageArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "AutomanageArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal AutomanageArmOperation(IOperationSource source, ClientDiagnostics cl public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/AutomanageBestPracticeResource.Serialization.cs b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/AutomanageBestPracticeResource.Serialization.cs new file mode 100644 index 000000000000..95f0a7be5b2e --- /dev/null +++ b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/AutomanageBestPracticeResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Automanage +{ + public partial class AutomanageBestPracticeResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + AutomanageBestPracticeData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + AutomanageBestPracticeData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/AutomanageConfigurationProfileResource.Serialization.cs b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/AutomanageConfigurationProfileResource.Serialization.cs new file mode 100644 index 000000000000..a62e89cf9234 --- /dev/null +++ b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/AutomanageConfigurationProfileResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Automanage +{ + public partial class AutomanageConfigurationProfileResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + AutomanageConfigurationProfileData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + AutomanageConfigurationProfileData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/AutomanageConfigurationProfileVersionResource.Serialization.cs b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/AutomanageConfigurationProfileVersionResource.Serialization.cs new file mode 100644 index 000000000000..fff95bc4daaf --- /dev/null +++ b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/AutomanageConfigurationProfileVersionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Automanage +{ + public partial class AutomanageConfigurationProfileVersionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + AutomanageConfigurationProfileData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + AutomanageConfigurationProfileData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/AutomanageHciClusterConfigurationProfileAssignmentReportResource.Serialization.cs b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/AutomanageHciClusterConfigurationProfileAssignmentReportResource.Serialization.cs new file mode 100644 index 000000000000..83bf0b64a9ec --- /dev/null +++ b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/AutomanageHciClusterConfigurationProfileAssignmentReportResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Automanage +{ + public partial class AutomanageHciClusterConfigurationProfileAssignmentReportResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + AutomanageConfigurationProfileAssignmentReportData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + AutomanageConfigurationProfileAssignmentReportData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/AutomanageHciClusterConfigurationProfileAssignmentResource.Serialization.cs b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/AutomanageHciClusterConfigurationProfileAssignmentResource.Serialization.cs new file mode 100644 index 000000000000..24d5b5077d38 --- /dev/null +++ b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/AutomanageHciClusterConfigurationProfileAssignmentResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Automanage +{ + public partial class AutomanageHciClusterConfigurationProfileAssignmentResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + AutomanageConfigurationProfileAssignmentData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + AutomanageConfigurationProfileAssignmentData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/AutomanageHcrpConfigurationProfileAssignmentReportResource.Serialization.cs b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/AutomanageHcrpConfigurationProfileAssignmentReportResource.Serialization.cs new file mode 100644 index 000000000000..3ab38a06d4d2 --- /dev/null +++ b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/AutomanageHcrpConfigurationProfileAssignmentReportResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Automanage +{ + public partial class AutomanageHcrpConfigurationProfileAssignmentReportResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + AutomanageConfigurationProfileAssignmentReportData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + AutomanageConfigurationProfileAssignmentReportData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/AutomanageHcrpConfigurationProfileAssignmentResource.Serialization.cs b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/AutomanageHcrpConfigurationProfileAssignmentResource.Serialization.cs new file mode 100644 index 000000000000..b405382910ab --- /dev/null +++ b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/AutomanageHcrpConfigurationProfileAssignmentResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Automanage +{ + public partial class AutomanageHcrpConfigurationProfileAssignmentResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + AutomanageConfigurationProfileAssignmentData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + AutomanageConfigurationProfileAssignmentData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/AutomanageVmConfigurationProfileAssignmentReportResource.Serialization.cs b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/AutomanageVmConfigurationProfileAssignmentReportResource.Serialization.cs new file mode 100644 index 000000000000..9aa829e97886 --- /dev/null +++ b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/AutomanageVmConfigurationProfileAssignmentReportResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Automanage +{ + public partial class AutomanageVmConfigurationProfileAssignmentReportResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + AutomanageConfigurationProfileAssignmentReportData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + AutomanageConfigurationProfileAssignmentReportData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/AutomanageVmConfigurationProfileAssignmentResource.Serialization.cs b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/AutomanageVmConfigurationProfileAssignmentResource.Serialization.cs new file mode 100644 index 000000000000..ac825a946830 --- /dev/null +++ b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/AutomanageVmConfigurationProfileAssignmentResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Automanage +{ + public partial class AutomanageVmConfigurationProfileAssignmentResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + AutomanageConfigurationProfileAssignmentData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + AutomanageConfigurationProfileAssignmentData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/RestOperations/BestPracticesRestOperations.cs b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/RestOperations/BestPracticesRestOperations.cs index ba58fa4f1276..c7be746da4fe 100644 --- a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/RestOperations/BestPracticesRestOperations.cs +++ b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/RestOperations/BestPracticesRestOperations.cs @@ -37,6 +37,16 @@ public BestPracticesRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string bestPracticeName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Automanage/bestPractices/", false); + uri.AppendPath(bestPracticeName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string bestPracticeName) { var message = _pipeline.CreateMessage(); @@ -107,6 +117,15 @@ public Response Get(string bestPracticeName, Cancell } } + internal RequestUriBuilder CreateListByTenantRequestUri() + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Automanage/bestPractices", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByTenantRequest() { var message = _pipeline.CreateMessage(); diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/RestOperations/ConfigurationProfileAssignmentsRestOperations.cs b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/RestOperations/ConfigurationProfileAssignmentsRestOperations.cs index 02a77d724125..33539653f770 100644 --- a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/RestOperations/ConfigurationProfileAssignmentsRestOperations.cs +++ b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/RestOperations/ConfigurationProfileAssignmentsRestOperations.cs @@ -37,6 +37,22 @@ public ConfigurationProfileAssignmentsRestOperations(HttpPipeline pipeline, stri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string vmName, string configurationProfileAssignmentName, AutomanageConfigurationProfileAssignmentData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Compute/virtualMachines/", false); + uri.AppendPath(vmName, true); + uri.AppendPath("/providers/Microsoft.Automanage/configurationProfileAssignments/", false); + uri.AppendPath(configurationProfileAssignmentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string vmName, string configurationProfileAssignmentName, AutomanageConfigurationProfileAssignmentData data) { var message = _pipeline.CreateMessage(); @@ -131,6 +147,22 @@ public Response CreateOrUpdate(str } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string vmName, string configurationProfileAssignmentName) + { + 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.Compute/virtualMachines/", false); + uri.AppendPath(vmName, true); + uri.AppendPath("/providers/Microsoft.Automanage/configurationProfileAssignments/", false); + uri.AppendPath(configurationProfileAssignmentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string vmName, string configurationProfileAssignmentName) { var message = _pipeline.CreateMessage(); @@ -219,6 +251,22 @@ public Response Get(string subscri } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string vmName, string configurationProfileAssignmentName) + { + 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.Compute/virtualMachines/", false); + uri.AppendPath(vmName, true); + uri.AppendPath("/providers/Microsoft.Automanage/configurationProfileAssignments/", false); + uri.AppendPath(configurationProfileAssignmentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string vmName, string configurationProfileAssignmentName) { var message = _pipeline.CreateMessage(); @@ -295,6 +343,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string v } } + internal RequestUriBuilder CreateListByVirtualMachinesRequestUri(string subscriptionId, string resourceGroupName, string vmName) + { + 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.Compute/virtualMachines/", false); + uri.AppendPath(vmName, true); + uri.AppendPath("/providers/Microsoft.Automanage/configurationProfileAssignments", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByVirtualMachinesRequest(string subscriptionId, string resourceGroupName, string vmName) { var message = _pipeline.CreateMessage(); @@ -374,6 +437,21 @@ public Response ListByVirtualMachines(string } } + internal RequestUriBuilder CreateListByMachineNameRequestUri(string subscriptionId, string resourceGroupName, string machineName) + { + 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.HybridCompute/machines/", false); + uri.AppendPath(machineName, true); + uri.AppendPath("/providers/Microsoft.Automanage/configurationProfileAssignments", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByMachineNameRequest(string subscriptionId, string resourceGroupName, string machineName) { var message = _pipeline.CreateMessage(); @@ -453,6 +531,21 @@ public Response ListByMachineName(string sub } } + internal RequestUriBuilder CreateListByClusterNameRequestUri(string subscriptionId, string resourceGroupName, string clusterName) + { + 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.AzureStackHci/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/providers/Microsoft.Automanage/configurationProfileAssignments", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByClusterNameRequest(string subscriptionId, string resourceGroupName, string clusterName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/RestOperations/ConfigurationProfileHCIAssignmentsRestOperations.cs b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/RestOperations/ConfigurationProfileHCIAssignmentsRestOperations.cs index 289849286557..24b81a47e7f2 100644 --- a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/RestOperations/ConfigurationProfileHCIAssignmentsRestOperations.cs +++ b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/RestOperations/ConfigurationProfileHCIAssignmentsRestOperations.cs @@ -36,6 +36,22 @@ public ConfigurationProfileHCIAssignmentsRestOperations(HttpPipeline pipeline, s _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string configurationProfileAssignmentName, AutomanageConfigurationProfileAssignmentData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AzureStackHci/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/providers/Microsoft.Automanage/configurationProfileAssignments/", false); + uri.AppendPath(configurationProfileAssignmentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string clusterName, string configurationProfileAssignmentName, AutomanageConfigurationProfileAssignmentData data) { var message = _pipeline.CreateMessage(); @@ -130,6 +146,22 @@ public Response CreateOrUpdate(str } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string configurationProfileAssignmentName) + { + 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.AzureStackHci/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/providers/Microsoft.Automanage/configurationProfileAssignments/", false); + uri.AppendPath(configurationProfileAssignmentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string clusterName, string configurationProfileAssignmentName) { var message = _pipeline.CreateMessage(); @@ -218,6 +250,22 @@ public Response Get(string subscri } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string configurationProfileAssignmentName) + { + 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.AzureStackHci/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/providers/Microsoft.Automanage/configurationProfileAssignments/", false); + uri.AppendPath(configurationProfileAssignmentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string clusterName, string configurationProfileAssignmentName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/RestOperations/ConfigurationProfileHcrpAssignmentsRestOperations.cs b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/RestOperations/ConfigurationProfileHcrpAssignmentsRestOperations.cs index 1dfc91f57978..48f3d205846d 100644 --- a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/RestOperations/ConfigurationProfileHcrpAssignmentsRestOperations.cs +++ b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/RestOperations/ConfigurationProfileHcrpAssignmentsRestOperations.cs @@ -36,6 +36,22 @@ public ConfigurationProfileHcrpAssignmentsRestOperations(HttpPipeline pipeline, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string machineName, string configurationProfileAssignmentName, AutomanageConfigurationProfileAssignmentData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.HybridCompute/machines/", false); + uri.AppendPath(machineName, true); + uri.AppendPath("/providers/Microsoft.Automanage/configurationProfileAssignments/", false); + uri.AppendPath(configurationProfileAssignmentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string machineName, string configurationProfileAssignmentName, AutomanageConfigurationProfileAssignmentData data) { var message = _pipeline.CreateMessage(); @@ -130,6 +146,22 @@ public Response CreateOrUpdate(str } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string machineName, string configurationProfileAssignmentName) + { + 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.HybridCompute/machines/", false); + uri.AppendPath(machineName, true); + uri.AppendPath("/providers/Microsoft.Automanage/configurationProfileAssignments/", false); + uri.AppendPath(configurationProfileAssignmentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string machineName, string configurationProfileAssignmentName) { var message = _pipeline.CreateMessage(); @@ -218,6 +250,22 @@ public Response Get(string subscri } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string machineName, string configurationProfileAssignmentName) + { + 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.HybridCompute/machines/", false); + uri.AppendPath(machineName, true); + uri.AppendPath("/providers/Microsoft.Automanage/configurationProfileAssignments/", false); + uri.AppendPath(configurationProfileAssignmentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string machineName, string configurationProfileAssignmentName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/RestOperations/ConfigurationProfilesRestOperations.cs b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/RestOperations/ConfigurationProfilesRestOperations.cs index d710393a5880..b54d8dfe6290 100644 --- a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/RestOperations/ConfigurationProfilesRestOperations.cs +++ b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/RestOperations/ConfigurationProfilesRestOperations.cs @@ -37,6 +37,20 @@ public ConfigurationProfilesRestOperations(HttpPipeline pipeline, string applica _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string configurationProfileName, AutomanageConfigurationProfileData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Automanage/configurationProfiles/", false); + uri.AppendPath(configurationProfileName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string configurationProfileName, AutomanageConfigurationProfileData data) { var message = _pipeline.CreateMessage(); @@ -125,6 +139,20 @@ public Response CreateOrUpdate(string subscr } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string configurationProfileName) + { + 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.Automanage/configurationProfiles/", false); + uri.AppendPath(configurationProfileName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string configurationProfileName) { var message = _pipeline.CreateMessage(); @@ -207,6 +235,20 @@ public Response Get(string subscriptionId, s } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string configurationProfileName) + { + 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.Automanage/configurationProfiles/", false); + uri.AppendPath(configurationProfileName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string configurationProfileName) { var message = _pipeline.CreateMessage(); @@ -277,6 +319,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string configurationProfileName, AutomanageConfigurationProfilePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Automanage/configurationProfiles/", false); + uri.AppendPath(configurationProfileName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string configurationProfileName, AutomanageConfigurationProfilePatch patch) { var message = _pipeline.CreateMessage(); @@ -363,6 +419,19 @@ public Response Update(string subscriptionId } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.Automanage/configurationProfiles", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -436,6 +505,17 @@ public Response ListByResourceGroup(string subscriptio } } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Automanage/configurationProfiles", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/RestOperations/ConfigurationProfilesVersionsRestOperations.cs b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/RestOperations/ConfigurationProfilesVersionsRestOperations.cs index 7de5fa37b66d..92320b5e1989 100644 --- a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/RestOperations/ConfigurationProfilesVersionsRestOperations.cs +++ b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/RestOperations/ConfigurationProfilesVersionsRestOperations.cs @@ -37,6 +37,22 @@ public ConfigurationProfilesVersionsRestOperations(HttpPipeline pipeline, string _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string configurationProfileName, string versionName, AutomanageConfigurationProfileData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Automanage/configurationProfiles/", false); + uri.AppendPath(configurationProfileName, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(versionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string configurationProfileName, string versionName, AutomanageConfigurationProfileData data) { var message = _pipeline.CreateMessage(); @@ -131,6 +147,22 @@ public Response CreateOrUpdate(string subscr } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string configurationProfileName, string versionName) + { + 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.Automanage/configurationProfiles/", false); + uri.AppendPath(configurationProfileName, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(versionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string configurationProfileName, string versionName) { var message = _pipeline.CreateMessage(); @@ -219,6 +251,22 @@ public Response Get(string subscriptionId, s } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string configurationProfileName, string versionName) + { + 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.Automanage/configurationProfiles/", false); + uri.AppendPath(configurationProfileName, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(versionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string configurationProfileName, string versionName) { var message = _pipeline.CreateMessage(); @@ -295,6 +343,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateListChildResourcesRequestUri(string subscriptionId, string resourceGroupName, string configurationProfileName) + { + 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.Automanage/configurationProfiles/", false); + uri.AppendPath(configurationProfileName, true); + uri.AppendPath("/versions", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListChildResourcesRequest(string subscriptionId, string resourceGroupName, string configurationProfileName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/RestOperations/HCIReportsRestOperations.cs b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/RestOperations/HCIReportsRestOperations.cs index bd99fcd4f142..d897bd6046a1 100644 --- a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/RestOperations/HCIReportsRestOperations.cs +++ b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/RestOperations/HCIReportsRestOperations.cs @@ -37,6 +37,24 @@ public HCIReportsRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string configurationProfileAssignmentName, string reportName) + { + 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.AzureStackHci/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/providers/Microsoft.Automanage/configurationProfileAssignments/", false); + uri.AppendPath(configurationProfileAssignmentName, true); + uri.AppendPath("/reports/", false); + uri.AppendPath(reportName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string clusterName, string configurationProfileAssignmentName, string reportName) { var message = _pipeline.CreateMessage(); @@ -131,6 +149,23 @@ public Response Get(string s } } + internal RequestUriBuilder CreateListByConfigurationProfileAssignmentsRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string configurationProfileAssignmentName) + { + 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.AzureStackHci/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/providers/Microsoft.Automanage/configurationProfileAssignments/", false); + uri.AppendPath(configurationProfileAssignmentName, true); + uri.AppendPath("/reports", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByConfigurationProfileAssignmentsRequest(string subscriptionId, string resourceGroupName, string clusterName, string configurationProfileAssignmentName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/RestOperations/HcrpReportsRestOperations.cs b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/RestOperations/HcrpReportsRestOperations.cs index c2bd2843e11f..578d0b0df9ef 100644 --- a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/RestOperations/HcrpReportsRestOperations.cs +++ b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/RestOperations/HcrpReportsRestOperations.cs @@ -37,6 +37,24 @@ public HcrpReportsRestOperations(HttpPipeline pipeline, string applicationId, Ur _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string machineName, string configurationProfileAssignmentName, string reportName) + { + 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.HybridCompute/machines/", false); + uri.AppendPath(machineName, true); + uri.AppendPath("/providers/Microsoft.Automanage/configurationProfileAssignments/", false); + uri.AppendPath(configurationProfileAssignmentName, true); + uri.AppendPath("/reports/", false); + uri.AppendPath(reportName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string machineName, string configurationProfileAssignmentName, string reportName) { var message = _pipeline.CreateMessage(); @@ -131,6 +149,23 @@ public Response Get(string s } } + internal RequestUriBuilder CreateListByConfigurationProfileAssignmentsRequestUri(string subscriptionId, string resourceGroupName, string machineName, string configurationProfileAssignmentName) + { + 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.HybridCompute/machines/", false); + uri.AppendPath(machineName, true); + uri.AppendPath("/providers/Microsoft.Automanage/configurationProfileAssignments/", false); + uri.AppendPath(configurationProfileAssignmentName, true); + uri.AppendPath("/reports", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByConfigurationProfileAssignmentsRequest(string subscriptionId, string resourceGroupName, string machineName, string configurationProfileAssignmentName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/RestOperations/ReportsRestOperations.cs b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/RestOperations/ReportsRestOperations.cs index 183136e9c682..b6e443aa47ff 100644 --- a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/RestOperations/ReportsRestOperations.cs +++ b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/RestOperations/ReportsRestOperations.cs @@ -37,6 +37,24 @@ public ReportsRestOperations(HttpPipeline pipeline, string applicationId, Uri en _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string vmName, string configurationProfileAssignmentName, string reportName) + { + 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.Compute/virtualMachines/", false); + uri.AppendPath(vmName, true); + uri.AppendPath("/providers/Microsoft.Automanage/configurationProfileAssignments/", false); + uri.AppendPath(configurationProfileAssignmentName, true); + uri.AppendPath("/reports/", false); + uri.AppendPath(reportName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string vmName, string configurationProfileAssignmentName, string reportName) { var message = _pipeline.CreateMessage(); @@ -131,6 +149,23 @@ public Response Get(string s } } + internal RequestUriBuilder CreateListByConfigurationProfileAssignmentsRequestUri(string subscriptionId, string resourceGroupName, string vmName, string configurationProfileAssignmentName) + { + 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.Compute/virtualMachines/", false); + uri.AppendPath(vmName, true); + uri.AppendPath("/providers/Microsoft.Automanage/configurationProfileAssignments/", false); + uri.AppendPath(configurationProfileAssignmentName, true); + uri.AppendPath("/reports", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByConfigurationProfileAssignmentsRequest(string subscriptionId, string resourceGroupName, string vmName, string configurationProfileAssignmentName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/RestOperations/ServicePrincipalsRestOperations.cs b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/RestOperations/ServicePrincipalsRestOperations.cs index f1bf4635fe8c..d894176c9d81 100644 --- a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/RestOperations/ServicePrincipalsRestOperations.cs +++ b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/RestOperations/ServicePrincipalsRestOperations.cs @@ -37,6 +37,17 @@ public ServicePrincipalsRestOperations(HttpPipeline pipeline, string application _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Automanage/servicePrincipals", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,17 @@ public Response ListBySubscription(string subscripti } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Automanage/servicePrincipals/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationAccountCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationAccountCollection.cs index e4421fd966d5..79d165bc4fb1 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationAccountCollection.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationAccountCollection.cs @@ -92,7 +92,9 @@ public virtual async Task> CreateOrUpdat try { var response = await _automationAccountRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, automationAccountName, content, cancellationToken).ConfigureAwait(false); - var operation = new AutomationArmOperation(Response.FromValue(new AutomationAccountResource(Client, response), response.GetRawResponse())); + var uri = _automationAccountRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, automationAccountName, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomationArmOperation(Response.FromValue(new AutomationAccountResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -141,7 +143,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil try { var response = _automationAccountRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, automationAccountName, content, cancellationToken); - var operation = new AutomationArmOperation(Response.FromValue(new AutomationAccountResource(Client, response), response.GetRawResponse())); + var uri = _automationAccountRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, automationAccountName, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomationArmOperation(Response.FromValue(new AutomationAccountResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationAccountModuleCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationAccountModuleCollection.cs index 34f91f4e4184..df6668c57d90 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationAccountModuleCollection.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationAccountModuleCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> CreateO try { var response = await _automationAccountModuleModuleRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, moduleName, content, cancellationToken).ConfigureAwait(false); - var operation = new AutomationArmOperation(Response.FromValue(new AutomationAccountModuleResource(Client, response), response.GetRawResponse())); + var uri = _automationAccountModuleModuleRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, moduleName, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomationArmOperation(Response.FromValue(new AutomationAccountModuleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -140,7 +142,9 @@ public virtual ArmOperation CreateOrUpdate(Wait try { var response = _automationAccountModuleModuleRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, moduleName, content, cancellationToken); - var operation = new AutomationArmOperation(Response.FromValue(new AutomationAccountModuleResource(Client, response), response.GetRawResponse())); + var uri = _automationAccountModuleModuleRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, moduleName, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomationArmOperation(Response.FromValue(new AutomationAccountModuleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationAccountModuleResource.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationAccountModuleResource.cs index 0bca42bdb0f5..14572fe88c91 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationAccountModuleResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationAccountModuleResource.cs @@ -215,7 +215,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _automationAccountModuleModuleRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new AutomationArmOperation(response); + var uri = _automationAccountModuleModuleRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomationArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -257,7 +259,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _automationAccountModuleModuleRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new AutomationArmOperation(response); + var uri = _automationAccountModuleModuleRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomationArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationAccountPython2PackageCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationAccountPython2PackageCollection.cs index eaaf4db13680..3acabac93aad 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationAccountPython2PackageCollection.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationAccountPython2PackageCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> try { var response = await _automationAccountPython2PackagePython2PackageRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, packageName, content, cancellationToken).ConfigureAwait(false); - var operation = new AutomationArmOperation(Response.FromValue(new AutomationAccountPython2PackageResource(Client, response), response.GetRawResponse())); + var uri = _automationAccountPython2PackagePython2PackageRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, packageName, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomationArmOperation(Response.FromValue(new AutomationAccountPython2PackageResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -140,7 +142,9 @@ public virtual ArmOperation CreateOrUpd try { var response = _automationAccountPython2PackagePython2PackageRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, packageName, content, cancellationToken); - var operation = new AutomationArmOperation(Response.FromValue(new AutomationAccountPython2PackageResource(Client, response), response.GetRawResponse())); + var uri = _automationAccountPython2PackagePython2PackageRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, packageName, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomationArmOperation(Response.FromValue(new AutomationAccountPython2PackageResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationAccountPython2PackageResource.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationAccountPython2PackageResource.cs index be9a36ec03da..37a15ea3b7e1 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationAccountPython2PackageResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationAccountPython2PackageResource.cs @@ -202,7 +202,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _automationAccountPython2PackagePython2PackageRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new AutomationArmOperation(response); + var uri = _automationAccountPython2PackagePython2PackageRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomationArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -244,7 +246,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _automationAccountPython2PackagePython2PackageRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new AutomationArmOperation(response); + var uri = _automationAccountPython2PackagePython2PackageRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomationArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationAccountResource.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationAccountResource.cs index 9f3d8dd14860..612dfcee604b 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationAccountResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationAccountResource.cs @@ -1710,7 +1710,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _automationAccountRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new AutomationArmOperation(response); + var uri = _automationAccountRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomationArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -1752,7 +1754,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _automationAccountRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); - var operation = new AutomationArmOperation(response); + var uri = _automationAccountRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomationArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationCertificateCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationCertificateCollection.cs index 3fe0f15f6e21..bcbae9fc8cd4 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationCertificateCollection.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationCertificateCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> CreateOrU try { var response = await _automationCertificateCertificateRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, certificateName, content, cancellationToken).ConfigureAwait(false); - var operation = new AutomationArmOperation(Response.FromValue(new AutomationCertificateResource(Client, response), response.GetRawResponse())); + var uri = _automationCertificateCertificateRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, certificateName, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomationArmOperation(Response.FromValue(new AutomationCertificateResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -140,7 +142,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUn try { var response = _automationCertificateCertificateRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, certificateName, content, cancellationToken); - var operation = new AutomationArmOperation(Response.FromValue(new AutomationCertificateResource(Client, response), response.GetRawResponse())); + var uri = _automationCertificateCertificateRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, certificateName, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomationArmOperation(Response.FromValue(new AutomationCertificateResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationCertificateResource.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationCertificateResource.cs index 90cd6bbcaf49..d2563f5d9c6b 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationCertificateResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationCertificateResource.cs @@ -201,7 +201,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _automationCertificateCertificateRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new AutomationArmOperation(response); + var uri = _automationCertificateCertificateRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomationArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -243,7 +245,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _automationCertificateCertificateRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new AutomationArmOperation(response); + var uri = _automationCertificateCertificateRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomationArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationConnectionCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationConnectionCollection.cs index 1307325ea15d..4dfd4b9ebfe6 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationConnectionCollection.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationConnectionCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> CreateOrUp try { var response = await _automationConnectionConnectionRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, connectionName, content, cancellationToken).ConfigureAwait(false); - var operation = new AutomationArmOperation(Response.FromValue(new AutomationConnectionResource(Client, response), response.GetRawResponse())); + var uri = _automationConnectionConnectionRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, connectionName, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomationArmOperation(Response.FromValue(new AutomationConnectionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -140,7 +142,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUnt try { var response = _automationConnectionConnectionRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, connectionName, content, cancellationToken); - var operation = new AutomationArmOperation(Response.FromValue(new AutomationConnectionResource(Client, response), response.GetRawResponse())); + var uri = _automationConnectionConnectionRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, connectionName, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomationArmOperation(Response.FromValue(new AutomationConnectionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationConnectionResource.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationConnectionResource.cs index 40beac244727..4615baa44e30 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationConnectionResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationConnectionResource.cs @@ -201,7 +201,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _automationConnectionConnectionRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new AutomationArmOperation(response); + var uri = _automationConnectionConnectionRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomationArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -243,7 +245,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _automationConnectionConnectionRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new AutomationArmOperation(response); + var uri = _automationConnectionConnectionRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomationArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationConnectionTypeCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationConnectionTypeCollection.cs index f3ce3b9f7b53..853e6d279b3f 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationConnectionTypeCollection.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationConnectionTypeCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> Create try { var response = await _automationConnectionTypeConnectionTypeRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, connectionTypeName, content, cancellationToken).ConfigureAwait(false); - var operation = new AutomationArmOperation(Response.FromValue(new AutomationConnectionTypeResource(Client, response), response.GetRawResponse())); + var uri = _automationConnectionTypeConnectionTypeRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, connectionTypeName, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomationArmOperation(Response.FromValue(new AutomationConnectionTypeResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -140,7 +142,9 @@ public virtual ArmOperation CreateOrUpdate(Wai try { var response = _automationConnectionTypeConnectionTypeRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, connectionTypeName, content, cancellationToken); - var operation = new AutomationArmOperation(Response.FromValue(new AutomationConnectionTypeResource(Client, response), response.GetRawResponse())); + var uri = _automationConnectionTypeConnectionTypeRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, connectionTypeName, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomationArmOperation(Response.FromValue(new AutomationConnectionTypeResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationConnectionTypeResource.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationConnectionTypeResource.cs index 022d1b95b139..e1b396a793f3 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationConnectionTypeResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationConnectionTypeResource.cs @@ -201,7 +201,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _automationConnectionTypeConnectionTypeRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new AutomationArmOperation(response); + var uri = _automationConnectionTypeConnectionTypeRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomationArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -243,7 +245,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _automationConnectionTypeConnectionTypeRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new AutomationArmOperation(response); + var uri = _automationConnectionTypeConnectionTypeRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomationArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -289,7 +293,9 @@ public virtual async Task> Update try { var response = await _automationConnectionTypeConnectionTypeRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, content, cancellationToken).ConfigureAwait(false); - var operation = new AutomationArmOperation(Response.FromValue(new AutomationConnectionTypeResource(Client, response), response.GetRawResponse())); + var uri = _automationConnectionTypeConnectionTypeRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomationArmOperation(Response.FromValue(new AutomationConnectionTypeResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -335,7 +341,9 @@ public virtual ArmOperation Update(WaitUntil w try { var response = _automationConnectionTypeConnectionTypeRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, content, cancellationToken); - var operation = new AutomationArmOperation(Response.FromValue(new AutomationConnectionTypeResource(Client, response), response.GetRawResponse())); + var uri = _automationConnectionTypeConnectionTypeRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomationArmOperation(Response.FromValue(new AutomationConnectionTypeResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationCredentialCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationCredentialCollection.cs index 3b397cf822f9..22a43137bc1d 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationCredentialCollection.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationCredentialCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> CreateOrUp try { var response = await _automationCredentialCredentialRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, credentialName, content, cancellationToken).ConfigureAwait(false); - var operation = new AutomationArmOperation(Response.FromValue(new AutomationCredentialResource(Client, response), response.GetRawResponse())); + var uri = _automationCredentialCredentialRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, credentialName, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomationArmOperation(Response.FromValue(new AutomationCredentialResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -140,7 +142,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUnt try { var response = _automationCredentialCredentialRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, credentialName, content, cancellationToken); - var operation = new AutomationArmOperation(Response.FromValue(new AutomationCredentialResource(Client, response), response.GetRawResponse())); + var uri = _automationCredentialCredentialRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, credentialName, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomationArmOperation(Response.FromValue(new AutomationCredentialResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationCredentialResource.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationCredentialResource.cs index 81bdec29f1d0..78c82b3e7872 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationCredentialResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationCredentialResource.cs @@ -201,7 +201,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _automationCredentialCredentialRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new AutomationArmOperation(response); + var uri = _automationCredentialCredentialRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomationArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -243,7 +245,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _automationCredentialCredentialRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new AutomationArmOperation(response); + var uri = _automationCredentialCredentialRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomationArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationJobCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationJobCollection.cs index dcefb7fd9962..2055a0270873 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationJobCollection.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationJobCollection.cs @@ -92,7 +92,9 @@ public virtual async Task> CreateOrUpdateAsy try { var response = await _automationJobJobRestClient.CreateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, jobName, content, clientRequestId, cancellationToken).ConfigureAwait(false); - var operation = new AutomationArmOperation(Response.FromValue(new AutomationJobResource(Client, response), response.GetRawResponse())); + var uri = _automationJobJobRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, jobName, content, clientRequestId); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomationArmOperation(Response.FromValue(new AutomationJobResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -142,7 +144,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wait try { var response = _automationJobJobRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, jobName, content, clientRequestId, cancellationToken); - var operation = new AutomationArmOperation(Response.FromValue(new AutomationJobResource(Client, response), response.GetRawResponse())); + var uri = _automationJobJobRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, jobName, content, clientRequestId); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomationArmOperation(Response.FromValue(new AutomationJobResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationJobResource.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationJobResource.cs index a4d1e49b40a0..163da3dc28f2 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationJobResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationJobResource.cs @@ -213,7 +213,9 @@ public virtual async Task> UpdateAsync(WaitU try { var response = await _automationJobJobRestClient.CreateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, content, clientRequestId, cancellationToken).ConfigureAwait(false); - var operation = new AutomationArmOperation(Response.FromValue(new AutomationJobResource(Client, response), response.GetRawResponse())); + var uri = _automationJobJobRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, content, clientRequestId); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomationArmOperation(Response.FromValue(new AutomationJobResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -260,7 +262,9 @@ public virtual ArmOperation Update(WaitUntil waitUntil, A try { var response = _automationJobJobRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, content, clientRequestId, cancellationToken); - var operation = new AutomationArmOperation(Response.FromValue(new AutomationJobResource(Client, response), response.GetRawResponse())); + var uri = _automationJobJobRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, content, clientRequestId); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomationArmOperation(Response.FromValue(new AutomationJobResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationJobScheduleCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationJobScheduleCollection.cs index 5b8fd3d2ff18..819ffc2b6839 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationJobScheduleCollection.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationJobScheduleCollection.cs @@ -89,7 +89,9 @@ public virtual async Task> CreateOrU try { var response = await _automationJobScheduleJobScheduleRestClient.CreateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, jobScheduleId, content, cancellationToken).ConfigureAwait(false); - var operation = new AutomationArmOperation(Response.FromValue(new AutomationJobScheduleResource(Client, response), response.GetRawResponse())); + var uri = _automationJobScheduleJobScheduleRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, jobScheduleId, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomationArmOperation(Response.FromValue(new AutomationJobScheduleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -136,7 +138,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUn try { var response = _automationJobScheduleJobScheduleRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, jobScheduleId, content, cancellationToken); - var operation = new AutomationArmOperation(Response.FromValue(new AutomationJobScheduleResource(Client, response), response.GetRawResponse())); + var uri = _automationJobScheduleJobScheduleRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, jobScheduleId, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomationArmOperation(Response.FromValue(new AutomationJobScheduleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationJobScheduleResource.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationJobScheduleResource.cs index 354b407af55d..dfd305d84626 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationJobScheduleResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationJobScheduleResource.cs @@ -201,7 +201,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _automationJobScheduleJobScheduleRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Guid.Parse(Id.Name), cancellationToken).ConfigureAwait(false); - var operation = new AutomationArmOperation(response); + var uri = _automationJobScheduleJobScheduleRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Guid.Parse(Id.Name)); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomationArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -243,7 +245,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _automationJobScheduleJobScheduleRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Guid.Parse(Id.Name), cancellationToken); - var operation = new AutomationArmOperation(response); + var uri = _automationJobScheduleJobScheduleRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Guid.Parse(Id.Name)); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomationArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -289,7 +293,9 @@ public virtual async Task> UpdateAsy try { var response = await _automationJobScheduleJobScheduleRestClient.CreateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Guid.Parse(Id.Name), content, cancellationToken).ConfigureAwait(false); - var operation = new AutomationArmOperation(Response.FromValue(new AutomationJobScheduleResource(Client, response), response.GetRawResponse())); + var uri = _automationJobScheduleJobScheduleRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Guid.Parse(Id.Name), content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomationArmOperation(Response.FromValue(new AutomationJobScheduleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -335,7 +341,9 @@ public virtual ArmOperation Update(WaitUntil wait try { var response = _automationJobScheduleJobScheduleRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Guid.Parse(Id.Name), content, cancellationToken); - var operation = new AutomationArmOperation(Response.FromValue(new AutomationJobScheduleResource(Client, response), response.GetRawResponse())); + var uri = _automationJobScheduleJobScheduleRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Guid.Parse(Id.Name), content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomationArmOperation(Response.FromValue(new AutomationJobScheduleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationRunbookCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationRunbookCollection.cs index df74fab26e6a..b962c3028ae9 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationRunbookCollection.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationRunbookCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> CreateOrUpdat try { var response = await _automationRunbookRunbookRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, runbookName, content, cancellationToken).ConfigureAwait(false); - var operation = new AutomationArmOperation(Response.FromValue(new AutomationRunbookResource(Client, response), response.GetRawResponse())); + var uri = _automationRunbookRunbookRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, runbookName, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomationArmOperation(Response.FromValue(new AutomationRunbookResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -140,7 +142,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil try { var response = _automationRunbookRunbookRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, runbookName, content, cancellationToken); - var operation = new AutomationArmOperation(Response.FromValue(new AutomationRunbookResource(Client, response), response.GetRawResponse())); + var uri = _automationRunbookRunbookRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, runbookName, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomationArmOperation(Response.FromValue(new AutomationRunbookResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationRunbookResource.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationRunbookResource.cs index de4931e23242..192c0dd9983a 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationRunbookResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationRunbookResource.cs @@ -216,7 +216,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _automationRunbookRunbookRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new AutomationArmOperation(response); + var uri = _automationRunbookRunbookRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomationArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -258,7 +260,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _automationRunbookRunbookRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new AutomationArmOperation(response); + var uri = _automationRunbookRunbookRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomationArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationScheduleCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationScheduleCollection.cs index 9123ea6810e5..b9f680eaafe2 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationScheduleCollection.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationScheduleCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> CreateOrUpda try { var response = await _automationScheduleScheduleRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, scheduleName, content, cancellationToken).ConfigureAwait(false); - var operation = new AutomationArmOperation(Response.FromValue(new AutomationScheduleResource(Client, response), response.GetRawResponse())); + var uri = _automationScheduleScheduleRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, scheduleName, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomationArmOperation(Response.FromValue(new AutomationScheduleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -140,7 +142,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil try { var response = _automationScheduleScheduleRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, scheduleName, content, cancellationToken); - var operation = new AutomationArmOperation(Response.FromValue(new AutomationScheduleResource(Client, response), response.GetRawResponse())); + var uri = _automationScheduleScheduleRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, scheduleName, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomationArmOperation(Response.FromValue(new AutomationScheduleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationScheduleResource.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationScheduleResource.cs index b89e427b1867..7608fed77749 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationScheduleResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationScheduleResource.cs @@ -201,7 +201,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _automationScheduleScheduleRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new AutomationArmOperation(response); + var uri = _automationScheduleScheduleRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomationArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -243,7 +245,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _automationScheduleScheduleRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new AutomationArmOperation(response); + var uri = _automationScheduleScheduleRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomationArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationSourceControlCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationSourceControlCollection.cs index 40ffa8228a83..91db361cf244 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationSourceControlCollection.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationSourceControlCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> CreateO try { var response = await _automationSourceControlSourceControlRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, sourceControlName, content, cancellationToken).ConfigureAwait(false); - var operation = new AutomationArmOperation(Response.FromValue(new AutomationSourceControlResource(Client, response), response.GetRawResponse())); + var uri = _automationSourceControlSourceControlRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, sourceControlName, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomationArmOperation(Response.FromValue(new AutomationSourceControlResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -140,7 +142,9 @@ public virtual ArmOperation CreateOrUpdate(Wait try { var response = _automationSourceControlSourceControlRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, sourceControlName, content, cancellationToken); - var operation = new AutomationArmOperation(Response.FromValue(new AutomationSourceControlResource(Client, response), response.GetRawResponse())); + var uri = _automationSourceControlSourceControlRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, sourceControlName, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomationArmOperation(Response.FromValue(new AutomationSourceControlResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationSourceControlResource.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationSourceControlResource.cs index 4b731acc779a..f8cc2af6548d 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationSourceControlResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationSourceControlResource.cs @@ -210,7 +210,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _automationSourceControlSourceControlRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new AutomationArmOperation(response); + var uri = _automationSourceControlSourceControlRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomationArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -252,7 +254,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _automationSourceControlSourceControlRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new AutomationArmOperation(response); + var uri = _automationSourceControlSourceControlRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomationArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationVariableCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationVariableCollection.cs index 1f9dc1a12968..ef4ec9cc171a 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationVariableCollection.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationVariableCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> CreateOrUpda try { var response = await _automationVariableVariableRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, variableName, content, cancellationToken).ConfigureAwait(false); - var operation = new AutomationArmOperation(Response.FromValue(new AutomationVariableResource(Client, response), response.GetRawResponse())); + var uri = _automationVariableVariableRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, variableName, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomationArmOperation(Response.FromValue(new AutomationVariableResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -140,7 +142,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil try { var response = _automationVariableVariableRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, variableName, content, cancellationToken); - var operation = new AutomationArmOperation(Response.FromValue(new AutomationVariableResource(Client, response), response.GetRawResponse())); + var uri = _automationVariableVariableRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, variableName, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomationArmOperation(Response.FromValue(new AutomationVariableResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationVariableResource.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationVariableResource.cs index 28af302e2b9f..c86382acac5d 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationVariableResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationVariableResource.cs @@ -201,7 +201,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _automationVariableVariableRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new AutomationArmOperation(response); + var uri = _automationVariableVariableRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomationArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -243,7 +245,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _automationVariableVariableRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new AutomationArmOperation(response); + var uri = _automationVariableVariableRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomationArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationWatcherCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationWatcherCollection.cs index 16b15f09206c..15b4ee90f787 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationWatcherCollection.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationWatcherCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> CreateOrUpdat try { var response = await _automationWatcherWatcherRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, watcherName, data, cancellationToken).ConfigureAwait(false); - var operation = new AutomationArmOperation(Response.FromValue(new AutomationWatcherResource(Client, response), response.GetRawResponse())); + var uri = _automationWatcherWatcherRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, watcherName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomationArmOperation(Response.FromValue(new AutomationWatcherResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil try { var response = _automationWatcherWatcherRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, watcherName, data, cancellationToken); - var operation = new AutomationArmOperation(Response.FromValue(new AutomationWatcherResource(Client, response), response.GetRawResponse())); + var uri = _automationWatcherWatcherRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, watcherName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomationArmOperation(Response.FromValue(new AutomationWatcherResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationWatcherResource.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationWatcherResource.cs index 032d5ab2d99d..f91bba3ad9ab 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationWatcherResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationWatcherResource.cs @@ -201,7 +201,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _automationWatcherWatcherRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new AutomationArmOperation(response); + var uri = _automationWatcherWatcherRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomationArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -243,7 +245,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _automationWatcherWatcherRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new AutomationArmOperation(response); + var uri = _automationWatcherWatcherRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomationArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationWebhookCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationWebhookCollection.cs index c3499c36c3cf..8d5bb6d3127e 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationWebhookCollection.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationWebhookCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> CreateOrUpdat try { var response = await _automationWebhookWebhookRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, webhookName, content, cancellationToken).ConfigureAwait(false); - var operation = new AutomationArmOperation(Response.FromValue(new AutomationWebhookResource(Client, response), response.GetRawResponse())); + var uri = _automationWebhookWebhookRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, webhookName, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomationArmOperation(Response.FromValue(new AutomationWebhookResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -140,7 +142,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil try { var response = _automationWebhookWebhookRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, webhookName, content, cancellationToken); - var operation = new AutomationArmOperation(Response.FromValue(new AutomationWebhookResource(Client, response), response.GetRawResponse())); + var uri = _automationWebhookWebhookRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, webhookName, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomationArmOperation(Response.FromValue(new AutomationWebhookResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationWebhookResource.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationWebhookResource.cs index 79c2d7727e77..e73e703b61c3 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationWebhookResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationWebhookResource.cs @@ -201,7 +201,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _automationWebhookWebhookRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new AutomationArmOperation(response); + var uri = _automationWebhookWebhookRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomationArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -243,7 +245,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _automationWebhookWebhookRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new AutomationArmOperation(response); + var uri = _automationWebhookWebhookRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomationArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/DscConfigurationCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/DscConfigurationCollection.cs index e48a639f1618..93d8c8ce7dbe 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/DscConfigurationCollection.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/DscConfigurationCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> CreateOrUpdate try { var response = await _dscConfigurationRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, configurationName, content, cancellationToken).ConfigureAwait(false); - var operation = new AutomationArmOperation(Response.FromValue(new DscConfigurationResource(Client, response), response.GetRawResponse())); + var uri = _dscConfigurationRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, configurationName, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomationArmOperation(Response.FromValue(new DscConfigurationResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -140,7 +142,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil w try { var response = _dscConfigurationRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, configurationName, content, cancellationToken); - var operation = new AutomationArmOperation(Response.FromValue(new DscConfigurationResource(Client, response), response.GetRawResponse())); + var uri = _dscConfigurationRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, configurationName, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomationArmOperation(Response.FromValue(new DscConfigurationResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/DscConfigurationResource.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/DscConfigurationResource.cs index 113033bab317..79ef2a169719 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/DscConfigurationResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/DscConfigurationResource.cs @@ -202,7 +202,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _dscConfigurationRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new AutomationArmOperation(response); + var uri = _dscConfigurationRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomationArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -244,7 +246,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _dscConfigurationRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new AutomationArmOperation(response); + var uri = _dscConfigurationRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomationArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/DscNodeConfigurationResource.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/DscNodeConfigurationResource.cs index 2a04792056ff..76184b9f30fa 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/DscNodeConfigurationResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/DscNodeConfigurationResource.cs @@ -201,7 +201,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _dscNodeConfigurationRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new AutomationArmOperation(response); + var uri = _dscNodeConfigurationRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomationArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -243,7 +245,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _dscNodeConfigurationRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new AutomationArmOperation(response); + var uri = _dscNodeConfigurationRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomationArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/DscNodeResource.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/DscNodeResource.cs index 6a7099e9acd2..853bf7feca5a 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/DscNodeResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/DscNodeResource.cs @@ -206,7 +206,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _dscNodeRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new AutomationArmOperation(response); + var uri = _dscNodeRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomationArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -248,7 +250,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _dscNodeRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new AutomationArmOperation(response); + var uri = _dscNodeRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomationArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/HybridRunbookWorkerCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/HybridRunbookWorkerCollection.cs index bd88e05da1a7..73532df44ba1 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/HybridRunbookWorkerCollection.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/HybridRunbookWorkerCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> CreateOrUpd try { var response = await _hybridRunbookWorkerRestClient.CreateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, hybridRunbookWorkerId, content, cancellationToken).ConfigureAwait(false); - var operation = new AutomationArmOperation(Response.FromValue(new HybridRunbookWorkerResource(Client, response), response.GetRawResponse())); + var uri = _hybridRunbookWorkerRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, hybridRunbookWorkerId, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomationArmOperation(Response.FromValue(new HybridRunbookWorkerResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -140,7 +142,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUnti try { var response = _hybridRunbookWorkerRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, hybridRunbookWorkerId, content, cancellationToken); - var operation = new AutomationArmOperation(Response.FromValue(new HybridRunbookWorkerResource(Client, response), response.GetRawResponse())); + var uri = _hybridRunbookWorkerRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, hybridRunbookWorkerId, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomationArmOperation(Response.FromValue(new HybridRunbookWorkerResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/HybridRunbookWorkerGroupCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/HybridRunbookWorkerGroupCollection.cs index 5802ff0e69c3..1f523f07e552 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/HybridRunbookWorkerGroupCollection.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/HybridRunbookWorkerGroupCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> Create try { var response = await _hybridRunbookWorkerGroupRestClient.CreateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, hybridRunbookWorkerGroupName, content, cancellationToken).ConfigureAwait(false); - var operation = new AutomationArmOperation(Response.FromValue(new HybridRunbookWorkerGroupResource(Client, response), response.GetRawResponse())); + var uri = _hybridRunbookWorkerGroupRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, hybridRunbookWorkerGroupName, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomationArmOperation(Response.FromValue(new HybridRunbookWorkerGroupResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -140,7 +142,9 @@ public virtual ArmOperation CreateOrUpdate(Wai try { var response = _hybridRunbookWorkerGroupRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, hybridRunbookWorkerGroupName, content, cancellationToken); - var operation = new AutomationArmOperation(Response.FromValue(new HybridRunbookWorkerGroupResource(Client, response), response.GetRawResponse())); + var uri = _hybridRunbookWorkerGroupRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, hybridRunbookWorkerGroupName, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomationArmOperation(Response.FromValue(new HybridRunbookWorkerGroupResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/HybridRunbookWorkerGroupResource.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/HybridRunbookWorkerGroupResource.cs index 7f88b7c9588e..2657375bcb91 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/HybridRunbookWorkerGroupResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/HybridRunbookWorkerGroupResource.cs @@ -270,7 +270,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _hybridRunbookWorkerGroupRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new AutomationArmOperation(response); + var uri = _hybridRunbookWorkerGroupRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomationArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -312,7 +314,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _hybridRunbookWorkerGroupRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new AutomationArmOperation(response); + var uri = _hybridRunbookWorkerGroupRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomationArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/HybridRunbookWorkerResource.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/HybridRunbookWorkerResource.cs index e27b0ba7c33b..ba5222120351 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/HybridRunbookWorkerResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/HybridRunbookWorkerResource.cs @@ -202,7 +202,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _hybridRunbookWorkerRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new AutomationArmOperation(response); + var uri = _hybridRunbookWorkerRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomationArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -244,7 +246,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _hybridRunbookWorkerRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new AutomationArmOperation(response); + var uri = _hybridRunbookWorkerRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomationArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -290,7 +294,9 @@ public virtual async Task> UpdateAsync try { var response = await _hybridRunbookWorkerRestClient.CreateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content, cancellationToken).ConfigureAwait(false); - var operation = new AutomationArmOperation(Response.FromValue(new HybridRunbookWorkerResource(Client, response), response.GetRawResponse())); + var uri = _hybridRunbookWorkerRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomationArmOperation(Response.FromValue(new HybridRunbookWorkerResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -336,7 +342,9 @@ public virtual ArmOperation Update(WaitUntil waitUn try { var response = _hybridRunbookWorkerRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content, cancellationToken); - var operation = new AutomationArmOperation(Response.FromValue(new HybridRunbookWorkerResource(Client, response), response.GetRawResponse())); + var uri = _hybridRunbookWorkerRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomationArmOperation(Response.FromValue(new HybridRunbookWorkerResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/LongRunningOperation/AutomationArmOperation.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/LongRunningOperation/AutomationArmOperation.cs index 3ac89d399c83..6fdc03f37e80 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/LongRunningOperation/AutomationArmOperation.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/LongRunningOperation/AutomationArmOperation.cs @@ -20,21 +20,24 @@ internal class AutomationArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of AutomationArmOperation for mocking. protected AutomationArmOperation() { } - internal AutomationArmOperation(Response response) + internal AutomationArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal AutomationArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "AutomationArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal AutomationArmOperation(ClientDiagnostics clientDiagnostics, HttpPipelin public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/LongRunningOperation/AutomationArmOperationOfT.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/LongRunningOperation/AutomationArmOperationOfT.cs index 086e706c9b3d..7a1aa7b2fad9 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/LongRunningOperation/AutomationArmOperationOfT.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/LongRunningOperation/AutomationArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class AutomationArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of AutomationArmOperation for mocking. protected AutomationArmOperation() { } - internal AutomationArmOperation(Response response) + internal AutomationArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal AutomationArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "AutomationArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal AutomationArmOperation(IOperationSource source, ClientDiagnostics cl public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationAccountModuleResource.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationAccountModuleResource.Serialization.cs new file mode 100644 index 000000000000..ff07a99d29bd --- /dev/null +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationAccountModuleResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Automation +{ + public partial class AutomationAccountModuleResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + AutomationModuleData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + AutomationModuleData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationAccountPython2PackageResource.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationAccountPython2PackageResource.Serialization.cs new file mode 100644 index 000000000000..e11a89656c87 --- /dev/null +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationAccountPython2PackageResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Automation +{ + public partial class AutomationAccountPython2PackageResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + AutomationModuleData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + AutomationModuleData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationAccountResource.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationAccountResource.Serialization.cs new file mode 100644 index 000000000000..58d016bbd00b --- /dev/null +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationAccountResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Automation +{ + public partial class AutomationAccountResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + AutomationAccountData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + AutomationAccountData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationCertificateResource.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationCertificateResource.Serialization.cs new file mode 100644 index 000000000000..1fcc82c8ee95 --- /dev/null +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationCertificateResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Automation +{ + public partial class AutomationCertificateResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + AutomationCertificateData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + AutomationCertificateData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationConnectionResource.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationConnectionResource.Serialization.cs new file mode 100644 index 000000000000..f76168c4347b --- /dev/null +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationConnectionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Automation +{ + public partial class AutomationConnectionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + AutomationConnectionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + AutomationConnectionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationConnectionTypeResource.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationConnectionTypeResource.Serialization.cs new file mode 100644 index 000000000000..8054a493690d --- /dev/null +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationConnectionTypeResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Automation +{ + public partial class AutomationConnectionTypeResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + AutomationConnectionTypeData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + AutomationConnectionTypeData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationCredentialResource.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationCredentialResource.Serialization.cs new file mode 100644 index 000000000000..1760151d2e3d --- /dev/null +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationCredentialResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Automation +{ + public partial class AutomationCredentialResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + AutomationCredentialData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + AutomationCredentialData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationJobResource.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationJobResource.Serialization.cs new file mode 100644 index 000000000000..f7a933cd7e6f --- /dev/null +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationJobResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Automation +{ + public partial class AutomationJobResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + AutomationJobData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + AutomationJobData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationJobScheduleResource.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationJobScheduleResource.Serialization.cs new file mode 100644 index 000000000000..57fadc36f48c --- /dev/null +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationJobScheduleResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Automation +{ + public partial class AutomationJobScheduleResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + AutomationJobScheduleData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + AutomationJobScheduleData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationPrivateEndpointConnectionResource.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationPrivateEndpointConnectionResource.Serialization.cs new file mode 100644 index 000000000000..6aaa5c96732d --- /dev/null +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationPrivateEndpointConnectionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Automation +{ + public partial class AutomationPrivateEndpointConnectionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + AutomationPrivateEndpointConnectionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + AutomationPrivateEndpointConnectionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationRunbookResource.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationRunbookResource.Serialization.cs new file mode 100644 index 000000000000..d700887d7f61 --- /dev/null +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationRunbookResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Automation +{ + public partial class AutomationRunbookResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + AutomationRunbookData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + AutomationRunbookData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationScheduleResource.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationScheduleResource.Serialization.cs new file mode 100644 index 000000000000..7d82499c89bb --- /dev/null +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationScheduleResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Automation +{ + public partial class AutomationScheduleResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + AutomationScheduleData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + AutomationScheduleData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationSourceControlResource.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationSourceControlResource.Serialization.cs new file mode 100644 index 000000000000..95daeae1d90b --- /dev/null +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationSourceControlResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Automation +{ + public partial class AutomationSourceControlResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + AutomationSourceControlData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + AutomationSourceControlData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationVariableResource.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationVariableResource.Serialization.cs new file mode 100644 index 000000000000..e9bab00dbd71 --- /dev/null +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationVariableResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Automation +{ + public partial class AutomationVariableResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + AutomationVariableData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + AutomationVariableData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationWatcherResource.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationWatcherResource.Serialization.cs new file mode 100644 index 000000000000..d636cab9059c --- /dev/null +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationWatcherResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Automation +{ + public partial class AutomationWatcherResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + AutomationWatcherData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + AutomationWatcherData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationWebhookResource.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationWebhookResource.Serialization.cs new file mode 100644 index 000000000000..2e8a630ee7e9 --- /dev/null +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationWebhookResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Automation +{ + public partial class AutomationWebhookResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + AutomationWebhookData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + AutomationWebhookData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscCompilationJobResource.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscCompilationJobResource.Serialization.cs new file mode 100644 index 000000000000..0b6d9053b8a2 --- /dev/null +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscCompilationJobResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Automation +{ + public partial class DscCompilationJobResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DscCompilationJobData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DscCompilationJobData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscConfigurationResource.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscConfigurationResource.Serialization.cs new file mode 100644 index 000000000000..ace4335e2e4f --- /dev/null +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscConfigurationResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Automation +{ + public partial class DscConfigurationResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DscConfigurationData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DscConfigurationData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscNodeConfigurationResource.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscNodeConfigurationResource.Serialization.cs new file mode 100644 index 000000000000..852a48a16bb8 --- /dev/null +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscNodeConfigurationResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Automation +{ + public partial class DscNodeConfigurationResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DscNodeConfigurationData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DscNodeConfigurationData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscNodeResource.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscNodeResource.Serialization.cs new file mode 100644 index 000000000000..2c6719c89edf --- /dev/null +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscNodeResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Automation +{ + public partial class DscNodeResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DscNodeData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DscNodeData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/HybridRunbookWorkerGroupResource.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/HybridRunbookWorkerGroupResource.Serialization.cs new file mode 100644 index 000000000000..ff77ba0eeb52 --- /dev/null +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/HybridRunbookWorkerGroupResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Automation +{ + public partial class HybridRunbookWorkerGroupResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + HybridRunbookWorkerGroupData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + HybridRunbookWorkerGroupData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/HybridRunbookWorkerResource.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/HybridRunbookWorkerResource.Serialization.cs new file mode 100644 index 000000000000..e18624b24283 --- /dev/null +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/HybridRunbookWorkerResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Automation +{ + public partial class HybridRunbookWorkerResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + HybridRunbookWorkerData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + HybridRunbookWorkerData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SoftwareUpdateConfigurationResource.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SoftwareUpdateConfigurationResource.Serialization.cs new file mode 100644 index 000000000000..84c2c101654e --- /dev/null +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SoftwareUpdateConfigurationResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Automation +{ + public partial class SoftwareUpdateConfigurationResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SoftwareUpdateConfigurationData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SoftwareUpdateConfigurationData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/ActivityRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/ActivityRestOperations.cs index 730c4bf28060..c1aba7637507 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/ActivityRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/ActivityRestOperations.cs @@ -37,6 +37,24 @@ public ActivityRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string moduleName, string activityName) + { + 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.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/modules/", false); + uri.AppendPath(moduleName, true); + uri.AppendPath("/activities/", false); + uri.AppendPath(activityName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string moduleName, string activityName) { var message = _pipeline.CreateMessage(); @@ -127,6 +145,23 @@ public Response Get(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateListByModuleRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string moduleName) + { + 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.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/modules/", false); + uri.AppendPath(moduleName, true); + uri.AppendPath("/activities", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByModuleRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string moduleName) { var message = _pipeline.CreateMessage(); @@ -212,6 +247,14 @@ public Response ListByModule(string subscriptionId } } + internal RequestUriBuilder CreateListByModuleNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, string moduleName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByModuleNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, string moduleName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/AgentRegistrationInformationRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/AgentRegistrationInformationRestOperations.cs index d0ee93d38414..8b2aa62a5ad0 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/AgentRegistrationInformationRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/AgentRegistrationInformationRestOperations.cs @@ -37,6 +37,21 @@ public AgentRegistrationInformationRestOperations(HttpPipeline pipeline, string _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName) + { + 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.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/agentRegistrationInformation", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string automationAccountName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,21 @@ public Response Get(string subscriptionId, string resourceGro } } + internal RequestUriBuilder CreateRegenerateKeyRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, AgentRegistrationRegenerateKeyContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/agentRegistrationInformation/regenerateKey", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRegenerateKeyRequest(string subscriptionId, string resourceGroupName, string automationAccountName, AgentRegistrationRegenerateKeyContent content) { var message = _pipeline.CreateMessage(); diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/AutomationAccountRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/AutomationAccountRestOperations.cs index fb8924576173..404471ea798d 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/AutomationAccountRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/AutomationAccountRestOperations.cs @@ -37,6 +37,20 @@ public AutomationAccountRestOperations(HttpPipeline pipeline, string application _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, AutomationAccountPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string automationAccountName, AutomationAccountPatch patch) { var message = _pipeline.CreateMessage(); @@ -123,6 +137,20 @@ public Response Update(string subscriptionId, string reso } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, AutomationAccountCreateOrUpdateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string automationAccountName, AutomationAccountCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); @@ -211,6 +239,20 @@ public Response CreateOrUpdate(string subscriptionId, str } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName) + { + 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.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string automationAccountName) { var message = _pipeline.CreateMessage(); @@ -281,6 +323,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName) + { + 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.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string automationAccountName) { var message = _pipeline.CreateMessage(); @@ -363,6 +419,19 @@ public Response Get(string subscriptionId, string resourc } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.Automation/automationAccounts", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -436,6 +505,17 @@ public Response ListByResourceGroup(string subscrip } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Automation/automationAccounts", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -503,6 +583,14 @@ public Response List(string subscriptionId, Cancell } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -575,6 +663,14 @@ public Response ListByResourceGroupNextPage(string } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/AutomationRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/AutomationRestOperations.cs index 8bba8a024da1..0ac65218f455 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/AutomationRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/AutomationRestOperations.cs @@ -37,6 +37,21 @@ public AutomationRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateConvertGraphRunbookContentRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, GraphicalRunbookContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/convertGraphRunbookContent", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateConvertGraphRunbookContentRequest(string subscriptionId, string resourceGroupName, string automationAccountName, GraphicalRunbookContent content) { var message = _pipeline.CreateMessage(); diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/CertificateRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/CertificateRestOperations.cs index 4c6fa807f5c5..26f31bed552c 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/CertificateRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/CertificateRestOperations.cs @@ -37,6 +37,22 @@ public CertificateRestOperations(HttpPipeline pipeline, string applicationId, Ur _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string certificateName) + { + 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.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/certificates/", false); + uri.AppendPath(certificateName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string certificateName) { var message = _pipeline.CreateMessage(); @@ -111,6 +127,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string certificateName) + { + 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.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/certificates/", false); + uri.AppendPath(certificateName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string certificateName) { var message = _pipeline.CreateMessage(); @@ -199,6 +231,22 @@ public Response Get(string subscriptionId, string res } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string certificateName, AutomationCertificateCreateOrUpdateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/certificates/", false); + uri.AppendPath(certificateName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string certificateName, AutomationCertificateCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); @@ -293,6 +341,22 @@ public Response CreateOrUpdate(string subscriptionId, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string certificateName, AutomationCertificatePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/certificates/", false); + uri.AppendPath(certificateName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string certificateName, AutomationCertificatePatch patch) { var message = _pipeline.CreateMessage(); @@ -385,6 +449,21 @@ public Response Update(string subscriptionId, string } } + internal RequestUriBuilder CreateListByAutomationAccountRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName) + { + 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.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/certificates", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByAutomationAccountRequest(string subscriptionId, string resourceGroupName, string automationAccountName) { var message = _pipeline.CreateMessage(); @@ -464,6 +543,14 @@ public Response ListByAutomationAccount(string } } + internal RequestUriBuilder CreateListByAutomationAccountNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByAutomationAccountNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/ConnectionRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/ConnectionRestOperations.cs index 9dac78844eae..0b2cd7880836 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/ConnectionRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/ConnectionRestOperations.cs @@ -37,6 +37,22 @@ public ConnectionRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string connectionName) + { + 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.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/connections/", false); + uri.AppendPath(connectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string connectionName) { var message = _pipeline.CreateMessage(); @@ -113,6 +129,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string connectionName) + { + 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.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/connections/", false); + uri.AppendPath(connectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string connectionName) { var message = _pipeline.CreateMessage(); @@ -201,6 +233,22 @@ public Response Get(string subscriptionId, string reso } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string connectionName, AutomationConnectionCreateOrUpdateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/connections/", false); + uri.AppendPath(connectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string connectionName, AutomationConnectionCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); @@ -295,6 +343,22 @@ public Response CreateOrUpdate(string subscriptionId, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string connectionName, AutomationConnectionPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/connections/", false); + uri.AppendPath(connectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string connectionName, AutomationConnectionPatch patch) { var message = _pipeline.CreateMessage(); @@ -387,6 +451,21 @@ public Response Update(string subscriptionId, string r } } + internal RequestUriBuilder CreateListByAutomationAccountRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName) + { + 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.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/connections", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByAutomationAccountRequest(string subscriptionId, string resourceGroupName, string automationAccountName) { var message = _pipeline.CreateMessage(); @@ -466,6 +545,14 @@ public Response ListByAutomationAccount(string s } } + internal RequestUriBuilder CreateListByAutomationAccountNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByAutomationAccountNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/ConnectionTypeRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/ConnectionTypeRestOperations.cs index 61912b2814d9..677c69c6b806 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/ConnectionTypeRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/ConnectionTypeRestOperations.cs @@ -37,6 +37,22 @@ public ConnectionTypeRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string connectionTypeName) + { + 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.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/connectionTypes/", false); + uri.AppendPath(connectionTypeName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string connectionTypeName) { var message = _pipeline.CreateMessage(); @@ -113,6 +129,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string connectionTypeName) + { + 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.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/connectionTypes/", false); + uri.AppendPath(connectionTypeName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string connectionTypeName) { var message = _pipeline.CreateMessage(); @@ -201,6 +233,22 @@ public Response Get(string subscriptionId, string } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string connectionTypeName, AutomationConnectionTypeCreateOrUpdateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/connectionTypes/", false); + uri.AppendPath(connectionTypeName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string connectionTypeName, AutomationConnectionTypeCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); @@ -293,6 +341,21 @@ public Response CreateOrUpdate(string subscription } } + internal RequestUriBuilder CreateListByAutomationAccountRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName) + { + 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.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/connectionTypes", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByAutomationAccountRequest(string subscriptionId, string resourceGroupName, string automationAccountName) { var message = _pipeline.CreateMessage(); @@ -372,6 +435,14 @@ public Response ListByAutomationAccount(stri } } + internal RequestUriBuilder CreateListByAutomationAccountNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByAutomationAccountNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/CredentialRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/CredentialRestOperations.cs index 460f78381e05..31a3c416eb12 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/CredentialRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/CredentialRestOperations.cs @@ -37,6 +37,22 @@ public CredentialRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string credentialName) + { + 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.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/credentials/", false); + uri.AppendPath(credentialName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string credentialName) { var message = _pipeline.CreateMessage(); @@ -111,6 +127,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string credentialName) + { + 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.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/credentials/", false); + uri.AppendPath(credentialName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string credentialName) { var message = _pipeline.CreateMessage(); @@ -199,6 +231,22 @@ public Response Get(string subscriptionId, string reso } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string credentialName, AutomationCredentialCreateOrUpdateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/credentials/", false); + uri.AppendPath(credentialName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string credentialName, AutomationCredentialCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); @@ -293,6 +341,22 @@ public Response CreateOrUpdate(string subscriptionId, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string credentialName, AutomationCredentialPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/credentials/", false); + uri.AppendPath(credentialName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string credentialName, AutomationCredentialPatch patch) { var message = _pipeline.CreateMessage(); @@ -385,6 +449,21 @@ public Response Update(string subscriptionId, string r } } + internal RequestUriBuilder CreateListByAutomationAccountRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName) + { + 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.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/credentials", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByAutomationAccountRequest(string subscriptionId, string resourceGroupName, string automationAccountName) { var message = _pipeline.CreateMessage(); @@ -464,6 +543,14 @@ public Response ListByAutomationAccount(string s } } + internal RequestUriBuilder CreateListByAutomationAccountNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByAutomationAccountNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/DeletedAutomationAccountsRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/DeletedAutomationAccountsRestOperations.cs index e357d9490d2a..d328fe2656de 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/DeletedAutomationAccountsRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/DeletedAutomationAccountsRestOperations.cs @@ -37,6 +37,17 @@ public DeletedAutomationAccountsRestOperations(HttpPipeline pipeline, string app _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Automation/deletedAutomationAccounts", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/DscCompilationJobRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/DscCompilationJobRestOperations.cs index 1a18943ee1ce..2c36f82c3507 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/DscCompilationJobRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/DscCompilationJobRestOperations.cs @@ -37,6 +37,22 @@ public DscCompilationJobRestOperations(HttpPipeline pipeline, string application _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string compilationJobName, DscCompilationJobCreateOrUpdateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/compilationjobs/", false); + uri.AppendPath(compilationJobName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string compilationJobName, DscCompilationJobCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); @@ -119,6 +135,22 @@ public Response Create(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string compilationJobName) + { + 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.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/compilationjobs/", false); + uri.AppendPath(compilationJobName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string compilationJobName) { var message = _pipeline.CreateMessage(); @@ -207,6 +239,25 @@ public Response Get(string subscriptionId, string resourc } } + internal RequestUriBuilder CreateListByAutomationAccountRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/compilationjobs", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByAutomationAccountRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string filter) { var message = _pipeline.CreateMessage(); @@ -292,6 +343,24 @@ public Response ListByAutomationAccount(string subs } } + internal RequestUriBuilder CreateGetStreamRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, Guid jobId, string jobStreamId) + { + 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.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/compilationjobs/", false); + uri.AppendPath(jobId, true); + uri.AppendPath("/streams/", false); + uri.AppendPath(jobStreamId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetStreamRequest(string subscriptionId, string resourceGroupName, string automationAccountName, Guid jobId, string jobStreamId) { var message = _pipeline.CreateMessage(); @@ -380,6 +449,14 @@ public Response GetStream(string subscriptionId, string res } } + internal RequestUriBuilder CreateListByAutomationAccountNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByAutomationAccountNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, string filter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/DscCompilationJobStreamRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/DscCompilationJobStreamRestOperations.cs index 54c9b07bf98f..e1876d064bb4 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/DscCompilationJobStreamRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/DscCompilationJobStreamRestOperations.cs @@ -37,6 +37,23 @@ public DscCompilationJobStreamRestOperations(HttpPipeline pipeline, string appli _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByJobRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, Guid jobId) + { + 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.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/compilationjobs/", false); + uri.AppendPath(jobId, true); + uri.AppendPath("/streams", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByJobRequest(string subscriptionId, string resourceGroupName, string automationAccountName, Guid jobId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/DscConfigurationRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/DscConfigurationRestOperations.cs index 2fb3243517f3..bcca037bef5f 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/DscConfigurationRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/DscConfigurationRestOperations.cs @@ -38,6 +38,22 @@ public DscConfigurationRestOperations(HttpPipeline pipeline, string applicationI _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string configurationName) + { + 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.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/configurations/", false); + uri.AppendPath(configurationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string configurationName) { var message = _pipeline.CreateMessage(); @@ -114,6 +130,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string configurationName) + { + 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.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/configurations/", false); + uri.AppendPath(configurationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string configurationName) { var message = _pipeline.CreateMessage(); @@ -202,6 +234,22 @@ public Response Get(string subscriptionId, string resource } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string configurationName, DscConfigurationCreateOrUpdateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/configurations/", false); + uri.AppendPath(configurationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string configurationName, DscConfigurationCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); @@ -296,6 +344,22 @@ public Response CreateOrUpdate(string subscriptionId, stri } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string configurationName, DscConfigurationPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/configurations/", false); + uri.AppendPath(configurationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string configurationName, DscConfigurationPatch patch) { var message = _pipeline.CreateMessage(); @@ -388,6 +452,23 @@ public Response Update(string subscriptionId, string resou } } + internal RequestUriBuilder CreateGetContentRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string configurationName) + { + 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.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/configurations/", false); + uri.AppendPath(configurationName, true); + uri.AppendPath("/content", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetContentRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string configurationName) { var message = _pipeline.CreateMessage(); @@ -471,6 +552,37 @@ public Response GetContent(string subscriptionId, string resourceGroupNa } } + internal RequestUriBuilder CreateListByAutomationAccountRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string filter, int? skip, int? top, string inlinecount) + { + 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.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/configurations", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (skip != null) + { + uri.AppendQuery("$skip", skip.Value, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (inlinecount != null) + { + uri.AppendQuery("$inlinecount", inlinecount, true); + } + return uri; + } + internal HttpMessage CreateListByAutomationAccountRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string filter, int? skip, int? top, string inlinecount) { var message = _pipeline.CreateMessage(); @@ -574,6 +686,14 @@ public Response ListByAutomationAccount(string subsc } } + internal RequestUriBuilder CreateListByAutomationAccountNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, string filter, int? skip, int? top, string inlinecount) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByAutomationAccountNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, string filter, int? skip, int? top, string inlinecount) { var message = _pipeline.CreateMessage(); diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/DscNodeConfigurationRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/DscNodeConfigurationRestOperations.cs index c3894607ede3..5c1e88000b59 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/DscNodeConfigurationRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/DscNodeConfigurationRestOperations.cs @@ -37,6 +37,22 @@ public DscNodeConfigurationRestOperations(HttpPipeline pipeline, string applicat _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string nodeConfigurationName) + { + 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.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/nodeConfigurations/", false); + uri.AppendPath(nodeConfigurationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string nodeConfigurationName) { var message = _pipeline.CreateMessage(); @@ -111,6 +127,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string nodeConfigurationName) + { + 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.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/nodeConfigurations/", false); + uri.AppendPath(nodeConfigurationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string nodeConfigurationName) { var message = _pipeline.CreateMessage(); @@ -199,6 +231,22 @@ public Response Get(string subscriptionId, string reso } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string nodeConfigurationName, DscNodeConfigurationCreateOrUpdateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/nodeConfigurations/", false); + uri.AppendPath(nodeConfigurationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string nodeConfigurationName, DscNodeConfigurationCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); @@ -283,6 +331,37 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateListByAutomationAccountRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string filter, int? skip, int? top, string inlinecount) + { + 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.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/nodeConfigurations", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (skip != null) + { + uri.AppendQuery("$skip", skip.Value, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (inlinecount != null) + { + uri.AppendQuery("$inlinecount", inlinecount, true); + } + return uri; + } + internal HttpMessage CreateListByAutomationAccountRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string filter, int? skip, int? top, string inlinecount) { var message = _pipeline.CreateMessage(); @@ -386,6 +465,14 @@ public Response ListByAutomationAccount(string s } } + internal RequestUriBuilder CreateListByAutomationAccountNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, string filter, int? skip, int? top, string inlinecount) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByAutomationAccountNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, string filter, int? skip, int? top, string inlinecount) { var message = _pipeline.CreateMessage(); diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/DscNodeRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/DscNodeRestOperations.cs index 18cf3579734a..5b98c936f227 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/DscNodeRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/DscNodeRestOperations.cs @@ -37,6 +37,22 @@ public DscNodeRestOperations(HttpPipeline pipeline, string applicationId, Uri en _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string nodeId) + { + 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.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/nodes/", false); + uri.AppendPath(nodeId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string nodeId) { var message = _pipeline.CreateMessage(); @@ -111,6 +127,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string nodeId) + { + 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.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/nodes/", false); + uri.AppendPath(nodeId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string nodeId) { var message = _pipeline.CreateMessage(); @@ -199,6 +231,22 @@ public Response Get(string subscriptionId, string resourceGroupName } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string nodeId, DscNodePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/nodes/", false); + uri.AppendPath(nodeId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string nodeId, DscNodePatch patch) { var message = _pipeline.CreateMessage(); @@ -291,6 +339,37 @@ public Response Update(string subscriptionId, string resourceGroupN } } + internal RequestUriBuilder CreateListByAutomationAccountRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string filter, int? skip, int? top, string inlinecount) + { + 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.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/nodes", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (skip != null) + { + uri.AppendQuery("$skip", skip.Value, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (inlinecount != null) + { + uri.AppendQuery("$inlinecount", inlinecount, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByAutomationAccountRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string filter, int? skip, int? top, string inlinecount) { var message = _pipeline.CreateMessage(); @@ -394,6 +473,14 @@ public Response ListByAutomationAccount(string subscriptionId } } + internal RequestUriBuilder CreateListByAutomationAccountNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, string filter, int? skip, int? top, string inlinecount) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByAutomationAccountNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, string filter, int? skip, int? top, string inlinecount) { var message = _pipeline.CreateMessage(); diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/FieldsRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/FieldsRestOperations.cs index a44f3f999984..d0c95c8c86fc 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/FieldsRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/FieldsRestOperations.cs @@ -37,6 +37,25 @@ public FieldsRestOperations(HttpPipeline pipeline, string applicationId, Uri end _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByTypeRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string moduleName, string typeName) + { + 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.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/modules/", false); + uri.AppendPath(moduleName, true); + uri.AppendPath("/types/", false); + uri.AppendPath(typeName, true); + uri.AppendPath("/fields", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByTypeRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string moduleName, string typeName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/HybridRunbookWorkerGroupRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/HybridRunbookWorkerGroupRestOperations.cs index 6c696bc75152..50f959797d6f 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/HybridRunbookWorkerGroupRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/HybridRunbookWorkerGroupRestOperations.cs @@ -37,6 +37,22 @@ public HybridRunbookWorkerGroupRestOperations(HttpPipeline pipeline, string appl _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string hybridRunbookWorkerGroupName) + { + 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.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/hybridRunbookWorkerGroups/", false); + uri.AppendPath(hybridRunbookWorkerGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string hybridRunbookWorkerGroupName) { var message = _pipeline.CreateMessage(); @@ -111,6 +127,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string hybridRunbookWorkerGroupName) + { + 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.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/hybridRunbookWorkerGroups/", false); + uri.AppendPath(hybridRunbookWorkerGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string hybridRunbookWorkerGroupName) { var message = _pipeline.CreateMessage(); @@ -199,6 +231,22 @@ public Response Get(string subscriptionId, string } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string hybridRunbookWorkerGroupName, HybridRunbookWorkerGroupCreateOrUpdateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/hybridRunbookWorkerGroups/", false); + uri.AppendPath(hybridRunbookWorkerGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string hybridRunbookWorkerGroupName, HybridRunbookWorkerGroupCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); @@ -291,6 +339,22 @@ public Response Create(string subscriptionId, stri } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string hybridRunbookWorkerGroupName, HybridRunbookWorkerGroupCreateOrUpdateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/hybridRunbookWorkerGroups/", false); + uri.AppendPath(hybridRunbookWorkerGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string hybridRunbookWorkerGroupName, HybridRunbookWorkerGroupCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); @@ -383,6 +447,25 @@ public Response Update(string subscriptionId, stri } } + internal RequestUriBuilder CreateListByAutomationAccountRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/hybridRunbookWorkerGroups", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByAutomationAccountRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string filter) { var message = _pipeline.CreateMessage(); @@ -468,6 +551,14 @@ public Response ListByAutomationAccount(str } } + internal RequestUriBuilder CreateListByAutomationAccountNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByAutomationAccountNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, string filter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/HybridRunbookWorkersRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/HybridRunbookWorkersRestOperations.cs index eea189dc3f5a..12451c9ac0c8 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/HybridRunbookWorkersRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/HybridRunbookWorkersRestOperations.cs @@ -37,6 +37,24 @@ public HybridRunbookWorkersRestOperations(HttpPipeline pipeline, string applicat _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string hybridRunbookWorkerGroupName, string hybridRunbookWorkerId) + { + 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.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/hybridRunbookWorkerGroups/", false); + uri.AppendPath(hybridRunbookWorkerGroupName, true); + uri.AppendPath("/hybridRunbookWorkers/", false); + uri.AppendPath(hybridRunbookWorkerId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string hybridRunbookWorkerGroupName, string hybridRunbookWorkerId) { var message = _pipeline.CreateMessage(); @@ -119,6 +137,24 @@ public Response Delete(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string hybridRunbookWorkerGroupName, string hybridRunbookWorkerId) + { + 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.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/hybridRunbookWorkerGroups/", false); + uri.AppendPath(hybridRunbookWorkerGroupName, true); + uri.AppendPath("/hybridRunbookWorkers/", false); + uri.AppendPath(hybridRunbookWorkerId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string hybridRunbookWorkerGroupName, string hybridRunbookWorkerId) { var message = _pipeline.CreateMessage(); @@ -213,6 +249,24 @@ public Response Get(string subscriptionId, string resou } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string hybridRunbookWorkerGroupName, string hybridRunbookWorkerId, HybridRunbookWorkerCreateOrUpdateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/hybridRunbookWorkerGroups/", false); + uri.AppendPath(hybridRunbookWorkerGroupName, true); + uri.AppendPath("/hybridRunbookWorkers/", false); + uri.AppendPath(hybridRunbookWorkerId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string hybridRunbookWorkerGroupName, string hybridRunbookWorkerId, HybridRunbookWorkerCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); @@ -311,6 +365,25 @@ public Response Create(string subscriptionId, string re } } + internal RequestUriBuilder CreateMoveRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string hybridRunbookWorkerGroupName, string hybridRunbookWorkerId, HybridRunbookWorkerMoveContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/hybridRunbookWorkerGroups/", false); + uri.AppendPath(hybridRunbookWorkerGroupName, true); + uri.AppendPath("/hybridRunbookWorkers/", false); + uri.AppendPath(hybridRunbookWorkerId, true); + uri.AppendPath("/move", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateMoveRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string hybridRunbookWorkerGroupName, string hybridRunbookWorkerId, HybridRunbookWorkerMoveContent content) { var message = _pipeline.CreateMessage(); @@ -400,6 +473,27 @@ public Response Move(string subscriptionId, string resourceGroupName, string aut } } + internal RequestUriBuilder CreateListByHybridRunbookWorkerGroupRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string hybridRunbookWorkerGroupName, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/hybridRunbookWorkerGroups/", false); + uri.AppendPath(hybridRunbookWorkerGroupName, true); + uri.AppendPath("/hybridRunbookWorkers", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByHybridRunbookWorkerGroupRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string hybridRunbookWorkerGroupName, string filter) { var message = _pipeline.CreateMessage(); @@ -491,6 +585,14 @@ public Response ListByHybridRunbookWorkerGroup(s } } + internal RequestUriBuilder CreateListByHybridRunbookWorkerGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, string hybridRunbookWorkerGroupName, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByHybridRunbookWorkerGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, string hybridRunbookWorkerGroupName, string filter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/JobRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/JobRestOperations.cs index 030001ee55f8..d240bcb87149 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/JobRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/JobRestOperations.cs @@ -38,6 +38,23 @@ public JobRestOperations(HttpPipeline pipeline, string applicationId, Uri endpoi _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetOutputRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string jobName, string clientRequestId) + { + 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.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/jobs/", false); + uri.AppendPath(jobName, true); + uri.AppendPath("/output", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetOutputRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string jobName, string clientRequestId) { var message = _pipeline.CreateMessage(); @@ -127,6 +144,23 @@ public Response GetOutput(string subscriptionId, string resourceGroupNam } } + internal RequestUriBuilder CreateGetRunbookContentRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string jobName, string clientRequestId) + { + 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.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/jobs/", false); + uri.AppendPath(jobName, true); + uri.AppendPath("/runbookContent", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRunbookContentRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string jobName, string clientRequestId) { var message = _pipeline.CreateMessage(); @@ -216,6 +250,23 @@ public Response GetRunbookContent(string subscriptionId, string resource } } + internal RequestUriBuilder CreateSuspendRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string jobName, string clientRequestId) + { + 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.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/jobs/", false); + uri.AppendPath(jobName, true); + uri.AppendPath("/suspend", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateSuspendRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string jobName, string clientRequestId) { var message = _pipeline.CreateMessage(); @@ -297,6 +348,23 @@ public Response Suspend(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreateStopRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string jobName, string clientRequestId) + { + 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.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/jobs/", false); + uri.AppendPath(jobName, true); + uri.AppendPath("/stop", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStopRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string jobName, string clientRequestId) { var message = _pipeline.CreateMessage(); @@ -378,6 +446,22 @@ public Response Stop(string subscriptionId, string resourceGroupName, string aut } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string jobName, string clientRequestId) + { + 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.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/jobs/", false); + uri.AppendPath(jobName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string jobName, string clientRequestId) { var message = _pipeline.CreateMessage(); @@ -472,6 +556,22 @@ public Response Get(string subscriptionId, string resourceGro } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string jobName, AutomationJobCreateOrUpdateContent content, string clientRequestId) + { + 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.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/jobs/", false); + uri.AppendPath(jobName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string jobName, AutomationJobCreateOrUpdateContent content, string clientRequestId) { var message = _pipeline.CreateMessage(); @@ -570,6 +670,25 @@ public Response Create(string subscriptionId, string resource } } + internal RequestUriBuilder CreateListByAutomationAccountRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string filter, string clientRequestId) + { + 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.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/jobs", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByAutomationAccountRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string filter, string clientRequestId) { var message = _pipeline.CreateMessage(); @@ -661,6 +780,23 @@ public Response ListByAutomationAccount(string subscr } } + internal RequestUriBuilder CreateResumeRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string jobName, string clientRequestId) + { + 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.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/jobs/", false); + uri.AppendPath(jobName, true); + uri.AppendPath("/resume", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateResumeRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string jobName, string clientRequestId) { var message = _pipeline.CreateMessage(); @@ -742,6 +878,14 @@ public Response Resume(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateListByAutomationAccountNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, string filter, string clientRequestId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByAutomationAccountNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, string filter, string clientRequestId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/JobScheduleRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/JobScheduleRestOperations.cs index f5e1bbb64e46..225eb4a5c1aa 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/JobScheduleRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/JobScheduleRestOperations.cs @@ -37,6 +37,22 @@ public JobScheduleRestOperations(HttpPipeline pipeline, string applicationId, Ur _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, Guid jobScheduleId) + { + 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.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/jobSchedules/", false); + uri.AppendPath(jobScheduleId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string automationAccountName, Guid jobScheduleId) { var message = _pipeline.CreateMessage(); @@ -109,6 +125,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, Guid jobScheduleId) + { + 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.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/jobSchedules/", false); + uri.AppendPath(jobScheduleId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string automationAccountName, Guid jobScheduleId) { var message = _pipeline.CreateMessage(); @@ -195,6 +227,22 @@ public Response Get(string subscriptionId, string res } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, Guid jobScheduleId, AutomationJobScheduleCreateOrUpdateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/jobSchedules/", false); + uri.AppendPath(jobScheduleId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string automationAccountName, Guid jobScheduleId, AutomationJobScheduleCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); @@ -285,6 +333,25 @@ public Response Create(string subscriptionId, string } } + internal RequestUriBuilder CreateListByAutomationAccountRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/jobSchedules", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByAutomationAccountRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string filter) { var message = _pipeline.CreateMessage(); @@ -370,6 +437,14 @@ public Response ListByAutomationAccount(string } } + internal RequestUriBuilder CreateListByAutomationAccountNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByAutomationAccountNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, string filter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/JobStreamRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/JobStreamRestOperations.cs index 31456023d2bc..bf01f01e4f79 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/JobStreamRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/JobStreamRestOperations.cs @@ -37,6 +37,24 @@ public JobStreamRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string jobName, string jobStreamId, string clientRequestId) + { + 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.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/jobs/", false); + uri.AppendPath(jobName, true); + uri.AppendPath("/streams/", false); + uri.AppendPath(jobStreamId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string jobName, string jobStreamId, string clientRequestId) { var message = _pipeline.CreateMessage(); @@ -133,6 +151,27 @@ public Response Get(string subscriptionId, string resourceG } } + internal RequestUriBuilder CreateListByJobRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string jobName, string filter, string clientRequestId) + { + 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.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/jobs/", false); + uri.AppendPath(jobName, true); + uri.AppendPath("/streams", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByJobRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string jobName, string filter, string clientRequestId) { var message = _pipeline.CreateMessage(); @@ -230,6 +269,14 @@ public Response ListByJob(string subscriptionId, } } + internal RequestUriBuilder CreateListByJobNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, string jobName, string filter, string clientRequestId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByJobNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, string jobName, string filter, string clientRequestId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/KeysRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/KeysRestOperations.cs index 7533178f3bfb..d7bbe8fd0c53 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/KeysRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/KeysRestOperations.cs @@ -37,6 +37,21 @@ public KeysRestOperations(HttpPipeline pipeline, string applicationId, Uri endpo _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByAutomationAccountRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName) + { + 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.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/listKeys", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByAutomationAccountRequest(string subscriptionId, string resourceGroupName, string automationAccountName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/LinkedWorkspaceRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/LinkedWorkspaceRestOperations.cs index e68393737e08..3d08c17469f1 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/LinkedWorkspaceRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/LinkedWorkspaceRestOperations.cs @@ -37,6 +37,21 @@ public LinkedWorkspaceRestOperations(HttpPipeline pipeline, string applicationId _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName) + { + 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.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/linkedWorkspace", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string automationAccountName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/ModuleRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/ModuleRestOperations.cs index b532922dbd85..22a028746fbe 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/ModuleRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/ModuleRestOperations.cs @@ -37,6 +37,22 @@ public ModuleRestOperations(HttpPipeline pipeline, string applicationId, Uri end _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string moduleName) + { + 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.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/modules/", false); + uri.AppendPath(moduleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string moduleName) { var message = _pipeline.CreateMessage(); @@ -111,6 +127,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string moduleName) + { + 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.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/modules/", false); + uri.AppendPath(moduleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string moduleName) { var message = _pipeline.CreateMessage(); @@ -199,6 +231,22 @@ public Response Get(string subscriptionId, string resource } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string moduleName, AutomationAccountModuleCreateOrUpdateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/modules/", false); + uri.AppendPath(moduleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string moduleName, AutomationAccountModuleCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); @@ -293,6 +341,22 @@ public Response CreateOrUpdate(string subscriptionId, stri } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string moduleName, AutomationAccountModulePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/modules/", false); + uri.AppendPath(moduleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string moduleName, AutomationAccountModulePatch patch) { var message = _pipeline.CreateMessage(); @@ -385,6 +449,21 @@ public Response Update(string subscriptionId, string resou } } + internal RequestUriBuilder CreateListByAutomationAccountRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName) + { + 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.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/modules", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByAutomationAccountRequest(string subscriptionId, string resourceGroupName, string automationAccountName) { var message = _pipeline.CreateMessage(); @@ -464,6 +543,14 @@ public Response ListByAutomationAccount(string subsc } } + internal RequestUriBuilder CreateListByAutomationAccountNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByAutomationAccountNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/NodeCountInformationRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/NodeCountInformationRestOperations.cs index de26d76067c7..992b428f5878 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/NodeCountInformationRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/NodeCountInformationRestOperations.cs @@ -37,6 +37,22 @@ public NodeCountInformationRestOperations(HttpPipeline pipeline, string applicat _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, AutomationCountType countType) + { + 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.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/nodecounts/", false); + uri.AppendPath(countType.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string automationAccountName, AutomationCountType countType) { var message = _pipeline.CreateMessage(); diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/NodeReportsRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/NodeReportsRestOperations.cs index b072d41c007e..3cbfb0b4a51d 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/NodeReportsRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/NodeReportsRestOperations.cs @@ -37,6 +37,27 @@ public NodeReportsRestOperations(HttpPipeline pipeline, string applicationId, Ur _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByNodeRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string nodeId, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/nodes/", false); + uri.AppendPath(nodeId, true); + uri.AppendPath("/reports", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByNodeRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string nodeId, string filter) { var message = _pipeline.CreateMessage(); @@ -128,6 +149,24 @@ public Response ListByNode(string subscriptionId, strin } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string nodeId, string reportId) + { + 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.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/nodes/", false); + uri.AppendPath(nodeId, true); + uri.AppendPath("/reports/", false); + uri.AppendPath(reportId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string nodeId, string reportId) { var message = _pipeline.CreateMessage(); @@ -218,6 +257,25 @@ public Response Get(string subscriptionId, string resourceGroupNa } } + internal RequestUriBuilder CreateGetContentRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string nodeId, string reportId) + { + 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.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/nodes/", false); + uri.AppendPath(nodeId, true); + uri.AppendPath("/reports/", false); + uri.AppendPath(reportId, true); + uri.AppendPath("/content", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetContentRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string nodeId, string reportId) { var message = _pipeline.CreateMessage(); @@ -307,6 +365,14 @@ public Response GetContent(string subscriptionId, string resourceGro } } + internal RequestUriBuilder CreateListByNodeNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, string nodeId, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByNodeNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, string nodeId, string filter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/ObjectDataTypesRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/ObjectDataTypesRestOperations.cs index a9f1dcd1a258..cd2e73132fec 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/ObjectDataTypesRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/ObjectDataTypesRestOperations.cs @@ -37,6 +37,25 @@ public ObjectDataTypesRestOperations(HttpPipeline pipeline, string applicationId _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListFieldsByModuleAndTypeRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string moduleName, string typeName) + { + 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.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/modules/", false); + uri.AppendPath(moduleName, true); + uri.AppendPath("/objectDataTypes/", false); + uri.AppendPath(typeName, true); + uri.AppendPath("/fields", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListFieldsByModuleAndTypeRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string moduleName, string typeName) { var message = _pipeline.CreateMessage(); @@ -128,6 +147,23 @@ public Response ListFieldsByModuleAndType(strin } } + internal RequestUriBuilder CreateListFieldsByTypeRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string typeName) + { + 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.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/objectDataTypes/", false); + uri.AppendPath(typeName, true); + uri.AppendPath("/fields", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListFieldsByTypeRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string typeName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs index a511f2cad322..fa4de857012f 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs @@ -37,6 +37,21 @@ public PrivateEndpointConnectionsRestOperations(HttpPipeline pipeline, string ap _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByAutomationAccountRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName) + { + 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.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/privateEndpointConnections", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByAutomationAccountRequest(string subscriptionId, string resourceGroupName, string automationAccountName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByAutomationA } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string privateEndpointConnectionName) + { + 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.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string privateEndpointConnectionName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscription } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string privateEndpointConnectionName, AutomationPrivateEndpointConnectionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string privateEndpointConnectionName, AutomationPrivateEndpointConnectionData data) { var message = _pipeline.CreateMessage(); @@ -288,6 +335,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string privateEndpointConnectionName) + { + 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.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string privateEndpointConnectionName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs index 22efd95de23d..673a3e0fc51a 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs @@ -37,6 +37,21 @@ public PrivateLinkResourcesRestOperations(HttpPipeline pipeline, string applicat _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateAutomationRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName) + { + 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.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/privateLinkResources", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateAutomationRequest(string subscriptionId, string resourceGroupName, string automationAccountName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/Python2PackageRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/Python2PackageRestOperations.cs index fa26d06f1a2a..4b2f4417bf3a 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/Python2PackageRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/Python2PackageRestOperations.cs @@ -37,6 +37,22 @@ public Python2PackageRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string packageName) + { + 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.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/python2Packages/", false); + uri.AppendPath(packageName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string packageName) { var message = _pipeline.CreateMessage(); @@ -111,6 +127,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string packageName) + { + 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.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/python2Packages/", false); + uri.AppendPath(packageName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string packageName) { var message = _pipeline.CreateMessage(); @@ -199,6 +231,22 @@ public Response Get(string subscriptionId, string resource } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string packageName, AutomationAccountPython2PackageCreateOrUpdateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/python2Packages/", false); + uri.AppendPath(packageName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string packageName, AutomationAccountPython2PackageCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); @@ -293,6 +341,22 @@ public Response CreateOrUpdate(string subscriptionId, stri } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string packageName, AutomationAccountPython2PackagePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/python2Packages/", false); + uri.AppendPath(packageName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string packageName, AutomationAccountPython2PackagePatch patch) { var message = _pipeline.CreateMessage(); @@ -385,6 +449,21 @@ public Response Update(string subscriptionId, string resou } } + internal RequestUriBuilder CreateListByAutomationAccountRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName) + { + 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.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/python2Packages", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByAutomationAccountRequest(string subscriptionId, string resourceGroupName, string automationAccountName) { var message = _pipeline.CreateMessage(); @@ -464,6 +543,14 @@ public Response ListByAutomationAccount(string subsc } } + internal RequestUriBuilder CreateListByAutomationAccountNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByAutomationAccountNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/RunbookDraftRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/RunbookDraftRestOperations.cs index 44230bd4d3fe..a20c40342d5f 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/RunbookDraftRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/RunbookDraftRestOperations.cs @@ -38,6 +38,23 @@ public RunbookDraftRestOperations(HttpPipeline pipeline, string applicationId, U _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetContentRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string runbookName) + { + 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.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/runbooks/", false); + uri.AppendPath(runbookName, true); + uri.AppendPath("/draft/content", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetContentRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string runbookName) { var message = _pipeline.CreateMessage(); @@ -121,6 +138,23 @@ public Response GetContent(string subscriptionId, string resourceGroupNa } } + internal RequestUriBuilder CreateReplaceContentRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string runbookName, Stream runbookContent) + { + 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.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/runbooks/", false); + uri.AppendPath(runbookName, true); + uri.AppendPath("/draft/content", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + /// Replaces the runbook draft content. /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. /// Name of an Azure Resource group. @@ -179,6 +213,23 @@ public Response ReplaceContent(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string runbookName) + { + 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.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/runbooks/", false); + uri.AppendPath(runbookName, true); + uri.AppendPath("/draft", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string runbookName) { var message = _pipeline.CreateMessage(); @@ -264,6 +315,23 @@ public Response Get(string subscriptionId, string resour } } + internal RequestUriBuilder CreateUndoEditRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string runbookName) + { + 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.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/runbooks/", false); + uri.AppendPath(runbookName, true); + uri.AppendPath("/draft/undoEdit", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUndoEditRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string runbookName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/RunbookRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/RunbookRestOperations.cs index db97ed2c36b9..9c3c8a46521c 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/RunbookRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/RunbookRestOperations.cs @@ -38,6 +38,23 @@ public RunbookRestOperations(HttpPipeline pipeline, string applicationId, Uri en _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreatePublishRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string runbookName) + { + 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.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/runbooks/", false); + uri.AppendPath(runbookName, true); + uri.AppendPath("/publish", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreatePublishRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string runbookName) { var message = _pipeline.CreateMessage(); @@ -113,6 +130,23 @@ public Response Publish(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreateGetContentRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string runbookName) + { + 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.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/runbooks/", false); + uri.AppendPath(runbookName, true); + uri.AppendPath("/content", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetContentRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string runbookName) { var message = _pipeline.CreateMessage(); @@ -196,6 +230,22 @@ public Response GetContent(string subscriptionId, string resourceGroupNa } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string runbookName) + { + 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.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/runbooks/", false); + uri.AppendPath(runbookName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string runbookName) { var message = _pipeline.CreateMessage(); @@ -284,6 +334,22 @@ public Response Get(string subscriptionId, string resourc } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string runbookName, AutomationRunbookCreateOrUpdateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/runbooks/", false); + uri.AppendPath(runbookName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string runbookName, AutomationRunbookCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); @@ -378,6 +444,22 @@ public Response CreateOrUpdate(string subscriptionId, str } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string runbookName, AutomationRunbookPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/runbooks/", false); + uri.AppendPath(runbookName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string runbookName, AutomationRunbookPatch patch) { var message = _pipeline.CreateMessage(); @@ -470,6 +552,22 @@ public Response Update(string subscriptionId, string reso } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string runbookName) + { + 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.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/runbooks/", false); + uri.AppendPath(runbookName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string runbookName) { var message = _pipeline.CreateMessage(); @@ -546,6 +644,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateListByAutomationAccountRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName) + { + 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.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/runbooks", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByAutomationAccountRequest(string subscriptionId, string resourceGroupName, string automationAccountName) { var message = _pipeline.CreateMessage(); @@ -625,6 +738,14 @@ public Response ListByAutomationAccount(string subs } } + internal RequestUriBuilder CreateListByAutomationAccountNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByAutomationAccountNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/ScheduleRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/ScheduleRestOperations.cs index 039481b56683..6567f5c62206 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/ScheduleRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/ScheduleRestOperations.cs @@ -37,6 +37,22 @@ public ScheduleRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string scheduleName, AutomationScheduleCreateOrUpdateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/schedules/", false); + uri.AppendPath(scheduleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string scheduleName, AutomationScheduleCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); @@ -135,6 +151,22 @@ public Response CreateOrUpdate(string subscriptionId, st } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string scheduleName, AutomationSchedulePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/schedules/", false); + uri.AppendPath(scheduleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string scheduleName, AutomationSchedulePatch patch) { var message = _pipeline.CreateMessage(); @@ -227,6 +259,22 @@ public Response Update(string subscriptionId, string res } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string scheduleName) + { + 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.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/schedules/", false); + uri.AppendPath(scheduleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string scheduleName) { var message = _pipeline.CreateMessage(); @@ -315,6 +363,22 @@ public Response Get(string subscriptionId, string resour } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string scheduleName) + { + 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.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/schedules/", false); + uri.AppendPath(scheduleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string scheduleName) { var message = _pipeline.CreateMessage(); @@ -389,6 +453,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateListByAutomationAccountRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName) + { + 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.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/schedules", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByAutomationAccountRequest(string subscriptionId, string resourceGroupName, string automationAccountName) { var message = _pipeline.CreateMessage(); @@ -468,6 +547,14 @@ public Response ListByAutomationAccount(string sub } } + internal RequestUriBuilder CreateListByAutomationAccountNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByAutomationAccountNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/SoftwareUpdateConfigurationMachineRunsRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/SoftwareUpdateConfigurationMachineRunsRestOperations.cs index 8419a29e66b9..1190a64b9f6c 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/SoftwareUpdateConfigurationMachineRunsRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/SoftwareUpdateConfigurationMachineRunsRestOperations.cs @@ -37,6 +37,22 @@ public SoftwareUpdateConfigurationMachineRunsRestOperations(HttpPipeline pipelin _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetByIdRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, Guid softwareUpdateConfigurationMachineRunId, string clientRequestId) + { + 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.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/softwareUpdateConfigurationMachineRuns/", false); + uri.AppendPath(softwareUpdateConfigurationMachineRunId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetByIdRequest(string subscriptionId, string resourceGroupName, string automationAccountName, Guid softwareUpdateConfigurationMachineRunId, string clientRequestId) { var message = _pipeline.CreateMessage(); @@ -125,6 +141,33 @@ public Response GetById(string subscripti } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string clientRequestId, string filter, string skip, string top) + { + 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.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/softwareUpdateConfigurationMachineRuns", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (skip != null) + { + uri.AppendQuery("$skip", skip, true); + } + if (top != null) + { + uri.AppendQuery("$top", top, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string clientRequestId, string filter, string skip, string top) { var message = _pipeline.CreateMessage(); diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/SoftwareUpdateConfigurationRunsRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/SoftwareUpdateConfigurationRunsRestOperations.cs index ebdabc7b11e0..c68338b5e3c0 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/SoftwareUpdateConfigurationRunsRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/SoftwareUpdateConfigurationRunsRestOperations.cs @@ -37,6 +37,22 @@ public SoftwareUpdateConfigurationRunsRestOperations(HttpPipeline pipeline, stri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetByIdRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, Guid softwareUpdateConfigurationRunId, string clientRequestId) + { + 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.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/softwareUpdateConfigurationRuns/", false); + uri.AppendPath(softwareUpdateConfigurationRunId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetByIdRequest(string subscriptionId, string resourceGroupName, string automationAccountName, Guid softwareUpdateConfigurationRunId, string clientRequestId) { var message = _pipeline.CreateMessage(); @@ -125,6 +141,33 @@ public Response GetById(string subscriptionId, s } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string clientRequestId, string filter, string skip, string top) + { + 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.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/softwareUpdateConfigurationRuns", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (skip != null) + { + uri.AppendQuery("$skip", skip, true); + } + if (top != null) + { + uri.AppendQuery("$top", top, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string clientRequestId, string filter, string skip, string top) { var message = _pipeline.CreateMessage(); diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/SoftwareUpdateConfigurationsRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/SoftwareUpdateConfigurationsRestOperations.cs index 6fde91c078e6..baf699fe9aa1 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/SoftwareUpdateConfigurationsRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/SoftwareUpdateConfigurationsRestOperations.cs @@ -37,6 +37,22 @@ public SoftwareUpdateConfigurationsRestOperations(HttpPipeline pipeline, string _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string softwareUpdateConfigurationName, SoftwareUpdateConfigurationData data, string clientRequestId) + { + 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.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/softwareUpdateConfigurations/", false); + uri.AppendPath(softwareUpdateConfigurationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string softwareUpdateConfigurationName, SoftwareUpdateConfigurationData data, string clientRequestId) { var message = _pipeline.CreateMessage(); @@ -137,6 +153,22 @@ public Response Create(string subscriptionId, s } } + internal RequestUriBuilder CreateGetByNameRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string softwareUpdateConfigurationName, string clientRequestId) + { + 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.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/softwareUpdateConfigurations/", false); + uri.AppendPath(softwareUpdateConfigurationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetByNameRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string softwareUpdateConfigurationName, string clientRequestId) { var message = _pipeline.CreateMessage(); @@ -231,6 +263,22 @@ public Response GetByName(string subscriptionId } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string softwareUpdateConfigurationName, string clientRequestId) + { + 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.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/softwareUpdateConfigurations/", false); + uri.AppendPath(softwareUpdateConfigurationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string softwareUpdateConfigurationName, string clientRequestId) { var message = _pipeline.CreateMessage(); @@ -313,6 +361,25 @@ public Response Delete(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string clientRequestId, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/softwareUpdateConfigurations", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string clientRequestId, string filter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/SourceControlRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/SourceControlRestOperations.cs index 4c088b7c4aca..5ebfa57a8f13 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/SourceControlRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/SourceControlRestOperations.cs @@ -37,6 +37,22 @@ public SourceControlRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string sourceControlName, AutomationSourceControlCreateOrUpdateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/sourceControls/", false); + uri.AppendPath(sourceControlName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string sourceControlName, AutomationSourceControlCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); @@ -131,6 +147,22 @@ public Response CreateOrUpdate(string subscriptionI } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string sourceControlName, AutomationSourceControlPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/sourceControls/", false); + uri.AppendPath(sourceControlName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string sourceControlName, AutomationSourceControlPatch patch) { var message = _pipeline.CreateMessage(); @@ -223,6 +255,22 @@ public Response Update(string subscriptionId, strin } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string sourceControlName) + { + 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.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/sourceControls/", false); + uri.AppendPath(sourceControlName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string sourceControlName) { var message = _pipeline.CreateMessage(); @@ -297,6 +345,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string sourceControlName) + { + 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.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/sourceControls/", false); + uri.AppendPath(sourceControlName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string sourceControlName) { var message = _pipeline.CreateMessage(); @@ -385,6 +449,25 @@ public Response Get(string subscriptionId, string r } } + internal RequestUriBuilder CreateListByAutomationAccountRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/sourceControls", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByAutomationAccountRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string filter) { var message = _pipeline.CreateMessage(); @@ -470,6 +553,14 @@ public Response ListByAutomationAccount(strin } } + internal RequestUriBuilder CreateListByAutomationAccountNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByAutomationAccountNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, string filter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/SourceControlSyncJobRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/SourceControlSyncJobRestOperations.cs index f61bf8c8d445..0c427c6423f2 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/SourceControlSyncJobRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/SourceControlSyncJobRestOperations.cs @@ -37,6 +37,24 @@ public SourceControlSyncJobRestOperations(HttpPipeline pipeline, string applicat _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string sourceControlName, Guid sourceControlSyncJobId, SourceControlSyncJobCreateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/sourceControls/", false); + uri.AppendPath(sourceControlName, true); + uri.AppendPath("/sourceControlSyncJobs/", false); + uri.AppendPath(sourceControlSyncJobId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string sourceControlName, Guid sourceControlSyncJobId, SourceControlSyncJobCreateContent content) { var message = _pipeline.CreateMessage(); @@ -133,6 +151,24 @@ public Response Create(string subscriptionId, string resou } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string sourceControlName, Guid sourceControlSyncJobId) + { + 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.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/sourceControls/", false); + uri.AppendPath(sourceControlName, true); + uri.AppendPath("/sourceControlSyncJobs/", false); + uri.AppendPath(sourceControlSyncJobId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string sourceControlName, Guid sourceControlSyncJobId) { var message = _pipeline.CreateMessage(); @@ -221,6 +257,27 @@ public Response Get(string subscriptionId, string re } } + internal RequestUriBuilder CreateListByAutomationAccountRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string sourceControlName, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/sourceControls/", false); + uri.AppendPath(sourceControlName, true); + uri.AppendPath("/sourceControlSyncJobs", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByAutomationAccountRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string sourceControlName, string filter) { var message = _pipeline.CreateMessage(); @@ -312,6 +369,14 @@ public Response ListByAutomationAccount(string s } } + internal RequestUriBuilder CreateListByAutomationAccountNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, string sourceControlName, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByAutomationAccountNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, string sourceControlName, string filter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/SourceControlSyncJobStreamsRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/SourceControlSyncJobStreamsRestOperations.cs index d0155cca6751..c61e00d0b16a 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/SourceControlSyncJobStreamsRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/SourceControlSyncJobStreamsRestOperations.cs @@ -37,6 +37,29 @@ public SourceControlSyncJobStreamsRestOperations(HttpPipeline pipeline, string a _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListBySyncJobRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string sourceControlName, Guid sourceControlSyncJobId, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/sourceControls/", false); + uri.AppendPath(sourceControlName, true); + uri.AppendPath("/sourceControlSyncJobs/", false); + uri.AppendPath(sourceControlSyncJobId, true); + uri.AppendPath("/streams", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySyncJobRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string sourceControlName, Guid sourceControlSyncJobId, string filter) { var message = _pipeline.CreateMessage(); @@ -132,6 +155,26 @@ public Response ListBySyncJob(string subsc } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string sourceControlName, Guid sourceControlSyncJobId, string streamId) + { + 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.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/sourceControls/", false); + uri.AppendPath(sourceControlName, true); + uri.AppendPath("/sourceControlSyncJobs/", false); + uri.AppendPath(sourceControlSyncJobId, true); + uri.AppendPath("/streams/", false); + uri.AppendPath(streamId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string sourceControlName, Guid sourceControlSyncJobId, string streamId) { var message = _pipeline.CreateMessage(); @@ -226,6 +269,14 @@ public Response Get(string subscriptionId, str } } + internal RequestUriBuilder CreateListBySyncJobNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, string sourceControlName, Guid sourceControlSyncJobId, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySyncJobNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, string sourceControlName, Guid sourceControlSyncJobId, string filter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/StatisticsRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/StatisticsRestOperations.cs index 0b19c3b3b5f9..3b51df0902f0 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/StatisticsRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/StatisticsRestOperations.cs @@ -37,6 +37,25 @@ public StatisticsRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByAutomationAccountRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/statistics", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByAutomationAccountRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string filter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/TestJobRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/TestJobRestOperations.cs index e051e18faf2d..66ea59e93ef8 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/TestJobRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/TestJobRestOperations.cs @@ -37,6 +37,23 @@ public TestJobRestOperations(HttpPipeline pipeline, string applicationId, Uri en _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string runbookName, RunbookTestJobCreateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/runbooks/", false); + uri.AppendPath(runbookName, true); + uri.AppendPath("/draft/testJob", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string runbookName, RunbookTestJobCreateContent content) { var message = _pipeline.CreateMessage(); @@ -130,6 +147,23 @@ public Response Create(string subscriptionId, string resourceGro } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string runbookName) + { + 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.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/runbooks/", false); + uri.AppendPath(runbookName, true); + uri.AppendPath("/draft/testJob", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string runbookName) { var message = _pipeline.CreateMessage(); @@ -215,6 +249,23 @@ public Response Get(string subscriptionId, string resourceGroupN } } + internal RequestUriBuilder CreateResumeRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string runbookName) + { + 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.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/runbooks/", false); + uri.AppendPath(runbookName, true); + uri.AppendPath("/draft/testJob/resume", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateResumeRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string runbookName) { var message = _pipeline.CreateMessage(); @@ -290,6 +341,23 @@ public Response Resume(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateStopRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string runbookName) + { + 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.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/runbooks/", false); + uri.AppendPath(runbookName, true); + uri.AppendPath("/draft/testJob/stop", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStopRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string runbookName) { var message = _pipeline.CreateMessage(); @@ -365,6 +433,23 @@ public Response Stop(string subscriptionId, string resourceGroupName, string aut } } + internal RequestUriBuilder CreateSuspendRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string runbookName) + { + 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.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/runbooks/", false); + uri.AppendPath(runbookName, true); + uri.AppendPath("/draft/testJob/suspend", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateSuspendRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string runbookName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/TestJobStreamsRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/TestJobStreamsRestOperations.cs index 4f02c96457fd..a8d9b2686c0d 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/TestJobStreamsRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/TestJobStreamsRestOperations.cs @@ -37,6 +37,24 @@ public TestJobStreamsRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string runbookName, string jobStreamId) + { + 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.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/runbooks/", false); + uri.AppendPath(runbookName, true); + uri.AppendPath("/draft/testJob/streams/", false); + uri.AppendPath(jobStreamId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string runbookName, string jobStreamId) { var message = _pipeline.CreateMessage(); @@ -127,6 +145,27 @@ public Response Get(string subscriptionId, string resourceG } } + internal RequestUriBuilder CreateListByTestJobRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string runbookName, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/runbooks/", false); + uri.AppendPath(runbookName, true); + uri.AppendPath("/draft/testJob/streams", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByTestJobRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string runbookName, string filter) { var message = _pipeline.CreateMessage(); @@ -218,6 +257,14 @@ public Response ListByTestJob(string subscription } } + internal RequestUriBuilder CreateListByTestJobNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, string runbookName, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByTestJobNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, string runbookName, string filter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/UsagesRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/UsagesRestOperations.cs index 6e617a03bf32..849d29afb823 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/UsagesRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/UsagesRestOperations.cs @@ -37,6 +37,21 @@ public UsagesRestOperations(HttpPipeline pipeline, string applicationId, Uri end _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByAutomationAccountRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName) + { + 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.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/usages", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByAutomationAccountRequest(string subscriptionId, string resourceGroupName, string automationAccountName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/VariableRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/VariableRestOperations.cs index 070768c9cc0f..c729df053035 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/VariableRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/VariableRestOperations.cs @@ -37,6 +37,22 @@ public VariableRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string variableName, AutomationVariableCreateOrUpdateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/variables/", false); + uri.AppendPath(variableName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string variableName, AutomationVariableCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); @@ -131,6 +147,22 @@ public Response CreateOrUpdate(string subscriptionId, st } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string variableName, AutomationVariablePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/variables/", false); + uri.AppendPath(variableName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string variableName, AutomationVariablePatch patch) { var message = _pipeline.CreateMessage(); @@ -223,6 +255,22 @@ public Response Update(string subscriptionId, string res } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string variableName) + { + 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.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/variables/", false); + uri.AppendPath(variableName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string variableName) { var message = _pipeline.CreateMessage(); @@ -297,6 +345,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string variableName) + { + 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.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/variables/", false); + uri.AppendPath(variableName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string variableName) { var message = _pipeline.CreateMessage(); @@ -385,6 +449,21 @@ public Response Get(string subscriptionId, string resour } } + internal RequestUriBuilder CreateListByAutomationAccountRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName) + { + 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.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/variables", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByAutomationAccountRequest(string subscriptionId, string resourceGroupName, string automationAccountName) { var message = _pipeline.CreateMessage(); @@ -464,6 +543,14 @@ public Response ListByAutomationAccount(string sub } } + internal RequestUriBuilder CreateListByAutomationAccountNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByAutomationAccountNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/WatcherRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/WatcherRestOperations.cs index 57f377785a97..b0a39f7fc788 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/WatcherRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/WatcherRestOperations.cs @@ -37,6 +37,22 @@ public WatcherRestOperations(HttpPipeline pipeline, string applicationId, Uri en _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string watcherName, AutomationWatcherData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/watchers/", false); + uri.AppendPath(watcherName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string watcherName, AutomationWatcherData data) { var message = _pipeline.CreateMessage(); @@ -131,6 +147,22 @@ public Response CreateOrUpdate(string subscriptionId, str } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string watcherName) + { + 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.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/watchers/", false); + uri.AppendPath(watcherName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string watcherName) { var message = _pipeline.CreateMessage(); @@ -219,6 +251,22 @@ public Response Get(string subscriptionId, string resourc } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string watcherName, AutomationWatcherPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/watchers/", false); + uri.AppendPath(watcherName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string watcherName, AutomationWatcherPatch patch) { var message = _pipeline.CreateMessage(); @@ -311,6 +359,22 @@ public Response Update(string subscriptionId, string reso } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string watcherName) + { + 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.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/watchers/", false); + uri.AppendPath(watcherName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string watcherName) { var message = _pipeline.CreateMessage(); @@ -385,6 +449,23 @@ public Response Delete(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateStartRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string watcherName) + { + 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.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/watchers/", false); + uri.AppendPath(watcherName, true); + uri.AppendPath("/start", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStartRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string watcherName) { var message = _pipeline.CreateMessage(); @@ -460,6 +541,23 @@ public Response Start(string subscriptionId, string resourceGroupName, string au } } + internal RequestUriBuilder CreateStopRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string watcherName) + { + 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.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/watchers/", false); + uri.AppendPath(watcherName, true); + uri.AppendPath("/stop", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStopRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string watcherName) { var message = _pipeline.CreateMessage(); @@ -535,6 +633,25 @@ public Response Stop(string subscriptionId, string resourceGroupName, string aut } } + internal RequestUriBuilder CreateListByAutomationAccountRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/watchers", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByAutomationAccountRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string filter) { var message = _pipeline.CreateMessage(); @@ -620,6 +737,14 @@ public Response ListByAutomationAccount(string subs } } + internal RequestUriBuilder CreateListByAutomationAccountNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByAutomationAccountNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, string filter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/WebhookRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/WebhookRestOperations.cs index 1fc18b8f9d58..12377ceffd7e 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/WebhookRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/WebhookRestOperations.cs @@ -37,6 +37,21 @@ public WebhookRestOperations(HttpPipeline pipeline, string applicationId, Uri en _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGenerateUriRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName) + { + 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.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/webhooks/generateUri", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGenerateUriRequest(string subscriptionId, string resourceGroupName, string automationAccountName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response GenerateUri(string subscriptionId, string resourceGroupN } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string webhookName) + { + 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.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/webhooks/", false); + uri.AppendPath(webhookName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string webhookName) { var message = _pipeline.CreateMessage(); @@ -190,6 +221,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string webhookName) + { + 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.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/webhooks/", false); + uri.AppendPath(webhookName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string webhookName) { var message = _pipeline.CreateMessage(); @@ -278,6 +325,22 @@ public Response Get(string subscriptionId, string resourc } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string webhookName, AutomationWebhookCreateOrUpdateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/webhooks/", false); + uri.AppendPath(webhookName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string webhookName, AutomationWebhookCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); @@ -372,6 +435,22 @@ public Response CreateOrUpdate(string subscriptionId, str } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string webhookName, AutomationWebhookPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/webhooks/", false); + uri.AppendPath(webhookName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string webhookName, AutomationWebhookPatch patch) { var message = _pipeline.CreateMessage(); @@ -464,6 +543,25 @@ public Response Update(string subscriptionId, string reso } } + internal RequestUriBuilder CreateListByAutomationAccountRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/webhooks", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByAutomationAccountRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string filter) { var message = _pipeline.CreateMessage(); @@ -549,6 +647,14 @@ public Response ListByAutomationAccount(string subs } } + internal RequestUriBuilder CreateListByAutomationAccountNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByAutomationAccountNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, string filter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/SoftwareUpdateConfigurationCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/SoftwareUpdateConfigurationCollection.cs index 29b722db245c..5ef7588af086 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/SoftwareUpdateConfigurationCollection.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/SoftwareUpdateConfigurationCollection.cs @@ -92,7 +92,9 @@ public virtual async Task> Cre try { var response = await _softwareUpdateConfigurationRestClient.CreateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, softwareUpdateConfigurationName, data, clientRequestId, cancellationToken).ConfigureAwait(false); - var operation = new AutomationArmOperation(Response.FromValue(new SoftwareUpdateConfigurationResource(Client, response), response.GetRawResponse())); + var uri = _softwareUpdateConfigurationRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, softwareUpdateConfigurationName, data, clientRequestId); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomationArmOperation(Response.FromValue(new SoftwareUpdateConfigurationResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -142,7 +144,9 @@ public virtual ArmOperation CreateOrUpdate( try { var response = _softwareUpdateConfigurationRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, softwareUpdateConfigurationName, data, clientRequestId, cancellationToken); - var operation = new AutomationArmOperation(Response.FromValue(new SoftwareUpdateConfigurationResource(Client, response), response.GetRawResponse())); + var uri = _softwareUpdateConfigurationRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, softwareUpdateConfigurationName, data, clientRequestId); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomationArmOperation(Response.FromValue(new SoftwareUpdateConfigurationResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/SoftwareUpdateConfigurationResource.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/SoftwareUpdateConfigurationResource.cs index fec0370293ba..e9872465e297 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/SoftwareUpdateConfigurationResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/SoftwareUpdateConfigurationResource.cs @@ -203,7 +203,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, string try { var response = await _softwareUpdateConfigurationRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, clientRequestId, cancellationToken).ConfigureAwait(false); - var operation = new AutomationArmOperation(response); + var uri = _softwareUpdateConfigurationRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, clientRequestId); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomationArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -246,7 +248,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, string clientRequestId = try { var response = _softwareUpdateConfigurationRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, clientRequestId, cancellationToken); - var operation = new AutomationArmOperation(response); + var uri = _softwareUpdateConfigurationRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, clientRequestId); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomationArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -293,7 +297,9 @@ public virtual async Task> Upd try { var response = await _softwareUpdateConfigurationRestClient.CreateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, clientRequestId, cancellationToken).ConfigureAwait(false); - var operation = new AutomationArmOperation(Response.FromValue(new SoftwareUpdateConfigurationResource(Client, response), response.GetRawResponse())); + var uri = _softwareUpdateConfigurationRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, clientRequestId); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomationArmOperation(Response.FromValue(new SoftwareUpdateConfigurationResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -340,7 +346,9 @@ public virtual ArmOperation Update(WaitUnti try { var response = _softwareUpdateConfigurationRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, clientRequestId, cancellationToken); - var operation = new AutomationArmOperation(Response.FromValue(new SoftwareUpdateConfigurationResource(Client, response), response.GetRawResponse())); + var uri = _softwareUpdateConfigurationRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, clientRequestId); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomationArmOperation(Response.FromValue(new SoftwareUpdateConfigurationResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/HcxEnterpriseSiteCollection.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/HcxEnterpriseSiteCollection.cs index 799a9a234446..c143eb63331d 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/HcxEnterpriseSiteCollection.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/HcxEnterpriseSiteCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> CreateOrUpdat try { var response = await _hcxEnterpriseSiteRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, hcxEnterpriseSiteName, data, cancellationToken).ConfigureAwait(false); - var operation = new AvsArmOperation(Response.FromValue(new HcxEnterpriseSiteResource(Client, response), response.GetRawResponse())); + var uri = _hcxEnterpriseSiteRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, hcxEnterpriseSiteName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AvsArmOperation(Response.FromValue(new HcxEnterpriseSiteResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil try { var response = _hcxEnterpriseSiteRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, hcxEnterpriseSiteName, data, cancellationToken); - var operation = new AvsArmOperation(Response.FromValue(new HcxEnterpriseSiteResource(Client, response), response.GetRawResponse())); + var uri = _hcxEnterpriseSiteRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, hcxEnterpriseSiteName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AvsArmOperation(Response.FromValue(new HcxEnterpriseSiteResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/HcxEnterpriseSiteResource.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/HcxEnterpriseSiteResource.cs index 165e06b168f0..80f0a13acceb 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/HcxEnterpriseSiteResource.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/HcxEnterpriseSiteResource.cs @@ -200,7 +200,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _hcxEnterpriseSiteRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new AvsArmOperation(response); + var uri = _hcxEnterpriseSiteRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AvsArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -242,7 +244,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _hcxEnterpriseSiteRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new AvsArmOperation(response); + var uri = _hcxEnterpriseSiteRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AvsArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -288,7 +292,9 @@ public virtual async Task> UpdateAsync(W try { var response = await _hcxEnterpriseSiteRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new AvsArmOperation(Response.FromValue(new HcxEnterpriseSiteResource(Client, response), response.GetRawResponse())); + var uri = _hcxEnterpriseSiteRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AvsArmOperation(Response.FromValue(new HcxEnterpriseSiteResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -334,7 +340,9 @@ public virtual ArmOperation Update(WaitUntil waitUnti try { var response = _hcxEnterpriseSiteRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new AvsArmOperation(Response.FromValue(new HcxEnterpriseSiteResource(Client, response), response.GetRawResponse())); + var uri = _hcxEnterpriseSiteRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AvsArmOperation(Response.FromValue(new HcxEnterpriseSiteResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/LongRunningOperation/AvsArmOperation.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/LongRunningOperation/AvsArmOperation.cs index 84092529d7eb..f459e8135d9e 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/LongRunningOperation/AvsArmOperation.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/LongRunningOperation/AvsArmOperation.cs @@ -20,21 +20,24 @@ internal class AvsArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of AvsArmOperation for mocking. protected AvsArmOperation() { } - internal AvsArmOperation(Response response) + internal AvsArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal AvsArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "AvsArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal AvsArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipel public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/LongRunningOperation/AvsArmOperationOfT.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/LongRunningOperation/AvsArmOperationOfT.cs index db510fd64786..c228c8c9784e 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/LongRunningOperation/AvsArmOperationOfT.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/LongRunningOperation/AvsArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class AvsArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of AvsArmOperation for mocking. protected AvsArmOperation() { } - internal AvsArmOperation(Response response) + internal AvsArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal AvsArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "AvsArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal AvsArmOperation(IOperationSource source, ClientDiagnostics clientDia public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsCloudLinkResource.Serialization.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsCloudLinkResource.Serialization.cs new file mode 100644 index 000000000000..ae5b875ac3e9 --- /dev/null +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsCloudLinkResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Avs +{ + public partial class AvsCloudLinkResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + AvsCloudLinkData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + AvsCloudLinkData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsPrivateCloudAddonResource.Serialization.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsPrivateCloudAddonResource.Serialization.cs new file mode 100644 index 000000000000..cc2ac588f3b0 --- /dev/null +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsPrivateCloudAddonResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Avs +{ + public partial class AvsPrivateCloudAddonResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + AvsPrivateCloudAddonData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + AvsPrivateCloudAddonData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsPrivateCloudClusterResource.Serialization.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsPrivateCloudClusterResource.Serialization.cs new file mode 100644 index 000000000000..f9625a10e33f --- /dev/null +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsPrivateCloudClusterResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Avs +{ + public partial class AvsPrivateCloudClusterResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + AvsPrivateCloudClusterData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + AvsPrivateCloudClusterData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsPrivateCloudClusterVirtualMachineResource.Serialization.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsPrivateCloudClusterVirtualMachineResource.Serialization.cs new file mode 100644 index 000000000000..4921a59eda93 --- /dev/null +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsPrivateCloudClusterVirtualMachineResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Avs +{ + public partial class AvsPrivateCloudClusterVirtualMachineResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + AvsPrivateCloudClusterVirtualMachineData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + AvsPrivateCloudClusterVirtualMachineData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsPrivateCloudDatastoreResource.Serialization.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsPrivateCloudDatastoreResource.Serialization.cs new file mode 100644 index 000000000000..bd4c786c1ce5 --- /dev/null +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsPrivateCloudDatastoreResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Avs +{ + public partial class AvsPrivateCloudDatastoreResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + AvsPrivateCloudDatastoreData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + AvsPrivateCloudDatastoreData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsPrivateCloudResource.Serialization.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsPrivateCloudResource.Serialization.cs new file mode 100644 index 000000000000..30ae082c1a7d --- /dev/null +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsPrivateCloudResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Avs +{ + public partial class AvsPrivateCloudResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + AvsPrivateCloudData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + AvsPrivateCloudData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ExpressRouteAuthorizationResource.Serialization.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ExpressRouteAuthorizationResource.Serialization.cs new file mode 100644 index 000000000000..167a26d29f82 --- /dev/null +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ExpressRouteAuthorizationResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Avs +{ + public partial class ExpressRouteAuthorizationResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ExpressRouteAuthorizationData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ExpressRouteAuthorizationData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/GlobalReachConnectionResource.Serialization.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/GlobalReachConnectionResource.Serialization.cs new file mode 100644 index 000000000000..c834f0e95e2f --- /dev/null +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/GlobalReachConnectionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Avs +{ + public partial class GlobalReachConnectionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + GlobalReachConnectionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + GlobalReachConnectionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/HcxEnterpriseSiteResource.Serialization.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/HcxEnterpriseSiteResource.Serialization.cs new file mode 100644 index 000000000000..83cca24fe16d --- /dev/null +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/HcxEnterpriseSiteResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Avs +{ + public partial class HcxEnterpriseSiteResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + HcxEnterpriseSiteData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + HcxEnterpriseSiteData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/PlacementPolicyResource.Serialization.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/PlacementPolicyResource.Serialization.cs new file mode 100644 index 000000000000..a024d4368bb5 --- /dev/null +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/PlacementPolicyResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Avs +{ + public partial class PlacementPolicyResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + PlacementPolicyData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + PlacementPolicyData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ScriptCmdletResource.Serialization.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ScriptCmdletResource.Serialization.cs new file mode 100644 index 000000000000..c1270e80a3ce --- /dev/null +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ScriptCmdletResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Avs +{ + public partial class ScriptCmdletResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ScriptCmdletData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ScriptCmdletData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ScriptExecutionResource.Serialization.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ScriptExecutionResource.Serialization.cs new file mode 100644 index 000000000000..dd4165b30f35 --- /dev/null +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ScriptExecutionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Avs +{ + public partial class ScriptExecutionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ScriptExecutionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ScriptExecutionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ScriptPackageResource.Serialization.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ScriptPackageResource.Serialization.cs new file mode 100644 index 000000000000..ce3d0c976361 --- /dev/null +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ScriptPackageResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Avs +{ + public partial class ScriptPackageResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ScriptPackageData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ScriptPackageData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkDhcpResource.Serialization.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkDhcpResource.Serialization.cs new file mode 100644 index 000000000000..9b4a64728a8f --- /dev/null +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkDhcpResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Avs +{ + public partial class WorkloadNetworkDhcpResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + WorkloadNetworkDhcpData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + WorkloadNetworkDhcpData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkDnsServiceResource.Serialization.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkDnsServiceResource.Serialization.cs new file mode 100644 index 000000000000..8d2a43a4db02 --- /dev/null +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkDnsServiceResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Avs +{ + public partial class WorkloadNetworkDnsServiceResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + WorkloadNetworkDnsServiceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + WorkloadNetworkDnsServiceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkDnsZoneResource.Serialization.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkDnsZoneResource.Serialization.cs new file mode 100644 index 000000000000..c72fe678a3e2 --- /dev/null +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkDnsZoneResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Avs +{ + public partial class WorkloadNetworkDnsZoneResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + WorkloadNetworkDnsZoneData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + WorkloadNetworkDnsZoneData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkGatewayResource.Serialization.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkGatewayResource.Serialization.cs new file mode 100644 index 000000000000..9f7aacc4ce09 --- /dev/null +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkGatewayResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Avs +{ + public partial class WorkloadNetworkGatewayResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + WorkloadNetworkGatewayData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + WorkloadNetworkGatewayData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkPortMirroringProfileResource.Serialization.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkPortMirroringProfileResource.Serialization.cs new file mode 100644 index 000000000000..f46664f66c88 --- /dev/null +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkPortMirroringProfileResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Avs +{ + public partial class WorkloadNetworkPortMirroringProfileResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + WorkloadNetworkPortMirroringProfileData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + WorkloadNetworkPortMirroringProfileData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkPublicIPResource.Serialization.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkPublicIPResource.Serialization.cs new file mode 100644 index 000000000000..92604b26ce80 --- /dev/null +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkPublicIPResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Avs +{ + public partial class WorkloadNetworkPublicIPResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + WorkloadNetworkPublicIPData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + WorkloadNetworkPublicIPData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkResource.Serialization.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkResource.Serialization.cs new file mode 100644 index 000000000000..82628e567dc3 --- /dev/null +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Avs +{ + public partial class WorkloadNetworkResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + WorkloadNetworkData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + WorkloadNetworkData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkSegmentResource.Serialization.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkSegmentResource.Serialization.cs new file mode 100644 index 000000000000..cc286e8bbd3b --- /dev/null +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkSegmentResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Avs +{ + public partial class WorkloadNetworkSegmentResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + WorkloadNetworkSegmentData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + WorkloadNetworkSegmentData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkVirtualMachineResource.Serialization.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkVirtualMachineResource.Serialization.cs new file mode 100644 index 000000000000..08ac9ac1e4b2 --- /dev/null +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkVirtualMachineResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Avs +{ + public partial class WorkloadNetworkVirtualMachineResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + WorkloadNetworkVirtualMachineData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + WorkloadNetworkVirtualMachineData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkVmGroupResource.Serialization.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkVmGroupResource.Serialization.cs new file mode 100644 index 000000000000..20ec1df34d13 --- /dev/null +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkVmGroupResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Avs +{ + public partial class WorkloadNetworkVmGroupResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + WorkloadNetworkVmGroupData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + WorkloadNetworkVmGroupData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/AddonsRestOperations.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/AddonsRestOperations.cs index f739a6a2a794..483c731b9daa 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/AddonsRestOperations.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/AddonsRestOperations.cs @@ -37,6 +37,21 @@ public AddonsRestOperations(HttpPipeline pipeline, string applicationId, Uri end _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName) + { + 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("/addons", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string privateCloudName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response List(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string addonName) + { + 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("/addons/", false); + uri.AppendPath(addonName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string addonName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscriptionId, string reso } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string addonName, AvsPrivateCloudAddonData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false); + uri.AppendPath(privateCloudName, true); + uri.AppendPath("/addons/", false); + uri.AppendPath(addonName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string addonName, AvsPrivateCloudAddonData data) { var message = _pipeline.CreateMessage(); @@ -288,6 +335,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string addonName) + { + 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("/addons/", false); + uri.AppendPath(addonName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string addonName) { var message = _pipeline.CreateMessage(); @@ -366,6 +429,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string p } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string privateCloudName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string privateCloudName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/AuthorizationsRestOperations.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/AuthorizationsRestOperations.cs index 944f540f2160..1eb267f3d597 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/AuthorizationsRestOperations.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/AuthorizationsRestOperations.cs @@ -37,6 +37,21 @@ public AuthorizationsRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName) + { + 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("/authorizations", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string privateCloudName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response List(string subscriptionId, strin } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string authorizationName) + { + 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("/authorizations/", false); + uri.AppendPath(authorizationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string authorizationName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscriptionId, string } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string authorizationName, ExpressRouteAuthorizationData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false); + uri.AppendPath(privateCloudName, true); + uri.AppendPath("/authorizations/", false); + uri.AppendPath(authorizationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string authorizationName, ExpressRouteAuthorizationData data) { var message = _pipeline.CreateMessage(); @@ -288,6 +335,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string authorizationName) + { + 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("/authorizations/", false); + uri.AppendPath(authorizationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string authorizationName) { var message = _pipeline.CreateMessage(); @@ -366,6 +429,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string p } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string privateCloudName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string privateCloudName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/CloudLinksRestOperations.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/CloudLinksRestOperations.cs index b90a1bd32480..355d0d5ddfb9 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/CloudLinksRestOperations.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/CloudLinksRestOperations.cs @@ -37,6 +37,21 @@ public CloudLinksRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName) + { + 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("/cloudLinks", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string privateCloudName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response List(string subscriptionId, string resourceGroupN } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string cloudLinkName) + { + 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("/cloudLinks/", false); + uri.AppendPath(cloudLinkName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string cloudLinkName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscriptionId, string resourceGrou } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string cloudLinkName, AvsCloudLinkData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false); + uri.AppendPath(privateCloudName, true); + uri.AppendPath("/cloudLinks/", false); + uri.AppendPath(cloudLinkName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string cloudLinkName, AvsCloudLinkData data) { var message = _pipeline.CreateMessage(); @@ -288,6 +335,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string cloudLinkName) + { + 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("/cloudLinks/", false); + uri.AppendPath(cloudLinkName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string cloudLinkName) { var message = _pipeline.CreateMessage(); @@ -366,6 +429,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string p } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string privateCloudName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string privateCloudName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/ClustersRestOperations.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/ClustersRestOperations.cs index 05aefaaa8878..2308571da499 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/ClustersRestOperations.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/ClustersRestOperations.cs @@ -37,6 +37,21 @@ public ClustersRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName) + { + 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("/clusters", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string privateCloudName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response List(string subscriptionId, string resourceGroupNam } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string clusterName) + { + 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("/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string clusterName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscriptionId, string re } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string clusterName, AvsPrivateCloudClusterData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false); + uri.AppendPath(privateCloudName, true); + uri.AppendPath("/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string clusterName, AvsPrivateCloudClusterData data) { var message = _pipeline.CreateMessage(); @@ -288,6 +335,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string clusterName, AvsPrivateCloudClusterPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false); + uri.AppendPath(privateCloudName, true); + uri.AppendPath("/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string clusterName, AvsPrivateCloudClusterPatch patch) { var message = _pipeline.CreateMessage(); @@ -372,6 +435,22 @@ public Response Update(string subscriptionId, string resourceGroupName, string p } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string clusterName) + { + 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("/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string clusterName) { var message = _pipeline.CreateMessage(); @@ -450,6 +529,23 @@ public Response Delete(string subscriptionId, string resourceGroupName, string p } } + internal RequestUriBuilder CreateListZonesRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string clusterName) + { + 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("/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/listZones", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListZonesRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string clusterName) { var message = _pipeline.CreateMessage(); @@ -535,6 +631,14 @@ public Response ListZones(string subscriptionId, string resourc } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string privateCloudName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string privateCloudName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/DatastoresRestOperations.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/DatastoresRestOperations.cs index cbd447b6691f..2990e6a0a5a1 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/DatastoresRestOperations.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/DatastoresRestOperations.cs @@ -37,6 +37,23 @@ public DatastoresRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string clusterName) + { + 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("/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/datastores", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string clusterName) { var message = _pipeline.CreateMessage(); @@ -122,6 +139,24 @@ public Response List(string subscriptionId, string resourceGroupN } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string clusterName, string datastoreName) + { + 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("/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/datastores/", false); + uri.AppendPath(datastoreName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string clusterName, string datastoreName) { var message = _pipeline.CreateMessage(); @@ -216,6 +251,24 @@ public Response Get(string subscriptionId, string } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string clusterName, string datastoreName, AvsPrivateCloudDatastoreData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false); + uri.AppendPath(privateCloudName, true); + uri.AppendPath("/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/datastores/", false); + uri.AppendPath(datastoreName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string clusterName, string datastoreName, AvsPrivateCloudDatastoreData data) { var message = _pipeline.CreateMessage(); @@ -306,6 +359,24 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string clusterName, string datastoreName) + { + 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("/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/datastores/", false); + uri.AppendPath(datastoreName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string clusterName, string datastoreName) { var message = _pipeline.CreateMessage(); @@ -390,6 +461,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string p } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string privateCloudName, string clusterName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string privateCloudName, string clusterName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/GlobalReachConnectionsRestOperations.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/GlobalReachConnectionsRestOperations.cs index 335ec7f8ba1f..1768bc569f76 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/GlobalReachConnectionsRestOperations.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/GlobalReachConnectionsRestOperations.cs @@ -37,6 +37,21 @@ public GlobalReachConnectionsRestOperations(HttpPipeline pipeline, string applic _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName) + { + 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("/globalReachConnections", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string privateCloudName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response List(string subscriptionId, string re } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string globalReachConnectionName) + { + 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("/globalReachConnections/", false); + uri.AppendPath(globalReachConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string globalReachConnectionName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscriptionId, string res } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string globalReachConnectionName, GlobalReachConnectionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false); + uri.AppendPath(privateCloudName, true); + uri.AppendPath("/globalReachConnections/", false); + uri.AppendPath(globalReachConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string globalReachConnectionName, GlobalReachConnectionData data) { var message = _pipeline.CreateMessage(); @@ -288,6 +335,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string globalReachConnectionName) + { + 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("/globalReachConnections/", false); + uri.AppendPath(globalReachConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string globalReachConnectionName) { var message = _pipeline.CreateMessage(); @@ -366,6 +429,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string p } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string privateCloudName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string privateCloudName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/HcxEnterpriseSitesRestOperations.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/HcxEnterpriseSitesRestOperations.cs index 4e2390522117..9abff89954bd 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/HcxEnterpriseSitesRestOperations.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/HcxEnterpriseSitesRestOperations.cs @@ -37,6 +37,21 @@ public HcxEnterpriseSitesRestOperations(HttpPipeline pipeline, string applicatio _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName) + { + 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("/hcxEnterpriseSites", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string privateCloudName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response List(string subscriptionId, string resour } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string hcxEnterpriseSiteName) + { + 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("/hcxEnterpriseSites/", false); + uri.AppendPath(hcxEnterpriseSiteName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string hcxEnterpriseSiteName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscriptionId, string resourc } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string hcxEnterpriseSiteName, HcxEnterpriseSiteData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false); + uri.AppendPath(privateCloudName, true); + uri.AppendPath("/hcxEnterpriseSites/", false); + uri.AppendPath(hcxEnterpriseSiteName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string hcxEnterpriseSiteName, HcxEnterpriseSiteData data) { var message = _pipeline.CreateMessage(); @@ -298,6 +345,22 @@ public Response CreateOrUpdate(string subscriptionId, str } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string hcxEnterpriseSiteName) + { + 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("/hcxEnterpriseSites/", false); + uri.AppendPath(hcxEnterpriseSiteName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string hcxEnterpriseSiteName) { var message = _pipeline.CreateMessage(); @@ -374,6 +437,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string p } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string privateCloudName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string privateCloudName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/LocationsRestOperations.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/LocationsRestOperations.cs index 011dc1abec5b..fb1545049a5d 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/LocationsRestOperations.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/LocationsRestOperations.cs @@ -37,6 +37,19 @@ public LocationsRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCheckTrialAvailabilityRequestUri(string subscriptionId, AzureLocation location, AvsSku sku) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.AVS/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/checkTrialAvailability", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCheckTrialAvailabilityRequest(string subscriptionId, AzureLocation location, AvsSku sku) { var message = _pipeline.CreateMessage(); @@ -117,6 +130,19 @@ public Response CheckTrialAvailability(s } } + internal RequestUriBuilder CreateCheckQuotaAvailabilityRequestUri(string subscriptionId, AzureLocation location) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.AVS/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/checkQuotaAvailability", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCheckQuotaAvailabilityRequest(string subscriptionId, AzureLocation location) { var message = _pipeline.CreateMessage(); diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/PlacementPoliciesRestOperations.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/PlacementPoliciesRestOperations.cs index adc1be8a3f3d..da92627435c1 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/PlacementPoliciesRestOperations.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/PlacementPoliciesRestOperations.cs @@ -37,6 +37,23 @@ public PlacementPoliciesRestOperations(HttpPipeline pipeline, string application _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string clusterName) + { + 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("/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/placementPolicies", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string clusterName) { var message = _pipeline.CreateMessage(); @@ -122,6 +139,24 @@ public Response List(string subscriptionId, string resour } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string clusterName, string placementPolicyName) + { + 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("/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/placementPolicies/", false); + uri.AppendPath(placementPolicyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string clusterName, string placementPolicyName) { var message = _pipeline.CreateMessage(); @@ -216,6 +251,24 @@ public Response Get(string subscriptionId, string resourceG } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string clusterName, string placementPolicyName, PlacementPolicyData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false); + uri.AppendPath(privateCloudName, true); + uri.AppendPath("/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/placementPolicies/", false); + uri.AppendPath(placementPolicyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string clusterName, string placementPolicyName, PlacementPolicyData data) { var message = _pipeline.CreateMessage(); @@ -306,6 +359,24 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string clusterName, string placementPolicyName, PlacementPolicyPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false); + uri.AppendPath(privateCloudName, true); + uri.AppendPath("/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/placementPolicies/", false); + uri.AppendPath(placementPolicyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string clusterName, string placementPolicyName, PlacementPolicyPatch patch) { var message = _pipeline.CreateMessage(); @@ -396,6 +467,24 @@ public Response Update(string subscriptionId, string resourceGroupName, string p } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string clusterName, string placementPolicyName) + { + 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("/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/placementPolicies/", false); + uri.AppendPath(placementPolicyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string clusterName, string placementPolicyName) { var message = _pipeline.CreateMessage(); @@ -480,6 +569,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string p } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string privateCloudName, string clusterName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string privateCloudName, string clusterName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/PrivateCloudsRestOperations.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/PrivateCloudsRestOperations.cs index 45dd12e73925..c3cdc6452cca 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/PrivateCloudsRestOperations.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/PrivateCloudsRestOperations.cs @@ -37,6 +37,19 @@ public PrivateCloudsRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName) + { + 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.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -110,6 +123,17 @@ public Response List(string subscriptionId, string resourceGro } } + internal RequestUriBuilder CreateListInSubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.AVS/privateClouds", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListInSubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -177,6 +201,20 @@ public Response ListInSubscription(string subscriptionId, Canc } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName) + { + 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.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string privateCloudName) { var message = _pipeline.CreateMessage(); @@ -259,6 +297,20 @@ public Response Get(string subscriptionId, string resourceG } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, AvsPrivateCloudData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false); + uri.AppendPath(privateCloudName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string privateCloudName, AvsPrivateCloudData data) { var message = _pipeline.CreateMessage(); @@ -337,6 +389,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, AvsPrivateCloudPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false); + uri.AppendPath(privateCloudName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string privateCloudName, AvsPrivateCloudPatch patch) { var message = _pipeline.CreateMessage(); @@ -415,6 +481,20 @@ public Response Update(string subscriptionId, string resourceGroupName, string p } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName) + { + 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.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string privateCloudName) { var message = _pipeline.CreateMessage(); @@ -487,6 +567,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string p } } + internal RequestUriBuilder CreateRotateVcenterPasswordRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName) + { + 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("/rotateVcenterPassword", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRotateVcenterPasswordRequest(string subscriptionId, string resourceGroupName, string privateCloudName) { var message = _pipeline.CreateMessage(); @@ -558,6 +653,21 @@ public Response RotateVcenterPassword(string subscriptionId, string resourceGrou } } + internal RequestUriBuilder CreateRotateNsxtPasswordRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName) + { + 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("/rotateNsxtPassword", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRotateNsxtPasswordRequest(string subscriptionId, string resourceGroupName, string privateCloudName) { var message = _pipeline.CreateMessage(); @@ -629,6 +739,21 @@ public Response RotateNsxtPassword(string subscriptionId, string resourceGroupNa } } + internal RequestUriBuilder CreateListAdminCredentialsRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName) + { + 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("/listAdminCredentials", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListAdminCredentialsRequest(string subscriptionId, string resourceGroupName, string privateCloudName) { var message = _pipeline.CreateMessage(); @@ -708,6 +833,14 @@ public Response ListAdminCredentials(string subscriptionId, st } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -780,6 +913,14 @@ public Response ListNextPage(string nextLink, string subscript } } + internal RequestUriBuilder CreateListInSubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListInSubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/ScriptCmdletsRestOperations.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/ScriptCmdletsRestOperations.cs index 58909c206ef8..32bf84d4ed91 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/ScriptCmdletsRestOperations.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/ScriptCmdletsRestOperations.cs @@ -37,6 +37,23 @@ public ScriptCmdletsRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string scriptPackageName) + { + 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("/scriptPackages/", false); + uri.AppendPath(scriptPackageName, true); + uri.AppendPath("/scriptCmdlets", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string scriptPackageName) { var message = _pipeline.CreateMessage(); @@ -122,6 +139,24 @@ public Response List(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string scriptPackageName, string scriptCmdletName) + { + 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("/scriptPackages/", false); + uri.AppendPath(scriptPackageName, true); + uri.AppendPath("/scriptCmdlets/", false); + uri.AppendPath(scriptCmdletName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string scriptPackageName, string scriptCmdletName) { var message = _pipeline.CreateMessage(); @@ -216,6 +251,14 @@ public Response Get(string subscriptionId, string resourceGrou } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string privateCloudName, string scriptPackageName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string privateCloudName, string scriptPackageName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/ScriptExecutionsRestOperations.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/ScriptExecutionsRestOperations.cs index 0b56de902e44..3d791e2f2e2f 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/ScriptExecutionsRestOperations.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/ScriptExecutionsRestOperations.cs @@ -38,6 +38,21 @@ public ScriptExecutionsRestOperations(HttpPipeline pipeline, string applicationI _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName) + { + 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("/scriptExecutions", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string privateCloudName) { var message = _pipeline.CreateMessage(); @@ -117,6 +132,22 @@ public Response List(string subscriptionId, string resourc } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string scriptExecutionName) + { + 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("/scriptExecutions/", false); + uri.AppendPath(scriptExecutionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string scriptExecutionName) { var message = _pipeline.CreateMessage(); @@ -205,6 +236,22 @@ public Response Get(string subscriptionId, string resourceG } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string scriptExecutionName, ScriptExecutionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false); + uri.AppendPath(privateCloudName, true); + uri.AppendPath("/scriptExecutions/", false); + uri.AppendPath(scriptExecutionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string scriptExecutionName, ScriptExecutionData data) { var message = _pipeline.CreateMessage(); @@ -289,6 +336,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string scriptExecutionName) + { + 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("/scriptExecutions/", false); + uri.AppendPath(scriptExecutionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string scriptExecutionName) { var message = _pipeline.CreateMessage(); @@ -367,6 +430,23 @@ public Response Delete(string subscriptionId, string resourceGroupName, string p } } + internal RequestUriBuilder CreateGetExecutionLogsRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string scriptExecutionName, IEnumerable scriptOutputStreamType) + { + 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("/scriptExecutions/", false); + uri.AppendPath(scriptExecutionName, true); + uri.AppendPath("/getExecutionLogs", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetExecutionLogsRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string scriptExecutionName, IEnumerable scriptOutputStreamType) { var message = _pipeline.CreateMessage(); @@ -466,6 +546,14 @@ public Response GetExecutionLogs(string subscriptionId, str } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string privateCloudName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string privateCloudName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/ScriptPackagesRestOperations.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/ScriptPackagesRestOperations.cs index d28b053dbc4a..4f0583243c61 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/ScriptPackagesRestOperations.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/ScriptPackagesRestOperations.cs @@ -37,6 +37,21 @@ public ScriptPackagesRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName) + { + 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("/scriptPackages", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string privateCloudName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response List(string subscriptionId, string resourceG } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string scriptPackageName) + { + 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("/scriptPackages/", false); + uri.AppendPath(scriptPackageName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string scriptPackageName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,14 @@ public Response Get(string subscriptionId, string resourceGro } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string privateCloudName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string privateCloudName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/VirtualMachinesRestOperations.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/VirtualMachinesRestOperations.cs index 57e15e5892e5..5482572b5c38 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/VirtualMachinesRestOperations.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/VirtualMachinesRestOperations.cs @@ -37,6 +37,23 @@ public VirtualMachinesRestOperations(HttpPipeline pipeline, string applicationId _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string clusterName) + { + 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("/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/virtualMachines", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string clusterName) { var message = _pipeline.CreateMessage(); @@ -122,6 +139,24 @@ public Response List(string subscriptionId, string resource } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string clusterName, string virtualMachineId) + { + 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("/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/virtualMachines/", false); + uri.AppendPath(virtualMachineId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string clusterName, string virtualMachineId) { var message = _pipeline.CreateMessage(); @@ -216,6 +251,25 @@ public Response Get(string subscriptio } } + internal RequestUriBuilder CreateRestrictMovementRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string clusterName, string virtualMachineId, AvsPrivateCloudClusterVirtualMachineRestrictMovement restrictMovement) + { + 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("/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/virtualMachines/", false); + uri.AppendPath(virtualMachineId, true); + uri.AppendPath("/restrictMovement", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRestrictMovementRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string clusterName, string virtualMachineId, AvsPrivateCloudClusterVirtualMachineRestrictMovement restrictMovement) { var message = _pipeline.CreateMessage(); @@ -305,6 +359,14 @@ public Response RestrictMovement(string subscriptionId, string resourceGroupName } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string privateCloudName, string clusterName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string privateCloudName, string clusterName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/WorkloadNetworksRestOperations.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/WorkloadNetworksRestOperations.cs index aa54fdb12a3b..e9488aba0efb 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/WorkloadNetworksRestOperations.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/WorkloadNetworksRestOperations.cs @@ -37,6 +37,22 @@ public WorkloadNetworksRestOperations(HttpPipeline pipeline, string applicationI _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + 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(); @@ -123,6 +139,21 @@ public Response Get(string subscriptionId, string resourceG } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName) + { + 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.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string privateCloudName) { var message = _pipeline.CreateMessage(); @@ -202,6 +233,21 @@ public Response List(string subscriptionId, string resource } } + internal RequestUriBuilder CreateListSegmentsRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName) + { + 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/default/segments", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListSegmentsRequest(string subscriptionId, string resourceGroupName, string privateCloudName) { var message = _pipeline.CreateMessage(); @@ -281,6 +327,22 @@ public Response ListSegments(string subscriptionId, } } + internal RequestUriBuilder CreateGetSegmentRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string segmentId) + { + 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/default/segments/", false); + uri.AppendPath(segmentId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetSegmentRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string segmentId) { var message = _pipeline.CreateMessage(); @@ -369,6 +431,22 @@ public Response GetSegment(string subscriptionId, st } } + internal RequestUriBuilder CreateCreateSegmentsRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string segmentId, WorkloadNetworkSegmentData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false); + uri.AppendPath(privateCloudName, true); + uri.AppendPath("/workloadNetworks/default/segments/", false); + uri.AppendPath(segmentId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateSegmentsRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string segmentId, WorkloadNetworkSegmentData data) { var message = _pipeline.CreateMessage(); @@ -453,6 +531,22 @@ public Response CreateSegments(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateSegmentsRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string segmentId, WorkloadNetworkSegmentData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false); + uri.AppendPath(privateCloudName, true); + uri.AppendPath("/workloadNetworks/default/segments/", false); + uri.AppendPath(segmentId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateSegmentsRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string segmentId, WorkloadNetworkSegmentData data) { var message = _pipeline.CreateMessage(); @@ -537,6 +631,22 @@ public Response UpdateSegments(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteSegmentRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string segmentId) + { + 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/default/segments/", false); + uri.AppendPath(segmentId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteSegmentRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string segmentId) { var message = _pipeline.CreateMessage(); @@ -615,6 +725,21 @@ public Response DeleteSegment(string subscriptionId, string resourceGroupName, s } } + internal RequestUriBuilder CreateListDhcpRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName) + { + 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/default/dhcpConfigurations", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListDhcpRequest(string subscriptionId, string resourceGroupName, string privateCloudName) { var message = _pipeline.CreateMessage(); @@ -694,6 +819,22 @@ public Response ListDhcp(string subscriptionId, string } } + internal RequestUriBuilder CreateGetDhcpRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string dhcpId) + { + 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/default/dhcpConfigurations/", false); + uri.AppendPath(dhcpId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetDhcpRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string dhcpId) { var message = _pipeline.CreateMessage(); @@ -782,6 +923,22 @@ public Response GetDhcp(string subscriptionId, string r } } + internal RequestUriBuilder CreateCreateDhcpRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string dhcpId, WorkloadNetworkDhcpData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false); + uri.AppendPath(privateCloudName, true); + uri.AppendPath("/workloadNetworks/default/dhcpConfigurations/", false); + uri.AppendPath(dhcpId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateDhcpRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string dhcpId, WorkloadNetworkDhcpData data) { var message = _pipeline.CreateMessage(); @@ -866,6 +1023,22 @@ public Response CreateDhcp(string subscriptionId, string resourceGroupName, stri } } + internal RequestUriBuilder CreateUpdateDhcpRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string dhcpId, WorkloadNetworkDhcpData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false); + uri.AppendPath(privateCloudName, true); + uri.AppendPath("/workloadNetworks/default/dhcpConfigurations/", false); + uri.AppendPath(dhcpId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateDhcpRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string dhcpId, WorkloadNetworkDhcpData data) { var message = _pipeline.CreateMessage(); @@ -950,6 +1123,22 @@ public Response UpdateDhcp(string subscriptionId, string resourceGroupName, stri } } + internal RequestUriBuilder CreateDeleteDhcpRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string dhcpId) + { + 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/default/dhcpConfigurations/", false); + uri.AppendPath(dhcpId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteDhcpRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string dhcpId) { var message = _pipeline.CreateMessage(); @@ -1028,6 +1217,21 @@ public Response DeleteDhcp(string subscriptionId, string resourceGroupName, stri } } + internal RequestUriBuilder CreateListGatewaysRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName) + { + 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/default/gateways", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListGatewaysRequest(string subscriptionId, string resourceGroupName, string privateCloudName) { var message = _pipeline.CreateMessage(); @@ -1107,6 +1311,22 @@ public Response ListGateways(string subscriptionId, } } + internal RequestUriBuilder CreateGetGatewayRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string gatewayId) + { + 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/default/gateways/", false); + uri.AppendPath(gatewayId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetGatewayRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string gatewayId) { var message = _pipeline.CreateMessage(); @@ -1195,6 +1415,21 @@ public Response GetGateway(string subscriptionId, st } } + internal RequestUriBuilder CreateListPortMirroringRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName) + { + 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/default/portMirroringProfiles", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListPortMirroringRequest(string subscriptionId, string resourceGroupName, string privateCloudName) { var message = _pipeline.CreateMessage(); @@ -1274,6 +1509,22 @@ public Response ListPortMirroring(string subsc } } + internal RequestUriBuilder CreateGetPortMirroringRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string portMirroringId) + { + 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/default/portMirroringProfiles/", false); + uri.AppendPath(portMirroringId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetPortMirroringRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string portMirroringId) { var message = _pipeline.CreateMessage(); @@ -1362,6 +1613,22 @@ public Response GetPortMirroring(string } } + internal RequestUriBuilder CreateCreatePortMirroringRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string portMirroringId, WorkloadNetworkPortMirroringProfileData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false); + uri.AppendPath(privateCloudName, true); + uri.AppendPath("/workloadNetworks/default/portMirroringProfiles/", false); + uri.AppendPath(portMirroringId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreatePortMirroringRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string portMirroringId, WorkloadNetworkPortMirroringProfileData data) { var message = _pipeline.CreateMessage(); @@ -1446,6 +1713,22 @@ public Response CreatePortMirroring(string subscriptionId, string resourceGroupN } } + internal RequestUriBuilder CreateUpdatePortMirroringRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string portMirroringId, WorkloadNetworkPortMirroringProfileData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false); + uri.AppendPath(privateCloudName, true); + uri.AppendPath("/workloadNetworks/default/portMirroringProfiles/", false); + uri.AppendPath(portMirroringId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdatePortMirroringRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string portMirroringId, WorkloadNetworkPortMirroringProfileData data) { var message = _pipeline.CreateMessage(); @@ -1530,6 +1813,22 @@ public Response UpdatePortMirroring(string subscriptionId, string resourceGroupN } } + internal RequestUriBuilder CreateDeletePortMirroringRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string portMirroringId) + { + 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/default/portMirroringProfiles/", false); + uri.AppendPath(portMirroringId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeletePortMirroringRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string portMirroringId) { var message = _pipeline.CreateMessage(); @@ -1608,6 +1907,21 @@ public Response DeletePortMirroring(string subscriptionId, string resourceGroupN } } + internal RequestUriBuilder CreateListVmGroupsRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName) + { + 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/default/vmGroups", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListVmGroupsRequest(string subscriptionId, string resourceGroupName, string privateCloudName) { var message = _pipeline.CreateMessage(); @@ -1687,6 +2001,22 @@ public Response ListVmGroups(string subscriptionId, } } + internal RequestUriBuilder CreateGetVmGroupRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string vmGroupId) + { + 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/default/vmGroups/", false); + uri.AppendPath(vmGroupId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetVmGroupRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string vmGroupId) { var message = _pipeline.CreateMessage(); @@ -1775,6 +2105,22 @@ public Response GetVmGroup(string subscriptionId, st } } + internal RequestUriBuilder CreateCreateVmGroupRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string vmGroupId, WorkloadNetworkVmGroupData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false); + uri.AppendPath(privateCloudName, true); + uri.AppendPath("/workloadNetworks/default/vmGroups/", false); + uri.AppendPath(vmGroupId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateVmGroupRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string vmGroupId, WorkloadNetworkVmGroupData data) { var message = _pipeline.CreateMessage(); @@ -1859,6 +2205,22 @@ public Response CreateVmGroup(string subscriptionId, string resourceGroupName, s } } + internal RequestUriBuilder CreateUpdateVmGroupRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string vmGroupId, WorkloadNetworkVmGroupData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false); + uri.AppendPath(privateCloudName, true); + uri.AppendPath("/workloadNetworks/default/vmGroups/", false); + uri.AppendPath(vmGroupId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateVmGroupRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string vmGroupId, WorkloadNetworkVmGroupData data) { var message = _pipeline.CreateMessage(); @@ -1943,6 +2305,22 @@ public Response UpdateVmGroup(string subscriptionId, string resourceGroupName, s } } + internal RequestUriBuilder CreateDeleteVmGroupRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string vmGroupId) + { + 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/default/vmGroups/", false); + uri.AppendPath(vmGroupId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteVmGroupRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string vmGroupId) { var message = _pipeline.CreateMessage(); @@ -2021,6 +2399,21 @@ public Response DeleteVmGroup(string subscriptionId, string resourceGroupName, s } } + internal RequestUriBuilder CreateListVirtualMachinesRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName) + { + 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/default/virtualMachines", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListVirtualMachinesRequest(string subscriptionId, string resourceGroupName, string privateCloudName) { var message = _pipeline.CreateMessage(); @@ -2100,6 +2493,22 @@ public Response ListVirtualMachines(string s } } + internal RequestUriBuilder CreateGetVirtualMachineRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string virtualMachineId) + { + 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/default/virtualMachines/", false); + uri.AppendPath(virtualMachineId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetVirtualMachineRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string virtualMachineId) { var message = _pipeline.CreateMessage(); @@ -2188,6 +2597,21 @@ public Response GetVirtualMachine(string subs } } + internal RequestUriBuilder CreateListDnsServicesRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName) + { + 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/default/dnsServices", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListDnsServicesRequest(string subscriptionId, string resourceGroupName, string privateCloudName) { var message = _pipeline.CreateMessage(); @@ -2267,6 +2691,22 @@ public Response ListDnsServices(string subscript } } + internal RequestUriBuilder CreateGetDnsServiceRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string dnsServiceId) + { + 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/default/dnsServices/", false); + uri.AppendPath(dnsServiceId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetDnsServiceRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string dnsServiceId) { var message = _pipeline.CreateMessage(); @@ -2355,6 +2795,22 @@ public Response GetDnsService(string subscription } } + internal RequestUriBuilder CreateCreateDnsServiceRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string dnsServiceId, WorkloadNetworkDnsServiceData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false); + uri.AppendPath(privateCloudName, true); + uri.AppendPath("/workloadNetworks/default/dnsServices/", false); + uri.AppendPath(dnsServiceId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateDnsServiceRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string dnsServiceId, WorkloadNetworkDnsServiceData data) { var message = _pipeline.CreateMessage(); @@ -2439,6 +2895,22 @@ public Response CreateDnsService(string subscriptionId, string resourceGroupName } } + internal RequestUriBuilder CreateUpdateDnsServiceRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string dnsServiceId, WorkloadNetworkDnsServiceData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false); + uri.AppendPath(privateCloudName, true); + uri.AppendPath("/workloadNetworks/default/dnsServices/", false); + uri.AppendPath(dnsServiceId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateDnsServiceRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string dnsServiceId, WorkloadNetworkDnsServiceData data) { var message = _pipeline.CreateMessage(); @@ -2523,6 +2995,22 @@ public Response UpdateDnsService(string subscriptionId, string resourceGroupName } } + internal RequestUriBuilder CreateDeleteDnsServiceRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string dnsServiceId) + { + 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/default/dnsServices/", false); + uri.AppendPath(dnsServiceId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteDnsServiceRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string dnsServiceId) { var message = _pipeline.CreateMessage(); @@ -2601,6 +3089,21 @@ public Response DeleteDnsService(string subscriptionId, string resourceGroupName } } + internal RequestUriBuilder CreateListDnsZonesRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName) + { + 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/default/dnsZones", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListDnsZonesRequest(string subscriptionId, string resourceGroupName, string privateCloudName) { var message = _pipeline.CreateMessage(); @@ -2680,6 +3183,22 @@ public Response ListDnsZones(string subscriptionId, } } + internal RequestUriBuilder CreateGetDnsZoneRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string dnsZoneId) + { + 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/default/dnsZones/", false); + uri.AppendPath(dnsZoneId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetDnsZoneRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string dnsZoneId) { var message = _pipeline.CreateMessage(); @@ -2768,6 +3287,22 @@ public Response GetDnsZone(string subscriptionId, st } } + internal RequestUriBuilder CreateCreateDnsZoneRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string dnsZoneId, WorkloadNetworkDnsZoneData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false); + uri.AppendPath(privateCloudName, true); + uri.AppendPath("/workloadNetworks/default/dnsZones/", false); + uri.AppendPath(dnsZoneId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateDnsZoneRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string dnsZoneId, WorkloadNetworkDnsZoneData data) { var message = _pipeline.CreateMessage(); @@ -2852,6 +3387,22 @@ public Response CreateDnsZone(string subscriptionId, string resourceGroupName, s } } + internal RequestUriBuilder CreateUpdateDnsZoneRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string dnsZoneId, WorkloadNetworkDnsZoneData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false); + uri.AppendPath(privateCloudName, true); + uri.AppendPath("/workloadNetworks/default/dnsZones/", false); + uri.AppendPath(dnsZoneId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateDnsZoneRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string dnsZoneId, WorkloadNetworkDnsZoneData data) { var message = _pipeline.CreateMessage(); @@ -2936,6 +3487,22 @@ public Response UpdateDnsZone(string subscriptionId, string resourceGroupName, s } } + internal RequestUriBuilder CreateDeleteDnsZoneRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string dnsZoneId) + { + 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/default/dnsZones/", false); + uri.AppendPath(dnsZoneId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteDnsZoneRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string dnsZoneId) { var message = _pipeline.CreateMessage(); @@ -3014,6 +3581,21 @@ public Response DeleteDnsZone(string subscriptionId, string resourceGroupName, s } } + internal RequestUriBuilder CreateListPublicIPsRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName) + { + 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/default/publicIPs", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListPublicIPsRequest(string subscriptionId, string resourceGroupName, string privateCloudName) { var message = _pipeline.CreateMessage(); @@ -3093,6 +3675,22 @@ public Response ListPublicIPs(string subscriptionI } } + internal RequestUriBuilder CreateGetPublicIPRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string publicIPId) + { + 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/default/publicIPs/", false); + uri.AppendPath(publicIPId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetPublicIPRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string publicIPId) { var message = _pipeline.CreateMessage(); @@ -3181,6 +3779,22 @@ public Response GetPublicIP(string subscriptionId, } } + internal RequestUriBuilder CreateCreatePublicIPRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string publicIPId, WorkloadNetworkPublicIPData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false); + uri.AppendPath(privateCloudName, true); + uri.AppendPath("/workloadNetworks/default/publicIPs/", false); + uri.AppendPath(publicIPId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreatePublicIPRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string publicIPId, WorkloadNetworkPublicIPData data) { var message = _pipeline.CreateMessage(); @@ -3265,6 +3879,22 @@ public Response CreatePublicIP(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeletePublicIPRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string publicIPId) + { + 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/default/publicIPs/", false); + uri.AppendPath(publicIPId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeletePublicIPRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string publicIPId) { var message = _pipeline.CreateMessage(); @@ -3343,6 +3973,14 @@ public Response DeletePublicIP(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string privateCloudName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string privateCloudName) { var message = _pipeline.CreateMessage(); @@ -3419,6 +4057,14 @@ public Response ListNextPage(string nextLink, string subscr } } + internal RequestUriBuilder CreateListSegmentsNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string privateCloudName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListSegmentsNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string privateCloudName) { var message = _pipeline.CreateMessage(); @@ -3495,6 +4141,14 @@ public Response ListSegmentsNextPage(string nextLin } } + internal RequestUriBuilder CreateListDhcpNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string privateCloudName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListDhcpNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string privateCloudName) { var message = _pipeline.CreateMessage(); @@ -3571,6 +4225,14 @@ public Response ListDhcpNextPage(string nextLink, strin } } + internal RequestUriBuilder CreateListGatewaysNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string privateCloudName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListGatewaysNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string privateCloudName) { var message = _pipeline.CreateMessage(); @@ -3647,6 +4309,14 @@ public Response ListGatewaysNextPage(string nextLink } } + internal RequestUriBuilder CreateListPortMirroringNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string privateCloudName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListPortMirroringNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string privateCloudName) { var message = _pipeline.CreateMessage(); @@ -3723,6 +4393,14 @@ public Response ListPortMirroringNextPage(stri } } + internal RequestUriBuilder CreateListVmGroupsNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string privateCloudName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListVmGroupsNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string privateCloudName) { var message = _pipeline.CreateMessage(); @@ -3799,6 +4477,14 @@ public Response ListVmGroupsNextPage(string nextLin } } + internal RequestUriBuilder CreateListVirtualMachinesNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string privateCloudName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListVirtualMachinesNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string privateCloudName) { var message = _pipeline.CreateMessage(); @@ -3875,6 +4561,14 @@ public Response ListVirtualMachinesNextPage( } } + internal RequestUriBuilder CreateListDnsServicesNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string privateCloudName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListDnsServicesNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string privateCloudName) { var message = _pipeline.CreateMessage(); @@ -3951,6 +4645,14 @@ public Response ListDnsServicesNextPage(string n } } + internal RequestUriBuilder CreateListDnsZonesNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string privateCloudName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListDnsZonesNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string privateCloudName) { var message = _pipeline.CreateMessage(); @@ -4027,6 +4729,14 @@ public Response ListDnsZonesNextPage(string nextLin } } + internal RequestUriBuilder CreateListPublicIPsNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string privateCloudName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListPublicIPsNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string privateCloudName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/azurelargeinstance/Azure.ResourceManager.LargeInstance/src/Generated/LongRunningOperation/LargeInstanceArmOperationOfT.cs b/sdk/azurelargeinstance/Azure.ResourceManager.LargeInstance/src/Generated/LongRunningOperation/LargeInstanceArmOperationOfT.cs index 3b91daa3e8f6..98ea39369145 100644 --- a/sdk/azurelargeinstance/Azure.ResourceManager.LargeInstance/src/Generated/LongRunningOperation/LargeInstanceArmOperationOfT.cs +++ b/sdk/azurelargeinstance/Azure.ResourceManager.LargeInstance/src/Generated/LongRunningOperation/LargeInstanceArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class LargeInstanceArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of LargeInstanceArmOperation for mocking. protected LargeInstanceArmOperation() { } - internal LargeInstanceArmOperation(Response response) + internal LargeInstanceArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal LargeInstanceArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "LargeInstanceArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal LargeInstanceArmOperation(IOperationSource source, ClientDiagnostics public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/azurelargeinstance/Azure.ResourceManager.LargeInstance/src/Generated/Models/LargeInstanceResource.Serialization.cs b/sdk/azurelargeinstance/Azure.ResourceManager.LargeInstance/src/Generated/Models/LargeInstanceResource.Serialization.cs new file mode 100644 index 000000000000..7981f33eeaa5 --- /dev/null +++ b/sdk/azurelargeinstance/Azure.ResourceManager.LargeInstance/src/Generated/Models/LargeInstanceResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.LargeInstance +{ + public partial class LargeInstanceResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + LargeInstanceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + LargeInstanceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/azurelargeinstance/Azure.ResourceManager.LargeInstance/src/Generated/Models/LargeStorageInstanceResource.Serialization.cs b/sdk/azurelargeinstance/Azure.ResourceManager.LargeInstance/src/Generated/Models/LargeStorageInstanceResource.Serialization.cs new file mode 100644 index 000000000000..0856ce8c0ec9 --- /dev/null +++ b/sdk/azurelargeinstance/Azure.ResourceManager.LargeInstance/src/Generated/Models/LargeStorageInstanceResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.LargeInstance +{ + public partial class LargeStorageInstanceResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + LargeStorageInstanceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + LargeStorageInstanceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/azurelargeinstance/Azure.ResourceManager.LargeInstance/src/Generated/RestOperations/AzureLargeInstanceRestOperations.cs b/sdk/azurelargeinstance/Azure.ResourceManager.LargeInstance/src/Generated/RestOperations/AzureLargeInstanceRestOperations.cs index 61d1e54aed49..b2b26beab14b 100644 --- a/sdk/azurelargeinstance/Azure.ResourceManager.LargeInstance/src/Generated/RestOperations/AzureLargeInstanceRestOperations.cs +++ b/sdk/azurelargeinstance/Azure.ResourceManager.LargeInstance/src/Generated/RestOperations/AzureLargeInstanceRestOperations.cs @@ -37,6 +37,17 @@ public AzureLargeInstanceRestOperations(HttpPipeline pipeline, string applicatio _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.AzureLargeInstance/azureLargeInstances", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -110,6 +121,19 @@ public Response ListBySubscription(string subscrip } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.AzureLargeInstance/azureLargeInstances", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -189,6 +213,20 @@ public Response ListByResourceGroup(string subscri } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string azureLargeInstanceName) + { + 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.AzureLargeInstance/azureLargeInstances/", false); + uri.AppendPath(azureLargeInstanceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string azureLargeInstanceName) { var message = _pipeline.CreateMessage(); @@ -277,6 +315,20 @@ public Response Get(string subscriptionId, string resourceGro } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string azureLargeInstanceName, LargeInstancePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AzureLargeInstance/azureLargeInstances/", false); + uri.AppendPath(azureLargeInstanceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string azureLargeInstanceName, LargeInstancePatch patch) { var message = _pipeline.CreateMessage(); @@ -369,6 +421,21 @@ public Response Update(string subscriptionId, string resource } } + internal RequestUriBuilder CreateRestartRequestUri(string subscriptionId, string resourceGroupName, string azureLargeInstanceName, LargeInstanceForceState forceParameter) + { + 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.AzureLargeInstance/azureLargeInstances/", false); + uri.AppendPath(azureLargeInstanceName, true); + uri.AppendPath("/restart", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRestartRequest(string subscriptionId, string resourceGroupName, string azureLargeInstanceName, LargeInstanceForceState forceParameter) { var message = _pipeline.CreateMessage(); @@ -449,6 +516,21 @@ public Response Restart(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreateShutdownRequestUri(string subscriptionId, string resourceGroupName, string azureLargeInstanceName) + { + 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.AzureLargeInstance/azureLargeInstances/", false); + uri.AppendPath(azureLargeInstanceName, true); + uri.AppendPath("/shutdown", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateShutdownRequest(string subscriptionId, string resourceGroupName, string azureLargeInstanceName) { var message = _pipeline.CreateMessage(); @@ -520,6 +602,21 @@ public Response Shutdown(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreateStartRequestUri(string subscriptionId, string resourceGroupName, string azureLargeInstanceName) + { + 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.AzureLargeInstance/azureLargeInstances/", false); + uri.AppendPath(azureLargeInstanceName, true); + uri.AppendPath("/start", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStartRequest(string subscriptionId, string resourceGroupName, string azureLargeInstanceName) { var message = _pipeline.CreateMessage(); @@ -591,6 +688,14 @@ public Response Start(string subscriptionId, string resourceGroupName, string az } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -665,6 +770,14 @@ public Response ListBySubscriptionNextPage(string } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/azurelargeinstance/Azure.ResourceManager.LargeInstance/src/Generated/RestOperations/AzureLargeStorageInstanceRestOperations.cs b/sdk/azurelargeinstance/Azure.ResourceManager.LargeInstance/src/Generated/RestOperations/AzureLargeStorageInstanceRestOperations.cs index 636c751fae9f..5bf167873b84 100644 --- a/sdk/azurelargeinstance/Azure.ResourceManager.LargeInstance/src/Generated/RestOperations/AzureLargeStorageInstanceRestOperations.cs +++ b/sdk/azurelargeinstance/Azure.ResourceManager.LargeInstance/src/Generated/RestOperations/AzureLargeStorageInstanceRestOperations.cs @@ -37,6 +37,17 @@ public AzureLargeStorageInstanceRestOperations(HttpPipeline pipeline, string app _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.AzureLargeInstance/azureLargeStorageInstances", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -110,6 +121,19 @@ public Response ListBySubscription(string s } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.AzureLargeInstance/azureLargeStorageInstances", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -191,6 +215,20 @@ public Response ListByResourceGroup(string } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string azureLargeStorageInstanceName) + { + 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.AzureLargeInstance/azureLargeStorageInstances/", false); + uri.AppendPath(azureLargeStorageInstanceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string azureLargeStorageInstanceName) { var message = _pipeline.CreateMessage(); @@ -279,6 +317,20 @@ public Response Get(string subscriptionId, string reso } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string azureLargeStorageInstanceName, LargeStorageInstancePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AzureLargeInstance/azureLargeStorageInstances/", false); + uri.AppendPath(azureLargeStorageInstanceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string azureLargeStorageInstanceName, LargeStorageInstancePatch patch) { var message = _pipeline.CreateMessage(); @@ -371,6 +423,14 @@ public Response Update(string subscriptionId, string r } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -445,6 +505,14 @@ public Response ListBySubscriptionNextPage( } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/ArcSettingCollection.cs b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/ArcSettingCollection.cs index baf542406c78..e38845cfda2e 100644 --- a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/ArcSettingCollection.cs +++ b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/ArcSettingCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> CreateOrUpdateAsync( try { var response = await _arcSettingRestClient.CreateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, arcSettingName, data, cancellationToken).ConfigureAwait(false); - var operation = new HciArmOperation(Response.FromValue(new ArcSettingResource(Client, response), response.GetRawResponse())); + var uri = _arcSettingRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, arcSettingName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new HciArmOperation(Response.FromValue(new ArcSettingResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUnt try { var response = _arcSettingRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, arcSettingName, data, cancellationToken); - var operation = new HciArmOperation(Response.FromValue(new ArcSettingResource(Client, response), response.GetRawResponse())); + var uri = _arcSettingRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, arcSettingName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new HciArmOperation(Response.FromValue(new ArcSettingResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/HciClusterCollection.cs b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/HciClusterCollection.cs index 6d53a52a3030..e92fb33c5e73 100644 --- a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/HciClusterCollection.cs +++ b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/HciClusterCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> CreateOrUpdateAsync( try { var response = await _hciClusterClustersRestClient.CreateAsync(Id.SubscriptionId, Id.ResourceGroupName, clusterName, data, cancellationToken).ConfigureAwait(false); - var operation = new HciArmOperation(Response.FromValue(new HciClusterResource(Client, response), response.GetRawResponse())); + var uri = _hciClusterClustersRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, clusterName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new HciArmOperation(Response.FromValue(new HciClusterResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -140,7 +142,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUnt try { var response = _hciClusterClustersRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, clusterName, data, cancellationToken); - var operation = new HciArmOperation(Response.FromValue(new HciClusterResource(Client, response), response.GetRawResponse())); + var uri = _hciClusterClustersRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, clusterName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new HciArmOperation(Response.FromValue(new HciClusterResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/LongRunningOperation/HciArmOperation.cs b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/LongRunningOperation/HciArmOperation.cs index e000b36fc5ae..13c14185880f 100644 --- a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/LongRunningOperation/HciArmOperation.cs +++ b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/LongRunningOperation/HciArmOperation.cs @@ -20,21 +20,24 @@ internal class HciArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of HciArmOperation for mocking. protected HciArmOperation() { } - internal HciArmOperation(Response response) + internal HciArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal HciArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "HciArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal HciArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipel public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/LongRunningOperation/HciArmOperationOfT.cs b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/LongRunningOperation/HciArmOperationOfT.cs index cd41d00e0f7c..c8565dd561f3 100644 --- a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/LongRunningOperation/HciArmOperationOfT.cs +++ b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/LongRunningOperation/HciArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class HciArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of HciArmOperation for mocking. protected HciArmOperation() { } - internal HciArmOperation(Response response) + internal HciArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal HciArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "HciArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal HciArmOperation(IOperationSource source, ClientDiagnostics clientDia public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/ArcExtensionResource.Serialization.cs b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/ArcExtensionResource.Serialization.cs new file mode 100644 index 000000000000..0e45e5205baa --- /dev/null +++ b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/ArcExtensionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Hci +{ + public partial class ArcExtensionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ArcExtensionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ArcExtensionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/ArcSettingResource.Serialization.cs b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/ArcSettingResource.Serialization.cs new file mode 100644 index 000000000000..80dba34068a2 --- /dev/null +++ b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/ArcSettingResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Hci +{ + public partial class ArcSettingResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ArcSettingData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ArcSettingData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/GalleryImageResource.Serialization.cs b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/GalleryImageResource.Serialization.cs new file mode 100644 index 000000000000..1d11c044c889 --- /dev/null +++ b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/GalleryImageResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Hci +{ + public partial class GalleryImageResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + GalleryImageData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + GalleryImageData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/GuestAgentResource.Serialization.cs b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/GuestAgentResource.Serialization.cs new file mode 100644 index 000000000000..3b3ad0015b45 --- /dev/null +++ b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/GuestAgentResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Hci +{ + public partial class GuestAgentResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + GuestAgentData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + GuestAgentData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/HciClusterResource.Serialization.cs b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/HciClusterResource.Serialization.cs new file mode 100644 index 000000000000..9f1341f90ca0 --- /dev/null +++ b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/HciClusterResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Hci +{ + public partial class HciClusterResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + HciClusterData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + HciClusterData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/HciSkuResource.Serialization.cs b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/HciSkuResource.Serialization.cs new file mode 100644 index 000000000000..3de15660a437 --- /dev/null +++ b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/HciSkuResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Hci +{ + public partial class HciSkuResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + HciSkuData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + HciSkuData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/HybridIdentityMetadataResource.Serialization.cs b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/HybridIdentityMetadataResource.Serialization.cs new file mode 100644 index 000000000000..ac96ff5653a9 --- /dev/null +++ b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/HybridIdentityMetadataResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Hci +{ + public partial class HybridIdentityMetadataResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + HybridIdentityMetadataData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + HybridIdentityMetadataData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/LogicalNetworkResource.Serialization.cs b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/LogicalNetworkResource.Serialization.cs new file mode 100644 index 000000000000..78eb096ca748 --- /dev/null +++ b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/LogicalNetworkResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Hci +{ + public partial class LogicalNetworkResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + LogicalNetworkData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + LogicalNetworkData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/MarketplaceGalleryImageResource.Serialization.cs b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/MarketplaceGalleryImageResource.Serialization.cs new file mode 100644 index 000000000000..9fb432f45637 --- /dev/null +++ b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/MarketplaceGalleryImageResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Hci +{ + public partial class MarketplaceGalleryImageResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MarketplaceGalleryImageData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MarketplaceGalleryImageData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/NetworkInterfaceResource.Serialization.cs b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/NetworkInterfaceResource.Serialization.cs new file mode 100644 index 000000000000..1d0b38cc0937 --- /dev/null +++ b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/NetworkInterfaceResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Hci +{ + public partial class NetworkInterfaceResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + NetworkInterfaceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + NetworkInterfaceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/OfferResource.Serialization.cs b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/OfferResource.Serialization.cs new file mode 100644 index 000000000000..854c50a7262d --- /dev/null +++ b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/OfferResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Hci +{ + public partial class OfferResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + OfferData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + OfferData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/PublisherResource.Serialization.cs b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/PublisherResource.Serialization.cs new file mode 100644 index 000000000000..55a8c7b85055 --- /dev/null +++ b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/PublisherResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Hci +{ + public partial class PublisherResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + PublisherData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + PublisherData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/StorageContainerResource.Serialization.cs b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/StorageContainerResource.Serialization.cs new file mode 100644 index 000000000000..e77269021f45 --- /dev/null +++ b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/StorageContainerResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Hci +{ + public partial class StorageContainerResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + StorageContainerData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + StorageContainerData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/UpdateResource.Serialization.cs b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/UpdateResource.Serialization.cs new file mode 100644 index 000000000000..f5908d20bfe0 --- /dev/null +++ b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/UpdateResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Hci +{ + public partial class UpdateResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + UpdateData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + UpdateData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/UpdateRunResource.Serialization.cs b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/UpdateRunResource.Serialization.cs new file mode 100644 index 000000000000..8550401e2651 --- /dev/null +++ b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/UpdateRunResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Hci +{ + public partial class UpdateRunResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + UpdateRunData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + UpdateRunData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/UpdateSummaryResource.Serialization.cs b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/UpdateSummaryResource.Serialization.cs new file mode 100644 index 000000000000..faca7ff804a5 --- /dev/null +++ b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/UpdateSummaryResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Hci +{ + public partial class UpdateSummaryResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + UpdateSummaryData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + UpdateSummaryData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/VirtualHardDiskResource.Serialization.cs b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/VirtualHardDiskResource.Serialization.cs new file mode 100644 index 000000000000..37ba33be49d9 --- /dev/null +++ b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/VirtualHardDiskResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Hci +{ + public partial class VirtualHardDiskResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + VirtualHardDiskData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + VirtualHardDiskData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/VirtualMachineInstanceResource.Serialization.cs b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/VirtualMachineInstanceResource.Serialization.cs new file mode 100644 index 000000000000..6027168c6adb --- /dev/null +++ b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/VirtualMachineInstanceResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Hci +{ + public partial class VirtualMachineInstanceResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + VirtualMachineInstanceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + VirtualMachineInstanceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/RestOperations/ArcSettingsRestOperations.cs b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/RestOperations/ArcSettingsRestOperations.cs index 0dceb7b33208..f079cda11ad5 100644 --- a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/RestOperations/ArcSettingsRestOperations.cs +++ b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/RestOperations/ArcSettingsRestOperations.cs @@ -37,6 +37,21 @@ public ArcSettingsRestOperations(HttpPipeline pipeline, string applicationId, Ur _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByClusterRequestUri(string subscriptionId, string resourceGroupName, string clusterName) + { + 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.AzureStackHCI/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/arcSettings", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByClusterRequest(string subscriptionId, string resourceGroupName, string clusterName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByCluster(string subscriptionId, string reso } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string arcSettingName) + { + 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.AzureStackHCI/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/arcSettings/", false); + uri.AppendPath(arcSettingName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string clusterName, string arcSettingName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscriptionId, string resourceGroupN } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string arcSettingName, ArcSettingData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AzureStackHCI/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/arcSettings/", false); + uri.AppendPath(arcSettingName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string clusterName, string arcSettingName, ArcSettingData data) { var message = _pipeline.CreateMessage(); @@ -296,6 +343,22 @@ public Response Create(string subscriptionId, string resourceGro } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string arcSettingName, ArcSettingPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AzureStackHCI/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/arcSettings/", false); + uri.AppendPath(arcSettingName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string clusterName, string arcSettingName, ArcSettingPatch patch) { var message = _pipeline.CreateMessage(); @@ -388,6 +451,22 @@ public Response Update(string subscriptionId, string resourceGro } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string arcSettingName) + { + 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.AzureStackHCI/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/arcSettings/", false); + uri.AppendPath(arcSettingName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string clusterName, string arcSettingName) { var message = _pipeline.CreateMessage(); @@ -466,6 +545,23 @@ public Response Delete(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateGeneratePasswordRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string arcSettingName) + { + 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.AzureStackHCI/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/arcSettings/", false); + uri.AppendPath(arcSettingName, true); + uri.AppendPath("/generatePassword", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGeneratePasswordRequest(string subscriptionId, string resourceGroupName, string clusterName, string arcSettingName) { var message = _pipeline.CreateMessage(); @@ -551,6 +647,23 @@ public Response GeneratePassword(string subscriptionId, s } } + internal RequestUriBuilder CreateCreateIdentityRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string arcSettingName) + { + 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.AzureStackHCI/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/arcSettings/", false); + uri.AppendPath(arcSettingName, true); + uri.AppendPath("/createArcIdentity", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateIdentityRequest(string subscriptionId, string resourceGroupName, string clusterName, string arcSettingName) { var message = _pipeline.CreateMessage(); @@ -628,6 +741,14 @@ public Response CreateIdentity(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateListByClusterNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string clusterName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByClusterNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string clusterName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/RestOperations/ClustersRestOperations.cs b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/RestOperations/ClustersRestOperations.cs index 8b8fea5d2a5b..b65282aba14d 100644 --- a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/RestOperations/ClustersRestOperations.cs +++ b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/RestOperations/ClustersRestOperations.cs @@ -37,6 +37,17 @@ public ClustersRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.AzureStackHCI/clusters", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,19 @@ public Response ListBySubscription(string subscriptionId, } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.AzureStackHCI/clusters", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -177,6 +201,20 @@ public Response ListByResourceGroup(string subscriptionId, } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string clusterName) + { + 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.AzureStackHCI/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string clusterName) { var message = _pipeline.CreateMessage(); @@ -259,6 +297,20 @@ public Response Get(string subscriptionId, string resourceGroupN } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string clusterName, HciClusterData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AzureStackHCI/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string clusterName, HciClusterData data) { var message = _pipeline.CreateMessage(); @@ -345,6 +397,20 @@ public Response Create(string subscriptionId, string resourceGro } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string clusterName, HciClusterPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AzureStackHCI/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string clusterName, HciClusterPatch patch) { var message = _pipeline.CreateMessage(); @@ -431,6 +497,20 @@ public Response Update(string subscriptionId, string resourceGro } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string clusterName) + { + 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.AzureStackHCI/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string clusterName) { var message = _pipeline.CreateMessage(); @@ -503,6 +583,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateUploadCertificateRequestUri(string subscriptionId, string resourceGroupName, string clusterName, HciClusterCertificateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AzureStackHCI/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/uploadCertificate", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUploadCertificateRequest(string subscriptionId, string resourceGroupName, string clusterName, HciClusterCertificateContent content) { var message = _pipeline.CreateMessage(); @@ -580,6 +675,21 @@ public Response UploadCertificate(string subscriptionId, string resourceGroupNam } } + internal RequestUriBuilder CreateCreateIdentityRequestUri(string subscriptionId, string resourceGroupName, string clusterName) + { + 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.AzureStackHCI/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/createClusterIdentity", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateIdentityRequest(string subscriptionId, string resourceGroupName, string clusterName) { var message = _pipeline.CreateMessage(); @@ -651,6 +761,21 @@ public Response CreateIdentity(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateExtendSoftwareAssuranceBenefitRequestUri(string subscriptionId, string resourceGroupName, string clusterName, SoftwareAssuranceChangeContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AzureStackHCI/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/extendSoftwareAssuranceBenefit", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateExtendSoftwareAssuranceBenefitRequest(string subscriptionId, string resourceGroupName, string clusterName, SoftwareAssuranceChangeContent content) { var message = _pipeline.CreateMessage(); @@ -730,6 +855,14 @@ public Response ExtendSoftwareAssuranceBenefit(string subscriptionId, string res } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -798,6 +931,14 @@ public Response ListBySubscriptionNextPage(string nextLink } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/RestOperations/ExtensionsRestOperations.cs b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/RestOperations/ExtensionsRestOperations.cs index 9f938d7cca51..49448d1aa506 100644 --- a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/RestOperations/ExtensionsRestOperations.cs +++ b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/RestOperations/ExtensionsRestOperations.cs @@ -37,6 +37,23 @@ public ExtensionsRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByArcSettingRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string arcSettingName) + { + 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.AzureStackHCI/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/arcSettings/", false); + uri.AppendPath(arcSettingName, true); + uri.AppendPath("/extensions", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByArcSettingRequest(string subscriptionId, string resourceGroupName, string clusterName, string arcSettingName) { var message = _pipeline.CreateMessage(); @@ -122,6 +139,24 @@ public Response ListByArcSetting(string subscriptionId, } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string arcSettingName, string extensionName) + { + 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.AzureStackHCI/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/arcSettings/", false); + uri.AppendPath(arcSettingName, true); + uri.AppendPath("/extensions/", false); + uri.AppendPath(extensionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string clusterName, string arcSettingName, string extensionName) { var message = _pipeline.CreateMessage(); @@ -216,6 +251,24 @@ public Response Get(string subscriptionId, string resourceGrou } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string arcSettingName, string extensionName, ArcExtensionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AzureStackHCI/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/arcSettings/", false); + uri.AppendPath(arcSettingName, true); + uri.AppendPath("/extensions/", false); + uri.AppendPath(extensionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string clusterName, string arcSettingName, string extensionName, ArcExtensionData data) { var message = _pipeline.CreateMessage(); @@ -306,6 +359,24 @@ public Response Create(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string arcSettingName, string extensionName, ArcExtensionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AzureStackHCI/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/arcSettings/", false); + uri.AppendPath(arcSettingName, true); + uri.AppendPath("/extensions/", false); + uri.AppendPath(extensionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string clusterName, string arcSettingName, string extensionName, ArcExtensionData data) { var message = _pipeline.CreateMessage(); @@ -396,6 +467,24 @@ public Response Update(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string arcSettingName, string extensionName) + { + 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.AzureStackHCI/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/arcSettings/", false); + uri.AppendPath(arcSettingName, true); + uri.AppendPath("/extensions/", false); + uri.AppendPath(extensionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string clusterName, string arcSettingName, string extensionName) { var message = _pipeline.CreateMessage(); @@ -480,6 +569,25 @@ public Response Delete(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateUpgradeRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string arcSettingName, string extensionName, ExtensionUpgradeContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AzureStackHCI/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/arcSettings/", false); + uri.AppendPath(arcSettingName, true); + uri.AppendPath("/extensions/", false); + uri.AppendPath(extensionName, true); + uri.AppendPath("/upgrade", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpgradeRequest(string subscriptionId, string resourceGroupName, string clusterName, string arcSettingName, string extensionName, ExtensionUpgradeContent content) { var message = _pipeline.CreateMessage(); @@ -569,6 +677,14 @@ public Response Upgrade(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreateListByArcSettingNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string clusterName, string arcSettingName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByArcSettingNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string clusterName, string arcSettingName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/RestOperations/GalleryImagesRestOperations.cs b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/RestOperations/GalleryImagesRestOperations.cs index 9453419b12b1..1e6c13dd6203 100644 --- a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/RestOperations/GalleryImagesRestOperations.cs +++ b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/RestOperations/GalleryImagesRestOperations.cs @@ -37,6 +37,20 @@ public GalleryImagesRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string galleryImageName) + { + 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.AzureStackHCI/galleryImages/", false); + uri.AppendPath(galleryImageName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string galleryImageName) { var message = _pipeline.CreateMessage(); @@ -119,6 +133,20 @@ public Response Get(string subscriptionId, string resourceGrou } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string galleryImageName, GalleryImageData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AzureStackHCI/galleryImages/", false); + uri.AppendPath(galleryImageName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string galleryImageName, GalleryImageData data) { var message = _pipeline.CreateMessage(); @@ -197,6 +225,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string galleryImageName) + { + 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.AzureStackHCI/galleryImages/", false); + uri.AppendPath(galleryImageName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string galleryImageName) { var message = _pipeline.CreateMessage(); @@ -267,6 +309,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string g } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string galleryImageName, GalleryImagePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AzureStackHCI/galleryImages/", false); + uri.AppendPath(galleryImageName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string galleryImageName, GalleryImagePatch patch) { var message = _pipeline.CreateMessage(); @@ -345,6 +401,19 @@ public Response Update(string subscriptionId, string resourceGroupName, string g } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName) + { + 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.AzureStackHCI/galleryImages", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -418,6 +487,17 @@ public Response List(string subscriptionId, string reso } } + internal RequestUriBuilder CreateListAllRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.AzureStackHCI/galleryImages", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListAllRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -485,6 +565,14 @@ public Response ListAll(string subscriptionId, Cancella } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -557,6 +645,14 @@ public Response ListNextPage(string nextLink, string su } } + internal RequestUriBuilder CreateListAllNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListAllNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/RestOperations/GuestAgentRestOperations.cs b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/RestOperations/GuestAgentRestOperations.cs index 17e59f2c0fa3..440a32196980 100644 --- a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/RestOperations/GuestAgentRestOperations.cs +++ b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/RestOperations/GuestAgentRestOperations.cs @@ -36,6 +36,17 @@ public GuestAgentRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateRequestUri(string resourceUri, GuestAgentData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceUri, false); + uri.AppendPath("/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default/guestAgents/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string resourceUri, GuestAgentData data) { var message = _pipeline.CreateMessage(); @@ -101,6 +112,17 @@ public Response Create(string resourceUri, GuestAgentData data, CancellationToke } } + internal RequestUriBuilder CreateGetRequestUri(string resourceUri) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceUri, false); + uri.AppendPath("/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default/guestAgents/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string resourceUri) { var message = _pipeline.CreateMessage(); @@ -170,6 +192,17 @@ public Response Get(string resourceUri, CancellationToken cancel } } + internal RequestUriBuilder CreateDeleteRequestUri(string resourceUri) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceUri, false); + uri.AppendPath("/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default/guestAgents/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string resourceUri) { var message = _pipeline.CreateMessage(); diff --git a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/RestOperations/HybridIdentityMetadataRestOperations.cs b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/RestOperations/HybridIdentityMetadataRestOperations.cs index cdbb4762cf89..456c9efd42b2 100644 --- a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/RestOperations/HybridIdentityMetadataRestOperations.cs +++ b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/RestOperations/HybridIdentityMetadataRestOperations.cs @@ -37,6 +37,17 @@ public HybridIdentityMetadataRestOperations(HttpPipeline pipeline, string applic _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string resourceUri) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceUri, false); + uri.AppendPath("/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default/hybridIdentityMetadata/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string resourceUri) { var message = _pipeline.CreateMessage(); @@ -106,6 +117,17 @@ public Response Get(string resourceUri, Cancellation } } + internal RequestUriBuilder CreateListRequestUri(string resourceUri) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceUri, false); + uri.AppendPath("/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default/hybridIdentityMetadata", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string resourceUri) { var message = _pipeline.CreateMessage(); @@ -171,6 +193,14 @@ public Response List(string resourceUri, Cancellatio } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string resourceUri) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string resourceUri) { var message = _pipeline.CreateMessage(); diff --git a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/RestOperations/LogicalNetworksRestOperations.cs b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/RestOperations/LogicalNetworksRestOperations.cs index 35a5de14bfe4..af2bb79a4047 100644 --- a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/RestOperations/LogicalNetworksRestOperations.cs +++ b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/RestOperations/LogicalNetworksRestOperations.cs @@ -37,6 +37,20 @@ public LogicalNetworksRestOperations(HttpPipeline pipeline, string applicationId _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string logicalNetworkName) + { + 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.AzureStackHCI/logicalNetworks/", false); + uri.AppendPath(logicalNetworkName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string logicalNetworkName) { var message = _pipeline.CreateMessage(); @@ -117,6 +131,20 @@ public Response Get(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string logicalNetworkName, LogicalNetworkData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AzureStackHCI/logicalNetworks/", false); + uri.AppendPath(logicalNetworkName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string logicalNetworkName, LogicalNetworkData data) { var message = _pipeline.CreateMessage(); @@ -195,6 +223,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string logicalNetworkName) + { + 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.AzureStackHCI/logicalNetworks/", false); + uri.AppendPath(logicalNetworkName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string logicalNetworkName) { var message = _pipeline.CreateMessage(); @@ -265,6 +307,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string l } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string logicalNetworkName, LogicalNetworkPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AzureStackHCI/logicalNetworks/", false); + uri.AppendPath(logicalNetworkName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string logicalNetworkName, LogicalNetworkPatch patch) { var message = _pipeline.CreateMessage(); @@ -343,6 +399,19 @@ public Response Update(string subscriptionId, string resourceGroupName, string l } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName) + { + 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.AzureStackHCI/logicalNetworks", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -416,6 +485,17 @@ public Response List(string subscriptionId, string re } } + internal RequestUriBuilder CreateListAllRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.AzureStackHCI/logicalNetworks", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListAllRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -483,6 +563,14 @@ public Response ListAll(string subscriptionId, Cancel } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -555,6 +643,14 @@ public Response ListNextPage(string nextLink, string } } + internal RequestUriBuilder CreateListAllNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListAllNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/RestOperations/MarketplaceGalleryImagesRestOperations.cs b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/RestOperations/MarketplaceGalleryImagesRestOperations.cs index ab53751474a3..2e4542759b92 100644 --- a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/RestOperations/MarketplaceGalleryImagesRestOperations.cs +++ b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/RestOperations/MarketplaceGalleryImagesRestOperations.cs @@ -37,6 +37,20 @@ public MarketplaceGalleryImagesRestOperations(HttpPipeline pipeline, string appl _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string marketplaceGalleryImageName) + { + 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.AzureStackHCI/marketplaceGalleryImages/", false); + uri.AppendPath(marketplaceGalleryImageName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string marketplaceGalleryImageName) { var message = _pipeline.CreateMessage(); @@ -119,6 +133,20 @@ public Response Get(string subscriptionId, string r } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string marketplaceGalleryImageName, MarketplaceGalleryImageData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AzureStackHCI/marketplaceGalleryImages/", false); + uri.AppendPath(marketplaceGalleryImageName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string marketplaceGalleryImageName, MarketplaceGalleryImageData data) { var message = _pipeline.CreateMessage(); @@ -197,6 +225,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string marketplaceGalleryImageName) + { + 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.AzureStackHCI/marketplaceGalleryImages/", false); + uri.AppendPath(marketplaceGalleryImageName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string marketplaceGalleryImageName) { var message = _pipeline.CreateMessage(); @@ -267,6 +309,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string m } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string marketplaceGalleryImageName, MarketplaceGalleryImagePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AzureStackHCI/marketplaceGalleryImages/", false); + uri.AppendPath(marketplaceGalleryImageName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string marketplaceGalleryImageName, MarketplaceGalleryImagePatch patch) { var message = _pipeline.CreateMessage(); @@ -345,6 +401,19 @@ public Response Update(string subscriptionId, string resourceGroupName, string m } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName) + { + 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.AzureStackHCI/marketplaceGalleryImages", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -418,6 +487,17 @@ public Response List(string subscriptionId, } } + internal RequestUriBuilder CreateListAllRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.AzureStackHCI/marketplaceGalleryImages", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListAllRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -485,6 +565,14 @@ public Response ListAll(string subscriptionI } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -557,6 +645,14 @@ public Response ListNextPage(string nextLink } } + internal RequestUriBuilder CreateListAllNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListAllNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/RestOperations/NetworkInterfacesRestOperations.cs b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/RestOperations/NetworkInterfacesRestOperations.cs index 4d2f2d2e70d4..e82233d3a973 100644 --- a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/RestOperations/NetworkInterfacesRestOperations.cs +++ b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/RestOperations/NetworkInterfacesRestOperations.cs @@ -37,6 +37,20 @@ public NetworkInterfacesRestOperations(HttpPipeline pipeline, string application _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string networkInterfaceName) + { + 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.AzureStackHCI/networkInterfaces/", false); + uri.AppendPath(networkInterfaceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string networkInterfaceName) { var message = _pipeline.CreateMessage(); @@ -119,6 +133,20 @@ public Response Get(string subscriptionId, string resource } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string networkInterfaceName, NetworkInterfaceData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AzureStackHCI/networkInterfaces/", false); + uri.AppendPath(networkInterfaceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string networkInterfaceName, NetworkInterfaceData data) { var message = _pipeline.CreateMessage(); @@ -197,6 +225,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string networkInterfaceName) + { + 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.AzureStackHCI/networkInterfaces/", false); + uri.AppendPath(networkInterfaceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string networkInterfaceName) { var message = _pipeline.CreateMessage(); @@ -267,6 +309,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string n } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string networkInterfaceName, NetworkInterfacePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AzureStackHCI/networkInterfaces/", false); + uri.AppendPath(networkInterfaceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string networkInterfaceName, NetworkInterfacePatch patch) { var message = _pipeline.CreateMessage(); @@ -345,6 +401,19 @@ public Response Update(string subscriptionId, string resourceGroupName, string n } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName) + { + 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.AzureStackHCI/networkInterfaces", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -418,6 +487,17 @@ public Response List(string subscriptionId, string } } + internal RequestUriBuilder CreateListAllRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.AzureStackHCI/networkInterfaces", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListAllRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -485,6 +565,14 @@ public Response ListAll(string subscriptionId, Canc } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -557,6 +645,14 @@ public Response ListNextPage(string nextLink, strin } } + internal RequestUriBuilder CreateListAllNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListAllNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/RestOperations/OffersRestOperations.cs b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/RestOperations/OffersRestOperations.cs index 00dffd60e845..07b3ce185efc 100644 --- a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/RestOperations/OffersRestOperations.cs +++ b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/RestOperations/OffersRestOperations.cs @@ -37,6 +37,27 @@ public OffersRestOperations(HttpPipeline pipeline, string applicationId, Uri end _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByPublisherRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string publisherName, string expand) + { + 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.AzureStackHCI/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/publishers/", false); + uri.AppendPath(publisherName, true); + uri.AppendPath("/offers", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + return uri; + } + internal HttpMessage CreateListByPublisherRequest(string subscriptionId, string resourceGroupName, string clusterName, string publisherName, string expand) { var message = _pipeline.CreateMessage(); @@ -128,6 +149,25 @@ public Response ListByPublisher(string subscriptionId, string reso } } + internal RequestUriBuilder CreateListByClusterRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string expand) + { + 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.AzureStackHCI/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/offers", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + return uri; + } + internal HttpMessage CreateListByClusterRequest(string subscriptionId, string resourceGroupName, string clusterName, string expand) { var message = _pipeline.CreateMessage(); @@ -213,6 +253,28 @@ public Response ListByCluster(string subscriptionId, string resour } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string publisherName, string offerName, string expand) + { + 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.AzureStackHCI/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/publishers/", false); + uri.AppendPath(publisherName, true); + uri.AppendPath("/offers/", false); + uri.AppendPath(offerName, true); + uri.AppendQuery("api-version", _apiVersion, true); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string clusterName, string publisherName, string offerName, string expand) { var message = _pipeline.CreateMessage(); @@ -313,6 +375,14 @@ public Response Get(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateListByPublisherNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string clusterName, string publisherName, string expand) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByPublisherNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string clusterName, string publisherName, string expand) { var message = _pipeline.CreateMessage(); @@ -395,6 +465,14 @@ public Response ListByPublisherNextPage(string nextLink, string su } } + internal RequestUriBuilder CreateListByClusterNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string clusterName, string expand) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByClusterNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string clusterName, string expand) { var message = _pipeline.CreateMessage(); diff --git a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/RestOperations/PublishersRestOperations.cs b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/RestOperations/PublishersRestOperations.cs index 1b7c26dd739c..f0a117185356 100644 --- a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/RestOperations/PublishersRestOperations.cs +++ b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/RestOperations/PublishersRestOperations.cs @@ -37,6 +37,21 @@ public PublishersRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByClusterRequestUri(string subscriptionId, string resourceGroupName, string clusterName) + { + 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.AzureStackHCI/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/publishers", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByClusterRequest(string subscriptionId, string resourceGroupName, string clusterName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByCluster(string subscriptionId, string re } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string publisherName) + { + 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.AzureStackHCI/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/publishers/", false); + uri.AppendPath(publisherName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string clusterName, string publisherName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,14 @@ public Response Get(string subscriptionId, string resourceGroupNa } } + internal RequestUriBuilder CreateListByClusterNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string clusterName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByClusterNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string clusterName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/RestOperations/SkusRestOperations.cs b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/RestOperations/SkusRestOperations.cs index 1dc18bceb32d..98b4a7513a29 100644 --- a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/RestOperations/SkusRestOperations.cs +++ b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/RestOperations/SkusRestOperations.cs @@ -37,6 +37,29 @@ public SkusRestOperations(HttpPipeline pipeline, string applicationId, Uri endpo _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByOfferRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string publisherName, string offerName, string expand) + { + 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.AzureStackHCI/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/publishers/", false); + uri.AppendPath(publisherName, true); + uri.AppendPath("/offers/", false); + uri.AppendPath(offerName, true); + uri.AppendPath("/skus", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + return uri; + } + internal HttpMessage CreateListByOfferRequest(string subscriptionId, string resourceGroupName, string clusterName, string publisherName, string offerName, string expand) { var message = _pipeline.CreateMessage(); @@ -134,6 +157,30 @@ public Response ListByOffer(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string publisherName, string offerName, string skuName, string expand) + { + 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.AzureStackHCI/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/publishers/", false); + uri.AppendPath(publisherName, true); + uri.AppendPath("/offers/", false); + uri.AppendPath(offerName, true); + uri.AppendPath("/skus/", false); + uri.AppendPath(skuName, true); + uri.AppendQuery("api-version", _apiVersion, true); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string clusterName, string publisherName, string offerName, string skuName, string expand) { var message = _pipeline.CreateMessage(); @@ -240,6 +287,14 @@ public Response Get(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateListByOfferNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string clusterName, string publisherName, string offerName, string expand) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByOfferNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string clusterName, string publisherName, string offerName, string expand) { var message = _pipeline.CreateMessage(); diff --git a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/RestOperations/StorageContainersRestOperations.cs b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/RestOperations/StorageContainersRestOperations.cs index 0f916ee152e0..4700c480dec3 100644 --- a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/RestOperations/StorageContainersRestOperations.cs +++ b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/RestOperations/StorageContainersRestOperations.cs @@ -37,6 +37,20 @@ public StorageContainersRestOperations(HttpPipeline pipeline, string application _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string storageContainerName) + { + 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.AzureStackHCI/storageContainers/", false); + uri.AppendPath(storageContainerName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string storageContainerName) { var message = _pipeline.CreateMessage(); @@ -119,6 +133,20 @@ public Response Get(string subscriptionId, string resource } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string storageContainerName, StorageContainerData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AzureStackHCI/storageContainers/", false); + uri.AppendPath(storageContainerName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string storageContainerName, StorageContainerData data) { var message = _pipeline.CreateMessage(); @@ -197,6 +225,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string storageContainerName) + { + 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.AzureStackHCI/storageContainers/", false); + uri.AppendPath(storageContainerName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string storageContainerName) { var message = _pipeline.CreateMessage(); @@ -267,6 +309,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string storageContainerName, StorageContainerPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AzureStackHCI/storageContainers/", false); + uri.AppendPath(storageContainerName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string storageContainerName, StorageContainerPatch patch) { var message = _pipeline.CreateMessage(); @@ -345,6 +401,19 @@ public Response Update(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName) + { + 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.AzureStackHCI/storageContainers", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -418,6 +487,17 @@ public Response List(string subscriptionId, string } } + internal RequestUriBuilder CreateListAllRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.AzureStackHCI/storageContainers", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListAllRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -485,6 +565,14 @@ public Response ListAll(string subscriptionId, Canc } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -557,6 +645,14 @@ public Response ListNextPage(string nextLink, strin } } + internal RequestUriBuilder CreateListAllNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListAllNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/RestOperations/UpdateRunsRestOperations.cs b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/RestOperations/UpdateRunsRestOperations.cs index 593c123121be..d5ab8bdf2bfe 100644 --- a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/RestOperations/UpdateRunsRestOperations.cs +++ b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/RestOperations/UpdateRunsRestOperations.cs @@ -37,6 +37,23 @@ public UpdateRunsRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string updateName) + { + 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.AzureStackHCI/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/updates/", false); + uri.AppendPath(updateName, true); + uri.AppendPath("/updateRuns", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string clusterName, string updateName) { var message = _pipeline.CreateMessage(); @@ -122,6 +139,24 @@ public Response List(string subscriptionId, string resourceGroupN } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string updateName, string updateRunName) + { + 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.AzureStackHCI/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/updates/", false); + uri.AppendPath(updateName, true); + uri.AppendPath("/updateRuns/", false); + uri.AppendPath(updateRunName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string clusterName, string updateName, string updateRunName) { var message = _pipeline.CreateMessage(); @@ -206,6 +241,24 @@ public Response Delete(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreatePutRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string updateName, string updateRunName, UpdateRunData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AzureStackHCI/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/updates/", false); + uri.AppendPath(updateName, true); + uri.AppendPath("/updateRuns/", false); + uri.AppendPath(updateRunName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreatePutRequest(string subscriptionId, string resourceGroupName, string clusterName, string updateName, string updateRunName, UpdateRunData data) { var message = _pipeline.CreateMessage(); @@ -304,6 +357,24 @@ public Response Put(string subscriptionId, string resourceGroupNa } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string updateName, string updateRunName) + { + 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.AzureStackHCI/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/updates/", false); + uri.AppendPath(updateName, true); + uri.AppendPath("/updateRuns/", false); + uri.AppendPath(updateRunName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string clusterName, string updateName, string updateRunName) { var message = _pipeline.CreateMessage(); @@ -398,6 +469,14 @@ public Response Get(string subscriptionId, string resourceGroupNa } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string clusterName, string updateName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string clusterName, string updateName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/RestOperations/UpdateSummariesRestOperations.cs b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/RestOperations/UpdateSummariesRestOperations.cs index 02bca0e68904..75775ef7da27 100644 --- a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/RestOperations/UpdateSummariesRestOperations.cs +++ b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/RestOperations/UpdateSummariesRestOperations.cs @@ -37,6 +37,21 @@ public UpdateSummariesRestOperations(HttpPipeline pipeline, string applicationId _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string clusterName) + { + 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.AzureStackHCI/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/updateSummaries", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string clusterName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,21 @@ public Response List(string subscriptionId, string resource } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string clusterName) + { + 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.AzureStackHCI/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/updateSummaries/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string clusterName) { var message = _pipeline.CreateMessage(); @@ -189,6 +219,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreatePutRequestUri(string subscriptionId, string resourceGroupName, string clusterName, UpdateSummaryData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AzureStackHCI/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/updateSummaries/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreatePutRequest(string subscriptionId, string resourceGroupName, string clusterName, UpdateSummaryData data) { var message = _pipeline.CreateMessage(); @@ -276,6 +321,21 @@ public Response Put(string subscriptionId, string resourceGro } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string clusterName) + { + 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.AzureStackHCI/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/updateSummaries/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string clusterName) { var message = _pipeline.CreateMessage(); @@ -359,6 +419,14 @@ public Response Get(string subscriptionId, string resourceGro } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string clusterName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string clusterName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/RestOperations/UpdatesRestOperations.cs b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/RestOperations/UpdatesRestOperations.cs index 72dbfc5630ef..4a19c825db38 100644 --- a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/RestOperations/UpdatesRestOperations.cs +++ b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/RestOperations/UpdatesRestOperations.cs @@ -37,6 +37,23 @@ public UpdatesRestOperations(HttpPipeline pipeline, string applicationId, Uri en _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreatePostRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string updateName) + { + 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.AzureStackHCI/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/updates/", false); + uri.AppendPath(updateName, true); + uri.AppendPath("/apply", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreatePostRequest(string subscriptionId, string resourceGroupName, string clusterName, string updateName) { var message = _pipeline.CreateMessage(); @@ -114,6 +131,21 @@ public Response Post(string subscriptionId, string resourceGroupName, string clu } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string clusterName) + { + 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.AzureStackHCI/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/updates", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string clusterName) { var message = _pipeline.CreateMessage(); @@ -193,6 +225,22 @@ public Response List(string subscriptionId, string resourceGroupN } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string updateName) + { + 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.AzureStackHCI/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/updates/", false); + uri.AppendPath(updateName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string clusterName, string updateName) { var message = _pipeline.CreateMessage(); @@ -271,6 +319,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreatePutRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string updateName, UpdateData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AzureStackHCI/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/updates/", false); + uri.AppendPath(updateName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreatePutRequest(string subscriptionId, string resourceGroupName, string clusterName, string updateName, UpdateData data) { var message = _pipeline.CreateMessage(); @@ -363,6 +427,22 @@ public Response Put(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string updateName) + { + 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.AzureStackHCI/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/updates/", false); + uri.AppendPath(updateName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string clusterName, string updateName) { var message = _pipeline.CreateMessage(); @@ -451,6 +531,14 @@ public Response Get(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string clusterName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string clusterName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/RestOperations/VirtualHardDisksRestOperations.cs b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/RestOperations/VirtualHardDisksRestOperations.cs index 2f0055de03d0..d40394294d2f 100644 --- a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/RestOperations/VirtualHardDisksRestOperations.cs +++ b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/RestOperations/VirtualHardDisksRestOperations.cs @@ -37,6 +37,20 @@ public VirtualHardDisksRestOperations(HttpPipeline pipeline, string applicationI _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string virtualHardDiskName) + { + 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.AzureStackHCI/virtualHardDisks/", false); + uri.AppendPath(virtualHardDiskName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string virtualHardDiskName) { var message = _pipeline.CreateMessage(); @@ -119,6 +133,20 @@ public Response Get(string subscriptionId, string resourceG } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string virtualHardDiskName, VirtualHardDiskData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AzureStackHCI/virtualHardDisks/", false); + uri.AppendPath(virtualHardDiskName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string virtualHardDiskName, VirtualHardDiskData data) { var message = _pipeline.CreateMessage(); @@ -197,6 +225,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string virtualHardDiskName) + { + 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.AzureStackHCI/virtualHardDisks/", false); + uri.AppendPath(virtualHardDiskName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string virtualHardDiskName) { var message = _pipeline.CreateMessage(); @@ -267,6 +309,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string v } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string virtualHardDiskName, VirtualHardDiskPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AzureStackHCI/virtualHardDisks/", false); + uri.AppendPath(virtualHardDiskName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string virtualHardDiskName, VirtualHardDiskPatch patch) { var message = _pipeline.CreateMessage(); @@ -345,6 +401,19 @@ public Response Update(string subscriptionId, string resourceGroupName, string v } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName) + { + 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.AzureStackHCI/virtualHardDisks", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -418,6 +487,17 @@ public Response List(string subscriptionId, string r } } + internal RequestUriBuilder CreateListAllRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.AzureStackHCI/virtualHardDisks", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListAllRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -485,6 +565,14 @@ public Response ListAll(string subscriptionId, Cance } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -557,6 +645,14 @@ public Response ListNextPage(string nextLink, string } } + internal RequestUriBuilder CreateListAllNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListAllNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/RestOperations/VirtualMachineInstancesRestOperations.cs b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/RestOperations/VirtualMachineInstancesRestOperations.cs index a80003db85d6..f567ce7ceb82 100644 --- a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/RestOperations/VirtualMachineInstancesRestOperations.cs +++ b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/RestOperations/VirtualMachineInstancesRestOperations.cs @@ -37,6 +37,17 @@ public VirtualMachineInstancesRestOperations(HttpPipeline pipeline, string appli _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string resourceUri) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceUri, false); + uri.AppendPath("/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string resourceUri) { var message = _pipeline.CreateMessage(); @@ -106,6 +117,17 @@ public Response Get(string resourceUri, Cancellation } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string resourceUri, VirtualMachineInstanceData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceUri, false); + uri.AppendPath("/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string resourceUri, VirtualMachineInstanceData data) { var message = _pipeline.CreateMessage(); @@ -171,6 +193,17 @@ public Response CreateOrUpdate(string resourceUri, VirtualMachineInstanceData da } } + internal RequestUriBuilder CreateDeleteRequestUri(string resourceUri) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceUri, false); + uri.AppendPath("/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string resourceUri) { var message = _pipeline.CreateMessage(); @@ -228,6 +261,17 @@ public Response Delete(string resourceUri, CancellationToken cancellationToken = } } + internal RequestUriBuilder CreateUpdateRequestUri(string resourceUri, VirtualMachineInstancePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceUri, false); + uri.AppendPath("/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string resourceUri, VirtualMachineInstancePatch patch) { var message = _pipeline.CreateMessage(); @@ -293,6 +337,17 @@ public Response Update(string resourceUri, VirtualMachineInstancePatch patch, Ca } } + internal RequestUriBuilder CreateStartRequestUri(string resourceUri) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceUri, false); + uri.AppendPath("/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default/start", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStartRequest(string resourceUri) { var message = _pipeline.CreateMessage(); @@ -350,6 +405,17 @@ public Response Start(string resourceUri, CancellationToken cancellationToken = } } + internal RequestUriBuilder CreateStopRequestUri(string resourceUri) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceUri, false); + uri.AppendPath("/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default/stop", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStopRequest(string resourceUri) { var message = _pipeline.CreateMessage(); @@ -407,6 +473,17 @@ public Response Stop(string resourceUri, CancellationToken cancellationToken = d } } + internal RequestUriBuilder CreateRestartRequestUri(string resourceUri) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceUri, false); + uri.AppendPath("/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default/restart", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRestartRequest(string resourceUri) { var message = _pipeline.CreateMessage(); @@ -464,6 +541,17 @@ public Response Restart(string resourceUri, CancellationToken cancellationToken } } + internal RequestUriBuilder CreateListRequestUri(string resourceUri) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceUri, false); + uri.AppendPath("/providers/Microsoft.AzureStackHCI/virtualMachineInstances", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string resourceUri) { var message = _pipeline.CreateMessage(); @@ -529,6 +617,14 @@ public Response List(string resourceUri, Cance } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string resourceUri) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string resourceUri) { var message = _pipeline.CreateMessage(); diff --git a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/UpdateCollection.cs b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/UpdateCollection.cs index 34e8abee4620..34f2cea7ebf2 100644 --- a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/UpdateCollection.cs +++ b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/UpdateCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> CreateOrUpdateAsync(Wait try { var response = await _updateRestClient.PutAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, updateName, data, cancellationToken).ConfigureAwait(false); - var operation = new HciArmOperation(Response.FromValue(new UpdateResource(Client, response), response.GetRawResponse())); + var uri = _updateRestClient.CreatePutRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, updateName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new HciArmOperation(Response.FromValue(new UpdateResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, try { var response = _updateRestClient.Put(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, updateName, data, cancellationToken); - var operation = new HciArmOperation(Response.FromValue(new UpdateResource(Client, response), response.GetRawResponse())); + var uri = _updateRestClient.CreatePutRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, updateName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new HciArmOperation(Response.FromValue(new UpdateResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/UpdateResource.cs b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/UpdateResource.cs index 04f888854a4e..27b8a25e6745 100644 --- a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/UpdateResource.cs +++ b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/UpdateResource.cs @@ -357,7 +357,9 @@ public virtual async Task> UpdateAsync(WaitUntil wa try { var response = await _updateRestClient.PutAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new HciArmOperation(Response.FromValue(new UpdateResource(Client, response), response.GetRawResponse())); + var uri = _updateRestClient.CreatePutRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new HciArmOperation(Response.FromValue(new UpdateResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -403,7 +405,9 @@ public virtual ArmOperation Update(WaitUntil waitUntil, UpdateDa try { var response = _updateRestClient.Put(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new HciArmOperation(Response.FromValue(new UpdateResource(Client, response), response.GetRawResponse())); + var uri = _updateRestClient.CreatePutRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new HciArmOperation(Response.FromValue(new UpdateResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/UpdateRunCollection.cs b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/UpdateRunCollection.cs index 6cfdfbfa42f7..25917db54cc9 100644 --- a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/UpdateRunCollection.cs +++ b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/UpdateRunCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> CreateOrUpdateAsync(W try { var response = await _updateRunRestClient.PutAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, updateRunName, data, cancellationToken).ConfigureAwait(false); - var operation = new HciArmOperation(Response.FromValue(new UpdateRunResource(Client, response), response.GetRawResponse())); + var uri = _updateRunRestClient.CreatePutRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, updateRunName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new HciArmOperation(Response.FromValue(new UpdateRunResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUnti try { var response = _updateRunRestClient.Put(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, updateRunName, data, cancellationToken); - var operation = new HciArmOperation(Response.FromValue(new UpdateRunResource(Client, response), response.GetRawResponse())); + var uri = _updateRunRestClient.CreatePutRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, updateRunName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new HciArmOperation(Response.FromValue(new UpdateRunResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/UpdateRunResource.cs b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/UpdateRunResource.cs index 9622ee4addc9..aa42c523a87d 100644 --- a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/UpdateRunResource.cs +++ b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/UpdateRunResource.cs @@ -289,7 +289,9 @@ public virtual async Task> UpdateAsync(WaitUntil try { var response = await _updateRunRestClient.PutAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new HciArmOperation(Response.FromValue(new UpdateRunResource(Client, response), response.GetRawResponse())); + var uri = _updateRunRestClient.CreatePutRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new HciArmOperation(Response.FromValue(new UpdateRunResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -335,7 +337,9 @@ public virtual ArmOperation Update(WaitUntil waitUntil, Updat try { var response = _updateRunRestClient.Put(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new HciArmOperation(Response.FromValue(new UpdateRunResource(Client, response), response.GetRawResponse())); + var uri = _updateRunRestClient.CreatePutRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new HciArmOperation(Response.FromValue(new UpdateRunResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/UpdateSummaryResource.cs b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/UpdateSummaryResource.cs index 1fff911942d0..8d4301c58939 100644 --- a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/UpdateSummaryResource.cs +++ b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/UpdateSummaryResource.cs @@ -287,7 +287,9 @@ public virtual async Task> CreateOrUpdateAsy try { var response = await _updateSummaryRestClient.PutAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new HciArmOperation(Response.FromValue(new UpdateSummaryResource(Client, response), response.GetRawResponse())); + var uri = _updateSummaryRestClient.CreatePutRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new HciArmOperation(Response.FromValue(new UpdateSummaryResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -333,7 +335,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wait try { var response = _updateSummaryRestClient.Put(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, data, cancellationToken); - var operation = new HciArmOperation(Response.FromValue(new UpdateSummaryResource(Client, response), response.GetRawResponse())); + var uri = _updateSummaryRestClient.CreatePutRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new HciArmOperation(Response.FromValue(new UpdateSummaryResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/BatchAccountCertificateCollection.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/BatchAccountCertificateCollection.cs index 0c7fe73e5bbc..1f59b0a71f70 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/BatchAccountCertificateCollection.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/BatchAccountCertificateCollection.cs @@ -93,7 +93,9 @@ public virtual async Task> CreateO try { var response = await _batchAccountCertificateCertificateRestClient.CreateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, certificateName, content, ifMatch, ifNoneMatch, cancellationToken).ConfigureAwait(false); - var operation = new BatchArmOperation(Response.FromValue(new BatchAccountCertificateResource(Client, response), response.GetRawResponse())); + var uri = _batchAccountCertificateCertificateRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, certificateName, content, ifMatch, ifNoneMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new BatchArmOperation(Response.FromValue(new BatchAccountCertificateResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -144,7 +146,9 @@ public virtual ArmOperation CreateOrUpdate(Wait try { var response = _batchAccountCertificateCertificateRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, certificateName, content, ifMatch, ifNoneMatch, cancellationToken); - var operation = new BatchArmOperation(Response.FromValue(new BatchAccountCertificateResource(Client, response), response.GetRawResponse())); + var uri = _batchAccountCertificateCertificateRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, certificateName, content, ifMatch, ifNoneMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new BatchArmOperation(Response.FromValue(new BatchAccountCertificateResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/BatchAccountPoolCollection.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/BatchAccountPoolCollection.cs index c02075abd617..93a5ca403870 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/BatchAccountPoolCollection.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/BatchAccountPoolCollection.cs @@ -92,7 +92,9 @@ public virtual async Task> CreateOrUpdate try { var response = await _batchAccountPoolPoolRestClient.CreateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, poolName, data, ifMatch, ifNoneMatch, cancellationToken).ConfigureAwait(false); - var operation = new BatchArmOperation(Response.FromValue(new BatchAccountPoolResource(Client, response), response.GetRawResponse())); + var uri = _batchAccountPoolPoolRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, poolName, data, ifMatch, ifNoneMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new BatchArmOperation(Response.FromValue(new BatchAccountPoolResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -143,7 +145,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil w try { var response = _batchAccountPoolPoolRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, poolName, data, ifMatch, ifNoneMatch, cancellationToken); - var operation = new BatchArmOperation(Response.FromValue(new BatchAccountPoolResource(Client, response), response.GetRawResponse())); + var uri = _batchAccountPoolPoolRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, poolName, data, ifMatch, ifNoneMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new BatchArmOperation(Response.FromValue(new BatchAccountPoolResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/BatchApplicationCollection.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/BatchApplicationCollection.cs index 3e9007005c84..7e224676fc96 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/BatchApplicationCollection.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/BatchApplicationCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> CreateOrUpdate try { var response = await _batchApplicationApplicationRestClient.CreateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, applicationName, data, cancellationToken).ConfigureAwait(false); - var operation = new BatchArmOperation(Response.FromValue(new BatchApplicationResource(Client, response), response.GetRawResponse())); + var uri = _batchApplicationApplicationRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, applicationName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new BatchArmOperation(Response.FromValue(new BatchApplicationResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil w try { var response = _batchApplicationApplicationRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, applicationName, data, cancellationToken); - var operation = new BatchArmOperation(Response.FromValue(new BatchApplicationResource(Client, response), response.GetRawResponse())); + var uri = _batchApplicationApplicationRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, applicationName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new BatchArmOperation(Response.FromValue(new BatchApplicationResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/BatchApplicationPackageCollection.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/BatchApplicationPackageCollection.cs index 9045ed042f5a..2e8600df156b 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/BatchApplicationPackageCollection.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/BatchApplicationPackageCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> CreateO try { var response = await _batchApplicationPackageApplicationPackageRestClient.CreateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, versionName, data, cancellationToken).ConfigureAwait(false); - var operation = new BatchArmOperation(Response.FromValue(new BatchApplicationPackageResource(Client, response), response.GetRawResponse())); + var uri = _batchApplicationPackageApplicationPackageRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, versionName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new BatchArmOperation(Response.FromValue(new BatchApplicationPackageResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(Wait try { var response = _batchApplicationPackageApplicationPackageRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, versionName, data, cancellationToken); - var operation = new BatchArmOperation(Response.FromValue(new BatchApplicationPackageResource(Client, response), response.GetRawResponse())); + var uri = _batchApplicationPackageApplicationPackageRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, versionName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new BatchArmOperation(Response.FromValue(new BatchApplicationPackageResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/BatchApplicationPackageResource.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/BatchApplicationPackageResource.cs index e7e263af869b..6d27c9b86e42 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/BatchApplicationPackageResource.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/BatchApplicationPackageResource.cs @@ -202,7 +202,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _batchApplicationPackageApplicationPackageRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new BatchArmOperation(response); + var uri = _batchApplicationPackageApplicationPackageRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new BatchArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -244,7 +246,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _batchApplicationPackageApplicationPackageRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new BatchArmOperation(response); + var uri = _batchApplicationPackageApplicationPackageRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new BatchArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -290,7 +294,9 @@ public virtual async Task> UpdateA try { var response = await _batchApplicationPackageApplicationPackageRestClient.CreateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new BatchArmOperation(Response.FromValue(new BatchApplicationPackageResource(Client, response), response.GetRawResponse())); + var uri = _batchApplicationPackageApplicationPackageRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new BatchArmOperation(Response.FromValue(new BatchApplicationPackageResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -336,7 +342,9 @@ public virtual ArmOperation Update(WaitUntil wa try { var response = _batchApplicationPackageApplicationPackageRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new BatchArmOperation(Response.FromValue(new BatchApplicationPackageResource(Client, response), response.GetRawResponse())); + var uri = _batchApplicationPackageApplicationPackageRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new BatchArmOperation(Response.FromValue(new BatchApplicationPackageResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/BatchApplicationResource.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/BatchApplicationResource.cs index 1f9f7fc31cfa..c799f879940a 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/BatchApplicationResource.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/BatchApplicationResource.cs @@ -269,7 +269,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _batchApplicationApplicationRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new BatchArmOperation(response); + var uri = _batchApplicationApplicationRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new BatchArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -311,7 +313,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _batchApplicationApplicationRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new BatchArmOperation(response); + var uri = _batchApplicationApplicationRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new BatchArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/LongRunningOperation/BatchArmOperation.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/LongRunningOperation/BatchArmOperation.cs index 49819a52dfbe..557ade20c9a9 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/LongRunningOperation/BatchArmOperation.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/LongRunningOperation/BatchArmOperation.cs @@ -20,21 +20,24 @@ internal class BatchArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of BatchArmOperation for mocking. protected BatchArmOperation() { } - internal BatchArmOperation(Response response) + internal BatchArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal BatchArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "BatchArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal BatchArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pip public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/LongRunningOperation/BatchArmOperationOfT.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/LongRunningOperation/BatchArmOperationOfT.cs index a95fe71f90df..eda09bbb5262 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/LongRunningOperation/BatchArmOperationOfT.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/LongRunningOperation/BatchArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class BatchArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of BatchArmOperation for mocking. protected BatchArmOperation() { } - internal BatchArmOperation(Response response) + internal BatchArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal BatchArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "BatchArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal BatchArmOperation(IOperationSource source, ClientDiagnostics clientD public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchAccountCertificateResource.Serialization.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchAccountCertificateResource.Serialization.cs new file mode 100644 index 000000000000..4dbf371322c3 --- /dev/null +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchAccountCertificateResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Batch +{ + public partial class BatchAccountCertificateResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + BatchAccountCertificateData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + BatchAccountCertificateData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchAccountDetectorResource.Serialization.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchAccountDetectorResource.Serialization.cs new file mode 100644 index 000000000000..a496e14db46f --- /dev/null +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchAccountDetectorResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Batch +{ + public partial class BatchAccountDetectorResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + BatchAccountDetectorData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + BatchAccountDetectorData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchAccountPoolResource.Serialization.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchAccountPoolResource.Serialization.cs new file mode 100644 index 000000000000..6346c3e955b0 --- /dev/null +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchAccountPoolResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Batch +{ + public partial class BatchAccountPoolResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + BatchAccountPoolData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + BatchAccountPoolData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchAccountResource.Serialization.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchAccountResource.Serialization.cs new file mode 100644 index 000000000000..a4be763d7962 --- /dev/null +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchAccountResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Batch +{ + public partial class BatchAccountResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + BatchAccountData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + BatchAccountData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchApplicationPackageResource.Serialization.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchApplicationPackageResource.Serialization.cs new file mode 100644 index 000000000000..7dd44693b738 --- /dev/null +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchApplicationPackageResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Batch +{ + public partial class BatchApplicationPackageResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + BatchApplicationPackageData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + BatchApplicationPackageData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchApplicationResource.Serialization.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchApplicationResource.Serialization.cs new file mode 100644 index 000000000000..d7c2ceb9e97e --- /dev/null +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchApplicationResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Batch +{ + public partial class BatchApplicationResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + BatchApplicationData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + BatchApplicationData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchPrivateEndpointConnectionResource.Serialization.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchPrivateEndpointConnectionResource.Serialization.cs new file mode 100644 index 000000000000..97ec6be6449a --- /dev/null +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchPrivateEndpointConnectionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Batch +{ + public partial class BatchPrivateEndpointConnectionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + BatchPrivateEndpointConnectionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + BatchPrivateEndpointConnectionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchPrivateLinkResource.Serialization.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchPrivateLinkResource.Serialization.cs new file mode 100644 index 000000000000..1628011a5ba9 --- /dev/null +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchPrivateLinkResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Batch +{ + public partial class BatchPrivateLinkResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + BatchPrivateLinkResourceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + BatchPrivateLinkResourceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/RestOperations/ApplicationPackageRestOperations.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/RestOperations/ApplicationPackageRestOperations.cs index 40c5a5e900eb..c971517b5f97 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/RestOperations/ApplicationPackageRestOperations.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/RestOperations/ApplicationPackageRestOperations.cs @@ -37,6 +37,25 @@ public ApplicationPackageRestOperations(HttpPipeline pipeline, string applicatio _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateActivateRequestUri(string subscriptionId, string resourceGroupName, string accountName, string applicationName, string versionName, BatchApplicationPackageActivateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Batch/batchAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/applications/", false); + uri.AppendPath(applicationName, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(versionName, true); + uri.AppendPath("/activate", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateActivateRequest(string subscriptionId, string resourceGroupName, string accountName, string applicationName, string versionName, BatchApplicationPackageActivateContent content) { var message = _pipeline.CreateMessage(); @@ -136,6 +155,24 @@ public Response Activate(string subscriptionId, str } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string accountName, string applicationName, string versionName, BatchApplicationPackageData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Batch/batchAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/applications/", false); + uri.AppendPath(applicationName, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(versionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string accountName, string applicationName, string versionName, BatchApplicationPackageData data) { var message = _pipeline.CreateMessage(); @@ -234,6 +271,24 @@ public Response Create(string subscriptionId, strin } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string accountName, string applicationName, string versionName) + { + 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.Batch/batchAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/applications/", false); + uri.AppendPath(applicationName, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(versionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string accountName, string applicationName, string versionName) { var message = _pipeline.CreateMessage(); @@ -316,6 +371,24 @@ public Response Delete(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string accountName, string applicationName, string versionName) + { + 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.Batch/batchAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/applications/", false); + uri.AppendPath(applicationName, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(versionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string accountName, string applicationName, string versionName) { var message = _pipeline.CreateMessage(); @@ -410,6 +483,27 @@ public Response Get(string subscriptionId, string r } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string accountName, string applicationName, int? maxresults) + { + 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.Batch/batchAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/applications/", false); + uri.AppendPath(applicationName, true); + uri.AppendPath("/versions", false); + if (maxresults != null) + { + uri.AppendQuery("maxresults", maxresults.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string accountName, string applicationName, int? maxresults) { var message = _pipeline.CreateMessage(); @@ -501,6 +595,14 @@ public Response List(string subscriptionId, strin } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string accountName, string applicationName, int? maxresults) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string accountName, string applicationName, int? maxresults) { var message = _pipeline.CreateMessage(); diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/RestOperations/ApplicationRestOperations.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/RestOperations/ApplicationRestOperations.cs index 162b3eb29db3..8a1de2ae37e9 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/RestOperations/ApplicationRestOperations.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/RestOperations/ApplicationRestOperations.cs @@ -37,6 +37,22 @@ public ApplicationRestOperations(HttpPipeline pipeline, string applicationId, Ur _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string accountName, string applicationName, BatchApplicationData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Batch/batchAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/applications/", false); + uri.AppendPath(applicationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string accountName, string applicationName, BatchApplicationData data) { var message = _pipeline.CreateMessage(); @@ -129,6 +145,22 @@ public Response Create(string subscriptionId, string resou } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string accountName, string applicationName) + { + 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.Batch/batchAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/applications/", false); + uri.AppendPath(applicationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string accountName, string applicationName) { var message = _pipeline.CreateMessage(); @@ -205,6 +237,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string accountName, string applicationName) + { + 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.Batch/batchAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/applications/", false); + uri.AppendPath(applicationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string accountName, string applicationName) { var message = _pipeline.CreateMessage(); @@ -293,6 +341,22 @@ public Response Get(string subscriptionId, string resource } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string accountName, string applicationName, BatchApplicationData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Batch/batchAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/applications/", false); + uri.AppendPath(applicationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string accountName, string applicationName, BatchApplicationData data) { var message = _pipeline.CreateMessage(); @@ -385,6 +449,25 @@ public Response Update(string subscriptionId, string resou } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string accountName, int? maxresults) + { + 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.Batch/batchAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/applications", false); + if (maxresults != null) + { + uri.AppendQuery("maxresults", maxresults.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string accountName, int? maxresults) { var message = _pipeline.CreateMessage(); @@ -470,6 +553,14 @@ public Response List(string subscriptionId, string resou } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string accountName, int? maxresults) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string accountName, int? maxresults) { var message = _pipeline.CreateMessage(); diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/RestOperations/BatchAccountRestOperations.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/RestOperations/BatchAccountRestOperations.cs index 8248825dea5b..5de6e478a198 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/RestOperations/BatchAccountRestOperations.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/RestOperations/BatchAccountRestOperations.cs @@ -37,6 +37,20 @@ public BatchAccountRestOperations(HttpPipeline pipeline, string applicationId, U _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string accountName, BatchAccountCreateOrUpdateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Batch/batchAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string accountName, BatchAccountCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); @@ -115,6 +129,20 @@ public Response Create(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string accountName, BatchAccountPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Batch/batchAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string accountName, BatchAccountPatch patch) { var message = _pipeline.CreateMessage(); @@ -201,6 +229,20 @@ public Response Update(string subscriptionId, string resourceG } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string accountName) + { + 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.Batch/batchAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); @@ -273,6 +315,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string accountName) + { + 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.Batch/batchAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); @@ -355,6 +411,17 @@ public Response Get(string subscriptionId, string resourceGrou } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Batch/batchAccounts", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -422,6 +489,19 @@ public Response List(string subscriptionId, Cancellation } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.Batch/batchAccounts", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -495,6 +575,21 @@ public Response ListByResourceGroup(string subscriptionI } } + internal RequestUriBuilder CreateSynchronizeAutoStorageKeysRequestUri(string subscriptionId, string resourceGroupName, string accountName) + { + 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.Batch/batchAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/syncAutoStorageKeys", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateSynchronizeAutoStorageKeysRequest(string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); @@ -564,6 +659,21 @@ public Response SynchronizeAutoStorageKeys(string subscriptionId, string resourc } } + internal RequestUriBuilder CreateRegenerateKeyRequestUri(string subscriptionId, string resourceGroupName, string accountName, BatchAccountRegenerateKeyContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Batch/batchAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/regenerateKeys", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRegenerateKeyRequest(string subscriptionId, string resourceGroupName, string accountName, BatchAccountRegenerateKeyContent content) { var message = _pipeline.CreateMessage(); @@ -651,6 +761,21 @@ public Response RegenerateKey(string subscriptionId, string re } } + internal RequestUriBuilder CreateGetKeysRequestUri(string subscriptionId, string resourceGroupName, string accountName) + { + 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.Batch/batchAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/listKeys", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetKeysRequest(string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); @@ -730,6 +855,21 @@ public Response GetKeys(string subscriptionId, string resource } } + internal RequestUriBuilder CreateListDetectorsRequestUri(string subscriptionId, string resourceGroupName, string accountName) + { + 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.Batch/batchAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/detectors", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListDetectorsRequest(string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); @@ -809,6 +949,22 @@ public Response ListDetectors(string subscriptionId, string } } + internal RequestUriBuilder CreateGetDetectorRequestUri(string subscriptionId, string resourceGroupName, string accountName, string detectorId) + { + 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.Batch/batchAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/detectors/", false); + uri.AppendPath(detectorId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetDetectorRequest(string subscriptionId, string resourceGroupName, string accountName, string detectorId) { var message = _pipeline.CreateMessage(); @@ -897,6 +1053,21 @@ public Response GetDetector(string subscriptionId, str } } + internal RequestUriBuilder CreateListOutboundNetworkDependenciesEndpointsRequestUri(string subscriptionId, string resourceGroupName, string accountName) + { + 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.Batch/batchAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/outboundNetworkDependenciesEndpoints", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListOutboundNetworkDependenciesEndpointsRequest(string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); @@ -976,6 +1147,14 @@ public Response ListOutboundNetworkDepend } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -1044,6 +1223,14 @@ public Response ListNextPage(string nextLink, string sub } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -1116,6 +1303,14 @@ public Response ListByResourceGroupNextPage(string nextL } } + internal RequestUriBuilder CreateListDetectorsNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string accountName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListDetectorsNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); @@ -1192,6 +1387,14 @@ public Response ListDetectorsNextPage(string nextLink, strin } } + internal RequestUriBuilder CreateListOutboundNetworkDependenciesEndpointsNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string accountName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListOutboundNetworkDependenciesEndpointsNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/RestOperations/CertificateRestOperations.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/RestOperations/CertificateRestOperations.cs index 811e53342732..258c6e37460e 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/RestOperations/CertificateRestOperations.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/RestOperations/CertificateRestOperations.cs @@ -37,6 +37,33 @@ public CertificateRestOperations(HttpPipeline pipeline, string applicationId, Ur _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByBatchAccountRequestUri(string subscriptionId, string resourceGroupName, string accountName, int? maxresults, string select, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Batch/batchAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/certificates", false); + if (maxresults != null) + { + uri.AppendQuery("maxresults", maxresults.Value, true); + } + if (select != null) + { + uri.AppendQuery("$select", select, true); + } + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByBatchAccountRequest(string subscriptionId, string resourceGroupName, string accountName, int? maxresults, string select, string filter) { var message = _pipeline.CreateMessage(); @@ -134,6 +161,22 @@ public Response ListByBatchAccount(string subscriptionId } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string accountName, string certificateName, BatchAccountCertificateCreateOrUpdateContent content, ETag? ifMatch, string ifNoneMatch) + { + 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.Batch/batchAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/certificates/", false); + uri.AppendPath(certificateName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string accountName, string certificateName, BatchAccountCertificateCreateOrUpdateContent content, ETag? ifMatch, string ifNoneMatch) { var message = _pipeline.CreateMessage(); @@ -238,6 +281,22 @@ public Response Create(string subscriptionId, strin } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string accountName, string certificateName, BatchAccountCertificateCreateOrUpdateContent content, ETag? ifMatch) + { + 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.Batch/batchAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/certificates/", false); + uri.AppendPath(certificateName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string accountName, string certificateName, BatchAccountCertificateCreateOrUpdateContent content, ETag? ifMatch) { var message = _pipeline.CreateMessage(); @@ -336,6 +395,22 @@ public Response Update(string subscriptionId, strin } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string accountName, string certificateName) + { + 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.Batch/batchAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/certificates/", false); + uri.AppendPath(certificateName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string accountName, string certificateName) { var message = _pipeline.CreateMessage(); @@ -414,6 +489,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string accountName, string certificateName) + { + 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.Batch/batchAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/certificates/", false); + uri.AppendPath(certificateName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string accountName, string certificateName) { var message = _pipeline.CreateMessage(); @@ -502,6 +593,23 @@ public Response Get(string subscriptionId, string r } } + internal RequestUriBuilder CreateCancelDeletionRequestUri(string subscriptionId, string resourceGroupName, string accountName, string certificateName) + { + 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.Batch/batchAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/certificates/", false); + uri.AppendPath(certificateName, true); + uri.AppendPath("/cancelDelete", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCancelDeletionRequest(string subscriptionId, string resourceGroupName, string accountName, string certificateName) { var message = _pipeline.CreateMessage(); @@ -595,6 +703,14 @@ public Response CancelDeletion(string subscriptionI } } + internal RequestUriBuilder CreateListByBatchAccountNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string accountName, int? maxresults, string select, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByBatchAccountNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string accountName, int? maxresults, string select, string filter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/RestOperations/LocationRestOperations.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/RestOperations/LocationRestOperations.cs index cb9e0ba90562..6a4548e3cb42 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/RestOperations/LocationRestOperations.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/RestOperations/LocationRestOperations.cs @@ -37,6 +37,19 @@ public LocationRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetQuotasRequestUri(string subscriptionId, AzureLocation locationName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Batch/locations/", false); + uri.AppendPath(locationName, true); + uri.AppendPath("/quotas", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetQuotasRequest(string subscriptionId, AzureLocation locationName) { var message = _pipeline.CreateMessage(); @@ -108,6 +121,27 @@ public Response GetQuotas(string subscriptionId, AzureLocati } } + internal RequestUriBuilder CreateListSupportedVirtualMachineSkusRequestUri(string subscriptionId, AzureLocation locationName, int? maxresults, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Batch/locations/", false); + uri.AppendPath(locationName, true); + uri.AppendPath("/virtualMachineSkus", false); + if (maxresults != null) + { + uri.AppendQuery("maxresults", maxresults.Value, true); + } + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListSupportedVirtualMachineSkusRequest(string subscriptionId, AzureLocation locationName, int? maxresults, string filter) { var message = _pipeline.CreateMessage(); @@ -191,6 +225,27 @@ public Response ListSupportedVirtualMachineSkus(string subs } } + internal RequestUriBuilder CreateListSupportedCloudServiceSkusRequestUri(string subscriptionId, AzureLocation locationName, int? maxresults, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Batch/locations/", false); + uri.AppendPath(locationName, true); + uri.AppendPath("/cloudServiceSkus", false); + if (maxresults != null) + { + uri.AppendQuery("maxresults", maxresults.Value, true); + } + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListSupportedCloudServiceSkusRequest(string subscriptionId, AzureLocation locationName, int? maxresults, string filter) { var message = _pipeline.CreateMessage(); @@ -274,6 +329,19 @@ public Response ListSupportedCloudServiceSkus(string subscr } } + internal RequestUriBuilder CreateCheckNameAvailabilityRequestUri(string subscriptionId, AzureLocation locationName, BatchNameAvailabilityContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Batch/locations/", false); + uri.AppendPath(locationName, true); + uri.AppendPath("/checkNameAvailability", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCheckNameAvailabilityRequest(string subscriptionId, AzureLocation locationName, BatchNameAvailabilityContent content) { var message = _pipeline.CreateMessage(); @@ -353,6 +421,14 @@ public Response CheckNameAvailability(string subscr } } + internal RequestUriBuilder CreateListSupportedVirtualMachineSkusNextPageRequestUri(string nextLink, string subscriptionId, AzureLocation locationName, int? maxresults, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListSupportedVirtualMachineSkusNextPageRequest(string nextLink, string subscriptionId, AzureLocation locationName, int? maxresults, string filter) { var message = _pipeline.CreateMessage(); @@ -427,6 +503,14 @@ public Response ListSupportedVirtualMachineSkusNextPage(str } } + internal RequestUriBuilder CreateListSupportedCloudServiceSkusNextPageRequestUri(string nextLink, string subscriptionId, AzureLocation locationName, int? maxresults, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListSupportedCloudServiceSkusNextPageRequest(string nextLink, string subscriptionId, AzureLocation locationName, int? maxresults, string filter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/RestOperations/PoolRestOperations.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/RestOperations/PoolRestOperations.cs index f1318e5015af..efac246ee5f8 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/RestOperations/PoolRestOperations.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/RestOperations/PoolRestOperations.cs @@ -37,6 +37,33 @@ public PoolRestOperations(HttpPipeline pipeline, string applicationId, Uri endpo _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByBatchAccountRequestUri(string subscriptionId, string resourceGroupName, string accountName, int? maxresults, string select, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Batch/batchAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/pools", false); + if (maxresults != null) + { + uri.AppendQuery("maxresults", maxresults.Value, true); + } + if (select != null) + { + uri.AppendQuery("$select", select, true); + } + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByBatchAccountRequest(string subscriptionId, string resourceGroupName, string accountName, int? maxresults, string select, string filter) { var message = _pipeline.CreateMessage(); @@ -162,6 +189,22 @@ public Response ListByBatchAccount(string subscriptionId, strin } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string accountName, string poolName, BatchAccountPoolData data, ETag? ifMatch, string ifNoneMatch) + { + 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.Batch/batchAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/pools/", false); + uri.AppendPath(poolName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string accountName, string poolName, BatchAccountPoolData data, ETag? ifMatch, string ifNoneMatch) { var message = _pipeline.CreateMessage(); @@ -266,6 +309,22 @@ public Response Create(string subscriptionId, string resou } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string accountName, string poolName, BatchAccountPoolData data, ETag? ifMatch) + { + 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.Batch/batchAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/pools/", false); + uri.AppendPath(poolName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string accountName, string poolName, BatchAccountPoolData data, ETag? ifMatch) { var message = _pipeline.CreateMessage(); @@ -364,6 +423,22 @@ public Response Update(string subscriptionId, string resou } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string accountName, string poolName) + { + 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.Batch/batchAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/pools/", false); + uri.AppendPath(poolName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string accountName, string poolName) { var message = _pipeline.CreateMessage(); @@ -442,6 +517,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string accountName, string poolName) + { + 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.Batch/batchAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/pools/", false); + uri.AppendPath(poolName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string accountName, string poolName) { var message = _pipeline.CreateMessage(); @@ -530,6 +621,23 @@ public Response Get(string subscriptionId, string resource } } + internal RequestUriBuilder CreateDisableAutoScaleRequestUri(string subscriptionId, string resourceGroupName, string accountName, string poolName) + { + 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.Batch/batchAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/pools/", false); + uri.AppendPath(poolName, true); + uri.AppendPath("/disableAutoScale", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDisableAutoScaleRequest(string subscriptionId, string resourceGroupName, string accountName, string poolName) { var message = _pipeline.CreateMessage(); @@ -615,6 +723,23 @@ public Response DisableAutoScale(string subscriptionId, st } } + internal RequestUriBuilder CreateStopResizeRequestUri(string subscriptionId, string resourceGroupName, string accountName, string poolName) + { + 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.Batch/batchAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/pools/", false); + uri.AppendPath(poolName, true); + uri.AppendPath("/stopResize", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStopResizeRequest(string subscriptionId, string resourceGroupName, string accountName, string poolName) { var message = _pipeline.CreateMessage(); @@ -700,6 +825,14 @@ public Response StopResize(string subscriptionId, string r } } + internal RequestUriBuilder CreateListByBatchAccountNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string accountName, int? maxresults, string select, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByBatchAccountNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string accountName, int? maxresults, string select, string filter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/RestOperations/PrivateEndpointConnectionRestOperations.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/RestOperations/PrivateEndpointConnectionRestOperations.cs index d4d884ad6847..286f1ff3accf 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/RestOperations/PrivateEndpointConnectionRestOperations.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/RestOperations/PrivateEndpointConnectionRestOperations.cs @@ -37,6 +37,25 @@ public PrivateEndpointConnectionRestOperations(HttpPipeline pipeline, string app _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByBatchAccountRequestUri(string subscriptionId, string resourceGroupName, string accountName, int? maxresults) + { + 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.Batch/batchAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/privateEndpointConnections", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (maxresults != null) + { + uri.AppendQuery("maxresults", maxresults.Value, true); + } + return uri; + } + internal HttpMessage CreateListByBatchAccountRequest(string subscriptionId, string resourceGroupName, string accountName, int? maxresults) { var message = _pipeline.CreateMessage(); @@ -122,6 +141,22 @@ public Response ListByBatchAccount(string } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string accountName, string privateEndpointConnectionName) + { + 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.Batch/batchAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string accountName, string privateEndpointConnectionName) { var message = _pipeline.CreateMessage(); @@ -210,6 +245,22 @@ public Response Get(string subscriptionId, s } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string accountName, string privateEndpointConnectionName, BatchPrivateEndpointConnectionData data, ETag? ifMatch) + { + 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.Batch/batchAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string accountName, string privateEndpointConnectionName, BatchPrivateEndpointConnectionData data, ETag? ifMatch) { var message = _pipeline.CreateMessage(); @@ -300,6 +351,22 @@ public Response Update(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string accountName, string privateEndpointConnectionName) + { + 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.Batch/batchAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string accountName, string privateEndpointConnectionName) { var message = _pipeline.CreateMessage(); @@ -376,6 +443,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateListByBatchAccountNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string accountName, int? maxresults) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByBatchAccountNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string accountName, int? maxresults) { var message = _pipeline.CreateMessage(); diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/RestOperations/PrivateLinkResourceRestOperations.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/RestOperations/PrivateLinkResourceRestOperations.cs index e31653a21309..51207bf11d28 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/RestOperations/PrivateLinkResourceRestOperations.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/RestOperations/PrivateLinkResourceRestOperations.cs @@ -37,6 +37,25 @@ public PrivateLinkResourceRestOperations(HttpPipeline pipeline, string applicati _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByBatchAccountRequestUri(string subscriptionId, string resourceGroupName, string accountName, int? maxresults) + { + 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.Batch/batchAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/privateLinkResources", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (maxresults != null) + { + uri.AppendQuery("maxresults", maxresults.Value, true); + } + return uri; + } + internal HttpMessage CreateListByBatchAccountRequest(string subscriptionId, string resourceGroupName, string accountName, int? maxresults) { var message = _pipeline.CreateMessage(); @@ -122,6 +141,22 @@ public Response ListByBatchAccount(string subscr } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string accountName, string privateLinkResourceName) + { + 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.Batch/batchAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/privateLinkResources/", false); + uri.AppendPath(privateLinkResourceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string accountName, string privateLinkResourceName) { var message = _pipeline.CreateMessage(); @@ -210,6 +245,14 @@ public Response Get(string subscriptionId, string } } + internal RequestUriBuilder CreateListByBatchAccountNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string accountName, int? maxresults) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByBatchAccountNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string accountName, int? maxresults) { var message = _pipeline.CreateMessage(); diff --git a/sdk/billing/Azure.ResourceManager.Billing/src/Generated/BillingPaymentMethodResource.cs b/sdk/billing/Azure.ResourceManager.Billing/src/Generated/BillingPaymentMethodResource.cs index ca8de63ebe53..4ba978a8fcd6 100644 --- a/sdk/billing/Azure.ResourceManager.Billing/src/Generated/BillingPaymentMethodResource.cs +++ b/sdk/billing/Azure.ResourceManager.Billing/src/Generated/BillingPaymentMethodResource.cs @@ -198,7 +198,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _billingPaymentMethodPaymentMethodsRestClient.DeleteByUserAsync(Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new BillingArmOperation(response); + var uri = _billingPaymentMethodPaymentMethodsRestClient.CreateDeleteByUserRequestUri(Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new BillingArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -240,7 +242,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _billingPaymentMethodPaymentMethodsRestClient.DeleteByUser(Id.Name, cancellationToken); - var operation = new BillingArmOperation(response); + var uri = _billingPaymentMethodPaymentMethodsRestClient.CreateDeleteByUserRequestUri(Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new BillingArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/billing/Azure.ResourceManager.Billing/src/Generated/LongRunningOperation/BillingArmOperation.cs b/sdk/billing/Azure.ResourceManager.Billing/src/Generated/LongRunningOperation/BillingArmOperation.cs index 902cc4894ddd..a368132442b9 100644 --- a/sdk/billing/Azure.ResourceManager.Billing/src/Generated/LongRunningOperation/BillingArmOperation.cs +++ b/sdk/billing/Azure.ResourceManager.Billing/src/Generated/LongRunningOperation/BillingArmOperation.cs @@ -20,21 +20,24 @@ internal class BillingArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of BillingArmOperation for mocking. protected BillingArmOperation() { } - internal BillingArmOperation(Response response) + internal BillingArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal BillingArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "BillingArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal BillingArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline p public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/billing/Azure.ResourceManager.Billing/src/Generated/LongRunningOperation/BillingArmOperationOfT.cs b/sdk/billing/Azure.ResourceManager.Billing/src/Generated/LongRunningOperation/BillingArmOperationOfT.cs index 4fd97e786ebb..26b6990402f4 100644 --- a/sdk/billing/Azure.ResourceManager.Billing/src/Generated/LongRunningOperation/BillingArmOperationOfT.cs +++ b/sdk/billing/Azure.ResourceManager.Billing/src/Generated/LongRunningOperation/BillingArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class BillingArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of BillingArmOperation for mocking. protected BillingArmOperation() { } - internal BillingArmOperation(Response response) + internal BillingArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal BillingArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "BillingArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal BillingArmOperation(IOperationSource source, ClientDiagnostics clien public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/billing/Azure.ResourceManager.Billing/src/Generated/Models/BillingAccountPaymentMethodResource.Serialization.cs b/sdk/billing/Azure.ResourceManager.Billing/src/Generated/Models/BillingAccountPaymentMethodResource.Serialization.cs new file mode 100644 index 000000000000..b2818d4db0d5 --- /dev/null +++ b/sdk/billing/Azure.ResourceManager.Billing/src/Generated/Models/BillingAccountPaymentMethodResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Billing +{ + public partial class BillingAccountPaymentMethodResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + BillingPaymentMethodData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + BillingPaymentMethodData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/billing/Azure.ResourceManager.Billing/src/Generated/Models/BillingPaymentMethodLinkResource.Serialization.cs b/sdk/billing/Azure.ResourceManager.Billing/src/Generated/Models/BillingPaymentMethodLinkResource.Serialization.cs new file mode 100644 index 000000000000..46584d1ffa49 --- /dev/null +++ b/sdk/billing/Azure.ResourceManager.Billing/src/Generated/Models/BillingPaymentMethodLinkResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Billing +{ + public partial class BillingPaymentMethodLinkResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + BillingPaymentMethodLinkData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + BillingPaymentMethodLinkData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/billing/Azure.ResourceManager.Billing/src/Generated/Models/BillingPaymentMethodResource.Serialization.cs b/sdk/billing/Azure.ResourceManager.Billing/src/Generated/Models/BillingPaymentMethodResource.Serialization.cs new file mode 100644 index 000000000000..e3dd063b28df --- /dev/null +++ b/sdk/billing/Azure.ResourceManager.Billing/src/Generated/Models/BillingPaymentMethodResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Billing +{ + public partial class BillingPaymentMethodResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + BillingPaymentMethodData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + BillingPaymentMethodData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/billing/Azure.ResourceManager.Billing/src/Generated/Models/BillingSubscriptionAliasResource.Serialization.cs b/sdk/billing/Azure.ResourceManager.Billing/src/Generated/Models/BillingSubscriptionAliasResource.Serialization.cs new file mode 100644 index 000000000000..806e84f944cb --- /dev/null +++ b/sdk/billing/Azure.ResourceManager.Billing/src/Generated/Models/BillingSubscriptionAliasResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Billing +{ + public partial class BillingSubscriptionAliasResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + BillingSubscriptionAliasData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + BillingSubscriptionAliasData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/billing/Azure.ResourceManager.Billing/src/Generated/Models/BillingSubscriptionResource.Serialization.cs b/sdk/billing/Azure.ResourceManager.Billing/src/Generated/Models/BillingSubscriptionResource.Serialization.cs new file mode 100644 index 000000000000..5dfe55833fb2 --- /dev/null +++ b/sdk/billing/Azure.ResourceManager.Billing/src/Generated/Models/BillingSubscriptionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Billing +{ + public partial class BillingSubscriptionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + BillingSubscriptionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + BillingSubscriptionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/billing/Azure.ResourceManager.Billing/src/Generated/RestOperations/BillingSubscriptionsAliasesRestOperations.cs b/sdk/billing/Azure.ResourceManager.Billing/src/Generated/RestOperations/BillingSubscriptionsAliasesRestOperations.cs index 35c9b6a71ec2..ea8ba057eaa6 100644 --- a/sdk/billing/Azure.ResourceManager.Billing/src/Generated/RestOperations/BillingSubscriptionsAliasesRestOperations.cs +++ b/sdk/billing/Azure.ResourceManager.Billing/src/Generated/RestOperations/BillingSubscriptionsAliasesRestOperations.cs @@ -37,6 +37,17 @@ public BillingSubscriptionsAliasesRestOperations(HttpPipeline pipeline, string a _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByBillingAccountRequestUri(string billingAccountName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Billing/billingAccounts/", false); + uri.AppendPath(billingAccountName, true); + uri.AppendPath("/billingSubscriptionAliases", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByBillingAccountRequest(string billingAccountName) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,18 @@ public Response ListByBillingAccount(string } } + internal RequestUriBuilder CreateGetRequestUri(string billingAccountName, string aliasName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Billing/billingAccounts/", false); + uri.AppendPath(billingAccountName, true); + uri.AppendPath("/billingSubscriptionAliases/", false); + uri.AppendPath(aliasName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string billingAccountName, string aliasName) { var message = _pipeline.CreateMessage(); @@ -180,6 +203,18 @@ public Response Get(string billingAccountName, str } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string billingAccountName, string aliasName, BillingSubscriptionAliasData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Billing/billingAccounts/", false); + uri.AppendPath(billingAccountName, true); + uri.AppendPath("/billingSubscriptionAliases/", false); + uri.AppendPath(aliasName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string billingAccountName, string aliasName, BillingSubscriptionAliasData data) { var message = _pipeline.CreateMessage(); @@ -252,6 +287,14 @@ public Response CreateOrUpdate(string billingAccountName, string aliasName, Bill } } + internal RequestUriBuilder CreateListByBillingAccountNextPageRequestUri(string nextLink, string billingAccountName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByBillingAccountNextPageRequest(string nextLink, string billingAccountName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/billing/Azure.ResourceManager.Billing/src/Generated/RestOperations/BillingSubscriptionsRestOperations.cs b/sdk/billing/Azure.ResourceManager.Billing/src/Generated/RestOperations/BillingSubscriptionsRestOperations.cs index db1bc7efb215..6828df4100b3 100644 --- a/sdk/billing/Azure.ResourceManager.Billing/src/Generated/RestOperations/BillingSubscriptionsRestOperations.cs +++ b/sdk/billing/Azure.ResourceManager.Billing/src/Generated/RestOperations/BillingSubscriptionsRestOperations.cs @@ -37,6 +37,17 @@ public BillingSubscriptionsRestOperations(HttpPipeline pipeline, string applicat _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByBillingAccountRequestUri(string billingAccountName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Billing/billingAccounts/", false); + uri.AppendPath(billingAccountName, true); + uri.AppendPath("/billingSubscriptions", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByBillingAccountRequest(string billingAccountName) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,18 @@ public Response ListByBillingAccount(string bill } } + internal RequestUriBuilder CreateGetRequestUri(string billingAccountName, string billingSubscriptionName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Billing/billingAccounts/", false); + uri.AppendPath(billingAccountName, true); + uri.AppendPath("/billingSubscriptions/", false); + uri.AppendPath(billingSubscriptionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string billingAccountName, string billingSubscriptionName) { var message = _pipeline.CreateMessage(); @@ -180,6 +203,18 @@ public Response Get(string billingAccountName, string b } } + internal RequestUriBuilder CreateUpdateRequestUri(string billingAccountName, string billingSubscriptionName, BillingSubscriptionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Billing/billingAccounts/", false); + uri.AppendPath(billingAccountName, true); + uri.AppendPath("/billingSubscriptions/", false); + uri.AppendPath(billingSubscriptionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string billingAccountName, string billingSubscriptionName, BillingSubscriptionData data) { var message = _pipeline.CreateMessage(); @@ -252,6 +287,18 @@ public Response Update(string billingAccountName, string billingSubscriptionName } } + internal RequestUriBuilder CreateDeleteRequestUri(string billingAccountName, string billingSubscriptionName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Billing/billingAccounts/", false); + uri.AppendPath(billingAccountName, true); + uri.AppendPath("/billingSubscriptions/", false); + uri.AppendPath(billingSubscriptionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string billingAccountName, string billingSubscriptionName) { var message = _pipeline.CreateMessage(); @@ -318,6 +365,19 @@ public Response Delete(string billingAccountName, string billingSubscriptionName } } + internal RequestUriBuilder CreateMoveRequestUri(string billingAccountName, string billingSubscriptionName, BillingSubscriptionMoveContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Billing/billingAccounts/", false); + uri.AppendPath(billingAccountName, true); + uri.AppendPath("/billingSubscriptions/", false); + uri.AppendPath(billingSubscriptionName, true); + uri.AppendPath("/move", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateMoveRequest(string billingAccountName, string billingSubscriptionName, BillingSubscriptionMoveContent content) { var message = _pipeline.CreateMessage(); @@ -391,6 +451,19 @@ public Response Move(string billingAccountName, string billingSubscriptionName, } } + internal RequestUriBuilder CreateValidateMoveEligibilityRequestUri(string billingAccountName, string billingSubscriptionName, BillingSubscriptionMoveContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Billing/billingAccounts/", false); + uri.AppendPath(billingAccountName, true); + uri.AppendPath("/billingSubscriptions/", false); + uri.AppendPath(billingSubscriptionName, true); + uri.AppendPath("/validateMoveEligibility", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateValidateMoveEligibilityRequest(string billingAccountName, string billingSubscriptionName, BillingSubscriptionMoveContent content) { var message = _pipeline.CreateMessage(); @@ -472,6 +545,19 @@ public Response ValidateMoveEl } } + internal RequestUriBuilder CreateMergeRequestUri(string billingAccountName, string billingSubscriptionName, BillingSubscriptionMergeContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Billing/billingAccounts/", false); + uri.AppendPath(billingAccountName, true); + uri.AppendPath("/billingSubscriptions/", false); + uri.AppendPath(billingSubscriptionName, true); + uri.AppendPath("/merge", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateMergeRequest(string billingAccountName, string billingSubscriptionName, BillingSubscriptionMergeContent content) { var message = _pipeline.CreateMessage(); @@ -545,6 +631,19 @@ public Response Merge(string billingAccountName, string billingSubscriptionName, } } + internal RequestUriBuilder CreateSplitRequestUri(string billingAccountName, string billingSubscriptionName, BillingSubscriptionSplitContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Billing/billingAccounts/", false); + uri.AppendPath(billingAccountName, true); + uri.AppendPath("/billingSubscriptions/", false); + uri.AppendPath(billingSubscriptionName, true); + uri.AppendPath("/split", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateSplitRequest(string billingAccountName, string billingSubscriptionName, BillingSubscriptionSplitContent content) { var message = _pipeline.CreateMessage(); @@ -618,6 +717,14 @@ public Response Split(string billingAccountName, string billingSubscriptionName, } } + internal RequestUriBuilder CreateListByBillingAccountNextPageRequestUri(string nextLink, string billingAccountName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByBillingAccountNextPageRequest(string nextLink, string billingAccountName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/billing/Azure.ResourceManager.Billing/src/Generated/RestOperations/PaymentMethodsRestOperations.cs b/sdk/billing/Azure.ResourceManager.Billing/src/Generated/RestOperations/PaymentMethodsRestOperations.cs index fcdce98b0998..f5ad8233521b 100644 --- a/sdk/billing/Azure.ResourceManager.Billing/src/Generated/RestOperations/PaymentMethodsRestOperations.cs +++ b/sdk/billing/Azure.ResourceManager.Billing/src/Generated/RestOperations/PaymentMethodsRestOperations.cs @@ -37,6 +37,15 @@ public PaymentMethodsRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByUserRequestUri() + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Billing/paymentMethods", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByUserRequest() { var message = _pipeline.CreateMessage(); @@ -92,6 +101,16 @@ public Response ListByUser(CancellationToken cancellat } } + internal RequestUriBuilder CreateGetByUserRequestUri(string paymentMethodName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Billing/paymentMethods/", false); + uri.AppendPath(paymentMethodName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetByUserRequest(string paymentMethodName) { var message = _pipeline.CreateMessage(); @@ -162,6 +181,16 @@ public Response GetByUser(string paymentMethodName, Ca } } + internal RequestUriBuilder CreateDeleteByUserRequestUri(string paymentMethodName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Billing/paymentMethods/", false); + uri.AppendPath(paymentMethodName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteByUserRequest(string paymentMethodName) { var message = _pipeline.CreateMessage(); @@ -220,6 +249,17 @@ public Response DeleteByUser(string paymentMethodName, CancellationToken cancell } } + internal RequestUriBuilder CreateListByBillingAccountRequestUri(string billingAccountName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Billing/billingAccounts/", false); + uri.AppendPath(billingAccountName, true); + uri.AppendPath("/paymentMethods", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByBillingAccountRequest(string billingAccountName) { var message = _pipeline.CreateMessage(); @@ -287,6 +327,18 @@ public Response ListByBillingAccount(string billingAcc } } + internal RequestUriBuilder CreateGetByBillingAccountRequestUri(string billingAccountName, string paymentMethodName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Billing/billingAccounts/", false); + uri.AppendPath(billingAccountName, true); + uri.AppendPath("/paymentMethods/", false); + uri.AppendPath(paymentMethodName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetByBillingAccountRequest(string billingAccountName, string paymentMethodName) { var message = _pipeline.CreateMessage(); @@ -363,6 +415,19 @@ public Response GetByBillingAccount(string billingAcco } } + internal RequestUriBuilder CreateListByBillingProfileRequestUri(string billingAccountName, string billingProfileName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Billing/billingAccounts/", false); + uri.AppendPath(billingAccountName, true); + uri.AppendPath("/billingProfiles/", false); + uri.AppendPath(billingProfileName, true); + uri.AppendPath("/paymentMethodLinks", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByBillingProfileRequest(string billingAccountName, string billingProfileName) { var message = _pipeline.CreateMessage(); @@ -436,6 +501,20 @@ public Response ListByBillingProfile(string billin } } + internal RequestUriBuilder CreateGetByBillingProfileRequestUri(string billingAccountName, string billingProfileName, string paymentMethodName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Billing/billingAccounts/", false); + uri.AppendPath(billingAccountName, true); + uri.AppendPath("/billingProfiles/", false); + uri.AppendPath(billingProfileName, true); + uri.AppendPath("/paymentMethodLinks/", false); + uri.AppendPath(paymentMethodName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetByBillingProfileRequest(string billingAccountName, string billingProfileName, string paymentMethodName) { var message = _pipeline.CreateMessage(); @@ -518,6 +597,20 @@ public Response GetByBillingProfile(string billing } } + internal RequestUriBuilder CreateDeleteAtBillingProfileRequestUri(string billingAccountName, string billingProfileName, string paymentMethodName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Billing/billingAccounts/", false); + uri.AppendPath(billingAccountName, true); + uri.AppendPath("/billingProfiles/", false); + uri.AppendPath(billingProfileName, true); + uri.AppendPath("/paymentMethodLinks/", false); + uri.AppendPath(paymentMethodName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteAtBillingProfileRequest(string billingAccountName, string billingProfileName, string paymentMethodName) { var message = _pipeline.CreateMessage(); @@ -590,6 +683,14 @@ public Response DeleteAtBillingProfile(string billingAccountName, string billing } } + internal RequestUriBuilder CreateListByUserNextPageRequestUri(string nextLink) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByUserNextPageRequest(string nextLink) { var message = _pipeline.CreateMessage(); @@ -652,6 +753,14 @@ public Response ListByUserNextPage(string nextLink, Ca } } + internal RequestUriBuilder CreateListByBillingAccountNextPageRequestUri(string nextLink, string billingAccountName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByBillingAccountNextPageRequest(string nextLink, string billingAccountName) { var message = _pipeline.CreateMessage(); @@ -720,6 +829,14 @@ public Response ListByBillingAccountNextPage(string ne } } + internal RequestUriBuilder CreateListByBillingProfileNextPageRequestUri(string nextLink, string billingAccountName, string billingProfileName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByBillingProfileNextPageRequest(string nextLink, string billingAccountName, string billingProfileName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/billingbenefits/Azure.ResourceManager.BillingBenefits/src/Generated/LongRunningOperation/BillingBenefitsArmOperationOfT.cs b/sdk/billingbenefits/Azure.ResourceManager.BillingBenefits/src/Generated/LongRunningOperation/BillingBenefitsArmOperationOfT.cs index 86e39d176746..77ead3b1d1ed 100644 --- a/sdk/billingbenefits/Azure.ResourceManager.BillingBenefits/src/Generated/LongRunningOperation/BillingBenefitsArmOperationOfT.cs +++ b/sdk/billingbenefits/Azure.ResourceManager.BillingBenefits/src/Generated/LongRunningOperation/BillingBenefitsArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class BillingBenefitsArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of BillingBenefitsArmOperation for mocking. protected BillingBenefitsArmOperation() { } - internal BillingBenefitsArmOperation(Response response) + internal BillingBenefitsArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal BillingBenefitsArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "BillingBenefitsArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal BillingBenefitsArmOperation(IOperationSource source, ClientDiagnosti public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/billingbenefits/Azure.ResourceManager.BillingBenefits/src/Generated/Models/BillingBenefitsReservationOrderAliasResource.Serialization.cs b/sdk/billingbenefits/Azure.ResourceManager.BillingBenefits/src/Generated/Models/BillingBenefitsReservationOrderAliasResource.Serialization.cs new file mode 100644 index 000000000000..eb3c90a48187 --- /dev/null +++ b/sdk/billingbenefits/Azure.ResourceManager.BillingBenefits/src/Generated/Models/BillingBenefitsReservationOrderAliasResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.BillingBenefits +{ + public partial class BillingBenefitsReservationOrderAliasResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + BillingBenefitsReservationOrderAliasData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + BillingBenefitsReservationOrderAliasData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/billingbenefits/Azure.ResourceManager.BillingBenefits/src/Generated/Models/BillingBenefitsSavingsPlanOrderAliasResource.Serialization.cs b/sdk/billingbenefits/Azure.ResourceManager.BillingBenefits/src/Generated/Models/BillingBenefitsSavingsPlanOrderAliasResource.Serialization.cs new file mode 100644 index 000000000000..3c4ce0da1a7e --- /dev/null +++ b/sdk/billingbenefits/Azure.ResourceManager.BillingBenefits/src/Generated/Models/BillingBenefitsSavingsPlanOrderAliasResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.BillingBenefits +{ + public partial class BillingBenefitsSavingsPlanOrderAliasResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + BillingBenefitsSavingsPlanOrderAliasData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + BillingBenefitsSavingsPlanOrderAliasData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/billingbenefits/Azure.ResourceManager.BillingBenefits/src/Generated/Models/BillingBenefitsSavingsPlanOrderResource.Serialization.cs b/sdk/billingbenefits/Azure.ResourceManager.BillingBenefits/src/Generated/Models/BillingBenefitsSavingsPlanOrderResource.Serialization.cs new file mode 100644 index 000000000000..58ded1503276 --- /dev/null +++ b/sdk/billingbenefits/Azure.ResourceManager.BillingBenefits/src/Generated/Models/BillingBenefitsSavingsPlanOrderResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.BillingBenefits +{ + public partial class BillingBenefitsSavingsPlanOrderResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + BillingBenefitsSavingsPlanOrderData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + BillingBenefitsSavingsPlanOrderData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/billingbenefits/Azure.ResourceManager.BillingBenefits/src/Generated/Models/BillingBenefitsSavingsPlanResource.Serialization.cs b/sdk/billingbenefits/Azure.ResourceManager.BillingBenefits/src/Generated/Models/BillingBenefitsSavingsPlanResource.Serialization.cs new file mode 100644 index 000000000000..616bd962e63c --- /dev/null +++ b/sdk/billingbenefits/Azure.ResourceManager.BillingBenefits/src/Generated/Models/BillingBenefitsSavingsPlanResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.BillingBenefits +{ + public partial class BillingBenefitsSavingsPlanResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + BillingBenefitsSavingsPlanData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + BillingBenefitsSavingsPlanData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/billingbenefits/Azure.ResourceManager.BillingBenefits/src/Generated/RestOperations/BillingBenefitsRPRestOperations.cs b/sdk/billingbenefits/Azure.ResourceManager.BillingBenefits/src/Generated/RestOperations/BillingBenefitsRPRestOperations.cs index b8e589af4123..88dffc56d325 100644 --- a/sdk/billingbenefits/Azure.ResourceManager.BillingBenefits/src/Generated/RestOperations/BillingBenefitsRPRestOperations.cs +++ b/sdk/billingbenefits/Azure.ResourceManager.BillingBenefits/src/Generated/RestOperations/BillingBenefitsRPRestOperations.cs @@ -37,6 +37,15 @@ public BillingBenefitsRPRestOperations(HttpPipeline pipeline, string application _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateValidatePurchaseRequestUri(SavingsPlanPurchaseValidateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.BillingBenefits/validate", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateValidatePurchaseRequest(SavingsPlanPurchaseValidateContent content) { var message = _pipeline.CreateMessage(); @@ -104,6 +113,14 @@ public Response ValidatePurchase(SavingsPlanPurchas } } + internal RequestUriBuilder CreateValidatePurchaseNextPageRequestUri(string nextLink, SavingsPlanPurchaseValidateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateValidatePurchaseNextPageRequest(string nextLink, SavingsPlanPurchaseValidateContent content) { var message = _pipeline.CreateMessage(); diff --git a/sdk/billingbenefits/Azure.ResourceManager.BillingBenefits/src/Generated/RestOperations/ReservationOrderAliasRestOperations.cs b/sdk/billingbenefits/Azure.ResourceManager.BillingBenefits/src/Generated/RestOperations/ReservationOrderAliasRestOperations.cs index 00d165e884a8..7b77497f2040 100644 --- a/sdk/billingbenefits/Azure.ResourceManager.BillingBenefits/src/Generated/RestOperations/ReservationOrderAliasRestOperations.cs +++ b/sdk/billingbenefits/Azure.ResourceManager.BillingBenefits/src/Generated/RestOperations/ReservationOrderAliasRestOperations.cs @@ -37,6 +37,16 @@ public ReservationOrderAliasRestOperations(HttpPipeline pipeline, string applica _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateRequestUri(string reservationOrderAliasName, BillingBenefitsReservationOrderAliasCreateOrUpdateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.BillingBenefits/reservationOrderAliases/", false); + uri.AppendPath(reservationOrderAliasName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string reservationOrderAliasName, BillingBenefitsReservationOrderAliasCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); @@ -103,6 +113,16 @@ public Response Create(string reservationOrderAliasName, BillingBenefitsReservat } } + internal RequestUriBuilder CreateGetRequestUri(string reservationOrderAliasName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.BillingBenefits/reservationOrderAliases/", false); + uri.AppendPath(reservationOrderAliasName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string reservationOrderAliasName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/billingbenefits/Azure.ResourceManager.BillingBenefits/src/Generated/RestOperations/SavingsPlanOrderAliasRestOperations.cs b/sdk/billingbenefits/Azure.ResourceManager.BillingBenefits/src/Generated/RestOperations/SavingsPlanOrderAliasRestOperations.cs index 4ed591454737..690ad81b545a 100644 --- a/sdk/billingbenefits/Azure.ResourceManager.BillingBenefits/src/Generated/RestOperations/SavingsPlanOrderAliasRestOperations.cs +++ b/sdk/billingbenefits/Azure.ResourceManager.BillingBenefits/src/Generated/RestOperations/SavingsPlanOrderAliasRestOperations.cs @@ -36,6 +36,16 @@ public SavingsPlanOrderAliasRestOperations(HttpPipeline pipeline, string applica _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateRequestUri(string savingsPlanOrderAliasName, BillingBenefitsSavingsPlanOrderAliasData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.BillingBenefits/savingsPlanOrderAliases/", false); + uri.AppendPath(savingsPlanOrderAliasName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string savingsPlanOrderAliasName, BillingBenefitsSavingsPlanOrderAliasData data) { var message = _pipeline.CreateMessage(); @@ -102,6 +112,16 @@ public Response Create(string savingsPlanOrderAliasName, BillingBenefitsSavingsP } } + internal RequestUriBuilder CreateGetRequestUri(string savingsPlanOrderAliasName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.BillingBenefits/savingsPlanOrderAliases/", false); + uri.AppendPath(savingsPlanOrderAliasName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string savingsPlanOrderAliasName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/billingbenefits/Azure.ResourceManager.BillingBenefits/src/Generated/RestOperations/SavingsPlanOrderRestOperations.cs b/sdk/billingbenefits/Azure.ResourceManager.BillingBenefits/src/Generated/RestOperations/SavingsPlanOrderRestOperations.cs index be00068a2923..347675da6e24 100644 --- a/sdk/billingbenefits/Azure.ResourceManager.BillingBenefits/src/Generated/RestOperations/SavingsPlanOrderRestOperations.cs +++ b/sdk/billingbenefits/Azure.ResourceManager.BillingBenefits/src/Generated/RestOperations/SavingsPlanOrderRestOperations.cs @@ -37,6 +37,20 @@ public SavingsPlanOrderRestOperations(HttpPipeline pipeline, string applicationI _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string savingsPlanOrderId, string expand) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.BillingBenefits/savingsPlanOrders/", false); + uri.AppendPath(savingsPlanOrderId, true); + uri.AppendQuery("api-version", _apiVersion, true); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + return uri; + } + internal HttpMessage CreateGetRequest(string savingsPlanOrderId, string expand) { var message = _pipeline.CreateMessage(); @@ -113,6 +127,17 @@ public Response Get(string savingsPlanOrder } } + internal RequestUriBuilder CreateElevateRequestUri(string savingsPlanOrderId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.BillingBenefits/savingsPlanOrders/", false); + uri.AppendPath(savingsPlanOrderId, true); + uri.AppendPath("/elevate", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateElevateRequest(string savingsPlanOrderId) { var message = _pipeline.CreateMessage(); @@ -180,6 +205,15 @@ public Response Elevate(string savingsPlanO } } + internal RequestUriBuilder CreateListRequestUri() + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.BillingBenefits/savingsPlanOrders", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest() { var message = _pipeline.CreateMessage(); @@ -235,6 +269,14 @@ public Response List(CancellationToken cancellationTo } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink) { var message = _pipeline.CreateMessage(); diff --git a/sdk/billingbenefits/Azure.ResourceManager.BillingBenefits/src/Generated/RestOperations/SavingsPlanRestOperations.cs b/sdk/billingbenefits/Azure.ResourceManager.BillingBenefits/src/Generated/RestOperations/SavingsPlanRestOperations.cs index b9e5804188e9..0ec241566620 100644 --- a/sdk/billingbenefits/Azure.ResourceManager.BillingBenefits/src/Generated/RestOperations/SavingsPlanRestOperations.cs +++ b/sdk/billingbenefits/Azure.ResourceManager.BillingBenefits/src/Generated/RestOperations/SavingsPlanRestOperations.cs @@ -37,6 +37,17 @@ public SavingsPlanRestOperations(HttpPipeline pipeline, string applicationId, Ur _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string savingsPlanOrderId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.BillingBenefits/savingsPlanOrders/", false); + uri.AppendPath(savingsPlanOrderId, true); + uri.AppendPath("/savingsPlans", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string savingsPlanOrderId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,39 @@ public Response List(string savingsPlanOrderId, Cancellati } } + internal RequestUriBuilder CreateListAllRequestUri(string filter, string orderBy, string refreshSummary, float? skipToken, string selectedState, float? take) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.BillingBenefits/savingsPlans", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (orderBy != null) + { + uri.AppendQuery("$orderby", orderBy, true); + } + if (refreshSummary != null) + { + uri.AppendQuery("refreshSummary", refreshSummary, true); + } + if (skipToken != null) + { + uri.AppendQuery("$skiptoken", skipToken.Value, true); + } + if (selectedState != null) + { + uri.AppendQuery("selectedState", selectedState, true); + } + if (take != null) + { + uri.AppendQuery("take", take.Value, true); + } + return uri; + } + internal HttpMessage CreateListAllRequest(string filter, string orderBy, string refreshSummary, float? skipToken, string selectedState, float? take) { var message = _pipeline.CreateMessage(); @@ -195,6 +239,22 @@ public Response ListAll(string filter = null, string } } + internal RequestUriBuilder CreateGetRequestUri(string savingsPlanOrderId, string savingsPlanId, string expand) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.BillingBenefits/savingsPlanOrders/", false); + uri.AppendPath(savingsPlanOrderId, true); + uri.AppendPath("/savingsPlans/", false); + uri.AppendPath(savingsPlanId, true); + uri.AppendQuery("api-version", _apiVersion, true); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + return uri; + } + internal HttpMessage CreateGetRequest(string savingsPlanOrderId, string savingsPlanId, string expand) { var message = _pipeline.CreateMessage(); @@ -277,6 +337,18 @@ public Response Get(string savingsPlanOrderId, s } } + internal RequestUriBuilder CreateUpdateRequestUri(string savingsPlanOrderId, string savingsPlanId, BillingBenefitsSavingsPlanPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.BillingBenefits/savingsPlanOrders/", false); + uri.AppendPath(savingsPlanOrderId, true); + uri.AppendPath("/savingsPlans/", false); + uri.AppendPath(savingsPlanId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string savingsPlanOrderId, string savingsPlanId, BillingBenefitsSavingsPlanPatch patch) { var message = _pipeline.CreateMessage(); @@ -361,6 +433,19 @@ public Response Update(string savingsPlanOrderId } } + internal RequestUriBuilder CreateValidateUpdateRequestUri(string savingsPlanOrderId, string savingsPlanId, SavingsPlanUpdateValidateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.BillingBenefits/savingsPlanOrders/", false); + uri.AppendPath(savingsPlanOrderId, true); + uri.AppendPath("/savingsPlans/", false); + uri.AppendPath(savingsPlanId, true); + uri.AppendPath("/validate", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateValidateUpdateRequest(string savingsPlanOrderId, string savingsPlanId, SavingsPlanUpdateValidateContent content) { var message = _pipeline.CreateMessage(); @@ -442,6 +527,14 @@ public Response ValidateUpdate(string savingsPlanOr } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string savingsPlanOrderId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string savingsPlanOrderId) { var message = _pipeline.CreateMessage(); @@ -510,6 +603,14 @@ public Response ListNextPage(string nextLink, string savin } } + internal RequestUriBuilder CreateListAllNextPageRequestUri(string nextLink, string filter, string orderBy, string refreshSummary, float? skipToken, string selectedState, float? take) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListAllNextPageRequest(string nextLink, string filter, string orderBy, string refreshSummary, float? skipToken, string selectedState, float? take) { var message = _pipeline.CreateMessage(); @@ -584,6 +685,14 @@ public Response ListAllNextPage(string nextLink, str } } + internal RequestUriBuilder CreateValidateUpdateNextPageRequestUri(string nextLink, string savingsPlanOrderId, string savingsPlanId, SavingsPlanUpdateValidateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateValidateUpdateNextPageRequest(string nextLink, string savingsPlanOrderId, string savingsPlanId, SavingsPlanUpdateValidateContent content) { var message = _pipeline.CreateMessage(); diff --git a/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/AssignmentCollection.cs b/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/AssignmentCollection.cs index 51309c34f6cd..4718d8de5827 100644 --- a/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/AssignmentCollection.cs +++ b/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/AssignmentCollection.cs @@ -80,7 +80,9 @@ public virtual async Task> CreateOrUpdateAsync( try { var response = await _assignmentRestClient.CreateOrUpdateAsync(Id, assignmentName, data, cancellationToken).ConfigureAwait(false); - var operation = new BlueprintArmOperation(Response.FromValue(new AssignmentResource(Client, response), response.GetRawResponse())); + var uri = _assignmentRestClient.CreateCreateOrUpdateRequestUri(Id, assignmentName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new BlueprintArmOperation(Response.FromValue(new AssignmentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -129,7 +131,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUnt try { var response = _assignmentRestClient.CreateOrUpdate(Id, assignmentName, data, cancellationToken); - var operation = new BlueprintArmOperation(Response.FromValue(new AssignmentResource(Client, response), response.GetRawResponse())); + var uri = _assignmentRestClient.CreateCreateOrUpdateRequestUri(Id, assignmentName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new BlueprintArmOperation(Response.FromValue(new AssignmentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/AssignmentResource.cs b/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/AssignmentResource.cs index 298db711db63..571b566a5d2f 100644 --- a/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/AssignmentResource.cs +++ b/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/AssignmentResource.cs @@ -269,7 +269,9 @@ public virtual async Task> DeleteAsync(WaitUnti try { var response = await _assignmentRestClient.DeleteAsync(Id.Parent, Id.Name, deleteBehavior, cancellationToken).ConfigureAwait(false); - var operation = new BlueprintArmOperation(Response.FromValue(new AssignmentResource(Client, response), response.GetRawResponse())); + var uri = _assignmentRestClient.CreateDeleteRequestUri(Id.Parent, Id.Name, deleteBehavior); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new BlueprintArmOperation(Response.FromValue(new AssignmentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -312,7 +314,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, Assi try { var response = _assignmentRestClient.Delete(Id.Parent, Id.Name, deleteBehavior, cancellationToken); - var operation = new BlueprintArmOperation(Response.FromValue(new AssignmentResource(Client, response), response.GetRawResponse())); + var uri = _assignmentRestClient.CreateDeleteRequestUri(Id.Parent, Id.Name, deleteBehavior); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new BlueprintArmOperation(Response.FromValue(new AssignmentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -358,7 +362,9 @@ public virtual async Task> UpdateAsync(WaitUnti try { var response = await _assignmentRestClient.CreateOrUpdateAsync(Id.Parent, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new BlueprintArmOperation(Response.FromValue(new AssignmentResource(Client, response), response.GetRawResponse())); + var uri = _assignmentRestClient.CreateCreateOrUpdateRequestUri(Id.Parent, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new BlueprintArmOperation(Response.FromValue(new AssignmentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -404,7 +410,9 @@ public virtual ArmOperation Update(WaitUntil waitUntil, Assi try { var response = _assignmentRestClient.CreateOrUpdate(Id.Parent, Id.Name, data, cancellationToken); - var operation = new BlueprintArmOperation(Response.FromValue(new AssignmentResource(Client, response), response.GetRawResponse())); + var uri = _assignmentRestClient.CreateCreateOrUpdateRequestUri(Id.Parent, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new BlueprintArmOperation(Response.FromValue(new AssignmentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/BlueprintArtifactCollection.cs b/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/BlueprintArtifactCollection.cs index f29c4cf0e098..09e0a4116355 100644 --- a/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/BlueprintArtifactCollection.cs +++ b/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/BlueprintArtifactCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> CreateOrUpdat try { var response = await _blueprintArtifactArtifactsRestClient.CreateOrUpdateAsync(Id.Parent, Id.Name, artifactName, data, cancellationToken).ConfigureAwait(false); - var operation = new BlueprintArmOperation(Response.FromValue(new BlueprintArtifactResource(Client, response), response.GetRawResponse())); + var uri = _blueprintArtifactArtifactsRestClient.CreateCreateOrUpdateRequestUri(Id.Parent, Id.Name, artifactName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new BlueprintArmOperation(Response.FromValue(new BlueprintArtifactResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil try { var response = _blueprintArtifactArtifactsRestClient.CreateOrUpdate(Id.Parent, Id.Name, artifactName, data, cancellationToken); - var operation = new BlueprintArmOperation(Response.FromValue(new BlueprintArtifactResource(Client, response), response.GetRawResponse())); + var uri = _blueprintArtifactArtifactsRestClient.CreateCreateOrUpdateRequestUri(Id.Parent, Id.Name, artifactName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new BlueprintArmOperation(Response.FromValue(new BlueprintArtifactResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/BlueprintArtifactResource.cs b/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/BlueprintArtifactResource.cs index 205bcebd03f1..a92b55aaf77c 100644 --- a/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/BlueprintArtifactResource.cs +++ b/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/BlueprintArtifactResource.cs @@ -199,7 +199,9 @@ public virtual async Task> DeleteAsync(W try { var response = await _blueprintArtifactArtifactsRestClient.DeleteAsync(Id.Parent.Parent, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new BlueprintArmOperation(Response.FromValue(new BlueprintArtifactResource(Client, response), response.GetRawResponse())); + var uri = _blueprintArtifactArtifactsRestClient.CreateDeleteRequestUri(Id.Parent.Parent, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new BlueprintArmOperation(Response.FromValue(new BlueprintArtifactResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -241,7 +243,9 @@ public virtual ArmOperation Delete(WaitUntil waitUnti try { var response = _blueprintArtifactArtifactsRestClient.Delete(Id.Parent.Parent, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new BlueprintArmOperation(Response.FromValue(new BlueprintArtifactResource(Client, response), response.GetRawResponse())); + var uri = _blueprintArtifactArtifactsRestClient.CreateDeleteRequestUri(Id.Parent.Parent, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new BlueprintArmOperation(Response.FromValue(new BlueprintArtifactResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -287,7 +291,9 @@ public virtual async Task> UpdateAsync(W try { var response = await _blueprintArtifactArtifactsRestClient.CreateOrUpdateAsync(Id.Parent.Parent, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new BlueprintArmOperation(Response.FromValue(new BlueprintArtifactResource(Client, response), response.GetRawResponse())); + var uri = _blueprintArtifactArtifactsRestClient.CreateCreateOrUpdateRequestUri(Id.Parent.Parent, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new BlueprintArmOperation(Response.FromValue(new BlueprintArtifactResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -333,7 +339,9 @@ public virtual ArmOperation Update(WaitUntil waitUnti try { var response = _blueprintArtifactArtifactsRestClient.CreateOrUpdate(Id.Parent.Parent, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new BlueprintArmOperation(Response.FromValue(new BlueprintArtifactResource(Client, response), response.GetRawResponse())); + var uri = _blueprintArtifactArtifactsRestClient.CreateCreateOrUpdateRequestUri(Id.Parent.Parent, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new BlueprintArmOperation(Response.FromValue(new BlueprintArtifactResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/BlueprintCollection.cs b/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/BlueprintCollection.cs index 4104b6746dcd..6d515fa2ba8f 100644 --- a/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/BlueprintCollection.cs +++ b/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/BlueprintCollection.cs @@ -80,7 +80,9 @@ public virtual async Task> CreateOrUpdateAsync(W try { var response = await _blueprintRestClient.CreateOrUpdateAsync(Id, blueprintName, data, cancellationToken).ConfigureAwait(false); - var operation = new BlueprintArmOperation(Response.FromValue(new BlueprintResource(Client, response), response.GetRawResponse())); + var uri = _blueprintRestClient.CreateCreateOrUpdateRequestUri(Id, blueprintName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new BlueprintArmOperation(Response.FromValue(new BlueprintResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -129,7 +131,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUnti try { var response = _blueprintRestClient.CreateOrUpdate(Id, blueprintName, data, cancellationToken); - var operation = new BlueprintArmOperation(Response.FromValue(new BlueprintResource(Client, response), response.GetRawResponse())); + var uri = _blueprintRestClient.CreateCreateOrUpdateRequestUri(Id, blueprintName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new BlueprintArmOperation(Response.FromValue(new BlueprintResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/BlueprintResource.cs b/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/BlueprintResource.cs index 69a243ba3a1a..fefef69e9e01 100644 --- a/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/BlueprintResource.cs +++ b/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/BlueprintResource.cs @@ -342,7 +342,9 @@ public virtual async Task> DeleteAsync(WaitUntil try { var response = await _blueprintRestClient.DeleteAsync(Id.Parent, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new BlueprintArmOperation(Response.FromValue(new BlueprintResource(Client, response), response.GetRawResponse())); + var uri = _blueprintRestClient.CreateDeleteRequestUri(Id.Parent, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new BlueprintArmOperation(Response.FromValue(new BlueprintResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -384,7 +386,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, Cance try { var response = _blueprintRestClient.Delete(Id.Parent, Id.Name, cancellationToken); - var operation = new BlueprintArmOperation(Response.FromValue(new BlueprintResource(Client, response), response.GetRawResponse())); + var uri = _blueprintRestClient.CreateDeleteRequestUri(Id.Parent, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new BlueprintArmOperation(Response.FromValue(new BlueprintResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -430,7 +434,9 @@ public virtual async Task> UpdateAsync(WaitUntil try { var response = await _blueprintRestClient.CreateOrUpdateAsync(Id.Parent, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new BlueprintArmOperation(Response.FromValue(new BlueprintResource(Client, response), response.GetRawResponse())); + var uri = _blueprintRestClient.CreateCreateOrUpdateRequestUri(Id.Parent, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new BlueprintArmOperation(Response.FromValue(new BlueprintResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -476,7 +482,9 @@ public virtual ArmOperation Update(WaitUntil waitUntil, Bluep try { var response = _blueprintRestClient.CreateOrUpdate(Id.Parent, Id.Name, data, cancellationToken); - var operation = new BlueprintArmOperation(Response.FromValue(new BlueprintResource(Client, response), response.GetRawResponse())); + var uri = _blueprintRestClient.CreateCreateOrUpdateRequestUri(Id.Parent, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new BlueprintArmOperation(Response.FromValue(new BlueprintResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/LongRunningOperation/BlueprintArmOperationOfT.cs b/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/LongRunningOperation/BlueprintArmOperationOfT.cs index 5b38ad7f797d..ded62a92b449 100644 --- a/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/LongRunningOperation/BlueprintArmOperationOfT.cs +++ b/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/LongRunningOperation/BlueprintArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class BlueprintArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of BlueprintArmOperation for mocking. protected BlueprintArmOperation() { } - internal BlueprintArmOperation(Response response) + internal BlueprintArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal BlueprintArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "BlueprintArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal BlueprintArmOperation(IOperationSource source, ClientDiagnostics cli public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/Models/AssignmentOperationResource.Serialization.cs b/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/Models/AssignmentOperationResource.Serialization.cs new file mode 100644 index 000000000000..f6f1ed4c5f74 --- /dev/null +++ b/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/Models/AssignmentOperationResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Blueprint +{ + public partial class AssignmentOperationResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + AssignmentOperationData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + AssignmentOperationData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/Models/AssignmentResource.Serialization.cs b/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/Models/AssignmentResource.Serialization.cs new file mode 100644 index 000000000000..357ff17a2286 --- /dev/null +++ b/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/Models/AssignmentResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Blueprint +{ + public partial class AssignmentResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + AssignmentData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + AssignmentData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/Models/BlueprintArtifactResource.Serialization.cs b/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/Models/BlueprintArtifactResource.Serialization.cs new file mode 100644 index 000000000000..1d68afcbd79b --- /dev/null +++ b/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/Models/BlueprintArtifactResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Blueprint +{ + public partial class BlueprintArtifactResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ArtifactData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ArtifactData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/Models/BlueprintResource.Serialization.cs b/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/Models/BlueprintResource.Serialization.cs new file mode 100644 index 000000000000..7c8f6da8d8af --- /dev/null +++ b/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/Models/BlueprintResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Blueprint +{ + public partial class BlueprintResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + BlueprintData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + BlueprintData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/Models/BlueprintVersionArtifactResource.Serialization.cs b/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/Models/BlueprintVersionArtifactResource.Serialization.cs new file mode 100644 index 000000000000..3ca531caf801 --- /dev/null +++ b/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/Models/BlueprintVersionArtifactResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Blueprint +{ + public partial class BlueprintVersionArtifactResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ArtifactData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ArtifactData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/Models/PublishedBlueprintResource.Serialization.cs b/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/Models/PublishedBlueprintResource.Serialization.cs new file mode 100644 index 000000000000..2fef7050a6a8 --- /dev/null +++ b/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/Models/PublishedBlueprintResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Blueprint +{ + public partial class PublishedBlueprintResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + PublishedBlueprintData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + PublishedBlueprintData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/PublishedBlueprintCollection.cs b/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/PublishedBlueprintCollection.cs index a045f351a135..b477e969e9b5 100644 --- a/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/PublishedBlueprintCollection.cs +++ b/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/PublishedBlueprintCollection.cs @@ -87,7 +87,9 @@ public virtual async Task> CreateOrUpda try { var response = await _publishedBlueprintRestClient.CreateAsync(Id.Parent, Id.Name, versionId, data, cancellationToken).ConfigureAwait(false); - var operation = new BlueprintArmOperation(Response.FromValue(new PublishedBlueprintResource(Client, response), response.GetRawResponse())); + var uri = _publishedBlueprintRestClient.CreateCreateRequestUri(Id.Parent, Id.Name, versionId, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new BlueprintArmOperation(Response.FromValue(new PublishedBlueprintResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -136,7 +138,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil try { var response = _publishedBlueprintRestClient.Create(Id.Parent, Id.Name, versionId, data, cancellationToken); - var operation = new BlueprintArmOperation(Response.FromValue(new PublishedBlueprintResource(Client, response), response.GetRawResponse())); + var uri = _publishedBlueprintRestClient.CreateCreateRequestUri(Id.Parent, Id.Name, versionId, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new BlueprintArmOperation(Response.FromValue(new PublishedBlueprintResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/PublishedBlueprintResource.cs b/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/PublishedBlueprintResource.cs index d0753c4e0aa6..b08cf3329eb3 100644 --- a/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/PublishedBlueprintResource.cs +++ b/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/PublishedBlueprintResource.cs @@ -268,7 +268,9 @@ public virtual async Task> DeleteAsync( try { var response = await _publishedBlueprintRestClient.DeleteAsync(Id.Parent.Parent, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new BlueprintArmOperation(Response.FromValue(new PublishedBlueprintResource(Client, response), response.GetRawResponse())); + var uri = _publishedBlueprintRestClient.CreateDeleteRequestUri(Id.Parent.Parent, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new BlueprintArmOperation(Response.FromValue(new PublishedBlueprintResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -310,7 +312,9 @@ public virtual ArmOperation Delete(WaitUntil waitUnt try { var response = _publishedBlueprintRestClient.Delete(Id.Parent.Parent, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new BlueprintArmOperation(Response.FromValue(new PublishedBlueprintResource(Client, response), response.GetRawResponse())); + var uri = _publishedBlueprintRestClient.CreateDeleteRequestUri(Id.Parent.Parent, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new BlueprintArmOperation(Response.FromValue(new PublishedBlueprintResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -356,7 +360,9 @@ public virtual async Task> UpdateAsync( try { var response = await _publishedBlueprintRestClient.CreateAsync(Id.Parent.Parent, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new BlueprintArmOperation(Response.FromValue(new PublishedBlueprintResource(Client, response), response.GetRawResponse())); + var uri = _publishedBlueprintRestClient.CreateCreateRequestUri(Id.Parent.Parent, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new BlueprintArmOperation(Response.FromValue(new PublishedBlueprintResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -402,7 +408,9 @@ public virtual ArmOperation Update(WaitUntil waitUnt try { var response = _publishedBlueprintRestClient.Create(Id.Parent.Parent, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new BlueprintArmOperation(Response.FromValue(new PublishedBlueprintResource(Client, response), response.GetRawResponse())); + var uri = _publishedBlueprintRestClient.CreateCreateRequestUri(Id.Parent.Parent, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new BlueprintArmOperation(Response.FromValue(new PublishedBlueprintResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/RestOperations/ArtifactsRestOperations.cs b/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/RestOperations/ArtifactsRestOperations.cs index 6f5f73314da1..1daa42ba6ee5 100644 --- a/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/RestOperations/ArtifactsRestOperations.cs +++ b/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/RestOperations/ArtifactsRestOperations.cs @@ -37,6 +37,20 @@ public ArtifactsRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string resourceScope, string blueprintName, string artifactName, ArtifactData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceScope, false); + uri.AppendPath("/providers/Microsoft.Blueprint/blueprints/", false); + uri.AppendPath(blueprintName, true); + uri.AppendPath("/artifacts/", false); + uri.AppendPath(artifactName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string resourceScope, string blueprintName, string artifactName, ArtifactData data) { var message = _pipeline.CreateMessage(); @@ -123,6 +137,20 @@ public Response CreateOrUpdate(string resourceScope, string bluepr } } + internal RequestUriBuilder CreateGetRequestUri(string resourceScope, string blueprintName, string artifactName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceScope, false); + uri.AppendPath("/providers/Microsoft.Blueprint/blueprints/", false); + uri.AppendPath(blueprintName, true); + uri.AppendPath("/artifacts/", false); + uri.AppendPath(artifactName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string resourceScope, string blueprintName, string artifactName) { var message = _pipeline.CreateMessage(); @@ -205,6 +233,20 @@ public Response Get(string resourceScope, string blueprintName, st } } + internal RequestUriBuilder CreateDeleteRequestUri(string resourceScope, string blueprintName, string artifactName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceScope, false); + uri.AppendPath("/providers/Microsoft.Blueprint/blueprints/", false); + uri.AppendPath(blueprintName, true); + uri.AppendPath("/artifacts/", false); + uri.AppendPath(artifactName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string resourceScope, string blueprintName, string artifactName) { var message = _pipeline.CreateMessage(); @@ -287,6 +329,19 @@ public Response Delete(string resourceScope, string blueprintName, } } + internal RequestUriBuilder CreateListRequestUri(string resourceScope, string blueprintName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceScope, false); + uri.AppendPath("/providers/Microsoft.Blueprint/blueprints/", false); + uri.AppendPath(blueprintName, true); + uri.AppendPath("/artifacts", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string resourceScope, string blueprintName) { var message = _pipeline.CreateMessage(); @@ -360,6 +415,14 @@ public Response List(string resourceScope, string blueprintName, C } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string resourceScope, string blueprintName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string resourceScope, string blueprintName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/RestOperations/AssignmentRestOperations.cs b/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/RestOperations/AssignmentRestOperations.cs index c1084b28fc96..1827730aa81b 100644 --- a/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/RestOperations/AssignmentRestOperations.cs +++ b/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/RestOperations/AssignmentRestOperations.cs @@ -37,6 +37,19 @@ public AssignmentRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string resourceScope, string assignmentName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceScope, false); + uri.AppendPath("/providers/Microsoft.Blueprint/blueprintAssignments/", false); + uri.AppendPath(assignmentName, true); + uri.AppendPath("/assignmentOperations", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string resourceScope, string assignmentName) { var message = _pipeline.CreateMessage(); @@ -110,6 +123,20 @@ public Response List(string resourceScope, string assig } } + internal RequestUriBuilder CreateGetRequestUri(string resourceScope, string assignmentName, string assignmentOperationName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceScope, false); + uri.AppendPath("/providers/Microsoft.Blueprint/blueprintAssignments/", false); + uri.AppendPath(assignmentName, true); + uri.AppendPath("/assignmentOperations/", false); + uri.AppendPath(assignmentOperationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string resourceScope, string assignmentName, string assignmentOperationName) { var message = _pipeline.CreateMessage(); @@ -192,6 +219,14 @@ public Response Get(string resourceScope, string assign } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string resourceScope, string assignmentName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string resourceScope, string assignmentName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/RestOperations/AssignmentsRestOperations.cs b/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/RestOperations/AssignmentsRestOperations.cs index 66a3e0f609ad..69cf3260fe7d 100644 --- a/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/RestOperations/AssignmentsRestOperations.cs +++ b/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/RestOperations/AssignmentsRestOperations.cs @@ -37,6 +37,18 @@ public AssignmentsRestOperations(HttpPipeline pipeline, string applicationId, Ur _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string resourceScope, string assignmentName, AssignmentData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceScope, false); + uri.AppendPath("/providers/Microsoft.Blueprint/blueprintAssignments/", false); + uri.AppendPath(assignmentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string resourceScope, string assignmentName, AssignmentData data) { var message = _pipeline.CreateMessage(); @@ -117,6 +129,18 @@ public Response CreateOrUpdate(string resourceScope, string assi } } + internal RequestUriBuilder CreateGetRequestUri(string resourceScope, string assignmentName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceScope, false); + uri.AppendPath("/providers/Microsoft.Blueprint/blueprintAssignments/", false); + uri.AppendPath(assignmentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string resourceScope, string assignmentName) { var message = _pipeline.CreateMessage(); @@ -193,6 +217,22 @@ public Response Get(string resourceScope, string assignmentName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string resourceScope, string assignmentName, AssignmentDeleteBehavior? deleteBehavior) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceScope, false); + uri.AppendPath("/providers/Microsoft.Blueprint/blueprintAssignments/", false); + uri.AppendPath(assignmentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + if (deleteBehavior != null) + { + uri.AppendQuery("deleteBehavior", deleteBehavior.Value.ToString(), true); + } + return uri; + } + internal HttpMessage CreateDeleteRequest(string resourceScope, string assignmentName, AssignmentDeleteBehavior? deleteBehavior) { var message = _pipeline.CreateMessage(); @@ -275,6 +315,19 @@ public Response Delete(string resourceScope, string assignmentNa } } + internal RequestUriBuilder CreateWhoIsBlueprintRequestUri(string resourceScope, string assignmentName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceScope, false); + uri.AppendPath("/providers/Microsoft.Blueprint/blueprintAssignments/", false); + uri.AppendPath(assignmentName, true); + uri.AppendPath("/whoIsBlueprint", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateWhoIsBlueprintRequest(string resourceScope, string assignmentName) { var message = _pipeline.CreateMessage(); @@ -348,6 +401,17 @@ public Response WhoIsBlueprint(string resourceScope, str } } + internal RequestUriBuilder CreateListRequestUri(string resourceScope) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceScope, false); + uri.AppendPath("/providers/Microsoft.Blueprint/blueprintAssignments", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string resourceScope) { var message = _pipeline.CreateMessage(); @@ -413,6 +477,14 @@ public Response List(string resourceScope, CancellationToken can } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string resourceScope) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string resourceScope) { var message = _pipeline.CreateMessage(); diff --git a/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/RestOperations/BlueprintsRestOperations.cs b/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/RestOperations/BlueprintsRestOperations.cs index 0731459c4fbd..b15fdce43445 100644 --- a/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/RestOperations/BlueprintsRestOperations.cs +++ b/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/RestOperations/BlueprintsRestOperations.cs @@ -37,6 +37,18 @@ public BlueprintsRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string resourceScope, string blueprintName, BlueprintData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceScope, false); + uri.AppendPath("/providers/Microsoft.Blueprint/blueprints/", false); + uri.AppendPath(blueprintName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string resourceScope, string blueprintName, BlueprintData data) { var message = _pipeline.CreateMessage(); @@ -117,6 +129,18 @@ public Response CreateOrUpdate(string resourceScope, string bluep } } + internal RequestUriBuilder CreateGetRequestUri(string resourceScope, string blueprintName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceScope, false); + uri.AppendPath("/providers/Microsoft.Blueprint/blueprints/", false); + uri.AppendPath(blueprintName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string resourceScope, string blueprintName) { var message = _pipeline.CreateMessage(); @@ -193,6 +217,18 @@ public Response Get(string resourceScope, string blueprintName, C } } + internal RequestUriBuilder CreateDeleteRequestUri(string resourceScope, string blueprintName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceScope, false); + uri.AppendPath("/providers/Microsoft.Blueprint/blueprints/", false); + uri.AppendPath(blueprintName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string resourceScope, string blueprintName) { var message = _pipeline.CreateMessage(); @@ -269,6 +305,17 @@ public Response Delete(string resourceScope, string blueprintName } } + internal RequestUriBuilder CreateListRequestUri(string resourceScope) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceScope, false); + uri.AppendPath("/providers/Microsoft.Blueprint/blueprints", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string resourceScope) { var message = _pipeline.CreateMessage(); @@ -334,6 +381,14 @@ public Response List(string resourceScope, CancellationToken canc } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string resourceScope) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string resourceScope) { var message = _pipeline.CreateMessage(); diff --git a/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/RestOperations/PublishedArtifactsRestOperations.cs b/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/RestOperations/PublishedArtifactsRestOperations.cs index cf315334ee30..95ab5848a652 100644 --- a/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/RestOperations/PublishedArtifactsRestOperations.cs +++ b/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/RestOperations/PublishedArtifactsRestOperations.cs @@ -37,6 +37,22 @@ public PublishedArtifactsRestOperations(HttpPipeline pipeline, string applicatio _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string resourceScope, string blueprintName, string versionId, string artifactName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceScope, false); + uri.AppendPath("/providers/Microsoft.Blueprint/blueprints/", false); + uri.AppendPath(blueprintName, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(versionId, true); + uri.AppendPath("/artifacts/", false); + uri.AppendPath(artifactName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string resourceScope, string blueprintName, string versionId, string artifactName) { var message = _pipeline.CreateMessage(); @@ -125,6 +141,21 @@ public Response Get(string resourceScope, string blueprintName, st } } + internal RequestUriBuilder CreateListRequestUri(string resourceScope, string blueprintName, string versionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceScope, false); + uri.AppendPath("/providers/Microsoft.Blueprint/blueprints/", false); + uri.AppendPath(blueprintName, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(versionId, true); + uri.AppendPath("/artifacts", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string resourceScope, string blueprintName, string versionId) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,14 @@ public Response List(string resourceScope, string blueprintName, s } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string resourceScope, string blueprintName, string versionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string resourceScope, string blueprintName, string versionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/RestOperations/PublishedBlueprintsRestOperations.cs b/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/RestOperations/PublishedBlueprintsRestOperations.cs index f44cb4cf1359..a869a21a6a57 100644 --- a/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/RestOperations/PublishedBlueprintsRestOperations.cs +++ b/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/RestOperations/PublishedBlueprintsRestOperations.cs @@ -37,6 +37,20 @@ public PublishedBlueprintsRestOperations(HttpPipeline pipeline, string applicati _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateRequestUri(string resourceScope, string blueprintName, string versionId, PublishedBlueprintData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceScope, false); + uri.AppendPath("/providers/Microsoft.Blueprint/blueprints/", false); + uri.AppendPath(blueprintName, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(versionId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string resourceScope, string blueprintName, string versionId, PublishedBlueprintData data) { var message = _pipeline.CreateMessage(); @@ -123,6 +137,20 @@ public Response Create(string resourceScope, string blue } } + internal RequestUriBuilder CreateGetRequestUri(string resourceScope, string blueprintName, string versionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceScope, false); + uri.AppendPath("/providers/Microsoft.Blueprint/blueprints/", false); + uri.AppendPath(blueprintName, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(versionId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string resourceScope, string blueprintName, string versionId) { var message = _pipeline.CreateMessage(); @@ -205,6 +233,20 @@ public Response Get(string resourceScope, string bluepri } } + internal RequestUriBuilder CreateDeleteRequestUri(string resourceScope, string blueprintName, string versionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceScope, false); + uri.AppendPath("/providers/Microsoft.Blueprint/blueprints/", false); + uri.AppendPath(blueprintName, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(versionId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string resourceScope, string blueprintName, string versionId) { var message = _pipeline.CreateMessage(); @@ -287,6 +329,19 @@ public Response Delete(string resourceScope, string blue } } + internal RequestUriBuilder CreateListRequestUri(string resourceScope, string blueprintName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceScope, false); + uri.AppendPath("/providers/Microsoft.Blueprint/blueprints/", false); + uri.AppendPath(blueprintName, true); + uri.AppendPath("/versions", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string resourceScope, string blueprintName) { var message = _pipeline.CreateMessage(); @@ -360,6 +415,14 @@ public Response List(string resourceScope, string bluepr } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string resourceScope, string blueprintName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string resourceScope, string blueprintName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/BotChannelCollection.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/BotChannelCollection.cs index ee4f3d0edfd0..c64752ca2945 100644 --- a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/BotChannelCollection.cs +++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/BotChannelCollection.cs @@ -89,7 +89,9 @@ public virtual async Task> CreateOrUpdateAsync( try { var response = await _botChannelChannelsRestClient.CreateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, channelName, data, cancellationToken).ConfigureAwait(false); - var operation = new BotServiceArmOperation(Response.FromValue(new BotChannelResource(Client, response), response.GetRawResponse())); + var uri = _botChannelChannelsRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, channelName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new BotServiceArmOperation(Response.FromValue(new BotChannelResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -136,7 +138,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUnt try { var response = _botChannelChannelsRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, channelName, data, cancellationToken); - var operation = new BotServiceArmOperation(Response.FromValue(new BotChannelResource(Client, response), response.GetRawResponse())); + var uri = _botChannelChannelsRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, channelName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new BotServiceArmOperation(Response.FromValue(new BotChannelResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/BotChannelResource.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/BotChannelResource.cs index 4519ed4d9037..83d56545df9b 100644 --- a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/BotChannelResource.cs +++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/BotChannelResource.cs @@ -202,7 +202,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _botChannelChannelsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new BotServiceArmOperation(response); + var uri = _botChannelChannelsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new BotServiceArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -244,7 +246,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _botChannelChannelsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new BotServiceArmOperation(response); + var uri = _botChannelChannelsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new BotServiceArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/BotCollection.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/BotCollection.cs index e8b202d2fad4..1a2bfc7adc3f 100644 --- a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/BotCollection.cs +++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/BotCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> CreateOrUpdateAsync(WaitUnt try { var response = await _botRestClient.CreateAsync(Id.SubscriptionId, Id.ResourceGroupName, resourceName, data, cancellationToken).ConfigureAwait(false); - var operation = new BotServiceArmOperation(Response.FromValue(new BotResource(Client, response), response.GetRawResponse())); + var uri = _botRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, resourceName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new BotServiceArmOperation(Response.FromValue(new BotResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -140,7 +142,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, str try { var response = _botRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, resourceName, data, cancellationToken); - var operation = new BotServiceArmOperation(Response.FromValue(new BotResource(Client, response), response.GetRawResponse())); + var uri = _botRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, resourceName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new BotServiceArmOperation(Response.FromValue(new BotResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/BotConnectionSettingCollection.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/BotConnectionSettingCollection.cs index f6534f680d43..1a75cb0f26ec 100644 --- a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/BotConnectionSettingCollection.cs +++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/BotConnectionSettingCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> CreateOrUp try { var response = await _botConnectionSettingBotConnectionRestClient.CreateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, connectionName, data, cancellationToken).ConfigureAwait(false); - var operation = new BotServiceArmOperation(Response.FromValue(new BotConnectionSettingResource(Client, response), response.GetRawResponse())); + var uri = _botConnectionSettingBotConnectionRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, connectionName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new BotServiceArmOperation(Response.FromValue(new BotConnectionSettingResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUnt try { var response = _botConnectionSettingBotConnectionRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, connectionName, data, cancellationToken); - var operation = new BotServiceArmOperation(Response.FromValue(new BotConnectionSettingResource(Client, response), response.GetRawResponse())); + var uri = _botConnectionSettingBotConnectionRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, connectionName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new BotServiceArmOperation(Response.FromValue(new BotConnectionSettingResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/BotConnectionSettingResource.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/BotConnectionSettingResource.cs index 5885ff32ea19..359c78217eb2 100644 --- a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/BotConnectionSettingResource.cs +++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/BotConnectionSettingResource.cs @@ -201,7 +201,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _botConnectionSettingBotConnectionRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new BotServiceArmOperation(response); + var uri = _botConnectionSettingBotConnectionRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new BotServiceArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -243,7 +245,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _botConnectionSettingBotConnectionRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new BotServiceArmOperation(response); + var uri = _botConnectionSettingBotConnectionRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new BotServiceArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/BotResource.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/BotResource.cs index 20d48cb3c8a2..759580c9ed48 100644 --- a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/BotResource.cs +++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/BotResource.cs @@ -418,7 +418,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _botRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new BotServiceArmOperation(response); + var uri = _botRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new BotServiceArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -460,7 +462,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _botRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); - var operation = new BotServiceArmOperation(response); + var uri = _botRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new BotServiceArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/BotServicePrivateEndpointConnectionCollection.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/BotServicePrivateEndpointConnectionCollection.cs index f9d1dc5d8010..a4828b559ce3 100644 --- a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/BotServicePrivateEndpointConnectionCollection.cs +++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/BotServicePrivateEndpointConnectionCollection.cs @@ -90,7 +90,9 @@ public virtual async Task(Response.FromValue(new BotServicePrivateEndpointConnectionResource(Client, response), response.GetRawResponse())); + var uri = _botServicePrivateEndpointConnectionPrivateEndpointConnectionsRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, privateEndpointConnectionName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new BotServiceArmOperation(Response.FromValue(new BotServicePrivateEndpointConnectionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateO try { var response = _botServicePrivateEndpointConnectionPrivateEndpointConnectionsRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, privateEndpointConnectionName, data, cancellationToken); - var operation = new BotServiceArmOperation(Response.FromValue(new BotServicePrivateEndpointConnectionResource(Client, response), response.GetRawResponse())); + var uri = _botServicePrivateEndpointConnectionPrivateEndpointConnectionsRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, privateEndpointConnectionName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new BotServiceArmOperation(Response.FromValue(new BotServicePrivateEndpointConnectionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/BotServicePrivateEndpointConnectionResource.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/BotServicePrivateEndpointConnectionResource.cs index 51b527830dc5..f5457afc3ff9 100644 --- a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/BotServicePrivateEndpointConnectionResource.cs +++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/BotServicePrivateEndpointConnectionResource.cs @@ -200,7 +200,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _botServicePrivateEndpointConnectionPrivateEndpointConnectionsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new BotServiceArmOperation(response); + var uri = _botServicePrivateEndpointConnectionPrivateEndpointConnectionsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new BotServiceArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -242,7 +244,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _botServicePrivateEndpointConnectionPrivateEndpointConnectionsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new BotServiceArmOperation(response); + var uri = _botServicePrivateEndpointConnectionPrivateEndpointConnectionsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new BotServiceArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -288,7 +292,9 @@ public virtual async Task(Response.FromValue(new BotServicePrivateEndpointConnectionResource(Client, response), response.GetRawResponse())); + var uri = _botServicePrivateEndpointConnectionPrivateEndpointConnectionsRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new BotServiceArmOperation(Response.FromValue(new BotServicePrivateEndpointConnectionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -334,7 +340,9 @@ public virtual ArmOperation Update( try { var response = _botServicePrivateEndpointConnectionPrivateEndpointConnectionsRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new BotServiceArmOperation(Response.FromValue(new BotServicePrivateEndpointConnectionResource(Client, response), response.GetRawResponse())); + var uri = _botServicePrivateEndpointConnectionPrivateEndpointConnectionsRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new BotServiceArmOperation(Response.FromValue(new BotServicePrivateEndpointConnectionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/LongRunningOperation/BotServiceArmOperation.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/LongRunningOperation/BotServiceArmOperation.cs index ec00d5ffe33d..5cde746c1e30 100644 --- a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/LongRunningOperation/BotServiceArmOperation.cs +++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/LongRunningOperation/BotServiceArmOperation.cs @@ -20,21 +20,24 @@ internal class BotServiceArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of BotServiceArmOperation for mocking. protected BotServiceArmOperation() { } - internal BotServiceArmOperation(Response response) + internal BotServiceArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal BotServiceArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "BotServiceArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal BotServiceArmOperation(ClientDiagnostics clientDiagnostics, HttpPipelin public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/LongRunningOperation/BotServiceArmOperationOfT.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/LongRunningOperation/BotServiceArmOperationOfT.cs index 57731e1297e4..5889d5dfaf2f 100644 --- a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/LongRunningOperation/BotServiceArmOperationOfT.cs +++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/LongRunningOperation/BotServiceArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class BotServiceArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of BotServiceArmOperation for mocking. protected BotServiceArmOperation() { } - internal BotServiceArmOperation(Response response) + internal BotServiceArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal BotServiceArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "BotServiceArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal BotServiceArmOperation(IOperationSource source, ClientDiagnostics cl public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/BotChannelResource.Serialization.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/BotChannelResource.Serialization.cs new file mode 100644 index 000000000000..7b527975d61a --- /dev/null +++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/BotChannelResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.BotService +{ + public partial class BotChannelResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + BotChannelData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + BotChannelData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/BotConnectionSettingResource.Serialization.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/BotConnectionSettingResource.Serialization.cs new file mode 100644 index 000000000000..319c47cce9f9 --- /dev/null +++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/BotConnectionSettingResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.BotService +{ + public partial class BotConnectionSettingResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + BotConnectionSettingData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + BotConnectionSettingData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/BotResource.Serialization.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/BotResource.Serialization.cs new file mode 100644 index 000000000000..71d755827455 --- /dev/null +++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/BotResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.BotService +{ + public partial class BotResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + BotData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + BotData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/BotServicePrivateEndpointConnectionResource.Serialization.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/BotServicePrivateEndpointConnectionResource.Serialization.cs new file mode 100644 index 000000000000..909019937abe --- /dev/null +++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/BotServicePrivateEndpointConnectionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.BotService +{ + public partial class BotServicePrivateEndpointConnectionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + BotServicePrivateEndpointConnectionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + BotServicePrivateEndpointConnectionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/RestOperations/BotConnectionRestOperations.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/RestOperations/BotConnectionRestOperations.cs index d95af3596d77..7e98ea2772c2 100644 --- a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/RestOperations/BotConnectionRestOperations.cs +++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/RestOperations/BotConnectionRestOperations.cs @@ -37,6 +37,17 @@ public BotConnectionRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListServiceProvidersRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.BotService/listAuthServiceProviders", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListServiceProvidersRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,23 @@ public Response ListServiceProviders(string subscri } } + internal RequestUriBuilder CreateListWithSecretsRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string connectionName) + { + 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.BotService/botServices/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/connections/", false); + uri.AppendPath(connectionName, true); + uri.AppendPath("/listWithSecrets", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListWithSecretsRequest(string subscriptionId, string resourceGroupName, string resourceName, string connectionName) { var message = _pipeline.CreateMessage(); @@ -189,6 +217,22 @@ public Response ListWithSecrets(string subscriptionId, } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string connectionName, BotConnectionSettingData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.BotService/botServices/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/connections/", false); + uri.AppendPath(connectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string resourceName, string connectionName, BotConnectionSettingData data) { var message = _pipeline.CreateMessage(); @@ -283,6 +327,22 @@ public Response Create(string subscriptionId, string r } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string connectionName, BotConnectionSettingData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.BotService/botServices/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/connections/", false); + uri.AppendPath(connectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string resourceName, string connectionName, BotConnectionSettingData data) { var message = _pipeline.CreateMessage(); @@ -377,6 +437,22 @@ public Response Update(string subscriptionId, string r } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string connectionName) + { + 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.BotService/botServices/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/connections/", false); + uri.AppendPath(connectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string resourceName, string connectionName) { var message = _pipeline.CreateMessage(); @@ -465,6 +541,22 @@ public Response Get(string subscriptionId, string reso } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string connectionName) + { + 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.BotService/botServices/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/connections/", false); + uri.AppendPath(connectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string resourceName, string connectionName) { var message = _pipeline.CreateMessage(); @@ -541,6 +633,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateListByBotServiceRequestUri(string subscriptionId, string resourceGroupName, string resourceName) + { + 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.BotService/botServices/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/connections", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByBotServiceRequest(string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); @@ -620,6 +727,14 @@ public Response ListByBotService(string subscript } } + internal RequestUriBuilder CreateListByBotServiceNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string resourceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByBotServiceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/RestOperations/BotsRestOperations.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/RestOperations/BotsRestOperations.cs index 17507215a1d8..31f2046261f5 100644 --- a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/RestOperations/BotsRestOperations.cs +++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/RestOperations/BotsRestOperations.cs @@ -37,6 +37,20 @@ public BotsRestOperations(HttpPipeline pipeline, string applicationId, Uri endpo _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string resourceName, BotData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.BotService/botServices/", false); + uri.AppendPath(resourceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string resourceName, BotData data) { var message = _pipeline.CreateMessage(); @@ -125,6 +139,20 @@ public Response Create(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string resourceName, BotData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.BotService/botServices/", false); + uri.AppendPath(resourceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string resourceName, BotData data) { var message = _pipeline.CreateMessage(); @@ -213,6 +241,20 @@ public Response Update(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string resourceName) + { + 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.BotService/botServices/", false); + uri.AppendPath(resourceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); @@ -283,6 +325,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string resourceName) + { + 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.BotService/botServices/", false); + uri.AppendPath(resourceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); @@ -365,6 +421,19 @@ public Response Get(string subscriptionId, string resourceGroupName, st } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.BotService/botServices", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -438,6 +507,17 @@ public Response ListByResourceGroup(string subscriptionId, stri } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.BotService/botServices", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -505,6 +585,15 @@ public Response List(string subscriptionId, CancellationToken c } } + internal RequestUriBuilder CreateGetCheckNameAvailabilityRequestUri(BotServiceNameAvailabilityContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.BotService/checkNameAvailability", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetCheckNameAvailabilityRequest(BotServiceNameAvailabilityContent content) { var message = _pipeline.CreateMessage(); @@ -572,6 +661,14 @@ public Response GetCheckNameAvailability(BotSe } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -644,6 +741,14 @@ public Response ListByResourceGroupNextPage(string nextLink, st } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/RestOperations/ChannelsRestOperations.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/RestOperations/ChannelsRestOperations.cs index 82f395c4377e..caf0da50d76c 100644 --- a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/RestOperations/ChannelsRestOperations.cs +++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/RestOperations/ChannelsRestOperations.cs @@ -37,6 +37,22 @@ public ChannelsRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string resourceName, BotChannelName channelName, BotChannelData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.BotService/botServices/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/channels/", false); + uri.AppendPath(channelName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string resourceName, BotChannelName channelName, BotChannelData data) { var message = _pipeline.CreateMessage(); @@ -129,6 +145,22 @@ public Response Create(string subscriptionId, string resourceGro } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string resourceName, BotChannelName channelName, BotChannelData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.BotService/botServices/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/channels/", false); + uri.AppendPath(channelName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string resourceName, BotChannelName channelName, BotChannelData data) { var message = _pipeline.CreateMessage(); @@ -221,6 +253,22 @@ public Response Update(string subscriptionId, string resourceGro } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string resourceName, BotChannelName channelName) + { + 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.BotService/botServices/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/channels/", false); + uri.AppendPath(channelName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string resourceName, BotChannelName channelName) { var message = _pipeline.CreateMessage(); @@ -295,6 +343,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string resourceName, BotChannelName channelName) + { + 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.BotService/botServices/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/channels/", false); + uri.AppendPath(channelName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string resourceName, BotChannelName channelName) { var message = _pipeline.CreateMessage(); @@ -381,6 +445,23 @@ public Response Get(string subscriptionId, string resourceGroupN } } + internal RequestUriBuilder CreateListWithKeysRequestUri(string subscriptionId, string resourceGroupName, string resourceName, BotChannelName channelName) + { + 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.BotService/botServices/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/channels/", false); + uri.AppendPath(channelName.ToString(), true); + uri.AppendPath("/listChannelWithKeys", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListWithKeysRequest(string subscriptionId, string resourceGroupName, string resourceName, BotChannelName channelName) { var message = _pipeline.CreateMessage(); @@ -464,6 +545,21 @@ public Response ListWithKeys(string subscriptionId, } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName, string resourceName) + { + 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.BotService/botServices/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/channels", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); @@ -543,6 +639,14 @@ public Response ListByResourceGroup(string subscriptionId, } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string resourceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/RestOperations/DirectLineRestOperations.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/RestOperations/DirectLineRestOperations.cs index f56a592ecb53..0b61a1c5f2b4 100644 --- a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/RestOperations/DirectLineRestOperations.cs +++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/RestOperations/DirectLineRestOperations.cs @@ -37,6 +37,23 @@ public DirectLineRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateRegenerateKeysRequestUri(string subscriptionId, string resourceGroupName, string resourceName, RegenerateKeysBotChannelName channelName, BotChannelRegenerateKeysContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.BotService/botServices/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/channels/", false); + uri.AppendPath(channelName.ToSerialString(), true); + uri.AppendPath("/regeneratekeys", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRegenerateKeysRequest(string subscriptionId, string resourceGroupName, string resourceName, RegenerateKeysBotChannelName channelName, BotChannelRegenerateKeysContent content) { var message = _pipeline.CreateMessage(); diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/RestOperations/EmailRestOperations.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/RestOperations/EmailRestOperations.cs index 059319a7f2d9..3c29b6ee7882 100644 --- a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/RestOperations/EmailRestOperations.cs +++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/RestOperations/EmailRestOperations.cs @@ -37,6 +37,21 @@ public EmailRestOperations(HttpPipeline pipeline, string applicationId, Uri endp _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateSignInUrlRequestUri(string subscriptionId, string resourceGroupName, string resourceName) + { + 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.BotService/botServices/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/createEmailSignInUrl", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateSignInUrlRequest(string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/RestOperations/HostSettingsRestOperations.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/RestOperations/HostSettingsRestOperations.cs index 1323541685ec..089aea538efe 100644 --- a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/RestOperations/HostSettingsRestOperations.cs +++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/RestOperations/HostSettingsRestOperations.cs @@ -37,6 +37,17 @@ public HostSettingsRestOperations(HttpPipeline pipeline, string applicationId, U _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.BotService/hostSettings", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs index 0112a65a5157..756cf2f488a6 100644 --- a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs +++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs @@ -37,6 +37,21 @@ public PrivateEndpointConnectionsRestOperations(HttpPipeline pipeline, string ap _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string resourceName) + { + 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.BotService/botServices/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/privateEndpointConnections", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response List(string subsc } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string privateEndpointConnectionName) + { + 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.BotService/botServices/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string resourceName, string privateEndpointConnectionName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscription } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string privateEndpointConnectionName, BotServicePrivateEndpointConnectionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.BotService/botServices/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string resourceName, string privateEndpointConnectionName, BotServicePrivateEndpointConnectionData data) { var message = _pipeline.CreateMessage(); @@ -296,6 +343,22 @@ public Response Create(string subscript } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string privateEndpointConnectionName) + { + 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.BotService/botServices/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string resourceName, string privateEndpointConnectionName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs index ee98df70822f..4a920aa9a01b 100644 --- a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs +++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs @@ -37,6 +37,21 @@ public PrivateLinkResourcesRestOperations(HttpPipeline pipeline, string applicat _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByBotResourceRequestUri(string subscriptionId, string resourceGroupName, string resourceName) + { + 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.BotService/botServices/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/privateLinkResources", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByBotResourceRequest(string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/RestOperations/QnAMakerEndpointKeysRestOperations.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/RestOperations/QnAMakerEndpointKeysRestOperations.cs index 82c5b263ce4f..767d31d7d85c 100644 --- a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/RestOperations/QnAMakerEndpointKeysRestOperations.cs +++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/RestOperations/QnAMakerEndpointKeysRestOperations.cs @@ -37,6 +37,17 @@ public QnAMakerEndpointKeysRestOperations(HttpPipeline pipeline, string applicat _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, GetBotServiceQnAMakerEndpointKeyContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.BotService/listQnAMakerEndpointKeys", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, GetBotServiceQnAMakerEndpointKeyContent content) { var message = _pipeline.CreateMessage(); diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/CdnWebApplicationFirewallPolicyResource.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/CdnWebApplicationFirewallPolicyResource.cs index f6b6b28e106b..e6c1ba668563 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/CdnWebApplicationFirewallPolicyResource.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/CdnWebApplicationFirewallPolicyResource.cs @@ -202,7 +202,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _cdnWebApplicationFirewallPolicyPoliciesRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new CdnArmOperation(response); + var uri = _cdnWebApplicationFirewallPolicyPoliciesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new CdnArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -244,7 +246,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _cdnWebApplicationFirewallPolicyPoliciesRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); - var operation = new CdnArmOperation(response); + var uri = _cdnWebApplicationFirewallPolicyPoliciesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new CdnArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/FrontDoorRuleSetCollection.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/FrontDoorRuleSetCollection.cs index 1ab4c43b4326..ae341ce3b658 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/FrontDoorRuleSetCollection.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/FrontDoorRuleSetCollection.cs @@ -88,7 +88,9 @@ public virtual async Task> CreateOrUpdate try { var response = await _frontDoorRuleSetRestClient.CreateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, ruleSetName, cancellationToken).ConfigureAwait(false); - var operation = new CdnArmOperation(Response.FromValue(new FrontDoorRuleSetResource(Client, response), response.GetRawResponse())); + var uri = _frontDoorRuleSetRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, ruleSetName); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new CdnArmOperation(Response.FromValue(new FrontDoorRuleSetResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -135,7 +137,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil w try { var response = _frontDoorRuleSetRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, ruleSetName, cancellationToken); - var operation = new CdnArmOperation(Response.FromValue(new FrontDoorRuleSetResource(Client, response), response.GetRawResponse())); + var uri = _frontDoorRuleSetRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, ruleSetName); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new CdnArmOperation(Response.FromValue(new FrontDoorRuleSetResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/FrontDoorRuleSetResource.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/FrontDoorRuleSetResource.cs index ec2e32c3ae8a..f8b1dbc42df9 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/FrontDoorRuleSetResource.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/FrontDoorRuleSetResource.cs @@ -355,7 +355,9 @@ public virtual async Task> UpdateAsync(Wa try { var response = await _frontDoorRuleSetRestClient.CreateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new CdnArmOperation(Response.FromValue(new FrontDoorRuleSetResource(Client, response), response.GetRawResponse())); + var uri = _frontDoorRuleSetRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new CdnArmOperation(Response.FromValue(new FrontDoorRuleSetResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -397,7 +399,9 @@ public virtual ArmOperation Update(WaitUntil waitUntil try { var response = _frontDoorRuleSetRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new CdnArmOperation(Response.FromValue(new FrontDoorRuleSetResource(Client, response), response.GetRawResponse())); + var uri = _frontDoorRuleSetRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new CdnArmOperation(Response.FromValue(new FrontDoorRuleSetResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/LongRunningOperation/CdnArmOperation.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/LongRunningOperation/CdnArmOperation.cs index 8afec3bfd83b..12b4c6c3333a 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/LongRunningOperation/CdnArmOperation.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/LongRunningOperation/CdnArmOperation.cs @@ -20,21 +20,24 @@ internal class CdnArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of CdnArmOperation for mocking. protected CdnArmOperation() { } - internal CdnArmOperation(Response response) + internal CdnArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal CdnArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "CdnArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal CdnArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipel public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/LongRunningOperation/CdnArmOperationOfT.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/LongRunningOperation/CdnArmOperationOfT.cs index b6adcc57ebc5..f0b38734c226 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/LongRunningOperation/CdnArmOperationOfT.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/LongRunningOperation/CdnArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class CdnArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of CdnArmOperation for mocking. protected CdnArmOperation() { } - internal CdnArmOperation(Response response) + internal CdnArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal CdnArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "CdnArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal CdnArmOperation(IOperationSource source, ClientDiagnostics clientDia public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/CdnCustomDomainResource.Serialization.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/CdnCustomDomainResource.Serialization.cs new file mode 100644 index 000000000000..ff594008211f --- /dev/null +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/CdnCustomDomainResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Cdn +{ + public partial class CdnCustomDomainResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + CdnCustomDomainData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + CdnCustomDomainData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/CdnEndpointResource.Serialization.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/CdnEndpointResource.Serialization.cs new file mode 100644 index 000000000000..02a6fff7501d --- /dev/null +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/CdnEndpointResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Cdn +{ + public partial class CdnEndpointResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + CdnEndpointData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + CdnEndpointData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/CdnOriginGroupResource.Serialization.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/CdnOriginGroupResource.Serialization.cs new file mode 100644 index 000000000000..fe1f42d4d3d7 --- /dev/null +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/CdnOriginGroupResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Cdn +{ + public partial class CdnOriginGroupResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + CdnOriginGroupData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + CdnOriginGroupData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/CdnOriginResource.Serialization.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/CdnOriginResource.Serialization.cs new file mode 100644 index 000000000000..68f15422ab72 --- /dev/null +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/CdnOriginResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Cdn +{ + public partial class CdnOriginResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + CdnOriginData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + CdnOriginData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/CdnWebApplicationFirewallPolicyResource.Serialization.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/CdnWebApplicationFirewallPolicyResource.Serialization.cs new file mode 100644 index 000000000000..d9163ef820da --- /dev/null +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/CdnWebApplicationFirewallPolicyResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Cdn +{ + public partial class CdnWebApplicationFirewallPolicyResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + CdnWebApplicationFirewallPolicyData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + CdnWebApplicationFirewallPolicyData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/FrontDoorCustomDomainResource.Serialization.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/FrontDoorCustomDomainResource.Serialization.cs new file mode 100644 index 000000000000..ebbb86d86e90 --- /dev/null +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/FrontDoorCustomDomainResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Cdn +{ + public partial class FrontDoorCustomDomainResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + FrontDoorCustomDomainData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + FrontDoorCustomDomainData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/FrontDoorEndpointResource.Serialization.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/FrontDoorEndpointResource.Serialization.cs new file mode 100644 index 000000000000..0db2c351e159 --- /dev/null +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/FrontDoorEndpointResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Cdn +{ + public partial class FrontDoorEndpointResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + FrontDoorEndpointData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + FrontDoorEndpointData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/FrontDoorOriginGroupResource.Serialization.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/FrontDoorOriginGroupResource.Serialization.cs new file mode 100644 index 000000000000..7b19a9c169fc --- /dev/null +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/FrontDoorOriginGroupResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Cdn +{ + public partial class FrontDoorOriginGroupResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + FrontDoorOriginGroupData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + FrontDoorOriginGroupData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/FrontDoorOriginResource.Serialization.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/FrontDoorOriginResource.Serialization.cs new file mode 100644 index 000000000000..2f4503c91d30 --- /dev/null +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/FrontDoorOriginResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Cdn +{ + public partial class FrontDoorOriginResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + FrontDoorOriginData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + FrontDoorOriginData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/FrontDoorRouteResource.Serialization.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/FrontDoorRouteResource.Serialization.cs new file mode 100644 index 000000000000..72e0ad9bbf58 --- /dev/null +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/FrontDoorRouteResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Cdn +{ + public partial class FrontDoorRouteResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + FrontDoorRouteData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + FrontDoorRouteData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/FrontDoorRuleResource.Serialization.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/FrontDoorRuleResource.Serialization.cs new file mode 100644 index 000000000000..4359d137ad48 --- /dev/null +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/FrontDoorRuleResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Cdn +{ + public partial class FrontDoorRuleResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + FrontDoorRuleData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + FrontDoorRuleData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/FrontDoorRuleSetResource.Serialization.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/FrontDoorRuleSetResource.Serialization.cs new file mode 100644 index 000000000000..2e00e2f01312 --- /dev/null +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/FrontDoorRuleSetResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Cdn +{ + public partial class FrontDoorRuleSetResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + FrontDoorRuleSetData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + FrontDoorRuleSetData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/FrontDoorSecretResource.Serialization.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/FrontDoorSecretResource.Serialization.cs new file mode 100644 index 000000000000..7a1fd26f2260 --- /dev/null +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/FrontDoorSecretResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Cdn +{ + public partial class FrontDoorSecretResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + FrontDoorSecretData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + FrontDoorSecretData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/FrontDoorSecurityPolicyResource.Serialization.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/FrontDoorSecurityPolicyResource.Serialization.cs new file mode 100644 index 000000000000..c2c212bf9e77 --- /dev/null +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/FrontDoorSecurityPolicyResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Cdn +{ + public partial class FrontDoorSecurityPolicyResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + FrontDoorSecurityPolicyData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + FrontDoorSecurityPolicyData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/ProfileResource.Serialization.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/ProfileResource.Serialization.cs new file mode 100644 index 000000000000..3d1bbfcd4f07 --- /dev/null +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/ProfileResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Cdn +{ + public partial class ProfileResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ProfileData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ProfileData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/RestOperations/CdnCustomDomainsRestOperations.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/RestOperations/CdnCustomDomainsRestOperations.cs index 52aec5133057..7be3dff47dba 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/RestOperations/CdnCustomDomainsRestOperations.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/RestOperations/CdnCustomDomainsRestOperations.cs @@ -37,6 +37,23 @@ public CdnCustomDomainsRestOperations(HttpPipeline pipeline, string applicationI _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByEndpointRequestUri(string subscriptionId, string resourceGroupName, string profileName, string endpointName) + { + 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.Cdn/profiles/", false); + uri.AppendPath(profileName, true); + uri.AppendPath("/endpoints/", false); + uri.AppendPath(endpointName, true); + uri.AppendPath("/customDomains", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByEndpointRequest(string subscriptionId, string resourceGroupName, string profileName, string endpointName) { var message = _pipeline.CreateMessage(); @@ -122,6 +139,24 @@ public Response ListByEndpoint(string subscriptionId, st } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string profileName, string endpointName, string customDomainName) + { + 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.Cdn/profiles/", false); + uri.AppendPath(profileName, true); + uri.AppendPath("/endpoints/", false); + uri.AppendPath(endpointName, true); + uri.AppendPath("/customDomains/", false); + uri.AppendPath(customDomainName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string profileName, string endpointName, string customDomainName) { var message = _pipeline.CreateMessage(); @@ -216,6 +251,24 @@ public Response Get(string subscriptionId, string resourceG } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string profileName, string endpointName, string customDomainName, CdnCustomDomainCreateOrUpdateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Cdn/profiles/", false); + uri.AppendPath(profileName, true); + uri.AppendPath("/endpoints/", false); + uri.AppendPath(endpointName, true); + uri.AppendPath("/customDomains/", false); + uri.AppendPath(customDomainName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string profileName, string endpointName, string customDomainName, CdnCustomDomainCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); @@ -308,6 +361,24 @@ public Response Create(string subscriptionId, string resourceGroupName, string p } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string profileName, string endpointName, string customDomainName) + { + 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.Cdn/profiles/", false); + uri.AppendPath(profileName, true); + uri.AppendPath("/endpoints/", false); + uri.AppendPath(endpointName, true); + uri.AppendPath("/customDomains/", false); + uri.AppendPath(customDomainName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string profileName, string endpointName, string customDomainName) { var message = _pipeline.CreateMessage(); @@ -392,6 +463,25 @@ public Response Delete(string subscriptionId, string resourceGroupName, string p } } + internal RequestUriBuilder CreateDisableCustomHttpsRequestUri(string subscriptionId, string resourceGroupName, string profileName, string endpointName, string customDomainName) + { + 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.Cdn/profiles/", false); + uri.AppendPath(profileName, true); + uri.AppendPath("/endpoints/", false); + uri.AppendPath(endpointName, true); + uri.AppendPath("/customDomains/", false); + uri.AppendPath(customDomainName, true); + uri.AppendPath("/disableCustomHttps", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDisableCustomHttpsRequest(string subscriptionId, string resourceGroupName, string profileName, string endpointName, string customDomainName) { var message = _pipeline.CreateMessage(); @@ -475,6 +565,25 @@ public Response DisableCustomHttps(string subscriptionId, string resourceGroupNa } } + internal RequestUriBuilder CreateEnableCustomHttpsRequestUri(string subscriptionId, string resourceGroupName, string profileName, string endpointName, string customDomainName, CustomDomainHttpsContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Cdn/profiles/", false); + uri.AppendPath(profileName, true); + uri.AppendPath("/endpoints/", false); + uri.AppendPath(endpointName, true); + uri.AppendPath("/customDomains/", false); + uri.AppendPath(customDomainName, true); + uri.AppendPath("/enableCustomHttps", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateEnableCustomHttpsRequest(string subscriptionId, string resourceGroupName, string profileName, string endpointName, string customDomainName, CustomDomainHttpsContent content) { var message = _pipeline.CreateMessage(); @@ -567,6 +676,14 @@ public Response EnableCustomHttps(string subscriptionId, string resourceGroupNam } } + internal RequestUriBuilder CreateListByEndpointNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string profileName, string endpointName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByEndpointNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string profileName, string endpointName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/RestOperations/CdnEndpointsRestOperations.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/RestOperations/CdnEndpointsRestOperations.cs index a2e81e63eccf..66467bbacde1 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/RestOperations/CdnEndpointsRestOperations.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/RestOperations/CdnEndpointsRestOperations.cs @@ -37,6 +37,21 @@ public CdnEndpointsRestOperations(HttpPipeline pipeline, string applicationId, U _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByProfileRequestUri(string subscriptionId, string resourceGroupName, string profileName) + { + 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.Cdn/profiles/", false); + uri.AppendPath(profileName, true); + uri.AppendPath("/endpoints", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByProfileRequest(string subscriptionId, string resourceGroupName, string profileName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByProfile(string subscriptionId, string } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string profileName, string endpointName) + { + 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.Cdn/profiles/", false); + uri.AppendPath(profileName, true); + uri.AppendPath("/endpoints/", false); + uri.AppendPath(endpointName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string profileName, string endpointName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscriptionId, string resourceGroup } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string profileName, string endpointName, CdnEndpointData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Cdn/profiles/", false); + uri.AppendPath(profileName, true); + uri.AppendPath("/endpoints/", false); + uri.AppendPath(endpointName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string profileName, string endpointName, CdnEndpointData data) { var message = _pipeline.CreateMessage(); @@ -290,6 +337,22 @@ public Response Create(string subscriptionId, string resourceGroupName, string p } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string profileName, string endpointName, CdnEndpointPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Cdn/profiles/", false); + uri.AppendPath(profileName, true); + uri.AppendPath("/endpoints/", false); + uri.AppendPath(endpointName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string profileName, string endpointName, CdnEndpointPatch patch) { var message = _pipeline.CreateMessage(); @@ -374,6 +437,22 @@ public Response Update(string subscriptionId, string resourceGroupName, string p } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string profileName, string endpointName) + { + 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.Cdn/profiles/", false); + uri.AppendPath(profileName, true); + uri.AppendPath("/endpoints/", false); + uri.AppendPath(endpointName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string profileName, string endpointName) { var message = _pipeline.CreateMessage(); @@ -452,6 +531,23 @@ public Response Delete(string subscriptionId, string resourceGroupName, string p } } + internal RequestUriBuilder CreateStartRequestUri(string subscriptionId, string resourceGroupName, string profileName, string endpointName) + { + 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.Cdn/profiles/", false); + uri.AppendPath(profileName, true); + uri.AppendPath("/endpoints/", false); + uri.AppendPath(endpointName, true); + uri.AppendPath("/start", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStartRequest(string subscriptionId, string resourceGroupName, string profileName, string endpointName) { var message = _pipeline.CreateMessage(); @@ -529,6 +625,23 @@ public Response Start(string subscriptionId, string resourceGroupName, string pr } } + internal RequestUriBuilder CreateStopRequestUri(string subscriptionId, string resourceGroupName, string profileName, string endpointName) + { + 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.Cdn/profiles/", false); + uri.AppendPath(profileName, true); + uri.AppendPath("/endpoints/", false); + uri.AppendPath(endpointName, true); + uri.AppendPath("/stop", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStopRequest(string subscriptionId, string resourceGroupName, string profileName, string endpointName) { var message = _pipeline.CreateMessage(); @@ -606,6 +719,23 @@ public Response Stop(string subscriptionId, string resourceGroupName, string pro } } + internal RequestUriBuilder CreatePurgeContentRequestUri(string subscriptionId, string resourceGroupName, string profileName, string endpointName, PurgeContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Cdn/profiles/", false); + uri.AppendPath(profileName, true); + uri.AppendPath("/endpoints/", false); + uri.AppendPath(endpointName, true); + uri.AppendPath("/purge", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreatePurgeContentRequest(string subscriptionId, string resourceGroupName, string profileName, string endpointName, PurgeContent content) { var message = _pipeline.CreateMessage(); @@ -691,6 +821,23 @@ public Response PurgeContent(string subscriptionId, string resourceGroupName, st } } + internal RequestUriBuilder CreateLoadContentRequestUri(string subscriptionId, string resourceGroupName, string profileName, string endpointName, LoadContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Cdn/profiles/", false); + uri.AppendPath(profileName, true); + uri.AppendPath("/endpoints/", false); + uri.AppendPath(endpointName, true); + uri.AppendPath("/load", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateLoadContentRequest(string subscriptionId, string resourceGroupName, string profileName, string endpointName, LoadContent content) { var message = _pipeline.CreateMessage(); @@ -776,6 +923,23 @@ public Response LoadContent(string subscriptionId, string resourceGroupName, str } } + internal RequestUriBuilder CreateValidateCustomDomainRequestUri(string subscriptionId, string resourceGroupName, string profileName, string endpointName, ValidateCustomDomainContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Cdn/profiles/", false); + uri.AppendPath(profileName, true); + uri.AppendPath("/endpoints/", false); + uri.AppendPath(endpointName, true); + uri.AppendPath("/validateCustomDomain", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateValidateCustomDomainRequest(string subscriptionId, string resourceGroupName, string profileName, string endpointName, ValidateCustomDomainContent content) { var message = _pipeline.CreateMessage(); @@ -869,6 +1033,23 @@ public Response ValidateCustomDomain(string subscrip } } + internal RequestUriBuilder CreateListResourceUsageRequestUri(string subscriptionId, string resourceGroupName, string profileName, string endpointName) + { + 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.Cdn/profiles/", false); + uri.AppendPath(profileName, true); + uri.AppendPath("/endpoints/", false); + uri.AppendPath(endpointName, true); + uri.AppendPath("/checkResourceUsage", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListResourceUsageRequest(string subscriptionId, string resourceGroupName, string profileName, string endpointName) { var message = _pipeline.CreateMessage(); @@ -954,6 +1135,14 @@ public Response ListResourceUsage(string subscriptionId } } + internal RequestUriBuilder CreateListByProfileNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string profileName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByProfileNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string profileName) { var message = _pipeline.CreateMessage(); @@ -1030,6 +1219,14 @@ public Response ListByProfileNextPage(string nextLink, strin } } + internal RequestUriBuilder CreateListResourceUsageNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string profileName, string endpointName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListResourceUsageNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string profileName, string endpointName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/RestOperations/CdnManagementRestOperations.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/RestOperations/CdnManagementRestOperations.cs index dc5f239a4d52..1cbc04450548 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/RestOperations/CdnManagementRestOperations.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/RestOperations/CdnManagementRestOperations.cs @@ -37,6 +37,19 @@ public CdnManagementRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCheckEndpointNameAvailabilityRequestUri(string subscriptionId, string resourceGroupName, EndpointNameAvailabilityContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Cdn/checkEndpointNameAvailability", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCheckEndpointNameAvailabilityRequest(string subscriptionId, string resourceGroupName, EndpointNameAvailabilityContent content) { var message = _pipeline.CreateMessage(); @@ -118,6 +131,15 @@ public Response CheckEndpointNameAvailability(st } } + internal RequestUriBuilder CreateCheckNameAvailabilityRequestUri(CdnNameAvailabilityContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Cdn/checkNameAvailability", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCheckNameAvailabilityRequest(CdnNameAvailabilityContent content) { var message = _pipeline.CreateMessage(); @@ -185,6 +207,17 @@ public Response CheckNameAvailability(CdnNameAvailabi } } + internal RequestUriBuilder CreateCheckNameAvailabilityWithSubscriptionRequestUri(string subscriptionId, CdnNameAvailabilityContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Cdn/checkNameAvailability", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCheckNameAvailabilityWithSubscriptionRequest(string subscriptionId, CdnNameAvailabilityContent content) { var message = _pipeline.CreateMessage(); @@ -260,6 +293,17 @@ public Response CheckNameAvailabilityWithSubscription } } + internal RequestUriBuilder CreateValidateProbeRequestUri(string subscriptionId, ValidateProbeContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Cdn/validateProbe", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateValidateProbeRequest(string subscriptionId, ValidateProbeContent content) { var message = _pipeline.CreateMessage(); diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/RestOperations/CdnOriginGroupsRestOperations.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/RestOperations/CdnOriginGroupsRestOperations.cs index d4b57e83284b..81f06294cecc 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/RestOperations/CdnOriginGroupsRestOperations.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/RestOperations/CdnOriginGroupsRestOperations.cs @@ -37,6 +37,23 @@ public CdnOriginGroupsRestOperations(HttpPipeline pipeline, string applicationId _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByEndpointRequestUri(string subscriptionId, string resourceGroupName, string profileName, string endpointName) + { + 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.Cdn/profiles/", false); + uri.AppendPath(profileName, true); + uri.AppendPath("/endpoints/", false); + uri.AppendPath(endpointName, true); + uri.AppendPath("/originGroups", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByEndpointRequest(string subscriptionId, string resourceGroupName, string profileName, string endpointName) { var message = _pipeline.CreateMessage(); @@ -122,6 +139,24 @@ public Response ListByEndpoint(string subscriptionId, str } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string profileName, string endpointName, string originGroupName) + { + 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.Cdn/profiles/", false); + uri.AppendPath(profileName, true); + uri.AppendPath("/endpoints/", false); + uri.AppendPath(endpointName, true); + uri.AppendPath("/originGroups/", false); + uri.AppendPath(originGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string profileName, string endpointName, string originGroupName) { var message = _pipeline.CreateMessage(); @@ -216,6 +251,24 @@ public Response Get(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string profileName, string endpointName, string originGroupName, CdnOriginGroupData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Cdn/profiles/", false); + uri.AppendPath(profileName, true); + uri.AppendPath("/endpoints/", false); + uri.AppendPath(endpointName, true); + uri.AppendPath("/originGroups/", false); + uri.AppendPath(originGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string profileName, string endpointName, string originGroupName, CdnOriginGroupData data) { var message = _pipeline.CreateMessage(); @@ -308,6 +361,24 @@ public Response Create(string subscriptionId, string resourceGroupName, string p } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string profileName, string endpointName, string originGroupName, CdnOriginGroupPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Cdn/profiles/", false); + uri.AppendPath(profileName, true); + uri.AppendPath("/endpoints/", false); + uri.AppendPath(endpointName, true); + uri.AppendPath("/originGroups/", false); + uri.AppendPath(originGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string profileName, string endpointName, string originGroupName, CdnOriginGroupPatch patch) { var message = _pipeline.CreateMessage(); @@ -398,6 +469,24 @@ public Response Update(string subscriptionId, string resourceGroupName, string p } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string profileName, string endpointName, string originGroupName) + { + 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.Cdn/profiles/", false); + uri.AppendPath(profileName, true); + uri.AppendPath("/endpoints/", false); + uri.AppendPath(endpointName, true); + uri.AppendPath("/originGroups/", false); + uri.AppendPath(originGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string profileName, string endpointName, string originGroupName) { var message = _pipeline.CreateMessage(); @@ -482,6 +571,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string p } } + internal RequestUriBuilder CreateListByEndpointNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string profileName, string endpointName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByEndpointNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string profileName, string endpointName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/RestOperations/CdnOriginsRestOperations.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/RestOperations/CdnOriginsRestOperations.cs index f403e355d862..80492438d302 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/RestOperations/CdnOriginsRestOperations.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/RestOperations/CdnOriginsRestOperations.cs @@ -37,6 +37,23 @@ public CdnOriginsRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByEndpointRequestUri(string subscriptionId, string resourceGroupName, string profileName, string endpointName) + { + 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.Cdn/profiles/", false); + uri.AppendPath(profileName, true); + uri.AppendPath("/endpoints/", false); + uri.AppendPath(endpointName, true); + uri.AppendPath("/origins", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByEndpointRequest(string subscriptionId, string resourceGroupName, string profileName, string endpointName) { var message = _pipeline.CreateMessage(); @@ -122,6 +139,24 @@ public Response ListByEndpoint(string subscriptionId, string r } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string profileName, string endpointName, string originName) + { + 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.Cdn/profiles/", false); + uri.AppendPath(profileName, true); + uri.AppendPath("/endpoints/", false); + uri.AppendPath(endpointName, true); + uri.AppendPath("/origins/", false); + uri.AppendPath(originName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string profileName, string endpointName, string originName) { var message = _pipeline.CreateMessage(); @@ -216,6 +251,24 @@ public Response Get(string subscriptionId, string resourceGroupNa } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string profileName, string endpointName, string originName, CdnOriginData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Cdn/profiles/", false); + uri.AppendPath(profileName, true); + uri.AppendPath("/endpoints/", false); + uri.AppendPath(endpointName, true); + uri.AppendPath("/origins/", false); + uri.AppendPath(originName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string profileName, string endpointName, string originName, CdnOriginData data) { var message = _pipeline.CreateMessage(); @@ -308,6 +361,24 @@ public Response Create(string subscriptionId, string resourceGroupName, string p } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string profileName, string endpointName, string originName, CdnOriginPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Cdn/profiles/", false); + uri.AppendPath(profileName, true); + uri.AppendPath("/endpoints/", false); + uri.AppendPath(endpointName, true); + uri.AppendPath("/origins/", false); + uri.AppendPath(originName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string profileName, string endpointName, string originName, CdnOriginPatch patch) { var message = _pipeline.CreateMessage(); @@ -398,6 +469,24 @@ public Response Update(string subscriptionId, string resourceGroupName, string p } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string profileName, string endpointName, string originName) + { + 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.Cdn/profiles/", false); + uri.AppendPath(profileName, true); + uri.AppendPath("/endpoints/", false); + uri.AppendPath(endpointName, true); + uri.AppendPath("/origins/", false); + uri.AppendPath(originName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string profileName, string endpointName, string originName) { var message = _pipeline.CreateMessage(); @@ -482,6 +571,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string p } } + internal RequestUriBuilder CreateListByEndpointNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string profileName, string endpointName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByEndpointNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string profileName, string endpointName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/RestOperations/EdgeNodesRestOperations.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/RestOperations/EdgeNodesRestOperations.cs index 6609c9fbf1df..c7f7ae7c9646 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/RestOperations/EdgeNodesRestOperations.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/RestOperations/EdgeNodesRestOperations.cs @@ -37,6 +37,15 @@ public EdgeNodesRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri() + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Cdn/edgenodes", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest() { var message = _pipeline.CreateMessage(); @@ -92,6 +101,14 @@ public Response List(CancellationToken cancellationToken = defau } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink) { var message = _pipeline.CreateMessage(); diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/RestOperations/FrontDoorCustomDomainsRestOperations.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/RestOperations/FrontDoorCustomDomainsRestOperations.cs index 878bcc896906..f91195157a1f 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/RestOperations/FrontDoorCustomDomainsRestOperations.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/RestOperations/FrontDoorCustomDomainsRestOperations.cs @@ -37,6 +37,21 @@ public FrontDoorCustomDomainsRestOperations(HttpPipeline pipeline, string applic _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByProfileRequestUri(string subscriptionId, string resourceGroupName, string profileName) + { + 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.Cdn/profiles/", false); + uri.AppendPath(profileName, true); + uri.AppendPath("/customDomains", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByProfileRequest(string subscriptionId, string resourceGroupName, string profileName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByProfile(string subscripti } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string profileName, string customDomainName) + { + 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.Cdn/profiles/", false); + uri.AppendPath(profileName, true); + uri.AppendPath("/customDomains/", false); + uri.AppendPath(customDomainName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string profileName, string customDomainName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscriptionId, string res } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string profileName, string customDomainName, FrontDoorCustomDomainData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Cdn/profiles/", false); + uri.AppendPath(profileName, true); + uri.AppendPath("/customDomains/", false); + uri.AppendPath(customDomainName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string profileName, string customDomainName, FrontDoorCustomDomainData data) { var message = _pipeline.CreateMessage(); @@ -290,6 +337,22 @@ public Response Create(string subscriptionId, string resourceGroupName, string p } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string profileName, string customDomainName, FrontDoorCustomDomainPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Cdn/profiles/", false); + uri.AppendPath(profileName, true); + uri.AppendPath("/customDomains/", false); + uri.AppendPath(customDomainName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string profileName, string customDomainName, FrontDoorCustomDomainPatch patch) { var message = _pipeline.CreateMessage(); @@ -374,6 +437,22 @@ public Response Update(string subscriptionId, string resourceGroupName, string p } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string profileName, string customDomainName) + { + 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.Cdn/profiles/", false); + uri.AppendPath(profileName, true); + uri.AppendPath("/customDomains/", false); + uri.AppendPath(customDomainName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string profileName, string customDomainName) { var message = _pipeline.CreateMessage(); @@ -452,6 +531,23 @@ public Response Delete(string subscriptionId, string resourceGroupName, string p } } + internal RequestUriBuilder CreateRefreshValidationTokenRequestUri(string subscriptionId, string resourceGroupName, string profileName, string customDomainName) + { + 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.Cdn/profiles/", false); + uri.AppendPath(profileName, true); + uri.AppendPath("/customDomains/", false); + uri.AppendPath(customDomainName, true); + uri.AppendPath("/refreshValidationToken", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRefreshValidationTokenRequest(string subscriptionId, string resourceGroupName, string profileName, string customDomainName) { var message = _pipeline.CreateMessage(); @@ -529,6 +625,14 @@ public Response RefreshValidationToken(string subscriptionId, string resourceGro } } + internal RequestUriBuilder CreateListByProfileNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string profileName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByProfileNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string profileName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/RestOperations/FrontDoorEndpointsRestOperations.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/RestOperations/FrontDoorEndpointsRestOperations.cs index 2383b034aa32..5249e8e3d9b9 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/RestOperations/FrontDoorEndpointsRestOperations.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/RestOperations/FrontDoorEndpointsRestOperations.cs @@ -37,6 +37,21 @@ public FrontDoorEndpointsRestOperations(HttpPipeline pipeline, string applicatio _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByProfileRequestUri(string subscriptionId, string resourceGroupName, string profileName) + { + 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.Cdn/profiles/", false); + uri.AppendPath(profileName, true); + uri.AppendPath("/afdEndpoints", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByProfileRequest(string subscriptionId, string resourceGroupName, string profileName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByProfile(string subscriptionId } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string profileName, string endpointName) + { + 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.Cdn/profiles/", false); + uri.AppendPath(profileName, true); + uri.AppendPath("/afdEndpoints/", false); + uri.AppendPath(endpointName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string profileName, string endpointName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscriptionId, string resourc } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string profileName, string endpointName, FrontDoorEndpointData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Cdn/profiles/", false); + uri.AppendPath(profileName, true); + uri.AppendPath("/afdEndpoints/", false); + uri.AppendPath(endpointName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string profileName, string endpointName, FrontDoorEndpointData data) { var message = _pipeline.CreateMessage(); @@ -290,6 +337,22 @@ public Response Create(string subscriptionId, string resourceGroupName, string p } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string profileName, string endpointName, FrontDoorEndpointPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Cdn/profiles/", false); + uri.AppendPath(profileName, true); + uri.AppendPath("/afdEndpoints/", false); + uri.AppendPath(endpointName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string profileName, string endpointName, FrontDoorEndpointPatch patch) { var message = _pipeline.CreateMessage(); @@ -374,6 +437,22 @@ public Response Update(string subscriptionId, string resourceGroupName, string p } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string profileName, string endpointName) + { + 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.Cdn/profiles/", false); + uri.AppendPath(profileName, true); + uri.AppendPath("/afdEndpoints/", false); + uri.AppendPath(endpointName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string profileName, string endpointName) { var message = _pipeline.CreateMessage(); @@ -452,6 +531,23 @@ public Response Delete(string subscriptionId, string resourceGroupName, string p } } + internal RequestUriBuilder CreatePurgeContentRequestUri(string subscriptionId, string resourceGroupName, string profileName, string endpointName, FrontDoorPurgeContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Cdn/profiles/", false); + uri.AppendPath(profileName, true); + uri.AppendPath("/afdEndpoints/", false); + uri.AppendPath(endpointName, true); + uri.AppendPath("/purge", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreatePurgeContentRequest(string subscriptionId, string resourceGroupName, string profileName, string endpointName, FrontDoorPurgeContent content) { var message = _pipeline.CreateMessage(); @@ -537,6 +633,23 @@ public Response PurgeContent(string subscriptionId, string resourceGroupName, st } } + internal RequestUriBuilder CreateListResourceUsageRequestUri(string subscriptionId, string resourceGroupName, string profileName, string endpointName) + { + 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.Cdn/profiles/", false); + uri.AppendPath(profileName, true); + uri.AppendPath("/afdEndpoints/", false); + uri.AppendPath(endpointName, true); + uri.AppendPath("/usages", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListResourceUsageRequest(string subscriptionId, string resourceGroupName, string profileName, string endpointName) { var message = _pipeline.CreateMessage(); @@ -622,6 +735,23 @@ public Response ListResourceUsage(string subscriptionId, strin } } + internal RequestUriBuilder CreateValidateCustomDomainRequestUri(string subscriptionId, string resourceGroupName, string profileName, string endpointName, ValidateCustomDomainContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Cdn/profiles/", false); + uri.AppendPath(profileName, true); + uri.AppendPath("/afdEndpoints/", false); + uri.AppendPath(endpointName, true); + uri.AppendPath("/validateCustomDomain", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateValidateCustomDomainRequest(string subscriptionId, string resourceGroupName, string profileName, string endpointName, ValidateCustomDomainContent content) { var message = _pipeline.CreateMessage(); @@ -715,6 +845,14 @@ public Response ValidateCustomDomain(string subscrip } } + internal RequestUriBuilder CreateListByProfileNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string profileName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByProfileNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string profileName) { var message = _pipeline.CreateMessage(); @@ -791,6 +929,14 @@ public Response ListByProfileNextPage(string nextLi } } + internal RequestUriBuilder CreateListResourceUsageNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string profileName, string endpointName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListResourceUsageNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string profileName, string endpointName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/RestOperations/FrontDoorOriginGroupsRestOperations.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/RestOperations/FrontDoorOriginGroupsRestOperations.cs index d1ba5c828d11..3ea5afe48ffd 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/RestOperations/FrontDoorOriginGroupsRestOperations.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/RestOperations/FrontDoorOriginGroupsRestOperations.cs @@ -37,6 +37,21 @@ public FrontDoorOriginGroupsRestOperations(HttpPipeline pipeline, string applica _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByProfileRequestUri(string subscriptionId, string resourceGroupName, string profileName) + { + 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.Cdn/profiles/", false); + uri.AppendPath(profileName, true); + uri.AppendPath("/originGroups", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByProfileRequest(string subscriptionId, string resourceGroupName, string profileName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByProfile(string subscriptio } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string profileName, string originGroupName) + { + 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.Cdn/profiles/", false); + uri.AppendPath(profileName, true); + uri.AppendPath("/originGroups/", false); + uri.AppendPath(originGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string profileName, string originGroupName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscriptionId, string reso } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string profileName, string originGroupName, FrontDoorOriginGroupData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Cdn/profiles/", false); + uri.AppendPath(profileName, true); + uri.AppendPath("/originGroups/", false); + uri.AppendPath(originGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string profileName, string originGroupName, FrontDoorOriginGroupData data) { var message = _pipeline.CreateMessage(); @@ -290,6 +337,22 @@ public Response Create(string subscriptionId, string resourceGroupName, string p } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string profileName, string originGroupName, FrontDoorOriginGroupPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Cdn/profiles/", false); + uri.AppendPath(profileName, true); + uri.AppendPath("/originGroups/", false); + uri.AppendPath(originGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string profileName, string originGroupName, FrontDoorOriginGroupPatch patch) { var message = _pipeline.CreateMessage(); @@ -374,6 +437,22 @@ public Response Update(string subscriptionId, string resourceGroupName, string p } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string profileName, string originGroupName) + { + 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.Cdn/profiles/", false); + uri.AppendPath(profileName, true); + uri.AppendPath("/originGroups/", false); + uri.AppendPath(originGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string profileName, string originGroupName) { var message = _pipeline.CreateMessage(); @@ -452,6 +531,23 @@ public Response Delete(string subscriptionId, string resourceGroupName, string p } } + internal RequestUriBuilder CreateListResourceUsageRequestUri(string subscriptionId, string resourceGroupName, string profileName, string originGroupName) + { + 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.Cdn/profiles/", false); + uri.AppendPath(profileName, true); + uri.AppendPath("/originGroups/", false); + uri.AppendPath(originGroupName, true); + uri.AppendPath("/usages", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListResourceUsageRequest(string subscriptionId, string resourceGroupName, string profileName, string originGroupName) { var message = _pipeline.CreateMessage(); @@ -537,6 +633,14 @@ public Response ListResourceUsage(string subscriptionId, strin } } + internal RequestUriBuilder CreateListByProfileNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string profileName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByProfileNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string profileName) { var message = _pipeline.CreateMessage(); @@ -613,6 +717,14 @@ public Response ListByProfileNextPage(string nex } } + internal RequestUriBuilder CreateListResourceUsageNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string profileName, string originGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListResourceUsageNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string profileName, string originGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/RestOperations/FrontDoorOriginsRestOperations.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/RestOperations/FrontDoorOriginsRestOperations.cs index 5163902d5d34..130f3b683244 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/RestOperations/FrontDoorOriginsRestOperations.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/RestOperations/FrontDoorOriginsRestOperations.cs @@ -37,6 +37,23 @@ public FrontDoorOriginsRestOperations(HttpPipeline pipeline, string applicationI _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByOriginGroupRequestUri(string subscriptionId, string resourceGroupName, string profileName, string originGroupName) + { + 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.Cdn/profiles/", false); + uri.AppendPath(profileName, true); + uri.AppendPath("/originGroups/", false); + uri.AppendPath(originGroupName, true); + uri.AppendPath("/origins", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByOriginGroupRequest(string subscriptionId, string resourceGroupName, string profileName, string originGroupName) { var message = _pipeline.CreateMessage(); @@ -122,6 +139,24 @@ public Response ListByOriginGroup(string subscription } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string profileName, string originGroupName, string originName) + { + 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.Cdn/profiles/", false); + uri.AppendPath(profileName, true); + uri.AppendPath("/originGroups/", false); + uri.AppendPath(originGroupName, true); + uri.AppendPath("/origins/", false); + uri.AppendPath(originName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string profileName, string originGroupName, string originName) { var message = _pipeline.CreateMessage(); @@ -216,6 +251,24 @@ public Response Get(string subscriptionId, string resourceG } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string profileName, string originGroupName, string originName, FrontDoorOriginData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Cdn/profiles/", false); + uri.AppendPath(profileName, true); + uri.AppendPath("/originGroups/", false); + uri.AppendPath(originGroupName, true); + uri.AppendPath("/origins/", false); + uri.AppendPath(originName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string profileName, string originGroupName, string originName, FrontDoorOriginData data) { var message = _pipeline.CreateMessage(); @@ -308,6 +361,24 @@ public Response Create(string subscriptionId, string resourceGroupName, string p } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string profileName, string originGroupName, string originName, FrontDoorOriginPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Cdn/profiles/", false); + uri.AppendPath(profileName, true); + uri.AppendPath("/originGroups/", false); + uri.AppendPath(originGroupName, true); + uri.AppendPath("/origins/", false); + uri.AppendPath(originName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string profileName, string originGroupName, string originName, FrontDoorOriginPatch patch) { var message = _pipeline.CreateMessage(); @@ -398,6 +469,24 @@ public Response Update(string subscriptionId, string resourceGroupName, string p } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string profileName, string originGroupName, string originName) + { + 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.Cdn/profiles/", false); + uri.AppendPath(profileName, true); + uri.AppendPath("/originGroups/", false); + uri.AppendPath(originGroupName, true); + uri.AppendPath("/origins/", false); + uri.AppendPath(originName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string profileName, string originGroupName, string originName) { var message = _pipeline.CreateMessage(); @@ -482,6 +571,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string p } } + internal RequestUriBuilder CreateListByOriginGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string profileName, string originGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByOriginGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string profileName, string originGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/RestOperations/FrontDoorProfilesRestOperations.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/RestOperations/FrontDoorProfilesRestOperations.cs index ed9b79a31042..f115992b734d 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/RestOperations/FrontDoorProfilesRestOperations.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/RestOperations/FrontDoorProfilesRestOperations.cs @@ -37,6 +37,21 @@ public FrontDoorProfilesRestOperations(HttpPipeline pipeline, string application _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListResourceUsageRequestUri(string subscriptionId, string resourceGroupName, string profileName) + { + 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.Cdn/profiles/", false); + uri.AppendPath(profileName, true); + uri.AppendPath("/usages", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListResourceUsageRequest(string subscriptionId, string resourceGroupName, string profileName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,21 @@ public Response ListResourceUsage(string subscriptionId, strin } } + internal RequestUriBuilder CreateCheckHostNameAvailabilityRequestUri(string subscriptionId, string resourceGroupName, string profileName, HostNameAvailabilityContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Cdn/profiles/", false); + uri.AppendPath(profileName, true); + uri.AppendPath("/checkHostNameAvailability", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCheckHostNameAvailabilityRequest(string subscriptionId, string resourceGroupName, string profileName, HostNameAvailabilityContent content) { var message = _pipeline.CreateMessage(); @@ -203,6 +233,14 @@ public Response CheckHostNameAvailability(string subs } } + internal RequestUriBuilder CreateListResourceUsageNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string profileName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListResourceUsageNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string profileName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/RestOperations/FrontDoorRoutesRestOperations.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/RestOperations/FrontDoorRoutesRestOperations.cs index e58a00fc1cf0..52db71e71fd8 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/RestOperations/FrontDoorRoutesRestOperations.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/RestOperations/FrontDoorRoutesRestOperations.cs @@ -37,6 +37,23 @@ public FrontDoorRoutesRestOperations(HttpPipeline pipeline, string applicationId _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByEndpointRequestUri(string subscriptionId, string resourceGroupName, string profileName, string endpointName) + { + 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.Cdn/profiles/", false); + uri.AppendPath(profileName, true); + uri.AppendPath("/afdEndpoints/", false); + uri.AppendPath(endpointName, true); + uri.AppendPath("/routes", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByEndpointRequest(string subscriptionId, string resourceGroupName, string profileName, string endpointName) { var message = _pipeline.CreateMessage(); @@ -122,6 +139,24 @@ public Response ListByEndpoint(string subscriptionId, string re } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string profileName, string endpointName, string routeName) + { + 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.Cdn/profiles/", false); + uri.AppendPath(profileName, true); + uri.AppendPath("/afdEndpoints/", false); + uri.AppendPath(endpointName, true); + uri.AppendPath("/routes/", false); + uri.AppendPath(routeName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string profileName, string endpointName, string routeName) { var message = _pipeline.CreateMessage(); @@ -216,6 +251,24 @@ public Response Get(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string profileName, string endpointName, string routeName, FrontDoorRouteData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Cdn/profiles/", false); + uri.AppendPath(profileName, true); + uri.AppendPath("/afdEndpoints/", false); + uri.AppendPath(endpointName, true); + uri.AppendPath("/routes/", false); + uri.AppendPath(routeName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string profileName, string endpointName, string routeName, FrontDoorRouteData data) { var message = _pipeline.CreateMessage(); @@ -308,6 +361,24 @@ public Response Create(string subscriptionId, string resourceGroupName, string p } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string profileName, string endpointName, string routeName, FrontDoorRoutePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Cdn/profiles/", false); + uri.AppendPath(profileName, true); + uri.AppendPath("/afdEndpoints/", false); + uri.AppendPath(endpointName, true); + uri.AppendPath("/routes/", false); + uri.AppendPath(routeName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string profileName, string endpointName, string routeName, FrontDoorRoutePatch patch) { var message = _pipeline.CreateMessage(); @@ -398,6 +469,24 @@ public Response Update(string subscriptionId, string resourceGroupName, string p } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string profileName, string endpointName, string routeName) + { + 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.Cdn/profiles/", false); + uri.AppendPath(profileName, true); + uri.AppendPath("/afdEndpoints/", false); + uri.AppendPath(endpointName, true); + uri.AppendPath("/routes/", false); + uri.AppendPath(routeName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string profileName, string endpointName, string routeName) { var message = _pipeline.CreateMessage(); @@ -482,6 +571,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string p } } + internal RequestUriBuilder CreateListByEndpointNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string profileName, string endpointName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByEndpointNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string profileName, string endpointName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/RestOperations/FrontDoorRuleSetsRestOperations.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/RestOperations/FrontDoorRuleSetsRestOperations.cs index 83d13aaf4845..b0b0e166bfd3 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/RestOperations/FrontDoorRuleSetsRestOperations.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/RestOperations/FrontDoorRuleSetsRestOperations.cs @@ -37,6 +37,21 @@ public FrontDoorRuleSetsRestOperations(HttpPipeline pipeline, string application _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByProfileRequestUri(string subscriptionId, string resourceGroupName, string profileName) + { + 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.Cdn/profiles/", false); + uri.AppendPath(profileName, true); + uri.AppendPath("/ruleSets", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByProfileRequest(string subscriptionId, string resourceGroupName, string profileName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByProfile(string subscriptionId, string r } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string profileName, string ruleSetName) + { + 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.Cdn/profiles/", false); + uri.AppendPath(profileName, true); + uri.AppendPath("/ruleSets/", false); + uri.AppendPath(ruleSetName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string profileName, string ruleSetName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscriptionId, string resource } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string profileName, string ruleSetName) + { + 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.Cdn/profiles/", false); + uri.AppendPath(profileName, true); + uri.AppendPath("/ruleSets/", false); + uri.AppendPath(ruleSetName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string profileName, string ruleSetName) { var message = _pipeline.CreateMessage(); @@ -290,6 +337,22 @@ public Response Create(string subscriptionId, string resou } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string profileName, string ruleSetName) + { + 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.Cdn/profiles/", false); + uri.AppendPath(profileName, true); + uri.AppendPath("/ruleSets/", false); + uri.AppendPath(ruleSetName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string profileName, string ruleSetName) { var message = _pipeline.CreateMessage(); @@ -368,6 +431,23 @@ public Response Delete(string subscriptionId, string resourceGroupName, string p } } + internal RequestUriBuilder CreateListResourceUsageRequestUri(string subscriptionId, string resourceGroupName, string profileName, string ruleSetName) + { + 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.Cdn/profiles/", false); + uri.AppendPath(profileName, true); + uri.AppendPath("/ruleSets/", false); + uri.AppendPath(ruleSetName, true); + uri.AppendPath("/usages", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListResourceUsageRequest(string subscriptionId, string resourceGroupName, string profileName, string ruleSetName) { var message = _pipeline.CreateMessage(); @@ -453,6 +533,14 @@ public Response ListResourceUsage(string subscriptionId, strin } } + internal RequestUriBuilder CreateListByProfileNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string profileName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByProfileNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string profileName) { var message = _pipeline.CreateMessage(); @@ -529,6 +617,14 @@ public Response ListByProfileNextPage(string nextLink, string } } + internal RequestUriBuilder CreateListResourceUsageNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string profileName, string ruleSetName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListResourceUsageNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string profileName, string ruleSetName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/RestOperations/FrontDoorRulesRestOperations.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/RestOperations/FrontDoorRulesRestOperations.cs index 737871f392df..bafe5687c3d6 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/RestOperations/FrontDoorRulesRestOperations.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/RestOperations/FrontDoorRulesRestOperations.cs @@ -37,6 +37,23 @@ public FrontDoorRulesRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByRuleSetRequestUri(string subscriptionId, string resourceGroupName, string profileName, string ruleSetName) + { + 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.Cdn/profiles/", false); + uri.AppendPath(profileName, true); + uri.AppendPath("/ruleSets/", false); + uri.AppendPath(ruleSetName, true); + uri.AppendPath("/rules", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByRuleSetRequest(string subscriptionId, string resourceGroupName, string profileName, string ruleSetName) { var message = _pipeline.CreateMessage(); @@ -122,6 +139,24 @@ public Response ListByRuleSet(string subscriptionId, string reso } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string profileName, string ruleSetName, string ruleName) + { + 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.Cdn/profiles/", false); + uri.AppendPath(profileName, true); + uri.AppendPath("/ruleSets/", false); + uri.AppendPath(ruleSetName, true); + uri.AppendPath("/rules/", false); + uri.AppendPath(ruleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string profileName, string ruleSetName, string ruleName) { var message = _pipeline.CreateMessage(); @@ -216,6 +251,24 @@ public Response Get(string subscriptionId, string resourceGro } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string profileName, string ruleSetName, string ruleName, FrontDoorRuleData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Cdn/profiles/", false); + uri.AppendPath(profileName, true); + uri.AppendPath("/ruleSets/", false); + uri.AppendPath(ruleSetName, true); + uri.AppendPath("/rules/", false); + uri.AppendPath(ruleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string profileName, string ruleSetName, string ruleName, FrontDoorRuleData data) { var message = _pipeline.CreateMessage(); @@ -308,6 +361,24 @@ public Response Create(string subscriptionId, string resourceGroupName, string p } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string profileName, string ruleSetName, string ruleName, FrontDoorRulePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Cdn/profiles/", false); + uri.AppendPath(profileName, true); + uri.AppendPath("/ruleSets/", false); + uri.AppendPath(ruleSetName, true); + uri.AppendPath("/rules/", false); + uri.AppendPath(ruleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string profileName, string ruleSetName, string ruleName, FrontDoorRulePatch patch) { var message = _pipeline.CreateMessage(); @@ -398,6 +469,24 @@ public Response Update(string subscriptionId, string resourceGroupName, string p } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string profileName, string ruleSetName, string ruleName) + { + 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.Cdn/profiles/", false); + uri.AppendPath(profileName, true); + uri.AppendPath("/ruleSets/", false); + uri.AppendPath(ruleSetName, true); + uri.AppendPath("/rules/", false); + uri.AppendPath(ruleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string profileName, string ruleSetName, string ruleName) { var message = _pipeline.CreateMessage(); @@ -482,6 +571,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string p } } + internal RequestUriBuilder CreateListByRuleSetNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string profileName, string ruleSetName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByRuleSetNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string profileName, string ruleSetName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/RestOperations/FrontDoorSecretsRestOperations.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/RestOperations/FrontDoorSecretsRestOperations.cs index df30aa50f99e..3a63efacfbc4 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/RestOperations/FrontDoorSecretsRestOperations.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/RestOperations/FrontDoorSecretsRestOperations.cs @@ -37,6 +37,21 @@ public FrontDoorSecretsRestOperations(HttpPipeline pipeline, string applicationI _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByProfileRequestUri(string subscriptionId, string resourceGroupName, string profileName) + { + 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.Cdn/profiles/", false); + uri.AppendPath(profileName, true); + uri.AppendPath("/secrets", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByProfileRequest(string subscriptionId, string resourceGroupName, string profileName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByProfile(string subscriptionId, string re } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string profileName, string secretName) + { + 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.Cdn/profiles/", false); + uri.AppendPath(profileName, true); + uri.AppendPath("/secrets/", false); + uri.AppendPath(secretName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string profileName, string secretName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscriptionId, string resourceG } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string profileName, string secretName, FrontDoorSecretData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Cdn/profiles/", false); + uri.AppendPath(profileName, true); + uri.AppendPath("/secrets/", false); + uri.AppendPath(secretName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string profileName, string secretName, FrontDoorSecretData data) { var message = _pipeline.CreateMessage(); @@ -290,6 +337,22 @@ public Response Create(string subscriptionId, string resourceGroupName, string p } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string profileName, string secretName) + { + 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.Cdn/profiles/", false); + uri.AppendPath(profileName, true); + uri.AppendPath("/secrets/", false); + uri.AppendPath(secretName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string profileName, string secretName) { var message = _pipeline.CreateMessage(); @@ -368,6 +431,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string p } } + internal RequestUriBuilder CreateListByProfileNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string profileName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByProfileNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string profileName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/RestOperations/FrontDoorSecurityPoliciesRestOperations.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/RestOperations/FrontDoorSecurityPoliciesRestOperations.cs index e2f817782ea5..4152db61306c 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/RestOperations/FrontDoorSecurityPoliciesRestOperations.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/RestOperations/FrontDoorSecurityPoliciesRestOperations.cs @@ -37,6 +37,21 @@ public FrontDoorSecurityPoliciesRestOperations(HttpPipeline pipeline, string app _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByProfileRequestUri(string subscriptionId, string resourceGroupName, string profileName) + { + 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.Cdn/profiles/", false); + uri.AppendPath(profileName, true); + uri.AppendPath("/securityPolicies", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByProfileRequest(string subscriptionId, string resourceGroupName, string profileName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByProfile(string subscriptionId, s } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string profileName, string securityPolicyName) + { + 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.Cdn/profiles/", false); + uri.AppendPath(profileName, true); + uri.AppendPath("/securityPolicies/", false); + uri.AppendPath(securityPolicyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string profileName, string securityPolicyName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscriptionId, string r } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string profileName, string securityPolicyName, FrontDoorSecurityPolicyData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Cdn/profiles/", false); + uri.AppendPath(profileName, true); + uri.AppendPath("/securityPolicies/", false); + uri.AppendPath(securityPolicyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string profileName, string securityPolicyName, FrontDoorSecurityPolicyData data) { var message = _pipeline.CreateMessage(); @@ -290,6 +337,22 @@ public Response Create(string subscriptionId, string resourceGroupName, string p } } + internal RequestUriBuilder CreatePatchRequestUri(string subscriptionId, string resourceGroupName, string profileName, string securityPolicyName, FrontDoorSecurityPolicyPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Cdn/profiles/", false); + uri.AppendPath(profileName, true); + uri.AppendPath("/securityPolicies/", false); + uri.AppendPath(securityPolicyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreatePatchRequest(string subscriptionId, string resourceGroupName, string profileName, string securityPolicyName, FrontDoorSecurityPolicyPatch patch) { var message = _pipeline.CreateMessage(); @@ -374,6 +437,22 @@ public Response Patch(string subscriptionId, string resourceGroupName, string pr } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string profileName, string securityPolicyName) + { + 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.Cdn/profiles/", false); + uri.AppendPath(profileName, true); + uri.AppendPath("/securityPolicies/", false); + uri.AppendPath(securityPolicyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string profileName, string securityPolicyName) { var message = _pipeline.CreateMessage(); @@ -452,6 +531,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string p } } + internal RequestUriBuilder CreateListByProfileNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string profileName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByProfileNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string profileName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/RestOperations/LogAnalyticsRestOperations.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/RestOperations/LogAnalyticsRestOperations.cs index c93dc77d4295..fe7e3f80b21a 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/RestOperations/LogAnalyticsRestOperations.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/RestOperations/LogAnalyticsRestOperations.cs @@ -38,6 +38,66 @@ public LogAnalyticsRestOperations(HttpPipeline pipeline, string applicationId, U _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetLogAnalyticsMetricsRequestUri(string subscriptionId, string resourceGroupName, string profileName, IEnumerable metrics, DateTimeOffset dateTimeBegin, DateTimeOffset dateTimeEnd, LogMetricsGranularity granularity, IEnumerable customDomains, IEnumerable protocols, IEnumerable groupBy, IEnumerable continents, IEnumerable countryOrRegions) + { + 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.Cdn/profiles/", false); + uri.AppendPath(profileName, true); + uri.AppendPath("/getLogAnalyticsMetrics", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (metrics != null && Optional.IsCollectionDefined(metrics)) + { + foreach (var param in metrics) + { + uri.AppendQuery("metrics", param.ToString(), true); + } + } + uri.AppendQuery("dateTimeBegin", dateTimeBegin, "O", true); + uri.AppendQuery("dateTimeEnd", dateTimeEnd, "O", true); + uri.AppendQuery("granularity", granularity.ToString(), true); + if (groupBy != null && Optional.IsCollectionDefined(groupBy)) + { + foreach (var param in groupBy) + { + uri.AppendQuery("groupBy", param.ToString(), true); + } + } + if (continents != null && Optional.IsCollectionDefined(continents)) + { + foreach (var param in continents) + { + uri.AppendQuery("continents", param, true); + } + } + if (countryOrRegions != null && Optional.IsCollectionDefined(countryOrRegions)) + { + foreach (var param in countryOrRegions) + { + uri.AppendQuery("countryOrRegions", param, true); + } + } + if (customDomains != null && Optional.IsCollectionDefined(customDomains)) + { + foreach (var param in customDomains) + { + uri.AppendQuery("customDomains", param, true); + } + } + if (protocols != null && Optional.IsCollectionDefined(protocols)) + { + foreach (var param in protocols) + { + uri.AppendQuery("protocols", param, true); + } + } + return uri; + } + internal HttpMessage CreateGetLogAnalyticsMetricsRequest(string subscriptionId, string resourceGroupName, string profileName, IEnumerable metrics, DateTimeOffset dateTimeBegin, DateTimeOffset dateTimeEnd, LogMetricsGranularity granularity, IEnumerable customDomains, IEnumerable protocols, IEnumerable groupBy, IEnumerable continents, IEnumerable countryOrRegions) { var message = _pipeline.CreateMessage(); @@ -186,6 +246,45 @@ public Response GetLogAnalyticsMetrics(string subscriptionId, s } } + internal RequestUriBuilder CreateGetLogAnalyticsRankingsRequestUri(string subscriptionId, string resourceGroupName, string profileName, IEnumerable rankings, IEnumerable metrics, int maxRanking, DateTimeOffset dateTimeBegin, DateTimeOffset dateTimeEnd, IEnumerable customDomains) + { + 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.Cdn/profiles/", false); + uri.AppendPath(profileName, true); + uri.AppendPath("/getLogAnalyticsRankings", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (rankings != null && Optional.IsCollectionDefined(rankings)) + { + foreach (var param in rankings) + { + uri.AppendQuery("rankings", param.ToString(), true); + } + } + if (metrics != null && Optional.IsCollectionDefined(metrics)) + { + foreach (var param in metrics) + { + uri.AppendQuery("metrics", param.ToString(), true); + } + } + uri.AppendQuery("maxRanking", maxRanking, true); + uri.AppendQuery("dateTimeBegin", dateTimeBegin, "O", true); + uri.AppendQuery("dateTimeEnd", dateTimeEnd, "O", true); + if (customDomains != null && Optional.IsCollectionDefined(customDomains)) + { + foreach (var param in customDomains) + { + uri.AppendQuery("customDomains", param, true); + } + } + return uri; + } + internal HttpMessage CreateGetLogAnalyticsRankingsRequest(string subscriptionId, string resourceGroupName, string profileName, IEnumerable rankings, IEnumerable metrics, int maxRanking, DateTimeOffset dateTimeBegin, DateTimeOffset dateTimeEnd, IEnumerable customDomains) { var message = _pipeline.CreateMessage(); @@ -305,6 +404,21 @@ public Response GetLogAnalyticsRankings(string subscriptionId, } } + internal RequestUriBuilder CreateGetLogAnalyticsLocationsRequestUri(string subscriptionId, string resourceGroupName, string profileName) + { + 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.Cdn/profiles/", false); + uri.AppendPath(profileName, true); + uri.AppendPath("/getLogAnalyticsLocations", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetLogAnalyticsLocationsRequest(string subscriptionId, string resourceGroupName, string profileName) { var message = _pipeline.CreateMessage(); @@ -384,6 +498,21 @@ public Response GetLogAnalyticsLocations(string subscription } } + internal RequestUriBuilder CreateGetLogAnalyticsResourcesRequestUri(string subscriptionId, string resourceGroupName, string profileName) + { + 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.Cdn/profiles/", false); + uri.AppendPath(profileName, true); + uri.AppendPath("/getLogAnalyticsResources", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetLogAnalyticsResourcesRequest(string subscriptionId, string resourceGroupName, string profileName) { var message = _pipeline.CreateMessage(); @@ -463,6 +592,52 @@ public Response GetLogAnalyticsResources(string subscriptionI } } + internal RequestUriBuilder CreateGetWafLogAnalyticsMetricsRequestUri(string subscriptionId, string resourceGroupName, string profileName, IEnumerable metrics, DateTimeOffset dateTimeBegin, DateTimeOffset dateTimeEnd, WafGranularity granularity, IEnumerable actions, IEnumerable groupBy, IEnumerable ruleTypes) + { + 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.Cdn/profiles/", false); + uri.AppendPath(profileName, true); + uri.AppendPath("/getWafLogAnalyticsMetrics", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (metrics != null && Optional.IsCollectionDefined(metrics)) + { + foreach (var param in metrics) + { + uri.AppendQuery("metrics", param.ToString(), true); + } + } + uri.AppendQuery("dateTimeBegin", dateTimeBegin, "O", true); + uri.AppendQuery("dateTimeEnd", dateTimeEnd, "O", true); + uri.AppendQuery("granularity", granularity.ToString(), true); + if (actions != null && Optional.IsCollectionDefined(actions)) + { + foreach (var param in actions) + { + uri.AppendQuery("actions", param.ToString(), true); + } + } + if (groupBy != null && Optional.IsCollectionDefined(groupBy)) + { + foreach (var param in groupBy) + { + uri.AppendQuery("groupBy", param.ToString(), true); + } + } + if (ruleTypes != null && Optional.IsCollectionDefined(ruleTypes)) + { + foreach (var param in ruleTypes) + { + uri.AppendQuery("ruleTypes", param.ToString(), true); + } + } + return uri; + } + internal HttpMessage CreateGetWafLogAnalyticsMetricsRequest(string subscriptionId, string resourceGroupName, string profileName, IEnumerable metrics, DateTimeOffset dateTimeBegin, DateTimeOffset dateTimeEnd, WafGranularity granularity, IEnumerable actions, IEnumerable groupBy, IEnumerable ruleTypes) { var message = _pipeline.CreateMessage(); @@ -589,6 +764,52 @@ public Response GetWafLogAnalyticsMetrics(string subscriptio } } + internal RequestUriBuilder CreateGetWafLogAnalyticsRankingsRequestUri(string subscriptionId, string resourceGroupName, string profileName, IEnumerable metrics, DateTimeOffset dateTimeBegin, DateTimeOffset dateTimeEnd, int maxRanking, IEnumerable rankings, IEnumerable actions, IEnumerable ruleTypes) + { + 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.Cdn/profiles/", false); + uri.AppendPath(profileName, true); + uri.AppendPath("/getWafLogAnalyticsRankings", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (metrics != null && Optional.IsCollectionDefined(metrics)) + { + foreach (var param in metrics) + { + uri.AppendQuery("metrics", param.ToString(), true); + } + } + uri.AppendQuery("dateTimeBegin", dateTimeBegin, "O", true); + uri.AppendQuery("dateTimeEnd", dateTimeEnd, "O", true); + uri.AppendQuery("maxRanking", maxRanking, true); + if (rankings != null && Optional.IsCollectionDefined(rankings)) + { + foreach (var param in rankings) + { + uri.AppendQuery("rankings", param.ToString(), true); + } + } + if (actions != null && Optional.IsCollectionDefined(actions)) + { + foreach (var param in actions) + { + uri.AppendQuery("actions", param.ToString(), true); + } + } + if (ruleTypes != null && Optional.IsCollectionDefined(ruleTypes)) + { + foreach (var param in ruleTypes) + { + uri.AppendQuery("ruleTypes", param.ToString(), true); + } + } + return uri; + } + internal HttpMessage CreateGetWafLogAnalyticsRankingsRequest(string subscriptionId, string resourceGroupName, string profileName, IEnumerable metrics, DateTimeOffset dateTimeBegin, DateTimeOffset dateTimeEnd, int maxRanking, IEnumerable rankings, IEnumerable actions, IEnumerable ruleTypes) { var message = _pipeline.CreateMessage(); diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/RestOperations/ManagedRuleSetsRestOperations.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/RestOperations/ManagedRuleSetsRestOperations.cs index d9da272d5bc3..f7f7690663d0 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/RestOperations/ManagedRuleSetsRestOperations.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/RestOperations/ManagedRuleSetsRestOperations.cs @@ -37,6 +37,17 @@ public ManagedRuleSetsRestOperations(HttpPipeline pipeline, string applicationId _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Cdn/cdnWebApplicationFirewallManagedRuleSets", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,14 @@ public Response List(string subscriptionId, Cancel } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/RestOperations/PoliciesRestOperations.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/RestOperations/PoliciesRestOperations.cs index 18e1a4702e7e..94c772f35304 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/RestOperations/PoliciesRestOperations.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/RestOperations/PoliciesRestOperations.cs @@ -37,6 +37,19 @@ public PoliciesRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName) + { + 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.Cdn/cdnWebApplicationFirewallPolicies", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -110,6 +123,20 @@ public Response List(string subscriptionId, } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string policyName) + { + 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.Cdn/cdnWebApplicationFirewallPolicies/", false); + uri.AppendPath(policyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string policyName) { var message = _pipeline.CreateMessage(); @@ -192,6 +219,20 @@ public Response Get(string subscriptionId, } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string policyName, CdnWebApplicationFirewallPolicyData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Cdn/cdnWebApplicationFirewallPolicies/", false); + uri.AppendPath(policyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string policyName, CdnWebApplicationFirewallPolicyData data) { var message = _pipeline.CreateMessage(); @@ -272,6 +313,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string policyName, CdnWebApplicationFirewallPolicyPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Cdn/cdnWebApplicationFirewallPolicies/", false); + uri.AppendPath(policyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string policyName, CdnWebApplicationFirewallPolicyPatch patch) { var message = _pipeline.CreateMessage(); @@ -350,6 +405,20 @@ public Response Update(string subscriptionId, string resourceGroupName, string p } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string policyName) + { + 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.Cdn/cdnWebApplicationFirewallPolicies/", false); + uri.AppendPath(policyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string policyName) { var message = _pipeline.CreateMessage(); @@ -420,6 +489,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string p } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/RestOperations/ProfilesRestOperations.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/RestOperations/ProfilesRestOperations.cs index 9fa159c3bef4..c6f346802a44 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/RestOperations/ProfilesRestOperations.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/RestOperations/ProfilesRestOperations.cs @@ -37,6 +37,17 @@ public ProfilesRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Cdn/profiles", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,19 @@ public Response List(string subscriptionId, CancellationToken } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.Cdn/profiles", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -177,6 +201,20 @@ public Response ListByResourceGroup(string subscriptionId, st } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string profileName) + { + 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.Cdn/profiles/", false); + uri.AppendPath(profileName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string profileName) { var message = _pipeline.CreateMessage(); @@ -259,6 +297,20 @@ public Response Get(string subscriptionId, string resourceGroupName } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string profileName, ProfileData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Cdn/profiles/", false); + uri.AppendPath(profileName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string profileName, ProfileData data) { var message = _pipeline.CreateMessage(); @@ -339,6 +391,20 @@ public Response Create(string subscriptionId, string resourceGroupName, string p } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string profileName, ProfilePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Cdn/profiles/", false); + uri.AppendPath(profileName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string profileName, ProfilePatch patch) { var message = _pipeline.CreateMessage(); @@ -417,6 +483,20 @@ public Response Update(string subscriptionId, string resourceGroupName, string p } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string profileName) + { + 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.Cdn/profiles/", false); + uri.AppendPath(profileName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string profileName) { var message = _pipeline.CreateMessage(); @@ -489,6 +569,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string p } } + internal RequestUriBuilder CreateGenerateSsoUriRequestUri(string subscriptionId, string resourceGroupName, string profileName) + { + 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.Cdn/profiles/", false); + uri.AppendPath(profileName, true); + uri.AppendPath("/generateSsoUri", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGenerateSsoUriRequest(string subscriptionId, string resourceGroupName, string profileName) { var message = _pipeline.CreateMessage(); @@ -568,6 +663,21 @@ public Response GenerateSsoUri(string subscriptionId, string resourceGro } } + internal RequestUriBuilder CreateListSupportedOptimizationTypesRequestUri(string subscriptionId, string resourceGroupName, string profileName) + { + 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.Cdn/profiles/", false); + uri.AppendPath(profileName, true); + uri.AppendPath("/getSupportedOptimizationTypes", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListSupportedOptimizationTypesRequest(string subscriptionId, string resourceGroupName, string profileName) { var message = _pipeline.CreateMessage(); @@ -647,6 +757,21 @@ public Response ListSupportedOptimizationT } } + internal RequestUriBuilder CreateListResourceUsageRequestUri(string subscriptionId, string resourceGroupName, string profileName) + { + 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.Cdn/profiles/", false); + uri.AppendPath(profileName, true); + uri.AppendPath("/checkResourceUsage", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListResourceUsageRequest(string subscriptionId, string resourceGroupName, string profileName) { var message = _pipeline.CreateMessage(); @@ -726,6 +851,14 @@ public Response ListResourceUsage(string subscriptionId } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -794,6 +927,14 @@ public Response ListNextPage(string nextLink, string subscrip } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -866,6 +1007,14 @@ public Response ListByResourceGroupNextPage(string nextLink, } } + internal RequestUriBuilder CreateListResourceUsageNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string profileName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListResourceUsageNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string profileName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/RestOperations/ResourceUsageRestOperations.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/RestOperations/ResourceUsageRestOperations.cs index 091cd1ccb0fc..6d874538983c 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/RestOperations/ResourceUsageRestOperations.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/RestOperations/ResourceUsageRestOperations.cs @@ -37,6 +37,17 @@ public ResourceUsageRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Cdn/checkResourceUsage", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,14 @@ public Response List(string subscriptionId, Cancellatio } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/changeanalysis/Azure.ResourceManager.ChangeAnalysis/src/Generated/RestOperations/ChangesRestOperations.cs b/sdk/changeanalysis/Azure.ResourceManager.ChangeAnalysis/src/Generated/RestOperations/ChangesRestOperations.cs index 3d4d425314b0..69d43fbb2014 100644 --- a/sdk/changeanalysis/Azure.ResourceManager.ChangeAnalysis/src/Generated/RestOperations/ChangesRestOperations.cs +++ b/sdk/changeanalysis/Azure.ResourceManager.ChangeAnalysis/src/Generated/RestOperations/ChangesRestOperations.cs @@ -37,6 +37,25 @@ public ChangesRestOperations(HttpPipeline pipeline, string applicationId, Uri en _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListChangesByResourceGroupRequestUri(string subscriptionId, string resourceGroupName, DateTimeOffset startTime, DateTimeOffset endTime, string skipToken) + { + 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.ChangeAnalysis/changes", false); + uri.AppendQuery("api-version", _apiVersion, true); + uri.AppendQuery("$startTime", startTime, "O", true); + uri.AppendQuery("$endTime", endTime, "O", true); + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } + return uri; + } + internal HttpMessage CreateListChangesByResourceGroupRequest(string subscriptionId, string resourceGroupName, DateTimeOffset startTime, DateTimeOffset endTime, string skipToken) { var message = _pipeline.CreateMessage(); @@ -122,6 +141,23 @@ public Response ListChangesByResourceGroup(string subscriptionId, st } } + internal RequestUriBuilder CreateListChangesBySubscriptionRequestUri(string subscriptionId, DateTimeOffset startTime, DateTimeOffset endTime, string skipToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ChangeAnalysis/changes", false); + uri.AppendQuery("api-version", _apiVersion, true); + uri.AppendQuery("$startTime", startTime, "O", true); + uri.AppendQuery("$endTime", endTime, "O", true); + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } + return uri; + } + internal HttpMessage CreateListChangesBySubscriptionRequest(string subscriptionId, DateTimeOffset startTime, DateTimeOffset endTime, string skipToken) { var message = _pipeline.CreateMessage(); @@ -201,6 +237,14 @@ public Response ListChangesBySubscription(string subscriptionId, Dat } } + internal RequestUriBuilder CreateListChangesByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, DateTimeOffset startTime, DateTimeOffset endTime, string skipToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListChangesByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, DateTimeOffset startTime, DateTimeOffset endTime, string skipToken) { var message = _pipeline.CreateMessage(); @@ -279,6 +323,14 @@ public Response ListChangesByResourceGroupNextPage(string nextLink, } } + internal RequestUriBuilder CreateListChangesBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId, DateTimeOffset startTime, DateTimeOffset endTime, string skipToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListChangesBySubscriptionNextPageRequest(string nextLink, string subscriptionId, DateTimeOffset startTime, DateTimeOffset endTime, string skipToken) { var message = _pipeline.CreateMessage(); diff --git a/sdk/changeanalysis/Azure.ResourceManager.ChangeAnalysis/src/Generated/RestOperations/ResourceChangesRestOperations.cs b/sdk/changeanalysis/Azure.ResourceManager.ChangeAnalysis/src/Generated/RestOperations/ResourceChangesRestOperations.cs index be8e3c9c3beb..94f63cda7036 100644 --- a/sdk/changeanalysis/Azure.ResourceManager.ChangeAnalysis/src/Generated/RestOperations/ResourceChangesRestOperations.cs +++ b/sdk/changeanalysis/Azure.ResourceManager.ChangeAnalysis/src/Generated/RestOperations/ResourceChangesRestOperations.cs @@ -37,6 +37,23 @@ public ResourceChangesRestOperations(HttpPipeline pipeline, string applicationId _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string resourceId, DateTimeOffset startTime, DateTimeOffset endTime, string skipToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceId, true); + uri.AppendPath("/providers/Microsoft.ChangeAnalysis/resourceChanges", false); + uri.AppendQuery("api-version", _apiVersion, true); + uri.AppendQuery("$startTime", startTime, "O", true); + uri.AppendQuery("$endTime", endTime, "O", true); + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string resourceId, DateTimeOffset startTime, DateTimeOffset endTime, string skipToken) { var message = _pipeline.CreateMessage(); @@ -116,6 +133,14 @@ public Response List(string resourceId, DateTimeOffset startTime, Da } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string resourceId, DateTimeOffset startTime, DateTimeOffset endTime, string skipToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string resourceId, DateTimeOffset startTime, DateTimeOffset endTime, string skipToken) { var message = _pipeline.CreateMessage(); diff --git a/sdk/chaos/Azure.ResourceManager.Chaos/src/Generated/ChaosCapabilityCollection.cs b/sdk/chaos/Azure.ResourceManager.Chaos/src/Generated/ChaosCapabilityCollection.cs index e725ebef4807..1aff2edaa90d 100644 --- a/sdk/chaos/Azure.ResourceManager.Chaos/src/Generated/ChaosCapabilityCollection.cs +++ b/sdk/chaos/Azure.ResourceManager.Chaos/src/Generated/ChaosCapabilityCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> CreateOrUpdateA try { var response = await _chaosCapabilityCapabilitiesRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.ResourceType.Namespace, Id.Parent.ResourceType.GetLastType(), Id.Parent.Name, Id.Name, capabilityName, data, cancellationToken).ConfigureAwait(false); - var operation = new ChaosArmOperation(Response.FromValue(new ChaosCapabilityResource(Client, response), response.GetRawResponse())); + var uri = _chaosCapabilityCapabilitiesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.ResourceType.Namespace, Id.Parent.ResourceType.GetLastType(), Id.Parent.Name, Id.Name, capabilityName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ChaosArmOperation(Response.FromValue(new ChaosCapabilityResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -140,7 +142,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wa try { var response = _chaosCapabilityCapabilitiesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.ResourceType.Namespace, Id.Parent.ResourceType.GetLastType(), Id.Parent.Name, Id.Name, capabilityName, data, cancellationToken); - var operation = new ChaosArmOperation(Response.FromValue(new ChaosCapabilityResource(Client, response), response.GetRawResponse())); + var uri = _chaosCapabilityCapabilitiesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.ResourceType.Namespace, Id.Parent.ResourceType.GetLastType(), Id.Parent.Name, Id.Name, capabilityName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ChaosArmOperation(Response.FromValue(new ChaosCapabilityResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/chaos/Azure.ResourceManager.Chaos/src/Generated/ChaosCapabilityResource.cs b/sdk/chaos/Azure.ResourceManager.Chaos/src/Generated/ChaosCapabilityResource.cs index 5f55670e651d..1f7f1c76af19 100644 --- a/sdk/chaos/Azure.ResourceManager.Chaos/src/Generated/ChaosCapabilityResource.cs +++ b/sdk/chaos/Azure.ResourceManager.Chaos/src/Generated/ChaosCapabilityResource.cs @@ -204,7 +204,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _chaosCapabilityCapabilitiesRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.ResourceType.Namespace, Id.Parent.Parent.ResourceType.GetLastType(), Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new ChaosArmOperation(response); + var uri = _chaosCapabilityCapabilitiesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.ResourceType.Namespace, Id.Parent.Parent.ResourceType.GetLastType(), Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ChaosArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -246,7 +248,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _chaosCapabilityCapabilitiesRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.ResourceType.Namespace, Id.Parent.Parent.ResourceType.GetLastType(), Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new ChaosArmOperation(response); + var uri = _chaosCapabilityCapabilitiesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.ResourceType.Namespace, Id.Parent.Parent.ResourceType.GetLastType(), Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ChaosArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -292,7 +296,9 @@ public virtual async Task> UpdateAsync(Wai try { var response = await _chaosCapabilityCapabilitiesRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.ResourceType.Namespace, Id.Parent.Parent.ResourceType.GetLastType(), Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new ChaosArmOperation(Response.FromValue(new ChaosCapabilityResource(Client, response), response.GetRawResponse())); + var uri = _chaosCapabilityCapabilitiesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.ResourceType.Namespace, Id.Parent.Parent.ResourceType.GetLastType(), Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ChaosArmOperation(Response.FromValue(new ChaosCapabilityResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -338,7 +344,9 @@ public virtual ArmOperation Update(WaitUntil waitUntil, try { var response = _chaosCapabilityCapabilitiesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.ResourceType.Namespace, Id.Parent.Parent.ResourceType.GetLastType(), Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new ChaosArmOperation(Response.FromValue(new ChaosCapabilityResource(Client, response), response.GetRawResponse())); + var uri = _chaosCapabilityCapabilitiesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.ResourceType.Namespace, Id.Parent.Parent.ResourceType.GetLastType(), Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ChaosArmOperation(Response.FromValue(new ChaosCapabilityResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/chaos/Azure.ResourceManager.Chaos/src/Generated/ChaosTargetCollection.cs b/sdk/chaos/Azure.ResourceManager.Chaos/src/Generated/ChaosTargetCollection.cs index 8a5c5394d810..60b71189129b 100644 --- a/sdk/chaos/Azure.ResourceManager.Chaos/src/Generated/ChaosTargetCollection.cs +++ b/sdk/chaos/Azure.ResourceManager.Chaos/src/Generated/ChaosTargetCollection.cs @@ -102,7 +102,9 @@ public virtual async Task> CreateOrUpdateAsync try { var response = await _chaosTargetTargetsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, _parentProviderNamespace, _parentResourceType, _parentResourceName, targetName, data, cancellationToken).ConfigureAwait(false); - var operation = new ChaosArmOperation(Response.FromValue(new ChaosTargetResource(Client, response), response.GetRawResponse())); + var uri = _chaosTargetTargetsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, _parentProviderNamespace, _parentResourceType, _parentResourceName, targetName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ChaosArmOperation(Response.FromValue(new ChaosTargetResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -151,7 +153,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUn try { var response = _chaosTargetTargetsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, _parentProviderNamespace, _parentResourceType, _parentResourceName, targetName, data, cancellationToken); - var operation = new ChaosArmOperation(Response.FromValue(new ChaosTargetResource(Client, response), response.GetRawResponse())); + var uri = _chaosTargetTargetsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, _parentProviderNamespace, _parentResourceType, _parentResourceName, targetName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ChaosArmOperation(Response.FromValue(new ChaosTargetResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/chaos/Azure.ResourceManager.Chaos/src/Generated/ChaosTargetResource.cs b/sdk/chaos/Azure.ResourceManager.Chaos/src/Generated/ChaosTargetResource.cs index 9c4273cce5b3..4d0f5a885089 100644 --- a/sdk/chaos/Azure.ResourceManager.Chaos/src/Generated/ChaosTargetResource.cs +++ b/sdk/chaos/Azure.ResourceManager.Chaos/src/Generated/ChaosTargetResource.cs @@ -273,7 +273,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _chaosTargetTargetsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.ResourceType.Namespace, Id.Parent.ResourceType.GetLastType(), Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new ChaosArmOperation(response); + var uri = _chaosTargetTargetsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.ResourceType.Namespace, Id.Parent.ResourceType.GetLastType(), Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ChaosArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -315,7 +317,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _chaosTargetTargetsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.ResourceType.Namespace, Id.Parent.ResourceType.GetLastType(), Id.Parent.Name, Id.Name, cancellationToken); - var operation = new ChaosArmOperation(response); + var uri = _chaosTargetTargetsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.ResourceType.Namespace, Id.Parent.ResourceType.GetLastType(), Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ChaosArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -361,7 +365,9 @@ public virtual async Task> UpdateAsync(WaitUnt try { var response = await _chaosTargetTargetsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.ResourceType.Namespace, Id.Parent.ResourceType.GetLastType(), Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new ChaosArmOperation(Response.FromValue(new ChaosTargetResource(Client, response), response.GetRawResponse())); + var uri = _chaosTargetTargetsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.ResourceType.Namespace, Id.Parent.ResourceType.GetLastType(), Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ChaosArmOperation(Response.FromValue(new ChaosTargetResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -407,7 +413,9 @@ public virtual ArmOperation Update(WaitUntil waitUntil, Cha try { var response = _chaosTargetTargetsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.ResourceType.Namespace, Id.Parent.ResourceType.GetLastType(), Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new ChaosArmOperation(Response.FromValue(new ChaosTargetResource(Client, response), response.GetRawResponse())); + var uri = _chaosTargetTargetsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.ResourceType.Namespace, Id.Parent.ResourceType.GetLastType(), Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ChaosArmOperation(Response.FromValue(new ChaosTargetResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/chaos/Azure.ResourceManager.Chaos/src/Generated/LongRunningOperation/ChaosArmOperation.cs b/sdk/chaos/Azure.ResourceManager.Chaos/src/Generated/LongRunningOperation/ChaosArmOperation.cs index 5c222bd9f11a..9e434a22dded 100644 --- a/sdk/chaos/Azure.ResourceManager.Chaos/src/Generated/LongRunningOperation/ChaosArmOperation.cs +++ b/sdk/chaos/Azure.ResourceManager.Chaos/src/Generated/LongRunningOperation/ChaosArmOperation.cs @@ -20,21 +20,24 @@ internal class ChaosArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of ChaosArmOperation for mocking. protected ChaosArmOperation() { } - internal ChaosArmOperation(Response response) + internal ChaosArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal ChaosArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "ChaosArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal ChaosArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pip public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/chaos/Azure.ResourceManager.Chaos/src/Generated/LongRunningOperation/ChaosArmOperationOfT.cs b/sdk/chaos/Azure.ResourceManager.Chaos/src/Generated/LongRunningOperation/ChaosArmOperationOfT.cs index 0455de51ee2f..ab8889af76a5 100644 --- a/sdk/chaos/Azure.ResourceManager.Chaos/src/Generated/LongRunningOperation/ChaosArmOperationOfT.cs +++ b/sdk/chaos/Azure.ResourceManager.Chaos/src/Generated/LongRunningOperation/ChaosArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class ChaosArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of ChaosArmOperation for mocking. protected ChaosArmOperation() { } - internal ChaosArmOperation(Response response) + internal ChaosArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal ChaosArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "ChaosArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal ChaosArmOperation(IOperationSource source, ClientDiagnostics clientD public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/chaos/Azure.ResourceManager.Chaos/src/Generated/Models/ChaosCapabilityResource.Serialization.cs b/sdk/chaos/Azure.ResourceManager.Chaos/src/Generated/Models/ChaosCapabilityResource.Serialization.cs new file mode 100644 index 000000000000..bf132e8fec4e --- /dev/null +++ b/sdk/chaos/Azure.ResourceManager.Chaos/src/Generated/Models/ChaosCapabilityResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Chaos +{ + public partial class ChaosCapabilityResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ChaosCapabilityData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ChaosCapabilityData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/chaos/Azure.ResourceManager.Chaos/src/Generated/Models/ChaosCapabilityTypeResource.Serialization.cs b/sdk/chaos/Azure.ResourceManager.Chaos/src/Generated/Models/ChaosCapabilityTypeResource.Serialization.cs new file mode 100644 index 000000000000..c1a44cca3bb8 --- /dev/null +++ b/sdk/chaos/Azure.ResourceManager.Chaos/src/Generated/Models/ChaosCapabilityTypeResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Chaos +{ + public partial class ChaosCapabilityTypeResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ChaosCapabilityTypeData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ChaosCapabilityTypeData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/chaos/Azure.ResourceManager.Chaos/src/Generated/Models/ChaosExperimentExecutionResource.Serialization.cs b/sdk/chaos/Azure.ResourceManager.Chaos/src/Generated/Models/ChaosExperimentExecutionResource.Serialization.cs new file mode 100644 index 000000000000..4a6228462629 --- /dev/null +++ b/sdk/chaos/Azure.ResourceManager.Chaos/src/Generated/Models/ChaosExperimentExecutionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Chaos +{ + public partial class ChaosExperimentExecutionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ChaosExperimentExecutionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ChaosExperimentExecutionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/chaos/Azure.ResourceManager.Chaos/src/Generated/Models/ChaosExperimentResource.Serialization.cs b/sdk/chaos/Azure.ResourceManager.Chaos/src/Generated/Models/ChaosExperimentResource.Serialization.cs new file mode 100644 index 000000000000..5f634b7cf66d --- /dev/null +++ b/sdk/chaos/Azure.ResourceManager.Chaos/src/Generated/Models/ChaosExperimentResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Chaos +{ + public partial class ChaosExperimentResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ChaosExperimentData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ChaosExperimentData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/chaos/Azure.ResourceManager.Chaos/src/Generated/Models/ChaosTargetResource.Serialization.cs b/sdk/chaos/Azure.ResourceManager.Chaos/src/Generated/Models/ChaosTargetResource.Serialization.cs new file mode 100644 index 000000000000..510ac4be13bd --- /dev/null +++ b/sdk/chaos/Azure.ResourceManager.Chaos/src/Generated/Models/ChaosTargetResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Chaos +{ + public partial class ChaosTargetResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ChaosTargetData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ChaosTargetData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/chaos/Azure.ResourceManager.Chaos/src/Generated/Models/ChaosTargetTypeResource.Serialization.cs b/sdk/chaos/Azure.ResourceManager.Chaos/src/Generated/Models/ChaosTargetTypeResource.Serialization.cs new file mode 100644 index 000000000000..65acfd5e597e --- /dev/null +++ b/sdk/chaos/Azure.ResourceManager.Chaos/src/Generated/Models/ChaosTargetTypeResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Chaos +{ + public partial class ChaosTargetTypeResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ChaosTargetTypeData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ChaosTargetTypeData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/chaos/Azure.ResourceManager.Chaos/src/Generated/RestOperations/CapabilitiesRestOperations.cs b/sdk/chaos/Azure.ResourceManager.Chaos/src/Generated/RestOperations/CapabilitiesRestOperations.cs index 7b7a1d4b7da5..2a09b9fa2691 100644 --- a/sdk/chaos/Azure.ResourceManager.Chaos/src/Generated/RestOperations/CapabilitiesRestOperations.cs +++ b/sdk/chaos/Azure.ResourceManager.Chaos/src/Generated/RestOperations/CapabilitiesRestOperations.cs @@ -37,6 +37,31 @@ public CapabilitiesRestOperations(HttpPipeline pipeline, string applicationId, U _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string parentProviderNamespace, string parentResourceType, string parentResourceName, string targetName, string continuationToken) + { + 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/", false); + uri.AppendPath(parentProviderNamespace, true); + uri.AppendPath("/", false); + uri.AppendPath(parentResourceType, true); + uri.AppendPath("/", false); + uri.AppendPath(parentResourceName, true); + uri.AppendPath("/providers/Microsoft.Chaos/targets/", false); + uri.AppendPath(targetName, true); + uri.AppendPath("/capabilities", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (continuationToken != null) + { + uri.AppendQuery("continuationToken", continuationToken, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string parentProviderNamespace, string parentResourceType, string parentResourceName, string targetName, string continuationToken) { var message = _pipeline.CreateMessage(); @@ -140,6 +165,28 @@ public Response List(string subscriptionId, string resourc } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string parentProviderNamespace, string parentResourceType, string parentResourceName, string targetName, string capabilityName) + { + 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/", false); + uri.AppendPath(parentProviderNamespace, true); + uri.AppendPath("/", false); + uri.AppendPath(parentResourceType, true); + uri.AppendPath("/", false); + uri.AppendPath(parentResourceName, true); + uri.AppendPath("/providers/Microsoft.Chaos/targets/", false); + uri.AppendPath(targetName, true); + uri.AppendPath("/capabilities/", false); + uri.AppendPath(capabilityName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string parentProviderNamespace, string parentResourceType, string parentResourceName, string targetName, string capabilityName) { var message = _pipeline.CreateMessage(); @@ -246,6 +293,28 @@ public Response Get(string subscriptionId, string resourceG } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string parentProviderNamespace, string parentResourceType, string parentResourceName, string targetName, string capabilityName) + { + 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/", false); + uri.AppendPath(parentProviderNamespace, true); + uri.AppendPath("/", false); + uri.AppendPath(parentResourceType, true); + uri.AppendPath("/", false); + uri.AppendPath(parentResourceName, true); + uri.AppendPath("/providers/Microsoft.Chaos/targets/", false); + uri.AppendPath(targetName, true); + uri.AppendPath("/capabilities/", false); + uri.AppendPath(capabilityName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string parentProviderNamespace, string parentResourceType, string parentResourceName, string targetName, string capabilityName) { var message = _pipeline.CreateMessage(); @@ -340,6 +409,28 @@ public Response Delete(string subscriptionId, string resourceGroupName, string p } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string parentProviderNamespace, string parentResourceType, string parentResourceName, string targetName, string capabilityName, ChaosCapabilityData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/", false); + uri.AppendPath(parentProviderNamespace, true); + uri.AppendPath("/", false); + uri.AppendPath(parentResourceType, true); + uri.AppendPath("/", false); + uri.AppendPath(parentResourceName, true); + uri.AppendPath("/providers/Microsoft.Chaos/targets/", false); + uri.AppendPath(targetName, true); + uri.AppendPath("/capabilities/", false); + uri.AppendPath(capabilityName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string parentProviderNamespace, string parentResourceType, string parentResourceName, string targetName, string capabilityName, ChaosCapabilityData data) { var message = _pipeline.CreateMessage(); @@ -450,6 +541,14 @@ public Response CreateOrUpdate(string subscriptionId, strin } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string parentProviderNamespace, string parentResourceType, string parentResourceName, string targetName, string continuationToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string parentProviderNamespace, string parentResourceType, string parentResourceName, string targetName, string continuationToken) { var message = _pipeline.CreateMessage(); diff --git a/sdk/chaos/Azure.ResourceManager.Chaos/src/Generated/RestOperations/CapabilityTypesRestOperations.cs b/sdk/chaos/Azure.ResourceManager.Chaos/src/Generated/RestOperations/CapabilityTypesRestOperations.cs index 5664a8e821a6..c1b56571a3ba 100644 --- a/sdk/chaos/Azure.ResourceManager.Chaos/src/Generated/RestOperations/CapabilityTypesRestOperations.cs +++ b/sdk/chaos/Azure.ResourceManager.Chaos/src/Generated/RestOperations/CapabilityTypesRestOperations.cs @@ -37,6 +37,25 @@ public CapabilityTypesRestOperations(HttpPipeline pipeline, string applicationId _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string locationName, string targetTypeName, string continuationToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Chaos/locations/", false); + uri.AppendPath(locationName, true); + uri.AppendPath("/targetTypes/", false); + uri.AppendPath(targetTypeName, true); + uri.AppendPath("/capabilityTypes", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (continuationToken != null) + { + uri.AppendQuery("continuationToken", continuationToken, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string locationName, string targetTypeName, string continuationToken) { var message = _pipeline.CreateMessage(); @@ -122,6 +141,22 @@ public Response List(string subscriptionId, string loc } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string locationName, string targetTypeName, string capabilityTypeName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Chaos/locations/", false); + uri.AppendPath(locationName, true); + uri.AppendPath("/targetTypes/", false); + uri.AppendPath(targetTypeName, true); + uri.AppendPath("/capabilityTypes/", false); + uri.AppendPath(capabilityTypeName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string locationName, string targetTypeName, string capabilityTypeName) { var message = _pipeline.CreateMessage(); @@ -210,6 +245,14 @@ public Response Get(string subscriptionId, string locat } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string locationName, string targetTypeName, string continuationToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string locationName, string targetTypeName, string continuationToken) { var message = _pipeline.CreateMessage(); diff --git a/sdk/chaos/Azure.ResourceManager.Chaos/src/Generated/RestOperations/ExperimentsRestOperations.cs b/sdk/chaos/Azure.ResourceManager.Chaos/src/Generated/RestOperations/ExperimentsRestOperations.cs index 980269ff7b2a..c121869fbb96 100644 --- a/sdk/chaos/Azure.ResourceManager.Chaos/src/Generated/RestOperations/ExperimentsRestOperations.cs +++ b/sdk/chaos/Azure.ResourceManager.Chaos/src/Generated/RestOperations/ExperimentsRestOperations.cs @@ -37,6 +37,25 @@ public ExperimentsRestOperations(HttpPipeline pipeline, string applicationId, Ur _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListAllRequestUri(string subscriptionId, bool? running, string continuationToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Chaos/experiments", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (running != null) + { + uri.AppendQuery("running", running.Value, true); + } + if (continuationToken != null) + { + uri.AppendQuery("continuationToken", continuationToken, true); + } + return uri; + } + internal HttpMessage CreateListAllRequest(string subscriptionId, bool? running, string continuationToken) { var message = _pipeline.CreateMessage(); @@ -116,6 +135,27 @@ public Response ListAll(string subscriptionId, bool? runni } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, bool? running, string continuationToken) + { + 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.Chaos/experiments", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (running != null) + { + uri.AppendQuery("running", running.Value, true); + } + if (continuationToken != null) + { + uri.AppendQuery("continuationToken", continuationToken, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, bool? running, string continuationToken) { var message = _pipeline.CreateMessage(); @@ -201,6 +241,20 @@ public Response List(string subscriptionId, string resourc } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string experimentName) + { + 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.Chaos/experiments/", false); + uri.AppendPath(experimentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string experimentName) { var message = _pipeline.CreateMessage(); @@ -269,6 +323,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string e } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string experimentName) + { + 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.Chaos/experiments/", false); + uri.AppendPath(experimentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string experimentName) { var message = _pipeline.CreateMessage(); @@ -351,6 +419,20 @@ public Response Get(string subscriptionId, string resourceG } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string experimentName, ChaosExperimentData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Chaos/experiments/", false); + uri.AppendPath(experimentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string experimentName, ChaosExperimentData data) { var message = _pipeline.CreateMessage(); @@ -429,6 +511,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string experimentName, ChaosExperimentPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Chaos/experiments/", false); + uri.AppendPath(experimentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string experimentName, ChaosExperimentPatch patch) { var message = _pipeline.CreateMessage(); @@ -505,6 +601,21 @@ public Response Update(string subscriptionId, string resourceGroupName, string e } } + internal RequestUriBuilder CreateCancelRequestUri(string subscriptionId, string resourceGroupName, string experimentName) + { + 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.Chaos/experiments/", false); + uri.AppendPath(experimentName, true); + uri.AppendPath("/cancel", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCancelRequest(string subscriptionId, string resourceGroupName, string experimentName) { var message = _pipeline.CreateMessage(); @@ -574,6 +685,21 @@ public Response Cancel(string subscriptionId, string resourceGroupName, string e } } + internal RequestUriBuilder CreateStartRequestUri(string subscriptionId, string resourceGroupName, string experimentName) + { + 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.Chaos/experiments/", false); + uri.AppendPath(experimentName, true); + uri.AppendPath("/start", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStartRequest(string subscriptionId, string resourceGroupName, string experimentName) { var message = _pipeline.CreateMessage(); @@ -643,6 +769,21 @@ public Response Start(string subscriptionId, string resourceGroupName, string ex } } + internal RequestUriBuilder CreateListAllExecutionsRequestUri(string subscriptionId, string resourceGroupName, string experimentName) + { + 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.Chaos/experiments/", false); + uri.AppendPath(experimentName, true); + uri.AppendPath("/executions", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListAllExecutionsRequest(string subscriptionId, string resourceGroupName, string experimentName) { var message = _pipeline.CreateMessage(); @@ -722,6 +863,22 @@ public Response ListAllExecutions(string subscrip } } + internal RequestUriBuilder CreateGetExecutionRequestUri(string subscriptionId, string resourceGroupName, string experimentName, string executionId) + { + 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.Chaos/experiments/", false); + uri.AppendPath(experimentName, true); + uri.AppendPath("/executions/", false); + uri.AppendPath(executionId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetExecutionRequest(string subscriptionId, string resourceGroupName, string experimentName, string executionId) { var message = _pipeline.CreateMessage(); @@ -810,6 +967,23 @@ public Response GetExecution(string subscriptionId } } + internal RequestUriBuilder CreateExecutionDetailsRequestUri(string subscriptionId, string resourceGroupName, string experimentName, string executionId) + { + 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.Chaos/experiments/", false); + uri.AppendPath(experimentName, true); + uri.AppendPath("/executions/", false); + uri.AppendPath(executionId, true); + uri.AppendPath("/getExecutionDetails", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateExecutionDetailsRequest(string subscriptionId, string resourceGroupName, string experimentName, string executionId) { var message = _pipeline.CreateMessage(); @@ -895,6 +1069,14 @@ public Response ExecutionDetails(string subscription } } + internal RequestUriBuilder CreateListAllNextPageRequestUri(string nextLink, string subscriptionId, bool? running, string continuationToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListAllNextPageRequest(string nextLink, string subscriptionId, bool? running, string continuationToken) { var message = _pipeline.CreateMessage(); @@ -967,6 +1149,14 @@ public Response ListAllNextPage(string nextLink, string su } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, bool? running, string continuationToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, bool? running, string continuationToken) { var message = _pipeline.CreateMessage(); @@ -1043,6 +1233,14 @@ public Response ListNextPage(string nextLink, string subsc } } + internal RequestUriBuilder CreateListAllExecutionsNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string experimentName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListAllExecutionsNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string experimentName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/chaos/Azure.ResourceManager.Chaos/src/Generated/RestOperations/TargetTypesRestOperations.cs b/sdk/chaos/Azure.ResourceManager.Chaos/src/Generated/RestOperations/TargetTypesRestOperations.cs index c01b60fb5d4c..e52fcb462fa0 100644 --- a/sdk/chaos/Azure.ResourceManager.Chaos/src/Generated/RestOperations/TargetTypesRestOperations.cs +++ b/sdk/chaos/Azure.ResourceManager.Chaos/src/Generated/RestOperations/TargetTypesRestOperations.cs @@ -37,6 +37,23 @@ public TargetTypesRestOperations(HttpPipeline pipeline, string applicationId, Ur _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string locationName, string continuationToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Chaos/locations/", false); + uri.AppendPath(locationName, true); + uri.AppendPath("/targetTypes", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (continuationToken != null) + { + uri.AppendQuery("continuationToken", continuationToken, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string locationName, string continuationToken) { var message = _pipeline.CreateMessage(); @@ -116,6 +133,20 @@ public Response List(string subscriptionId, string locatio } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string locationName, string targetTypeName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Chaos/locations/", false); + uri.AppendPath(locationName, true); + uri.AppendPath("/targetTypes/", false); + uri.AppendPath(targetTypeName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string locationName, string targetTypeName) { var message = _pipeline.CreateMessage(); @@ -198,6 +229,14 @@ public Response Get(string subscriptionId, string locationN } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string locationName, string continuationToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string locationName, string continuationToken) { var message = _pipeline.CreateMessage(); diff --git a/sdk/chaos/Azure.ResourceManager.Chaos/src/Generated/RestOperations/TargetsRestOperations.cs b/sdk/chaos/Azure.ResourceManager.Chaos/src/Generated/RestOperations/TargetsRestOperations.cs index c9ed4eb9b0c2..081a3ffed90b 100644 --- a/sdk/chaos/Azure.ResourceManager.Chaos/src/Generated/RestOperations/TargetsRestOperations.cs +++ b/sdk/chaos/Azure.ResourceManager.Chaos/src/Generated/RestOperations/TargetsRestOperations.cs @@ -37,6 +37,29 @@ public TargetsRestOperations(HttpPipeline pipeline, string applicationId, Uri en _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string parentProviderNamespace, string parentResourceType, string parentResourceName, string continuationToken) + { + 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/", false); + uri.AppendPath(parentProviderNamespace, true); + uri.AppendPath("/", false); + uri.AppendPath(parentResourceType, true); + uri.AppendPath("/", false); + uri.AppendPath(parentResourceName, true); + uri.AppendPath("/providers/Microsoft.Chaos/targets", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (continuationToken != null) + { + uri.AppendQuery("continuationToken", continuationToken, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string parentProviderNamespace, string parentResourceType, string parentResourceName, string continuationToken) { var message = _pipeline.CreateMessage(); @@ -134,6 +157,26 @@ public Response List(string subscriptionId, string resourceGro } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string parentProviderNamespace, string parentResourceType, string parentResourceName, string targetName) + { + 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/", false); + uri.AppendPath(parentProviderNamespace, true); + uri.AppendPath("/", false); + uri.AppendPath(parentResourceType, true); + uri.AppendPath("/", false); + uri.AppendPath(parentResourceName, true); + uri.AppendPath("/providers/Microsoft.Chaos/targets/", false); + uri.AppendPath(targetName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string parentProviderNamespace, string parentResourceType, string parentResourceName, string targetName) { var message = _pipeline.CreateMessage(); @@ -234,6 +277,26 @@ public Response Get(string subscriptionId, string resourceGroup } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string parentProviderNamespace, string parentResourceType, string parentResourceName, string targetName) + { + 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/", false); + uri.AppendPath(parentProviderNamespace, true); + uri.AppendPath("/", false); + uri.AppendPath(parentResourceType, true); + uri.AppendPath("/", false); + uri.AppendPath(parentResourceName, true); + uri.AppendPath("/providers/Microsoft.Chaos/targets/", false); + uri.AppendPath(targetName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string parentProviderNamespace, string parentResourceType, string parentResourceName, string targetName) { var message = _pipeline.CreateMessage(); @@ -322,6 +385,26 @@ public Response Delete(string subscriptionId, string resourceGroupName, string p } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string parentProviderNamespace, string parentResourceType, string parentResourceName, string targetName, ChaosTargetData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/", false); + uri.AppendPath(parentProviderNamespace, true); + uri.AppendPath("/", false); + uri.AppendPath(parentResourceType, true); + uri.AppendPath("/", false); + uri.AppendPath(parentResourceName, true); + uri.AppendPath("/providers/Microsoft.Chaos/targets/", false); + uri.AppendPath(targetName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string parentProviderNamespace, string parentResourceType, string parentResourceName, string targetName, ChaosTargetData data) { var message = _pipeline.CreateMessage(); @@ -426,6 +509,14 @@ public Response CreateOrUpdate(string subscriptionId, string re } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string parentProviderNamespace, string parentResourceType, string parentResourceName, string continuationToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string parentProviderNamespace, string parentResourceType, string parentResourceName, string continuationToken) { var message = _pipeline.CreateMessage(); diff --git a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/CommitmentPlanCollection.cs b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/CommitmentPlanCollection.cs index 9e15a7c886d9..099fc4dcefc7 100644 --- a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/CommitmentPlanCollection.cs +++ b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/CommitmentPlanCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> CreateOrUpdateAs try { var response = await _commitmentPlanRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, commitmentPlanName, data, cancellationToken).ConfigureAwait(false); - var operation = new CognitiveServicesArmOperation(Response.FromValue(new CommitmentPlanResource(Client, response), response.GetRawResponse())); + var uri = _commitmentPlanRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, commitmentPlanName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new CognitiveServicesArmOperation(Response.FromValue(new CommitmentPlanResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wai try { var response = _commitmentPlanRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, commitmentPlanName, data, cancellationToken); - var operation = new CognitiveServicesArmOperation(Response.FromValue(new CommitmentPlanResource(Client, response), response.GetRawResponse())); + var uri = _commitmentPlanRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, commitmentPlanName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new CognitiveServicesArmOperation(Response.FromValue(new CommitmentPlanResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/CommitmentPlanResource.cs b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/CommitmentPlanResource.cs index ea3c3c005986..9d40d36b71c6 100644 --- a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/CommitmentPlanResource.cs +++ b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/CommitmentPlanResource.cs @@ -289,7 +289,9 @@ public virtual async Task> UpdateAsync(Wait try { var response = await _commitmentPlanRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new CognitiveServicesArmOperation(Response.FromValue(new CommitmentPlanResource(Client, response), response.GetRawResponse())); + var uri = _commitmentPlanRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new CognitiveServicesArmOperation(Response.FromValue(new CommitmentPlanResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -335,7 +337,9 @@ public virtual ArmOperation Update(WaitUntil waitUntil, try { var response = _commitmentPlanRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new CognitiveServicesArmOperation(Response.FromValue(new CommitmentPlanResource(Client, response), response.GetRawResponse())); + var uri = _commitmentPlanRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new CognitiveServicesArmOperation(Response.FromValue(new CommitmentPlanResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/LongRunningOperation/CognitiveServicesArmOperation.cs b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/LongRunningOperation/CognitiveServicesArmOperation.cs index c8854972eae8..4b9b97dd1784 100644 --- a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/LongRunningOperation/CognitiveServicesArmOperation.cs +++ b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/LongRunningOperation/CognitiveServicesArmOperation.cs @@ -20,21 +20,24 @@ internal class CognitiveServicesArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of CognitiveServicesArmOperation for mocking. protected CognitiveServicesArmOperation() { } - internal CognitiveServicesArmOperation(Response response) + internal CognitiveServicesArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal CognitiveServicesArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "CognitiveServicesArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal CognitiveServicesArmOperation(ClientDiagnostics clientDiagnostics, Http public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/LongRunningOperation/CognitiveServicesArmOperationOfT.cs b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/LongRunningOperation/CognitiveServicesArmOperationOfT.cs index 79a30b44edbd..c12b6d3782c0 100644 --- a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/LongRunningOperation/CognitiveServicesArmOperationOfT.cs +++ b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/LongRunningOperation/CognitiveServicesArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class CognitiveServicesArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of CognitiveServicesArmOperation for mocking. protected CognitiveServicesArmOperation() { } - internal CognitiveServicesArmOperation(Response response) + internal CognitiveServicesArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal CognitiveServicesArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "CognitiveServicesArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal CognitiveServicesArmOperation(IOperationSource source, ClientDiagnos public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CognitiveServicesAccountDeploymentResource.Serialization.cs b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CognitiveServicesAccountDeploymentResource.Serialization.cs new file mode 100644 index 000000000000..4352c41aa2e1 --- /dev/null +++ b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CognitiveServicesAccountDeploymentResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.CognitiveServices +{ + public partial class CognitiveServicesAccountDeploymentResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + CognitiveServicesAccountDeploymentData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + CognitiveServicesAccountDeploymentData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CognitiveServicesAccountResource.Serialization.cs b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CognitiveServicesAccountResource.Serialization.cs new file mode 100644 index 000000000000..ab4e08c58218 --- /dev/null +++ b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CognitiveServicesAccountResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.CognitiveServices +{ + public partial class CognitiveServicesAccountResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + CognitiveServicesAccountData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + CognitiveServicesAccountData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CognitiveServicesCommitmentPlanResource.Serialization.cs b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CognitiveServicesCommitmentPlanResource.Serialization.cs new file mode 100644 index 000000000000..19b2242ae846 --- /dev/null +++ b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CognitiveServicesCommitmentPlanResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.CognitiveServices +{ + public partial class CognitiveServicesCommitmentPlanResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + CommitmentPlanData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + CommitmentPlanData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CognitiveServicesDeletedAccountResource.Serialization.cs b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CognitiveServicesDeletedAccountResource.Serialization.cs new file mode 100644 index 000000000000..cbffcdf52365 --- /dev/null +++ b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CognitiveServicesDeletedAccountResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.CognitiveServices +{ + public partial class CognitiveServicesDeletedAccountResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + CognitiveServicesAccountData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + CognitiveServicesAccountData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CognitiveServicesPrivateEndpointConnectionResource.Serialization.cs b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CognitiveServicesPrivateEndpointConnectionResource.Serialization.cs new file mode 100644 index 000000000000..56cf7af8e90b --- /dev/null +++ b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CognitiveServicesPrivateEndpointConnectionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.CognitiveServices +{ + public partial class CognitiveServicesPrivateEndpointConnectionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + CognitiveServicesPrivateEndpointConnectionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + CognitiveServicesPrivateEndpointConnectionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CommitmentPlanAccountAssociationResource.Serialization.cs b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CommitmentPlanAccountAssociationResource.Serialization.cs new file mode 100644 index 000000000000..fa3677f3eceb --- /dev/null +++ b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CommitmentPlanAccountAssociationResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.CognitiveServices +{ + public partial class CommitmentPlanAccountAssociationResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + CommitmentPlanAccountAssociationData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + CommitmentPlanAccountAssociationData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CommitmentPlanResource.Serialization.cs b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CommitmentPlanResource.Serialization.cs new file mode 100644 index 000000000000..6432f9c8a6a9 --- /dev/null +++ b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CommitmentPlanResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.CognitiveServices +{ + public partial class CommitmentPlanResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + CommitmentPlanData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + CommitmentPlanData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/RestOperations/AccountsRestOperations.cs b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/RestOperations/AccountsRestOperations.cs index 194a1dcd654a..df60224b967f 100644 --- a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/RestOperations/AccountsRestOperations.cs +++ b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/RestOperations/AccountsRestOperations.cs @@ -37,6 +37,20 @@ public AccountsRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string accountName, CognitiveServicesAccountData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.CognitiveServices/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string accountName, CognitiveServicesAccountData data) { var message = _pipeline.CreateMessage(); @@ -117,6 +131,20 @@ public Response Create(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string accountName, CognitiveServicesAccountData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.CognitiveServices/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string accountName, CognitiveServicesAccountData data) { var message = _pipeline.CreateMessage(); @@ -195,6 +223,20 @@ public Response Update(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string accountName) + { + 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.CognitiveServices/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); @@ -267,6 +309,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string accountName) + { + 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.CognitiveServices/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); @@ -349,6 +405,19 @@ public Response Get(string subscriptionId, string } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.CognitiveServices/accounts", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -422,6 +491,17 @@ public Response ListByResourceGroup(string s } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.CognitiveServices/accounts", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -489,6 +569,21 @@ public Response List(string subscriptionId, } } + internal RequestUriBuilder CreateListKeysRequestUri(string subscriptionId, string resourceGroupName, string accountName) + { + 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.CognitiveServices/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/listKeys", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListKeysRequest(string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); @@ -568,6 +663,21 @@ public Response ListKeys(string subscriptionId, string re } } + internal RequestUriBuilder CreateRegenerateKeyRequestUri(string subscriptionId, string resourceGroupName, string accountName, RegenerateServiceAccountKeyContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.CognitiveServices/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/regenerateKey", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRegenerateKeyRequest(string subscriptionId, string resourceGroupName, string accountName, RegenerateServiceAccountKeyContent content) { var message = _pipeline.CreateMessage(); @@ -655,6 +765,21 @@ public Response RegenerateKey(string subscriptionId, stri } } + internal RequestUriBuilder CreateListSkusRequestUri(string subscriptionId, string resourceGroupName, string accountName) + { + 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.CognitiveServices/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/skus", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListSkusRequest(string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); @@ -734,6 +859,25 @@ public Response ListSkus(string subscript } } + internal RequestUriBuilder CreateListUsagesRequestUri(string subscriptionId, string resourceGroupName, string accountName, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.CognitiveServices/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/usages", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + return uri; + } + internal HttpMessage CreateListUsagesRequest(string subscriptionId, string resourceGroupName, string accountName, string filter) { var message = _pipeline.CreateMessage(); @@ -819,6 +963,21 @@ public Response ListUsages(string subscriptionId, } } + internal RequestUriBuilder CreateListModelsRequestUri(string subscriptionId, string resourceGroupName, string accountName) + { + 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.CognitiveServices/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/models", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListModelsRequest(string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); @@ -898,6 +1057,14 @@ public Response ListModels(string subsc } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -970,6 +1137,14 @@ public Response ListByResourceGroupNextPage( } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -1038,6 +1213,14 @@ public Response ListNextPage(string nextLink } } + internal RequestUriBuilder CreateListModelsNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string accountName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListModelsNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/RestOperations/CognitiveServicesManagementRestOperations.cs b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/RestOperations/CognitiveServicesManagementRestOperations.cs index ef63b1106292..bf7b18f312db 100644 --- a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/RestOperations/CognitiveServicesManagementRestOperations.cs +++ b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/RestOperations/CognitiveServicesManagementRestOperations.cs @@ -37,6 +37,19 @@ public CognitiveServicesManagementRestOperations(HttpPipeline pipeline, string a _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCheckSkuAvailabilityRequestUri(string subscriptionId, AzureLocation location, CognitiveServicesSkuAvailabilityContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.CognitiveServices/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/checkSkuAvailability", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCheckSkuAvailabilityRequest(string subscriptionId, AzureLocation location, CognitiveServicesSkuAvailabilityContent content) { var message = _pipeline.CreateMessage(); @@ -116,6 +129,17 @@ public Response CheckSkuAvailability } } + internal RequestUriBuilder CreateCheckDomainAvailabilityRequestUri(string subscriptionId, CognitiveServicesDomainAvailabilityContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.CognitiveServices/checkDomainAvailability", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCheckDomainAvailabilityRequest(string subscriptionId, CognitiveServicesDomainAvailabilityContent content) { var message = _pipeline.CreateMessage(); diff --git a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/RestOperations/CommitmentPlansRestOperations.cs b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/RestOperations/CommitmentPlansRestOperations.cs index 911469321d88..692339bdf2d9 100644 --- a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/RestOperations/CommitmentPlansRestOperations.cs +++ b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/RestOperations/CommitmentPlansRestOperations.cs @@ -37,6 +37,21 @@ public CommitmentPlansRestOperations(HttpPipeline pipeline, string applicationId _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string accountName) + { + 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.CognitiveServices/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/commitmentPlans", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response List(string subscriptionId, string res } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string accountName, string commitmentPlanName) + { + 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.CognitiveServices/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/commitmentPlans/", false); + uri.AppendPath(commitmentPlanName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string accountName, string commitmentPlanName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string accountName, string commitmentPlanName, CommitmentPlanData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.CognitiveServices/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/commitmentPlans/", false); + uri.AppendPath(commitmentPlanName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string accountName, string commitmentPlanName, CommitmentPlanData data) { var message = _pipeline.CreateMessage(); @@ -298,6 +345,22 @@ public Response CreateOrUpdate(string subscriptionId, string } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string accountName, string commitmentPlanName) + { + 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.CognitiveServices/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/commitmentPlans/", false); + uri.AppendPath(commitmentPlanName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string accountName, string commitmentPlanName) { var message = _pipeline.CreateMessage(); @@ -376,6 +439,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateCreateOrUpdatePlanRequestUri(string subscriptionId, string resourceGroupName, string commitmentPlanName, CommitmentPlanData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.CognitiveServices/commitmentPlans/", false); + uri.AppendPath(commitmentPlanName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdatePlanRequest(string subscriptionId, string resourceGroupName, string commitmentPlanName, CommitmentPlanData data) { var message = _pipeline.CreateMessage(); @@ -454,6 +531,20 @@ public Response CreateOrUpdatePlan(string subscriptionId, string resourceGroupNa } } + internal RequestUriBuilder CreateUpdatePlanRequestUri(string subscriptionId, string resourceGroupName, string commitmentPlanName, CognitiveServicesCommitmentPlanPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.CognitiveServices/commitmentPlans/", false); + uri.AppendPath(commitmentPlanName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdatePlanRequest(string subscriptionId, string resourceGroupName, string commitmentPlanName, CognitiveServicesCommitmentPlanPatch patch) { var message = _pipeline.CreateMessage(); @@ -532,6 +623,20 @@ public Response UpdatePlan(string subscriptionId, string resourceGroupName, stri } } + internal RequestUriBuilder CreateDeletePlanRequestUri(string subscriptionId, string resourceGroupName, string commitmentPlanName) + { + 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.CognitiveServices/commitmentPlans/", false); + uri.AppendPath(commitmentPlanName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeletePlanRequest(string subscriptionId, string resourceGroupName, string commitmentPlanName) { var message = _pipeline.CreateMessage(); @@ -604,6 +709,20 @@ public Response DeletePlan(string subscriptionId, string resourceGroupName, stri } } + internal RequestUriBuilder CreateGetPlanRequestUri(string subscriptionId, string resourceGroupName, string commitmentPlanName) + { + 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.CognitiveServices/commitmentPlans/", false); + uri.AppendPath(commitmentPlanName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetPlanRequest(string subscriptionId, string resourceGroupName, string commitmentPlanName) { var message = _pipeline.CreateMessage(); @@ -686,6 +805,19 @@ public Response GetPlan(string subscriptionId, string resour } } + internal RequestUriBuilder CreateListPlansByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.CognitiveServices/commitmentPlans", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListPlansByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -759,6 +891,17 @@ public Response ListPlansByResourceGroup(string subscr } } + internal RequestUriBuilder CreateListPlansBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.CognitiveServices/commitmentPlans", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListPlansBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -826,6 +969,21 @@ public Response ListPlansBySubscription(string subscri } } + internal RequestUriBuilder CreateListAssociationsRequestUri(string subscriptionId, string resourceGroupName, string commitmentPlanName) + { + 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.CognitiveServices/commitmentPlans/", false); + uri.AppendPath(commitmentPlanName, true); + uri.AppendPath("/accountAssociations", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListAssociationsRequest(string subscriptionId, string resourceGroupName, string commitmentPlanName) { var message = _pipeline.CreateMessage(); @@ -905,6 +1063,22 @@ public Response ListAssociations(str } } + internal RequestUriBuilder CreateGetAssociationRequestUri(string subscriptionId, string resourceGroupName, string commitmentPlanName, string commitmentPlanAssociationName) + { + 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.CognitiveServices/commitmentPlans/", false); + uri.AppendPath(commitmentPlanName, true); + uri.AppendPath("/accountAssociations/", false); + uri.AppendPath(commitmentPlanAssociationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetAssociationRequest(string subscriptionId, string resourceGroupName, string commitmentPlanName, string commitmentPlanAssociationName) { var message = _pipeline.CreateMessage(); @@ -993,6 +1167,22 @@ public Response GetAssociation(string subs } } + internal RequestUriBuilder CreateCreateOrUpdateAssociationRequestUri(string subscriptionId, string resourceGroupName, string commitmentPlanName, string commitmentPlanAssociationName, CommitmentPlanAccountAssociationData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.CognitiveServices/commitmentPlans/", false); + uri.AppendPath(commitmentPlanName, true); + uri.AppendPath("/accountAssociations/", false); + uri.AppendPath(commitmentPlanAssociationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateAssociationRequest(string subscriptionId, string resourceGroupName, string commitmentPlanName, string commitmentPlanAssociationName, CommitmentPlanAccountAssociationData data) { var message = _pipeline.CreateMessage(); @@ -1077,6 +1267,22 @@ public Response CreateOrUpdateAssociation(string subscriptionId, string resource } } + internal RequestUriBuilder CreateDeleteAssociationRequestUri(string subscriptionId, string resourceGroupName, string commitmentPlanName, string commitmentPlanAssociationName) + { + 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.CognitiveServices/commitmentPlans/", false); + uri.AppendPath(commitmentPlanName, true); + uri.AppendPath("/accountAssociations/", false); + uri.AppendPath(commitmentPlanAssociationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteAssociationRequest(string subscriptionId, string resourceGroupName, string commitmentPlanName, string commitmentPlanAssociationName) { var message = _pipeline.CreateMessage(); @@ -1155,6 +1361,14 @@ public Response DeleteAssociation(string subscriptionId, string resourceGroupNam } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string accountName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); @@ -1231,6 +1445,14 @@ public Response ListNextPage(string nextLink, string s } } + internal RequestUriBuilder CreateListPlansByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListPlansByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -1303,6 +1525,14 @@ public Response ListPlansByResourceGroupNextPage(strin } } + internal RequestUriBuilder CreateListPlansBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListPlansBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -1371,6 +1601,14 @@ public Response ListPlansBySubscriptionNextPage(string } } + internal RequestUriBuilder CreateListAssociationsNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string commitmentPlanName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListAssociationsNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string commitmentPlanName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/RestOperations/CommitmentTiersRestOperations.cs b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/RestOperations/CommitmentTiersRestOperations.cs index 0a01852a3adf..e15c21199c4c 100644 --- a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/RestOperations/CommitmentTiersRestOperations.cs +++ b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/RestOperations/CommitmentTiersRestOperations.cs @@ -37,6 +37,19 @@ public CommitmentTiersRestOperations(HttpPipeline pipeline, string applicationId _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, AzureLocation location) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.CognitiveServices/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/commitmentTiers", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, AzureLocation location) { var message = _pipeline.CreateMessage(); @@ -108,6 +121,14 @@ public Response List(string subscriptionId, AzureLocat } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, AzureLocation location) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, AzureLocation location) { var message = _pipeline.CreateMessage(); diff --git a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/RestOperations/DeletedAccountsRestOperations.cs b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/RestOperations/DeletedAccountsRestOperations.cs index e504d8cd258c..eddc6e38bcab 100644 --- a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/RestOperations/DeletedAccountsRestOperations.cs +++ b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/RestOperations/DeletedAccountsRestOperations.cs @@ -37,6 +37,22 @@ public DeletedAccountsRestOperations(HttpPipeline pipeline, string applicationId _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, AzureLocation location, string resourceGroupName, string accountName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.CognitiveServices/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/deletedAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, AzureLocation location, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); @@ -123,6 +139,22 @@ public Response Get(string subscriptionId, AzureLo } } + internal RequestUriBuilder CreatePurgeRequestUri(string subscriptionId, AzureLocation location, string resourceGroupName, string accountName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.CognitiveServices/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/deletedAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreatePurgeRequest(string subscriptionId, AzureLocation location, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); @@ -199,6 +231,17 @@ public Response Purge(string subscriptionId, AzureLocation location, string reso } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.CognitiveServices/deletedAccounts", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -266,6 +309,14 @@ public Response List(string subscriptionId, } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/RestOperations/DeploymentsRestOperations.cs b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/RestOperations/DeploymentsRestOperations.cs index d3588381b65b..29abdc3fdbab 100644 --- a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/RestOperations/DeploymentsRestOperations.cs +++ b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/RestOperations/DeploymentsRestOperations.cs @@ -37,6 +37,21 @@ public DeploymentsRestOperations(HttpPipeline pipeline, string applicationId, Ur _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string accountName) + { + 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.CognitiveServices/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/deployments", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response List(string subscr } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string accountName, string deploymentName) + { + 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.CognitiveServices/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/deployments/", false); + uri.AppendPath(deploymentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string accountName, string deploymentName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscriptionI } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string accountName, string deploymentName, CognitiveServicesAccountDeploymentData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.CognitiveServices/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/deployments/", false); + uri.AppendPath(deploymentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string accountName, string deploymentName, CognitiveServicesAccountDeploymentData data) { var message = _pipeline.CreateMessage(); @@ -288,6 +335,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string accountName, string deploymentName) + { + 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.CognitiveServices/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/deployments/", false); + uri.AppendPath(deploymentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string accountName, string deploymentName) { var message = _pipeline.CreateMessage(); @@ -366,6 +429,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string accountName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/RestOperations/ModelsRestOperations.cs b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/RestOperations/ModelsRestOperations.cs index 2dee87c8d13d..78eae30b80aa 100644 --- a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/RestOperations/ModelsRestOperations.cs +++ b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/RestOperations/ModelsRestOperations.cs @@ -37,6 +37,19 @@ public ModelsRestOperations(HttpPipeline pipeline, string applicationId, Uri end _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, AzureLocation location) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.CognitiveServices/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/models", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, AzureLocation location) { var message = _pipeline.CreateMessage(); @@ -108,6 +121,14 @@ public Response List(string subscriptionId, Az } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, AzureLocation location) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, AzureLocation location) { var message = _pipeline.CreateMessage(); diff --git a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs index 56317b5f99f8..dc18d98fd79d 100644 --- a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs +++ b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs @@ -37,6 +37,21 @@ public PrivateEndpointConnectionsRestOperations(HttpPipeline pipeline, string ap _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string accountName) + { + 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.CognitiveServices/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/privateEndpointConnections", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response List(strin } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string accountName, string privateEndpointConnectionName) + { + 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.CognitiveServices/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string accountName, string privateEndpointConnectionName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subsc } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string accountName, string privateEndpointConnectionName) + { + 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.CognitiveServices/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string accountName, string privateEndpointConnectionName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs index f549e046935b..439f279853c3 100644 --- a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs +++ b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs @@ -37,6 +37,21 @@ public PrivateLinkResourcesRestOperations(HttpPipeline pipeline, string applicat _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string accountName) + { + 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.CognitiveServices/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/privateLinkResources", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/RestOperations/ResourceSkusRestOperations.cs b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/RestOperations/ResourceSkusRestOperations.cs index 63f3f6a550a2..4dc61ca06b85 100644 --- a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/RestOperations/ResourceSkusRestOperations.cs +++ b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/RestOperations/ResourceSkusRestOperations.cs @@ -37,6 +37,17 @@ public ResourceSkusRestOperations(HttpPipeline pipeline, string applicationId, U _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.CognitiveServices/skus", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,14 @@ public Response List(string subscriptionId, } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/RestOperations/UsagesRestOperations.cs b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/RestOperations/UsagesRestOperations.cs index d3d6eef442a2..153b73eddc32 100644 --- a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/RestOperations/UsagesRestOperations.cs +++ b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/RestOperations/UsagesRestOperations.cs @@ -37,6 +37,23 @@ public UsagesRestOperations(HttpPipeline pipeline, string applicationId, Uri end _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, AzureLocation location, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.CognitiveServices/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/usages", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, AzureLocation location, string filter) { var message = _pipeline.CreateMessage(); @@ -114,6 +131,14 @@ public Response List(string subscriptionId, Azure } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, AzureLocation location, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, AzureLocation location, string filter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/communication/Azure.ResourceManager.Communication/src/Generated/LongRunningOperation/CommunicationArmOperation.cs b/sdk/communication/Azure.ResourceManager.Communication/src/Generated/LongRunningOperation/CommunicationArmOperation.cs index 29f8d718cd22..82c2028ede25 100644 --- a/sdk/communication/Azure.ResourceManager.Communication/src/Generated/LongRunningOperation/CommunicationArmOperation.cs +++ b/sdk/communication/Azure.ResourceManager.Communication/src/Generated/LongRunningOperation/CommunicationArmOperation.cs @@ -20,21 +20,24 @@ internal class CommunicationArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of CommunicationArmOperation for mocking. protected CommunicationArmOperation() { } - internal CommunicationArmOperation(Response response) + internal CommunicationArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal CommunicationArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "CommunicationArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal CommunicationArmOperation(ClientDiagnostics clientDiagnostics, HttpPipe public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/communication/Azure.ResourceManager.Communication/src/Generated/LongRunningOperation/CommunicationArmOperationOfT.cs b/sdk/communication/Azure.ResourceManager.Communication/src/Generated/LongRunningOperation/CommunicationArmOperationOfT.cs index f4bc387ec7d4..7751ba3e1246 100644 --- a/sdk/communication/Azure.ResourceManager.Communication/src/Generated/LongRunningOperation/CommunicationArmOperationOfT.cs +++ b/sdk/communication/Azure.ResourceManager.Communication/src/Generated/LongRunningOperation/CommunicationArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class CommunicationArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of CommunicationArmOperation for mocking. protected CommunicationArmOperation() { } - internal CommunicationArmOperation(Response response) + internal CommunicationArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal CommunicationArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "CommunicationArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal CommunicationArmOperation(IOperationSource source, ClientDiagnostics public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/communication/Azure.ResourceManager.Communication/src/Generated/Models/CommunicationDomainResource.Serialization.cs b/sdk/communication/Azure.ResourceManager.Communication/src/Generated/Models/CommunicationDomainResource.Serialization.cs new file mode 100644 index 000000000000..f471b426d40b --- /dev/null +++ b/sdk/communication/Azure.ResourceManager.Communication/src/Generated/Models/CommunicationDomainResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Communication +{ + public partial class CommunicationDomainResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + CommunicationDomainResourceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + CommunicationDomainResourceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/communication/Azure.ResourceManager.Communication/src/Generated/Models/CommunicationServiceResource.Serialization.cs b/sdk/communication/Azure.ResourceManager.Communication/src/Generated/Models/CommunicationServiceResource.Serialization.cs new file mode 100644 index 000000000000..f548bcccdea3 --- /dev/null +++ b/sdk/communication/Azure.ResourceManager.Communication/src/Generated/Models/CommunicationServiceResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Communication +{ + public partial class CommunicationServiceResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + CommunicationServiceResourceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + CommunicationServiceResourceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/communication/Azure.ResourceManager.Communication/src/Generated/Models/EmailServiceResource.Serialization.cs b/sdk/communication/Azure.ResourceManager.Communication/src/Generated/Models/EmailServiceResource.Serialization.cs new file mode 100644 index 000000000000..48edf0fc0b7e --- /dev/null +++ b/sdk/communication/Azure.ResourceManager.Communication/src/Generated/Models/EmailServiceResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Communication +{ + public partial class EmailServiceResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + EmailServiceResourceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + EmailServiceResourceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/communication/Azure.ResourceManager.Communication/src/Generated/Models/SenderUsernameResource.Serialization.cs b/sdk/communication/Azure.ResourceManager.Communication/src/Generated/Models/SenderUsernameResource.Serialization.cs new file mode 100644 index 000000000000..a7e331ee0c06 --- /dev/null +++ b/sdk/communication/Azure.ResourceManager.Communication/src/Generated/Models/SenderUsernameResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Communication +{ + public partial class SenderUsernameResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SenderUsernameResourceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SenderUsernameResourceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/communication/Azure.ResourceManager.Communication/src/Generated/Models/SuppressionListAddressResource.Serialization.cs b/sdk/communication/Azure.ResourceManager.Communication/src/Generated/Models/SuppressionListAddressResource.Serialization.cs new file mode 100644 index 000000000000..7ccff0e6800a --- /dev/null +++ b/sdk/communication/Azure.ResourceManager.Communication/src/Generated/Models/SuppressionListAddressResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Communication +{ + public partial class SuppressionListAddressResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SuppressionListAddressResourceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SuppressionListAddressResourceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/communication/Azure.ResourceManager.Communication/src/Generated/Models/SuppressionListResource.Serialization.cs b/sdk/communication/Azure.ResourceManager.Communication/src/Generated/Models/SuppressionListResource.Serialization.cs new file mode 100644 index 000000000000..0a71441005d5 --- /dev/null +++ b/sdk/communication/Azure.ResourceManager.Communication/src/Generated/Models/SuppressionListResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Communication +{ + public partial class SuppressionListResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SuppressionListResourceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SuppressionListResourceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/communication/Azure.ResourceManager.Communication/src/Generated/RestOperations/CommunicationServicesRestOperations.cs b/sdk/communication/Azure.ResourceManager.Communication/src/Generated/RestOperations/CommunicationServicesRestOperations.cs index 70b387e74807..4148351d0198 100644 --- a/sdk/communication/Azure.ResourceManager.Communication/src/Generated/RestOperations/CommunicationServicesRestOperations.cs +++ b/sdk/communication/Azure.ResourceManager.Communication/src/Generated/RestOperations/CommunicationServicesRestOperations.cs @@ -37,6 +37,17 @@ public CommunicationServicesRestOperations(HttpPipeline pipeline, string applica _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCheckNameAvailabilityRequestUri(string subscriptionId, CommunicationServiceNameAvailabilityContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Communication/checkNameAvailability", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCheckNameAvailabilityRequest(string subscriptionId, CommunicationServiceNameAvailabilityContent content) { var message = _pipeline.CreateMessage(); @@ -112,6 +123,21 @@ public Response CheckNameAvailability(strin } } + internal RequestUriBuilder CreateLinkNotificationHubRequestUri(string subscriptionId, string resourceGroupName, string communicationServiceName, LinkNotificationHubContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Communication/communicationServices/", false); + uri.AppendPath(communicationServiceName, true); + uri.AppendPath("/linkNotificationHub", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateLinkNotificationHubRequest(string subscriptionId, string resourceGroupName, string communicationServiceName, LinkNotificationHubContent content) { var message = _pipeline.CreateMessage(); @@ -200,6 +226,17 @@ public Response LinkNotificationHub(string subscriptionId } } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Communication/communicationServices", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -267,6 +304,19 @@ public Response ListBySubscription(string subs } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.Communication/communicationServices", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -340,6 +390,20 @@ public Response ListByResourceGroup(string sub } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string communicationServiceName, CommunicationServiceResourcePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Communication/communicationServices/", false); + uri.AppendPath(communicationServiceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string communicationServiceName, CommunicationServiceResourcePatch patch) { var message = _pipeline.CreateMessage(); @@ -426,6 +490,20 @@ public Response Update(string subscriptionId, } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string communicationServiceName) + { + 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.Communication/communicationServices/", false); + uri.AppendPath(communicationServiceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string communicationServiceName) { var message = _pipeline.CreateMessage(); @@ -508,6 +586,20 @@ public Response Get(string subscriptionId, str } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string communicationServiceName, CommunicationServiceResourceData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Communication/communicationServices/", false); + uri.AppendPath(communicationServiceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string communicationServiceName, CommunicationServiceResourceData data) { var message = _pipeline.CreateMessage(); @@ -586,6 +678,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string communicationServiceName) + { + 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.Communication/communicationServices/", false); + uri.AppendPath(communicationServiceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string communicationServiceName) { var message = _pipeline.CreateMessage(); @@ -658,6 +764,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateListKeysRequestUri(string subscriptionId, string resourceGroupName, string communicationServiceName) + { + 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.Communication/communicationServices/", false); + uri.AppendPath(communicationServiceName, true); + uri.AppendPath("/listKeys", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListKeysRequest(string subscriptionId, string resourceGroupName, string communicationServiceName) { var message = _pipeline.CreateMessage(); @@ -737,6 +858,21 @@ public Response ListKeys(string subscriptionId, string } } + internal RequestUriBuilder CreateRegenerateKeyRequestUri(string subscriptionId, string resourceGroupName, string communicationServiceName, RegenerateCommunicationServiceKeyContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Communication/communicationServices/", false); + uri.AppendPath(communicationServiceName, true); + uri.AppendPath("/regenerateKey", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRegenerateKeyRequest(string subscriptionId, string resourceGroupName, string communicationServiceName, RegenerateCommunicationServiceKeyContent content) { var message = _pipeline.CreateMessage(); @@ -824,6 +960,14 @@ public Response RegenerateKey(string subscriptionId, s } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -892,6 +1036,14 @@ public Response ListBySubscriptionNextPage(str } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/communication/Azure.ResourceManager.Communication/src/Generated/RestOperations/DomainsRestOperations.cs b/sdk/communication/Azure.ResourceManager.Communication/src/Generated/RestOperations/DomainsRestOperations.cs index b5e2a3af811a..df864c556cbc 100644 --- a/sdk/communication/Azure.ResourceManager.Communication/src/Generated/RestOperations/DomainsRestOperations.cs +++ b/sdk/communication/Azure.ResourceManager.Communication/src/Generated/RestOperations/DomainsRestOperations.cs @@ -37,6 +37,22 @@ public DomainsRestOperations(HttpPipeline pipeline, string applicationId, Uri en _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string emailServiceName, string domainName) + { + 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.Communication/emailServices/", false); + uri.AppendPath(emailServiceName, true); + uri.AppendPath("/domains/", false); + uri.AppendPath(domainName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string emailServiceName, string domainName) { var message = _pipeline.CreateMessage(); @@ -125,6 +141,22 @@ public Response Get(string subscriptionId, stri } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string emailServiceName, string domainName, CommunicationDomainResourceData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Communication/emailServices/", false); + uri.AppendPath(emailServiceName, true); + uri.AppendPath("/domains/", false); + uri.AppendPath(domainName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string emailServiceName, string domainName, CommunicationDomainResourceData data) { var message = _pipeline.CreateMessage(); @@ -209,6 +241,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string emailServiceName, string domainName) + { + 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.Communication/emailServices/", false); + uri.AppendPath(emailServiceName, true); + uri.AppendPath("/domains/", false); + uri.AppendPath(domainName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string emailServiceName, string domainName) { var message = _pipeline.CreateMessage(); @@ -287,6 +335,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string e } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string emailServiceName, string domainName, CommunicationDomainResourcePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Communication/emailServices/", false); + uri.AppendPath(emailServiceName, true); + uri.AppendPath("/domains/", false); + uri.AppendPath(domainName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string emailServiceName, string domainName, CommunicationDomainResourcePatch patch) { var message = _pipeline.CreateMessage(); @@ -371,6 +435,21 @@ public Response Update(string subscriptionId, string resourceGroupName, string e } } + internal RequestUriBuilder CreateListByEmailServiceResourceRequestUri(string subscriptionId, string resourceGroupName, string emailServiceName) + { + 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.Communication/emailServices/", false); + uri.AppendPath(emailServiceName, true); + uri.AppendPath("/domains", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByEmailServiceResourceRequest(string subscriptionId, string resourceGroupName, string emailServiceName) { var message = _pipeline.CreateMessage(); @@ -450,6 +529,23 @@ public Response ListByEmailServiceResource(string subscripti } } + internal RequestUriBuilder CreateInitiateVerificationRequestUri(string subscriptionId, string resourceGroupName, string emailServiceName, string domainName, DomainsRecordVerificationContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Communication/emailServices/", false); + uri.AppendPath(emailServiceName, true); + uri.AppendPath("/domains/", false); + uri.AppendPath(domainName, true); + uri.AppendPath("/initiateVerification", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateInitiateVerificationRequest(string subscriptionId, string resourceGroupName, string emailServiceName, string domainName, DomainsRecordVerificationContent content) { var message = _pipeline.CreateMessage(); @@ -533,6 +629,23 @@ public Response InitiateVerification(string subscriptionId, string resourceGroup } } + internal RequestUriBuilder CreateCancelVerificationRequestUri(string subscriptionId, string resourceGroupName, string emailServiceName, string domainName, DomainsRecordVerificationContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Communication/emailServices/", false); + uri.AppendPath(emailServiceName, true); + uri.AppendPath("/domains/", false); + uri.AppendPath(domainName, true); + uri.AppendPath("/cancelVerification", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCancelVerificationRequest(string subscriptionId, string resourceGroupName, string emailServiceName, string domainName, DomainsRecordVerificationContent content) { var message = _pipeline.CreateMessage(); @@ -616,6 +729,14 @@ public Response CancelVerification(string subscriptionId, string resourceGroupNa } } + internal RequestUriBuilder CreateListByEmailServiceResourceNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string emailServiceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByEmailServiceResourceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string emailServiceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/communication/Azure.ResourceManager.Communication/src/Generated/RestOperations/EmailServicesRestOperations.cs b/sdk/communication/Azure.ResourceManager.Communication/src/Generated/RestOperations/EmailServicesRestOperations.cs index 2052abd88d98..87cfbd375030 100644 --- a/sdk/communication/Azure.ResourceManager.Communication/src/Generated/RestOperations/EmailServicesRestOperations.cs +++ b/sdk/communication/Azure.ResourceManager.Communication/src/Generated/RestOperations/EmailServicesRestOperations.cs @@ -38,6 +38,20 @@ public EmailServicesRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string emailServiceName) + { + 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.Communication/emailServices/", false); + uri.AppendPath(emailServiceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string emailServiceName) { var message = _pipeline.CreateMessage(); @@ -120,6 +134,20 @@ public Response Get(string subscriptionId, string reso } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string emailServiceName, EmailServiceResourceData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Communication/emailServices/", false); + uri.AppendPath(emailServiceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string emailServiceName, EmailServiceResourceData data) { var message = _pipeline.CreateMessage(); @@ -198,6 +226,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string emailServiceName) + { + 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.Communication/emailServices/", false); + uri.AppendPath(emailServiceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string emailServiceName) { var message = _pipeline.CreateMessage(); @@ -270,6 +312,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string e } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string emailServiceName, EmailServiceResourcePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Communication/emailServices/", false); + uri.AppendPath(emailServiceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string emailServiceName, EmailServiceResourcePatch patch) { var message = _pipeline.CreateMessage(); @@ -348,6 +404,17 @@ public Response Update(string subscriptionId, string resourceGroupName, string e } } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Communication/emailServices", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -415,6 +482,19 @@ public Response ListBySubscription(string subscription } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.Communication/emailServices", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -488,6 +568,17 @@ public Response ListByResourceGroup(string subscriptio } } + internal RequestUriBuilder CreateListVerifiedExchangeOnlineDomainsRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Communication/listVerifiedExchangeOnlineDomains", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListVerifiedExchangeOnlineDomainsRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -565,6 +656,14 @@ public Response> ListVerifiedExchangeOnlineDomains(string } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -633,6 +732,14 @@ public Response ListBySubscriptionNextPage(string next } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/communication/Azure.ResourceManager.Communication/src/Generated/RestOperations/SenderUsernamesRestOperations.cs b/sdk/communication/Azure.ResourceManager.Communication/src/Generated/RestOperations/SenderUsernamesRestOperations.cs index 35ac49ec0fea..71c2de4f28d4 100644 --- a/sdk/communication/Azure.ResourceManager.Communication/src/Generated/RestOperations/SenderUsernamesRestOperations.cs +++ b/sdk/communication/Azure.ResourceManager.Communication/src/Generated/RestOperations/SenderUsernamesRestOperations.cs @@ -37,6 +37,23 @@ public SenderUsernamesRestOperations(HttpPipeline pipeline, string applicationId _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByDomainsRequestUri(string subscriptionId, string resourceGroupName, string emailServiceName, string domainName) + { + 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.Communication/emailServices/", false); + uri.AppendPath(emailServiceName, true); + uri.AppendPath("/domains/", false); + uri.AppendPath(domainName, true); + uri.AppendPath("/senderUsernames", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByDomainsRequest(string subscriptionId, string resourceGroupName, string emailServiceName, string domainName) { var message = _pipeline.CreateMessage(); @@ -122,6 +139,24 @@ internal HttpMessage CreateListByDomainsRequest(string subscriptionId, string re } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string emailServiceName, string domainName, string senderUsername) + { + 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.Communication/emailServices/", false); + uri.AppendPath(emailServiceName, true); + uri.AppendPath("/domains/", false); + uri.AppendPath(domainName, true); + uri.AppendPath("/senderUsernames/", false); + uri.AppendPath(senderUsername, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string emailServiceName, string domainName, string senderUsername) { var message = _pipeline.CreateMessage(); @@ -216,6 +251,24 @@ public Response Get(string subscriptionId, string re } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string emailServiceName, string domainName, string senderUsername, SenderUsernameResourceData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Communication/emailServices/", false); + uri.AppendPath(emailServiceName, true); + uri.AppendPath("/domains/", false); + uri.AppendPath(domainName, true); + uri.AppendPath("/senderUsernames/", false); + uri.AppendPath(senderUsername, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string emailServiceName, string domainName, string senderUsername, SenderUsernameResourceData data) { var message = _pipeline.CreateMessage(); @@ -316,6 +369,24 @@ public Response CreateOrUpdate(string subscriptionId } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string emailServiceName, string domainName, string senderUsername) + { + 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.Communication/emailServices/", false); + uri.AppendPath(emailServiceName, true); + uri.AppendPath("/domains/", false); + uri.AppendPath(domainName, true); + uri.AppendPath("/senderUsernames/", false); + uri.AppendPath(senderUsername, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string emailServiceName, string domainName, string senderUsername) { var message = _pipeline.CreateMessage(); @@ -398,6 +469,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string e } } + internal RequestUriBuilder CreateListByDomainsNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string emailServiceName, string domainName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByDomainsNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string emailServiceName, string domainName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/communication/Azure.ResourceManager.Communication/src/Generated/RestOperations/SuppressionListAddressesRestOperations.cs b/sdk/communication/Azure.ResourceManager.Communication/src/Generated/RestOperations/SuppressionListAddressesRestOperations.cs index c4ba8365a39f..2659c9ad9303 100644 --- a/sdk/communication/Azure.ResourceManager.Communication/src/Generated/RestOperations/SuppressionListAddressesRestOperations.cs +++ b/sdk/communication/Azure.ResourceManager.Communication/src/Generated/RestOperations/SuppressionListAddressesRestOperations.cs @@ -37,6 +37,25 @@ public SuppressionListAddressesRestOperations(HttpPipeline pipeline, string appl _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string emailServiceName, string domainName, string suppressionListName) + { + 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.Communication/emailServices/", false); + uri.AppendPath(emailServiceName, true); + uri.AppendPath("/domains/", false); + uri.AppendPath(domainName, true); + uri.AppendPath("/suppressionLists/", false); + uri.AppendPath(suppressionListName, true); + uri.AppendPath("/suppressionListAddresses", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string emailServiceName, string domainName, string suppressionListName) { var message = _pipeline.CreateMessage(); @@ -128,6 +147,26 @@ internal HttpMessage CreateListRequest(string subscriptionId, string resourceGro } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string emailServiceName, string domainName, string suppressionListName, string addressId) + { + 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.Communication/emailServices/", false); + uri.AppendPath(emailServiceName, true); + uri.AppendPath("/domains/", false); + uri.AppendPath(domainName, true); + uri.AppendPath("/suppressionLists/", false); + uri.AppendPath(suppressionListName, true); + uri.AppendPath("/suppressionListAddresses/", false); + uri.AppendPath(addressId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string emailServiceName, string domainName, string suppressionListName, string addressId) { var message = _pipeline.CreateMessage(); @@ -228,6 +267,26 @@ public Response Get(string subscriptionId, s } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string emailServiceName, string domainName, string suppressionListName, string addressId, SuppressionListAddressResourceData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Communication/emailServices/", false); + uri.AppendPath(emailServiceName, true); + uri.AppendPath("/domains/", false); + uri.AppendPath(domainName, true); + uri.AppendPath("/suppressionLists/", false); + uri.AppendPath(suppressionListName, true); + uri.AppendPath("/suppressionListAddresses/", false); + uri.AppendPath(addressId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string emailServiceName, string domainName, string suppressionListName, string addressId, SuppressionListAddressResourceData data) { var message = _pipeline.CreateMessage(); @@ -334,6 +393,26 @@ public Response CreateOrUpdate(string subscr } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string emailServiceName, string domainName, string suppressionListName, string addressId) + { + 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.Communication/emailServices/", false); + uri.AppendPath(emailServiceName, true); + uri.AppendPath("/domains/", false); + uri.AppendPath(domainName, true); + uri.AppendPath("/suppressionLists/", false); + uri.AppendPath(suppressionListName, true); + uri.AppendPath("/suppressionListAddresses/", false); + uri.AppendPath(addressId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string emailServiceName, string domainName, string suppressionListName, string addressId) { var message = _pipeline.CreateMessage(); @@ -422,6 +501,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string e } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string emailServiceName, string domainName, string suppressionListName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string emailServiceName, string domainName, string suppressionListName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/communication/Azure.ResourceManager.Communication/src/Generated/RestOperations/SuppressionListsRestOperations.cs b/sdk/communication/Azure.ResourceManager.Communication/src/Generated/RestOperations/SuppressionListsRestOperations.cs index 63ee38d7e468..f460d2a137ee 100644 --- a/sdk/communication/Azure.ResourceManager.Communication/src/Generated/RestOperations/SuppressionListsRestOperations.cs +++ b/sdk/communication/Azure.ResourceManager.Communication/src/Generated/RestOperations/SuppressionListsRestOperations.cs @@ -37,6 +37,23 @@ public SuppressionListsRestOperations(HttpPipeline pipeline, string applicationI _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByDomainRequestUri(string subscriptionId, string resourceGroupName, string emailServiceName, string domainName) + { + 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.Communication/emailServices/", false); + uri.AppendPath(emailServiceName, true); + uri.AppendPath("/domains/", false); + uri.AppendPath(domainName, true); + uri.AppendPath("/suppressionLists", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByDomainRequest(string subscriptionId, string resourceGroupName, string emailServiceName, string domainName) { var message = _pipeline.CreateMessage(); @@ -122,6 +139,24 @@ internal HttpMessage CreateListByDomainRequest(string subscriptionId, string res } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string emailServiceName, string domainName, string suppressionListName) + { + 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.Communication/emailServices/", false); + uri.AppendPath(emailServiceName, true); + uri.AppendPath("/domains/", false); + uri.AppendPath(domainName, true); + uri.AppendPath("/suppressionLists/", false); + uri.AppendPath(suppressionListName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string emailServiceName, string domainName, string suppressionListName) { var message = _pipeline.CreateMessage(); @@ -216,6 +251,24 @@ public Response Get(string subscriptionId, string r } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string emailServiceName, string domainName, string suppressionListName, SuppressionListResourceData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Communication/emailServices/", false); + uri.AppendPath(emailServiceName, true); + uri.AppendPath("/domains/", false); + uri.AppendPath(domainName, true); + uri.AppendPath("/suppressionLists/", false); + uri.AppendPath(suppressionListName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string emailServiceName, string domainName, string suppressionListName, SuppressionListResourceData data) { var message = _pipeline.CreateMessage(); @@ -316,6 +369,24 @@ public Response CreateOrUpdate(string subscriptionI } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string emailServiceName, string domainName, string suppressionListName) + { + 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.Communication/emailServices/", false); + uri.AppendPath(emailServiceName, true); + uri.AppendPath("/domains/", false); + uri.AppendPath(domainName, true); + uri.AppendPath("/suppressionLists/", false); + uri.AppendPath(suppressionListName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string emailServiceName, string domainName, string suppressionListName) { var message = _pipeline.CreateMessage(); @@ -398,6 +469,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string e } } + internal RequestUriBuilder CreateListByDomainNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string emailServiceName, string domainName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByDomainNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string emailServiceName, string domainName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/communication/Azure.ResourceManager.Communication/src/Generated/SenderUsernameResource.cs b/sdk/communication/Azure.ResourceManager.Communication/src/Generated/SenderUsernameResource.cs index 949433b3a514..a3e3bb462d2c 100644 --- a/sdk/communication/Azure.ResourceManager.Communication/src/Generated/SenderUsernameResource.cs +++ b/sdk/communication/Azure.ResourceManager.Communication/src/Generated/SenderUsernameResource.cs @@ -201,7 +201,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _senderUsernameResourceSenderUsernamesRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new CommunicationArmOperation(response); + var uri = _senderUsernameResourceSenderUsernamesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new CommunicationArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -243,7 +245,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _senderUsernameResourceSenderUsernamesRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new CommunicationArmOperation(response); + var uri = _senderUsernameResourceSenderUsernamesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new CommunicationArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -289,7 +293,9 @@ public virtual async Task> UpdateAsync(Wait try { var response = await _senderUsernameResourceSenderUsernamesRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new CommunicationArmOperation(Response.FromValue(new SenderUsernameResource(Client, response), response.GetRawResponse())); + var uri = _senderUsernameResourceSenderUsernamesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new CommunicationArmOperation(Response.FromValue(new SenderUsernameResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -335,7 +341,9 @@ public virtual ArmOperation Update(WaitUntil waitUntil, try { var response = _senderUsernameResourceSenderUsernamesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new CommunicationArmOperation(Response.FromValue(new SenderUsernameResource(Client, response), response.GetRawResponse())); + var uri = _senderUsernameResourceSenderUsernamesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new CommunicationArmOperation(Response.FromValue(new SenderUsernameResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/communication/Azure.ResourceManager.Communication/src/Generated/SenderUsernameResourceCollection.cs b/sdk/communication/Azure.ResourceManager.Communication/src/Generated/SenderUsernameResourceCollection.cs index 9284863a4ff9..3d5523def2ea 100644 --- a/sdk/communication/Azure.ResourceManager.Communication/src/Generated/SenderUsernameResourceCollection.cs +++ b/sdk/communication/Azure.ResourceManager.Communication/src/Generated/SenderUsernameResourceCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> CreateOrUpdateAs try { var response = await _senderUsernameResourceSenderUsernamesRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, senderUsername, data, cancellationToken).ConfigureAwait(false); - var operation = new CommunicationArmOperation(Response.FromValue(new SenderUsernameResource(Client, response), response.GetRawResponse())); + var uri = _senderUsernameResourceSenderUsernamesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, senderUsername, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new CommunicationArmOperation(Response.FromValue(new SenderUsernameResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wai try { var response = _senderUsernameResourceSenderUsernamesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, senderUsername, data, cancellationToken); - var operation = new CommunicationArmOperation(Response.FromValue(new SenderUsernameResource(Client, response), response.GetRawResponse())); + var uri = _senderUsernameResourceSenderUsernamesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, senderUsername, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new CommunicationArmOperation(Response.FromValue(new SenderUsernameResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/communication/Azure.ResourceManager.Communication/src/Generated/SuppressionListAddressResource.cs b/sdk/communication/Azure.ResourceManager.Communication/src/Generated/SuppressionListAddressResource.cs index dfab27bc4bbd..92ef58555562 100644 --- a/sdk/communication/Azure.ResourceManager.Communication/src/Generated/SuppressionListAddressResource.cs +++ b/sdk/communication/Azure.ResourceManager.Communication/src/Generated/SuppressionListAddressResource.cs @@ -202,7 +202,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _suppressionListAddressResourceSuppressionListAddressesRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new CommunicationArmOperation(response); + var uri = _suppressionListAddressResourceSuppressionListAddressesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new CommunicationArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -244,7 +246,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _suppressionListAddressResourceSuppressionListAddressesRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new CommunicationArmOperation(response); + var uri = _suppressionListAddressResourceSuppressionListAddressesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new CommunicationArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -290,7 +294,9 @@ public virtual async Task> UpdateAs try { var response = await _suppressionListAddressResourceSuppressionListAddressesRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new CommunicationArmOperation(Response.FromValue(new SuppressionListAddressResource(Client, response), response.GetRawResponse())); + var uri = _suppressionListAddressResourceSuppressionListAddressesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new CommunicationArmOperation(Response.FromValue(new SuppressionListAddressResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -336,7 +342,9 @@ public virtual ArmOperation Update(WaitUntil wai try { var response = _suppressionListAddressResourceSuppressionListAddressesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new CommunicationArmOperation(Response.FromValue(new SuppressionListAddressResource(Client, response), response.GetRawResponse())); + var uri = _suppressionListAddressResourceSuppressionListAddressesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new CommunicationArmOperation(Response.FromValue(new SuppressionListAddressResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/communication/Azure.ResourceManager.Communication/src/Generated/SuppressionListAddressResourceCollection.cs b/sdk/communication/Azure.ResourceManager.Communication/src/Generated/SuppressionListAddressResourceCollection.cs index c6505beeb636..e9600f6c9186 100644 --- a/sdk/communication/Azure.ResourceManager.Communication/src/Generated/SuppressionListAddressResourceCollection.cs +++ b/sdk/communication/Azure.ResourceManager.Communication/src/Generated/SuppressionListAddressResourceCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> CreateOr try { var response = await _suppressionListAddressResourceSuppressionListAddressesRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, addressId, data, cancellationToken).ConfigureAwait(false); - var operation = new CommunicationArmOperation(Response.FromValue(new SuppressionListAddressResource(Client, response), response.GetRawResponse())); + var uri = _suppressionListAddressResourceSuppressionListAddressesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, addressId, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new CommunicationArmOperation(Response.FromValue(new SuppressionListAddressResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(WaitU try { var response = _suppressionListAddressResourceSuppressionListAddressesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, addressId, data, cancellationToken); - var operation = new CommunicationArmOperation(Response.FromValue(new SuppressionListAddressResource(Client, response), response.GetRawResponse())); + var uri = _suppressionListAddressResourceSuppressionListAddressesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, addressId, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new CommunicationArmOperation(Response.FromValue(new SuppressionListAddressResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/communication/Azure.ResourceManager.Communication/src/Generated/SuppressionListResource.cs b/sdk/communication/Azure.ResourceManager.Communication/src/Generated/SuppressionListResource.cs index 82d717c238c0..ec6a832d3af8 100644 --- a/sdk/communication/Azure.ResourceManager.Communication/src/Generated/SuppressionListResource.cs +++ b/sdk/communication/Azure.ResourceManager.Communication/src/Generated/SuppressionListResource.cs @@ -270,7 +270,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _suppressionListResourceSuppressionListsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new CommunicationArmOperation(response); + var uri = _suppressionListResourceSuppressionListsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new CommunicationArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -312,7 +314,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _suppressionListResourceSuppressionListsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new CommunicationArmOperation(response); + var uri = _suppressionListResourceSuppressionListsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new CommunicationArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -358,7 +362,9 @@ public virtual async Task> UpdateAsync(Wai try { var response = await _suppressionListResourceSuppressionListsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new CommunicationArmOperation(Response.FromValue(new SuppressionListResource(Client, response), response.GetRawResponse())); + var uri = _suppressionListResourceSuppressionListsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new CommunicationArmOperation(Response.FromValue(new SuppressionListResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -404,7 +410,9 @@ public virtual ArmOperation Update(WaitUntil waitUntil, try { var response = _suppressionListResourceSuppressionListsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new CommunicationArmOperation(Response.FromValue(new SuppressionListResource(Client, response), response.GetRawResponse())); + var uri = _suppressionListResourceSuppressionListsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new CommunicationArmOperation(Response.FromValue(new SuppressionListResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/communication/Azure.ResourceManager.Communication/src/Generated/SuppressionListResourceCollection.cs b/sdk/communication/Azure.ResourceManager.Communication/src/Generated/SuppressionListResourceCollection.cs index 6274cce71a8b..b4df9eebf81d 100644 --- a/sdk/communication/Azure.ResourceManager.Communication/src/Generated/SuppressionListResourceCollection.cs +++ b/sdk/communication/Azure.ResourceManager.Communication/src/Generated/SuppressionListResourceCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> CreateOrUpdateA try { var response = await _suppressionListResourceSuppressionListsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, suppressionListName, data, cancellationToken).ConfigureAwait(false); - var operation = new CommunicationArmOperation(Response.FromValue(new SuppressionListResource(Client, response), response.GetRawResponse())); + var uri = _suppressionListResourceSuppressionListsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, suppressionListName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new CommunicationArmOperation(Response.FromValue(new SuppressionListResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wa try { var response = _suppressionListResourceSuppressionListsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, suppressionListName, data, cancellationToken); - var operation = new CommunicationArmOperation(Response.FromValue(new SuppressionListResource(Client, response), response.GetRawResponse())); + var uri = _suppressionListResourceSuppressionListsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, suppressionListName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new CommunicationArmOperation(Response.FromValue(new SuppressionListResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/AvailabilitySetCollection.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/AvailabilitySetCollection.cs index a2bfb90ede0b..b76f7bce0809 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/AvailabilitySetCollection.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/AvailabilitySetCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> CreateOrUpdateA try { var response = await _availabilitySetRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, availabilitySetName, data, cancellationToken).ConfigureAwait(false); - var operation = new ComputeArmOperation(Response.FromValue(new AvailabilitySetResource(Client, response), response.GetRawResponse())); + var uri = _availabilitySetRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, availabilitySetName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ComputeArmOperation(Response.FromValue(new AvailabilitySetResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -140,7 +142,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wa try { var response = _availabilitySetRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, availabilitySetName, data, cancellationToken); - var operation = new ComputeArmOperation(Response.FromValue(new AvailabilitySetResource(Client, response), response.GetRawResponse())); + var uri = _availabilitySetRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, availabilitySetName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ComputeArmOperation(Response.FromValue(new AvailabilitySetResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/AvailabilitySetResource.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/AvailabilitySetResource.cs index 36041eff7b73..da5bba96d6be 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/AvailabilitySetResource.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/AvailabilitySetResource.cs @@ -203,7 +203,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _availabilitySetRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new ComputeArmOperation(response); + var uri = _availabilitySetRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ComputeArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -245,7 +247,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _availabilitySetRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); - var operation = new ComputeArmOperation(response); + var uri = _availabilitySetRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ComputeArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CapacityReservationGroupCollection.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CapacityReservationGroupCollection.cs index 620c73592d37..11a1000bc17d 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CapacityReservationGroupCollection.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CapacityReservationGroupCollection.cs @@ -92,7 +92,9 @@ public virtual async Task> Create try { var response = await _capacityReservationGroupRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, capacityReservationGroupName, data, cancellationToken).ConfigureAwait(false); - var operation = new ComputeArmOperation(Response.FromValue(new CapacityReservationGroupResource(Client, response), response.GetRawResponse())); + var uri = _capacityReservationGroupRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, capacityReservationGroupName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ComputeArmOperation(Response.FromValue(new CapacityReservationGroupResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -141,7 +143,9 @@ public virtual ArmOperation CreateOrUpdate(Wai try { var response = _capacityReservationGroupRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, capacityReservationGroupName, data, cancellationToken); - var operation = new ComputeArmOperation(Response.FromValue(new CapacityReservationGroupResource(Client, response), response.GetRawResponse())); + var uri = _capacityReservationGroupRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, capacityReservationGroupName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ComputeArmOperation(Response.FromValue(new CapacityReservationGroupResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CapacityReservationGroupResource.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CapacityReservationGroupResource.cs index c11f2569b827..440a8f022b2b 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CapacityReservationGroupResource.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CapacityReservationGroupResource.cs @@ -275,7 +275,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _capacityReservationGroupRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new ComputeArmOperation(response); + var uri = _capacityReservationGroupRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ComputeArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -317,7 +319,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _capacityReservationGroupRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); - var operation = new ComputeArmOperation(response); + var uri = _capacityReservationGroupRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ComputeArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/DedicatedHostGroupCollection.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/DedicatedHostGroupCollection.cs index 37ae5f7ad033..9bae74903daa 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/DedicatedHostGroupCollection.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/DedicatedHostGroupCollection.cs @@ -92,7 +92,9 @@ public virtual async Task> CreateOrUpda try { var response = await _dedicatedHostGroupRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, hostGroupName, data, cancellationToken).ConfigureAwait(false); - var operation = new ComputeArmOperation(Response.FromValue(new DedicatedHostGroupResource(Client, response), response.GetRawResponse())); + var uri = _dedicatedHostGroupRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, hostGroupName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ComputeArmOperation(Response.FromValue(new DedicatedHostGroupResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -141,7 +143,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil try { var response = _dedicatedHostGroupRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, hostGroupName, data, cancellationToken); - var operation = new ComputeArmOperation(Response.FromValue(new DedicatedHostGroupResource(Client, response), response.GetRawResponse())); + var uri = _dedicatedHostGroupRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, hostGroupName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ComputeArmOperation(Response.FromValue(new DedicatedHostGroupResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/DedicatedHostGroupResource.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/DedicatedHostGroupResource.cs index 18fc685925e8..62b57668653a 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/DedicatedHostGroupResource.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/DedicatedHostGroupResource.cs @@ -275,7 +275,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _dedicatedHostGroupRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new ComputeArmOperation(response); + var uri = _dedicatedHostGroupRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ComputeArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -317,7 +319,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _dedicatedHostGroupRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); - var operation = new ComputeArmOperation(response); + var uri = _dedicatedHostGroupRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ComputeArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/LongRunningOperation/ComputeArmOperation.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/LongRunningOperation/ComputeArmOperation.cs index 6e267831a51a..9851f26096ab 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/LongRunningOperation/ComputeArmOperation.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/LongRunningOperation/ComputeArmOperation.cs @@ -20,21 +20,24 @@ internal class ComputeArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of ComputeArmOperation for mocking. protected ComputeArmOperation() { } - internal ComputeArmOperation(Response response) + internal ComputeArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal ComputeArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "ComputeArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal ComputeArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline p public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/LongRunningOperation/ComputeArmOperationOfT.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/LongRunningOperation/ComputeArmOperationOfT.cs index 250c2cffebdd..1fdb7936dade 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/LongRunningOperation/ComputeArmOperationOfT.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/LongRunningOperation/ComputeArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class ComputeArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of ComputeArmOperation for mocking. protected ComputeArmOperation() { } - internal ComputeArmOperation(Response response) + internal ComputeArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal ComputeArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "ComputeArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal ComputeArmOperation(IOperationSource source, ClientDiagnostics clien public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/AvailabilitySetResource.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/AvailabilitySetResource.Serialization.cs new file mode 100644 index 000000000000..08886c9e7f97 --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/AvailabilitySetResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Compute +{ + public partial class AvailabilitySetResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + AvailabilitySetData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + AvailabilitySetData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CapacityReservationGroupResource.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CapacityReservationGroupResource.Serialization.cs new file mode 100644 index 000000000000..50b45b24fcdf --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CapacityReservationGroupResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Compute +{ + public partial class CapacityReservationGroupResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + CapacityReservationGroupData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + CapacityReservationGroupData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CapacityReservationResource.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CapacityReservationResource.Serialization.cs new file mode 100644 index 000000000000..9570bda28aae --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CapacityReservationResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Compute +{ + public partial class CapacityReservationResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + CapacityReservationData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + CapacityReservationData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CloudServiceOSFamilyResource.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CloudServiceOSFamilyResource.Serialization.cs new file mode 100644 index 000000000000..3c64670dac67 --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CloudServiceOSFamilyResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Compute +{ + public partial class CloudServiceOSFamilyResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + CloudServiceOSFamilyData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + CloudServiceOSFamilyData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CloudServiceOSVersionResource.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CloudServiceOSVersionResource.Serialization.cs new file mode 100644 index 000000000000..f2ba54acf8a0 --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CloudServiceOSVersionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Compute +{ + public partial class CloudServiceOSVersionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + CloudServiceOSVersionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + CloudServiceOSVersionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CloudServiceResource.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CloudServiceResource.Serialization.cs new file mode 100644 index 000000000000..921c87ce618e --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CloudServiceResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Compute +{ + public partial class CloudServiceResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + CloudServiceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + CloudServiceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CloudServiceRoleInstanceResource.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CloudServiceRoleInstanceResource.Serialization.cs new file mode 100644 index 000000000000..2985dd2fb839 --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CloudServiceRoleInstanceResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Compute +{ + public partial class CloudServiceRoleInstanceResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + CloudServiceRoleInstanceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + CloudServiceRoleInstanceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CloudServiceRoleResource.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CloudServiceRoleResource.Serialization.cs new file mode 100644 index 000000000000..06b3c1162726 --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CloudServiceRoleResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Compute +{ + public partial class CloudServiceRoleResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + CloudServiceRoleData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + CloudServiceRoleData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CommunityGalleryImageResource.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CommunityGalleryImageResource.Serialization.cs new file mode 100644 index 000000000000..b459bb27f8df --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CommunityGalleryImageResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Compute +{ + public partial class CommunityGalleryImageResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + CommunityGalleryImageData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + CommunityGalleryImageData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CommunityGalleryImageVersionResource.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CommunityGalleryImageVersionResource.Serialization.cs new file mode 100644 index 000000000000..c6704158acb1 --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CommunityGalleryImageVersionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Compute +{ + public partial class CommunityGalleryImageVersionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + CommunityGalleryImageVersionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + CommunityGalleryImageVersionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CommunityGalleryResource.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CommunityGalleryResource.Serialization.cs new file mode 100644 index 000000000000..c82ed0b09f35 --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CommunityGalleryResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Compute +{ + public partial class CommunityGalleryResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + CommunityGalleryData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + CommunityGalleryData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ComputePrivateEndpointConnectionResource.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ComputePrivateEndpointConnectionResource.Serialization.cs new file mode 100644 index 000000000000..41b1ebecc7d1 --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ComputePrivateEndpointConnectionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Compute +{ + public partial class ComputePrivateEndpointConnectionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ComputePrivateEndpointConnectionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ComputePrivateEndpointConnectionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/DedicatedHostGroupResource.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/DedicatedHostGroupResource.Serialization.cs new file mode 100644 index 000000000000..0153283aa3e2 --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/DedicatedHostGroupResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Compute +{ + public partial class DedicatedHostGroupResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DedicatedHostGroupData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DedicatedHostGroupData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/DedicatedHostResource.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/DedicatedHostResource.Serialization.cs new file mode 100644 index 000000000000..8875b42e08bf --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/DedicatedHostResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Compute +{ + public partial class DedicatedHostResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DedicatedHostData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DedicatedHostData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/DiskAccessResource.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/DiskAccessResource.Serialization.cs new file mode 100644 index 000000000000..b6c3785863aa --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/DiskAccessResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Compute +{ + public partial class DiskAccessResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DiskAccessData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DiskAccessData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/DiskEncryptionSetResource.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/DiskEncryptionSetResource.Serialization.cs new file mode 100644 index 000000000000..b97faa683fd1 --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/DiskEncryptionSetResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Compute +{ + public partial class DiskEncryptionSetResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DiskEncryptionSetData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DiskEncryptionSetData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/DiskImageResource.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/DiskImageResource.Serialization.cs new file mode 100644 index 000000000000..b4b8d0d6fe03 --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/DiskImageResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Compute +{ + public partial class DiskImageResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DiskImageData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DiskImageData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/DiskRestorePointResource.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/DiskRestorePointResource.Serialization.cs new file mode 100644 index 000000000000..9c866a1004b0 --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/DiskRestorePointResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Compute +{ + public partial class DiskRestorePointResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DiskRestorePointData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DiskRestorePointData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryApplicationResource.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryApplicationResource.Serialization.cs new file mode 100644 index 000000000000..bcd2927aa37e --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryApplicationResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Compute +{ + public partial class GalleryApplicationResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + GalleryApplicationData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + GalleryApplicationData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryApplicationVersionResource.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryApplicationVersionResource.Serialization.cs new file mode 100644 index 000000000000..94ee35df2f27 --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryApplicationVersionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Compute +{ + public partial class GalleryApplicationVersionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + GalleryApplicationVersionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + GalleryApplicationVersionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryImageResource.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryImageResource.Serialization.cs new file mode 100644 index 000000000000..8e848bccba53 --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryImageResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Compute +{ + public partial class GalleryImageResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + GalleryImageData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + GalleryImageData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryImageVersionResource.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryImageVersionResource.Serialization.cs new file mode 100644 index 000000000000..835ed6f253df --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryImageVersionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Compute +{ + public partial class GalleryImageVersionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + GalleryImageVersionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + GalleryImageVersionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryResource.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryResource.Serialization.cs new file mode 100644 index 000000000000..da8e4e3d2fb8 --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Compute +{ + public partial class GalleryResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + GalleryData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + GalleryData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ManagedDiskResource.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ManagedDiskResource.Serialization.cs new file mode 100644 index 000000000000..068b8b4685b2 --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ManagedDiskResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Compute +{ + public partial class ManagedDiskResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ManagedDiskData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ManagedDiskData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ProximityPlacementGroupResource.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ProximityPlacementGroupResource.Serialization.cs new file mode 100644 index 000000000000..497f5bed5caf --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ProximityPlacementGroupResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Compute +{ + public partial class ProximityPlacementGroupResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ProximityPlacementGroupData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ProximityPlacementGroupData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/RestorePointGroupResource.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/RestorePointGroupResource.Serialization.cs new file mode 100644 index 000000000000..a012e93f0db9 --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/RestorePointGroupResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Compute +{ + public partial class RestorePointGroupResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + RestorePointGroupData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + RestorePointGroupData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/RestorePointResource.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/RestorePointResource.Serialization.cs new file mode 100644 index 000000000000..c9613902207e --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/RestorePointResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Compute +{ + public partial class RestorePointResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + RestorePointData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + RestorePointData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SharedGalleryImageResource.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SharedGalleryImageResource.Serialization.cs new file mode 100644 index 000000000000..0bce439e4e8d --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SharedGalleryImageResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Compute +{ + public partial class SharedGalleryImageResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SharedGalleryImageData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SharedGalleryImageData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SharedGalleryImageVersionResource.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SharedGalleryImageVersionResource.Serialization.cs new file mode 100644 index 000000000000..65652353ead2 --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SharedGalleryImageVersionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Compute +{ + public partial class SharedGalleryImageVersionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SharedGalleryImageVersionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SharedGalleryImageVersionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SharedGalleryResource.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SharedGalleryResource.Serialization.cs new file mode 100644 index 000000000000..b6572730540b --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SharedGalleryResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Compute +{ + public partial class SharedGalleryResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SharedGalleryData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SharedGalleryData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SnapshotResource.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SnapshotResource.Serialization.cs new file mode 100644 index 000000000000..5d35daf6d6b8 --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SnapshotResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Compute +{ + public partial class SnapshotResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SnapshotData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SnapshotData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SshPublicKeyResource.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SshPublicKeyResource.Serialization.cs new file mode 100644 index 000000000000..b255358e047c --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SshPublicKeyResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Compute +{ + public partial class SshPublicKeyResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SshPublicKeyData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SshPublicKeyData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineExtensionImageResource.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineExtensionImageResource.Serialization.cs new file mode 100644 index 000000000000..bd528ed39767 --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineExtensionImageResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Compute +{ + public partial class VirtualMachineExtensionImageResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + VirtualMachineExtensionImageData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + VirtualMachineExtensionImageData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineExtensionResource.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineExtensionResource.Serialization.cs new file mode 100644 index 000000000000..10ae866d0f1e --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineExtensionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Compute +{ + public partial class VirtualMachineExtensionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + VirtualMachineExtensionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + VirtualMachineExtensionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineResource.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineResource.Serialization.cs new file mode 100644 index 000000000000..1f24a2fbcd1b --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Compute +{ + public partial class VirtualMachineResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + VirtualMachineData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + VirtualMachineData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineRunCommandResource.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineRunCommandResource.Serialization.cs new file mode 100644 index 000000000000..a6a0af036d3e --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineRunCommandResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Compute +{ + public partial class VirtualMachineRunCommandResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + VirtualMachineRunCommandData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + VirtualMachineRunCommandData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetExtensionResource.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetExtensionResource.Serialization.cs new file mode 100644 index 000000000000..bb3fd57703af --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetExtensionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Compute +{ + public partial class VirtualMachineScaleSetExtensionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + VirtualMachineScaleSetExtensionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + VirtualMachineScaleSetExtensionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetResource.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetResource.Serialization.cs new file mode 100644 index 000000000000..7fe0d0a60400 --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Compute +{ + public partial class VirtualMachineScaleSetResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + VirtualMachineScaleSetData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + VirtualMachineScaleSetData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetRollingUpgradeResource.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetRollingUpgradeResource.Serialization.cs new file mode 100644 index 000000000000..1a496505b880 --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetRollingUpgradeResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Compute +{ + public partial class VirtualMachineScaleSetRollingUpgradeResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + VirtualMachineScaleSetRollingUpgradeData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + VirtualMachineScaleSetRollingUpgradeData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetVmExtensionResource.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetVmExtensionResource.Serialization.cs new file mode 100644 index 000000000000..161735ae17e6 --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetVmExtensionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Compute +{ + public partial class VirtualMachineScaleSetVmExtensionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + VirtualMachineScaleSetVmExtensionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + VirtualMachineScaleSetVmExtensionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetVmResource.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetVmResource.Serialization.cs new file mode 100644 index 000000000000..d86afcfeda05 --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetVmResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Compute +{ + public partial class VirtualMachineScaleSetVmResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + VirtualMachineScaleSetVmData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + VirtualMachineScaleSetVmData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetVmRunCommandResource.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetVmRunCommandResource.Serialization.cs new file mode 100644 index 000000000000..a5863d147577 --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetVmRunCommandResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Compute +{ + public partial class VirtualMachineScaleSetVmRunCommandResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + VirtualMachineRunCommandData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + VirtualMachineRunCommandData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/ProximityPlacementGroupCollection.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/ProximityPlacementGroupCollection.cs index 633d767ada76..ae1d7b77a7e9 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/ProximityPlacementGroupCollection.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/ProximityPlacementGroupCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> CreateO try { var response = await _proximityPlacementGroupRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, proximityPlacementGroupName, data, cancellationToken).ConfigureAwait(false); - var operation = new ComputeArmOperation(Response.FromValue(new ProximityPlacementGroupResource(Client, response), response.GetRawResponse())); + var uri = _proximityPlacementGroupRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, proximityPlacementGroupName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ComputeArmOperation(Response.FromValue(new ProximityPlacementGroupResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -140,7 +142,9 @@ public virtual ArmOperation CreateOrUpdate(Wait try { var response = _proximityPlacementGroupRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, proximityPlacementGroupName, data, cancellationToken); - var operation = new ComputeArmOperation(Response.FromValue(new ProximityPlacementGroupResource(Client, response), response.GetRawResponse())); + var uri = _proximityPlacementGroupRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, proximityPlacementGroupName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ComputeArmOperation(Response.FromValue(new ProximityPlacementGroupResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/ProximityPlacementGroupResource.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/ProximityPlacementGroupResource.cs index 9e8e78ff99cf..79b20f788934 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/ProximityPlacementGroupResource.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/ProximityPlacementGroupResource.cs @@ -204,7 +204,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _proximityPlacementGroupRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new ComputeArmOperation(response); + var uri = _proximityPlacementGroupRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ComputeArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -246,7 +248,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _proximityPlacementGroupRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); - var operation = new ComputeArmOperation(response); + var uri = _proximityPlacementGroupRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ComputeArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/AvailabilitySetsRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/AvailabilitySetsRestOperations.cs index d214f70802ec..cb9d3fc23ddd 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/AvailabilitySetsRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/AvailabilitySetsRestOperations.cs @@ -37,6 +37,20 @@ public AvailabilitySetsRestOperations(HttpPipeline pipeline, string applicationI _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string availabilitySetName, AvailabilitySetData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Compute/availabilitySets/", false); + uri.AppendPath(availabilitySetName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string availabilitySetName, AvailabilitySetData data) { var message = _pipeline.CreateMessage(); @@ -123,6 +137,20 @@ public Response CreateOrUpdate(string subscriptionId, strin } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string availabilitySetName, AvailabilitySetPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Compute/availabilitySets/", false); + uri.AppendPath(availabilitySetName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string availabilitySetName, AvailabilitySetPatch patch) { var message = _pipeline.CreateMessage(); @@ -209,6 +237,20 @@ public Response Update(string subscriptionId, string resour } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string availabilitySetName) + { + 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.Compute/availabilitySets/", false); + uri.AppendPath(availabilitySetName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string availabilitySetName) { var message = _pipeline.CreateMessage(); @@ -279,6 +321,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string availabilitySetName) + { + 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.Compute/availabilitySets/", false); + uri.AppendPath(availabilitySetName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string availabilitySetName) { var message = _pipeline.CreateMessage(); @@ -361,6 +417,21 @@ public Response Get(string subscriptionId, string resourceG } } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId, string expand) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Compute/availabilitySets", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId, string expand) { var message = _pipeline.CreateMessage(); @@ -434,6 +505,19 @@ public Response ListBySubscription(string subscriptio } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName) + { + 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.Compute/availabilitySets", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -507,6 +591,21 @@ public Response List(string subscriptionId, string re } } + internal RequestUriBuilder CreateListAvailableSizesRequestUri(string subscriptionId, string resourceGroupName, string availabilitySetName) + { + 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.Compute/availabilitySets/", false); + uri.AppendPath(availabilitySetName, true); + uri.AppendPath("/vmSizes", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListAvailableSizesRequest(string subscriptionId, string resourceGroupName, string availabilitySetName) { var message = _pipeline.CreateMessage(); @@ -586,6 +685,14 @@ public Response ListAvailableSizes(string subscrip } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId, string expand) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId, string expand) { var message = _pipeline.CreateMessage(); @@ -656,6 +763,14 @@ public Response ListBySubscriptionNextPage(string nex } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CapacityReservationGroupsRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CapacityReservationGroupsRestOperations.cs index 14d5c3732a42..4d30ab97eef1 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CapacityReservationGroupsRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CapacityReservationGroupsRestOperations.cs @@ -37,6 +37,20 @@ public CapacityReservationGroupsRestOperations(HttpPipeline pipeline, string app _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string capacityReservationGroupName, CapacityReservationGroupData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Compute/capacityReservationGroups/", false); + uri.AppendPath(capacityReservationGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string capacityReservationGroupName, CapacityReservationGroupData data) { var message = _pipeline.CreateMessage(); @@ -125,6 +139,20 @@ public Response CreateOrUpdate(string subscription } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string capacityReservationGroupName, CapacityReservationGroupPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Compute/capacityReservationGroups/", false); + uri.AppendPath(capacityReservationGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string capacityReservationGroupName, CapacityReservationGroupPatch patch) { var message = _pipeline.CreateMessage(); @@ -211,6 +239,20 @@ public Response Update(string subscriptionId, stri } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string capacityReservationGroupName) + { + 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.Compute/capacityReservationGroups/", false); + uri.AppendPath(capacityReservationGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string capacityReservationGroupName) { var message = _pipeline.CreateMessage(); @@ -281,6 +323,24 @@ public Response Delete(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string capacityReservationGroupName, CapacityReservationGroupInstanceViewType? expand) + { + 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.Compute/capacityReservationGroups/", false); + uri.AppendPath(capacityReservationGroupName, true); + if (expand != null) + { + uri.AppendQuery("$expand", expand.Value.ToString(), true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string capacityReservationGroupName, CapacityReservationGroupInstanceViewType? expand) { var message = _pipeline.CreateMessage(); @@ -369,6 +429,23 @@ public Response Get(string subscriptionId, string } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName, CapacityReservationGroupGetExpand? expand) + { + 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.Compute/capacityReservationGroups", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (expand != null) + { + uri.AppendQuery("$expand", expand.Value.ToString(), true); + } + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName, CapacityReservationGroupGetExpand? expand) { var message = _pipeline.CreateMessage(); @@ -448,6 +525,21 @@ public Response ListByResourceGroup(string s } } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId, CapacityReservationGroupGetExpand? expand) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Compute/capacityReservationGroups", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (expand != null) + { + uri.AppendQuery("$expand", expand.Value.ToString(), true); + } + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId, CapacityReservationGroupGetExpand? expand) { var message = _pipeline.CreateMessage(); @@ -521,6 +613,14 @@ public Response ListBySubscription(string su } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, CapacityReservationGroupGetExpand? expand) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, CapacityReservationGroupGetExpand? expand) { var message = _pipeline.CreateMessage(); @@ -595,6 +695,14 @@ public Response ListByResourceGroupNextPage( } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId, CapacityReservationGroupGetExpand? expand) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId, CapacityReservationGroupGetExpand? expand) { var message = _pipeline.CreateMessage(); diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CapacityReservationsRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CapacityReservationsRestOperations.cs index 2728b9567595..b47cd380b30a 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CapacityReservationsRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CapacityReservationsRestOperations.cs @@ -37,6 +37,22 @@ public CapacityReservationsRestOperations(HttpPipeline pipeline, string applicat _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string capacityReservationGroupName, string capacityReservationName, CapacityReservationData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Compute/capacityReservationGroups/", false); + uri.AppendPath(capacityReservationGroupName, true); + uri.AppendPath("/capacityReservations/", false); + uri.AppendPath(capacityReservationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string capacityReservationGroupName, string capacityReservationName, CapacityReservationData data) { var message = _pipeline.CreateMessage(); @@ -121,6 +137,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string capacityReservationGroupName, string capacityReservationName, CapacityReservationPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Compute/capacityReservationGroups/", false); + uri.AppendPath(capacityReservationGroupName, true); + uri.AppendPath("/capacityReservations/", false); + uri.AppendPath(capacityReservationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string capacityReservationGroupName, string capacityReservationName, CapacityReservationPatch patch) { var message = _pipeline.CreateMessage(); @@ -205,6 +237,22 @@ public Response Update(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string capacityReservationGroupName, string capacityReservationName) + { + 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.Compute/capacityReservationGroups/", false); + uri.AppendPath(capacityReservationGroupName, true); + uri.AppendPath("/capacityReservations/", false); + uri.AppendPath(capacityReservationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string capacityReservationGroupName, string capacityReservationName) { var message = _pipeline.CreateMessage(); @@ -283,6 +331,26 @@ public Response Delete(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string capacityReservationGroupName, string capacityReservationName, CapacityReservationInstanceViewType? expand) + { + 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.Compute/capacityReservationGroups/", false); + uri.AppendPath(capacityReservationGroupName, true); + uri.AppendPath("/capacityReservations/", false); + uri.AppendPath(capacityReservationName, true); + if (expand != null) + { + uri.AppendQuery("$expand", expand.Value.ToString(), true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string capacityReservationGroupName, string capacityReservationName, CapacityReservationInstanceViewType? expand) { var message = _pipeline.CreateMessage(); @@ -377,6 +445,21 @@ public Response Get(string subscriptionId, string resou } } + internal RequestUriBuilder CreateListByCapacityReservationGroupRequestUri(string subscriptionId, string resourceGroupName, string capacityReservationGroupName) + { + 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.Compute/capacityReservationGroups/", false); + uri.AppendPath(capacityReservationGroupName, true); + uri.AppendPath("/capacityReservations", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByCapacityReservationGroupRequest(string subscriptionId, string resourceGroupName, string capacityReservationGroupName) { var message = _pipeline.CreateMessage(); @@ -456,6 +539,14 @@ public Response ListByCapacityReservationGroup(st } } + internal RequestUriBuilder CreateListByCapacityReservationGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string capacityReservationGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByCapacityReservationGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string capacityReservationGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CloudServiceOperatingSystemsRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CloudServiceOperatingSystemsRestOperations.cs index d3ac6ed9e537..329b7af24df6 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CloudServiceOperatingSystemsRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CloudServiceOperatingSystemsRestOperations.cs @@ -37,6 +37,20 @@ public CloudServiceOperatingSystemsRestOperations(HttpPipeline pipeline, string _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetOSVersionRequestUri(string subscriptionId, AzureLocation location, string osVersionName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Compute/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/cloudServiceOsVersions/", false); + uri.AppendPath(osVersionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetOSVersionRequest(string subscriptionId, AzureLocation location, string osVersionName) { var message = _pipeline.CreateMessage(); @@ -117,6 +131,19 @@ public Response GetOSVersion(string subscriptionId, A } } + internal RequestUriBuilder CreateListOSVersionsRequestUri(string subscriptionId, AzureLocation location) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Compute/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/cloudServiceOsVersions", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListOSVersionsRequest(string subscriptionId, AzureLocation location) { var message = _pipeline.CreateMessage(); @@ -188,6 +215,20 @@ public Response ListOSVersions(string subscriptionId, Azure } } + internal RequestUriBuilder CreateGetOSFamilyRequestUri(string subscriptionId, AzureLocation location, string osFamilyName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Compute/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/cloudServiceOsFamilies/", false); + uri.AppendPath(osFamilyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetOSFamilyRequest(string subscriptionId, AzureLocation location, string osFamilyName) { var message = _pipeline.CreateMessage(); @@ -268,6 +309,19 @@ public Response GetOSFamily(string subscriptionId, Azu } } + internal RequestUriBuilder CreateListOSFamiliesRequestUri(string subscriptionId, AzureLocation location) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Compute/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/cloudServiceOsFamilies", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListOSFamiliesRequest(string subscriptionId, AzureLocation location) { var message = _pipeline.CreateMessage(); @@ -339,6 +393,14 @@ public Response ListOSFamilies(string subscriptionId, AzureL } } + internal RequestUriBuilder CreateListOSVersionsNextPageRequestUri(string nextLink, string subscriptionId, AzureLocation location) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListOSVersionsNextPageRequest(string nextLink, string subscriptionId, AzureLocation location) { var message = _pipeline.CreateMessage(); @@ -409,6 +471,14 @@ public Response ListOSVersionsNextPage(string nextLink, str } } + internal RequestUriBuilder CreateListOSFamiliesNextPageRequestUri(string nextLink, string subscriptionId, AzureLocation location) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListOSFamiliesNextPageRequest(string nextLink, string subscriptionId, AzureLocation location) { var message = _pipeline.CreateMessage(); diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CloudServiceRoleInstancesRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CloudServiceRoleInstancesRestOperations.cs index 1ac1ed6d3c92..bf9a3c4525c5 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CloudServiceRoleInstancesRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CloudServiceRoleInstancesRestOperations.cs @@ -38,6 +38,22 @@ public CloudServiceRoleInstancesRestOperations(HttpPipeline pipeline, string app _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string cloudServiceName, string roleInstanceName) + { + 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.Compute/cloudServices/", false); + uri.AppendPath(cloudServiceName, true); + uri.AppendPath("/roleInstances/", false); + uri.AppendPath(roleInstanceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string cloudServiceName, string roleInstanceName) { var message = _pipeline.CreateMessage(); @@ -116,6 +132,26 @@ public Response Delete(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string cloudServiceName, string roleInstanceName, InstanceViewType? expand) + { + 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.Compute/cloudServices/", false); + uri.AppendPath(cloudServiceName, true); + uri.AppendPath("/roleInstances/", false); + uri.AppendPath(roleInstanceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + if (expand != null) + { + uri.AppendQuery("$expand", expand.Value.ToSerialString(), true); + } + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string cloudServiceName, string roleInstanceName, InstanceViewType? expand) { var message = _pipeline.CreateMessage(); @@ -210,6 +246,23 @@ public Response Get(string subscriptionId, string } } + internal RequestUriBuilder CreateGetInstanceViewRequestUri(string subscriptionId, string resourceGroupName, string cloudServiceName, string roleInstanceName) + { + 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.Compute/cloudServices/", false); + uri.AppendPath(cloudServiceName, true); + uri.AppendPath("/roleInstances/", false); + uri.AppendPath(roleInstanceName, true); + uri.AppendPath("/instanceView", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetInstanceViewRequest(string subscriptionId, string resourceGroupName, string cloudServiceName, string roleInstanceName) { var message = _pipeline.CreateMessage(); @@ -295,6 +348,25 @@ public Response GetInstanceView(string subscriptionId, string } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string cloudServiceName, InstanceViewType? expand) + { + 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.Compute/cloudServices/", false); + uri.AppendPath(cloudServiceName, true); + uri.AppendPath("/roleInstances", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (expand != null) + { + uri.AppendQuery("$expand", expand.Value.ToSerialString(), true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string cloudServiceName, InstanceViewType? expand) { var message = _pipeline.CreateMessage(); @@ -380,6 +452,23 @@ public Response List(string subscriptionId, string resou } } + internal RequestUriBuilder CreateRestartRequestUri(string subscriptionId, string resourceGroupName, string cloudServiceName, string roleInstanceName) + { + 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.Compute/cloudServices/", false); + uri.AppendPath(cloudServiceName, true); + uri.AppendPath("/roleInstances/", false); + uri.AppendPath(roleInstanceName, true); + uri.AppendPath("/restart", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRestartRequest(string subscriptionId, string resourceGroupName, string cloudServiceName, string roleInstanceName) { var message = _pipeline.CreateMessage(); @@ -457,6 +546,23 @@ public Response Restart(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreateReimageRequestUri(string subscriptionId, string resourceGroupName, string cloudServiceName, string roleInstanceName) + { + 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.Compute/cloudServices/", false); + uri.AppendPath(cloudServiceName, true); + uri.AppendPath("/roleInstances/", false); + uri.AppendPath(roleInstanceName, true); + uri.AppendPath("/reimage", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateReimageRequest(string subscriptionId, string resourceGroupName, string cloudServiceName, string roleInstanceName) { var message = _pipeline.CreateMessage(); @@ -534,6 +640,23 @@ public Response Reimage(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreateRebuildRequestUri(string subscriptionId, string resourceGroupName, string cloudServiceName, string roleInstanceName) + { + 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.Compute/cloudServices/", false); + uri.AppendPath(cloudServiceName, true); + uri.AppendPath("/roleInstances/", false); + uri.AppendPath(roleInstanceName, true); + uri.AppendPath("/rebuild", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRebuildRequest(string subscriptionId, string resourceGroupName, string cloudServiceName, string roleInstanceName) { var message = _pipeline.CreateMessage(); @@ -611,6 +734,23 @@ public Response Rebuild(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreateGetRemoteDesktopFileRequestUri(string subscriptionId, string resourceGroupName, string cloudServiceName, string roleInstanceName) + { + 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.Compute/cloudServices/", false); + uri.AppendPath(cloudServiceName, true); + uri.AppendPath("/roleInstances/", false); + uri.AppendPath(roleInstanceName, true); + uri.AppendPath("/remoteDesktopFile", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRemoteDesktopFileRequest(string subscriptionId, string resourceGroupName, string cloudServiceName, string roleInstanceName) { var message = _pipeline.CreateMessage(); @@ -692,6 +832,14 @@ public Response GetRemoteDesktopFile(string subscriptionId, string resou } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string cloudServiceName, InstanceViewType? expand) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string cloudServiceName, InstanceViewType? expand) { var message = _pipeline.CreateMessage(); diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CloudServiceRolesRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CloudServiceRolesRestOperations.cs index 8dac56731fcc..9130b93354b6 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CloudServiceRolesRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CloudServiceRolesRestOperations.cs @@ -37,6 +37,22 @@ public CloudServiceRolesRestOperations(HttpPipeline pipeline, string application _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string cloudServiceName, string roleName) + { + 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.Compute/cloudServices/", false); + uri.AppendPath(cloudServiceName, true); + uri.AppendPath("/roles/", false); + uri.AppendPath(roleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string cloudServiceName, string roleName) { var message = _pipeline.CreateMessage(); @@ -125,6 +141,21 @@ public Response Get(string subscriptionId, string resource } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string cloudServiceName) + { + 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.Compute/cloudServices/", false); + uri.AppendPath(cloudServiceName, true); + uri.AppendPath("/roles", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string cloudServiceName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,14 @@ public Response List(string subscriptionId, string r } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string cloudServiceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string cloudServiceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CloudServicesRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CloudServicesRestOperations.cs index b0f762775832..41d59711b7b0 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CloudServicesRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CloudServicesRestOperations.cs @@ -37,6 +37,20 @@ public CloudServicesRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string cloudServiceName, CloudServiceData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Compute/cloudServices/", false); + uri.AppendPath(cloudServiceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string cloudServiceName, CloudServiceData data) { var message = _pipeline.CreateMessage(); @@ -115,6 +129,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string cloudServiceName, CloudServicePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Compute/cloudServices/", false); + uri.AppendPath(cloudServiceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string cloudServiceName, CloudServicePatch patch) { var message = _pipeline.CreateMessage(); @@ -191,6 +219,20 @@ public Response Update(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string cloudServiceName) + { + 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.Compute/cloudServices/", false); + uri.AppendPath(cloudServiceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string cloudServiceName) { var message = _pipeline.CreateMessage(); @@ -263,6 +305,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string cloudServiceName) + { + 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.Compute/cloudServices/", false); + uri.AppendPath(cloudServiceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string cloudServiceName) { var message = _pipeline.CreateMessage(); @@ -345,6 +401,21 @@ public Response Get(string subscriptionId, string resourceGrou } } + internal RequestUriBuilder CreateGetInstanceViewRequestUri(string subscriptionId, string resourceGroupName, string cloudServiceName) + { + 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.Compute/cloudServices/", false); + uri.AppendPath(cloudServiceName, true); + uri.AppendPath("/instanceView", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetInstanceViewRequest(string subscriptionId, string resourceGroupName, string cloudServiceName) { var message = _pipeline.CreateMessage(); @@ -424,6 +495,17 @@ public Response GetInstanceView(string subscriptionId, } } + internal RequestUriBuilder CreateListAllRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Compute/cloudServices", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListAllRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -491,6 +573,19 @@ public Response ListAll(string subscriptionId, Cancellat } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName) + { + 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.Compute/cloudServices", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -564,6 +659,21 @@ public Response List(string subscriptionId, string resou } } + internal RequestUriBuilder CreateStartRequestUri(string subscriptionId, string resourceGroupName, string cloudServiceName) + { + 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.Compute/cloudServices/", false); + uri.AppendPath(cloudServiceName, true); + uri.AppendPath("/start", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStartRequest(string subscriptionId, string resourceGroupName, string cloudServiceName) { var message = _pipeline.CreateMessage(); @@ -635,6 +745,21 @@ public Response Start(string subscriptionId, string resourceGroupName, string cl } } + internal RequestUriBuilder CreatePowerOffRequestUri(string subscriptionId, string resourceGroupName, string cloudServiceName) + { + 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.Compute/cloudServices/", false); + uri.AppendPath(cloudServiceName, true); + uri.AppendPath("/poweroff", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreatePowerOffRequest(string subscriptionId, string resourceGroupName, string cloudServiceName) { var message = _pipeline.CreateMessage(); @@ -706,6 +831,21 @@ public Response PowerOff(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreateRestartRequestUri(string subscriptionId, string resourceGroupName, string cloudServiceName, RoleInstances roleInstances) + { + 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.Compute/cloudServices/", false); + uri.AppendPath(cloudServiceName, true); + uri.AppendPath("/restart", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRestartRequest(string subscriptionId, string resourceGroupName, string cloudServiceName, RoleInstances roleInstances) { var message = _pipeline.CreateMessage(); @@ -786,6 +926,21 @@ public Response Restart(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreateReimageRequestUri(string subscriptionId, string resourceGroupName, string cloudServiceName, RoleInstances roleInstances) + { + 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.Compute/cloudServices/", false); + uri.AppendPath(cloudServiceName, true); + uri.AppendPath("/reimage", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateReimageRequest(string subscriptionId, string resourceGroupName, string cloudServiceName, RoleInstances roleInstances) { var message = _pipeline.CreateMessage(); @@ -866,6 +1021,21 @@ public Response Reimage(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreateRebuildRequestUri(string subscriptionId, string resourceGroupName, string cloudServiceName, RoleInstances roleInstances) + { + 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.Compute/cloudServices/", false); + uri.AppendPath(cloudServiceName, true); + uri.AppendPath("/rebuild", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRebuildRequest(string subscriptionId, string resourceGroupName, string cloudServiceName, RoleInstances roleInstances) { var message = _pipeline.CreateMessage(); @@ -946,6 +1116,21 @@ public Response Rebuild(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreateDeleteInstancesRequestUri(string subscriptionId, string resourceGroupName, string cloudServiceName, RoleInstances roleInstances) + { + 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.Compute/cloudServices/", false); + uri.AppendPath(cloudServiceName, true); + uri.AppendPath("/delete", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteInstancesRequest(string subscriptionId, string resourceGroupName, string cloudServiceName, RoleInstances roleInstances) { var message = _pipeline.CreateMessage(); @@ -1026,6 +1211,14 @@ public Response DeleteInstances(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateListAllNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListAllNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -1094,6 +1287,14 @@ public Response ListAllNextPage(string nextLink, string } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CloudServicesUpdateDomainRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CloudServicesUpdateDomainRestOperations.cs index 41c08e580f8f..96995a1d2974 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CloudServicesUpdateDomainRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CloudServicesUpdateDomainRestOperations.cs @@ -37,6 +37,22 @@ public CloudServicesUpdateDomainRestOperations(HttpPipeline pipeline, string app _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateWalkUpdateDomainRequestUri(string subscriptionId, string resourceGroupName, string cloudServiceName, int updateDomain, UpdateDomainIdentifier updateDomainIdentifier) + { + 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.Compute/cloudServices/", false); + uri.AppendPath(cloudServiceName, true); + uri.AppendPath("/updateDomains/", false); + uri.AppendPath(updateDomain, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateWalkUpdateDomainRequest(string subscriptionId, string resourceGroupName, string cloudServiceName, int updateDomain, UpdateDomainIdentifier updateDomainIdentifier) { var message = _pipeline.CreateMessage(); @@ -120,6 +136,22 @@ public Response WalkUpdateDomain(string subscriptionId, string resourceGroupName } } + internal RequestUriBuilder CreateGetUpdateDomainRequestUri(string subscriptionId, string resourceGroupName, string cloudServiceName, int updateDomain) + { + 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.Compute/cloudServices/", false); + uri.AppendPath(cloudServiceName, true); + uri.AppendPath("/updateDomains/", false); + uri.AppendPath(updateDomain, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetUpdateDomainRequest(string subscriptionId, string resourceGroupName, string cloudServiceName, int updateDomain) { var message = _pipeline.CreateMessage(); @@ -202,6 +234,21 @@ public Response GetUpdateDomain(string subscriptionId, s } } + internal RequestUriBuilder CreateListUpdateDomainsRequestUri(string subscriptionId, string resourceGroupName, string cloudServiceName) + { + 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.Compute/cloudServices/", false); + uri.AppendPath(cloudServiceName, true); + uri.AppendPath("/updateDomains", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListUpdateDomainsRequest(string subscriptionId, string resourceGroupName, string cloudServiceName) { var message = _pipeline.CreateMessage(); @@ -281,6 +328,14 @@ public Response ListUpdateDomains(string subscriptionId, } } + internal RequestUriBuilder CreateListUpdateDomainsNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string cloudServiceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListUpdateDomainsNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string cloudServiceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CommunityGalleriesRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CommunityGalleriesRestOperations.cs index 15d5a47f52fb..5ce3108a77ed 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CommunityGalleriesRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CommunityGalleriesRestOperations.cs @@ -36,6 +36,20 @@ public CommunityGalleriesRestOperations(HttpPipeline pipeline, string applicatio _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, AzureLocation location, string publicGalleryName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Compute/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/communityGalleries/", false); + uri.AppendPath(publicGalleryName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, AzureLocation location, string publicGalleryName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CommunityGalleryImageVersionsRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CommunityGalleryImageVersionsRestOperations.cs index a0ec5f04f730..76804cec41d1 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CommunityGalleryImageVersionsRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CommunityGalleryImageVersionsRestOperations.cs @@ -37,6 +37,24 @@ public CommunityGalleryImageVersionsRestOperations(HttpPipeline pipeline, string _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, AzureLocation location, string publicGalleryName, string galleryImageName, string galleryImageVersionName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Compute/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/communityGalleries/", false); + uri.AppendPath(publicGalleryName, true); + uri.AppendPath("/images/", false); + uri.AppendPath(galleryImageName, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(galleryImageVersionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, AzureLocation location, string publicGalleryName, string galleryImageName, string galleryImageVersionName) { var message = _pipeline.CreateMessage(); @@ -129,6 +147,23 @@ public Response Get(string subscriptionId, Azu } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, AzureLocation location, string publicGalleryName, string galleryImageName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Compute/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/communityGalleries/", false); + uri.AppendPath(publicGalleryName, true); + uri.AppendPath("/images/", false); + uri.AppendPath(galleryImageName, true); + uri.AppendPath("/versions", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, AzureLocation location, string publicGalleryName, string galleryImageName) { var message = _pipeline.CreateMessage(); @@ -212,6 +247,14 @@ public Response List(string subscriptionId, Az } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, AzureLocation location, string publicGalleryName, string galleryImageName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, AzureLocation location, string publicGalleryName, string galleryImageName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CommunityGalleryImagesRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CommunityGalleryImagesRestOperations.cs index 4f7bd2e7b4f3..1688aa65c787 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CommunityGalleryImagesRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CommunityGalleryImagesRestOperations.cs @@ -37,6 +37,22 @@ public CommunityGalleryImagesRestOperations(HttpPipeline pipeline, string applic _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, AzureLocation location, string publicGalleryName, string galleryImageName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Compute/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/communityGalleries/", false); + uri.AppendPath(publicGalleryName, true); + uri.AppendPath("/images/", false); + uri.AppendPath(galleryImageName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, AzureLocation location, string publicGalleryName, string galleryImageName) { var message = _pipeline.CreateMessage(); @@ -123,6 +139,21 @@ public Response Get(string subscriptionId, AzureLocat } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, AzureLocation location, string publicGalleryName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Compute/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/communityGalleries/", false); + uri.AppendPath(publicGalleryName, true); + uri.AppendPath("/images", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, AzureLocation location, string publicGalleryName) { var message = _pipeline.CreateMessage(); @@ -200,6 +231,14 @@ public Response List(string subscriptionId, AzureLoca } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, AzureLocation location, string publicGalleryName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, AzureLocation location, string publicGalleryName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/DedicatedHostGroupsRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/DedicatedHostGroupsRestOperations.cs index 860701ddaa34..e7e2d5dd1269 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/DedicatedHostGroupsRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/DedicatedHostGroupsRestOperations.cs @@ -37,6 +37,20 @@ public DedicatedHostGroupsRestOperations(HttpPipeline pipeline, string applicati _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string hostGroupName, DedicatedHostGroupData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Compute/hostGroups/", false); + uri.AppendPath(hostGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string hostGroupName, DedicatedHostGroupData data) { var message = _pipeline.CreateMessage(); @@ -125,6 +139,20 @@ public Response CreateOrUpdate(string subscriptionId, st } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string hostGroupName, DedicatedHostGroupPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Compute/hostGroups/", false); + uri.AppendPath(hostGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string hostGroupName, DedicatedHostGroupPatch patch) { var message = _pipeline.CreateMessage(); @@ -211,6 +239,20 @@ public Response Update(string subscriptionId, string res } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string hostGroupName) + { + 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.Compute/hostGroups/", false); + uri.AppendPath(hostGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string hostGroupName) { var message = _pipeline.CreateMessage(); @@ -281,6 +323,24 @@ public Response Delete(string subscriptionId, string resourceGroupName, string h } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string hostGroupName, InstanceViewType? expand) + { + 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.Compute/hostGroups/", false); + uri.AppendPath(hostGroupName, true); + if (expand != null) + { + uri.AppendQuery("$expand", expand.Value.ToSerialString(), true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string hostGroupName, InstanceViewType? expand) { var message = _pipeline.CreateMessage(); @@ -369,6 +429,19 @@ public Response Get(string subscriptionId, string resour } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.Compute/hostGroups", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -442,6 +515,17 @@ public Response ListByResourceGroup(string subscri } } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Compute/hostGroups", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -509,6 +593,14 @@ public Response ListBySubscription(string subscrip } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -581,6 +673,14 @@ public Response ListByResourceGroupNextPage(string } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/DedicatedHostsRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/DedicatedHostsRestOperations.cs index f7a9b0541e43..3939fd4b2bc8 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/DedicatedHostsRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/DedicatedHostsRestOperations.cs @@ -37,6 +37,22 @@ public DedicatedHostsRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string hostGroupName, string hostName, DedicatedHostData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Compute/hostGroups/", false); + uri.AppendPath(hostGroupName, true); + uri.AppendPath("/hosts/", false); + uri.AppendPath(hostName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string hostGroupName, string hostName, DedicatedHostData data) { var message = _pipeline.CreateMessage(); @@ -121,6 +137,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string hostGroupName, string hostName, DedicatedHostPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Compute/hostGroups/", false); + uri.AppendPath(hostGroupName, true); + uri.AppendPath("/hosts/", false); + uri.AppendPath(hostName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string hostGroupName, string hostName, DedicatedHostPatch patch) { var message = _pipeline.CreateMessage(); @@ -203,6 +235,22 @@ public Response Update(string subscriptionId, string resourceGroupName, string h } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string hostGroupName, string hostName) + { + 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.Compute/hostGroups/", false); + uri.AppendPath(hostGroupName, true); + uri.AppendPath("/hosts/", false); + uri.AppendPath(hostName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string hostGroupName, string hostName) { var message = _pipeline.CreateMessage(); @@ -281,6 +329,26 @@ public Response Delete(string subscriptionId, string resourceGroupName, string h } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string hostGroupName, string hostName, InstanceViewType? expand) + { + 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.Compute/hostGroups/", false); + uri.AppendPath(hostGroupName, true); + uri.AppendPath("/hosts/", false); + uri.AppendPath(hostName, true); + if (expand != null) + { + uri.AppendQuery("$expand", expand.Value.ToSerialString(), true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string hostGroupName, string hostName, InstanceViewType? expand) { var message = _pipeline.CreateMessage(); @@ -375,6 +443,21 @@ public Response Get(string subscriptionId, string resourceGro } } + internal RequestUriBuilder CreateListByHostGroupRequestUri(string subscriptionId, string resourceGroupName, string hostGroupName) + { + 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.Compute/hostGroups/", false); + uri.AppendPath(hostGroupName, true); + uri.AppendPath("/hosts", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByHostGroupRequest(string subscriptionId, string resourceGroupName, string hostGroupName) { var message = _pipeline.CreateMessage(); @@ -454,6 +537,23 @@ public Response ListByHostGroup(string subscriptionId, } } + internal RequestUriBuilder CreateRestartRequestUri(string subscriptionId, string resourceGroupName, string hostGroupName, string hostName) + { + 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.Compute/hostGroups/", false); + uri.AppendPath(hostGroupName, true); + uri.AppendPath("/hosts/", false); + uri.AppendPath(hostName, true); + uri.AppendPath("/restart", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRestartRequest(string subscriptionId, string resourceGroupName, string hostGroupName, string hostName) { var message = _pipeline.CreateMessage(); @@ -529,6 +629,23 @@ public Response Restart(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreateRedeployRequestUri(string subscriptionId, string resourceGroupName, string hostGroupName, string hostName) + { + 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.Compute/hostGroups/", false); + uri.AppendPath(hostGroupName, true); + uri.AppendPath("/hosts/", false); + uri.AppendPath(hostName, true); + uri.AppendPath("/redeploy", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRedeployRequest(string subscriptionId, string resourceGroupName, string hostGroupName, string hostName) { var message = _pipeline.CreateMessage(); @@ -604,6 +721,23 @@ public Response Redeploy(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreateListAvailableSizesRequestUri(string subscriptionId, string resourceGroupName, string hostGroupName, string hostName) + { + 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.Compute/hostGroups/", false); + uri.AppendPath(hostGroupName, true); + uri.AppendPath("/hosts/", false); + uri.AppendPath(hostName, true); + uri.AppendPath("/hostSizes", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListAvailableSizesRequest(string subscriptionId, string resourceGroupName, string hostGroupName, string hostName) { var message = _pipeline.CreateMessage(); @@ -689,6 +823,14 @@ public Response ListAvailableSizes(string subscript } } + internal RequestUriBuilder CreateListByHostGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string hostGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByHostGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string hostGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/DiskAccessesRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/DiskAccessesRestOperations.cs index e097afa38420..cadcbfe6c3b7 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/DiskAccessesRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/DiskAccessesRestOperations.cs @@ -37,6 +37,20 @@ public DiskAccessesRestOperations(HttpPipeline pipeline, string applicationId, U _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string diskAccessName, DiskAccessData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Compute/diskAccesses/", false); + uri.AppendPath(diskAccessName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string diskAccessName, DiskAccessData data) { var message = _pipeline.CreateMessage(); @@ -115,6 +129,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string diskAccessName, DiskAccessPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Compute/diskAccesses/", false); + uri.AppendPath(diskAccessName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string diskAccessName, DiskAccessPatch patch) { var message = _pipeline.CreateMessage(); @@ -193,6 +221,20 @@ public Response Update(string subscriptionId, string resourceGroupName, string d } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string diskAccessName) + { + 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.Compute/diskAccesses/", false); + uri.AppendPath(diskAccessName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string diskAccessName) { var message = _pipeline.CreateMessage(); @@ -275,6 +317,20 @@ public Response Get(string subscriptionId, string resourceGroupN } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string diskAccessName) + { + 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.Compute/diskAccesses/", false); + uri.AppendPath(diskAccessName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string diskAccessName) { var message = _pipeline.CreateMessage(); @@ -347,6 +403,19 @@ public Response Delete(string subscriptionId, string resourceGroupName, string d } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.Compute/diskAccesses", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -420,6 +489,17 @@ public Response ListByResourceGroup(string subscriptionId, strin } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Compute/diskAccesses", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -487,6 +567,21 @@ public Response List(string subscriptionId, CancellationToken ca } } + internal RequestUriBuilder CreateGetPrivateLinkResourcesRequestUri(string subscriptionId, string resourceGroupName, string diskAccessName) + { + 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.Compute/diskAccesses/", false); + uri.AppendPath(diskAccessName, true); + uri.AppendPath("/privateLinkResources", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetPrivateLinkResourcesRequest(string subscriptionId, string resourceGroupName, string diskAccessName) { var message = _pipeline.CreateMessage(); @@ -566,6 +661,22 @@ public Response GetPrivateLinkResources(st } } + internal RequestUriBuilder CreateUpdateAPrivateEndpointConnectionRequestUri(string subscriptionId, string resourceGroupName, string diskAccessName, string privateEndpointConnectionName, ComputePrivateEndpointConnectionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Compute/diskAccesses/", false); + uri.AppendPath(diskAccessName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateAPrivateEndpointConnectionRequest(string subscriptionId, string resourceGroupName, string diskAccessName, string privateEndpointConnectionName, ComputePrivateEndpointConnectionData data) { var message = _pipeline.CreateMessage(); @@ -650,6 +761,22 @@ public Response UpdateAPrivateEndpointConnection(string subscriptionId, string r } } + internal RequestUriBuilder CreateGetAPrivateEndpointConnectionRequestUri(string subscriptionId, string resourceGroupName, string diskAccessName, string privateEndpointConnectionName) + { + 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.Compute/diskAccesses/", false); + uri.AppendPath(diskAccessName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetAPrivateEndpointConnectionRequest(string subscriptionId, string resourceGroupName, string diskAccessName, string privateEndpointConnectionName) { var message = _pipeline.CreateMessage(); @@ -738,6 +865,22 @@ public Response GetAPrivateEndpointConnect } } + internal RequestUriBuilder CreateDeleteAPrivateEndpointConnectionRequestUri(string subscriptionId, string resourceGroupName, string diskAccessName, string privateEndpointConnectionName) + { + 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.Compute/diskAccesses/", false); + uri.AppendPath(diskAccessName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteAPrivateEndpointConnectionRequest(string subscriptionId, string resourceGroupName, string diskAccessName, string privateEndpointConnectionName) { var message = _pipeline.CreateMessage(); @@ -816,6 +959,21 @@ public Response DeleteAPrivateEndpointConnection(string subscriptionId, string r } } + internal RequestUriBuilder CreateListPrivateEndpointConnectionsRequestUri(string subscriptionId, string resourceGroupName, string diskAccessName) + { + 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.Compute/diskAccesses/", false); + uri.AppendPath(diskAccessName, true); + uri.AppendPath("/privateEndpointConnections", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListPrivateEndpointConnectionsRequest(string subscriptionId, string resourceGroupName, string diskAccessName) { var message = _pipeline.CreateMessage(); @@ -895,6 +1053,14 @@ public Response ListPrivateEndpointC } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -967,6 +1133,14 @@ public Response ListByResourceGroupNextPage(string nextLink, str } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -1035,6 +1209,14 @@ public Response ListNextPage(string nextLink, string subscriptio } } + internal RequestUriBuilder CreateListPrivateEndpointConnectionsNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string diskAccessName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListPrivateEndpointConnectionsNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string diskAccessName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/DiskEncryptionSetsRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/DiskEncryptionSetsRestOperations.cs index 7054e4ffc65d..dd78979fbdb0 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/DiskEncryptionSetsRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/DiskEncryptionSetsRestOperations.cs @@ -37,6 +37,20 @@ public DiskEncryptionSetsRestOperations(HttpPipeline pipeline, string applicatio _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string diskEncryptionSetName, DiskEncryptionSetData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Compute/diskEncryptionSets/", false); + uri.AppendPath(diskEncryptionSetName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string diskEncryptionSetName, DiskEncryptionSetData data) { var message = _pipeline.CreateMessage(); @@ -115,6 +129,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string diskEncryptionSetName, DiskEncryptionSetPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Compute/diskEncryptionSets/", false); + uri.AppendPath(diskEncryptionSetName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string diskEncryptionSetName, DiskEncryptionSetPatch patch) { var message = _pipeline.CreateMessage(); @@ -193,6 +221,20 @@ public Response Update(string subscriptionId, string resourceGroupName, string d } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string diskEncryptionSetName) + { + 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.Compute/diskEncryptionSets/", false); + uri.AppendPath(diskEncryptionSetName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string diskEncryptionSetName) { var message = _pipeline.CreateMessage(); @@ -275,6 +317,20 @@ public Response Get(string subscriptionId, string resourc } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string diskEncryptionSetName) + { + 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.Compute/diskEncryptionSets/", false); + uri.AppendPath(diskEncryptionSetName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string diskEncryptionSetName) { var message = _pipeline.CreateMessage(); @@ -347,6 +403,19 @@ public Response Delete(string subscriptionId, string resourceGroupName, string d } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.Compute/diskEncryptionSets", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -420,6 +489,17 @@ public Response ListByResourceGroup(string subscriptionId } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Compute/diskEncryptionSets", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -487,6 +567,21 @@ public Response List(string subscriptionId, CancellationT } } + internal RequestUriBuilder CreateListAssociatedResourcesRequestUri(string subscriptionId, string resourceGroupName, string diskEncryptionSetName) + { + 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.Compute/diskEncryptionSets/", false); + uri.AppendPath(diskEncryptionSetName, true); + uri.AppendPath("/associatedResources", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListAssociatedResourcesRequest(string subscriptionId, string resourceGroupName, string diskEncryptionSetName) { var message = _pipeline.CreateMessage(); @@ -566,6 +661,14 @@ public Response ListAssociatedResources(string subscriptionId, } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -638,6 +741,14 @@ public Response ListByResourceGroupNextPage(string nextLi } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -706,6 +817,14 @@ public Response ListNextPage(string nextLink, string subs } } + internal RequestUriBuilder CreateListAssociatedResourcesNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string diskEncryptionSetName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListAssociatedResourcesNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string diskEncryptionSetName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/DiskRestorePointRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/DiskRestorePointRestOperations.cs index 99c755e427b4..1cb23096c33f 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/DiskRestorePointRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/DiskRestorePointRestOperations.cs @@ -37,6 +37,24 @@ public DiskRestorePointRestOperations(HttpPipeline pipeline, string applicationI _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string restorePointGroupName, string vmRestorePointName, string diskRestorePointName) + { + 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.Compute/restorePointCollections/", false); + uri.AppendPath(restorePointGroupName, true); + uri.AppendPath("/restorePoints/", false); + uri.AppendPath(vmRestorePointName, true); + uri.AppendPath("/diskRestorePoints/", false); + uri.AppendPath(diskRestorePointName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string restorePointGroupName, string vmRestorePointName, string diskRestorePointName) { var message = _pipeline.CreateMessage(); @@ -131,6 +149,23 @@ public Response Get(string subscriptionId, string resource } } + internal RequestUriBuilder CreateListByRestorePointRequestUri(string subscriptionId, string resourceGroupName, string restorePointGroupName, string vmRestorePointName) + { + 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.Compute/restorePointCollections/", false); + uri.AppendPath(restorePointGroupName, true); + uri.AppendPath("/restorePoints/", false); + uri.AppendPath(vmRestorePointName, true); + uri.AppendPath("/diskRestorePoints", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByRestorePointRequest(string subscriptionId, string resourceGroupName, string restorePointGroupName, string vmRestorePointName) { var message = _pipeline.CreateMessage(); @@ -216,6 +251,25 @@ public Response ListByRestorePoint(string subscriptionId, } } + internal RequestUriBuilder CreateGrantAccessRequestUri(string subscriptionId, string resourceGroupName, string restorePointGroupName, string vmRestorePointName, string diskRestorePointName, GrantAccessData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Compute/restorePointCollections/", false); + uri.AppendPath(restorePointGroupName, true); + uri.AppendPath("/restorePoints/", false); + uri.AppendPath(vmRestorePointName, true); + uri.AppendPath("/diskRestorePoints/", false); + uri.AppendPath(diskRestorePointName, true); + uri.AppendPath("/beginGetAccess", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGrantAccessRequest(string subscriptionId, string resourceGroupName, string restorePointGroupName, string vmRestorePointName, string diskRestorePointName, GrantAccessData data) { var message = _pipeline.CreateMessage(); @@ -307,6 +361,25 @@ public Response GrantAccess(string subscriptionId, string resourceGroupName, str } } + internal RequestUriBuilder CreateRevokeAccessRequestUri(string subscriptionId, string resourceGroupName, string restorePointGroupName, string vmRestorePointName, string diskRestorePointName) + { + 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.Compute/restorePointCollections/", false); + uri.AppendPath(restorePointGroupName, true); + uri.AppendPath("/restorePoints/", false); + uri.AppendPath(vmRestorePointName, true); + uri.AppendPath("/diskRestorePoints/", false); + uri.AppendPath(diskRestorePointName, true); + uri.AppendPath("/endGetAccess", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRevokeAccessRequest(string subscriptionId, string resourceGroupName, string restorePointGroupName, string vmRestorePointName, string diskRestorePointName) { var message = _pipeline.CreateMessage(); @@ -390,6 +463,14 @@ public Response RevokeAccess(string subscriptionId, string resourceGroupName, st } } + internal RequestUriBuilder CreateListByRestorePointNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string restorePointGroupName, string vmRestorePointName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByRestorePointNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string restorePointGroupName, string vmRestorePointName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/DisksRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/DisksRestOperations.cs index b167cf0cf39c..d3879eb4bdd9 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/DisksRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/DisksRestOperations.cs @@ -37,6 +37,20 @@ public DisksRestOperations(HttpPipeline pipeline, string applicationId, Uri endp _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string diskName, ManagedDiskData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Compute/disks/", false); + uri.AppendPath(diskName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string diskName, ManagedDiskData data) { var message = _pipeline.CreateMessage(); @@ -115,6 +129,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string diskName, ManagedDiskPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Compute/disks/", false); + uri.AppendPath(diskName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string diskName, ManagedDiskPatch patch) { var message = _pipeline.CreateMessage(); @@ -193,6 +221,20 @@ public Response Update(string subscriptionId, string resourceGroupName, string d } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string diskName) + { + 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.Compute/disks/", false); + uri.AppendPath(diskName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string diskName) { var message = _pipeline.CreateMessage(); @@ -275,6 +317,20 @@ public Response Get(string subscriptionId, string resourceGroup } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string diskName) + { + 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.Compute/disks/", false); + uri.AppendPath(diskName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string diskName) { var message = _pipeline.CreateMessage(); @@ -346,6 +402,19 @@ public Response Delete(string subscriptionId, string resourceGroupName, string d } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.Compute/disks", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -419,6 +488,17 @@ public Response ListByResourceGroup(string subscriptionId, string reso } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Compute/disks", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -486,6 +566,21 @@ public Response List(string subscriptionId, CancellationToken cancella } } + internal RequestUriBuilder CreateGrantAccessRequestUri(string subscriptionId, string resourceGroupName, string diskName, GrantAccessData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Compute/disks/", false); + uri.AppendPath(diskName, true); + uri.AppendPath("/beginGetAccess", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGrantAccessRequest(string subscriptionId, string resourceGroupName, string diskName, GrantAccessData data) { var message = _pipeline.CreateMessage(); @@ -565,6 +660,21 @@ public Response GrantAccess(string subscriptionId, string resourceGroupName, str } } + internal RequestUriBuilder CreateRevokeAccessRequestUri(string subscriptionId, string resourceGroupName, string diskName) + { + 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.Compute/disks/", false); + uri.AppendPath(diskName, true); + uri.AppendPath("/endGetAccess", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRevokeAccessRequest(string subscriptionId, string resourceGroupName, string diskName) { var message = _pipeline.CreateMessage(); @@ -635,6 +745,14 @@ public Response RevokeAccess(string subscriptionId, string resourceGroupName, st } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -707,6 +825,14 @@ public Response ListByResourceGroupNextPage(string nextLink, string su } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GalleriesRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GalleriesRestOperations.cs index 60de714d8b00..ee242ee22255 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GalleriesRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GalleriesRestOperations.cs @@ -37,6 +37,20 @@ public GalleriesRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string galleryName, GalleryData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Compute/galleries/", false); + uri.AppendPath(galleryName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string galleryName, GalleryData data) { var message = _pipeline.CreateMessage(); @@ -117,6 +131,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string galleryName, GalleryPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Compute/galleries/", false); + uri.AppendPath(galleryName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string galleryName, GalleryPatch patch) { var message = _pipeline.CreateMessage(); @@ -193,6 +221,28 @@ public Response Update(string subscriptionId, string resourceGroupName, string g } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string galleryName, SelectPermission? select, GalleryExpand? expand) + { + 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.Compute/galleries/", false); + uri.AppendPath(galleryName, true); + uri.AppendQuery("api-version", _apiVersion, true); + if (select != null) + { + uri.AppendQuery("$select", select.Value.ToString(), true); + } + if (expand != null) + { + uri.AppendQuery("$expand", expand.Value.ToString(), true); + } + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string galleryName, SelectPermission? select, GalleryExpand? expand) { var message = _pipeline.CreateMessage(); @@ -287,6 +337,20 @@ public Response Get(string subscriptionId, string resourceGroupName } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string galleryName) + { + 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.Compute/galleries/", false); + uri.AppendPath(galleryName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string galleryName) { var message = _pipeline.CreateMessage(); @@ -359,6 +423,19 @@ public Response Delete(string subscriptionId, string resourceGroupName, string g } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.Compute/galleries", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -432,6 +509,17 @@ public Response ListByResourceGroup(string subscriptionId, string r } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Compute/galleries", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -499,6 +587,14 @@ public Response List(string subscriptionId, CancellationToken cance } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -571,6 +667,14 @@ public Response ListByResourceGroupNextPage(string nextLink, string } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GalleryApplicationVersionsRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GalleryApplicationVersionsRestOperations.cs index 443a411aadbc..a3824d7757b6 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GalleryApplicationVersionsRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GalleryApplicationVersionsRestOperations.cs @@ -37,6 +37,24 @@ public GalleryApplicationVersionsRestOperations(HttpPipeline pipeline, string ap _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string galleryName, string galleryApplicationName, string galleryApplicationVersionName, GalleryApplicationVersionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Compute/galleries/", false); + uri.AppendPath(galleryName, true); + uri.AppendPath("/applications/", false); + uri.AppendPath(galleryApplicationName, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(galleryApplicationVersionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string galleryName, string galleryApplicationName, string galleryApplicationVersionName, GalleryApplicationVersionData data) { var message = _pipeline.CreateMessage(); @@ -129,6 +147,24 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string galleryName, string galleryApplicationName, string galleryApplicationVersionName, GalleryApplicationVersionPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Compute/galleries/", false); + uri.AppendPath(galleryName, true); + uri.AppendPath("/applications/", false); + uri.AppendPath(galleryApplicationName, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(galleryApplicationVersionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string galleryName, string galleryApplicationName, string galleryApplicationVersionName, GalleryApplicationVersionPatch patch) { var message = _pipeline.CreateMessage(); @@ -217,6 +253,28 @@ public Response Update(string subscriptionId, string resourceGroupName, string g } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string galleryName, string galleryApplicationName, string galleryApplicationVersionName, ReplicationStatusType? expand) + { + 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.Compute/galleries/", false); + uri.AppendPath(galleryName, true); + uri.AppendPath("/applications/", false); + uri.AppendPath(galleryApplicationName, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(galleryApplicationVersionName, true); + if (expand != null) + { + uri.AppendQuery("$expand", expand.Value.ToString(), true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string galleryName, string galleryApplicationName, string galleryApplicationVersionName, ReplicationStatusType? expand) { var message = _pipeline.CreateMessage(); @@ -317,6 +375,24 @@ public Response Get(string subscriptionId, string } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string galleryName, string galleryApplicationName, string galleryApplicationVersionName) + { + 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.Compute/galleries/", false); + uri.AppendPath(galleryName, true); + uri.AppendPath("/applications/", false); + uri.AppendPath(galleryApplicationName, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(galleryApplicationVersionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string galleryName, string galleryApplicationName, string galleryApplicationVersionName) { var message = _pipeline.CreateMessage(); @@ -401,6 +477,23 @@ public Response Delete(string subscriptionId, string resourceGroupName, string g } } + internal RequestUriBuilder CreateListByGalleryApplicationRequestUri(string subscriptionId, string resourceGroupName, string galleryName, string galleryApplicationName) + { + 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.Compute/galleries/", false); + uri.AppendPath(galleryName, true); + uri.AppendPath("/applications/", false); + uri.AppendPath(galleryApplicationName, true); + uri.AppendPath("/versions", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByGalleryApplicationRequest(string subscriptionId, string resourceGroupName, string galleryName, string galleryApplicationName) { var message = _pipeline.CreateMessage(); @@ -486,6 +579,14 @@ public Response ListByGalleryApplication(string s } } + internal RequestUriBuilder CreateListByGalleryApplicationNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string galleryName, string galleryApplicationName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByGalleryApplicationNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string galleryName, string galleryApplicationName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GalleryApplicationsRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GalleryApplicationsRestOperations.cs index 1c3e230cbeab..9a70d0fc90a0 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GalleryApplicationsRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GalleryApplicationsRestOperations.cs @@ -37,6 +37,22 @@ public GalleryApplicationsRestOperations(HttpPipeline pipeline, string applicati _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string galleryName, string galleryApplicationName, GalleryApplicationData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Compute/galleries/", false); + uri.AppendPath(galleryName, true); + uri.AppendPath("/applications/", false); + uri.AppendPath(galleryApplicationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string galleryName, string galleryApplicationName, GalleryApplicationData data) { var message = _pipeline.CreateMessage(); @@ -123,6 +139,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string galleryName, string galleryApplicationName, GalleryApplicationPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Compute/galleries/", false); + uri.AppendPath(galleryName, true); + uri.AppendPath("/applications/", false); + uri.AppendPath(galleryApplicationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string galleryName, string galleryApplicationName, GalleryApplicationPatch patch) { var message = _pipeline.CreateMessage(); @@ -205,6 +237,22 @@ public Response Update(string subscriptionId, string resourceGroupName, string g } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string galleryName, string galleryApplicationName) + { + 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.Compute/galleries/", false); + uri.AppendPath(galleryName, true); + uri.AppendPath("/applications/", false); + uri.AppendPath(galleryApplicationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string galleryName, string galleryApplicationName) { var message = _pipeline.CreateMessage(); @@ -293,6 +341,22 @@ public Response Get(string subscriptionId, string resour } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string galleryName, string galleryApplicationName) + { + 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.Compute/galleries/", false); + uri.AppendPath(galleryName, true); + uri.AppendPath("/applications/", false); + uri.AppendPath(galleryApplicationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string galleryName, string galleryApplicationName) { var message = _pipeline.CreateMessage(); @@ -371,6 +435,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string g } } + internal RequestUriBuilder CreateListByGalleryRequestUri(string subscriptionId, string resourceGroupName, string galleryName) + { + 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.Compute/galleries/", false); + uri.AppendPath(galleryName, true); + uri.AppendPath("/applications", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByGalleryRequest(string subscriptionId, string resourceGroupName, string galleryName) { var message = _pipeline.CreateMessage(); @@ -450,6 +529,14 @@ public Response ListByGallery(string subscriptionId, str } } + internal RequestUriBuilder CreateListByGalleryNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string galleryName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByGalleryNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string galleryName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GalleryImageVersionsRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GalleryImageVersionsRestOperations.cs index 64f207b01dd4..b97c084fb8a4 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GalleryImageVersionsRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GalleryImageVersionsRestOperations.cs @@ -37,6 +37,24 @@ public GalleryImageVersionsRestOperations(HttpPipeline pipeline, string applicat _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string galleryName, string galleryImageName, string galleryImageVersionName, GalleryImageVersionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Compute/galleries/", false); + uri.AppendPath(galleryName, true); + uri.AppendPath("/images/", false); + uri.AppendPath(galleryImageName, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(galleryImageVersionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string galleryName, string galleryImageName, string galleryImageVersionName, GalleryImageVersionData data) { var message = _pipeline.CreateMessage(); @@ -129,6 +147,24 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string galleryName, string galleryImageName, string galleryImageVersionName, GalleryImageVersionPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Compute/galleries/", false); + uri.AppendPath(galleryName, true); + uri.AppendPath("/images/", false); + uri.AppendPath(galleryImageName, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(galleryImageVersionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string galleryName, string galleryImageName, string galleryImageVersionName, GalleryImageVersionPatch patch) { var message = _pipeline.CreateMessage(); @@ -217,6 +253,28 @@ public Response Update(string subscriptionId, string resourceGroupName, string g } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string galleryName, string galleryImageName, string galleryImageVersionName, ReplicationStatusType? expand) + { + 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.Compute/galleries/", false); + uri.AppendPath(galleryName, true); + uri.AppendPath("/images/", false); + uri.AppendPath(galleryImageName, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(galleryImageVersionName, true); + if (expand != null) + { + uri.AppendQuery("$expand", expand.Value.ToString(), true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string galleryName, string galleryImageName, string galleryImageVersionName, ReplicationStatusType? expand) { var message = _pipeline.CreateMessage(); @@ -317,6 +375,24 @@ public Response Get(string subscriptionId, string resou } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string galleryName, string galleryImageName, string galleryImageVersionName) + { + 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.Compute/galleries/", false); + uri.AppendPath(galleryName, true); + uri.AppendPath("/images/", false); + uri.AppendPath(galleryImageName, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(galleryImageVersionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string galleryName, string galleryImageName, string galleryImageVersionName) { var message = _pipeline.CreateMessage(); @@ -401,6 +477,23 @@ public Response Delete(string subscriptionId, string resourceGroupName, string g } } + internal RequestUriBuilder CreateListByGalleryImageRequestUri(string subscriptionId, string resourceGroupName, string galleryName, string galleryImageName) + { + 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.Compute/galleries/", false); + uri.AppendPath(galleryName, true); + uri.AppendPath("/images/", false); + uri.AppendPath(galleryImageName, true); + uri.AppendPath("/versions", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByGalleryImageRequest(string subscriptionId, string resourceGroupName, string galleryName, string galleryImageName) { var message = _pipeline.CreateMessage(); @@ -486,6 +579,14 @@ public Response ListByGalleryImage(string subscriptionI } } + internal RequestUriBuilder CreateListByGalleryImageNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string galleryName, string galleryImageName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByGalleryImageNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string galleryName, string galleryImageName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GalleryImagesRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GalleryImagesRestOperations.cs index 4797d04db391..726722567e12 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GalleryImagesRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GalleryImagesRestOperations.cs @@ -37,6 +37,22 @@ public GalleryImagesRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string galleryName, string galleryImageName, GalleryImageData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Compute/galleries/", false); + uri.AppendPath(galleryName, true); + uri.AppendPath("/images/", false); + uri.AppendPath(galleryImageName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string galleryName, string galleryImageName, GalleryImageData data) { var message = _pipeline.CreateMessage(); @@ -123,6 +139,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string galleryName, string galleryImageName, GalleryImagePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Compute/galleries/", false); + uri.AppendPath(galleryName, true); + uri.AppendPath("/images/", false); + uri.AppendPath(galleryImageName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string galleryName, string galleryImageName, GalleryImagePatch patch) { var message = _pipeline.CreateMessage(); @@ -205,6 +237,22 @@ public Response Update(string subscriptionId, string resourceGroupName, string g } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string galleryName, string galleryImageName) + { + 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.Compute/galleries/", false); + uri.AppendPath(galleryName, true); + uri.AppendPath("/images/", false); + uri.AppendPath(galleryImageName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string galleryName, string galleryImageName) { var message = _pipeline.CreateMessage(); @@ -293,6 +341,22 @@ public Response Get(string subscriptionId, string resourceGrou } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string galleryName, string galleryImageName) + { + 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.Compute/galleries/", false); + uri.AppendPath(galleryName, true); + uri.AppendPath("/images/", false); + uri.AppendPath(galleryImageName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string galleryName, string galleryImageName) { var message = _pipeline.CreateMessage(); @@ -371,6 +435,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string g } } + internal RequestUriBuilder CreateListByGalleryRequestUri(string subscriptionId, string resourceGroupName, string galleryName) + { + 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.Compute/galleries/", false); + uri.AppendPath(galleryName, true); + uri.AppendPath("/images", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByGalleryRequest(string subscriptionId, string resourceGroupName, string galleryName) { var message = _pipeline.CreateMessage(); @@ -450,6 +529,14 @@ public Response ListByGallery(string subscriptionId, string re } } + internal RequestUriBuilder CreateListByGalleryNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string galleryName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByGalleryNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string galleryName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GallerySharingProfileRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GallerySharingProfileRestOperations.cs index 7cbb359084af..39d7f7f768db 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GallerySharingProfileRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GallerySharingProfileRestOperations.cs @@ -36,6 +36,21 @@ public GallerySharingProfileRestOperations(HttpPipeline pipeline, string applica _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string galleryName, SharingUpdate sharingUpdate) + { + 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.Compute/galleries/", false); + uri.AppendPath(galleryName, true); + uri.AppendPath("/share", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string galleryName, SharingUpdate sharingUpdate) { var message = _pipeline.CreateMessage(); diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/ImagesRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/ImagesRestOperations.cs index fc5f06fdd723..35e361a2af7b 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/ImagesRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/ImagesRestOperations.cs @@ -37,6 +37,20 @@ public ImagesRestOperations(HttpPipeline pipeline, string applicationId, Uri end _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string imageName, DiskImageData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Compute/images/", false); + uri.AppendPath(imageName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string imageName, DiskImageData data) { var message = _pipeline.CreateMessage(); @@ -115,6 +129,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string imageName, DiskImagePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Compute/images/", false); + uri.AppendPath(imageName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string imageName, DiskImagePatch patch) { var message = _pipeline.CreateMessage(); @@ -193,6 +221,20 @@ public Response Update(string subscriptionId, string resourceGroupName, string i } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string imageName) + { + 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.Compute/images/", false); + uri.AppendPath(imageName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string imageName) { var message = _pipeline.CreateMessage(); @@ -265,6 +307,24 @@ public Response Delete(string subscriptionId, string resourceGroupName, string i } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string imageName, string expand) + { + 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.Compute/images/", false); + uri.AppendPath(imageName, true); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string imageName, string expand) { var message = _pipeline.CreateMessage(); @@ -353,6 +413,19 @@ public Response Get(string subscriptionId, string resourceGroupNa } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.Compute/images", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -426,6 +499,17 @@ public Response ListByResourceGroup(string subscriptionId, stri } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Compute/images", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -493,6 +577,14 @@ public Response List(string subscriptionId, CancellationToken c } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -565,6 +657,14 @@ public Response ListByResourceGroupNextPage(string nextLink, st } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/LogAnalyticsRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/LogAnalyticsRestOperations.cs index f7f5c4f36cdc..6d2e11914398 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/LogAnalyticsRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/LogAnalyticsRestOperations.cs @@ -36,6 +36,19 @@ public LogAnalyticsRestOperations(HttpPipeline pipeline, string applicationId, U _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateExportRequestRateByIntervalRequestUri(string subscriptionId, AzureLocation location, RequestRateByIntervalContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Compute/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/logAnalytics/apiAccess/getRequestRateByInterval", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateExportRequestRateByIntervalRequest(string subscriptionId, AzureLocation location, RequestRateByIntervalContent content) { var message = _pipeline.CreateMessage(); @@ -107,6 +120,19 @@ public Response ExportRequestRateByInterval(string subscriptionId, AzureLocation } } + internal RequestUriBuilder CreateExportThrottledRequestsRequestUri(string subscriptionId, AzureLocation location, ThrottledRequestsContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Compute/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/logAnalytics/apiAccess/getThrottledRequests", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateExportThrottledRequestsRequest(string subscriptionId, AzureLocation location, ThrottledRequestsContent content) { var message = _pipeline.CreateMessage(); diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/ProximityPlacementGroupsRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/ProximityPlacementGroupsRestOperations.cs index 0beb92206a30..debfcd0eb894 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/ProximityPlacementGroupsRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/ProximityPlacementGroupsRestOperations.cs @@ -37,6 +37,20 @@ public ProximityPlacementGroupsRestOperations(HttpPipeline pipeline, string appl _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string proximityPlacementGroupName, ProximityPlacementGroupData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Compute/proximityPlacementGroups/", false); + uri.AppendPath(proximityPlacementGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string proximityPlacementGroupName, ProximityPlacementGroupData data) { var message = _pipeline.CreateMessage(); @@ -125,6 +139,20 @@ public Response CreateOrUpdate(string subscriptionI } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string proximityPlacementGroupName, ProximityPlacementGroupPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Compute/proximityPlacementGroups/", false); + uri.AppendPath(proximityPlacementGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string proximityPlacementGroupName, ProximityPlacementGroupPatch patch) { var message = _pipeline.CreateMessage(); @@ -211,6 +239,20 @@ public Response Update(string subscriptionId, strin } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string proximityPlacementGroupName) + { + 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.Compute/proximityPlacementGroups/", false); + uri.AppendPath(proximityPlacementGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string proximityPlacementGroupName) { var message = _pipeline.CreateMessage(); @@ -279,6 +321,24 @@ public Response Delete(string subscriptionId, string resourceGroupName, string p } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string proximityPlacementGroupName, string includeColocationStatus) + { + 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.Compute/proximityPlacementGroups/", false); + uri.AppendPath(proximityPlacementGroupName, true); + if (includeColocationStatus != null) + { + uri.AppendQuery("includeColocationStatus", includeColocationStatus, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string proximityPlacementGroupName, string includeColocationStatus) { var message = _pipeline.CreateMessage(); @@ -367,6 +427,17 @@ public Response Get(string subscriptionId, string r } } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Compute/proximityPlacementGroups", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -434,6 +505,19 @@ public Response ListBySubscription(string sub } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.Compute/proximityPlacementGroups", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -507,6 +591,14 @@ public Response ListByResourceGroup(string su } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -575,6 +667,14 @@ public Response ListBySubscriptionNextPage(st } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/ResourceSkusRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/ResourceSkusRestOperations.cs index bc93f73a0ba1..d84d22a527dd 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/ResourceSkusRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/ResourceSkusRestOperations.cs @@ -37,6 +37,25 @@ public ResourceSkusRestOperations(HttpPipeline pipeline, string applicationId, U _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string filter, string includeExtendedLocations) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Compute/skus", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (includeExtendedLocations != null) + { + uri.AppendQuery("includeExtendedLocations", includeExtendedLocations, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string filter, string includeExtendedLocations) { var message = _pipeline.CreateMessage(); @@ -116,6 +135,14 @@ public Response List(string subscriptionId, string filter = } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string filter, string includeExtendedLocations) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string filter, string includeExtendedLocations) { var message = _pipeline.CreateMessage(); diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/RestorePointCollectionsRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/RestorePointCollectionsRestOperations.cs index 3caa9772fd1b..dbf8e8eae0a0 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/RestorePointCollectionsRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/RestorePointCollectionsRestOperations.cs @@ -37,6 +37,20 @@ public RestorePointCollectionsRestOperations(HttpPipeline pipeline, string appli _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string restorePointGroupName, RestorePointGroupData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Compute/restorePointCollections/", false); + uri.AppendPath(restorePointGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string restorePointGroupName, RestorePointGroupData data) { var message = _pipeline.CreateMessage(); @@ -125,6 +139,20 @@ public Response CreateOrUpdate(string subscriptionId, str } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string restorePointGroupName, RestorePointGroupPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Compute/restorePointCollections/", false); + uri.AppendPath(restorePointGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string restorePointGroupName, RestorePointGroupPatch patch) { var message = _pipeline.CreateMessage(); @@ -211,6 +239,20 @@ public Response Update(string subscriptionId, string reso } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string restorePointGroupName) + { + 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.Compute/restorePointCollections/", false); + uri.AppendPath(restorePointGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string restorePointGroupName) { var message = _pipeline.CreateMessage(); @@ -283,6 +325,24 @@ public Response Delete(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string restorePointGroupName, RestorePointGroupExpand? expand) + { + 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.Compute/restorePointCollections/", false); + uri.AppendPath(restorePointGroupName, true); + if (expand != null) + { + uri.AppendQuery("$expand", expand.Value.ToString(), true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string restorePointGroupName, RestorePointGroupExpand? expand) { var message = _pipeline.CreateMessage(); @@ -371,6 +431,19 @@ public Response Get(string subscriptionId, string resourc } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName) + { + 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.Compute/restorePointCollections", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -444,6 +517,17 @@ public Response List(string subscriptionId, string } } + internal RequestUriBuilder CreateListAllRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Compute/restorePointCollections", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListAllRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -511,6 +595,14 @@ public Response ListAll(string subscriptionId, Canc } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -583,6 +675,14 @@ public Response ListNextPage(string nextLink, strin } } + internal RequestUriBuilder CreateListAllNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListAllNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/RestorePointsRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/RestorePointsRestOperations.cs index 232a244c09ac..9d524538cd30 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/RestorePointsRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/RestorePointsRestOperations.cs @@ -37,6 +37,22 @@ public RestorePointsRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string restorePointGroupName, string restorePointName, RestorePointData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Compute/restorePointCollections/", false); + uri.AppendPath(restorePointGroupName, true); + uri.AppendPath("/restorePoints/", false); + uri.AppendPath(restorePointName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string restorePointGroupName, string restorePointName, RestorePointData data) { var message = _pipeline.CreateMessage(); @@ -119,6 +135,22 @@ public Response Create(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string restorePointGroupName, string restorePointName) + { + 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.Compute/restorePointCollections/", false); + uri.AppendPath(restorePointGroupName, true); + uri.AppendPath("/restorePoints/", false); + uri.AppendPath(restorePointName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string restorePointGroupName, string restorePointName) { var message = _pipeline.CreateMessage(); @@ -197,6 +229,26 @@ public Response Delete(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string restorePointGroupName, string restorePointName, RestorePointExpand? expand) + { + 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.Compute/restorePointCollections/", false); + uri.AppendPath(restorePointGroupName, true); + uri.AppendPath("/restorePoints/", false); + uri.AppendPath(restorePointName, true); + if (expand != null) + { + uri.AppendQuery("$expand", expand.Value.ToString(), true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string restorePointGroupName, string restorePointName, RestorePointExpand? expand) { var message = _pipeline.CreateMessage(); diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/SharedGalleriesRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/SharedGalleriesRestOperations.cs index 82939c0c0a49..0e36600e2bca 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/SharedGalleriesRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/SharedGalleriesRestOperations.cs @@ -37,6 +37,23 @@ public SharedGalleriesRestOperations(HttpPipeline pipeline, string applicationId _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, AzureLocation location, SharedToValue? sharedTo) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Compute/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/sharedGalleries", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (sharedTo != null) + { + uri.AppendQuery("sharedTo", sharedTo.Value.ToString(), true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, AzureLocation location, SharedToValue? sharedTo) { var message = _pipeline.CreateMessage(); @@ -114,6 +131,20 @@ public Response List(string subscriptionId, AzureLocation loc } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, AzureLocation location, string galleryUniqueName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Compute/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/sharedGalleries/", false); + uri.AppendPath(galleryUniqueName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, AzureLocation location, string galleryUniqueName) { var message = _pipeline.CreateMessage(); @@ -194,6 +225,14 @@ public Response Get(string subscriptionId, AzureLocation loca } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, AzureLocation location, SharedToValue? sharedTo) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, AzureLocation location, SharedToValue? sharedTo) { var message = _pipeline.CreateMessage(); diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/SharedGalleryImageVersionsRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/SharedGalleryImageVersionsRestOperations.cs index 3e8c708b5780..5c022fd4b8b7 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/SharedGalleryImageVersionsRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/SharedGalleryImageVersionsRestOperations.cs @@ -37,6 +37,27 @@ public SharedGalleryImageVersionsRestOperations(HttpPipeline pipeline, string ap _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, AzureLocation location, string galleryUniqueName, string galleryImageName, SharedToValue? sharedTo) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Compute/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/sharedGalleries/", false); + uri.AppendPath(galleryUniqueName, true); + uri.AppendPath("/images/", false); + uri.AppendPath(galleryImageName, true); + uri.AppendPath("/versions", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (sharedTo != null) + { + uri.AppendQuery("sharedTo", sharedTo.Value.ToString(), true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, AzureLocation location, string galleryUniqueName, string galleryImageName, SharedToValue? sharedTo) { var message = _pipeline.CreateMessage(); @@ -126,6 +147,24 @@ public Response List(string subscriptionId, Azure } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, AzureLocation location, string galleryUniqueName, string galleryImageName, string galleryImageVersionName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Compute/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/sharedGalleries/", false); + uri.AppendPath(galleryUniqueName, true); + uri.AppendPath("/images/", false); + uri.AppendPath(galleryImageName, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(galleryImageVersionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, AzureLocation location, string galleryUniqueName, string galleryImageName, string galleryImageVersionName) { var message = _pipeline.CreateMessage(); @@ -218,6 +257,14 @@ public Response Get(string subscriptionId, AzureL } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, AzureLocation location, string galleryUniqueName, string galleryImageName, SharedToValue? sharedTo) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, AzureLocation location, string galleryUniqueName, string galleryImageName, SharedToValue? sharedTo) { var message = _pipeline.CreateMessage(); diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/SharedGalleryImagesRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/SharedGalleryImagesRestOperations.cs index 0d4c09f5977d..b4fd13976e44 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/SharedGalleryImagesRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/SharedGalleryImagesRestOperations.cs @@ -37,6 +37,25 @@ public SharedGalleryImagesRestOperations(HttpPipeline pipeline, string applicati _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, AzureLocation location, string galleryUniqueName, SharedToValue? sharedTo) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Compute/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/sharedGalleries/", false); + uri.AppendPath(galleryUniqueName, true); + uri.AppendPath("/images", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (sharedTo != null) + { + uri.AppendQuery("sharedTo", sharedTo.Value.ToString(), true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, AzureLocation location, string galleryUniqueName, SharedToValue? sharedTo) { var message = _pipeline.CreateMessage(); @@ -120,6 +139,22 @@ public Response List(string subscriptionId, AzureLocatio } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, AzureLocation location, string galleryUniqueName, string galleryImageName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Compute/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/sharedGalleries/", false); + uri.AppendPath(galleryUniqueName, true); + uri.AppendPath("/images/", false); + uri.AppendPath(galleryImageName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, AzureLocation location, string galleryUniqueName, string galleryImageName) { var message = _pipeline.CreateMessage(); @@ -206,6 +241,14 @@ public Response Get(string subscriptionId, AzureLocation } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, AzureLocation location, string galleryUniqueName, SharedToValue? sharedTo) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, AzureLocation location, string galleryUniqueName, SharedToValue? sharedTo) { var message = _pipeline.CreateMessage(); diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/SnapshotsRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/SnapshotsRestOperations.cs index 5034f6bebfcd..fe7286d98feb 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/SnapshotsRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/SnapshotsRestOperations.cs @@ -37,6 +37,20 @@ public SnapshotsRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string snapshotName, SnapshotData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Compute/snapshots/", false); + uri.AppendPath(snapshotName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string snapshotName, SnapshotData data) { var message = _pipeline.CreateMessage(); @@ -115,6 +129,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string snapshotName, SnapshotPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Compute/snapshots/", false); + uri.AppendPath(snapshotName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string snapshotName, SnapshotPatch patch) { var message = _pipeline.CreateMessage(); @@ -193,6 +221,20 @@ public Response Update(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string snapshotName) + { + 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.Compute/snapshots/", false); + uri.AppendPath(snapshotName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string snapshotName) { var message = _pipeline.CreateMessage(); @@ -275,6 +317,20 @@ public Response Get(string subscriptionId, string resourceGroupNam } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string snapshotName) + { + 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.Compute/snapshots/", false); + uri.AppendPath(snapshotName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string snapshotName) { var message = _pipeline.CreateMessage(); @@ -346,6 +402,19 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.Compute/snapshots", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -419,6 +488,17 @@ public Response ListByResourceGroup(string subscriptionId, string } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Compute/snapshots", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -486,6 +566,21 @@ public Response List(string subscriptionId, CancellationToken canc } } + internal RequestUriBuilder CreateGrantAccessRequestUri(string subscriptionId, string resourceGroupName, string snapshotName, GrantAccessData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Compute/snapshots/", false); + uri.AppendPath(snapshotName, true); + uri.AppendPath("/beginGetAccess", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGrantAccessRequest(string subscriptionId, string resourceGroupName, string snapshotName, GrantAccessData data) { var message = _pipeline.CreateMessage(); @@ -565,6 +660,21 @@ public Response GrantAccess(string subscriptionId, string resourceGroupName, str } } + internal RequestUriBuilder CreateRevokeAccessRequestUri(string subscriptionId, string resourceGroupName, string snapshotName) + { + 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.Compute/snapshots/", false); + uri.AppendPath(snapshotName, true); + uri.AppendPath("/endGetAccess", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRevokeAccessRequest(string subscriptionId, string resourceGroupName, string snapshotName) { var message = _pipeline.CreateMessage(); @@ -635,6 +745,14 @@ public Response RevokeAccess(string subscriptionId, string resourceGroupName, st } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -707,6 +825,14 @@ public Response ListByResourceGroupNextPage(string nextLink, strin } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/SshPublicKeysRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/SshPublicKeysRestOperations.cs index 1dd06458a654..6dbc18cbd7c9 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/SshPublicKeysRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/SshPublicKeysRestOperations.cs @@ -37,6 +37,17 @@ public SshPublicKeysRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Compute/sshPublicKeys", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,19 @@ public Response ListBySubscription(string subscrip } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.Compute/sshPublicKeys", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -177,6 +201,20 @@ public Response ListByResourceGroup(string subscri } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string sshPublicKeyName, SshPublicKeyData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Compute/sshPublicKeys/", false); + uri.AppendPath(sshPublicKeyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string sshPublicKeyName, SshPublicKeyData data) { var message = _pipeline.CreateMessage(); @@ -265,6 +303,20 @@ public Response Create(string subscriptionId, string resourceG } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string sshPublicKeyName, SshPublicKeyPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Compute/sshPublicKeys/", false); + uri.AppendPath(sshPublicKeyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string sshPublicKeyName, SshPublicKeyPatch patch) { var message = _pipeline.CreateMessage(); @@ -351,6 +403,20 @@ public Response Update(string subscriptionId, string resourceG } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string sshPublicKeyName) + { + 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.Compute/sshPublicKeys/", false); + uri.AppendPath(sshPublicKeyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string sshPublicKeyName) { var message = _pipeline.CreateMessage(); @@ -421,6 +487,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string sshPublicKeyName) + { + 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.Compute/sshPublicKeys/", false); + uri.AppendPath(sshPublicKeyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string sshPublicKeyName) { var message = _pipeline.CreateMessage(); @@ -503,6 +583,21 @@ public Response Get(string subscriptionId, string resourceGrou } } + internal RequestUriBuilder CreateGenerateKeyPairRequestUri(string subscriptionId, string resourceGroupName, string sshPublicKeyName, SshGenerateKeyPairInputContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Compute/sshPublicKeys/", false); + uri.AppendPath(sshPublicKeyName, true); + uri.AppendPath("/generateKeyPair", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGenerateKeyPairRequest(string subscriptionId, string resourceGroupName, string sshPublicKeyName, SshGenerateKeyPairInputContent content) { var message = _pipeline.CreateMessage(); @@ -591,6 +686,14 @@ public Response GenerateKeyPair(string subscr } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -659,6 +762,14 @@ public Response ListBySubscriptionNextPage(string } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/UsageRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/UsageRestOperations.cs index c14c7fff93f0..337184ccb456 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/UsageRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/UsageRestOperations.cs @@ -37,6 +37,19 @@ public UsageRestOperations(HttpPipeline pipeline, string applicationId, Uri endp _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, AzureLocation location) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Compute/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/usages", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, AzureLocation location) { var message = _pipeline.CreateMessage(); @@ -108,6 +121,14 @@ public Response List(string subscriptionId, AzureLocation loca } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, AzureLocation location) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, AzureLocation location) { var message = _pipeline.CreateMessage(); diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineExtensionImagesRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineExtensionImagesRestOperations.cs index bfd557a6af49..fea5571884a0 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineExtensionImagesRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineExtensionImagesRestOperations.cs @@ -37,6 +37,24 @@ public VirtualMachineExtensionImagesRestOperations(HttpPipeline pipeline, string _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, AzureLocation location, string publisherName, string type, string version) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Compute/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/publishers/", false); + uri.AppendPath(publisherName, true); + uri.AppendPath("/artifacttypes/vmextension/types/", false); + uri.AppendPath(type, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(version, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, AzureLocation location, string publisherName, string type, string version) { var message = _pipeline.CreateMessage(); @@ -129,6 +147,21 @@ public Response Get(string subscriptionId, Azu } } + internal RequestUriBuilder CreateListTypesRequestUri(string subscriptionId, AzureLocation location, string publisherName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Compute/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/publishers/", false); + uri.AppendPath(publisherName, true); + uri.AppendPath("/artifacttypes/vmextension/types", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListTypesRequest(string subscriptionId, AzureLocation location, string publisherName) { var message = _pipeline.CreateMessage(); @@ -216,6 +249,35 @@ public Response> ListTypes(strin } } + internal RequestUriBuilder CreateListVersionsRequestUri(string subscriptionId, AzureLocation location, string publisherName, string type, string filter, int? top, string orderby) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Compute/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/publishers/", false); + uri.AppendPath(publisherName, true); + uri.AppendPath("/artifacttypes/vmextension/types/", false); + uri.AppendPath(type, true); + uri.AppendPath("/versions", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (orderby != null) + { + uri.AppendQuery("$orderby", orderby, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListVersionsRequest(string subscriptionId, AzureLocation location, string publisherName, string type, string filter, int? top, string orderby) { var message = _pipeline.CreateMessage(); diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineExtensionsRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineExtensionsRestOperations.cs index 88dbd6dc1c45..2fb0c724aca9 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineExtensionsRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineExtensionsRestOperations.cs @@ -37,6 +37,22 @@ public VirtualMachineExtensionsRestOperations(HttpPipeline pipeline, string appl _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string vmName, string vmExtensionName, VirtualMachineExtensionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Compute/virtualMachines/", false); + uri.AppendPath(vmName, true); + uri.AppendPath("/extensions/", false); + uri.AppendPath(vmExtensionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string vmName, string vmExtensionName, VirtualMachineExtensionData data) { var message = _pipeline.CreateMessage(); @@ -121,6 +137,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string vmName, string vmExtensionName, VirtualMachineExtensionPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Compute/virtualMachines/", false); + uri.AppendPath(vmName, true); + uri.AppendPath("/extensions/", false); + uri.AppendPath(vmExtensionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string vmName, string vmExtensionName, VirtualMachineExtensionPatch patch) { var message = _pipeline.CreateMessage(); @@ -203,6 +235,22 @@ public Response Update(string subscriptionId, string resourceGroupName, string v } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string vmName, string vmExtensionName) + { + 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.Compute/virtualMachines/", false); + uri.AppendPath(vmName, true); + uri.AppendPath("/extensions/", false); + uri.AppendPath(vmExtensionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string vmName, string vmExtensionName) { var message = _pipeline.CreateMessage(); @@ -281,6 +329,26 @@ public Response Delete(string subscriptionId, string resourceGroupName, string v } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string vmName, string vmExtensionName, string expand) + { + 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.Compute/virtualMachines/", false); + uri.AppendPath(vmName, true); + uri.AppendPath("/extensions/", false); + uri.AppendPath(vmExtensionName, true); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string vmName, string vmExtensionName, string expand) { var message = _pipeline.CreateMessage(); @@ -375,6 +443,25 @@ public Response Get(string subscriptionId, string r } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string vmName, string expand) + { + 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.Compute/virtualMachines/", false); + uri.AppendPath(vmName, true); + uri.AppendPath("/extensions", false); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string vmName, string expand) { var message = _pipeline.CreateMessage(); diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineImagesEdgeZoneRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineImagesEdgeZoneRestOperations.cs index 0787921e8bda..f5d01d78b29d 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineImagesEdgeZoneRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineImagesEdgeZoneRestOperations.cs @@ -38,6 +38,28 @@ public VirtualMachineImagesEdgeZoneRestOperations(HttpPipeline pipeline, string _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, AzureLocation location, string edgeZone, string publisherName, string offer, string skus, string version) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Compute/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/edgeZones/", false); + uri.AppendPath(edgeZone, true); + uri.AppendPath("/publishers/", false); + uri.AppendPath(publisherName, true); + uri.AppendPath("/artifacttypes/vmimage/offers/", false); + uri.AppendPath(offer, true); + uri.AppendPath("/skus/", false); + uri.AppendPath(skus, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(version, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, AzureLocation location, string edgeZone, string publisherName, string offer, string skus, string version) { var message = _pipeline.CreateMessage(); @@ -138,6 +160,39 @@ public Response Get(string subscriptionId, AzureLocation lo } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, AzureLocation location, string edgeZone, string publisherName, string offer, string skus, string expand, int? top, string orderby) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Compute/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/edgeZones/", false); + uri.AppendPath(edgeZone, true); + uri.AppendPath("/publishers/", false); + uri.AppendPath(publisherName, true); + uri.AppendPath("/artifacttypes/vmimage/offers/", false); + uri.AppendPath(offer, true); + uri.AppendPath("/skus/", false); + uri.AppendPath(skus, true); + uri.AppendPath("/versions", false); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (orderby != null) + { + uri.AppendQuery("$orderby", orderby, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, AzureLocation location, string edgeZone, string publisherName, string offer, string skus, string expand, int? top, string orderby) { var message = _pipeline.CreateMessage(); @@ -261,6 +316,23 @@ public Response> List(string subscription } } + internal RequestUriBuilder CreateListOffersRequestUri(string subscriptionId, AzureLocation location, string edgeZone, string publisherName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Compute/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/edgeZones/", false); + uri.AppendPath(edgeZone, true); + uri.AppendPath("/publishers/", false); + uri.AppendPath(publisherName, true); + uri.AppendPath("/artifacttypes/vmimage/offers", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListOffersRequest(string subscriptionId, AzureLocation location, string edgeZone, string publisherName) { var message = _pipeline.CreateMessage(); @@ -354,6 +426,21 @@ public Response> ListOffers(string subscr } } + internal RequestUriBuilder CreateListPublishersRequestUri(string subscriptionId, AzureLocation location, string edgeZone) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Compute/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/edgeZones/", false); + uri.AppendPath(edgeZone, true); + uri.AppendPath("/publishers", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListPublishersRequest(string subscriptionId, AzureLocation location, string edgeZone) { var message = _pipeline.CreateMessage(); @@ -441,6 +528,25 @@ public Response> ListPublishers(string su } } + internal RequestUriBuilder CreateListSkusRequestUri(string subscriptionId, AzureLocation location, string edgeZone, string publisherName, string offer) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Compute/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/edgeZones/", false); + uri.AppendPath(edgeZone, true); + uri.AppendPath("/publishers/", false); + uri.AppendPath(publisherName, true); + uri.AppendPath("/artifacttypes/vmimage/offers/", false); + uri.AppendPath(offer, true); + uri.AppendPath("/skus", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListSkusRequest(string subscriptionId, AzureLocation location, string edgeZone, string publisherName, string offer) { var message = _pipeline.CreateMessage(); diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineImagesRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineImagesRestOperations.cs index 58600ede8b3a..68a87e827207 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineImagesRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineImagesRestOperations.cs @@ -38,6 +38,26 @@ public VirtualMachineImagesRestOperations(HttpPipeline pipeline, string applicat _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, AzureLocation location, string publisherName, string offer, string skus, string version) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Compute/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/publishers/", false); + uri.AppendPath(publisherName, true); + uri.AppendPath("/artifacttypes/vmimage/offers/", false); + uri.AppendPath(offer, true); + uri.AppendPath("/skus/", false); + uri.AppendPath(skus, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(version, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, AzureLocation location, string publisherName, string offer, string skus, string version) { var message = _pipeline.CreateMessage(); @@ -132,6 +152,37 @@ public Response Get(string subscriptionId, AzureLocation lo } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, AzureLocation location, string publisherName, string offer, string skus, string expand, int? top, string orderby) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Compute/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/publishers/", false); + uri.AppendPath(publisherName, true); + uri.AppendPath("/artifacttypes/vmimage/offers/", false); + uri.AppendPath(offer, true); + uri.AppendPath("/skus/", false); + uri.AppendPath(skus, true); + uri.AppendPath("/versions", false); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (orderby != null) + { + uri.AppendQuery("$orderby", orderby, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, AzureLocation location, string publisherName, string offer, string skus, string expand, int? top, string orderby) { var message = _pipeline.CreateMessage(); @@ -249,6 +300,21 @@ public Response> List(string subscription } } + internal RequestUriBuilder CreateListOffersRequestUri(string subscriptionId, AzureLocation location, string publisherName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Compute/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/publishers/", false); + uri.AppendPath(publisherName, true); + uri.AppendPath("/artifacttypes/vmimage/offers", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListOffersRequest(string subscriptionId, AzureLocation location, string publisherName) { var message = _pipeline.CreateMessage(); @@ -336,6 +402,19 @@ public Response> ListOffers(string subscr } } + internal RequestUriBuilder CreateListPublishersRequestUri(string subscriptionId, AzureLocation location) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Compute/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/publishers", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListPublishersRequest(string subscriptionId, AzureLocation location) { var message = _pipeline.CreateMessage(); @@ -417,6 +496,23 @@ public Response> ListPublishers(string su } } + internal RequestUriBuilder CreateListSkusRequestUri(string subscriptionId, AzureLocation location, string publisherName, string offer) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Compute/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/publishers/", false); + uri.AppendPath(publisherName, true); + uri.AppendPath("/artifacttypes/vmimage/offers/", false); + uri.AppendPath(offer, true); + uri.AppendPath("/skus", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListSkusRequest(string subscriptionId, AzureLocation location, string publisherName, string offer) { var message = _pipeline.CreateMessage(); @@ -510,6 +606,21 @@ public Response> ListSkus(string subscrip } } + internal RequestUriBuilder CreateListByEdgeZoneRequestUri(string subscriptionId, AzureLocation location, string edgeZone) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Compute/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/edgeZones/", false); + uri.AppendPath(edgeZone, true); + uri.AppendPath("/vmimages", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByEdgeZoneRequest(string subscriptionId, AzureLocation location, string edgeZone) { var message = _pipeline.CreateMessage(); diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineRunCommandsRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineRunCommandsRestOperations.cs index 920757366c81..8f8561da032a 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineRunCommandsRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineRunCommandsRestOperations.cs @@ -37,6 +37,19 @@ public VirtualMachineRunCommandsRestOperations(HttpPipeline pipeline, string app _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, AzureLocation location) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Compute/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/runCommands", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, AzureLocation location) { var message = _pipeline.CreateMessage(); @@ -108,6 +121,20 @@ public Response List(string subscriptionId, AzureLocation } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, AzureLocation location, string commandId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Compute/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/runCommands/", false); + uri.AppendPath(commandId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, AzureLocation location, string commandId) { var message = _pipeline.CreateMessage(); @@ -184,6 +211,22 @@ public Response Get(string subscriptionId, AzureLocation loc } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string vmName, string runCommandName, VirtualMachineRunCommandData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Compute/virtualMachines/", false); + uri.AppendPath(vmName, true); + uri.AppendPath("/runCommands/", false); + uri.AppendPath(runCommandName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string vmName, string runCommandName, VirtualMachineRunCommandData data) { var message = _pipeline.CreateMessage(); @@ -268,6 +311,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string vmName, string runCommandName, VirtualMachineRunCommandUpdate runCommand) + { + 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.Compute/virtualMachines/", false); + uri.AppendPath(vmName, true); + uri.AppendPath("/runCommands/", false); + uri.AppendPath(runCommandName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string vmName, string runCommandName, VirtualMachineRunCommandUpdate runCommand) { var message = _pipeline.CreateMessage(); @@ -350,6 +409,22 @@ public Response Update(string subscriptionId, string resourceGroupName, string v } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string vmName, string runCommandName) + { + 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.Compute/virtualMachines/", false); + uri.AppendPath(vmName, true); + uri.AppendPath("/runCommands/", false); + uri.AppendPath(runCommandName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string vmName, string runCommandName) { var message = _pipeline.CreateMessage(); @@ -428,6 +503,26 @@ public Response Delete(string subscriptionId, string resourceGroupName, string v } } + internal RequestUriBuilder CreateGetByVirtualMachineRequestUri(string subscriptionId, string resourceGroupName, string vmName, string runCommandName, string expand) + { + 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.Compute/virtualMachines/", false); + uri.AppendPath(vmName, true); + uri.AppendPath("/runCommands/", false); + uri.AppendPath(runCommandName, true); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetByVirtualMachineRequest(string subscriptionId, string resourceGroupName, string vmName, string runCommandName, string expand) { var message = _pipeline.CreateMessage(); @@ -522,6 +617,25 @@ public Response GetByVirtualMachine(string subscri } } + internal RequestUriBuilder CreateListByVirtualMachineRequestUri(string subscriptionId, string resourceGroupName, string vmName, string expand) + { + 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.Compute/virtualMachines/", false); + uri.AppendPath(vmName, true); + uri.AppendPath("/runCommands", false); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByVirtualMachineRequest(string subscriptionId, string resourceGroupName, string vmName, string expand) { var message = _pipeline.CreateMessage(); @@ -607,6 +721,14 @@ public Response ListByVirtualMachine(string } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, AzureLocation location) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, AzureLocation location) { var message = _pipeline.CreateMessage(); @@ -677,6 +799,14 @@ public Response ListNextPage(string nextLink, string subsc } } + internal RequestUriBuilder CreateListByVirtualMachineNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string vmName, string expand) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByVirtualMachineNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string vmName, string expand) { var message = _pipeline.CreateMessage(); diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineScaleSetExtensionsRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineScaleSetExtensionsRestOperations.cs index f9a8c5c417a4..1417c5498421 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineScaleSetExtensionsRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineScaleSetExtensionsRestOperations.cs @@ -37,6 +37,22 @@ public VirtualMachineScaleSetExtensionsRestOperations(HttpPipeline pipeline, str _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, string vmssExtensionName, VirtualMachineScaleSetExtensionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Compute/virtualMachineScaleSets/", false); + uri.AppendPath(virtualMachineScaleSetName, true); + uri.AppendPath("/extensions/", false); + uri.AppendPath(vmssExtensionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, string vmssExtensionName, VirtualMachineScaleSetExtensionData data) { var message = _pipeline.CreateMessage(); @@ -121,6 +137,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, string vmssExtensionName, VirtualMachineScaleSetExtensionPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Compute/virtualMachineScaleSets/", false); + uri.AppendPath(virtualMachineScaleSetName, true); + uri.AppendPath("/extensions/", false); + uri.AppendPath(vmssExtensionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, string vmssExtensionName, VirtualMachineScaleSetExtensionPatch patch) { var message = _pipeline.CreateMessage(); @@ -205,6 +237,22 @@ public Response Update(string subscriptionId, string resourceGroupName, string v } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, string vmssExtensionName) + { + 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.Compute/virtualMachineScaleSets/", false); + uri.AppendPath(virtualMachineScaleSetName, true); + uri.AppendPath("/extensions/", false); + uri.AppendPath(vmssExtensionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, string vmssExtensionName) { var message = _pipeline.CreateMessage(); @@ -283,6 +331,26 @@ public Response Delete(string subscriptionId, string resourceGroupName, string v } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, string vmssExtensionName, string expand) + { + 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.Compute/virtualMachineScaleSets/", false); + uri.AppendPath(virtualMachineScaleSetName, true); + uri.AppendPath("/extensions/", false); + uri.AppendPath(vmssExtensionName, true); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, string vmssExtensionName, string expand) { var message = _pipeline.CreateMessage(); @@ -377,6 +445,21 @@ public Response Get(string subscriptionId, } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName) + { + 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.Compute/virtualMachineScaleSets/", false); + uri.AppendPath(virtualMachineScaleSetName, true); + uri.AppendPath("/extensions", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName) { var message = _pipeline.CreateMessage(); @@ -456,6 +539,14 @@ public Response List(string subscript } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineScaleSetRollingUpgradesRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineScaleSetRollingUpgradesRestOperations.cs index 4b4bf7949e25..5adc75a0fa95 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineScaleSetRollingUpgradesRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineScaleSetRollingUpgradesRestOperations.cs @@ -36,6 +36,21 @@ public VirtualMachineScaleSetRollingUpgradesRestOperations(HttpPipeline pipeline _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCancelRequestUri(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName) + { + 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.Compute/virtualMachineScaleSets/", false); + uri.AppendPath(virtualMachineScaleSetName, true); + uri.AppendPath("/rollingUpgrades/cancel", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCancelRequest(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName) { var message = _pipeline.CreateMessage(); @@ -107,6 +122,21 @@ public Response Cancel(string subscriptionId, string resourceGroupName, string v } } + internal RequestUriBuilder CreateStartOSUpgradeRequestUri(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName) + { + 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.Compute/virtualMachineScaleSets/", false); + uri.AppendPath(virtualMachineScaleSetName, true); + uri.AppendPath("/osRollingUpgrade", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStartOSUpgradeRequest(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName) { var message = _pipeline.CreateMessage(); @@ -178,6 +208,21 @@ public Response StartOSUpgrade(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateStartExtensionUpgradeRequestUri(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName) + { + 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.Compute/virtualMachineScaleSets/", false); + uri.AppendPath(virtualMachineScaleSetName, true); + uri.AppendPath("/extensionRollingUpgrade", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStartExtensionUpgradeRequest(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName) { var message = _pipeline.CreateMessage(); @@ -249,6 +294,21 @@ public Response StartExtensionUpgrade(string subscriptionId, string resourceGrou } } + internal RequestUriBuilder CreateGetLatestRequestUri(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName) + { + 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.Compute/virtualMachineScaleSets/", false); + uri.AppendPath(virtualMachineScaleSetName, true); + uri.AppendPath("/rollingUpgrades/latest", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetLatestRequest(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineScaleSetVMExtensionsRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineScaleSetVMExtensionsRestOperations.cs index b45280a497d0..89eb0ef367d6 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineScaleSetVMExtensionsRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineScaleSetVMExtensionsRestOperations.cs @@ -37,6 +37,24 @@ public VirtualMachineScaleSetVMExtensionsRestOperations(HttpPipeline pipeline, s _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, string instanceId, string vmExtensionName, VirtualMachineScaleSetVmExtensionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Compute/virtualMachineScaleSets/", false); + uri.AppendPath(virtualMachineScaleSetName, true); + uri.AppendPath("/virtualMachines/", false); + uri.AppendPath(instanceId, true); + uri.AppendPath("/extensions/", false); + uri.AppendPath(vmExtensionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, string instanceId, string vmExtensionName, VirtualMachineScaleSetVmExtensionData data) { var message = _pipeline.CreateMessage(); @@ -127,6 +145,24 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, string instanceId, string vmExtensionName, VirtualMachineScaleSetVmExtensionPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Compute/virtualMachineScaleSets/", false); + uri.AppendPath(virtualMachineScaleSetName, true); + uri.AppendPath("/virtualMachines/", false); + uri.AppendPath(instanceId, true); + uri.AppendPath("/extensions/", false); + uri.AppendPath(vmExtensionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, string instanceId, string vmExtensionName, VirtualMachineScaleSetVmExtensionPatch patch) { var message = _pipeline.CreateMessage(); @@ -215,6 +251,24 @@ public Response Update(string subscriptionId, string resourceGroupName, string v } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, string instanceId, string vmExtensionName) + { + 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.Compute/virtualMachineScaleSets/", false); + uri.AppendPath(virtualMachineScaleSetName, true); + uri.AppendPath("/virtualMachines/", false); + uri.AppendPath(instanceId, true); + uri.AppendPath("/extensions/", false); + uri.AppendPath(vmExtensionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, string instanceId, string vmExtensionName) { var message = _pipeline.CreateMessage(); @@ -299,6 +353,28 @@ public Response Delete(string subscriptionId, string resourceGroupName, string v } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, string instanceId, string vmExtensionName, string expand) + { + 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.Compute/virtualMachineScaleSets/", false); + uri.AppendPath(virtualMachineScaleSetName, true); + uri.AppendPath("/virtualMachines/", false); + uri.AppendPath(instanceId, true); + uri.AppendPath("/extensions/", false); + uri.AppendPath(vmExtensionName, true); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, string instanceId, string vmExtensionName, string expand) { var message = _pipeline.CreateMessage(); @@ -399,6 +475,27 @@ public Response Get(string subscriptionId } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, string instanceId, string expand) + { + 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.Compute/virtualMachineScaleSets/", false); + uri.AppendPath(virtualMachineScaleSetName, true); + uri.AppendPath("/virtualMachines/", false); + uri.AppendPath(instanceId, true); + uri.AppendPath("/extensions", false); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, string instanceId, string expand) { var message = _pipeline.CreateMessage(); diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineScaleSetVMRunCommandsRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineScaleSetVMRunCommandsRestOperations.cs index e2d75cda17f2..1e27f096d92c 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineScaleSetVMRunCommandsRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineScaleSetVMRunCommandsRestOperations.cs @@ -37,6 +37,24 @@ public VirtualMachineScaleSetVMRunCommandsRestOperations(HttpPipeline pipeline, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, string instanceId, string runCommandName, VirtualMachineRunCommandData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Compute/virtualMachineScaleSets/", false); + uri.AppendPath(virtualMachineScaleSetName, true); + uri.AppendPath("/virtualMachines/", false); + uri.AppendPath(instanceId, true); + uri.AppendPath("/runCommands/", false); + uri.AppendPath(runCommandName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, string instanceId, string runCommandName, VirtualMachineRunCommandData data) { var message = _pipeline.CreateMessage(); @@ -127,6 +145,24 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, string instanceId, string runCommandName, VirtualMachineRunCommandUpdate runCommand) + { + 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.Compute/virtualMachineScaleSets/", false); + uri.AppendPath(virtualMachineScaleSetName, true); + uri.AppendPath("/virtualMachines/", false); + uri.AppendPath(instanceId, true); + uri.AppendPath("/runCommands/", false); + uri.AppendPath(runCommandName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, string instanceId, string runCommandName, VirtualMachineRunCommandUpdate runCommand) { var message = _pipeline.CreateMessage(); @@ -215,6 +251,24 @@ public Response Update(string subscriptionId, string resourceGroupName, string v } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, string instanceId, string runCommandName) + { + 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.Compute/virtualMachineScaleSets/", false); + uri.AppendPath(virtualMachineScaleSetName, true); + uri.AppendPath("/virtualMachines/", false); + uri.AppendPath(instanceId, true); + uri.AppendPath("/runCommands/", false); + uri.AppendPath(runCommandName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, string instanceId, string runCommandName) { var message = _pipeline.CreateMessage(); @@ -299,6 +353,28 @@ public Response Delete(string subscriptionId, string resourceGroupName, string v } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, string instanceId, string runCommandName, string expand) + { + 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.Compute/virtualMachineScaleSets/", false); + uri.AppendPath(virtualMachineScaleSetName, true); + uri.AppendPath("/virtualMachines/", false); + uri.AppendPath(instanceId, true); + uri.AppendPath("/runCommands/", false); + uri.AppendPath(runCommandName, true); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, string instanceId, string runCommandName, string expand) { var message = _pipeline.CreateMessage(); @@ -399,6 +475,27 @@ public Response Get(string subscriptionId, string } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, string instanceId, string expand) + { + 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.Compute/virtualMachineScaleSets/", false); + uri.AppendPath(virtualMachineScaleSetName, true); + uri.AppendPath("/virtualMachines/", false); + uri.AppendPath(instanceId, true); + uri.AppendPath("/runCommands", false); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, string instanceId, string expand) { var message = _pipeline.CreateMessage(); @@ -490,6 +587,14 @@ public Response List(string subscriptionId, } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, string instanceId, string expand) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, string instanceId, string expand) { var message = _pipeline.CreateMessage(); diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineScaleSetVMsRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineScaleSetVMsRestOperations.cs index c8356b7a80f0..8aad66cce497 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineScaleSetVMsRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineScaleSetVMsRestOperations.cs @@ -37,6 +37,23 @@ public VirtualMachineScaleSetVMsRestOperations(HttpPipeline pipeline, string app _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateReimageRequestUri(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, string instanceId, VirtualMachineScaleSetVmReimageContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Compute/virtualMachineScaleSets/", false); + uri.AppendPath(virtualMachineScaleSetName, true); + uri.AppendPath("/virtualMachines/", false); + uri.AppendPath(instanceId, true); + uri.AppendPath("/reimage", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateReimageRequest(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, string instanceId, VirtualMachineScaleSetVmReimageContent content) { var message = _pipeline.CreateMessage(); @@ -123,6 +140,23 @@ public Response Reimage(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreateReimageAllRequestUri(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, string instanceId) + { + 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.Compute/virtualMachineScaleSets/", false); + uri.AppendPath(virtualMachineScaleSetName, true); + uri.AppendPath("/virtualMachines/", false); + uri.AppendPath(instanceId, true); + uri.AppendPath("/reimageall", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateReimageAllRequest(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, string instanceId) { var message = _pipeline.CreateMessage(); @@ -200,6 +234,23 @@ public Response ReimageAll(string subscriptionId, string resourceGroupName, stri } } + internal RequestUriBuilder CreateApproveRollingUpgradeRequestUri(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, string instanceId) + { + 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.Compute/virtualMachineScaleSets/", false); + uri.AppendPath(virtualMachineScaleSetName, true); + uri.AppendPath("/virtualMachines/", false); + uri.AppendPath(instanceId, true); + uri.AppendPath("/approveRollingUpgrade", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateApproveRollingUpgradeRequest(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, string instanceId) { var message = _pipeline.CreateMessage(); @@ -275,6 +326,23 @@ public Response ApproveRollingUpgrade(string subscriptionId, string resourceGrou } } + internal RequestUriBuilder CreateDeallocateRequestUri(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, string instanceId) + { + 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.Compute/virtualMachineScaleSets/", false); + uri.AppendPath(virtualMachineScaleSetName, true); + uri.AppendPath("/virtualMachines/", false); + uri.AppendPath(instanceId, true); + uri.AppendPath("/deallocate", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeallocateRequest(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, string instanceId) { var message = _pipeline.CreateMessage(); @@ -352,6 +420,22 @@ public Response Deallocate(string subscriptionId, string resourceGroupName, stri } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, string instanceId, VirtualMachineScaleSetVmData data, string ifMatch, string ifNoneMatch) + { + 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.Compute/virtualMachineScaleSets/", false); + uri.AppendPath(virtualMachineScaleSetName, true); + uri.AppendPath("/virtualMachines/", false); + uri.AppendPath(instanceId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, string instanceId, VirtualMachineScaleSetVmData data, string ifMatch, string ifNoneMatch) { var message = _pipeline.CreateMessage(); @@ -448,6 +532,26 @@ public Response Update(string subscriptionId, string resourceGroupName, string v } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, string instanceId, bool? forceDeletion) + { + 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.Compute/virtualMachineScaleSets/", false); + uri.AppendPath(virtualMachineScaleSetName, true); + uri.AppendPath("/virtualMachines/", false); + uri.AppendPath(instanceId, true); + if (forceDeletion != null) + { + uri.AppendQuery("forceDeletion", forceDeletion.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, string instanceId, bool? forceDeletion) { var message = _pipeline.CreateMessage(); @@ -532,6 +636,26 @@ public Response Delete(string subscriptionId, string resourceGroupName, string v } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, string instanceId, InstanceViewType? expand) + { + 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.Compute/virtualMachineScaleSets/", false); + uri.AppendPath(virtualMachineScaleSetName, true); + uri.AppendPath("/virtualMachines/", false); + uri.AppendPath(instanceId, true); + if (expand != null) + { + uri.AppendQuery("$expand", expand.Value.ToSerialString(), true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, string instanceId, InstanceViewType? expand) { var message = _pipeline.CreateMessage(); @@ -626,6 +750,23 @@ public Response Get(string subscriptionId, string } } + internal RequestUriBuilder CreateGetInstanceViewRequestUri(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, string instanceId) + { + 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.Compute/virtualMachineScaleSets/", false); + uri.AppendPath(virtualMachineScaleSetName, true); + uri.AppendPath("/virtualMachines/", false); + uri.AppendPath(instanceId, true); + uri.AppendPath("/instanceView", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetInstanceViewRequest(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, string instanceId) { var message = _pipeline.CreateMessage(); @@ -711,6 +852,33 @@ public Response GetInstanceView(string sub } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, string filter, string select, string expand) + { + 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.Compute/virtualMachineScaleSets/", false); + uri.AppendPath(virtualMachineScaleSetName, true); + uri.AppendPath("/virtualMachines", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (select != null) + { + uri.AppendQuery("$select", select, true); + } + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, string filter, string select, string expand) { var message = _pipeline.CreateMessage(); @@ -808,6 +976,27 @@ public Response List(string subscriptionId, } } + internal RequestUriBuilder CreatePowerOffRequestUri(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, string instanceId, bool? skipShutdown) + { + 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.Compute/virtualMachineScaleSets/", false); + uri.AppendPath(virtualMachineScaleSetName, true); + uri.AppendPath("/virtualmachines/", false); + uri.AppendPath(instanceId, true); + uri.AppendPath("/poweroff", false); + if (skipShutdown != null) + { + uri.AppendQuery("skipShutdown", skipShutdown.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreatePowerOffRequest(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, string instanceId, bool? skipShutdown) { var message = _pipeline.CreateMessage(); @@ -891,6 +1080,23 @@ public Response PowerOff(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreateRestartRequestUri(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, string instanceId) + { + 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.Compute/virtualMachineScaleSets/", false); + uri.AppendPath(virtualMachineScaleSetName, true); + uri.AppendPath("/virtualmachines/", false); + uri.AppendPath(instanceId, true); + uri.AppendPath("/restart", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRestartRequest(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, string instanceId) { var message = _pipeline.CreateMessage(); @@ -968,6 +1174,23 @@ public Response Restart(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreateStartRequestUri(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, string instanceId) + { + 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.Compute/virtualMachineScaleSets/", false); + uri.AppendPath(virtualMachineScaleSetName, true); + uri.AppendPath("/virtualmachines/", false); + uri.AppendPath(instanceId, true); + uri.AppendPath("/start", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStartRequest(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, string instanceId) { var message = _pipeline.CreateMessage(); @@ -1045,6 +1268,23 @@ public Response Start(string subscriptionId, string resourceGroupName, string vi } } + internal RequestUriBuilder CreateRedeployRequestUri(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, string instanceId) + { + 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.Compute/virtualMachineScaleSets/", false); + uri.AppendPath(virtualMachineScaleSetName, true); + uri.AppendPath("/virtualmachines/", false); + uri.AppendPath(instanceId, true); + uri.AppendPath("/redeploy", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRedeployRequest(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, string instanceId) { var message = _pipeline.CreateMessage(); @@ -1122,6 +1362,27 @@ public Response Redeploy(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreateRetrieveBootDiagnosticsDataRequestUri(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, string instanceId, int? sasUriExpirationTimeInMinutes) + { + 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.Compute/virtualMachineScaleSets/", false); + uri.AppendPath(virtualMachineScaleSetName, true); + uri.AppendPath("/virtualmachines/", false); + uri.AppendPath(instanceId, true); + uri.AppendPath("/retrieveBootDiagnosticsData", false); + if (sasUriExpirationTimeInMinutes != null) + { + uri.AppendQuery("sasUriExpirationTimeInMinutes", sasUriExpirationTimeInMinutes.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRetrieveBootDiagnosticsDataRequest(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, string instanceId, int? sasUriExpirationTimeInMinutes) { var message = _pipeline.CreateMessage(); @@ -1213,6 +1474,23 @@ public Response RetrieveBootDiagnosticsData(s } } + internal RequestUriBuilder CreatePerformMaintenanceRequestUri(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, string instanceId) + { + 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.Compute/virtualMachineScaleSets/", false); + uri.AppendPath(virtualMachineScaleSetName, true); + uri.AppendPath("/virtualmachines/", false); + uri.AppendPath(instanceId, true); + uri.AppendPath("/performMaintenance", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreatePerformMaintenanceRequest(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, string instanceId) { var message = _pipeline.CreateMessage(); @@ -1290,6 +1568,23 @@ public Response PerformMaintenance(string subscriptionId, string resourceGroupNa } } + internal RequestUriBuilder CreateSimulateEvictionRequestUri(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, string instanceId) + { + 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.Compute/virtualMachineScaleSets/", false); + uri.AppendPath(virtualMachineScaleSetName, true); + uri.AppendPath("/virtualMachines/", false); + uri.AppendPath(instanceId, true); + uri.AppendPath("/simulateEviction", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateSimulateEvictionRequest(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, string instanceId) { var message = _pipeline.CreateMessage(); @@ -1365,6 +1660,23 @@ public Response SimulateEviction(string subscriptionId, string resourceGroupName } } + internal RequestUriBuilder CreateAttachDetachDataDisksRequestUri(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, string instanceId, AttachDetachDataDisksRequest attachDetachDataDisksRequest) + { + 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.Compute/virtualMachineScaleSets/", false); + uri.AppendPath(virtualMachineScaleSetName, true); + uri.AppendPath("/virtualmachines/", false); + uri.AppendPath(instanceId, true); + uri.AppendPath("/attachDetachDataDisks", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateAttachDetachDataDisksRequest(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, string instanceId, AttachDetachDataDisksRequest attachDetachDataDisksRequest) { var message = _pipeline.CreateMessage(); @@ -1450,6 +1762,23 @@ public Response AttachDetachDataDisks(string subscriptionId, string resourceGrou } } + internal RequestUriBuilder CreateRunCommandRequestUri(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, string instanceId, RunCommandInput input) + { + 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.Compute/virtualMachineScaleSets/", false); + uri.AppendPath(virtualMachineScaleSetName, true); + uri.AppendPath("/virtualmachines/", false); + uri.AppendPath(instanceId, true); + uri.AppendPath("/runCommand", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRunCommandRequest(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, string instanceId, RunCommandInput input) { var message = _pipeline.CreateMessage(); @@ -1535,6 +1864,14 @@ public Response RunCommand(string subscriptionId, string resourceGroupName, stri } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, string filter, string select, string expand) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, string filter, string select, string expand) { var message = _pipeline.CreateMessage(); diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineScaleSetsRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineScaleSetsRestOperations.cs index 352d87b8e40d..f1809b2e4d93 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineScaleSetsRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineScaleSetsRestOperations.cs @@ -37,6 +37,19 @@ public VirtualMachineScaleSetsRestOperations(HttpPipeline pipeline, string appli _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByLocationRequestUri(string subscriptionId, AzureLocation location) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Compute/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/virtualMachineScaleSets", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByLocationRequest(string subscriptionId, AzureLocation location) { var message = _pipeline.CreateMessage(); @@ -108,6 +121,20 @@ public Response ListByLocation(string subscrip } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, VirtualMachineScaleSetData data, string ifMatch, string ifNoneMatch) + { + 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.Compute/virtualMachineScaleSets/", false); + uri.AppendPath(virtualMachineScaleSetName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, VirtualMachineScaleSetData data, string ifMatch, string ifNoneMatch) { var message = _pipeline.CreateMessage(); @@ -198,6 +225,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, VirtualMachineScaleSetPatch patch, string ifMatch, string ifNoneMatch) + { + 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.Compute/virtualMachineScaleSets/", false); + uri.AppendPath(virtualMachineScaleSetName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, VirtualMachineScaleSetPatch patch, string ifMatch, string ifNoneMatch) { var message = _pipeline.CreateMessage(); @@ -286,6 +327,24 @@ public Response Update(string subscriptionId, string resourceGroupName, string v } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, bool? forceDeletion) + { + 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.Compute/virtualMachineScaleSets/", false); + uri.AppendPath(virtualMachineScaleSetName, true); + if (forceDeletion != null) + { + uri.AppendQuery("forceDeletion", forceDeletion.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, bool? forceDeletion) { var message = _pipeline.CreateMessage(); @@ -364,6 +423,24 @@ public Response Delete(string subscriptionId, string resourceGroupName, string v } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, VirtualMachineScaleSetGetExpand? expand) + { + 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.Compute/virtualMachineScaleSets/", false); + uri.AppendPath(virtualMachineScaleSetName, true); + uri.AppendQuery("api-version", _apiVersion, true); + if (expand != null) + { + uri.AppendQuery("$expand", expand.Value.ToString(), true); + } + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, VirtualMachineScaleSetGetExpand? expand) { var message = _pipeline.CreateMessage(); @@ -452,6 +529,25 @@ public Response Get(string subscriptionId, string re } } + internal RequestUriBuilder CreateDeallocateRequestUri(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, VirtualMachineScaleSetVmInstanceIds vmInstanceIds, bool? hibernate) + { + 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.Compute/virtualMachineScaleSets/", false); + uri.AppendPath(virtualMachineScaleSetName, true); + uri.AppendPath("/deallocate", false); + if (hibernate != null) + { + uri.AppendQuery("hibernate", hibernate.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeallocateRequest(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, VirtualMachineScaleSetVmInstanceIds vmInstanceIds, bool? hibernate) { var message = _pipeline.CreateMessage(); @@ -538,6 +634,25 @@ public Response Deallocate(string subscriptionId, string resourceGroupName, stri } } + internal RequestUriBuilder CreateDeleteInstancesRequestUri(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, VirtualMachineScaleSetVmInstanceRequiredIds vmInstanceIds, bool? forceDeletion) + { + 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.Compute/virtualMachineScaleSets/", false); + uri.AppendPath(virtualMachineScaleSetName, true); + uri.AppendPath("/delete", false); + if (forceDeletion != null) + { + uri.AppendQuery("forceDeletion", forceDeletion.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteInstancesRequest(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, VirtualMachineScaleSetVmInstanceRequiredIds vmInstanceIds, bool? forceDeletion) { var message = _pipeline.CreateMessage(); @@ -623,6 +738,21 @@ public Response DeleteInstances(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateGetInstanceViewRequestUri(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName) + { + 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.Compute/virtualMachineScaleSets/", false); + uri.AppendPath(virtualMachineScaleSetName, true); + uri.AppendPath("/instanceView", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetInstanceViewRequest(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName) { var message = _pipeline.CreateMessage(); @@ -702,6 +832,19 @@ public Response GetInstanceView(string subsc } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName) + { + 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.Compute/virtualMachineScaleSets", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -775,6 +918,17 @@ public Response List(string subscriptionId, st } } + internal RequestUriBuilder CreateListAllRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Compute/virtualMachineScaleSets", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListAllRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -842,6 +996,21 @@ public Response ListAll(string subscri } } + internal RequestUriBuilder CreateListSkusRequestUri(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName) + { + 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.Compute/virtualMachineScaleSets/", false); + uri.AppendPath(virtualMachineScaleSetName, true); + uri.AppendPath("/skus", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListSkusRequest(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName) { var message = _pipeline.CreateMessage(); @@ -921,6 +1090,21 @@ public Response ListSkus(string subscripti } } + internal RequestUriBuilder CreateGetOSUpgradeHistoryRequestUri(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName) + { + 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.Compute/virtualMachineScaleSets/", false); + uri.AppendPath(virtualMachineScaleSetName, true); + uri.AppendPath("/osUpgradeHistory", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetOSUpgradeHistoryRequest(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName) { var message = _pipeline.CreateMessage(); @@ -1000,6 +1184,25 @@ public Response GetOSUpgradeHistory( } } + internal RequestUriBuilder CreatePowerOffRequestUri(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, VirtualMachineScaleSetVmInstanceIds vmInstanceIds, bool? skipShutdown) + { + 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.Compute/virtualMachineScaleSets/", false); + uri.AppendPath(virtualMachineScaleSetName, true); + uri.AppendPath("/poweroff", false); + if (skipShutdown != null) + { + uri.AppendQuery("skipShutdown", skipShutdown.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreatePowerOffRequest(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, VirtualMachineScaleSetVmInstanceIds vmInstanceIds, bool? skipShutdown) { var message = _pipeline.CreateMessage(); @@ -1086,6 +1289,21 @@ public Response PowerOff(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreateRestartRequestUri(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, VirtualMachineScaleSetVmInstanceIds vmInstanceIds) + { + 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.Compute/virtualMachineScaleSets/", false); + uri.AppendPath(virtualMachineScaleSetName, true); + uri.AppendPath("/restart", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRestartRequest(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, VirtualMachineScaleSetVmInstanceIds vmInstanceIds) { var message = _pipeline.CreateMessage(); @@ -1166,6 +1384,21 @@ public Response Restart(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreateStartRequestUri(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, VirtualMachineScaleSetVmInstanceIds vmInstanceIds) + { + 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.Compute/virtualMachineScaleSets/", false); + uri.AppendPath(virtualMachineScaleSetName, true); + uri.AppendPath("/start", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStartRequest(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, VirtualMachineScaleSetVmInstanceIds vmInstanceIds) { var message = _pipeline.CreateMessage(); @@ -1246,6 +1479,21 @@ public Response Start(string subscriptionId, string resourceGroupName, string vi } } + internal RequestUriBuilder CreateReapplyRequestUri(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName) + { + 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.Compute/virtualMachineScaleSets/", false); + uri.AppendPath(virtualMachineScaleSetName, true); + uri.AppendPath("/reapply", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateReapplyRequest(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName) { var message = _pipeline.CreateMessage(); @@ -1317,6 +1565,21 @@ public Response Reapply(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreateRedeployRequestUri(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, VirtualMachineScaleSetVmInstanceIds vmInstanceIds) + { + 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.Compute/virtualMachineScaleSets/", false); + uri.AppendPath(virtualMachineScaleSetName, true); + uri.AppendPath("/redeploy", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRedeployRequest(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, VirtualMachineScaleSetVmInstanceIds vmInstanceIds) { var message = _pipeline.CreateMessage(); @@ -1397,6 +1660,21 @@ public Response Redeploy(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreatePerformMaintenanceRequestUri(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, VirtualMachineScaleSetVmInstanceIds vmInstanceIds) + { + 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.Compute/virtualMachineScaleSets/", false); + uri.AppendPath(virtualMachineScaleSetName, true); + uri.AppendPath("/performMaintenance", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreatePerformMaintenanceRequest(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, VirtualMachineScaleSetVmInstanceIds vmInstanceIds) { var message = _pipeline.CreateMessage(); @@ -1477,6 +1755,21 @@ public Response PerformMaintenance(string subscriptionId, string resourceGroupNa } } + internal RequestUriBuilder CreateUpdateInstancesRequestUri(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, VirtualMachineScaleSetVmInstanceRequiredIds vmInstanceIds) + { + 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.Compute/virtualMachineScaleSets/", false); + uri.AppendPath(virtualMachineScaleSetName, true); + uri.AppendPath("/manualupgrade", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateInstancesRequest(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, VirtualMachineScaleSetVmInstanceRequiredIds vmInstanceIds) { var message = _pipeline.CreateMessage(); @@ -1556,6 +1849,21 @@ public Response UpdateInstances(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateReimageRequestUri(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, VirtualMachineScaleSetReimageContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Compute/virtualMachineScaleSets/", false); + uri.AppendPath(virtualMachineScaleSetName, true); + uri.AppendPath("/reimage", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateReimageRequest(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, VirtualMachineScaleSetReimageContent content) { var message = _pipeline.CreateMessage(); @@ -1636,6 +1944,21 @@ public Response Reimage(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreateReimageAllRequestUri(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, VirtualMachineScaleSetVmInstanceIds vmInstanceIds) + { + 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.Compute/virtualMachineScaleSets/", false); + uri.AppendPath(virtualMachineScaleSetName, true); + uri.AppendPath("/reimageall", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateReimageAllRequest(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, VirtualMachineScaleSetVmInstanceIds vmInstanceIds) { var message = _pipeline.CreateMessage(); @@ -1716,6 +2039,21 @@ public Response ReimageAll(string subscriptionId, string resourceGroupName, stri } } + internal RequestUriBuilder CreateApproveRollingUpgradeRequestUri(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, VirtualMachineScaleSetVmInstanceIds vmInstanceIds) + { + 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.Compute/virtualMachineScaleSets/", false); + uri.AppendPath(virtualMachineScaleSetName, true); + uri.AppendPath("/approveRollingUpgrade", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateApproveRollingUpgradeRequest(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, VirtualMachineScaleSetVmInstanceIds vmInstanceIds) { var message = _pipeline.CreateMessage(); @@ -1794,6 +2132,30 @@ public Response ApproveRollingUpgrade(string subscriptionId, string resourceGrou } } + internal RequestUriBuilder CreateForceRecoveryServiceFabricPlatformUpdateDomainWalkRequestUri(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, int platformUpdateDomain, string zone, string placementGroupId) + { + 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.Compute/virtualMachineScaleSets/", false); + uri.AppendPath(virtualMachineScaleSetName, true); + uri.AppendPath("/forceRecoveryServiceFabricPlatformUpdateDomainWalk", false); + uri.AppendQuery("api-version", _apiVersion, true); + uri.AppendQuery("platformUpdateDomain", platformUpdateDomain, true); + if (zone != null) + { + uri.AppendQuery("zone", zone, true); + } + if (placementGroupId != null) + { + uri.AppendQuery("placementGroupId", placementGroupId, true); + } + return uri; + } + internal HttpMessage CreateForceRecoveryServiceFabricPlatformUpdateDomainWalkRequest(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, int platformUpdateDomain, string zone, string placementGroupId) { var message = _pipeline.CreateMessage(); @@ -1888,6 +2250,21 @@ public Response ForceRecoveryServiceFabricPlatformUpdateDo } } + internal RequestUriBuilder CreateConvertToSinglePlacementGroupRequestUri(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, VirtualMachineScaleSetConvertToSinglePlacementGroupContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Compute/virtualMachineScaleSets/", false); + uri.AppendPath(virtualMachineScaleSetName, true); + uri.AppendPath("/convertToSinglePlacementGroup", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateConvertToSinglePlacementGroupRequest(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, VirtualMachineScaleSetConvertToSinglePlacementGroupContent content) { var message = _pipeline.CreateMessage(); @@ -1965,6 +2342,21 @@ public Response ConvertToSinglePlacementGroup(string subscriptionId, string reso } } + internal RequestUriBuilder CreateSetOrchestrationServiceStateRequestUri(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, OrchestrationServiceStateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Compute/virtualMachineScaleSets/", false); + uri.AppendPath(virtualMachineScaleSetName, true); + uri.AppendPath("/setOrchestrationServiceState", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateSetOrchestrationServiceStateRequest(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, OrchestrationServiceStateContent content) { var message = _pipeline.CreateMessage(); @@ -2044,6 +2436,14 @@ public Response SetOrchestrationServiceState(string subscriptionId, string resou } } + internal RequestUriBuilder CreateListByLocationNextPageRequestUri(string nextLink, string subscriptionId, AzureLocation location) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByLocationNextPageRequest(string nextLink, string subscriptionId, AzureLocation location) { var message = _pipeline.CreateMessage(); @@ -2114,6 +2514,14 @@ public Response ListByLocationNextPage(string } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -2186,6 +2594,14 @@ public Response ListNextPage(string nextLink, } } + internal RequestUriBuilder CreateListAllNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListAllNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -2254,6 +2670,14 @@ public Response ListAllNextPage(string } } + internal RequestUriBuilder CreateListSkusNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListSkusNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName) { var message = _pipeline.CreateMessage(); @@ -2330,6 +2754,14 @@ public Response ListSkusNextPage(string ne } } + internal RequestUriBuilder CreateGetOSUpgradeHistoryNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateGetOSUpgradeHistoryNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineSizesRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineSizesRestOperations.cs index d480253a320c..db19d5cb35bb 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineSizesRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineSizesRestOperations.cs @@ -37,6 +37,19 @@ public VirtualMachineSizesRestOperations(HttpPipeline pipeline, string applicati _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, AzureLocation location) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Compute/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/vmSizes", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, AzureLocation location) { var message = _pipeline.CreateMessage(); diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachinesRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachinesRestOperations.cs index e9362850ceeb..35a94c77bf4d 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachinesRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachinesRestOperations.cs @@ -37,6 +37,19 @@ public VirtualMachinesRestOperations(HttpPipeline pipeline, string applicationId _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByLocationRequestUri(string subscriptionId, AzureLocation location) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Compute/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/virtualMachines", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByLocationRequest(string subscriptionId, AzureLocation location) { var message = _pipeline.CreateMessage(); @@ -108,6 +121,21 @@ public Response ListByLocation(string subscriptionId, } } + internal RequestUriBuilder CreateCaptureRequestUri(string subscriptionId, string resourceGroupName, string vmName, VirtualMachineCaptureContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Compute/virtualMachines/", false); + uri.AppendPath(vmName, true); + uri.AppendPath("/capture", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCaptureRequest(string subscriptionId, string resourceGroupName, string vmName, VirtualMachineCaptureContent content) { var message = _pipeline.CreateMessage(); @@ -187,6 +215,20 @@ public Response Capture(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string vmName, VirtualMachineData data, string ifMatch, string ifNoneMatch) + { + 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.Compute/virtualMachines/", false); + uri.AppendPath(vmName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string vmName, VirtualMachineData data, string ifMatch, string ifNoneMatch) { var message = _pipeline.CreateMessage(); @@ -277,6 +319,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string vmName, VirtualMachinePatch patch, string ifMatch, string ifNoneMatch) + { + 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.Compute/virtualMachines/", false); + uri.AppendPath(vmName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string vmName, VirtualMachinePatch patch, string ifMatch, string ifNoneMatch) { var message = _pipeline.CreateMessage(); @@ -365,6 +421,24 @@ public Response Update(string subscriptionId, string resourceGroupName, string v } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string vmName, bool? forceDeletion) + { + 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.Compute/virtualMachines/", false); + uri.AppendPath(vmName, true); + if (forceDeletion != null) + { + uri.AppendQuery("forceDeletion", forceDeletion.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string vmName, bool? forceDeletion) { var message = _pipeline.CreateMessage(); @@ -443,6 +517,24 @@ public Response Delete(string subscriptionId, string resourceGroupName, string v } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string vmName, InstanceViewType? expand) + { + 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.Compute/virtualMachines/", false); + uri.AppendPath(vmName, true); + if (expand != null) + { + uri.AppendQuery("$expand", expand.Value.ToSerialString(), true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string vmName, InstanceViewType? expand) { var message = _pipeline.CreateMessage(); @@ -531,6 +623,21 @@ public Response Get(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateInstanceViewRequestUri(string subscriptionId, string resourceGroupName, string vmName) + { + 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.Compute/virtualMachines/", false); + uri.AppendPath(vmName, true); + uri.AppendPath("/instanceView", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateInstanceViewRequest(string subscriptionId, string resourceGroupName, string vmName) { var message = _pipeline.CreateMessage(); @@ -610,6 +717,21 @@ public Response InstanceView(string subscriptionId, } } + internal RequestUriBuilder CreateConvertToManagedDisksRequestUri(string subscriptionId, string resourceGroupName, string vmName) + { + 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.Compute/virtualMachines/", false); + uri.AppendPath(vmName, true); + uri.AppendPath("/convertToManagedDisks", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateConvertToManagedDisksRequest(string subscriptionId, string resourceGroupName, string vmName) { var message = _pipeline.CreateMessage(); @@ -681,6 +803,25 @@ public Response ConvertToManagedDisks(string subscriptionId, string resourceGrou } } + internal RequestUriBuilder CreateDeallocateRequestUri(string subscriptionId, string resourceGroupName, string vmName, bool? hibernate) + { + 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.Compute/virtualMachines/", false); + uri.AppendPath(vmName, true); + uri.AppendPath("/deallocate", false); + if (hibernate != null) + { + uri.AppendQuery("hibernate", hibernate.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeallocateRequest(string subscriptionId, string resourceGroupName, string vmName, bool? hibernate) { var message = _pipeline.CreateMessage(); @@ -758,6 +899,21 @@ public Response Deallocate(string subscriptionId, string resourceGroupName, stri } } + internal RequestUriBuilder CreateGeneralizeRequestUri(string subscriptionId, string resourceGroupName, string vmName) + { + 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.Compute/virtualMachines/", false); + uri.AppendPath(vmName, true); + uri.AppendPath("/generalize", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGeneralizeRequest(string subscriptionId, string resourceGroupName, string vmName) { var message = _pipeline.CreateMessage(); @@ -827,6 +983,27 @@ public Response Generalize(string subscriptionId, string resourceGroupName, stri } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string filter, GetVirtualMachineExpandType? expand) + { + 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.Compute/virtualMachines", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (expand != null) + { + uri.AppendQuery("$expand", expand.Value.ToString(), true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string filter, GetVirtualMachineExpandType? expand) { var message = _pipeline.CreateMessage(); @@ -912,6 +1089,29 @@ public Response List(string subscriptionId, string res } } + internal RequestUriBuilder CreateListAllRequestUri(string subscriptionId, string statusOnly, string filter, ExpandTypesForListVm? expand) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Compute/virtualMachines", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (statusOnly != null) + { + uri.AppendQuery("statusOnly", statusOnly, true); + } + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (expand != null) + { + uri.AppendQuery("$expand", expand.Value.ToString(), true); + } + return uri; + } + internal HttpMessage CreateListAllRequest(string subscriptionId, string statusOnly, string filter, ExpandTypesForListVm? expand) { var message = _pipeline.CreateMessage(); @@ -997,6 +1197,21 @@ public Response ListAll(string subscriptionId, string } } + internal RequestUriBuilder CreateListAvailableSizesRequestUri(string subscriptionId, string resourceGroupName, string vmName) + { + 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.Compute/virtualMachines/", false); + uri.AppendPath(vmName, true); + uri.AppendPath("/vmSizes", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListAvailableSizesRequest(string subscriptionId, string resourceGroupName, string vmName) { var message = _pipeline.CreateMessage(); @@ -1076,6 +1291,25 @@ public Response ListAvailableSizes(string subscrip } } + internal RequestUriBuilder CreatePowerOffRequestUri(string subscriptionId, string resourceGroupName, string vmName, bool? skipShutdown) + { + 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.Compute/virtualMachines/", false); + uri.AppendPath(vmName, true); + uri.AppendPath("/powerOff", false); + if (skipShutdown != null) + { + uri.AppendQuery("skipShutdown", skipShutdown.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreatePowerOffRequest(string subscriptionId, string resourceGroupName, string vmName, bool? skipShutdown) { var message = _pipeline.CreateMessage(); @@ -1153,6 +1387,21 @@ public Response PowerOff(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreateReapplyRequestUri(string subscriptionId, string resourceGroupName, string vmName) + { + 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.Compute/virtualMachines/", false); + uri.AppendPath(vmName, true); + uri.AppendPath("/reapply", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateReapplyRequest(string subscriptionId, string resourceGroupName, string vmName) { var message = _pipeline.CreateMessage(); @@ -1224,6 +1473,21 @@ public Response Reapply(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreateRestartRequestUri(string subscriptionId, string resourceGroupName, string vmName) + { + 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.Compute/virtualMachines/", false); + uri.AppendPath(vmName, true); + uri.AppendPath("/restart", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRestartRequest(string subscriptionId, string resourceGroupName, string vmName) { var message = _pipeline.CreateMessage(); @@ -1295,6 +1559,21 @@ public Response Restart(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreateStartRequestUri(string subscriptionId, string resourceGroupName, string vmName) + { + 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.Compute/virtualMachines/", false); + uri.AppendPath(vmName, true); + uri.AppendPath("/start", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStartRequest(string subscriptionId, string resourceGroupName, string vmName) { var message = _pipeline.CreateMessage(); @@ -1366,6 +1645,21 @@ public Response Start(string subscriptionId, string resourceGroupName, string vm } } + internal RequestUriBuilder CreateRedeployRequestUri(string subscriptionId, string resourceGroupName, string vmName) + { + 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.Compute/virtualMachines/", false); + uri.AppendPath(vmName, true); + uri.AppendPath("/redeploy", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRedeployRequest(string subscriptionId, string resourceGroupName, string vmName) { var message = _pipeline.CreateMessage(); @@ -1437,6 +1731,21 @@ public Response Redeploy(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreateReimageRequestUri(string subscriptionId, string resourceGroupName, string vmName, VirtualMachineReimageContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Compute/virtualMachines/", false); + uri.AppendPath(vmName, true); + uri.AppendPath("/reimage", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateReimageRequest(string subscriptionId, string resourceGroupName, string vmName, VirtualMachineReimageContent content) { var message = _pipeline.CreateMessage(); @@ -1517,6 +1826,25 @@ public Response Reimage(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreateRetrieveBootDiagnosticsDataRequestUri(string subscriptionId, string resourceGroupName, string vmName, int? sasUriExpirationTimeInMinutes) + { + 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.Compute/virtualMachines/", false); + uri.AppendPath(vmName, true); + uri.AppendPath("/retrieveBootDiagnosticsData", false); + if (sasUriExpirationTimeInMinutes != null) + { + uri.AppendQuery("sasUriExpirationTimeInMinutes", sasUriExpirationTimeInMinutes.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRetrieveBootDiagnosticsDataRequest(string subscriptionId, string resourceGroupName, string vmName, int? sasUriExpirationTimeInMinutes) { var message = _pipeline.CreateMessage(); @@ -1602,6 +1930,21 @@ public Response RetrieveBootDiagnosticsData(s } } + internal RequestUriBuilder CreatePerformMaintenanceRequestUri(string subscriptionId, string resourceGroupName, string vmName) + { + 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.Compute/virtualMachines/", false); + uri.AppendPath(vmName, true); + uri.AppendPath("/performMaintenance", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreatePerformMaintenanceRequest(string subscriptionId, string resourceGroupName, string vmName) { var message = _pipeline.CreateMessage(); @@ -1673,6 +2016,21 @@ public Response PerformMaintenance(string subscriptionId, string resourceGroupNa } } + internal RequestUriBuilder CreateSimulateEvictionRequestUri(string subscriptionId, string resourceGroupName, string vmName) + { + 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.Compute/virtualMachines/", false); + uri.AppendPath(vmName, true); + uri.AppendPath("/simulateEviction", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateSimulateEvictionRequest(string subscriptionId, string resourceGroupName, string vmName) { var message = _pipeline.CreateMessage(); @@ -1742,6 +2100,21 @@ public Response SimulateEviction(string subscriptionId, string resourceGroupName } } + internal RequestUriBuilder CreateAssessPatchesRequestUri(string subscriptionId, string resourceGroupName, string vmName) + { + 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.Compute/virtualMachines/", false); + uri.AppendPath(vmName, true); + uri.AppendPath("/assessPatches", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateAssessPatchesRequest(string subscriptionId, string resourceGroupName, string vmName) { var message = _pipeline.CreateMessage(); @@ -1813,6 +2186,21 @@ public Response AssessPatches(string subscriptionId, string resourceGroupName, s } } + internal RequestUriBuilder CreateInstallPatchesRequestUri(string subscriptionId, string resourceGroupName, string vmName, VirtualMachineInstallPatchesContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Compute/virtualMachines/", false); + uri.AppendPath(vmName, true); + uri.AppendPath("/installPatches", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateInstallPatchesRequest(string subscriptionId, string resourceGroupName, string vmName, VirtualMachineInstallPatchesContent content) { var message = _pipeline.CreateMessage(); @@ -1892,6 +2280,21 @@ public Response InstallPatches(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateAttachDetachDataDisksRequestUri(string subscriptionId, string resourceGroupName, string vmName, AttachDetachDataDisksRequest attachDetachDataDisksRequest) + { + 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.Compute/virtualMachines/", false); + uri.AppendPath(vmName, true); + uri.AppendPath("/attachDetachDataDisks", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateAttachDetachDataDisksRequest(string subscriptionId, string resourceGroupName, string vmName, AttachDetachDataDisksRequest attachDetachDataDisksRequest) { var message = _pipeline.CreateMessage(); @@ -1971,6 +2374,21 @@ public Response AttachDetachDataDisks(string subscriptionId, string resourceGrou } } + internal RequestUriBuilder CreateRunCommandRequestUri(string subscriptionId, string resourceGroupName, string vmName, RunCommandInput input) + { + 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.Compute/virtualMachines/", false); + uri.AppendPath(vmName, true); + uri.AppendPath("/runCommand", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRunCommandRequest(string subscriptionId, string resourceGroupName, string vmName, RunCommandInput input) { var message = _pipeline.CreateMessage(); @@ -2050,6 +2468,14 @@ public Response RunCommand(string subscriptionId, string resourceGroupName, stri } } + internal RequestUriBuilder CreateListByLocationNextPageRequestUri(string nextLink, string subscriptionId, AzureLocation location) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByLocationNextPageRequest(string nextLink, string subscriptionId, AzureLocation location) { var message = _pipeline.CreateMessage(); @@ -2120,6 +2546,14 @@ public Response ListByLocationNextPage(string nextLink } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string filter, GetVirtualMachineExpandType? expand) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string filter, GetVirtualMachineExpandType? expand) { var message = _pipeline.CreateMessage(); @@ -2196,6 +2630,14 @@ public Response ListNextPage(string nextLink, string s } } + internal RequestUriBuilder CreateListAllNextPageRequestUri(string nextLink, string subscriptionId, string statusOnly, string filter, ExpandTypesForListVm? expand) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListAllNextPageRequest(string nextLink, string subscriptionId, string statusOnly, string filter, ExpandTypesForListVm? expand) { var message = _pipeline.CreateMessage(); diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestorePointGroupCollection.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestorePointGroupCollection.cs index 7d71a56ef13a..a69f0fda950b 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestorePointGroupCollection.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestorePointGroupCollection.cs @@ -92,7 +92,9 @@ public virtual async Task> CreateOrUpdat try { var response = await _restorePointGroupRestorePointCollectionsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, restorePointGroupName, data, cancellationToken).ConfigureAwait(false); - var operation = new ComputeArmOperation(Response.FromValue(new RestorePointGroupResource(Client, response), response.GetRawResponse())); + var uri = _restorePointGroupRestorePointCollectionsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, restorePointGroupName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ComputeArmOperation(Response.FromValue(new RestorePointGroupResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -141,7 +143,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil try { var response = _restorePointGroupRestorePointCollectionsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, restorePointGroupName, data, cancellationToken); - var operation = new ComputeArmOperation(Response.FromValue(new RestorePointGroupResource(Client, response), response.GetRawResponse())); + var uri = _restorePointGroupRestorePointCollectionsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, restorePointGroupName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ComputeArmOperation(Response.FromValue(new RestorePointGroupResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/SshPublicKeyCollection.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/SshPublicKeyCollection.cs index ac1fb449c182..aec5823b9c5b 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/SshPublicKeyCollection.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/SshPublicKeyCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> CreateOrUpdateAsyn try { var response = await _sshPublicKeyRestClient.CreateAsync(Id.SubscriptionId, Id.ResourceGroupName, sshPublicKeyName, data, cancellationToken).ConfigureAwait(false); - var operation = new ComputeArmOperation(Response.FromValue(new SshPublicKeyResource(Client, response), response.GetRawResponse())); + var uri = _sshPublicKeyRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, sshPublicKeyName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ComputeArmOperation(Response.FromValue(new SshPublicKeyResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -140,7 +142,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitU try { var response = _sshPublicKeyRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, sshPublicKeyName, data, cancellationToken); - var operation = new ComputeArmOperation(Response.FromValue(new SshPublicKeyResource(Client, response), response.GetRawResponse())); + var uri = _sshPublicKeyRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, sshPublicKeyName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ComputeArmOperation(Response.FromValue(new SshPublicKeyResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/SshPublicKeyResource.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/SshPublicKeyResource.cs index 0c3f643f3f58..8329e0306ba8 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/SshPublicKeyResource.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/SshPublicKeyResource.cs @@ -202,7 +202,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _sshPublicKeyRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new ComputeArmOperation(response); + var uri = _sshPublicKeyRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ComputeArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -244,7 +246,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _sshPublicKeyRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); - var operation = new ComputeArmOperation(response); + var uri = _sshPublicKeyRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ComputeArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/confidentialledger/Azure.ResourceManager.ConfidentialLedger/src/Generated/LongRunningOperation/ConfidentialLedgerArmOperation.cs b/sdk/confidentialledger/Azure.ResourceManager.ConfidentialLedger/src/Generated/LongRunningOperation/ConfidentialLedgerArmOperation.cs index b0ef13192dc5..0083fa771fde 100644 --- a/sdk/confidentialledger/Azure.ResourceManager.ConfidentialLedger/src/Generated/LongRunningOperation/ConfidentialLedgerArmOperation.cs +++ b/sdk/confidentialledger/Azure.ResourceManager.ConfidentialLedger/src/Generated/LongRunningOperation/ConfidentialLedgerArmOperation.cs @@ -20,21 +20,24 @@ internal class ConfidentialLedgerArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of ConfidentialLedgerArmOperation for mocking. protected ConfidentialLedgerArmOperation() { } - internal ConfidentialLedgerArmOperation(Response response) + internal ConfidentialLedgerArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal ConfidentialLedgerArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "ConfidentialLedgerArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal ConfidentialLedgerArmOperation(ClientDiagnostics clientDiagnostics, Htt public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/confidentialledger/Azure.ResourceManager.ConfidentialLedger/src/Generated/LongRunningOperation/ConfidentialLedgerArmOperationOfT.cs b/sdk/confidentialledger/Azure.ResourceManager.ConfidentialLedger/src/Generated/LongRunningOperation/ConfidentialLedgerArmOperationOfT.cs index c1e826ede696..fb1513404e0e 100644 --- a/sdk/confidentialledger/Azure.ResourceManager.ConfidentialLedger/src/Generated/LongRunningOperation/ConfidentialLedgerArmOperationOfT.cs +++ b/sdk/confidentialledger/Azure.ResourceManager.ConfidentialLedger/src/Generated/LongRunningOperation/ConfidentialLedgerArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class ConfidentialLedgerArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of ConfidentialLedgerArmOperation for mocking. protected ConfidentialLedgerArmOperation() { } - internal ConfidentialLedgerArmOperation(Response response) + internal ConfidentialLedgerArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal ConfidentialLedgerArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "ConfidentialLedgerArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal ConfidentialLedgerArmOperation(IOperationSource source, ClientDiagno public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/confidentialledger/Azure.ResourceManager.ConfidentialLedger/src/Generated/Models/ConfidentialLedgerResource.Serialization.cs b/sdk/confidentialledger/Azure.ResourceManager.ConfidentialLedger/src/Generated/Models/ConfidentialLedgerResource.Serialization.cs new file mode 100644 index 000000000000..763e9fd546fe --- /dev/null +++ b/sdk/confidentialledger/Azure.ResourceManager.ConfidentialLedger/src/Generated/Models/ConfidentialLedgerResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ConfidentialLedger +{ + public partial class ConfidentialLedgerResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ConfidentialLedgerData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ConfidentialLedgerData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/confidentialledger/Azure.ResourceManager.ConfidentialLedger/src/Generated/Models/ManagedCcfResource.Serialization.cs b/sdk/confidentialledger/Azure.ResourceManager.ConfidentialLedger/src/Generated/Models/ManagedCcfResource.Serialization.cs new file mode 100644 index 000000000000..f9cd9562c4c7 --- /dev/null +++ b/sdk/confidentialledger/Azure.ResourceManager.ConfidentialLedger/src/Generated/Models/ManagedCcfResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ConfidentialLedger +{ + public partial class ManagedCcfResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ManagedCcfData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ManagedCcfData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/confidentialledger/Azure.ResourceManager.ConfidentialLedger/src/Generated/RestOperations/ConfidentialLedgerRestOperations.cs b/sdk/confidentialledger/Azure.ResourceManager.ConfidentialLedger/src/Generated/RestOperations/ConfidentialLedgerRestOperations.cs index 41ff9253e8a4..16aa5c3405ff 100644 --- a/sdk/confidentialledger/Azure.ResourceManager.ConfidentialLedger/src/Generated/RestOperations/ConfidentialLedgerRestOperations.cs +++ b/sdk/confidentialledger/Azure.ResourceManager.ConfidentialLedger/src/Generated/RestOperations/ConfidentialLedgerRestOperations.cs @@ -37,6 +37,17 @@ public ConfidentialLedgerRestOperations(HttpPipeline pipeline, string applicatio _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCheckNameAvailabilityRequestUri(string subscriptionId, ConfidentialLedgerNameAvailabilityContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ConfidentialLedger/checkNameAvailability", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCheckNameAvailabilityRequest(string subscriptionId, ConfidentialLedgerNameAvailabilityContent content) { var message = _pipeline.CreateMessage(); diff --git a/sdk/confidentialledger/Azure.ResourceManager.ConfidentialLedger/src/Generated/RestOperations/LedgerRestOperations.cs b/sdk/confidentialledger/Azure.ResourceManager.ConfidentialLedger/src/Generated/RestOperations/LedgerRestOperations.cs index 5a3ec9c0d990..e23988d3a7dc 100644 --- a/sdk/confidentialledger/Azure.ResourceManager.ConfidentialLedger/src/Generated/RestOperations/LedgerRestOperations.cs +++ b/sdk/confidentialledger/Azure.ResourceManager.ConfidentialLedger/src/Generated/RestOperations/LedgerRestOperations.cs @@ -37,6 +37,20 @@ public LedgerRestOperations(HttpPipeline pipeline, string applicationId, Uri end _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string ledgerName) + { + 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.ConfidentialLedger/ledgers/", false); + uri.AppendPath(ledgerName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string ledgerName) { var message = _pipeline.CreateMessage(); @@ -119,6 +133,20 @@ public Response Get(string subscriptionId, string resour } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string ledgerName) + { + 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.ConfidentialLedger/ledgers/", false); + uri.AppendPath(ledgerName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string ledgerName) { var message = _pipeline.CreateMessage(); @@ -191,6 +219,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string l } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string ledgerName, ConfidentialLedgerData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ConfidentialLedger/ledgers/", false); + uri.AppendPath(ledgerName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string ledgerName, ConfidentialLedgerData data) { var message = _pipeline.CreateMessage(); @@ -269,6 +311,20 @@ public Response Create(string subscriptionId, string resourceGroupName, string l } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string ledgerName, ConfidentialLedgerData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ConfidentialLedger/ledgers/", false); + uri.AppendPath(ledgerName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string ledgerName, ConfidentialLedgerData data) { var message = _pipeline.CreateMessage(); @@ -347,6 +403,23 @@ public Response Update(string subscriptionId, string resourceGroupName, string l } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ConfidentialLedger/ledgers", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName, string filter) { var message = _pipeline.CreateMessage(); @@ -426,6 +499,21 @@ public Response ListByResourceGroup(string subscriptionI } } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ConfidentialLedger/ledgers/", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId, string filter) { var message = _pipeline.CreateMessage(); @@ -499,6 +587,14 @@ public Response ListBySubscription(string subscriptionId } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string filter) { var message = _pipeline.CreateMessage(); @@ -573,6 +669,14 @@ public Response ListByResourceGroupNextPage(string nextL } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId, string filter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/confidentialledger/Azure.ResourceManager.ConfidentialLedger/src/Generated/RestOperations/ManagedCCFRestOperations.cs b/sdk/confidentialledger/Azure.ResourceManager.ConfidentialLedger/src/Generated/RestOperations/ManagedCCFRestOperations.cs index 1c786c3c4986..687ac0fae72d 100644 --- a/sdk/confidentialledger/Azure.ResourceManager.ConfidentialLedger/src/Generated/RestOperations/ManagedCCFRestOperations.cs +++ b/sdk/confidentialledger/Azure.ResourceManager.ConfidentialLedger/src/Generated/RestOperations/ManagedCCFRestOperations.cs @@ -37,6 +37,20 @@ public ManagedCCFRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string appName) + { + 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.ConfidentialLedger/managedCCFs/", false); + uri.AppendPath(appName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string appName) { var message = _pipeline.CreateMessage(); @@ -119,6 +133,20 @@ public Response Get(string subscriptionId, string resourceGroupN } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string appName) + { + 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.ConfidentialLedger/managedCCFs/", false); + uri.AppendPath(appName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string appName) { var message = _pipeline.CreateMessage(); @@ -191,6 +219,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string appName, ManagedCcfData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ConfidentialLedger/managedCCFs/", false); + uri.AppendPath(appName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string appName, ManagedCcfData data) { var message = _pipeline.CreateMessage(); @@ -269,6 +311,20 @@ public Response Create(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string appName, ManagedCcfData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ConfidentialLedger/managedCCFs/", false); + uri.AppendPath(appName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string appName, ManagedCcfData data) { var message = _pipeline.CreateMessage(); @@ -347,6 +403,23 @@ public Response Update(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ConfidentialLedger/managedCCFs", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName, string filter) { var message = _pipeline.CreateMessage(); @@ -426,6 +499,21 @@ public Response ListByResourceGroup(string subscriptionId, strin } } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ConfidentialLedger/managedCCFs/", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId, string filter) { var message = _pipeline.CreateMessage(); @@ -499,6 +587,14 @@ public Response ListBySubscription(string subscriptionId, string } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string filter) { var message = _pipeline.CreateMessage(); @@ -573,6 +669,14 @@ public Response ListByResourceGroupNextPage(string nextLink, str } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId, string filter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/LongRunningOperation/ConfluentArmOperation.cs b/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/LongRunningOperation/ConfluentArmOperation.cs index 84b1964939fe..6926b23aebeb 100644 --- a/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/LongRunningOperation/ConfluentArmOperation.cs +++ b/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/LongRunningOperation/ConfluentArmOperation.cs @@ -20,21 +20,24 @@ internal class ConfluentArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of ConfluentArmOperation for mocking. protected ConfluentArmOperation() { } - internal ConfluentArmOperation(Response response) + internal ConfluentArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal ConfluentArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "ConfluentArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal ConfluentArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/LongRunningOperation/ConfluentArmOperationOfT.cs b/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/LongRunningOperation/ConfluentArmOperationOfT.cs index 414f01cc8617..28ec68fab671 100644 --- a/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/LongRunningOperation/ConfluentArmOperationOfT.cs +++ b/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/LongRunningOperation/ConfluentArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class ConfluentArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of ConfluentArmOperation for mocking. protected ConfluentArmOperation() { } - internal ConfluentArmOperation(Response response) + internal ConfluentArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal ConfluentArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "ConfluentArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal ConfluentArmOperation(IOperationSource source, ClientDiagnostics cli public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Models/ConfluentOrganizationResource.Serialization.cs b/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Models/ConfluentOrganizationResource.Serialization.cs new file mode 100644 index 000000000000..bce70a1214a2 --- /dev/null +++ b/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Models/ConfluentOrganizationResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Confluent +{ + public partial class ConfluentOrganizationResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ConfluentOrganizationData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ConfluentOrganizationData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/RestOperations/MarketplaceAgreementsRestOperations.cs b/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/RestOperations/MarketplaceAgreementsRestOperations.cs index f59bc6bb26cf..941d513894c5 100644 --- a/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/RestOperations/MarketplaceAgreementsRestOperations.cs +++ b/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/RestOperations/MarketplaceAgreementsRestOperations.cs @@ -37,6 +37,17 @@ public MarketplaceAgreementsRestOperations(HttpPipeline pipeline, string applica _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Confluent/agreements", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,17 @@ public Response List(string subscriptionId, Cancel } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, ConfluentAgreement body) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Confluent/agreements/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, ConfluentAgreement body) { var message = _pipeline.CreateMessage(); @@ -180,6 +202,14 @@ public Response Create(string subscriptionId, ConfluentAgree } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/RestOperations/OrganizationRestOperations.cs b/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/RestOperations/OrganizationRestOperations.cs index 5fe7772548a3..c9c8caa46dd7 100644 --- a/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/RestOperations/OrganizationRestOperations.cs +++ b/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/RestOperations/OrganizationRestOperations.cs @@ -37,6 +37,17 @@ public OrganizationRestOperations(HttpPipeline pipeline, string applicationId, U _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Confluent/organizations", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,19 @@ public Response ListBySubscription(string subsc } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.Confluent/organizations", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -177,6 +201,20 @@ public Response ListByResourceGroup(string subs } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string organizationName) + { + 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.Confluent/organizations/", false); + uri.AppendPath(organizationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string organizationName) { var message = _pipeline.CreateMessage(); @@ -259,6 +297,20 @@ public Response Get(string subscriptionId, string res } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string organizationName, ConfluentOrganizationData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Confluent/organizations/", false); + uri.AppendPath(organizationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string organizationName, ConfluentOrganizationData data) { var message = _pipeline.CreateMessage(); @@ -337,6 +389,20 @@ public Response Create(string subscriptionId, string resourceGroupName, string o } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string organizationName, ConfluentOrganizationPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Confluent/organizations/", false); + uri.AppendPath(organizationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string organizationName, ConfluentOrganizationPatch patch) { var message = _pipeline.CreateMessage(); @@ -423,6 +489,20 @@ public Response Update(string subscriptionId, string } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string organizationName) + { + 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.Confluent/organizations/", false); + uri.AppendPath(organizationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string organizationName) { var message = _pipeline.CreateMessage(); @@ -495,6 +575,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string o } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -563,6 +651,14 @@ public Response ListBySubscriptionNextPage(stri } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/RestOperations/ValidationsRestOperations.cs b/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/RestOperations/ValidationsRestOperations.cs index 3c93595e753c..810bbb27f72c 100644 --- a/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/RestOperations/ValidationsRestOperations.cs +++ b/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/RestOperations/ValidationsRestOperations.cs @@ -36,6 +36,21 @@ public ValidationsRestOperations(HttpPipeline pipeline, string applicationId, Ur _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateValidateOrganizationRequestUri(string subscriptionId, string resourceGroupName, string organizationName, ConfluentOrganizationData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Confluent/validations/", false); + uri.AppendPath(organizationName, true); + uri.AppendPath("/orgvalidate", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateValidateOrganizationRequest(string subscriptionId, string resourceGroupName, string organizationName, ConfluentOrganizationData data) { var message = _pipeline.CreateMessage(); diff --git a/sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/src/Generated/LongRunningOperation/ConnectedVMwarevSphereArmOperation.cs b/sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/src/Generated/LongRunningOperation/ConnectedVMwarevSphereArmOperation.cs index b6391c84c6b3..7dc21a86cd5b 100644 --- a/sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/src/Generated/LongRunningOperation/ConnectedVMwarevSphereArmOperation.cs +++ b/sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/src/Generated/LongRunningOperation/ConnectedVMwarevSphereArmOperation.cs @@ -20,21 +20,24 @@ internal class ConnectedVMwarevSphereArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of ConnectedVMwarevSphereArmOperation for mocking. protected ConnectedVMwarevSphereArmOperation() { } - internal ConnectedVMwarevSphereArmOperation(Response response) + internal ConnectedVMwarevSphereArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal ConnectedVMwarevSphereArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "ConnectedVMwarevSphereArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal ConnectedVMwarevSphereArmOperation(ClientDiagnostics clientDiagnostics, public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/src/Generated/LongRunningOperation/ConnectedVMwarevSphereArmOperationOfT.cs b/sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/src/Generated/LongRunningOperation/ConnectedVMwarevSphereArmOperationOfT.cs index 51579f2fbd86..97d7a4f891a3 100644 --- a/sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/src/Generated/LongRunningOperation/ConnectedVMwarevSphereArmOperationOfT.cs +++ b/sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/src/Generated/LongRunningOperation/ConnectedVMwarevSphereArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class ConnectedVMwarevSphereArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of ConnectedVMwarevSphereArmOperation for mocking. protected ConnectedVMwarevSphereArmOperation() { } - internal ConnectedVMwarevSphereArmOperation(Response response) + internal ConnectedVMwarevSphereArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal ConnectedVMwarevSphereArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "ConnectedVMwarevSphereArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal ConnectedVMwarevSphereArmOperation(IOperationSource source, ClientDi public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/src/Generated/Models/VCenterInventoryItemResource.Serialization.cs b/sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/src/Generated/Models/VCenterInventoryItemResource.Serialization.cs new file mode 100644 index 000000000000..f2cd19261dc8 --- /dev/null +++ b/sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/src/Generated/Models/VCenterInventoryItemResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ConnectedVMwarevSphere +{ + public partial class VCenterInventoryItemResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + VCenterInventoryItemData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + VCenterInventoryItemData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/src/Generated/Models/VMwareClusterResource.Serialization.cs b/sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/src/Generated/Models/VMwareClusterResource.Serialization.cs new file mode 100644 index 000000000000..e272d07f810a --- /dev/null +++ b/sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/src/Generated/Models/VMwareClusterResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ConnectedVMwarevSphere +{ + public partial class VMwareClusterResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + VMwareClusterData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + VMwareClusterData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/src/Generated/Models/VMwareDatastoreResource.Serialization.cs b/sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/src/Generated/Models/VMwareDatastoreResource.Serialization.cs new file mode 100644 index 000000000000..7d81c0e673d8 --- /dev/null +++ b/sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/src/Generated/Models/VMwareDatastoreResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ConnectedVMwarevSphere +{ + public partial class VMwareDatastoreResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + VMwareDatastoreData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + VMwareDatastoreData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/src/Generated/Models/VMwareHostResource.Serialization.cs b/sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/src/Generated/Models/VMwareHostResource.Serialization.cs new file mode 100644 index 000000000000..8a46e3cb91ad --- /dev/null +++ b/sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/src/Generated/Models/VMwareHostResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ConnectedVMwarevSphere +{ + public partial class VMwareHostResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + VMwareHostData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + VMwareHostData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/src/Generated/Models/VMwareResourcePoolResource.Serialization.cs b/sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/src/Generated/Models/VMwareResourcePoolResource.Serialization.cs new file mode 100644 index 000000000000..000f0b6bcd8b --- /dev/null +++ b/sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/src/Generated/Models/VMwareResourcePoolResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ConnectedVMwarevSphere +{ + public partial class VMwareResourcePoolResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + VMwareResourcePoolData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + VMwareResourcePoolData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/src/Generated/Models/VMwareVCenterResource.Serialization.cs b/sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/src/Generated/Models/VMwareVCenterResource.Serialization.cs new file mode 100644 index 000000000000..1047431b1654 --- /dev/null +++ b/sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/src/Generated/Models/VMwareVCenterResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ConnectedVMwarevSphere +{ + public partial class VMwareVCenterResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + VMwareVCenterData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + VMwareVCenterData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/src/Generated/Models/VMwareVirtualNetworkResource.Serialization.cs b/sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/src/Generated/Models/VMwareVirtualNetworkResource.Serialization.cs new file mode 100644 index 000000000000..f129e0f1f22d --- /dev/null +++ b/sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/src/Generated/Models/VMwareVirtualNetworkResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ConnectedVMwarevSphere +{ + public partial class VMwareVirtualNetworkResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + VMwareVirtualNetworkData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + VMwareVirtualNetworkData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/src/Generated/Models/VMwareVmInstanceResource.Serialization.cs b/sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/src/Generated/Models/VMwareVmInstanceResource.Serialization.cs new file mode 100644 index 000000000000..82f12a0a7e4a --- /dev/null +++ b/sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/src/Generated/Models/VMwareVmInstanceResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ConnectedVMwarevSphere +{ + public partial class VMwareVmInstanceResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + VMwareVmInstanceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + VMwareVmInstanceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/src/Generated/Models/VMwareVmTemplateResource.Serialization.cs b/sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/src/Generated/Models/VMwareVmTemplateResource.Serialization.cs new file mode 100644 index 000000000000..c674958586ba --- /dev/null +++ b/sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/src/Generated/Models/VMwareVmTemplateResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ConnectedVMwarevSphere +{ + public partial class VMwareVmTemplateResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + VMwareVmTemplateData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + VMwareVmTemplateData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/src/Generated/Models/VmInstanceGuestAgentResource.Serialization.cs b/sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/src/Generated/Models/VmInstanceGuestAgentResource.Serialization.cs new file mode 100644 index 000000000000..915357c2de03 --- /dev/null +++ b/sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/src/Generated/Models/VmInstanceGuestAgentResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ConnectedVMwarevSphere +{ + public partial class VmInstanceGuestAgentResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + VmInstanceGuestAgentData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + VmInstanceGuestAgentData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/src/Generated/Models/VmInstanceHybridIdentityMetadataResource.Serialization.cs b/sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/src/Generated/Models/VmInstanceHybridIdentityMetadataResource.Serialization.cs new file mode 100644 index 000000000000..010c606c8640 --- /dev/null +++ b/sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/src/Generated/Models/VmInstanceHybridIdentityMetadataResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ConnectedVMwarevSphere +{ + public partial class VmInstanceHybridIdentityMetadataResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + VmInstanceHybridIdentityMetadataData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + VmInstanceHybridIdentityMetadataData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/src/Generated/RestOperations/ClustersRestOperations.cs b/sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/src/Generated/RestOperations/ClustersRestOperations.cs index 7acc39f025f1..23769a1952bc 100644 --- a/sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/src/Generated/RestOperations/ClustersRestOperations.cs +++ b/sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/src/Generated/RestOperations/ClustersRestOperations.cs @@ -37,6 +37,20 @@ public ClustersRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string clusterName, VMwareClusterData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ConnectedVMwarevSphere/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string clusterName, VMwareClusterData data) { var message = _pipeline.CreateMessage(); @@ -115,6 +129,20 @@ public Response Create(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string clusterName) + { + 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.ConnectedVMwarevSphere/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string clusterName) { var message = _pipeline.CreateMessage(); @@ -197,6 +225,20 @@ public Response Get(string subscriptionId, string resourceGro } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string clusterName, VMwareResourcePatchContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ConnectedVMwarevSphere/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string clusterName, VMwareResourcePatchContent content) { var message = _pipeline.CreateMessage(); @@ -283,6 +325,24 @@ public Response Update(string subscriptionId, string resource } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string clusterName, bool? force) + { + 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.ConnectedVMwarevSphere/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendQuery("api-version", _apiVersion, true); + if (force != null) + { + uri.AppendQuery("force", force.Value, true); + } + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string clusterName, bool? force) { var message = _pipeline.CreateMessage(); @@ -361,6 +421,17 @@ public Response Delete(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ConnectedVMwarevSphere/clusters", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -428,6 +499,19 @@ public Response List(string subscriptionId, Cancellatio } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.ConnectedVMwarevSphere/clusters", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -501,6 +585,14 @@ public Response ListByResourceGroup(string subscription } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -569,6 +661,14 @@ public Response ListNextPage(string nextLink, string su } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/src/Generated/RestOperations/DatastoresRestOperations.cs b/sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/src/Generated/RestOperations/DatastoresRestOperations.cs index 59af6d7823da..2102ef45fd73 100644 --- a/sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/src/Generated/RestOperations/DatastoresRestOperations.cs +++ b/sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/src/Generated/RestOperations/DatastoresRestOperations.cs @@ -37,6 +37,20 @@ public DatastoresRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string datastoreName, VMwareDatastoreData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ConnectedVMwarevSphere/datastores/", false); + uri.AppendPath(datastoreName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string datastoreName, VMwareDatastoreData data) { var message = _pipeline.CreateMessage(); @@ -115,6 +129,20 @@ public Response Create(string subscriptionId, string resourceGroupName, string d } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string datastoreName) + { + 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.ConnectedVMwarevSphere/datastores/", false); + uri.AppendPath(datastoreName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string datastoreName) { var message = _pipeline.CreateMessage(); @@ -197,6 +225,20 @@ public Response Get(string subscriptionId, string resourceG } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string datastoreName, VMwareResourcePatchContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ConnectedVMwarevSphere/datastores/", false); + uri.AppendPath(datastoreName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string datastoreName, VMwareResourcePatchContent content) { var message = _pipeline.CreateMessage(); @@ -283,6 +325,24 @@ public Response Update(string subscriptionId, string resour } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string datastoreName, bool? force) + { + 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.ConnectedVMwarevSphere/datastores/", false); + uri.AppendPath(datastoreName, true); + uri.AppendQuery("api-version", _apiVersion, true); + if (force != null) + { + uri.AppendQuery("force", force.Value, true); + } + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string datastoreName, bool? force) { var message = _pipeline.CreateMessage(); @@ -361,6 +421,17 @@ public Response Delete(string subscriptionId, string resourceGroupName, string d } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ConnectedVMwarevSphere/datastores", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -428,6 +499,19 @@ public Response List(string subscriptionId, Cancellat } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.ConnectedVMwarevSphere/datastores", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -501,6 +585,14 @@ public Response ListByResourceGroup(string subscripti } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -569,6 +661,14 @@ public Response ListNextPage(string nextLink, string } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/src/Generated/RestOperations/HostsRestOperations.cs b/sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/src/Generated/RestOperations/HostsRestOperations.cs index 57fbca4bfdf2..a31a0e7d6d2b 100644 --- a/sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/src/Generated/RestOperations/HostsRestOperations.cs +++ b/sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/src/Generated/RestOperations/HostsRestOperations.cs @@ -37,6 +37,20 @@ public HostsRestOperations(HttpPipeline pipeline, string applicationId, Uri endp _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string hostName, VMwareHostData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ConnectedVMwarevSphere/hosts/", false); + uri.AppendPath(hostName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string hostName, VMwareHostData data) { var message = _pipeline.CreateMessage(); @@ -115,6 +129,20 @@ public Response Create(string subscriptionId, string resourceGroupName, string h } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string hostName) + { + 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.ConnectedVMwarevSphere/hosts/", false); + uri.AppendPath(hostName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string hostName) { var message = _pipeline.CreateMessage(); @@ -197,6 +225,20 @@ public Response Get(string subscriptionId, string resourceGroupN } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string hostName, VMwareResourcePatchContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ConnectedVMwarevSphere/hosts/", false); + uri.AppendPath(hostName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string hostName, VMwareResourcePatchContent content) { var message = _pipeline.CreateMessage(); @@ -283,6 +325,24 @@ public Response Update(string subscriptionId, string resourceGro } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string hostName, bool? force) + { + 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.ConnectedVMwarevSphere/hosts/", false); + uri.AppendPath(hostName, true); + uri.AppendQuery("api-version", _apiVersion, true); + if (force != null) + { + uri.AppendQuery("force", force.Value, true); + } + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string hostName, bool? force) { var message = _pipeline.CreateMessage(); @@ -361,6 +421,17 @@ public Response Delete(string subscriptionId, string resourceGroupName, string h } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ConnectedVMwarevSphere/hosts", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -428,6 +499,19 @@ public Response List(string subscriptionId, CancellationTo } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.ConnectedVMwarevSphere/hosts", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -501,6 +585,14 @@ public Response ListByResourceGroup(string subscriptionId, } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -569,6 +661,14 @@ public Response ListNextPage(string nextLink, string subsc } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/src/Generated/RestOperations/InventoryItemsRestOperations.cs b/sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/src/Generated/RestOperations/InventoryItemsRestOperations.cs index 6d8f8666d330..a6908dba552d 100644 --- a/sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/src/Generated/RestOperations/InventoryItemsRestOperations.cs +++ b/sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/src/Generated/RestOperations/InventoryItemsRestOperations.cs @@ -37,6 +37,22 @@ public InventoryItemsRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string vcenterName, string inventoryItemName, VCenterInventoryItemData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ConnectedVMwarevSphere/vcenters/", false); + uri.AppendPath(vcenterName, true); + uri.AppendPath("/inventoryItems/", false); + uri.AppendPath(inventoryItemName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string vcenterName, string inventoryItemName, VCenterInventoryItemData data) { var message = _pipeline.CreateMessage(); @@ -129,6 +145,22 @@ public Response Create(string subscriptionId, string r } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string vcenterName, string inventoryItemName) + { + 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.ConnectedVMwarevSphere/vcenters/", false); + uri.AppendPath(vcenterName, true); + uri.AppendPath("/inventoryItems/", false); + uri.AppendPath(inventoryItemName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string vcenterName, string inventoryItemName) { var message = _pipeline.CreateMessage(); @@ -217,6 +249,22 @@ public Response Get(string subscriptionId, string reso } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string vcenterName, string inventoryItemName) + { + 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.ConnectedVMwarevSphere/vcenters/", false); + uri.AppendPath(vcenterName, true); + uri.AppendPath("/inventoryItems/", false); + uri.AppendPath(inventoryItemName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string vcenterName, string inventoryItemName) { var message = _pipeline.CreateMessage(); @@ -293,6 +341,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string v } } + internal RequestUriBuilder CreateListByVCenterRequestUri(string subscriptionId, string resourceGroupName, string vcenterName) + { + 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.ConnectedVMwarevSphere/vcenters/", false); + uri.AppendPath(vcenterName, true); + uri.AppendPath("/inventoryItems", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByVCenterRequest(string subscriptionId, string resourceGroupName, string vcenterName) { var message = _pipeline.CreateMessage(); @@ -372,6 +435,14 @@ public Response ListByVCenter(string subscriptio } } + internal RequestUriBuilder CreateListByVCenterNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string vcenterName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByVCenterNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string vcenterName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/src/Generated/RestOperations/ResourcePoolsRestOperations.cs b/sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/src/Generated/RestOperations/ResourcePoolsRestOperations.cs index d780ece02237..0a9582db4cd9 100644 --- a/sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/src/Generated/RestOperations/ResourcePoolsRestOperations.cs +++ b/sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/src/Generated/RestOperations/ResourcePoolsRestOperations.cs @@ -37,6 +37,20 @@ public ResourcePoolsRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string resourcePoolName, VMwareResourcePoolData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ConnectedVMwarevSphere/resourcePools/", false); + uri.AppendPath(resourcePoolName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string resourcePoolName, VMwareResourcePoolData data) { var message = _pipeline.CreateMessage(); @@ -115,6 +129,20 @@ public Response Create(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string resourcePoolName) + { + 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.ConnectedVMwarevSphere/resourcePools/", false); + uri.AppendPath(resourcePoolName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string resourcePoolName) { var message = _pipeline.CreateMessage(); @@ -197,6 +225,20 @@ public Response Get(string subscriptionId, string resour } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string resourcePoolName, VMwareResourcePatchContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ConnectedVMwarevSphere/resourcePools/", false); + uri.AppendPath(resourcePoolName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string resourcePoolName, VMwareResourcePatchContent content) { var message = _pipeline.CreateMessage(); @@ -283,6 +325,24 @@ public Response Update(string subscriptionId, string res } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string resourcePoolName, bool? force) + { + 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.ConnectedVMwarevSphere/resourcePools/", false); + uri.AppendPath(resourcePoolName, true); + uri.AppendQuery("api-version", _apiVersion, true); + if (force != null) + { + uri.AppendQuery("force", force.Value, true); + } + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string resourcePoolName, bool? force) { var message = _pipeline.CreateMessage(); @@ -361,6 +421,17 @@ public Response Delete(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ConnectedVMwarevSphere/resourcePools", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -428,6 +499,19 @@ public Response List(string subscriptionId, Cancel } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.ConnectedVMwarevSphere/resourcePools", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -501,6 +585,14 @@ public Response ListByResourceGroup(string subscri } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -569,6 +661,14 @@ public Response ListNextPage(string nextLink, stri } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/src/Generated/RestOperations/VCentersRestOperations.cs b/sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/src/Generated/RestOperations/VCentersRestOperations.cs index eb92be82e18c..e110c3575159 100644 --- a/sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/src/Generated/RestOperations/VCentersRestOperations.cs +++ b/sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/src/Generated/RestOperations/VCentersRestOperations.cs @@ -37,6 +37,20 @@ public VCentersRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string vcenterName, VMwareVCenterData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ConnectedVMwarevSphere/vcenters/", false); + uri.AppendPath(vcenterName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string vcenterName, VMwareVCenterData data) { var message = _pipeline.CreateMessage(); @@ -115,6 +129,20 @@ public Response Create(string subscriptionId, string resourceGroupName, string v } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string vcenterName) + { + 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.ConnectedVMwarevSphere/vcenters/", false); + uri.AppendPath(vcenterName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string vcenterName) { var message = _pipeline.CreateMessage(); @@ -197,6 +225,20 @@ public Response Get(string subscriptionId, string resourceGro } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string vcenterName, VMwareResourcePatchContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ConnectedVMwarevSphere/vcenters/", false); + uri.AppendPath(vcenterName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string vcenterName, VMwareResourcePatchContent content) { var message = _pipeline.CreateMessage(); @@ -283,6 +325,24 @@ public Response Update(string subscriptionId, string resource } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string vcenterName, bool? force) + { + 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.ConnectedVMwarevSphere/vcenters/", false); + uri.AppendPath(vcenterName, true); + uri.AppendQuery("api-version", _apiVersion, true); + if (force != null) + { + uri.AppendQuery("force", force.Value, true); + } + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string vcenterName, bool? force) { var message = _pipeline.CreateMessage(); @@ -361,6 +421,17 @@ public Response Delete(string subscriptionId, string resourceGroupName, string v } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ConnectedVMwarevSphere/vcenters", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -428,6 +499,19 @@ public Response List(string subscriptionId, Cancellatio } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.ConnectedVMwarevSphere/vcenters", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -501,6 +585,14 @@ public Response ListByResourceGroup(string subscription } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -569,6 +661,14 @@ public Response ListNextPage(string nextLink, string su } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/src/Generated/RestOperations/VMInstanceGuestAgentsRestOperations.cs b/sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/src/Generated/RestOperations/VMInstanceGuestAgentsRestOperations.cs index 85da14f52997..f44ffafff30c 100644 --- a/sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/src/Generated/RestOperations/VMInstanceGuestAgentsRestOperations.cs +++ b/sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/src/Generated/RestOperations/VMInstanceGuestAgentsRestOperations.cs @@ -37,6 +37,17 @@ public VMInstanceGuestAgentsRestOperations(HttpPipeline pipeline, string applica _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateRequestUri(string resourceUri, VmInstanceGuestAgentData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceUri, false); + uri.AppendPath("/providers/Microsoft.ConnectedVMwarevSphere/virtualMachineInstances/default/guestAgents/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string resourceUri, VmInstanceGuestAgentData data) { var message = _pipeline.CreateMessage(); @@ -102,6 +113,17 @@ public Response Create(string resourceUri, VmInstanceGuestAgentData data, Cancel } } + internal RequestUriBuilder CreateGetRequestUri(string resourceUri) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceUri, false); + uri.AppendPath("/providers/Microsoft.ConnectedVMwarevSphere/virtualMachineInstances/default/guestAgents/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string resourceUri) { var message = _pipeline.CreateMessage(); @@ -171,6 +193,17 @@ public Response Get(string resourceUri, CancellationTo } } + internal RequestUriBuilder CreateDeleteRequestUri(string resourceUri) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceUri, false); + uri.AppendPath("/providers/Microsoft.ConnectedVMwarevSphere/virtualMachineInstances/default/guestAgents/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string resourceUri) { var message = _pipeline.CreateMessage(); @@ -228,6 +261,17 @@ public Response Delete(string resourceUri, CancellationToken cancellationToken = } } + internal RequestUriBuilder CreateListRequestUri(string resourceUri) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceUri, false); + uri.AppendPath("/providers/Microsoft.ConnectedVMwarevSphere/virtualMachineInstances/default/guestAgents", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string resourceUri) { var message = _pipeline.CreateMessage(); @@ -293,6 +337,14 @@ public Response List(string resourceUri, Cancell } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string resourceUri) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string resourceUri) { var message = _pipeline.CreateMessage(); diff --git a/sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/src/Generated/RestOperations/VirtualMachineInstancesRestOperations.cs b/sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/src/Generated/RestOperations/VirtualMachineInstancesRestOperations.cs index 319005b3e293..3365ff6810af 100644 --- a/sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/src/Generated/RestOperations/VirtualMachineInstancesRestOperations.cs +++ b/sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/src/Generated/RestOperations/VirtualMachineInstancesRestOperations.cs @@ -37,6 +37,17 @@ public VirtualMachineInstancesRestOperations(HttpPipeline pipeline, string appli _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string resourceUri, VMwareVmInstanceData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceUri, false); + uri.AppendPath("/providers/Microsoft.ConnectedVMwarevSphere/virtualMachineInstances/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string resourceUri, VMwareVmInstanceData data) { var message = _pipeline.CreateMessage(); @@ -102,6 +113,17 @@ public Response CreateOrUpdate(string resourceUri, VMwareVmInstanceData data, Ca } } + internal RequestUriBuilder CreateGetRequestUri(string resourceUri) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceUri, false); + uri.AppendPath("/providers/Microsoft.ConnectedVMwarevSphere/virtualMachineInstances/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string resourceUri) { var message = _pipeline.CreateMessage(); @@ -171,6 +193,17 @@ public Response Get(string resourceUri, CancellationToken } } + internal RequestUriBuilder CreateUpdateRequestUri(string resourceUri, VMwareVmInstancePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceUri, false); + uri.AppendPath("/providers/Microsoft.ConnectedVMwarevSphere/virtualMachineInstances/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string resourceUri, VMwareVmInstancePatch patch) { var message = _pipeline.CreateMessage(); @@ -236,6 +269,25 @@ public Response Update(string resourceUri, VMwareVmInstancePatch patch, Cancella } } + internal RequestUriBuilder CreateDeleteRequestUri(string resourceUri, bool? deleteFromHost, bool? force) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceUri, false); + uri.AppendPath("/providers/Microsoft.ConnectedVMwarevSphere/virtualMachineInstances/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (deleteFromHost != null) + { + uri.AppendQuery("deleteFromHost", deleteFromHost.Value, true); + } + if (force != null) + { + uri.AppendQuery("force", force.Value, true); + } + return uri; + } + internal HttpMessage CreateDeleteRequest(string resourceUri, bool? deleteFromHost, bool? force) { var message = _pipeline.CreateMessage(); @@ -305,6 +357,17 @@ public Response Delete(string resourceUri, bool? deleteFromHost = null, bool? fo } } + internal RequestUriBuilder CreateListRequestUri(string resourceUri) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceUri, false); + uri.AppendPath("/providers/Microsoft.ConnectedVMwarevSphere/virtualMachineInstances", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string resourceUri) { var message = _pipeline.CreateMessage(); @@ -370,6 +433,17 @@ public Response List(string resourceUri, Cancellatio } } + internal RequestUriBuilder CreateStopRequestUri(string resourceUri, StopVirtualMachineContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceUri, false); + uri.AppendPath("/providers/Microsoft.ConnectedVMwarevSphere/virtualMachineInstances/default/stop", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStopRequest(string resourceUri, StopVirtualMachineContent content) { var message = _pipeline.CreateMessage(); @@ -434,6 +508,17 @@ public Response Stop(string resourceUri, StopVirtualMachineContent content = nul } } + internal RequestUriBuilder CreateStartRequestUri(string resourceUri) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceUri, false); + uri.AppendPath("/providers/Microsoft.ConnectedVMwarevSphere/virtualMachineInstances/default/start", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStartRequest(string resourceUri) { var message = _pipeline.CreateMessage(); @@ -489,6 +574,17 @@ public Response Start(string resourceUri, CancellationToken cancellationToken = } } + internal RequestUriBuilder CreateRestartRequestUri(string resourceUri) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceUri, false); + uri.AppendPath("/providers/Microsoft.ConnectedVMwarevSphere/virtualMachineInstances/default/restart", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRestartRequest(string resourceUri) { var message = _pipeline.CreateMessage(); @@ -544,6 +640,14 @@ public Response Restart(string resourceUri, CancellationToken cancellationToken } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string resourceUri) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string resourceUri) { var message = _pipeline.CreateMessage(); diff --git a/sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/src/Generated/RestOperations/VirtualMachineTemplatesRestOperations.cs b/sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/src/Generated/RestOperations/VirtualMachineTemplatesRestOperations.cs index 5fde41f92912..c8e244536507 100644 --- a/sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/src/Generated/RestOperations/VirtualMachineTemplatesRestOperations.cs +++ b/sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/src/Generated/RestOperations/VirtualMachineTemplatesRestOperations.cs @@ -37,6 +37,20 @@ public VirtualMachineTemplatesRestOperations(HttpPipeline pipeline, string appli _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string virtualMachineTemplateName, VMwareVmTemplateData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ConnectedVMwarevSphere/virtualMachineTemplates/", false); + uri.AppendPath(virtualMachineTemplateName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string virtualMachineTemplateName, VMwareVmTemplateData data) { var message = _pipeline.CreateMessage(); @@ -115,6 +129,20 @@ public Response Create(string subscriptionId, string resourceGroupName, string v } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string virtualMachineTemplateName) + { + 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.ConnectedVMwarevSphere/virtualMachineTemplates/", false); + uri.AppendPath(virtualMachineTemplateName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string virtualMachineTemplateName) { var message = _pipeline.CreateMessage(); @@ -197,6 +225,20 @@ public Response Get(string subscriptionId, string resource } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string virtualMachineTemplateName, VMwareResourcePatchContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ConnectedVMwarevSphere/virtualMachineTemplates/", false); + uri.AppendPath(virtualMachineTemplateName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string virtualMachineTemplateName, VMwareResourcePatchContent content) { var message = _pipeline.CreateMessage(); @@ -283,6 +325,24 @@ public Response Update(string subscriptionId, string resou } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string virtualMachineTemplateName, bool? force) + { + 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.ConnectedVMwarevSphere/virtualMachineTemplates/", false); + uri.AppendPath(virtualMachineTemplateName, true); + uri.AppendQuery("api-version", _apiVersion, true); + if (force != null) + { + uri.AppendQuery("force", force.Value, true); + } + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string virtualMachineTemplateName, bool? force) { var message = _pipeline.CreateMessage(); @@ -361,6 +421,17 @@ public Response Delete(string subscriptionId, string resourceGroupName, string v } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ConnectedVMwarevSphere/virtualMachineTemplates", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -428,6 +499,19 @@ public Response List(string subscriptionId, Cancella } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.ConnectedVMwarevSphere/virtualMachineTemplates", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -501,6 +585,14 @@ public Response ListByResourceGroup(string subscript } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -569,6 +661,14 @@ public Response ListNextPage(string nextLink, string } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/src/Generated/RestOperations/VirtualNetworksRestOperations.cs b/sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/src/Generated/RestOperations/VirtualNetworksRestOperations.cs index eb1eacc2db13..bfe0f709b072 100644 --- a/sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/src/Generated/RestOperations/VirtualNetworksRestOperations.cs +++ b/sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/src/Generated/RestOperations/VirtualNetworksRestOperations.cs @@ -37,6 +37,20 @@ public VirtualNetworksRestOperations(HttpPipeline pipeline, string applicationId _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string virtualNetworkName, VMwareVirtualNetworkData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ConnectedVMwarevSphere/virtualNetworks/", false); + uri.AppendPath(virtualNetworkName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string virtualNetworkName, VMwareVirtualNetworkData data) { var message = _pipeline.CreateMessage(); @@ -115,6 +129,20 @@ public Response Create(string subscriptionId, string resourceGroupName, string v } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string virtualNetworkName) + { + 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.ConnectedVMwarevSphere/virtualNetworks/", false); + uri.AppendPath(virtualNetworkName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string virtualNetworkName) { var message = _pipeline.CreateMessage(); @@ -197,6 +225,20 @@ public Response Get(string subscriptionId, string reso } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string virtualNetworkName, VMwareResourcePatchContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ConnectedVMwarevSphere/virtualNetworks/", false); + uri.AppendPath(virtualNetworkName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string virtualNetworkName, VMwareResourcePatchContent content) { var message = _pipeline.CreateMessage(); @@ -283,6 +325,24 @@ public Response Update(string subscriptionId, string r } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string virtualNetworkName, bool? force) + { + 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.ConnectedVMwarevSphere/virtualNetworks/", false); + uri.AppendPath(virtualNetworkName, true); + uri.AppendQuery("api-version", _apiVersion, true); + if (force != null) + { + uri.AppendQuery("force", force.Value, true); + } + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string virtualNetworkName, bool? force) { var message = _pipeline.CreateMessage(); @@ -361,6 +421,17 @@ public Response Delete(string subscriptionId, string resourceGroupName, string v } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ConnectedVMwarevSphere/virtualNetworks", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -428,6 +499,19 @@ public Response List(string subscriptionId, Canc } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.ConnectedVMwarevSphere/virtualNetworks", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -501,6 +585,14 @@ public Response ListByResourceGroup(string subsc } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -569,6 +661,14 @@ public Response ListNextPage(string nextLink, st } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/src/Generated/RestOperations/VmInstanceHybridIdentityMetadataRestOperations.cs b/sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/src/Generated/RestOperations/VmInstanceHybridIdentityMetadataRestOperations.cs index 6797ce300f36..d6fbde206488 100644 --- a/sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/src/Generated/RestOperations/VmInstanceHybridIdentityMetadataRestOperations.cs +++ b/sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/src/Generated/RestOperations/VmInstanceHybridIdentityMetadataRestOperations.cs @@ -37,6 +37,17 @@ public VmInstanceHybridIdentityMetadataRestOperations(HttpPipeline pipeline, str _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string resourceUri) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceUri, false); + uri.AppendPath("/providers/Microsoft.ConnectedVMwarevSphere/virtualMachineInstances/default/hybridIdentityMetadata/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string resourceUri) { var message = _pipeline.CreateMessage(); @@ -106,6 +117,17 @@ public Response Get(string resourceUri, Ca } } + internal RequestUriBuilder CreateListRequestUri(string resourceUri) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceUri, false); + uri.AppendPath("/providers/Microsoft.ConnectedVMwarevSphere/virtualMachineInstances/default/hybridIdentityMetadata", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string resourceUri) { var message = _pipeline.CreateMessage(); @@ -171,6 +193,14 @@ public Response List(string resourceUri, C } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string resourceUri) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string resourceUri) { var message = _pipeline.CreateMessage(); diff --git a/sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/src/Generated/VCenterInventoryItemCollection.cs b/sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/src/Generated/VCenterInventoryItemCollection.cs index f3bfb4702b15..8e04817e6a2b 100644 --- a/sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/src/Generated/VCenterInventoryItemCollection.cs +++ b/sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/src/Generated/VCenterInventoryItemCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> CreateOrUp try { var response = await _vCenterInventoryItemInventoryItemsRestClient.CreateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, inventoryItemName, data, cancellationToken).ConfigureAwait(false); - var operation = new ConnectedVMwarevSphereArmOperation(Response.FromValue(new VCenterInventoryItemResource(Client, response), response.GetRawResponse())); + var uri = _vCenterInventoryItemInventoryItemsRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, inventoryItemName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ConnectedVMwarevSphereArmOperation(Response.FromValue(new VCenterInventoryItemResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUnt try { var response = _vCenterInventoryItemInventoryItemsRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, inventoryItemName, data, cancellationToken); - var operation = new ConnectedVMwarevSphereArmOperation(Response.FromValue(new VCenterInventoryItemResource(Client, response), response.GetRawResponse())); + var uri = _vCenterInventoryItemInventoryItemsRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, inventoryItemName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ConnectedVMwarevSphereArmOperation(Response.FromValue(new VCenterInventoryItemResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/src/Generated/VCenterInventoryItemResource.cs b/sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/src/Generated/VCenterInventoryItemResource.cs index 317412919d5b..dbc5e8c5a45d 100644 --- a/sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/src/Generated/VCenterInventoryItemResource.cs +++ b/sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/src/Generated/VCenterInventoryItemResource.cs @@ -200,7 +200,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _vCenterInventoryItemInventoryItemsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new ConnectedVMwarevSphereArmOperation(response); + var uri = _vCenterInventoryItemInventoryItemsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ConnectedVMwarevSphereArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -242,7 +244,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _vCenterInventoryItemInventoryItemsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new ConnectedVMwarevSphereArmOperation(response); + var uri = _vCenterInventoryItemInventoryItemsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ConnectedVMwarevSphereArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -288,7 +292,9 @@ public virtual async Task> UpdateAsyn try { var response = await _vCenterInventoryItemInventoryItemsRestClient.CreateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new ConnectedVMwarevSphereArmOperation(Response.FromValue(new VCenterInventoryItemResource(Client, response), response.GetRawResponse())); + var uri = _vCenterInventoryItemInventoryItemsRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ConnectedVMwarevSphereArmOperation(Response.FromValue(new VCenterInventoryItemResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -334,7 +340,9 @@ public virtual ArmOperation Update(WaitUntil waitU try { var response = _vCenterInventoryItemInventoryItemsRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new ConnectedVMwarevSphereArmOperation(Response.FromValue(new VCenterInventoryItemResource(Client, response), response.GetRawResponse())); + var uri = _vCenterInventoryItemInventoryItemsRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ConnectedVMwarevSphereArmOperation(Response.FromValue(new VCenterInventoryItemResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/ConsumptionBudgetCollection.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/ConsumptionBudgetCollection.cs index 354b598f7863..8dcd1f465814 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/ConsumptionBudgetCollection.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/ConsumptionBudgetCollection.cs @@ -80,7 +80,9 @@ public virtual async Task> CreateOrUpdat try { var response = await _consumptionBudgetBudgetsRestClient.CreateOrUpdateAsync(Id, budgetName, data, cancellationToken).ConfigureAwait(false); - var operation = new ConsumptionArmOperation(Response.FromValue(new ConsumptionBudgetResource(Client, response), response.GetRawResponse())); + var uri = _consumptionBudgetBudgetsRestClient.CreateCreateOrUpdateRequestUri(Id, budgetName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ConsumptionArmOperation(Response.FromValue(new ConsumptionBudgetResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -129,7 +131,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil try { var response = _consumptionBudgetBudgetsRestClient.CreateOrUpdate(Id, budgetName, data, cancellationToken); - var operation = new ConsumptionArmOperation(Response.FromValue(new ConsumptionBudgetResource(Client, response), response.GetRawResponse())); + var uri = _consumptionBudgetBudgetsRestClient.CreateCreateOrUpdateRequestUri(Id, budgetName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ConsumptionArmOperation(Response.FromValue(new ConsumptionBudgetResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/ConsumptionBudgetResource.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/ConsumptionBudgetResource.cs index 8ca826b3e150..aab2b30c3729 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/ConsumptionBudgetResource.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/ConsumptionBudgetResource.cs @@ -198,7 +198,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _consumptionBudgetBudgetsRestClient.DeleteAsync(Id.Parent, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new ConsumptionArmOperation(response); + var uri = _consumptionBudgetBudgetsRestClient.CreateDeleteRequestUri(Id.Parent, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ConsumptionArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -240,7 +242,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _consumptionBudgetBudgetsRestClient.Delete(Id.Parent, Id.Name, cancellationToken); - var operation = new ConsumptionArmOperation(response); + var uri = _consumptionBudgetBudgetsRestClient.CreateDeleteRequestUri(Id.Parent, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ConsumptionArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -286,7 +290,9 @@ public virtual async Task> UpdateAsync(W try { var response = await _consumptionBudgetBudgetsRestClient.CreateOrUpdateAsync(Id.Parent, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new ConsumptionArmOperation(Response.FromValue(new ConsumptionBudgetResource(Client, response), response.GetRawResponse())); + var uri = _consumptionBudgetBudgetsRestClient.CreateCreateOrUpdateRequestUri(Id.Parent, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ConsumptionArmOperation(Response.FromValue(new ConsumptionBudgetResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -332,7 +338,9 @@ public virtual ArmOperation Update(WaitUntil waitUnti try { var response = _consumptionBudgetBudgetsRestClient.CreateOrUpdate(Id.Parent, Id.Name, data, cancellationToken); - var operation = new ConsumptionArmOperation(Response.FromValue(new ConsumptionBudgetResource(Client, response), response.GetRawResponse())); + var uri = _consumptionBudgetBudgetsRestClient.CreateCreateOrUpdateRequestUri(Id.Parent, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ConsumptionArmOperation(Response.FromValue(new ConsumptionBudgetResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/LongRunningOperation/ConsumptionArmOperation.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/LongRunningOperation/ConsumptionArmOperation.cs index 1872e79aada0..50e1aa2a1799 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/LongRunningOperation/ConsumptionArmOperation.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/LongRunningOperation/ConsumptionArmOperation.cs @@ -20,21 +20,24 @@ internal class ConsumptionArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of ConsumptionArmOperation for mocking. protected ConsumptionArmOperation() { } - internal ConsumptionArmOperation(Response response) + internal ConsumptionArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal ConsumptionArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "ConsumptionArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal ConsumptionArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeli public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/LongRunningOperation/ConsumptionArmOperationOfT.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/LongRunningOperation/ConsumptionArmOperationOfT.cs index 1dcde29af521..28adda932f2b 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/LongRunningOperation/ConsumptionArmOperationOfT.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/LongRunningOperation/ConsumptionArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class ConsumptionArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of ConsumptionArmOperation for mocking. protected ConsumptionArmOperation() { } - internal ConsumptionArmOperation(Response response) + internal ConsumptionArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal ConsumptionArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "ConsumptionArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal ConsumptionArmOperation(IOperationSource source, ClientDiagnostics c public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionBudgetResource.Serialization.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionBudgetResource.Serialization.cs new file mode 100644 index 000000000000..1b890812786d --- /dev/null +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionBudgetResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Consumption +{ + public partial class ConsumptionBudgetResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ConsumptionBudgetData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ConsumptionBudgetData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/RestOperations/AggregatedCostRestOperations.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/RestOperations/AggregatedCostRestOperations.cs index 2dfd260a1e89..f7ee62494ba9 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/RestOperations/AggregatedCostRestOperations.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/RestOperations/AggregatedCostRestOperations.cs @@ -37,6 +37,21 @@ public AggregatedCostRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetByManagementGroupRequestUri(string managementGroupId, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Management/managementGroups/", false); + uri.AppendPath(managementGroupId, true); + uri.AppendPath("/providers/Microsoft.Consumption/aggregatedcost", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + return uri; + } + internal HttpMessage CreateGetByManagementGroupRequest(string managementGroupId, string filter) { var message = _pipeline.CreateMessage(); @@ -110,6 +125,19 @@ public Response GetByManagementGroup(string man } } + internal RequestUriBuilder CreateGetForBillingPeriodByManagementGroupRequestUri(string managementGroupId, string billingPeriodName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Management/managementGroups/", false); + uri.AppendPath(managementGroupId, true); + uri.AppendPath("/providers/Microsoft.Billing/billingPeriods/", false); + uri.AppendPath(billingPeriodName, true); + uri.AppendPath("/providers/Microsoft.Consumption/aggregatedCost", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetForBillingPeriodByManagementGroupRequest(string managementGroupId, string billingPeriodName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/RestOperations/BalancesRestOperations.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/RestOperations/BalancesRestOperations.cs index 463e119f3c74..a2ea6958a582 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/RestOperations/BalancesRestOperations.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/RestOperations/BalancesRestOperations.cs @@ -37,6 +37,17 @@ public BalancesRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetByBillingAccountRequestUri(string billingAccountId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Billing/billingAccounts/", false); + uri.AppendPath(billingAccountId, true); + uri.AppendPath("/providers/Microsoft.Consumption/balances", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetByBillingAccountRequest(string billingAccountId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,19 @@ public Response GetByBillingAccount(string billingAcco } } + internal RequestUriBuilder CreateGetForBillingPeriodByBillingAccountRequestUri(string billingAccountId, string billingPeriodName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Billing/billingAccounts/", false); + uri.AppendPath(billingAccountId, true); + uri.AppendPath("/billingPeriods/", false); + uri.AppendPath(billingPeriodName, true); + uri.AppendPath("/providers/Microsoft.Consumption/balances", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetForBillingPeriodByBillingAccountRequest(string billingAccountId, string billingPeriodName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/RestOperations/BudgetsRestOperations.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/RestOperations/BudgetsRestOperations.cs index a2aa21b572ac..edc806370b3e 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/RestOperations/BudgetsRestOperations.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/RestOperations/BudgetsRestOperations.cs @@ -37,6 +37,17 @@ public BudgetsRestOperations(HttpPipeline pipeline, string applicationId, Uri en _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string scope) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.Consumption/budgets", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string scope) { var message = _pipeline.CreateMessage(); @@ -102,6 +113,18 @@ public Response List(string scope, CancellationToken cancella } } + internal RequestUriBuilder CreateGetRequestUri(string scope, string budgetName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.Consumption/budgets/", false); + uri.AppendPath(budgetName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string scope, string budgetName) { var message = _pipeline.CreateMessage(); @@ -178,6 +201,18 @@ public Response Get(string scope, string budgetName, Canc } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string scope, string budgetName, ConsumptionBudgetData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.Consumption/budgets/", false); + uri.AppendPath(budgetName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string scope, string budgetName, ConsumptionBudgetData data) { var message = _pipeline.CreateMessage(); @@ -260,6 +295,18 @@ public Response CreateOrUpdate(string scope, string budge } } + internal RequestUriBuilder CreateDeleteRequestUri(string scope, string budgetName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.Consumption/budgets/", false); + uri.AppendPath(budgetName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string scope, string budgetName) { var message = _pipeline.CreateMessage(); @@ -322,6 +369,14 @@ public Response Delete(string scope, string budgetName, CancellationToken cancel } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string scope) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string scope) { var message = _pipeline.CreateMessage(); diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/RestOperations/ChargesRestOperations.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/RestOperations/ChargesRestOperations.cs index f6e4307522cf..255872a5cc05 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/RestOperations/ChargesRestOperations.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/RestOperations/ChargesRestOperations.cs @@ -37,6 +37,33 @@ public ChargesRestOperations(HttpPipeline pipeline, string applicationId, Uri en _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string scope, string startDate, string endDate, string filter, string apply) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.Consumption/charges", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (startDate != null) + { + uri.AppendQuery("startDate", startDate, true); + } + if (endDate != null) + { + uri.AppendQuery("endDate", endDate, true); + } + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (apply != null) + { + uri.AppendQuery("$apply", apply, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string scope, string startDate, string endDate, string filter, string apply) { var message = _pipeline.CreateMessage(); diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/RestOperations/CreditsRestOperations.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/RestOperations/CreditsRestOperations.cs index 5970e691a72a..a9541f63b6e0 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/RestOperations/CreditsRestOperations.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/RestOperations/CreditsRestOperations.cs @@ -37,6 +37,19 @@ public CreditsRestOperations(HttpPipeline pipeline, string applicationId, Uri en _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string billingAccountId, string billingProfileId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Billing/billingAccounts/", false); + uri.AppendPath(billingAccountId, true); + uri.AppendPath("/billingProfiles/", false); + uri.AppendPath(billingProfileId, true); + uri.AppendPath("/providers/Microsoft.Consumption/credits/balanceSummary", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string billingAccountId, string billingProfileId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/RestOperations/EventsRestOperations.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/RestOperations/EventsRestOperations.cs index a507533b4c3e..76daad4d6ab2 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/RestOperations/EventsRestOperations.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/RestOperations/EventsRestOperations.cs @@ -37,6 +37,21 @@ public EventsRestOperations(HttpPipeline pipeline, string applicationId, Uri end _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByBillingProfileRequestUri(string billingAccountId, string billingProfileId, string startDate, string endDate) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Billing/billingAccounts/", false); + uri.AppendPath(billingAccountId, true); + uri.AppendPath("/billingProfiles/", false); + uri.AppendPath(billingProfileId, true); + uri.AppendPath("/providers/Microsoft.Consumption/events", false); + uri.AppendQuery("api-version", _apiVersion, true); + uri.AppendQuery("startDate", startDate, true); + uri.AppendQuery("endDate", endDate, true); + return uri; + } + internal HttpMessage CreateListByBillingProfileRequest(string billingAccountId, string billingProfileId, string startDate, string endDate) { var message = _pipeline.CreateMessage(); @@ -120,6 +135,21 @@ public Response ListByBillingProfile(string billingAccountId, string bil } } + internal RequestUriBuilder CreateListByBillingAccountRequestUri(string billingAccountId, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Billing/billingAccounts/", false); + uri.AppendPath(billingAccountId, true); + uri.AppendPath("/providers/Microsoft.Consumption/events", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + return uri; + } + internal HttpMessage CreateListByBillingAccountRequest(string billingAccountId, string filter) { var message = _pipeline.CreateMessage(); @@ -193,6 +223,14 @@ public Response ListByBillingAccount(string billingAccountId, string fil } } + internal RequestUriBuilder CreateListByBillingProfileNextPageRequestUri(string nextLink, string billingAccountId, string billingProfileId, string startDate, string endDate) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByBillingProfileNextPageRequest(string nextLink, string billingAccountId, string billingProfileId, string startDate, string endDate) { var message = _pipeline.CreateMessage(); @@ -273,6 +311,14 @@ public Response ListByBillingProfileNextPage(string nextLink, string bil } } + internal RequestUriBuilder CreateListByBillingAccountNextPageRequestUri(string nextLink, string billingAccountId, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByBillingAccountNextPageRequest(string nextLink, string billingAccountId, string filter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/RestOperations/LotsRestOperations.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/RestOperations/LotsRestOperations.cs index 8de9ae0e18d5..b01d68f100c2 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/RestOperations/LotsRestOperations.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/RestOperations/LotsRestOperations.cs @@ -37,6 +37,19 @@ public LotsRestOperations(HttpPipeline pipeline, string applicationId, Uri endpo _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByBillingProfileRequestUri(string billingAccountId, string billingProfileId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Billing/billingAccounts/", false); + uri.AppendPath(billingAccountId, true); + uri.AppendPath("/billingProfiles/", false); + uri.AppendPath(billingProfileId, true); + uri.AppendPath("/providers/Microsoft.Consumption/lots", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByBillingProfileRequest(string billingAccountId, string billingProfileId) { var message = _pipeline.CreateMessage(); @@ -110,6 +123,21 @@ public Response ListByBillingProfile(string billingAccountId, string billi } } + internal RequestUriBuilder CreateListByBillingAccountRequestUri(string billingAccountId, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Billing/billingAccounts/", false); + uri.AppendPath(billingAccountId, true); + uri.AppendPath("/providers/Microsoft.Consumption/lots", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + return uri; + } + internal HttpMessage CreateListByBillingAccountRequest(string billingAccountId, string filter) { var message = _pipeline.CreateMessage(); @@ -183,6 +211,23 @@ public Response ListByBillingAccount(string billingAccountId, string filte } } + internal RequestUriBuilder CreateListByCustomerRequestUri(string billingAccountId, string customerId, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Billing/billingAccounts/", false); + uri.AppendPath(billingAccountId, true); + uri.AppendPath("/customers/", false); + uri.AppendPath(customerId, true); + uri.AppendPath("/providers/Microsoft.Consumption/lots", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + return uri; + } + internal HttpMessage CreateListByCustomerRequest(string billingAccountId, string customerId, string filter) { var message = _pipeline.CreateMessage(); @@ -262,6 +307,14 @@ public Response ListByCustomer(string billingAccountId, string customerId, } } + internal RequestUriBuilder CreateListByBillingProfileNextPageRequestUri(string nextLink, string billingAccountId, string billingProfileId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByBillingProfileNextPageRequest(string nextLink, string billingAccountId, string billingProfileId) { var message = _pipeline.CreateMessage(); @@ -334,6 +387,14 @@ public Response ListByBillingProfileNextPage(string nextLink, string billi } } + internal RequestUriBuilder CreateListByBillingAccountNextPageRequestUri(string nextLink, string billingAccountId, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByBillingAccountNextPageRequest(string nextLink, string billingAccountId, string filter) { var message = _pipeline.CreateMessage(); @@ -404,6 +465,14 @@ public Response ListByBillingAccountNextPage(string nextLink, string billi } } + internal RequestUriBuilder CreateListByCustomerNextPageRequestUri(string nextLink, string billingAccountId, string customerId, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByCustomerNextPageRequest(string nextLink, string billingAccountId, string customerId, string filter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/RestOperations/MarketplacesRestOperations.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/RestOperations/MarketplacesRestOperations.cs index 0c5e25f72f0f..2024bbd063ad 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/RestOperations/MarketplacesRestOperations.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/RestOperations/MarketplacesRestOperations.cs @@ -37,6 +37,29 @@ public MarketplacesRestOperations(HttpPipeline pipeline, string applicationId, U _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string scope, string filter, int? top, string skipToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.Consumption/marketplaces", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skipToken != null) + { + uri.AppendQuery("$skiptoken", skipToken, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string scope, string filter, int? top, string skipToken) { var message = _pipeline.CreateMessage(); @@ -124,6 +147,14 @@ public Response List(string scope, string filter = null, } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string scope, string filter, int? top, string skipToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string scope, string filter, int? top, string skipToken) { var message = _pipeline.CreateMessage(); diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/RestOperations/PriceSheetRestOperations.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/RestOperations/PriceSheetRestOperations.cs index b3f192b997bf..772be5d5ec43 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/RestOperations/PriceSheetRestOperations.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/RestOperations/PriceSheetRestOperations.cs @@ -37,6 +37,29 @@ public PriceSheetRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string expand, string skipToken, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Consumption/pricesheets/default", false); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + if (skipToken != null) + { + uri.AppendQuery("$skiptoken", skipToken, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string expand, string skipToken, int? top) { var message = _pipeline.CreateMessage(); @@ -122,6 +145,31 @@ public Response Get(string subscriptionId, string expand = nul } } + internal RequestUriBuilder CreateGetByBillingPeriodRequestUri(string subscriptionId, string billingPeriodName, string expand, string skipToken, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Billing/billingPeriods/", false); + uri.AppendPath(billingPeriodName, true); + uri.AppendPath("/providers/Microsoft.Consumption/pricesheets/default", false); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + if (skipToken != null) + { + uri.AppendQuery("$skiptoken", skipToken, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetByBillingPeriodRequest(string subscriptionId, string billingPeriodName, string expand, string skipToken, int? top) { var message = _pipeline.CreateMessage(); diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/RestOperations/ReservationRecommendationDetailsRestOperations.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/RestOperations/ReservationRecommendationDetailsRestOperations.cs index 146194ceffc0..08415b7f444a 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/RestOperations/ReservationRecommendationDetailsRestOperations.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/RestOperations/ReservationRecommendationDetailsRestOperations.cs @@ -37,6 +37,22 @@ public ReservationRecommendationDetailsRestOperations(HttpPipeline pipeline, str _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string resourceScope, ConsumptionReservationRecommendationScope reservationScope, string region, ConsumptionReservationRecommendationTerm term, ConsumptionReservationRecommendationLookBackPeriod lookBackPeriod, string product) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceScope, false); + uri.AppendPath("/providers/Microsoft.Consumption/reservationRecommendationDetails", false); + uri.AppendQuery("api-version", _apiVersion, true); + uri.AppendQuery("scope", reservationScope.ToString(), true); + uri.AppendQuery("region", region, true); + uri.AppendQuery("term", term.ToString(), true); + uri.AppendQuery("lookBackPeriod", lookBackPeriod.ToString(), true); + uri.AppendQuery("product", product, true); + return uri; + } + internal HttpMessage CreateGetRequest(string resourceScope, ConsumptionReservationRecommendationScope reservationScope, string region, ConsumptionReservationRecommendationTerm term, ConsumptionReservationRecommendationLookBackPeriod lookBackPeriod, string product) { var message = _pipeline.CreateMessage(); diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/RestOperations/ReservationRecommendationsRestOperations.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/RestOperations/ReservationRecommendationsRestOperations.cs index edc4ae059f86..b1c72d6f1246 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/RestOperations/ReservationRecommendationsRestOperations.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/RestOperations/ReservationRecommendationsRestOperations.cs @@ -37,6 +37,21 @@ public ReservationRecommendationsRestOperations(HttpPipeline pipeline, string ap _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string resourceScope, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceScope, false); + uri.AppendPath("/providers/Microsoft.Consumption/reservationRecommendations", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string resourceScope, string filter) { var message = _pipeline.CreateMessage(); @@ -112,6 +127,14 @@ public Response List(string resourceScope, } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string resourceScope, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string resourceScope, string filter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/RestOperations/ReservationTransactionsRestOperations.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/RestOperations/ReservationTransactionsRestOperations.cs index ab0ffa8ced4a..bbec9226f6f0 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/RestOperations/ReservationTransactionsRestOperations.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/RestOperations/ReservationTransactionsRestOperations.cs @@ -37,6 +37,21 @@ public ReservationTransactionsRestOperations(HttpPipeline pipeline, string appli _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string billingAccountId, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Billing/billingAccounts/", false); + uri.AppendPath(billingAccountId, true); + uri.AppendPath("/providers/Microsoft.Consumption/reservationTransactions", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string billingAccountId, string filter) { var message = _pipeline.CreateMessage(); @@ -110,6 +125,23 @@ public Response List(string billingAccountId, } } + internal RequestUriBuilder CreateListByBillingProfileRequestUri(string billingAccountId, string billingProfileId, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Billing/billingAccounts/", false); + uri.AppendPath(billingAccountId, true); + uri.AppendPath("/billingProfiles/", false); + uri.AppendPath(billingProfileId, true); + uri.AppendPath("/providers/Microsoft.Consumption/reservationTransactions", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByBillingProfileRequest(string billingAccountId, string billingProfileId, string filter) { var message = _pipeline.CreateMessage(); @@ -189,6 +221,14 @@ public Response ListByBillingProfile(st } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string billingAccountId, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string billingAccountId, string filter) { var message = _pipeline.CreateMessage(); @@ -259,6 +299,14 @@ public Response ListNextPage(string nextLink, } } + internal RequestUriBuilder CreateListByBillingProfileNextPageRequestUri(string nextLink, string billingAccountId, string billingProfileId, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByBillingProfileNextPageRequest(string nextLink, string billingAccountId, string billingProfileId, string filter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/RestOperations/ReservationsDetailsRestOperations.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/RestOperations/ReservationsDetailsRestOperations.cs index d41fceae288e..d37be854c31c 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/RestOperations/ReservationsDetailsRestOperations.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/RestOperations/ReservationsDetailsRestOperations.cs @@ -37,6 +37,18 @@ public ReservationsDetailsRestOperations(HttpPipeline pipeline, string applicati _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByReservationOrderRequestUri(string reservationOrderId, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Capacity/reservationorders/", false); + uri.AppendPath(reservationOrderId, true); + uri.AppendPath("/providers/Microsoft.Consumption/reservationDetails", false); + uri.AppendQuery("$filter", filter, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByReservationOrderRequest(string reservationOrderId, string filter) { var message = _pipeline.CreateMessage(); @@ -109,6 +121,20 @@ public Response ListByReservationOrder(string rese } } + internal RequestUriBuilder CreateListByReservationOrderAndReservationRequestUri(string reservationOrderId, string reservationId, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Capacity/reservationorders/", false); + uri.AppendPath(reservationOrderId, true); + uri.AppendPath("/reservations/", false); + uri.AppendPath(reservationId, true); + uri.AppendPath("/providers/Microsoft.Consumption/reservationDetails", false); + uri.AppendQuery("$filter", filter, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByReservationOrderAndReservationRequest(string reservationOrderId, string reservationId, string filter) { var message = _pipeline.CreateMessage(); @@ -187,6 +213,37 @@ public Response ListByReservationOrderAndReservati } } + internal RequestUriBuilder CreateListRequestUri(string resourceScope, string startDate, string endDate, string filter, string reservationId, string reservationOrderId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceScope, false); + uri.AppendPath("/providers/Microsoft.Consumption/reservationDetails", false); + if (startDate != null) + { + uri.AppendQuery("startDate", startDate, true); + } + if (endDate != null) + { + uri.AppendQuery("endDate", endDate, true); + } + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (reservationId != null) + { + uri.AppendQuery("reservationId", reservationId, true); + } + if (reservationOrderId != null) + { + uri.AppendQuery("reservationOrderId", reservationOrderId, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string resourceScope, string startDate, string endDate, string filter, string reservationId, string reservationOrderId) { var message = _pipeline.CreateMessage(); @@ -282,6 +339,14 @@ public Response List(string resourceScope, string } } + internal RequestUriBuilder CreateListByReservationOrderNextPageRequestUri(string nextLink, string reservationOrderId, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByReservationOrderNextPageRequest(string nextLink, string reservationOrderId, string filter) { var message = _pipeline.CreateMessage(); @@ -354,6 +419,14 @@ public Response ListByReservationOrderNextPage(str } } + internal RequestUriBuilder CreateListByReservationOrderAndReservationNextPageRequestUri(string nextLink, string reservationOrderId, string reservationId, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByReservationOrderAndReservationNextPageRequest(string nextLink, string reservationOrderId, string reservationId, string filter) { var message = _pipeline.CreateMessage(); @@ -430,6 +503,14 @@ public Response ListByReservationOrderAndReservati } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string resourceScope, string startDate, string endDate, string filter, string reservationId, string reservationOrderId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string resourceScope, string startDate, string endDate, string filter, string reservationId, string reservationOrderId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/RestOperations/ReservationsSummariesRestOperations.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/RestOperations/ReservationsSummariesRestOperations.cs index 06e0730f8f68..78ed2b8d9e8a 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/RestOperations/ReservationsSummariesRestOperations.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/RestOperations/ReservationsSummariesRestOperations.cs @@ -37,6 +37,22 @@ public ReservationsSummariesRestOperations(HttpPipeline pipeline, string applica _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByReservationOrderRequestUri(string reservationOrderId, ReservationSummaryDataGrain grain, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Capacity/reservationorders/", false); + uri.AppendPath(reservationOrderId, true); + uri.AppendPath("/providers/Microsoft.Consumption/reservationSummaries", false); + uri.AppendQuery("grain", grain.ToString(), true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByReservationOrderRequest(string reservationOrderId, ReservationSummaryDataGrain grain, string filter) { var message = _pipeline.CreateMessage(); @@ -113,6 +129,24 @@ public Response ListByReservationOrder(string re } } + internal RequestUriBuilder CreateListByReservationOrderAndReservationRequestUri(string reservationOrderId, string reservationId, ReservationSummaryDataGrain grain, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Capacity/reservationorders/", false); + uri.AppendPath(reservationOrderId, true); + uri.AppendPath("/reservations/", false); + uri.AppendPath(reservationId, true); + uri.AppendPath("/providers/Microsoft.Consumption/reservationSummaries", false); + uri.AppendQuery("grain", grain.ToString(), true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByReservationOrderAndReservationRequest(string reservationOrderId, string reservationId, ReservationSummaryDataGrain grain, string filter) { var message = _pipeline.CreateMessage(); @@ -195,6 +229,38 @@ public Response ListByReservationOrderAndReserva } } + internal RequestUriBuilder CreateListRequestUri(string resourceScope, ReservationSummaryDataGrain grain, string startDate, string endDate, string filter, string reservationId, string reservationOrderId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceScope, false); + uri.AppendPath("/providers/Microsoft.Consumption/reservationSummaries", false); + uri.AppendQuery("grain", grain.ToString(), true); + if (startDate != null) + { + uri.AppendQuery("startDate", startDate, true); + } + if (endDate != null) + { + uri.AppendQuery("endDate", endDate, true); + } + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (reservationId != null) + { + uri.AppendQuery("reservationId", reservationId, true); + } + if (reservationOrderId != null) + { + uri.AppendQuery("reservationOrderId", reservationOrderId, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string resourceScope, ReservationSummaryDataGrain grain, string startDate, string endDate, string filter, string reservationId, string reservationOrderId) { var message = _pipeline.CreateMessage(); @@ -293,6 +359,14 @@ public Response List(string resourceScope, Reser } } + internal RequestUriBuilder CreateListByReservationOrderNextPageRequestUri(string nextLink, string reservationOrderId, ReservationSummaryDataGrain grain, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByReservationOrderNextPageRequest(string nextLink, string reservationOrderId, ReservationSummaryDataGrain grain, string filter) { var message = _pipeline.CreateMessage(); @@ -365,6 +439,14 @@ public Response ListByReservationOrderNextPage(s } } + internal RequestUriBuilder CreateListByReservationOrderAndReservationNextPageRequestUri(string nextLink, string reservationOrderId, string reservationId, ReservationSummaryDataGrain grain, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByReservationOrderAndReservationNextPageRequest(string nextLink, string reservationOrderId, string reservationId, ReservationSummaryDataGrain grain, string filter) { var message = _pipeline.CreateMessage(); @@ -441,6 +523,14 @@ public Response ListByReservationOrderAndReserva } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string resourceScope, ReservationSummaryDataGrain grain, string startDate, string endDate, string filter, string reservationId, string reservationOrderId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string resourceScope, ReservationSummaryDataGrain grain, string startDate, string endDate, string filter, string reservationId, string reservationOrderId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/RestOperations/TagsRestOperations.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/RestOperations/TagsRestOperations.cs index ce2bfdf51f11..fb706de44e9d 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/RestOperations/TagsRestOperations.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/RestOperations/TagsRestOperations.cs @@ -37,6 +37,17 @@ public TagsRestOperations(HttpPipeline pipeline, string applicationId, Uri endpo _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string scope) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.Consumption/tags", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string scope) { var message = _pipeline.CreateMessage(); diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/RestOperations/UsageDetailsRestOperations.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/RestOperations/UsageDetailsRestOperations.cs index c961b0dba426..7535fe13c51f 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/RestOperations/UsageDetailsRestOperations.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/RestOperations/UsageDetailsRestOperations.cs @@ -37,6 +37,37 @@ public UsageDetailsRestOperations(HttpPipeline pipeline, string applicationId, U _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string scope, string expand, string filter, string skipToken, int? top, ConsumptionMetricType? metric) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.Consumption/usageDetails", false); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (skipToken != null) + { + uri.AppendQuery("$skiptoken", skipToken, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + if (metric != null) + { + uri.AppendQuery("metric", metric.Value.ToString(), true); + } + return uri; + } + internal HttpMessage CreateListRequest(string scope, string expand, string filter, string skipToken, int? top, ConsumptionMetricType? metric) { var message = _pipeline.CreateMessage(); @@ -136,6 +167,14 @@ public Response List(string scope, string expand = null, } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string scope, string expand, string filter, string skipToken, int? top, ConsumptionMetricType? metric) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string scope, string expand, string filter, string skipToken, int? top, ConsumptionMetricType? metric) { var message = _pipeline.CreateMessage(); diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/ContainerAppAuthConfigCollection.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/ContainerAppAuthConfigCollection.cs index bd7874888d30..489c7f2b4cf7 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/ContainerAppAuthConfigCollection.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/ContainerAppAuthConfigCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> CreateOr try { var response = await _containerAppAuthConfigContainerAppsAuthConfigsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, authConfigName, data, cancellationToken).ConfigureAwait(false); - var operation = new AppContainersArmOperation(Response.FromValue(new ContainerAppAuthConfigResource(Client, response), response.GetRawResponse())); + var uri = _containerAppAuthConfigContainerAppsAuthConfigsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, authConfigName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppContainersArmOperation(Response.FromValue(new ContainerAppAuthConfigResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(WaitU try { var response = _containerAppAuthConfigContainerAppsAuthConfigsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, authConfigName, data, cancellationToken); - var operation = new AppContainersArmOperation(Response.FromValue(new ContainerAppAuthConfigResource(Client, response), response.GetRawResponse())); + var uri = _containerAppAuthConfigContainerAppsAuthConfigsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, authConfigName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppContainersArmOperation(Response.FromValue(new ContainerAppAuthConfigResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/ContainerAppAuthConfigResource.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/ContainerAppAuthConfigResource.cs index 57d9d2e8b0c5..eb2c92917923 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/ContainerAppAuthConfigResource.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/ContainerAppAuthConfigResource.cs @@ -200,7 +200,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _containerAppAuthConfigContainerAppsAuthConfigsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new AppContainersArmOperation(response); + var uri = _containerAppAuthConfigContainerAppsAuthConfigsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppContainersArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -242,7 +244,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _containerAppAuthConfigContainerAppsAuthConfigsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new AppContainersArmOperation(response); + var uri = _containerAppAuthConfigContainerAppsAuthConfigsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppContainersArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -288,7 +292,9 @@ public virtual async Task> UpdateAs try { var response = await _containerAppAuthConfigContainerAppsAuthConfigsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new AppContainersArmOperation(Response.FromValue(new ContainerAppAuthConfigResource(Client, response), response.GetRawResponse())); + var uri = _containerAppAuthConfigContainerAppsAuthConfigsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppContainersArmOperation(Response.FromValue(new ContainerAppAuthConfigResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -334,7 +340,9 @@ public virtual ArmOperation Update(WaitUntil wai try { var response = _containerAppAuthConfigContainerAppsAuthConfigsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new AppContainersArmOperation(Response.FromValue(new ContainerAppAuthConfigResource(Client, response), response.GetRawResponse())); + var uri = _containerAppAuthConfigContainerAppsAuthConfigsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppContainersArmOperation(Response.FromValue(new ContainerAppAuthConfigResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/ContainerAppConnectedEnvironmentCertificateCollection.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/ContainerAppConnectedEnvironmentCertificateCollection.cs index 0ed0a87ddb12..beebd795b5eb 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/ContainerAppConnectedEnvironmentCertificateCollection.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/ContainerAppConnectedEnvironmentCertificateCollection.cs @@ -90,7 +90,9 @@ public virtual async Task(Response.FromValue(new ContainerAppConnectedEnvironmentCertificateResource(Client, response), response.GetRawResponse())); + var uri = _containerAppConnectedEnvironmentCertificateConnectedEnvironmentsCertificatesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, certificateName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppContainersArmOperation(Response.FromValue(new ContainerAppConnectedEnvironmentCertificateResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation try { var response = _containerAppConnectedEnvironmentCertificateConnectedEnvironmentsCertificatesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, certificateName, data, cancellationToken); - var operation = new AppContainersArmOperation(Response.FromValue(new ContainerAppConnectedEnvironmentCertificateResource(Client, response), response.GetRawResponse())); + var uri = _containerAppConnectedEnvironmentCertificateConnectedEnvironmentsCertificatesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, certificateName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppContainersArmOperation(Response.FromValue(new ContainerAppConnectedEnvironmentCertificateResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/ContainerAppConnectedEnvironmentCertificateResource.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/ContainerAppConnectedEnvironmentCertificateResource.cs index e11490fea466..ecaa6e7376ed 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/ContainerAppConnectedEnvironmentCertificateResource.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/ContainerAppConnectedEnvironmentCertificateResource.cs @@ -202,7 +202,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _containerAppConnectedEnvironmentCertificateConnectedEnvironmentsCertificatesRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new AppContainersArmOperation(response); + var uri = _containerAppConnectedEnvironmentCertificateConnectedEnvironmentsCertificatesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppContainersArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -244,7 +246,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _containerAppConnectedEnvironmentCertificateConnectedEnvironmentsCertificatesRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new AppContainersArmOperation(response); + var uri = _containerAppConnectedEnvironmentCertificateConnectedEnvironmentsCertificatesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppContainersArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/ContainerAppConnectedEnvironmentDaprComponentCollection.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/ContainerAppConnectedEnvironmentDaprComponentCollection.cs index 9a45999992e5..fe106e9d36a6 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/ContainerAppConnectedEnvironmentDaprComponentCollection.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/ContainerAppConnectedEnvironmentDaprComponentCollection.cs @@ -90,7 +90,9 @@ public virtual async Task(Response.FromValue(new ContainerAppConnectedEnvironmentDaprComponentResource(Client, response), response.GetRawResponse())); + var uri = _containerAppConnectedEnvironmentDaprComponentConnectedEnvironmentsDaprComponentsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, componentName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppContainersArmOperation(Response.FromValue(new ContainerAppConnectedEnvironmentDaprComponentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation(Response.FromValue(new ContainerAppConnectedEnvironmentDaprComponentResource(Client, response), response.GetRawResponse())); + var uri = _containerAppConnectedEnvironmentDaprComponentConnectedEnvironmentsDaprComponentsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, componentName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppContainersArmOperation(Response.FromValue(new ContainerAppConnectedEnvironmentDaprComponentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/ContainerAppConnectedEnvironmentDaprComponentResource.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/ContainerAppConnectedEnvironmentDaprComponentResource.cs index 0746e06f9c9f..6179a51cc2a0 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/ContainerAppConnectedEnvironmentDaprComponentResource.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/ContainerAppConnectedEnvironmentDaprComponentResource.cs @@ -202,7 +202,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _containerAppConnectedEnvironmentDaprComponentConnectedEnvironmentsDaprComponentsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new AppContainersArmOperation(response); + var uri = _containerAppConnectedEnvironmentDaprComponentConnectedEnvironmentsDaprComponentsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppContainersArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -244,7 +246,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _containerAppConnectedEnvironmentDaprComponentConnectedEnvironmentsDaprComponentsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new AppContainersArmOperation(response); + var uri = _containerAppConnectedEnvironmentDaprComponentConnectedEnvironmentsDaprComponentsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppContainersArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -290,7 +294,9 @@ public virtual async Task(Response.FromValue(new ContainerAppConnectedEnvironmentDaprComponentResource(Client, response), response.GetRawResponse())); + var uri = _containerAppConnectedEnvironmentDaprComponentConnectedEnvironmentsDaprComponentsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppContainersArmOperation(Response.FromValue(new ContainerAppConnectedEnvironmentDaprComponentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -336,7 +342,9 @@ public virtual ArmOperation(Response.FromValue(new ContainerAppConnectedEnvironmentDaprComponentResource(Client, response), response.GetRawResponse())); + var uri = _containerAppConnectedEnvironmentDaprComponentConnectedEnvironmentsDaprComponentsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppContainersArmOperation(Response.FromValue(new ContainerAppConnectedEnvironmentDaprComponentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/ContainerAppConnectedEnvironmentStorageCollection.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/ContainerAppConnectedEnvironmentStorageCollection.cs index efb6f26e25f8..4d8d1e4416c5 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/ContainerAppConnectedEnvironmentStorageCollection.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/ContainerAppConnectedEnvironmentStorageCollection.cs @@ -90,7 +90,9 @@ public virtual async Task(Response.FromValue(new ContainerAppConnectedEnvironmentStorageResource(Client, response), response.GetRawResponse())); + var uri = _containerAppConnectedEnvironmentStorageConnectedEnvironmentsStoragesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, storageName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppContainersArmOperation(Response.FromValue(new ContainerAppConnectedEnvironmentStorageResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation Cre try { var response = _containerAppConnectedEnvironmentStorageConnectedEnvironmentsStoragesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, storageName, data, cancellationToken); - var operation = new AppContainersArmOperation(Response.FromValue(new ContainerAppConnectedEnvironmentStorageResource(Client, response), response.GetRawResponse())); + var uri = _containerAppConnectedEnvironmentStorageConnectedEnvironmentsStoragesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, storageName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppContainersArmOperation(Response.FromValue(new ContainerAppConnectedEnvironmentStorageResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/ContainerAppConnectedEnvironmentStorageResource.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/ContainerAppConnectedEnvironmentStorageResource.cs index 45fec3a99e27..b3da5a312b9c 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/ContainerAppConnectedEnvironmentStorageResource.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/ContainerAppConnectedEnvironmentStorageResource.cs @@ -200,7 +200,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _containerAppConnectedEnvironmentStorageConnectedEnvironmentsStoragesRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new AppContainersArmOperation(response); + var uri = _containerAppConnectedEnvironmentStorageConnectedEnvironmentsStoragesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppContainersArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -242,7 +244,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _containerAppConnectedEnvironmentStorageConnectedEnvironmentsStoragesRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new AppContainersArmOperation(response); + var uri = _containerAppConnectedEnvironmentStorageConnectedEnvironmentsStoragesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppContainersArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -288,7 +292,9 @@ public virtual async Task(Response.FromValue(new ContainerAppConnectedEnvironmentStorageResource(Client, response), response.GetRawResponse())); + var uri = _containerAppConnectedEnvironmentStorageConnectedEnvironmentsStoragesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppContainersArmOperation(Response.FromValue(new ContainerAppConnectedEnvironmentStorageResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -334,7 +340,9 @@ public virtual ArmOperation Upd try { var response = _containerAppConnectedEnvironmentStorageConnectedEnvironmentsStoragesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new AppContainersArmOperation(Response.FromValue(new ContainerAppConnectedEnvironmentStorageResource(Client, response), response.GetRawResponse())); + var uri = _containerAppConnectedEnvironmentStorageConnectedEnvironmentsStoragesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppContainersArmOperation(Response.FromValue(new ContainerAppConnectedEnvironmentStorageResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/ContainerAppManagedCertificateResource.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/ContainerAppManagedCertificateResource.cs index e30b41a653db..087cceb85b69 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/ContainerAppManagedCertificateResource.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/ContainerAppManagedCertificateResource.cs @@ -202,7 +202,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _containerAppManagedCertificateManagedCertificatesRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new AppContainersArmOperation(response); + var uri = _containerAppManagedCertificateManagedCertificatesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppContainersArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -244,7 +246,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _containerAppManagedCertificateManagedCertificatesRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new AppContainersArmOperation(response); + var uri = _containerAppManagedCertificateManagedCertificatesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppContainersArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/ContainerAppManagedEnvironmentCertificateCollection.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/ContainerAppManagedEnvironmentCertificateCollection.cs index fddb62aacbbf..8b570b8c4f2e 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/ContainerAppManagedEnvironmentCertificateCollection.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/ContainerAppManagedEnvironmentCertificateCollection.cs @@ -90,7 +90,9 @@ public virtual async Task(Response.FromValue(new ContainerAppManagedEnvironmentCertificateResource(Client, response), response.GetRawResponse())); + var uri = _containerAppManagedEnvironmentCertificateCertificatesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, certificateName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppContainersArmOperation(Response.FromValue(new ContainerAppManagedEnvironmentCertificateResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation C try { var response = _containerAppManagedEnvironmentCertificateCertificatesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, certificateName, data, cancellationToken); - var operation = new AppContainersArmOperation(Response.FromValue(new ContainerAppManagedEnvironmentCertificateResource(Client, response), response.GetRawResponse())); + var uri = _containerAppManagedEnvironmentCertificateCertificatesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, certificateName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppContainersArmOperation(Response.FromValue(new ContainerAppManagedEnvironmentCertificateResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/ContainerAppManagedEnvironmentCertificateResource.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/ContainerAppManagedEnvironmentCertificateResource.cs index 7c4d0016baf4..71aaa2af6e70 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/ContainerAppManagedEnvironmentCertificateResource.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/ContainerAppManagedEnvironmentCertificateResource.cs @@ -202,7 +202,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _containerAppManagedEnvironmentCertificateCertificatesRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new AppContainersArmOperation(response); + var uri = _containerAppManagedEnvironmentCertificateCertificatesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppContainersArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -244,7 +246,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _containerAppManagedEnvironmentCertificateCertificatesRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new AppContainersArmOperation(response); + var uri = _containerAppManagedEnvironmentCertificateCertificatesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppContainersArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/ContainerAppManagedEnvironmentDaprComponentCollection.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/ContainerAppManagedEnvironmentDaprComponentCollection.cs index fe28413ab9c8..ef3ba36e7952 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/ContainerAppManagedEnvironmentDaprComponentCollection.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/ContainerAppManagedEnvironmentDaprComponentCollection.cs @@ -90,7 +90,9 @@ public virtual async Task(Response.FromValue(new ContainerAppManagedEnvironmentDaprComponentResource(Client, response), response.GetRawResponse())); + var uri = _containerAppManagedEnvironmentDaprComponentDaprComponentsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, componentName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppContainersArmOperation(Response.FromValue(new ContainerAppManagedEnvironmentDaprComponentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation try { var response = _containerAppManagedEnvironmentDaprComponentDaprComponentsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, componentName, data, cancellationToken); - var operation = new AppContainersArmOperation(Response.FromValue(new ContainerAppManagedEnvironmentDaprComponentResource(Client, response), response.GetRawResponse())); + var uri = _containerAppManagedEnvironmentDaprComponentDaprComponentsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, componentName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppContainersArmOperation(Response.FromValue(new ContainerAppManagedEnvironmentDaprComponentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/ContainerAppManagedEnvironmentDaprComponentResource.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/ContainerAppManagedEnvironmentDaprComponentResource.cs index 5c665c27c21a..01edc030cdcd 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/ContainerAppManagedEnvironmentDaprComponentResource.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/ContainerAppManagedEnvironmentDaprComponentResource.cs @@ -202,7 +202,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _containerAppManagedEnvironmentDaprComponentDaprComponentsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new AppContainersArmOperation(response); + var uri = _containerAppManagedEnvironmentDaprComponentDaprComponentsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppContainersArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -244,7 +246,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _containerAppManagedEnvironmentDaprComponentDaprComponentsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new AppContainersArmOperation(response); + var uri = _containerAppManagedEnvironmentDaprComponentDaprComponentsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppContainersArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -290,7 +294,9 @@ public virtual async Task(Response.FromValue(new ContainerAppManagedEnvironmentDaprComponentResource(Client, response), response.GetRawResponse())); + var uri = _containerAppManagedEnvironmentDaprComponentDaprComponentsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppContainersArmOperation(Response.FromValue(new ContainerAppManagedEnvironmentDaprComponentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -336,7 +342,9 @@ public virtual ArmOperation try { var response = _containerAppManagedEnvironmentDaprComponentDaprComponentsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new AppContainersArmOperation(Response.FromValue(new ContainerAppManagedEnvironmentDaprComponentResource(Client, response), response.GetRawResponse())); + var uri = _containerAppManagedEnvironmentDaprComponentDaprComponentsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppContainersArmOperation(Response.FromValue(new ContainerAppManagedEnvironmentDaprComponentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/ContainerAppManagedEnvironmentStorageCollection.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/ContainerAppManagedEnvironmentStorageCollection.cs index 2bfd41ef1488..8580776dfbd1 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/ContainerAppManagedEnvironmentStorageCollection.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/ContainerAppManagedEnvironmentStorageCollection.cs @@ -90,7 +90,9 @@ public virtual async Task(Response.FromValue(new ContainerAppManagedEnvironmentStorageResource(Client, response), response.GetRawResponse())); + var uri = _containerAppManagedEnvironmentStorageManagedEnvironmentsStoragesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, storageName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppContainersArmOperation(Response.FromValue(new ContainerAppManagedEnvironmentStorageResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation Creat try { var response = _containerAppManagedEnvironmentStorageManagedEnvironmentsStoragesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, storageName, data, cancellationToken); - var operation = new AppContainersArmOperation(Response.FromValue(new ContainerAppManagedEnvironmentStorageResource(Client, response), response.GetRawResponse())); + var uri = _containerAppManagedEnvironmentStorageManagedEnvironmentsStoragesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, storageName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppContainersArmOperation(Response.FromValue(new ContainerAppManagedEnvironmentStorageResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/ContainerAppManagedEnvironmentStorageResource.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/ContainerAppManagedEnvironmentStorageResource.cs index 4917768df3e9..f48627c5edc4 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/ContainerAppManagedEnvironmentStorageResource.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/ContainerAppManagedEnvironmentStorageResource.cs @@ -200,7 +200,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _containerAppManagedEnvironmentStorageManagedEnvironmentsStoragesRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new AppContainersArmOperation(response); + var uri = _containerAppManagedEnvironmentStorageManagedEnvironmentsStoragesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppContainersArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -242,7 +244,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _containerAppManagedEnvironmentStorageManagedEnvironmentsStoragesRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new AppContainersArmOperation(response); + var uri = _containerAppManagedEnvironmentStorageManagedEnvironmentsStoragesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppContainersArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -288,7 +292,9 @@ public virtual async Task(Response.FromValue(new ContainerAppManagedEnvironmentStorageResource(Client, response), response.GetRawResponse())); + var uri = _containerAppManagedEnvironmentStorageManagedEnvironmentsStoragesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppContainersArmOperation(Response.FromValue(new ContainerAppManagedEnvironmentStorageResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -334,7 +340,9 @@ public virtual ArmOperation Updat try { var response = _containerAppManagedEnvironmentStorageManagedEnvironmentsStoragesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new AppContainersArmOperation(Response.FromValue(new ContainerAppManagedEnvironmentStorageResource(Client, response), response.GetRawResponse())); + var uri = _containerAppManagedEnvironmentStorageManagedEnvironmentsStoragesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppContainersArmOperation(Response.FromValue(new ContainerAppManagedEnvironmentStorageResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/LongRunningOperation/AppContainersArmOperation.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/LongRunningOperation/AppContainersArmOperation.cs index 2b7201dadcd7..7a81fe9f4077 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/LongRunningOperation/AppContainersArmOperation.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/LongRunningOperation/AppContainersArmOperation.cs @@ -20,21 +20,24 @@ internal class AppContainersArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of AppContainersArmOperation for mocking. protected AppContainersArmOperation() { } - internal AppContainersArmOperation(Response response) + internal AppContainersArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal AppContainersArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "AppContainersArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal AppContainersArmOperation(ClientDiagnostics clientDiagnostics, HttpPipe public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/LongRunningOperation/AppContainersArmOperationOfT.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/LongRunningOperation/AppContainersArmOperationOfT.cs index f485933b262b..ced50417b5b4 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/LongRunningOperation/AppContainersArmOperationOfT.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/LongRunningOperation/AppContainersArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class AppContainersArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of AppContainersArmOperation for mocking. protected AppContainersArmOperation() { } - internal AppContainersArmOperation(Response response) + internal AppContainersArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal AppContainersArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "AppContainersArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal AppContainersArmOperation(IOperationSource source, ClientDiagnostics public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppAuthConfigResource.Serialization.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppAuthConfigResource.Serialization.cs new file mode 100644 index 000000000000..a3331b24a398 --- /dev/null +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppAuthConfigResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppContainers +{ + public partial class ContainerAppAuthConfigResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ContainerAppAuthConfigData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ContainerAppAuthConfigData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppConnectedEnvironmentCertificateResource.Serialization.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppConnectedEnvironmentCertificateResource.Serialization.cs new file mode 100644 index 000000000000..6ac365caeb9e --- /dev/null +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppConnectedEnvironmentCertificateResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppContainers +{ + public partial class ContainerAppConnectedEnvironmentCertificateResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ContainerAppCertificateData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ContainerAppCertificateData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppConnectedEnvironmentDaprComponentResource.Serialization.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppConnectedEnvironmentDaprComponentResource.Serialization.cs new file mode 100644 index 000000000000..5967c6298b41 --- /dev/null +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppConnectedEnvironmentDaprComponentResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppContainers +{ + public partial class ContainerAppConnectedEnvironmentDaprComponentResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ContainerAppDaprComponentData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ContainerAppDaprComponentData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppConnectedEnvironmentResource.Serialization.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppConnectedEnvironmentResource.Serialization.cs new file mode 100644 index 000000000000..027e7584ebde --- /dev/null +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppConnectedEnvironmentResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppContainers +{ + public partial class ContainerAppConnectedEnvironmentResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ContainerAppConnectedEnvironmentData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ContainerAppConnectedEnvironmentData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppConnectedEnvironmentStorageResource.Serialization.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppConnectedEnvironmentStorageResource.Serialization.cs new file mode 100644 index 000000000000..8196fb354df9 --- /dev/null +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppConnectedEnvironmentStorageResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppContainers +{ + public partial class ContainerAppConnectedEnvironmentStorageResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ContainerAppConnectedEnvironmentStorageData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ContainerAppConnectedEnvironmentStorageData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppDetectorPropertyResource.Serialization.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppDetectorPropertyResource.Serialization.cs new file mode 100644 index 000000000000..3144ae6de07f --- /dev/null +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppDetectorPropertyResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppContainers +{ + public partial class ContainerAppDetectorPropertyResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ContainerAppData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ContainerAppData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppDetectorPropertyRevisionResource.Serialization.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppDetectorPropertyRevisionResource.Serialization.cs new file mode 100644 index 000000000000..2635c67a9074 --- /dev/null +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppDetectorPropertyRevisionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppContainers +{ + public partial class ContainerAppDetectorPropertyRevisionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ContainerAppRevisionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ContainerAppRevisionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppDetectorResource.Serialization.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppDetectorResource.Serialization.cs new file mode 100644 index 000000000000..26a26367ac9d --- /dev/null +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppDetectorResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppContainers +{ + public partial class ContainerAppDetectorResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ContainerAppDiagnosticData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ContainerAppDiagnosticData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppJobExecutionResource.Serialization.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppJobExecutionResource.Serialization.cs new file mode 100644 index 000000000000..9f423cc8af3a --- /dev/null +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppJobExecutionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppContainers +{ + public partial class ContainerAppJobExecutionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ContainerAppJobExecutionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ContainerAppJobExecutionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppJobResource.Serialization.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppJobResource.Serialization.cs new file mode 100644 index 000000000000..5bda7391a9dd --- /dev/null +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppJobResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppContainers +{ + public partial class ContainerAppJobResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ContainerAppJobData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ContainerAppJobData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppManagedCertificateResource.Serialization.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppManagedCertificateResource.Serialization.cs new file mode 100644 index 000000000000..6f47c8a38994 --- /dev/null +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppManagedCertificateResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppContainers +{ + public partial class ContainerAppManagedCertificateResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ContainerAppManagedCertificateData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ContainerAppManagedCertificateData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppManagedEnvironmentCertificateResource.Serialization.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppManagedEnvironmentCertificateResource.Serialization.cs new file mode 100644 index 000000000000..0eb78834eb8a --- /dev/null +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppManagedEnvironmentCertificateResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppContainers +{ + public partial class ContainerAppManagedEnvironmentCertificateResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ContainerAppCertificateData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ContainerAppCertificateData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppManagedEnvironmentDaprComponentResource.Serialization.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppManagedEnvironmentDaprComponentResource.Serialization.cs new file mode 100644 index 000000000000..394cf7ea996f --- /dev/null +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppManagedEnvironmentDaprComponentResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppContainers +{ + public partial class ContainerAppManagedEnvironmentDaprComponentResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ContainerAppDaprComponentData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ContainerAppDaprComponentData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppManagedEnvironmentDetectorResource.Serialization.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppManagedEnvironmentDetectorResource.Serialization.cs new file mode 100644 index 000000000000..7eed92ba7e56 --- /dev/null +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppManagedEnvironmentDetectorResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppContainers +{ + public partial class ContainerAppManagedEnvironmentDetectorResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ContainerAppDiagnosticData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ContainerAppDiagnosticData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppManagedEnvironmentDetectorResourcePropertyResource.Serialization.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppManagedEnvironmentDetectorResourcePropertyResource.Serialization.cs new file mode 100644 index 000000000000..47bff3447ba0 --- /dev/null +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppManagedEnvironmentDetectorResourcePropertyResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppContainers +{ + public partial class ContainerAppManagedEnvironmentDetectorResourcePropertyResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ContainerAppManagedEnvironmentData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ContainerAppManagedEnvironmentData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppManagedEnvironmentResource.Serialization.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppManagedEnvironmentResource.Serialization.cs new file mode 100644 index 000000000000..0e36568b4654 --- /dev/null +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppManagedEnvironmentResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppContainers +{ + public partial class ContainerAppManagedEnvironmentResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ContainerAppManagedEnvironmentData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ContainerAppManagedEnvironmentData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppManagedEnvironmentStorageResource.Serialization.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppManagedEnvironmentStorageResource.Serialization.cs new file mode 100644 index 000000000000..57d72adead44 --- /dev/null +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppManagedEnvironmentStorageResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppContainers +{ + public partial class ContainerAppManagedEnvironmentStorageResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ContainerAppManagedEnvironmentStorageData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ContainerAppManagedEnvironmentStorageData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppReplicaResource.Serialization.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppReplicaResource.Serialization.cs new file mode 100644 index 000000000000..3d6c3a721536 --- /dev/null +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppReplicaResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppContainers +{ + public partial class ContainerAppReplicaResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ContainerAppReplicaData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ContainerAppReplicaData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppResource.Serialization.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppResource.Serialization.cs new file mode 100644 index 000000000000..2326179aff0f --- /dev/null +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppContainers +{ + public partial class ContainerAppResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ContainerAppData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ContainerAppData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppRevisionResource.Serialization.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppRevisionResource.Serialization.cs new file mode 100644 index 000000000000..cb695f5fb73c --- /dev/null +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppRevisionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppContainers +{ + public partial class ContainerAppRevisionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ContainerAppRevisionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ContainerAppRevisionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppSourceControlResource.Serialization.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppSourceControlResource.Serialization.cs new file mode 100644 index 000000000000..36f1c16a7e2f --- /dev/null +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppSourceControlResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppContainers +{ + public partial class ContainerAppSourceControlResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ContainerAppSourceControlData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ContainerAppSourceControlData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/AvailableWorkloadProfilesRestOperations.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/AvailableWorkloadProfilesRestOperations.cs index c767f4eabd24..c63b7a0160f5 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/AvailableWorkloadProfilesRestOperations.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/AvailableWorkloadProfilesRestOperations.cs @@ -37,6 +37,19 @@ public AvailableWorkloadProfilesRestOperations(HttpPipeline pipeline, string app _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, AzureLocation location) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.App/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/availableManagedEnvironmentsWorkloadProfileTypes", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, AzureLocation location) { var message = _pipeline.CreateMessage(); @@ -108,6 +121,14 @@ public Response Get(string subscriptionId, } } + internal RequestUriBuilder CreateGetNextPageRequestUri(string nextLink, string subscriptionId, AzureLocation location) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateGetNextPageRequest(string nextLink, string subscriptionId, AzureLocation location) { var message = _pipeline.CreateMessage(); diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/BillingMetersRestOperations.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/BillingMetersRestOperations.cs index 5a959d1ea51d..125624d717aa 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/BillingMetersRestOperations.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/BillingMetersRestOperations.cs @@ -37,6 +37,19 @@ public BillingMetersRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, AzureLocation location) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.App/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/billingMeters", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, AzureLocation location) { var message = _pipeline.CreateMessage(); diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/CertificatesRestOperations.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/CertificatesRestOperations.cs index e86971ec4a29..aec0796a07a0 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/CertificatesRestOperations.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/CertificatesRestOperations.cs @@ -37,6 +37,21 @@ public CertificatesRestOperations(HttpPipeline pipeline, string applicationId, U _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string environmentName) + { + 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.App/managedEnvironments/", false); + uri.AppendPath(environmentName, true); + uri.AppendPath("/certificates", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string environmentName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response List(string subscriptionId, string resour } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string environmentName, string certificateName) + { + 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.App/managedEnvironments/", false); + uri.AppendPath(environmentName, true); + uri.AppendPath("/certificates/", false); + uri.AppendPath(certificateName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string environmentName, string certificateName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscriptionId, string r } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string environmentName, string certificateName, ContainerAppCertificateData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.App/managedEnvironments/", false); + uri.AppendPath(environmentName, true); + uri.AppendPath("/certificates/", false); + uri.AppendPath(certificateName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string environmentName, string certificateName, ContainerAppCertificateData data) { var message = _pipeline.CreateMessage(); @@ -296,6 +343,22 @@ public Response CreateOrUpdate(string subscriptionI } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string environmentName, string certificateName) + { + 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.App/managedEnvironments/", false); + uri.AppendPath(environmentName, true); + uri.AppendPath("/certificates/", false); + uri.AppendPath(certificateName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string environmentName, string certificateName) { var message = _pipeline.CreateMessage(); @@ -372,6 +435,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string e } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string environmentName, string certificateName, ContainerAppCertificatePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.App/managedEnvironments/", false); + uri.AppendPath(environmentName, true); + uri.AppendPath("/certificates/", false); + uri.AppendPath(certificateName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string environmentName, string certificateName, ContainerAppCertificatePatch patch) { var message = _pipeline.CreateMessage(); @@ -464,6 +543,14 @@ public Response Update(string subscriptionId, strin } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string environmentName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string environmentName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ConnectedEnvironmentsCertificatesRestOperations.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ConnectedEnvironmentsCertificatesRestOperations.cs index 663ae2164d2b..3d27db9bcb7c 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ConnectedEnvironmentsCertificatesRestOperations.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ConnectedEnvironmentsCertificatesRestOperations.cs @@ -37,6 +37,21 @@ public ConnectedEnvironmentsCertificatesRestOperations(HttpPipeline pipeline, st _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string connectedEnvironmentName) + { + 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.App/connectedEnvironments/", false); + uri.AppendPath(connectedEnvironmentName, true); + uri.AppendPath("/certificates", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string connectedEnvironmentName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response List(string subscriptionId, string resour } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string connectedEnvironmentName, string certificateName) + { + 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.App/connectedEnvironments/", false); + uri.AppendPath(connectedEnvironmentName, true); + uri.AppendPath("/certificates/", false); + uri.AppendPath(certificateName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string connectedEnvironmentName, string certificateName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscriptionId, string r } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string connectedEnvironmentName, string certificateName, ContainerAppCertificateData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.App/connectedEnvironments/", false); + uri.AppendPath(connectedEnvironmentName, true); + uri.AppendPath("/certificates/", false); + uri.AppendPath(certificateName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string connectedEnvironmentName, string certificateName, ContainerAppCertificateData data) { var message = _pipeline.CreateMessage(); @@ -296,6 +343,22 @@ public Response CreateOrUpdate(string subscriptionI } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string connectedEnvironmentName, string certificateName) + { + 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.App/connectedEnvironments/", false); + uri.AppendPath(connectedEnvironmentName, true); + uri.AppendPath("/certificates/", false); + uri.AppendPath(certificateName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string connectedEnvironmentName, string certificateName) { var message = _pipeline.CreateMessage(); @@ -372,6 +435,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string connectedEnvironmentName, string certificateName, ContainerAppCertificatePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.App/connectedEnvironments/", false); + uri.AppendPath(connectedEnvironmentName, true); + uri.AppendPath("/certificates/", false); + uri.AppendPath(certificateName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string connectedEnvironmentName, string certificateName, ContainerAppCertificatePatch patch) { var message = _pipeline.CreateMessage(); @@ -464,6 +543,14 @@ public Response Update(string subscriptionId, strin } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string connectedEnvironmentName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string connectedEnvironmentName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ConnectedEnvironmentsDaprComponentsRestOperations.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ConnectedEnvironmentsDaprComponentsRestOperations.cs index 500be90c33bd..c87a1b634698 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ConnectedEnvironmentsDaprComponentsRestOperations.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ConnectedEnvironmentsDaprComponentsRestOperations.cs @@ -37,6 +37,21 @@ public ConnectedEnvironmentsDaprComponentsRestOperations(HttpPipeline pipeline, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string connectedEnvironmentName) + { + 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.App/connectedEnvironments/", false); + uri.AppendPath(connectedEnvironmentName, true); + uri.AppendPath("/daprComponents", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string connectedEnvironmentName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response List(string subscriptionId, string res } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string connectedEnvironmentName, string componentName) + { + 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.App/connectedEnvironments/", false); + uri.AppendPath(connectedEnvironmentName, true); + uri.AppendPath("/daprComponents/", false); + uri.AppendPath(componentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string connectedEnvironmentName, string componentName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscriptionId, string } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string connectedEnvironmentName, string componentName, ContainerAppDaprComponentData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.App/connectedEnvironments/", false); + uri.AppendPath(connectedEnvironmentName, true); + uri.AppendPath("/daprComponents/", false); + uri.AppendPath(componentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string connectedEnvironmentName, string componentName, ContainerAppDaprComponentData data) { var message = _pipeline.CreateMessage(); @@ -296,6 +343,22 @@ public Response CreateOrUpdate(string subscriptio } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string connectedEnvironmentName, string componentName) + { + 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.App/connectedEnvironments/", false); + uri.AppendPath(connectedEnvironmentName, true); + uri.AppendPath("/daprComponents/", false); + uri.AppendPath(componentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string connectedEnvironmentName, string componentName) { var message = _pipeline.CreateMessage(); @@ -372,6 +435,23 @@ public Response Delete(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateListSecretsRequestUri(string subscriptionId, string resourceGroupName, string connectedEnvironmentName, string componentName) + { + 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.App/connectedEnvironments/", false); + uri.AppendPath(connectedEnvironmentName, true); + uri.AppendPath("/daprComponents/", false); + uri.AppendPath(componentName, true); + uri.AppendPath("/listSecrets", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListSecretsRequest(string subscriptionId, string resourceGroupName, string connectedEnvironmentName, string componentName) { var message = _pipeline.CreateMessage(); @@ -457,6 +537,14 @@ public Response ListSecrets(string subscriptionId, string } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string connectedEnvironmentName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string connectedEnvironmentName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ConnectedEnvironmentsRestOperations.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ConnectedEnvironmentsRestOperations.cs index 44986f2136ff..2b1edc47cda5 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ConnectedEnvironmentsRestOperations.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ConnectedEnvironmentsRestOperations.cs @@ -37,6 +37,17 @@ public ConnectedEnvironmentsRestOperations(HttpPipeline pipeline, string applica _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.App/connectedEnvironments", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,19 @@ public Response ListBySubscription(string subscr } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.App/connectedEnvironments", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -177,6 +201,20 @@ public Response ListByResourceGroup(string subsc } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string connectedEnvironmentName) + { + 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.App/connectedEnvironments/", false); + uri.AppendPath(connectedEnvironmentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string connectedEnvironmentName) { var message = _pipeline.CreateMessage(); @@ -259,6 +297,20 @@ public Response Get(string subscriptionId, } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string connectedEnvironmentName, ContainerAppConnectedEnvironmentData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.App/connectedEnvironments/", false); + uri.AppendPath(connectedEnvironmentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string connectedEnvironmentName, ContainerAppConnectedEnvironmentData data) { var message = _pipeline.CreateMessage(); @@ -337,6 +389,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string connectedEnvironmentName) + { + 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.App/connectedEnvironments/", false); + uri.AppendPath(connectedEnvironmentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string connectedEnvironmentName) { var message = _pipeline.CreateMessage(); @@ -409,6 +475,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string connectedEnvironmentName) + { + 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.App/connectedEnvironments/", false); + uri.AppendPath(connectedEnvironmentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string connectedEnvironmentName) { var message = _pipeline.CreateMessage(); @@ -487,6 +567,21 @@ public Response Update(string subscription } } + internal RequestUriBuilder CreateCheckNameAvailabilityRequestUri(string subscriptionId, string resourceGroupName, string connectedEnvironmentName, ContainerAppNameAvailabilityContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.App/connectedEnvironments/", false); + uri.AppendPath(connectedEnvironmentName, true); + uri.AppendPath("/checkNameAvailability", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCheckNameAvailabilityRequest(string subscriptionId, string resourceGroupName, string connectedEnvironmentName, ContainerAppNameAvailabilityContent content) { var message = _pipeline.CreateMessage(); @@ -574,6 +669,14 @@ public Response CheckNameAvailability(string } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -642,6 +745,14 @@ public Response ListBySubscriptionNextPage(strin } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ConnectedEnvironmentsStoragesRestOperations.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ConnectedEnvironmentsStoragesRestOperations.cs index 930a7c8dd99d..ec8a1913e92a 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ConnectedEnvironmentsStoragesRestOperations.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ConnectedEnvironmentsStoragesRestOperations.cs @@ -37,6 +37,21 @@ public ConnectedEnvironmentsStoragesRestOperations(HttpPipeline pipeline, string _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string connectedEnvironmentName) + { + 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.App/connectedEnvironments/", false); + uri.AppendPath(connectedEnvironmentName, true); + uri.AppendPath("/storages", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string connectedEnvironmentName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response List(string subscription } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string connectedEnvironmentName, string storageName) + { + 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.App/connectedEnvironments/", false); + uri.AppendPath(connectedEnvironmentName, true); + uri.AppendPath("/storages/", false); + uri.AppendPath(storageName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string connectedEnvironmentName, string storageName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscrip } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string connectedEnvironmentName, string storageName, ContainerAppConnectedEnvironmentStorageData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.App/connectedEnvironments/", false); + uri.AppendPath(connectedEnvironmentName, true); + uri.AppendPath("/storages/", false); + uri.AppendPath(storageName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string connectedEnvironmentName, string storageName, ContainerAppConnectedEnvironmentStorageData data) { var message = _pipeline.CreateMessage(); @@ -296,6 +343,22 @@ public Response CreateOrUpdate(stri } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string connectedEnvironmentName, string storageName) + { + 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.App/connectedEnvironments/", false); + uri.AppendPath(connectedEnvironmentName, true); + uri.AppendPath("/storages/", false); + uri.AppendPath(storageName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string connectedEnvironmentName, string storageName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ContainerAppsAPIRestOperations.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ContainerAppsAPIRestOperations.cs index 6afc13fd10a6..bc7fb4261ca7 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ContainerAppsAPIRestOperations.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ContainerAppsAPIRestOperations.cs @@ -36,6 +36,22 @@ public ContainerAppsAPIRestOperations(HttpPipeline pipeline, string applicationI _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateJobExecutionRequestUri(string subscriptionId, string resourceGroupName, string jobName, string jobExecutionName) + { + 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.App/jobs/", false); + uri.AppendPath(jobName, true); + uri.AppendPath("/executions/", false); + uri.AppendPath(jobExecutionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateJobExecutionRequest(string subscriptionId, string resourceGroupName, string jobName, string jobExecutionName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ContainerAppsAuthConfigsRestOperations.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ContainerAppsAuthConfigsRestOperations.cs index 82e501d5868d..6f690d33f1c4 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ContainerAppsAuthConfigsRestOperations.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ContainerAppsAuthConfigsRestOperations.cs @@ -37,6 +37,21 @@ public ContainerAppsAuthConfigsRestOperations(HttpPipeline pipeline, string appl _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByContainerAppRequestUri(string subscriptionId, string resourceGroupName, string containerAppName) + { + 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.App/containerApps/", false); + uri.AppendPath(containerAppName, true); + uri.AppendPath("/authConfigs", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByContainerAppRequest(string subscriptionId, string resourceGroupName, string containerAppName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByContainerApp(string subscriptionId, } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string containerAppName, string authConfigName) + { + 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.App/containerApps/", false); + uri.AppendPath(containerAppName, true); + uri.AppendPath("/authConfigs/", false); + uri.AppendPath(authConfigName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string containerAppName, string authConfigName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscriptionId, string re } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string containerAppName, string authConfigName, ContainerAppAuthConfigData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.App/containerApps/", false); + uri.AppendPath(containerAppName, true); + uri.AppendPath("/authConfigs/", false); + uri.AppendPath(authConfigName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string containerAppName, string authConfigName, ContainerAppAuthConfigData data) { var message = _pipeline.CreateMessage(); @@ -296,6 +343,22 @@ public Response CreateOrUpdate(string subscriptionId } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string containerAppName, string authConfigName) + { + 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.App/containerApps/", false); + uri.AppendPath(containerAppName, true); + uri.AppendPath("/authConfigs/", false); + uri.AppendPath(authConfigName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string containerAppName, string authConfigName) { var message = _pipeline.CreateMessage(); @@ -372,6 +435,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateListByContainerAppNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string containerAppName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByContainerAppNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string containerAppName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ContainerAppsDiagnosticsRestOperations.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ContainerAppsDiagnosticsRestOperations.cs index 64a6577306e0..c7ed7a59c4b5 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ContainerAppsDiagnosticsRestOperations.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ContainerAppsDiagnosticsRestOperations.cs @@ -37,6 +37,21 @@ public ContainerAppsDiagnosticsRestOperations(HttpPipeline pipeline, string appl _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListDetectorsRequestUri(string subscriptionId, string resourceGroupName, string containerAppName) + { + 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.App/containerApps/", false); + uri.AppendPath(containerAppName, true); + uri.AppendPath("/detectors", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListDetectorsRequest(string subscriptionId, string resourceGroupName, string containerAppName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListDetectors(string subscriptionId, stri } } + internal RequestUriBuilder CreateGetDetectorRequestUri(string subscriptionId, string resourceGroupName, string containerAppName, string detectorName) + { + 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.App/containerApps/", false); + uri.AppendPath(containerAppName, true); + uri.AppendPath("/detectors/", false); + uri.AppendPath(detectorName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetDetectorRequest(string subscriptionId, string resourceGroupName, string containerAppName, string detectorName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,25 @@ public Response GetDetector(string subscriptionId, s } } + internal RequestUriBuilder CreateListRevisionsRequestUri(string subscriptionId, string resourceGroupName, string containerAppName, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.App/containerApps/", false); + uri.AppendPath(containerAppName, true); + uri.AppendPath("/detectorProperties/revisionsApi/revisions/", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + return uri; + } + internal HttpMessage CreateListRevisionsRequest(string subscriptionId, string resourceGroupName, string containerAppName, string filter) { var message = _pipeline.CreateMessage(); @@ -289,6 +339,22 @@ public Response ListRevisions(string subscriptionId, string } } + internal RequestUriBuilder CreateGetRevisionRequestUri(string subscriptionId, string resourceGroupName, string containerAppName, string revisionName) + { + 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.App/containerApps/", false); + uri.AppendPath(containerAppName, true); + uri.AppendPath("/detectorProperties/revisionsApi/revisions/", false); + uri.AppendPath(revisionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRevisionRequest(string subscriptionId, string resourceGroupName, string containerAppName, string revisionName) { var message = _pipeline.CreateMessage(); @@ -377,6 +443,21 @@ public Response GetRevision(string subscriptionId, str } } + internal RequestUriBuilder CreateGetRootRequestUri(string subscriptionId, string resourceGroupName, string containerAppName) + { + 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.App/containerApps/", false); + uri.AppendPath(containerAppName, true); + uri.AppendPath("/detectorProperties/rootApi/", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRootRequest(string subscriptionId, string resourceGroupName, string containerAppName) { var message = _pipeline.CreateMessage(); @@ -460,6 +541,14 @@ public Response GetRoot(string subscriptionId, string resource } } + internal RequestUriBuilder CreateListDetectorsNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string containerAppName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListDetectorsNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string containerAppName) { var message = _pipeline.CreateMessage(); @@ -536,6 +625,14 @@ public Response ListDetectorsNextPage(string nextLink, st } } + internal RequestUriBuilder CreateListRevisionsNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string containerAppName, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListRevisionsNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string containerAppName, string filter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ContainerAppsRestOperations.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ContainerAppsRestOperations.cs index 89b0b5b8abeb..cda7907889a1 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ContainerAppsRestOperations.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ContainerAppsRestOperations.cs @@ -37,6 +37,17 @@ public ContainerAppsRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.App/containerApps", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,19 @@ internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.App/containerApps", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -177,6 +201,20 @@ internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, str } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string containerAppName) + { + 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.App/containerApps/", false); + uri.AppendPath(containerAppName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string containerAppName) { var message = _pipeline.CreateMessage(); @@ -259,6 +297,20 @@ public Response Get(string subscriptionId, string resourceGrou } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string containerAppName, ContainerAppData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.App/containerApps/", false); + uri.AppendPath(containerAppName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string containerAppName, ContainerAppData data) { var message = _pipeline.CreateMessage(); @@ -337,6 +389,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string containerAppName) + { + 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.App/containerApps/", false); + uri.AppendPath(containerAppName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string containerAppName) { var message = _pipeline.CreateMessage(); @@ -409,6 +475,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string containerAppName, ContainerAppData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.App/containerApps/", false); + uri.AppendPath(containerAppName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string containerAppName, ContainerAppData data) { var message = _pipeline.CreateMessage(); @@ -487,6 +567,25 @@ public Response Update(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateListCustomHostNameAnalysisRequestUri(string subscriptionId, string resourceGroupName, string containerAppName, string customHostname) + { + 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.App/containerApps/", false); + uri.AppendPath(containerAppName, true); + uri.AppendPath("/listCustomHostNameAnalysis", false); + if (customHostname != null) + { + uri.AppendQuery("customHostname", customHostname, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListCustomHostNameAnalysisRequest(string subscriptionId, string resourceGroupName, string containerAppName, string customHostname) { var message = _pipeline.CreateMessage(); @@ -572,6 +671,21 @@ public Response ListCustomHostNameAnal } } + internal RequestUriBuilder CreateListSecretsRequestUri(string subscriptionId, string resourceGroupName, string containerAppName) + { + 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.App/containerApps/", false); + uri.AppendPath(containerAppName, true); + uri.AppendPath("/listSecrets", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListSecretsRequest(string subscriptionId, string resourceGroupName, string containerAppName) { var message = _pipeline.CreateMessage(); @@ -651,6 +765,21 @@ public Response ListSecrets(string subscriptionId, string res } } + internal RequestUriBuilder CreateGetAuthTokenRequestUri(string subscriptionId, string resourceGroupName, string containerAppName) + { + 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.App/containerApps/", false); + uri.AppendPath(containerAppName, true); + uri.AppendPath("/getAuthtoken", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetAuthTokenRequest(string subscriptionId, string resourceGroupName, string containerAppName) { var message = _pipeline.CreateMessage(); @@ -730,6 +859,21 @@ public Response GetAuthToken(string subscriptionId, strin } } + internal RequestUriBuilder CreateStartRequestUri(string subscriptionId, string resourceGroupName, string containerAppName) + { + 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.App/containerApps/", false); + uri.AppendPath(containerAppName, true); + uri.AppendPath("/start", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStartRequest(string subscriptionId, string resourceGroupName, string containerAppName) { var message = _pipeline.CreateMessage(); @@ -801,6 +945,21 @@ public Response Start(string subscriptionId, string resourceGroupName, string co } } + internal RequestUriBuilder CreateStopRequestUri(string subscriptionId, string resourceGroupName, string containerAppName) + { + 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.App/containerApps/", false); + uri.AppendPath(containerAppName, true); + uri.AppendPath("/stop", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStopRequest(string subscriptionId, string resourceGroupName, string containerAppName) { var message = _pipeline.CreateMessage(); @@ -872,6 +1031,14 @@ public Response Stop(string subscriptionId, string resourceGroupName, string con } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -940,6 +1107,14 @@ internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, st } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ContainerAppsRevisionReplicasRestOperations.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ContainerAppsRevisionReplicasRestOperations.cs index 74f1567616ad..609a3fce58cd 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ContainerAppsRevisionReplicasRestOperations.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ContainerAppsRevisionReplicasRestOperations.cs @@ -37,6 +37,24 @@ public ContainerAppsRevisionReplicasRestOperations(HttpPipeline pipeline, string _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetReplicaRequestUri(string subscriptionId, string resourceGroupName, string containerAppName, string revisionName, string replicaName) + { + 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.App/containerApps/", false); + uri.AppendPath(containerAppName, true); + uri.AppendPath("/revisions/", false); + uri.AppendPath(revisionName, true); + uri.AppendPath("/replicas/", false); + uri.AppendPath(replicaName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetReplicaRequest(string subscriptionId, string resourceGroupName, string containerAppName, string revisionName, string replicaName) { var message = _pipeline.CreateMessage(); @@ -131,6 +149,23 @@ public Response GetReplica(string subscriptionId, strin } } + internal RequestUriBuilder CreateListReplicasRequestUri(string subscriptionId, string resourceGroupName, string containerAppName, string revisionName) + { + 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.App/containerApps/", false); + uri.AppendPath(containerAppName, true); + uri.AppendPath("/revisions/", false); + uri.AppendPath(revisionName, true); + uri.AppendPath("/replicas", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListReplicasRequest(string subscriptionId, string resourceGroupName, string containerAppName, string revisionName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ContainerAppsRevisionsRestOperations.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ContainerAppsRevisionsRestOperations.cs index 86b679184e5c..87cb24e5c045 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ContainerAppsRevisionsRestOperations.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ContainerAppsRevisionsRestOperations.cs @@ -37,6 +37,25 @@ public ContainerAppsRevisionsRestOperations(HttpPipeline pipeline, string applic _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRevisionsRequestUri(string subscriptionId, string resourceGroupName, string containerAppName, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.App/containerApps/", false); + uri.AppendPath(containerAppName, true); + uri.AppendPath("/revisions", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + return uri; + } + internal HttpMessage CreateListRevisionsRequest(string subscriptionId, string resourceGroupName, string containerAppName, string filter) { var message = _pipeline.CreateMessage(); @@ -122,6 +141,22 @@ public Response ListRevisions(string subscriptionId, string } } + internal RequestUriBuilder CreateGetRevisionRequestUri(string subscriptionId, string resourceGroupName, string containerAppName, string revisionName) + { + 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.App/containerApps/", false); + uri.AppendPath(containerAppName, true); + uri.AppendPath("/revisions/", false); + uri.AppendPath(revisionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRevisionRequest(string subscriptionId, string resourceGroupName, string containerAppName, string revisionName) { var message = _pipeline.CreateMessage(); @@ -210,6 +245,23 @@ public Response GetRevision(string subscriptionId, str } } + internal RequestUriBuilder CreateActivateRevisionRequestUri(string subscriptionId, string resourceGroupName, string containerAppName, string revisionName) + { + 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.App/containerApps/", false); + uri.AppendPath(containerAppName, true); + uri.AppendPath("/revisions/", false); + uri.AppendPath(revisionName, true); + uri.AppendPath("/activate", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateActivateRevisionRequest(string subscriptionId, string resourceGroupName, string containerAppName, string revisionName) { var message = _pipeline.CreateMessage(); @@ -285,6 +337,23 @@ public Response ActivateRevision(string subscriptionId, string resourceGroupName } } + internal RequestUriBuilder CreateDeactivateRevisionRequestUri(string subscriptionId, string resourceGroupName, string containerAppName, string revisionName) + { + 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.App/containerApps/", false); + uri.AppendPath(containerAppName, true); + uri.AppendPath("/revisions/", false); + uri.AppendPath(revisionName, true); + uri.AppendPath("/deactivate", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeactivateRevisionRequest(string subscriptionId, string resourceGroupName, string containerAppName, string revisionName) { var message = _pipeline.CreateMessage(); @@ -360,6 +429,23 @@ public Response DeactivateRevision(string subscriptionId, string resourceGroupNa } } + internal RequestUriBuilder CreateRestartRevisionRequestUri(string subscriptionId, string resourceGroupName, string containerAppName, string revisionName) + { + 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.App/containerApps/", false); + uri.AppendPath(containerAppName, true); + uri.AppendPath("/revisions/", false); + uri.AppendPath(revisionName, true); + uri.AppendPath("/restart", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRestartRevisionRequest(string subscriptionId, string resourceGroupName, string containerAppName, string revisionName) { var message = _pipeline.CreateMessage(); @@ -435,6 +521,14 @@ public Response RestartRevision(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateListRevisionsNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string containerAppName, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListRevisionsNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string containerAppName, string filter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ContainerAppsSourceControlsRestOperations.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ContainerAppsSourceControlsRestOperations.cs index d908cf817ede..2dae05881813 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ContainerAppsSourceControlsRestOperations.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ContainerAppsSourceControlsRestOperations.cs @@ -37,6 +37,21 @@ public ContainerAppsSourceControlsRestOperations(HttpPipeline pipeline, string a _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByContainerAppRequestUri(string subscriptionId, string resourceGroupName, string containerAppName) + { + 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.App/containerApps/", false); + uri.AppendPath(containerAppName, true); + uri.AppendPath("/sourcecontrols", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByContainerAppRequest(string subscriptionId, string resourceGroupName, string containerAppName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByContainerApp(string subscriptionI } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string containerAppName, string sourceControlName) + { + 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.App/containerApps/", false); + uri.AppendPath(containerAppName, true); + uri.AppendPath("/sourcecontrols/", false); + uri.AppendPath(sourceControlName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string containerAppName, string sourceControlName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscriptionId, string } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string containerAppName, string sourceControlName, ContainerAppSourceControlData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.App/containerApps/", false); + uri.AppendPath(containerAppName, true); + uri.AppendPath("/sourcecontrols/", false); + uri.AppendPath(sourceControlName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string containerAppName, string sourceControlName, ContainerAppSourceControlData data) { var message = _pipeline.CreateMessage(); @@ -288,6 +335,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string containerAppName, string sourceControlName) + { + 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.App/containerApps/", false); + uri.AppendPath(containerAppName, true); + uri.AppendPath("/sourcecontrols/", false); + uri.AppendPath(sourceControlName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string containerAppName, string sourceControlName) { var message = _pipeline.CreateMessage(); @@ -366,6 +429,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateListByContainerAppNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string containerAppName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByContainerAppNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string containerAppName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/DaprComponentsRestOperations.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/DaprComponentsRestOperations.cs index 4dc10ca5dafd..2185d247143d 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/DaprComponentsRestOperations.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/DaprComponentsRestOperations.cs @@ -37,6 +37,21 @@ public DaprComponentsRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string environmentName) + { + 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.App/managedEnvironments/", false); + uri.AppendPath(environmentName, true); + uri.AppendPath("/daprComponents", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string environmentName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response List(string subscriptionId, string res } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string environmentName, string componentName) + { + 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.App/managedEnvironments/", false); + uri.AppendPath(environmentName, true); + uri.AppendPath("/daprComponents/", false); + uri.AppendPath(componentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string environmentName, string componentName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscriptionId, string } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string environmentName, string componentName, ContainerAppDaprComponentData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.App/managedEnvironments/", false); + uri.AppendPath(environmentName, true); + uri.AppendPath("/daprComponents/", false); + uri.AppendPath(componentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string environmentName, string componentName, ContainerAppDaprComponentData data) { var message = _pipeline.CreateMessage(); @@ -296,6 +343,22 @@ public Response CreateOrUpdate(string subscriptio } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string environmentName, string componentName) + { + 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.App/managedEnvironments/", false); + uri.AppendPath(environmentName, true); + uri.AppendPath("/daprComponents/", false); + uri.AppendPath(componentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string environmentName, string componentName) { var message = _pipeline.CreateMessage(); @@ -372,6 +435,23 @@ public Response Delete(string subscriptionId, string resourceGroupName, string e } } + internal RequestUriBuilder CreateListSecretsRequestUri(string subscriptionId, string resourceGroupName, string environmentName, string componentName) + { + 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.App/managedEnvironments/", false); + uri.AppendPath(environmentName, true); + uri.AppendPath("/daprComponents/", false); + uri.AppendPath(componentName, true); + uri.AppendPath("/listSecrets", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListSecretsRequest(string subscriptionId, string resourceGroupName, string environmentName, string componentName) { var message = _pipeline.CreateMessage(); @@ -457,6 +537,14 @@ public Response ListSecrets(string subscriptionId, string } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string environmentName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string environmentName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/JobsExecutionsRestOperations.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/JobsExecutionsRestOperations.cs index 0c2ee61dd233..6b4ca836de7e 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/JobsExecutionsRestOperations.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/JobsExecutionsRestOperations.cs @@ -37,6 +37,25 @@ public JobsExecutionsRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string jobName, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.App/jobs/", false); + uri.AppendPath(jobName, true); + uri.AppendPath("/executions", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string jobName, string filter) { var message = _pipeline.CreateMessage(); @@ -122,6 +141,14 @@ public Response List(string subscriptionId, string re } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string jobName, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string jobName, string filter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/JobsRestOperations.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/JobsRestOperations.cs index 7e266b191f0b..67da35f7e5ce 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/JobsRestOperations.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/JobsRestOperations.cs @@ -37,6 +37,17 @@ public JobsRestOperations(HttpPipeline pipeline, string applicationId, Uri endpo _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.App/jobs", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,19 @@ public Response ListBySubscription(string subscripti } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.App/jobs", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -177,6 +201,20 @@ public Response ListByResourceGroup(string subscript } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string jobName) + { + 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.App/jobs/", false); + uri.AppendPath(jobName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string jobName) { var message = _pipeline.CreateMessage(); @@ -259,6 +297,20 @@ public Response Get(string subscriptionId, string resourceG } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string jobName, ContainerAppJobData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.App/jobs/", false); + uri.AppendPath(jobName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string jobName, ContainerAppJobData data) { var message = _pipeline.CreateMessage(); @@ -337,6 +389,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string jobName) + { + 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.App/jobs/", false); + uri.AppendPath(jobName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string jobName) { var message = _pipeline.CreateMessage(); @@ -409,6 +475,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string j } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string jobName, ContainerAppJobPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.App/jobs/", false); + uri.AppendPath(jobName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string jobName, ContainerAppJobPatch patch) { var message = _pipeline.CreateMessage(); @@ -487,6 +567,21 @@ public Response Update(string subscriptionId, string resourceGroupName, string j } } + internal RequestUriBuilder CreateStartRequestUri(string subscriptionId, string resourceGroupName, string jobName, ContainerAppJobExecutionTemplate template) + { + 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.App/jobs/", false); + uri.AppendPath(jobName, true); + uri.AppendPath("/start", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStartRequest(string subscriptionId, string resourceGroupName, string jobName, ContainerAppJobExecutionTemplate template) { var message = _pipeline.CreateMessage(); @@ -567,6 +662,23 @@ public Response Start(string subscriptionId, string resourceGroupName, string jo } } + internal RequestUriBuilder CreateStopExecutionRequestUri(string subscriptionId, string resourceGroupName, string jobName, string jobExecutionName) + { + 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.App/jobs/", false); + uri.AppendPath(jobName, true); + uri.AppendPath("/executions/", false); + uri.AppendPath(jobExecutionName, true); + uri.AppendPath("/stop", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStopExecutionRequest(string subscriptionId, string resourceGroupName, string jobName, string jobExecutionName) { var message = _pipeline.CreateMessage(); @@ -644,6 +756,21 @@ public Response StopExecution(string subscriptionId, string resourceGroupName, s } } + internal RequestUriBuilder CreateStopMultipleExecutionsRequestUri(string subscriptionId, string resourceGroupName, string jobName) + { + 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.App/jobs/", false); + uri.AppendPath(jobName, true); + uri.AppendPath("/stop", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStopMultipleExecutionsRequest(string subscriptionId, string resourceGroupName, string jobName) { var message = _pipeline.CreateMessage(); @@ -715,6 +842,21 @@ public Response StopMultipleExecutions(string subscriptionId, string resourceGro } } + internal RequestUriBuilder CreateListSecretsRequestUri(string subscriptionId, string resourceGroupName, string jobName) + { + 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.App/jobs/", false); + uri.AppendPath(jobName, true); + uri.AppendPath("/listSecrets", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListSecretsRequest(string subscriptionId, string resourceGroupName, string jobName) { var message = _pipeline.CreateMessage(); @@ -794,6 +936,14 @@ public Response ListSecrets(string subscriptionId, string } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -862,6 +1012,14 @@ public Response ListBySubscriptionNextPage(string ne } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ManagedCertificatesRestOperations.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ManagedCertificatesRestOperations.cs index 838cfe9e69bf..0c0afff6af8b 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ManagedCertificatesRestOperations.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ManagedCertificatesRestOperations.cs @@ -37,6 +37,22 @@ public ManagedCertificatesRestOperations(HttpPipeline pipeline, string applicati _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string environmentName, string managedCertificateName) + { + 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.App/managedEnvironments/", false); + uri.AppendPath(environmentName, true); + uri.AppendPath("/managedCertificates/", false); + uri.AppendPath(managedCertificateName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string environmentName, string managedCertificateName) { var message = _pipeline.CreateMessage(); @@ -125,6 +141,22 @@ public Response Get(string subscriptionId, s } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string environmentName, string managedCertificateName, ContainerAppManagedCertificateData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.App/managedEnvironments/", false); + uri.AppendPath(environmentName, true); + uri.AppendPath("/managedCertificates/", false); + uri.AppendPath(managedCertificateName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string environmentName, string managedCertificateName, ContainerAppManagedCertificateData data) { var message = _pipeline.CreateMessage(); @@ -209,6 +241,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string environmentName, string managedCertificateName) + { + 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.App/managedEnvironments/", false); + uri.AppendPath(environmentName, true); + uri.AppendPath("/managedCertificates/", false); + uri.AppendPath(managedCertificateName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string environmentName, string managedCertificateName) { var message = _pipeline.CreateMessage(); @@ -285,6 +333,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string e } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string environmentName, string managedCertificateName, ContainerAppManagedCertificatePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.App/managedEnvironments/", false); + uri.AppendPath(environmentName, true); + uri.AppendPath("/managedCertificates/", false); + uri.AppendPath(managedCertificateName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string environmentName, string managedCertificateName, ContainerAppManagedCertificatePatch patch) { var message = _pipeline.CreateMessage(); @@ -377,6 +441,21 @@ public Response Update(string subscriptionId } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string environmentName) + { + 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.App/managedEnvironments/", false); + uri.AppendPath(environmentName, true); + uri.AppendPath("/managedCertificates", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string environmentName) { var message = _pipeline.CreateMessage(); @@ -456,6 +535,14 @@ public Response List(string subscriptionId, string } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string environmentName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string environmentName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ManagedEnvironmentDiagnosticsRestOperations.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ManagedEnvironmentDiagnosticsRestOperations.cs index f53018d43bb7..24657b2357bc 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ManagedEnvironmentDiagnosticsRestOperations.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ManagedEnvironmentDiagnosticsRestOperations.cs @@ -37,6 +37,21 @@ public ManagedEnvironmentDiagnosticsRestOperations(HttpPipeline pipeline, string _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListDetectorsRequestUri(string subscriptionId, string resourceGroupName, string environmentName) + { + 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.App/managedEnvironments/", false); + uri.AppendPath(environmentName, true); + uri.AppendPath("/detectors", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListDetectorsRequest(string subscriptionId, string resourceGroupName, string environmentName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListDetectors(string subscriptionId, stri } } + internal RequestUriBuilder CreateGetDetectorRequestUri(string subscriptionId, string resourceGroupName, string environmentName, string detectorName) + { + 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.App/managedEnvironments/", false); + uri.AppendPath(environmentName, true); + uri.AppendPath("/detectors/", false); + uri.AppendPath(detectorName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetDetectorRequest(string subscriptionId, string resourceGroupName, string environmentName, string detectorName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ManagedEnvironmentsDiagnosticsRestOperations.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ManagedEnvironmentsDiagnosticsRestOperations.cs index db9d98ccfee8..ed288ec49c68 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ManagedEnvironmentsDiagnosticsRestOperations.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ManagedEnvironmentsDiagnosticsRestOperations.cs @@ -36,6 +36,21 @@ public ManagedEnvironmentsDiagnosticsRestOperations(HttpPipeline pipeline, strin _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRootRequestUri(string subscriptionId, string resourceGroupName, string environmentName) + { + 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.App/managedEnvironments/", false); + uri.AppendPath(environmentName, true); + uri.AppendPath("/detectorProperties/rootApi/", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRootRequest(string subscriptionId, string resourceGroupName, string environmentName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ManagedEnvironmentsRestOperations.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ManagedEnvironmentsRestOperations.cs index f9a5f61153b2..0c28e938e83f 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ManagedEnvironmentsRestOperations.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ManagedEnvironmentsRestOperations.cs @@ -37,6 +37,17 @@ public ManagedEnvironmentsRestOperations(HttpPipeline pipeline, string applicati _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.App/managedEnvironments", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,19 @@ public Response ListBySubscription(string subscri } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.App/managedEnvironments", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -177,6 +201,20 @@ public Response ListByResourceGroup(string subscr } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string environmentName) + { + 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.App/managedEnvironments/", false); + uri.AppendPath(environmentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string environmentName) { var message = _pipeline.CreateMessage(); @@ -259,6 +297,20 @@ public Response Get(string subscriptionId, s } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string environmentName, ContainerAppManagedEnvironmentData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.App/managedEnvironments/", false); + uri.AppendPath(environmentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string environmentName, ContainerAppManagedEnvironmentData data) { var message = _pipeline.CreateMessage(); @@ -337,6 +389,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string environmentName) + { + 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.App/managedEnvironments/", false); + uri.AppendPath(environmentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string environmentName) { var message = _pipeline.CreateMessage(); @@ -409,6 +475,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string e } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string environmentName, ContainerAppManagedEnvironmentData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.App/managedEnvironments/", false); + uri.AppendPath(environmentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string environmentName, ContainerAppManagedEnvironmentData data) { var message = _pipeline.CreateMessage(); @@ -487,6 +567,21 @@ public Response Update(string subscriptionId, string resourceGroupName, string e } } + internal RequestUriBuilder CreateGetAuthTokenRequestUri(string subscriptionId, string resourceGroupName, string environmentName) + { + 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.App/managedEnvironments/", false); + uri.AppendPath(environmentName, true); + uri.AppendPath("/getAuthtoken", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetAuthTokenRequest(string subscriptionId, string resourceGroupName, string environmentName) { var message = _pipeline.CreateMessage(); @@ -566,6 +661,21 @@ public Response GetAuthToken(string subscripti } } + internal RequestUriBuilder CreateListWorkloadProfileStatesRequestUri(string subscriptionId, string resourceGroupName, string environmentName) + { + 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.App/managedEnvironments/", false); + uri.AppendPath(environmentName, true); + uri.AppendPath("/workloadProfileStates", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListWorkloadProfileStatesRequest(string subscriptionId, string resourceGroupName, string environmentName) { var message = _pipeline.CreateMessage(); @@ -645,6 +755,14 @@ public Response ListWorkloadProfileStates(strin } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -713,6 +831,14 @@ public Response ListBySubscriptionNextPage(string } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -785,6 +911,14 @@ public Response ListByResourceGroupNextPage(strin } } + internal RequestUriBuilder CreateListWorkloadProfileStatesNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string environmentName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListWorkloadProfileStatesNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string environmentName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ManagedEnvironmentsStoragesRestOperations.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ManagedEnvironmentsStoragesRestOperations.cs index a2cc6236cca5..76c3ee0294b8 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ManagedEnvironmentsStoragesRestOperations.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ManagedEnvironmentsStoragesRestOperations.cs @@ -37,6 +37,21 @@ public ManagedEnvironmentsStoragesRestOperations(HttpPipeline pipeline, string a _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string environmentName) + { + 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.App/managedEnvironments/", false); + uri.AppendPath(environmentName, true); + uri.AppendPath("/storages", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string environmentName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response List(string subscriptionId } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string environmentName, string storageName) + { + 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.App/managedEnvironments/", false); + uri.AppendPath(environmentName, true); + uri.AppendPath("/storages/", false); + uri.AppendPath(storageName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string environmentName, string storageName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscripti } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string environmentName, string storageName, ContainerAppManagedEnvironmentStorageData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.App/managedEnvironments/", false); + uri.AppendPath(environmentName, true); + uri.AppendPath("/storages/", false); + uri.AppendPath(storageName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string environmentName, string storageName, ContainerAppManagedEnvironmentStorageData data) { var message = _pipeline.CreateMessage(); @@ -296,6 +343,22 @@ public Response CreateOrUpdate(string } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string environmentName, string storageName) + { + 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.App/managedEnvironments/", false); + uri.AppendPath(environmentName, true); + uri.AppendPath("/storages/", false); + uri.AppendPath(storageName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string environmentName, string storageName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/NamespacesRestOperations.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/NamespacesRestOperations.cs index a1ea94abd4b3..8156b25c971e 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/NamespacesRestOperations.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/NamespacesRestOperations.cs @@ -37,6 +37,21 @@ public NamespacesRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCheckNameAvailabilityRequestUri(string subscriptionId, string resourceGroupName, string environmentName, ContainerAppNameAvailabilityContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.App/managedEnvironments/", false); + uri.AppendPath(environmentName, true); + uri.AppendPath("/checkNameAvailability", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCheckNameAvailabilityRequest(string subscriptionId, string resourceGroupName, string environmentName, ContainerAppNameAvailabilityContent content) { var message = _pipeline.CreateMessage(); diff --git a/sdk/containerinstance/Azure.ResourceManager.ContainerInstance/src/Generated/LongRunningOperation/ContainerInstanceArmOperation.cs b/sdk/containerinstance/Azure.ResourceManager.ContainerInstance/src/Generated/LongRunningOperation/ContainerInstanceArmOperation.cs index 05979c2f5260..ec49f64e9e98 100644 --- a/sdk/containerinstance/Azure.ResourceManager.ContainerInstance/src/Generated/LongRunningOperation/ContainerInstanceArmOperation.cs +++ b/sdk/containerinstance/Azure.ResourceManager.ContainerInstance/src/Generated/LongRunningOperation/ContainerInstanceArmOperation.cs @@ -20,21 +20,24 @@ internal class ContainerInstanceArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of ContainerInstanceArmOperation for mocking. protected ContainerInstanceArmOperation() { } - internal ContainerInstanceArmOperation(Response response) + internal ContainerInstanceArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal ContainerInstanceArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "ContainerInstanceArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal ContainerInstanceArmOperation(ClientDiagnostics clientDiagnostics, Http public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/containerinstance/Azure.ResourceManager.ContainerInstance/src/Generated/LongRunningOperation/ContainerInstanceArmOperationOfT.cs b/sdk/containerinstance/Azure.ResourceManager.ContainerInstance/src/Generated/LongRunningOperation/ContainerInstanceArmOperationOfT.cs index 1f303af716cb..d7e2c714e469 100644 --- a/sdk/containerinstance/Azure.ResourceManager.ContainerInstance/src/Generated/LongRunningOperation/ContainerInstanceArmOperationOfT.cs +++ b/sdk/containerinstance/Azure.ResourceManager.ContainerInstance/src/Generated/LongRunningOperation/ContainerInstanceArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class ContainerInstanceArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of ContainerInstanceArmOperation for mocking. protected ContainerInstanceArmOperation() { } - internal ContainerInstanceArmOperation(Response response) + internal ContainerInstanceArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal ContainerInstanceArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "ContainerInstanceArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal ContainerInstanceArmOperation(IOperationSource source, ClientDiagnos public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/containerinstance/Azure.ResourceManager.ContainerInstance/src/Generated/Models/ContainerGroupResource.Serialization.cs b/sdk/containerinstance/Azure.ResourceManager.ContainerInstance/src/Generated/Models/ContainerGroupResource.Serialization.cs new file mode 100644 index 000000000000..b5907968d18e --- /dev/null +++ b/sdk/containerinstance/Azure.ResourceManager.ContainerInstance/src/Generated/Models/ContainerGroupResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ContainerInstance +{ + public partial class ContainerGroupResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ContainerGroupData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ContainerGroupData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/containerinstance/Azure.ResourceManager.ContainerInstance/src/Generated/RestOperations/ContainerGroupsRestOperations.cs b/sdk/containerinstance/Azure.ResourceManager.ContainerInstance/src/Generated/RestOperations/ContainerGroupsRestOperations.cs index 3e9e209089d1..432f7b7846b8 100644 --- a/sdk/containerinstance/Azure.ResourceManager.ContainerInstance/src/Generated/RestOperations/ContainerGroupsRestOperations.cs +++ b/sdk/containerinstance/Azure.ResourceManager.ContainerInstance/src/Generated/RestOperations/ContainerGroupsRestOperations.cs @@ -38,6 +38,17 @@ public ContainerGroupsRestOperations(HttpPipeline pipeline, string applicationId _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ContainerInstance/containerGroups", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -105,6 +116,19 @@ public Response List(string subscriptionId, Cancellati } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.ContainerInstance/containerGroups", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -178,6 +202,20 @@ public Response ListByResourceGroup(string subscriptio } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string containerGroupName) + { + 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.ContainerInstance/containerGroups/", false); + uri.AppendPath(containerGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string containerGroupName) { var message = _pipeline.CreateMessage(); @@ -260,6 +298,20 @@ public Response Get(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string containerGroupName, ContainerGroupData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ContainerInstance/containerGroups/", false); + uri.AppendPath(containerGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string containerGroupName, ContainerGroupData data) { var message = _pipeline.CreateMessage(); @@ -338,6 +390,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string containerGroupName, ContainerGroupPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ContainerInstance/containerGroups/", false); + uri.AppendPath(containerGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string containerGroupName, ContainerGroupPatch patch) { var message = _pipeline.CreateMessage(); @@ -424,6 +490,20 @@ public Response Update(string subscriptionId, string resourc } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string containerGroupName) + { + 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.ContainerInstance/containerGroups/", false); + uri.AppendPath(containerGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string containerGroupName) { var message = _pipeline.CreateMessage(); @@ -496,6 +576,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateRestartRequestUri(string subscriptionId, string resourceGroupName, string containerGroupName) + { + 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.ContainerInstance/containerGroups/", false); + uri.AppendPath(containerGroupName, true); + uri.AppendPath("/restart", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRestartRequest(string subscriptionId, string resourceGroupName, string containerGroupName) { var message = _pipeline.CreateMessage(); @@ -565,6 +660,21 @@ public Response Restart(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreateStopRequestUri(string subscriptionId, string resourceGroupName, string containerGroupName) + { + 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.ContainerInstance/containerGroups/", false); + uri.AppendPath(containerGroupName, true); + uri.AppendPath("/stop", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStopRequest(string subscriptionId, string resourceGroupName, string containerGroupName) { var message = _pipeline.CreateMessage(); @@ -634,6 +744,21 @@ public Response Stop(string subscriptionId, string resourceGroupName, string con } } + internal RequestUriBuilder CreateStartRequestUri(string subscriptionId, string resourceGroupName, string containerGroupName) + { + 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.ContainerInstance/containerGroups/", false); + uri.AppendPath(containerGroupName, true); + uri.AppendPath("/start", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStartRequest(string subscriptionId, string resourceGroupName, string containerGroupName) { var message = _pipeline.CreateMessage(); @@ -705,6 +830,21 @@ public Response Start(string subscriptionId, string resourceGroupName, string co } } + internal RequestUriBuilder CreateGetOutboundNetworkDependenciesEndpointsRequestUri(string subscriptionId, string resourceGroupName, string containerGroupName) + { + 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.ContainerInstance/containerGroups/", false); + uri.AppendPath(containerGroupName, true); + uri.AppendPath("/outboundNetworkDependenciesEndpoints", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetOutboundNetworkDependenciesEndpointsRequest(string subscriptionId, string resourceGroupName, string containerGroupName) { var message = _pipeline.CreateMessage(); @@ -794,6 +934,14 @@ public Response> GetOutboundNetworkDependenciesEndpoints(s } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -862,6 +1010,14 @@ public Response ListNextPage(string nextLink, string s } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/containerinstance/Azure.ResourceManager.ContainerInstance/src/Generated/RestOperations/ContainersRestOperations.cs b/sdk/containerinstance/Azure.ResourceManager.ContainerInstance/src/Generated/RestOperations/ContainersRestOperations.cs index cc777c7c63d6..a55aa0475428 100644 --- a/sdk/containerinstance/Azure.ResourceManager.ContainerInstance/src/Generated/RestOperations/ContainersRestOperations.cs +++ b/sdk/containerinstance/Azure.ResourceManager.ContainerInstance/src/Generated/RestOperations/ContainersRestOperations.cs @@ -37,6 +37,31 @@ public ContainersRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListLogsRequestUri(string subscriptionId, string resourceGroupName, string containerGroupName, string containerName, int? tail, bool? timestamps) + { + 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.ContainerInstance/containerGroups/", false); + uri.AppendPath(containerGroupName, true); + uri.AppendPath("/containers/", false); + uri.AppendPath(containerName, true); + uri.AppendPath("/logs", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (tail != null) + { + uri.AppendQuery("tail", tail.Value, true); + } + if (timestamps != null) + { + uri.AppendQuery("timestamps", timestamps.Value, true); + } + return uri; + } + internal HttpMessage CreateListLogsRequest(string subscriptionId, string resourceGroupName, string containerGroupName, string containerName, int? tail, bool? timestamps) { var message = _pipeline.CreateMessage(); @@ -134,6 +159,23 @@ public Response ListLogs(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateExecuteCommandRequestUri(string subscriptionId, string resourceGroupName, string containerGroupName, string containerName, ContainerExecContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ContainerInstance/containerGroups/", false); + uri.AppendPath(containerGroupName, true); + uri.AppendPath("/containers/", false); + uri.AppendPath(containerName, true); + uri.AppendPath("/exec", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateExecuteCommandRequest(string subscriptionId, string resourceGroupName, string containerGroupName, string containerName, ContainerExecContent content) { var message = _pipeline.CreateMessage(); @@ -227,6 +269,23 @@ public Response ExecuteCommand(string subscriptionId, strin } } + internal RequestUriBuilder CreateAttachRequestUri(string subscriptionId, string resourceGroupName, string containerGroupName, string containerName) + { + 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.ContainerInstance/containerGroups/", false); + uri.AppendPath(containerGroupName, true); + uri.AppendPath("/containers/", false); + uri.AppendPath(containerName, true); + uri.AppendPath("/attach", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateAttachRequest(string subscriptionId, string resourceGroupName, string containerGroupName, string containerName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/containerinstance/Azure.ResourceManager.ContainerInstance/src/Generated/RestOperations/LocationRestOperations.cs b/sdk/containerinstance/Azure.ResourceManager.ContainerInstance/src/Generated/RestOperations/LocationRestOperations.cs index 1f674c20c787..a2d27f0ae4e4 100644 --- a/sdk/containerinstance/Azure.ResourceManager.ContainerInstance/src/Generated/RestOperations/LocationRestOperations.cs +++ b/sdk/containerinstance/Azure.ResourceManager.ContainerInstance/src/Generated/RestOperations/LocationRestOperations.cs @@ -37,6 +37,19 @@ public LocationRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListUsageRequestUri(string subscriptionId, AzureLocation location) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ContainerInstance/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/usages", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListUsageRequest(string subscriptionId, AzureLocation location) { var message = _pipeline.CreateMessage(); @@ -108,6 +121,19 @@ public Response ListUsage(string subscriptionI } } + internal RequestUriBuilder CreateListCachedImagesRequestUri(string subscriptionId, AzureLocation location) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ContainerInstance/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/cachedImages", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListCachedImagesRequest(string subscriptionId, AzureLocation location) { var message = _pipeline.CreateMessage(); @@ -179,6 +205,19 @@ public Response ListCachedImages(string subscriptionId, } } + internal RequestUriBuilder CreateListCapabilitiesRequestUri(string subscriptionId, AzureLocation location) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ContainerInstance/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/capabilities", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListCapabilitiesRequest(string subscriptionId, AzureLocation location) { var message = _pipeline.CreateMessage(); @@ -250,6 +289,14 @@ public Response ListCapabilities(string subscri } } + internal RequestUriBuilder CreateListCachedImagesNextPageRequestUri(string nextLink, string subscriptionId, AzureLocation location) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListCachedImagesNextPageRequest(string nextLink, string subscriptionId, AzureLocation location) { var message = _pipeline.CreateMessage(); @@ -320,6 +367,14 @@ public Response ListCachedImagesNextPage(string nextLink } } + internal RequestUriBuilder CreateListCapabilitiesNextPageRequestUri(string nextLink, string subscriptionId, AzureLocation location) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListCapabilitiesNextPageRequest(string nextLink, string subscriptionId, AzureLocation location) { var message = _pipeline.CreateMessage(); diff --git a/sdk/containerinstance/Azure.ResourceManager.ContainerInstance/src/Generated/RestOperations/SubnetServiceAssociationLinkRestOperations.cs b/sdk/containerinstance/Azure.ResourceManager.ContainerInstance/src/Generated/RestOperations/SubnetServiceAssociationLinkRestOperations.cs index c72b2fd3b18e..b3252ed82e7d 100644 --- a/sdk/containerinstance/Azure.ResourceManager.ContainerInstance/src/Generated/RestOperations/SubnetServiceAssociationLinkRestOperations.cs +++ b/sdk/containerinstance/Azure.ResourceManager.ContainerInstance/src/Generated/RestOperations/SubnetServiceAssociationLinkRestOperations.cs @@ -35,6 +35,23 @@ public SubnetServiceAssociationLinkRestOperations(HttpPipeline pipeline, string _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string virtualNetworkName, string subnetName) + { + 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.Network/virtualNetworks/", false); + uri.AppendPath(virtualNetworkName, true); + uri.AppendPath("/subnets/", false); + uri.AppendPath(subnetName, true); + uri.AppendPath("/providers/Microsoft.ContainerInstance/serviceAssociationLinks/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string virtualNetworkName, string subnetName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/LongRunningOperation/ContainerRegistryArmOperation.cs b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/LongRunningOperation/ContainerRegistryArmOperation.cs index 254451ee6614..0a37fe45ffa0 100644 --- a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/LongRunningOperation/ContainerRegistryArmOperation.cs +++ b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/LongRunningOperation/ContainerRegistryArmOperation.cs @@ -20,21 +20,24 @@ internal class ContainerRegistryArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of ContainerRegistryArmOperation for mocking. protected ContainerRegistryArmOperation() { } - internal ContainerRegistryArmOperation(Response response) + internal ContainerRegistryArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal ContainerRegistryArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "ContainerRegistryArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal ContainerRegistryArmOperation(ClientDiagnostics clientDiagnostics, Http public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/LongRunningOperation/ContainerRegistryArmOperationOfT.cs b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/LongRunningOperation/ContainerRegistryArmOperationOfT.cs index 062b95d2b2b4..463b241ab166 100644 --- a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/LongRunningOperation/ContainerRegistryArmOperationOfT.cs +++ b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/LongRunningOperation/ContainerRegistryArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class ContainerRegistryArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of ContainerRegistryArmOperation for mocking. protected ContainerRegistryArmOperation() { } - internal ContainerRegistryArmOperation(Response response) + internal ContainerRegistryArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal ContainerRegistryArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "ContainerRegistryArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal ContainerRegistryArmOperation(IOperationSource source, ClientDiagnos public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryAgentPoolResource.Serialization.cs b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryAgentPoolResource.Serialization.cs new file mode 100644 index 000000000000..cf5fd6d75715 --- /dev/null +++ b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryAgentPoolResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ContainerRegistry +{ + public partial class ContainerRegistryAgentPoolResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ContainerRegistryAgentPoolData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ContainerRegistryAgentPoolData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryPrivateEndpointConnectionResource.Serialization.cs b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryPrivateEndpointConnectionResource.Serialization.cs new file mode 100644 index 000000000000..3f2907cf8177 --- /dev/null +++ b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryPrivateEndpointConnectionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ContainerRegistry +{ + public partial class ContainerRegistryPrivateEndpointConnectionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ContainerRegistryPrivateEndpointConnectionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ContainerRegistryPrivateEndpointConnectionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryPrivateLinkResource.Serialization.cs b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryPrivateLinkResource.Serialization.cs new file mode 100644 index 000000000000..001fb8f2ad15 --- /dev/null +++ b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryPrivateLinkResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ContainerRegistry +{ + public partial class ContainerRegistryPrivateLinkResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ContainerRegistryPrivateLinkResourceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ContainerRegistryPrivateLinkResourceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryReplicationResource.Serialization.cs b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryReplicationResource.Serialization.cs new file mode 100644 index 000000000000..1b2da207e260 --- /dev/null +++ b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryReplicationResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ContainerRegistry +{ + public partial class ContainerRegistryReplicationResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ContainerRegistryReplicationData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ContainerRegistryReplicationData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryResource.Serialization.cs b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryResource.Serialization.cs new file mode 100644 index 000000000000..4236ff168a45 --- /dev/null +++ b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ContainerRegistry +{ + public partial class ContainerRegistryResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ContainerRegistryData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ContainerRegistryData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryRunResource.Serialization.cs b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryRunResource.Serialization.cs new file mode 100644 index 000000000000..a23b36647d5c --- /dev/null +++ b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryRunResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ContainerRegistry +{ + public partial class ContainerRegistryRunResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ContainerRegistryRunData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ContainerRegistryRunData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryTaskResource.Serialization.cs b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryTaskResource.Serialization.cs new file mode 100644 index 000000000000..f0d16540f908 --- /dev/null +++ b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryTaskResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ContainerRegistry +{ + public partial class ContainerRegistryTaskResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ContainerRegistryTaskData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ContainerRegistryTaskData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryTaskRunResource.Serialization.cs b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryTaskRunResource.Serialization.cs new file mode 100644 index 000000000000..b5be01d0d607 --- /dev/null +++ b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryTaskRunResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ContainerRegistry +{ + public partial class ContainerRegistryTaskRunResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ContainerRegistryTaskRunData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ContainerRegistryTaskRunData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryTokenResource.Serialization.cs b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryTokenResource.Serialization.cs new file mode 100644 index 000000000000..c75621263202 --- /dev/null +++ b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryTokenResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ContainerRegistry +{ + public partial class ContainerRegistryTokenResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ContainerRegistryTokenData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ContainerRegistryTokenData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryWebhookResource.Serialization.cs b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryWebhookResource.Serialization.cs new file mode 100644 index 000000000000..c8c543df1cca --- /dev/null +++ b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryWebhookResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ContainerRegistry +{ + public partial class ContainerRegistryWebhookResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ContainerRegistryWebhookData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ContainerRegistryWebhookData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ScopeMapResource.Serialization.cs b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ScopeMapResource.Serialization.cs new file mode 100644 index 000000000000..4e38515a9b67 --- /dev/null +++ b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ScopeMapResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ContainerRegistry +{ + public partial class ScopeMapResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ScopeMapData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ScopeMapData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/RestOperations/AgentPoolsRestOperations.cs b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/RestOperations/AgentPoolsRestOperations.cs index fa03cdd87421..ff5f0bcf667f 100644 --- a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/RestOperations/AgentPoolsRestOperations.cs +++ b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/RestOperations/AgentPoolsRestOperations.cs @@ -37,6 +37,22 @@ public AgentPoolsRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string registryName, string agentPoolName) + { + 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.ContainerRegistry/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/agentPools/", false); + uri.AppendPath(agentPoolName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string registryName, string agentPoolName) { var message = _pipeline.CreateMessage(); @@ -125,6 +141,22 @@ public Response Get(string subscriptionId, strin } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string registryName, string agentPoolName, ContainerRegistryAgentPoolData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ContainerRegistry/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/agentPools/", false); + uri.AppendPath(agentPoolName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string registryName, string agentPoolName, ContainerRegistryAgentPoolData data) { var message = _pipeline.CreateMessage(); @@ -209,6 +241,22 @@ public Response Create(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string registryName, string agentPoolName) + { + 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.ContainerRegistry/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/agentPools/", false); + uri.AppendPath(agentPoolName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string registryName, string agentPoolName) { var message = _pipeline.CreateMessage(); @@ -287,6 +335,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string registryName, string agentPoolName, ContainerRegistryAgentPoolPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ContainerRegistry/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/agentPools/", false); + uri.AppendPath(agentPoolName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string registryName, string agentPoolName, ContainerRegistryAgentPoolPatch patch) { var message = _pipeline.CreateMessage(); @@ -371,6 +435,21 @@ public Response Update(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string registryName) + { + 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.ContainerRegistry/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/agentPools", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string registryName) { var message = _pipeline.CreateMessage(); @@ -450,6 +529,23 @@ public Response List(string subscriptionId } } + internal RequestUriBuilder CreateGetQueueStatusRequestUri(string subscriptionId, string resourceGroupName, string registryName, string agentPoolName) + { + 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.ContainerRegistry/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/agentPools/", false); + uri.AppendPath(agentPoolName, true); + uri.AppendPath("/listQueueStatus", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetQueueStatusRequest(string subscriptionId, string resourceGroupName, string registryName, string agentPoolName) { var message = _pipeline.CreateMessage(); @@ -535,6 +631,14 @@ public Response GetQueueStatus(string sub } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string registryName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string registryName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/RestOperations/BuildsRestOperations.cs b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/RestOperations/BuildsRestOperations.cs index 2038550d30f3..a9c909706638 100644 --- a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/RestOperations/BuildsRestOperations.cs +++ b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/RestOperations/BuildsRestOperations.cs @@ -37,6 +37,21 @@ public BuildsRestOperations(HttpPipeline pipeline, string applicationId, Uri end _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetBuildSourceUploadUrlRequestUri(string subscriptionId, string resourceGroupName, string registryName) + { + 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.ContainerRegistry/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/listBuildSourceUploadUrl", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetBuildSourceUploadUrlRequest(string subscriptionId, string resourceGroupName, string registryName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs index 194a8a250cf5..16a4564238b8 100644 --- a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs +++ b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs @@ -37,6 +37,21 @@ public PrivateEndpointConnectionsRestOperations(HttpPipeline pipeline, string ap _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string registryName) + { + 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.ContainerRegistry/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/privateEndpointConnections", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string registryName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response List(strin } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string registryName, string privateEndpointConnectionName) + { + 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.ContainerRegistry/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string registryName, string privateEndpointConnectionName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subsc } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string registryName, string privateEndpointConnectionName, ContainerRegistryPrivateEndpointConnectionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ContainerRegistry/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string registryName, string privateEndpointConnectionName, ContainerRegistryPrivateEndpointConnectionData data) { var message = _pipeline.CreateMessage(); @@ -288,6 +335,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string registryName, string privateEndpointConnectionName) + { + 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.ContainerRegistry/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string registryName, string privateEndpointConnectionName) { var message = _pipeline.CreateMessage(); @@ -365,6 +428,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string registryName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string registryName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/RestOperations/RegistriesRestOperations.cs b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/RestOperations/RegistriesRestOperations.cs index 68e85070f5b2..93df274a5464 100644 --- a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/RestOperations/RegistriesRestOperations.cs +++ b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/RestOperations/RegistriesRestOperations.cs @@ -37,6 +37,21 @@ public RegistriesRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateImportImageRequestUri(string subscriptionId, string resourceGroupName, string registryName, ContainerRegistryImportImageContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ContainerRegistry/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/importImage", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateImportImageRequest(string subscriptionId, string resourceGroupName, string registryName, ContainerRegistryImportImageContent content) { var message = _pipeline.CreateMessage(); @@ -115,6 +130,17 @@ public Response ImportImage(string subscriptionId, string resourceGroupName, str } } + internal RequestUriBuilder CreateCheckNameAvailabilityRequestUri(string subscriptionId, ContainerRegistryNameAvailabilityContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ContainerRegistry/checkNameAvailability", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCheckNameAvailabilityRequest(string subscriptionId, ContainerRegistryNameAvailabilityContent content) { var message = _pipeline.CreateMessage(); @@ -190,6 +216,17 @@ public Response CheckNameAvailability(stri } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ContainerRegistry/registries", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -257,6 +294,19 @@ public Response List(string subscriptionId, Cancell } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.ContainerRegistry/registries", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -330,6 +380,20 @@ public Response ListByResourceGroup(string subscrip } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string registryName) + { + 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.ContainerRegistry/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string registryName) { var message = _pipeline.CreateMessage(); @@ -412,6 +476,20 @@ public Response Get(string subscriptionId, string resourc } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string registryName, ContainerRegistryData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ContainerRegistry/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string registryName, ContainerRegistryData data) { var message = _pipeline.CreateMessage(); @@ -490,6 +568,20 @@ public Response Create(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string registryName) + { + 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.ContainerRegistry/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string registryName) { var message = _pipeline.CreateMessage(); @@ -561,6 +653,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string registryName, ContainerRegistryPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ContainerRegistry/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string registryName, ContainerRegistryPatch patch) { var message = _pipeline.CreateMessage(); @@ -639,6 +745,21 @@ public Response Update(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateListUsagesRequestUri(string subscriptionId, string resourceGroupName, string registryName) + { + 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.ContainerRegistry/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/listUsages", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListUsagesRequest(string subscriptionId, string resourceGroupName, string registryName) { var message = _pipeline.CreateMessage(); @@ -718,6 +839,21 @@ public Response ListUsages(string subscription } } + internal RequestUriBuilder CreateListPrivateLinkResourcesRequestUri(string subscriptionId, string resourceGroupName, string registryName) + { + 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.ContainerRegistry/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/privateLinkResources", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListPrivateLinkResourcesRequest(string subscriptionId, string resourceGroupName, string registryName) { var message = _pipeline.CreateMessage(); @@ -797,6 +933,22 @@ public Response ListPrivateLinkR } } + internal RequestUriBuilder CreateGetPrivateLinkResourceRequestUri(string subscriptionId, string resourceGroupName, string registryName, string groupName) + { + 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.ContainerRegistry/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/privateLinkResources/", false); + uri.AppendPath(groupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetPrivateLinkResourceRequest(string subscriptionId, string resourceGroupName, string registryName, string groupName) { var message = _pipeline.CreateMessage(); @@ -885,6 +1037,21 @@ public Response GetPrivateLinkResource } } + internal RequestUriBuilder CreateListCredentialsRequestUri(string subscriptionId, string resourceGroupName, string registryName) + { + 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.ContainerRegistry/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/listCredentials", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListCredentialsRequest(string subscriptionId, string resourceGroupName, string registryName) { var message = _pipeline.CreateMessage(); @@ -964,6 +1131,21 @@ public Response ListCredentials(string s } } + internal RequestUriBuilder CreateRegenerateCredentialRequestUri(string subscriptionId, string resourceGroupName, string registryName, ContainerRegistryCredentialRegenerateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ContainerRegistry/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/regenerateCredential", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRegenerateCredentialRequest(string subscriptionId, string resourceGroupName, string registryName, ContainerRegistryCredentialRegenerateContent content) { var message = _pipeline.CreateMessage(); @@ -1051,6 +1233,21 @@ public Response RegenerateCredential(str } } + internal RequestUriBuilder CreateGenerateCredentialsRequestUri(string subscriptionId, string resourceGroupName, string registryName, ContainerRegistryGenerateCredentialsContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ContainerRegistry/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/generateCredentials", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGenerateCredentialsRequest(string subscriptionId, string resourceGroupName, string registryName, ContainerRegistryGenerateCredentialsContent content) { var message = _pipeline.CreateMessage(); @@ -1130,6 +1327,14 @@ public Response GenerateCredentials(string subscriptionId, string resourceGroupN } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -1198,6 +1403,14 @@ public Response ListNextPage(string nextLink, strin } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -1270,6 +1483,14 @@ public Response ListByResourceGroupNextPage(string } } + internal RequestUriBuilder CreateListPrivateLinkResourcesNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string registryName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListPrivateLinkResourcesNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string registryName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/RestOperations/ReplicationsRestOperations.cs b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/RestOperations/ReplicationsRestOperations.cs index be53b11a41da..404206aad160 100644 --- a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/RestOperations/ReplicationsRestOperations.cs +++ b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/RestOperations/ReplicationsRestOperations.cs @@ -37,6 +37,21 @@ public ReplicationsRestOperations(HttpPipeline pipeline, string applicationId, U _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string registryName) + { + 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.ContainerRegistry/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/replications", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string registryName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response List(string subscription } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string registryName, string replicationName) + { + 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.ContainerRegistry/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/replications/", false); + uri.AppendPath(replicationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string registryName, string replicationName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscriptionId, str } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string registryName, string replicationName, ContainerRegistryReplicationData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ContainerRegistry/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/replications/", false); + uri.AppendPath(replicationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string registryName, string replicationName, ContainerRegistryReplicationData data) { var message = _pipeline.CreateMessage(); @@ -288,6 +335,22 @@ public Response Create(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string registryName, string replicationName) + { + 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.ContainerRegistry/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/replications/", false); + uri.AppendPath(replicationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string registryName, string replicationName) { var message = _pipeline.CreateMessage(); @@ -365,6 +428,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string registryName, string replicationName, ContainerRegistryReplicationPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ContainerRegistry/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/replications/", false); + uri.AppendPath(replicationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string registryName, string replicationName, ContainerRegistryReplicationPatch patch) { var message = _pipeline.CreateMessage(); @@ -449,6 +528,14 @@ public Response Update(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string registryName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string registryName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/RestOperations/RunsRestOperations.cs b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/RestOperations/RunsRestOperations.cs index e0ab68dd0a62..914b6b72a258 100644 --- a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/RestOperations/RunsRestOperations.cs +++ b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/RestOperations/RunsRestOperations.cs @@ -37,6 +37,29 @@ public RunsRestOperations(HttpPipeline pipeline, string applicationId, Uri endpo _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string registryName, string filter, int? top) + { + 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.ContainerRegistry/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/runs", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string registryName, string filter, int? top) { var message = _pipeline.CreateMessage(); @@ -128,6 +151,22 @@ public Response List(string subscriptionId, stri } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string registryName, string runId) + { + 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.ContainerRegistry/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/runs/", false); + uri.AppendPath(runId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string registryName, string runId) { var message = _pipeline.CreateMessage(); @@ -216,6 +255,22 @@ public Response Get(string subscriptionId, string reso } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string registryName, string runId, ContainerRegistryRunPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ContainerRegistry/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/runs/", false); + uri.AppendPath(runId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string registryName, string runId, ContainerRegistryRunPatch patch) { var message = _pipeline.CreateMessage(); @@ -300,6 +355,23 @@ public Response Update(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateGetLogSasUrlRequestUri(string subscriptionId, string resourceGroupName, string registryName, string runId) + { + 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.ContainerRegistry/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/runs/", false); + uri.AppendPath(runId, true); + uri.AppendPath("/listLogSasUrl", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetLogSasUrlRequest(string subscriptionId, string resourceGroupName, string registryName, string runId) { var message = _pipeline.CreateMessage(); @@ -385,6 +457,23 @@ public Response GetLogSasUrl(string subscripti } } + internal RequestUriBuilder CreateCancelRequestUri(string subscriptionId, string resourceGroupName, string registryName, string runId) + { + 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.ContainerRegistry/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/runs/", false); + uri.AppendPath(runId, true); + uri.AppendPath("/cancel", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCancelRequest(string subscriptionId, string resourceGroupName, string registryName, string runId) { var message = _pipeline.CreateMessage(); @@ -462,6 +551,14 @@ public Response Cancel(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string registryName, string filter, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string registryName, string filter, int? top) { var message = _pipeline.CreateMessage(); diff --git a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/RestOperations/SchedulesRestOperations.cs b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/RestOperations/SchedulesRestOperations.cs index 685253badde6..7aaf7e4bc329 100644 --- a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/RestOperations/SchedulesRestOperations.cs +++ b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/RestOperations/SchedulesRestOperations.cs @@ -36,6 +36,21 @@ public SchedulesRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateScheduleRunRequestUri(string subscriptionId, string resourceGroupName, string registryName, ContainerRegistryRunContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ContainerRegistry/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/scheduleRun", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateScheduleRunRequest(string subscriptionId, string resourceGroupName, string registryName, ContainerRegistryRunContent content) { var message = _pipeline.CreateMessage(); diff --git a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/RestOperations/ScopeMapsRestOperations.cs b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/RestOperations/ScopeMapsRestOperations.cs index 2cf83f6ee096..7248a39a348a 100644 --- a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/RestOperations/ScopeMapsRestOperations.cs +++ b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/RestOperations/ScopeMapsRestOperations.cs @@ -37,6 +37,21 @@ public ScopeMapsRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string registryName) + { + 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.ContainerRegistry/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/scopeMaps", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string registryName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response List(string subscriptionId, string resourceG } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string registryName, string scopeMapName) + { + 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.ContainerRegistry/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/scopeMaps/", false); + uri.AppendPath(scopeMapName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string registryName, string scopeMapName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscriptionId, string resourceGroupNam } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string registryName, string scopeMapName, ScopeMapData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ContainerRegistry/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/scopeMaps/", false); + uri.AppendPath(scopeMapName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string registryName, string scopeMapName, ScopeMapData data) { var message = _pipeline.CreateMessage(); @@ -288,6 +335,22 @@ public Response Create(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string registryName, string scopeMapName) + { + 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.ContainerRegistry/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/scopeMaps/", false); + uri.AppendPath(scopeMapName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string registryName, string scopeMapName) { var message = _pipeline.CreateMessage(); @@ -366,6 +429,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string registryName, string scopeMapName, ScopeMapPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ContainerRegistry/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/scopeMaps/", false); + uri.AppendPath(scopeMapName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string registryName, string scopeMapName, ScopeMapPatch patch) { var message = _pipeline.CreateMessage(); @@ -450,6 +529,14 @@ public Response Update(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string registryName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string registryName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/RestOperations/TaskRunsRestOperations.cs b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/RestOperations/TaskRunsRestOperations.cs index 8ce42023880a..f01c22e07fc2 100644 --- a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/RestOperations/TaskRunsRestOperations.cs +++ b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/RestOperations/TaskRunsRestOperations.cs @@ -37,6 +37,22 @@ public TaskRunsRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string registryName, string taskRunName) + { + 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.ContainerRegistry/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/taskRuns/", false); + uri.AppendPath(taskRunName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string registryName, string taskRunName) { var message = _pipeline.CreateMessage(); @@ -125,6 +141,22 @@ public Response Get(string subscriptionId, string } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string registryName, string taskRunName, ContainerRegistryTaskRunData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ContainerRegistry/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/taskRuns/", false); + uri.AppendPath(taskRunName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string registryName, string taskRunName, ContainerRegistryTaskRunData data) { var message = _pipeline.CreateMessage(); @@ -209,6 +241,22 @@ public Response Create(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string registryName, string taskRunName) + { + 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.ContainerRegistry/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/taskRuns/", false); + uri.AppendPath(taskRunName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string registryName, string taskRunName) { var message = _pipeline.CreateMessage(); @@ -287,6 +335,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string registryName, string taskRunName, ContainerRegistryTaskRunPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ContainerRegistry/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/taskRuns/", false); + uri.AppendPath(taskRunName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string registryName, string taskRunName, ContainerRegistryTaskRunPatch patch) { var message = _pipeline.CreateMessage(); @@ -371,6 +435,23 @@ public Response Update(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateGetDetailsRequestUri(string subscriptionId, string resourceGroupName, string registryName, string taskRunName) + { + 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.ContainerRegistry/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/taskRuns/", false); + uri.AppendPath(taskRunName, true); + uri.AppendPath("/listDetails", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetDetailsRequest(string subscriptionId, string resourceGroupName, string registryName, string taskRunName) { var message = _pipeline.CreateMessage(); @@ -456,6 +537,21 @@ public Response GetDetails(string subscriptionId, } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string registryName) + { + 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.ContainerRegistry/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/taskRuns", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string registryName) { var message = _pipeline.CreateMessage(); @@ -535,6 +631,14 @@ public Response List(string subscriptionId, } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string registryName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string registryName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/RestOperations/TasksRestOperations.cs b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/RestOperations/TasksRestOperations.cs index e2c6d37766ce..d913b11fd530 100644 --- a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/RestOperations/TasksRestOperations.cs +++ b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/RestOperations/TasksRestOperations.cs @@ -37,6 +37,21 @@ public TasksRestOperations(HttpPipeline pipeline, string applicationId, Uri endp _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string registryName) + { + 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.ContainerRegistry/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/tasks", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string registryName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response List(string subscriptionId, str } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string registryName, string taskName) + { + 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.ContainerRegistry/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/tasks/", false); + uri.AppendPath(taskName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string registryName, string taskName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscriptionId, string res } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string registryName, string taskName, ContainerRegistryTaskData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ContainerRegistry/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/tasks/", false); + uri.AppendPath(taskName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string registryName, string taskName, ContainerRegistryTaskData data) { var message = _pipeline.CreateMessage(); @@ -288,6 +335,22 @@ public Response Create(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string registryName, string taskName) + { + 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.ContainerRegistry/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/tasks/", false); + uri.AppendPath(taskName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string registryName, string taskName) { var message = _pipeline.CreateMessage(); @@ -366,6 +429,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string registryName, string taskName, ContainerRegistryTaskPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ContainerRegistry/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/tasks/", false); + uri.AppendPath(taskName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string registryName, string taskName, ContainerRegistryTaskPatch patch) { var message = _pipeline.CreateMessage(); @@ -450,6 +529,23 @@ public Response Update(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateGetDetailsRequestUri(string subscriptionId, string resourceGroupName, string registryName, string taskName) + { + 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.ContainerRegistry/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/tasks/", false); + uri.AppendPath(taskName, true); + uri.AppendPath("/listDetails", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetDetailsRequest(string subscriptionId, string resourceGroupName, string registryName, string taskName) { var message = _pipeline.CreateMessage(); @@ -535,6 +631,14 @@ public Response GetDetails(string subscriptionId, str } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string registryName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string registryName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/RestOperations/TokensRestOperations.cs b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/RestOperations/TokensRestOperations.cs index 7d5ba5267cf9..3f5e98d2ec45 100644 --- a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/RestOperations/TokensRestOperations.cs +++ b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/RestOperations/TokensRestOperations.cs @@ -37,6 +37,21 @@ public TokensRestOperations(HttpPipeline pipeline, string applicationId, Uri end _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string registryName) + { + 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.ContainerRegistry/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/tokens", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string registryName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response List(string subscriptionId, st } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string registryName, string tokenName) + { + 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.ContainerRegistry/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/tokens/", false); + uri.AppendPath(tokenName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string registryName, string tokenName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscriptionId, string re } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string registryName, string tokenName, ContainerRegistryTokenData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ContainerRegistry/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/tokens/", false); + uri.AppendPath(tokenName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string registryName, string tokenName, ContainerRegistryTokenData data) { var message = _pipeline.CreateMessage(); @@ -288,6 +335,22 @@ public Response Create(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string registryName, string tokenName) + { + 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.ContainerRegistry/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/tokens/", false); + uri.AppendPath(tokenName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string registryName, string tokenName) { var message = _pipeline.CreateMessage(); @@ -366,6 +429,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string registryName, string tokenName, ContainerRegistryTokenPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ContainerRegistry/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/tokens/", false); + uri.AppendPath(tokenName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string registryName, string tokenName, ContainerRegistryTokenPatch patch) { var message = _pipeline.CreateMessage(); @@ -450,6 +529,14 @@ public Response Update(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string registryName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string registryName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/RestOperations/WebhooksRestOperations.cs b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/RestOperations/WebhooksRestOperations.cs index ddc9e020a398..6520672bf39c 100644 --- a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/RestOperations/WebhooksRestOperations.cs +++ b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/RestOperations/WebhooksRestOperations.cs @@ -37,6 +37,21 @@ public WebhooksRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string registryName) + { + 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.ContainerRegistry/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/webhooks", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string registryName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response List(string subscriptionId, } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string registryName, string webhookName) + { + 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.ContainerRegistry/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/webhooks/", false); + uri.AppendPath(webhookName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string registryName, string webhookName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscriptionId, string } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string registryName, string webhookName, ContainerRegistryWebhookCreateOrUpdateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ContainerRegistry/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/webhooks/", false); + uri.AppendPath(webhookName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string registryName, string webhookName, ContainerRegistryWebhookCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); @@ -288,6 +335,22 @@ public Response Create(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string registryName, string webhookName) + { + 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.ContainerRegistry/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/webhooks/", false); + uri.AppendPath(webhookName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string registryName, string webhookName) { var message = _pipeline.CreateMessage(); @@ -365,6 +428,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string registryName, string webhookName, ContainerRegistryWebhookPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ContainerRegistry/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/webhooks/", false); + uri.AppendPath(webhookName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string registryName, string webhookName, ContainerRegistryWebhookPatch patch) { var message = _pipeline.CreateMessage(); @@ -449,6 +528,23 @@ public Response Update(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreatePingRequestUri(string subscriptionId, string resourceGroupName, string registryName, string webhookName) + { + 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.ContainerRegistry/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/webhooks/", false); + uri.AppendPath(webhookName, true); + uri.AppendPath("/ping", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreatePingRequest(string subscriptionId, string resourceGroupName, string registryName, string webhookName) { var message = _pipeline.CreateMessage(); @@ -534,6 +630,23 @@ public Response Ping(string subscriptionId, s } } + internal RequestUriBuilder CreateListEventsRequestUri(string subscriptionId, string resourceGroupName, string registryName, string webhookName) + { + 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.ContainerRegistry/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/webhooks/", false); + uri.AppendPath(webhookName, true); + uri.AppendPath("/listEvents", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListEventsRequest(string subscriptionId, string resourceGroupName, string registryName, string webhookName) { var message = _pipeline.CreateMessage(); @@ -619,6 +732,23 @@ public Response ListEvents(string subsc } } + internal RequestUriBuilder CreateGetCallbackConfigRequestUri(string subscriptionId, string resourceGroupName, string registryName, string webhookName) + { + 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.ContainerRegistry/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/webhooks/", false); + uri.AppendPath(webhookName, true); + uri.AppendPath("/getCallbackConfig", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetCallbackConfigRequest(string subscriptionId, string resourceGroupName, string registryName, string webhookName) { var message = _pipeline.CreateMessage(); @@ -704,6 +834,14 @@ public Response GetCallbackConfig(string } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string registryName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string registryName) { var message = _pipeline.CreateMessage(); @@ -780,6 +918,14 @@ public Response ListNextPage(string nextLink } } + internal RequestUriBuilder CreateListEventsNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string registryName, string webhookName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListEventsNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string registryName, string webhookName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/AgentPoolSnapshotCollection.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/AgentPoolSnapshotCollection.cs index 36546b877fd3..bb0f51f0acae 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/AgentPoolSnapshotCollection.cs +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/AgentPoolSnapshotCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> CreateOrUpdat try { var response = await _agentPoolSnapshotSnapshotsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, resourceName, data, cancellationToken).ConfigureAwait(false); - var operation = new ContainerServiceArmOperation(Response.FromValue(new AgentPoolSnapshotResource(Client, response), response.GetRawResponse())); + var uri = _agentPoolSnapshotSnapshotsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, resourceName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ContainerServiceArmOperation(Response.FromValue(new AgentPoolSnapshotResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -140,7 +142,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil try { var response = _agentPoolSnapshotSnapshotsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, resourceName, data, cancellationToken); - var operation = new ContainerServiceArmOperation(Response.FromValue(new AgentPoolSnapshotResource(Client, response), response.GetRawResponse())); + var uri = _agentPoolSnapshotSnapshotsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, resourceName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ContainerServiceArmOperation(Response.FromValue(new AgentPoolSnapshotResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/AgentPoolSnapshotResource.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/AgentPoolSnapshotResource.cs index a106360d89a2..661360d97325 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/AgentPoolSnapshotResource.cs +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/AgentPoolSnapshotResource.cs @@ -202,7 +202,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _agentPoolSnapshotSnapshotsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new ContainerServiceArmOperation(response); + var uri = _agentPoolSnapshotSnapshotsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ContainerServiceArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -244,7 +246,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _agentPoolSnapshotSnapshotsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); - var operation = new ContainerServiceArmOperation(response); + var uri = _agentPoolSnapshotSnapshotsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ContainerServiceArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/ContainerServiceMaintenanceConfigurationCollection.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/ContainerServiceMaintenanceConfigurationCollection.cs index 1a4e94d94ece..702a051b174e 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/ContainerServiceMaintenanceConfigurationCollection.cs +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/ContainerServiceMaintenanceConfigurationCollection.cs @@ -90,7 +90,9 @@ public virtual async Task(Response.FromValue(new ContainerServiceMaintenanceConfigurationResource(Client, response), response.GetRawResponse())); + var uri = _containerServiceMaintenanceConfigurationMaintenanceConfigurationsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, configName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ContainerServiceArmOperation(Response.FromValue(new ContainerServiceMaintenanceConfigurationResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation Cr try { var response = _containerServiceMaintenanceConfigurationMaintenanceConfigurationsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, configName, data, cancellationToken); - var operation = new ContainerServiceArmOperation(Response.FromValue(new ContainerServiceMaintenanceConfigurationResource(Client, response), response.GetRawResponse())); + var uri = _containerServiceMaintenanceConfigurationMaintenanceConfigurationsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, configName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ContainerServiceArmOperation(Response.FromValue(new ContainerServiceMaintenanceConfigurationResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/ContainerServiceMaintenanceConfigurationResource.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/ContainerServiceMaintenanceConfigurationResource.cs index ea1bd576970b..91631c4757a3 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/ContainerServiceMaintenanceConfigurationResource.cs +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/ContainerServiceMaintenanceConfigurationResource.cs @@ -200,7 +200,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _containerServiceMaintenanceConfigurationMaintenanceConfigurationsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new ContainerServiceArmOperation(response); + var uri = _containerServiceMaintenanceConfigurationMaintenanceConfigurationsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ContainerServiceArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -242,7 +244,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _containerServiceMaintenanceConfigurationMaintenanceConfigurationsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new ContainerServiceArmOperation(response); + var uri = _containerServiceMaintenanceConfigurationMaintenanceConfigurationsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ContainerServiceArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -288,7 +292,9 @@ public virtual async Task(Response.FromValue(new ContainerServiceMaintenanceConfigurationResource(Client, response), response.GetRawResponse())); + var uri = _containerServiceMaintenanceConfigurationMaintenanceConfigurationsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ContainerServiceArmOperation(Response.FromValue(new ContainerServiceMaintenanceConfigurationResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -334,7 +340,9 @@ public virtual ArmOperation Up try { var response = _containerServiceMaintenanceConfigurationMaintenanceConfigurationsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new ContainerServiceArmOperation(Response.FromValue(new ContainerServiceMaintenanceConfigurationResource(Client, response), response.GetRawResponse())); + var uri = _containerServiceMaintenanceConfigurationMaintenanceConfigurationsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ContainerServiceArmOperation(Response.FromValue(new ContainerServiceMaintenanceConfigurationResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/ContainerServicePrivateEndpointConnectionCollection.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/ContainerServicePrivateEndpointConnectionCollection.cs index 35be2871f0a7..37a4648215e1 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/ContainerServicePrivateEndpointConnectionCollection.cs +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/ContainerServicePrivateEndpointConnectionCollection.cs @@ -90,7 +90,9 @@ public virtual async Task(Response.FromValue(new ContainerServicePrivateEndpointConnectionResource(Client, response), response.GetRawResponse())); + var uri = _containerServicePrivateEndpointConnectionPrivateEndpointConnectionsRestClient.CreateUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, privateEndpointConnectionName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ContainerServiceArmOperation(Response.FromValue(new ContainerServicePrivateEndpointConnectionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation C try { var response = _containerServicePrivateEndpointConnectionPrivateEndpointConnectionsRestClient.Update(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, privateEndpointConnectionName, data, cancellationToken); - var operation = new ContainerServiceArmOperation(Response.FromValue(new ContainerServicePrivateEndpointConnectionResource(Client, response), response.GetRawResponse())); + var uri = _containerServicePrivateEndpointConnectionPrivateEndpointConnectionsRestClient.CreateUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, privateEndpointConnectionName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ContainerServiceArmOperation(Response.FromValue(new ContainerServicePrivateEndpointConnectionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/ContainerServicePrivateEndpointConnectionResource.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/ContainerServicePrivateEndpointConnectionResource.cs index 545bf76756d7..e351b6a59d43 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/ContainerServicePrivateEndpointConnectionResource.cs +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/ContainerServicePrivateEndpointConnectionResource.cs @@ -288,7 +288,9 @@ public virtual async Task(Response.FromValue(new ContainerServicePrivateEndpointConnectionResource(Client, response), response.GetRawResponse())); + var uri = _containerServicePrivateEndpointConnectionPrivateEndpointConnectionsRestClient.CreateUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ContainerServiceArmOperation(Response.FromValue(new ContainerServicePrivateEndpointConnectionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -334,7 +336,9 @@ public virtual ArmOperation U try { var response = _containerServicePrivateEndpointConnectionPrivateEndpointConnectionsRestClient.Update(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new ContainerServiceArmOperation(Response.FromValue(new ContainerServicePrivateEndpointConnectionResource(Client, response), response.GetRawResponse())); + var uri = _containerServicePrivateEndpointConnectionPrivateEndpointConnectionsRestClient.CreateUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ContainerServiceArmOperation(Response.FromValue(new ContainerServicePrivateEndpointConnectionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/LongRunningOperation/ContainerServiceArmOperation.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/LongRunningOperation/ContainerServiceArmOperation.cs index 81b07b53b652..64f7176c7665 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/LongRunningOperation/ContainerServiceArmOperation.cs +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/LongRunningOperation/ContainerServiceArmOperation.cs @@ -20,21 +20,24 @@ internal class ContainerServiceArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of ContainerServiceArmOperation for mocking. protected ContainerServiceArmOperation() { } - internal ContainerServiceArmOperation(Response response) + internal ContainerServiceArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal ContainerServiceArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "ContainerServiceArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal ContainerServiceArmOperation(ClientDiagnostics clientDiagnostics, HttpP public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/LongRunningOperation/ContainerServiceArmOperationOfT.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/LongRunningOperation/ContainerServiceArmOperationOfT.cs index 2b756547ea95..ce3bc7a3a18f 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/LongRunningOperation/ContainerServiceArmOperationOfT.cs +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/LongRunningOperation/ContainerServiceArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class ContainerServiceArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of ContainerServiceArmOperation for mocking. protected ContainerServiceArmOperation() { } - internal ContainerServiceArmOperation(Response response) + internal ContainerServiceArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal ContainerServiceArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "ContainerServiceArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal ContainerServiceArmOperation(IOperationSource source, ClientDiagnost public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/AgentPoolSnapshotResource.Serialization.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/AgentPoolSnapshotResource.Serialization.cs new file mode 100644 index 000000000000..2c8a729c84d0 --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/AgentPoolSnapshotResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ContainerService +{ + public partial class AgentPoolSnapshotResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + AgentPoolSnapshotData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + AgentPoolSnapshotData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/AgentPoolUpgradeProfileResource.Serialization.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/AgentPoolUpgradeProfileResource.Serialization.cs new file mode 100644 index 000000000000..4ae1f14b7f23 --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/AgentPoolUpgradeProfileResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ContainerService +{ + public partial class AgentPoolUpgradeProfileResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + AgentPoolUpgradeProfileData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + AgentPoolUpgradeProfileData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceAgentPoolResource.Serialization.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceAgentPoolResource.Serialization.cs new file mode 100644 index 000000000000..cbe39d0f2de4 --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceAgentPoolResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ContainerService +{ + public partial class ContainerServiceAgentPoolResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ContainerServiceAgentPoolData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ContainerServiceAgentPoolData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceMaintenanceConfigurationResource.Serialization.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceMaintenanceConfigurationResource.Serialization.cs new file mode 100644 index 000000000000..f49745515233 --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceMaintenanceConfigurationResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ContainerService +{ + public partial class ContainerServiceMaintenanceConfigurationResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ContainerServiceMaintenanceConfigurationData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ContainerServiceMaintenanceConfigurationData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceManagedClusterResource.Serialization.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceManagedClusterResource.Serialization.cs new file mode 100644 index 000000000000..929d7b4cc35f --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceManagedClusterResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ContainerService +{ + public partial class ContainerServiceManagedClusterResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ContainerServiceManagedClusterData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ContainerServiceManagedClusterData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServicePrivateEndpointConnectionResource.Serialization.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServicePrivateEndpointConnectionResource.Serialization.cs new file mode 100644 index 000000000000..3815615192ba --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServicePrivateEndpointConnectionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ContainerService +{ + public partial class ContainerServicePrivateEndpointConnectionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ContainerServicePrivateEndpointConnectionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ContainerServicePrivateEndpointConnectionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceTrustedAccessRoleBindingResource.Serialization.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceTrustedAccessRoleBindingResource.Serialization.cs new file mode 100644 index 000000000000..1961aff05964 --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceTrustedAccessRoleBindingResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ContainerService +{ + public partial class ContainerServiceTrustedAccessRoleBindingResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ContainerServiceTrustedAccessRoleBindingData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ContainerServiceTrustedAccessRoleBindingData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterUpgradeProfileResource.Serialization.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterUpgradeProfileResource.Serialization.cs new file mode 100644 index 000000000000..f5bc50c15aed --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterUpgradeProfileResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ContainerService +{ + public partial class ManagedClusterUpgradeProfileResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ManagedClusterUpgradeProfileData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ManagedClusterUpgradeProfileData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/MeshRevisionProfileResource.Serialization.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/MeshRevisionProfileResource.Serialization.cs new file mode 100644 index 000000000000..82fce1a4cea0 --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/MeshRevisionProfileResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ContainerService +{ + public partial class MeshRevisionProfileResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MeshRevisionProfileData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MeshRevisionProfileData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/MeshUpgradeProfileResource.Serialization.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/MeshUpgradeProfileResource.Serialization.cs new file mode 100644 index 000000000000..dac1161bee3c --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/MeshUpgradeProfileResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ContainerService +{ + public partial class MeshUpgradeProfileResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MeshUpgradeProfileData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MeshUpgradeProfileData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/OSOptionProfileResource.Serialization.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/OSOptionProfileResource.Serialization.cs new file mode 100644 index 000000000000..aa168150bba8 --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/OSOptionProfileResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ContainerService +{ + public partial class OSOptionProfileResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + OSOptionProfileData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + OSOptionProfileData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/RestOperations/AgentPoolsRestOperations.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/RestOperations/AgentPoolsRestOperations.cs index 71157cc8c2cb..db4e9ead7c3a 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/RestOperations/AgentPoolsRestOperations.cs +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/RestOperations/AgentPoolsRestOperations.cs @@ -37,6 +37,23 @@ public AgentPoolsRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateAbortLatestOperationRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string agentPoolName) + { + 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.ContainerService/managedclusters/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/agentPools/", false); + uri.AppendPath(agentPoolName, true); + uri.AppendPath("/abort", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateAbortLatestOperationRequest(string subscriptionId, string resourceGroupName, string resourceName, string agentPoolName) { var message = _pipeline.CreateMessage(); @@ -114,6 +131,21 @@ public Response AbortLatestOperation(string subscriptionId, string resourceGroup } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string resourceName) + { + 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.ContainerService/managedClusters/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/agentPools", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); @@ -193,6 +225,22 @@ public Response List(string subscriptionId, } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string agentPoolName) + { + 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.ContainerService/managedClusters/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/agentPools/", false); + uri.AppendPath(agentPoolName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string resourceName, string agentPoolName) { var message = _pipeline.CreateMessage(); @@ -281,6 +329,22 @@ public Response Get(string subscriptionId, string } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string agentPoolName, ContainerServiceAgentPoolData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ContainerService/managedClusters/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/agentPools/", false); + uri.AppendPath(agentPoolName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string resourceName, string agentPoolName, ContainerServiceAgentPoolData data) { var message = _pipeline.CreateMessage(); @@ -365,6 +429,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string agentPoolName) + { + 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.ContainerService/managedClusters/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/agentPools/", false); + uri.AppendPath(agentPoolName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string resourceName, string agentPoolName) { var message = _pipeline.CreateMessage(); @@ -441,6 +521,23 @@ public Response Delete(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateGetUpgradeProfileRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string agentPoolName) + { + 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.ContainerService/managedClusters/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/agentPools/", false); + uri.AppendPath(agentPoolName, true); + uri.AppendPath("/upgradeProfiles/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetUpgradeProfileRequest(string subscriptionId, string resourceGroupName, string resourceName, string agentPoolName) { var message = _pipeline.CreateMessage(); @@ -530,6 +627,21 @@ public Response GetUpgradeProfile(string subscripti } } + internal RequestUriBuilder CreateGetAvailableAgentPoolVersionsRequestUri(string subscriptionId, string resourceGroupName, string resourceName) + { + 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.ContainerService/managedClusters/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/availableAgentPoolVersions", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetAvailableAgentPoolVersionsRequest(string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); @@ -609,6 +721,23 @@ public Response GetAvailableAgentPoolVersions(string } } + internal RequestUriBuilder CreateUpgradeNodeImageVersionRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string agentPoolName) + { + 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.ContainerService/managedClusters/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/agentPools/", false); + uri.AppendPath(agentPoolName, true); + uri.AppendPath("/upgradeNodeImageVersion", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpgradeNodeImageVersionRequest(string subscriptionId, string resourceGroupName, string resourceName, string agentPoolName) { var message = _pipeline.CreateMessage(); @@ -686,6 +815,14 @@ public Response UpgradeNodeImageVersion(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string resourceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/RestOperations/MaintenanceConfigurationsRestOperations.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/RestOperations/MaintenanceConfigurationsRestOperations.cs index 2d63b27756c4..ca644a9bc2af 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/RestOperations/MaintenanceConfigurationsRestOperations.cs +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/RestOperations/MaintenanceConfigurationsRestOperations.cs @@ -37,6 +37,21 @@ public MaintenanceConfigurationsRestOperations(HttpPipeline pipeline, string app _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByManagedClusterRequestUri(string subscriptionId, string resourceGroupName, string resourceName) + { + 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.ContainerService/managedClusters/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/maintenanceConfigurations", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByManagedClusterRequest(string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByManage } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string configName) + { + 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.ContainerService/managedClusters/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/maintenanceConfigurations/", false); + uri.AppendPath(configName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string resourceName, string configName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscri } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string configName, ContainerServiceMaintenanceConfigurationData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ContainerService/managedClusters/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/maintenanceConfigurations/", false); + uri.AppendPath(configName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string resourceName, string configName, ContainerServiceMaintenanceConfigurationData data) { var message = _pipeline.CreateMessage(); @@ -298,6 +345,22 @@ public Response CreateOrUpdate(str } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string configName) + { + 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.ContainerService/managedClusters/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/maintenanceConfigurations/", false); + uri.AppendPath(configName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string resourceName, string configName) { var message = _pipeline.CreateMessage(); @@ -374,6 +437,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateListByManagedClusterNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string resourceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByManagedClusterNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/RestOperations/ManagedClustersRestOperations.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/RestOperations/ManagedClustersRestOperations.cs index dbe0df9412a3..b3d3316b7a6d 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/RestOperations/ManagedClustersRestOperations.cs +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/RestOperations/ManagedClustersRestOperations.cs @@ -37,6 +37,23 @@ public ManagedClustersRestOperations(HttpPipeline pipeline, string applicationId _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetOSOptionsRequestUri(string subscriptionId, AzureLocation location, ResourceType? resourceType) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ContainerService/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/osOptions/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (resourceType != null) + { + uri.AppendQuery("resource-type", resourceType.Value, true); + } + return uri; + } + internal HttpMessage CreateGetOSOptionsRequest(string subscriptionId, AzureLocation location, ResourceType? resourceType) { var message = _pipeline.CreateMessage(); @@ -118,6 +135,19 @@ public Response GetOSOptions(string subscriptionId, AzureLo } } + internal RequestUriBuilder CreateListKubernetesVersionsRequestUri(string subscriptionId, AzureLocation location) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ContainerService/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/kubernetesVersions", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListKubernetesVersionsRequest(string subscriptionId, AzureLocation location) { var message = _pipeline.CreateMessage(); @@ -189,6 +219,17 @@ public Response ListKubernetesVersions(string subsc } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ContainerService/managedClusters", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -256,6 +297,19 @@ public Response List(string subscriptionId, Cancellati } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.ContainerService/managedClusters", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -329,6 +383,21 @@ public Response ListByResourceGroup(string subscriptio } } + internal RequestUriBuilder CreateGetUpgradeProfileRequestUri(string subscriptionId, string resourceGroupName, string resourceName) + { + 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.ContainerService/managedClusters/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/upgradeProfiles/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetUpgradeProfileRequest(string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); @@ -412,6 +481,23 @@ public Response GetUpgradeProfile(string subsc } } + internal RequestUriBuilder CreateGetAccessProfileRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string roleName) + { + 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.ContainerService/managedClusters/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/accessProfiles/", false); + uri.AppendPath(roleName, true); + uri.AppendPath("/listCredential", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetAccessProfileRequest(string subscriptionId, string resourceGroupName, string resourceName, string roleName) { var message = _pipeline.CreateMessage(); @@ -497,6 +583,25 @@ public Response GetAccessProfile(string subscriptio } } + internal RequestUriBuilder CreateListClusterAdminCredentialsRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string serverFqdn) + { + 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.ContainerService/managedClusters/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/listClusterAdminCredential", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (serverFqdn != null) + { + uri.AppendQuery("server-fqdn", serverFqdn, true); + } + return uri; + } + internal HttpMessage CreateListClusterAdminCredentialsRequest(string subscriptionId, string resourceGroupName, string resourceName, string serverFqdn) { var message = _pipeline.CreateMessage(); @@ -582,6 +687,29 @@ public Response ListClusterAdminCredentials(string su } } + internal RequestUriBuilder CreateListClusterUserCredentialsRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string serverFqdn, KubeConfigFormat? format) + { + 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.ContainerService/managedClusters/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/listClusterUserCredential", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (serverFqdn != null) + { + uri.AppendQuery("server-fqdn", serverFqdn, true); + } + if (format != null) + { + uri.AppendQuery("format", format.Value.ToString(), true); + } + return uri; + } + internal HttpMessage CreateListClusterUserCredentialsRequest(string subscriptionId, string resourceGroupName, string resourceName, string serverFqdn, KubeConfigFormat? format) { var message = _pipeline.CreateMessage(); @@ -673,6 +801,25 @@ public Response ListClusterUserCredentials(string sub } } + internal RequestUriBuilder CreateListClusterMonitoringUserCredentialsRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string serverFqdn) + { + 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.ContainerService/managedClusters/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/listClusterMonitoringUserCredential", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (serverFqdn != null) + { + uri.AppendQuery("server-fqdn", serverFqdn, true); + } + return uri; + } + internal HttpMessage CreateListClusterMonitoringUserCredentialsRequest(string subscriptionId, string resourceGroupName, string resourceName, string serverFqdn) { var message = _pipeline.CreateMessage(); @@ -758,6 +905,20 @@ public Response ListClusterMonitoringUserCredentials( } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string resourceName) + { + 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.ContainerService/managedClusters/", false); + uri.AppendPath(resourceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); @@ -840,6 +1001,20 @@ public Response Get(string subscriptionId, s } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string resourceName, ContainerServiceManagedClusterData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ContainerService/managedClusters/", false); + uri.AppendPath(resourceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string resourceName, ContainerServiceManagedClusterData data) { var message = _pipeline.CreateMessage(); @@ -918,6 +1093,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateTagsRequestUri(string subscriptionId, string resourceGroupName, string resourceName, ContainerServiceTagsObject containerServiceTagsObject) + { + 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.ContainerService/managedClusters/", false); + uri.AppendPath(resourceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateTagsRequest(string subscriptionId, string resourceGroupName, string resourceName, ContainerServiceTagsObject containerServiceTagsObject) { var message = _pipeline.CreateMessage(); @@ -994,6 +1183,20 @@ public Response UpdateTags(string subscriptionId, string resourceGroupName, stri } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string resourceName) + { + 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.ContainerService/managedClusters/", false); + uri.AppendPath(resourceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); @@ -1064,6 +1267,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateResetServicePrincipalProfileRequestUri(string subscriptionId, string resourceGroupName, string resourceName, ManagedClusterServicePrincipalProfile managedClusterServicePrincipalProfile) + { + 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.ContainerService/managedClusters/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/resetServicePrincipalProfile", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateResetServicePrincipalProfileRequest(string subscriptionId, string resourceGroupName, string resourceName, ManagedClusterServicePrincipalProfile managedClusterServicePrincipalProfile) { var message = _pipeline.CreateMessage(); @@ -1143,6 +1361,21 @@ public Response ResetServicePrincipalProfile(string subscriptionId, string resou } } + internal RequestUriBuilder CreateResetAadProfileRequestUri(string subscriptionId, string resourceGroupName, string resourceName, ManagedClusterAadProfile managedClusterAadProfile) + { + 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.ContainerService/managedClusters/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/resetAADProfile", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateResetAadProfileRequest(string subscriptionId, string resourceGroupName, string resourceName, ManagedClusterAadProfile managedClusterAadProfile) { var message = _pipeline.CreateMessage(); @@ -1222,6 +1455,21 @@ public Response ResetAadProfile(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateRotateClusterCertificatesRequestUri(string subscriptionId, string resourceGroupName, string resourceName) + { + 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.ContainerService/managedClusters/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/rotateClusterCertificates", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRotateClusterCertificatesRequest(string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); @@ -1293,6 +1541,21 @@ public Response RotateClusterCertificates(string subscriptionId, string resource } } + internal RequestUriBuilder CreateAbortLatestOperationRequestUri(string subscriptionId, string resourceGroupName, string resourceName) + { + 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.ContainerService/managedclusters/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/abort", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateAbortLatestOperationRequest(string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); @@ -1364,6 +1627,21 @@ public Response AbortLatestOperation(string subscriptionId, string resourceGroup } } + internal RequestUriBuilder CreateRotateServiceAccountSigningKeysRequestUri(string subscriptionId, string resourceGroupName, string resourceName) + { + 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.ContainerService/managedClusters/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/rotateServiceAccountSigningKeys", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRotateServiceAccountSigningKeysRequest(string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); @@ -1435,6 +1713,21 @@ public Response RotateServiceAccountSigningKeys(string subscriptionId, string re } } + internal RequestUriBuilder CreateStopRequestUri(string subscriptionId, string resourceGroupName, string resourceName) + { + 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.ContainerService/managedClusters/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/stop", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStopRequest(string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); @@ -1506,6 +1799,21 @@ public Response Stop(string subscriptionId, string resourceGroupName, string res } } + internal RequestUriBuilder CreateStartRequestUri(string subscriptionId, string resourceGroupName, string resourceName) + { + 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.ContainerService/managedClusters/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/start", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStartRequest(string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); @@ -1577,6 +1885,21 @@ public Response Start(string subscriptionId, string resourceGroupName, string re } } + internal RequestUriBuilder CreateRunCommandRequestUri(string subscriptionId, string resourceGroupName, string resourceName, ManagedClusterRunCommandContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ContainerService/managedClusters/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/runCommand", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRunCommandRequest(string subscriptionId, string resourceGroupName, string resourceName, ManagedClusterRunCommandContent content) { var message = _pipeline.CreateMessage(); @@ -1656,6 +1979,22 @@ public Response RunCommand(string subscriptionId, string resourceGroupName, stri } } + internal RequestUriBuilder CreateGetCommandResultRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string commandId) + { + 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.ContainerService/managedClusters/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/commandResults/", false); + uri.AppendPath(commandId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetCommandResultRequest(string subscriptionId, string resourceGroupName, string resourceName, string commandId) { var message = _pipeline.CreateMessage(); @@ -1744,6 +2083,21 @@ public Response GetCommandResult(string subscrip } } + internal RequestUriBuilder CreateListOutboundNetworkDependenciesEndpointsRequestUri(string subscriptionId, string resourceGroupName, string resourceName) + { + 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.ContainerService/managedClusters/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/outboundNetworkDependenciesEndpoints", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListOutboundNetworkDependenciesEndpointsRequest(string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); @@ -1823,6 +2177,19 @@ public Response ListOutboundNetworkDepend } } + internal RequestUriBuilder CreateListMeshRevisionProfilesRequestUri(string subscriptionId, AzureLocation location) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ContainerService/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/meshRevisionProfiles", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListMeshRevisionProfilesRequest(string subscriptionId, AzureLocation location) { var message = _pipeline.CreateMessage(); @@ -1894,6 +2261,20 @@ public Response ListMeshRevisionProfiles(string subscri } } + internal RequestUriBuilder CreateGetMeshRevisionProfileRequestUri(string subscriptionId, AzureLocation location, string mode) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ContainerService/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/meshRevisionProfiles/", false); + uri.AppendPath(mode, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetMeshRevisionProfileRequest(string subscriptionId, AzureLocation location, string mode) { var message = _pipeline.CreateMessage(); @@ -1974,6 +2355,21 @@ public Response GetMeshRevisionProfile(string subscript } } + internal RequestUriBuilder CreateListMeshUpgradeProfilesRequestUri(string subscriptionId, string resourceGroupName, string resourceName) + { + 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.ContainerService/managedClusters/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/meshUpgradeProfiles", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListMeshUpgradeProfilesRequest(string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); @@ -2053,6 +2449,22 @@ public Response ListMeshUpgradeProfiles(string subscript } } + internal RequestUriBuilder CreateGetMeshUpgradeProfileRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string mode) + { + 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.ContainerService/managedClusters/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/meshUpgradeProfiles/", false); + uri.AppendPath(mode, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetMeshUpgradeProfileRequest(string subscriptionId, string resourceGroupName, string resourceName, string mode) { var message = _pipeline.CreateMessage(); @@ -2141,6 +2553,14 @@ public Response GetMeshUpgradeProfile(string subscriptio } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -2209,6 +2629,14 @@ public Response ListNextPage(string nextLink, string s } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -2281,6 +2709,14 @@ public Response ListByResourceGroupNextPage(string nex } } + internal RequestUriBuilder CreateListOutboundNetworkDependenciesEndpointsNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string resourceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListOutboundNetworkDependenciesEndpointsNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); @@ -2357,6 +2793,14 @@ public Response ListOutboundNetworkDepend } } + internal RequestUriBuilder CreateListMeshRevisionProfilesNextPageRequestUri(string nextLink, string subscriptionId, AzureLocation location) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListMeshRevisionProfilesNextPageRequest(string nextLink, string subscriptionId, AzureLocation location) { var message = _pipeline.CreateMessage(); @@ -2427,6 +2871,14 @@ public Response ListMeshRevisionProfilesNextPage(string } } + internal RequestUriBuilder CreateListMeshUpgradeProfilesNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string resourceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListMeshUpgradeProfilesNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs index 854d29bc3b04..f5728f414bd1 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs @@ -37,6 +37,21 @@ public PrivateEndpointConnectionsRestOperations(HttpPipeline pipeline, string ap _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string resourceName) + { + 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.ContainerService/managedClusters/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/privateEndpointConnections", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response List(string } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string privateEndpointConnectionName) + { + 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.ContainerService/managedClusters/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string resourceName, string privateEndpointConnectionName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscr } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string privateEndpointConnectionName, ContainerServicePrivateEndpointConnectionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ContainerService/managedClusters/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string resourceName, string privateEndpointConnectionName, ContainerServicePrivateEndpointConnectionData data) { var message = _pipeline.CreateMessage(); @@ -298,6 +345,22 @@ public Response Update(string sub } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string privateEndpointConnectionName) + { + 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.ContainerService/managedClusters/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string resourceName, string privateEndpointConnectionName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs index 8276e0eb3112..41dceadc6dc3 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs @@ -37,6 +37,21 @@ public PrivateLinkResourcesRestOperations(HttpPipeline pipeline, string applicat _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string resourceName) + { + 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.ContainerService/managedClusters/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/privateLinkResources", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/RestOperations/ResolvePrivateLinkServiceIdRestOperations.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/RestOperations/ResolvePrivateLinkServiceIdRestOperations.cs index 45d6853a0f2c..4fde7ad62b37 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/RestOperations/ResolvePrivateLinkServiceIdRestOperations.cs +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/RestOperations/ResolvePrivateLinkServiceIdRestOperations.cs @@ -37,6 +37,21 @@ public ResolvePrivateLinkServiceIdRestOperations(HttpPipeline pipeline, string a _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreatePostRequestUri(string subscriptionId, string resourceGroupName, string resourceName, ContainerServicePrivateLinkResourceData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ContainerService/managedClusters/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/resolvePrivateLinkServiceId", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreatePostRequest(string subscriptionId, string resourceGroupName, string resourceName, ContainerServicePrivateLinkResourceData data) { var message = _pipeline.CreateMessage(); diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/RestOperations/SnapshotsRestOperations.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/RestOperations/SnapshotsRestOperations.cs index c38aee9795e9..2fa4c746c9fe 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/RestOperations/SnapshotsRestOperations.cs +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/RestOperations/SnapshotsRestOperations.cs @@ -37,6 +37,17 @@ public SnapshotsRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ContainerService/snapshots", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,19 @@ public Response List(string subscriptionId, Cancell } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.ContainerService/snapshots", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -177,6 +201,20 @@ public Response ListByResourceGroup(string subscrip } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string resourceName) + { + 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.ContainerService/snapshots/", false); + uri.AppendPath(resourceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); @@ -259,6 +297,20 @@ public Response Get(string subscriptionId, string resourc } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string resourceName, AgentPoolSnapshotData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ContainerService/snapshots/", false); + uri.AppendPath(resourceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string resourceName, AgentPoolSnapshotData data) { var message = _pipeline.CreateMessage(); @@ -347,6 +399,20 @@ public Response CreateOrUpdate(string subscriptionId, str } } + internal RequestUriBuilder CreateUpdateTagsRequestUri(string subscriptionId, string resourceGroupName, string resourceName, ContainerServiceTagsObject containerServiceTagsObject) + { + 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.ContainerService/snapshots/", false); + uri.AppendPath(resourceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateTagsRequest(string subscriptionId, string resourceGroupName, string resourceName, ContainerServiceTagsObject containerServiceTagsObject) { var message = _pipeline.CreateMessage(); @@ -433,6 +499,20 @@ public Response UpdateTags(string subscriptionId, string } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string resourceName) + { + 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.ContainerService/snapshots/", false); + uri.AppendPath(resourceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); @@ -503,6 +583,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -571,6 +659,14 @@ public Response ListNextPage(string nextLink, strin } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/RestOperations/TrustedAccessRoleBindingsRestOperations.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/RestOperations/TrustedAccessRoleBindingsRestOperations.cs index 76af18999406..b2cd2fe1b3a1 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/RestOperations/TrustedAccessRoleBindingsRestOperations.cs +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/RestOperations/TrustedAccessRoleBindingsRestOperations.cs @@ -37,6 +37,21 @@ public TrustedAccessRoleBindingsRestOperations(HttpPipeline pipeline, string app _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string resourceName) + { + 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.ContainerService/managedClusters/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/trustedAccessRoleBindings", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response List(string subscriptionId, } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string trustedAccessRoleBindingName) + { + 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.ContainerService/managedClusters/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/trustedAccessRoleBindings/", false); + uri.AppendPath(trustedAccessRoleBindingName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string resourceName, string trustedAccessRoleBindingName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscri } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string trustedAccessRoleBindingName, ContainerServiceTrustedAccessRoleBindingData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ContainerService/managedClusters/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/trustedAccessRoleBindings/", false); + uri.AppendPath(trustedAccessRoleBindingName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string resourceName, string trustedAccessRoleBindingName, ContainerServiceTrustedAccessRoleBindingData data) { var message = _pipeline.CreateMessage(); @@ -288,6 +335,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string trustedAccessRoleBindingName) + { + 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.ContainerService/managedClusters/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/trustedAccessRoleBindings/", false); + uri.AppendPath(trustedAccessRoleBindingName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string resourceName, string trustedAccessRoleBindingName) { var message = _pipeline.CreateMessage(); @@ -364,6 +427,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string resourceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/RestOperations/TrustedAccessRolesRestOperations.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/RestOperations/TrustedAccessRolesRestOperations.cs index 8ccca97984af..7155345d5e90 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/RestOperations/TrustedAccessRolesRestOperations.cs +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/RestOperations/TrustedAccessRolesRestOperations.cs @@ -37,6 +37,19 @@ public TrustedAccessRolesRestOperations(HttpPipeline pipeline, string applicatio _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, AzureLocation location) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ContainerService/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/trustedAccessRoles", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, AzureLocation location) { var message = _pipeline.CreateMessage(); @@ -108,6 +121,14 @@ public Response List(string subscriptionId, AzureLo } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, AzureLocation location) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, AzureLocation location) { var message = _pipeline.CreateMessage(); diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/DataTransferJobGetResultCollection.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/DataTransferJobGetResultCollection.cs index 0876765f5a13..8999c1856d00 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/DataTransferJobGetResultCollection.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/DataTransferJobGetResultCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> Create try { var response = await _dataTransferJobGetResultDataTransferJobsRestClient.CreateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, jobName, content, cancellationToken).ConfigureAwait(false); - var operation = new CosmosDBArmOperation(Response.FromValue(new DataTransferJobGetResultResource(Client, response), response.GetRawResponse())); + var uri = _dataTransferJobGetResultDataTransferJobsRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, jobName, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new CosmosDBArmOperation(Response.FromValue(new DataTransferJobGetResultResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -140,7 +142,9 @@ public virtual ArmOperation CreateOrUpdate(Wai try { var response = _dataTransferJobGetResultDataTransferJobsRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, jobName, content, cancellationToken); - var operation = new CosmosDBArmOperation(Response.FromValue(new DataTransferJobGetResultResource(Client, response), response.GetRawResponse())); + var uri = _dataTransferJobGetResultDataTransferJobsRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, jobName, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new CosmosDBArmOperation(Response.FromValue(new DataTransferJobGetResultResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/DataTransferJobGetResultResource.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/DataTransferJobGetResultResource.cs index 36c278f9db0a..c4e6bb3b1264 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/DataTransferJobGetResultResource.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/DataTransferJobGetResultResource.cs @@ -205,7 +205,9 @@ public virtual async Task> Update try { var response = await _dataTransferJobGetResultDataTransferJobsRestClient.CreateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, content, cancellationToken).ConfigureAwait(false); - var operation = new CosmosDBArmOperation(Response.FromValue(new DataTransferJobGetResultResource(Client, response), response.GetRawResponse())); + var uri = _dataTransferJobGetResultDataTransferJobsRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new CosmosDBArmOperation(Response.FromValue(new DataTransferJobGetResultResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -251,7 +253,9 @@ public virtual ArmOperation Update(WaitUntil w try { var response = _dataTransferJobGetResultDataTransferJobsRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, content, cancellationToken); - var operation = new CosmosDBArmOperation(Response.FromValue(new DataTransferJobGetResultResource(Client, response), response.GetRawResponse())); + var uri = _dataTransferJobGetResultDataTransferJobsRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new CosmosDBArmOperation(Response.FromValue(new DataTransferJobGetResultResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/LongRunningOperation/CosmosDBArmOperation.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/LongRunningOperation/CosmosDBArmOperation.cs index 8db6e0722442..f231e5d97095 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/LongRunningOperation/CosmosDBArmOperation.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/LongRunningOperation/CosmosDBArmOperation.cs @@ -20,21 +20,24 @@ internal class CosmosDBArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of CosmosDBArmOperation for mocking. protected CosmosDBArmOperation() { } - internal CosmosDBArmOperation(Response response) + internal CosmosDBArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal CosmosDBArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "CosmosDBArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal CosmosDBArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/LongRunningOperation/CosmosDBArmOperationOfT.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/LongRunningOperation/CosmosDBArmOperationOfT.cs index f0197d651a22..7e0b044f0913 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/LongRunningOperation/CosmosDBArmOperationOfT.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/LongRunningOperation/CosmosDBArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class CosmosDBArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of CosmosDBArmOperation for mocking. protected CosmosDBArmOperation() { } - internal CosmosDBArmOperation(Response response) + internal CosmosDBArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal CosmosDBArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "CosmosDBArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal CosmosDBArmOperation(IOperationSource source, ClientDiagnostics clie public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CassandraClusterResource.Serialization.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CassandraClusterResource.Serialization.cs new file mode 100644 index 000000000000..918cd019954f --- /dev/null +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CassandraClusterResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.CosmosDB +{ + public partial class CassandraClusterResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + CassandraClusterData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + CassandraClusterData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CassandraDataCenterResource.Serialization.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CassandraDataCenterResource.Serialization.cs new file mode 100644 index 000000000000..15e6dce44483 --- /dev/null +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CassandraDataCenterResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.CosmosDB +{ + public partial class CassandraDataCenterResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + CassandraDataCenterData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + CassandraDataCenterData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CassandraKeyspaceResource.Serialization.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CassandraKeyspaceResource.Serialization.cs new file mode 100644 index 000000000000..d8b195f310f5 --- /dev/null +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CassandraKeyspaceResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.CosmosDB +{ + public partial class CassandraKeyspaceResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + CassandraKeyspaceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + CassandraKeyspaceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CassandraKeyspaceThroughputSettingResource.Serialization.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CassandraKeyspaceThroughputSettingResource.Serialization.cs new file mode 100644 index 000000000000..6481e73baabd --- /dev/null +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CassandraKeyspaceThroughputSettingResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.CosmosDB +{ + public partial class CassandraKeyspaceThroughputSettingResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ThroughputSettingData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ThroughputSettingData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CassandraTableResource.Serialization.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CassandraTableResource.Serialization.cs new file mode 100644 index 000000000000..d880b5ed1911 --- /dev/null +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CassandraTableResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.CosmosDB +{ + public partial class CassandraTableResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + CassandraTableData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + CassandraTableData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CassandraTableThroughputSettingResource.Serialization.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CassandraTableThroughputSettingResource.Serialization.cs new file mode 100644 index 000000000000..1f651326db24 --- /dev/null +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CassandraTableThroughputSettingResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.CosmosDB +{ + public partial class CassandraTableThroughputSettingResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ThroughputSettingData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ThroughputSettingData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CassandraViewGetResultResource.Serialization.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CassandraViewGetResultResource.Serialization.cs new file mode 100644 index 000000000000..245934225a28 --- /dev/null +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CassandraViewGetResultResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.CosmosDB +{ + public partial class CassandraViewGetResultResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + CassandraViewGetResultData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + CassandraViewGetResultData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CassandraViewThroughputSettingResource.Serialization.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CassandraViewThroughputSettingResource.Serialization.cs new file mode 100644 index 000000000000..a710cc152f37 --- /dev/null +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CassandraViewThroughputSettingResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.CosmosDB +{ + public partial class CassandraViewThroughputSettingResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ThroughputSettingData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ThroughputSettingData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBAccountResource.Serialization.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBAccountResource.Serialization.cs new file mode 100644 index 000000000000..a5cbe8914c80 --- /dev/null +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBAccountResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.CosmosDB +{ + public partial class CosmosDBAccountResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + CosmosDBAccountData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + CosmosDBAccountData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBFirewallRuleResource.Serialization.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBFirewallRuleResource.Serialization.cs new file mode 100644 index 000000000000..73203238085c --- /dev/null +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBFirewallRuleResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.CosmosDB +{ + public partial class CosmosDBFirewallRuleResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + CosmosDBFirewallRuleData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + CosmosDBFirewallRuleData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBLocationResource.Serialization.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBLocationResource.Serialization.cs new file mode 100644 index 000000000000..c9dc978b4813 --- /dev/null +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBLocationResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.CosmosDB +{ + public partial class CosmosDBLocationResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + CosmosDBLocationData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + CosmosDBLocationData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBPrivateEndpointConnectionResource.Serialization.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBPrivateEndpointConnectionResource.Serialization.cs new file mode 100644 index 000000000000..02e90005e318 --- /dev/null +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBPrivateEndpointConnectionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.CosmosDB +{ + public partial class CosmosDBPrivateEndpointConnectionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + CosmosDBPrivateEndpointConnectionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + CosmosDBPrivateEndpointConnectionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBPrivateLinkResource.Serialization.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBPrivateLinkResource.Serialization.cs new file mode 100644 index 000000000000..9a4c4deb1726 --- /dev/null +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBPrivateLinkResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.CosmosDB +{ + public partial class CosmosDBPrivateLinkResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + CosmosDBPrivateLinkResourceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + CosmosDBPrivateLinkResourceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBServiceResource.Serialization.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBServiceResource.Serialization.cs new file mode 100644 index 000000000000..3f274b68e9bf --- /dev/null +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBServiceResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.CosmosDB +{ + public partial class CosmosDBServiceResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + CosmosDBServiceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + CosmosDBServiceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBSqlClientEncryptionKeyResource.Serialization.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBSqlClientEncryptionKeyResource.Serialization.cs new file mode 100644 index 000000000000..855514e9151c --- /dev/null +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBSqlClientEncryptionKeyResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.CosmosDB +{ + public partial class CosmosDBSqlClientEncryptionKeyResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + CosmosDBSqlClientEncryptionKeyData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + CosmosDBSqlClientEncryptionKeyData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBSqlContainerResource.Serialization.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBSqlContainerResource.Serialization.cs new file mode 100644 index 000000000000..cc200f13d110 --- /dev/null +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBSqlContainerResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.CosmosDB +{ + public partial class CosmosDBSqlContainerResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + CosmosDBSqlContainerData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + CosmosDBSqlContainerData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBSqlContainerThroughputSettingResource.Serialization.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBSqlContainerThroughputSettingResource.Serialization.cs new file mode 100644 index 000000000000..b02af91816a6 --- /dev/null +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBSqlContainerThroughputSettingResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.CosmosDB +{ + public partial class CosmosDBSqlContainerThroughputSettingResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ThroughputSettingData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ThroughputSettingData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBSqlDatabaseResource.Serialization.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBSqlDatabaseResource.Serialization.cs new file mode 100644 index 000000000000..02146110d280 --- /dev/null +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBSqlDatabaseResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.CosmosDB +{ + public partial class CosmosDBSqlDatabaseResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + CosmosDBSqlDatabaseData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + CosmosDBSqlDatabaseData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBSqlDatabaseThroughputSettingResource.Serialization.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBSqlDatabaseThroughputSettingResource.Serialization.cs new file mode 100644 index 000000000000..c9539942bf84 --- /dev/null +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBSqlDatabaseThroughputSettingResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.CosmosDB +{ + public partial class CosmosDBSqlDatabaseThroughputSettingResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ThroughputSettingData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ThroughputSettingData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBSqlRoleAssignmentResource.Serialization.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBSqlRoleAssignmentResource.Serialization.cs new file mode 100644 index 000000000000..0b42c3034c77 --- /dev/null +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBSqlRoleAssignmentResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.CosmosDB +{ + public partial class CosmosDBSqlRoleAssignmentResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + CosmosDBSqlRoleAssignmentData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + CosmosDBSqlRoleAssignmentData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBSqlRoleDefinitionResource.Serialization.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBSqlRoleDefinitionResource.Serialization.cs new file mode 100644 index 000000000000..f70ecd6ff504 --- /dev/null +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBSqlRoleDefinitionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.CosmosDB +{ + public partial class CosmosDBSqlRoleDefinitionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + CosmosDBSqlRoleDefinitionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + CosmosDBSqlRoleDefinitionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBSqlStoredProcedureResource.Serialization.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBSqlStoredProcedureResource.Serialization.cs new file mode 100644 index 000000000000..28ef1a8b531d --- /dev/null +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBSqlStoredProcedureResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.CosmosDB +{ + public partial class CosmosDBSqlStoredProcedureResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + CosmosDBSqlStoredProcedureData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + CosmosDBSqlStoredProcedureData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBSqlTriggerResource.Serialization.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBSqlTriggerResource.Serialization.cs new file mode 100644 index 000000000000..da3e6687360b --- /dev/null +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBSqlTriggerResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.CosmosDB +{ + public partial class CosmosDBSqlTriggerResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + CosmosDBSqlTriggerData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + CosmosDBSqlTriggerData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBSqlUserDefinedFunctionResource.Serialization.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBSqlUserDefinedFunctionResource.Serialization.cs new file mode 100644 index 000000000000..23d4ce863958 --- /dev/null +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBSqlUserDefinedFunctionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.CosmosDB +{ + public partial class CosmosDBSqlUserDefinedFunctionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + CosmosDBSqlUserDefinedFunctionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + CosmosDBSqlUserDefinedFunctionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBTableResource.Serialization.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBTableResource.Serialization.cs new file mode 100644 index 000000000000..13923498229e --- /dev/null +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBTableResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.CosmosDB +{ + public partial class CosmosDBTableResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + CosmosDBTableData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + CosmosDBTableData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosTableThroughputSettingResource.Serialization.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosTableThroughputSettingResource.Serialization.cs new file mode 100644 index 000000000000..6adee22595fd --- /dev/null +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosTableThroughputSettingResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.CosmosDB +{ + public partial class CosmosTableThroughputSettingResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ThroughputSettingData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ThroughputSettingData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/DataTransferJobGetResultResource.Serialization.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/DataTransferJobGetResultResource.Serialization.cs new file mode 100644 index 000000000000..52740ceac316 --- /dev/null +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/DataTransferJobGetResultResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.CosmosDB +{ + public partial class DataTransferJobGetResultResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DataTransferJobGetResultData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DataTransferJobGetResultData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/GraphResourceGetResultResource.Serialization.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/GraphResourceGetResultResource.Serialization.cs new file mode 100644 index 000000000000..192839ccea23 --- /dev/null +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/GraphResourceGetResultResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.CosmosDB +{ + public partial class GraphResourceGetResultResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + GraphResourceGetResultData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + GraphResourceGetResultData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/GremlinDatabaseResource.Serialization.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/GremlinDatabaseResource.Serialization.cs new file mode 100644 index 000000000000..1158de1f7cb0 --- /dev/null +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/GremlinDatabaseResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.CosmosDB +{ + public partial class GremlinDatabaseResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + GremlinDatabaseData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + GremlinDatabaseData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/GremlinDatabaseThroughputSettingResource.Serialization.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/GremlinDatabaseThroughputSettingResource.Serialization.cs new file mode 100644 index 000000000000..2d5d00d8a463 --- /dev/null +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/GremlinDatabaseThroughputSettingResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.CosmosDB +{ + public partial class GremlinDatabaseThroughputSettingResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ThroughputSettingData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ThroughputSettingData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/GremlinGraphResource.Serialization.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/GremlinGraphResource.Serialization.cs new file mode 100644 index 000000000000..7c87f49e194e --- /dev/null +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/GremlinGraphResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.CosmosDB +{ + public partial class GremlinGraphResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + GremlinGraphData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + GremlinGraphData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/GremlinGraphThroughputSettingResource.Serialization.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/GremlinGraphThroughputSettingResource.Serialization.cs new file mode 100644 index 000000000000..4cb0c360fb09 --- /dev/null +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/GremlinGraphThroughputSettingResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.CosmosDB +{ + public partial class GremlinGraphThroughputSettingResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ThroughputSettingData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ThroughputSettingData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/MongoClusterResource.Serialization.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/MongoClusterResource.Serialization.cs new file mode 100644 index 000000000000..7144cf3ad42c --- /dev/null +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/MongoClusterResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.CosmosDB +{ + public partial class MongoClusterResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MongoClusterData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MongoClusterData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/MongoDBCollectionResource.Serialization.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/MongoDBCollectionResource.Serialization.cs new file mode 100644 index 000000000000..ed0a6d7e0e29 --- /dev/null +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/MongoDBCollectionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.CosmosDB +{ + public partial class MongoDBCollectionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MongoDBCollectionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MongoDBCollectionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/MongoDBCollectionThroughputSettingResource.Serialization.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/MongoDBCollectionThroughputSettingResource.Serialization.cs new file mode 100644 index 000000000000..42851b7e658d --- /dev/null +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/MongoDBCollectionThroughputSettingResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.CosmosDB +{ + public partial class MongoDBCollectionThroughputSettingResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ThroughputSettingData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ThroughputSettingData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/MongoDBDatabaseResource.Serialization.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/MongoDBDatabaseResource.Serialization.cs new file mode 100644 index 000000000000..68a90ff56420 --- /dev/null +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/MongoDBDatabaseResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.CosmosDB +{ + public partial class MongoDBDatabaseResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MongoDBDatabaseData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MongoDBDatabaseData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/MongoDBDatabaseThroughputSettingResource.Serialization.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/MongoDBDatabaseThroughputSettingResource.Serialization.cs new file mode 100644 index 000000000000..ab51adfe8859 --- /dev/null +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/MongoDBDatabaseThroughputSettingResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.CosmosDB +{ + public partial class MongoDBDatabaseThroughputSettingResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ThroughputSettingData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ThroughputSettingData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/MongoDBRoleDefinitionResource.Serialization.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/MongoDBRoleDefinitionResource.Serialization.cs new file mode 100644 index 000000000000..90ed55103929 --- /dev/null +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/MongoDBRoleDefinitionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.CosmosDB +{ + public partial class MongoDBRoleDefinitionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MongoDBRoleDefinitionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MongoDBRoleDefinitionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/MongoDBUserDefinitionResource.Serialization.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/MongoDBUserDefinitionResource.Serialization.cs new file mode 100644 index 000000000000..e394e0dc492a --- /dev/null +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/MongoDBUserDefinitionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.CosmosDB +{ + public partial class MongoDBUserDefinitionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MongoDBUserDefinitionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MongoDBUserDefinitionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/RestorableCosmosDBAccountResource.Serialization.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/RestorableCosmosDBAccountResource.Serialization.cs new file mode 100644 index 000000000000..ea27b8b1a95a --- /dev/null +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/RestorableCosmosDBAccountResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.CosmosDB +{ + public partial class RestorableCosmosDBAccountResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + RestorableCosmosDBAccountData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + RestorableCosmosDBAccountData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/CassandraClustersRestOperations.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/CassandraClustersRestOperations.cs index 9c65a7fd0ed5..92f115d68a48 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/CassandraClustersRestOperations.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/CassandraClustersRestOperations.cs @@ -37,6 +37,17 @@ public CassandraClustersRestOperations(HttpPipeline pipeline, string application _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.DocumentDB/cassandraClusters", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,19 @@ public Response ListBySubscription(string subscripti } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.DocumentDB/cassandraClusters", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -177,6 +201,20 @@ public Response ListByResourceGroup(string subscript } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string clusterName) + { + 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.DocumentDB/cassandraClusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string clusterName) { var message = _pipeline.CreateMessage(); @@ -259,6 +297,20 @@ public Response Get(string subscriptionId, string resource } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string clusterName) + { + 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.DocumentDB/cassandraClusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string clusterName) { var message = _pipeline.CreateMessage(); @@ -329,6 +381,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateCreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string clusterName, CassandraClusterData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DocumentDB/cassandraClusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateUpdateRequest(string subscriptionId, string resourceGroupName, string clusterName, CassandraClusterData data) { var message = _pipeline.CreateMessage(); @@ -407,6 +473,20 @@ public Response CreateUpdate(string subscriptionId, string resourceGroupName, st } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string clusterName, CassandraClusterData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DocumentDB/cassandraClusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string clusterName, CassandraClusterData data) { var message = _pipeline.CreateMessage(); @@ -485,6 +565,21 @@ public Response Update(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateInvokeCommandRequestUri(string subscriptionId, string resourceGroupName, string clusterName, CassandraCommandPostBody body) + { + 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.DocumentDB/cassandraClusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/invokeCommand", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateInvokeCommandRequest(string subscriptionId, string resourceGroupName, string clusterName, CassandraCommandPostBody body) { var message = _pipeline.CreateMessage(); @@ -562,6 +657,21 @@ public Response InvokeCommand(string subscriptionId, string resourceGroupName, s } } + internal RequestUriBuilder CreateListBackupsRequestUri(string subscriptionId, string resourceGroupName, string clusterName) + { + 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.DocumentDB/cassandraClusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/backups", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBackupsRequest(string subscriptionId, string resourceGroupName, string clusterName) { var message = _pipeline.CreateMessage(); @@ -641,6 +751,22 @@ public Response ListBackups(string subscriptionId, string resourceG } } + internal RequestUriBuilder CreateGetBackupRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string backupId) + { + 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.DocumentDB/cassandraClusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/backups/", false); + uri.AppendPath(backupId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetBackupRequest(string subscriptionId, string resourceGroupName, string clusterName, string backupId) { var message = _pipeline.CreateMessage(); @@ -725,6 +851,21 @@ public Response GetBackup(string subscriptio } } + internal RequestUriBuilder CreateDeallocateRequestUri(string subscriptionId, string resourceGroupName, string clusterName, bool? xMsForceDeallocate) + { + 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.DocumentDB/cassandraClusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/deallocate", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeallocateRequest(string subscriptionId, string resourceGroupName, string clusterName, bool? xMsForceDeallocate) { var message = _pipeline.CreateMessage(); @@ -800,6 +941,21 @@ public Response Deallocate(string subscriptionId, string resourceGroupName, stri } } + internal RequestUriBuilder CreateStartRequestUri(string subscriptionId, string resourceGroupName, string clusterName) + { + 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.DocumentDB/cassandraClusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/start", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStartRequest(string subscriptionId, string resourceGroupName, string clusterName) { var message = _pipeline.CreateMessage(); @@ -869,6 +1025,21 @@ public Response Start(string subscriptionId, string resourceGroupName, string cl } } + internal RequestUriBuilder CreateStatusRequestUri(string subscriptionId, string resourceGroupName, string clusterName) + { + 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.DocumentDB/cassandraClusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/status", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStatusRequest(string subscriptionId, string resourceGroupName, string clusterName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/CassandraDataCentersRestOperations.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/CassandraDataCentersRestOperations.cs index 77e075133fb6..3e9efd4609c0 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/CassandraDataCentersRestOperations.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/CassandraDataCentersRestOperations.cs @@ -37,6 +37,21 @@ public CassandraDataCentersRestOperations(HttpPipeline pipeline, string applicat _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string clusterName) + { + 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.DocumentDB/cassandraClusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/dataCenters", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string clusterName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response List(string subscriptionId, strin } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string dataCenterName) + { + 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.DocumentDB/cassandraClusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/dataCenters/", false); + uri.AppendPath(dataCenterName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string clusterName, string dataCenterName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscriptionId, string resou } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string dataCenterName) + { + 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.DocumentDB/cassandraClusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/dataCenters/", false); + uri.AppendPath(dataCenterName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string clusterName, string dataCenterName) { var message = _pipeline.CreateMessage(); @@ -280,6 +327,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateCreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string dataCenterName, CassandraDataCenterData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DocumentDB/cassandraClusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/dataCenters/", false); + uri.AppendPath(dataCenterName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateUpdateRequest(string subscriptionId, string resourceGroupName, string clusterName, string dataCenterName, CassandraDataCenterData data) { var message = _pipeline.CreateMessage(); @@ -364,6 +427,22 @@ public Response CreateUpdate(string subscriptionId, string resourceGroupName, st } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string dataCenterName, CassandraDataCenterData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DocumentDB/cassandraClusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/dataCenters/", false); + uri.AppendPath(dataCenterName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string clusterName, string dataCenterName, CassandraDataCenterData data) { var message = _pipeline.CreateMessage(); diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/CassandraResourcesRestOperations.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/CassandraResourcesRestOperations.cs index 088005408e59..d93a4c3ee6b8 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/CassandraResourcesRestOperations.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/CassandraResourcesRestOperations.cs @@ -37,6 +37,21 @@ public CassandraResourcesRestOperations(HttpPipeline pipeline, string applicatio _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListCassandraKeyspacesRequestUri(string subscriptionId, string resourceGroupName, string accountName) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/cassandraKeyspaces", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListCassandraKeyspacesRequest(string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListCassandraKeyspaces(string subsc } } + internal RequestUriBuilder CreateGetCassandraKeyspaceRequestUri(string subscriptionId, string resourceGroupName, string accountName, string keyspaceName) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/cassandraKeyspaces/", false); + uri.AppendPath(keyspaceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetCassandraKeyspaceRequest(string subscriptionId, string resourceGroupName, string accountName, string keyspaceName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response GetCassandraKeyspace(string subscriptionI } } + internal RequestUriBuilder CreateCreateUpdateCassandraKeyspaceRequestUri(string subscriptionId, string resourceGroupName, string accountName, string keyspaceName, CassandraKeyspaceCreateOrUpdateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/cassandraKeyspaces/", false); + uri.AppendPath(keyspaceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateUpdateCassandraKeyspaceRequest(string subscriptionId, string resourceGroupName, string accountName, string keyspaceName, CassandraKeyspaceCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); @@ -288,6 +335,22 @@ public Response CreateUpdateCassandraKeyspace(string subscriptionId, string reso } } + internal RequestUriBuilder CreateDeleteCassandraKeyspaceRequestUri(string subscriptionId, string resourceGroupName, string accountName, string keyspaceName) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/cassandraKeyspaces/", false); + uri.AppendPath(keyspaceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteCassandraKeyspaceRequest(string subscriptionId, string resourceGroupName, string accountName, string keyspaceName) { var message = _pipeline.CreateMessage(); @@ -363,6 +426,23 @@ public Response DeleteCassandraKeyspace(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateGetCassandraKeyspaceThroughputRequestUri(string subscriptionId, string resourceGroupName, string accountName, string keyspaceName) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/cassandraKeyspaces/", false); + uri.AppendPath(keyspaceName, true); + uri.AppendPath("/throughputSettings/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetCassandraKeyspaceThroughputRequest(string subscriptionId, string resourceGroupName, string accountName, string keyspaceName) { var message = _pipeline.CreateMessage(); @@ -452,6 +532,23 @@ public Response GetCassandraKeyspaceThroughput(string sub } } + internal RequestUriBuilder CreateUpdateCassandraKeyspaceThroughputRequestUri(string subscriptionId, string resourceGroupName, string accountName, string keyspaceName, ThroughputSettingsUpdateData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/cassandraKeyspaces/", false); + uri.AppendPath(keyspaceName, true); + uri.AppendPath("/throughputSettings/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateCassandraKeyspaceThroughputRequest(string subscriptionId, string resourceGroupName, string accountName, string keyspaceName, ThroughputSettingsUpdateData data) { var message = _pipeline.CreateMessage(); @@ -537,6 +634,23 @@ public Response UpdateCassandraKeyspaceThroughput(string subscriptionId, string } } + internal RequestUriBuilder CreateMigrateCassandraKeyspaceToAutoscaleRequestUri(string subscriptionId, string resourceGroupName, string accountName, string keyspaceName) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/cassandraKeyspaces/", false); + uri.AppendPath(keyspaceName, true); + uri.AppendPath("/throughputSettings/default/migrateToAutoscale", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateMigrateCassandraKeyspaceToAutoscaleRequest(string subscriptionId, string resourceGroupName, string accountName, string keyspaceName) { var message = _pipeline.CreateMessage(); @@ -614,6 +728,23 @@ public Response MigrateCassandraKeyspaceToAutoscale(string subscriptionId, strin } } + internal RequestUriBuilder CreateMigrateCassandraKeyspaceToManualThroughputRequestUri(string subscriptionId, string resourceGroupName, string accountName, string keyspaceName) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/cassandraKeyspaces/", false); + uri.AppendPath(keyspaceName, true); + uri.AppendPath("/throughputSettings/default/migrateToManualThroughput", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateMigrateCassandraKeyspaceToManualThroughputRequest(string subscriptionId, string resourceGroupName, string accountName, string keyspaceName) { var message = _pipeline.CreateMessage(); @@ -691,6 +822,23 @@ public Response MigrateCassandraKeyspaceToManualThroughput(string subscriptionId } } + internal RequestUriBuilder CreateListCassandraTablesRequestUri(string subscriptionId, string resourceGroupName, string accountName, string keyspaceName) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/cassandraKeyspaces/", false); + uri.AppendPath(keyspaceName, true); + uri.AppendPath("/tables", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListCassandraTablesRequest(string subscriptionId, string resourceGroupName, string accountName, string keyspaceName) { var message = _pipeline.CreateMessage(); @@ -776,6 +924,24 @@ public Response ListCassandraTables(string subscriptio } } + internal RequestUriBuilder CreateGetCassandraTableRequestUri(string subscriptionId, string resourceGroupName, string accountName, string keyspaceName, string tableName) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/cassandraKeyspaces/", false); + uri.AppendPath(keyspaceName, true); + uri.AppendPath("/tables/", false); + uri.AppendPath(tableName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetCassandraTableRequest(string subscriptionId, string resourceGroupName, string accountName, string keyspaceName, string tableName) { var message = _pipeline.CreateMessage(); @@ -870,6 +1036,24 @@ public Response GetCassandraTable(string subscriptionId, str } } + internal RequestUriBuilder CreateCreateUpdateCassandraTableRequestUri(string subscriptionId, string resourceGroupName, string accountName, string keyspaceName, string tableName, CassandraTableCreateOrUpdateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/cassandraKeyspaces/", false); + uri.AppendPath(keyspaceName, true); + uri.AppendPath("/tables/", false); + uri.AppendPath(tableName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateUpdateCassandraTableRequest(string subscriptionId, string resourceGroupName, string accountName, string keyspaceName, string tableName, CassandraTableCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); @@ -960,6 +1144,24 @@ public Response CreateUpdateCassandraTable(string subscriptionId, string resourc } } + internal RequestUriBuilder CreateDeleteCassandraTableRequestUri(string subscriptionId, string resourceGroupName, string accountName, string keyspaceName, string tableName) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/cassandraKeyspaces/", false); + uri.AppendPath(keyspaceName, true); + uri.AppendPath("/tables/", false); + uri.AppendPath(tableName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteCassandraTableRequest(string subscriptionId, string resourceGroupName, string accountName, string keyspaceName, string tableName) { var message = _pipeline.CreateMessage(); @@ -1041,6 +1243,25 @@ public Response DeleteCassandraTable(string subscriptionId, string resourceGroup } } + internal RequestUriBuilder CreateGetCassandraTableThroughputRequestUri(string subscriptionId, string resourceGroupName, string accountName, string keyspaceName, string tableName) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/cassandraKeyspaces/", false); + uri.AppendPath(keyspaceName, true); + uri.AppendPath("/tables/", false); + uri.AppendPath(tableName, true); + uri.AppendPath("/throughputSettings/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetCassandraTableThroughputRequest(string subscriptionId, string resourceGroupName, string accountName, string keyspaceName, string tableName) { var message = _pipeline.CreateMessage(); @@ -1136,6 +1357,25 @@ public Response GetCassandraTableThroughput(string subscr } } + internal RequestUriBuilder CreateUpdateCassandraTableThroughputRequestUri(string subscriptionId, string resourceGroupName, string accountName, string keyspaceName, string tableName, ThroughputSettingsUpdateData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/cassandraKeyspaces/", false); + uri.AppendPath(keyspaceName, true); + uri.AppendPath("/tables/", false); + uri.AppendPath(tableName, true); + uri.AppendPath("/throughputSettings/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateCassandraTableThroughputRequest(string subscriptionId, string resourceGroupName, string accountName, string keyspaceName, string tableName, ThroughputSettingsUpdateData data) { var message = _pipeline.CreateMessage(); @@ -1227,6 +1467,25 @@ public Response UpdateCassandraTableThroughput(string subscriptionId, string res } } + internal RequestUriBuilder CreateMigrateCassandraTableToAutoscaleRequestUri(string subscriptionId, string resourceGroupName, string accountName, string keyspaceName, string tableName) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/cassandraKeyspaces/", false); + uri.AppendPath(keyspaceName, true); + uri.AppendPath("/tables/", false); + uri.AppendPath(tableName, true); + uri.AppendPath("/throughputSettings/default/migrateToAutoscale", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateMigrateCassandraTableToAutoscaleRequest(string subscriptionId, string resourceGroupName, string accountName, string keyspaceName, string tableName) { var message = _pipeline.CreateMessage(); @@ -1310,6 +1569,25 @@ public Response MigrateCassandraTableToAutoscale(string subscriptionId, string r } } + internal RequestUriBuilder CreateMigrateCassandraTableToManualThroughputRequestUri(string subscriptionId, string resourceGroupName, string accountName, string keyspaceName, string tableName) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/cassandraKeyspaces/", false); + uri.AppendPath(keyspaceName, true); + uri.AppendPath("/tables/", false); + uri.AppendPath(tableName, true); + uri.AppendPath("/throughputSettings/default/migrateToManualThroughput", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateMigrateCassandraTableToManualThroughputRequest(string subscriptionId, string resourceGroupName, string accountName, string keyspaceName, string tableName) { var message = _pipeline.CreateMessage(); @@ -1393,6 +1671,23 @@ public Response MigrateCassandraTableToManualThroughput(string subscriptionId, s } } + internal RequestUriBuilder CreateListCassandraViewsRequestUri(string subscriptionId, string resourceGroupName, string accountName, string keyspaceName) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/cassandraKeyspaces/", false); + uri.AppendPath(keyspaceName, true); + uri.AppendPath("/views", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListCassandraViewsRequest(string subscriptionId, string resourceGroupName, string accountName, string keyspaceName) { var message = _pipeline.CreateMessage(); @@ -1478,6 +1773,24 @@ public Response ListCassandraViews(string subscriptionI } } + internal RequestUriBuilder CreateGetCassandraViewRequestUri(string subscriptionId, string resourceGroupName, string accountName, string keyspaceName, string viewName) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/cassandraKeyspaces/", false); + uri.AppendPath(keyspaceName, true); + uri.AppendPath("/views/", false); + uri.AppendPath(viewName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetCassandraViewRequest(string subscriptionId, string resourceGroupName, string accountName, string keyspaceName, string viewName) { var message = _pipeline.CreateMessage(); @@ -1572,6 +1885,24 @@ public Response GetCassandraView(string subscription } } + internal RequestUriBuilder CreateCreateUpdateCassandraViewRequestUri(string subscriptionId, string resourceGroupName, string accountName, string keyspaceName, string viewName, CassandraViewGetResultCreateOrUpdateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/cassandraKeyspaces/", false); + uri.AppendPath(keyspaceName, true); + uri.AppendPath("/views/", false); + uri.AppendPath(viewName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateUpdateCassandraViewRequest(string subscriptionId, string resourceGroupName, string accountName, string keyspaceName, string viewName, CassandraViewGetResultCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); @@ -1662,6 +1993,24 @@ public Response CreateUpdateCassandraView(string subscriptionId, string resource } } + internal RequestUriBuilder CreateDeleteCassandraViewRequestUri(string subscriptionId, string resourceGroupName, string accountName, string keyspaceName, string viewName) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/cassandraKeyspaces/", false); + uri.AppendPath(keyspaceName, true); + uri.AppendPath("/views/", false); + uri.AppendPath(viewName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteCassandraViewRequest(string subscriptionId, string resourceGroupName, string accountName, string keyspaceName, string viewName) { var message = _pipeline.CreateMessage(); @@ -1745,6 +2094,25 @@ public Response DeleteCassandraView(string subscriptionId, string resourceGroupN } } + internal RequestUriBuilder CreateGetCassandraViewThroughputRequestUri(string subscriptionId, string resourceGroupName, string accountName, string keyspaceName, string viewName) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/cassandraKeyspaces/", false); + uri.AppendPath(keyspaceName, true); + uri.AppendPath("/views/", false); + uri.AppendPath(viewName, true); + uri.AppendPath("/throughputSettings/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetCassandraViewThroughputRequest(string subscriptionId, string resourceGroupName, string accountName, string keyspaceName, string viewName) { var message = _pipeline.CreateMessage(); @@ -1840,6 +2208,25 @@ public Response GetCassandraViewThroughput(string subscri } } + internal RequestUriBuilder CreateUpdateCassandraViewThroughputRequestUri(string subscriptionId, string resourceGroupName, string accountName, string keyspaceName, string viewName, ThroughputSettingsUpdateData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/cassandraKeyspaces/", false); + uri.AppendPath(keyspaceName, true); + uri.AppendPath("/views/", false); + uri.AppendPath(viewName, true); + uri.AppendPath("/throughputSettings/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateCassandraViewThroughputRequest(string subscriptionId, string resourceGroupName, string accountName, string keyspaceName, string viewName, ThroughputSettingsUpdateData data) { var message = _pipeline.CreateMessage(); @@ -1931,6 +2318,25 @@ public Response UpdateCassandraViewThroughput(string subscriptionId, string reso } } + internal RequestUriBuilder CreateMigrateCassandraViewToAutoscaleRequestUri(string subscriptionId, string resourceGroupName, string accountName, string keyspaceName, string viewName) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/cassandraKeyspaces/", false); + uri.AppendPath(keyspaceName, true); + uri.AppendPath("/views/", false); + uri.AppendPath(viewName, true); + uri.AppendPath("/throughputSettings/default/migrateToAutoscale", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateMigrateCassandraViewToAutoscaleRequest(string subscriptionId, string resourceGroupName, string accountName, string keyspaceName, string viewName) { var message = _pipeline.CreateMessage(); @@ -2014,6 +2420,25 @@ public Response MigrateCassandraViewToAutoscale(string subscriptionId, string re } } + internal RequestUriBuilder CreateMigrateCassandraViewToManualThroughputRequestUri(string subscriptionId, string resourceGroupName, string accountName, string keyspaceName, string viewName) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/cassandraKeyspaces/", false); + uri.AppendPath(keyspaceName, true); + uri.AppendPath("/views/", false); + uri.AppendPath(viewName, true); + uri.AppendPath("/throughputSettings/default/migrateToManualThroughput", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateMigrateCassandraViewToManualThroughputRequest(string subscriptionId, string resourceGroupName, string accountName, string keyspaceName, string viewName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/CollectionPartitionRegionRestOperations.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/CollectionPartitionRegionRestOperations.cs index 25c848a549ee..f5937423f7b7 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/CollectionPartitionRegionRestOperations.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/CollectionPartitionRegionRestOperations.cs @@ -37,6 +37,28 @@ public CollectionPartitionRegionRestOperations(HttpPipeline pipeline, string app _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListMetricsRequestUri(string subscriptionId, string resourceGroupName, string accountName, string region, string databaseRid, string collectionRid, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/region/", false); + uri.AppendPath(region, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseRid, true); + uri.AppendPath("/collections/", false); + uri.AppendPath(collectionRid, true); + uri.AppendPath("/partitions/metrics", false); + uri.AppendQuery("api-version", _apiVersion, true); + uri.AppendQuery("$filter", filter, true); + return uri; + } + internal HttpMessage CreateListMetricsRequest(string subscriptionId, string resourceGroupName, string accountName, string region, string databaseRid, string collectionRid, string filter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/CollectionPartitionRestOperations.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/CollectionPartitionRestOperations.cs index 47e2065fc59d..29aeaa74e041 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/CollectionPartitionRestOperations.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/CollectionPartitionRestOperations.cs @@ -37,6 +37,26 @@ public CollectionPartitionRestOperations(HttpPipeline pipeline, string applicati _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListMetricsRequestUri(string subscriptionId, string resourceGroupName, string accountName, string databaseRid, string collectionRid, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseRid, true); + uri.AppendPath("/collections/", false); + uri.AppendPath(collectionRid, true); + uri.AppendPath("/partitions/metrics", false); + uri.AppendQuery("api-version", _apiVersion, true); + uri.AppendQuery("$filter", filter, true); + return uri; + } + internal HttpMessage CreateListMetricsRequest(string subscriptionId, string resourceGroupName, string accountName, string databaseRid, string collectionRid, string filter) { var message = _pipeline.CreateMessage(); @@ -133,6 +153,29 @@ public Response ListMetrics(string subscriptionId, st } } + internal RequestUriBuilder CreateListUsagesRequestUri(string subscriptionId, string resourceGroupName, string accountName, string databaseRid, string collectionRid, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseRid, true); + uri.AppendPath("/collections/", false); + uri.AppendPath(collectionRid, true); + uri.AppendPath("/partitions/usages", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + return uri; + } + internal HttpMessage CreateListUsagesRequest(string subscriptionId, string resourceGroupName, string accountName, string databaseRid, string collectionRid, string filter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/CollectionRegionRestOperations.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/CollectionRegionRestOperations.cs index 8fcac73dcbb7..323a86bc3b3d 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/CollectionRegionRestOperations.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/CollectionRegionRestOperations.cs @@ -37,6 +37,28 @@ public CollectionRegionRestOperations(HttpPipeline pipeline, string applicationI _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListMetricsRequestUri(string subscriptionId, string resourceGroupName, string accountName, string region, string databaseRid, string collectionRid, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/region/", false); + uri.AppendPath(region, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseRid, true); + uri.AppendPath("/collections/", false); + uri.AppendPath(collectionRid, true); + uri.AppendPath("/metrics", false); + uri.AppendQuery("api-version", _apiVersion, true); + uri.AppendQuery("$filter", filter, true); + return uri; + } + internal HttpMessage CreateListMetricsRequest(string subscriptionId, string resourceGroupName, string accountName, string region, string databaseRid, string collectionRid, string filter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/CollectionRestOperations.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/CollectionRestOperations.cs index 71c1b67c29b2..ad03e7ac1b1f 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/CollectionRestOperations.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/CollectionRestOperations.cs @@ -37,6 +37,26 @@ public CollectionRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListMetricsRequestUri(string subscriptionId, string resourceGroupName, string accountName, string databaseRid, string collectionRid, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseRid, true); + uri.AppendPath("/collections/", false); + uri.AppendPath(collectionRid, true); + uri.AppendPath("/metrics", false); + uri.AppendQuery("api-version", _apiVersion, true); + uri.AppendQuery("$filter", filter, true); + return uri; + } + internal HttpMessage CreateListMetricsRequest(string subscriptionId, string resourceGroupName, string accountName, string databaseRid, string collectionRid, string filter) { var message = _pipeline.CreateMessage(); @@ -133,6 +153,29 @@ public Response ListMetrics(string subscriptionId, str } } + internal RequestUriBuilder CreateListUsagesRequestUri(string subscriptionId, string resourceGroupName, string accountName, string databaseRid, string collectionRid, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseRid, true); + uri.AppendPath("/collections/", false); + uri.AppendPath(collectionRid, true); + uri.AppendPath("/usages", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + return uri; + } + internal HttpMessage CreateListUsagesRequest(string subscriptionId, string resourceGroupName, string accountName, string databaseRid, string collectionRid, string filter) { var message = _pipeline.CreateMessage(); @@ -230,6 +273,25 @@ public Response ListUsages(string subscriptionId, string r } } + internal RequestUriBuilder CreateListMetricDefinitionsRequestUri(string subscriptionId, string resourceGroupName, string accountName, string databaseRid, string collectionRid) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseRid, true); + uri.AppendPath("/collections/", false); + uri.AppendPath(collectionRid, true); + uri.AppendPath("/metricDefinitions", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListMetricDefinitionsRequest(string subscriptionId, string resourceGroupName, string accountName, string databaseRid, string collectionRid) { var message = _pipeline.CreateMessage(); diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/DataTransferJobsRestOperations.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/DataTransferJobsRestOperations.cs index c4bad96f023a..5392c58121f3 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/DataTransferJobsRestOperations.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/DataTransferJobsRestOperations.cs @@ -37,6 +37,22 @@ public DataTransferJobsRestOperations(HttpPipeline pipeline, string applicationI _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string accountName, string jobName, DataTransferJobGetResultCreateOrUpdateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/dataTransferJobs/", false); + uri.AppendPath(jobName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string accountName, string jobName, DataTransferJobGetResultCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); @@ -129,6 +145,22 @@ public Response Create(string subscriptionId, stri } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string accountName, string jobName) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/dataTransferJobs/", false); + uri.AppendPath(jobName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string accountName, string jobName) { var message = _pipeline.CreateMessage(); @@ -217,6 +249,23 @@ public Response Get(string subscriptionId, string } } + internal RequestUriBuilder CreatePauseRequestUri(string subscriptionId, string resourceGroupName, string accountName, string jobName) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/dataTransferJobs/", false); + uri.AppendPath(jobName, true); + uri.AppendPath("/pause", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreatePauseRequest(string subscriptionId, string resourceGroupName, string accountName, string jobName) { var message = _pipeline.CreateMessage(); @@ -302,6 +351,23 @@ public Response Pause(string subscriptionId, strin } } + internal RequestUriBuilder CreateResumeRequestUri(string subscriptionId, string resourceGroupName, string accountName, string jobName) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/dataTransferJobs/", false); + uri.AppendPath(jobName, true); + uri.AppendPath("/resume", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateResumeRequest(string subscriptionId, string resourceGroupName, string accountName, string jobName) { var message = _pipeline.CreateMessage(); @@ -387,6 +453,23 @@ public Response Resume(string subscriptionId, stri } } + internal RequestUriBuilder CreateCancelRequestUri(string subscriptionId, string resourceGroupName, string accountName, string jobName) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/dataTransferJobs/", false); + uri.AppendPath(jobName, true); + uri.AppendPath("/cancel", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCancelRequest(string subscriptionId, string resourceGroupName, string accountName, string jobName) { var message = _pipeline.CreateMessage(); @@ -472,6 +555,21 @@ public Response Cancel(string subscriptionId, stri } } + internal RequestUriBuilder CreateListByDatabaseAccountRequestUri(string subscriptionId, string resourceGroupName, string accountName) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/dataTransferJobs", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByDatabaseAccountRequest(string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); @@ -551,6 +649,14 @@ public Response ListByDatabaseAccount(string subscri } } + internal RequestUriBuilder CreateListByDatabaseAccountNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string accountName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByDatabaseAccountNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/DatabaseAccountRegionRestOperations.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/DatabaseAccountRegionRestOperations.cs index 03f45c2a6ac0..7bea63f5dd67 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/DatabaseAccountRegionRestOperations.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/DatabaseAccountRegionRestOperations.cs @@ -37,6 +37,24 @@ public DatabaseAccountRegionRestOperations(HttpPipeline pipeline, string applica _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListMetricsRequestUri(string subscriptionId, string resourceGroupName, string accountName, string region, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/region/", false); + uri.AppendPath(region, true); + uri.AppendPath("/metrics", false); + uri.AppendQuery("api-version", _apiVersion, true); + uri.AppendQuery("$filter", filter, true); + return uri; + } + internal HttpMessage CreateListMetricsRequest(string subscriptionId, string resourceGroupName, string accountName, string region, string filter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/DatabaseAccountsRestOperations.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/DatabaseAccountsRestOperations.cs index 3f05b92627f3..265ef8e46fbe 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/DatabaseAccountsRestOperations.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/DatabaseAccountsRestOperations.cs @@ -37,6 +37,20 @@ public DatabaseAccountsRestOperations(HttpPipeline pipeline, string applicationI _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string accountName) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); @@ -119,6 +133,20 @@ public Response Get(string subscriptionId, string resourceG } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string accountName, CosmosDBAccountPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string accountName, CosmosDBAccountPatch patch) { var message = _pipeline.CreateMessage(); @@ -195,6 +223,20 @@ public Response Update(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string accountName, CosmosDBAccountCreateOrUpdateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string accountName, CosmosDBAccountCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); @@ -271,6 +313,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string accountName) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); @@ -340,6 +396,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateFailoverPriorityChangeRequestUri(string subscriptionId, string resourceGroupName, string accountName, CosmosDBFailoverPolicies failoverParameters) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/failoverPriorityChange", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateFailoverPriorityChangeRequest(string subscriptionId, string resourceGroupName, string accountName, CosmosDBFailoverPolicies failoverParameters) { var message = _pipeline.CreateMessage(); @@ -418,6 +489,17 @@ public Response FailoverPriorityChange(string subscriptionId, string resourceGro } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.DocumentDB/databaseAccounts", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -485,6 +567,19 @@ public Response List(string subscriptionId, Cancella } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.DocumentDB/databaseAccounts", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -558,6 +653,21 @@ public Response ListByResourceGroup(string subscript } } + internal RequestUriBuilder CreateListKeysRequestUri(string subscriptionId, string resourceGroupName, string accountName) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/listKeys", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListKeysRequest(string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); @@ -637,6 +747,21 @@ public Response ListKeys(string subscriptionId, string r } } + internal RequestUriBuilder CreateListConnectionStringsRequestUri(string subscriptionId, string resourceGroupName, string accountName) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/listConnectionStrings", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListConnectionStringsRequest(string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); @@ -716,6 +841,21 @@ public Response ListConnectionString } } + internal RequestUriBuilder CreateOfflineRegionRequestUri(string subscriptionId, string resourceGroupName, string accountName, RegionForOnlineOffline regionParameterForOffline) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/offlineRegion", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateOfflineRegionRequest(string subscriptionId, string resourceGroupName, string accountName, RegionForOnlineOffline regionParameterForOffline) { var message = _pipeline.CreateMessage(); @@ -795,6 +935,21 @@ public Response OfflineRegion(string subscriptionId, string resourceGroupName, s } } + internal RequestUriBuilder CreateOnlineRegionRequestUri(string subscriptionId, string resourceGroupName, string accountName, RegionForOnlineOffline regionParameterForOnline) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/onlineRegion", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateOnlineRegionRequest(string subscriptionId, string resourceGroupName, string accountName, RegionForOnlineOffline regionParameterForOnline) { var message = _pipeline.CreateMessage(); @@ -874,6 +1029,21 @@ public Response OnlineRegion(string subscriptionId, string resourceGroupName, st } } + internal RequestUriBuilder CreateListReadOnlyKeysRequestUri(string subscriptionId, string resourceGroupName, string accountName) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/readonlykeys", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListReadOnlyKeysRequest(string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); @@ -953,6 +1123,21 @@ public Response ListReadOnlyKeys(string subscrip } } + internal RequestUriBuilder CreateRegenerateKeyRequestUri(string subscriptionId, string resourceGroupName, string accountName, CosmosDBAccountRegenerateKeyContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/regenerateKey", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRegenerateKeyRequest(string subscriptionId, string resourceGroupName, string accountName, CosmosDBAccountRegenerateKeyContent content) { var message = _pipeline.CreateMessage(); @@ -1031,6 +1216,16 @@ public Response RegenerateKey(string subscriptionId, string resourceGroupName, s } } + internal RequestUriBuilder CreateCheckNameExistsRequestUri(string accountName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.DocumentDB/databaseAccountNames/", false); + uri.AppendPath(accountName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCheckNameExistsRequest(string accountName) { var message = _pipeline.CreateMessage(); @@ -1102,6 +1297,22 @@ public Response CheckNameExists(string accountName, CancellationToken canc } } + internal RequestUriBuilder CreateListMetricsRequestUri(string subscriptionId, string resourceGroupName, string accountName, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/metrics", false); + uri.AppendQuery("api-version", _apiVersion, true); + uri.AppendQuery("$filter", filter, true); + return uri; + } + internal HttpMessage CreateListMetricsRequest(string subscriptionId, string resourceGroupName, string accountName, string filter) { var message = _pipeline.CreateMessage(); @@ -1186,6 +1397,25 @@ public Response ListMetrics(string subscriptionId, str } } + internal RequestUriBuilder CreateListUsagesRequestUri(string subscriptionId, string resourceGroupName, string accountName, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/usages", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + return uri; + } + internal HttpMessage CreateListUsagesRequest(string subscriptionId, string resourceGroupName, string accountName, string filter) { var message = _pipeline.CreateMessage(); @@ -1271,6 +1501,21 @@ public Response ListUsages(string subscriptionId, string r } } + internal RequestUriBuilder CreateListMetricDefinitionsRequestUri(string subscriptionId, string resourceGroupName, string accountName) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/metricDefinitions", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListMetricDefinitionsRequest(string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/DatabaseRestOperations.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/DatabaseRestOperations.cs index 42aeaa1d4a1b..6603abed4645 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/DatabaseRestOperations.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/DatabaseRestOperations.cs @@ -37,6 +37,24 @@ public DatabaseRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListMetricsRequestUri(string subscriptionId, string resourceGroupName, string accountName, string databaseRid, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseRid, true); + uri.AppendPath("/metrics", false); + uri.AppendQuery("api-version", _apiVersion, true); + uri.AppendQuery("$filter", filter, true); + return uri; + } + internal HttpMessage CreateListMetricsRequest(string subscriptionId, string resourceGroupName, string accountName, string databaseRid, string filter) { var message = _pipeline.CreateMessage(); @@ -127,6 +145,27 @@ public Response ListMetrics(string subscriptionId, str } } + internal RequestUriBuilder CreateListUsagesRequestUri(string subscriptionId, string resourceGroupName, string accountName, string databaseRid, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseRid, true); + uri.AppendPath("/usages", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + return uri; + } + internal HttpMessage CreateListUsagesRequest(string subscriptionId, string resourceGroupName, string accountName, string databaseRid, string filter) { var message = _pipeline.CreateMessage(); @@ -218,6 +257,23 @@ public Response ListUsages(string subscriptionId, string r } } + internal RequestUriBuilder CreateListMetricDefinitionsRequestUri(string subscriptionId, string resourceGroupName, string accountName, string databaseRid) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseRid, true); + uri.AppendPath("/metricDefinitions", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListMetricDefinitionsRequest(string subscriptionId, string resourceGroupName, string accountName, string databaseRid) { var message = _pipeline.CreateMessage(); diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/GraphResourcesRestOperations.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/GraphResourcesRestOperations.cs index 40d9398be607..641a8cf724b4 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/GraphResourcesRestOperations.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/GraphResourcesRestOperations.cs @@ -37,6 +37,21 @@ public GraphResourcesRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListGraphsRequestUri(string subscriptionId, string resourceGroupName, string accountName) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/graphs", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListGraphsRequest(string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListGraphs(string subscriptionId, stri } } + internal RequestUriBuilder CreateGetGraphRequestUri(string subscriptionId, string resourceGroupName, string accountName, string graphName) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/graphs/", false); + uri.AppendPath(graphName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetGraphRequest(string subscriptionId, string resourceGroupName, string accountName, string graphName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response GetGraph(string subscriptionId, stri } } + internal RequestUriBuilder CreateCreateUpdateGraphRequestUri(string subscriptionId, string resourceGroupName, string accountName, string graphName, GraphResourceGetResultCreateOrUpdateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/graphs/", false); + uri.AppendPath(graphName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateUpdateGraphRequest(string subscriptionId, string resourceGroupName, string accountName, string graphName, GraphResourceGetResultCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); @@ -288,6 +335,22 @@ public Response CreateUpdateGraph(string subscriptionId, string resourceGroupNam } } + internal RequestUriBuilder CreateDeleteGraphResourceRequestUri(string subscriptionId, string resourceGroupName, string accountName, string graphName) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/graphs/", false); + uri.AppendPath(graphName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteGraphResourceRequest(string subscriptionId, string resourceGroupName, string accountName, string graphName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/GremlinResourcesRestOperations.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/GremlinResourcesRestOperations.cs index b94f1d97bd9a..51770e3a46f5 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/GremlinResourcesRestOperations.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/GremlinResourcesRestOperations.cs @@ -37,6 +37,21 @@ public GremlinResourcesRestOperations(HttpPipeline pipeline, string applicationI _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListGremlinDatabasesRequestUri(string subscriptionId, string resourceGroupName, string accountName) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/gremlinDatabases", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListGremlinDatabasesRequest(string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListGremlinDatabases(string subscript } } + internal RequestUriBuilder CreateGetGremlinDatabaseRequestUri(string subscriptionId, string resourceGroupName, string accountName, string databaseName) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/gremlinDatabases/", false); + uri.AppendPath(databaseName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetGremlinDatabaseRequest(string subscriptionId, string resourceGroupName, string accountName, string databaseName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response GetGremlinDatabase(string subscriptionId, s } } + internal RequestUriBuilder CreateCreateUpdateGremlinDatabaseRequestUri(string subscriptionId, string resourceGroupName, string accountName, string databaseName, GremlinDatabaseCreateOrUpdateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/gremlinDatabases/", false); + uri.AppendPath(databaseName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateUpdateGremlinDatabaseRequest(string subscriptionId, string resourceGroupName, string accountName, string databaseName, GremlinDatabaseCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); @@ -288,6 +335,22 @@ public Response CreateUpdateGremlinDatabase(string subscriptionId, string resour } } + internal RequestUriBuilder CreateDeleteGremlinDatabaseRequestUri(string subscriptionId, string resourceGroupName, string accountName, string databaseName) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/gremlinDatabases/", false); + uri.AppendPath(databaseName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteGremlinDatabaseRequest(string subscriptionId, string resourceGroupName, string accountName, string databaseName) { var message = _pipeline.CreateMessage(); @@ -363,6 +426,23 @@ public Response DeleteGremlinDatabase(string subscriptionId, string resourceGrou } } + internal RequestUriBuilder CreateGetGremlinDatabaseThroughputRequestUri(string subscriptionId, string resourceGroupName, string accountName, string databaseName) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/gremlinDatabases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/throughputSettings/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetGremlinDatabaseThroughputRequest(string subscriptionId, string resourceGroupName, string accountName, string databaseName) { var message = _pipeline.CreateMessage(); @@ -452,6 +532,23 @@ public Response GetGremlinDatabaseThroughput(string subsc } } + internal RequestUriBuilder CreateUpdateGremlinDatabaseThroughputRequestUri(string subscriptionId, string resourceGroupName, string accountName, string databaseName, ThroughputSettingsUpdateData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/gremlinDatabases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/throughputSettings/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateGremlinDatabaseThroughputRequest(string subscriptionId, string resourceGroupName, string accountName, string databaseName, ThroughputSettingsUpdateData data) { var message = _pipeline.CreateMessage(); @@ -537,6 +634,23 @@ public Response UpdateGremlinDatabaseThroughput(string subscriptionId, string re } } + internal RequestUriBuilder CreateMigrateGremlinDatabaseToAutoscaleRequestUri(string subscriptionId, string resourceGroupName, string accountName, string databaseName) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/gremlinDatabases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/throughputSettings/default/migrateToAutoscale", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateMigrateGremlinDatabaseToAutoscaleRequest(string subscriptionId, string resourceGroupName, string accountName, string databaseName) { var message = _pipeline.CreateMessage(); @@ -614,6 +728,23 @@ public Response MigrateGremlinDatabaseToAutoscale(string subscriptionId, string } } + internal RequestUriBuilder CreateMigrateGremlinDatabaseToManualThroughputRequestUri(string subscriptionId, string resourceGroupName, string accountName, string databaseName) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/gremlinDatabases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/throughputSettings/default/migrateToManualThroughput", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateMigrateGremlinDatabaseToManualThroughputRequest(string subscriptionId, string resourceGroupName, string accountName, string databaseName) { var message = _pipeline.CreateMessage(); @@ -691,6 +822,23 @@ public Response MigrateGremlinDatabaseToManualThroughput(string subscriptionId, } } + internal RequestUriBuilder CreateListGremlinGraphsRequestUri(string subscriptionId, string resourceGroupName, string accountName, string databaseName) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/gremlinDatabases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/graphs", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListGremlinGraphsRequest(string subscriptionId, string resourceGroupName, string accountName, string databaseName) { var message = _pipeline.CreateMessage(); @@ -776,6 +924,24 @@ public Response ListGremlinGraphs(string subscriptionId, } } + internal RequestUriBuilder CreateGetGremlinGraphRequestUri(string subscriptionId, string resourceGroupName, string accountName, string databaseName, string graphName) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/gremlinDatabases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/graphs/", false); + uri.AppendPath(graphName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetGremlinGraphRequest(string subscriptionId, string resourceGroupName, string accountName, string databaseName, string graphName) { var message = _pipeline.CreateMessage(); @@ -870,6 +1036,24 @@ public Response GetGremlinGraph(string subscriptionId, string } } + internal RequestUriBuilder CreateCreateUpdateGremlinGraphRequestUri(string subscriptionId, string resourceGroupName, string accountName, string databaseName, string graphName, GremlinGraphCreateOrUpdateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/gremlinDatabases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/graphs/", false); + uri.AppendPath(graphName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateUpdateGremlinGraphRequest(string subscriptionId, string resourceGroupName, string accountName, string databaseName, string graphName, GremlinGraphCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); @@ -960,6 +1144,24 @@ public Response CreateUpdateGremlinGraph(string subscriptionId, string resourceG } } + internal RequestUriBuilder CreateDeleteGremlinGraphRequestUri(string subscriptionId, string resourceGroupName, string accountName, string databaseName, string graphName) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/gremlinDatabases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/graphs/", false); + uri.AppendPath(graphName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteGremlinGraphRequest(string subscriptionId, string resourceGroupName, string accountName, string databaseName, string graphName) { var message = _pipeline.CreateMessage(); @@ -1041,6 +1243,25 @@ public Response DeleteGremlinGraph(string subscriptionId, string resourceGroupNa } } + internal RequestUriBuilder CreateGetGremlinGraphThroughputRequestUri(string subscriptionId, string resourceGroupName, string accountName, string databaseName, string graphName) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/gremlinDatabases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/graphs/", false); + uri.AppendPath(graphName, true); + uri.AppendPath("/throughputSettings/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetGremlinGraphThroughputRequest(string subscriptionId, string resourceGroupName, string accountName, string databaseName, string graphName) { var message = _pipeline.CreateMessage(); @@ -1136,6 +1357,25 @@ public Response GetGremlinGraphThroughput(string subscrip } } + internal RequestUriBuilder CreateUpdateGremlinGraphThroughputRequestUri(string subscriptionId, string resourceGroupName, string accountName, string databaseName, string graphName, ThroughputSettingsUpdateData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/gremlinDatabases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/graphs/", false); + uri.AppendPath(graphName, true); + uri.AppendPath("/throughputSettings/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateGremlinGraphThroughputRequest(string subscriptionId, string resourceGroupName, string accountName, string databaseName, string graphName, ThroughputSettingsUpdateData data) { var message = _pipeline.CreateMessage(); @@ -1227,6 +1467,25 @@ public Response UpdateGremlinGraphThroughput(string subscriptionId, string resou } } + internal RequestUriBuilder CreateMigrateGremlinGraphToAutoscaleRequestUri(string subscriptionId, string resourceGroupName, string accountName, string databaseName, string graphName) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/gremlinDatabases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/graphs/", false); + uri.AppendPath(graphName, true); + uri.AppendPath("/throughputSettings/default/migrateToAutoscale", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateMigrateGremlinGraphToAutoscaleRequest(string subscriptionId, string resourceGroupName, string accountName, string databaseName, string graphName) { var message = _pipeline.CreateMessage(); @@ -1310,6 +1569,25 @@ public Response MigrateGremlinGraphToAutoscale(string subscriptionId, string res } } + internal RequestUriBuilder CreateMigrateGremlinGraphToManualThroughputRequestUri(string subscriptionId, string resourceGroupName, string accountName, string databaseName, string graphName) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/gremlinDatabases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/graphs/", false); + uri.AppendPath(graphName, true); + uri.AppendPath("/throughputSettings/default/migrateToManualThroughput", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateMigrateGremlinGraphToManualThroughputRequest(string subscriptionId, string resourceGroupName, string accountName, string databaseName, string graphName) { var message = _pipeline.CreateMessage(); @@ -1393,6 +1671,25 @@ public Response MigrateGremlinGraphToManualThroughput(string subscriptionId, str } } + internal RequestUriBuilder CreateRetrieveContinuousBackupInformationRequestUri(string subscriptionId, string resourceGroupName, string accountName, string databaseName, string graphName, ContinuousBackupRestoreLocation location) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/gremlinDatabases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/graphs/", false); + uri.AppendPath(graphName, true); + uri.AppendPath("/retrieveContinuousBackupInformation", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRetrieveContinuousBackupInformationRequest(string subscriptionId, string resourceGroupName, string accountName, string databaseName, string graphName, ContinuousBackupRestoreLocation location) { var message = _pipeline.CreateMessage(); diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/LocationsRestOperations.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/LocationsRestOperations.cs index 3f9b721fcef8..5287d7ab1919 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/LocationsRestOperations.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/LocationsRestOperations.cs @@ -37,6 +37,17 @@ public LocationsRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.DocumentDB/locations", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,18 @@ public Response List(string subscriptionId, Cancella } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, AzureLocation location) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.DocumentDB/locations/", false); + uri.AppendPath(location, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, AzureLocation location) { var message = _pipeline.CreateMessage(); diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/MongoClustersRestOperations.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/MongoClustersRestOperations.cs index b257cb393b52..e50f0233a56a 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/MongoClustersRestOperations.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/MongoClustersRestOperations.cs @@ -37,6 +37,17 @@ public MongoClustersRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.DocumentDB/mongoClusters", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,19 @@ public Response List(string subscriptionId, Cancellation } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.DocumentDB/mongoClusters", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -177,6 +201,20 @@ public Response ListByResourceGroup(string subscriptionI } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string mongoClusterName, MongoClusterData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DocumentDB/mongoClusters/", false); + uri.AppendPath(mongoClusterName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string mongoClusterName, MongoClusterData data) { var message = _pipeline.CreateMessage(); @@ -255,6 +293,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string mongoClusterName) + { + 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.DocumentDB/mongoClusters/", false); + uri.AppendPath(mongoClusterName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string mongoClusterName) { var message = _pipeline.CreateMessage(); @@ -337,6 +389,20 @@ public Response Get(string subscriptionId, string resourceGrou } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string mongoClusterName) + { + 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.DocumentDB/mongoClusters/", false); + uri.AppendPath(mongoClusterName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string mongoClusterName) { var message = _pipeline.CreateMessage(); @@ -407,6 +473,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string m } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string mongoClusterName, MongoClusterPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DocumentDB/mongoClusters/", false); + uri.AppendPath(mongoClusterName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string mongoClusterName, MongoClusterPatch patch) { var message = _pipeline.CreateMessage(); @@ -485,6 +565,22 @@ public Response Update(string subscriptionId, string resourceGroupName, string m } } + internal RequestUriBuilder CreateCreateOrUpdateFirewallRuleRequestUri(string subscriptionId, string resourceGroupName, string mongoClusterName, string firewallRuleName, CosmosDBFirewallRuleData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DocumentDB/mongoClusters/", false); + uri.AppendPath(mongoClusterName, true); + uri.AppendPath("/firewallRules/", false); + uri.AppendPath(firewallRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateFirewallRuleRequest(string subscriptionId, string resourceGroupName, string mongoClusterName, string firewallRuleName, CosmosDBFirewallRuleData data) { var message = _pipeline.CreateMessage(); @@ -569,6 +665,22 @@ public Response CreateOrUpdateFirewallRule(string subscriptionId, string resourc } } + internal RequestUriBuilder CreateDeleteFirewallRuleRequestUri(string subscriptionId, string resourceGroupName, string mongoClusterName, string firewallRuleName) + { + 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.DocumentDB/mongoClusters/", false); + uri.AppendPath(mongoClusterName, true); + uri.AppendPath("/firewallRules/", false); + uri.AppendPath(firewallRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteFirewallRuleRequest(string subscriptionId, string resourceGroupName, string mongoClusterName, string firewallRuleName) { var message = _pipeline.CreateMessage(); @@ -645,6 +757,22 @@ public Response DeleteFirewallRule(string subscriptionId, string resourceGroupNa } } + internal RequestUriBuilder CreateGetFirewallRuleRequestUri(string subscriptionId, string resourceGroupName, string mongoClusterName, string firewallRuleName) + { + 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.DocumentDB/mongoClusters/", false); + uri.AppendPath(mongoClusterName, true); + uri.AppendPath("/firewallRules/", false); + uri.AppendPath(firewallRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetFirewallRuleRequest(string subscriptionId, string resourceGroupName, string mongoClusterName, string firewallRuleName) { var message = _pipeline.CreateMessage(); @@ -733,6 +861,21 @@ public Response GetFirewallRule(string subscriptionId, } } + internal RequestUriBuilder CreateListFirewallRulesRequestUri(string subscriptionId, string resourceGroupName, string mongoClusterName) + { + 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.DocumentDB/mongoClusters/", false); + uri.AppendPath(mongoClusterName, true); + uri.AppendPath("/firewallRules", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListFirewallRulesRequest(string subscriptionId, string resourceGroupName, string mongoClusterName) { var message = _pipeline.CreateMessage(); @@ -812,6 +955,19 @@ public Response ListFirewallRules(string subscriptionId, } } + internal RequestUriBuilder CreateCheckNameAvailabilityRequestUri(string subscriptionId, AzureLocation location, CheckCosmosDBNameAvailabilityContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.DocumentDB/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/checkMongoClusterNameAvailability", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCheckNameAvailabilityRequest(string subscriptionId, AzureLocation location, CheckCosmosDBNameAvailabilityContent content) { var message = _pipeline.CreateMessage(); @@ -891,6 +1047,21 @@ public Response CheckNameAvailability(str } } + internal RequestUriBuilder CreateListConnectionStringsRequestUri(string subscriptionId, string resourceGroupName, string mongoClusterName) + { + 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.DocumentDB/mongoClusters/", false); + uri.AppendPath(mongoClusterName, true); + uri.AppendPath("/listConnectionStrings", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListConnectionStringsRequest(string subscriptionId, string resourceGroupName, string mongoClusterName) { var message = _pipeline.CreateMessage(); @@ -970,6 +1141,14 @@ public Response ListConnectionStrings(string subscr } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -1038,6 +1217,14 @@ public Response ListNextPage(string nextLink, string sub } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -1110,6 +1297,14 @@ public Response ListByResourceGroupNextPage(string nextL } } + internal RequestUriBuilder CreateListFirewallRulesNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string mongoClusterName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListFirewallRulesNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string mongoClusterName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/MongoDBResourcesRestOperations.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/MongoDBResourcesRestOperations.cs index 859568a24ebb..ffd2d91d4bc3 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/MongoDBResourcesRestOperations.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/MongoDBResourcesRestOperations.cs @@ -37,6 +37,21 @@ public MongoDBResourcesRestOperations(HttpPipeline pipeline, string applicationI _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListMongoDBDatabasesRequestUri(string subscriptionId, string resourceGroupName, string accountName) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/mongodbDatabases", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListMongoDBDatabasesRequest(string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListMongoDBDatabases(string subscript } } + internal RequestUriBuilder CreateGetMongoDBDatabaseRequestUri(string subscriptionId, string resourceGroupName, string accountName, string databaseName) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/mongodbDatabases/", false); + uri.AppendPath(databaseName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetMongoDBDatabaseRequest(string subscriptionId, string resourceGroupName, string accountName, string databaseName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response GetMongoDBDatabase(string subscriptionId, s } } + internal RequestUriBuilder CreateCreateUpdateMongoDBDatabaseRequestUri(string subscriptionId, string resourceGroupName, string accountName, string databaseName, MongoDBDatabaseCreateOrUpdateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/mongodbDatabases/", false); + uri.AppendPath(databaseName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateUpdateMongoDBDatabaseRequest(string subscriptionId, string resourceGroupName, string accountName, string databaseName, MongoDBDatabaseCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); @@ -288,6 +335,22 @@ public Response CreateUpdateMongoDBDatabase(string subscriptionId, string resour } } + internal RequestUriBuilder CreateDeleteMongoDBDatabaseRequestUri(string subscriptionId, string resourceGroupName, string accountName, string databaseName) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/mongodbDatabases/", false); + uri.AppendPath(databaseName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteMongoDBDatabaseRequest(string subscriptionId, string resourceGroupName, string accountName, string databaseName) { var message = _pipeline.CreateMessage(); @@ -363,6 +426,23 @@ public Response DeleteMongoDBDatabase(string subscriptionId, string resourceGrou } } + internal RequestUriBuilder CreateGetMongoDBDatabaseThroughputRequestUri(string subscriptionId, string resourceGroupName, string accountName, string databaseName) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/mongodbDatabases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/throughputSettings/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetMongoDBDatabaseThroughputRequest(string subscriptionId, string resourceGroupName, string accountName, string databaseName) { var message = _pipeline.CreateMessage(); @@ -452,6 +532,23 @@ public Response GetMongoDBDatabaseThroughput(string subsc } } + internal RequestUriBuilder CreateUpdateMongoDBDatabaseThroughputRequestUri(string subscriptionId, string resourceGroupName, string accountName, string databaseName, ThroughputSettingsUpdateData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/mongodbDatabases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/throughputSettings/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateMongoDBDatabaseThroughputRequest(string subscriptionId, string resourceGroupName, string accountName, string databaseName, ThroughputSettingsUpdateData data) { var message = _pipeline.CreateMessage(); @@ -537,6 +634,23 @@ public Response UpdateMongoDBDatabaseThroughput(string subscriptionId, string re } } + internal RequestUriBuilder CreateMigrateMongoDBDatabaseToAutoscaleRequestUri(string subscriptionId, string resourceGroupName, string accountName, string databaseName) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/mongodbDatabases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/throughputSettings/default/migrateToAutoscale", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateMigrateMongoDBDatabaseToAutoscaleRequest(string subscriptionId, string resourceGroupName, string accountName, string databaseName) { var message = _pipeline.CreateMessage(); @@ -614,6 +728,23 @@ public Response MigrateMongoDBDatabaseToAutoscale(string subscriptionId, string } } + internal RequestUriBuilder CreateMigrateMongoDBDatabaseToManualThroughputRequestUri(string subscriptionId, string resourceGroupName, string accountName, string databaseName) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/mongodbDatabases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/throughputSettings/default/migrateToManualThroughput", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateMigrateMongoDBDatabaseToManualThroughputRequest(string subscriptionId, string resourceGroupName, string accountName, string databaseName) { var message = _pipeline.CreateMessage(); @@ -691,6 +822,23 @@ public Response MigrateMongoDBDatabaseToManualThroughput(string subscriptionId, } } + internal RequestUriBuilder CreateMongoDBDatabaseRetrieveThroughputDistributionRequestUri(string subscriptionId, string resourceGroupName, string accountName, string databaseName, RetrieveThroughputParameters retrieveThroughputParameters) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/mongodbDatabases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/throughputSettings/default/retrieveThroughputDistribution", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateMongoDBDatabaseRetrieveThroughputDistributionRequest(string subscriptionId, string resourceGroupName, string accountName, string databaseName, RetrieveThroughputParameters retrieveThroughputParameters) { var message = _pipeline.CreateMessage(); @@ -776,6 +924,23 @@ public Response MongoDBDatabaseRetrieveThroughputDistribution(string subscriptio } } + internal RequestUriBuilder CreateMongoDBDatabaseRedistributeThroughputRequestUri(string subscriptionId, string resourceGroupName, string accountName, string databaseName, RedistributeThroughputParameters redistributeThroughputParameters) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/mongodbDatabases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/throughputSettings/default/redistributeThroughput", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateMongoDBDatabaseRedistributeThroughputRequest(string subscriptionId, string resourceGroupName, string accountName, string databaseName, RedistributeThroughputParameters redistributeThroughputParameters) { var message = _pipeline.CreateMessage(); @@ -861,6 +1026,25 @@ public Response MongoDBDatabaseRedistributeThroughput(string subscriptionId, str } } + internal RequestUriBuilder CreateMongoDBContainerRetrieveThroughputDistributionRequestUri(string subscriptionId, string resourceGroupName, string accountName, string databaseName, string collectionName, RetrieveThroughputParameters retrieveThroughputParameters) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/mongodbDatabases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/collections/", false); + uri.AppendPath(collectionName, true); + uri.AppendPath("/throughputSettings/default/retrieveThroughputDistribution", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateMongoDBContainerRetrieveThroughputDistributionRequest(string subscriptionId, string resourceGroupName, string accountName, string databaseName, string collectionName, RetrieveThroughputParameters retrieveThroughputParameters) { var message = _pipeline.CreateMessage(); @@ -952,6 +1136,25 @@ public Response MongoDBContainerRetrieveThroughputDistribution(string subscripti } } + internal RequestUriBuilder CreateMongoDBContainerRedistributeThroughputRequestUri(string subscriptionId, string resourceGroupName, string accountName, string databaseName, string collectionName, RedistributeThroughputParameters redistributeThroughputParameters) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/mongodbDatabases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/collections/", false); + uri.AppendPath(collectionName, true); + uri.AppendPath("/throughputSettings/default/redistributeThroughput", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateMongoDBContainerRedistributeThroughputRequest(string subscriptionId, string resourceGroupName, string accountName, string databaseName, string collectionName, RedistributeThroughputParameters redistributeThroughputParameters) { var message = _pipeline.CreateMessage(); @@ -1043,6 +1246,23 @@ public Response MongoDBContainerRedistributeThroughput(string subscriptionId, st } } + internal RequestUriBuilder CreateListMongoDBCollectionsRequestUri(string subscriptionId, string resourceGroupName, string accountName, string databaseName) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/mongodbDatabases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/collections", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListMongoDBCollectionsRequest(string subscriptionId, string resourceGroupName, string accountName, string databaseName) { var message = _pipeline.CreateMessage(); @@ -1128,6 +1348,24 @@ public Response ListMongoDBCollections(string subsc } } + internal RequestUriBuilder CreateGetMongoDBCollectionRequestUri(string subscriptionId, string resourceGroupName, string accountName, string databaseName, string collectionName) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/mongodbDatabases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/collections/", false); + uri.AppendPath(collectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetMongoDBCollectionRequest(string subscriptionId, string resourceGroupName, string accountName, string databaseName, string collectionName) { var message = _pipeline.CreateMessage(); @@ -1222,6 +1460,24 @@ public Response GetMongoDBCollection(string subscriptionI } } + internal RequestUriBuilder CreateCreateUpdateMongoDBCollectionRequestUri(string subscriptionId, string resourceGroupName, string accountName, string databaseName, string collectionName, MongoDBCollectionCreateOrUpdateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/mongodbDatabases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/collections/", false); + uri.AppendPath(collectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateUpdateMongoDBCollectionRequest(string subscriptionId, string resourceGroupName, string accountName, string databaseName, string collectionName, MongoDBCollectionCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); @@ -1312,6 +1568,24 @@ public Response CreateUpdateMongoDBCollection(string subscriptionId, string reso } } + internal RequestUriBuilder CreateDeleteMongoDBCollectionRequestUri(string subscriptionId, string resourceGroupName, string accountName, string databaseName, string collectionName) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/mongodbDatabases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/collections/", false); + uri.AppendPath(collectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteMongoDBCollectionRequest(string subscriptionId, string resourceGroupName, string accountName, string databaseName, string collectionName) { var message = _pipeline.CreateMessage(); @@ -1393,6 +1667,23 @@ public Response DeleteMongoDBCollection(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateMongoDBDatabasePartitionMergeRequestUri(string subscriptionId, string resourceGroupName, string accountName, string databaseName, MergeParameters mergeParameters) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/mongodbDatabases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/partitionMerge", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateMongoDBDatabasePartitionMergeRequest(string subscriptionId, string resourceGroupName, string accountName, string databaseName, MergeParameters mergeParameters) { var message = _pipeline.CreateMessage(); @@ -1478,6 +1769,25 @@ public Response MongoDBDatabasePartitionMerge(string subscriptionId, string reso } } + internal RequestUriBuilder CreateListMongoDBCollectionPartitionMergeRequestUri(string subscriptionId, string resourceGroupName, string accountName, string databaseName, string collectionName, MergeParameters mergeParameters) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/mongodbDatabases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/collections/", false); + uri.AppendPath(collectionName, true); + uri.AppendPath("/partitionMerge", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListMongoDBCollectionPartitionMergeRequest(string subscriptionId, string resourceGroupName, string accountName, string databaseName, string collectionName, MergeParameters mergeParameters) { var message = _pipeline.CreateMessage(); @@ -1569,6 +1879,25 @@ public Response ListMongoDBCollectionPartitionMerge(string subscriptionId, strin } } + internal RequestUriBuilder CreateGetMongoDBCollectionThroughputRequestUri(string subscriptionId, string resourceGroupName, string accountName, string databaseName, string collectionName) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/mongodbDatabases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/collections/", false); + uri.AppendPath(collectionName, true); + uri.AppendPath("/throughputSettings/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetMongoDBCollectionThroughputRequest(string subscriptionId, string resourceGroupName, string accountName, string databaseName, string collectionName) { var message = _pipeline.CreateMessage(); @@ -1664,6 +1993,25 @@ public Response GetMongoDBCollectionThroughput(string sub } } + internal RequestUriBuilder CreateUpdateMongoDBCollectionThroughputRequestUri(string subscriptionId, string resourceGroupName, string accountName, string databaseName, string collectionName, ThroughputSettingsUpdateData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/mongodbDatabases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/collections/", false); + uri.AppendPath(collectionName, true); + uri.AppendPath("/throughputSettings/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateMongoDBCollectionThroughputRequest(string subscriptionId, string resourceGroupName, string accountName, string databaseName, string collectionName, ThroughputSettingsUpdateData data) { var message = _pipeline.CreateMessage(); @@ -1755,6 +2103,25 @@ public Response UpdateMongoDBCollectionThroughput(string subscriptionId, string } } + internal RequestUriBuilder CreateMigrateMongoDBCollectionToAutoscaleRequestUri(string subscriptionId, string resourceGroupName, string accountName, string databaseName, string collectionName) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/mongodbDatabases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/collections/", false); + uri.AppendPath(collectionName, true); + uri.AppendPath("/throughputSettings/default/migrateToAutoscale", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateMigrateMongoDBCollectionToAutoscaleRequest(string subscriptionId, string resourceGroupName, string accountName, string databaseName, string collectionName) { var message = _pipeline.CreateMessage(); @@ -1838,6 +2205,25 @@ public Response MigrateMongoDBCollectionToAutoscale(string subscriptionId, strin } } + internal RequestUriBuilder CreateMigrateMongoDBCollectionToManualThroughputRequestUri(string subscriptionId, string resourceGroupName, string accountName, string databaseName, string collectionName) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/mongodbDatabases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/collections/", false); + uri.AppendPath(collectionName, true); + uri.AppendPath("/throughputSettings/default/migrateToManualThroughput", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateMigrateMongoDBCollectionToManualThroughputRequest(string subscriptionId, string resourceGroupName, string accountName, string databaseName, string collectionName) { var message = _pipeline.CreateMessage(); @@ -1921,6 +2307,22 @@ public Response MigrateMongoDBCollectionToManualThroughput(string subscriptionId } } + internal RequestUriBuilder CreateGetMongoRoleDefinitionRequestUri(string subscriptionId, string resourceGroupName, string accountName, string mongoRoleDefinitionId) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/mongodbRoleDefinitions/", false); + uri.AppendPath(mongoRoleDefinitionId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetMongoRoleDefinitionRequest(string subscriptionId, string resourceGroupName, string accountName, string mongoRoleDefinitionId) { var message = _pipeline.CreateMessage(); @@ -2009,6 +2411,22 @@ public Response GetMongoRoleDefinition(string subscri } } + internal RequestUriBuilder CreateCreateUpdateMongoRoleDefinitionRequestUri(string subscriptionId, string resourceGroupName, string accountName, string mongoRoleDefinitionId, MongoDBRoleDefinitionCreateOrUpdateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/mongodbRoleDefinitions/", false); + uri.AppendPath(mongoRoleDefinitionId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateUpdateMongoRoleDefinitionRequest(string subscriptionId, string resourceGroupName, string accountName, string mongoRoleDefinitionId, MongoDBRoleDefinitionCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); @@ -2093,6 +2511,22 @@ public Response CreateUpdateMongoRoleDefinition(string subscriptionId, string re } } + internal RequestUriBuilder CreateDeleteMongoRoleDefinitionRequestUri(string subscriptionId, string resourceGroupName, string accountName, string mongoRoleDefinitionId) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/mongodbRoleDefinitions/", false); + uri.AppendPath(mongoRoleDefinitionId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteMongoRoleDefinitionRequest(string subscriptionId, string resourceGroupName, string accountName, string mongoRoleDefinitionId) { var message = _pipeline.CreateMessage(); @@ -2171,6 +2605,21 @@ public Response DeleteMongoRoleDefinition(string subscriptionId, string resource } } + internal RequestUriBuilder CreateListMongoRoleDefinitionsRequestUri(string subscriptionId, string resourceGroupName, string accountName) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/mongodbRoleDefinitions", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListMongoRoleDefinitionsRequest(string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); @@ -2250,6 +2699,22 @@ public Response ListMongoRoleDefinitions(string } } + internal RequestUriBuilder CreateGetMongoUserDefinitionRequestUri(string subscriptionId, string resourceGroupName, string accountName, string mongoUserDefinitionId) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/mongodbUserDefinitions/", false); + uri.AppendPath(mongoUserDefinitionId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetMongoUserDefinitionRequest(string subscriptionId, string resourceGroupName, string accountName, string mongoUserDefinitionId) { var message = _pipeline.CreateMessage(); @@ -2338,6 +2803,22 @@ public Response GetMongoUserDefinition(string subscri } } + internal RequestUriBuilder CreateCreateUpdateMongoUserDefinitionRequestUri(string subscriptionId, string resourceGroupName, string accountName, string mongoUserDefinitionId, MongoDBUserDefinitionCreateOrUpdateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/mongodbUserDefinitions/", false); + uri.AppendPath(mongoUserDefinitionId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateUpdateMongoUserDefinitionRequest(string subscriptionId, string resourceGroupName, string accountName, string mongoUserDefinitionId, MongoDBUserDefinitionCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); @@ -2422,6 +2903,22 @@ public Response CreateUpdateMongoUserDefinition(string subscriptionId, string re } } + internal RequestUriBuilder CreateDeleteMongoUserDefinitionRequestUri(string subscriptionId, string resourceGroupName, string accountName, string mongoUserDefinitionId) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/mongodbUserDefinitions/", false); + uri.AppendPath(mongoUserDefinitionId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteMongoUserDefinitionRequest(string subscriptionId, string resourceGroupName, string accountName, string mongoUserDefinitionId) { var message = _pipeline.CreateMessage(); @@ -2500,6 +2997,21 @@ public Response DeleteMongoUserDefinition(string subscriptionId, string resource } } + internal RequestUriBuilder CreateListMongoUserDefinitionsRequestUri(string subscriptionId, string resourceGroupName, string accountName) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/mongodbUserDefinitions", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListMongoUserDefinitionsRequest(string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); @@ -2579,6 +3091,25 @@ public Response ListMongoUserDefinitions(string } } + internal RequestUriBuilder CreateRetrieveContinuousBackupInformationRequestUri(string subscriptionId, string resourceGroupName, string accountName, string databaseName, string collectionName, ContinuousBackupRestoreLocation location) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/mongodbDatabases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/collections/", false); + uri.AppendPath(collectionName, true); + uri.AppendPath("/retrieveContinuousBackupInformation", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRetrieveContinuousBackupInformationRequest(string subscriptionId, string resourceGroupName, string accountName, string databaseName, string collectionName, ContinuousBackupRestoreLocation location) { var message = _pipeline.CreateMessage(); diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/PartitionKeyRangeIdRegionRestOperations.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/PartitionKeyRangeIdRegionRestOperations.cs index 98f592ca3faa..879e8afb909d 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/PartitionKeyRangeIdRegionRestOperations.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/PartitionKeyRangeIdRegionRestOperations.cs @@ -37,6 +37,30 @@ public PartitionKeyRangeIdRegionRestOperations(HttpPipeline pipeline, string app _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListMetricsRequestUri(string subscriptionId, string resourceGroupName, string accountName, string region, string databaseRid, string collectionRid, string partitionKeyRangeId, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/region/", false); + uri.AppendPath(region, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseRid, true); + uri.AppendPath("/collections/", false); + uri.AppendPath(collectionRid, true); + uri.AppendPath("/partitionKeyRangeId/", false); + uri.AppendPath(partitionKeyRangeId, true); + uri.AppendPath("/metrics", false); + uri.AppendQuery("api-version", _apiVersion, true); + uri.AppendQuery("$filter", filter, true); + return uri; + } + internal HttpMessage CreateListMetricsRequest(string subscriptionId, string resourceGroupName, string accountName, string region, string databaseRid, string collectionRid, string partitionKeyRangeId, string filter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/PartitionKeyRangeIdRestOperations.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/PartitionKeyRangeIdRestOperations.cs index bb414a3bf1c7..eabc029a9fe4 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/PartitionKeyRangeIdRestOperations.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/PartitionKeyRangeIdRestOperations.cs @@ -37,6 +37,28 @@ public PartitionKeyRangeIdRestOperations(HttpPipeline pipeline, string applicati _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListMetricsRequestUri(string subscriptionId, string resourceGroupName, string accountName, string databaseRid, string collectionRid, string partitionKeyRangeId, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseRid, true); + uri.AppendPath("/collections/", false); + uri.AppendPath(collectionRid, true); + uri.AppendPath("/partitionKeyRangeId/", false); + uri.AppendPath(partitionKeyRangeId, true); + uri.AppendPath("/metrics", false); + uri.AppendQuery("api-version", _apiVersion, true); + uri.AppendQuery("$filter", filter, true); + return uri; + } + internal HttpMessage CreateListMetricsRequest(string subscriptionId, string resourceGroupName, string accountName, string databaseRid, string collectionRid, string partitionKeyRangeId, string filter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/PercentileRestOperations.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/PercentileRestOperations.cs index c00ed68549f4..d27930aa6268 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/PercentileRestOperations.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/PercentileRestOperations.cs @@ -37,6 +37,22 @@ public PercentileRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListMetricsRequestUri(string subscriptionId, string resourceGroupName, string accountName, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/percentile/metrics", false); + uri.AppendQuery("api-version", _apiVersion, true); + uri.AppendQuery("$filter", filter, true); + return uri; + } + internal HttpMessage CreateListMetricsRequest(string subscriptionId, string resourceGroupName, string accountName, string filter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/PercentileSourceTargetRestOperations.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/PercentileSourceTargetRestOperations.cs index 6727853c379f..5b28379ba1b3 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/PercentileSourceTargetRestOperations.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/PercentileSourceTargetRestOperations.cs @@ -37,6 +37,26 @@ public PercentileSourceTargetRestOperations(HttpPipeline pipeline, string applic _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListMetricsRequestUri(string subscriptionId, string resourceGroupName, string accountName, string sourceRegion, string targetRegion, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/sourceRegion/", false); + uri.AppendPath(sourceRegion, true); + uri.AppendPath("/targetRegion/", false); + uri.AppendPath(targetRegion, true); + uri.AppendPath("/percentile/metrics", false); + uri.AppendQuery("api-version", _apiVersion, true); + uri.AppendQuery("$filter", filter, true); + return uri; + } + internal HttpMessage CreateListMetricsRequest(string subscriptionId, string resourceGroupName, string accountName, string sourceRegion, string targetRegion, string filter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/PercentileTargetRestOperations.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/PercentileTargetRestOperations.cs index 411518a32a4a..4be3df22966f 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/PercentileTargetRestOperations.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/PercentileTargetRestOperations.cs @@ -37,6 +37,24 @@ public PercentileTargetRestOperations(HttpPipeline pipeline, string applicationI _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListMetricsRequestUri(string subscriptionId, string resourceGroupName, string accountName, string targetRegion, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/targetRegion/", false); + uri.AppendPath(targetRegion, true); + uri.AppendPath("/percentile/metrics", false); + uri.AppendQuery("api-version", _apiVersion, true); + uri.AppendQuery("$filter", filter, true); + return uri; + } + internal HttpMessage CreateListMetricsRequest(string subscriptionId, string resourceGroupName, string accountName, string targetRegion, string filter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs index f5c1828cf97b..e6efad6c9afd 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs @@ -37,6 +37,21 @@ public PrivateEndpointConnectionsRestOperations(HttpPipeline pipeline, string ap _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByDatabaseAccountRequestUri(string subscriptionId, string resourceGroupName, string accountName) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/privateEndpointConnections", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByDatabaseAccountRequest(string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByDatabaseAccou } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string accountName, string privateEndpointConnectionName) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string accountName, string privateEndpointConnectionName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscriptionId } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string accountName, string privateEndpointConnectionName, CosmosDBPrivateEndpointConnectionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string accountName, string privateEndpointConnectionName, CosmosDBPrivateEndpointConnectionData data) { var message = _pipeline.CreateMessage(); @@ -288,6 +335,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string accountName, string privateEndpointConnectionName) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string accountName, string privateEndpointConnectionName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs index 6731ff4478a1..e49029a87d58 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs @@ -37,6 +37,21 @@ public PrivateLinkResourcesRestOperations(HttpPipeline pipeline, string applicat _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByDatabaseAccountRequestUri(string subscriptionId, string resourceGroupName, string accountName) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/privateLinkResources", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByDatabaseAccountRequest(string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByDatabaseAccount(str } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string accountName, string groupName) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/privateLinkResources/", false); + uri.AppendPath(groupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string accountName, string groupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/RestorableDatabaseAccountsRestOperations.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/RestorableDatabaseAccountsRestOperations.cs index e7d84be8c37a..c9f9a27da8e7 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/RestorableDatabaseAccountsRestOperations.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/RestorableDatabaseAccountsRestOperations.cs @@ -37,6 +37,19 @@ public RestorableDatabaseAccountsRestOperations(HttpPipeline pipeline, string ap _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByLocationRequestUri(string subscriptionId, AzureLocation location) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.DocumentDB/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/restorableDatabaseAccounts", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByLocationRequest(string subscriptionId, AzureLocation location) { var message = _pipeline.CreateMessage(); @@ -108,6 +121,17 @@ public Response ListByLocation(string subs } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.DocumentDB/restorableDatabaseAccounts", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -175,6 +199,20 @@ public Response List(string subscriptionId } } + internal RequestUriBuilder CreateGetByLocationRequestUri(string subscriptionId, AzureLocation location, Guid instanceId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.DocumentDB/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/restorableDatabaseAccounts/", false); + uri.AppendPath(instanceId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetByLocationRequest(string subscriptionId, AzureLocation location, Guid instanceId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/RestorableGremlinDatabasesRestOperations.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/RestorableGremlinDatabasesRestOperations.cs index a684664a98dc..d50b0c54d7f6 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/RestorableGremlinDatabasesRestOperations.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/RestorableGremlinDatabasesRestOperations.cs @@ -37,6 +37,21 @@ public RestorableGremlinDatabasesRestOperations(HttpPipeline pipeline, string ap _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, AzureLocation location, Guid instanceId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.DocumentDB/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/restorableDatabaseAccounts/", false); + uri.AppendPath(instanceId, true); + uri.AppendPath("/restorableGremlinDatabases", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, AzureLocation location, Guid instanceId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/RestorableGremlinGraphsRestOperations.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/RestorableGremlinGraphsRestOperations.cs index 562d5938c36e..b01c9c550c27 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/RestorableGremlinGraphsRestOperations.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/RestorableGremlinGraphsRestOperations.cs @@ -37,6 +37,33 @@ public RestorableGremlinGraphsRestOperations(HttpPipeline pipeline, string appli _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, AzureLocation location, Guid instanceId, string restorableGremlinDatabaseRid, string startTime, string endTime) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.DocumentDB/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/restorableDatabaseAccounts/", false); + uri.AppendPath(instanceId, true); + uri.AppendPath("/restorableGraphs", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (restorableGremlinDatabaseRid != null) + { + uri.AppendQuery("restorableGremlinDatabaseRid", restorableGremlinDatabaseRid, true); + } + if (startTime != null) + { + uri.AppendQuery("startTime", startTime, true); + } + if (endTime != null) + { + uri.AppendQuery("endTime", endTime, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, AzureLocation location, Guid instanceId, string restorableGremlinDatabaseRid, string startTime, string endTime) { var message = _pipeline.CreateMessage(); diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/RestorableGremlinResourcesRestOperations.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/RestorableGremlinResourcesRestOperations.cs index cdf9cc26c825..2a3737b9bff6 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/RestorableGremlinResourcesRestOperations.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/RestorableGremlinResourcesRestOperations.cs @@ -37,6 +37,29 @@ public RestorableGremlinResourcesRestOperations(HttpPipeline pipeline, string ap _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, AzureLocation location, Guid instanceId, AzureLocation? restoreLocation, string restoreTimestampInUtc) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.DocumentDB/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/restorableDatabaseAccounts/", false); + uri.AppendPath(instanceId, true); + uri.AppendPath("/restorableGremlinResources", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (restoreLocation != null) + { + uri.AppendQuery("restoreLocation", restoreLocation.Value, true); + } + if (restoreTimestampInUtc != null) + { + uri.AppendQuery("restoreTimestampInUtc", restoreTimestampInUtc, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, AzureLocation location, Guid instanceId, AzureLocation? restoreLocation, string restoreTimestampInUtc) { var message = _pipeline.CreateMessage(); diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/RestorableMongodbCollectionsRestOperations.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/RestorableMongodbCollectionsRestOperations.cs index 941d903e2343..d69b2b0d40a8 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/RestorableMongodbCollectionsRestOperations.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/RestorableMongodbCollectionsRestOperations.cs @@ -37,6 +37,33 @@ public RestorableMongodbCollectionsRestOperations(HttpPipeline pipeline, string _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, AzureLocation location, Guid instanceId, string restorableMongoDBDatabaseRid, string startTime, string endTime) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.DocumentDB/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/restorableDatabaseAccounts/", false); + uri.AppendPath(instanceId, true); + uri.AppendPath("/restorableMongodbCollections", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (restorableMongoDBDatabaseRid != null) + { + uri.AppendQuery("restorableMongodbDatabaseRid", restorableMongoDBDatabaseRid, true); + } + if (startTime != null) + { + uri.AppendQuery("startTime", startTime, true); + } + if (endTime != null) + { + uri.AppendQuery("endTime", endTime, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, AzureLocation location, Guid instanceId, string restorableMongoDBDatabaseRid, string startTime, string endTime) { var message = _pipeline.CreateMessage(); diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/RestorableMongodbDatabasesRestOperations.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/RestorableMongodbDatabasesRestOperations.cs index 82b9c7f4e92f..fd577da2337a 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/RestorableMongodbDatabasesRestOperations.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/RestorableMongodbDatabasesRestOperations.cs @@ -37,6 +37,21 @@ public RestorableMongodbDatabasesRestOperations(HttpPipeline pipeline, string ap _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, AzureLocation location, Guid instanceId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.DocumentDB/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/restorableDatabaseAccounts/", false); + uri.AppendPath(instanceId, true); + uri.AppendPath("/restorableMongodbDatabases", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, AzureLocation location, Guid instanceId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/RestorableMongodbResourcesRestOperations.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/RestorableMongodbResourcesRestOperations.cs index 5e1d6185743a..9c9ef823d0d5 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/RestorableMongodbResourcesRestOperations.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/RestorableMongodbResourcesRestOperations.cs @@ -37,6 +37,29 @@ public RestorableMongodbResourcesRestOperations(HttpPipeline pipeline, string ap _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, AzureLocation location, Guid instanceId, AzureLocation? restoreLocation, string restoreTimestampInUtc) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.DocumentDB/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/restorableDatabaseAccounts/", false); + uri.AppendPath(instanceId, true); + uri.AppendPath("/restorableMongodbResources", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (restoreLocation != null) + { + uri.AppendQuery("restoreLocation", restoreLocation.Value, true); + } + if (restoreTimestampInUtc != null) + { + uri.AppendQuery("restoreTimestampInUtc", restoreTimestampInUtc, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, AzureLocation location, Guid instanceId, AzureLocation? restoreLocation, string restoreTimestampInUtc) { var message = _pipeline.CreateMessage(); diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/RestorableSqlContainersRestOperations.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/RestorableSqlContainersRestOperations.cs index dce44737a2bf..d3a7bc7661d7 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/RestorableSqlContainersRestOperations.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/RestorableSqlContainersRestOperations.cs @@ -37,6 +37,33 @@ public RestorableSqlContainersRestOperations(HttpPipeline pipeline, string appli _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, AzureLocation location, Guid instanceId, string restorableSqlDatabaseRid, string startTime, string endTime) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.DocumentDB/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/restorableDatabaseAccounts/", false); + uri.AppendPath(instanceId, true); + uri.AppendPath("/restorableSqlContainers", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (restorableSqlDatabaseRid != null) + { + uri.AppendQuery("restorableSqlDatabaseRid", restorableSqlDatabaseRid, true); + } + if (startTime != null) + { + uri.AppendQuery("startTime", startTime, true); + } + if (endTime != null) + { + uri.AppendQuery("endTime", endTime, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, AzureLocation location, Guid instanceId, string restorableSqlDatabaseRid, string startTime, string endTime) { var message = _pipeline.CreateMessage(); diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/RestorableSqlDatabasesRestOperations.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/RestorableSqlDatabasesRestOperations.cs index afae919ede28..7ad9e829dd02 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/RestorableSqlDatabasesRestOperations.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/RestorableSqlDatabasesRestOperations.cs @@ -37,6 +37,21 @@ public RestorableSqlDatabasesRestOperations(HttpPipeline pipeline, string applic _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, AzureLocation location, Guid instanceId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.DocumentDB/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/restorableDatabaseAccounts/", false); + uri.AppendPath(instanceId, true); + uri.AppendPath("/restorableSqlDatabases", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, AzureLocation location, Guid instanceId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/RestorableSqlResourcesRestOperations.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/RestorableSqlResourcesRestOperations.cs index 89a71d6fd329..d9a8a2e1df37 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/RestorableSqlResourcesRestOperations.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/RestorableSqlResourcesRestOperations.cs @@ -37,6 +37,29 @@ public RestorableSqlResourcesRestOperations(HttpPipeline pipeline, string applic _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, AzureLocation location, Guid instanceId, AzureLocation? restoreLocation, string restoreTimestampInUtc) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.DocumentDB/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/restorableDatabaseAccounts/", false); + uri.AppendPath(instanceId, true); + uri.AppendPath("/restorableSqlResources", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (restoreLocation != null) + { + uri.AppendQuery("restoreLocation", restoreLocation.Value, true); + } + if (restoreTimestampInUtc != null) + { + uri.AppendQuery("restoreTimestampInUtc", restoreTimestampInUtc, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, AzureLocation location, Guid instanceId, AzureLocation? restoreLocation, string restoreTimestampInUtc) { var message = _pipeline.CreateMessage(); diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/RestorableTableResourcesRestOperations.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/RestorableTableResourcesRestOperations.cs index cfbfa20b3fad..cdc8400fc52d 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/RestorableTableResourcesRestOperations.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/RestorableTableResourcesRestOperations.cs @@ -37,6 +37,29 @@ public RestorableTableResourcesRestOperations(HttpPipeline pipeline, string appl _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, AzureLocation location, Guid instanceId, AzureLocation? restoreLocation, string restoreTimestampInUtc) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.DocumentDB/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/restorableDatabaseAccounts/", false); + uri.AppendPath(instanceId, true); + uri.AppendPath("/restorableTableResources", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (restoreLocation != null) + { + uri.AppendQuery("restoreLocation", restoreLocation.Value, true); + } + if (restoreTimestampInUtc != null) + { + uri.AppendQuery("restoreTimestampInUtc", restoreTimestampInUtc, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, AzureLocation location, Guid instanceId, AzureLocation? restoreLocation, string restoreTimestampInUtc) { var message = _pipeline.CreateMessage(); diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/RestorableTablesRestOperations.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/RestorableTablesRestOperations.cs index 0e1539911575..ff2475b2ea10 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/RestorableTablesRestOperations.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/RestorableTablesRestOperations.cs @@ -37,6 +37,29 @@ public RestorableTablesRestOperations(HttpPipeline pipeline, string applicationI _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, AzureLocation location, Guid instanceId, string startTime, string endTime) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.DocumentDB/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/restorableDatabaseAccounts/", false); + uri.AppendPath(instanceId, true); + uri.AppendPath("/restorableTables", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (startTime != null) + { + uri.AppendQuery("startTime", startTime, true); + } + if (endTime != null) + { + uri.AppendQuery("endTime", endTime, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, AzureLocation location, Guid instanceId, string startTime, string endTime) { var message = _pipeline.CreateMessage(); diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/ServiceRestOperations.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/ServiceRestOperations.cs index e57261f307d9..fb9d4dcb7d67 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/ServiceRestOperations.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/ServiceRestOperations.cs @@ -37,6 +37,21 @@ public ServiceRestOperations(HttpPipeline pipeline, string applicationId, Uri en _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string accountName) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/services", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response List(string subscriptionId, string re } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string accountName, string serviceName, CosmosDBServiceCreateOrUpdateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/services/", false); + uri.AppendPath(serviceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string accountName, string serviceName, CosmosDBServiceCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); @@ -200,6 +231,22 @@ public Response Create(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string accountName, string serviceName) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/services/", false); + uri.AppendPath(serviceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string accountName, string serviceName) { var message = _pipeline.CreateMessage(); @@ -288,6 +335,22 @@ public Response Get(string subscriptionId, string resourceG } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string accountName, string serviceName) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/services/", false); + uri.AppendPath(serviceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string accountName, string serviceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/SqlResourcesRestOperations.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/SqlResourcesRestOperations.cs index 1e4130ce8320..e565cc04b4ba 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/SqlResourcesRestOperations.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/SqlResourcesRestOperations.cs @@ -37,6 +37,21 @@ public SqlResourcesRestOperations(HttpPipeline pipeline, string applicationId, U _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListSqlDatabasesRequestUri(string subscriptionId, string resourceGroupName, string accountName) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/sqlDatabases", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListSqlDatabasesRequest(string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListSqlDatabases(string subscript } } + internal RequestUriBuilder CreateGetSqlDatabaseRequestUri(string subscriptionId, string resourceGroupName, string accountName, string databaseName) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/sqlDatabases/", false); + uri.AppendPath(databaseName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetSqlDatabaseRequest(string subscriptionId, string resourceGroupName, string accountName, string databaseName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response GetSqlDatabase(string subscriptionId, s } } + internal RequestUriBuilder CreateCreateUpdateSqlDatabaseRequestUri(string subscriptionId, string resourceGroupName, string accountName, string databaseName, CosmosDBSqlDatabaseCreateOrUpdateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/sqlDatabases/", false); + uri.AppendPath(databaseName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateUpdateSqlDatabaseRequest(string subscriptionId, string resourceGroupName, string accountName, string databaseName, CosmosDBSqlDatabaseCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); @@ -288,6 +335,22 @@ public Response CreateUpdateSqlDatabase(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateDeleteSqlDatabaseRequestUri(string subscriptionId, string resourceGroupName, string accountName, string databaseName) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/sqlDatabases/", false); + uri.AppendPath(databaseName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteSqlDatabaseRequest(string subscriptionId, string resourceGroupName, string accountName, string databaseName) { var message = _pipeline.CreateMessage(); @@ -363,6 +426,23 @@ public Response DeleteSqlDatabase(string subscriptionId, string resourceGroupNam } } + internal RequestUriBuilder CreateGetSqlDatabaseThroughputRequestUri(string subscriptionId, string resourceGroupName, string accountName, string databaseName) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/sqlDatabases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/throughputSettings/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetSqlDatabaseThroughputRequest(string subscriptionId, string resourceGroupName, string accountName, string databaseName) { var message = _pipeline.CreateMessage(); @@ -452,6 +532,23 @@ public Response GetSqlDatabaseThroughput(string subscript } } + internal RequestUriBuilder CreateUpdateSqlDatabaseThroughputRequestUri(string subscriptionId, string resourceGroupName, string accountName, string databaseName, ThroughputSettingsUpdateData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/sqlDatabases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/throughputSettings/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateSqlDatabaseThroughputRequest(string subscriptionId, string resourceGroupName, string accountName, string databaseName, ThroughputSettingsUpdateData data) { var message = _pipeline.CreateMessage(); @@ -537,6 +634,23 @@ public Response UpdateSqlDatabaseThroughput(string subscriptionId, string resour } } + internal RequestUriBuilder CreateMigrateSqlDatabaseToAutoscaleRequestUri(string subscriptionId, string resourceGroupName, string accountName, string databaseName) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/sqlDatabases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/throughputSettings/default/migrateToAutoscale", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateMigrateSqlDatabaseToAutoscaleRequest(string subscriptionId, string resourceGroupName, string accountName, string databaseName) { var message = _pipeline.CreateMessage(); @@ -614,6 +728,23 @@ public Response MigrateSqlDatabaseToAutoscale(string subscriptionId, string reso } } + internal RequestUriBuilder CreateMigrateSqlDatabaseToManualThroughputRequestUri(string subscriptionId, string resourceGroupName, string accountName, string databaseName) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/sqlDatabases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/throughputSettings/default/migrateToManualThroughput", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateMigrateSqlDatabaseToManualThroughputRequest(string subscriptionId, string resourceGroupName, string accountName, string databaseName) { var message = _pipeline.CreateMessage(); @@ -691,6 +822,23 @@ public Response MigrateSqlDatabaseToManualThroughput(string subscriptionId, stri } } + internal RequestUriBuilder CreateListClientEncryptionKeysRequestUri(string subscriptionId, string resourceGroupName, string accountName, string databaseName) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/sqlDatabases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/clientEncryptionKeys", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListClientEncryptionKeysRequest(string subscriptionId, string resourceGroupName, string accountName, string databaseName) { var message = _pipeline.CreateMessage(); @@ -776,6 +924,24 @@ public Response ListClientEncryptionKeys(string } } + internal RequestUriBuilder CreateGetClientEncryptionKeyRequestUri(string subscriptionId, string resourceGroupName, string accountName, string databaseName, string clientEncryptionKeyName) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/sqlDatabases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/clientEncryptionKeys/", false); + uri.AppendPath(clientEncryptionKeyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetClientEncryptionKeyRequest(string subscriptionId, string resourceGroupName, string accountName, string databaseName, string clientEncryptionKeyName) { var message = _pipeline.CreateMessage(); @@ -870,6 +1036,24 @@ public Response GetClientEncryptionKey(strin } } + internal RequestUriBuilder CreateCreateUpdateClientEncryptionKeyRequestUri(string subscriptionId, string resourceGroupName, string accountName, string databaseName, string clientEncryptionKeyName, CosmosDBSqlClientEncryptionKeyCreateOrUpdateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/sqlDatabases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/clientEncryptionKeys/", false); + uri.AppendPath(clientEncryptionKeyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateUpdateClientEncryptionKeyRequest(string subscriptionId, string resourceGroupName, string accountName, string databaseName, string clientEncryptionKeyName, CosmosDBSqlClientEncryptionKeyCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); @@ -960,6 +1144,23 @@ public Response CreateUpdateClientEncryptionKey(string subscriptionId, string re } } + internal RequestUriBuilder CreateListSqlContainersRequestUri(string subscriptionId, string resourceGroupName, string accountName, string databaseName) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/sqlDatabases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/containers", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListSqlContainersRequest(string subscriptionId, string resourceGroupName, string accountName, string databaseName) { var message = _pipeline.CreateMessage(); @@ -1045,6 +1246,24 @@ public Response ListSqlContainers(string subscri } } + internal RequestUriBuilder CreateGetSqlContainerRequestUri(string subscriptionId, string resourceGroupName, string accountName, string databaseName, string containerName) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/sqlDatabases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/containers/", false); + uri.AppendPath(containerName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetSqlContainerRequest(string subscriptionId, string resourceGroupName, string accountName, string databaseName, string containerName) { var message = _pipeline.CreateMessage(); @@ -1139,6 +1358,24 @@ public Response GetSqlContainer(string subscriptionId, } } + internal RequestUriBuilder CreateCreateUpdateSqlContainerRequestUri(string subscriptionId, string resourceGroupName, string accountName, string databaseName, string containerName, CosmosDBSqlContainerCreateOrUpdateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/sqlDatabases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/containers/", false); + uri.AppendPath(containerName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateUpdateSqlContainerRequest(string subscriptionId, string resourceGroupName, string accountName, string databaseName, string containerName, CosmosDBSqlContainerCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); @@ -1229,6 +1466,24 @@ public Response CreateUpdateSqlContainer(string subscriptionId, string resourceG } } + internal RequestUriBuilder CreateDeleteSqlContainerRequestUri(string subscriptionId, string resourceGroupName, string accountName, string databaseName, string containerName) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/sqlDatabases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/containers/", false); + uri.AppendPath(containerName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteSqlContainerRequest(string subscriptionId, string resourceGroupName, string accountName, string databaseName, string containerName) { var message = _pipeline.CreateMessage(); @@ -1310,6 +1565,23 @@ public Response DeleteSqlContainer(string subscriptionId, string resourceGroupNa } } + internal RequestUriBuilder CreateSqlDatabasePartitionMergeRequestUri(string subscriptionId, string resourceGroupName, string accountName, string databaseName, MergeParameters mergeParameters) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/sqlDatabases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/partitionMerge", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateSqlDatabasePartitionMergeRequest(string subscriptionId, string resourceGroupName, string accountName, string databaseName, MergeParameters mergeParameters) { var message = _pipeline.CreateMessage(); @@ -1395,6 +1667,25 @@ public Response SqlDatabasePartitionMerge(string subscriptionId, string resource } } + internal RequestUriBuilder CreateListSqlContainerPartitionMergeRequestUri(string subscriptionId, string resourceGroupName, string accountName, string databaseName, string containerName, MergeParameters mergeParameters) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/sqlDatabases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/containers/", false); + uri.AppendPath(containerName, true); + uri.AppendPath("/partitionMerge", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListSqlContainerPartitionMergeRequest(string subscriptionId, string resourceGroupName, string accountName, string databaseName, string containerName, MergeParameters mergeParameters) { var message = _pipeline.CreateMessage(); @@ -1486,6 +1777,25 @@ public Response ListSqlContainerPartitionMerge(string subscriptionId, string res } } + internal RequestUriBuilder CreateGetSqlContainerThroughputRequestUri(string subscriptionId, string resourceGroupName, string accountName, string databaseName, string containerName) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/sqlDatabases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/containers/", false); + uri.AppendPath(containerName, true); + uri.AppendPath("/throughputSettings/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetSqlContainerThroughputRequest(string subscriptionId, string resourceGroupName, string accountName, string databaseName, string containerName) { var message = _pipeline.CreateMessage(); @@ -1581,6 +1891,25 @@ public Response GetSqlContainerThroughput(string subscrip } } + internal RequestUriBuilder CreateUpdateSqlContainerThroughputRequestUri(string subscriptionId, string resourceGroupName, string accountName, string databaseName, string containerName, ThroughputSettingsUpdateData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/sqlDatabases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/containers/", false); + uri.AppendPath(containerName, true); + uri.AppendPath("/throughputSettings/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateSqlContainerThroughputRequest(string subscriptionId, string resourceGroupName, string accountName, string databaseName, string containerName, ThroughputSettingsUpdateData data) { var message = _pipeline.CreateMessage(); @@ -1672,6 +2001,25 @@ public Response UpdateSqlContainerThroughput(string subscriptionId, string resou } } + internal RequestUriBuilder CreateMigrateSqlContainerToAutoscaleRequestUri(string subscriptionId, string resourceGroupName, string accountName, string databaseName, string containerName) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/sqlDatabases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/containers/", false); + uri.AppendPath(containerName, true); + uri.AppendPath("/throughputSettings/default/migrateToAutoscale", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateMigrateSqlContainerToAutoscaleRequest(string subscriptionId, string resourceGroupName, string accountName, string databaseName, string containerName) { var message = _pipeline.CreateMessage(); @@ -1755,6 +2103,25 @@ public Response MigrateSqlContainerToAutoscale(string subscriptionId, string res } } + internal RequestUriBuilder CreateMigrateSqlContainerToManualThroughputRequestUri(string subscriptionId, string resourceGroupName, string accountName, string databaseName, string containerName) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/sqlDatabases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/containers/", false); + uri.AppendPath(containerName, true); + uri.AppendPath("/throughputSettings/default/migrateToManualThroughput", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateMigrateSqlContainerToManualThroughputRequest(string subscriptionId, string resourceGroupName, string accountName, string databaseName, string containerName) { var message = _pipeline.CreateMessage(); @@ -1838,6 +2205,23 @@ public Response MigrateSqlContainerToManualThroughput(string subscriptionId, str } } + internal RequestUriBuilder CreateSqlDatabaseRetrieveThroughputDistributionRequestUri(string subscriptionId, string resourceGroupName, string accountName, string databaseName, RetrieveThroughputParameters retrieveThroughputParameters) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/sqlDatabases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/throughputSettings/default/retrieveThroughputDistribution", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateSqlDatabaseRetrieveThroughputDistributionRequest(string subscriptionId, string resourceGroupName, string accountName, string databaseName, RetrieveThroughputParameters retrieveThroughputParameters) { var message = _pipeline.CreateMessage(); @@ -1923,6 +2307,23 @@ public Response SqlDatabaseRetrieveThroughputDistribution(string subscriptionId, } } + internal RequestUriBuilder CreateSqlDatabaseRedistributeThroughputRequestUri(string subscriptionId, string resourceGroupName, string accountName, string databaseName, RedistributeThroughputParameters redistributeThroughputParameters) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/sqlDatabases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/throughputSettings/default/redistributeThroughput", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateSqlDatabaseRedistributeThroughputRequest(string subscriptionId, string resourceGroupName, string accountName, string databaseName, RedistributeThroughputParameters redistributeThroughputParameters) { var message = _pipeline.CreateMessage(); @@ -2008,6 +2409,25 @@ public Response SqlDatabaseRedistributeThroughput(string subscriptionId, string } } + internal RequestUriBuilder CreateSqlContainerRetrieveThroughputDistributionRequestUri(string subscriptionId, string resourceGroupName, string accountName, string databaseName, string containerName, RetrieveThroughputParameters retrieveThroughputParameters) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/sqlDatabases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/containers/", false); + uri.AppendPath(containerName, true); + uri.AppendPath("/throughputSettings/default/retrieveThroughputDistribution", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateSqlContainerRetrieveThroughputDistributionRequest(string subscriptionId, string resourceGroupName, string accountName, string databaseName, string containerName, RetrieveThroughputParameters retrieveThroughputParameters) { var message = _pipeline.CreateMessage(); @@ -2099,6 +2519,25 @@ public Response SqlContainerRetrieveThroughputDistribution(string subscriptionId } } + internal RequestUriBuilder CreateSqlContainerRedistributeThroughputRequestUri(string subscriptionId, string resourceGroupName, string accountName, string databaseName, string containerName, RedistributeThroughputParameters redistributeThroughputParameters) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/sqlDatabases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/containers/", false); + uri.AppendPath(containerName, true); + uri.AppendPath("/throughputSettings/default/redistributeThroughput", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateSqlContainerRedistributeThroughputRequest(string subscriptionId, string resourceGroupName, string accountName, string databaseName, string containerName, RedistributeThroughputParameters redistributeThroughputParameters) { var message = _pipeline.CreateMessage(); @@ -2190,6 +2629,25 @@ public Response SqlContainerRedistributeThroughput(string subscriptionId, string } } + internal RequestUriBuilder CreateListSqlStoredProceduresRequestUri(string subscriptionId, string resourceGroupName, string accountName, string databaseName, string containerName) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/sqlDatabases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/containers/", false); + uri.AppendPath(containerName, true); + uri.AppendPath("/storedProcedures", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListSqlStoredProceduresRequest(string subscriptionId, string resourceGroupName, string accountName, string databaseName, string containerName) { var message = _pipeline.CreateMessage(); @@ -2281,6 +2739,26 @@ public Response ListSqlStoredProcedures(st } } + internal RequestUriBuilder CreateGetSqlStoredProcedureRequestUri(string subscriptionId, string resourceGroupName, string accountName, string databaseName, string containerName, string storedProcedureName) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/sqlDatabases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/containers/", false); + uri.AppendPath(containerName, true); + uri.AppendPath("/storedProcedures/", false); + uri.AppendPath(storedProcedureName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetSqlStoredProcedureRequest(string subscriptionId, string resourceGroupName, string accountName, string databaseName, string containerName, string storedProcedureName) { var message = _pipeline.CreateMessage(); @@ -2381,6 +2859,26 @@ public Response GetSqlStoredProcedure(string sub } } + internal RequestUriBuilder CreateCreateUpdateSqlStoredProcedureRequestUri(string subscriptionId, string resourceGroupName, string accountName, string databaseName, string containerName, string storedProcedureName, CosmosDBSqlStoredProcedureCreateOrUpdateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/sqlDatabases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/containers/", false); + uri.AppendPath(containerName, true); + uri.AppendPath("/storedProcedures/", false); + uri.AppendPath(storedProcedureName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateUpdateSqlStoredProcedureRequest(string subscriptionId, string resourceGroupName, string accountName, string databaseName, string containerName, string storedProcedureName, CosmosDBSqlStoredProcedureCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); @@ -2477,6 +2975,26 @@ public Response CreateUpdateSqlStoredProcedure(string subscriptionId, string res } } + internal RequestUriBuilder CreateDeleteSqlStoredProcedureRequestUri(string subscriptionId, string resourceGroupName, string accountName, string databaseName, string containerName, string storedProcedureName) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/sqlDatabases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/containers/", false); + uri.AppendPath(containerName, true); + uri.AppendPath("/storedProcedures/", false); + uri.AppendPath(storedProcedureName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteSqlStoredProcedureRequest(string subscriptionId, string resourceGroupName, string accountName, string databaseName, string containerName, string storedProcedureName) { var message = _pipeline.CreateMessage(); @@ -2564,6 +3082,25 @@ public Response DeleteSqlStoredProcedure(string subscriptionId, string resourceG } } + internal RequestUriBuilder CreateListSqlUserDefinedFunctionsRequestUri(string subscriptionId, string resourceGroupName, string accountName, string databaseName, string containerName) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/sqlDatabases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/containers/", false); + uri.AppendPath(containerName, true); + uri.AppendPath("/userDefinedFunctions", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListSqlUserDefinedFunctionsRequest(string subscriptionId, string resourceGroupName, string accountName, string databaseName, string containerName) { var message = _pipeline.CreateMessage(); @@ -2655,6 +3192,26 @@ public Response ListSqlUserDefinedFunc } } + internal RequestUriBuilder CreateGetSqlUserDefinedFunctionRequestUri(string subscriptionId, string resourceGroupName, string accountName, string databaseName, string containerName, string userDefinedFunctionName) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/sqlDatabases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/containers/", false); + uri.AppendPath(containerName, true); + uri.AppendPath("/userDefinedFunctions/", false); + uri.AppendPath(userDefinedFunctionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetSqlUserDefinedFunctionRequest(string subscriptionId, string resourceGroupName, string accountName, string databaseName, string containerName, string userDefinedFunctionName) { var message = _pipeline.CreateMessage(); @@ -2755,6 +3312,26 @@ public Response GetSqlUserDefinedFunction(st } } + internal RequestUriBuilder CreateCreateUpdateSqlUserDefinedFunctionRequestUri(string subscriptionId, string resourceGroupName, string accountName, string databaseName, string containerName, string userDefinedFunctionName, CosmosDBSqlUserDefinedFunctionCreateOrUpdateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/sqlDatabases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/containers/", false); + uri.AppendPath(containerName, true); + uri.AppendPath("/userDefinedFunctions/", false); + uri.AppendPath(userDefinedFunctionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateUpdateSqlUserDefinedFunctionRequest(string subscriptionId, string resourceGroupName, string accountName, string databaseName, string containerName, string userDefinedFunctionName, CosmosDBSqlUserDefinedFunctionCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); @@ -2851,6 +3428,26 @@ public Response CreateUpdateSqlUserDefinedFunction(string subscriptionId, string } } + internal RequestUriBuilder CreateDeleteSqlUserDefinedFunctionRequestUri(string subscriptionId, string resourceGroupName, string accountName, string databaseName, string containerName, string userDefinedFunctionName) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/sqlDatabases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/containers/", false); + uri.AppendPath(containerName, true); + uri.AppendPath("/userDefinedFunctions/", false); + uri.AppendPath(userDefinedFunctionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteSqlUserDefinedFunctionRequest(string subscriptionId, string resourceGroupName, string accountName, string databaseName, string containerName, string userDefinedFunctionName) { var message = _pipeline.CreateMessage(); @@ -2938,6 +3535,25 @@ public Response DeleteSqlUserDefinedFunction(string subscriptionId, string resou } } + internal RequestUriBuilder CreateListSqlTriggersRequestUri(string subscriptionId, string resourceGroupName, string accountName, string databaseName, string containerName) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/sqlDatabases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/containers/", false); + uri.AppendPath(containerName, true); + uri.AppendPath("/triggers", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListSqlTriggersRequest(string subscriptionId, string resourceGroupName, string accountName, string databaseName, string containerName) { var message = _pipeline.CreateMessage(); @@ -3029,6 +3645,26 @@ public Response ListSqlTriggers(string subscriptio } } + internal RequestUriBuilder CreateGetSqlTriggerRequestUri(string subscriptionId, string resourceGroupName, string accountName, string databaseName, string containerName, string triggerName) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/sqlDatabases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/containers/", false); + uri.AppendPath(containerName, true); + uri.AppendPath("/triggers/", false); + uri.AppendPath(triggerName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetSqlTriggerRequest(string subscriptionId, string resourceGroupName, string accountName, string databaseName, string containerName, string triggerName) { var message = _pipeline.CreateMessage(); @@ -3129,6 +3765,26 @@ public Response GetSqlTrigger(string subscriptionId, str } } + internal RequestUriBuilder CreateCreateUpdateSqlTriggerRequestUri(string subscriptionId, string resourceGroupName, string accountName, string databaseName, string containerName, string triggerName, CosmosDBSqlTriggerCreateOrUpdateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/sqlDatabases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/containers/", false); + uri.AppendPath(containerName, true); + uri.AppendPath("/triggers/", false); + uri.AppendPath(triggerName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateUpdateSqlTriggerRequest(string subscriptionId, string resourceGroupName, string accountName, string databaseName, string containerName, string triggerName, CosmosDBSqlTriggerCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); @@ -3225,6 +3881,26 @@ public Response CreateUpdateSqlTrigger(string subscriptionId, string resourceGro } } + internal RequestUriBuilder CreateDeleteSqlTriggerRequestUri(string subscriptionId, string resourceGroupName, string accountName, string databaseName, string containerName, string triggerName) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/sqlDatabases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/containers/", false); + uri.AppendPath(containerName, true); + uri.AppendPath("/triggers/", false); + uri.AppendPath(triggerName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteSqlTriggerRequest(string subscriptionId, string resourceGroupName, string accountName, string databaseName, string containerName, string triggerName) { var message = _pipeline.CreateMessage(); @@ -3312,6 +3988,22 @@ public Response DeleteSqlTrigger(string subscriptionId, string resourceGroupName } } + internal RequestUriBuilder CreateGetSqlRoleDefinitionRequestUri(string subscriptionId, string resourceGroupName, string accountName, string roleDefinitionId) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/sqlRoleDefinitions/", false); + uri.AppendPath(roleDefinitionId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetSqlRoleDefinitionRequest(string subscriptionId, string resourceGroupName, string accountName, string roleDefinitionId) { var message = _pipeline.CreateMessage(); @@ -3400,6 +4092,22 @@ public Response GetSqlRoleDefinition(string subsc } } + internal RequestUriBuilder CreateCreateUpdateSqlRoleDefinitionRequestUri(string subscriptionId, string resourceGroupName, string accountName, string roleDefinitionId, CosmosDBSqlRoleDefinitionCreateOrUpdateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/sqlRoleDefinitions/", false); + uri.AppendPath(roleDefinitionId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateUpdateSqlRoleDefinitionRequest(string subscriptionId, string resourceGroupName, string accountName, string roleDefinitionId, CosmosDBSqlRoleDefinitionCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); @@ -3484,6 +4192,22 @@ public Response CreateUpdateSqlRoleDefinition(string subscriptionId, string reso } } + internal RequestUriBuilder CreateDeleteSqlRoleDefinitionRequestUri(string subscriptionId, string resourceGroupName, string accountName, string roleDefinitionId) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/sqlRoleDefinitions/", false); + uri.AppendPath(roleDefinitionId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteSqlRoleDefinitionRequest(string subscriptionId, string resourceGroupName, string accountName, string roleDefinitionId) { var message = _pipeline.CreateMessage(); @@ -3562,6 +4286,21 @@ public Response DeleteSqlRoleDefinition(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateListSqlRoleDefinitionsRequestUri(string subscriptionId, string resourceGroupName, string accountName) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/sqlRoleDefinitions", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListSqlRoleDefinitionsRequest(string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); @@ -3641,6 +4380,22 @@ public Response ListSqlRoleDefinitions(string sub } } + internal RequestUriBuilder CreateGetSqlRoleAssignmentRequestUri(string subscriptionId, string resourceGroupName, string accountName, string roleAssignmentId) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/sqlRoleAssignments/", false); + uri.AppendPath(roleAssignmentId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetSqlRoleAssignmentRequest(string subscriptionId, string resourceGroupName, string accountName, string roleAssignmentId) { var message = _pipeline.CreateMessage(); @@ -3729,6 +4484,22 @@ public Response GetSqlRoleAssignment(string subsc } } + internal RequestUriBuilder CreateCreateUpdateSqlRoleAssignmentRequestUri(string subscriptionId, string resourceGroupName, string accountName, string roleAssignmentId, CosmosDBSqlRoleAssignmentCreateOrUpdateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/sqlRoleAssignments/", false); + uri.AppendPath(roleAssignmentId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateUpdateSqlRoleAssignmentRequest(string subscriptionId, string resourceGroupName, string accountName, string roleAssignmentId, CosmosDBSqlRoleAssignmentCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); @@ -3813,6 +4584,22 @@ public Response CreateUpdateSqlRoleAssignment(string subscriptionId, string reso } } + internal RequestUriBuilder CreateDeleteSqlRoleAssignmentRequestUri(string subscriptionId, string resourceGroupName, string accountName, string roleAssignmentId) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/sqlRoleAssignments/", false); + uri.AppendPath(roleAssignmentId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteSqlRoleAssignmentRequest(string subscriptionId, string resourceGroupName, string accountName, string roleAssignmentId) { var message = _pipeline.CreateMessage(); @@ -3891,6 +4678,21 @@ public Response DeleteSqlRoleAssignment(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateListSqlRoleAssignmentsRequestUri(string subscriptionId, string resourceGroupName, string accountName) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/sqlRoleAssignments", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListSqlRoleAssignmentsRequest(string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); @@ -3970,6 +4772,25 @@ public Response ListSqlRoleAssignments(string sub } } + internal RequestUriBuilder CreateRetrieveContinuousBackupInformationRequestUri(string subscriptionId, string resourceGroupName, string accountName, string databaseName, string containerName, ContinuousBackupRestoreLocation location) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/sqlDatabases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/containers/", false); + uri.AppendPath(containerName, true); + uri.AppendPath("/retrieveContinuousBackupInformation", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRetrieveContinuousBackupInformationRequest(string subscriptionId, string resourceGroupName, string accountName, string databaseName, string containerName, ContinuousBackupRestoreLocation location) { var message = _pipeline.CreateMessage(); diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/TableResourcesRestOperations.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/TableResourcesRestOperations.cs index 555b3290ccf7..11a63372c235 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/TableResourcesRestOperations.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/TableResourcesRestOperations.cs @@ -37,6 +37,21 @@ public TableResourcesRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListTablesRequestUri(string subscriptionId, string resourceGroupName, string accountName) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/tables", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListTablesRequest(string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListTables(string subscriptionId, strin } } + internal RequestUriBuilder CreateGetTableRequestUri(string subscriptionId, string resourceGroupName, string accountName, string tableName) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/tables/", false); + uri.AppendPath(tableName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetTableRequest(string subscriptionId, string resourceGroupName, string accountName, string tableName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response GetTable(string subscriptionId, string resour } } + internal RequestUriBuilder CreateCreateUpdateTableRequestUri(string subscriptionId, string resourceGroupName, string accountName, string tableName, CosmosDBTableCreateOrUpdateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/tables/", false); + uri.AppendPath(tableName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateUpdateTableRequest(string subscriptionId, string resourceGroupName, string accountName, string tableName, CosmosDBTableCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); @@ -288,6 +335,22 @@ public Response CreateUpdateTable(string subscriptionId, string resourceGroupNam } } + internal RequestUriBuilder CreateDeleteTableRequestUri(string subscriptionId, string resourceGroupName, string accountName, string tableName) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/tables/", false); + uri.AppendPath(tableName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteTableRequest(string subscriptionId, string resourceGroupName, string accountName, string tableName) { var message = _pipeline.CreateMessage(); @@ -363,6 +426,23 @@ public Response DeleteTable(string subscriptionId, string resourceGroupName, str } } + internal RequestUriBuilder CreateGetTableThroughputRequestUri(string subscriptionId, string resourceGroupName, string accountName, string tableName) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/tables/", false); + uri.AppendPath(tableName, true); + uri.AppendPath("/throughputSettings/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetTableThroughputRequest(string subscriptionId, string resourceGroupName, string accountName, string tableName) { var message = _pipeline.CreateMessage(); @@ -452,6 +532,23 @@ public Response GetTableThroughput(string subscriptionId, } } + internal RequestUriBuilder CreateUpdateTableThroughputRequestUri(string subscriptionId, string resourceGroupName, string accountName, string tableName, ThroughputSettingsUpdateData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/tables/", false); + uri.AppendPath(tableName, true); + uri.AppendPath("/throughputSettings/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateTableThroughputRequest(string subscriptionId, string resourceGroupName, string accountName, string tableName, ThroughputSettingsUpdateData data) { var message = _pipeline.CreateMessage(); @@ -537,6 +634,23 @@ public Response UpdateTableThroughput(string subscriptionId, string resourceGrou } } + internal RequestUriBuilder CreateMigrateTableToAutoscaleRequestUri(string subscriptionId, string resourceGroupName, string accountName, string tableName) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/tables/", false); + uri.AppendPath(tableName, true); + uri.AppendPath("/throughputSettings/default/migrateToAutoscale", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateMigrateTableToAutoscaleRequest(string subscriptionId, string resourceGroupName, string accountName, string tableName) { var message = _pipeline.CreateMessage(); @@ -614,6 +728,23 @@ public Response MigrateTableToAutoscale(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateMigrateTableToManualThroughputRequestUri(string subscriptionId, string resourceGroupName, string accountName, string tableName) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/tables/", false); + uri.AppendPath(tableName, true); + uri.AppendPath("/throughputSettings/default/migrateToManualThroughput", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateMigrateTableToManualThroughputRequest(string subscriptionId, string resourceGroupName, string accountName, string tableName) { var message = _pipeline.CreateMessage(); @@ -691,6 +822,23 @@ public Response MigrateTableToManualThroughput(string subscriptionId, string res } } + internal RequestUriBuilder CreateRetrieveContinuousBackupInformationRequestUri(string subscriptionId, string resourceGroupName, string accountName, string tableName, ContinuousBackupRestoreLocation location) + { + 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.DocumentDB/databaseAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/tables/", false); + uri.AppendPath(tableName, true); + uri.AppendPath("/retrieveContinuousBackupInformation", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRetrieveContinuousBackupInformationRequest(string subscriptionId, string resourceGroupName, string accountName, string tableName, ContinuousBackupRestoreLocation location) { var message = _pipeline.CreateMessage(); diff --git a/sdk/cosmosdbforpostgresql/Azure.ResourceManager.CosmosDBForPostgreSql/src/Generated/LongRunningOperation/CosmosDBForPostgreSqlArmOperation.cs b/sdk/cosmosdbforpostgresql/Azure.ResourceManager.CosmosDBForPostgreSql/src/Generated/LongRunningOperation/CosmosDBForPostgreSqlArmOperation.cs index 44ca1db1b688..4f7eb4dba6f1 100644 --- a/sdk/cosmosdbforpostgresql/Azure.ResourceManager.CosmosDBForPostgreSql/src/Generated/LongRunningOperation/CosmosDBForPostgreSqlArmOperation.cs +++ b/sdk/cosmosdbforpostgresql/Azure.ResourceManager.CosmosDBForPostgreSql/src/Generated/LongRunningOperation/CosmosDBForPostgreSqlArmOperation.cs @@ -20,21 +20,24 @@ internal class CosmosDBForPostgreSqlArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of CosmosDBForPostgreSqlArmOperation for mocking. protected CosmosDBForPostgreSqlArmOperation() { } - internal CosmosDBForPostgreSqlArmOperation(Response response) + internal CosmosDBForPostgreSqlArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal CosmosDBForPostgreSqlArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "CosmosDBForPostgreSqlArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal CosmosDBForPostgreSqlArmOperation(ClientDiagnostics clientDiagnostics, public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/cosmosdbforpostgresql/Azure.ResourceManager.CosmosDBForPostgreSql/src/Generated/LongRunningOperation/CosmosDBForPostgreSqlArmOperationOfT.cs b/sdk/cosmosdbforpostgresql/Azure.ResourceManager.CosmosDBForPostgreSql/src/Generated/LongRunningOperation/CosmosDBForPostgreSqlArmOperationOfT.cs index 244f15c69abe..23595aa40f3b 100644 --- a/sdk/cosmosdbforpostgresql/Azure.ResourceManager.CosmosDBForPostgreSql/src/Generated/LongRunningOperation/CosmosDBForPostgreSqlArmOperationOfT.cs +++ b/sdk/cosmosdbforpostgresql/Azure.ResourceManager.CosmosDBForPostgreSql/src/Generated/LongRunningOperation/CosmosDBForPostgreSqlArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class CosmosDBForPostgreSqlArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of CosmosDBForPostgreSqlArmOperation for mocking. protected CosmosDBForPostgreSqlArmOperation() { } - internal CosmosDBForPostgreSqlArmOperation(Response response) + internal CosmosDBForPostgreSqlArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal CosmosDBForPostgreSqlArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "CosmosDBForPostgreSqlArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal CosmosDBForPostgreSqlArmOperation(IOperationSource source, ClientDia public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/cosmosdbforpostgresql/Azure.ResourceManager.CosmosDBForPostgreSql/src/Generated/Models/CosmosDBForPostgreSqlClusterResource.Serialization.cs b/sdk/cosmosdbforpostgresql/Azure.ResourceManager.CosmosDBForPostgreSql/src/Generated/Models/CosmosDBForPostgreSqlClusterResource.Serialization.cs new file mode 100644 index 000000000000..b61ff02cdced --- /dev/null +++ b/sdk/cosmosdbforpostgresql/Azure.ResourceManager.CosmosDBForPostgreSql/src/Generated/Models/CosmosDBForPostgreSqlClusterResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.CosmosDBForPostgreSql +{ + public partial class CosmosDBForPostgreSqlClusterResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + CosmosDBForPostgreSqlClusterData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + CosmosDBForPostgreSqlClusterData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/cosmosdbforpostgresql/Azure.ResourceManager.CosmosDBForPostgreSql/src/Generated/Models/CosmosDBForPostgreSqlClusterServerResource.Serialization.cs b/sdk/cosmosdbforpostgresql/Azure.ResourceManager.CosmosDBForPostgreSql/src/Generated/Models/CosmosDBForPostgreSqlClusterServerResource.Serialization.cs new file mode 100644 index 000000000000..55da63671ae6 --- /dev/null +++ b/sdk/cosmosdbforpostgresql/Azure.ResourceManager.CosmosDBForPostgreSql/src/Generated/Models/CosmosDBForPostgreSqlClusterServerResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.CosmosDBForPostgreSql +{ + public partial class CosmosDBForPostgreSqlClusterServerResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + CosmosDBForPostgreSqlClusterServerData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + CosmosDBForPostgreSqlClusterServerData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/cosmosdbforpostgresql/Azure.ResourceManager.CosmosDBForPostgreSql/src/Generated/Models/CosmosDBForPostgreSqlConfigurationResource.Serialization.cs b/sdk/cosmosdbforpostgresql/Azure.ResourceManager.CosmosDBForPostgreSql/src/Generated/Models/CosmosDBForPostgreSqlConfigurationResource.Serialization.cs new file mode 100644 index 000000000000..85a19986e089 --- /dev/null +++ b/sdk/cosmosdbforpostgresql/Azure.ResourceManager.CosmosDBForPostgreSql/src/Generated/Models/CosmosDBForPostgreSqlConfigurationResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.CosmosDBForPostgreSql +{ + public partial class CosmosDBForPostgreSqlConfigurationResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + CosmosDBForPostgreSqlConfigurationData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + CosmosDBForPostgreSqlConfigurationData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/cosmosdbforpostgresql/Azure.ResourceManager.CosmosDBForPostgreSql/src/Generated/Models/CosmosDBForPostgreSqlCoordinatorConfigurationResource.Serialization.cs b/sdk/cosmosdbforpostgresql/Azure.ResourceManager.CosmosDBForPostgreSql/src/Generated/Models/CosmosDBForPostgreSqlCoordinatorConfigurationResource.Serialization.cs new file mode 100644 index 000000000000..f211a1d8436e --- /dev/null +++ b/sdk/cosmosdbforpostgresql/Azure.ResourceManager.CosmosDBForPostgreSql/src/Generated/Models/CosmosDBForPostgreSqlCoordinatorConfigurationResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.CosmosDBForPostgreSql +{ + public partial class CosmosDBForPostgreSqlCoordinatorConfigurationResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + CosmosDBForPostgreSqlServerConfigurationData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + CosmosDBForPostgreSqlServerConfigurationData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/cosmosdbforpostgresql/Azure.ResourceManager.CosmosDBForPostgreSql/src/Generated/Models/CosmosDBForPostgreSqlFirewallRuleResource.Serialization.cs b/sdk/cosmosdbforpostgresql/Azure.ResourceManager.CosmosDBForPostgreSql/src/Generated/Models/CosmosDBForPostgreSqlFirewallRuleResource.Serialization.cs new file mode 100644 index 000000000000..e395a72c3a71 --- /dev/null +++ b/sdk/cosmosdbforpostgresql/Azure.ResourceManager.CosmosDBForPostgreSql/src/Generated/Models/CosmosDBForPostgreSqlFirewallRuleResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.CosmosDBForPostgreSql +{ + public partial class CosmosDBForPostgreSqlFirewallRuleResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + CosmosDBForPostgreSqlFirewallRuleData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + CosmosDBForPostgreSqlFirewallRuleData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/cosmosdbforpostgresql/Azure.ResourceManager.CosmosDBForPostgreSql/src/Generated/Models/CosmosDBForPostgreSqlNodeConfigurationResource.Serialization.cs b/sdk/cosmosdbforpostgresql/Azure.ResourceManager.CosmosDBForPostgreSql/src/Generated/Models/CosmosDBForPostgreSqlNodeConfigurationResource.Serialization.cs new file mode 100644 index 000000000000..8c5a2be6a64e --- /dev/null +++ b/sdk/cosmosdbforpostgresql/Azure.ResourceManager.CosmosDBForPostgreSql/src/Generated/Models/CosmosDBForPostgreSqlNodeConfigurationResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.CosmosDBForPostgreSql +{ + public partial class CosmosDBForPostgreSqlNodeConfigurationResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + CosmosDBForPostgreSqlServerConfigurationData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + CosmosDBForPostgreSqlServerConfigurationData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/cosmosdbforpostgresql/Azure.ResourceManager.CosmosDBForPostgreSql/src/Generated/Models/CosmosDBForPostgreSqlPrivateEndpointConnectionResource.Serialization.cs b/sdk/cosmosdbforpostgresql/Azure.ResourceManager.CosmosDBForPostgreSql/src/Generated/Models/CosmosDBForPostgreSqlPrivateEndpointConnectionResource.Serialization.cs new file mode 100644 index 000000000000..adf316a67086 --- /dev/null +++ b/sdk/cosmosdbforpostgresql/Azure.ResourceManager.CosmosDBForPostgreSql/src/Generated/Models/CosmosDBForPostgreSqlPrivateEndpointConnectionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.CosmosDBForPostgreSql +{ + public partial class CosmosDBForPostgreSqlPrivateEndpointConnectionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + CosmosDBForPostgreSqlPrivateEndpointConnectionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + CosmosDBForPostgreSqlPrivateEndpointConnectionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/cosmosdbforpostgresql/Azure.ResourceManager.CosmosDBForPostgreSql/src/Generated/Models/CosmosDBForPostgreSqlPrivateLinkResource.Serialization.cs b/sdk/cosmosdbforpostgresql/Azure.ResourceManager.CosmosDBForPostgreSql/src/Generated/Models/CosmosDBForPostgreSqlPrivateLinkResource.Serialization.cs new file mode 100644 index 000000000000..799d58e0bf89 --- /dev/null +++ b/sdk/cosmosdbforpostgresql/Azure.ResourceManager.CosmosDBForPostgreSql/src/Generated/Models/CosmosDBForPostgreSqlPrivateLinkResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.CosmosDBForPostgreSql +{ + public partial class CosmosDBForPostgreSqlPrivateLinkResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + CosmosDBForPostgreSqlPrivateLinkResourceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + CosmosDBForPostgreSqlPrivateLinkResourceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/cosmosdbforpostgresql/Azure.ResourceManager.CosmosDBForPostgreSql/src/Generated/Models/CosmosDBForPostgreSqlRoleResource.Serialization.cs b/sdk/cosmosdbforpostgresql/Azure.ResourceManager.CosmosDBForPostgreSql/src/Generated/Models/CosmosDBForPostgreSqlRoleResource.Serialization.cs new file mode 100644 index 000000000000..7990e665f036 --- /dev/null +++ b/sdk/cosmosdbforpostgresql/Azure.ResourceManager.CosmosDBForPostgreSql/src/Generated/Models/CosmosDBForPostgreSqlRoleResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.CosmosDBForPostgreSql +{ + public partial class CosmosDBForPostgreSqlRoleResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + CosmosDBForPostgreSqlRoleData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + CosmosDBForPostgreSqlRoleData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/cosmosdbforpostgresql/Azure.ResourceManager.CosmosDBForPostgreSql/src/Generated/RestOperations/ClustersRestOperations.cs b/sdk/cosmosdbforpostgresql/Azure.ResourceManager.CosmosDBForPostgreSql/src/Generated/RestOperations/ClustersRestOperations.cs index c6a696a1600e..f1db6939e6ca 100644 --- a/sdk/cosmosdbforpostgresql/Azure.ResourceManager.CosmosDBForPostgreSql/src/Generated/RestOperations/ClustersRestOperations.cs +++ b/sdk/cosmosdbforpostgresql/Azure.ResourceManager.CosmosDBForPostgreSql/src/Generated/RestOperations/ClustersRestOperations.cs @@ -37,6 +37,17 @@ public ClustersRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.DBforPostgreSQL/serverGroupsv2", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,19 @@ public Response List(string subscription } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.DBforPostgreSQL/serverGroupsv2", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -177,6 +201,20 @@ public Response ListByResourceGroup(stri } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string clusterName, CosmosDBForPostgreSqlClusterData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/", false); + uri.AppendPath(clusterName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string clusterName, CosmosDBForPostgreSqlClusterData data) { var message = _pipeline.CreateMessage(); @@ -255,6 +293,20 @@ public Response Create(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string clusterName) + { + 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.DBforPostgreSQL/serverGroupsv2/", false); + uri.AppendPath(clusterName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string clusterName) { var message = _pipeline.CreateMessage(); @@ -337,6 +389,20 @@ public Response Get(string subscriptionId, str } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string clusterName) + { + 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.DBforPostgreSQL/serverGroupsv2/", false); + uri.AppendPath(clusterName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string clusterName) { var message = _pipeline.CreateMessage(); @@ -409,6 +475,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string clusterName, CosmosDBForPostgreSqlClusterPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/", false); + uri.AppendPath(clusterName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string clusterName, CosmosDBForPostgreSqlClusterPatch patch) { var message = _pipeline.CreateMessage(); @@ -487,6 +567,21 @@ public Response Update(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateRestartRequestUri(string subscriptionId, string resourceGroupName, string clusterName) + { + 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.DBforPostgreSQL/serverGroupsv2/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/restart", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRestartRequest(string subscriptionId, string resourceGroupName, string clusterName) { var message = _pipeline.CreateMessage(); @@ -556,6 +651,21 @@ public Response Restart(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreateStartRequestUri(string subscriptionId, string resourceGroupName, string clusterName) + { + 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.DBforPostgreSQL/serverGroupsv2/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/start", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStartRequest(string subscriptionId, string resourceGroupName, string clusterName) { var message = _pipeline.CreateMessage(); @@ -627,6 +737,21 @@ public Response Start(string subscriptionId, string resourceGroupName, string cl } } + internal RequestUriBuilder CreateStopRequestUri(string subscriptionId, string resourceGroupName, string clusterName) + { + 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.DBforPostgreSQL/serverGroupsv2/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/stop", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStopRequest(string subscriptionId, string resourceGroupName, string clusterName) { var message = _pipeline.CreateMessage(); @@ -698,6 +823,21 @@ public Response Stop(string subscriptionId, string resourceGroupName, string clu } } + internal RequestUriBuilder CreatePromoteReadReplicaRequestUri(string subscriptionId, string resourceGroupName, string clusterName) + { + 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.DBforPostgreSQL/serverGroupsv2/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/promote", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreatePromoteReadReplicaRequest(string subscriptionId, string resourceGroupName, string clusterName) { var message = _pipeline.CreateMessage(); @@ -767,6 +907,17 @@ public Response PromoteReadReplica(string subscriptionId, string resourceGroupNa } } + internal RequestUriBuilder CreateCheckNameAvailabilityRequestUri(string subscriptionId, CosmosDBForPostgreSqlClusterNameAvailabilityContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.DBforPostgreSQL/checkNameAvailability", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCheckNameAvailabilityRequest(string subscriptionId, CosmosDBForPostgreSqlClusterNameAvailabilityContent content) { var message = _pipeline.CreateMessage(); @@ -842,6 +993,14 @@ public Response CheckNameAva } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -910,6 +1069,14 @@ public Response ListNextPage(string next } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/cosmosdbforpostgresql/Azure.ResourceManager.CosmosDBForPostgreSql/src/Generated/RestOperations/ConfigurationsRestOperations.cs b/sdk/cosmosdbforpostgresql/Azure.ResourceManager.CosmosDBForPostgreSql/src/Generated/RestOperations/ConfigurationsRestOperations.cs index f44972f74595..e0b2a62d807a 100644 --- a/sdk/cosmosdbforpostgresql/Azure.ResourceManager.CosmosDBForPostgreSql/src/Generated/RestOperations/ConfigurationsRestOperations.cs +++ b/sdk/cosmosdbforpostgresql/Azure.ResourceManager.CosmosDBForPostgreSql/src/Generated/RestOperations/ConfigurationsRestOperations.cs @@ -37,6 +37,23 @@ public ConfigurationsRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByServerRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string serverName) + { + 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.DBforPostgreSQL/serverGroupsv2/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/configurations", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByServerRequest(string subscriptionId, string resourceGroupName, string clusterName, string serverName) { var message = _pipeline.CreateMessage(); @@ -122,6 +139,21 @@ public Response ListByServer } } + internal RequestUriBuilder CreateListByClusterRequestUri(string subscriptionId, string resourceGroupName, string clusterName) + { + 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.DBforPostgreSQL/serverGroupsv2/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/configurations", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByClusterRequest(string subscriptionId, string resourceGroupName, string clusterName) { var message = _pipeline.CreateMessage(); @@ -201,6 +233,22 @@ public Response ListByClust } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string configurationName) + { + 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.DBforPostgreSQL/serverGroupsv2/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/configurations/", false); + uri.AppendPath(configurationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string clusterName, string configurationName) { var message = _pipeline.CreateMessage(); @@ -289,6 +337,22 @@ public Response Get(string subscriptionI } } + internal RequestUriBuilder CreateGetCoordinatorRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string configurationName) + { + 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.DBforPostgreSQL/serverGroupsv2/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/coordinatorConfigurations/", false); + uri.AppendPath(configurationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetCoordinatorRequest(string subscriptionId, string resourceGroupName, string clusterName, string configurationName) { var message = _pipeline.CreateMessage(); @@ -377,6 +441,22 @@ public Response GetCoordinator(str } } + internal RequestUriBuilder CreateUpdateOnCoordinatorRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string configurationName, CosmosDBForPostgreSqlServerConfigurationData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/coordinatorConfigurations/", false); + uri.AppendPath(configurationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateOnCoordinatorRequest(string subscriptionId, string resourceGroupName, string clusterName, string configurationName, CosmosDBForPostgreSqlServerConfigurationData data) { var message = _pipeline.CreateMessage(); @@ -461,6 +541,22 @@ public Response UpdateOnCoordinator(string subscriptionId, string resourceGroupN } } + internal RequestUriBuilder CreateGetNodeRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string configurationName) + { + 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.DBforPostgreSQL/serverGroupsv2/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/nodeConfigurations/", false); + uri.AppendPath(configurationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetNodeRequest(string subscriptionId, string resourceGroupName, string clusterName, string configurationName) { var message = _pipeline.CreateMessage(); @@ -549,6 +645,22 @@ public Response GetNode(string sub } } + internal RequestUriBuilder CreateUpdateOnNodeRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string configurationName, CosmosDBForPostgreSqlServerConfigurationData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/nodeConfigurations/", false); + uri.AppendPath(configurationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateOnNodeRequest(string subscriptionId, string resourceGroupName, string clusterName, string configurationName, CosmosDBForPostgreSqlServerConfigurationData data) { var message = _pipeline.CreateMessage(); @@ -633,6 +745,14 @@ public Response UpdateOnNode(string subscriptionId, string resourceGroupName, st } } + internal RequestUriBuilder CreateListByServerNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string clusterName, string serverName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByServerNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string clusterName, string serverName) { var message = _pipeline.CreateMessage(); @@ -713,6 +833,14 @@ public Response ListByServer } } + internal RequestUriBuilder CreateListByClusterNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string clusterName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByClusterNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string clusterName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/cosmosdbforpostgresql/Azure.ResourceManager.CosmosDBForPostgreSql/src/Generated/RestOperations/FirewallRulesRestOperations.cs b/sdk/cosmosdbforpostgresql/Azure.ResourceManager.CosmosDBForPostgreSql/src/Generated/RestOperations/FirewallRulesRestOperations.cs index 7e90ddff6e77..007b4d0d07f7 100644 --- a/sdk/cosmosdbforpostgresql/Azure.ResourceManager.CosmosDBForPostgreSql/src/Generated/RestOperations/FirewallRulesRestOperations.cs +++ b/sdk/cosmosdbforpostgresql/Azure.ResourceManager.CosmosDBForPostgreSql/src/Generated/RestOperations/FirewallRulesRestOperations.cs @@ -37,6 +37,22 @@ public FirewallRulesRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string firewallRuleName, CosmosDBForPostgreSqlFirewallRuleData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/firewallRules/", false); + uri.AppendPath(firewallRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string clusterName, string firewallRuleName, CosmosDBForPostgreSqlFirewallRuleData data) { var message = _pipeline.CreateMessage(); @@ -121,6 +137,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string firewallRuleName) + { + 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.DBforPostgreSQL/serverGroupsv2/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/firewallRules/", false); + uri.AppendPath(firewallRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string clusterName, string firewallRuleName) { var message = _pipeline.CreateMessage(); @@ -197,6 +229,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string firewallRuleName) + { + 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.DBforPostgreSQL/serverGroupsv2/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/firewallRules/", false); + uri.AppendPath(firewallRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string clusterName, string firewallRuleName) { var message = _pipeline.CreateMessage(); @@ -285,6 +333,21 @@ public Response Get(string subscriptionId } } + internal RequestUriBuilder CreateListByClusterRequestUri(string subscriptionId, string resourceGroupName, string clusterName) + { + 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.DBforPostgreSQL/serverGroupsv2/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/firewallRules", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByClusterRequest(string subscriptionId, string resourceGroupName, string clusterName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/cosmosdbforpostgresql/Azure.ResourceManager.CosmosDBForPostgreSql/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs b/sdk/cosmosdbforpostgresql/Azure.ResourceManager.CosmosDBForPostgreSql/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs index 3b25b0e641ac..2993916b6245 100644 --- a/sdk/cosmosdbforpostgresql/Azure.ResourceManager.CosmosDBForPostgreSql/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs +++ b/sdk/cosmosdbforpostgresql/Azure.ResourceManager.CosmosDBForPostgreSql/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs @@ -37,6 +37,21 @@ public PrivateEndpointConnectionsRestOperations(HttpPipeline pipeline, string ap _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByClusterRequestUri(string subscriptionId, string resourceGroupName, string clusterName) + { + 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.DBforPostgreSQL/serverGroupsv2/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/privateEndpointConnections", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByClusterRequest(string subscriptionId, string resourceGroupName, string clusterName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListBy } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string privateEndpointConnectionName) + { + 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.DBforPostgreSQL/serverGroupsv2/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string clusterName, string privateEndpointConnectionName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string s } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string privateEndpointConnectionName, CosmosDBForPostgreSqlPrivateEndpointConnectionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string clusterName, string privateEndpointConnectionName, CosmosDBForPostgreSqlPrivateEndpointConnectionData data) { var message = _pipeline.CreateMessage(); @@ -288,6 +335,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string privateEndpointConnectionName) + { + 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.DBforPostgreSQL/serverGroupsv2/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string clusterName, string privateEndpointConnectionName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/cosmosdbforpostgresql/Azure.ResourceManager.CosmosDBForPostgreSql/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs b/sdk/cosmosdbforpostgresql/Azure.ResourceManager.CosmosDBForPostgreSql/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs index ae298bd2ca6f..817f7e06ca29 100644 --- a/sdk/cosmosdbforpostgresql/Azure.ResourceManager.CosmosDBForPostgreSql/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs +++ b/sdk/cosmosdbforpostgresql/Azure.ResourceManager.CosmosDBForPostgreSql/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs @@ -37,6 +37,21 @@ public PrivateLinkResourcesRestOperations(HttpPipeline pipeline, string applicat _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByClusterRequestUri(string subscriptionId, string resourceGroupName, string clusterName) + { + 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.DBforPostgreSQL/serverGroupsv2/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/privateLinkResources", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByClusterRequest(string subscriptionId, string resourceGroupName, string clusterName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByCluste } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string privateLinkResourceName) + { + 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.DBforPostgreSQL/serverGroupsv2/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/privateLinkResources/", false); + uri.AppendPath(privateLinkResourceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string clusterName, string privateLinkResourceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/cosmosdbforpostgresql/Azure.ResourceManager.CosmosDBForPostgreSql/src/Generated/RestOperations/RolesRestOperations.cs b/sdk/cosmosdbforpostgresql/Azure.ResourceManager.CosmosDBForPostgreSql/src/Generated/RestOperations/RolesRestOperations.cs index 25a33c7a21fe..0090ae41de5d 100644 --- a/sdk/cosmosdbforpostgresql/Azure.ResourceManager.CosmosDBForPostgreSql/src/Generated/RestOperations/RolesRestOperations.cs +++ b/sdk/cosmosdbforpostgresql/Azure.ResourceManager.CosmosDBForPostgreSql/src/Generated/RestOperations/RolesRestOperations.cs @@ -37,6 +37,22 @@ public RolesRestOperations(HttpPipeline pipeline, string applicationId, Uri endp _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string roleName) + { + 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.DBforPostgreSQL/serverGroupsv2/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/roles/", false); + uri.AppendPath(roleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string clusterName, string roleName) { var message = _pipeline.CreateMessage(); @@ -125,6 +141,22 @@ public Response Get(string subscriptionId, string } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string roleName, CosmosDBForPostgreSqlRoleData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/roles/", false); + uri.AppendPath(roleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string clusterName, string roleName, CosmosDBForPostgreSqlRoleData data) { var message = _pipeline.CreateMessage(); @@ -209,6 +241,22 @@ public Response Create(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string roleName) + { + 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.DBforPostgreSQL/serverGroupsv2/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/roles/", false); + uri.AppendPath(roleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string clusterName, string roleName) { var message = _pipeline.CreateMessage(); @@ -285,6 +333,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateListByClusterRequestUri(string subscriptionId, string resourceGroupName, string clusterName) + { + 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.DBforPostgreSQL/serverGroupsv2/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/roles", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByClusterRequest(string subscriptionId, string resourceGroupName, string clusterName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/cosmosdbforpostgresql/Azure.ResourceManager.CosmosDBForPostgreSql/src/Generated/RestOperations/ServersRestOperations.cs b/sdk/cosmosdbforpostgresql/Azure.ResourceManager.CosmosDBForPostgreSql/src/Generated/RestOperations/ServersRestOperations.cs index 2dddda813584..d41caab8b838 100644 --- a/sdk/cosmosdbforpostgresql/Azure.ResourceManager.CosmosDBForPostgreSql/src/Generated/RestOperations/ServersRestOperations.cs +++ b/sdk/cosmosdbforpostgresql/Azure.ResourceManager.CosmosDBForPostgreSql/src/Generated/RestOperations/ServersRestOperations.cs @@ -37,6 +37,21 @@ public ServersRestOperations(HttpPipeline pipeline, string applicationId, Uri en _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByClusterRequestUri(string subscriptionId, string resourceGroupName, string clusterName) + { + 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.DBforPostgreSQL/serverGroupsv2/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/servers", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByClusterRequest(string subscriptionId, string resourceGroupName, string clusterName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByCluster(stri } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string serverName) + { + 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.DBforPostgreSQL/serverGroupsv2/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string clusterName, string serverName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/CostManagementExportCollection.cs b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/CostManagementExportCollection.cs index 394c72c109bd..06d04d4712cd 100644 --- a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/CostManagementExportCollection.cs +++ b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/CostManagementExportCollection.cs @@ -80,7 +80,9 @@ public virtual async Task> CreateOrUp try { var response = await _costManagementExportExportsRestClient.CreateOrUpdateAsync(Id, exportName, data, cancellationToken).ConfigureAwait(false); - var operation = new CostManagementArmOperation(Response.FromValue(new CostManagementExportResource(Client, response), response.GetRawResponse())); + var uri = _costManagementExportExportsRestClient.CreateCreateOrUpdateRequestUri(Id, exportName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new CostManagementArmOperation(Response.FromValue(new CostManagementExportResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -129,7 +131,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUnt try { var response = _costManagementExportExportsRestClient.CreateOrUpdate(Id, exportName, data, cancellationToken); - var operation = new CostManagementArmOperation(Response.FromValue(new CostManagementExportResource(Client, response), response.GetRawResponse())); + var uri = _costManagementExportExportsRestClient.CreateCreateOrUpdateRequestUri(Id, exportName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new CostManagementArmOperation(Response.FromValue(new CostManagementExportResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/CostManagementExportResource.cs b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/CostManagementExportResource.cs index e806070218ca..7979e1dddb0b 100644 --- a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/CostManagementExportResource.cs +++ b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/CostManagementExportResource.cs @@ -202,7 +202,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _costManagementExportExportsRestClient.DeleteAsync(Id.Parent, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new CostManagementArmOperation(response); + var uri = _costManagementExportExportsRestClient.CreateDeleteRequestUri(Id.Parent, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new CostManagementArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -244,7 +246,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _costManagementExportExportsRestClient.Delete(Id.Parent, Id.Name, cancellationToken); - var operation = new CostManagementArmOperation(response); + var uri = _costManagementExportExportsRestClient.CreateDeleteRequestUri(Id.Parent, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new CostManagementArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -290,7 +294,9 @@ public virtual async Task> UpdateAsyn try { var response = await _costManagementExportExportsRestClient.CreateOrUpdateAsync(Id.Parent, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new CostManagementArmOperation(Response.FromValue(new CostManagementExportResource(Client, response), response.GetRawResponse())); + var uri = _costManagementExportExportsRestClient.CreateCreateOrUpdateRequestUri(Id.Parent, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new CostManagementArmOperation(Response.FromValue(new CostManagementExportResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -336,7 +342,9 @@ public virtual ArmOperation Update(WaitUntil waitU try { var response = _costManagementExportExportsRestClient.CreateOrUpdate(Id.Parent, Id.Name, data, cancellationToken); - var operation = new CostManagementArmOperation(Response.FromValue(new CostManagementExportResource(Client, response), response.GetRawResponse())); + var uri = _costManagementExportExportsRestClient.CreateCreateOrUpdateRequestUri(Id.Parent, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new CostManagementArmOperation(Response.FromValue(new CostManagementExportResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/CostManagementViewsCollection.cs b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/CostManagementViewsCollection.cs index e7003f34a0cd..0cc83f7b7999 100644 --- a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/CostManagementViewsCollection.cs +++ b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/CostManagementViewsCollection.cs @@ -80,7 +80,9 @@ public virtual async Task> CreateOrUpd try { var response = await _costManagementViewsViewsRestClient.CreateOrUpdateByScopeAsync(Id, viewName, data, cancellationToken).ConfigureAwait(false); - var operation = new CostManagementArmOperation(Response.FromValue(new CostManagementViewsResource(Client, response), response.GetRawResponse())); + var uri = _costManagementViewsViewsRestClient.CreateCreateOrUpdateByScopeRequestUri(Id, viewName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new CostManagementArmOperation(Response.FromValue(new CostManagementViewsResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -129,7 +131,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUnti try { var response = _costManagementViewsViewsRestClient.CreateOrUpdateByScope(Id, viewName, data, cancellationToken); - var operation = new CostManagementArmOperation(Response.FromValue(new CostManagementViewsResource(Client, response), response.GetRawResponse())); + var uri = _costManagementViewsViewsRestClient.CreateCreateOrUpdateByScopeRequestUri(Id, viewName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new CostManagementArmOperation(Response.FromValue(new CostManagementViewsResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/CostManagementViewsResource.cs b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/CostManagementViewsResource.cs index e656a6d54678..01a170df9717 100644 --- a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/CostManagementViewsResource.cs +++ b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/CostManagementViewsResource.cs @@ -198,7 +198,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _costManagementViewsViewsRestClient.DeleteByScopeAsync(Id.Parent, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new CostManagementArmOperation(response); + var uri = _costManagementViewsViewsRestClient.CreateDeleteByScopeRequestUri(Id.Parent, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new CostManagementArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -240,7 +242,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _costManagementViewsViewsRestClient.DeleteByScope(Id.Parent, Id.Name, cancellationToken); - var operation = new CostManagementArmOperation(response); + var uri = _costManagementViewsViewsRestClient.CreateDeleteByScopeRequestUri(Id.Parent, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new CostManagementArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -286,7 +290,9 @@ public virtual async Task> UpdateAsync try { var response = await _costManagementViewsViewsRestClient.CreateOrUpdateByScopeAsync(Id.Parent, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new CostManagementArmOperation(Response.FromValue(new CostManagementViewsResource(Client, response), response.GetRawResponse())); + var uri = _costManagementViewsViewsRestClient.CreateCreateOrUpdateByScopeRequestUri(Id.Parent, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new CostManagementArmOperation(Response.FromValue(new CostManagementViewsResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -332,7 +338,9 @@ public virtual ArmOperation Update(WaitUntil waitUn try { var response = _costManagementViewsViewsRestClient.CreateOrUpdateByScope(Id.Parent, Id.Name, data, cancellationToken); - var operation = new CostManagementArmOperation(Response.FromValue(new CostManagementViewsResource(Client, response), response.GetRawResponse())); + var uri = _costManagementViewsViewsRestClient.CreateCreateOrUpdateByScopeRequestUri(Id.Parent, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new CostManagementArmOperation(Response.FromValue(new CostManagementViewsResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/LongRunningOperation/CostManagementArmOperation.cs b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/LongRunningOperation/CostManagementArmOperation.cs index 1cadb4876994..e8ef819ce920 100644 --- a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/LongRunningOperation/CostManagementArmOperation.cs +++ b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/LongRunningOperation/CostManagementArmOperation.cs @@ -20,21 +20,24 @@ internal class CostManagementArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of CostManagementArmOperation for mocking. protected CostManagementArmOperation() { } - internal CostManagementArmOperation(Response response) + internal CostManagementArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal CostManagementArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "CostManagementArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal CostManagementArmOperation(ClientDiagnostics clientDiagnostics, HttpPip public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/LongRunningOperation/CostManagementArmOperationOfT.cs b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/LongRunningOperation/CostManagementArmOperationOfT.cs index c7b1414d487b..97bcfbfe1410 100644 --- a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/LongRunningOperation/CostManagementArmOperationOfT.cs +++ b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/LongRunningOperation/CostManagementArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class CostManagementArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of CostManagementArmOperation for mocking. protected CostManagementArmOperation() { } - internal CostManagementArmOperation(Response response) + internal CostManagementArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal CostManagementArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "CostManagementArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal CostManagementArmOperation(IOperationSource source, ClientDiagnostic public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/CostManagementAlertResource.Serialization.cs b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/CostManagementAlertResource.Serialization.cs new file mode 100644 index 000000000000..ed59c2f3fd0d --- /dev/null +++ b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/CostManagementAlertResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.CostManagement +{ + public partial class CostManagementAlertResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + CostManagementAlertData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + CostManagementAlertData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/CostManagementExportResource.Serialization.cs b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/CostManagementExportResource.Serialization.cs new file mode 100644 index 000000000000..be987148f0bf --- /dev/null +++ b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/CostManagementExportResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.CostManagement +{ + public partial class CostManagementExportResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + CostManagementExportData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + CostManagementExportData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/CostManagementViewsResource.Serialization.cs b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/CostManagementViewsResource.Serialization.cs new file mode 100644 index 000000000000..477f199c10fd --- /dev/null +++ b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/CostManagementViewsResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.CostManagement +{ + public partial class CostManagementViewsResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + CostManagementViewData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + CostManagementViewData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/ScheduledActionResource.Serialization.cs b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/ScheduledActionResource.Serialization.cs new file mode 100644 index 000000000000..b5210c861489 --- /dev/null +++ b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/ScheduledActionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.CostManagement +{ + public partial class ScheduledActionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ScheduledActionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ScheduledActionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/TenantScheduledActionResource.Serialization.cs b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/TenantScheduledActionResource.Serialization.cs new file mode 100644 index 000000000000..e5dea7772b4c --- /dev/null +++ b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/TenantScheduledActionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.CostManagement +{ + public partial class TenantScheduledActionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ScheduledActionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ScheduledActionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/TenantsCostManagementViewsResource.Serialization.cs b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/TenantsCostManagementViewsResource.Serialization.cs new file mode 100644 index 000000000000..d1f9568f07b5 --- /dev/null +++ b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/TenantsCostManagementViewsResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.CostManagement +{ + public partial class TenantsCostManagementViewsResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + CostManagementViewData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + CostManagementViewData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/RestOperations/AlertsRestOperations.cs b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/RestOperations/AlertsRestOperations.cs index ad3e878a26c3..b31ff4da1b70 100644 --- a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/RestOperations/AlertsRestOperations.cs +++ b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/RestOperations/AlertsRestOperations.cs @@ -37,6 +37,17 @@ public AlertsRestOperations(HttpPipeline pipeline, string applicationId, Uri end _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string scope) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.CostManagement/alerts", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string scope) { var message = _pipeline.CreateMessage(); @@ -102,6 +113,18 @@ public Response List(string scope, CancellationToken } } + internal RequestUriBuilder CreateGetRequestUri(string scope, string alertId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.CostManagement/alerts/", false); + uri.AppendPath(alertId, false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string scope, string alertId) { var message = _pipeline.CreateMessage(); @@ -176,6 +199,18 @@ public Response Get(string scope, string alertId, Cance } } + internal RequestUriBuilder CreateDismissRequestUri(string scope, string alertId, CostManagementAlertPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.CostManagement/alerts/", false); + uri.AppendPath(alertId, false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDismissRequest(string scope, string alertId, CostManagementAlertPatch patch) { var message = _pipeline.CreateMessage(); @@ -254,6 +289,19 @@ public Response Dismiss(string scope, string alertId, C } } + internal RequestUriBuilder CreateListExternalRequestUri(ExternalCloudProviderType externalCloudProviderType, string externalCloudProviderId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.CostManagement/", false); + uri.AppendPath(externalCloudProviderType.ToString(), true); + uri.AppendPath("/", false); + uri.AppendPath(externalCloudProviderId, true); + uri.AppendPath("/alerts", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListExternalRequest(ExternalCloudProviderType externalCloudProviderType, string externalCloudProviderId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/RestOperations/BenefitRecommendationsRestOperations.cs b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/RestOperations/BenefitRecommendationsRestOperations.cs index 35bb89ca1a6a..24569b209773 100644 --- a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/RestOperations/BenefitRecommendationsRestOperations.cs +++ b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/RestOperations/BenefitRecommendationsRestOperations.cs @@ -37,6 +37,29 @@ public BenefitRecommendationsRestOperations(HttpPipeline pipeline, string applic _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string billingScope, string filter, string orderby, string expand) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(billingScope, false); + uri.AppendPath("/providers/Microsoft.CostManagement/benefitRecommendations", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (orderby != null) + { + uri.AppendQuery("$orderby", orderby, true); + } + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string billingScope, string filter, string orderby, string expand) { var message = _pipeline.CreateMessage(); @@ -120,6 +143,14 @@ public Response List(string billingScope, stri } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string billingScope, string filter, string orderby, string expand) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string billingScope, string filter, string orderby, string expand) { var message = _pipeline.CreateMessage(); diff --git a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/RestOperations/BenefitUtilizationSummariesRestOperations.cs b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/RestOperations/BenefitUtilizationSummariesRestOperations.cs index 9ad787dab89a..57cb66be9dde 100644 --- a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/RestOperations/BenefitUtilizationSummariesRestOperations.cs +++ b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/RestOperations/BenefitUtilizationSummariesRestOperations.cs @@ -37,6 +37,25 @@ public BenefitUtilizationSummariesRestOperations(HttpPipeline pipeline, string a _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByBillingAccountIdRequestUri(string billingAccountId, GrainContent? grainParameter, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Billing/billingAccounts/", false); + uri.AppendPath(billingAccountId, true); + uri.AppendPath("/providers/Microsoft.CostManagement/benefitUtilizationSummaries", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (grainParameter != null) + { + uri.AppendQuery("grainParameter", grainParameter.Value.ToString(), true); + } + if (filter != null) + { + uri.AppendQuery("filter", filter, true); + } + return uri; + } + internal HttpMessage CreateListByBillingAccountIdRequest(string billingAccountId, GrainContent? grainParameter, string filter) { var message = _pipeline.CreateMessage(); @@ -116,6 +135,27 @@ public Response ListByBillingAccountId(st } } + internal RequestUriBuilder CreateListByBillingProfileIdRequestUri(string billingAccountId, string billingProfileId, GrainContent? grainParameter, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Billing/billingAccounts/", false); + uri.AppendPath(billingAccountId, true); + uri.AppendPath("/billingProfiles/", false); + uri.AppendPath(billingProfileId, true); + uri.AppendPath("/providers/Microsoft.CostManagement/benefitUtilizationSummaries", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (grainParameter != null) + { + uri.AppendQuery("grainParameter", grainParameter.Value.ToString(), true); + } + if (filter != null) + { + uri.AppendQuery("filter", filter, true); + } + return uri; + } + internal HttpMessage CreateListByBillingProfileIdRequest(string billingAccountId, string billingProfileId, GrainContent? grainParameter, string filter) { var message = _pipeline.CreateMessage(); @@ -201,6 +241,25 @@ public Response ListByBillingProfileId(st } } + internal RequestUriBuilder CreateListBySavingsPlanOrderRequestUri(string savingsPlanOrderId, string filter, GrainContent? grainParameter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.BillingBenefits/savingsPlanOrders/", false); + uri.AppendPath(savingsPlanOrderId, true); + uri.AppendPath("/providers/Microsoft.CostManagement/benefitUtilizationSummaries", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (grainParameter != null) + { + uri.AppendQuery("grainParameter", grainParameter.Value.ToString(), true); + } + return uri; + } + internal HttpMessage CreateListBySavingsPlanOrderRequest(string savingsPlanOrderId, string filter, GrainContent? grainParameter) { var message = _pipeline.CreateMessage(); @@ -280,6 +339,27 @@ public Response ListBySavingsPlanOrder(st } } + internal RequestUriBuilder CreateListBySavingsPlanIdRequestUri(string savingsPlanOrderId, string savingsPlanId, string filter, GrainContent? grainParameter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.BillingBenefits/savingsPlanOrders/", false); + uri.AppendPath(savingsPlanOrderId, true); + uri.AppendPath("/savingsPlans/", false); + uri.AppendPath(savingsPlanId, true); + uri.AppendPath("/providers/Microsoft.CostManagement/benefitUtilizationSummaries", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (grainParameter != null) + { + uri.AppendQuery("grainParameter", grainParameter.Value.ToString(), true); + } + return uri; + } + internal HttpMessage CreateListBySavingsPlanIdRequest(string savingsPlanOrderId, string savingsPlanId, string filter, GrainContent? grainParameter) { var message = _pipeline.CreateMessage(); @@ -365,6 +445,14 @@ public Response ListBySavingsPlanId(strin } } + internal RequestUriBuilder CreateListByBillingAccountIdNextPageRequestUri(string nextLink, string billingAccountId, GrainContent? grainParameter, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByBillingAccountIdNextPageRequest(string nextLink, string billingAccountId, GrainContent? grainParameter, string filter) { var message = _pipeline.CreateMessage(); @@ -437,6 +525,14 @@ public Response ListByBillingAccountIdNex } } + internal RequestUriBuilder CreateListByBillingProfileIdNextPageRequestUri(string nextLink, string billingAccountId, string billingProfileId, GrainContent? grainParameter, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByBillingProfileIdNextPageRequest(string nextLink, string billingAccountId, string billingProfileId, GrainContent? grainParameter, string filter) { var message = _pipeline.CreateMessage(); @@ -513,6 +609,14 @@ public Response ListByBillingProfileIdNex } } + internal RequestUriBuilder CreateListBySavingsPlanOrderNextPageRequestUri(string nextLink, string savingsPlanOrderId, string filter, GrainContent? grainParameter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySavingsPlanOrderNextPageRequest(string nextLink, string savingsPlanOrderId, string filter, GrainContent? grainParameter) { var message = _pipeline.CreateMessage(); @@ -585,6 +689,14 @@ public Response ListBySavingsPlanOrderNex } } + internal RequestUriBuilder CreateListBySavingsPlanIdNextPageRequestUri(string nextLink, string savingsPlanOrderId, string savingsPlanId, string filter, GrainContent? grainParameter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySavingsPlanIdNextPageRequest(string nextLink, string savingsPlanOrderId, string savingsPlanId, string filter, GrainContent? grainParameter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/RestOperations/BillingAccountScopeRestOperations.cs b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/RestOperations/BillingAccountScopeRestOperations.cs index 0a7398bd59be..60b8c11e7933 100644 --- a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/RestOperations/BillingAccountScopeRestOperations.cs +++ b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/RestOperations/BillingAccountScopeRestOperations.cs @@ -36,6 +36,17 @@ public BillingAccountScopeRestOperations(HttpPipeline pipeline, string applicati _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGenerateBenefitUtilizationSummariesReportRequestUri(string billingAccountId, BenefitUtilizationSummariesContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Billing/billingAccounts/", false); + uri.AppendPath(billingAccountId, true); + uri.AppendPath("/providers/Microsoft.CostManagement/generateBenefitUtilizationSummariesReport", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGenerateBenefitUtilizationSummariesReportRequest(string billingAccountId, BenefitUtilizationSummariesContent content) { var message = _pipeline.CreateMessage(); diff --git a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/RestOperations/BillingProfileScopeRestOperations.cs b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/RestOperations/BillingProfileScopeRestOperations.cs index b3234cd78123..76e5667ef9b7 100644 --- a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/RestOperations/BillingProfileScopeRestOperations.cs +++ b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/RestOperations/BillingProfileScopeRestOperations.cs @@ -36,6 +36,19 @@ public BillingProfileScopeRestOperations(HttpPipeline pipeline, string applicati _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGenerateBenefitUtilizationSummariesReportRequestUri(string billingAccountId, string billingProfileId, BenefitUtilizationSummariesContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Billing/billingAccounts/", false); + uri.AppendPath(billingAccountId, true); + uri.AppendPath("/billingProfiles/", false); + uri.AppendPath(billingProfileId, true); + uri.AppendPath("/providers/Microsoft.CostManagement/generateBenefitUtilizationSummariesReport", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGenerateBenefitUtilizationSummariesReportRequest(string billingAccountId, string billingProfileId, BenefitUtilizationSummariesContent content) { var message = _pipeline.CreateMessage(); diff --git a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/RestOperations/DimensionsRestOperations.cs b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/RestOperations/DimensionsRestOperations.cs index 5a272302c9c4..53d16abb9854 100644 --- a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/RestOperations/DimensionsRestOperations.cs +++ b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/RestOperations/DimensionsRestOperations.cs @@ -37,6 +37,33 @@ public DimensionsRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string scope, string filter, string expand, string skiptoken, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.CostManagement/dimensions", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + if (skiptoken != null) + { + uri.AppendQuery("$skiptoken", skiptoken, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string scope, string filter, string expand, string skiptoken, int? top) { var message = _pipeline.CreateMessage(); @@ -130,6 +157,35 @@ public Response List(string scope, string fi } } + internal RequestUriBuilder CreateByExternalCloudProviderTypeRequestUri(ExternalCloudProviderType externalCloudProviderType, string externalCloudProviderId, string filter, string expand, string skiptoken, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.CostManagement/", false); + uri.AppendPath(externalCloudProviderType.ToString(), true); + uri.AppendPath("/", false); + uri.AppendPath(externalCloudProviderId, true); + uri.AppendPath("/dimensions", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + if (skiptoken != null) + { + uri.AppendQuery("$skiptoken", skiptoken, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + return uri; + } + internal HttpMessage CreateByExternalCloudProviderTypeRequest(ExternalCloudProviderType externalCloudProviderType, string externalCloudProviderId, string filter, string expand, string skiptoken, int? top) { var message = _pipeline.CreateMessage(); diff --git a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/RestOperations/ExportsRestOperations.cs b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/RestOperations/ExportsRestOperations.cs index b756a826cd09..e6ace9fa6aec 100644 --- a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/RestOperations/ExportsRestOperations.cs +++ b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/RestOperations/ExportsRestOperations.cs @@ -37,6 +37,21 @@ public ExportsRestOperations(HttpPipeline pipeline, string applicationId, Uri en _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string scope, string expand) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.CostManagement/exports", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string scope, string expand) { var message = _pipeline.CreateMessage(); @@ -108,6 +123,22 @@ public Response List(string scope, string expand = null, Cance } } + internal RequestUriBuilder CreateGetRequestUri(string scope, string exportName, string expand) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.CostManagement/exports/", false); + uri.AppendPath(exportName, true); + uri.AppendQuery("api-version", _apiVersion, true); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + return uri; + } + internal HttpMessage CreateGetRequest(string scope, string exportName, string expand) { var message = _pipeline.CreateMessage(); @@ -190,6 +221,18 @@ public Response Get(string scope, string exportName, s } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string scope, string exportName, CostManagementExportData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.CostManagement/exports/", false); + uri.AppendPath(exportName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string scope, string exportName, CostManagementExportData data) { var message = _pipeline.CreateMessage(); @@ -272,6 +315,18 @@ public Response CreateOrUpdate(string scope, string ex } } + internal RequestUriBuilder CreateDeleteRequestUri(string scope, string exportName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.CostManagement/exports/", false); + uri.AppendPath(exportName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string scope, string exportName) { var message = _pipeline.CreateMessage(); @@ -334,6 +389,19 @@ public Response Delete(string scope, string exportName, CancellationToken cancel } } + internal RequestUriBuilder CreateExecuteRequestUri(string scope, string exportName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.CostManagement/exports/", false); + uri.AppendPath(exportName, true); + uri.AppendPath("/run", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateExecuteRequest(string scope, string exportName) { var message = _pipeline.CreateMessage(); @@ -397,6 +465,19 @@ public Response Execute(string scope, string exportName, CancellationToken cance } } + internal RequestUriBuilder CreateGetExecutionHistoryRequestUri(string scope, string exportName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.CostManagement/exports/", false); + uri.AppendPath(exportName, true); + uri.AppendPath("/runHistory", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetExecutionHistoryRequest(string scope, string exportName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/RestOperations/ForecastRestOperations.cs b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/RestOperations/ForecastRestOperations.cs index ccee5583aa75..8f339deab11b 100644 --- a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/RestOperations/ForecastRestOperations.cs +++ b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/RestOperations/ForecastRestOperations.cs @@ -37,6 +37,21 @@ public ForecastRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateUsageRequestUri(string scope, ForecastDefinition forecastDefinition, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.CostManagement/forecast", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUsageRequest(string scope, ForecastDefinition forecastDefinition, string filter) { var message = _pipeline.CreateMessage(); @@ -120,6 +135,23 @@ public Response Usage(string scope, ForecastDefinition forecastD } } + internal RequestUriBuilder CreateExternalCloudProviderUsageRequestUri(ExternalCloudProviderType externalCloudProviderType, string externalCloudProviderId, ForecastDefinition forecastDefinition, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.CostManagement/", false); + uri.AppendPath(externalCloudProviderType.ToString(), true); + uri.AppendPath("/", false); + uri.AppendPath(externalCloudProviderId, true); + uri.AppendPath("/forecast", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateExternalCloudProviderUsageRequest(ExternalCloudProviderType externalCloudProviderType, string externalCloudProviderId, ForecastDefinition forecastDefinition, string filter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/RestOperations/GenerateReservationDetailsReportRestOperations.cs b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/RestOperations/GenerateReservationDetailsReportRestOperations.cs index 3b3a28459901..8c7a91c5f2d4 100644 --- a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/RestOperations/GenerateReservationDetailsReportRestOperations.cs +++ b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/RestOperations/GenerateReservationDetailsReportRestOperations.cs @@ -35,6 +35,19 @@ public GenerateReservationDetailsReportRestOperations(HttpPipeline pipeline, str _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateByBillingAccountIdRequestUri(string billingAccountId, string startDate, string endDate) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Billing/billingAccounts/", false); + uri.AppendPath(billingAccountId, true); + uri.AppendPath("/providers/Microsoft.CostManagement/generateReservationDetailsReport", false); + uri.AppendQuery("startDate", startDate, true); + uri.AppendQuery("endDate", endDate, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateByBillingAccountIdRequest(string billingAccountId, string startDate, string endDate) { var message = _pipeline.CreateMessage(); @@ -104,6 +117,21 @@ public Response ByBillingAccountId(string billingAccountId, string startDate, st } } + internal RequestUriBuilder CreateByBillingProfileIdRequestUri(string billingAccountId, string billingProfileId, string startDate, string endDate) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Billing/billingAccounts/", false); + uri.AppendPath(billingAccountId, true); + uri.AppendPath("/billingProfiles/", false); + uri.AppendPath(billingProfileId, true); + uri.AppendPath("/providers/Microsoft.CostManagement/generateReservationDetailsReport", false); + uri.AppendQuery("startDate", startDate, true); + uri.AppendQuery("endDate", endDate, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateByBillingProfileIdRequest(string billingAccountId, string billingProfileId, string startDate, string endDate) { var message = _pipeline.CreateMessage(); diff --git a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/RestOperations/PriceSheetRestOperations.cs b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/RestOperations/PriceSheetRestOperations.cs index 66f3db850e57..337f3d74c904 100644 --- a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/RestOperations/PriceSheetRestOperations.cs +++ b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/RestOperations/PriceSheetRestOperations.cs @@ -35,6 +35,21 @@ public PriceSheetRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateDownloadRequestUri(string billingAccountName, string billingProfileName, string invoiceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Billing/billingAccounts/", false); + uri.AppendPath(billingAccountName, true); + uri.AppendPath("/billingProfiles/", false); + uri.AppendPath(billingProfileName, true); + uri.AppendPath("/invoices/", false); + uri.AppendPath(invoiceName, true); + uri.AppendPath("/providers/Microsoft.CostManagement/pricesheets/default/download", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDownloadRequest(string billingAccountName, string billingProfileName, string invoiceName) { var message = _pipeline.CreateMessage(); @@ -106,6 +121,19 @@ public Response Download(string billingAccountName, string billingProfileName, s } } + internal RequestUriBuilder CreateDownloadByBillingProfileRequestUri(string billingAccountName, string billingProfileName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Billing/billingAccounts/", false); + uri.AppendPath(billingAccountName, true); + uri.AppendPath("/billingProfiles/", false); + uri.AppendPath(billingProfileName, true); + uri.AppendPath("/providers/Microsoft.CostManagement/pricesheets/default/download", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDownloadByBillingProfileRequest(string billingAccountName, string billingProfileName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/RestOperations/QueryRestOperations.cs b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/RestOperations/QueryRestOperations.cs index 0af63419a00f..33e876f10f8a 100644 --- a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/RestOperations/QueryRestOperations.cs +++ b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/RestOperations/QueryRestOperations.cs @@ -37,6 +37,17 @@ public QueryRestOperations(HttpPipeline pipeline, string applicationId, Uri endp _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateUsageRequestUri(string scope, QueryDefinition queryDefinition) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.CostManagement/query", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUsageRequest(string scope, QueryDefinition queryDefinition) { var message = _pipeline.CreateMessage(); @@ -114,6 +125,19 @@ public Response Usage(string scope, QueryDefinition queryDefinition } } + internal RequestUriBuilder CreateUsageByExternalCloudProviderTypeRequestUri(ExternalCloudProviderType externalCloudProviderType, string externalCloudProviderId, QueryDefinition queryDefinition) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.CostManagement/", false); + uri.AppendPath(externalCloudProviderType.ToString(), true); + uri.AppendPath("/", false); + uri.AppendPath(externalCloudProviderId, true); + uri.AppendPath("/query", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUsageByExternalCloudProviderTypeRequest(ExternalCloudProviderType externalCloudProviderType, string externalCloudProviderId, QueryDefinition queryDefinition) { var message = _pipeline.CreateMessage(); diff --git a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/RestOperations/ReservationOrderScopeRestOperations.cs b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/RestOperations/ReservationOrderScopeRestOperations.cs index 8f739e8239d1..a92cd02cdd1b 100644 --- a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/RestOperations/ReservationOrderScopeRestOperations.cs +++ b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/RestOperations/ReservationOrderScopeRestOperations.cs @@ -36,6 +36,17 @@ public ReservationOrderScopeRestOperations(HttpPipeline pipeline, string applica _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGenerateBenefitUtilizationSummariesReportRequestUri(string reservationOrderId, BenefitUtilizationSummariesContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Capacity/reservationorders/", false); + uri.AppendPath(reservationOrderId, true); + uri.AppendPath("/providers/Microsoft.CostManagement/generateBenefitUtilizationSummariesReport", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGenerateBenefitUtilizationSummariesReportRequest(string reservationOrderId, BenefitUtilizationSummariesContent content) { var message = _pipeline.CreateMessage(); diff --git a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/RestOperations/ReservationScopeRestOperations.cs b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/RestOperations/ReservationScopeRestOperations.cs index 1d4ec5ecec4e..06c9652ff6ca 100644 --- a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/RestOperations/ReservationScopeRestOperations.cs +++ b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/RestOperations/ReservationScopeRestOperations.cs @@ -36,6 +36,19 @@ public ReservationScopeRestOperations(HttpPipeline pipeline, string applicationI _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGenerateBenefitUtilizationSummariesReportRequestUri(string reservationOrderId, string reservationId, BenefitUtilizationSummariesContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Capacity/reservationorders/", false); + uri.AppendPath(reservationOrderId, true); + uri.AppendPath("/reservations/", false); + uri.AppendPath(reservationId, true); + uri.AppendPath("/providers/Microsoft.CostManagement/generateBenefitUtilizationSummariesReport", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGenerateBenefitUtilizationSummariesReportRequest(string reservationOrderId, string reservationId, BenefitUtilizationSummariesContent content) { var message = _pipeline.CreateMessage(); diff --git a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/RestOperations/SavingsPlanOrderScopeRestOperations.cs b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/RestOperations/SavingsPlanOrderScopeRestOperations.cs index a7a9509363e3..673578c03e74 100644 --- a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/RestOperations/SavingsPlanOrderScopeRestOperations.cs +++ b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/RestOperations/SavingsPlanOrderScopeRestOperations.cs @@ -36,6 +36,17 @@ public SavingsPlanOrderScopeRestOperations(HttpPipeline pipeline, string applica _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGenerateBenefitUtilizationSummariesReportRequestUri(string savingsPlanOrderId, BenefitUtilizationSummariesContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.BillingBenefits/savingsPlanOrders/", false); + uri.AppendPath(savingsPlanOrderId, true); + uri.AppendPath("/providers/Microsoft.CostManagement/generateBenefitUtilizationSummariesReport", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGenerateBenefitUtilizationSummariesReportRequest(string savingsPlanOrderId, BenefitUtilizationSummariesContent content) { var message = _pipeline.CreateMessage(); diff --git a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/RestOperations/SavingsPlanScopeRestOperations.cs b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/RestOperations/SavingsPlanScopeRestOperations.cs index f7f37dea460d..7c7aa5bcadd5 100644 --- a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/RestOperations/SavingsPlanScopeRestOperations.cs +++ b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/RestOperations/SavingsPlanScopeRestOperations.cs @@ -36,6 +36,19 @@ public SavingsPlanScopeRestOperations(HttpPipeline pipeline, string applicationI _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGenerateBenefitUtilizationSummariesReportAsyncRequestUri(string savingsPlanOrderId, string savingsPlanId, BenefitUtilizationSummariesContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.BillingBenefits/savingsPlanOrders/", false); + uri.AppendPath(savingsPlanOrderId, true); + uri.AppendPath("/savingsPlans/", false); + uri.AppendPath(savingsPlanId, true); + uri.AppendPath("/providers/Microsoft.CostManagement/generateBenefitUtilizationSummariesReport", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGenerateBenefitUtilizationSummariesReportAsyncRequest(string savingsPlanOrderId, string savingsPlanId, BenefitUtilizationSummariesContent content) { var message = _pipeline.CreateMessage(); diff --git a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/RestOperations/ScheduledActionsRestOperations.cs b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/RestOperations/ScheduledActionsRestOperations.cs index e7cd3b4185b5..49798e3f2f77 100644 --- a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/RestOperations/ScheduledActionsRestOperations.cs +++ b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/RestOperations/ScheduledActionsRestOperations.cs @@ -37,6 +37,21 @@ public ScheduledActionsRestOperations(HttpPipeline pipeline, string applicationI _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByScopeRequestUri(string scope, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.CostManagement/scheduledActions", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + return uri; + } + internal HttpMessage CreateListByScopeRequest(string scope, string filter) { var message = _pipeline.CreateMessage(); @@ -108,6 +123,16 @@ public Response ListByScope(string scope, string filt } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string name, ScheduledActionData data, string ifMatch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.CostManagement/scheduledActions/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string name, ScheduledActionData data, string ifMatch) { var message = _pipeline.CreateMessage(); @@ -190,6 +215,16 @@ public Response CreateOrUpdate(string name, ScheduledAction } } + internal RequestUriBuilder CreateGetRequestUri(string name) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.CostManagement/scheduledActions/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string name) { var message = _pipeline.CreateMessage(); @@ -260,6 +295,16 @@ public Response Get(string name, CancellationToken cancella } } + internal RequestUriBuilder CreateDeleteRequestUri(string name) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.CostManagement/scheduledActions/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string name) { var message = _pipeline.CreateMessage(); @@ -318,6 +363,18 @@ public Response Delete(string name, CancellationToken cancellationToken = defaul } } + internal RequestUriBuilder CreateCreateOrUpdateByScopeRequestUri(string scope, string name, ScheduledActionData data, string ifMatch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.CostManagement/scheduledActions/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateByScopeRequest(string scope, string name, ScheduledActionData data, string ifMatch) { var message = _pipeline.CreateMessage(); @@ -406,6 +463,18 @@ public Response CreateOrUpdateByScope(string scope, string } } + internal RequestUriBuilder CreateGetByScopeRequestUri(string scope, string name) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.CostManagement/scheduledActions/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetByScopeRequest(string scope, string name) { var message = _pipeline.CreateMessage(); @@ -482,6 +551,18 @@ public Response GetByScope(string scope, string name, Cance } } + internal RequestUriBuilder CreateDeleteByScopeRequestUri(string scope, string name) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.CostManagement/scheduledActions/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteByScopeRequest(string scope, string name) { var message = _pipeline.CreateMessage(); @@ -546,6 +627,17 @@ public Response DeleteByScope(string scope, string name, CancellationToken cance } } + internal RequestUriBuilder CreateRunRequestUri(string name) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.CostManagement/scheduledActions/", false); + uri.AppendPath(name, true); + uri.AppendPath("/execute", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRunRequest(string name) { var message = _pipeline.CreateMessage(); @@ -603,6 +695,19 @@ public Response Run(string name, CancellationToken cancellationToken = default) } } + internal RequestUriBuilder CreateRunByScopeRequestUri(string scope, string name) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.CostManagement/scheduledActions/", false); + uri.AppendPath(name, true); + uri.AppendPath("/execute", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRunByScopeRequest(string scope, string name) { var message = _pipeline.CreateMessage(); @@ -666,6 +771,15 @@ public Response RunByScope(string scope, string name, CancellationToken cancella } } + internal RequestUriBuilder CreateCheckNameAvailabilityRequestUri(CostManagementNameAvailabilityContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.CostManagement/checkNameAvailability", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCheckNameAvailabilityRequest(CostManagementNameAvailabilityContent content) { var message = _pipeline.CreateMessage(); @@ -733,6 +847,17 @@ public Response CheckNameAvailability(Cost } } + internal RequestUriBuilder CreateCheckNameAvailabilityByScopeRequestUri(string scope, CostManagementNameAvailabilityContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.CostManagement/checkNameAvailability", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCheckNameAvailabilityByScopeRequest(string scope, CostManagementNameAvailabilityContent content) { var message = _pipeline.CreateMessage(); @@ -806,6 +931,14 @@ public Response CheckNameAvailabilityBySco } } + internal RequestUriBuilder CreateListByScopeNextPageRequestUri(string nextLink, string scope, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByScopeNextPageRequest(string nextLink, string scope, string filter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/RestOperations/ViewsRestOperations.cs b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/RestOperations/ViewsRestOperations.cs index fe0f17bb20cb..57d1f41ffac4 100644 --- a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/RestOperations/ViewsRestOperations.cs +++ b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/RestOperations/ViewsRestOperations.cs @@ -37,6 +37,17 @@ public ViewsRestOperations(HttpPipeline pipeline, string applicationId, Uri endp _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByScopeRequestUri(string scope) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.CostManagement/views", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByScopeRequest(string scope) { var message = _pipeline.CreateMessage(); @@ -102,6 +113,16 @@ public Response ListByScope(string scope, CancellationToken canc } } + internal RequestUriBuilder CreateGetRequestUri(string viewName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.CostManagement/views/", false); + uri.AppendPath(viewName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string viewName) { var message = _pipeline.CreateMessage(); @@ -172,6 +193,16 @@ public Response Get(string viewName, CancellationToken c } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string viewName, CostManagementViewData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.CostManagement/views/", false); + uri.AppendPath(viewName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string viewName, CostManagementViewData data) { var message = _pipeline.CreateMessage(); @@ -248,6 +279,16 @@ public Response CreateOrUpdate(string viewName, CostMana } } + internal RequestUriBuilder CreateDeleteRequestUri(string viewName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.CostManagement/views/", false); + uri.AppendPath(viewName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string viewName) { var message = _pipeline.CreateMessage(); @@ -306,6 +347,18 @@ public Response Delete(string viewName, CancellationToken cancellationToken = de } } + internal RequestUriBuilder CreateGetByScopeRequestUri(string scope, string viewName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.CostManagement/views/", false); + uri.AppendPath(viewName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetByScopeRequest(string scope, string viewName) { var message = _pipeline.CreateMessage(); @@ -382,6 +435,18 @@ public Response GetByScope(string scope, string viewName } } + internal RequestUriBuilder CreateCreateOrUpdateByScopeRequestUri(string scope, string viewName, CostManagementViewData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.CostManagement/views/", false); + uri.AppendPath(viewName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateByScopeRequest(string scope, string viewName, CostManagementViewData data) { var message = _pipeline.CreateMessage(); @@ -464,6 +529,18 @@ public Response CreateOrUpdateByScope(string scope, stri } } + internal RequestUriBuilder CreateDeleteByScopeRequestUri(string scope, string viewName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.CostManagement/views/", false); + uri.AppendPath(viewName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteByScopeRequest(string scope, string viewName) { var message = _pipeline.CreateMessage(); @@ -528,6 +605,14 @@ public Response DeleteByScope(string scope, string viewName, CancellationToken c } } + internal RequestUriBuilder CreateListByScopeNextPageRequestUri(string nextLink, string scope) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByScopeNextPageRequest(string nextLink, string scope) { var message = _pipeline.CreateMessage(); diff --git a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/ScheduledActionCollection.cs b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/ScheduledActionCollection.cs index 9d6b44c0a6e2..88666b398a6f 100644 --- a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/ScheduledActionCollection.cs +++ b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/ScheduledActionCollection.cs @@ -81,7 +81,9 @@ public virtual async Task> CreateOrUpdateA try { var response = await _scheduledActionRestClient.CreateOrUpdateByScopeAsync(Id, name, data, ifMatch, cancellationToken).ConfigureAwait(false); - var operation = new CostManagementArmOperation(Response.FromValue(new ScheduledActionResource(Client, response), response.GetRawResponse())); + var uri = _scheduledActionRestClient.CreateCreateOrUpdateByScopeRequestUri(Id, name, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new CostManagementArmOperation(Response.FromValue(new ScheduledActionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -131,7 +133,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wa try { var response = _scheduledActionRestClient.CreateOrUpdateByScope(Id, name, data, ifMatch, cancellationToken); - var operation = new CostManagementArmOperation(Response.FromValue(new ScheduledActionResource(Client, response), response.GetRawResponse())); + var uri = _scheduledActionRestClient.CreateCreateOrUpdateByScopeRequestUri(Id, name, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new CostManagementArmOperation(Response.FromValue(new ScheduledActionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/ScheduledActionResource.cs b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/ScheduledActionResource.cs index 1f2ad6d9420a..dba8e5a802d2 100644 --- a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/ScheduledActionResource.cs +++ b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/ScheduledActionResource.cs @@ -198,7 +198,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _scheduledActionRestClient.DeleteByScopeAsync(Id.Parent, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new CostManagementArmOperation(response); + var uri = _scheduledActionRestClient.CreateDeleteByScopeRequestUri(Id.Parent, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new CostManagementArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -240,7 +242,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _scheduledActionRestClient.DeleteByScope(Id.Parent, Id.Name, cancellationToken); - var operation = new CostManagementArmOperation(response); + var uri = _scheduledActionRestClient.CreateDeleteByScopeRequestUri(Id.Parent, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new CostManagementArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -287,7 +291,9 @@ public virtual async Task> UpdateAsync(Wai try { var response = await _scheduledActionRestClient.CreateOrUpdateByScopeAsync(Id.Parent, Id.Name, data, ifMatch, cancellationToken).ConfigureAwait(false); - var operation = new CostManagementArmOperation(Response.FromValue(new ScheduledActionResource(Client, response), response.GetRawResponse())); + var uri = _scheduledActionRestClient.CreateCreateOrUpdateByScopeRequestUri(Id.Parent, Id.Name, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new CostManagementArmOperation(Response.FromValue(new ScheduledActionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -334,7 +340,9 @@ public virtual ArmOperation Update(WaitUntil waitUntil, try { var response = _scheduledActionRestClient.CreateOrUpdateByScope(Id.Parent, Id.Name, data, ifMatch, cancellationToken); - var operation = new CostManagementArmOperation(Response.FromValue(new ScheduledActionResource(Client, response), response.GetRawResponse())); + var uri = _scheduledActionRestClient.CreateCreateOrUpdateByScopeRequestUri(Id.Parent, Id.Name, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new CostManagementArmOperation(Response.FromValue(new ScheduledActionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/TenantScheduledActionCollection.cs b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/TenantScheduledActionCollection.cs index 1c20ce189dcc..e75ad61b1a59 100644 --- a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/TenantScheduledActionCollection.cs +++ b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/TenantScheduledActionCollection.cs @@ -89,7 +89,9 @@ public virtual async Task> CreateOrU try { var response = await _tenantScheduledActionScheduledActionsRestClient.CreateOrUpdateAsync(name, data, ifMatch, cancellationToken).ConfigureAwait(false); - var operation = new CostManagementArmOperation(Response.FromValue(new TenantScheduledActionResource(Client, response), response.GetRawResponse())); + var uri = _tenantScheduledActionScheduledActionsRestClient.CreateCreateOrUpdateRequestUri(name, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new CostManagementArmOperation(Response.FromValue(new TenantScheduledActionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUn try { var response = _tenantScheduledActionScheduledActionsRestClient.CreateOrUpdate(name, data, ifMatch, cancellationToken); - var operation = new CostManagementArmOperation(Response.FromValue(new TenantScheduledActionResource(Client, response), response.GetRawResponse())); + var uri = _tenantScheduledActionScheduledActionsRestClient.CreateCreateOrUpdateRequestUri(name, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new CostManagementArmOperation(Response.FromValue(new TenantScheduledActionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/TenantScheduledActionResource.cs b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/TenantScheduledActionResource.cs index bad24272950f..5e749f7db979 100644 --- a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/TenantScheduledActionResource.cs +++ b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/TenantScheduledActionResource.cs @@ -198,7 +198,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _tenantScheduledActionScheduledActionsRestClient.DeleteAsync(Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new CostManagementArmOperation(response); + var uri = _tenantScheduledActionScheduledActionsRestClient.CreateDeleteRequestUri(Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new CostManagementArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -240,7 +242,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _tenantScheduledActionScheduledActionsRestClient.Delete(Id.Name, cancellationToken); - var operation = new CostManagementArmOperation(response); + var uri = _tenantScheduledActionScheduledActionsRestClient.CreateDeleteRequestUri(Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new CostManagementArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -287,7 +291,9 @@ public virtual async Task> UpdateAsy try { var response = await _tenantScheduledActionScheduledActionsRestClient.CreateOrUpdateAsync(Id.Name, data, ifMatch, cancellationToken).ConfigureAwait(false); - var operation = new CostManagementArmOperation(Response.FromValue(new TenantScheduledActionResource(Client, response), response.GetRawResponse())); + var uri = _tenantScheduledActionScheduledActionsRestClient.CreateCreateOrUpdateRequestUri(Id.Name, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new CostManagementArmOperation(Response.FromValue(new TenantScheduledActionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -334,7 +340,9 @@ public virtual ArmOperation Update(WaitUntil wait try { var response = _tenantScheduledActionScheduledActionsRestClient.CreateOrUpdate(Id.Name, data, ifMatch, cancellationToken); - var operation = new CostManagementArmOperation(Response.FromValue(new TenantScheduledActionResource(Client, response), response.GetRawResponse())); + var uri = _tenantScheduledActionScheduledActionsRestClient.CreateCreateOrUpdateRequestUri(Id.Name, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new CostManagementArmOperation(Response.FromValue(new TenantScheduledActionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/TenantsCostManagementViewsCollection.cs b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/TenantsCostManagementViewsCollection.cs index 5f224f7d036d..c1405dea4be3 100644 --- a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/TenantsCostManagementViewsCollection.cs +++ b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/TenantsCostManagementViewsCollection.cs @@ -88,7 +88,9 @@ public virtual async Task> Crea try { var response = await _tenantsCostManagementViewsViewsRestClient.CreateOrUpdateAsync(viewName, data, cancellationToken).ConfigureAwait(false); - var operation = new CostManagementArmOperation(Response.FromValue(new TenantsCostManagementViewsResource(Client, response), response.GetRawResponse())); + var uri = _tenantsCostManagementViewsViewsRestClient.CreateCreateOrUpdateRequestUri(viewName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new CostManagementArmOperation(Response.FromValue(new TenantsCostManagementViewsResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -137,7 +139,9 @@ public virtual ArmOperation CreateOrUpdate(W try { var response = _tenantsCostManagementViewsViewsRestClient.CreateOrUpdate(viewName, data, cancellationToken); - var operation = new CostManagementArmOperation(Response.FromValue(new TenantsCostManagementViewsResource(Client, response), response.GetRawResponse())); + var uri = _tenantsCostManagementViewsViewsRestClient.CreateCreateOrUpdateRequestUri(viewName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new CostManagementArmOperation(Response.FromValue(new TenantsCostManagementViewsResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/TenantsCostManagementViewsResource.cs b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/TenantsCostManagementViewsResource.cs index fcfab4213391..e2e409befb92 100644 --- a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/TenantsCostManagementViewsResource.cs +++ b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/TenantsCostManagementViewsResource.cs @@ -198,7 +198,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _tenantsCostManagementViewsViewsRestClient.DeleteAsync(Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new CostManagementArmOperation(response); + var uri = _tenantsCostManagementViewsViewsRestClient.CreateDeleteRequestUri(Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new CostManagementArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -240,7 +242,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _tenantsCostManagementViewsViewsRestClient.Delete(Id.Name, cancellationToken); - var operation = new CostManagementArmOperation(response); + var uri = _tenantsCostManagementViewsViewsRestClient.CreateDeleteRequestUri(Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new CostManagementArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -286,7 +290,9 @@ public virtual async Task> Upda try { var response = await _tenantsCostManagementViewsViewsRestClient.CreateOrUpdateAsync(Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new CostManagementArmOperation(Response.FromValue(new TenantsCostManagementViewsResource(Client, response), response.GetRawResponse())); + var uri = _tenantsCostManagementViewsViewsRestClient.CreateCreateOrUpdateRequestUri(Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new CostManagementArmOperation(Response.FromValue(new TenantsCostManagementViewsResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -332,7 +338,9 @@ public virtual ArmOperation Update(WaitUntil try { var response = _tenantsCostManagementViewsViewsRestClient.CreateOrUpdate(Id.Name, data, cancellationToken); - var operation = new CostManagementArmOperation(Response.FromValue(new TenantsCostManagementViewsResource(Client, response), response.GetRawResponse())); + var uri = _tenantsCostManagementViewsViewsRestClient.CreateCreateOrUpdateRequestUri(Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new CostManagementArmOperation(Response.FromValue(new TenantsCostManagementViewsResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/AuthorizationPolicyResourceFormatCollection.cs b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/AuthorizationPolicyResourceFormatCollection.cs index 347e3d038149..0a76fe1de383 100644 --- a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/AuthorizationPolicyResourceFormatCollection.cs +++ b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/AuthorizationPolicyResourceFormatCollection.cs @@ -90,7 +90,9 @@ public virtual async Task(Response.FromValue(new AuthorizationPolicyResourceFormatResource(Client, response), response.GetRawResponse())); + var uri = _authorizationPolicyResourceFormatAuthorizationPoliciesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, authorizationPolicyName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new CustomerInsightsArmOperation(Response.FromValue(new AuthorizationPolicyResourceFormatResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrU try { var response = _authorizationPolicyResourceFormatAuthorizationPoliciesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, authorizationPolicyName, data, cancellationToken); - var operation = new CustomerInsightsArmOperation(Response.FromValue(new AuthorizationPolicyResourceFormatResource(Client, response), response.GetRawResponse())); + var uri = _authorizationPolicyResourceFormatAuthorizationPoliciesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, authorizationPolicyName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new CustomerInsightsArmOperation(Response.FromValue(new AuthorizationPolicyResourceFormatResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/AuthorizationPolicyResourceFormatResource.cs b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/AuthorizationPolicyResourceFormatResource.cs index 17a2ba9391dc..c82d8c726e87 100644 --- a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/AuthorizationPolicyResourceFormatResource.cs +++ b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/AuthorizationPolicyResourceFormatResource.cs @@ -205,7 +205,9 @@ public virtual async Task(Response.FromValue(new AuthorizationPolicyResourceFormatResource(Client, response), response.GetRawResponse())); + var uri = _authorizationPolicyResourceFormatAuthorizationPoliciesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new CustomerInsightsArmOperation(Response.FromValue(new AuthorizationPolicyResourceFormatResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -251,7 +253,9 @@ public virtual ArmOperation Update(Wa try { var response = _authorizationPolicyResourceFormatAuthorizationPoliciesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new CustomerInsightsArmOperation(Response.FromValue(new AuthorizationPolicyResourceFormatResource(Client, response), response.GetRawResponse())); + var uri = _authorizationPolicyResourceFormatAuthorizationPoliciesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new CustomerInsightsArmOperation(Response.FromValue(new AuthorizationPolicyResourceFormatResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/ConnectorMappingResourceFormatCollection.cs b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/ConnectorMappingResourceFormatCollection.cs index e59be1ac885a..8cbef9846fed 100644 --- a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/ConnectorMappingResourceFormatCollection.cs +++ b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/ConnectorMappingResourceFormatCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> try { var response = await _connectorMappingResourceFormatConnectorMappingsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, mappingName, data, cancellationToken).ConfigureAwait(false); - var operation = new CustomerInsightsArmOperation(Response.FromValue(new ConnectorMappingResourceFormatResource(Client, response), response.GetRawResponse())); + var uri = _connectorMappingResourceFormatConnectorMappingsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, mappingName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new CustomerInsightsArmOperation(Response.FromValue(new ConnectorMappingResourceFormatResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpda try { var response = _connectorMappingResourceFormatConnectorMappingsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, mappingName, data, cancellationToken); - var operation = new CustomerInsightsArmOperation(Response.FromValue(new ConnectorMappingResourceFormatResource(Client, response), response.GetRawResponse())); + var uri = _connectorMappingResourceFormatConnectorMappingsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, mappingName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new CustomerInsightsArmOperation(Response.FromValue(new ConnectorMappingResourceFormatResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/ConnectorMappingResourceFormatResource.cs b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/ConnectorMappingResourceFormatResource.cs index cfd618c789c1..0d3ef217f426 100644 --- a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/ConnectorMappingResourceFormatResource.cs +++ b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/ConnectorMappingResourceFormatResource.cs @@ -201,7 +201,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _connectorMappingResourceFormatConnectorMappingsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new CustomerInsightsArmOperation(response); + var uri = _connectorMappingResourceFormatConnectorMappingsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new CustomerInsightsArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -243,7 +245,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _connectorMappingResourceFormatConnectorMappingsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new CustomerInsightsArmOperation(response); + var uri = _connectorMappingResourceFormatConnectorMappingsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new CustomerInsightsArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -289,7 +293,9 @@ public virtual async Task> try { var response = await _connectorMappingResourceFormatConnectorMappingsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new CustomerInsightsArmOperation(Response.FromValue(new ConnectorMappingResourceFormatResource(Client, response), response.GetRawResponse())); + var uri = _connectorMappingResourceFormatConnectorMappingsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new CustomerInsightsArmOperation(Response.FromValue(new ConnectorMappingResourceFormatResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -335,7 +341,9 @@ public virtual ArmOperation Update(WaitU try { var response = _connectorMappingResourceFormatConnectorMappingsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new CustomerInsightsArmOperation(Response.FromValue(new ConnectorMappingResourceFormatResource(Client, response), response.GetRawResponse())); + var uri = _connectorMappingResourceFormatConnectorMappingsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new CustomerInsightsArmOperation(Response.FromValue(new ConnectorMappingResourceFormatResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/HubCollection.cs b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/HubCollection.cs index 5605f5c28da3..bee67e49adc2 100644 --- a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/HubCollection.cs +++ b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/HubCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> CreateOrUpdateAsync(WaitUnt try { var response = await _hubRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, hubName, data, cancellationToken).ConfigureAwait(false); - var operation = new CustomerInsightsArmOperation(Response.FromValue(new HubResource(Client, response), response.GetRawResponse())); + var uri = _hubRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, hubName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new CustomerInsightsArmOperation(Response.FromValue(new HubResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -140,7 +142,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, str try { var response = _hubRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, hubName, data, cancellationToken); - var operation = new CustomerInsightsArmOperation(Response.FromValue(new HubResource(Client, response), response.GetRawResponse())); + var uri = _hubRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, hubName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new CustomerInsightsArmOperation(Response.FromValue(new HubResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/LinkResourceFormatResource.cs b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/LinkResourceFormatResource.cs index 34aa707bfeb2..517855edd74d 100644 --- a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/LinkResourceFormatResource.cs +++ b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/LinkResourceFormatResource.cs @@ -200,7 +200,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _linkResourceFormatLinksRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new CustomerInsightsArmOperation(response); + var uri = _linkResourceFormatLinksRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new CustomerInsightsArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -242,7 +244,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _linkResourceFormatLinksRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new CustomerInsightsArmOperation(response); + var uri = _linkResourceFormatLinksRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new CustomerInsightsArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/LongRunningOperation/CustomerInsightsArmOperation.cs b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/LongRunningOperation/CustomerInsightsArmOperation.cs index e92282bc8f65..8c22e5d1e244 100644 --- a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/LongRunningOperation/CustomerInsightsArmOperation.cs +++ b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/LongRunningOperation/CustomerInsightsArmOperation.cs @@ -20,21 +20,24 @@ internal class CustomerInsightsArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of CustomerInsightsArmOperation for mocking. protected CustomerInsightsArmOperation() { } - internal CustomerInsightsArmOperation(Response response) + internal CustomerInsightsArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal CustomerInsightsArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "CustomerInsightsArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal CustomerInsightsArmOperation(ClientDiagnostics clientDiagnostics, HttpP public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/LongRunningOperation/CustomerInsightsArmOperationOfT.cs b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/LongRunningOperation/CustomerInsightsArmOperationOfT.cs index 653940c9a03e..4e83ba976880 100644 --- a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/LongRunningOperation/CustomerInsightsArmOperationOfT.cs +++ b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/LongRunningOperation/CustomerInsightsArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class CustomerInsightsArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of CustomerInsightsArmOperation for mocking. protected CustomerInsightsArmOperation() { } - internal CustomerInsightsArmOperation(Response response) + internal CustomerInsightsArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal CustomerInsightsArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "CustomerInsightsArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal CustomerInsightsArmOperation(IOperationSource source, ClientDiagnost public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/AuthorizationPolicyResourceFormatResource.Serialization.cs b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/AuthorizationPolicyResourceFormatResource.Serialization.cs new file mode 100644 index 000000000000..b6f2e4b8dd5e --- /dev/null +++ b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/AuthorizationPolicyResourceFormatResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.CustomerInsights +{ + public partial class AuthorizationPolicyResourceFormatResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + AuthorizationPolicyResourceFormatData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + AuthorizationPolicyResourceFormatData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/ConnectorMappingResourceFormatResource.Serialization.cs b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/ConnectorMappingResourceFormatResource.Serialization.cs new file mode 100644 index 000000000000..ad6eb3a6d3be --- /dev/null +++ b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/ConnectorMappingResourceFormatResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.CustomerInsights +{ + public partial class ConnectorMappingResourceFormatResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ConnectorMappingResourceFormatData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ConnectorMappingResourceFormatData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/ConnectorResourceFormatResource.Serialization.cs b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/ConnectorResourceFormatResource.Serialization.cs new file mode 100644 index 000000000000..c614f8f78228 --- /dev/null +++ b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/ConnectorResourceFormatResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.CustomerInsights +{ + public partial class ConnectorResourceFormatResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ConnectorResourceFormatData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ConnectorResourceFormatData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/HubResource.Serialization.cs b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/HubResource.Serialization.cs new file mode 100644 index 000000000000..e0a364ab7cc2 --- /dev/null +++ b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/HubResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.CustomerInsights +{ + public partial class HubResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + HubData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + HubData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/InteractionResourceFormatResource.Serialization.cs b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/InteractionResourceFormatResource.Serialization.cs new file mode 100644 index 000000000000..a077059c9d33 --- /dev/null +++ b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/InteractionResourceFormatResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.CustomerInsights +{ + public partial class InteractionResourceFormatResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + InteractionResourceFormatData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + InteractionResourceFormatData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/KpiResourceFormatResource.Serialization.cs b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/KpiResourceFormatResource.Serialization.cs new file mode 100644 index 000000000000..6875ba79871c --- /dev/null +++ b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/KpiResourceFormatResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.CustomerInsights +{ + public partial class KpiResourceFormatResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + KpiResourceFormatData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + KpiResourceFormatData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/LinkResourceFormatResource.Serialization.cs b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/LinkResourceFormatResource.Serialization.cs new file mode 100644 index 000000000000..7da7fbb30a4f --- /dev/null +++ b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/LinkResourceFormatResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.CustomerInsights +{ + public partial class LinkResourceFormatResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + LinkResourceFormatData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + LinkResourceFormatData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/PredictionResourceFormatResource.Serialization.cs b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/PredictionResourceFormatResource.Serialization.cs new file mode 100644 index 000000000000..016abd096e5c --- /dev/null +++ b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/PredictionResourceFormatResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.CustomerInsights +{ + public partial class PredictionResourceFormatResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + PredictionResourceFormatData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + PredictionResourceFormatData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/ProfileResourceFormatResource.Serialization.cs b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/ProfileResourceFormatResource.Serialization.cs new file mode 100644 index 000000000000..6f679d3a4c27 --- /dev/null +++ b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/ProfileResourceFormatResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.CustomerInsights +{ + public partial class ProfileResourceFormatResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ProfileResourceFormatData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ProfileResourceFormatData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/RelationshipLinkResourceFormatResource.Serialization.cs b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/RelationshipLinkResourceFormatResource.Serialization.cs new file mode 100644 index 000000000000..b50c271cd1fd --- /dev/null +++ b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/RelationshipLinkResourceFormatResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.CustomerInsights +{ + public partial class RelationshipLinkResourceFormatResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + RelationshipLinkResourceFormatData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + RelationshipLinkResourceFormatData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/RelationshipResourceFormatResource.Serialization.cs b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/RelationshipResourceFormatResource.Serialization.cs new file mode 100644 index 000000000000..e0355182f4df --- /dev/null +++ b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/RelationshipResourceFormatResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.CustomerInsights +{ + public partial class RelationshipResourceFormatResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + RelationshipResourceFormatData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + RelationshipResourceFormatData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/RoleAssignmentResourceFormatResource.Serialization.cs b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/RoleAssignmentResourceFormatResource.Serialization.cs new file mode 100644 index 000000000000..60825a902f00 --- /dev/null +++ b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/RoleAssignmentResourceFormatResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.CustomerInsights +{ + public partial class RoleAssignmentResourceFormatResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + RoleAssignmentResourceFormatData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + RoleAssignmentResourceFormatData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/ViewResourceFormatResource.Serialization.cs b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/ViewResourceFormatResource.Serialization.cs new file mode 100644 index 000000000000..a398e945e645 --- /dev/null +++ b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/ViewResourceFormatResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.CustomerInsights +{ + public partial class ViewResourceFormatResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ViewResourceFormatData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ViewResourceFormatData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/WidgetTypeResourceFormatResource.Serialization.cs b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/WidgetTypeResourceFormatResource.Serialization.cs new file mode 100644 index 000000000000..8ed338df3d72 --- /dev/null +++ b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/WidgetTypeResourceFormatResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.CustomerInsights +{ + public partial class WidgetTypeResourceFormatResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + WidgetTypeResourceFormatData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + WidgetTypeResourceFormatData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/RestOperations/AuthorizationPoliciesRestOperations.cs b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/RestOperations/AuthorizationPoliciesRestOperations.cs index f7038b1ea923..108bd6e4f3a3 100644 --- a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/RestOperations/AuthorizationPoliciesRestOperations.cs +++ b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/RestOperations/AuthorizationPoliciesRestOperations.cs @@ -37,6 +37,22 @@ public AuthorizationPoliciesRestOperations(HttpPipeline pipeline, string applica _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string hubName, string authorizationPolicyName, AuthorizationPolicyResourceFormatData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.CustomerInsights/hubs/", false); + uri.AppendPath(hubName, true); + uri.AppendPath("/authorizationPolicies/", false); + uri.AppendPath(authorizationPolicyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string hubName, string authorizationPolicyName, AuthorizationPolicyResourceFormatData data) { var message = _pipeline.CreateMessage(); @@ -131,6 +147,22 @@ public Response CreateOrUpdate(string sub } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string hubName, string authorizationPolicyName) + { + 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.CustomerInsights/hubs/", false); + uri.AppendPath(hubName, true); + uri.AppendPath("/authorizationPolicies/", false); + uri.AppendPath(authorizationPolicyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string hubName, string authorizationPolicyName) { var message = _pipeline.CreateMessage(); @@ -219,6 +251,21 @@ public Response Get(string subscriptionId } } + internal RequestUriBuilder CreateListByHubRequestUri(string subscriptionId, string resourceGroupName, string hubName) + { + 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.CustomerInsights/hubs/", false); + uri.AppendPath(hubName, true); + uri.AppendPath("/authorizationPolicies", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByHubRequest(string subscriptionId, string resourceGroupName, string hubName) { var message = _pipeline.CreateMessage(); @@ -298,6 +345,23 @@ public Response ListByHub(string subscriptionId, } } + internal RequestUriBuilder CreateRegeneratePrimaryKeyRequestUri(string subscriptionId, string resourceGroupName, string hubName, string authorizationPolicyName) + { + 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.CustomerInsights/hubs/", false); + uri.AppendPath(hubName, true); + uri.AppendPath("/authorizationPolicies/", false); + uri.AppendPath(authorizationPolicyName, true); + uri.AppendPath("/regeneratePrimaryKey", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRegeneratePrimaryKeyRequest(string subscriptionId, string resourceGroupName, string hubName, string authorizationPolicyName) { var message = _pipeline.CreateMessage(); @@ -383,6 +447,23 @@ public Response RegeneratePrimaryKey(string subscriptionId, } } + internal RequestUriBuilder CreateRegenerateSecondaryKeyRequestUri(string subscriptionId, string resourceGroupName, string hubName, string authorizationPolicyName) + { + 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.CustomerInsights/hubs/", false); + uri.AppendPath(hubName, true); + uri.AppendPath("/authorizationPolicies/", false); + uri.AppendPath(authorizationPolicyName, true); + uri.AppendPath("/regenerateSecondaryKey", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRegenerateSecondaryKeyRequest(string subscriptionId, string resourceGroupName, string hubName, string authorizationPolicyName) { var message = _pipeline.CreateMessage(); @@ -468,6 +549,14 @@ public Response RegenerateSecondaryKey(string subscriptionI } } + internal RequestUriBuilder CreateListByHubNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string hubName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByHubNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string hubName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/RestOperations/ConnectorMappingsRestOperations.cs b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/RestOperations/ConnectorMappingsRestOperations.cs index 55c6ab957188..bcda5f49c8f5 100644 --- a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/RestOperations/ConnectorMappingsRestOperations.cs +++ b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/RestOperations/ConnectorMappingsRestOperations.cs @@ -37,6 +37,24 @@ public ConnectorMappingsRestOperations(HttpPipeline pipeline, string application _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string hubName, string connectorName, string mappingName, ConnectorMappingResourceFormatData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.CustomerInsights/hubs/", false); + uri.AppendPath(hubName, true); + uri.AppendPath("/connectors/", false); + uri.AppendPath(connectorName, true); + uri.AppendPath("/mappings/", false); + uri.AppendPath(mappingName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string hubName, string connectorName, string mappingName, ConnectorMappingResourceFormatData data) { var message = _pipeline.CreateMessage(); @@ -137,6 +155,24 @@ public Response CreateOrUpdate(string subscr } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string hubName, string connectorName, string mappingName) + { + 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.CustomerInsights/hubs/", false); + uri.AppendPath(hubName, true); + uri.AppendPath("/connectors/", false); + uri.AppendPath(connectorName, true); + uri.AppendPath("/mappings/", false); + uri.AppendPath(mappingName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string hubName, string connectorName, string mappingName) { var message = _pipeline.CreateMessage(); @@ -231,6 +267,24 @@ public Response Get(string subscriptionId, s } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string hubName, string connectorName, string mappingName) + { + 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.CustomerInsights/hubs/", false); + uri.AppendPath(hubName, true); + uri.AppendPath("/connectors/", false); + uri.AppendPath(connectorName, true); + uri.AppendPath("/mappings/", false); + uri.AppendPath(mappingName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string hubName, string connectorName, string mappingName) { var message = _pipeline.CreateMessage(); @@ -312,6 +366,23 @@ public Response Delete(string subscriptionId, string resourceGroupName, string h } } + internal RequestUriBuilder CreateListByConnectorRequestUri(string subscriptionId, string resourceGroupName, string hubName, string connectorName) + { + 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.CustomerInsights/hubs/", false); + uri.AppendPath(hubName, true); + uri.AppendPath("/connectors/", false); + uri.AppendPath(connectorName, true); + uri.AppendPath("/mappings", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByConnectorRequest(string subscriptionId, string resourceGroupName, string hubName, string connectorName) { var message = _pipeline.CreateMessage(); @@ -397,6 +468,14 @@ public Response ListByConnector(string subscriptionI } } + internal RequestUriBuilder CreateListByConnectorNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string hubName, string connectorName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByConnectorNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string hubName, string connectorName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/RestOperations/ConnectorsRestOperations.cs b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/RestOperations/ConnectorsRestOperations.cs index 14ff542d0a4b..a5027cd88fa3 100644 --- a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/RestOperations/ConnectorsRestOperations.cs +++ b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/RestOperations/ConnectorsRestOperations.cs @@ -37,6 +37,22 @@ public ConnectorsRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string hubName, string connectorName, ConnectorResourceFormatData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.CustomerInsights/hubs/", false); + uri.AppendPath(hubName, true); + uri.AppendPath("/connectors/", false); + uri.AppendPath(connectorName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string hubName, string connectorName, ConnectorResourceFormatData data) { var message = _pipeline.CreateMessage(); @@ -121,6 +137,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string hubName, string connectorName) + { + 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.CustomerInsights/hubs/", false); + uri.AppendPath(hubName, true); + uri.AppendPath("/connectors/", false); + uri.AppendPath(connectorName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string hubName, string connectorName) { var message = _pipeline.CreateMessage(); @@ -209,6 +241,22 @@ public Response Get(string subscriptionId, string r } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string hubName, string connectorName) + { + 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.CustomerInsights/hubs/", false); + uri.AppendPath(hubName, true); + uri.AppendPath("/connectors/", false); + uri.AppendPath(connectorName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string hubName, string connectorName) { var message = _pipeline.CreateMessage(); @@ -286,6 +334,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string h } } + internal RequestUriBuilder CreateListByHubRequestUri(string subscriptionId, string resourceGroupName, string hubName) + { + 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.CustomerInsights/hubs/", false); + uri.AppendPath(hubName, true); + uri.AppendPath("/connectors", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByHubRequest(string subscriptionId, string resourceGroupName, string hubName) { var message = _pipeline.CreateMessage(); @@ -365,6 +428,14 @@ public Response ListByHub(string subscriptionId, string res } } + internal RequestUriBuilder CreateListByHubNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string hubName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByHubNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string hubName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/RestOperations/HubsRestOperations.cs b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/RestOperations/HubsRestOperations.cs index 3b8473552ddc..d253f6579d5b 100644 --- a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/RestOperations/HubsRestOperations.cs +++ b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/RestOperations/HubsRestOperations.cs @@ -37,6 +37,20 @@ public HubsRestOperations(HttpPipeline pipeline, string applicationId, Uri endpo _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string hubName, HubData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.CustomerInsights/hubs/", false); + uri.AppendPath(hubName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string hubName, HubData data) { var message = _pipeline.CreateMessage(); @@ -125,6 +139,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string hubName, HubData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.CustomerInsights/hubs/", false); + uri.AppendPath(hubName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string hubName, HubData data) { var message = _pipeline.CreateMessage(); @@ -211,6 +239,20 @@ public Response Update(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string hubName) + { + 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.CustomerInsights/hubs/", false); + uri.AppendPath(hubName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string hubName) { var message = _pipeline.CreateMessage(); @@ -282,6 +324,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string h } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string hubName) + { + 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.CustomerInsights/hubs/", false); + uri.AppendPath(hubName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string hubName) { var message = _pipeline.CreateMessage(); @@ -364,6 +420,19 @@ public Response Get(string subscriptionId, string resourceGroupName, st } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.CustomerInsights/hubs", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -437,6 +506,17 @@ public Response ListByResourceGroup(string subscriptionId, string } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.CustomerInsights/hubs", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -504,6 +584,14 @@ public Response List(string subscriptionId, CancellationToken can } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -576,6 +664,14 @@ public Response ListByResourceGroupNextPage(string nextLink, stri } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/RestOperations/ImagesRestOperations.cs b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/RestOperations/ImagesRestOperations.cs index 17610a55b32a..9a7c8a378096 100644 --- a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/RestOperations/ImagesRestOperations.cs +++ b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/RestOperations/ImagesRestOperations.cs @@ -37,6 +37,21 @@ public ImagesRestOperations(HttpPipeline pipeline, string applicationId, Uri end _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetUploadUrlForEntityTypeRequestUri(string subscriptionId, string resourceGroupName, string hubName, GetImageUploadUrlInput input) + { + 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.CustomerInsights/hubs/", false); + uri.AppendPath(hubName, true); + uri.AppendPath("/images/getEntityTypeImageUploadUrl", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetUploadUrlForEntityTypeRequest(string subscriptionId, string resourceGroupName, string hubName, GetImageUploadUrlInput input) { var message = _pipeline.CreateMessage(); @@ -124,6 +139,21 @@ public Response GetUploadUrlForEntityType(string subscriptionId } } + internal RequestUriBuilder CreateGetUploadUrlForDataRequestUri(string subscriptionId, string resourceGroupName, string hubName, GetImageUploadUrlInput input) + { + 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.CustomerInsights/hubs/", false); + uri.AppendPath(hubName, true); + uri.AppendPath("/images/getDataImageUploadUrl", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetUploadUrlForDataRequest(string subscriptionId, string resourceGroupName, string hubName, GetImageUploadUrlInput input) { var message = _pipeline.CreateMessage(); diff --git a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/RestOperations/InteractionsRestOperations.cs b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/RestOperations/InteractionsRestOperations.cs index a996e3a22dd6..1021ea00c8dd 100644 --- a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/RestOperations/InteractionsRestOperations.cs +++ b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/RestOperations/InteractionsRestOperations.cs @@ -37,6 +37,22 @@ public InteractionsRestOperations(HttpPipeline pipeline, string applicationId, U _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string hubName, string interactionName, InteractionResourceFormatData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.CustomerInsights/hubs/", false); + uri.AppendPath(hubName, true); + uri.AppendPath("/interactions/", false); + uri.AppendPath(interactionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string hubName, string interactionName, InteractionResourceFormatData data) { var message = _pipeline.CreateMessage(); @@ -121,6 +137,26 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string hubName, string interactionName, string localeCode) + { + 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.CustomerInsights/hubs/", false); + uri.AppendPath(hubName, true); + uri.AppendPath("/interactions/", false); + uri.AppendPath(interactionName, true); + if (localeCode != null) + { + uri.AppendQuery("locale-code", localeCode, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string hubName, string interactionName, string localeCode) { var message = _pipeline.CreateMessage(); @@ -215,6 +251,25 @@ public Response Get(string subscriptionId, string } } + internal RequestUriBuilder CreateListByHubRequestUri(string subscriptionId, string resourceGroupName, string hubName, string localeCode) + { + 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.CustomerInsights/hubs/", false); + uri.AppendPath(hubName, true); + uri.AppendPath("/interactions", false); + if (localeCode != null) + { + uri.AppendQuery("locale-code", localeCode, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByHubRequest(string subscriptionId, string resourceGroupName, string hubName, string localeCode) { var message = _pipeline.CreateMessage(); @@ -300,6 +355,23 @@ public Response ListByHub(string subscriptionId, string r } } + internal RequestUriBuilder CreateSuggestRelationshipLinksRequestUri(string subscriptionId, string resourceGroupName, string hubName, string interactionName) + { + 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.CustomerInsights/hubs/", false); + uri.AppendPath(hubName, true); + uri.AppendPath("/interactions/", false); + uri.AppendPath(interactionName, true); + uri.AppendPath("/suggestRelationshipLinks", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateSuggestRelationshipLinksRequest(string subscriptionId, string resourceGroupName, string hubName, string interactionName) { var message = _pipeline.CreateMessage(); @@ -385,6 +457,14 @@ public Response SuggestRelationshipLinks(strin } } + internal RequestUriBuilder CreateListByHubNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string hubName, string localeCode) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByHubNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string hubName, string localeCode) { var message = _pipeline.CreateMessage(); diff --git a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/RestOperations/KpiRestOperations.cs b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/RestOperations/KpiRestOperations.cs index 597817c61a1b..bc30126e33c2 100644 --- a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/RestOperations/KpiRestOperations.cs +++ b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/RestOperations/KpiRestOperations.cs @@ -37,6 +37,22 @@ public KpiRestOperations(HttpPipeline pipeline, string applicationId, Uri endpoi _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string hubName, string kpiName, KpiResourceFormatData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.CustomerInsights/hubs/", false); + uri.AppendPath(hubName, true); + uri.AppendPath("/kpi/", false); + uri.AppendPath(kpiName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string hubName, string kpiName, KpiResourceFormatData data) { var message = _pipeline.CreateMessage(); @@ -121,6 +137,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string hubName, string kpiName) + { + 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.CustomerInsights/hubs/", false); + uri.AppendPath(hubName, true); + uri.AppendPath("/kpi/", false); + uri.AppendPath(kpiName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string hubName, string kpiName) { var message = _pipeline.CreateMessage(); @@ -209,6 +241,22 @@ public Response Get(string subscriptionId, string resourc } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string hubName, string kpiName) + { + 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.CustomerInsights/hubs/", false); + uri.AppendPath(hubName, true); + uri.AppendPath("/kpi/", false); + uri.AppendPath(kpiName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string hubName, string kpiName) { var message = _pipeline.CreateMessage(); @@ -284,6 +332,23 @@ public Response Delete(string subscriptionId, string resourceGroupName, string h } } + internal RequestUriBuilder CreateReprocessRequestUri(string subscriptionId, string resourceGroupName, string hubName, string kpiName) + { + 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.CustomerInsights/hubs/", false); + uri.AppendPath(hubName, true); + uri.AppendPath("/kpi/", false); + uri.AppendPath(kpiName, true); + uri.AppendPath("/reprocess", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateReprocessRequest(string subscriptionId, string resourceGroupName, string hubName, string kpiName) { var message = _pipeline.CreateMessage(); @@ -358,6 +423,21 @@ public Response Reprocess(string subscriptionId, string resourceGroupName, strin } } + internal RequestUriBuilder CreateListByHubRequestUri(string subscriptionId, string resourceGroupName, string hubName) + { + 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.CustomerInsights/hubs/", false); + uri.AppendPath(hubName, true); + uri.AppendPath("/kpi", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByHubRequest(string subscriptionId, string resourceGroupName, string hubName) { var message = _pipeline.CreateMessage(); @@ -437,6 +517,14 @@ public Response ListByHub(string subscriptionId, string resourceG } } + internal RequestUriBuilder CreateListByHubNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string hubName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByHubNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string hubName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/RestOperations/LinksRestOperations.cs b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/RestOperations/LinksRestOperations.cs index ee9da5d9c9b7..b15f3c3c6f3d 100644 --- a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/RestOperations/LinksRestOperations.cs +++ b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/RestOperations/LinksRestOperations.cs @@ -37,6 +37,22 @@ public LinksRestOperations(HttpPipeline pipeline, string applicationId, Uri endp _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string hubName, string linkName, LinkResourceFormatData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.CustomerInsights/hubs/", false); + uri.AppendPath(hubName, true); + uri.AppendPath("/links/", false); + uri.AppendPath(linkName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string hubName, string linkName, LinkResourceFormatData data) { var message = _pipeline.CreateMessage(); @@ -121,6 +137,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string hubName, string linkName) + { + 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.CustomerInsights/hubs/", false); + uri.AppendPath(hubName, true); + uri.AppendPath("/links/", false); + uri.AppendPath(linkName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string hubName, string linkName) { var message = _pipeline.CreateMessage(); @@ -209,6 +241,22 @@ public Response Get(string subscriptionId, string resour } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string hubName, string linkName) + { + 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.CustomerInsights/hubs/", false); + uri.AppendPath(hubName, true); + uri.AppendPath("/links/", false); + uri.AppendPath(linkName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string hubName, string linkName) { var message = _pipeline.CreateMessage(); @@ -284,6 +332,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string h } } + internal RequestUriBuilder CreateListByHubRequestUri(string subscriptionId, string resourceGroupName, string hubName) + { + 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.CustomerInsights/hubs/", false); + uri.AppendPath(hubName, true); + uri.AppendPath("/links", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByHubRequest(string subscriptionId, string resourceGroupName, string hubName) { var message = _pipeline.CreateMessage(); @@ -363,6 +426,14 @@ public Response ListByHub(string subscriptionId, string resource } } + internal RequestUriBuilder CreateListByHubNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string hubName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByHubNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string hubName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/RestOperations/PredictionsRestOperations.cs b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/RestOperations/PredictionsRestOperations.cs index d43b53ad05c6..376b3a7d36c9 100644 --- a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/RestOperations/PredictionsRestOperations.cs +++ b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/RestOperations/PredictionsRestOperations.cs @@ -37,6 +37,22 @@ public PredictionsRestOperations(HttpPipeline pipeline, string applicationId, Ur _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string hubName, string predictionName, PredictionResourceFormatData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.CustomerInsights/hubs/", false); + uri.AppendPath(hubName, true); + uri.AppendPath("/predictions/", false); + uri.AppendPath(predictionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string hubName, string predictionName, PredictionResourceFormatData data) { var message = _pipeline.CreateMessage(); @@ -121,6 +137,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string hubName, string predictionName) + { + 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.CustomerInsights/hubs/", false); + uri.AppendPath(hubName, true); + uri.AppendPath("/predictions/", false); + uri.AppendPath(predictionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string hubName, string predictionName) { var message = _pipeline.CreateMessage(); @@ -209,6 +241,22 @@ public Response Get(string subscriptionId, string } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string hubName, string predictionName) + { + 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.CustomerInsights/hubs/", false); + uri.AppendPath(hubName, true); + uri.AppendPath("/predictions/", false); + uri.AppendPath(predictionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string hubName, string predictionName) { var message = _pipeline.CreateMessage(); @@ -284,6 +332,23 @@ public Response Delete(string subscriptionId, string resourceGroupName, string h } } + internal RequestUriBuilder CreateGetTrainingResultsRequestUri(string subscriptionId, string resourceGroupName, string hubName, string predictionName) + { + 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.CustomerInsights/hubs/", false); + uri.AppendPath(hubName, true); + uri.AppendPath("/predictions/", false); + uri.AppendPath(predictionName, true); + uri.AppendPath("/getTrainingResults", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetTrainingResultsRequest(string subscriptionId, string resourceGroupName, string hubName, string predictionName) { var message = _pipeline.CreateMessage(); @@ -369,6 +434,23 @@ public Response GetTrainingResults(string subscriptio } } + internal RequestUriBuilder CreateGetModelStatusRequestUri(string subscriptionId, string resourceGroupName, string hubName, string predictionName) + { + 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.CustomerInsights/hubs/", false); + uri.AppendPath(hubName, true); + uri.AppendPath("/predictions/", false); + uri.AppendPath(predictionName, true); + uri.AppendPath("/getModelStatus", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetModelStatusRequest(string subscriptionId, string resourceGroupName, string hubName, string predictionName) { var message = _pipeline.CreateMessage(); @@ -454,6 +536,23 @@ public Response GetModelStatus(string subscriptionId, str } } + internal RequestUriBuilder CreateModelStatusRequestUri(string subscriptionId, string resourceGroupName, string hubName, string predictionName, PredictionModelStatus predictionModelStatus) + { + 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.CustomerInsights/hubs/", false); + uri.AppendPath(hubName, true); + uri.AppendPath("/predictions/", false); + uri.AppendPath(predictionName, true); + uri.AppendPath("/modelStatus", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateModelStatusRequest(string subscriptionId, string resourceGroupName, string hubName, string predictionName, PredictionModelStatus predictionModelStatus) { var message = _pipeline.CreateMessage(); @@ -536,6 +635,21 @@ public Response ModelStatus(string subscriptionId, string resourceGroupName, str } } + internal RequestUriBuilder CreateListByHubRequestUri(string subscriptionId, string resourceGroupName, string hubName) + { + 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.CustomerInsights/hubs/", false); + uri.AppendPath(hubName, true); + uri.AppendPath("/predictions", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByHubRequest(string subscriptionId, string resourceGroupName, string hubName) { var message = _pipeline.CreateMessage(); @@ -615,6 +729,14 @@ public Response ListByHub(string subscriptionId, string re } } + internal RequestUriBuilder CreateListByHubNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string hubName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByHubNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string hubName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/RestOperations/ProfilesRestOperations.cs b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/RestOperations/ProfilesRestOperations.cs index c55fb2133998..2b91431427c3 100644 --- a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/RestOperations/ProfilesRestOperations.cs +++ b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/RestOperations/ProfilesRestOperations.cs @@ -38,6 +38,22 @@ public ProfilesRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string hubName, string profileName, ProfileResourceFormatData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.CustomerInsights/hubs/", false); + uri.AppendPath(hubName, true); + uri.AppendPath("/profiles/", false); + uri.AppendPath(profileName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string hubName, string profileName, ProfileResourceFormatData data) { var message = _pipeline.CreateMessage(); @@ -122,6 +138,26 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string hubName, string profileName, string localeCode) + { + 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.CustomerInsights/hubs/", false); + uri.AppendPath(hubName, true); + uri.AppendPath("/profiles/", false); + uri.AppendPath(profileName, true); + if (localeCode != null) + { + uri.AppendQuery("locale-code", localeCode, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string hubName, string profileName, string localeCode) { var message = _pipeline.CreateMessage(); @@ -216,6 +252,26 @@ public Response Get(string subscriptionId, string res } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string hubName, string profileName, string localeCode) + { + 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.CustomerInsights/hubs/", false); + uri.AppendPath(hubName, true); + uri.AppendPath("/profiles/", false); + uri.AppendPath(profileName, true); + if (localeCode != null) + { + uri.AppendQuery("locale-code", localeCode, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string hubName, string profileName, string localeCode) { var message = _pipeline.CreateMessage(); @@ -299,6 +355,25 @@ public Response Delete(string subscriptionId, string resourceGroupName, string h } } + internal RequestUriBuilder CreateListByHubRequestUri(string subscriptionId, string resourceGroupName, string hubName, string localeCode) + { + 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.CustomerInsights/hubs/", false); + uri.AppendPath(hubName, true); + uri.AppendPath("/profiles", false); + if (localeCode != null) + { + uri.AppendQuery("locale-code", localeCode, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByHubRequest(string subscriptionId, string resourceGroupName, string hubName, string localeCode) { var message = _pipeline.CreateMessage(); @@ -384,6 +459,23 @@ public Response ListByHub(string subscriptionId, string resou } } + internal RequestUriBuilder CreateGetEnrichingKpisRequestUri(string subscriptionId, string resourceGroupName, string hubName, string profileName) + { + 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.CustomerInsights/hubs/", false); + uri.AppendPath(hubName, true); + uri.AppendPath("/profiles/", false); + uri.AppendPath(profileName, true); + uri.AppendPath("/getEnrichingKpis", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetEnrichingKpisRequest(string subscriptionId, string resourceGroupName, string hubName, string profileName) { var message = _pipeline.CreateMessage(); @@ -479,6 +571,14 @@ public Response> GetEnrichingKpis(string subscripti } } + internal RequestUriBuilder CreateListByHubNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string hubName, string localeCode) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByHubNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string hubName, string localeCode) { var message = _pipeline.CreateMessage(); diff --git a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/RestOperations/RelationshipLinksRestOperations.cs b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/RestOperations/RelationshipLinksRestOperations.cs index 72449f19ded4..adbf2c1016d5 100644 --- a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/RestOperations/RelationshipLinksRestOperations.cs +++ b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/RestOperations/RelationshipLinksRestOperations.cs @@ -37,6 +37,22 @@ public RelationshipLinksRestOperations(HttpPipeline pipeline, string application _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string hubName, string relationshipLinkName, RelationshipLinkResourceFormatData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.CustomerInsights/hubs/", false); + uri.AppendPath(hubName, true); + uri.AppendPath("/relationshipLinks/", false); + uri.AppendPath(relationshipLinkName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string hubName, string relationshipLinkName, RelationshipLinkResourceFormatData data) { var message = _pipeline.CreateMessage(); @@ -121,6 +137,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string hubName, string relationshipLinkName) + { + 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.CustomerInsights/hubs/", false); + uri.AppendPath(hubName, true); + uri.AppendPath("/relationshipLinks/", false); + uri.AppendPath(relationshipLinkName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string hubName, string relationshipLinkName) { var message = _pipeline.CreateMessage(); @@ -209,6 +241,22 @@ public Response Get(string subscriptionId, s } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string hubName, string relationshipLinkName) + { + 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.CustomerInsights/hubs/", false); + uri.AppendPath(hubName, true); + uri.AppendPath("/relationshipLinks/", false); + uri.AppendPath(relationshipLinkName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string hubName, string relationshipLinkName) { var message = _pipeline.CreateMessage(); @@ -284,6 +332,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string h } } + internal RequestUriBuilder CreateListByHubRequestUri(string subscriptionId, string resourceGroupName, string hubName) + { + 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.CustomerInsights/hubs/", false); + uri.AppendPath(hubName, true); + uri.AppendPath("/relationshipLinks", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByHubRequest(string subscriptionId, string resourceGroupName, string hubName) { var message = _pipeline.CreateMessage(); @@ -363,6 +426,14 @@ public Response ListByHub(string subscriptionId, str } } + internal RequestUriBuilder CreateListByHubNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string hubName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByHubNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string hubName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/RestOperations/RelationshipsRestOperations.cs b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/RestOperations/RelationshipsRestOperations.cs index 7e9f06425e7e..4a80215ba4c8 100644 --- a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/RestOperations/RelationshipsRestOperations.cs +++ b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/RestOperations/RelationshipsRestOperations.cs @@ -37,6 +37,22 @@ public RelationshipsRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string hubName, string relationshipName, RelationshipResourceFormatData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.CustomerInsights/hubs/", false); + uri.AppendPath(hubName, true); + uri.AppendPath("/relationships/", false); + uri.AppendPath(relationshipName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string hubName, string relationshipName, RelationshipResourceFormatData data) { var message = _pipeline.CreateMessage(); @@ -121,6 +137,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string hubName, string relationshipName) + { + 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.CustomerInsights/hubs/", false); + uri.AppendPath(hubName, true); + uri.AppendPath("/relationships/", false); + uri.AppendPath(relationshipName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string hubName, string relationshipName) { var message = _pipeline.CreateMessage(); @@ -209,6 +241,22 @@ public Response Get(string subscriptionId, strin } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string hubName, string relationshipName) + { + 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.CustomerInsights/hubs/", false); + uri.AppendPath(hubName, true); + uri.AppendPath("/relationships/", false); + uri.AppendPath(relationshipName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string hubName, string relationshipName) { var message = _pipeline.CreateMessage(); @@ -284,6 +332,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string h } } + internal RequestUriBuilder CreateListByHubRequestUri(string subscriptionId, string resourceGroupName, string hubName) + { + 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.CustomerInsights/hubs/", false); + uri.AppendPath(hubName, true); + uri.AppendPath("/relationships", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByHubRequest(string subscriptionId, string resourceGroupName, string hubName) { var message = _pipeline.CreateMessage(); @@ -363,6 +426,14 @@ public Response ListByHub(string subscriptionId, string } } + internal RequestUriBuilder CreateListByHubNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string hubName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByHubNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string hubName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/RestOperations/RoleAssignmentsRestOperations.cs b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/RestOperations/RoleAssignmentsRestOperations.cs index d26bd73c2dea..834ae92def64 100644 --- a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/RestOperations/RoleAssignmentsRestOperations.cs +++ b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/RestOperations/RoleAssignmentsRestOperations.cs @@ -37,6 +37,21 @@ public RoleAssignmentsRestOperations(HttpPipeline pipeline, string applicationId _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByHubRequestUri(string subscriptionId, string resourceGroupName, string hubName) + { + 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.CustomerInsights/hubs/", false); + uri.AppendPath(hubName, true); + uri.AppendPath("/roleAssignments", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByHubRequest(string subscriptionId, string resourceGroupName, string hubName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByHub(string subscriptionId, strin } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string hubName, string assignmentName, RoleAssignmentResourceFormatData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.CustomerInsights/hubs/", false); + uri.AppendPath(hubName, true); + uri.AppendPath("/roleAssignments/", false); + uri.AppendPath(assignmentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string hubName, string assignmentName, RoleAssignmentResourceFormatData data) { var message = _pipeline.CreateMessage(); @@ -200,6 +231,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string hubName, string assignmentName) + { + 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.CustomerInsights/hubs/", false); + uri.AppendPath(hubName, true); + uri.AppendPath("/roleAssignments/", false); + uri.AppendPath(assignmentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string hubName, string assignmentName) { var message = _pipeline.CreateMessage(); @@ -288,6 +335,22 @@ public Response Get(string subscriptionId, str } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string hubName, string assignmentName) + { + 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.CustomerInsights/hubs/", false); + uri.AppendPath(hubName, true); + uri.AppendPath("/roleAssignments/", false); + uri.AppendPath(assignmentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string hubName, string assignmentName) { var message = _pipeline.CreateMessage(); @@ -365,6 +428,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string h } } + internal RequestUriBuilder CreateListByHubNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string hubName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByHubNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string hubName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/RestOperations/RolesRestOperations.cs b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/RestOperations/RolesRestOperations.cs index c821ff3a1b69..1000e90bad1c 100644 --- a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/RestOperations/RolesRestOperations.cs +++ b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/RestOperations/RolesRestOperations.cs @@ -37,6 +37,21 @@ public RolesRestOperations(HttpPipeline pipeline, string applicationId, Uri endp _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByHubRequestUri(string subscriptionId, string resourceGroupName, string hubName) + { + 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.CustomerInsights/hubs/", false); + uri.AppendPath(hubName, true); + uri.AppendPath("/roles", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByHubRequest(string subscriptionId, string resourceGroupName, string hubName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,14 @@ public Response ListByHub(string subscriptionId, string resource } } + internal RequestUriBuilder CreateListByHubNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string hubName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByHubNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string hubName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/RestOperations/ViewsRestOperations.cs b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/RestOperations/ViewsRestOperations.cs index ef8b3d4a7f22..c28006d4bf39 100644 --- a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/RestOperations/ViewsRestOperations.cs +++ b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/RestOperations/ViewsRestOperations.cs @@ -37,6 +37,22 @@ public ViewsRestOperations(HttpPipeline pipeline, string applicationId, Uri endp _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByHubRequestUri(string subscriptionId, string resourceGroupName, string hubName, string userId) + { + 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.CustomerInsights/hubs/", false); + uri.AppendPath(hubName, true); + uri.AppendPath("/views", false); + uri.AppendQuery("api-version", _apiVersion, true); + uri.AppendQuery("userId", userId, true); + return uri; + } + internal HttpMessage CreateListByHubRequest(string subscriptionId, string resourceGroupName, string hubName, string userId) { var message = _pipeline.CreateMessage(); @@ -121,6 +137,22 @@ public Response ListByHub(string subscriptionId, string resource } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string hubName, string viewName, ViewResourceFormatData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.CustomerInsights/hubs/", false); + uri.AppendPath(hubName, true); + uri.AppendPath("/views/", false); + uri.AppendPath(viewName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string hubName, string viewName, ViewResourceFormatData data) { var message = _pipeline.CreateMessage(); @@ -213,6 +245,23 @@ public Response CreateOrUpdate(string subscriptionId, st } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string hubName, string viewName, string userId) + { + 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.CustomerInsights/hubs/", false); + uri.AppendPath(hubName, true); + uri.AppendPath("/views/", false); + uri.AppendPath(viewName, true); + uri.AppendQuery("api-version", _apiVersion, true); + uri.AppendQuery("userId", userId, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string hubName, string viewName, string userId) { var message = _pipeline.CreateMessage(); @@ -306,6 +355,23 @@ public Response Get(string subscriptionId, string resour } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string hubName, string viewName, string userId) + { + 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.CustomerInsights/hubs/", false); + uri.AppendPath(hubName, true); + uri.AppendPath("/views/", false); + uri.AppendPath(viewName, true); + uri.AppendQuery("api-version", _apiVersion, true); + uri.AppendQuery("userId", userId, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string hubName, string viewName, string userId) { var message = _pipeline.CreateMessage(); @@ -384,6 +450,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string h } } + internal RequestUriBuilder CreateListByHubNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string hubName, string userId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByHubNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string hubName, string userId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/RestOperations/WidgetTypesRestOperations.cs b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/RestOperations/WidgetTypesRestOperations.cs index 76ba0793d96a..31a6af6facd9 100644 --- a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/RestOperations/WidgetTypesRestOperations.cs +++ b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/RestOperations/WidgetTypesRestOperations.cs @@ -37,6 +37,21 @@ public WidgetTypesRestOperations(HttpPipeline pipeline, string applicationId, Ur _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByHubRequestUri(string subscriptionId, string resourceGroupName, string hubName) + { + 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.CustomerInsights/hubs/", false); + uri.AppendPath(hubName, true); + uri.AppendPath("/widgetTypes", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByHubRequest(string subscriptionId, string resourceGroupName, string hubName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByHub(string subscriptionId, string re } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string hubName, string widgetTypeName) + { + 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.CustomerInsights/hubs/", false); + uri.AppendPath(hubName, true); + uri.AppendPath("/widgetTypes/", false); + uri.AppendPath(widgetTypeName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string hubName, string widgetTypeName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,14 @@ public Response Get(string subscriptionId, string } } + internal RequestUriBuilder CreateListByHubNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string hubName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByHubNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string hubName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/RoleAssignmentResourceFormatResource.cs b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/RoleAssignmentResourceFormatResource.cs index c769762509d7..c18f5c83042b 100644 --- a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/RoleAssignmentResourceFormatResource.cs +++ b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/RoleAssignmentResourceFormatResource.cs @@ -200,7 +200,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _roleAssignmentResourceFormatRoleAssignmentsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new CustomerInsightsArmOperation(response); + var uri = _roleAssignmentResourceFormatRoleAssignmentsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new CustomerInsightsArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -242,7 +244,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _roleAssignmentResourceFormatRoleAssignmentsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new CustomerInsightsArmOperation(response); + var uri = _roleAssignmentResourceFormatRoleAssignmentsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new CustomerInsightsArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/ViewResourceFormatCollection.cs b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/ViewResourceFormatCollection.cs index dee49c70b94d..76998fef8a83 100644 --- a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/ViewResourceFormatCollection.cs +++ b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/ViewResourceFormatCollection.cs @@ -88,7 +88,9 @@ public virtual async Task> CreateOrUpda try { var response = await _viewResourceFormatViewsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, viewName, data, cancellationToken).ConfigureAwait(false); - var operation = new CustomerInsightsArmOperation(Response.FromValue(new ViewResourceFormatResource(Client, response), response.GetRawResponse())); + var uri = _viewResourceFormatViewsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, viewName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new CustomerInsightsArmOperation(Response.FromValue(new ViewResourceFormatResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -137,7 +139,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil try { var response = _viewResourceFormatViewsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, viewName, data, cancellationToken); - var operation = new CustomerInsightsArmOperation(Response.FromValue(new ViewResourceFormatResource(Client, response), response.GetRawResponse())); + var uri = _viewResourceFormatViewsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, viewName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new CustomerInsightsArmOperation(Response.FromValue(new ViewResourceFormatResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/ViewResourceFormatResource.cs b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/ViewResourceFormatResource.cs index a639a9de9609..67ada904d770 100644 --- a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/ViewResourceFormatResource.cs +++ b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/ViewResourceFormatResource.cs @@ -212,7 +212,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, string try { var response = await _viewResourceFormatViewsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, userId, cancellationToken).ConfigureAwait(false); - var operation = new CustomerInsightsArmOperation(response); + var uri = _viewResourceFormatViewsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, userId); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new CustomerInsightsArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -258,7 +260,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, string userId, Cancellat try { var response = _viewResourceFormatViewsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, userId, cancellationToken); - var operation = new CustomerInsightsArmOperation(response); + var uri = _viewResourceFormatViewsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, userId); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new CustomerInsightsArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -304,7 +308,9 @@ public virtual async Task> UpdateAsync( try { var response = await _viewResourceFormatViewsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new CustomerInsightsArmOperation(Response.FromValue(new ViewResourceFormatResource(Client, response), response.GetRawResponse())); + var uri = _viewResourceFormatViewsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new CustomerInsightsArmOperation(Response.FromValue(new ViewResourceFormatResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -350,7 +356,9 @@ public virtual ArmOperation Update(WaitUntil waitUnt try { var response = _viewResourceFormatViewsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new CustomerInsightsArmOperation(Response.FromValue(new ViewResourceFormatResource(Client, response), response.GetRawResponse())); + var uri = _viewResourceFormatViewsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new CustomerInsightsArmOperation(Response.FromValue(new ViewResourceFormatResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/LongRunningOperation/DataBoxArmOperation.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/LongRunningOperation/DataBoxArmOperation.cs index 11cde4817f5b..145b655e3ae9 100644 --- a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/LongRunningOperation/DataBoxArmOperation.cs +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/LongRunningOperation/DataBoxArmOperation.cs @@ -20,21 +20,24 @@ internal class DataBoxArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of DataBoxArmOperation for mocking. protected DataBoxArmOperation() { } - internal DataBoxArmOperation(Response response) + internal DataBoxArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal DataBoxArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "DataBoxArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal DataBoxArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline p public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/LongRunningOperation/DataBoxArmOperationOfT.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/LongRunningOperation/DataBoxArmOperationOfT.cs index 67561df22806..851b8f7445a7 100644 --- a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/LongRunningOperation/DataBoxArmOperationOfT.cs +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/LongRunningOperation/DataBoxArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class DataBoxArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of DataBoxArmOperation for mocking. protected DataBoxArmOperation() { } - internal DataBoxArmOperation(Response response) + internal DataBoxArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal DataBoxArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "DataBoxArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal DataBoxArmOperation(IOperationSource source, ClientDiagnostics clien public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxJobResource.Serialization.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxJobResource.Serialization.cs new file mode 100644 index 000000000000..47502bce6cea --- /dev/null +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxJobResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DataBox +{ + public partial class DataBoxJobResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DataBoxJobData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DataBoxJobData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/RestOperations/DataBoxManagementRestOperations.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/RestOperations/DataBoxManagementRestOperations.cs index 919c5c6e407b..081a75edfd04 100644 --- a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/RestOperations/DataBoxManagementRestOperations.cs +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/RestOperations/DataBoxManagementRestOperations.cs @@ -36,6 +36,21 @@ public DataBoxManagementRestOperations(HttpPipeline pipeline, string application _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateMitigateRequestUri(string subscriptionId, string resourceGroupName, string jobName, MitigateJobContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DataBox/jobs/", false); + uri.AppendPath(jobName, true); + uri.AppendPath("/mitigate", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateMitigateRequest(string subscriptionId, string resourceGroupName, string jobName, MitigateJobContent content) { var message = _pipeline.CreateMessage(); diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/RestOperations/JobsRestOperations.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/RestOperations/JobsRestOperations.cs index 0d22cc8ab656..19cdb0da7184 100644 --- a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/RestOperations/JobsRestOperations.cs +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/RestOperations/JobsRestOperations.cs @@ -37,6 +37,21 @@ public JobsRestOperations(HttpPipeline pipeline, string applicationId, Uri endpo _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string skipToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.DataBox/jobs", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string skipToken) { var message = _pipeline.CreateMessage(); @@ -110,6 +125,21 @@ public Response List(string subscriptionId, string skipTok } } + internal RequestUriBuilder CreateMarkDevicesShippedRequestUri(string subscriptionId, string resourceGroupName, string jobName, MarkDevicesShippedContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DataBox/jobs/", false); + uri.AppendPath(jobName, true); + uri.AppendPath("/markDevicesShipped", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateMarkDevicesShippedRequest(string subscriptionId, string resourceGroupName, string jobName, MarkDevicesShippedContent content) { var message = _pipeline.CreateMessage(); @@ -187,6 +217,23 @@ public Response MarkDevicesShipped(string subscriptionId, string resourceGroupNa } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName, string skipToken) + { + 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.DataBox/jobs", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName, string skipToken) { var message = _pipeline.CreateMessage(); @@ -266,6 +313,24 @@ public Response ListByResourceGroup(string subscriptionId, } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string jobName, string expand) + { + 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.DataBox/jobs/", false); + uri.AppendPath(jobName, true); + uri.AppendQuery("api-version", _apiVersion, true); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string jobName, string expand) { var message = _pipeline.CreateMessage(); @@ -354,6 +419,20 @@ public Response Get(string subscriptionId, string resourceGroupN } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string jobName, DataBoxJobData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DataBox/jobs/", false); + uri.AppendPath(jobName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string jobName, DataBoxJobData data) { var message = _pipeline.CreateMessage(); @@ -432,6 +511,20 @@ public Response Create(string subscriptionId, string resourceGroupName, string j } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string jobName) + { + 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.DataBox/jobs/", false); + uri.AppendPath(jobName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string jobName) { var message = _pipeline.CreateMessage(); @@ -504,6 +597,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string j } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string jobName, DataBoxJobPatch patch, string ifMatch) + { + 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.DataBox/jobs/", false); + uri.AppendPath(jobName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string jobName, DataBoxJobPatch patch, string ifMatch) { var message = _pipeline.CreateMessage(); @@ -588,6 +695,21 @@ public Response Update(string subscriptionId, string resourceGroupName, string j } } + internal RequestUriBuilder CreateBookShipmentPickUpRequestUri(string subscriptionId, string resourceGroupName, string jobName, ShipmentPickUpContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DataBox/jobs/", false); + uri.AppendPath(jobName, true); + uri.AppendPath("/bookShipmentPickUp", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateBookShipmentPickUpRequest(string subscriptionId, string resourceGroupName, string jobName, ShipmentPickUpContent content) { var message = _pipeline.CreateMessage(); @@ -675,6 +797,21 @@ public Response BookShipmentPickUp(string subscript } } + internal RequestUriBuilder CreateCancelRequestUri(string subscriptionId, string resourceGroupName, string jobName, DataBoxJobCancellationReason cancellationReason) + { + 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.DataBox/jobs/", false); + uri.AppendPath(jobName, true); + uri.AppendPath("/cancel", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCancelRequest(string subscriptionId, string resourceGroupName, string jobName, DataBoxJobCancellationReason cancellationReason) { var message = _pipeline.CreateMessage(); @@ -752,6 +889,21 @@ public Response Cancel(string subscriptionId, string resourceGroupName, string j } } + internal RequestUriBuilder CreateListCredentialsRequestUri(string subscriptionId, string resourceGroupName, string jobName) + { + 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.DataBox/jobs/", false); + uri.AppendPath(jobName, true); + uri.AppendPath("/listCredentials", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListCredentialsRequest(string subscriptionId, string resourceGroupName, string jobName) { var message = _pipeline.CreateMessage(); @@ -831,6 +983,14 @@ public Response ListCredentials(string subscriptionI } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string skipToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string skipToken) { var message = _pipeline.CreateMessage(); @@ -901,6 +1061,14 @@ public Response ListNextPage(string nextLink, string subsc } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string skipToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string skipToken) { var message = _pipeline.CreateMessage(); diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/RestOperations/ServiceRestOperations.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/RestOperations/ServiceRestOperations.cs index 3eab62e51d18..065115cda659 100644 --- a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/RestOperations/ServiceRestOperations.cs +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/RestOperations/ServiceRestOperations.cs @@ -37,6 +37,21 @@ public ServiceRestOperations(HttpPipeline pipeline, string applicationId, Uri en _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListAvailableSkusByResourceGroupRequestUri(string subscriptionId, string resourceGroupName, AzureLocation location, AvailableSkusContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DataBox/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/availableSkus", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListAvailableSkusByResourceGroupRequest(string subscriptionId, string resourceGroupName, AzureLocation location, AvailableSkusContent content) { var message = _pipeline.CreateMessage(); @@ -122,6 +137,19 @@ public Response ListAvailableSkusByResourceGroup(string sub } } + internal RequestUriBuilder CreateValidateAddressRequestUri(string subscriptionId, AzureLocation location, DataBoxValidateAddressContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.DataBox/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/validateAddress", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateValidateAddressRequest(string subscriptionId, AzureLocation location, DataBoxValidateAddressContent content) { var message = _pipeline.CreateMessage(); @@ -201,6 +229,21 @@ public Response ValidateAddress(string subscriptionId, } } + internal RequestUriBuilder CreateValidateInputsByResourceGroupRequestUri(string subscriptionId, string resourceGroupName, AzureLocation location, DataBoxValidationContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DataBox/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/validateInputs", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateValidateInputsByResourceGroupRequest(string subscriptionId, string resourceGroupName, AzureLocation location, DataBoxValidationContent content) { var message = _pipeline.CreateMessage(); @@ -286,6 +329,19 @@ public Response ValidateInputsByResourceGroup(string su } } + internal RequestUriBuilder CreateValidateInputsRequestUri(string subscriptionId, AzureLocation location, DataBoxValidationContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.DataBox/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/validateInputs", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateValidateInputsRequest(string subscriptionId, AzureLocation location, DataBoxValidationContent content) { var message = _pipeline.CreateMessage(); @@ -365,6 +421,19 @@ public Response ValidateInputs(string subscriptionId, A } } + internal RequestUriBuilder CreateRegionConfigurationRequestUri(string subscriptionId, AzureLocation location, RegionConfigurationContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.DataBox/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/regionConfiguration", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRegionConfigurationRequest(string subscriptionId, AzureLocation location, RegionConfigurationContent content) { var message = _pipeline.CreateMessage(); @@ -444,6 +513,21 @@ public Response RegionConfiguration(string subscripti } } + internal RequestUriBuilder CreateRegionConfigurationByResourceGroupRequestUri(string subscriptionId, string resourceGroupName, AzureLocation location, RegionConfigurationContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DataBox/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/regionConfiguration", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRegionConfigurationByResourceGroupRequest(string subscriptionId, string resourceGroupName, AzureLocation location, RegionConfigurationContent content) { var message = _pipeline.CreateMessage(); @@ -529,6 +613,14 @@ public Response RegionConfigurationByResourceGroup(st } } + internal RequestUriBuilder CreateListAvailableSkusByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, AzureLocation location, AvailableSkusContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListAvailableSkusByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, AzureLocation location, AvailableSkusContent content) { var message = _pipeline.CreateMessage(); diff --git a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/DataBoxEdgeDeviceCollection.cs b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/DataBoxEdgeDeviceCollection.cs index ab8135334f46..2aa6e996d6a3 100644 --- a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/DataBoxEdgeDeviceCollection.cs +++ b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/DataBoxEdgeDeviceCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> CreateOrUpdat try { var response = await _dataBoxEdgeDeviceDevicesRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, deviceName, data, cancellationToken).ConfigureAwait(false); - var operation = new DataBoxEdgeArmOperation(Response.FromValue(new DataBoxEdgeDeviceResource(Client, response), response.GetRawResponse())); + var uri = _dataBoxEdgeDeviceDevicesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, deviceName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataBoxEdgeArmOperation(Response.FromValue(new DataBoxEdgeDeviceResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -140,7 +142,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil try { var response = _dataBoxEdgeDeviceDevicesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, deviceName, data, cancellationToken); - var operation = new DataBoxEdgeArmOperation(Response.FromValue(new DataBoxEdgeDeviceResource(Client, response), response.GetRawResponse())); + var uri = _dataBoxEdgeDeviceDevicesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, deviceName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataBoxEdgeArmOperation(Response.FromValue(new DataBoxEdgeDeviceResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/LongRunningOperation/DataBoxEdgeArmOperation.cs b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/LongRunningOperation/DataBoxEdgeArmOperation.cs index 8fc840a07f5a..000703d0d3fd 100644 --- a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/LongRunningOperation/DataBoxEdgeArmOperation.cs +++ b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/LongRunningOperation/DataBoxEdgeArmOperation.cs @@ -20,21 +20,24 @@ internal class DataBoxEdgeArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of DataBoxEdgeArmOperation for mocking. protected DataBoxEdgeArmOperation() { } - internal DataBoxEdgeArmOperation(Response response) + internal DataBoxEdgeArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal DataBoxEdgeArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "DataBoxEdgeArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal DataBoxEdgeArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeli public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/LongRunningOperation/DataBoxEdgeArmOperationOfT.cs b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/LongRunningOperation/DataBoxEdgeArmOperationOfT.cs index 5b118a96fbfd..ecf7cc543243 100644 --- a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/LongRunningOperation/DataBoxEdgeArmOperationOfT.cs +++ b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/LongRunningOperation/DataBoxEdgeArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class DataBoxEdgeArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of DataBoxEdgeArmOperation for mocking. protected DataBoxEdgeArmOperation() { } - internal DataBoxEdgeArmOperation(Response response) + internal DataBoxEdgeArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal DataBoxEdgeArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "DataBoxEdgeArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal DataBoxEdgeArmOperation(IOperationSource source, ClientDiagnostics c public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/BandwidthScheduleResource.Serialization.cs b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/BandwidthScheduleResource.Serialization.cs new file mode 100644 index 000000000000..87014f27c46d --- /dev/null +++ b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/BandwidthScheduleResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DataBoxEdge +{ + public partial class BandwidthScheduleResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + BandwidthScheduleData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + BandwidthScheduleData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/DataBoxEdgeAlertResource.Serialization.cs b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/DataBoxEdgeAlertResource.Serialization.cs new file mode 100644 index 000000000000..982a0a652bd7 --- /dev/null +++ b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/DataBoxEdgeAlertResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DataBoxEdge +{ + public partial class DataBoxEdgeAlertResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DataBoxEdgeAlertData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DataBoxEdgeAlertData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/DataBoxEdgeDeviceResource.Serialization.cs b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/DataBoxEdgeDeviceResource.Serialization.cs new file mode 100644 index 000000000000..1381ee62211a --- /dev/null +++ b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/DataBoxEdgeDeviceResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DataBoxEdge +{ + public partial class DataBoxEdgeDeviceResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DataBoxEdgeDeviceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DataBoxEdgeDeviceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/DataBoxEdgeJobResource.Serialization.cs b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/DataBoxEdgeJobResource.Serialization.cs new file mode 100644 index 000000000000..73c11e9dc110 --- /dev/null +++ b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/DataBoxEdgeJobResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DataBoxEdge +{ + public partial class DataBoxEdgeJobResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DataBoxEdgeJobData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DataBoxEdgeJobData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/DataBoxEdgeOrderResource.Serialization.cs b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/DataBoxEdgeOrderResource.Serialization.cs new file mode 100644 index 000000000000..c815535838b6 --- /dev/null +++ b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/DataBoxEdgeOrderResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DataBoxEdge +{ + public partial class DataBoxEdgeOrderResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DataBoxEdgeOrderData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DataBoxEdgeOrderData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/DataBoxEdgeRoleAddonResource.Serialization.cs b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/DataBoxEdgeRoleAddonResource.Serialization.cs new file mode 100644 index 000000000000..25bac5f11b15 --- /dev/null +++ b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/DataBoxEdgeRoleAddonResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DataBoxEdge +{ + public partial class DataBoxEdgeRoleAddonResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DataBoxEdgeRoleAddonData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DataBoxEdgeRoleAddonData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/DataBoxEdgeRoleResource.Serialization.cs b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/DataBoxEdgeRoleResource.Serialization.cs new file mode 100644 index 000000000000..35e490986d88 --- /dev/null +++ b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/DataBoxEdgeRoleResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DataBoxEdge +{ + public partial class DataBoxEdgeRoleResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DataBoxEdgeRoleData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DataBoxEdgeRoleData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/DataBoxEdgeShareResource.Serialization.cs b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/DataBoxEdgeShareResource.Serialization.cs new file mode 100644 index 000000000000..f6694479d3d9 --- /dev/null +++ b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/DataBoxEdgeShareResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DataBoxEdge +{ + public partial class DataBoxEdgeShareResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DataBoxEdgeShareData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DataBoxEdgeShareData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/DataBoxEdgeStorageAccountCredentialResource.Serialization.cs b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/DataBoxEdgeStorageAccountCredentialResource.Serialization.cs new file mode 100644 index 000000000000..bb26766984d5 --- /dev/null +++ b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/DataBoxEdgeStorageAccountCredentialResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DataBoxEdge +{ + public partial class DataBoxEdgeStorageAccountCredentialResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DataBoxEdgeStorageAccountCredentialData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DataBoxEdgeStorageAccountCredentialData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/DataBoxEdgeStorageAccountResource.Serialization.cs b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/DataBoxEdgeStorageAccountResource.Serialization.cs new file mode 100644 index 000000000000..4998619126ab --- /dev/null +++ b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/DataBoxEdgeStorageAccountResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DataBoxEdge +{ + public partial class DataBoxEdgeStorageAccountResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DataBoxEdgeStorageAccountData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DataBoxEdgeStorageAccountData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/DataBoxEdgeStorageContainerResource.Serialization.cs b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/DataBoxEdgeStorageContainerResource.Serialization.cs new file mode 100644 index 000000000000..c58b9b07b352 --- /dev/null +++ b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/DataBoxEdgeStorageContainerResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DataBoxEdge +{ + public partial class DataBoxEdgeStorageContainerResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DataBoxEdgeStorageContainerData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DataBoxEdgeStorageContainerData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/DataBoxEdgeTriggerResource.Serialization.cs b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/DataBoxEdgeTriggerResource.Serialization.cs new file mode 100644 index 000000000000..033bf34f6bf7 --- /dev/null +++ b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/DataBoxEdgeTriggerResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DataBoxEdge +{ + public partial class DataBoxEdgeTriggerResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DataBoxEdgeTriggerData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DataBoxEdgeTriggerData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/DataBoxEdgeUserResource.Serialization.cs b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/DataBoxEdgeUserResource.Serialization.cs new file mode 100644 index 000000000000..843fc79f7020 --- /dev/null +++ b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/DataBoxEdgeUserResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DataBoxEdge +{ + public partial class DataBoxEdgeUserResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DataBoxEdgeUserData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DataBoxEdgeUserData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/DiagnosticProactiveLogCollectionSettingResource.Serialization.cs b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/DiagnosticProactiveLogCollectionSettingResource.Serialization.cs new file mode 100644 index 000000000000..c6e0b702e740 --- /dev/null +++ b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/DiagnosticProactiveLogCollectionSettingResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DataBoxEdge +{ + public partial class DiagnosticProactiveLogCollectionSettingResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DiagnosticProactiveLogCollectionSettingData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DiagnosticProactiveLogCollectionSettingData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/DiagnosticRemoteSupportSettingResource.Serialization.cs b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/DiagnosticRemoteSupportSettingResource.Serialization.cs new file mode 100644 index 000000000000..3d7d2df671b2 --- /dev/null +++ b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/DiagnosticRemoteSupportSettingResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DataBoxEdge +{ + public partial class DiagnosticRemoteSupportSettingResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DiagnosticRemoteSupportSettingData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DiagnosticRemoteSupportSettingData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/MonitoringMetricConfigurationResource.Serialization.cs b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/MonitoringMetricConfigurationResource.Serialization.cs new file mode 100644 index 000000000000..b0a19a07b098 --- /dev/null +++ b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/MonitoringMetricConfigurationResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DataBoxEdge +{ + public partial class MonitoringMetricConfigurationResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MonitoringMetricConfigurationData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MonitoringMetricConfigurationData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/RestOperations/AddonsRestOperations.cs b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/RestOperations/AddonsRestOperations.cs index 5f9a57af6001..dc4ba9e97f7c 100644 --- a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/RestOperations/AddonsRestOperations.cs +++ b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/RestOperations/AddonsRestOperations.cs @@ -37,6 +37,23 @@ public AddonsRestOperations(HttpPipeline pipeline, string applicationId, Uri end _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByRoleRequestUri(string subscriptionId, string resourceGroupName, string deviceName, string roleName) + { + 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.DataBoxEdge/dataBoxEdgeDevices/", false); + uri.AppendPath(deviceName, true); + uri.AppendPath("/roles/", false); + uri.AppendPath(roleName, true); + uri.AppendPath("/addons", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByRoleRequest(string subscriptionId, string resourceGroupName, string deviceName, string roleName) { var message = _pipeline.CreateMessage(); @@ -122,6 +139,24 @@ public Response ListByRole(string subscriptionId, string resourceGrou } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string deviceName, string roleName, string addonName) + { + 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.DataBoxEdge/dataBoxEdgeDevices/", false); + uri.AppendPath(deviceName, true); + uri.AppendPath("/roles/", false); + uri.AppendPath(roleName, true); + uri.AppendPath("/addons/", false); + uri.AppendPath(addonName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string deviceName, string roleName, string addonName) { var message = _pipeline.CreateMessage(); @@ -216,6 +251,24 @@ public Response Get(string subscriptionId, string reso } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string deviceName, string roleName, string addonName, DataBoxEdgeRoleAddonData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/", false); + uri.AppendPath(deviceName, true); + uri.AppendPath("/roles/", false); + uri.AppendPath(roleName, true); + uri.AppendPath("/addons/", false); + uri.AppendPath(addonName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string deviceName, string roleName, string addonName, DataBoxEdgeRoleAddonData data) { var message = _pipeline.CreateMessage(); @@ -306,6 +359,24 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string deviceName, string roleName, string addonName) + { + 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.DataBoxEdge/dataBoxEdgeDevices/", false); + uri.AppendPath(deviceName, true); + uri.AppendPath("/roles/", false); + uri.AppendPath(roleName, true); + uri.AppendPath("/addons/", false); + uri.AppendPath(addonName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string deviceName, string roleName, string addonName) { var message = _pipeline.CreateMessage(); @@ -390,6 +461,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string d } } + internal RequestUriBuilder CreateListByRoleNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string deviceName, string roleName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByRoleNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string deviceName, string roleName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/RestOperations/AlertsRestOperations.cs b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/RestOperations/AlertsRestOperations.cs index 50c7dcb37ae1..d399559e0675 100644 --- a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/RestOperations/AlertsRestOperations.cs +++ b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/RestOperations/AlertsRestOperations.cs @@ -37,6 +37,21 @@ public AlertsRestOperations(HttpPipeline pipeline, string applicationId, Uri end _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByDataBoxEdgeDeviceRequestUri(string subscriptionId, string resourceGroupName, string deviceName) + { + 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.DataBoxEdge/dataBoxEdgeDevices/", false); + uri.AppendPath(deviceName, true); + uri.AppendPath("/alerts", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByDataBoxEdgeDeviceRequest(string subscriptionId, string resourceGroupName, string deviceName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByDataBoxEdgeDevice(string subscriptionId, string } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string deviceName, string name) + { + 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.DataBoxEdge/dataBoxEdgeDevices/", false); + uri.AppendPath(deviceName, true); + uri.AppendPath("/alerts/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string deviceName, string name) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,14 @@ public Response Get(string subscriptionId, string resource } } + internal RequestUriBuilder CreateListByDataBoxEdgeDeviceNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string deviceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByDataBoxEdgeDeviceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string deviceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/RestOperations/AvailableSkusRestOperations.cs b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/RestOperations/AvailableSkusRestOperations.cs index 20a8154ccbc8..658fd3b73363 100644 --- a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/RestOperations/AvailableSkusRestOperations.cs +++ b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/RestOperations/AvailableSkusRestOperations.cs @@ -37,6 +37,17 @@ public AvailableSkusRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.DataBoxEdge/availableSkus", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,14 @@ public Response List(string subscriptionId, Cancell } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/RestOperations/BandwidthSchedulesRestOperations.cs b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/RestOperations/BandwidthSchedulesRestOperations.cs index fde01473f634..a773fde2e4bc 100644 --- a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/RestOperations/BandwidthSchedulesRestOperations.cs +++ b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/RestOperations/BandwidthSchedulesRestOperations.cs @@ -37,6 +37,21 @@ public BandwidthSchedulesRestOperations(HttpPipeline pipeline, string applicatio _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByDataBoxEdgeDeviceRequestUri(string subscriptionId, string resourceGroupName, string deviceName) + { + 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.DataBoxEdge/dataBoxEdgeDevices/", false); + uri.AppendPath(deviceName, true); + uri.AppendPath("/bandwidthSchedules", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByDataBoxEdgeDeviceRequest(string subscriptionId, string resourceGroupName, string deviceName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByDataBoxEdgeDevice(string subscript } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string deviceName, string name) + { + 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.DataBoxEdge/dataBoxEdgeDevices/", false); + uri.AppendPath(deviceName, true); + uri.AppendPath("/bandwidthSchedules/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string deviceName, string name) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscriptionId, string resourc } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string deviceName, string name, BandwidthScheduleData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/", false); + uri.AppendPath(deviceName, true); + uri.AppendPath("/bandwidthSchedules/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string deviceName, string name, BandwidthScheduleData data) { var message = _pipeline.CreateMessage(); @@ -288,6 +335,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string deviceName, string name) + { + 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.DataBoxEdge/dataBoxEdgeDevices/", false); + uri.AppendPath(deviceName, true); + uri.AppendPath("/bandwidthSchedules/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string deviceName, string name) { var message = _pipeline.CreateMessage(); @@ -366,6 +429,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string d } } + internal RequestUriBuilder CreateListByDataBoxEdgeDeviceNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string deviceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByDataBoxEdgeDeviceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string deviceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/RestOperations/ContainersRestOperations.cs b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/RestOperations/ContainersRestOperations.cs index cc2975d5a38a..d66744f5f952 100644 --- a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/RestOperations/ContainersRestOperations.cs +++ b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/RestOperations/ContainersRestOperations.cs @@ -37,6 +37,23 @@ public ContainersRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByStorageAccountRequestUri(string subscriptionId, string resourceGroupName, string deviceName, string storageAccountName) + { + 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.DataBoxEdge/dataBoxEdgeDevices/", false); + uri.AppendPath(deviceName, true); + uri.AppendPath("/storageAccounts/", false); + uri.AppendPath(storageAccountName, true); + uri.AppendPath("/containers", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByStorageAccountRequest(string subscriptionId, string resourceGroupName, string deviceName, string storageAccountName) { var message = _pipeline.CreateMessage(); @@ -122,6 +139,24 @@ public Response ListByStorageAccount(string subscriptionId, strin } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string deviceName, string storageAccountName, string containerName) + { + 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.DataBoxEdge/dataBoxEdgeDevices/", false); + uri.AppendPath(deviceName, true); + uri.AppendPath("/storageAccounts/", false); + uri.AppendPath(storageAccountName, true); + uri.AppendPath("/containers/", false); + uri.AppendPath(containerName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string deviceName, string storageAccountName, string containerName) { var message = _pipeline.CreateMessage(); @@ -216,6 +251,24 @@ public Response Get(string subscriptionId, stri } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string deviceName, string storageAccountName, string containerName, DataBoxEdgeStorageContainerData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/", false); + uri.AppendPath(deviceName, true); + uri.AppendPath("/storageAccounts/", false); + uri.AppendPath(storageAccountName, true); + uri.AppendPath("/containers/", false); + uri.AppendPath(containerName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string deviceName, string storageAccountName, string containerName, DataBoxEdgeStorageContainerData data) { var message = _pipeline.CreateMessage(); @@ -306,6 +359,24 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string deviceName, string storageAccountName, string containerName) + { + 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.DataBoxEdge/dataBoxEdgeDevices/", false); + uri.AppendPath(deviceName, true); + uri.AppendPath("/storageAccounts/", false); + uri.AppendPath(storageAccountName, true); + uri.AppendPath("/containers/", false); + uri.AppendPath(containerName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string deviceName, string storageAccountName, string containerName) { var message = _pipeline.CreateMessage(); @@ -388,6 +459,25 @@ public Response Delete(string subscriptionId, string resourceGroupName, string d } } + internal RequestUriBuilder CreateRefreshRequestUri(string subscriptionId, string resourceGroupName, string deviceName, string storageAccountName, string containerName) + { + 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.DataBoxEdge/dataBoxEdgeDevices/", false); + uri.AppendPath(deviceName, true); + uri.AppendPath("/storageAccounts/", false); + uri.AppendPath(storageAccountName, true); + uri.AppendPath("/containers/", false); + uri.AppendPath(containerName, true); + uri.AppendPath("/refresh", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRefreshRequest(string subscriptionId, string resourceGroupName, string deviceName, string storageAccountName, string containerName) { var message = _pipeline.CreateMessage(); @@ -471,6 +561,14 @@ public Response Refresh(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreateListByStorageAccountNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string deviceName, string storageAccountName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByStorageAccountNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string deviceName, string storageAccountName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/RestOperations/DeviceCapacityCheckRestOperations.cs b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/RestOperations/DeviceCapacityCheckRestOperations.cs index 7f7982cd6422..146de86b6fea 100644 --- a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/RestOperations/DeviceCapacityCheckRestOperations.cs +++ b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/RestOperations/DeviceCapacityCheckRestOperations.cs @@ -36,6 +36,25 @@ public DeviceCapacityCheckRestOperations(HttpPipeline pipeline, string applicati _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCheckResourceCreationFeasibilityRequestUri(string subscriptionId, string resourceGroupName, string deviceName, DeviceCapacityRequestContent content, string capacityName) + { + 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.DataBoxEdge/dataBoxEdgeDevices/", false); + uri.AppendPath(deviceName, true); + uri.AppendPath("/deviceCapacityCheck", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (capacityName != null) + { + uri.AppendQuery("capacityName", capacityName, true); + } + return uri; + } + internal HttpMessage CreateCheckResourceCreationFeasibilityRequest(string subscriptionId, string resourceGroupName, string deviceName, DeviceCapacityRequestContent content, string capacityName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/RestOperations/DeviceCapacityInfoRestOperations.cs b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/RestOperations/DeviceCapacityInfoRestOperations.cs index 3decd5058a8d..481453b98419 100644 --- a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/RestOperations/DeviceCapacityInfoRestOperations.cs +++ b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/RestOperations/DeviceCapacityInfoRestOperations.cs @@ -37,6 +37,21 @@ public DeviceCapacityInfoRestOperations(HttpPipeline pipeline, string applicatio _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetDeviceCapacityInfoRequestUri(string subscriptionId, string resourceGroupName, string deviceName) + { + 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.DataBoxEdge/dataBoxEdgeDevices/", false); + uri.AppendPath(deviceName, true); + uri.AppendPath("/deviceCapacityInfo/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetDeviceCapacityInfoRequest(string subscriptionId, string resourceGroupName, string deviceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/RestOperations/DevicesRestOperations.cs b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/RestOperations/DevicesRestOperations.cs index 7627509400b1..2ff53c77c459 100644 --- a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/RestOperations/DevicesRestOperations.cs +++ b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/RestOperations/DevicesRestOperations.cs @@ -37,6 +37,21 @@ public DevicesRestOperations(HttpPipeline pipeline, string applicationId, Uri en _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId, string expand) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId, string expand) { var message = _pipeline.CreateMessage(); @@ -110,6 +125,23 @@ public Response ListBySubscription(string subscriptionId, } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName, string expand) + { + 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.DataBoxEdge/dataBoxEdgeDevices", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName, string expand) { var message = _pipeline.CreateMessage(); @@ -189,6 +221,20 @@ public Response ListByResourceGroup(string subscriptionId } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string deviceName) + { + 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.DataBoxEdge/dataBoxEdgeDevices/", false); + uri.AppendPath(deviceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string deviceName) { var message = _pipeline.CreateMessage(); @@ -271,6 +317,20 @@ public Response Get(string subscriptionId, string resourc } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string deviceName, DataBoxEdgeDeviceData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/", false); + uri.AppendPath(deviceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string deviceName, DataBoxEdgeDeviceData data) { var message = _pipeline.CreateMessage(); @@ -357,6 +417,20 @@ public Response CreateOrUpdate(string subscriptionId, str } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string deviceName) + { + 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.DataBoxEdge/dataBoxEdgeDevices/", false); + uri.AppendPath(deviceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string deviceName) { var message = _pipeline.CreateMessage(); @@ -429,6 +503,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string d } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string deviceName, DataBoxEdgeDevicePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/", false); + uri.AppendPath(deviceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string deviceName, DataBoxEdgeDevicePatch patch) { var message = _pipeline.CreateMessage(); @@ -515,6 +603,21 @@ public Response Update(string subscriptionId, string reso } } + internal RequestUriBuilder CreateDownloadUpdatesRequestUri(string subscriptionId, string resourceGroupName, string deviceName) + { + 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.DataBoxEdge/dataBoxEdgeDevices/", false); + uri.AppendPath(deviceName, true); + uri.AppendPath("/downloadUpdates", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDownloadUpdatesRequest(string subscriptionId, string resourceGroupName, string deviceName) { var message = _pipeline.CreateMessage(); @@ -586,6 +689,21 @@ public Response DownloadUpdates(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateGenerateCertificateRequestUri(string subscriptionId, string resourceGroupName, string deviceName) + { + 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.DataBoxEdge/dataBoxEdgeDevices/", false); + uri.AppendPath(deviceName, true); + uri.AppendPath("/generateCertificate", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGenerateCertificateRequest(string subscriptionId, string resourceGroupName, string deviceName) { var message = _pipeline.CreateMessage(); @@ -665,6 +783,21 @@ public Response GenerateCertificate(string subscriptionId, s } } + internal RequestUriBuilder CreateGetExtendedInformationRequestUri(string subscriptionId, string resourceGroupName, string deviceName) + { + 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.DataBoxEdge/dataBoxEdgeDevices/", false); + uri.AppendPath(deviceName, true); + uri.AppendPath("/getExtendedInformation", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetExtendedInformationRequest(string subscriptionId, string resourceGroupName, string deviceName) { var message = _pipeline.CreateMessage(); @@ -744,6 +877,21 @@ public Response GetExtendedInformation(string sub } } + internal RequestUriBuilder CreateInstallUpdatesRequestUri(string subscriptionId, string resourceGroupName, string deviceName) + { + 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.DataBoxEdge/dataBoxEdgeDevices/", false); + uri.AppendPath(deviceName, true); + uri.AppendPath("/installUpdates", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateInstallUpdatesRequest(string subscriptionId, string resourceGroupName, string deviceName) { var message = _pipeline.CreateMessage(); @@ -815,6 +963,21 @@ public Response InstallUpdates(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateGetNetworkSettingsRequestUri(string subscriptionId, string resourceGroupName, string deviceName) + { + 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.DataBoxEdge/dataBoxEdgeDevices/", false); + uri.AppendPath(deviceName, true); + uri.AppendPath("/networkSettings/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetNetworkSettingsRequest(string subscriptionId, string resourceGroupName, string deviceName) { var message = _pipeline.CreateMessage(); @@ -894,6 +1057,21 @@ public Response GetNetworkSettings(string subs } } + internal RequestUriBuilder CreateScanForUpdatesRequestUri(string subscriptionId, string resourceGroupName, string deviceName) + { + 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.DataBoxEdge/dataBoxEdgeDevices/", false); + uri.AppendPath(deviceName, true); + uri.AppendPath("/scanForUpdates", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateScanForUpdatesRequest(string subscriptionId, string resourceGroupName, string deviceName) { var message = _pipeline.CreateMessage(); @@ -965,6 +1143,21 @@ public Response ScanForUpdates(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateCreateOrUpdateSecuritySettingsRequestUri(string subscriptionId, string resourceGroupName, string deviceName, DataBoxEdgeSecuritySettings securitySettings) + { + 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.DataBoxEdge/dataBoxEdgeDevices/", false); + uri.AppendPath(deviceName, true); + uri.AppendPath("/securitySettings/default/update", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateSecuritySettingsRequest(string subscriptionId, string resourceGroupName, string deviceName, DataBoxEdgeSecuritySettings securitySettings) { var message = _pipeline.CreateMessage(); @@ -1044,6 +1237,21 @@ public Response CreateOrUpdateSecuritySettings(string subscriptionId, string res } } + internal RequestUriBuilder CreateUpdateExtendedInformationRequestUri(string subscriptionId, string resourceGroupName, string deviceName, DataBoxEdgeDeviceExtendedInfoPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/", false); + uri.AppendPath(deviceName, true); + uri.AppendPath("/updateExtendedInformation", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateExtendedInformationRequest(string subscriptionId, string resourceGroupName, string deviceName, DataBoxEdgeDeviceExtendedInfoPatch patch) { var message = _pipeline.CreateMessage(); @@ -1131,6 +1339,21 @@ public Response UpdateExtendedInformation(string } } + internal RequestUriBuilder CreateGetUpdateSummaryRequestUri(string subscriptionId, string resourceGroupName, string deviceName) + { + 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.DataBoxEdge/dataBoxEdgeDevices/", false); + uri.AppendPath(deviceName, true); + uri.AppendPath("/updateSummary/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetUpdateSummaryRequest(string subscriptionId, string resourceGroupName, string deviceName) { var message = _pipeline.CreateMessage(); @@ -1210,6 +1433,21 @@ public Response GetUpdateSummary(string subscrip } } + internal RequestUriBuilder CreateUploadCertificateRequestUri(string subscriptionId, string resourceGroupName, string deviceName, UploadCertificateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/", false); + uri.AppendPath(deviceName, true); + uri.AppendPath("/uploadCertificate", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUploadCertificateRequest(string subscriptionId, string resourceGroupName, string deviceName, UploadCertificateContent content) { var message = _pipeline.CreateMessage(); @@ -1297,6 +1535,14 @@ public Response UploadCertificate(string subscription } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId, string expand) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId, string expand) { var message = _pipeline.CreateMessage(); @@ -1367,6 +1613,14 @@ public Response ListBySubscriptionNextPage(string nextLin } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string expand) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string expand) { var message = _pipeline.CreateMessage(); diff --git a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/RestOperations/DiagnosticSettingsRestOperations.cs b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/RestOperations/DiagnosticSettingsRestOperations.cs index 0eaa3b693e3c..cefd845b111b 100644 --- a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/RestOperations/DiagnosticSettingsRestOperations.cs +++ b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/RestOperations/DiagnosticSettingsRestOperations.cs @@ -36,6 +36,21 @@ public DiagnosticSettingsRestOperations(HttpPipeline pipeline, string applicatio _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetDiagnosticProactiveLogCollectionSettingsRequestUri(string subscriptionId, string resourceGroupName, string deviceName) + { + 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.DataBoxEdge/dataBoxEdgeDevices/", false); + uri.AppendPath(deviceName, true); + uri.AppendPath("/diagnosticProactiveLogCollectionSettings/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetDiagnosticProactiveLogCollectionSettingsRequest(string subscriptionId, string resourceGroupName, string deviceName) { var message = _pipeline.CreateMessage(); @@ -119,6 +134,21 @@ public Response GetDiagnosticProact } } + internal RequestUriBuilder CreateUpdateDiagnosticProactiveLogCollectionSettingsRequestUri(string subscriptionId, string resourceGroupName, string deviceName, DiagnosticProactiveLogCollectionSettingData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/", false); + uri.AppendPath(deviceName, true); + uri.AppendPath("/diagnosticProactiveLogCollectionSettings/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateDiagnosticProactiveLogCollectionSettingsRequest(string subscriptionId, string resourceGroupName, string deviceName, DiagnosticProactiveLogCollectionSettingData data) { var message = _pipeline.CreateMessage(); @@ -198,6 +228,21 @@ public Response UpdateDiagnosticProactiveLogCollectionSettings(string subscripti } } + internal RequestUriBuilder CreateGetDiagnosticRemoteSupportSettingsRequestUri(string subscriptionId, string resourceGroupName, string deviceName) + { + 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.DataBoxEdge/dataBoxEdgeDevices/", false); + uri.AppendPath(deviceName, true); + uri.AppendPath("/diagnosticRemoteSupportSettings/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetDiagnosticRemoteSupportSettingsRequest(string subscriptionId, string resourceGroupName, string deviceName) { var message = _pipeline.CreateMessage(); @@ -281,6 +326,21 @@ public Response GetDiagnosticRemoteSupportSe } } + internal RequestUriBuilder CreateUpdateDiagnosticRemoteSupportSettingsRequestUri(string subscriptionId, string resourceGroupName, string deviceName, DiagnosticRemoteSupportSettingData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/", false); + uri.AppendPath(deviceName, true); + uri.AppendPath("/diagnosticRemoteSupportSettings/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateDiagnosticRemoteSupportSettingsRequest(string subscriptionId, string resourceGroupName, string deviceName, DiagnosticRemoteSupportSettingData data) { var message = _pipeline.CreateMessage(); diff --git a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/RestOperations/JobsRestOperations.cs b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/RestOperations/JobsRestOperations.cs index 3e2beb7e8e0d..86c5f33c3ed5 100644 --- a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/RestOperations/JobsRestOperations.cs +++ b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/RestOperations/JobsRestOperations.cs @@ -36,6 +36,22 @@ public JobsRestOperations(HttpPipeline pipeline, string applicationId, Uri endpo _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string deviceName, string name) + { + 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.DataBoxEdge/dataBoxEdgeDevices/", false); + uri.AppendPath(deviceName, true); + uri.AppendPath("/jobs/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string deviceName, string name) { var message = _pipeline.CreateMessage(); diff --git a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/RestOperations/MonitoringConfigRestOperations.cs b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/RestOperations/MonitoringConfigRestOperations.cs index 5e567d5e342d..db5e7ab84e54 100644 --- a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/RestOperations/MonitoringConfigRestOperations.cs +++ b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/RestOperations/MonitoringConfigRestOperations.cs @@ -37,6 +37,23 @@ public MonitoringConfigRestOperations(HttpPipeline pipeline, string applicationI _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string deviceName, string roleName) + { + 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.DataBoxEdge/dataBoxEdgeDevices/", false); + uri.AppendPath(deviceName, true); + uri.AppendPath("/roles/", false); + uri.AppendPath(roleName, true); + uri.AppendPath("/monitoringConfig", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string deviceName, string roleName) { var message = _pipeline.CreateMessage(); @@ -122,6 +139,23 @@ public Response List(string subscriptionId, s } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string deviceName, string roleName) + { + 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.DataBoxEdge/dataBoxEdgeDevices/", false); + uri.AppendPath(deviceName, true); + uri.AppendPath("/roles/", false); + uri.AppendPath(roleName, true); + uri.AppendPath("/monitoringConfig/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string deviceName, string roleName) { var message = _pipeline.CreateMessage(); @@ -211,6 +245,23 @@ public Response Get(string subscriptionId, st } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string deviceName, string roleName, MonitoringMetricConfigurationData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/", false); + uri.AppendPath(deviceName, true); + uri.AppendPath("/roles/", false); + uri.AppendPath(roleName, true); + uri.AppendPath("/monitoringConfig/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string deviceName, string roleName, MonitoringMetricConfigurationData data) { var message = _pipeline.CreateMessage(); @@ -296,6 +347,23 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string deviceName, string roleName) + { + 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.DataBoxEdge/dataBoxEdgeDevices/", false); + uri.AppendPath(deviceName, true); + uri.AppendPath("/roles/", false); + uri.AppendPath(roleName, true); + uri.AppendPath("/monitoringConfig/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string deviceName, string roleName) { var message = _pipeline.CreateMessage(); @@ -375,6 +443,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string d } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string deviceName, string roleName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string deviceName, string roleName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/RestOperations/NodesRestOperations.cs b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/RestOperations/NodesRestOperations.cs index 17674cc7c551..885a1605dcbd 100644 --- a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/RestOperations/NodesRestOperations.cs +++ b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/RestOperations/NodesRestOperations.cs @@ -37,6 +37,21 @@ public NodesRestOperations(HttpPipeline pipeline, string applicationId, Uri endp _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByDataBoxEdgeDeviceRequestUri(string subscriptionId, string resourceGroupName, string deviceName) + { + 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.DataBoxEdge/dataBoxEdgeDevices/", false); + uri.AppendPath(deviceName, true); + uri.AppendPath("/nodes", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByDataBoxEdgeDeviceRequest(string subscriptionId, string resourceGroupName, string deviceName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,14 @@ public Response ListByDataBoxEdgeDevice(string subscription } } + internal RequestUriBuilder CreateListByDataBoxEdgeDeviceNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string deviceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByDataBoxEdgeDeviceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string deviceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/RestOperations/OrdersRestOperations.cs b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/RestOperations/OrdersRestOperations.cs index cd780fafc49c..0a660a61f97c 100644 --- a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/RestOperations/OrdersRestOperations.cs +++ b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/RestOperations/OrdersRestOperations.cs @@ -37,6 +37,21 @@ public OrdersRestOperations(HttpPipeline pipeline, string applicationId, Uri end _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByDataBoxEdgeDeviceRequestUri(string subscriptionId, string resourceGroupName, string deviceName) + { + 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.DataBoxEdge/dataBoxEdgeDevices/", false); + uri.AppendPath(deviceName, true); + uri.AppendPath("/orders", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByDataBoxEdgeDeviceRequest(string subscriptionId, string resourceGroupName, string deviceName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,21 @@ public Response ListByDataBoxEdgeDevice(string subscriptionId, string } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string deviceName) + { + 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.DataBoxEdge/dataBoxEdgeDevices/", false); + uri.AppendPath(deviceName, true); + uri.AppendPath("/orders/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string deviceName) { var message = _pipeline.CreateMessage(); @@ -199,6 +229,21 @@ public Response Get(string subscriptionId, string resource } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string deviceName, DataBoxEdgeOrderData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/", false); + uri.AppendPath(deviceName, true); + uri.AppendPath("/orders/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string deviceName, DataBoxEdgeOrderData data) { var message = _pipeline.CreateMessage(); @@ -278,6 +323,21 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string deviceName) + { + 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.DataBoxEdge/dataBoxEdgeDevices/", false); + uri.AppendPath(deviceName, true); + uri.AppendPath("/orders/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string deviceName) { var message = _pipeline.CreateMessage(); @@ -351,6 +411,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string d } } + internal RequestUriBuilder CreateListDCAccessCodeRequestUri(string subscriptionId, string resourceGroupName, string deviceName) + { + 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.DataBoxEdge/dataBoxEdgeDevices/", false); + uri.AppendPath(deviceName, true); + uri.AppendPath("/orders/default/listDCAccessCode", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListDCAccessCodeRequest(string subscriptionId, string resourceGroupName, string deviceName) { var message = _pipeline.CreateMessage(); @@ -430,6 +505,14 @@ public Response ListDCAccessCode(string subscri } } + internal RequestUriBuilder CreateListByDataBoxEdgeDeviceNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string deviceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByDataBoxEdgeDeviceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string deviceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/RestOperations/RolesRestOperations.cs b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/RestOperations/RolesRestOperations.cs index e33df8a6393d..79e392021311 100644 --- a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/RestOperations/RolesRestOperations.cs +++ b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/RestOperations/RolesRestOperations.cs @@ -37,6 +37,21 @@ public RolesRestOperations(HttpPipeline pipeline, string applicationId, Uri endp _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByDataBoxEdgeDeviceRequestUri(string subscriptionId, string resourceGroupName, string deviceName) + { + 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.DataBoxEdge/dataBoxEdgeDevices/", false); + uri.AppendPath(deviceName, true); + uri.AppendPath("/roles", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByDataBoxEdgeDeviceRequest(string subscriptionId, string resourceGroupName, string deviceName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByDataBoxEdgeDevice(string subscriptionId, string } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string deviceName, string name) + { + 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.DataBoxEdge/dataBoxEdgeDevices/", false); + uri.AppendPath(deviceName, true); + uri.AppendPath("/roles/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string deviceName, string name) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscriptionId, string resourceG } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string deviceName, string name, DataBoxEdgeRoleData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/", false); + uri.AppendPath(deviceName, true); + uri.AppendPath("/roles/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string deviceName, string name, DataBoxEdgeRoleData data) { var message = _pipeline.CreateMessage(); @@ -288,6 +335,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string deviceName, string name) + { + 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.DataBoxEdge/dataBoxEdgeDevices/", false); + uri.AppendPath(deviceName, true); + uri.AppendPath("/roles/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string deviceName, string name) { var message = _pipeline.CreateMessage(); @@ -366,6 +429,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string d } } + internal RequestUriBuilder CreateListByDataBoxEdgeDeviceNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string deviceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByDataBoxEdgeDeviceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string deviceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/RestOperations/SharesRestOperations.cs b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/RestOperations/SharesRestOperations.cs index 8454bdb94c21..ea48b7212a9c 100644 --- a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/RestOperations/SharesRestOperations.cs +++ b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/RestOperations/SharesRestOperations.cs @@ -37,6 +37,21 @@ public SharesRestOperations(HttpPipeline pipeline, string applicationId, Uri end _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByDataBoxEdgeDeviceRequestUri(string subscriptionId, string resourceGroupName, string deviceName) + { + 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.DataBoxEdge/dataBoxEdgeDevices/", false); + uri.AppendPath(deviceName, true); + uri.AppendPath("/shares", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByDataBoxEdgeDeviceRequest(string subscriptionId, string resourceGroupName, string deviceName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByDataBoxEdgeDevice(string subscriptionId, string } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string deviceName, string name) + { + 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.DataBoxEdge/dataBoxEdgeDevices/", false); + uri.AppendPath(deviceName, true); + uri.AppendPath("/shares/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string deviceName, string name) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscriptionId, string resource } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string deviceName, string name, DataBoxEdgeShareData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/", false); + uri.AppendPath(deviceName, true); + uri.AppendPath("/shares/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string deviceName, string name, DataBoxEdgeShareData data) { var message = _pipeline.CreateMessage(); @@ -288,6 +335,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string deviceName, string name) + { + 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.DataBoxEdge/dataBoxEdgeDevices/", false); + uri.AppendPath(deviceName, true); + uri.AppendPath("/shares/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string deviceName, string name) { var message = _pipeline.CreateMessage(); @@ -366,6 +429,23 @@ public Response Delete(string subscriptionId, string resourceGroupName, string d } } + internal RequestUriBuilder CreateRefreshRequestUri(string subscriptionId, string resourceGroupName, string deviceName, string name) + { + 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.DataBoxEdge/dataBoxEdgeDevices/", false); + uri.AppendPath(deviceName, true); + uri.AppendPath("/shares/", false); + uri.AppendPath(name, true); + uri.AppendPath("/refresh", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRefreshRequest(string subscriptionId, string resourceGroupName, string deviceName, string name) { var message = _pipeline.CreateMessage(); @@ -443,6 +523,14 @@ public Response Refresh(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreateListByDataBoxEdgeDeviceNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string deviceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByDataBoxEdgeDeviceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string deviceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/RestOperations/StorageAccountCredentialsRestOperations.cs b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/RestOperations/StorageAccountCredentialsRestOperations.cs index 849d4c9d75b2..307f7944016f 100644 --- a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/RestOperations/StorageAccountCredentialsRestOperations.cs +++ b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/RestOperations/StorageAccountCredentialsRestOperations.cs @@ -37,6 +37,21 @@ public StorageAccountCredentialsRestOperations(HttpPipeline pipeline, string app _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByDataBoxEdgeDeviceRequestUri(string subscriptionId, string resourceGroupName, string deviceName) + { + 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.DataBoxEdge/dataBoxEdgeDevices/", false); + uri.AppendPath(deviceName, true); + uri.AppendPath("/storageAccountCredentials", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByDataBoxEdgeDeviceRequest(string subscriptionId, string resourceGroupName, string deviceName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByDataBoxEdgeDevice(string sub } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string deviceName, string name) + { + 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.DataBoxEdge/dataBoxEdgeDevices/", false); + uri.AppendPath(deviceName, true); + uri.AppendPath("/storageAccountCredentials/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string deviceName, string name) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscription } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string deviceName, string name, DataBoxEdgeStorageAccountCredentialData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/", false); + uri.AppendPath(deviceName, true); + uri.AppendPath("/storageAccountCredentials/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string deviceName, string name, DataBoxEdgeStorageAccountCredentialData data) { var message = _pipeline.CreateMessage(); @@ -288,6 +335,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string deviceName, string name) + { + 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.DataBoxEdge/dataBoxEdgeDevices/", false); + uri.AppendPath(deviceName, true); + uri.AppendPath("/storageAccountCredentials/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string deviceName, string name) { var message = _pipeline.CreateMessage(); @@ -366,6 +429,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string d } } + internal RequestUriBuilder CreateListByDataBoxEdgeDeviceNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string deviceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByDataBoxEdgeDeviceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string deviceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/RestOperations/StorageAccountsRestOperations.cs b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/RestOperations/StorageAccountsRestOperations.cs index 05df866a7245..9011236e4985 100644 --- a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/RestOperations/StorageAccountsRestOperations.cs +++ b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/RestOperations/StorageAccountsRestOperations.cs @@ -37,6 +37,21 @@ public StorageAccountsRestOperations(HttpPipeline pipeline, string applicationId _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByDataBoxEdgeDeviceRequestUri(string subscriptionId, string resourceGroupName, string deviceName) + { + 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.DataBoxEdge/dataBoxEdgeDevices/", false); + uri.AppendPath(deviceName, true); + uri.AppendPath("/storageAccounts", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByDataBoxEdgeDeviceRequest(string subscriptionId, string resourceGroupName, string deviceName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByDataBoxEdgeDevice(string subscriptionI } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string deviceName, string storageAccountName) + { + 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.DataBoxEdge/dataBoxEdgeDevices/", false); + uri.AppendPath(deviceName, true); + uri.AppendPath("/storageAccounts/", false); + uri.AppendPath(storageAccountName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string deviceName, string storageAccountName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscriptionId, string } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string deviceName, string storageAccountName, DataBoxEdgeStorageAccountData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/", false); + uri.AppendPath(deviceName, true); + uri.AppendPath("/storageAccounts/", false); + uri.AppendPath(storageAccountName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string deviceName, string storageAccountName, DataBoxEdgeStorageAccountData data) { var message = _pipeline.CreateMessage(); @@ -288,6 +335,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string deviceName, string storageAccountName) + { + 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.DataBoxEdge/dataBoxEdgeDevices/", false); + uri.AppendPath(deviceName, true); + uri.AppendPath("/storageAccounts/", false); + uri.AppendPath(storageAccountName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string deviceName, string storageAccountName) { var message = _pipeline.CreateMessage(); @@ -364,6 +427,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string d } } + internal RequestUriBuilder CreateListByDataBoxEdgeDeviceNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string deviceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByDataBoxEdgeDeviceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string deviceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/RestOperations/SupportPackagesRestOperations.cs b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/RestOperations/SupportPackagesRestOperations.cs index 41e02677e56e..c34cf1707f0c 100644 --- a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/RestOperations/SupportPackagesRestOperations.cs +++ b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/RestOperations/SupportPackagesRestOperations.cs @@ -36,6 +36,21 @@ public SupportPackagesRestOperations(HttpPipeline pipeline, string applicationId _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateTriggerSupportPackageRequestUri(string subscriptionId, string resourceGroupName, string deviceName, TriggerSupportPackageContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/", false); + uri.AppendPath(deviceName, true); + uri.AppendPath("/triggerSupportPackage", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateTriggerSupportPackageRequest(string subscriptionId, string resourceGroupName, string deviceName, TriggerSupportPackageContent content) { var message = _pipeline.CreateMessage(); diff --git a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/RestOperations/TriggersRestOperations.cs b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/RestOperations/TriggersRestOperations.cs index 47b6c4a544b1..09c0386dedb3 100644 --- a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/RestOperations/TriggersRestOperations.cs +++ b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/RestOperations/TriggersRestOperations.cs @@ -37,6 +37,25 @@ public TriggersRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByDataBoxEdgeDeviceRequestUri(string subscriptionId, string resourceGroupName, string deviceName, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/", false); + uri.AppendPath(deviceName, true); + uri.AppendPath("/triggers", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + return uri; + } + internal HttpMessage CreateListByDataBoxEdgeDeviceRequest(string subscriptionId, string resourceGroupName, string deviceName, string filter) { var message = _pipeline.CreateMessage(); @@ -122,6 +141,22 @@ public Response ListByDataBoxEdgeDevice(string subscriptionId, stri } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string deviceName, string name) + { + 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.DataBoxEdge/dataBoxEdgeDevices/", false); + uri.AppendPath(deviceName, true); + uri.AppendPath("/triggers/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string deviceName, string name) { var message = _pipeline.CreateMessage(); @@ -210,6 +245,22 @@ public Response Get(string subscriptionId, string resour } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string deviceName, string name, DataBoxEdgeTriggerData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/", false); + uri.AppendPath(deviceName, true); + uri.AppendPath("/triggers/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string deviceName, string name, DataBoxEdgeTriggerData data) { var message = _pipeline.CreateMessage(); @@ -294,6 +345,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string deviceName, string name) + { + 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.DataBoxEdge/dataBoxEdgeDevices/", false); + uri.AppendPath(deviceName, true); + uri.AppendPath("/triggers/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string deviceName, string name) { var message = _pipeline.CreateMessage(); @@ -372,6 +439,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string d } } + internal RequestUriBuilder CreateListByDataBoxEdgeDeviceNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string deviceName, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByDataBoxEdgeDeviceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string deviceName, string filter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/RestOperations/UsersRestOperations.cs b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/RestOperations/UsersRestOperations.cs index af98fab388f7..17957a37c084 100644 --- a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/RestOperations/UsersRestOperations.cs +++ b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/RestOperations/UsersRestOperations.cs @@ -37,6 +37,25 @@ public UsersRestOperations(HttpPipeline pipeline, string applicationId, Uri endp _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByDataBoxEdgeDeviceRequestUri(string subscriptionId, string resourceGroupName, string deviceName, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/", false); + uri.AppendPath(deviceName, true); + uri.AppendPath("/users", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + return uri; + } + internal HttpMessage CreateListByDataBoxEdgeDeviceRequest(string subscriptionId, string resourceGroupName, string deviceName, string filter) { var message = _pipeline.CreateMessage(); @@ -122,6 +141,22 @@ public Response ListByDataBoxEdgeDevice(string subscriptionId, string } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string deviceName, string name) + { + 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.DataBoxEdge/dataBoxEdgeDevices/", false); + uri.AppendPath(deviceName, true); + uri.AppendPath("/users/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string deviceName, string name) { var message = _pipeline.CreateMessage(); @@ -210,6 +245,22 @@ public Response Get(string subscriptionId, string resourceG } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string deviceName, string name, DataBoxEdgeUserData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/", false); + uri.AppendPath(deviceName, true); + uri.AppendPath("/users/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string deviceName, string name, DataBoxEdgeUserData data) { var message = _pipeline.CreateMessage(); @@ -294,6 +345,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string deviceName, string name) + { + 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.DataBoxEdge/dataBoxEdgeDevices/", false); + uri.AppendPath(deviceName, true); + uri.AppendPath("/users/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string deviceName, string name) { var message = _pipeline.CreateMessage(); @@ -372,6 +439,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string d } } + internal RequestUriBuilder CreateListByDataBoxEdgeDeviceNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string deviceName, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByDataBoxEdgeDeviceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string deviceName, string filter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/datadog/Azure.ResourceManager.Datadog/src/Generated/LongRunningOperation/DatadogArmOperation.cs b/sdk/datadog/Azure.ResourceManager.Datadog/src/Generated/LongRunningOperation/DatadogArmOperation.cs index b1bb4a0563eb..4164460c8207 100644 --- a/sdk/datadog/Azure.ResourceManager.Datadog/src/Generated/LongRunningOperation/DatadogArmOperation.cs +++ b/sdk/datadog/Azure.ResourceManager.Datadog/src/Generated/LongRunningOperation/DatadogArmOperation.cs @@ -20,21 +20,24 @@ internal class DatadogArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of DatadogArmOperation for mocking. protected DatadogArmOperation() { } - internal DatadogArmOperation(Response response) + internal DatadogArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal DatadogArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "DatadogArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal DatadogArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline p public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/datadog/Azure.ResourceManager.Datadog/src/Generated/LongRunningOperation/DatadogArmOperationOfT.cs b/sdk/datadog/Azure.ResourceManager.Datadog/src/Generated/LongRunningOperation/DatadogArmOperationOfT.cs index 7c575eebc198..53075fe40652 100644 --- a/sdk/datadog/Azure.ResourceManager.Datadog/src/Generated/LongRunningOperation/DatadogArmOperationOfT.cs +++ b/sdk/datadog/Azure.ResourceManager.Datadog/src/Generated/LongRunningOperation/DatadogArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class DatadogArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of DatadogArmOperation for mocking. protected DatadogArmOperation() { } - internal DatadogArmOperation(Response response) + internal DatadogArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal DatadogArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "DatadogArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal DatadogArmOperation(IOperationSource source, ClientDiagnostics clien public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/datadog/Azure.ResourceManager.Datadog/src/Generated/Models/DatadogMonitorResource.Serialization.cs b/sdk/datadog/Azure.ResourceManager.Datadog/src/Generated/Models/DatadogMonitorResource.Serialization.cs new file mode 100644 index 000000000000..08f5c3134a01 --- /dev/null +++ b/sdk/datadog/Azure.ResourceManager.Datadog/src/Generated/Models/DatadogMonitorResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Datadog +{ + public partial class DatadogMonitorResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DatadogMonitorResourceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DatadogMonitorResourceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/datadog/Azure.ResourceManager.Datadog/src/Generated/Models/DatadogSingleSignOnResource.Serialization.cs b/sdk/datadog/Azure.ResourceManager.Datadog/src/Generated/Models/DatadogSingleSignOnResource.Serialization.cs new file mode 100644 index 000000000000..630630cf0e3c --- /dev/null +++ b/sdk/datadog/Azure.ResourceManager.Datadog/src/Generated/Models/DatadogSingleSignOnResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Datadog +{ + public partial class DatadogSingleSignOnResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DatadogSingleSignOnResourceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DatadogSingleSignOnResourceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/datadog/Azure.ResourceManager.Datadog/src/Generated/Models/MonitoringTagRuleResource.Serialization.cs b/sdk/datadog/Azure.ResourceManager.Datadog/src/Generated/Models/MonitoringTagRuleResource.Serialization.cs new file mode 100644 index 000000000000..98b69eb66feb --- /dev/null +++ b/sdk/datadog/Azure.ResourceManager.Datadog/src/Generated/Models/MonitoringTagRuleResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Datadog +{ + public partial class MonitoringTagRuleResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MonitoringTagRuleData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MonitoringTagRuleData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/datadog/Azure.ResourceManager.Datadog/src/Generated/MonitoringTagRuleCollection.cs b/sdk/datadog/Azure.ResourceManager.Datadog/src/Generated/MonitoringTagRuleCollection.cs index 2ecc62311a4b..8d1e834a7f46 100644 --- a/sdk/datadog/Azure.ResourceManager.Datadog/src/Generated/MonitoringTagRuleCollection.cs +++ b/sdk/datadog/Azure.ResourceManager.Datadog/src/Generated/MonitoringTagRuleCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> CreateOrUpdat try { var response = await _monitoringTagRuleTagRulesRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, ruleSetName, data, cancellationToken).ConfigureAwait(false); - var operation = new DatadogArmOperation(Response.FromValue(new MonitoringTagRuleResource(Client, response), response.GetRawResponse())); + var uri = _monitoringTagRuleTagRulesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, ruleSetName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DatadogArmOperation(Response.FromValue(new MonitoringTagRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil try { var response = _monitoringTagRuleTagRulesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, ruleSetName, data, cancellationToken); - var operation = new DatadogArmOperation(Response.FromValue(new MonitoringTagRuleResource(Client, response), response.GetRawResponse())); + var uri = _monitoringTagRuleTagRulesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, ruleSetName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DatadogArmOperation(Response.FromValue(new MonitoringTagRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/datadog/Azure.ResourceManager.Datadog/src/Generated/MonitoringTagRuleResource.cs b/sdk/datadog/Azure.ResourceManager.Datadog/src/Generated/MonitoringTagRuleResource.cs index 66257b26a6f4..b27444333bf9 100644 --- a/sdk/datadog/Azure.ResourceManager.Datadog/src/Generated/MonitoringTagRuleResource.cs +++ b/sdk/datadog/Azure.ResourceManager.Datadog/src/Generated/MonitoringTagRuleResource.cs @@ -204,7 +204,9 @@ public virtual async Task> UpdateAsync(W try { var response = await _monitoringTagRuleTagRulesRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new DatadogArmOperation(Response.FromValue(new MonitoringTagRuleResource(Client, response), response.GetRawResponse())); + var uri = _monitoringTagRuleTagRulesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DatadogArmOperation(Response.FromValue(new MonitoringTagRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -250,7 +252,9 @@ public virtual ArmOperation Update(WaitUntil waitUnti try { var response = _monitoringTagRuleTagRulesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new DatadogArmOperation(Response.FromValue(new MonitoringTagRuleResource(Client, response), response.GetRawResponse())); + var uri = _monitoringTagRuleTagRulesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DatadogArmOperation(Response.FromValue(new MonitoringTagRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/datadog/Azure.ResourceManager.Datadog/src/Generated/RestOperations/MarketplaceAgreementsRestOperations.cs b/sdk/datadog/Azure.ResourceManager.Datadog/src/Generated/RestOperations/MarketplaceAgreementsRestOperations.cs index c50e7f01414e..daacef33075e 100644 --- a/sdk/datadog/Azure.ResourceManager.Datadog/src/Generated/RestOperations/MarketplaceAgreementsRestOperations.cs +++ b/sdk/datadog/Azure.ResourceManager.Datadog/src/Generated/RestOperations/MarketplaceAgreementsRestOperations.cs @@ -37,6 +37,17 @@ public MarketplaceAgreementsRestOperations(HttpPipeline pipeline, string applica _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Datadog/agreements", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,17 @@ public Response List(string subscriptionId } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, DatadogAgreementResourceProperties body) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Datadog/agreements/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, DatadogAgreementResourceProperties body) { var message = _pipeline.CreateMessage(); @@ -180,6 +202,14 @@ public Response CreateOrUpdate(string subscr } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/datadog/Azure.ResourceManager.Datadog/src/Generated/RestOperations/MonitorsRestOperations.cs b/sdk/datadog/Azure.ResourceManager.Datadog/src/Generated/RestOperations/MonitorsRestOperations.cs index 11a4e9da4c4a..54a521226378 100644 --- a/sdk/datadog/Azure.ResourceManager.Datadog/src/Generated/RestOperations/MonitorsRestOperations.cs +++ b/sdk/datadog/Azure.ResourceManager.Datadog/src/Generated/RestOperations/MonitorsRestOperations.cs @@ -37,6 +37,21 @@ public MonitorsRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListApiKeysRequestUri(string subscriptionId, string resourceGroupName, string monitorName) + { + 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.Datadog/monitors/", false); + uri.AppendPath(monitorName, true); + uri.AppendPath("/listApiKeys", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListApiKeysRequest(string subscriptionId, string resourceGroupName, string monitorName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,21 @@ public Response ListApiKeys(string subscriptionId, st } } + internal RequestUriBuilder CreateGetDefaultKeyRequestUri(string subscriptionId, string resourceGroupName, string monitorName) + { + 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.Datadog/monitors/", false); + uri.AppendPath(monitorName, true); + uri.AppendPath("/getDefaultKey", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetDefaultKeyRequest(string subscriptionId, string resourceGroupName, string monitorName) { var message = _pipeline.CreateMessage(); @@ -195,6 +225,21 @@ public Response GetDefaultKey(string subscriptionId, string resou } } + internal RequestUriBuilder CreateSetDefaultKeyRequestUri(string subscriptionId, string resourceGroupName, string monitorName, DatadogApiKey body) + { + 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.Datadog/monitors/", false); + uri.AppendPath(monitorName, true); + uri.AppendPath("/setDefaultKey", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateSetDefaultKeyRequest(string subscriptionId, string resourceGroupName, string monitorName, DatadogApiKey body) { var message = _pipeline.CreateMessage(); @@ -273,6 +318,21 @@ public Response SetDefaultKey(string subscriptionId, string resourceGroupName, s } } + internal RequestUriBuilder CreateListHostsRequestUri(string subscriptionId, string resourceGroupName, string monitorName) + { + 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.Datadog/monitors/", false); + uri.AppendPath(monitorName, true); + uri.AppendPath("/listHosts", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListHostsRequest(string subscriptionId, string resourceGroupName, string monitorName) { var message = _pipeline.CreateMessage(); @@ -352,6 +412,21 @@ public Response ListHosts(string subscriptionId, string } } + internal RequestUriBuilder CreateListLinkedResourcesRequestUri(string subscriptionId, string resourceGroupName, string monitorName) + { + 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.Datadog/monitors/", false); + uri.AppendPath(monitorName, true); + uri.AppendPath("/listLinkedResources", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListLinkedResourcesRequest(string subscriptionId, string resourceGroupName, string monitorName) { var message = _pipeline.CreateMessage(); @@ -431,6 +506,21 @@ public Response ListLinkedResources(string subscript } } + internal RequestUriBuilder CreateListMonitoredResourcesRequestUri(string subscriptionId, string resourceGroupName, string monitorName) + { + 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.Datadog/monitors/", false); + uri.AppendPath(monitorName, true); + uri.AppendPath("/listMonitoredResources", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListMonitoredResourcesRequest(string subscriptionId, string resourceGroupName, string monitorName) { var message = _pipeline.CreateMessage(); @@ -510,6 +600,17 @@ public Response ListMonitoredResources(string sub } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Datadog/monitors", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -577,6 +678,19 @@ public Response List(string subscriptionId, } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.Datadog/monitors", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -650,6 +764,20 @@ public Response ListByResourceGroup(string s } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string monitorName) + { + 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.Datadog/monitors/", false); + uri.AppendPath(monitorName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string monitorName) { var message = _pipeline.CreateMessage(); @@ -732,6 +860,20 @@ public Response Get(string subscriptionId, string re } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string monitorName, DatadogMonitorResourceData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Datadog/monitors/", false); + uri.AppendPath(monitorName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string monitorName, DatadogMonitorResourceData data) { var message = _pipeline.CreateMessage(); @@ -810,6 +952,20 @@ public Response Create(string subscriptionId, string resourceGroupName, string m } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string monitorName, DatadogMonitorResourcePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Datadog/monitors/", false); + uri.AppendPath(monitorName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string monitorName, DatadogMonitorResourcePatch patch) { var message = _pipeline.CreateMessage(); @@ -888,6 +1044,20 @@ public Response Update(string subscriptionId, string resourceGroupName, string m } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string monitorName) + { + 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.Datadog/monitors/", false); + uri.AppendPath(monitorName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string monitorName) { var message = _pipeline.CreateMessage(); @@ -960,6 +1130,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string m } } + internal RequestUriBuilder CreateRefreshSetPasswordLinkRequestUri(string subscriptionId, string resourceGroupName, string monitorName) + { + 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.Datadog/monitors/", false); + uri.AppendPath(monitorName, true); + uri.AppendPath("/refreshSetPasswordLink", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRefreshSetPasswordLinkRequest(string subscriptionId, string resourceGroupName, string monitorName) { var message = _pipeline.CreateMessage(); @@ -1039,6 +1224,14 @@ public Response RefreshSetPasswordLink(string subscripti } } + internal RequestUriBuilder CreateListApiKeysNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string monitorName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListApiKeysNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string monitorName) { var message = _pipeline.CreateMessage(); @@ -1115,6 +1308,14 @@ public Response ListApiKeysNextPage(string nextLink, } } + internal RequestUriBuilder CreateListHostsNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string monitorName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListHostsNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string monitorName) { var message = _pipeline.CreateMessage(); @@ -1191,6 +1392,14 @@ public Response ListHostsNextPage(string nextLink, stri } } + internal RequestUriBuilder CreateListLinkedResourcesNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string monitorName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListLinkedResourcesNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string monitorName) { var message = _pipeline.CreateMessage(); @@ -1267,6 +1476,14 @@ public Response ListLinkedResourcesNextPage(string n } } + internal RequestUriBuilder CreateListMonitoredResourcesNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string monitorName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListMonitoredResourcesNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string monitorName) { var message = _pipeline.CreateMessage(); @@ -1343,6 +1560,14 @@ public Response ListMonitoredResourcesNextPage(st } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -1411,6 +1636,14 @@ public Response ListNextPage(string nextLink } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/datadog/Azure.ResourceManager.Datadog/src/Generated/RestOperations/SingleSignOnConfigurationsRestOperations.cs b/sdk/datadog/Azure.ResourceManager.Datadog/src/Generated/RestOperations/SingleSignOnConfigurationsRestOperations.cs index 61ab4d3a1d86..9ff9bc92f57e 100644 --- a/sdk/datadog/Azure.ResourceManager.Datadog/src/Generated/RestOperations/SingleSignOnConfigurationsRestOperations.cs +++ b/sdk/datadog/Azure.ResourceManager.Datadog/src/Generated/RestOperations/SingleSignOnConfigurationsRestOperations.cs @@ -37,6 +37,21 @@ public SingleSignOnConfigurationsRestOperations(HttpPipeline pipeline, string ap _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string monitorName) + { + 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.Datadog/monitors/", false); + uri.AppendPath(monitorName, true); + uri.AppendPath("/singleSignOnConfigurations", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string monitorName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response List(string subscriptio } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string monitorName, string configurationName, DatadogSingleSignOnResourceData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Datadog/monitors/", false); + uri.AppendPath(monitorName, true); + uri.AppendPath("/singleSignOnConfigurations/", false); + uri.AppendPath(configurationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string monitorName, string configurationName, DatadogSingleSignOnResourceData data) { var message = _pipeline.CreateMessage(); @@ -200,6 +231,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string monitorName, string configurationName) + { + 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.Datadog/monitors/", false); + uri.AppendPath(monitorName, true); + uri.AppendPath("/singleSignOnConfigurations/", false); + uri.AppendPath(configurationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string monitorName, string configurationName) { var message = _pipeline.CreateMessage(); @@ -288,6 +335,14 @@ public Response Get(string subscriptionId, stri } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string monitorName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string monitorName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/datadog/Azure.ResourceManager.Datadog/src/Generated/RestOperations/TagRulesRestOperations.cs b/sdk/datadog/Azure.ResourceManager.Datadog/src/Generated/RestOperations/TagRulesRestOperations.cs index 767ccf0d3c72..d7e25de1db4a 100644 --- a/sdk/datadog/Azure.ResourceManager.Datadog/src/Generated/RestOperations/TagRulesRestOperations.cs +++ b/sdk/datadog/Azure.ResourceManager.Datadog/src/Generated/RestOperations/TagRulesRestOperations.cs @@ -37,6 +37,21 @@ public TagRulesRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string monitorName) + { + 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.Datadog/monitors/", false); + uri.AppendPath(monitorName, true); + uri.AppendPath("/tagRules", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string monitorName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response List(string subscriptionId, stri } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string monitorName, string ruleSetName, MonitoringTagRuleData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Datadog/monitors/", false); + uri.AppendPath(monitorName, true); + uri.AppendPath("/tagRules/", false); + uri.AppendPath(ruleSetName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string monitorName, string ruleSetName, MonitoringTagRuleData data) { var message = _pipeline.CreateMessage(); @@ -208,6 +239,22 @@ public Response CreateOrUpdate(string subscriptionId, str } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string monitorName, string ruleSetName) + { + 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.Datadog/monitors/", false); + uri.AppendPath(monitorName, true); + uri.AppendPath("/tagRules/", false); + uri.AppendPath(ruleSetName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string monitorName, string ruleSetName) { var message = _pipeline.CreateMessage(); @@ -296,6 +343,14 @@ public Response Get(string subscriptionId, string resourc } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string monitorName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string monitorName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryChangeDataCaptureCollection.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryChangeDataCaptureCollection.cs index c648bb26dc2e..4c3ebfc0d2c8 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryChangeDataCaptureCollection.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryChangeDataCaptureCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> Cr try { var response = await _dataFactoryChangeDataCaptureChangeDataCaptureRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, changeDataCaptureName, data, ifMatch, cancellationToken).ConfigureAwait(false); - var operation = new DataFactoryArmOperation(Response.FromValue(new DataFactoryChangeDataCaptureResource(Client, response), response.GetRawResponse())); + var uri = _dataFactoryChangeDataCaptureChangeDataCaptureRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, changeDataCaptureName, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataFactoryArmOperation(Response.FromValue(new DataFactoryChangeDataCaptureResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -141,7 +143,9 @@ public virtual ArmOperation CreateOrUpdate try { var response = _dataFactoryChangeDataCaptureChangeDataCaptureRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, changeDataCaptureName, data, ifMatch, cancellationToken); - var operation = new DataFactoryArmOperation(Response.FromValue(new DataFactoryChangeDataCaptureResource(Client, response), response.GetRawResponse())); + var uri = _dataFactoryChangeDataCaptureChangeDataCaptureRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, changeDataCaptureName, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataFactoryArmOperation(Response.FromValue(new DataFactoryChangeDataCaptureResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryChangeDataCaptureResource.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryChangeDataCaptureResource.cs index 2fcf2f89a272..ac9a56655780 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryChangeDataCaptureResource.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryChangeDataCaptureResource.cs @@ -202,7 +202,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _dataFactoryChangeDataCaptureChangeDataCaptureRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new DataFactoryArmOperation(response); + var uri = _dataFactoryChangeDataCaptureChangeDataCaptureRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataFactoryArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -244,7 +246,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _dataFactoryChangeDataCaptureChangeDataCaptureRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new DataFactoryArmOperation(response); + var uri = _dataFactoryChangeDataCaptureChangeDataCaptureRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataFactoryArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -291,7 +295,9 @@ public virtual async Task> Up try { var response = await _dataFactoryChangeDataCaptureChangeDataCaptureRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, ifMatch, cancellationToken).ConfigureAwait(false); - var operation = new DataFactoryArmOperation(Response.FromValue(new DataFactoryChangeDataCaptureResource(Client, response), response.GetRawResponse())); + var uri = _dataFactoryChangeDataCaptureChangeDataCaptureRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataFactoryArmOperation(Response.FromValue(new DataFactoryChangeDataCaptureResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -338,7 +344,9 @@ public virtual ArmOperation Update(WaitUnt try { var response = _dataFactoryChangeDataCaptureChangeDataCaptureRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, ifMatch, cancellationToken); - var operation = new DataFactoryArmOperation(Response.FromValue(new DataFactoryChangeDataCaptureResource(Client, response), response.GetRawResponse())); + var uri = _dataFactoryChangeDataCaptureChangeDataCaptureRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataFactoryArmOperation(Response.FromValue(new DataFactoryChangeDataCaptureResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryCollection.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryCollection.cs index 5f0067f7203e..e5986e67ca14 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryCollection.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryCollection.cs @@ -92,7 +92,9 @@ public virtual async Task> CreateOrUpdateAsync try { var response = await _dataFactoryFactoriesRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, factoryName, data, ifMatch, cancellationToken).ConfigureAwait(false); - var operation = new DataFactoryArmOperation(Response.FromValue(new DataFactoryResource(Client, response), response.GetRawResponse())); + var uri = _dataFactoryFactoriesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, factoryName, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataFactoryArmOperation(Response.FromValue(new DataFactoryResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -142,7 +144,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUn try { var response = _dataFactoryFactoriesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, factoryName, data, ifMatch, cancellationToken); - var operation = new DataFactoryArmOperation(Response.FromValue(new DataFactoryResource(Client, response), response.GetRawResponse())); + var uri = _dataFactoryFactoriesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, factoryName, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataFactoryArmOperation(Response.FromValue(new DataFactoryResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryDataFlowCollection.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryDataFlowCollection.cs index e758d5c23775..31e9f0777cf9 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryDataFlowCollection.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryDataFlowCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> CreateOrUpd try { var response = await _dataFactoryDataFlowDataFlowsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, dataFlowName, data, ifMatch, cancellationToken).ConfigureAwait(false); - var operation = new DataFactoryArmOperation(Response.FromValue(new DataFactoryDataFlowResource(Client, response), response.GetRawResponse())); + var uri = _dataFactoryDataFlowDataFlowsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, dataFlowName, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataFactoryArmOperation(Response.FromValue(new DataFactoryDataFlowResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -141,7 +143,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUnti try { var response = _dataFactoryDataFlowDataFlowsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, dataFlowName, data, ifMatch, cancellationToken); - var operation = new DataFactoryArmOperation(Response.FromValue(new DataFactoryDataFlowResource(Client, response), response.GetRawResponse())); + var uri = _dataFactoryDataFlowDataFlowsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, dataFlowName, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataFactoryArmOperation(Response.FromValue(new DataFactoryDataFlowResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryDataFlowResource.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryDataFlowResource.cs index b5cc8850c63f..d402c6f7a18b 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryDataFlowResource.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryDataFlowResource.cs @@ -202,7 +202,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _dataFactoryDataFlowDataFlowsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new DataFactoryArmOperation(response); + var uri = _dataFactoryDataFlowDataFlowsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataFactoryArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -244,7 +246,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _dataFactoryDataFlowDataFlowsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new DataFactoryArmOperation(response); + var uri = _dataFactoryDataFlowDataFlowsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataFactoryArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -291,7 +295,9 @@ public virtual async Task> UpdateAsync try { var response = await _dataFactoryDataFlowDataFlowsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, ifMatch, cancellationToken).ConfigureAwait(false); - var operation = new DataFactoryArmOperation(Response.FromValue(new DataFactoryDataFlowResource(Client, response), response.GetRawResponse())); + var uri = _dataFactoryDataFlowDataFlowsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataFactoryArmOperation(Response.FromValue(new DataFactoryDataFlowResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -338,7 +344,9 @@ public virtual ArmOperation Update(WaitUntil waitUn try { var response = _dataFactoryDataFlowDataFlowsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, ifMatch, cancellationToken); - var operation = new DataFactoryArmOperation(Response.FromValue(new DataFactoryDataFlowResource(Client, response), response.GetRawResponse())); + var uri = _dataFactoryDataFlowDataFlowsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataFactoryArmOperation(Response.FromValue(new DataFactoryDataFlowResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryDatasetCollection.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryDatasetCollection.cs index 44f9e818a994..0ddce094c628 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryDatasetCollection.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryDatasetCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> CreateOrUpda try { var response = await _dataFactoryDatasetDatasetsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, datasetName, data, ifMatch, cancellationToken).ConfigureAwait(false); - var operation = new DataFactoryArmOperation(Response.FromValue(new DataFactoryDatasetResource(Client, response), response.GetRawResponse())); + var uri = _dataFactoryDatasetDatasetsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, datasetName, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataFactoryArmOperation(Response.FromValue(new DataFactoryDatasetResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -141,7 +143,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil try { var response = _dataFactoryDatasetDatasetsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, datasetName, data, ifMatch, cancellationToken); - var operation = new DataFactoryArmOperation(Response.FromValue(new DataFactoryDatasetResource(Client, response), response.GetRawResponse())); + var uri = _dataFactoryDatasetDatasetsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, datasetName, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataFactoryArmOperation(Response.FromValue(new DataFactoryDatasetResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryDatasetResource.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryDatasetResource.cs index 684d2611db7b..a887665f3bc6 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryDatasetResource.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryDatasetResource.cs @@ -202,7 +202,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _dataFactoryDatasetDatasetsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new DataFactoryArmOperation(response); + var uri = _dataFactoryDatasetDatasetsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataFactoryArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -244,7 +246,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _dataFactoryDatasetDatasetsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new DataFactoryArmOperation(response); + var uri = _dataFactoryDatasetDatasetsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataFactoryArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -291,7 +295,9 @@ public virtual async Task> UpdateAsync( try { var response = await _dataFactoryDatasetDatasetsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, ifMatch, cancellationToken).ConfigureAwait(false); - var operation = new DataFactoryArmOperation(Response.FromValue(new DataFactoryDatasetResource(Client, response), response.GetRawResponse())); + var uri = _dataFactoryDatasetDatasetsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataFactoryArmOperation(Response.FromValue(new DataFactoryDatasetResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -338,7 +344,9 @@ public virtual ArmOperation Update(WaitUntil waitUnt try { var response = _dataFactoryDatasetDatasetsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, ifMatch, cancellationToken); - var operation = new DataFactoryArmOperation(Response.FromValue(new DataFactoryDatasetResource(Client, response), response.GetRawResponse())); + var uri = _dataFactoryDatasetDatasetsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataFactoryArmOperation(Response.FromValue(new DataFactoryDatasetResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryGlobalParameterCollection.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryGlobalParameterCollection.cs index 238d9a65b645..0e4b011b303e 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryGlobalParameterCollection.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryGlobalParameterCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> Crea try { var response = await _dataFactoryGlobalParameterGlobalParametersRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, globalParameterName, data, cancellationToken).ConfigureAwait(false); - var operation = new DataFactoryArmOperation(Response.FromValue(new DataFactoryGlobalParameterResource(Client, response), response.GetRawResponse())); + var uri = _dataFactoryGlobalParameterGlobalParametersRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, globalParameterName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataFactoryArmOperation(Response.FromValue(new DataFactoryGlobalParameterResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(W try { var response = _dataFactoryGlobalParameterGlobalParametersRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, globalParameterName, data, cancellationToken); - var operation = new DataFactoryArmOperation(Response.FromValue(new DataFactoryGlobalParameterResource(Client, response), response.GetRawResponse())); + var uri = _dataFactoryGlobalParameterGlobalParametersRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, globalParameterName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataFactoryArmOperation(Response.FromValue(new DataFactoryGlobalParameterResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryGlobalParameterResource.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryGlobalParameterResource.cs index 625f8151700c..674a751bb6c1 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryGlobalParameterResource.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryGlobalParameterResource.cs @@ -200,7 +200,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _dataFactoryGlobalParameterGlobalParametersRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new DataFactoryArmOperation(response); + var uri = _dataFactoryGlobalParameterGlobalParametersRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataFactoryArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -242,7 +244,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _dataFactoryGlobalParameterGlobalParametersRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new DataFactoryArmOperation(response); + var uri = _dataFactoryGlobalParameterGlobalParametersRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataFactoryArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -288,7 +292,9 @@ public virtual async Task> Upda try { var response = await _dataFactoryGlobalParameterGlobalParametersRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new DataFactoryArmOperation(Response.FromValue(new DataFactoryGlobalParameterResource(Client, response), response.GetRawResponse())); + var uri = _dataFactoryGlobalParameterGlobalParametersRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataFactoryArmOperation(Response.FromValue(new DataFactoryGlobalParameterResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -334,7 +340,9 @@ public virtual ArmOperation Update(WaitUntil try { var response = _dataFactoryGlobalParameterGlobalParametersRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new DataFactoryArmOperation(Response.FromValue(new DataFactoryGlobalParameterResource(Client, response), response.GetRawResponse())); + var uri = _dataFactoryGlobalParameterGlobalParametersRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataFactoryArmOperation(Response.FromValue(new DataFactoryGlobalParameterResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryIntegrationRuntimeCollection.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryIntegrationRuntimeCollection.cs index d971ebf16667..b5774241c50d 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryIntegrationRuntimeCollection.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryIntegrationRuntimeCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> C try { var response = await _dataFactoryIntegrationRuntimeIntegrationRuntimesRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, integrationRuntimeName, data, ifMatch, cancellationToken).ConfigureAwait(false); - var operation = new DataFactoryArmOperation(Response.FromValue(new DataFactoryIntegrationRuntimeResource(Client, response), response.GetRawResponse())); + var uri = _dataFactoryIntegrationRuntimeIntegrationRuntimesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, integrationRuntimeName, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataFactoryArmOperation(Response.FromValue(new DataFactoryIntegrationRuntimeResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -141,7 +143,9 @@ public virtual ArmOperation CreateOrUpdat try { var response = _dataFactoryIntegrationRuntimeIntegrationRuntimesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, integrationRuntimeName, data, ifMatch, cancellationToken); - var operation = new DataFactoryArmOperation(Response.FromValue(new DataFactoryIntegrationRuntimeResource(Client, response), response.GetRawResponse())); + var uri = _dataFactoryIntegrationRuntimeIntegrationRuntimesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, integrationRuntimeName, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataFactoryArmOperation(Response.FromValue(new DataFactoryIntegrationRuntimeResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryIntegrationRuntimeResource.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryIntegrationRuntimeResource.cs index 9133c2d0970f..22aa6ceb7549 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryIntegrationRuntimeResource.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryIntegrationRuntimeResource.cs @@ -212,7 +212,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _dataFactoryIntegrationRuntimeIntegrationRuntimesRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new DataFactoryArmOperation(response); + var uri = _dataFactoryIntegrationRuntimeIntegrationRuntimesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataFactoryArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -254,7 +256,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _dataFactoryIntegrationRuntimeIntegrationRuntimesRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new DataFactoryArmOperation(response); + var uri = _dataFactoryIntegrationRuntimeIntegrationRuntimesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataFactoryArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryLinkedServiceCollection.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryLinkedServiceCollection.cs index eba416d3676e..b15c4ce5914a 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryLinkedServiceCollection.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryLinkedServiceCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> Create try { var response = await _dataFactoryLinkedServiceLinkedServicesRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, linkedServiceName, data, ifMatch, cancellationToken).ConfigureAwait(false); - var operation = new DataFactoryArmOperation(Response.FromValue(new DataFactoryLinkedServiceResource(Client, response), response.GetRawResponse())); + var uri = _dataFactoryLinkedServiceLinkedServicesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, linkedServiceName, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataFactoryArmOperation(Response.FromValue(new DataFactoryLinkedServiceResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -141,7 +143,9 @@ public virtual ArmOperation CreateOrUpdate(Wai try { var response = _dataFactoryLinkedServiceLinkedServicesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, linkedServiceName, data, ifMatch, cancellationToken); - var operation = new DataFactoryArmOperation(Response.FromValue(new DataFactoryLinkedServiceResource(Client, response), response.GetRawResponse())); + var uri = _dataFactoryLinkedServiceLinkedServicesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, linkedServiceName, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataFactoryArmOperation(Response.FromValue(new DataFactoryLinkedServiceResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryLinkedServiceResource.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryLinkedServiceResource.cs index 0fae496cda51..169168021772 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryLinkedServiceResource.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryLinkedServiceResource.cs @@ -202,7 +202,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _dataFactoryLinkedServiceLinkedServicesRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new DataFactoryArmOperation(response); + var uri = _dataFactoryLinkedServiceLinkedServicesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataFactoryArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -244,7 +246,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _dataFactoryLinkedServiceLinkedServicesRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new DataFactoryArmOperation(response); + var uri = _dataFactoryLinkedServiceLinkedServicesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataFactoryArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -291,7 +295,9 @@ public virtual async Task> Update try { var response = await _dataFactoryLinkedServiceLinkedServicesRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, ifMatch, cancellationToken).ConfigureAwait(false); - var operation = new DataFactoryArmOperation(Response.FromValue(new DataFactoryLinkedServiceResource(Client, response), response.GetRawResponse())); + var uri = _dataFactoryLinkedServiceLinkedServicesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataFactoryArmOperation(Response.FromValue(new DataFactoryLinkedServiceResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -338,7 +344,9 @@ public virtual ArmOperation Update(WaitUntil w try { var response = _dataFactoryLinkedServiceLinkedServicesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, ifMatch, cancellationToken); - var operation = new DataFactoryArmOperation(Response.FromValue(new DataFactoryLinkedServiceResource(Client, response), response.GetRawResponse())); + var uri = _dataFactoryLinkedServiceLinkedServicesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataFactoryArmOperation(Response.FromValue(new DataFactoryLinkedServiceResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryManagedIdentityCredentialCollection.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryManagedIdentityCredentialCollection.cs index 4b4dc7a3737a..443aa2a6d7ff 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryManagedIdentityCredentialCollection.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryManagedIdentityCredentialCollection.cs @@ -91,7 +91,9 @@ public virtual async Task(Response.FromValue(new DataFactoryManagedIdentityCredentialResource(Client, response), response.GetRawResponse())); + var uri = _dataFactoryManagedIdentityCredentialCredentialOperationsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, credentialName, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataFactoryArmOperation(Response.FromValue(new DataFactoryManagedIdentityCredentialResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -141,7 +143,9 @@ public virtual ArmOperation Create try { var response = _dataFactoryManagedIdentityCredentialCredentialOperationsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, credentialName, data, ifMatch, cancellationToken); - var operation = new DataFactoryArmOperation(Response.FromValue(new DataFactoryManagedIdentityCredentialResource(Client, response), response.GetRawResponse())); + var uri = _dataFactoryManagedIdentityCredentialCredentialOperationsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, credentialName, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataFactoryArmOperation(Response.FromValue(new DataFactoryManagedIdentityCredentialResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryManagedIdentityCredentialResource.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryManagedIdentityCredentialResource.cs index 006c60c771ab..c605929398e1 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryManagedIdentityCredentialResource.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryManagedIdentityCredentialResource.cs @@ -202,7 +202,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _dataFactoryManagedIdentityCredentialCredentialOperationsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new DataFactoryArmOperation(response); + var uri = _dataFactoryManagedIdentityCredentialCredentialOperationsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataFactoryArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -244,7 +246,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _dataFactoryManagedIdentityCredentialCredentialOperationsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new DataFactoryArmOperation(response); + var uri = _dataFactoryManagedIdentityCredentialCredentialOperationsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataFactoryArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -291,7 +295,9 @@ public virtual async Task(Response.FromValue(new DataFactoryManagedIdentityCredentialResource(Client, response), response.GetRawResponse())); + var uri = _dataFactoryManagedIdentityCredentialCredentialOperationsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataFactoryArmOperation(Response.FromValue(new DataFactoryManagedIdentityCredentialResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -338,7 +344,9 @@ public virtual ArmOperation Update try { var response = _dataFactoryManagedIdentityCredentialCredentialOperationsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, ifMatch, cancellationToken); - var operation = new DataFactoryArmOperation(Response.FromValue(new DataFactoryManagedIdentityCredentialResource(Client, response), response.GetRawResponse())); + var uri = _dataFactoryManagedIdentityCredentialCredentialOperationsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataFactoryArmOperation(Response.FromValue(new DataFactoryManagedIdentityCredentialResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryManagedVirtualNetworkCollection.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryManagedVirtualNetworkCollection.cs index a2a18b38c996..0c9866a1f16a 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryManagedVirtualNetworkCollection.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryManagedVirtualNetworkCollection.cs @@ -91,7 +91,9 @@ public virtual async Task try { var response = await _dataFactoryManagedVirtualNetworkManagedVirtualNetworksRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, managedVirtualNetworkName, data, ifMatch, cancellationToken).ConfigureAwait(false); - var operation = new DataFactoryArmOperation(Response.FromValue(new DataFactoryManagedVirtualNetworkResource(Client, response), response.GetRawResponse())); + var uri = _dataFactoryManagedVirtualNetworkManagedVirtualNetworksRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, managedVirtualNetworkName, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataFactoryArmOperation(Response.FromValue(new DataFactoryManagedVirtualNetworkResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -141,7 +143,9 @@ public virtual ArmOperation CreateOrUp try { var response = _dataFactoryManagedVirtualNetworkManagedVirtualNetworksRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, managedVirtualNetworkName, data, ifMatch, cancellationToken); - var operation = new DataFactoryArmOperation(Response.FromValue(new DataFactoryManagedVirtualNetworkResource(Client, response), response.GetRawResponse())); + var uri = _dataFactoryManagedVirtualNetworkManagedVirtualNetworksRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, managedVirtualNetworkName, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataFactoryArmOperation(Response.FromValue(new DataFactoryManagedVirtualNetworkResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryManagedVirtualNetworkResource.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryManagedVirtualNetworkResource.cs index cb8625efefe1..5f439d299586 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryManagedVirtualNetworkResource.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryManagedVirtualNetworkResource.cs @@ -278,7 +278,9 @@ public virtual async Task try { var response = await _dataFactoryManagedVirtualNetworkManagedVirtualNetworksRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, ifMatch, cancellationToken).ConfigureAwait(false); - var operation = new DataFactoryArmOperation(Response.FromValue(new DataFactoryManagedVirtualNetworkResource(Client, response), response.GetRawResponse())); + var uri = _dataFactoryManagedVirtualNetworkManagedVirtualNetworksRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataFactoryArmOperation(Response.FromValue(new DataFactoryManagedVirtualNetworkResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -325,7 +327,9 @@ public virtual ArmOperation Update(Wai try { var response = _dataFactoryManagedVirtualNetworkManagedVirtualNetworksRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, ifMatch, cancellationToken); - var operation = new DataFactoryArmOperation(Response.FromValue(new DataFactoryManagedVirtualNetworkResource(Client, response), response.GetRawResponse())); + var uri = _dataFactoryManagedVirtualNetworkManagedVirtualNetworksRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataFactoryArmOperation(Response.FromValue(new DataFactoryManagedVirtualNetworkResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryPipelineCollection.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryPipelineCollection.cs index 2ed9ef0aca92..9185eef71f9a 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryPipelineCollection.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryPipelineCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> CreateOrUpd try { var response = await _dataFactoryPipelinePipelinesRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, pipelineName, data, ifMatch, cancellationToken).ConfigureAwait(false); - var operation = new DataFactoryArmOperation(Response.FromValue(new DataFactoryPipelineResource(Client, response), response.GetRawResponse())); + var uri = _dataFactoryPipelinePipelinesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, pipelineName, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataFactoryArmOperation(Response.FromValue(new DataFactoryPipelineResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -141,7 +143,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUnti try { var response = _dataFactoryPipelinePipelinesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, pipelineName, data, ifMatch, cancellationToken); - var operation = new DataFactoryArmOperation(Response.FromValue(new DataFactoryPipelineResource(Client, response), response.GetRawResponse())); + var uri = _dataFactoryPipelinePipelinesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, pipelineName, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataFactoryArmOperation(Response.FromValue(new DataFactoryPipelineResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryPipelineResource.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryPipelineResource.cs index f369b24477f1..06ec51ca1875 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryPipelineResource.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryPipelineResource.cs @@ -204,7 +204,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _dataFactoryPipelinePipelinesRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new DataFactoryArmOperation(response); + var uri = _dataFactoryPipelinePipelinesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataFactoryArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -246,7 +248,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _dataFactoryPipelinePipelinesRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new DataFactoryArmOperation(response); + var uri = _dataFactoryPipelinePipelinesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataFactoryArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -293,7 +297,9 @@ public virtual async Task> UpdateAsync try { var response = await _dataFactoryPipelinePipelinesRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, ifMatch, cancellationToken).ConfigureAwait(false); - var operation = new DataFactoryArmOperation(Response.FromValue(new DataFactoryPipelineResource(Client, response), response.GetRawResponse())); + var uri = _dataFactoryPipelinePipelinesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataFactoryArmOperation(Response.FromValue(new DataFactoryPipelineResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -340,7 +346,9 @@ public virtual ArmOperation Update(WaitUntil waitUn try { var response = _dataFactoryPipelinePipelinesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, ifMatch, cancellationToken); - var operation = new DataFactoryArmOperation(Response.FromValue(new DataFactoryPipelineResource(Client, response), response.GetRawResponse())); + var uri = _dataFactoryPipelinePipelinesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataFactoryArmOperation(Response.FromValue(new DataFactoryPipelineResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryPrivateEndpointCollection.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryPrivateEndpointCollection.cs index 5053fd14c6f3..0333e47f984d 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryPrivateEndpointCollection.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryPrivateEndpointCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> Crea try { var response = await _dataFactoryPrivateEndpointManagedPrivateEndpointsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, managedPrivateEndpointName, data, ifMatch, cancellationToken).ConfigureAwait(false); - var operation = new DataFactoryArmOperation(Response.FromValue(new DataFactoryPrivateEndpointResource(Client, response), response.GetRawResponse())); + var uri = _dataFactoryPrivateEndpointManagedPrivateEndpointsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, managedPrivateEndpointName, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataFactoryArmOperation(Response.FromValue(new DataFactoryPrivateEndpointResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -141,7 +143,9 @@ public virtual ArmOperation CreateOrUpdate(W try { var response = _dataFactoryPrivateEndpointManagedPrivateEndpointsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, managedPrivateEndpointName, data, ifMatch, cancellationToken); - var operation = new DataFactoryArmOperation(Response.FromValue(new DataFactoryPrivateEndpointResource(Client, response), response.GetRawResponse())); + var uri = _dataFactoryPrivateEndpointManagedPrivateEndpointsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, managedPrivateEndpointName, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataFactoryArmOperation(Response.FromValue(new DataFactoryPrivateEndpointResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryPrivateEndpointConnectionCollection.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryPrivateEndpointConnectionCollection.cs index 767a0d516ce4..1c8c2f762314 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryPrivateEndpointConnectionCollection.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryPrivateEndpointConnectionCollection.cs @@ -97,7 +97,9 @@ public virtual async Task(Response.FromValue(new DataFactoryPrivateEndpointConnectionResource(Client, response), response.GetRawResponse())); + var uri = _dataFactoryPrivateEndpointConnectionPrivateEndpointConnectionRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, privateEndpointConnectionName, content, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataFactoryArmOperation(Response.FromValue(new DataFactoryPrivateEndpointConnectionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -147,7 +149,9 @@ public virtual ArmOperation Create try { var response = _dataFactoryPrivateEndpointConnectionPrivateEndpointConnectionRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, privateEndpointConnectionName, content, ifMatch, cancellationToken); - var operation = new DataFactoryArmOperation(Response.FromValue(new DataFactoryPrivateEndpointConnectionResource(Client, response), response.GetRawResponse())); + var uri = _dataFactoryPrivateEndpointConnectionPrivateEndpointConnectionRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, privateEndpointConnectionName, content, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataFactoryArmOperation(Response.FromValue(new DataFactoryPrivateEndpointConnectionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryPrivateEndpointConnectionResource.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryPrivateEndpointConnectionResource.cs index 591147ae1636..47413fbaa842 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryPrivateEndpointConnectionResource.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryPrivateEndpointConnectionResource.cs @@ -203,7 +203,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _dataFactoryPrivateEndpointConnectionPrivateEndpointConnectionRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new DataFactoryArmOperation(response); + var uri = _dataFactoryPrivateEndpointConnectionPrivateEndpointConnectionRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataFactoryArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -245,7 +247,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _dataFactoryPrivateEndpointConnectionPrivateEndpointConnectionRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new DataFactoryArmOperation(response); + var uri = _dataFactoryPrivateEndpointConnectionPrivateEndpointConnectionRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataFactoryArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -292,7 +296,9 @@ public virtual async Task(Response.FromValue(new DataFactoryPrivateEndpointConnectionResource(Client, response), response.GetRawResponse())); + var uri = _dataFactoryPrivateEndpointConnectionPrivateEndpointConnectionRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, content, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataFactoryArmOperation(Response.FromValue(new DataFactoryPrivateEndpointConnectionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -339,7 +345,9 @@ public virtual ArmOperation Update try { var response = _dataFactoryPrivateEndpointConnectionPrivateEndpointConnectionRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, content, ifMatch, cancellationToken); - var operation = new DataFactoryArmOperation(Response.FromValue(new DataFactoryPrivateEndpointConnectionResource(Client, response), response.GetRawResponse())); + var uri = _dataFactoryPrivateEndpointConnectionPrivateEndpointConnectionRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, content, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataFactoryArmOperation(Response.FromValue(new DataFactoryPrivateEndpointConnectionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryPrivateEndpointResource.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryPrivateEndpointResource.cs index dc7f61508b12..b56f0c0803b2 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryPrivateEndpointResource.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryPrivateEndpointResource.cs @@ -203,7 +203,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _dataFactoryPrivateEndpointManagedPrivateEndpointsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new DataFactoryArmOperation(response); + var uri = _dataFactoryPrivateEndpointManagedPrivateEndpointsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataFactoryArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -245,7 +247,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _dataFactoryPrivateEndpointManagedPrivateEndpointsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new DataFactoryArmOperation(response); + var uri = _dataFactoryPrivateEndpointManagedPrivateEndpointsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataFactoryArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -292,7 +296,9 @@ public virtual async Task> Upda try { var response = await _dataFactoryPrivateEndpointManagedPrivateEndpointsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, ifMatch, cancellationToken).ConfigureAwait(false); - var operation = new DataFactoryArmOperation(Response.FromValue(new DataFactoryPrivateEndpointResource(Client, response), response.GetRawResponse())); + var uri = _dataFactoryPrivateEndpointManagedPrivateEndpointsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataFactoryArmOperation(Response.FromValue(new DataFactoryPrivateEndpointResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -339,7 +345,9 @@ public virtual ArmOperation Update(WaitUntil try { var response = _dataFactoryPrivateEndpointManagedPrivateEndpointsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, ifMatch, cancellationToken); - var operation = new DataFactoryArmOperation(Response.FromValue(new DataFactoryPrivateEndpointResource(Client, response), response.GetRawResponse())); + var uri = _dataFactoryPrivateEndpointManagedPrivateEndpointsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataFactoryArmOperation(Response.FromValue(new DataFactoryPrivateEndpointResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryResource.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryResource.cs index 81dc75a6ee48..fea211b71504 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryResource.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryResource.cs @@ -1013,7 +1013,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _dataFactoryFactoriesRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new DataFactoryArmOperation(response); + var uri = _dataFactoryFactoriesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataFactoryArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -1055,7 +1057,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _dataFactoryFactoriesRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); - var operation = new DataFactoryArmOperation(response); + var uri = _dataFactoryFactoriesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataFactoryArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryTriggerCollection.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryTriggerCollection.cs index 742d0a05aa69..e9486bcdb314 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryTriggerCollection.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryTriggerCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> CreateOrUpda try { var response = await _dataFactoryTriggerTriggersRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, triggerName, data, ifMatch, cancellationToken).ConfigureAwait(false); - var operation = new DataFactoryArmOperation(Response.FromValue(new DataFactoryTriggerResource(Client, response), response.GetRawResponse())); + var uri = _dataFactoryTriggerTriggersRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, triggerName, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataFactoryArmOperation(Response.FromValue(new DataFactoryTriggerResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -141,7 +143,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil try { var response = _dataFactoryTriggerTriggersRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, triggerName, data, ifMatch, cancellationToken); - var operation = new DataFactoryArmOperation(Response.FromValue(new DataFactoryTriggerResource(Client, response), response.GetRawResponse())); + var uri = _dataFactoryTriggerTriggersRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, triggerName, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataFactoryArmOperation(Response.FromValue(new DataFactoryTriggerResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryTriggerResource.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryTriggerResource.cs index 0e308a7830cd..13a0700a23d9 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryTriggerResource.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryTriggerResource.cs @@ -207,7 +207,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _dataFactoryTriggerTriggersRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new DataFactoryArmOperation(response); + var uri = _dataFactoryTriggerTriggersRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataFactoryArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -249,7 +251,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _dataFactoryTriggerTriggersRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new DataFactoryArmOperation(response); + var uri = _dataFactoryTriggerTriggersRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataFactoryArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -296,7 +300,9 @@ public virtual async Task> UpdateAsync( try { var response = await _dataFactoryTriggerTriggersRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, ifMatch, cancellationToken).ConfigureAwait(false); - var operation = new DataFactoryArmOperation(Response.FromValue(new DataFactoryTriggerResource(Client, response), response.GetRawResponse())); + var uri = _dataFactoryTriggerTriggersRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataFactoryArmOperation(Response.FromValue(new DataFactoryTriggerResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -343,7 +349,9 @@ public virtual ArmOperation Update(WaitUntil waitUnt try { var response = _dataFactoryTriggerTriggersRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, ifMatch, cancellationToken); - var operation = new DataFactoryArmOperation(Response.FromValue(new DataFactoryTriggerResource(Client, response), response.GetRawResponse())); + var uri = _dataFactoryTriggerTriggersRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataFactoryArmOperation(Response.FromValue(new DataFactoryTriggerResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/LongRunningOperation/DataFactoryArmOperation.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/LongRunningOperation/DataFactoryArmOperation.cs index 36ecc932eb88..86f60011bf1d 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/LongRunningOperation/DataFactoryArmOperation.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/LongRunningOperation/DataFactoryArmOperation.cs @@ -20,21 +20,24 @@ internal class DataFactoryArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of DataFactoryArmOperation for mocking. protected DataFactoryArmOperation() { } - internal DataFactoryArmOperation(Response response) + internal DataFactoryArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal DataFactoryArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "DataFactoryArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal DataFactoryArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeli public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/LongRunningOperation/DataFactoryArmOperationOfT.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/LongRunningOperation/DataFactoryArmOperationOfT.cs index 9afaa7d77e6a..86cb083fb6f2 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/LongRunningOperation/DataFactoryArmOperationOfT.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/LongRunningOperation/DataFactoryArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class DataFactoryArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of DataFactoryArmOperation for mocking. protected DataFactoryArmOperation() { } - internal DataFactoryArmOperation(Response response) + internal DataFactoryArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal DataFactoryArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "DataFactoryArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal DataFactoryArmOperation(IOperationSource source, ClientDiagnostics c public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryChangeDataCaptureResource.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryChangeDataCaptureResource.Serialization.cs new file mode 100644 index 000000000000..108dc4b139c5 --- /dev/null +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryChangeDataCaptureResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DataFactory +{ + public partial class DataFactoryChangeDataCaptureResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DataFactoryChangeDataCaptureData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DataFactoryChangeDataCaptureData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryDataFlowResource.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryDataFlowResource.Serialization.cs new file mode 100644 index 000000000000..cb5de52bbc18 --- /dev/null +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryDataFlowResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DataFactory +{ + public partial class DataFactoryDataFlowResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DataFactoryDataFlowData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DataFactoryDataFlowData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryDatasetResource.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryDatasetResource.Serialization.cs new file mode 100644 index 000000000000..047127774f3d --- /dev/null +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryDatasetResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DataFactory +{ + public partial class DataFactoryDatasetResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DataFactoryDatasetData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DataFactoryDatasetData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryGlobalParameterResource.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryGlobalParameterResource.Serialization.cs new file mode 100644 index 000000000000..197fa3ac5e09 --- /dev/null +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryGlobalParameterResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DataFactory +{ + public partial class DataFactoryGlobalParameterResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DataFactoryGlobalParameterData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DataFactoryGlobalParameterData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryIntegrationRuntimeResource.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryIntegrationRuntimeResource.Serialization.cs new file mode 100644 index 000000000000..4792b4bd0ea1 --- /dev/null +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryIntegrationRuntimeResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DataFactory +{ + public partial class DataFactoryIntegrationRuntimeResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DataFactoryIntegrationRuntimeData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DataFactoryIntegrationRuntimeData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryLinkedServiceResource.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryLinkedServiceResource.Serialization.cs new file mode 100644 index 000000000000..4e660f7e6818 --- /dev/null +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryLinkedServiceResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DataFactory +{ + public partial class DataFactoryLinkedServiceResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DataFactoryLinkedServiceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DataFactoryLinkedServiceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryManagedIdentityCredentialResource.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryManagedIdentityCredentialResource.Serialization.cs new file mode 100644 index 000000000000..b4cb156afef8 --- /dev/null +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryManagedIdentityCredentialResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DataFactory +{ + public partial class DataFactoryManagedIdentityCredentialResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DataFactoryManagedIdentityCredentialData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DataFactoryManagedIdentityCredentialData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryManagedVirtualNetworkResource.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryManagedVirtualNetworkResource.Serialization.cs new file mode 100644 index 000000000000..8d78a6b189e7 --- /dev/null +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryManagedVirtualNetworkResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DataFactory +{ + public partial class DataFactoryManagedVirtualNetworkResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DataFactoryManagedVirtualNetworkData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DataFactoryManagedVirtualNetworkData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryPipelineResource.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryPipelineResource.Serialization.cs new file mode 100644 index 000000000000..c75e23a0e71c --- /dev/null +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryPipelineResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DataFactory +{ + public partial class DataFactoryPipelineResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DataFactoryPipelineData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DataFactoryPipelineData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryPrivateEndpointConnectionResource.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryPrivateEndpointConnectionResource.Serialization.cs new file mode 100644 index 000000000000..5e25f24a59b7 --- /dev/null +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryPrivateEndpointConnectionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DataFactory +{ + public partial class DataFactoryPrivateEndpointConnectionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DataFactoryPrivateEndpointConnectionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DataFactoryPrivateEndpointConnectionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryPrivateEndpointResource.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryPrivateEndpointResource.Serialization.cs new file mode 100644 index 000000000000..19f9fc1fd184 --- /dev/null +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryPrivateEndpointResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DataFactory +{ + public partial class DataFactoryPrivateEndpointResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DataFactoryPrivateEndpointData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DataFactoryPrivateEndpointData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryResource.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryResource.Serialization.cs new file mode 100644 index 000000000000..ff8fef861f3a --- /dev/null +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DataFactory +{ + public partial class DataFactoryResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DataFactoryData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DataFactoryData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryTriggerResource.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryTriggerResource.Serialization.cs new file mode 100644 index 000000000000..f428989029c6 --- /dev/null +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryTriggerResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DataFactory +{ + public partial class DataFactoryTriggerResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DataFactoryTriggerData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DataFactoryTriggerData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/ActivityRunsRestOperations.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/ActivityRunsRestOperations.cs index 8080a2dc44f2..9d8bb17dfd2a 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/ActivityRunsRestOperations.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/ActivityRunsRestOperations.cs @@ -37,6 +37,23 @@ public ActivityRunsRestOperations(HttpPipeline pipeline, string applicationId, U _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateQueryByPipelineRunRequestUri(string subscriptionId, string resourceGroupName, string factoryName, string runId, RunFilterContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DataFactory/factories/", false); + uri.AppendPath(factoryName, true); + uri.AppendPath("/pipelineruns/", false); + uri.AppendPath(runId, true); + uri.AppendPath("/queryActivityruns", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateQueryByPipelineRunRequest(string subscriptionId, string resourceGroupName, string factoryName, string runId, RunFilterContent content) { var message = _pipeline.CreateMessage(); diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/ChangeDataCaptureRestOperations.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/ChangeDataCaptureRestOperations.cs index c11607247f40..772a9b7ad669 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/ChangeDataCaptureRestOperations.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/ChangeDataCaptureRestOperations.cs @@ -37,6 +37,21 @@ public ChangeDataCaptureRestOperations(HttpPipeline pipeline, string application _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByFactoryRequestUri(string subscriptionId, string resourceGroupName, string factoryName) + { + 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.DataFactory/factories/", false); + uri.AppendPath(factoryName, true); + uri.AppendPath("/adfcdcs", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByFactoryRequest(string subscriptionId, string resourceGroupName, string factoryName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByFactory(string subscriptionId } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string factoryName, string changeDataCaptureName, DataFactoryChangeDataCaptureData data, string ifMatch) + { + 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.DataFactory/factories/", false); + uri.AppendPath(factoryName, true); + uri.AppendPath("/adfcdcs/", false); + uri.AppendPath(changeDataCaptureName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string factoryName, string changeDataCaptureName, DataFactoryChangeDataCaptureData data, string ifMatch) { var message = _pipeline.CreateMessage(); @@ -214,6 +245,22 @@ public Response CreateOrUpdate(string subscrip } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string factoryName, string changeDataCaptureName, string ifNoneMatch) + { + 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.DataFactory/factories/", false); + uri.AppendPath(factoryName, true); + uri.AppendPath("/adfcdcs/", false); + uri.AppendPath(changeDataCaptureName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string factoryName, string changeDataCaptureName, string ifNoneMatch) { var message = _pipeline.CreateMessage(); @@ -308,6 +355,22 @@ public Response Get(string subscriptionId, str } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string factoryName, string changeDataCaptureName) + { + 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.DataFactory/factories/", false); + uri.AppendPath(factoryName, true); + uri.AppendPath("/adfcdcs/", false); + uri.AppendPath(changeDataCaptureName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string factoryName, string changeDataCaptureName) { var message = _pipeline.CreateMessage(); @@ -384,6 +447,23 @@ public Response Delete(string subscriptionId, string resourceGroupName, string f } } + internal RequestUriBuilder CreateStartRequestUri(string subscriptionId, string resourceGroupName, string factoryName, string changeDataCaptureName) + { + 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.DataFactory/factories/", false); + uri.AppendPath(factoryName, true); + uri.AppendPath("/adfcdcs/", false); + uri.AppendPath(changeDataCaptureName, true); + uri.AppendPath("/start", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStartRequest(string subscriptionId, string resourceGroupName, string factoryName, string changeDataCaptureName) { var message = _pipeline.CreateMessage(); @@ -459,6 +539,23 @@ public Response Start(string subscriptionId, string resourceGroupName, string fa } } + internal RequestUriBuilder CreateStopRequestUri(string subscriptionId, string resourceGroupName, string factoryName, string changeDataCaptureName) + { + 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.DataFactory/factories/", false); + uri.AppendPath(factoryName, true); + uri.AppendPath("/adfcdcs/", false); + uri.AppendPath(changeDataCaptureName, true); + uri.AppendPath("/stop", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStopRequest(string subscriptionId, string resourceGroupName, string factoryName, string changeDataCaptureName) { var message = _pipeline.CreateMessage(); @@ -534,6 +631,23 @@ public Response Stop(string subscriptionId, string resourceGroupName, string fac } } + internal RequestUriBuilder CreateStatusRequestUri(string subscriptionId, string resourceGroupName, string factoryName, string changeDataCaptureName) + { + 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.DataFactory/factories/", false); + uri.AppendPath(factoryName, true); + uri.AppendPath("/adfcdcs/", false); + uri.AppendPath(changeDataCaptureName, true); + uri.AppendPath("/status", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStatusRequest(string subscriptionId, string resourceGroupName, string factoryName, string changeDataCaptureName) { var message = _pipeline.CreateMessage(); @@ -619,6 +733,14 @@ public Response Status(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateListByFactoryNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string factoryName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByFactoryNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string factoryName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/CredentialRestOperations.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/CredentialRestOperations.cs index 1386d1e44d18..9af6fe6a5b1f 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/CredentialRestOperations.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/CredentialRestOperations.cs @@ -37,6 +37,21 @@ public CredentialRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByFactoryRequestUri(string subscriptionId, string resourceGroupName, string factoryName) + { + 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.DataFactory/factories/", false); + uri.AppendPath(factoryName, true); + uri.AppendPath("/credentials", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByFactoryRequest(string subscriptionId, string resourceGroupName, string factoryName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByFactory(string subscripti } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string factoryName, string credentialName, DataFactoryManagedIdentityCredentialData data, string ifMatch) + { + 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.DataFactory/factories/", false); + uri.AppendPath(factoryName, true); + uri.AppendPath("/credentials/", false); + uri.AppendPath(credentialName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string factoryName, string credentialName, DataFactoryManagedIdentityCredentialData data, string ifMatch) { var message = _pipeline.CreateMessage(); @@ -214,6 +245,22 @@ public Response CreateOrUpdate(string } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string factoryName, string credentialName, string ifNoneMatch) + { + 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.DataFactory/factories/", false); + uri.AppendPath(factoryName, true); + uri.AppendPath("/credentials/", false); + uri.AppendPath(credentialName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string factoryName, string credentialName, string ifNoneMatch) { var message = _pipeline.CreateMessage(); @@ -310,6 +357,22 @@ public Response Get(string subscriptio } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string factoryName, string credentialName) + { + 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.DataFactory/factories/", false); + uri.AppendPath(factoryName, true); + uri.AppendPath("/credentials/", false); + uri.AppendPath(credentialName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string factoryName, string credentialName) { var message = _pipeline.CreateMessage(); @@ -386,6 +449,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string f } } + internal RequestUriBuilder CreateListByFactoryNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string factoryName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByFactoryNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string factoryName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/DataFlowDebugSessionRestOperations.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/DataFlowDebugSessionRestOperations.cs index 7cf7a0ec2f1c..a8ce8bea1b5d 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/DataFlowDebugSessionRestOperations.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/DataFlowDebugSessionRestOperations.cs @@ -37,6 +37,21 @@ public DataFlowDebugSessionRestOperations(HttpPipeline pipeline, string applicat _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string factoryName, DataFactoryDataFlowDebugSessionContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DataFactory/factories/", false); + uri.AppendPath(factoryName, true); + uri.AppendPath("/createDataFlowDebugSession", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string factoryName, DataFactoryDataFlowDebugSessionContent content) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,21 @@ public Response Create(string subscriptionId, string resourceGroupName, string f } } + internal RequestUriBuilder CreateQueryByFactoryRequestUri(string subscriptionId, string resourceGroupName, string factoryName) + { + 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.DataFactory/factories/", false); + uri.AppendPath(factoryName, true); + uri.AppendPath("/queryDataFlowDebugSessions", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateQueryByFactoryRequest(string subscriptionId, string resourceGroupName, string factoryName) { var message = _pipeline.CreateMessage(); @@ -195,6 +225,21 @@ public Response QueryByFactory(string subscr } } + internal RequestUriBuilder CreateAddDataFlowRequestUri(string subscriptionId, string resourceGroupName, string factoryName, DataFactoryDataFlowDebugPackageContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DataFactory/factories/", false); + uri.AppendPath(factoryName, true); + uri.AppendPath("/addDataFlowToDebugSession", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateAddDataFlowRequest(string subscriptionId, string resourceGroupName, string factoryName, DataFactoryDataFlowDebugPackageContent content) { var message = _pipeline.CreateMessage(); @@ -282,6 +327,21 @@ public Response AddDataFlow(string s } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string factoryName, DeleteDataFlowDebugSessionContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DataFactory/factories/", false); + uri.AppendPath(factoryName, true); + uri.AppendPath("/deleteDataFlowDebugSession", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string factoryName, DeleteDataFlowDebugSessionContent content) { var message = _pipeline.CreateMessage(); @@ -359,6 +419,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string f } } + internal RequestUriBuilder CreateExecuteCommandRequestUri(string subscriptionId, string resourceGroupName, string factoryName, DataFlowDebugCommandContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DataFactory/factories/", false); + uri.AppendPath(factoryName, true); + uri.AppendPath("/executeDataFlowDebugCommand", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateExecuteCommandRequest(string subscriptionId, string resourceGroupName, string factoryName, DataFlowDebugCommandContent content) { var message = _pipeline.CreateMessage(); @@ -438,6 +513,14 @@ public Response ExecuteCommand(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateQueryByFactoryNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string factoryName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateQueryByFactoryNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string factoryName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/DataFlowsRestOperations.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/DataFlowsRestOperations.cs index 06b08313f841..cac066d38192 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/DataFlowsRestOperations.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/DataFlowsRestOperations.cs @@ -37,6 +37,22 @@ public DataFlowsRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string factoryName, string dataFlowName, DataFactoryDataFlowData data, string ifMatch) + { + 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.DataFactory/factories/", false); + uri.AppendPath(factoryName, true); + uri.AppendPath("/dataflows/", false); + uri.AppendPath(dataFlowName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string factoryName, string dataFlowName, DataFactoryDataFlowData data, string ifMatch) { var message = _pipeline.CreateMessage(); @@ -135,6 +151,22 @@ public Response CreateOrUpdate(string subscriptionId, s } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string factoryName, string dataFlowName, string ifNoneMatch) + { + 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.DataFactory/factories/", false); + uri.AppendPath(factoryName, true); + uri.AppendPath("/dataflows/", false); + uri.AppendPath(dataFlowName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string factoryName, string dataFlowName, string ifNoneMatch) { var message = _pipeline.CreateMessage(); @@ -229,6 +261,22 @@ public Response Get(string subscriptionId, string resou } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string factoryName, string dataFlowName) + { + 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.DataFactory/factories/", false); + uri.AppendPath(factoryName, true); + uri.AppendPath("/dataflows/", false); + uri.AppendPath(dataFlowName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string factoryName, string dataFlowName) { var message = _pipeline.CreateMessage(); @@ -305,6 +353,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string f } } + internal RequestUriBuilder CreateListByFactoryRequestUri(string subscriptionId, string resourceGroupName, string factoryName) + { + 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.DataFactory/factories/", false); + uri.AppendPath(factoryName, true); + uri.AppendPath("/dataflows", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByFactoryRequest(string subscriptionId, string resourceGroupName, string factoryName) { var message = _pipeline.CreateMessage(); @@ -384,6 +447,14 @@ public Response ListByFactory(string subscription } } + internal RequestUriBuilder CreateListByFactoryNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string factoryName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByFactoryNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string factoryName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/DatasetsRestOperations.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/DatasetsRestOperations.cs index 05ffeee3c7ce..52e6df7c54e7 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/DatasetsRestOperations.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/DatasetsRestOperations.cs @@ -37,6 +37,21 @@ public DatasetsRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByFactoryRequestUri(string subscriptionId, string resourceGroupName, string factoryName) + { + 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.DataFactory/factories/", false); + uri.AppendPath(factoryName, true); + uri.AppendPath("/datasets", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByFactoryRequest(string subscriptionId, string resourceGroupName, string factoryName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByFactory(string subscriptionI } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string factoryName, string datasetName, DataFactoryDatasetData data, string ifMatch) + { + 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.DataFactory/factories/", false); + uri.AppendPath(factoryName, true); + uri.AppendPath("/datasets/", false); + uri.AppendPath(datasetName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string factoryName, string datasetName, DataFactoryDatasetData data, string ifMatch) { var message = _pipeline.CreateMessage(); @@ -214,6 +245,22 @@ public Response CreateOrUpdate(string subscriptionId, st } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string factoryName, string datasetName, string ifNoneMatch) + { + 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.DataFactory/factories/", false); + uri.AppendPath(factoryName, true); + uri.AppendPath("/datasets/", false); + uri.AppendPath(datasetName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string factoryName, string datasetName, string ifNoneMatch) { var message = _pipeline.CreateMessage(); @@ -310,6 +357,22 @@ public Response Get(string subscriptionId, string resour } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string factoryName, string datasetName) + { + 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.DataFactory/factories/", false); + uri.AppendPath(factoryName, true); + uri.AppendPath("/datasets/", false); + uri.AppendPath(datasetName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string factoryName, string datasetName) { var message = _pipeline.CreateMessage(); @@ -386,6 +449,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string f } } + internal RequestUriBuilder CreateListByFactoryNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string factoryName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByFactoryNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string factoryName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/ExposureControlRestOperations.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/ExposureControlRestOperations.cs index 18407d42f823..4e622d5a7194 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/ExposureControlRestOperations.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/ExposureControlRestOperations.cs @@ -37,6 +37,19 @@ public ExposureControlRestOperations(HttpPipeline pipeline, string applicationId _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetFeatureValueRequestUri(string subscriptionId, AzureLocation locationId, ExposureControlContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.DataFactory/locations/", false); + uri.AppendPath(locationId, true); + uri.AppendPath("/getFeatureValue", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetFeatureValueRequest(string subscriptionId, AzureLocation locationId, ExposureControlContent content) { var message = _pipeline.CreateMessage(); @@ -116,6 +129,21 @@ public Response GetFeatureValue(string subscriptionId, Az } } + internal RequestUriBuilder CreateGetFeatureValueByFactoryRequestUri(string subscriptionId, string resourceGroupName, string factoryName, ExposureControlContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DataFactory/factories/", false); + uri.AppendPath(factoryName, true); + uri.AppendPath("/getFeatureValue", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetFeatureValueByFactoryRequest(string subscriptionId, string resourceGroupName, string factoryName, ExposureControlContent content) { var message = _pipeline.CreateMessage(); @@ -203,6 +231,21 @@ public Response GetFeatureValueByFactory(string subscript } } + internal RequestUriBuilder CreateQueryFeatureValuesByFactoryRequestUri(string subscriptionId, string resourceGroupName, string factoryName, ExposureControlBatchContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DataFactory/factories/", false); + uri.AppendPath(factoryName, true); + uri.AppendPath("/queryFeaturesValue", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateQueryFeatureValuesByFactoryRequest(string subscriptionId, string resourceGroupName, string factoryName, ExposureControlBatchContent content) { var message = _pipeline.CreateMessage(); diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/FactoriesRestOperations.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/FactoriesRestOperations.cs index 28c5a484d166..310b3364a7eb 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/FactoriesRestOperations.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/FactoriesRestOperations.cs @@ -37,6 +37,17 @@ public FactoriesRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.DataFactory/factories", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,19 @@ public Response List(string subscriptionId, CancellationT } } + internal RequestUriBuilder CreateConfigureFactoryRepoRequestUri(string subscriptionId, AzureLocation locationId, FactoryRepoContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.DataFactory/locations/", false); + uri.AppendPath(locationId, true); + uri.AppendPath("/configureFactoryRepo", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateConfigureFactoryRepoRequest(string subscriptionId, AzureLocation locationId, FactoryRepoContent content) { var message = _pipeline.CreateMessage(); @@ -183,6 +207,19 @@ public Response ConfigureFactoryRepo(string subscriptionId, Azu } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.DataFactory/factories", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -256,6 +293,20 @@ public Response ListByResourceGroup(string subscriptionId } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string factoryName, DataFactoryData data, string ifMatch) + { + 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.DataFactory/factories/", false); + uri.AppendPath(factoryName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string factoryName, DataFactoryData data, string ifMatch) { var message = _pipeline.CreateMessage(); @@ -348,6 +399,20 @@ public Response CreateOrUpdate(string subscriptionId, string re } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string factoryName, DataFactoryPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DataFactory/factories/", false); + uri.AppendPath(factoryName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string factoryName, DataFactoryPatch patch) { var message = _pipeline.CreateMessage(); @@ -434,6 +499,20 @@ public Response Update(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string factoryName, string ifNoneMatch) + { + 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.DataFactory/factories/", false); + uri.AppendPath(factoryName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string factoryName, string ifNoneMatch) { var message = _pipeline.CreateMessage(); @@ -524,6 +603,20 @@ public Response Get(string subscriptionId, string resourceGroup } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string factoryName) + { + 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.DataFactory/factories/", false); + uri.AppendPath(factoryName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string factoryName) { var message = _pipeline.CreateMessage(); @@ -594,6 +687,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string f } } + internal RequestUriBuilder CreateGetGitHubAccessTokenRequestUri(string subscriptionId, string resourceGroupName, string factoryName, GitHubAccessTokenContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DataFactory/factories/", false); + uri.AppendPath(factoryName, true); + uri.AppendPath("/getGitHubAccessToken", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetGitHubAccessTokenRequest(string subscriptionId, string resourceGroupName, string factoryName, GitHubAccessTokenContent content) { var message = _pipeline.CreateMessage(); @@ -681,6 +789,21 @@ public Response GetGitHubAccessToken(string subscriptio } } + internal RequestUriBuilder CreateGetDataPlaneAccessRequestUri(string subscriptionId, string resourceGroupName, string factoryName, DataFactoryDataPlaneUserAccessPolicy policy) + { + 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.DataFactory/factories/", false); + uri.AppendPath(factoryName, true); + uri.AppendPath("/getDataPlaneAccess", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetDataPlaneAccessRequest(string subscriptionId, string resourceGroupName, string factoryName, DataFactoryDataPlaneUserAccessPolicy policy) { var message = _pipeline.CreateMessage(); @@ -768,6 +891,14 @@ public Response GetDataPlaneAccess(strin } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -836,6 +967,14 @@ public Response ListNextPage(string nextLink, string subs } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/GlobalParametersRestOperations.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/GlobalParametersRestOperations.cs index d0bc8ae4568c..f018973bf649 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/GlobalParametersRestOperations.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/GlobalParametersRestOperations.cs @@ -37,6 +37,21 @@ public GlobalParametersRestOperations(HttpPipeline pipeline, string applicationI _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByFactoryRequestUri(string subscriptionId, string resourceGroupName, string factoryName) + { + 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.DataFactory/factories/", false); + uri.AppendPath(factoryName, true); + uri.AppendPath("/globalParameters", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByFactoryRequest(string subscriptionId, string resourceGroupName, string factoryName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByFactory(string subsc } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string factoryName, string globalParameterName) + { + 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.DataFactory/factories/", false); + uri.AppendPath(factoryName, true); + uri.AppendPath("/globalParameters/", false); + uri.AppendPath(globalParameterName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string factoryName, string globalParameterName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscriptionId, strin } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string factoryName, string globalParameterName, DataFactoryGlobalParameterData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DataFactory/factories/", false); + uri.AppendPath(factoryName, true); + uri.AppendPath("/globalParameters/", false); + uri.AppendPath(globalParameterName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string factoryName, string globalParameterName, DataFactoryGlobalParameterData data) { var message = _pipeline.CreateMessage(); @@ -296,6 +343,22 @@ public Response CreateOrUpdate(string subscripti } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string factoryName, string globalParameterName) + { + 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.DataFactory/factories/", false); + uri.AppendPath(factoryName, true); + uri.AppendPath("/globalParameters/", false); + uri.AppendPath(globalParameterName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string factoryName, string globalParameterName) { var message = _pipeline.CreateMessage(); @@ -372,6 +435,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string f } } + internal RequestUriBuilder CreateListByFactoryNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string factoryName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByFactoryNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string factoryName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/IntegrationRuntimeNodesRestOperations.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/IntegrationRuntimeNodesRestOperations.cs index 032720777b38..d53f72bfcf84 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/IntegrationRuntimeNodesRestOperations.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/IntegrationRuntimeNodesRestOperations.cs @@ -37,6 +37,24 @@ public IntegrationRuntimeNodesRestOperations(HttpPipeline pipeline, string appli _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string factoryName, string integrationRuntimeName, string nodeName) + { + 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.DataFactory/factories/", false); + uri.AppendPath(factoryName, true); + uri.AppendPath("/integrationRuntimes/", false); + uri.AppendPath(integrationRuntimeName, true); + uri.AppendPath("/nodes/", false); + uri.AppendPath(nodeName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string factoryName, string integrationRuntimeName, string nodeName) { var message = _pipeline.CreateMessage(); @@ -127,6 +145,24 @@ public Response Get(string subscriptionId, str } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string factoryName, string integrationRuntimeName, string nodeName) + { + 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.DataFactory/factories/", false); + uri.AppendPath(factoryName, true); + uri.AppendPath("/integrationRuntimes/", false); + uri.AppendPath(integrationRuntimeName, true); + uri.AppendPath("/nodes/", false); + uri.AppendPath(nodeName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string factoryName, string integrationRuntimeName, string nodeName) { var message = _pipeline.CreateMessage(); @@ -209,6 +245,24 @@ public Response Delete(string subscriptionId, string resourceGroupName, string f } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string factoryName, string integrationRuntimeName, string nodeName, UpdateIntegrationRuntimeNodeContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DataFactory/factories/", false); + uri.AppendPath(factoryName, true); + uri.AppendPath("/integrationRuntimes/", false); + uri.AppendPath(integrationRuntimeName, true); + uri.AppendPath("/nodes/", false); + uri.AppendPath(nodeName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string factoryName, string integrationRuntimeName, string nodeName, UpdateIntegrationRuntimeNodeContent content) { var message = _pipeline.CreateMessage(); @@ -307,6 +361,25 @@ public Response Update(string subscriptionId, } } + internal RequestUriBuilder CreateGetIPAddressRequestUri(string subscriptionId, string resourceGroupName, string factoryName, string integrationRuntimeName, string nodeName) + { + 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.DataFactory/factories/", false); + uri.AppendPath(factoryName, true); + uri.AppendPath("/integrationRuntimes/", false); + uri.AppendPath(integrationRuntimeName, true); + uri.AppendPath("/nodes/", false); + uri.AppendPath(nodeName, true); + uri.AppendPath("/ipAddress", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetIPAddressRequest(string subscriptionId, string resourceGroupName, string factoryName, string integrationRuntimeName, string nodeName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/IntegrationRuntimeObjectMetadataRestOperations.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/IntegrationRuntimeObjectMetadataRestOperations.cs index eaa6606552df..b36e8433dc6c 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/IntegrationRuntimeObjectMetadataRestOperations.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/IntegrationRuntimeObjectMetadataRestOperations.cs @@ -37,6 +37,23 @@ public IntegrationRuntimeObjectMetadataRestOperations(HttpPipeline pipeline, str _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateRefreshRequestUri(string subscriptionId, string resourceGroupName, string factoryName, string integrationRuntimeName) + { + 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.DataFactory/factories/", false); + uri.AppendPath(factoryName, true); + uri.AppendPath("/integrationRuntimes/", false); + uri.AppendPath(integrationRuntimeName, true); + uri.AppendPath("/refreshObjectMetadata", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRefreshRequest(string subscriptionId, string resourceGroupName, string factoryName, string integrationRuntimeName) { var message = _pipeline.CreateMessage(); @@ -114,6 +131,23 @@ public Response Refresh(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string factoryName, string integrationRuntimeName, GetSsisObjectMetadataContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DataFactory/factories/", false); + uri.AppendPath(factoryName, true); + uri.AppendPath("/integrationRuntimes/", false); + uri.AppendPath(integrationRuntimeName, true); + uri.AppendPath("/getObjectMetadata", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string factoryName, string integrationRuntimeName, GetSsisObjectMetadataContent content) { var message = _pipeline.CreateMessage(); diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/IntegrationRuntimesRestOperations.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/IntegrationRuntimesRestOperations.cs index c8a81e228e81..fb8caa64e1ed 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/IntegrationRuntimesRestOperations.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/IntegrationRuntimesRestOperations.cs @@ -37,6 +37,21 @@ public IntegrationRuntimesRestOperations(HttpPipeline pipeline, string applicati _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByFactoryRequestUri(string subscriptionId, string resourceGroupName, string factoryName) + { + 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.DataFactory/factories/", false); + uri.AppendPath(factoryName, true); + uri.AppendPath("/integrationRuntimes", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByFactoryRequest(string subscriptionId, string resourceGroupName, string factoryName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByFactory(string su } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string factoryName, string integrationRuntimeName, DataFactoryIntegrationRuntimeData data, string ifMatch) + { + 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.DataFactory/factories/", false); + uri.AppendPath(factoryName, true); + uri.AppendPath("/integrationRuntimes/", false); + uri.AppendPath(integrationRuntimeName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string factoryName, string integrationRuntimeName, DataFactoryIntegrationRuntimeData data, string ifMatch) { var message = _pipeline.CreateMessage(); @@ -214,6 +245,22 @@ public Response CreateOrUpdate(string subscri } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string factoryName, string integrationRuntimeName, string ifNoneMatch) + { + 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.DataFactory/factories/", false); + uri.AppendPath(factoryName, true); + uri.AppendPath("/integrationRuntimes/", false); + uri.AppendPath(integrationRuntimeName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string factoryName, string integrationRuntimeName, string ifNoneMatch) { var message = _pipeline.CreateMessage(); @@ -310,6 +357,22 @@ public Response Get(string subscriptionId, st } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string factoryName, string integrationRuntimeName, DataFactoryIntegrationRuntimePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DataFactory/factories/", false); + uri.AppendPath(factoryName, true); + uri.AppendPath("/integrationRuntimes/", false); + uri.AppendPath(integrationRuntimeName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string factoryName, string integrationRuntimeName, DataFactoryIntegrationRuntimePatch patch) { var message = _pipeline.CreateMessage(); @@ -402,6 +465,22 @@ public Response Update(string subscriptionId, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string factoryName, string integrationRuntimeName) + { + 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.DataFactory/factories/", false); + uri.AppendPath(factoryName, true); + uri.AppendPath("/integrationRuntimes/", false); + uri.AppendPath(integrationRuntimeName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string factoryName, string integrationRuntimeName) { var message = _pipeline.CreateMessage(); @@ -478,6 +557,23 @@ public Response Delete(string subscriptionId, string resourceGroupName, string f } } + internal RequestUriBuilder CreateGetStatusRequestUri(string subscriptionId, string resourceGroupName, string factoryName, string integrationRuntimeName) + { + 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.DataFactory/factories/", false); + uri.AppendPath(factoryName, true); + uri.AppendPath("/integrationRuntimes/", false); + uri.AppendPath(integrationRuntimeName, true); + uri.AppendPath("/getStatus", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetStatusRequest(string subscriptionId, string resourceGroupName, string factoryName, string integrationRuntimeName) { var message = _pipeline.CreateMessage(); @@ -563,6 +659,23 @@ public Response GetStatus(string subs } } + internal RequestUriBuilder CreateListOutboundNetworkDependenciesEndpointsRequestUri(string subscriptionId, string resourceGroupName, string factoryName, string integrationRuntimeName) + { + 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.DataFactory/factories/", false); + uri.AppendPath(factoryName, true); + uri.AppendPath("/integrationRuntimes/", false); + uri.AppendPath(integrationRuntimeName, true); + uri.AppendPath("/outboundNetworkDependenciesEndpoints", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListOutboundNetworkDependenciesEndpointsRequest(string subscriptionId, string resourceGroupName, string factoryName, string integrationRuntimeName) { var message = _pipeline.CreateMessage(); @@ -648,6 +761,23 @@ public Response ListOutboun } } + internal RequestUriBuilder CreateGetConnectionInfoRequestUri(string subscriptionId, string resourceGroupName, string factoryName, string integrationRuntimeName) + { + 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.DataFactory/factories/", false); + uri.AppendPath(factoryName, true); + uri.AppendPath("/integrationRuntimes/", false); + uri.AppendPath(integrationRuntimeName, true); + uri.AppendPath("/getConnectionInfo", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetConnectionInfoRequest(string subscriptionId, string resourceGroupName, string factoryName, string integrationRuntimeName) { var message = _pipeline.CreateMessage(); @@ -733,6 +863,23 @@ public Response GetConnectionInfo(string subsc } } + internal RequestUriBuilder CreateRegenerateAuthKeyRequestUri(string subscriptionId, string resourceGroupName, string factoryName, string integrationRuntimeName, IntegrationRuntimeRegenerateKeyContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DataFactory/factories/", false); + uri.AppendPath(factoryName, true); + uri.AppendPath("/integrationRuntimes/", false); + uri.AppendPath(integrationRuntimeName, true); + uri.AppendPath("/regenerateAuthKey", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRegenerateAuthKeyRequest(string subscriptionId, string resourceGroupName, string factoryName, string integrationRuntimeName, IntegrationRuntimeRegenerateKeyContent content) { var message = _pipeline.CreateMessage(); @@ -826,6 +973,23 @@ public Response RegenerateAuthKey(string subscriptio } } + internal RequestUriBuilder CreateListAuthKeysRequestUri(string subscriptionId, string resourceGroupName, string factoryName, string integrationRuntimeName) + { + 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.DataFactory/factories/", false); + uri.AppendPath(factoryName, true); + uri.AppendPath("/integrationRuntimes/", false); + uri.AppendPath(integrationRuntimeName, true); + uri.AppendPath("/listAuthKeys", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListAuthKeysRequest(string subscriptionId, string resourceGroupName, string factoryName, string integrationRuntimeName) { var message = _pipeline.CreateMessage(); @@ -911,6 +1075,23 @@ public Response ListAuthKeys(string subscriptionId, } } + internal RequestUriBuilder CreateStartRequestUri(string subscriptionId, string resourceGroupName, string factoryName, string integrationRuntimeName) + { + 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.DataFactory/factories/", false); + uri.AppendPath(factoryName, true); + uri.AppendPath("/integrationRuntimes/", false); + uri.AppendPath(integrationRuntimeName, true); + uri.AppendPath("/start", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStartRequest(string subscriptionId, string resourceGroupName, string factoryName, string integrationRuntimeName) { var message = _pipeline.CreateMessage(); @@ -988,6 +1169,23 @@ public Response Start(string subscriptionId, string resourceGroupName, string fa } } + internal RequestUriBuilder CreateStopRequestUri(string subscriptionId, string resourceGroupName, string factoryName, string integrationRuntimeName) + { + 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.DataFactory/factories/", false); + uri.AppendPath(factoryName, true); + uri.AppendPath("/integrationRuntimes/", false); + uri.AppendPath(integrationRuntimeName, true); + uri.AppendPath("/stop", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStopRequest(string subscriptionId, string resourceGroupName, string factoryName, string integrationRuntimeName) { var message = _pipeline.CreateMessage(); @@ -1065,6 +1263,23 @@ public Response Stop(string subscriptionId, string resourceGroupName, string fac } } + internal RequestUriBuilder CreateSyncCredentialsRequestUri(string subscriptionId, string resourceGroupName, string factoryName, string integrationRuntimeName) + { + 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.DataFactory/factories/", false); + uri.AppendPath(factoryName, true); + uri.AppendPath("/integrationRuntimes/", false); + uri.AppendPath(integrationRuntimeName, true); + uri.AppendPath("/syncCredentials", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateSyncCredentialsRequest(string subscriptionId, string resourceGroupName, string factoryName, string integrationRuntimeName) { var message = _pipeline.CreateMessage(); @@ -1140,6 +1355,23 @@ public Response SyncCredentials(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateGetMonitoringDataRequestUri(string subscriptionId, string resourceGroupName, string factoryName, string integrationRuntimeName) + { + 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.DataFactory/factories/", false); + uri.AppendPath(factoryName, true); + uri.AppendPath("/integrationRuntimes/", false); + uri.AppendPath(integrationRuntimeName, true); + uri.AppendPath("/monitoringData", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetMonitoringDataRequest(string subscriptionId, string resourceGroupName, string factoryName, string integrationRuntimeName) { var message = _pipeline.CreateMessage(); @@ -1225,6 +1457,23 @@ public Response GetMonitoringData(string subsc } } + internal RequestUriBuilder CreateUpgradeRequestUri(string subscriptionId, string resourceGroupName, string factoryName, string integrationRuntimeName) + { + 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.DataFactory/factories/", false); + uri.AppendPath(factoryName, true); + uri.AppendPath("/integrationRuntimes/", false); + uri.AppendPath(integrationRuntimeName, true); + uri.AppendPath("/upgrade", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpgradeRequest(string subscriptionId, string resourceGroupName, string factoryName, string integrationRuntimeName) { var message = _pipeline.CreateMessage(); @@ -1300,6 +1549,23 @@ public Response Upgrade(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreateRemoveLinksRequestUri(string subscriptionId, string resourceGroupName, string factoryName, string integrationRuntimeName, LinkedIntegrationRuntimeContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DataFactory/factories/", false); + uri.AppendPath(factoryName, true); + uri.AppendPath("/integrationRuntimes/", false); + uri.AppendPath(integrationRuntimeName, true); + uri.AppendPath("/removeLinks", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRemoveLinksRequest(string subscriptionId, string resourceGroupName, string factoryName, string integrationRuntimeName, LinkedIntegrationRuntimeContent content) { var message = _pipeline.CreateMessage(); @@ -1383,6 +1649,23 @@ public Response RemoveLinks(string subscriptionId, string resourceGroupName, str } } + internal RequestUriBuilder CreateCreateLinkedIntegrationRuntimeRequestUri(string subscriptionId, string resourceGroupName, string factoryName, string integrationRuntimeName, CreateLinkedIntegrationRuntimeContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DataFactory/factories/", false); + uri.AppendPath(factoryName, true); + uri.AppendPath("/integrationRuntimes/", false); + uri.AppendPath(integrationRuntimeName, true); + uri.AppendPath("/linkedIntegrationRuntime", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateLinkedIntegrationRuntimeRequest(string subscriptionId, string resourceGroupName, string factoryName, string integrationRuntimeName, CreateLinkedIntegrationRuntimeContent content) { var message = _pipeline.CreateMessage(); @@ -1476,6 +1759,14 @@ public Response CreateLinkedIntegrati } } + internal RequestUriBuilder CreateListByFactoryNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string factoryName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByFactoryNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string factoryName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/LinkedServicesRestOperations.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/LinkedServicesRestOperations.cs index de12f8f2dd43..c03af9f6731f 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/LinkedServicesRestOperations.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/LinkedServicesRestOperations.cs @@ -37,6 +37,21 @@ public LinkedServicesRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByFactoryRequestUri(string subscriptionId, string resourceGroupName, string factoryName) + { + 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.DataFactory/factories/", false); + uri.AppendPath(factoryName, true); + uri.AppendPath("/linkedservices", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByFactoryRequest(string subscriptionId, string resourceGroupName, string factoryName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByFactory(string subscri } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string factoryName, string linkedServiceName, DataFactoryLinkedServiceData data, string ifMatch) + { + 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.DataFactory/factories/", false); + uri.AppendPath(factoryName, true); + uri.AppendPath("/linkedservices/", false); + uri.AppendPath(linkedServiceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string factoryName, string linkedServiceName, DataFactoryLinkedServiceData data, string ifMatch) { var message = _pipeline.CreateMessage(); @@ -214,6 +245,22 @@ public Response CreateOrUpdate(string subscription } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string factoryName, string linkedServiceName, string ifNoneMatch) + { + 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.DataFactory/factories/", false); + uri.AppendPath(factoryName, true); + uri.AppendPath("/linkedservices/", false); + uri.AppendPath(linkedServiceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string factoryName, string linkedServiceName, string ifNoneMatch) { var message = _pipeline.CreateMessage(); @@ -310,6 +357,22 @@ public Response Get(string subscriptionId, string } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string factoryName, string linkedServiceName) + { + 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.DataFactory/factories/", false); + uri.AppendPath(factoryName, true); + uri.AppendPath("/linkedservices/", false); + uri.AppendPath(linkedServiceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string factoryName, string linkedServiceName) { var message = _pipeline.CreateMessage(); @@ -386,6 +449,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string f } } + internal RequestUriBuilder CreateListByFactoryNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string factoryName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByFactoryNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string factoryName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/ManagedPrivateEndpointsRestOperations.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/ManagedPrivateEndpointsRestOperations.cs index 80920af25141..5556ac6f8ac5 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/ManagedPrivateEndpointsRestOperations.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/ManagedPrivateEndpointsRestOperations.cs @@ -37,6 +37,23 @@ public ManagedPrivateEndpointsRestOperations(HttpPipeline pipeline, string appli _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByFactoryRequestUri(string subscriptionId, string resourceGroupName, string factoryName, string managedVirtualNetworkName) + { + 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.DataFactory/factories/", false); + uri.AppendPath(factoryName, true); + uri.AppendPath("/managedVirtualNetworks/", false); + uri.AppendPath(managedVirtualNetworkName, true); + uri.AppendPath("/managedPrivateEndpoints", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByFactoryRequest(string subscriptionId, string resourceGroupName, string factoryName, string managedVirtualNetworkName) { var message = _pipeline.CreateMessage(); @@ -122,6 +139,24 @@ public Response ListByFactory(string subsc } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string factoryName, string managedVirtualNetworkName, string managedPrivateEndpointName, DataFactoryPrivateEndpointData data, string ifMatch) + { + 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.DataFactory/factories/", false); + uri.AppendPath(factoryName, true); + uri.AppendPath("/managedVirtualNetworks/", false); + uri.AppendPath(managedVirtualNetworkName, true); + uri.AppendPath("/managedPrivateEndpoints/", false); + uri.AppendPath(managedPrivateEndpointName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string factoryName, string managedVirtualNetworkName, string managedPrivateEndpointName, DataFactoryPrivateEndpointData data, string ifMatch) { var message = _pipeline.CreateMessage(); @@ -226,6 +261,24 @@ public Response CreateOrUpdate(string subscripti } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string factoryName, string managedVirtualNetworkName, string managedPrivateEndpointName, string ifNoneMatch) + { + 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.DataFactory/factories/", false); + uri.AppendPath(factoryName, true); + uri.AppendPath("/managedVirtualNetworks/", false); + uri.AppendPath(managedVirtualNetworkName, true); + uri.AppendPath("/managedPrivateEndpoints/", false); + uri.AppendPath(managedPrivateEndpointName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string factoryName, string managedVirtualNetworkName, string managedPrivateEndpointName, string ifNoneMatch) { var message = _pipeline.CreateMessage(); @@ -326,6 +379,24 @@ public Response Get(string subscriptionId, strin } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string factoryName, string managedVirtualNetworkName, string managedPrivateEndpointName) + { + 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.DataFactory/factories/", false); + uri.AppendPath(factoryName, true); + uri.AppendPath("/managedVirtualNetworks/", false); + uri.AppendPath(managedVirtualNetworkName, true); + uri.AppendPath("/managedPrivateEndpoints/", false); + uri.AppendPath(managedPrivateEndpointName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string factoryName, string managedVirtualNetworkName, string managedPrivateEndpointName) { var message = _pipeline.CreateMessage(); @@ -408,6 +479,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string f } } + internal RequestUriBuilder CreateListByFactoryNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string factoryName, string managedVirtualNetworkName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByFactoryNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string factoryName, string managedVirtualNetworkName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/ManagedVirtualNetworksRestOperations.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/ManagedVirtualNetworksRestOperations.cs index 3ba7d6b7bb80..efbe873ad017 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/ManagedVirtualNetworksRestOperations.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/ManagedVirtualNetworksRestOperations.cs @@ -37,6 +37,21 @@ public ManagedVirtualNetworksRestOperations(HttpPipeline pipeline, string applic _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByFactoryRequestUri(string subscriptionId, string resourceGroupName, string factoryName) + { + 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.DataFactory/factories/", false); + uri.AppendPath(factoryName, true); + uri.AppendPath("/managedVirtualNetworks", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByFactoryRequest(string subscriptionId, string resourceGroupName, string factoryName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByFactory(string } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string factoryName, string managedVirtualNetworkName, DataFactoryManagedVirtualNetworkData data, string ifMatch) + { + 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.DataFactory/factories/", false); + uri.AppendPath(factoryName, true); + uri.AppendPath("/managedVirtualNetworks/", false); + uri.AppendPath(managedVirtualNetworkName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string factoryName, string managedVirtualNetworkName, DataFactoryManagedVirtualNetworkData data, string ifMatch) { var message = _pipeline.CreateMessage(); @@ -214,6 +245,22 @@ public Response CreateOrUpdate(string subs } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string factoryName, string managedVirtualNetworkName, string ifNoneMatch) + { + 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.DataFactory/factories/", false); + uri.AppendPath(factoryName, true); + uri.AppendPath("/managedVirtualNetworks/", false); + uri.AppendPath(managedVirtualNetworkName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string factoryName, string managedVirtualNetworkName, string ifNoneMatch) { var message = _pipeline.CreateMessage(); @@ -308,6 +355,14 @@ public Response Get(string subscriptionId, } } + internal RequestUriBuilder CreateListByFactoryNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string factoryName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByFactoryNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string factoryName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/PipelineRunsRestOperations.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/PipelineRunsRestOperations.cs index ddfb72858c45..4025e938a24a 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/PipelineRunsRestOperations.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/PipelineRunsRestOperations.cs @@ -37,6 +37,21 @@ public PipelineRunsRestOperations(HttpPipeline pipeline, string applicationId, U _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateQueryByFactoryRequestUri(string subscriptionId, string resourceGroupName, string factoryName, RunFilterContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DataFactory/factories/", false); + uri.AppendPath(factoryName, true); + uri.AppendPath("/queryPipelineRuns", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateQueryByFactoryRequest(string subscriptionId, string resourceGroupName, string factoryName, RunFilterContent content) { var message = _pipeline.CreateMessage(); @@ -124,6 +139,22 @@ public Response QueryByFactory(string subscr } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string factoryName, string runId) + { + 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.DataFactory/factories/", false); + uri.AppendPath(factoryName, true); + uri.AppendPath("/pipelineruns/", false); + uri.AppendPath(runId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string factoryName, string runId) { var message = _pipeline.CreateMessage(); @@ -208,6 +239,27 @@ public Response Get(string subscriptionId, string re } } + internal RequestUriBuilder CreateCancelRequestUri(string subscriptionId, string resourceGroupName, string factoryName, string runId, bool? isRecursive) + { + 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.DataFactory/factories/", false); + uri.AppendPath(factoryName, true); + uri.AppendPath("/pipelineruns/", false); + uri.AppendPath(runId, true); + uri.AppendPath("/cancel", false); + if (isRecursive != null) + { + uri.AppendQuery("isRecursive", isRecursive.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCancelRequest(string subscriptionId, string resourceGroupName, string factoryName, string runId, bool? isRecursive) { var message = _pipeline.CreateMessage(); diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/PipelinesRestOperations.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/PipelinesRestOperations.cs index 0b971eb12f07..f3a633d71461 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/PipelinesRestOperations.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/PipelinesRestOperations.cs @@ -38,6 +38,21 @@ public PipelinesRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByFactoryRequestUri(string subscriptionId, string resourceGroupName, string factoryName) + { + 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.DataFactory/factories/", false); + uri.AppendPath(factoryName, true); + uri.AppendPath("/pipelines", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByFactoryRequest(string subscriptionId, string resourceGroupName, string factoryName) { var message = _pipeline.CreateMessage(); @@ -117,6 +132,22 @@ public Response ListByFactory(string subscription } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string factoryName, string pipelineName, DataFactoryPipelineData data, string ifMatch) + { + 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.DataFactory/factories/", false); + uri.AppendPath(factoryName, true); + uri.AppendPath("/pipelines/", false); + uri.AppendPath(pipelineName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string factoryName, string pipelineName, DataFactoryPipelineData data, string ifMatch) { var message = _pipeline.CreateMessage(); @@ -215,6 +246,22 @@ public Response CreateOrUpdate(string subscriptionId, s } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string factoryName, string pipelineName, string ifNoneMatch) + { + 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.DataFactory/factories/", false); + uri.AppendPath(factoryName, true); + uri.AppendPath("/pipelines/", false); + uri.AppendPath(pipelineName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string factoryName, string pipelineName, string ifNoneMatch) { var message = _pipeline.CreateMessage(); @@ -311,6 +358,22 @@ public Response Get(string subscriptionId, string resou } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string factoryName, string pipelineName) + { + 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.DataFactory/factories/", false); + uri.AppendPath(factoryName, true); + uri.AppendPath("/pipelines/", false); + uri.AppendPath(pipelineName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string factoryName, string pipelineName) { var message = _pipeline.CreateMessage(); @@ -387,6 +450,39 @@ public Response Delete(string subscriptionId, string resourceGroupName, string f } } + internal RequestUriBuilder CreateCreateRunRequestUri(string subscriptionId, string resourceGroupName, string factoryName, string pipelineName, IDictionary parameterValueSpecification, string referencePipelineRunId, bool? isRecovery, string startActivityName, bool? startFromFailure) + { + 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.DataFactory/factories/", false); + uri.AppendPath(factoryName, true); + uri.AppendPath("/pipelines/", false); + uri.AppendPath(pipelineName, true); + uri.AppendPath("/createRun", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (referencePipelineRunId != null) + { + uri.AppendQuery("referencePipelineRunId", referencePipelineRunId, true); + } + if (isRecovery != null) + { + uri.AppendQuery("isRecovery", isRecovery.Value, true); + } + if (startActivityName != null) + { + uri.AppendQuery("startActivityName", startActivityName, true); + } + if (startFromFailure != null) + { + uri.AppendQuery("startFromFailure", startFromFailure.Value, true); + } + return uri; + } + internal HttpMessage CreateCreateRunRequest(string subscriptionId, string resourceGroupName, string factoryName, string pipelineName, IDictionary parameterValueSpecification, string referencePipelineRunId, bool? isRecovery, string startActivityName, bool? startFromFailure) { var message = _pipeline.CreateMessage(); @@ -523,6 +619,14 @@ public Response CreateRun(string subscriptionId, string } } + internal RequestUriBuilder CreateListByFactoryNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string factoryName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByFactoryNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string factoryName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/PrivateEndPointConnectionsRestOperations.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/PrivateEndPointConnectionsRestOperations.cs index d0ff85cfc4b8..1c2720766d62 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/PrivateEndPointConnectionsRestOperations.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/PrivateEndPointConnectionsRestOperations.cs @@ -37,6 +37,21 @@ public PrivateEndPointConnectionsRestOperations(HttpPipeline pipeline, string ap _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByFactoryRequestUri(string subscriptionId, string resourceGroupName, string factoryName) + { + 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.DataFactory/factories/", false); + uri.AppendPath(factoryName, true); + uri.AppendPath("/privateEndPointConnections", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByFactoryRequest(string subscriptionId, string resourceGroupName, string factoryName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,14 @@ public Response ListByFactory(st } } + internal RequestUriBuilder CreateListByFactoryNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string factoryName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByFactoryNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string factoryName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/PrivateEndpointConnectionRestOperations.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/PrivateEndpointConnectionRestOperations.cs index 11097185d20c..eda2ff25ef71 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/PrivateEndpointConnectionRestOperations.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/PrivateEndpointConnectionRestOperations.cs @@ -37,6 +37,22 @@ public PrivateEndpointConnectionRestOperations(HttpPipeline pipeline, string app _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string factoryName, string privateEndpointConnectionName, DataFactoryPrivateEndpointConnectionCreateOrUpdateContent content, string ifMatch) + { + 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.DataFactory/factories/", false); + uri.AppendPath(factoryName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string factoryName, string privateEndpointConnectionName, DataFactoryPrivateEndpointConnectionCreateOrUpdateContent content, string ifMatch) { var message = _pipeline.CreateMessage(); @@ -135,6 +151,22 @@ public Response CreateOrUpdate(string } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string factoryName, string privateEndpointConnectionName, string ifNoneMatch) + { + 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.DataFactory/factories/", false); + uri.AppendPath(factoryName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string factoryName, string privateEndpointConnectionName, string ifNoneMatch) { var message = _pipeline.CreateMessage(); @@ -229,6 +261,22 @@ public Response Get(string subscriptio } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string factoryName, string privateEndpointConnectionName) + { + 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.DataFactory/factories/", false); + uri.AppendPath(factoryName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string factoryName, string privateEndpointConnectionName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs index 3e6a3659c244..3692e9799672 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs @@ -37,6 +37,21 @@ public PrivateLinkResourcesRestOperations(HttpPipeline pipeline, string applicat _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string factoryName) + { + 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.DataFactory/factories/", false); + uri.AppendPath(factoryName, true); + uri.AppendPath("/privateLinkResources", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string factoryName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/TriggerRunsRestOperations.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/TriggerRunsRestOperations.cs index a0eab36cacbc..0aac04062950 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/TriggerRunsRestOperations.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/TriggerRunsRestOperations.cs @@ -37,6 +37,25 @@ public TriggerRunsRestOperations(HttpPipeline pipeline, string applicationId, Ur _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateRerunRequestUri(string subscriptionId, string resourceGroupName, string factoryName, string triggerName, string runId) + { + 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.DataFactory/factories/", false); + uri.AppendPath(factoryName, true); + uri.AppendPath("/triggers/", false); + uri.AppendPath(triggerName, true); + uri.AppendPath("/triggerRuns/", false); + uri.AppendPath(runId, true); + uri.AppendPath("/rerun", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRerunRequest(string subscriptionId, string resourceGroupName, string factoryName, string triggerName, string runId) { var message = _pipeline.CreateMessage(); @@ -118,6 +137,25 @@ public Response Rerun(string subscriptionId, string resourceGroupName, string fa } } + internal RequestUriBuilder CreateCancelRequestUri(string subscriptionId, string resourceGroupName, string factoryName, string triggerName, string runId) + { + 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.DataFactory/factories/", false); + uri.AppendPath(factoryName, true); + uri.AppendPath("/triggers/", false); + uri.AppendPath(triggerName, true); + uri.AppendPath("/triggerRuns/", false); + uri.AppendPath(runId, true); + uri.AppendPath("/cancel", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCancelRequest(string subscriptionId, string resourceGroupName, string factoryName, string triggerName, string runId) { var message = _pipeline.CreateMessage(); @@ -199,6 +237,21 @@ public Response Cancel(string subscriptionId, string resourceGroupName, string f } } + internal RequestUriBuilder CreateQueryByFactoryRequestUri(string subscriptionId, string resourceGroupName, string factoryName, RunFilterContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DataFactory/factories/", false); + uri.AppendPath(factoryName, true); + uri.AppendPath("/queryTriggerRuns", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateQueryByFactoryRequest(string subscriptionId, string resourceGroupName, string factoryName, RunFilterContent content) { var message = _pipeline.CreateMessage(); diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/TriggersRestOperations.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/TriggersRestOperations.cs index a91dc105b404..dc1ec9686f81 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/TriggersRestOperations.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/TriggersRestOperations.cs @@ -37,6 +37,21 @@ public TriggersRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByFactoryRequestUri(string subscriptionId, string resourceGroupName, string factoryName) + { + 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.DataFactory/factories/", false); + uri.AppendPath(factoryName, true); + uri.AppendPath("/triggers", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByFactoryRequest(string subscriptionId, string resourceGroupName, string factoryName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,21 @@ public Response ListByFactory(string subscriptionI } } + internal RequestUriBuilder CreateQueryByFactoryRequestUri(string subscriptionId, string resourceGroupName, string factoryName, TriggerFilterContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DataFactory/factories/", false); + uri.AppendPath(factoryName, true); + uri.AppendPath("/querytriggers", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateQueryByFactoryRequest(string subscriptionId, string resourceGroupName, string factoryName, TriggerFilterContent content) { var message = _pipeline.CreateMessage(); @@ -203,6 +233,22 @@ public Response QueryByFactory(string subscriptio } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string factoryName, string triggerName, DataFactoryTriggerData data, string ifMatch) + { + 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.DataFactory/factories/", false); + uri.AppendPath(factoryName, true); + uri.AppendPath("/triggers/", false); + uri.AppendPath(triggerName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string factoryName, string triggerName, DataFactoryTriggerData data, string ifMatch) { var message = _pipeline.CreateMessage(); @@ -301,6 +347,22 @@ public Response CreateOrUpdate(string subscriptionId, st } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string factoryName, string triggerName, string ifNoneMatch) + { + 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.DataFactory/factories/", false); + uri.AppendPath(factoryName, true); + uri.AppendPath("/triggers/", false); + uri.AppendPath(triggerName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string factoryName, string triggerName, string ifNoneMatch) { var message = _pipeline.CreateMessage(); @@ -397,6 +459,22 @@ public Response Get(string subscriptionId, string resour } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string factoryName, string triggerName) + { + 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.DataFactory/factories/", false); + uri.AppendPath(factoryName, true); + uri.AppendPath("/triggers/", false); + uri.AppendPath(triggerName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string factoryName, string triggerName) { var message = _pipeline.CreateMessage(); @@ -473,6 +551,23 @@ public Response Delete(string subscriptionId, string resourceGroupName, string f } } + internal RequestUriBuilder CreateSubscribeToEventsRequestUri(string subscriptionId, string resourceGroupName, string factoryName, string triggerName) + { + 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.DataFactory/factories/", false); + uri.AppendPath(factoryName, true); + uri.AppendPath("/triggers/", false); + uri.AppendPath(triggerName, true); + uri.AppendPath("/subscribeToEvents", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateSubscribeToEventsRequest(string subscriptionId, string resourceGroupName, string factoryName, string triggerName) { var message = _pipeline.CreateMessage(); @@ -550,6 +645,23 @@ public Response SubscribeToEvents(string subscriptionId, string resourceGroupNam } } + internal RequestUriBuilder CreateGetEventSubscriptionStatusRequestUri(string subscriptionId, string resourceGroupName, string factoryName, string triggerName) + { + 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.DataFactory/factories/", false); + uri.AppendPath(factoryName, true); + uri.AppendPath("/triggers/", false); + uri.AppendPath(triggerName, true); + uri.AppendPath("/getEventSubscriptionStatus", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetEventSubscriptionStatusRequest(string subscriptionId, string resourceGroupName, string factoryName, string triggerName) { var message = _pipeline.CreateMessage(); @@ -635,6 +747,23 @@ public Response GetEventSubscript } } + internal RequestUriBuilder CreateUnsubscribeFromEventsRequestUri(string subscriptionId, string resourceGroupName, string factoryName, string triggerName) + { + 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.DataFactory/factories/", false); + uri.AppendPath(factoryName, true); + uri.AppendPath("/triggers/", false); + uri.AppendPath(triggerName, true); + uri.AppendPath("/unsubscribeFromEvents", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUnsubscribeFromEventsRequest(string subscriptionId, string resourceGroupName, string factoryName, string triggerName) { var message = _pipeline.CreateMessage(); @@ -712,6 +841,23 @@ public Response UnsubscribeFromEvents(string subscriptionId, string resourceGrou } } + internal RequestUriBuilder CreateStartRequestUri(string subscriptionId, string resourceGroupName, string factoryName, string triggerName) + { + 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.DataFactory/factories/", false); + uri.AppendPath(factoryName, true); + uri.AppendPath("/triggers/", false); + uri.AppendPath(triggerName, true); + uri.AppendPath("/start", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStartRequest(string subscriptionId, string resourceGroupName, string factoryName, string triggerName) { var message = _pipeline.CreateMessage(); @@ -787,6 +933,23 @@ public Response Start(string subscriptionId, string resourceGroupName, string fa } } + internal RequestUriBuilder CreateStopRequestUri(string subscriptionId, string resourceGroupName, string factoryName, string triggerName) + { + 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.DataFactory/factories/", false); + uri.AppendPath(factoryName, true); + uri.AppendPath("/triggers/", false); + uri.AppendPath(triggerName, true); + uri.AppendPath("/stop", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStopRequest(string subscriptionId, string resourceGroupName, string factoryName, string triggerName) { var message = _pipeline.CreateMessage(); @@ -862,6 +1025,14 @@ public Response Stop(string subscriptionId, string resourceGroupName, string fac } } + internal RequestUriBuilder CreateListByFactoryNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string factoryName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByFactoryNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string factoryName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/DataLakeAnalyticsComputePolicyCollection.cs b/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/DataLakeAnalyticsComputePolicyCollection.cs index 370d01158c3e..2b562cf37fb3 100644 --- a/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/DataLakeAnalyticsComputePolicyCollection.cs +++ b/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/DataLakeAnalyticsComputePolicyCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> try { var response = await _dataLakeAnalyticsComputePolicyComputePoliciesRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, computePolicyName, content, cancellationToken).ConfigureAwait(false); - var operation = new DataLakeAnalyticsArmOperation(Response.FromValue(new DataLakeAnalyticsComputePolicyResource(Client, response), response.GetRawResponse())); + var uri = _dataLakeAnalyticsComputePolicyComputePoliciesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, computePolicyName, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataLakeAnalyticsArmOperation(Response.FromValue(new DataLakeAnalyticsComputePolicyResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -140,7 +142,9 @@ public virtual ArmOperation CreateOrUpda try { var response = _dataLakeAnalyticsComputePolicyComputePoliciesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, computePolicyName, content, cancellationToken); - var operation = new DataLakeAnalyticsArmOperation(Response.FromValue(new DataLakeAnalyticsComputePolicyResource(Client, response), response.GetRawResponse())); + var uri = _dataLakeAnalyticsComputePolicyComputePoliciesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, computePolicyName, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataLakeAnalyticsArmOperation(Response.FromValue(new DataLakeAnalyticsComputePolicyResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/DataLakeAnalyticsComputePolicyResource.cs b/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/DataLakeAnalyticsComputePolicyResource.cs index 2f0f310051ef..56f7c135dde5 100644 --- a/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/DataLakeAnalyticsComputePolicyResource.cs +++ b/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/DataLakeAnalyticsComputePolicyResource.cs @@ -201,7 +201,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _dataLakeAnalyticsComputePolicyComputePoliciesRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new DataLakeAnalyticsArmOperation(response); + var uri = _dataLakeAnalyticsComputePolicyComputePoliciesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataLakeAnalyticsArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -243,7 +245,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _dataLakeAnalyticsComputePolicyComputePoliciesRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new DataLakeAnalyticsArmOperation(response); + var uri = _dataLakeAnalyticsComputePolicyComputePoliciesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataLakeAnalyticsArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/DataLakeAnalyticsFirewallRuleCollection.cs b/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/DataLakeAnalyticsFirewallRuleCollection.cs index e72369a4d039..ca4917937ef5 100644 --- a/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/DataLakeAnalyticsFirewallRuleCollection.cs +++ b/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/DataLakeAnalyticsFirewallRuleCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> C try { var response = await _dataLakeAnalyticsFirewallRuleFirewallRulesRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, firewallRuleName, content, cancellationToken).ConfigureAwait(false); - var operation = new DataLakeAnalyticsArmOperation(Response.FromValue(new DataLakeAnalyticsFirewallRuleResource(Client, response), response.GetRawResponse())); + var uri = _dataLakeAnalyticsFirewallRuleFirewallRulesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, firewallRuleName, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataLakeAnalyticsArmOperation(Response.FromValue(new DataLakeAnalyticsFirewallRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -140,7 +142,9 @@ public virtual ArmOperation CreateOrUpdat try { var response = _dataLakeAnalyticsFirewallRuleFirewallRulesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, firewallRuleName, content, cancellationToken); - var operation = new DataLakeAnalyticsArmOperation(Response.FromValue(new DataLakeAnalyticsFirewallRuleResource(Client, response), response.GetRawResponse())); + var uri = _dataLakeAnalyticsFirewallRuleFirewallRulesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, firewallRuleName, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataLakeAnalyticsArmOperation(Response.FromValue(new DataLakeAnalyticsFirewallRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/DataLakeAnalyticsFirewallRuleResource.cs b/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/DataLakeAnalyticsFirewallRuleResource.cs index c4636f6872f8..b9293b94880b 100644 --- a/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/DataLakeAnalyticsFirewallRuleResource.cs +++ b/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/DataLakeAnalyticsFirewallRuleResource.cs @@ -201,7 +201,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _dataLakeAnalyticsFirewallRuleFirewallRulesRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new DataLakeAnalyticsArmOperation(response); + var uri = _dataLakeAnalyticsFirewallRuleFirewallRulesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataLakeAnalyticsArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -243,7 +245,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _dataLakeAnalyticsFirewallRuleFirewallRulesRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new DataLakeAnalyticsArmOperation(response); + var uri = _dataLakeAnalyticsFirewallRuleFirewallRulesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataLakeAnalyticsArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/DataLakeAnalyticsStorageAccountInformationCollection.cs b/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/DataLakeAnalyticsStorageAccountInformationCollection.cs index 654a82d4cfc2..ba54034c4d8c 100644 --- a/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/DataLakeAnalyticsStorageAccountInformationCollection.cs +++ b/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/DataLakeAnalyticsStorageAccountInformationCollection.cs @@ -91,7 +91,9 @@ public virtual async Task CreateOrUpdateAsync(WaitUntil waitUntil, try { var response = await _dataLakeAnalyticsStorageAccountInformationStorageAccountsRestClient.AddAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, storageAccountName, content, cancellationToken).ConfigureAwait(false); - var operation = new DataLakeAnalyticsArmOperation(response); + var uri = _dataLakeAnalyticsStorageAccountInformationStorageAccountsRestClient.CreateAddRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, storageAccountName, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataLakeAnalyticsArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -140,7 +142,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string storageAc try { var response = _dataLakeAnalyticsStorageAccountInformationStorageAccountsRestClient.Add(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, storageAccountName, content, cancellationToken); - var operation = new DataLakeAnalyticsArmOperation(response); + var uri = _dataLakeAnalyticsStorageAccountInformationStorageAccountsRestClient.CreateAddRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, storageAccountName, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataLakeAnalyticsArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/DataLakeAnalyticsStorageAccountInformationResource.cs b/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/DataLakeAnalyticsStorageAccountInformationResource.cs index a9f9183d0d1c..fc3491b9ac86 100644 --- a/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/DataLakeAnalyticsStorageAccountInformationResource.cs +++ b/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/DataLakeAnalyticsStorageAccountInformationResource.cs @@ -270,7 +270,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _dataLakeAnalyticsStorageAccountInformationStorageAccountsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new DataLakeAnalyticsArmOperation(response); + var uri = _dataLakeAnalyticsStorageAccountInformationStorageAccountsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataLakeAnalyticsArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -312,7 +314,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _dataLakeAnalyticsStorageAccountInformationStorageAccountsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new DataLakeAnalyticsArmOperation(response); + var uri = _dataLakeAnalyticsStorageAccountInformationStorageAccountsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataLakeAnalyticsArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/DataLakeStoreAccountInformationCollection.cs b/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/DataLakeStoreAccountInformationCollection.cs index c12a32352bb6..20ef57b9a13a 100644 --- a/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/DataLakeStoreAccountInformationCollection.cs +++ b/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/DataLakeStoreAccountInformationCollection.cs @@ -91,7 +91,9 @@ public virtual async Task CreateOrUpdateAsync(WaitUntil waitUntil, try { var response = await _dataLakeStoreAccountInformationDataLakeStoreAccountsRestClient.AddAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, dataLakeStoreAccountName, content, cancellationToken).ConfigureAwait(false); - var operation = new DataLakeAnalyticsArmOperation(response); + var uri = _dataLakeStoreAccountInformationDataLakeStoreAccountsRestClient.CreateAddRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, dataLakeStoreAccountName, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataLakeAnalyticsArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -140,7 +142,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string dataLakeS try { var response = _dataLakeStoreAccountInformationDataLakeStoreAccountsRestClient.Add(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, dataLakeStoreAccountName, content, cancellationToken); - var operation = new DataLakeAnalyticsArmOperation(response); + var uri = _dataLakeStoreAccountInformationDataLakeStoreAccountsRestClient.CreateAddRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, dataLakeStoreAccountName, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataLakeAnalyticsArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/DataLakeStoreAccountInformationResource.cs b/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/DataLakeStoreAccountInformationResource.cs index 410ba54ab075..4e189483c1cb 100644 --- a/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/DataLakeStoreAccountInformationResource.cs +++ b/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/DataLakeStoreAccountInformationResource.cs @@ -201,7 +201,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _dataLakeStoreAccountInformationDataLakeStoreAccountsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new DataLakeAnalyticsArmOperation(response); + var uri = _dataLakeStoreAccountInformationDataLakeStoreAccountsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataLakeAnalyticsArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -243,7 +245,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _dataLakeStoreAccountInformationDataLakeStoreAccountsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new DataLakeAnalyticsArmOperation(response); + var uri = _dataLakeStoreAccountInformationDataLakeStoreAccountsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataLakeAnalyticsArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -289,7 +293,9 @@ public virtual async Task UpdateAsync(WaitUntil waitUntil, DataLak try { var response = await _dataLakeStoreAccountInformationDataLakeStoreAccountsRestClient.AddAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, content, cancellationToken).ConfigureAwait(false); - var operation = new DataLakeAnalyticsArmOperation(response); + var uri = _dataLakeStoreAccountInformationDataLakeStoreAccountsRestClient.CreateAddRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataLakeAnalyticsArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -335,7 +341,9 @@ public virtual ArmOperation Update(WaitUntil waitUntil, DataLakeStoreAccountInfo try { var response = _dataLakeStoreAccountInformationDataLakeStoreAccountsRestClient.Add(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, content, cancellationToken); - var operation = new DataLakeAnalyticsArmOperation(response); + var uri = _dataLakeStoreAccountInformationDataLakeStoreAccountsRestClient.CreateAddRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataLakeAnalyticsArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/LongRunningOperation/DataLakeAnalyticsArmOperation.cs b/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/LongRunningOperation/DataLakeAnalyticsArmOperation.cs index 60f799b28e6f..a83370c55e3a 100644 --- a/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/LongRunningOperation/DataLakeAnalyticsArmOperation.cs +++ b/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/LongRunningOperation/DataLakeAnalyticsArmOperation.cs @@ -20,21 +20,24 @@ internal class DataLakeAnalyticsArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of DataLakeAnalyticsArmOperation for mocking. protected DataLakeAnalyticsArmOperation() { } - internal DataLakeAnalyticsArmOperation(Response response) + internal DataLakeAnalyticsArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal DataLakeAnalyticsArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "DataLakeAnalyticsArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal DataLakeAnalyticsArmOperation(ClientDiagnostics clientDiagnostics, Http public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/LongRunningOperation/DataLakeAnalyticsArmOperationOfT.cs b/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/LongRunningOperation/DataLakeAnalyticsArmOperationOfT.cs index 90b5fd6af034..861f0cac75e2 100644 --- a/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/LongRunningOperation/DataLakeAnalyticsArmOperationOfT.cs +++ b/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/LongRunningOperation/DataLakeAnalyticsArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class DataLakeAnalyticsArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of DataLakeAnalyticsArmOperation for mocking. protected DataLakeAnalyticsArmOperation() { } - internal DataLakeAnalyticsArmOperation(Response response) + internal DataLakeAnalyticsArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal DataLakeAnalyticsArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "DataLakeAnalyticsArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal DataLakeAnalyticsArmOperation(IOperationSource source, ClientDiagnos public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/Models/DataLakeAnalyticsAccountResource.Serialization.cs b/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/Models/DataLakeAnalyticsAccountResource.Serialization.cs new file mode 100644 index 000000000000..e872b02268d8 --- /dev/null +++ b/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/Models/DataLakeAnalyticsAccountResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DataLakeAnalytics +{ + public partial class DataLakeAnalyticsAccountResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DataLakeAnalyticsAccountData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DataLakeAnalyticsAccountData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/Models/DataLakeAnalyticsComputePolicyResource.Serialization.cs b/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/Models/DataLakeAnalyticsComputePolicyResource.Serialization.cs new file mode 100644 index 000000000000..d9f24e61a823 --- /dev/null +++ b/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/Models/DataLakeAnalyticsComputePolicyResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DataLakeAnalytics +{ + public partial class DataLakeAnalyticsComputePolicyResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DataLakeAnalyticsComputePolicyData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DataLakeAnalyticsComputePolicyData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/Models/DataLakeAnalyticsFirewallRuleResource.Serialization.cs b/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/Models/DataLakeAnalyticsFirewallRuleResource.Serialization.cs new file mode 100644 index 000000000000..4ad7b4c52273 --- /dev/null +++ b/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/Models/DataLakeAnalyticsFirewallRuleResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DataLakeAnalytics +{ + public partial class DataLakeAnalyticsFirewallRuleResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DataLakeAnalyticsFirewallRuleData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DataLakeAnalyticsFirewallRuleData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/Models/DataLakeAnalyticsStorageAccountInformationResource.Serialization.cs b/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/Models/DataLakeAnalyticsStorageAccountInformationResource.Serialization.cs new file mode 100644 index 000000000000..42281b382c7c --- /dev/null +++ b/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/Models/DataLakeAnalyticsStorageAccountInformationResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DataLakeAnalytics +{ + public partial class DataLakeAnalyticsStorageAccountInformationResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DataLakeAnalyticsStorageAccountInformationData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DataLakeAnalyticsStorageAccountInformationData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/Models/DataLakeAnalyticsStorageContainerResource.Serialization.cs b/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/Models/DataLakeAnalyticsStorageContainerResource.Serialization.cs new file mode 100644 index 000000000000..25f85b6ec7ab --- /dev/null +++ b/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/Models/DataLakeAnalyticsStorageContainerResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DataLakeAnalytics +{ + public partial class DataLakeAnalyticsStorageContainerResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DataLakeAnalyticsStorageContainerData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DataLakeAnalyticsStorageContainerData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/Models/DataLakeStoreAccountInformationResource.Serialization.cs b/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/Models/DataLakeStoreAccountInformationResource.Serialization.cs new file mode 100644 index 000000000000..3751421a14f5 --- /dev/null +++ b/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/Models/DataLakeStoreAccountInformationResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DataLakeAnalytics +{ + public partial class DataLakeStoreAccountInformationResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DataLakeStoreAccountInformationData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DataLakeStoreAccountInformationData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/RestOperations/AccountsRestOperations.cs b/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/RestOperations/AccountsRestOperations.cs index a431bda168bb..e49b1bab12c5 100644 --- a/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/RestOperations/AccountsRestOperations.cs +++ b/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/RestOperations/AccountsRestOperations.cs @@ -37,6 +37,41 @@ public AccountsRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string filter, int? top, int? skip, string select, string orderby, bool? count) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.DataLakeAnalytics/accounts", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skip != null) + { + uri.AppendQuery("$skip", skip.Value, true); + } + if (select != null) + { + uri.AppendQuery("$select", select, true); + } + if (orderby != null) + { + uri.AppendQuery("$orderby", orderby, true); + } + if (count != null) + { + uri.AppendQuery("$count", count.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string filter, int? top, int? skip, string select, string orderby, bool? count) { var message = _pipeline.CreateMessage(); @@ -140,6 +175,43 @@ public Response List(string subscriptionId, } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName, string filter, int? top, int? skip, string select, string orderby, bool? count) + { + 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.DataLakeAnalytics/accounts", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skip != null) + { + uri.AppendQuery("$skip", skip.Value, true); + } + if (select != null) + { + uri.AppendQuery("$select", select, true); + } + if (orderby != null) + { + uri.AppendQuery("$orderby", orderby, true); + } + if (count != null) + { + uri.AppendQuery("$count", count.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName, string filter, int? top, int? skip, string select, string orderby, bool? count) { var message = _pipeline.CreateMessage(); @@ -249,6 +321,20 @@ public Response ListByResourceGroup(string s } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string accountName, DataLakeAnalyticsAccountCreateOrUpdateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DataLakeAnalytics/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string accountName, DataLakeAnalyticsAccountCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); @@ -327,6 +413,20 @@ public Response Create(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string accountName) + { + 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.DataLakeAnalytics/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); @@ -409,6 +509,20 @@ public Response Get(string subscriptionId, string } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string accountName, DataLakeAnalyticsAccountPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DataLakeAnalytics/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string accountName, DataLakeAnalyticsAccountPatch patch) { var message = _pipeline.CreateMessage(); @@ -489,6 +603,20 @@ public Response Update(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string accountName) + { + 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.DataLakeAnalytics/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); @@ -561,6 +689,19 @@ public Response Delete(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateCheckNameAvailabilityRequestUri(string subscriptionId, AzureLocation location, DataLakeAnalyticsAccountNameAvailabilityContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.DataLakeAnalytics/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/checkNameAvailability", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCheckNameAvailabilityRequest(string subscriptionId, AzureLocation location, DataLakeAnalyticsAccountNameAvailabilityContent content) { var message = _pipeline.CreateMessage(); @@ -640,6 +781,14 @@ public Response CheckNameAvailab } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string filter, int? top, int? skip, string select, string orderby, bool? count) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string filter, int? top, int? skip, string select, string orderby, bool? count) { var message = _pipeline.CreateMessage(); @@ -720,6 +869,14 @@ public Response ListNextPage(string nextLink } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string filter, int? top, int? skip, string select, string orderby, bool? count) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string filter, int? top, int? skip, string select, string orderby, bool? count) { var message = _pipeline.CreateMessage(); diff --git a/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/RestOperations/ComputePoliciesRestOperations.cs b/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/RestOperations/ComputePoliciesRestOperations.cs index 312d6378bb17..99cd108dc742 100644 --- a/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/RestOperations/ComputePoliciesRestOperations.cs +++ b/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/RestOperations/ComputePoliciesRestOperations.cs @@ -37,6 +37,21 @@ public ComputePoliciesRestOperations(HttpPipeline pipeline, string applicationId _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByAccountRequestUri(string subscriptionId, string resourceGroupName, string accountName) + { + 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.DataLakeAnalytics/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/computePolicies", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByAccountRequest(string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByAccount(string s } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string accountName, string computePolicyName, DataLakeAnalyticsComputePolicyCreateOrUpdateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DataLakeAnalytics/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/computePolicies/", false); + uri.AppendPath(computePolicyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string accountName, string computePolicyName, DataLakeAnalyticsComputePolicyCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); @@ -208,6 +239,22 @@ public Response CreateOrUpdate(string subscr } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string accountName, string computePolicyName) + { + 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.DataLakeAnalytics/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/computePolicies/", false); + uri.AppendPath(computePolicyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string accountName, string computePolicyName) { var message = _pipeline.CreateMessage(); @@ -296,6 +343,22 @@ public Response Get(string subscriptionId, s } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string accountName, string computePolicyName, DataLakeAnalyticsComputePolicyPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DataLakeAnalytics/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/computePolicies/", false); + uri.AppendPath(computePolicyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string accountName, string computePolicyName, DataLakeAnalyticsComputePolicyPatch patch) { var message = _pipeline.CreateMessage(); @@ -388,6 +451,22 @@ public Response Update(string subscriptionId } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string accountName, string computePolicyName) + { + 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.DataLakeAnalytics/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/computePolicies/", false); + uri.AppendPath(computePolicyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string accountName, string computePolicyName) { var message = _pipeline.CreateMessage(); @@ -464,6 +543,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateListByAccountNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string accountName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByAccountNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/RestOperations/DataLakeStoreAccountsRestOperations.cs b/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/RestOperations/DataLakeStoreAccountsRestOperations.cs index f4cb06f5a2e6..d6a67434a5b2 100644 --- a/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/RestOperations/DataLakeStoreAccountsRestOperations.cs +++ b/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/RestOperations/DataLakeStoreAccountsRestOperations.cs @@ -37,6 +37,45 @@ public DataLakeStoreAccountsRestOperations(HttpPipeline pipeline, string applica _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByAccountRequestUri(string subscriptionId, string resourceGroupName, string accountName, string filter, int? top, int? skip, string select, string orderby, bool? count) + { + 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.DataLakeAnalytics/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/dataLakeStoreAccounts", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skip != null) + { + uri.AppendQuery("$skip", skip.Value, true); + } + if (select != null) + { + uri.AppendQuery("$select", select, true); + } + if (orderby != null) + { + uri.AppendQuery("$orderby", orderby, true); + } + if (count != null) + { + uri.AppendQuery("$count", count.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByAccountRequest(string subscriptionId, string resourceGroupName, string accountName, string filter, int? top, int? skip, string select, string orderby, bool? count) { var message = _pipeline.CreateMessage(); @@ -152,6 +191,22 @@ public Response ListByAccount(string } } + internal RequestUriBuilder CreateAddRequestUri(string subscriptionId, string resourceGroupName, string accountName, string dataLakeStoreAccountName, DataLakeStoreAccountInformationCreateOrUpdateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DataLakeAnalytics/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/dataLakeStoreAccounts/", false); + uri.AppendPath(dataLakeStoreAccountName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateAddRequest(string subscriptionId, string resourceGroupName, string accountName, string dataLakeStoreAccountName, DataLakeStoreAccountInformationCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); @@ -234,6 +289,22 @@ public Response Add(string subscriptionId, string resourceGroupName, string acco } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string accountName, string dataLakeStoreAccountName) + { + 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.DataLakeAnalytics/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/dataLakeStoreAccounts/", false); + uri.AppendPath(dataLakeStoreAccountName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string accountName, string dataLakeStoreAccountName) { var message = _pipeline.CreateMessage(); @@ -322,6 +393,22 @@ public Response Get(string subscriptionId, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string accountName, string dataLakeStoreAccountName) + { + 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.DataLakeAnalytics/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/dataLakeStoreAccounts/", false); + uri.AppendPath(dataLakeStoreAccountName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string accountName, string dataLakeStoreAccountName) { var message = _pipeline.CreateMessage(); @@ -398,6 +485,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateListByAccountNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string accountName, string filter, int? top, int? skip, string select, string orderby, bool? count) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByAccountNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string accountName, string filter, int? top, int? skip, string select, string orderby, bool? count) { var message = _pipeline.CreateMessage(); diff --git a/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/RestOperations/FirewallRulesRestOperations.cs b/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/RestOperations/FirewallRulesRestOperations.cs index 278407fffad0..3561072c1a38 100644 --- a/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/RestOperations/FirewallRulesRestOperations.cs +++ b/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/RestOperations/FirewallRulesRestOperations.cs @@ -37,6 +37,21 @@ public FirewallRulesRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByAccountRequestUri(string subscriptionId, string resourceGroupName, string accountName) + { + 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.DataLakeAnalytics/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/firewallRules", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByAccountRequest(string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByAccount(string su } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string accountName, string firewallRuleName, DataLakeAnalyticsFirewallRuleCreateOrUpdateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DataLakeAnalytics/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/firewallRules/", false); + uri.AppendPath(firewallRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string accountName, string firewallRuleName, DataLakeAnalyticsFirewallRuleCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); @@ -208,6 +239,22 @@ public Response CreateOrUpdate(string subscri } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string accountName, string firewallRuleName) + { + 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.DataLakeAnalytics/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/firewallRules/", false); + uri.AppendPath(firewallRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string accountName, string firewallRuleName) { var message = _pipeline.CreateMessage(); @@ -296,6 +343,22 @@ public Response Get(string subscriptionId, st } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string accountName, string firewallRuleName, DataLakeAnalyticsFirewallRulePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DataLakeAnalytics/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/firewallRules/", false); + uri.AppendPath(firewallRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string accountName, string firewallRuleName, DataLakeAnalyticsFirewallRulePatch patch) { var message = _pipeline.CreateMessage(); @@ -388,6 +451,22 @@ public Response Update(string subscriptionId, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string accountName, string firewallRuleName) + { + 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.DataLakeAnalytics/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/firewallRules/", false); + uri.AppendPath(firewallRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string accountName, string firewallRuleName) { var message = _pipeline.CreateMessage(); @@ -464,6 +543,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateListByAccountNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string accountName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByAccountNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/RestOperations/LocationsRestOperations.cs b/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/RestOperations/LocationsRestOperations.cs index cdbcc2abe772..eee500f50e3b 100644 --- a/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/RestOperations/LocationsRestOperations.cs +++ b/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/RestOperations/LocationsRestOperations.cs @@ -37,6 +37,19 @@ public LocationsRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetCapabilityRequestUri(string subscriptionId, AzureLocation location) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.DataLakeAnalytics/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/capability", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetCapabilityRequest(string subscriptionId, AzureLocation location) { var message = _pipeline.CreateMessage(); diff --git a/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/RestOperations/StorageAccountsRestOperations.cs b/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/RestOperations/StorageAccountsRestOperations.cs index aa2cdc00414d..f18012f9eda4 100644 --- a/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/RestOperations/StorageAccountsRestOperations.cs +++ b/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/RestOperations/StorageAccountsRestOperations.cs @@ -37,6 +37,45 @@ public StorageAccountsRestOperations(HttpPipeline pipeline, string applicationId _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByAccountRequestUri(string subscriptionId, string resourceGroupName, string accountName, string filter, int? top, int? skip, string select, string orderby, bool? count) + { + 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.DataLakeAnalytics/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/storageAccounts", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skip != null) + { + uri.AppendQuery("$skip", skip.Value, true); + } + if (select != null) + { + uri.AppendQuery("$select", select, true); + } + if (orderby != null) + { + uri.AppendQuery("$orderby", orderby, true); + } + if (count != null) + { + uri.AppendQuery("$count", count.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByAccountRequest(string subscriptionId, string resourceGroupName, string accountName, string filter, int? top, int? skip, string select, string orderby, bool? count) { var message = _pipeline.CreateMessage(); @@ -152,6 +191,22 @@ public Response ListByAcco } } + internal RequestUriBuilder CreateAddRequestUri(string subscriptionId, string resourceGroupName, string accountName, string storageAccountName, DataLakeAnalyticsStorageAccountInformationCreateOrUpdateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DataLakeAnalytics/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/storageAccounts/", false); + uri.AppendPath(storageAccountName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateAddRequest(string subscriptionId, string resourceGroupName, string accountName, string storageAccountName, DataLakeAnalyticsStorageAccountInformationCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); @@ -234,6 +289,22 @@ public Response Add(string subscriptionId, string resourceGroupName, string acco } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string accountName, string storageAccountName) + { + 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.DataLakeAnalytics/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/storageAccounts/", false); + uri.AppendPath(storageAccountName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string accountName, string storageAccountName) { var message = _pipeline.CreateMessage(); @@ -322,6 +393,22 @@ public Response Get(string subsc } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string accountName, string storageAccountName, DataLakeAnalyticsStorageAccountInformationPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DataLakeAnalytics/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/storageAccounts/", false); + uri.AppendPath(storageAccountName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string accountName, string storageAccountName, DataLakeAnalyticsStorageAccountInformationPatch patch) { var message = _pipeline.CreateMessage(); @@ -404,6 +491,22 @@ public Response Update(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string accountName, string storageAccountName) + { + 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.DataLakeAnalytics/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/storageAccounts/", false); + uri.AppendPath(storageAccountName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string accountName, string storageAccountName) { var message = _pipeline.CreateMessage(); @@ -478,6 +581,23 @@ public Response Delete(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateListStorageContainersRequestUri(string subscriptionId, string resourceGroupName, string accountName, string storageAccountName) + { + 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.DataLakeAnalytics/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/storageAccounts/", false); + uri.AppendPath(storageAccountName, true); + uri.AppendPath("/containers", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListStorageContainersRequest(string subscriptionId, string resourceGroupName, string accountName, string storageAccountName) { var message = _pipeline.CreateMessage(); @@ -563,6 +683,24 @@ public Response ListStorageContaine } } + internal RequestUriBuilder CreateGetStorageContainerRequestUri(string subscriptionId, string resourceGroupName, string accountName, string storageAccountName, string containerName) + { + 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.DataLakeAnalytics/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/storageAccounts/", false); + uri.AppendPath(storageAccountName, true); + uri.AppendPath("/containers/", false); + uri.AppendPath(containerName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetStorageContainerRequest(string subscriptionId, string resourceGroupName, string accountName, string storageAccountName, string containerName) { var message = _pipeline.CreateMessage(); @@ -657,6 +795,25 @@ public Response GetStorageContainer(strin } } + internal RequestUriBuilder CreateListSasTokensRequestUri(string subscriptionId, string resourceGroupName, string accountName, string storageAccountName, string containerName) + { + 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.DataLakeAnalytics/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/storageAccounts/", false); + uri.AppendPath(storageAccountName, true); + uri.AppendPath("/containers/", false); + uri.AppendPath(containerName, true); + uri.AppendPath("/listSasTokens", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListSasTokensRequest(string subscriptionId, string resourceGroupName, string accountName, string storageAccountName, string containerName) { var message = _pipeline.CreateMessage(); @@ -748,6 +905,14 @@ public Response ListSasTokens(st } } + internal RequestUriBuilder CreateListByAccountNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string accountName, string filter, int? top, int? skip, string select, string orderby, bool? count) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByAccountNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string accountName, string filter, int? top, int? skip, string select, string orderby, bool? count) { var message = _pipeline.CreateMessage(); @@ -836,6 +1001,14 @@ public Response ListByAcco } } + internal RequestUriBuilder CreateListStorageContainersNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string accountName, string storageAccountName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListStorageContainersNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string accountName, string storageAccountName) { var message = _pipeline.CreateMessage(); @@ -916,6 +1089,14 @@ public Response ListStorageContaine } } + internal RequestUriBuilder CreateListSasTokensNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string accountName, string storageAccountName, string containerName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListSasTokensNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string accountName, string storageAccountName, string containerName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/DataLakeStoreFirewallRuleCollection.cs b/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/DataLakeStoreFirewallRuleCollection.cs index 724b8017aabe..a277b478536d 100644 --- a/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/DataLakeStoreFirewallRuleCollection.cs +++ b/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/DataLakeStoreFirewallRuleCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> Creat try { var response = await _dataLakeStoreFirewallRuleFirewallRulesRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, firewallRuleName, content, cancellationToken).ConfigureAwait(false); - var operation = new DataLakeStoreArmOperation(Response.FromValue(new DataLakeStoreFirewallRuleResource(Client, response), response.GetRawResponse())); + var uri = _dataLakeStoreFirewallRuleFirewallRulesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, firewallRuleName, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataLakeStoreArmOperation(Response.FromValue(new DataLakeStoreFirewallRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -140,7 +142,9 @@ public virtual ArmOperation CreateOrUpdate(Wa try { var response = _dataLakeStoreFirewallRuleFirewallRulesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, firewallRuleName, content, cancellationToken); - var operation = new DataLakeStoreArmOperation(Response.FromValue(new DataLakeStoreFirewallRuleResource(Client, response), response.GetRawResponse())); + var uri = _dataLakeStoreFirewallRuleFirewallRulesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, firewallRuleName, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataLakeStoreArmOperation(Response.FromValue(new DataLakeStoreFirewallRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/DataLakeStoreFirewallRuleResource.cs b/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/DataLakeStoreFirewallRuleResource.cs index f9f7d78272b4..a4ec85550fde 100644 --- a/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/DataLakeStoreFirewallRuleResource.cs +++ b/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/DataLakeStoreFirewallRuleResource.cs @@ -201,7 +201,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _dataLakeStoreFirewallRuleFirewallRulesRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new DataLakeStoreArmOperation(response); + var uri = _dataLakeStoreFirewallRuleFirewallRulesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataLakeStoreArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -243,7 +245,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _dataLakeStoreFirewallRuleFirewallRulesRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new DataLakeStoreArmOperation(response); + var uri = _dataLakeStoreFirewallRuleFirewallRulesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataLakeStoreArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/DataLakeStoreTrustedIdProviderCollection.cs b/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/DataLakeStoreTrustedIdProviderCollection.cs index 7bb57428774d..c99ead03fa83 100644 --- a/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/DataLakeStoreTrustedIdProviderCollection.cs +++ b/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/DataLakeStoreTrustedIdProviderCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> try { var response = await _dataLakeStoreTrustedIdProviderTrustedIdProvidersRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, trustedIdProviderName, content, cancellationToken).ConfigureAwait(false); - var operation = new DataLakeStoreArmOperation(Response.FromValue(new DataLakeStoreTrustedIdProviderResource(Client, response), response.GetRawResponse())); + var uri = _dataLakeStoreTrustedIdProviderTrustedIdProvidersRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, trustedIdProviderName, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataLakeStoreArmOperation(Response.FromValue(new DataLakeStoreTrustedIdProviderResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -140,7 +142,9 @@ public virtual ArmOperation CreateOrUpda try { var response = _dataLakeStoreTrustedIdProviderTrustedIdProvidersRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, trustedIdProviderName, content, cancellationToken); - var operation = new DataLakeStoreArmOperation(Response.FromValue(new DataLakeStoreTrustedIdProviderResource(Client, response), response.GetRawResponse())); + var uri = _dataLakeStoreTrustedIdProviderTrustedIdProvidersRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, trustedIdProviderName, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataLakeStoreArmOperation(Response.FromValue(new DataLakeStoreTrustedIdProviderResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/DataLakeStoreTrustedIdProviderResource.cs b/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/DataLakeStoreTrustedIdProviderResource.cs index ab650af07d54..52990b78e99b 100644 --- a/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/DataLakeStoreTrustedIdProviderResource.cs +++ b/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/DataLakeStoreTrustedIdProviderResource.cs @@ -201,7 +201,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _dataLakeStoreTrustedIdProviderTrustedIdProvidersRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new DataLakeStoreArmOperation(response); + var uri = _dataLakeStoreTrustedIdProviderTrustedIdProvidersRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataLakeStoreArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -243,7 +245,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _dataLakeStoreTrustedIdProviderTrustedIdProvidersRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new DataLakeStoreArmOperation(response); + var uri = _dataLakeStoreTrustedIdProviderTrustedIdProvidersRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataLakeStoreArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/DataLakeStoreVirtualNetworkRuleCollection.cs b/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/DataLakeStoreVirtualNetworkRuleCollection.cs index 3ca2e09f67b7..60a21fbe56f5 100644 --- a/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/DataLakeStoreVirtualNetworkRuleCollection.cs +++ b/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/DataLakeStoreVirtualNetworkRuleCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> try { var response = await _dataLakeStoreVirtualNetworkRuleVirtualNetworkRulesRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, virtualNetworkRuleName, content, cancellationToken).ConfigureAwait(false); - var operation = new DataLakeStoreArmOperation(Response.FromValue(new DataLakeStoreVirtualNetworkRuleResource(Client, response), response.GetRawResponse())); + var uri = _dataLakeStoreVirtualNetworkRuleVirtualNetworkRulesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, virtualNetworkRuleName, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataLakeStoreArmOperation(Response.FromValue(new DataLakeStoreVirtualNetworkRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -140,7 +142,9 @@ public virtual ArmOperation CreateOrUpd try { var response = _dataLakeStoreVirtualNetworkRuleVirtualNetworkRulesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, virtualNetworkRuleName, content, cancellationToken); - var operation = new DataLakeStoreArmOperation(Response.FromValue(new DataLakeStoreVirtualNetworkRuleResource(Client, response), response.GetRawResponse())); + var uri = _dataLakeStoreVirtualNetworkRuleVirtualNetworkRulesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, virtualNetworkRuleName, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataLakeStoreArmOperation(Response.FromValue(new DataLakeStoreVirtualNetworkRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/DataLakeStoreVirtualNetworkRuleResource.cs b/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/DataLakeStoreVirtualNetworkRuleResource.cs index d86b2d82513d..cd21facbde4b 100644 --- a/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/DataLakeStoreVirtualNetworkRuleResource.cs +++ b/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/DataLakeStoreVirtualNetworkRuleResource.cs @@ -201,7 +201,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _dataLakeStoreVirtualNetworkRuleVirtualNetworkRulesRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new DataLakeStoreArmOperation(response); + var uri = _dataLakeStoreVirtualNetworkRuleVirtualNetworkRulesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataLakeStoreArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -243,7 +245,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _dataLakeStoreVirtualNetworkRuleVirtualNetworkRulesRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new DataLakeStoreArmOperation(response); + var uri = _dataLakeStoreVirtualNetworkRuleVirtualNetworkRulesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataLakeStoreArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/LongRunningOperation/DataLakeStoreArmOperation.cs b/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/LongRunningOperation/DataLakeStoreArmOperation.cs index ba4423406e82..74ea759f40ce 100644 --- a/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/LongRunningOperation/DataLakeStoreArmOperation.cs +++ b/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/LongRunningOperation/DataLakeStoreArmOperation.cs @@ -20,21 +20,24 @@ internal class DataLakeStoreArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of DataLakeStoreArmOperation for mocking. protected DataLakeStoreArmOperation() { } - internal DataLakeStoreArmOperation(Response response) + internal DataLakeStoreArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal DataLakeStoreArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "DataLakeStoreArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal DataLakeStoreArmOperation(ClientDiagnostics clientDiagnostics, HttpPipe public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/LongRunningOperation/DataLakeStoreArmOperationOfT.cs b/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/LongRunningOperation/DataLakeStoreArmOperationOfT.cs index eabc46bef689..853b1e37c6cd 100644 --- a/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/LongRunningOperation/DataLakeStoreArmOperationOfT.cs +++ b/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/LongRunningOperation/DataLakeStoreArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class DataLakeStoreArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of DataLakeStoreArmOperation for mocking. protected DataLakeStoreArmOperation() { } - internal DataLakeStoreArmOperation(Response response) + internal DataLakeStoreArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal DataLakeStoreArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "DataLakeStoreArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal DataLakeStoreArmOperation(IOperationSource source, ClientDiagnostics public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/Models/DataLakeStoreAccountResource.Serialization.cs b/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/Models/DataLakeStoreAccountResource.Serialization.cs new file mode 100644 index 000000000000..f8de6e6f0982 --- /dev/null +++ b/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/Models/DataLakeStoreAccountResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DataLakeStore +{ + public partial class DataLakeStoreAccountResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DataLakeStoreAccountData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DataLakeStoreAccountData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/Models/DataLakeStoreFirewallRuleResource.Serialization.cs b/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/Models/DataLakeStoreFirewallRuleResource.Serialization.cs new file mode 100644 index 000000000000..c49fe360dd3b --- /dev/null +++ b/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/Models/DataLakeStoreFirewallRuleResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DataLakeStore +{ + public partial class DataLakeStoreFirewallRuleResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DataLakeStoreFirewallRuleData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DataLakeStoreFirewallRuleData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/Models/DataLakeStoreTrustedIdProviderResource.Serialization.cs b/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/Models/DataLakeStoreTrustedIdProviderResource.Serialization.cs new file mode 100644 index 000000000000..6740229ea4cd --- /dev/null +++ b/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/Models/DataLakeStoreTrustedIdProviderResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DataLakeStore +{ + public partial class DataLakeStoreTrustedIdProviderResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DataLakeStoreTrustedIdProviderData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DataLakeStoreTrustedIdProviderData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/Models/DataLakeStoreVirtualNetworkRuleResource.Serialization.cs b/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/Models/DataLakeStoreVirtualNetworkRuleResource.Serialization.cs new file mode 100644 index 000000000000..e0231c062df7 --- /dev/null +++ b/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/Models/DataLakeStoreVirtualNetworkRuleResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DataLakeStore +{ + public partial class DataLakeStoreVirtualNetworkRuleResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DataLakeStoreVirtualNetworkRuleData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DataLakeStoreVirtualNetworkRuleData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/RestOperations/AccountsRestOperations.cs b/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/RestOperations/AccountsRestOperations.cs index 072b49c34916..aa0ba706c1f4 100644 --- a/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/RestOperations/AccountsRestOperations.cs +++ b/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/RestOperations/AccountsRestOperations.cs @@ -37,6 +37,41 @@ public AccountsRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string filter, int? top, int? skip, string select, string orderBy, bool? count) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.DataLakeStore/accounts", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skip != null) + { + uri.AppendQuery("$skip", skip.Value, true); + } + if (select != null) + { + uri.AppendQuery("$select", select, true); + } + if (orderBy != null) + { + uri.AppendQuery("$orderby", orderBy, true); + } + if (count != null) + { + uri.AppendQuery("$count", count.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string filter, int? top, int? skip, string select, string orderBy, bool? count) { var message = _pipeline.CreateMessage(); @@ -140,6 +175,43 @@ public Response List(string subscriptionId, stri } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName, string filter, int? top, int? skip, string select, string orderBy, bool? count) + { + 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.DataLakeStore/accounts", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skip != null) + { + uri.AppendQuery("$skip", skip.Value, true); + } + if (select != null) + { + uri.AppendQuery("$select", select, true); + } + if (orderBy != null) + { + uri.AppendQuery("$orderby", orderBy, true); + } + if (count != null) + { + uri.AppendQuery("$count", count.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName, string filter, int? top, int? skip, string select, string orderBy, bool? count) { var message = _pipeline.CreateMessage(); @@ -249,6 +321,20 @@ public Response ListByResourceGroup(string subsc } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string accountName, DataLakeStoreAccountCreateOrUpdateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DataLakeStore/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string accountName, DataLakeStoreAccountCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); @@ -327,6 +413,20 @@ public Response Create(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string accountName) + { + 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.DataLakeStore/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); @@ -409,6 +509,20 @@ public Response Get(string subscriptionId, string reso } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string accountName, DataLakeStoreAccountPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DataLakeStore/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string accountName, DataLakeStoreAccountPatch patch) { var message = _pipeline.CreateMessage(); @@ -489,6 +603,20 @@ public Response Update(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string accountName) + { + 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.DataLakeStore/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); @@ -560,6 +688,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateEnableKeyVaultRequestUri(string subscriptionId, string resourceGroupName, string accountName) + { + 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.DataLakeStore/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/enableKeyVault", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateEnableKeyVaultRequest(string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); @@ -628,6 +771,19 @@ public Response EnableKeyVault(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateCheckNameAvailabilityRequestUri(string subscriptionId, AzureLocation location, DataLakeStoreAccountNameAvailabilityContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.DataLakeStore/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/checkNameAvailability", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCheckNameAvailabilityRequest(string subscriptionId, AzureLocation location, DataLakeStoreAccountNameAvailabilityContent content) { var message = _pipeline.CreateMessage(); @@ -707,6 +863,14 @@ public Response CheckNameAvailabilit } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string filter, int? top, int? skip, string select, string orderBy, bool? count) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string filter, int? top, int? skip, string select, string orderBy, bool? count) { var message = _pipeline.CreateMessage(); @@ -787,6 +951,14 @@ public Response ListNextPage(string nextLink, st } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string filter, int? top, int? skip, string select, string orderBy, bool? count) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string filter, int? top, int? skip, string select, string orderBy, bool? count) { var message = _pipeline.CreateMessage(); diff --git a/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/RestOperations/FirewallRulesRestOperations.cs b/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/RestOperations/FirewallRulesRestOperations.cs index 91a52dcbaf1d..044bbdf6c05a 100644 --- a/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/RestOperations/FirewallRulesRestOperations.cs +++ b/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/RestOperations/FirewallRulesRestOperations.cs @@ -37,6 +37,21 @@ public FirewallRulesRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByAccountRequestUri(string subscriptionId, string resourceGroupName, string accountName) + { + 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.DataLakeStore/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/firewallRules", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByAccountRequest(string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByAccount(string subscr } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string accountName, string firewallRuleName, DataLakeStoreFirewallRuleCreateOrUpdateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DataLakeStore/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/firewallRules/", false); + uri.AppendPath(firewallRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string accountName, string firewallRuleName, DataLakeStoreFirewallRuleCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); @@ -208,6 +239,22 @@ public Response CreateOrUpdate(string subscriptio } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string accountName, string firewallRuleName) + { + 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.DataLakeStore/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/firewallRules/", false); + uri.AppendPath(firewallRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string accountName, string firewallRuleName) { var message = _pipeline.CreateMessage(); @@ -296,6 +343,22 @@ public Response Get(string subscriptionId, string } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string accountName, string firewallRuleName, DataLakeStoreFirewallRulePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DataLakeStore/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/firewallRules/", false); + uri.AppendPath(firewallRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string accountName, string firewallRuleName, DataLakeStoreFirewallRulePatch patch) { var message = _pipeline.CreateMessage(); @@ -388,6 +451,22 @@ public Response Update(string subscriptionId, str } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string accountName, string firewallRuleName) + { + 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.DataLakeStore/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/firewallRules/", false); + uri.AppendPath(firewallRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string accountName, string firewallRuleName) { var message = _pipeline.CreateMessage(); @@ -463,6 +542,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateListByAccountNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string accountName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByAccountNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/RestOperations/LocationsRestOperations.cs b/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/RestOperations/LocationsRestOperations.cs index 96e3f9ef3f97..b078ff267c03 100644 --- a/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/RestOperations/LocationsRestOperations.cs +++ b/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/RestOperations/LocationsRestOperations.cs @@ -37,6 +37,19 @@ public LocationsRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetCapabilityRequestUri(string subscriptionId, AzureLocation location) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.DataLakeStore/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/capability", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetCapabilityRequest(string subscriptionId, AzureLocation location) { var message = _pipeline.CreateMessage(); @@ -112,6 +125,19 @@ public Response GetCapability(string subscri } } + internal RequestUriBuilder CreateGetUsageRequestUri(string subscriptionId, AzureLocation location) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.DataLakeStore/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/usages", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetUsageRequest(string subscriptionId, AzureLocation location) { var message = _pipeline.CreateMessage(); diff --git a/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/RestOperations/TrustedIdProvidersRestOperations.cs b/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/RestOperations/TrustedIdProvidersRestOperations.cs index 1b887015567c..6bf0f2c48e81 100644 --- a/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/RestOperations/TrustedIdProvidersRestOperations.cs +++ b/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/RestOperations/TrustedIdProvidersRestOperations.cs @@ -37,6 +37,21 @@ public TrustedIdProvidersRestOperations(HttpPipeline pipeline, string applicatio _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByAccountRequestUri(string subscriptionId, string resourceGroupName, string accountName) + { + 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.DataLakeStore/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/trustedIdProviders", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByAccountRequest(string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByAccount(string s } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string accountName, string trustedIdProviderName, DataLakeStoreTrustedIdProviderCreateOrUpdateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DataLakeStore/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/trustedIdProviders/", false); + uri.AppendPath(trustedIdProviderName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string accountName, string trustedIdProviderName, DataLakeStoreTrustedIdProviderCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); @@ -208,6 +239,22 @@ public Response CreateOrUpdate(string subscr } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string accountName, string trustedIdProviderName) + { + 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.DataLakeStore/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/trustedIdProviders/", false); + uri.AppendPath(trustedIdProviderName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string accountName, string trustedIdProviderName) { var message = _pipeline.CreateMessage(); @@ -296,6 +343,22 @@ public Response Get(string subscriptionId, s } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string accountName, string trustedIdProviderName, DataLakeStoreTrustedIdProviderPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DataLakeStore/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/trustedIdProviders/", false); + uri.AppendPath(trustedIdProviderName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string accountName, string trustedIdProviderName, DataLakeStoreTrustedIdProviderPatch patch) { var message = _pipeline.CreateMessage(); @@ -388,6 +451,22 @@ public Response Update(string subscriptionId } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string accountName, string trustedIdProviderName) + { + 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.DataLakeStore/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/trustedIdProviders/", false); + uri.AppendPath(trustedIdProviderName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string accountName, string trustedIdProviderName) { var message = _pipeline.CreateMessage(); @@ -463,6 +542,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateListByAccountNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string accountName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByAccountNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/RestOperations/VirtualNetworkRulesRestOperations.cs b/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/RestOperations/VirtualNetworkRulesRestOperations.cs index 5890320e3f9a..bf462bf7c041 100644 --- a/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/RestOperations/VirtualNetworkRulesRestOperations.cs +++ b/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/RestOperations/VirtualNetworkRulesRestOperations.cs @@ -37,6 +37,21 @@ public VirtualNetworkRulesRestOperations(HttpPipeline pipeline, string applicati _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByAccountRequestUri(string subscriptionId, string resourceGroupName, string accountName) + { + 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.DataLakeStore/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/virtualNetworkRules", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByAccountRequest(string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByAccount(string } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string accountName, string virtualNetworkRuleName, DataLakeStoreVirtualNetworkRuleCreateOrUpdateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DataLakeStore/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/virtualNetworkRules/", false); + uri.AppendPath(virtualNetworkRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string accountName, string virtualNetworkRuleName, DataLakeStoreVirtualNetworkRuleCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); @@ -208,6 +239,22 @@ public Response CreateOrUpdate(string subsc } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string accountName, string virtualNetworkRuleName) + { + 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.DataLakeStore/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/virtualNetworkRules/", false); + uri.AppendPath(virtualNetworkRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string accountName, string virtualNetworkRuleName) { var message = _pipeline.CreateMessage(); @@ -296,6 +343,22 @@ public Response Get(string subscriptionId, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string accountName, string virtualNetworkRuleName, DataLakeStoreVirtualNetworkRulePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DataLakeStore/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/virtualNetworkRules/", false); + uri.AppendPath(virtualNetworkRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string accountName, string virtualNetworkRuleName, DataLakeStoreVirtualNetworkRulePatch patch) { var message = _pipeline.CreateMessage(); @@ -388,6 +451,22 @@ public Response Update(string subscriptionI } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string accountName, string virtualNetworkRuleName) + { + 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.DataLakeStore/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/virtualNetworkRules/", false); + uri.AppendPath(virtualNetworkRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string accountName, string virtualNetworkRuleName) { var message = _pipeline.CreateMessage(); @@ -463,6 +542,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateListByAccountNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string accountName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByAccountNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/LongRunningOperation/DataMigrationArmOperation.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/LongRunningOperation/DataMigrationArmOperation.cs index c4e34134e007..7ff5b615c542 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/LongRunningOperation/DataMigrationArmOperation.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/LongRunningOperation/DataMigrationArmOperation.cs @@ -20,21 +20,24 @@ internal class DataMigrationArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of DataMigrationArmOperation for mocking. protected DataMigrationArmOperation() { } - internal DataMigrationArmOperation(Response response) + internal DataMigrationArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal DataMigrationArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "DataMigrationArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal DataMigrationArmOperation(ClientDiagnostics clientDiagnostics, HttpPipe public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/LongRunningOperation/DataMigrationArmOperationOfT.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/LongRunningOperation/DataMigrationArmOperationOfT.cs index 283ef40216e9..02f13a158359 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/LongRunningOperation/DataMigrationArmOperationOfT.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/LongRunningOperation/DataMigrationArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class DataMigrationArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of DataMigrationArmOperation for mocking. protected DataMigrationArmOperation() { } - internal DataMigrationArmOperation(Response response) + internal DataMigrationArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal DataMigrationArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "DataMigrationArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal DataMigrationArmOperation(IOperationSource source, ClientDiagnostics public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/DataMigrationServiceResource.Serialization.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/DataMigrationServiceResource.Serialization.cs new file mode 100644 index 000000000000..f339f02a3f68 --- /dev/null +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/DataMigrationServiceResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DataMigration +{ + public partial class DataMigrationServiceResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DataMigrationServiceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DataMigrationServiceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/DatabaseMigrationSqlDBResource.Serialization.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/DatabaseMigrationSqlDBResource.Serialization.cs new file mode 100644 index 000000000000..321ad9510986 --- /dev/null +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/DatabaseMigrationSqlDBResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DataMigration +{ + public partial class DatabaseMigrationSqlDBResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DatabaseMigrationSqlDBData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DatabaseMigrationSqlDBData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/DatabaseMigrationSqlMIResource.Serialization.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/DatabaseMigrationSqlMIResource.Serialization.cs new file mode 100644 index 000000000000..7f24b7d334bf --- /dev/null +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/DatabaseMigrationSqlMIResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DataMigration +{ + public partial class DatabaseMigrationSqlMIResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DatabaseMigrationSqlMIData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DatabaseMigrationSqlMIData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/DatabaseMigrationSqlVmResource.Serialization.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/DatabaseMigrationSqlVmResource.Serialization.cs new file mode 100644 index 000000000000..d6c93049cc3c --- /dev/null +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/DatabaseMigrationSqlVmResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DataMigration +{ + public partial class DatabaseMigrationSqlVmResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DatabaseMigrationSqlVmData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DatabaseMigrationSqlVmData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ProjectFileResource.Serialization.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ProjectFileResource.Serialization.cs new file mode 100644 index 000000000000..1dffda9578a0 --- /dev/null +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ProjectFileResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DataMigration +{ + public partial class ProjectFileResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ProjectFileData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ProjectFileData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ProjectResource.Serialization.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ProjectResource.Serialization.cs new file mode 100644 index 000000000000..9a7be56e0cd6 --- /dev/null +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ProjectResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DataMigration +{ + public partial class ProjectResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ProjectData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ProjectData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ServiceProjectTaskResource.Serialization.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ServiceProjectTaskResource.Serialization.cs new file mode 100644 index 000000000000..aaf31535b513 --- /dev/null +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ServiceProjectTaskResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DataMigration +{ + public partial class ServiceProjectTaskResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ProjectTaskData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ProjectTaskData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ServiceServiceTaskResource.Serialization.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ServiceServiceTaskResource.Serialization.cs new file mode 100644 index 000000000000..8b95f95c905f --- /dev/null +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ServiceServiceTaskResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DataMigration +{ + public partial class ServiceServiceTaskResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ProjectTaskData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ProjectTaskData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/SqlMigrationServiceResource.Serialization.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/SqlMigrationServiceResource.Serialization.cs new file mode 100644 index 000000000000..59b5464157db --- /dev/null +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/SqlMigrationServiceResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DataMigration +{ + public partial class SqlMigrationServiceResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SqlMigrationServiceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SqlMigrationServiceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/ProjectCollection.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/ProjectCollection.cs index ad0cc097fb4b..dd48abd905a3 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/ProjectCollection.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/ProjectCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> CreateOrUpdateAsync(Wai try { var response = await _projectRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, projectName, data, cancellationToken).ConfigureAwait(false); - var operation = new DataMigrationArmOperation(Response.FromValue(new ProjectResource(Client, response), response.GetRawResponse())); + var uri = _projectRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, projectName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataMigrationArmOperation(Response.FromValue(new ProjectResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, try { var response = _projectRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, projectName, data, cancellationToken); - var operation = new DataMigrationArmOperation(Response.FromValue(new ProjectResource(Client, response), response.GetRawResponse())); + var uri = _projectRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, projectName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataMigrationArmOperation(Response.FromValue(new ProjectResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/ProjectFileCollection.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/ProjectFileCollection.cs index a2e1b5cf594f..f9429842922a 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/ProjectFileCollection.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/ProjectFileCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> CreateOrUpdateAsync try { var response = await _projectFileFilesRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, fileName, data, cancellationToken).ConfigureAwait(false); - var operation = new DataMigrationArmOperation(Response.FromValue(new ProjectFileResource(Client, response), response.GetRawResponse())); + var uri = _projectFileFilesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, fileName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataMigrationArmOperation(Response.FromValue(new ProjectFileResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUn try { var response = _projectFileFilesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, fileName, data, cancellationToken); - var operation = new DataMigrationArmOperation(Response.FromValue(new ProjectFileResource(Client, response), response.GetRawResponse())); + var uri = _projectFileFilesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, fileName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataMigrationArmOperation(Response.FromValue(new ProjectFileResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/ProjectFileResource.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/ProjectFileResource.cs index bde95c2da3a0..c22c8170abb1 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/ProjectFileResource.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/ProjectFileResource.cs @@ -202,7 +202,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _projectFileFilesRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new DataMigrationArmOperation(response); + var uri = _projectFileFilesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataMigrationArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -244,7 +246,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _projectFileFilesRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new DataMigrationArmOperation(response); + var uri = _projectFileFilesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataMigrationArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/ProjectResource.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/ProjectResource.cs index 6056592eb28e..5d0e81635c80 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/ProjectResource.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/ProjectResource.cs @@ -342,7 +342,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, bool? d try { var response = await _projectRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, deleteRunningTasks, cancellationToken).ConfigureAwait(false); - var operation = new DataMigrationArmOperation(response); + var uri = _projectRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, deleteRunningTasks); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataMigrationArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -385,7 +387,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, bool? deleteRunningTasks try { var response = _projectRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, deleteRunningTasks, cancellationToken); - var operation = new DataMigrationArmOperation(response); + var uri = _projectRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, deleteRunningTasks); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataMigrationArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/RestOperations/DatabaseMigrationsSqlDbRestOperations.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/RestOperations/DatabaseMigrationsSqlDbRestOperations.cs index 9b8bd7a8a38a..403256a0eb86 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/RestOperations/DatabaseMigrationsSqlDbRestOperations.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/RestOperations/DatabaseMigrationsSqlDbRestOperations.cs @@ -37,6 +37,30 @@ public DatabaseMigrationsSqlDbRestOperations(HttpPipeline pipeline, string appli _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string sqlDBInstanceName, string targetDBName, Guid? migrationOperationId, string expand) + { + 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.Sql/servers/", false); + uri.AppendPath(sqlDBInstanceName, true); + uri.AppendPath("/providers/Microsoft.DataMigration/databaseMigrations/", false); + uri.AppendPath(targetDBName, true); + if (migrationOperationId != null) + { + uri.AppendQuery("migrationOperationId", migrationOperationId.Value, true); + } + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string sqlDBInstanceName, string targetDBName, Guid? migrationOperationId, string expand) { var message = _pipeline.CreateMessage(); @@ -137,6 +161,22 @@ public Response Get(string subscriptionId, string re } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string sqlDBInstanceName, string targetDBName, DatabaseMigrationSqlDBData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/servers/", false); + uri.AppendPath(sqlDBInstanceName, true); + uri.AppendPath("/providers/Microsoft.DataMigration/databaseMigrations/", false); + uri.AppendPath(targetDBName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string sqlDBInstanceName, string targetDBName, DatabaseMigrationSqlDBData data) { var message = _pipeline.CreateMessage(); @@ -221,6 +261,26 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string sqlDBInstanceName, string targetDBName, bool? force) + { + 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.Sql/servers/", false); + uri.AppendPath(sqlDBInstanceName, true); + uri.AppendPath("/providers/Microsoft.DataMigration/databaseMigrations/", false); + uri.AppendPath(targetDBName, true); + if (force != null) + { + uri.AppendQuery("force", force.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string sqlDBInstanceName, string targetDBName, bool? force) { var message = _pipeline.CreateMessage(); @@ -304,6 +364,23 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateCancelRequestUri(string subscriptionId, string resourceGroupName, string sqlDBInstanceName, string targetDBName, MigrationOperationInput input) + { + 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.Sql/servers/", false); + uri.AppendPath(sqlDBInstanceName, true); + uri.AppendPath("/providers/Microsoft.DataMigration/databaseMigrations/", false); + uri.AppendPath(targetDBName, true); + uri.AppendPath("/cancel", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCancelRequest(string subscriptionId, string resourceGroupName, string sqlDBInstanceName, string targetDBName, MigrationOperationInput input) { var message = _pipeline.CreateMessage(); diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/RestOperations/DatabaseMigrationsSqlMiRestOperations.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/RestOperations/DatabaseMigrationsSqlMiRestOperations.cs index ab1ae2676464..8524a9cef35b 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/RestOperations/DatabaseMigrationsSqlMiRestOperations.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/RestOperations/DatabaseMigrationsSqlMiRestOperations.cs @@ -37,6 +37,30 @@ public DatabaseMigrationsSqlMiRestOperations(HttpPipeline pipeline, string appli _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, string targetDBName, Guid? migrationOperationId, string expand) + { + 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.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/providers/Microsoft.DataMigration/databaseMigrations/", false); + uri.AppendPath(targetDBName, true); + if (migrationOperationId != null) + { + uri.AppendQuery("migrationOperationId", migrationOperationId.Value, true); + } + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, string targetDBName, Guid? migrationOperationId, string expand) { var message = _pipeline.CreateMessage(); @@ -137,6 +161,22 @@ public Response Get(string subscriptionId, string re } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, string targetDBName, DatabaseMigrationSqlMIData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/providers/Microsoft.DataMigration/databaseMigrations/", false); + uri.AppendPath(targetDBName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, string targetDBName, DatabaseMigrationSqlMIData data) { var message = _pipeline.CreateMessage(); @@ -221,6 +261,23 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateCancelRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, string targetDBName, MigrationOperationInput input) + { + 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.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/providers/Microsoft.DataMigration/databaseMigrations/", false); + uri.AppendPath(targetDBName, true); + uri.AppendPath("/cancel", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCancelRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, string targetDBName, MigrationOperationInput input) { var message = _pipeline.CreateMessage(); @@ -305,6 +362,23 @@ public Response Cancel(string subscriptionId, string resourceGroupName, string m } } + internal RequestUriBuilder CreateCutoverRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, string targetDBName, MigrationOperationInput input) + { + 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.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/providers/Microsoft.DataMigration/databaseMigrations/", false); + uri.AppendPath(targetDBName, true); + uri.AppendPath("/cutover", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCutoverRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, string targetDBName, MigrationOperationInput input) { var message = _pipeline.CreateMessage(); diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/RestOperations/DatabaseMigrationsSqlVmRestOperations.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/RestOperations/DatabaseMigrationsSqlVmRestOperations.cs index e49d5049e10a..dceb98170e97 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/RestOperations/DatabaseMigrationsSqlVmRestOperations.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/RestOperations/DatabaseMigrationsSqlVmRestOperations.cs @@ -37,6 +37,30 @@ public DatabaseMigrationsSqlVmRestOperations(HttpPipeline pipeline, string appli _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string sqlVirtualMachineName, string targetDBName, Guid? migrationOperationId, string expand) + { + 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.SqlVirtualMachine/sqlVirtualMachines/", false); + uri.AppendPath(sqlVirtualMachineName, true); + uri.AppendPath("/providers/Microsoft.DataMigration/databaseMigrations/", false); + uri.AppendPath(targetDBName, true); + if (migrationOperationId != null) + { + uri.AppendQuery("migrationOperationId", migrationOperationId.Value, true); + } + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string sqlVirtualMachineName, string targetDBName, Guid? migrationOperationId, string expand) { var message = _pipeline.CreateMessage(); @@ -137,6 +161,22 @@ public Response Get(string subscriptionId, string re } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string sqlVirtualMachineName, string targetDBName, DatabaseMigrationSqlVmData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/", false); + uri.AppendPath(sqlVirtualMachineName, true); + uri.AppendPath("/providers/Microsoft.DataMigration/databaseMigrations/", false); + uri.AppendPath(targetDBName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string sqlVirtualMachineName, string targetDBName, DatabaseMigrationSqlVmData data) { var message = _pipeline.CreateMessage(); @@ -221,6 +261,23 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateCancelRequestUri(string subscriptionId, string resourceGroupName, string sqlVirtualMachineName, string targetDBName, MigrationOperationInput input) + { + 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.SqlVirtualMachine/sqlVirtualMachines/", false); + uri.AppendPath(sqlVirtualMachineName, true); + uri.AppendPath("/providers/Microsoft.DataMigration/databaseMigrations/", false); + uri.AppendPath(targetDBName, true); + uri.AppendPath("/cancel", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCancelRequest(string subscriptionId, string resourceGroupName, string sqlVirtualMachineName, string targetDBName, MigrationOperationInput input) { var message = _pipeline.CreateMessage(); @@ -305,6 +362,23 @@ public Response Cancel(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateCutoverRequestUri(string subscriptionId, string resourceGroupName, string sqlVirtualMachineName, string targetDBName, MigrationOperationInput input) + { + 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.SqlVirtualMachine/sqlVirtualMachines/", false); + uri.AppendPath(sqlVirtualMachineName, true); + uri.AppendPath("/providers/Microsoft.DataMigration/databaseMigrations/", false); + uri.AppendPath(targetDBName, true); + uri.AppendPath("/cutover", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCutoverRequest(string subscriptionId, string resourceGroupName, string sqlVirtualMachineName, string targetDBName, MigrationOperationInput input) { var message = _pipeline.CreateMessage(); diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/RestOperations/FilesRestOperations.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/RestOperations/FilesRestOperations.cs index d9b0a948d956..ea9357dcb5a2 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/RestOperations/FilesRestOperations.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/RestOperations/FilesRestOperations.cs @@ -37,6 +37,23 @@ public FilesRestOperations(HttpPipeline pipeline, string applicationId, Uri endp _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string groupName, string serviceName, string projectName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(groupName, true); + uri.AppendPath("/providers/Microsoft.DataMigration/services/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/projects/", false); + uri.AppendPath(projectName, true); + uri.AppendPath("/files", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string groupName, string serviceName, string projectName) { var message = _pipeline.CreateMessage(); @@ -122,6 +139,24 @@ public Response List(string subscriptionId, string groupName, string s } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string groupName, string serviceName, string projectName, string fileName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(groupName, true); + uri.AppendPath("/providers/Microsoft.DataMigration/services/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/projects/", false); + uri.AppendPath(projectName, true); + uri.AppendPath("/files/", false); + uri.AppendPath(fileName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string groupName, string serviceName, string projectName, string fileName) { var message = _pipeline.CreateMessage(); @@ -216,6 +251,24 @@ public Response Get(string subscriptionId, string groupName, st } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string groupName, string serviceName, string projectName, string fileName, ProjectFileData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(groupName, true); + uri.AppendPath("/providers/Microsoft.DataMigration/services/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/projects/", false); + uri.AppendPath(projectName, true); + uri.AppendPath("/files/", false); + uri.AppendPath(fileName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string groupName, string serviceName, string projectName, string fileName, ProjectFileData data) { var message = _pipeline.CreateMessage(); @@ -316,6 +369,24 @@ public Response CreateOrUpdate(string subscriptionId, string gr } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string groupName, string serviceName, string projectName, string fileName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(groupName, true); + uri.AppendPath("/providers/Microsoft.DataMigration/services/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/projects/", false); + uri.AppendPath(projectName, true); + uri.AppendPath("/files/", false); + uri.AppendPath(fileName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string groupName, string serviceName, string projectName, string fileName) { var message = _pipeline.CreateMessage(); @@ -398,6 +469,24 @@ public Response Delete(string subscriptionId, string groupName, string serviceNa } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string groupName, string serviceName, string projectName, string fileName, ProjectFileData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(groupName, true); + uri.AppendPath("/providers/Microsoft.DataMigration/services/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/projects/", false); + uri.AppendPath(projectName, true); + uri.AppendPath("/files/", false); + uri.AppendPath(fileName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string groupName, string serviceName, string projectName, string fileName, ProjectFileData data) { var message = _pipeline.CreateMessage(); @@ -496,6 +585,25 @@ public Response Update(string subscriptionId, string groupName, } } + internal RequestUriBuilder CreateReadRequestUri(string subscriptionId, string groupName, string serviceName, string projectName, string fileName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(groupName, true); + uri.AppendPath("/providers/Microsoft.DataMigration/services/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/projects/", false); + uri.AppendPath(projectName, true); + uri.AppendPath("/files/", false); + uri.AppendPath(fileName, true); + uri.AppendPath("/read", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateReadRequest(string subscriptionId, string groupName, string serviceName, string projectName, string fileName) { var message = _pipeline.CreateMessage(); @@ -587,6 +695,25 @@ public Response Read(string subscriptionId, string groupName, s } } + internal RequestUriBuilder CreateReadWriteRequestUri(string subscriptionId, string groupName, string serviceName, string projectName, string fileName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(groupName, true); + uri.AppendPath("/providers/Microsoft.DataMigration/services/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/projects/", false); + uri.AppendPath(projectName, true); + uri.AppendPath("/files/", false); + uri.AppendPath(fileName, true); + uri.AppendPath("/readwrite", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateReadWriteRequest(string subscriptionId, string groupName, string serviceName, string projectName, string fileName) { var message = _pipeline.CreateMessage(); @@ -678,6 +805,14 @@ public Response ReadWrite(string subscriptionId, string groupNa } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string groupName, string serviceName, string projectName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string groupName, string serviceName, string projectName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/RestOperations/ProjectsRestOperations.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/RestOperations/ProjectsRestOperations.cs index 14d09ab2f68e..48c063074e97 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/RestOperations/ProjectsRestOperations.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/RestOperations/ProjectsRestOperations.cs @@ -37,6 +37,21 @@ public ProjectsRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string groupName, string serviceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(groupName, true); + uri.AppendPath("/providers/Microsoft.DataMigration/services/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/projects", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string groupName, string serviceName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response List(string subscriptionId, string groupName, strin } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string groupName, string serviceName, string projectName, ProjectData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(groupName, true); + uri.AppendPath("/providers/Microsoft.DataMigration/services/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/projects/", false); + uri.AppendPath(projectName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string groupName, string serviceName, string projectName, ProjectData data) { var message = _pipeline.CreateMessage(); @@ -210,6 +241,22 @@ public Response CreateOrUpdate(string subscriptionId, string groupN } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string groupName, string serviceName, string projectName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(groupName, true); + uri.AppendPath("/providers/Microsoft.DataMigration/services/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/projects/", false); + uri.AppendPath(projectName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string groupName, string serviceName, string projectName) { var message = _pipeline.CreateMessage(); @@ -298,6 +345,26 @@ public Response Get(string subscriptionId, string groupName, string } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string groupName, string serviceName, string projectName, bool? deleteRunningTasks) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(groupName, true); + uri.AppendPath("/providers/Microsoft.DataMigration/services/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/projects/", false); + uri.AppendPath(projectName, true); + uri.AppendQuery("api-version", _apiVersion, true); + if (deleteRunningTasks != null) + { + uri.AppendQuery("deleteRunningTasks", deleteRunningTasks.Value, true); + } + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string groupName, string serviceName, string projectName, bool? deleteRunningTasks) { var message = _pipeline.CreateMessage(); @@ -380,6 +447,22 @@ public Response Delete(string subscriptionId, string groupName, string serviceNa } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string groupName, string serviceName, string projectName, ProjectData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(groupName, true); + uri.AppendPath("/providers/Microsoft.DataMigration/services/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/projects/", false); + uri.AppendPath(projectName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string groupName, string serviceName, string projectName, ProjectData data) { var message = _pipeline.CreateMessage(); @@ -472,6 +555,14 @@ public Response Update(string subscriptionId, string groupName, str } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string groupName, string serviceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string groupName, string serviceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/RestOperations/ResourceSkusRestOperations.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/RestOperations/ResourceSkusRestOperations.cs index b5c9d5b08813..296296ff3155 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/RestOperations/ResourceSkusRestOperations.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/RestOperations/ResourceSkusRestOperations.cs @@ -37,6 +37,17 @@ public ResourceSkusRestOperations(HttpPipeline pipeline, string applicationId, U _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListSkusRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.DataMigration/skus", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListSkusRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,14 @@ public Response ListSkus(string subscriptionId, Cancellation } } + internal RequestUriBuilder CreateListSkusNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListSkusNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/RestOperations/ServiceTasksRestOperations.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/RestOperations/ServiceTasksRestOperations.cs index d578c6cd80f7..0dca4947b508 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/RestOperations/ServiceTasksRestOperations.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/RestOperations/ServiceTasksRestOperations.cs @@ -37,6 +37,25 @@ public ServiceTasksRestOperations(HttpPipeline pipeline, string applicationId, U _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string groupName, string serviceName, string taskType) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(groupName, true); + uri.AppendPath("/providers/Microsoft.DataMigration/services/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/serviceTasks", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (taskType != null) + { + uri.AppendQuery("taskType", taskType, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string groupName, string serviceName, string taskType) { var message = _pipeline.CreateMessage(); @@ -122,6 +141,22 @@ public Response List(string subscriptionId, string groupName, string s } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string groupName, string serviceName, string taskName, ProjectTaskData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(groupName, true); + uri.AppendPath("/providers/Microsoft.DataMigration/services/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/serviceTasks/", false); + uri.AppendPath(taskName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string groupName, string serviceName, string taskName, ProjectTaskData data) { var message = _pipeline.CreateMessage(); @@ -216,6 +251,26 @@ public Response CreateOrUpdate(string subscriptionId, string gr } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string groupName, string serviceName, string taskName, string expand) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(groupName, true); + uri.AppendPath("/providers/Microsoft.DataMigration/services/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/serviceTasks/", false); + uri.AppendPath(taskName, true); + uri.AppendQuery("api-version", _apiVersion, true); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string groupName, string serviceName, string taskName, string expand) { var message = _pipeline.CreateMessage(); @@ -310,6 +365,26 @@ public Response Get(string subscriptionId, string groupName, st } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string groupName, string serviceName, string taskName, bool? deleteRunningTasks) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(groupName, true); + uri.AppendPath("/providers/Microsoft.DataMigration/services/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/serviceTasks/", false); + uri.AppendPath(taskName, true); + uri.AppendQuery("api-version", _apiVersion, true); + if (deleteRunningTasks != null) + { + uri.AppendQuery("deleteRunningTasks", deleteRunningTasks.Value, true); + } + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string groupName, string serviceName, string taskName, bool? deleteRunningTasks) { var message = _pipeline.CreateMessage(); @@ -392,6 +467,22 @@ public Response Delete(string subscriptionId, string groupName, string serviceNa } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string groupName, string serviceName, string taskName, ProjectTaskData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(groupName, true); + uri.AppendPath("/providers/Microsoft.DataMigration/services/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/serviceTasks/", false); + uri.AppendPath(taskName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string groupName, string serviceName, string taskName, ProjectTaskData data) { var message = _pipeline.CreateMessage(); @@ -484,6 +575,23 @@ public Response Update(string subscriptionId, string groupName, } } + internal RequestUriBuilder CreateCancelRequestUri(string subscriptionId, string groupName, string serviceName, string taskName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(groupName, true); + uri.AppendPath("/providers/Microsoft.DataMigration/services/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/serviceTasks/", false); + uri.AppendPath(taskName, true); + uri.AppendPath("/cancel", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCancelRequest(string subscriptionId, string groupName, string serviceName, string taskName) { var message = _pipeline.CreateMessage(); @@ -569,6 +677,14 @@ public Response Cancel(string subscriptionId, string groupName, } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string groupName, string serviceName, string taskType) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string groupName, string serviceName, string taskType) { var message = _pipeline.CreateMessage(); diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/RestOperations/ServicesRestOperations.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/RestOperations/ServicesRestOperations.cs index 08fea6ad8f85..05053f25ea9b 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/RestOperations/ServicesRestOperations.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/RestOperations/ServicesRestOperations.cs @@ -37,6 +37,20 @@ public ServicesRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string groupName, string serviceName, DataMigrationServiceData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(groupName, true); + uri.AppendPath("/providers/Microsoft.DataMigration/services/", false); + uri.AppendPath(serviceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string groupName, string serviceName, DataMigrationServiceData data) { var message = _pipeline.CreateMessage(); @@ -117,6 +131,20 @@ public Response CreateOrUpdate(string subscriptionId, string groupName, string s } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string groupName, string serviceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(groupName, true); + uri.AppendPath("/providers/Microsoft.DataMigration/services/", false); + uri.AppendPath(serviceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string groupName, string serviceName) { var message = _pipeline.CreateMessage(); @@ -199,6 +227,24 @@ public Response Get(string subscriptionId, string grou } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string groupName, string serviceName, bool? deleteRunningTasks) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(groupName, true); + uri.AppendPath("/providers/Microsoft.DataMigration/services/", false); + uri.AppendPath(serviceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + if (deleteRunningTasks != null) + { + uri.AppendQuery("deleteRunningTasks", deleteRunningTasks.Value, true); + } + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string groupName, string serviceName, bool? deleteRunningTasks) { var message = _pipeline.CreateMessage(); @@ -277,6 +323,20 @@ public Response Delete(string subscriptionId, string groupName, string serviceNa } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string groupName, string serviceName, DataMigrationServiceData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(groupName, true); + uri.AppendPath("/providers/Microsoft.DataMigration/services/", false); + uri.AppendPath(serviceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string groupName, string serviceName, DataMigrationServiceData data) { var message = _pipeline.CreateMessage(); @@ -355,6 +415,21 @@ public Response Update(string subscriptionId, string groupName, string serviceNa } } + internal RequestUriBuilder CreateCheckStatusRequestUri(string subscriptionId, string groupName, string serviceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(groupName, true); + uri.AppendPath("/providers/Microsoft.DataMigration/services/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/checkStatus", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCheckStatusRequest(string subscriptionId, string groupName, string serviceName) { var message = _pipeline.CreateMessage(); @@ -434,6 +509,21 @@ public Response CheckStatus(string subscript } } + internal RequestUriBuilder CreateStartRequestUri(string subscriptionId, string groupName, string serviceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(groupName, true); + uri.AppendPath("/providers/Microsoft.DataMigration/services/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/start", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStartRequest(string subscriptionId, string groupName, string serviceName) { var message = _pipeline.CreateMessage(); @@ -505,6 +595,21 @@ public Response Start(string subscriptionId, string groupName, string serviceNam } } + internal RequestUriBuilder CreateStopRequestUri(string subscriptionId, string groupName, string serviceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(groupName, true); + uri.AppendPath("/providers/Microsoft.DataMigration/services/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/stop", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStopRequest(string subscriptionId, string groupName, string serviceName) { var message = _pipeline.CreateMessage(); @@ -576,6 +681,21 @@ public Response Stop(string subscriptionId, string groupName, string serviceName } } + internal RequestUriBuilder CreateListSkusRequestUri(string subscriptionId, string groupName, string serviceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(groupName, true); + uri.AppendPath("/providers/Microsoft.DataMigration/services/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/skus", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListSkusRequest(string subscriptionId, string groupName, string serviceName) { var message = _pipeline.CreateMessage(); @@ -655,6 +775,21 @@ public Response ListSkus(string subscriptionId, string groupName } } + internal RequestUriBuilder CreateCheckChildrenNameAvailabilityRequestUri(string subscriptionId, string groupName, string serviceName, NameAvailabilityRequest nameAvailabilityRequest) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(groupName, true); + uri.AppendPath("/providers/Microsoft.DataMigration/services/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/checkNameAvailability", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCheckChildrenNameAvailabilityRequest(string subscriptionId, string groupName, string serviceName, NameAvailabilityRequest nameAvailabilityRequest) { var message = _pipeline.CreateMessage(); @@ -742,6 +877,19 @@ public Response CheckChildrenNameAvailability(string s } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string groupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(groupName, true); + uri.AppendPath("/providers/Microsoft.DataMigration/services", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string groupName) { var message = _pipeline.CreateMessage(); @@ -815,6 +963,17 @@ public Response ListByResourceGroup(string subscriptio } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.DataMigration/services", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -882,6 +1041,19 @@ public Response List(string subscriptionId, Cancellati } } + internal RequestUriBuilder CreateCheckNameAvailabilityRequestUri(string subscriptionId, AzureLocation location, NameAvailabilityRequest nameAvailabilityRequest) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.DataMigration/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/checkNameAvailability", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCheckNameAvailabilityRequest(string subscriptionId, AzureLocation location, NameAvailabilityRequest nameAvailabilityRequest) { var message = _pipeline.CreateMessage(); @@ -961,6 +1133,14 @@ public Response CheckNameAvailability(string subscript } } + internal RequestUriBuilder CreateListSkusNextPageRequestUri(string nextLink, string subscriptionId, string groupName, string serviceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListSkusNextPageRequest(string nextLink, string subscriptionId, string groupName, string serviceName) { var message = _pipeline.CreateMessage(); @@ -1037,6 +1217,14 @@ public Response ListSkusNextPage(string nextLink, string subscri } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string groupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string groupName) { var message = _pipeline.CreateMessage(); @@ -1109,6 +1297,14 @@ public Response ListByResourceGroupNextPage(string nex } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/RestOperations/SqlMigrationServicesRestOperations.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/RestOperations/SqlMigrationServicesRestOperations.cs index c25446a145ac..e97af803436d 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/RestOperations/SqlMigrationServicesRestOperations.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/RestOperations/SqlMigrationServicesRestOperations.cs @@ -37,6 +37,20 @@ public SqlMigrationServicesRestOperations(HttpPipeline pipeline, string applicat _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string sqlMigrationServiceName) + { + 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.DataMigration/sqlMigrationServices/", false); + uri.AppendPath(sqlMigrationServiceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string sqlMigrationServiceName) { var message = _pipeline.CreateMessage(); @@ -119,6 +133,20 @@ public Response Get(string subscriptionId, string resou } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string sqlMigrationServiceName, SqlMigrationServiceData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DataMigration/sqlMigrationServices/", false); + uri.AppendPath(sqlMigrationServiceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string sqlMigrationServiceName, SqlMigrationServiceData data) { var message = _pipeline.CreateMessage(); @@ -197,6 +225,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string sqlMigrationServiceName) + { + 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.DataMigration/sqlMigrationServices/", false); + uri.AppendPath(sqlMigrationServiceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string sqlMigrationServiceName) { var message = _pipeline.CreateMessage(); @@ -268,6 +310,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string sqlMigrationServiceName, SqlMigrationServicePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DataMigration/sqlMigrationServices/", false); + uri.AppendPath(sqlMigrationServiceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string sqlMigrationServiceName, SqlMigrationServicePatch patch) { var message = _pipeline.CreateMessage(); @@ -346,6 +402,19 @@ public Response Update(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.DataMigration/sqlMigrationServices", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -419,6 +488,21 @@ public Response ListByResourceGroup(string subscriptionI } } + internal RequestUriBuilder CreateListAuthKeysRequestUri(string subscriptionId, string resourceGroupName, string sqlMigrationServiceName) + { + 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.DataMigration/sqlMigrationServices/", false); + uri.AppendPath(sqlMigrationServiceName, true); + uri.AppendPath("/listAuthKeys", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListAuthKeysRequest(string subscriptionId, string resourceGroupName, string sqlMigrationServiceName) { var message = _pipeline.CreateMessage(); @@ -498,6 +582,21 @@ public Response ListAuthKeys(string subscriptionId, string r } } + internal RequestUriBuilder CreateRegenerateAuthKeysRequestUri(string subscriptionId, string resourceGroupName, string sqlMigrationServiceName, RegenAuthKeys regenAuthKeys) + { + 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.DataMigration/sqlMigrationServices/", false); + uri.AppendPath(sqlMigrationServiceName, true); + uri.AppendPath("/regenerateAuthKeys", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRegenerateAuthKeysRequest(string subscriptionId, string resourceGroupName, string sqlMigrationServiceName, RegenAuthKeys regenAuthKeys) { var message = _pipeline.CreateMessage(); @@ -585,6 +684,21 @@ public Response RegenerateAuthKeys(string subscriptionId, string } } + internal RequestUriBuilder CreateDeleteNodeRequestUri(string subscriptionId, string resourceGroupName, string sqlMigrationServiceName, DeleteNode deleteNode) + { + 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.DataMigration/sqlMigrationServices/", false); + uri.AppendPath(sqlMigrationServiceName, true); + uri.AppendPath("/deleteNode", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteNodeRequest(string subscriptionId, string resourceGroupName, string sqlMigrationServiceName, DeleteNode deleteNode) { var message = _pipeline.CreateMessage(); @@ -672,6 +786,21 @@ public Response DeleteNode(string subscriptionId, string resourceGro } } + internal RequestUriBuilder CreateListMigrationsRequestUri(string subscriptionId, string resourceGroupName, string sqlMigrationServiceName) + { + 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.DataMigration/sqlMigrationServices/", false); + uri.AppendPath(sqlMigrationServiceName, true); + uri.AppendPath("/listMigrations", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListMigrationsRequest(string subscriptionId, string resourceGroupName, string sqlMigrationServiceName) { var message = _pipeline.CreateMessage(); @@ -751,6 +880,21 @@ public Response ListMigrations(string subscriptionI } } + internal RequestUriBuilder CreateListMonitoringDataRequestUri(string subscriptionId, string resourceGroupName, string sqlMigrationServiceName) + { + 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.DataMigration/sqlMigrationServices/", false); + uri.AppendPath(sqlMigrationServiceName, true); + uri.AppendPath("/listMonitoringData", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListMonitoringDataRequest(string subscriptionId, string resourceGroupName, string sqlMigrationServiceName) { var message = _pipeline.CreateMessage(); @@ -830,6 +974,17 @@ public Response ListMonitoringData(string subs } } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.DataMigration/sqlMigrationServices", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -897,6 +1052,14 @@ public Response ListBySubscription(string subscriptionId } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -969,6 +1132,14 @@ public Response ListByResourceGroupNextPage(string nextL } } + internal RequestUriBuilder CreateListMigrationsNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string sqlMigrationServiceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListMigrationsNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string sqlMigrationServiceName) { var message = _pipeline.CreateMessage(); @@ -1045,6 +1216,14 @@ public Response ListMigrationsNextPage(string nextL } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/RestOperations/TasksRestOperations.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/RestOperations/TasksRestOperations.cs index ef432dfb7440..8a6c23115b7d 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/RestOperations/TasksRestOperations.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/RestOperations/TasksRestOperations.cs @@ -37,6 +37,27 @@ public TasksRestOperations(HttpPipeline pipeline, string applicationId, Uri endp _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string groupName, string serviceName, string projectName, string taskType) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(groupName, true); + uri.AppendPath("/providers/Microsoft.DataMigration/services/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/projects/", false); + uri.AppendPath(projectName, true); + uri.AppendPath("/tasks", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (taskType != null) + { + uri.AppendQuery("taskType", taskType, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string groupName, string serviceName, string projectName, string taskType) { var message = _pipeline.CreateMessage(); @@ -128,6 +149,24 @@ public Response List(string subscriptionId, string groupName, string s } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string groupName, string serviceName, string projectName, string taskName, ProjectTaskData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(groupName, true); + uri.AppendPath("/providers/Microsoft.DataMigration/services/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/projects/", false); + uri.AppendPath(projectName, true); + uri.AppendPath("/tasks/", false); + uri.AppendPath(taskName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string groupName, string serviceName, string projectName, string taskName, ProjectTaskData data) { var message = _pipeline.CreateMessage(); @@ -228,6 +267,28 @@ public Response CreateOrUpdate(string subscriptionId, string gr } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string groupName, string serviceName, string projectName, string taskName, string expand) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(groupName, true); + uri.AppendPath("/providers/Microsoft.DataMigration/services/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/projects/", false); + uri.AppendPath(projectName, true); + uri.AppendPath("/tasks/", false); + uri.AppendPath(taskName, true); + uri.AppendQuery("api-version", _apiVersion, true); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string groupName, string serviceName, string projectName, string taskName, string expand) { var message = _pipeline.CreateMessage(); @@ -328,6 +389,28 @@ public Response Get(string subscriptionId, string groupName, st } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string groupName, string serviceName, string projectName, string taskName, bool? deleteRunningTasks) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(groupName, true); + uri.AppendPath("/providers/Microsoft.DataMigration/services/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/projects/", false); + uri.AppendPath(projectName, true); + uri.AppendPath("/tasks/", false); + uri.AppendPath(taskName, true); + uri.AppendQuery("api-version", _apiVersion, true); + if (deleteRunningTasks != null) + { + uri.AppendQuery("deleteRunningTasks", deleteRunningTasks.Value, true); + } + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string groupName, string serviceName, string projectName, string taskName, bool? deleteRunningTasks) { var message = _pipeline.CreateMessage(); @@ -416,6 +499,24 @@ public Response Delete(string subscriptionId, string groupName, string serviceNa } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string groupName, string serviceName, string projectName, string taskName, ProjectTaskData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(groupName, true); + uri.AppendPath("/providers/Microsoft.DataMigration/services/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/projects/", false); + uri.AppendPath(projectName, true); + uri.AppendPath("/tasks/", false); + uri.AppendPath(taskName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string groupName, string serviceName, string projectName, string taskName, ProjectTaskData data) { var message = _pipeline.CreateMessage(); @@ -514,6 +615,25 @@ public Response Update(string subscriptionId, string groupName, } } + internal RequestUriBuilder CreateCancelRequestUri(string subscriptionId, string groupName, string serviceName, string projectName, string taskName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(groupName, true); + uri.AppendPath("/providers/Microsoft.DataMigration/services/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/projects/", false); + uri.AppendPath(projectName, true); + uri.AppendPath("/tasks/", false); + uri.AppendPath(taskName, true); + uri.AppendPath("/cancel", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCancelRequest(string subscriptionId, string groupName, string serviceName, string projectName, string taskName) { var message = _pipeline.CreateMessage(); @@ -605,6 +725,25 @@ public Response Cancel(string subscriptionId, string groupName, } } + internal RequestUriBuilder CreateCommandRequestUri(string subscriptionId, string groupName, string serviceName, string projectName, string taskName, CommandProperties commandProperties) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(groupName, true); + uri.AppendPath("/providers/Microsoft.DataMigration/services/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/projects/", false); + uri.AppendPath(projectName, true); + uri.AppendPath("/tasks/", false); + uri.AppendPath(taskName, true); + uri.AppendPath("/command", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCommandRequest(string subscriptionId, string groupName, string serviceName, string projectName, string taskName, CommandProperties commandProperties) { var message = _pipeline.CreateMessage(); @@ -704,6 +843,14 @@ public Response Command(string subscriptionId, string groupNa } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string groupName, string serviceName, string projectName, string taskType) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string groupName, string serviceName, string projectName, string taskType) { var message = _pipeline.CreateMessage(); diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/RestOperations/UsagesRestOperations.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/RestOperations/UsagesRestOperations.cs index 4b172d20aabe..9134a08c8409 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/RestOperations/UsagesRestOperations.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/RestOperations/UsagesRestOperations.cs @@ -37,6 +37,19 @@ public UsagesRestOperations(HttpPipeline pipeline, string applicationId, Uri end _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, AzureLocation location) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.DataMigration/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/usages", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, AzureLocation location) { var message = _pipeline.CreateMessage(); @@ -108,6 +121,14 @@ public Response List(string subscriptionId, AzureLocation location, C } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, AzureLocation location) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, AzureLocation location) { var message = _pipeline.CreateMessage(); diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/ServiceProjectTaskCollection.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/ServiceProjectTaskCollection.cs index a2c5dd691467..328aa78fda31 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/ServiceProjectTaskCollection.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/ServiceProjectTaskCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> CreateOrUpda try { var response = await _serviceProjectTaskTasksRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, taskName, data, cancellationToken).ConfigureAwait(false); - var operation = new DataMigrationArmOperation(Response.FromValue(new ServiceProjectTaskResource(Client, response), response.GetRawResponse())); + var uri = _serviceProjectTaskTasksRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, taskName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataMigrationArmOperation(Response.FromValue(new ServiceProjectTaskResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil try { var response = _serviceProjectTaskTasksRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, taskName, data, cancellationToken); - var operation = new DataMigrationArmOperation(Response.FromValue(new ServiceProjectTaskResource(Client, response), response.GetRawResponse())); + var uri = _serviceProjectTaskTasksRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, taskName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataMigrationArmOperation(Response.FromValue(new ServiceProjectTaskResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/ServiceProjectTaskResource.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/ServiceProjectTaskResource.cs index b5c54211bb4b..1e1c673c6463 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/ServiceProjectTaskResource.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/ServiceProjectTaskResource.cs @@ -205,7 +205,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, bool? d try { var response = await _serviceProjectTaskTasksRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, deleteRunningTasks, cancellationToken).ConfigureAwait(false); - var operation = new DataMigrationArmOperation(response); + var uri = _serviceProjectTaskTasksRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, deleteRunningTasks); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataMigrationArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -248,7 +250,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, bool? deleteRunningTasks try { var response = _serviceProjectTaskTasksRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, deleteRunningTasks, cancellationToken); - var operation = new DataMigrationArmOperation(response); + var uri = _serviceProjectTaskTasksRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, deleteRunningTasks); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataMigrationArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/ServiceServiceTaskCollection.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/ServiceServiceTaskCollection.cs index 341831a69c85..80de421d02d4 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/ServiceServiceTaskCollection.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/ServiceServiceTaskCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> CreateOrUpda try { var response = await _serviceServiceTaskServiceTasksRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, taskName, data, cancellationToken).ConfigureAwait(false); - var operation = new DataMigrationArmOperation(Response.FromValue(new ServiceServiceTaskResource(Client, response), response.GetRawResponse())); + var uri = _serviceServiceTaskServiceTasksRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, taskName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataMigrationArmOperation(Response.FromValue(new ServiceServiceTaskResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil try { var response = _serviceServiceTaskServiceTasksRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, taskName, data, cancellationToken); - var operation = new DataMigrationArmOperation(Response.FromValue(new ServiceServiceTaskResource(Client, response), response.GetRawResponse())); + var uri = _serviceServiceTaskServiceTasksRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, taskName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataMigrationArmOperation(Response.FromValue(new ServiceServiceTaskResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/ServiceServiceTaskResource.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/ServiceServiceTaskResource.cs index f3950c77ed06..4ef88d02b64a 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/ServiceServiceTaskResource.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/ServiceServiceTaskResource.cs @@ -203,7 +203,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, bool? d try { var response = await _serviceServiceTaskServiceTasksRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, deleteRunningTasks, cancellationToken).ConfigureAwait(false); - var operation = new DataMigrationArmOperation(response); + var uri = _serviceServiceTaskServiceTasksRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, deleteRunningTasks); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataMigrationArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -246,7 +248,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, bool? deleteRunningTasks try { var response = _serviceServiceTaskServiceTasksRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, deleteRunningTasks, cancellationToken); - var operation = new DataMigrationArmOperation(response); + var uri = _serviceServiceTaskServiceTasksRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, deleteRunningTasks); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataMigrationArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/DataProtectionBackupPolicyCollection.cs b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/DataProtectionBackupPolicyCollection.cs index a95ecaaf22c0..73c782befcd1 100644 --- a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/DataProtectionBackupPolicyCollection.cs +++ b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/DataProtectionBackupPolicyCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> Crea try { var response = await _dataProtectionBackupPolicyBackupPoliciesRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, backupPolicyName, data, cancellationToken).ConfigureAwait(false); - var operation = new DataProtectionBackupArmOperation(Response.FromValue(new DataProtectionBackupPolicyResource(Client, response), response.GetRawResponse())); + var uri = _dataProtectionBackupPolicyBackupPoliciesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, backupPolicyName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataProtectionBackupArmOperation(Response.FromValue(new DataProtectionBackupPolicyResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(W try { var response = _dataProtectionBackupPolicyBackupPoliciesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, backupPolicyName, data, cancellationToken); - var operation = new DataProtectionBackupArmOperation(Response.FromValue(new DataProtectionBackupPolicyResource(Client, response), response.GetRawResponse())); + var uri = _dataProtectionBackupPolicyBackupPoliciesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, backupPolicyName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataProtectionBackupArmOperation(Response.FromValue(new DataProtectionBackupPolicyResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/DataProtectionBackupPolicyResource.cs b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/DataProtectionBackupPolicyResource.cs index 23a321a37d1a..3f6b07c3ac82 100644 --- a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/DataProtectionBackupPolicyResource.cs +++ b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/DataProtectionBackupPolicyResource.cs @@ -200,7 +200,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _dataProtectionBackupPolicyBackupPoliciesRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new DataProtectionBackupArmOperation(response); + var uri = _dataProtectionBackupPolicyBackupPoliciesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataProtectionBackupArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -242,7 +244,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _dataProtectionBackupPolicyBackupPoliciesRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new DataProtectionBackupArmOperation(response); + var uri = _dataProtectionBackupPolicyBackupPoliciesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataProtectionBackupArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -288,7 +292,9 @@ public virtual async Task> Upda try { var response = await _dataProtectionBackupPolicyBackupPoliciesRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new DataProtectionBackupArmOperation(Response.FromValue(new DataProtectionBackupPolicyResource(Client, response), response.GetRawResponse())); + var uri = _dataProtectionBackupPolicyBackupPoliciesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataProtectionBackupArmOperation(Response.FromValue(new DataProtectionBackupPolicyResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -334,7 +340,9 @@ public virtual ArmOperation Update(WaitUntil try { var response = _dataProtectionBackupPolicyBackupPoliciesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new DataProtectionBackupArmOperation(Response.FromValue(new DataProtectionBackupPolicyResource(Client, response), response.GetRawResponse())); + var uri = _dataProtectionBackupPolicyBackupPoliciesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataProtectionBackupArmOperation(Response.FromValue(new DataProtectionBackupPolicyResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/LongRunningOperation/DataProtectionBackupArmOperation.cs b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/LongRunningOperation/DataProtectionBackupArmOperation.cs index be154b71329e..62f00f9d9c53 100644 --- a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/LongRunningOperation/DataProtectionBackupArmOperation.cs +++ b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/LongRunningOperation/DataProtectionBackupArmOperation.cs @@ -20,21 +20,24 @@ internal class DataProtectionBackupArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of DataProtectionBackupArmOperation for mocking. protected DataProtectionBackupArmOperation() { } - internal DataProtectionBackupArmOperation(Response response) + internal DataProtectionBackupArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal DataProtectionBackupArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "DataProtectionBackupArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal DataProtectionBackupArmOperation(ClientDiagnostics clientDiagnostics, H public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/LongRunningOperation/DataProtectionBackupArmOperationOfT.cs b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/LongRunningOperation/DataProtectionBackupArmOperationOfT.cs index 1c83870b4bb5..fc839366978d 100644 --- a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/LongRunningOperation/DataProtectionBackupArmOperationOfT.cs +++ b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/LongRunningOperation/DataProtectionBackupArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class DataProtectionBackupArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of DataProtectionBackupArmOperation for mocking. protected DataProtectionBackupArmOperation() { } - internal DataProtectionBackupArmOperation(Response response) + internal DataProtectionBackupArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal DataProtectionBackupArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "DataProtectionBackupArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal DataProtectionBackupArmOperation(IOperationSource source, ClientDiag public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/DataProtectionBackupInstanceResource.Serialization.cs b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/DataProtectionBackupInstanceResource.Serialization.cs new file mode 100644 index 000000000000..4844bc2e3edf --- /dev/null +++ b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/DataProtectionBackupInstanceResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DataProtectionBackup +{ + public partial class DataProtectionBackupInstanceResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DataProtectionBackupInstanceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DataProtectionBackupInstanceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/DataProtectionBackupJobResource.Serialization.cs b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/DataProtectionBackupJobResource.Serialization.cs new file mode 100644 index 000000000000..311d77116795 --- /dev/null +++ b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/DataProtectionBackupJobResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DataProtectionBackup +{ + public partial class DataProtectionBackupJobResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DataProtectionBackupJobData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DataProtectionBackupJobData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/DataProtectionBackupPolicyResource.Serialization.cs b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/DataProtectionBackupPolicyResource.Serialization.cs new file mode 100644 index 000000000000..40dc97612713 --- /dev/null +++ b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/DataProtectionBackupPolicyResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DataProtectionBackup +{ + public partial class DataProtectionBackupPolicyResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DataProtectionBackupPolicyData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DataProtectionBackupPolicyData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/DataProtectionBackupRecoveryPointResource.Serialization.cs b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/DataProtectionBackupRecoveryPointResource.Serialization.cs new file mode 100644 index 000000000000..7eaf409c1a26 --- /dev/null +++ b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/DataProtectionBackupRecoveryPointResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DataProtectionBackup +{ + public partial class DataProtectionBackupRecoveryPointResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DataProtectionBackupRecoveryPointData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DataProtectionBackupRecoveryPointData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/DataProtectionBackupVaultResource.Serialization.cs b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/DataProtectionBackupVaultResource.Serialization.cs new file mode 100644 index 000000000000..cef36941ac1d --- /dev/null +++ b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/DataProtectionBackupVaultResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DataProtectionBackup +{ + public partial class DataProtectionBackupVaultResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DataProtectionBackupVaultData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DataProtectionBackupVaultData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/DeletedDataProtectionBackupInstanceResource.Serialization.cs b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/DeletedDataProtectionBackupInstanceResource.Serialization.cs new file mode 100644 index 000000000000..f2b0eb893c4f --- /dev/null +++ b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/DeletedDataProtectionBackupInstanceResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DataProtectionBackup +{ + public partial class DeletedDataProtectionBackupInstanceResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DeletedDataProtectionBackupInstanceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DeletedDataProtectionBackupInstanceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/ResourceGuardProxyBaseResource.Serialization.cs b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/ResourceGuardProxyBaseResource.Serialization.cs new file mode 100644 index 000000000000..008aa2e1c57d --- /dev/null +++ b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/ResourceGuardProxyBaseResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DataProtectionBackup +{ + public partial class ResourceGuardProxyBaseResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ResourceGuardProxyBaseResourceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ResourceGuardProxyBaseResourceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/ResourceGuardResource.Serialization.cs b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/ResourceGuardResource.Serialization.cs new file mode 100644 index 000000000000..2a1d996a7f71 --- /dev/null +++ b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/ResourceGuardResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DataProtectionBackup +{ + public partial class ResourceGuardResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ResourceGuardData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ResourceGuardData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/ResourceGuardCollection.cs b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/ResourceGuardCollection.cs index 42142f2870eb..3c567aff4885 100644 --- a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/ResourceGuardCollection.cs +++ b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/ResourceGuardCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> CreateOrUpdateAsy try { var response = await _resourceGuardRestClient.PutAsync(Id.SubscriptionId, Id.ResourceGroupName, resourceGuardsName, data, cancellationToken).ConfigureAwait(false); - var operation = new DataProtectionBackupArmOperation(Response.FromValue(new ResourceGuardResource(Client, response), response.GetRawResponse())); + var uri = _resourceGuardRestClient.CreatePutRequestUri(Id.SubscriptionId, Id.ResourceGroupName, resourceGuardsName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataProtectionBackupArmOperation(Response.FromValue(new ResourceGuardResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -140,7 +142,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wait try { var response = _resourceGuardRestClient.Put(Id.SubscriptionId, Id.ResourceGroupName, resourceGuardsName, data, cancellationToken); - var operation = new DataProtectionBackupArmOperation(Response.FromValue(new ResourceGuardResource(Client, response), response.GetRawResponse())); + var uri = _resourceGuardRestClient.CreatePutRequestUri(Id.SubscriptionId, Id.ResourceGroupName, resourceGuardsName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataProtectionBackupArmOperation(Response.FromValue(new ResourceGuardResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/ResourceGuardProxyBaseResource.cs b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/ResourceGuardProxyBaseResource.cs index 48e6a48b7fb8..12678080a306 100644 --- a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/ResourceGuardProxyBaseResource.cs +++ b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/ResourceGuardProxyBaseResource.cs @@ -201,7 +201,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _resourceGuardProxyBaseResourceDppResourceGuardProxyRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new DataProtectionBackupArmOperation(response); + var uri = _resourceGuardProxyBaseResourceDppResourceGuardProxyRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataProtectionBackupArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -243,7 +245,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _resourceGuardProxyBaseResourceDppResourceGuardProxyRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new DataProtectionBackupArmOperation(response); + var uri = _resourceGuardProxyBaseResourceDppResourceGuardProxyRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataProtectionBackupArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -289,7 +293,9 @@ public virtual async Task> UpdateAs try { var response = await _resourceGuardProxyBaseResourceDppResourceGuardProxyRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new DataProtectionBackupArmOperation(Response.FromValue(new ResourceGuardProxyBaseResource(Client, response), response.GetRawResponse())); + var uri = _resourceGuardProxyBaseResourceDppResourceGuardProxyRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataProtectionBackupArmOperation(Response.FromValue(new ResourceGuardProxyBaseResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -335,7 +341,9 @@ public virtual ArmOperation Update(WaitUntil wai try { var response = _resourceGuardProxyBaseResourceDppResourceGuardProxyRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new DataProtectionBackupArmOperation(Response.FromValue(new ResourceGuardProxyBaseResource(Client, response), response.GetRawResponse())); + var uri = _resourceGuardProxyBaseResourceDppResourceGuardProxyRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataProtectionBackupArmOperation(Response.FromValue(new ResourceGuardProxyBaseResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/ResourceGuardProxyBaseResourceCollection.cs b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/ResourceGuardProxyBaseResourceCollection.cs index 8a79db3c71c7..1ab20b32f2af 100644 --- a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/ResourceGuardProxyBaseResourceCollection.cs +++ b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/ResourceGuardProxyBaseResourceCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> CreateOr try { var response = await _resourceGuardProxyBaseResourceDppResourceGuardProxyRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, resourceGuardProxyName, data, cancellationToken).ConfigureAwait(false); - var operation = new DataProtectionBackupArmOperation(Response.FromValue(new ResourceGuardProxyBaseResource(Client, response), response.GetRawResponse())); + var uri = _resourceGuardProxyBaseResourceDppResourceGuardProxyRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, resourceGuardProxyName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataProtectionBackupArmOperation(Response.FromValue(new ResourceGuardProxyBaseResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(WaitU try { var response = _resourceGuardProxyBaseResourceDppResourceGuardProxyRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, resourceGuardProxyName, data, cancellationToken); - var operation = new DataProtectionBackupArmOperation(Response.FromValue(new ResourceGuardProxyBaseResource(Client, response), response.GetRawResponse())); + var uri = _resourceGuardProxyBaseResourceDppResourceGuardProxyRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, resourceGuardProxyName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataProtectionBackupArmOperation(Response.FromValue(new ResourceGuardProxyBaseResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/ResourceGuardResource.cs b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/ResourceGuardResource.cs index 912cb4d70c58..7bd8a80c3c2c 100644 --- a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/ResourceGuardResource.cs +++ b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/ResourceGuardResource.cs @@ -203,7 +203,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _resourceGuardRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new DataProtectionBackupArmOperation(response); + var uri = _resourceGuardRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataProtectionBackupArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -245,7 +247,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _resourceGuardRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); - var operation = new DataProtectionBackupArmOperation(response); + var uri = _resourceGuardRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataProtectionBackupArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/RestOperations/BackupInstancesRestOperations.cs b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/RestOperations/BackupInstancesRestOperations.cs index e5857c46eeaa..13cff5904853 100644 --- a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/RestOperations/BackupInstancesRestOperations.cs +++ b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/RestOperations/BackupInstancesRestOperations.cs @@ -37,6 +37,21 @@ public BackupInstancesRestOperations(HttpPipeline pipeline, string applicationId _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string vaultName) + { + 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.DataProtection/backupVaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/backupInstances", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string vaultName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response List(string subscriptionId, string r } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string vaultName, string backupInstanceName) + { + 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.DataProtection/backupVaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/backupInstances/", false); + uri.AppendPath(backupInstanceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string vaultName, string backupInstanceName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscriptionId, str } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string vaultName, string backupInstanceName, DataProtectionBackupInstanceData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DataProtection/backupVaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/backupInstances/", false); + uri.AppendPath(backupInstanceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string vaultName, string backupInstanceName, DataProtectionBackupInstanceData data) { var message = _pipeline.CreateMessage(); @@ -290,6 +337,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string vaultName, string backupInstanceName) + { + 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.DataProtection/backupVaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/backupInstances/", false); + uri.AppendPath(backupInstanceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string vaultName, string backupInstanceName) { var message = _pipeline.CreateMessage(); @@ -368,6 +431,23 @@ public Response Delete(string subscriptionId, string resourceGroupName, string v } } + internal RequestUriBuilder CreateAdhocBackupRequestUri(string subscriptionId, string resourceGroupName, string vaultName, string backupInstanceName, AdhocBackupTriggerContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DataProtection/backupVaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/backupInstances/", false); + uri.AppendPath(backupInstanceName, true); + uri.AppendPath("/backup", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateAdhocBackupRequest(string subscriptionId, string resourceGroupName, string vaultName, string backupInstanceName, AdhocBackupTriggerContent content) { var message = _pipeline.CreateMessage(); @@ -453,6 +533,21 @@ public Response AdhocBackup(string subscriptionId, string resourceGroupName, str } } + internal RequestUriBuilder CreateValidateForBackupRequestUri(string subscriptionId, string resourceGroupName, string vaultName, AdhocBackupValidateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DataProtection/backupVaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/validateForBackup", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateValidateForBackupRequest(string subscriptionId, string resourceGroupName, string vaultName, AdhocBackupValidateContent content) { var message = _pipeline.CreateMessage(); @@ -532,6 +627,21 @@ public Response ValidateForBackup(string subscriptionId, string resourceGroupNam } } + internal RequestUriBuilder CreateTriggerCrossRegionRestoreRequestUri(string subscriptionId, string resourceGroupName, AzureLocation location, CrossRegionRestoreRequestObject crossRegionRestoreRequestObject) + { + 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.DataProtection/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/crossRegionRestore", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateTriggerCrossRegionRestoreRequest(string subscriptionId, string resourceGroupName, AzureLocation location, CrossRegionRestoreRequestObject crossRegionRestoreRequestObject) { var message = _pipeline.CreateMessage(); @@ -609,6 +719,21 @@ public Response TriggerCrossRegionRestore(string subscriptionId, string resource } } + internal RequestUriBuilder CreateValidateCrossRegionRestoreRequestUri(string subscriptionId, string resourceGroupName, AzureLocation location, ValidateCrossRegionRestoreRequestObject validateCrossRegionRestoreRequestObject) + { + 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.DataProtection/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/validateCrossRegionRestore", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateValidateCrossRegionRestoreRequest(string subscriptionId, string resourceGroupName, AzureLocation location, ValidateCrossRegionRestoreRequestObject validateCrossRegionRestoreRequestObject) { var message = _pipeline.CreateMessage(); @@ -686,6 +811,23 @@ public Response ValidateCrossRegionRestore(string subscriptionId, string resourc } } + internal RequestUriBuilder CreateTriggerRehydrateRequestUri(string subscriptionId, string resourceGroupName, string vaultName, string backupInstanceName, BackupRehydrationContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DataProtection/backupVaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/backupInstances/", false); + uri.AppendPath(backupInstanceName, true); + uri.AppendPath("/rehydrate", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateTriggerRehydrateRequest(string subscriptionId, string resourceGroupName, string vaultName, string backupInstanceName, BackupRehydrationContent content) { var message = _pipeline.CreateMessage(); @@ -771,6 +913,23 @@ public Response TriggerRehydrate(string subscriptionId, string resourceGroupName } } + internal RequestUriBuilder CreateTriggerRestoreRequestUri(string subscriptionId, string resourceGroupName, string vaultName, string backupInstanceName, BackupRestoreContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DataProtection/backupVaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/backupInstances/", false); + uri.AppendPath(backupInstanceName, true); + uri.AppendPath("/restore", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateTriggerRestoreRequest(string subscriptionId, string resourceGroupName, string vaultName, string backupInstanceName, BackupRestoreContent content) { var message = _pipeline.CreateMessage(); @@ -856,6 +1015,23 @@ public Response TriggerRestore(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateResumeBackupsRequestUri(string subscriptionId, string resourceGroupName, string vaultName, string backupInstanceName) + { + 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.DataProtection/backupVaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/backupInstances/", false); + uri.AppendPath(backupInstanceName, true); + uri.AppendPath("/resumeBackups", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateResumeBackupsRequest(string subscriptionId, string resourceGroupName, string vaultName, string backupInstanceName) { var message = _pipeline.CreateMessage(); @@ -933,6 +1109,23 @@ public Response ResumeBackups(string subscriptionId, string resourceGroupName, s } } + internal RequestUriBuilder CreateResumeProtectionRequestUri(string subscriptionId, string resourceGroupName, string vaultName, string backupInstanceName) + { + 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.DataProtection/backupVaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/backupInstances/", false); + uri.AppendPath(backupInstanceName, true); + uri.AppendPath("/resumeProtection", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateResumeProtectionRequest(string subscriptionId, string resourceGroupName, string vaultName, string backupInstanceName) { var message = _pipeline.CreateMessage(); @@ -1010,6 +1203,23 @@ public Response ResumeProtection(string subscriptionId, string resourceGroupName } } + internal RequestUriBuilder CreateStopProtectionRequestUri(string subscriptionId, string resourceGroupName, string vaultName, string backupInstanceName) + { + 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.DataProtection/backupVaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/backupInstances/", false); + uri.AppendPath(backupInstanceName, true); + uri.AppendPath("/stopProtection", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStopProtectionRequest(string subscriptionId, string resourceGroupName, string vaultName, string backupInstanceName) { var message = _pipeline.CreateMessage(); @@ -1087,6 +1297,23 @@ public Response StopProtection(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateSuspendBackupsRequestUri(string subscriptionId, string resourceGroupName, string vaultName, string backupInstanceName) + { + 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.DataProtection/backupVaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/backupInstances/", false); + uri.AppendPath(backupInstanceName, true); + uri.AppendPath("/suspendBackups", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateSuspendBackupsRequest(string subscriptionId, string resourceGroupName, string vaultName, string backupInstanceName) { var message = _pipeline.CreateMessage(); @@ -1164,6 +1391,23 @@ public Response SuspendBackups(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateSyncBackupInstanceRequestUri(string subscriptionId, string resourceGroupName, string vaultName, string backupInstanceName, BackupInstanceSyncContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DataProtection/backupVaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/backupInstances/", false); + uri.AppendPath(backupInstanceName, true); + uri.AppendPath("/sync", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateSyncBackupInstanceRequest(string subscriptionId, string resourceGroupName, string vaultName, string backupInstanceName, BackupInstanceSyncContent content) { var message = _pipeline.CreateMessage(); @@ -1255,6 +1499,23 @@ public Response SyncBackupInstance(string subscriptionId, string resourceGroupNa } } + internal RequestUriBuilder CreateValidateForRestoreRequestUri(string subscriptionId, string resourceGroupName, string vaultName, string backupInstanceName, BackupValidateRestoreContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DataProtection/backupVaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/backupInstances/", false); + uri.AppendPath(backupInstanceName, true); + uri.AppendPath("/validateRestore", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateValidateForRestoreRequest(string subscriptionId, string resourceGroupName, string vaultName, string backupInstanceName, BackupValidateRestoreContent content) { var message = _pipeline.CreateMessage(); @@ -1340,6 +1601,14 @@ public Response ValidateForRestore(string subscriptionId, string resourceGroupNa } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string vaultName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string vaultName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/RestOperations/BackupPoliciesRestOperations.cs b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/RestOperations/BackupPoliciesRestOperations.cs index 578c361a52e7..b52b6c962e1b 100644 --- a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/RestOperations/BackupPoliciesRestOperations.cs +++ b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/RestOperations/BackupPoliciesRestOperations.cs @@ -37,6 +37,21 @@ public BackupPoliciesRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string vaultName) + { + 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.DataProtection/backupVaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/backupPolicies", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string vaultName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response List(string subscriptionId, string } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string vaultName, string backupPolicyName) + { + 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.DataProtection/backupVaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/backupPolicies/", false); + uri.AppendPath(backupPolicyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string vaultName, string backupPolicyName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscriptionId, strin } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string vaultName, string backupPolicyName, DataProtectionBackupPolicyData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DataProtection/backupVaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/backupPolicies/", false); + uri.AppendPath(backupPolicyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string vaultName, string backupPolicyName, DataProtectionBackupPolicyData data) { var message = _pipeline.CreateMessage(); @@ -296,6 +343,22 @@ public Response CreateOrUpdate(string subscripti } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string vaultName, string backupPolicyName) + { + 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.DataProtection/backupVaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/backupPolicies/", false); + uri.AppendPath(backupPolicyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string vaultName, string backupPolicyName) { var message = _pipeline.CreateMessage(); @@ -372,6 +435,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string v } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string vaultName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string vaultName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/RestOperations/BackupVaultsRestOperations.cs b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/RestOperations/BackupVaultsRestOperations.cs index c3724155bdf1..d988a8d1a226 100644 --- a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/RestOperations/BackupVaultsRestOperations.cs +++ b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/RestOperations/BackupVaultsRestOperations.cs @@ -37,6 +37,17 @@ public BackupVaultsRestOperations(HttpPipeline pipeline, string applicationId, U _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetInSubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.DataProtection/backupVaults", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetInSubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,19 @@ public Response GetInSubscription(string subscriptionId } } + internal RequestUriBuilder CreateGetInResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.DataProtection/backupVaults", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetInResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -177,6 +201,20 @@ public Response GetInResourceGroup(string subscriptionI } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string vaultName) + { + 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.DataProtection/backupVaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string vaultName) { var message = _pipeline.CreateMessage(); @@ -259,6 +297,20 @@ public Response Get(string subscriptionId, string } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string vaultName, DataProtectionBackupVaultData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DataProtection/backupVaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string vaultName, DataProtectionBackupVaultData data) { var message = _pipeline.CreateMessage(); @@ -337,6 +389,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string vaultName) + { + 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.DataProtection/backupVaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string vaultName) { var message = _pipeline.CreateMessage(); @@ -409,6 +475,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string v } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string vaultName, DataProtectionBackupVaultPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DataProtection/backupVaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string vaultName, DataProtectionBackupVaultPatch patch) { var message = _pipeline.CreateMessage(); @@ -487,6 +567,21 @@ public Response Update(string subscriptionId, string resourceGroupName, string v } } + internal RequestUriBuilder CreateCheckNameAvailabilityRequestUri(string subscriptionId, string resourceGroupName, AzureLocation location, DataProtectionBackupNameAvailabilityContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DataProtection/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/checkNameAvailability", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCheckNameAvailabilityRequest(string subscriptionId, string resourceGroupName, AzureLocation location, DataProtectionBackupNameAvailabilityContent content) { var message = _pipeline.CreateMessage(); @@ -572,6 +667,14 @@ public Response CheckNameAvailabilit } } + internal RequestUriBuilder CreateGetInSubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateGetInSubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -640,6 +743,14 @@ public Response GetInSubscriptionNextPage(string nextLi } } + internal RequestUriBuilder CreateGetInResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateGetInResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/RestOperations/DataProtectionRestOperations.cs b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/RestOperations/DataProtectionRestOperations.cs index 740c3d9b3727..f4b1c04d8528 100644 --- a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/RestOperations/DataProtectionRestOperations.cs +++ b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/RestOperations/DataProtectionRestOperations.cs @@ -37,6 +37,19 @@ public DataProtectionRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCheckFeatureSupportRequestUri(string subscriptionId, AzureLocation location, BackupFeatureValidationContentBase content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.DataProtection/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/checkFeatureSupport", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCheckFeatureSupportRequest(string subscriptionId, AzureLocation location, BackupFeatureValidationContentBase content) { var message = _pipeline.CreateMessage(); diff --git a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/RestOperations/DeletedBackupInstancesRestOperations.cs b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/RestOperations/DeletedBackupInstancesRestOperations.cs index 22b5532ae2c7..b997295f0799 100644 --- a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/RestOperations/DeletedBackupInstancesRestOperations.cs +++ b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/RestOperations/DeletedBackupInstancesRestOperations.cs @@ -37,6 +37,21 @@ public DeletedBackupInstancesRestOperations(HttpPipeline pipeline, string applic _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string vaultName) + { + 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.DataProtection/backupVaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/deletedBackupInstances", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string vaultName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response List(string subscriptionId, s } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string vaultName, string backupInstanceName) + { + 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.DataProtection/backupVaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/deletedBackupInstances/", false); + uri.AppendPath(backupInstanceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string vaultName, string backupInstanceName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,23 @@ public Response Get(string subscription } } + internal RequestUriBuilder CreateUndeleteRequestUri(string subscriptionId, string resourceGroupName, string vaultName, string backupInstanceName) + { + 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.DataProtection/backupVaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/deletedBackupInstances/", false); + uri.AppendPath(backupInstanceName, true); + uri.AppendPath("/undelete", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUndeleteRequest(string subscriptionId, string resourceGroupName, string vaultName, string backupInstanceName) { var message = _pipeline.CreateMessage(); @@ -279,6 +327,14 @@ public Response Undelete(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string vaultName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string vaultName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/RestOperations/DppResourceGuardProxyRestOperations.cs b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/RestOperations/DppResourceGuardProxyRestOperations.cs index ea6dc3302e13..a2e6c5ffb650 100644 --- a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/RestOperations/DppResourceGuardProxyRestOperations.cs +++ b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/RestOperations/DppResourceGuardProxyRestOperations.cs @@ -37,6 +37,21 @@ public DppResourceGuardProxyRestOperations(HttpPipeline pipeline, string applica _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string vaultName) + { + 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.DataProtection/backupVaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/backupResourceGuardProxies", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string vaultName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response List(string subscriptionId, } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string vaultName, string resourceGuardProxyName) + { + 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.DataProtection/backupVaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/backupResourceGuardProxies/", false); + uri.AppendPath(resourceGuardProxyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string vaultName, string resourceGuardProxyName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscriptionId, s } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string vaultName, string resourceGuardProxyName, ResourceGuardProxyBaseResourceData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DataProtection/backupVaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/backupResourceGuardProxies/", false); + uri.AppendPath(resourceGuardProxyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string vaultName, string resourceGuardProxyName, ResourceGuardProxyBaseResourceData data) { var message = _pipeline.CreateMessage(); @@ -296,6 +343,22 @@ public Response CreateOrUpdate(string subscr } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string vaultName, string resourceGuardProxyName) + { + 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.DataProtection/backupVaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/backupResourceGuardProxies/", false); + uri.AppendPath(resourceGuardProxyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string vaultName, string resourceGuardProxyName) { var message = _pipeline.CreateMessage(); @@ -372,6 +435,23 @@ public Response Delete(string subscriptionId, string resourceGroupName, string v } } + internal RequestUriBuilder CreateUnlockDeleteRequestUri(string subscriptionId, string resourceGroupName, string vaultName, string resourceGuardProxyName, DataProtectionUnlockDeleteContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DataProtection/backupVaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/backupResourceGuardProxies/", false); + uri.AppendPath(resourceGuardProxyName, true); + uri.AppendPath("/unlockDelete", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUnlockDeleteRequest(string subscriptionId, string resourceGroupName, string vaultName, string resourceGuardProxyName, DataProtectionUnlockDeleteContent content) { var message = _pipeline.CreateMessage(); @@ -465,6 +545,14 @@ public Response UnlockDelete(string subscripti } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string vaultName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string vaultName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/RestOperations/ExportJobsRestOperations.cs b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/RestOperations/ExportJobsRestOperations.cs index 12b11ae217d4..c0706997324e 100644 --- a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/RestOperations/ExportJobsRestOperations.cs +++ b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/RestOperations/ExportJobsRestOperations.cs @@ -35,6 +35,21 @@ public ExportJobsRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateTriggerRequestUri(string subscriptionId, string resourceGroupName, string vaultName) + { + 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.DataProtection/backupVaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/exportBackupJobs", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateTriggerRequest(string subscriptionId, string resourceGroupName, string vaultName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/RestOperations/FetchCrossRegionRestoreJobRestOperations.cs b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/RestOperations/FetchCrossRegionRestoreJobRestOperations.cs index db5651e3f5aa..67a9b8fd4d72 100644 --- a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/RestOperations/FetchCrossRegionRestoreJobRestOperations.cs +++ b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/RestOperations/FetchCrossRegionRestoreJobRestOperations.cs @@ -37,6 +37,21 @@ public FetchCrossRegionRestoreJobRestOperations(HttpPipeline pipeline, string ap _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, AzureLocation location, CrossRegionRestoreJobContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DataProtection/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/fetchCrossRegionRestoreJob", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, AzureLocation location, CrossRegionRestoreJobContent content) { var message = _pipeline.CreateMessage(); diff --git a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/RestOperations/FetchCrossRegionRestoreJobsRestOperations.cs b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/RestOperations/FetchCrossRegionRestoreJobsRestOperations.cs index 212659cd066e..e4c9d6308fe2 100644 --- a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/RestOperations/FetchCrossRegionRestoreJobsRestOperations.cs +++ b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/RestOperations/FetchCrossRegionRestoreJobsRestOperations.cs @@ -37,6 +37,25 @@ public FetchCrossRegionRestoreJobsRestOperations(HttpPipeline pipeline, string a _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, AzureLocation location, CrossRegionRestoreJobsContent content, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DataProtection/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/fetchCrossRegionRestoreJobs", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, AzureLocation location, CrossRegionRestoreJobsContent content, string filter) { var message = _pipeline.CreateMessage(); @@ -128,6 +147,14 @@ public Response List(string subscriptionId, string r } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, AzureLocation location, CrossRegionRestoreJobsContent content, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, AzureLocation location, CrossRegionRestoreJobsContent content, string filter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/RestOperations/FetchSecondaryRecoveryPointsRestOperations.cs b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/RestOperations/FetchSecondaryRecoveryPointsRestOperations.cs index 780045152376..c6fe04ae1740 100644 --- a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/RestOperations/FetchSecondaryRecoveryPointsRestOperations.cs +++ b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/RestOperations/FetchSecondaryRecoveryPointsRestOperations.cs @@ -37,6 +37,29 @@ public FetchSecondaryRecoveryPointsRestOperations(HttpPipeline pipeline, string _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, AzureLocation location, FetchSecondaryRPsRequestContent content, string filter, string skipToken) + { + 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.DataProtection/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/fetchSecondaryRecoveryPoints", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, AzureLocation location, FetchSecondaryRPsRequestContent content, string filter, string skipToken) { var message = _pipeline.CreateMessage(); @@ -134,6 +157,14 @@ public Response List(string subscriptionId } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, AzureLocation location, FetchSecondaryRPsRequestContent content, string filter, string skipToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, AzureLocation location, FetchSecondaryRPsRequestContent content, string filter, string skipToken) { var message = _pipeline.CreateMessage(); diff --git a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/RestOperations/JobsRestOperations.cs b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/RestOperations/JobsRestOperations.cs index 16104db2d522..cc0b475fe825 100644 --- a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/RestOperations/JobsRestOperations.cs +++ b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/RestOperations/JobsRestOperations.cs @@ -37,6 +37,21 @@ public JobsRestOperations(HttpPipeline pipeline, string applicationId, Uri endpo _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string vaultName) + { + 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.DataProtection/backupVaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/backupJobs", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string vaultName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response List(string subscriptionId, string r } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string vaultName, string jobId) + { + 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.DataProtection/backupVaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/backupJobs/", false); + uri.AppendPath(jobId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string vaultName, string jobId) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,14 @@ public Response Get(string subscriptionId, string r } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string vaultName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string vaultName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/RestOperations/RecoveryPointsRestOperations.cs b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/RestOperations/RecoveryPointsRestOperations.cs index ef984ff278c4..653ae8af8419 100644 --- a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/RestOperations/RecoveryPointsRestOperations.cs +++ b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/RestOperations/RecoveryPointsRestOperations.cs @@ -37,6 +37,31 @@ public RecoveryPointsRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string vaultName, string backupInstanceName, string filter, string skipToken) + { + 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.DataProtection/backupVaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/backupInstances/", false); + uri.AppendPath(backupInstanceName, true); + uri.AppendPath("/recoveryPoints", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string vaultName, string backupInstanceName, string filter, string skipToken) { var message = _pipeline.CreateMessage(); @@ -134,6 +159,24 @@ public Response List(string subscriptionId } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string vaultName, string backupInstanceName, string recoveryPointId) + { + 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.DataProtection/backupVaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/backupInstances/", false); + uri.AppendPath(backupInstanceName, true); + uri.AppendPath("/recoveryPoints/", false); + uri.AppendPath(recoveryPointId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string vaultName, string backupInstanceName, string recoveryPointId) { var message = _pipeline.CreateMessage(); @@ -228,6 +271,14 @@ public Response Get(string subscriptionId } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string vaultName, string backupInstanceName, string filter, string skipToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string vaultName, string backupInstanceName, string filter, string skipToken) { var message = _pipeline.CreateMessage(); diff --git a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/RestOperations/ResourceGuardsRestOperations.cs b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/RestOperations/ResourceGuardsRestOperations.cs index 32255df5afeb..899e7a0f877d 100644 --- a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/RestOperations/ResourceGuardsRestOperations.cs +++ b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/RestOperations/ResourceGuardsRestOperations.cs @@ -37,6 +37,17 @@ public ResourceGuardsRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetResourcesInSubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.DataProtection/resourceGuards", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetResourcesInSubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,19 @@ public Response GetResourcesInSubscription(string sub } } + internal RequestUriBuilder CreateGetResourcesInResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.DataProtection/resourceGuards", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetResourcesInResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -177,6 +201,20 @@ public Response GetResourcesInResourceGroup(string su } } + internal RequestUriBuilder CreatePutRequestUri(string subscriptionId, string resourceGroupName, string resourceGuardsName, ResourceGuardData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DataProtection/resourceGuards/", false); + uri.AppendPath(resourceGuardsName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreatePutRequest(string subscriptionId, string resourceGroupName, string resourceGuardsName, ResourceGuardData data) { var message = _pipeline.CreateMessage(); @@ -265,6 +303,20 @@ public Response Put(string subscriptionId, string resourceGro } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string resourceGuardsName) + { + 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.DataProtection/resourceGuards/", false); + uri.AppendPath(resourceGuardsName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string resourceGuardsName) { var message = _pipeline.CreateMessage(); @@ -347,6 +399,20 @@ public Response Get(string subscriptionId, string resourceGro } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string resourceGuardsName) + { + 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.DataProtection/resourceGuards/", false); + uri.AppendPath(resourceGuardsName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string resourceGuardsName) { var message = _pipeline.CreateMessage(); @@ -417,6 +483,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreatePatchRequestUri(string subscriptionId, string resourceGroupName, string resourceGuardsName, ResourceGuardPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DataProtection/resourceGuards/", false); + uri.AppendPath(resourceGuardsName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreatePatchRequest(string subscriptionId, string resourceGroupName, string resourceGuardsName, ResourceGuardPatch patch) { var message = _pipeline.CreateMessage(); @@ -503,6 +583,21 @@ public Response Patch(string subscriptionId, string resourceG } } + internal RequestUriBuilder CreateGetDisableSoftDeleteRequestsObjectsRequestUri(string subscriptionId, string resourceGroupName, string resourceGuardsName) + { + 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.DataProtection/resourceGuards/", false); + uri.AppendPath(resourceGuardsName, true); + uri.AppendPath("/disableSoftDeleteRequests", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetDisableSoftDeleteRequestsObjectsRequest(string subscriptionId, string resourceGroupName, string resourceGuardsName) { var message = _pipeline.CreateMessage(); @@ -582,6 +677,21 @@ public Response GetDisableSoftDeleteRequestsObjects(string } } + internal RequestUriBuilder CreateGetDeleteResourceGuardProxyRequestsObjectsRequestUri(string subscriptionId, string resourceGroupName, string resourceGuardsName) + { + 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.DataProtection/resourceGuards/", false); + uri.AppendPath(resourceGuardsName, true); + uri.AppendPath("/deleteResourceGuardProxyRequests", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetDeleteResourceGuardProxyRequestsObjectsRequest(string subscriptionId, string resourceGroupName, string resourceGuardsName) { var message = _pipeline.CreateMessage(); @@ -661,6 +771,21 @@ public Response GetDeleteResourceGuardProxyRequestsObjects( } } + internal RequestUriBuilder CreateGetBackupSecurityPinRequestsObjectsRequestUri(string subscriptionId, string resourceGroupName, string resourceGuardsName) + { + 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.DataProtection/resourceGuards/", false); + uri.AppendPath(resourceGuardsName, true); + uri.AppendPath("/getBackupSecurityPINRequests", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetBackupSecurityPinRequestsObjectsRequest(string subscriptionId, string resourceGroupName, string resourceGuardsName) { var message = _pipeline.CreateMessage(); @@ -740,6 +865,21 @@ public Response GetBackupSecurityPinRequestsObjects(string } } + internal RequestUriBuilder CreateGetDeleteProtectedItemRequestsObjectsRequestUri(string subscriptionId, string resourceGroupName, string resourceGuardsName) + { + 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.DataProtection/resourceGuards/", false); + uri.AppendPath(resourceGuardsName, true); + uri.AppendPath("/deleteProtectedItemRequests", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetDeleteProtectedItemRequestsObjectsRequest(string subscriptionId, string resourceGroupName, string resourceGuardsName) { var message = _pipeline.CreateMessage(); @@ -819,6 +959,21 @@ public Response GetDeleteProtectedItemRequestsObjects(strin } } + internal RequestUriBuilder CreateGetUpdateProtectionPolicyRequestsObjectsRequestUri(string subscriptionId, string resourceGroupName, string resourceGuardsName) + { + 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.DataProtection/resourceGuards/", false); + uri.AppendPath(resourceGuardsName, true); + uri.AppendPath("/updateProtectionPolicyRequests", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetUpdateProtectionPolicyRequestsObjectsRequest(string subscriptionId, string resourceGroupName, string resourceGuardsName) { var message = _pipeline.CreateMessage(); @@ -898,6 +1053,21 @@ public Response GetUpdateProtectionPolicyRequestsObjects(st } } + internal RequestUriBuilder CreateGetUpdateProtectedItemRequestsObjectsRequestUri(string subscriptionId, string resourceGroupName, string resourceGuardsName) + { + 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.DataProtection/resourceGuards/", false); + uri.AppendPath(resourceGuardsName, true); + uri.AppendPath("/updateProtectedItemRequests", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetUpdateProtectedItemRequestsObjectsRequest(string subscriptionId, string resourceGroupName, string resourceGuardsName) { var message = _pipeline.CreateMessage(); @@ -977,6 +1147,22 @@ public Response GetUpdateProtectedItemRequestsObjects(strin } } + internal RequestUriBuilder CreateGetDefaultDisableSoftDeleteRequestsObjectRequestUri(string subscriptionId, string resourceGroupName, string resourceGuardsName, string requestName) + { + 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.DataProtection/resourceGuards/", false); + uri.AppendPath(resourceGuardsName, true); + uri.AppendPath("/disableSoftDeleteRequests/", false); + uri.AppendPath(requestName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetDefaultDisableSoftDeleteRequestsObjectRequest(string subscriptionId, string resourceGroupName, string resourceGuardsName, string requestName) { var message = _pipeline.CreateMessage(); @@ -1061,6 +1247,22 @@ public Response GetDefaultDisableSoftDeleteReq } } + internal RequestUriBuilder CreateGetDefaultDeleteResourceGuardProxyRequestsObjectRequestUri(string subscriptionId, string resourceGroupName, string resourceGuardsName, string requestName) + { + 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.DataProtection/resourceGuards/", false); + uri.AppendPath(resourceGuardsName, true); + uri.AppendPath("/deleteResourceGuardProxyRequests/", false); + uri.AppendPath(requestName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetDefaultDeleteResourceGuardProxyRequestsObjectRequest(string subscriptionId, string resourceGroupName, string resourceGuardsName, string requestName) { var message = _pipeline.CreateMessage(); @@ -1145,6 +1347,22 @@ public Response GetDefaultDeleteResourceGuardP } } + internal RequestUriBuilder CreateGetDefaultBackupSecurityPinRequestsObjectRequestUri(string subscriptionId, string resourceGroupName, string resourceGuardsName, string requestName) + { + 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.DataProtection/resourceGuards/", false); + uri.AppendPath(resourceGuardsName, true); + uri.AppendPath("/getBackupSecurityPINRequests/", false); + uri.AppendPath(requestName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetDefaultBackupSecurityPinRequestsObjectRequest(string subscriptionId, string resourceGroupName, string resourceGuardsName, string requestName) { var message = _pipeline.CreateMessage(); @@ -1229,6 +1447,22 @@ public Response GetDefaultBackupSecurityPinReq } } + internal RequestUriBuilder CreateGetDefaultDeleteProtectedItemRequestsObjectRequestUri(string subscriptionId, string resourceGroupName, string resourceGuardsName, string requestName) + { + 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.DataProtection/resourceGuards/", false); + uri.AppendPath(resourceGuardsName, true); + uri.AppendPath("/deleteProtectedItemRequests/", false); + uri.AppendPath(requestName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetDefaultDeleteProtectedItemRequestsObjectRequest(string subscriptionId, string resourceGroupName, string resourceGuardsName, string requestName) { var message = _pipeline.CreateMessage(); @@ -1313,6 +1547,22 @@ public Response GetDefaultDeleteProtectedItemR } } + internal RequestUriBuilder CreateGetDefaultUpdateProtectionPolicyRequestsObjectRequestUri(string subscriptionId, string resourceGroupName, string resourceGuardsName, string requestName) + { + 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.DataProtection/resourceGuards/", false); + uri.AppendPath(resourceGuardsName, true); + uri.AppendPath("/updateProtectionPolicyRequests/", false); + uri.AppendPath(requestName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetDefaultUpdateProtectionPolicyRequestsObjectRequest(string subscriptionId, string resourceGroupName, string resourceGuardsName, string requestName) { var message = _pipeline.CreateMessage(); @@ -1397,6 +1647,22 @@ public Response GetDefaultUpdateProtectionPoli } } + internal RequestUriBuilder CreateGetDefaultUpdateProtectedItemRequestsObjectRequestUri(string subscriptionId, string resourceGroupName, string resourceGuardsName, string requestName) + { + 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.DataProtection/resourceGuards/", false); + uri.AppendPath(resourceGuardsName, true); + uri.AppendPath("/updateProtectedItemRequests/", false); + uri.AppendPath(requestName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetDefaultUpdateProtectedItemRequestsObjectRequest(string subscriptionId, string resourceGroupName, string resourceGuardsName, string requestName) { var message = _pipeline.CreateMessage(); @@ -1481,6 +1747,14 @@ public Response GetDefaultUpdateProtectedItemR } } + internal RequestUriBuilder CreateGetResourcesInSubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateGetResourcesInSubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -1549,6 +1823,14 @@ public Response GetResourcesInSubscriptionNextPage(st } } + internal RequestUriBuilder CreateGetResourcesInResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateGetResourcesInResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -1621,6 +1903,14 @@ public Response GetResourcesInResourceGroupNextPage(s } } + internal RequestUriBuilder CreateGetDisableSoftDeleteRequestsObjectsNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string resourceGuardsName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateGetDisableSoftDeleteRequestsObjectsNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string resourceGuardsName) { var message = _pipeline.CreateMessage(); @@ -1697,6 +1987,14 @@ public Response GetDisableSoftDeleteRequestsObjectsNextPage } } + internal RequestUriBuilder CreateGetDeleteResourceGuardProxyRequestsObjectsNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string resourceGuardsName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateGetDeleteResourceGuardProxyRequestsObjectsNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string resourceGuardsName) { var message = _pipeline.CreateMessage(); @@ -1773,6 +2071,14 @@ public Response GetDeleteResourceGuardProxyRequestsObjectsN } } + internal RequestUriBuilder CreateGetBackupSecurityPinRequestsObjectsNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string resourceGuardsName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateGetBackupSecurityPinRequestsObjectsNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string resourceGuardsName) { var message = _pipeline.CreateMessage(); @@ -1849,6 +2155,14 @@ public Response GetBackupSecurityPinRequestsObjectsNextPage } } + internal RequestUriBuilder CreateGetDeleteProtectedItemRequestsObjectsNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string resourceGuardsName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateGetDeleteProtectedItemRequestsObjectsNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string resourceGuardsName) { var message = _pipeline.CreateMessage(); @@ -1925,6 +2239,14 @@ public Response GetDeleteProtectedItemRequestsObjectsNextPa } } + internal RequestUriBuilder CreateGetUpdateProtectionPolicyRequestsObjectsNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string resourceGuardsName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateGetUpdateProtectionPolicyRequestsObjectsNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string resourceGuardsName) { var message = _pipeline.CreateMessage(); @@ -2001,6 +2323,14 @@ public Response GetUpdateProtectionPolicyRequestsObjectsNex } } + internal RequestUriBuilder CreateGetUpdateProtectedItemRequestsObjectsNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string resourceGuardsName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateGetUpdateProtectedItemRequestsObjectsNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string resourceGuardsName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/RestOperations/RestorableTimeRangesRestOperations.cs b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/RestOperations/RestorableTimeRangesRestOperations.cs index e1c99b086ff2..992c51582175 100644 --- a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/RestOperations/RestorableTimeRangesRestOperations.cs +++ b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/RestOperations/RestorableTimeRangesRestOperations.cs @@ -37,6 +37,23 @@ public RestorableTimeRangesRestOperations(HttpPipeline pipeline, string applicat _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateFindRequestUri(string subscriptionId, string resourceGroupName, string vaultName, string backupInstanceName, BackupFindRestorableTimeRangeContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DataProtection/backupVaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/backupInstances/", false); + uri.AppendPath(backupInstanceName, true); + uri.AppendPath("/findRestorableTimeRanges", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateFindRequest(string subscriptionId, string resourceGroupName, string vaultName, string backupInstanceName, BackupFindRestorableTimeRangeContent content) { var message = _pipeline.CreateMessage(); diff --git a/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/DataShareCollection.cs b/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/DataShareCollection.cs index ef5727d1c0ff..3541b50b648a 100644 --- a/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/DataShareCollection.cs +++ b/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/DataShareCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> CreateOrUpdateAsync(W try { var response = await _dataShareSharesRestClient.CreateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, shareName, data, cancellationToken).ConfigureAwait(false); - var operation = new DataShareArmOperation(Response.FromValue(new DataShareResource(Client, response), response.GetRawResponse())); + var uri = _dataShareSharesRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, shareName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataShareArmOperation(Response.FromValue(new DataShareResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUnti try { var response = _dataShareSharesRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, shareName, data, cancellationToken); - var operation = new DataShareArmOperation(Response.FromValue(new DataShareResource(Client, response), response.GetRawResponse())); + var uri = _dataShareSharesRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, shareName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataShareArmOperation(Response.FromValue(new DataShareResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/DataShareInvitationCollection.cs b/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/DataShareInvitationCollection.cs index 28126adf5ff0..b5d427368f11 100644 --- a/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/DataShareInvitationCollection.cs +++ b/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/DataShareInvitationCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> CreateOrUpd try { var response = await _dataShareInvitationInvitationsRestClient.CreateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, invitationName, data, cancellationToken).ConfigureAwait(false); - var operation = new DataShareArmOperation(Response.FromValue(new DataShareInvitationResource(Client, response), response.GetRawResponse())); + var uri = _dataShareInvitationInvitationsRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, invitationName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataShareArmOperation(Response.FromValue(new DataShareInvitationResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUnti try { var response = _dataShareInvitationInvitationsRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, invitationName, data, cancellationToken); - var operation = new DataShareArmOperation(Response.FromValue(new DataShareInvitationResource(Client, response), response.GetRawResponse())); + var uri = _dataShareInvitationInvitationsRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, invitationName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataShareArmOperation(Response.FromValue(new DataShareInvitationResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/DataShareInvitationResource.cs b/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/DataShareInvitationResource.cs index e18bb3e7e110..345a8d07e3c0 100644 --- a/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/DataShareInvitationResource.cs +++ b/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/DataShareInvitationResource.cs @@ -201,7 +201,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _dataShareInvitationInvitationsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new DataShareArmOperation(response); + var uri = _dataShareInvitationInvitationsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataShareArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -243,7 +245,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _dataShareInvitationInvitationsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new DataShareArmOperation(response); + var uri = _dataShareInvitationInvitationsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataShareArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -289,7 +293,9 @@ public virtual async Task> UpdateAsync try { var response = await _dataShareInvitationInvitationsRestClient.CreateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new DataShareArmOperation(Response.FromValue(new DataShareInvitationResource(Client, response), response.GetRawResponse())); + var uri = _dataShareInvitationInvitationsRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataShareArmOperation(Response.FromValue(new DataShareInvitationResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -335,7 +341,9 @@ public virtual ArmOperation Update(WaitUntil waitUn try { var response = _dataShareInvitationInvitationsRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new DataShareArmOperation(Response.FromValue(new DataShareInvitationResource(Client, response), response.GetRawResponse())); + var uri = _dataShareInvitationInvitationsRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataShareArmOperation(Response.FromValue(new DataShareInvitationResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/DataShareResource.cs b/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/DataShareResource.cs index e8b4f479c93e..61a4d46d6643 100644 --- a/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/DataShareResource.cs +++ b/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/DataShareResource.cs @@ -566,7 +566,9 @@ public virtual async Task> UpdateAsync(WaitUntil try { var response = await _dataShareSharesRestClient.CreateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new DataShareArmOperation(Response.FromValue(new DataShareResource(Client, response), response.GetRawResponse())); + var uri = _dataShareSharesRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataShareArmOperation(Response.FromValue(new DataShareResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -612,7 +614,9 @@ public virtual ArmOperation Update(WaitUntil waitUntil, DataS try { var response = _dataShareSharesRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new DataShareArmOperation(Response.FromValue(new DataShareResource(Client, response), response.GetRawResponse())); + var uri = _dataShareSharesRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataShareArmOperation(Response.FromValue(new DataShareResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/DataShareSynchronizationSettingCollection.cs b/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/DataShareSynchronizationSettingCollection.cs index 7bbfa7fc63b8..9f8fa314202b 100644 --- a/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/DataShareSynchronizationSettingCollection.cs +++ b/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/DataShareSynchronizationSettingCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> try { var response = await _dataShareSynchronizationSettingSynchronizationSettingsRestClient.CreateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, synchronizationSettingName, data, cancellationToken).ConfigureAwait(false); - var operation = new DataShareArmOperation(Response.FromValue(new DataShareSynchronizationSettingResource(Client, response), response.GetRawResponse())); + var uri = _dataShareSynchronizationSettingSynchronizationSettingsRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, synchronizationSettingName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataShareArmOperation(Response.FromValue(new DataShareSynchronizationSettingResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpd try { var response = _dataShareSynchronizationSettingSynchronizationSettingsRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, synchronizationSettingName, data, cancellationToken); - var operation = new DataShareArmOperation(Response.FromValue(new DataShareSynchronizationSettingResource(Client, response), response.GetRawResponse())); + var uri = _dataShareSynchronizationSettingSynchronizationSettingsRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, synchronizationSettingName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataShareArmOperation(Response.FromValue(new DataShareSynchronizationSettingResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/DataShareSynchronizationSettingResource.cs b/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/DataShareSynchronizationSettingResource.cs index f02cb16acb78..14f1ddd3d4d2 100644 --- a/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/DataShareSynchronizationSettingResource.cs +++ b/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/DataShareSynchronizationSettingResource.cs @@ -290,7 +290,9 @@ public virtual async Task> try { var response = await _dataShareSynchronizationSettingSynchronizationSettingsRestClient.CreateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new DataShareArmOperation(Response.FromValue(new DataShareSynchronizationSettingResource(Client, response), response.GetRawResponse())); + var uri = _dataShareSynchronizationSettingSynchronizationSettingsRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataShareArmOperation(Response.FromValue(new DataShareSynchronizationSettingResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -336,7 +338,9 @@ public virtual ArmOperation Update(Wait try { var response = _dataShareSynchronizationSettingSynchronizationSettingsRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new DataShareArmOperation(Response.FromValue(new DataShareSynchronizationSettingResource(Client, response), response.GetRawResponse())); + var uri = _dataShareSynchronizationSettingSynchronizationSettingsRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataShareArmOperation(Response.FromValue(new DataShareSynchronizationSettingResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/LongRunningOperation/DataShareArmOperation.cs b/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/LongRunningOperation/DataShareArmOperation.cs index 634a656e599e..25de163af753 100644 --- a/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/LongRunningOperation/DataShareArmOperation.cs +++ b/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/LongRunningOperation/DataShareArmOperation.cs @@ -20,21 +20,24 @@ internal class DataShareArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of DataShareArmOperation for mocking. protected DataShareArmOperation() { } - internal DataShareArmOperation(Response response) + internal DataShareArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal DataShareArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "DataShareArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal DataShareArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/LongRunningOperation/DataShareArmOperationOfT.cs b/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/LongRunningOperation/DataShareArmOperationOfT.cs index 92fbbb3fce38..bd99fe61d206 100644 --- a/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/LongRunningOperation/DataShareArmOperationOfT.cs +++ b/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/LongRunningOperation/DataShareArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class DataShareArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of DataShareArmOperation for mocking. protected DataShareArmOperation() { } - internal DataShareArmOperation(Response response) + internal DataShareArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal DataShareArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "DataShareArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal DataShareArmOperation(IOperationSource source, ClientDiagnostics cli public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/Models/DataShareAccountResource.Serialization.cs b/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/Models/DataShareAccountResource.Serialization.cs new file mode 100644 index 000000000000..b123ad4f1fe4 --- /dev/null +++ b/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/Models/DataShareAccountResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DataShare +{ + public partial class DataShareAccountResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DataShareAccountData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DataShareAccountData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/Models/DataShareConsumerInvitationResource.Serialization.cs b/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/Models/DataShareConsumerInvitationResource.Serialization.cs new file mode 100644 index 000000000000..893787b060ca --- /dev/null +++ b/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/Models/DataShareConsumerInvitationResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DataShare +{ + public partial class DataShareConsumerInvitationResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DataShareConsumerInvitationData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DataShareConsumerInvitationData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/Models/DataShareInvitationResource.Serialization.cs b/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/Models/DataShareInvitationResource.Serialization.cs new file mode 100644 index 000000000000..b8fe15ccc34a --- /dev/null +++ b/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/Models/DataShareInvitationResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DataShare +{ + public partial class DataShareInvitationResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DataShareInvitationData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DataShareInvitationData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/Models/DataShareResource.Serialization.cs b/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/Models/DataShareResource.Serialization.cs new file mode 100644 index 000000000000..d15d00175aa0 --- /dev/null +++ b/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/Models/DataShareResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DataShare +{ + public partial class DataShareResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DataShareData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DataShareData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/Models/DataShareSynchronizationSettingResource.Serialization.cs b/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/Models/DataShareSynchronizationSettingResource.Serialization.cs new file mode 100644 index 000000000000..52b0bfc900ef --- /dev/null +++ b/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/Models/DataShareSynchronizationSettingResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DataShare +{ + public partial class DataShareSynchronizationSettingResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DataShareSynchronizationSettingData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DataShareSynchronizationSettingData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/Models/DataShareTriggerResource.Serialization.cs b/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/Models/DataShareTriggerResource.Serialization.cs new file mode 100644 index 000000000000..2198653198c0 --- /dev/null +++ b/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/Models/DataShareTriggerResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DataShare +{ + public partial class DataShareTriggerResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DataShareTriggerData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DataShareTriggerData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/Models/ProviderShareSubscriptionResource.Serialization.cs b/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/Models/ProviderShareSubscriptionResource.Serialization.cs new file mode 100644 index 000000000000..d8de41c2b520 --- /dev/null +++ b/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/Models/ProviderShareSubscriptionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DataShare +{ + public partial class ProviderShareSubscriptionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ProviderShareSubscriptionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ProviderShareSubscriptionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/Models/ShareDataSetMappingResource.Serialization.cs b/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/Models/ShareDataSetMappingResource.Serialization.cs new file mode 100644 index 000000000000..ae4f4d76c83c --- /dev/null +++ b/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/Models/ShareDataSetMappingResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DataShare +{ + public partial class ShareDataSetMappingResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ShareDataSetMappingData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ShareDataSetMappingData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/Models/ShareDataSetResource.Serialization.cs b/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/Models/ShareDataSetResource.Serialization.cs new file mode 100644 index 000000000000..9cdd952ddd37 --- /dev/null +++ b/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/Models/ShareDataSetResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DataShare +{ + public partial class ShareDataSetResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ShareDataSetData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ShareDataSetData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/Models/ShareSubscriptionResource.Serialization.cs b/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/Models/ShareSubscriptionResource.Serialization.cs new file mode 100644 index 000000000000..624a3649717c --- /dev/null +++ b/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/Models/ShareSubscriptionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DataShare +{ + public partial class ShareSubscriptionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ShareSubscriptionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ShareSubscriptionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/RestOperations/AccountsRestOperations.cs b/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/RestOperations/AccountsRestOperations.cs index 0686dd83ad6c..2d89cbd66422 100644 --- a/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/RestOperations/AccountsRestOperations.cs +++ b/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/RestOperations/AccountsRestOperations.cs @@ -37,6 +37,21 @@ public AccountsRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId, string skipToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.DataShare/accounts", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId, string skipToken) { var message = _pipeline.CreateMessage(); @@ -110,6 +125,20 @@ public Response ListBySubscription(string subscriptionId, string sk } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string accountName) + { + 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.DataShare/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); @@ -192,6 +221,20 @@ public Response Get(string subscriptionId, string resource } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string accountName, DataShareAccountData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DataShare/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string accountName, DataShareAccountData data) { var message = _pipeline.CreateMessage(); @@ -270,6 +313,20 @@ public Response Create(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string accountName) + { + 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.DataShare/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); @@ -342,6 +399,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string accountName, DataShareAccountPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DataShare/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string accountName, DataShareAccountPatch patch) { var message = _pipeline.CreateMessage(); @@ -428,6 +499,23 @@ public Response Update(string subscriptionId, string resou } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName, string skipToken) + { + 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.DataShare/accounts", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName, string skipToken) { var message = _pipeline.CreateMessage(); @@ -507,6 +595,14 @@ public Response ListByResourceGroup(string subscriptionId, string r } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId, string skipToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId, string skipToken) { var message = _pipeline.CreateMessage(); @@ -577,6 +673,14 @@ public Response ListBySubscriptionNextPage(string nextLink, string } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string skipToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string skipToken) { var message = _pipeline.CreateMessage(); diff --git a/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/RestOperations/ConsumerInvitationsRestOperations.cs b/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/RestOperations/ConsumerInvitationsRestOperations.cs index f8cefad97fc4..209e282a98ad 100644 --- a/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/RestOperations/ConsumerInvitationsRestOperations.cs +++ b/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/RestOperations/ConsumerInvitationsRestOperations.cs @@ -37,6 +37,19 @@ public ConsumerInvitationsRestOperations(HttpPipeline pipeline, string applicati _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListInvitationsRequestUri(string skipToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.DataShare/listInvitations", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } + return uri; + } + internal HttpMessage CreateListInvitationsRequest(string skipToken) { var message = _pipeline.CreateMessage(); @@ -98,6 +111,18 @@ public Response ListInvitations(string skipToken = null, } } + internal RequestUriBuilder CreateGetRequestUri(AzureLocation location, Guid invitationId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.DataShare/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/consumerInvitations/", false); + uri.AppendPath(invitationId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(AzureLocation location, Guid invitationId) { var message = _pipeline.CreateMessage(); @@ -164,6 +189,17 @@ public Response Get(AzureLocation location, Gui } } + internal RequestUriBuilder CreateRejectInvitationRequestUri(AzureLocation location, DataShareConsumerInvitationData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.DataShare/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/rejectInvitation", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRejectInvitationRequest(AzureLocation location, DataShareConsumerInvitationData data) { var message = _pipeline.CreateMessage(); @@ -235,6 +271,14 @@ public Response RejectInvitation(AzureLocation } } + internal RequestUriBuilder CreateListInvitationsNextPageRequestUri(string nextLink, string skipToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListInvitationsNextPageRequest(string nextLink, string skipToken) { var message = _pipeline.CreateMessage(); diff --git a/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/RestOperations/ConsumerSourceDataSetsRestOperations.cs b/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/RestOperations/ConsumerSourceDataSetsRestOperations.cs index 4d0982f2dbfb..0f6d21c2c291 100644 --- a/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/RestOperations/ConsumerSourceDataSetsRestOperations.cs +++ b/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/RestOperations/ConsumerSourceDataSetsRestOperations.cs @@ -37,6 +37,27 @@ public ConsumerSourceDataSetsRestOperations(HttpPipeline pipeline, string applic _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByShareSubscriptionRequestUri(string subscriptionId, string resourceGroupName, string accountName, string shareSubscriptionName, string skipToken) + { + 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.DataShare/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/shareSubscriptions/", false); + uri.AppendPath(shareSubscriptionName, true); + uri.AppendPath("/consumerSourceDataSets", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } + return uri; + } + internal HttpMessage CreateListByShareSubscriptionRequest(string subscriptionId, string resourceGroupName, string accountName, string shareSubscriptionName, string skipToken) { var message = _pipeline.CreateMessage(); @@ -128,6 +149,14 @@ public Response ListByShareSubscription(string subscr } } + internal RequestUriBuilder CreateListByShareSubscriptionNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string accountName, string shareSubscriptionName, string skipToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByShareSubscriptionNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string accountName, string shareSubscriptionName, string skipToken) { var message = _pipeline.CreateMessage(); diff --git a/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/RestOperations/DataSetMappingsRestOperations.cs b/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/RestOperations/DataSetMappingsRestOperations.cs index bb63967c4aff..f2d64cab7d3b 100644 --- a/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/RestOperations/DataSetMappingsRestOperations.cs +++ b/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/RestOperations/DataSetMappingsRestOperations.cs @@ -37,6 +37,24 @@ public DataSetMappingsRestOperations(HttpPipeline pipeline, string applicationId _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string accountName, string shareSubscriptionName, string dataSetMappingName) + { + 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.DataShare/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/shareSubscriptions/", false); + uri.AppendPath(shareSubscriptionName, true); + uri.AppendPath("/dataSetMappings/", false); + uri.AppendPath(dataSetMappingName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string accountName, string shareSubscriptionName, string dataSetMappingName) { var message = _pipeline.CreateMessage(); @@ -131,6 +149,24 @@ public Response Get(string subscriptionId, string resou } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string accountName, string shareSubscriptionName, string dataSetMappingName, ShareDataSetMappingData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DataShare/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/shareSubscriptions/", false); + uri.AppendPath(shareSubscriptionName, true); + uri.AppendPath("/dataSetMappings/", false); + uri.AppendPath(dataSetMappingName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string accountName, string shareSubscriptionName, string dataSetMappingName, ShareDataSetMappingData data) { var message = _pipeline.CreateMessage(); @@ -231,6 +267,24 @@ public Response Create(string subscriptionId, string re } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string accountName, string shareSubscriptionName, string dataSetMappingName) + { + 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.DataShare/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/shareSubscriptions/", false); + uri.AppendPath(shareSubscriptionName, true); + uri.AppendPath("/dataSetMappings/", false); + uri.AppendPath(dataSetMappingName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string accountName, string shareSubscriptionName, string dataSetMappingName) { var message = _pipeline.CreateMessage(); @@ -313,6 +367,35 @@ public Response Delete(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateListByShareSubscriptionRequestUri(string subscriptionId, string resourceGroupName, string accountName, string shareSubscriptionName, string skipToken, string filter, string orderby) + { + 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.DataShare/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/shareSubscriptions/", false); + uri.AppendPath(shareSubscriptionName, true); + uri.AppendPath("/dataSetMappings", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (orderby != null) + { + uri.AppendQuery("$orderby", orderby, true); + } + return uri; + } + internal HttpMessage CreateListByShareSubscriptionRequest(string subscriptionId, string resourceGroupName, string accountName, string shareSubscriptionName, string skipToken, string filter, string orderby) { var message = _pipeline.CreateMessage(); @@ -416,6 +499,14 @@ public Response ListByShareSubscription(string subscriptionI } } + internal RequestUriBuilder CreateListByShareSubscriptionNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string accountName, string shareSubscriptionName, string skipToken, string filter, string orderby) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByShareSubscriptionNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string accountName, string shareSubscriptionName, string skipToken, string filter, string orderby) { var message = _pipeline.CreateMessage(); diff --git a/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/RestOperations/DataSetsRestOperations.cs b/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/RestOperations/DataSetsRestOperations.cs index bfc6efa3113e..fb439e1a79d8 100644 --- a/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/RestOperations/DataSetsRestOperations.cs +++ b/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/RestOperations/DataSetsRestOperations.cs @@ -37,6 +37,24 @@ public DataSetsRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string accountName, string shareName, string dataSetName) + { + 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.DataShare/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/shares/", false); + uri.AppendPath(shareName, true); + uri.AppendPath("/dataSets/", false); + uri.AppendPath(dataSetName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string accountName, string shareName, string dataSetName) { var message = _pipeline.CreateMessage(); @@ -131,6 +149,24 @@ public Response Get(string subscriptionId, string resourceGrou } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string accountName, string shareName, string dataSetName, ShareDataSetData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DataShare/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/shares/", false); + uri.AppendPath(shareName, true); + uri.AppendPath("/dataSets/", false); + uri.AppendPath(dataSetName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string accountName, string shareName, string dataSetName, ShareDataSetData data) { var message = _pipeline.CreateMessage(); @@ -231,6 +267,24 @@ public Response Create(string subscriptionId, string resourceG } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string accountName, string shareName, string dataSetName) + { + 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.DataShare/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/shares/", false); + uri.AppendPath(shareName, true); + uri.AppendPath("/dataSets/", false); + uri.AppendPath(dataSetName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string accountName, string shareName, string dataSetName) { var message = _pipeline.CreateMessage(); @@ -315,6 +369,35 @@ public Response Delete(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateListByShareRequestUri(string subscriptionId, string resourceGroupName, string accountName, string shareName, string skipToken, string filter, string orderby) + { + 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.DataShare/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/shares/", false); + uri.AppendPath(shareName, true); + uri.AppendPath("/dataSets", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (orderby != null) + { + uri.AppendQuery("$orderby", orderby, true); + } + return uri; + } + internal HttpMessage CreateListByShareRequest(string subscriptionId, string resourceGroupName, string accountName, string shareName, string skipToken, string filter, string orderby) { var message = _pipeline.CreateMessage(); @@ -418,6 +501,14 @@ public Response ListByShare(string subscriptionId, string resourceG } } + internal RequestUriBuilder CreateListByShareNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string accountName, string shareName, string skipToken, string filter, string orderby) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByShareNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string accountName, string shareName, string skipToken, string filter, string orderby) { var message = _pipeline.CreateMessage(); diff --git a/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/RestOperations/EmailRegistrationsRestOperations.cs b/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/RestOperations/EmailRegistrationsRestOperations.cs index 5042201c6678..adfe6e806851 100644 --- a/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/RestOperations/EmailRegistrationsRestOperations.cs +++ b/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/RestOperations/EmailRegistrationsRestOperations.cs @@ -37,6 +37,17 @@ public EmailRegistrationsRestOperations(HttpPipeline pipeline, string applicatio _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateActivateEmailRequestUri(AzureLocation location, DataShareEmailRegistration emailRegistration) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.DataShare/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/activateEmail", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateActivateEmailRequest(AzureLocation location, DataShareEmailRegistration emailRegistration) { var message = _pipeline.CreateMessage(); @@ -108,6 +119,17 @@ public Response ActivateEmail(AzureLocation location } } + internal RequestUriBuilder CreateRegisterEmailRequestUri(AzureLocation location) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.DataShare/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/registerEmail", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRegisterEmailRequest(AzureLocation location) { var message = _pipeline.CreateMessage(); diff --git a/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/RestOperations/InvitationsRestOperations.cs b/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/RestOperations/InvitationsRestOperations.cs index d9214f4df2ca..6467ee19e5b7 100644 --- a/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/RestOperations/InvitationsRestOperations.cs +++ b/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/RestOperations/InvitationsRestOperations.cs @@ -37,6 +37,24 @@ public InvitationsRestOperations(HttpPipeline pipeline, string applicationId, Ur _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string accountName, string shareName, string invitationName) + { + 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.DataShare/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/shares/", false); + uri.AppendPath(shareName, true); + uri.AppendPath("/invitations/", false); + uri.AppendPath(invitationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string accountName, string shareName, string invitationName) { var message = _pipeline.CreateMessage(); @@ -131,6 +149,24 @@ public Response Get(string subscriptionId, string resou } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string accountName, string shareName, string invitationName, DataShareInvitationData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DataShare/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/shares/", false); + uri.AppendPath(shareName, true); + uri.AppendPath("/invitations/", false); + uri.AppendPath(invitationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string accountName, string shareName, string invitationName, DataShareInvitationData data) { var message = _pipeline.CreateMessage(); @@ -231,6 +267,24 @@ public Response Create(string subscriptionId, string re } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string accountName, string shareName, string invitationName) + { + 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.DataShare/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/shares/", false); + uri.AppendPath(shareName, true); + uri.AppendPath("/invitations/", false); + uri.AppendPath(invitationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string accountName, string shareName, string invitationName) { var message = _pipeline.CreateMessage(); @@ -313,6 +367,35 @@ public Response Delete(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateListByShareRequestUri(string subscriptionId, string resourceGroupName, string accountName, string shareName, string skipToken, string filter, string orderby) + { + 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.DataShare/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/shares/", false); + uri.AppendPath(shareName, true); + uri.AppendPath("/invitations", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (orderby != null) + { + uri.AppendQuery("$orderby", orderby, true); + } + return uri; + } + internal HttpMessage CreateListByShareRequest(string subscriptionId, string resourceGroupName, string accountName, string shareName, string skipToken, string filter, string orderby) { var message = _pipeline.CreateMessage(); @@ -416,6 +499,14 @@ public Response ListByShare(string subscriptionId, string resour } } + internal RequestUriBuilder CreateListByShareNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string accountName, string shareName, string skipToken, string filter, string orderby) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByShareNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string accountName, string shareName, string skipToken, string filter, string orderby) { var message = _pipeline.CreateMessage(); diff --git a/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/RestOperations/ProviderShareSubscriptionsRestOperations.cs b/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/RestOperations/ProviderShareSubscriptionsRestOperations.cs index 215b4b9b5c09..69e64e103780 100644 --- a/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/RestOperations/ProviderShareSubscriptionsRestOperations.cs +++ b/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/RestOperations/ProviderShareSubscriptionsRestOperations.cs @@ -37,6 +37,25 @@ public ProviderShareSubscriptionsRestOperations(HttpPipeline pipeline, string ap _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateAdjustRequestUri(string subscriptionId, string resourceGroupName, string accountName, string shareName, string providerShareSubscriptionId, ProviderShareSubscriptionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DataShare/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/shares/", false); + uri.AppendPath(shareName, true); + uri.AppendPath("/providerShareSubscriptions/", false); + uri.AppendPath(providerShareSubscriptionId, true); + uri.AppendPath("/adjust", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateAdjustRequest(string subscriptionId, string resourceGroupName, string accountName, string shareName, string providerShareSubscriptionId, ProviderShareSubscriptionData data) { var message = _pipeline.CreateMessage(); @@ -136,6 +155,25 @@ public Response Adjust(string subscriptionId, str } } + internal RequestUriBuilder CreateReinstateRequestUri(string subscriptionId, string resourceGroupName, string accountName, string shareName, string providerShareSubscriptionId, ProviderShareSubscriptionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DataShare/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/shares/", false); + uri.AppendPath(shareName, true); + uri.AppendPath("/providerShareSubscriptions/", false); + uri.AppendPath(providerShareSubscriptionId, true); + uri.AppendPath("/reinstate", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateReinstateRequest(string subscriptionId, string resourceGroupName, string accountName, string shareName, string providerShareSubscriptionId, ProviderShareSubscriptionData data) { var message = _pipeline.CreateMessage(); @@ -235,6 +273,25 @@ public Response Reinstate(string subscriptionId, } } + internal RequestUriBuilder CreateRevokeRequestUri(string subscriptionId, string resourceGroupName, string accountName, string shareName, string providerShareSubscriptionId) + { + 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.DataShare/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/shares/", false); + uri.AppendPath(shareName, true); + uri.AppendPath("/providerShareSubscriptions/", false); + uri.AppendPath(providerShareSubscriptionId, true); + uri.AppendPath("/revoke", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRevokeRequest(string subscriptionId, string resourceGroupName, string accountName, string shareName, string providerShareSubscriptionId) { var message = _pipeline.CreateMessage(); @@ -318,6 +375,24 @@ public Response Revoke(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateGetByShareRequestUri(string subscriptionId, string resourceGroupName, string accountName, string shareName, string providerShareSubscriptionId) + { + 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.DataShare/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/shares/", false); + uri.AppendPath(shareName, true); + uri.AppendPath("/providerShareSubscriptions/", false); + uri.AppendPath(providerShareSubscriptionId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetByShareRequest(string subscriptionId, string resourceGroupName, string accountName, string shareName, string providerShareSubscriptionId) { var message = _pipeline.CreateMessage(); @@ -412,6 +487,27 @@ public Response GetByShare(string subscriptionId, } } + internal RequestUriBuilder CreateListByShareRequestUri(string subscriptionId, string resourceGroupName, string accountName, string shareName, string skipToken) + { + 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.DataShare/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/shares/", false); + uri.AppendPath(shareName, true); + uri.AppendPath("/providerShareSubscriptions", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } + return uri; + } + internal HttpMessage CreateListByShareRequest(string subscriptionId, string resourceGroupName, string accountName, string shareName, string skipToken) { var message = _pipeline.CreateMessage(); @@ -503,6 +599,14 @@ public Response ListByShare(string subscriptionId } } + internal RequestUriBuilder CreateListByShareNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string accountName, string shareName, string skipToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByShareNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string accountName, string shareName, string skipToken) { var message = _pipeline.CreateMessage(); diff --git a/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/RestOperations/ShareSubscriptionsRestOperations.cs b/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/RestOperations/ShareSubscriptionsRestOperations.cs index 2a79c078478c..e13790ed560d 100644 --- a/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/RestOperations/ShareSubscriptionsRestOperations.cs +++ b/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/RestOperations/ShareSubscriptionsRestOperations.cs @@ -37,6 +37,23 @@ public ShareSubscriptionsRestOperations(HttpPipeline pipeline, string applicatio _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCancelSynchronizationRequestUri(string subscriptionId, string resourceGroupName, string accountName, string shareSubscriptionName, ShareSubscriptionSynchronization shareSubscriptionSynchronization) + { + 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.DataShare/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/shareSubscriptions/", false); + uri.AppendPath(shareSubscriptionName, true); + uri.AppendPath("/cancelSynchronization", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCancelSynchronizationRequest(string subscriptionId, string resourceGroupName, string accountName, string shareSubscriptionName, ShareSubscriptionSynchronization shareSubscriptionSynchronization) { var message = _pipeline.CreateMessage(); @@ -122,6 +139,27 @@ public Response CancelSynchronization(string subscriptionId, string resourceGrou } } + internal RequestUriBuilder CreateListSourceShareSynchronizationSettingsRequestUri(string subscriptionId, string resourceGroupName, string accountName, string shareSubscriptionName, string skipToken) + { + 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.DataShare/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/shareSubscriptions/", false); + uri.AppendPath(shareSubscriptionName, true); + uri.AppendPath("/listSourceShareSynchronizationSettings", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } + return uri; + } + internal HttpMessage CreateListSourceShareSynchronizationSettingsRequest(string subscriptionId, string resourceGroupName, string accountName, string shareSubscriptionName, string skipToken) { var message = _pipeline.CreateMessage(); @@ -213,6 +251,35 @@ public Response ListSourceShareSynchroniz } } + internal RequestUriBuilder CreateListSynchronizationDetailsRequestUri(string subscriptionId, string resourceGroupName, string accountName, string shareSubscriptionName, ShareSubscriptionSynchronization shareSubscriptionSynchronization, string skipToken, string filter, string orderby) + { + 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.DataShare/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/shareSubscriptions/", false); + uri.AppendPath(shareSubscriptionName, true); + uri.AppendPath("/listSynchronizationDetails", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (orderby != null) + { + uri.AppendQuery("$orderby", orderby, true); + } + return uri; + } + internal HttpMessage CreateListSynchronizationDetailsRequest(string subscriptionId, string resourceGroupName, string accountName, string shareSubscriptionName, ShareSubscriptionSynchronization shareSubscriptionSynchronization, string skipToken, string filter, string orderby) { var message = _pipeline.CreateMessage(); @@ -324,6 +391,35 @@ public Response ListSynchronizationDetails(string su } } + internal RequestUriBuilder CreateListSynchronizationsRequestUri(string subscriptionId, string resourceGroupName, string accountName, string shareSubscriptionName, string skipToken, string filter, string orderby) + { + 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.DataShare/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/shareSubscriptions/", false); + uri.AppendPath(shareSubscriptionName, true); + uri.AppendPath("/listSynchronizations", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (orderby != null) + { + uri.AppendQuery("$orderby", orderby, true); + } + return uri; + } + internal HttpMessage CreateListSynchronizationsRequest(string subscriptionId, string resourceGroupName, string accountName, string shareSubscriptionName, string skipToken, string filter, string orderby) { var message = _pipeline.CreateMessage(); @@ -427,6 +523,23 @@ public Response ListSynchronizations(strin } } + internal RequestUriBuilder CreateSynchronizeRequestUri(string subscriptionId, string resourceGroupName, string accountName, string shareSubscriptionName, DataShareSynchronizeContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DataShare/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/shareSubscriptions/", false); + uri.AppendPath(shareSubscriptionName, true); + uri.AppendPath("/synchronize", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateSynchronizeRequest(string subscriptionId, string resourceGroupName, string accountName, string shareSubscriptionName, DataShareSynchronizeContent content) { var message = _pipeline.CreateMessage(); @@ -512,6 +625,22 @@ public Response Synchronize(string subscriptionId, string resourceGroupName, str } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string accountName, string shareSubscriptionName) + { + 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.DataShare/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/shareSubscriptions/", false); + uri.AppendPath(shareSubscriptionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string accountName, string shareSubscriptionName) { var message = _pipeline.CreateMessage(); @@ -600,6 +729,22 @@ public Response Get(string subscriptionId, string resourc } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string accountName, string shareSubscriptionName, ShareSubscriptionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DataShare/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/shareSubscriptions/", false); + uri.AppendPath(shareSubscriptionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string accountName, string shareSubscriptionName, ShareSubscriptionData data) { var message = _pipeline.CreateMessage(); @@ -694,6 +839,22 @@ public Response Create(string subscriptionId, string reso } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string accountName, string shareSubscriptionName) + { + 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.DataShare/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/shareSubscriptions/", false); + uri.AppendPath(shareSubscriptionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string accountName, string shareSubscriptionName) { var message = _pipeline.CreateMessage(); @@ -772,6 +933,33 @@ public Response Delete(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateListByAccountRequestUri(string subscriptionId, string resourceGroupName, string accountName, string skipToken, string filter, string orderby) + { + 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.DataShare/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/shareSubscriptions", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (orderby != null) + { + uri.AppendQuery("$orderby", orderby, true); + } + return uri; + } + internal HttpMessage CreateListByAccountRequest(string subscriptionId, string resourceGroupName, string accountName, string skipToken, string filter, string orderby) { var message = _pipeline.CreateMessage(); @@ -869,6 +1057,14 @@ public Response ListByAccount(string subscriptionId, stri } } + internal RequestUriBuilder CreateListSourceShareSynchronizationSettingsNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string accountName, string shareSubscriptionName, string skipToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListSourceShareSynchronizationSettingsNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string accountName, string shareSubscriptionName, string skipToken) { var message = _pipeline.CreateMessage(); @@ -951,6 +1147,14 @@ public Response ListSourceShareSynchroniz } } + internal RequestUriBuilder CreateListSynchronizationDetailsNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string accountName, string shareSubscriptionName, ShareSubscriptionSynchronization shareSubscriptionSynchronization, string skipToken, string filter, string orderby) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListSynchronizationDetailsNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string accountName, string shareSubscriptionName, ShareSubscriptionSynchronization shareSubscriptionSynchronization, string skipToken, string filter, string orderby) { var message = _pipeline.CreateMessage(); @@ -1041,6 +1245,14 @@ public Response ListSynchronizationDetailsNextPage(s } } + internal RequestUriBuilder CreateListSynchronizationsNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string accountName, string shareSubscriptionName, string skipToken, string filter, string orderby) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListSynchronizationsNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string accountName, string shareSubscriptionName, string skipToken, string filter, string orderby) { var message = _pipeline.CreateMessage(); @@ -1127,6 +1339,14 @@ public Response ListSynchronizationsNextPa } } + internal RequestUriBuilder CreateListByAccountNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string accountName, string skipToken, string filter, string orderby) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByAccountNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string accountName, string skipToken, string filter, string orderby) { var message = _pipeline.CreateMessage(); diff --git a/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/RestOperations/SharesRestOperations.cs b/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/RestOperations/SharesRestOperations.cs index 3c7b63ff2eb4..6553b748780a 100644 --- a/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/RestOperations/SharesRestOperations.cs +++ b/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/RestOperations/SharesRestOperations.cs @@ -37,6 +37,35 @@ public SharesRestOperations(HttpPipeline pipeline, string applicationId, Uri end _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListSynchronizationDetailsRequestUri(string subscriptionId, string resourceGroupName, string accountName, string shareName, ShareSynchronization shareSynchronization, string skipToken, string filter, string orderby) + { + 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.DataShare/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/shares/", false); + uri.AppendPath(shareName, true); + uri.AppendPath("/listSynchronizationDetails", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (orderby != null) + { + uri.AppendQuery("$orderby", orderby, true); + } + return uri; + } + internal HttpMessage CreateListSynchronizationDetailsRequest(string subscriptionId, string resourceGroupName, string accountName, string shareName, ShareSynchronization shareSynchronization, string skipToken, string filter, string orderby) { var message = _pipeline.CreateMessage(); @@ -148,6 +177,35 @@ public Response ListSynchronizationDetails(string su } } + internal RequestUriBuilder CreateListSynchronizationsRequestUri(string subscriptionId, string resourceGroupName, string accountName, string shareName, string skipToken, string filter, string orderby) + { + 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.DataShare/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/shares/", false); + uri.AppendPath(shareName, true); + uri.AppendPath("/listSynchronizations", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (orderby != null) + { + uri.AppendQuery("$orderby", orderby, true); + } + return uri; + } + internal HttpMessage CreateListSynchronizationsRequest(string subscriptionId, string resourceGroupName, string accountName, string shareName, string skipToken, string filter, string orderby) { var message = _pipeline.CreateMessage(); @@ -251,6 +309,22 @@ public Response ListSynchronizations(string subscripti } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string accountName, string shareName) + { + 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.DataShare/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/shares/", false); + uri.AppendPath(shareName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string accountName, string shareName) { var message = _pipeline.CreateMessage(); @@ -339,6 +413,22 @@ public Response Get(string subscriptionId, string resourceGroupNa } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string accountName, string shareName, DataShareData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DataShare/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/shares/", false); + uri.AppendPath(shareName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string accountName, string shareName, DataShareData data) { var message = _pipeline.CreateMessage(); @@ -433,6 +523,22 @@ public Response Create(string subscriptionId, string resourceGrou } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string accountName, string shareName) + { + 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.DataShare/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/shares/", false); + uri.AppendPath(shareName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string accountName, string shareName) { var message = _pipeline.CreateMessage(); @@ -511,6 +617,33 @@ public Response Delete(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateListByAccountRequestUri(string subscriptionId, string resourceGroupName, string accountName, string skipToken, string filter, string orderby) + { + 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.DataShare/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/shares", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (orderby != null) + { + uri.AppendQuery("$orderby", orderby, true); + } + return uri; + } + internal HttpMessage CreateListByAccountRequest(string subscriptionId, string resourceGroupName, string accountName, string skipToken, string filter, string orderby) { var message = _pipeline.CreateMessage(); @@ -608,6 +741,14 @@ public Response ListByAccount(string subscriptionId, string resourceG } } + internal RequestUriBuilder CreateListSynchronizationDetailsNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string accountName, string shareName, ShareSynchronization shareSynchronization, string skipToken, string filter, string orderby) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListSynchronizationDetailsNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string accountName, string shareName, ShareSynchronization shareSynchronization, string skipToken, string filter, string orderby) { var message = _pipeline.CreateMessage(); @@ -698,6 +839,14 @@ public Response ListSynchronizationDetailsNextPage(s } } + internal RequestUriBuilder CreateListSynchronizationsNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string accountName, string shareName, string skipToken, string filter, string orderby) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListSynchronizationsNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string accountName, string shareName, string skipToken, string filter, string orderby) { var message = _pipeline.CreateMessage(); @@ -784,6 +933,14 @@ public Response ListSynchronizationsNextPage(string ne } } + internal RequestUriBuilder CreateListByAccountNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string accountName, string skipToken, string filter, string orderby) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByAccountNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string accountName, string skipToken, string filter, string orderby) { var message = _pipeline.CreateMessage(); diff --git a/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/RestOperations/SynchronizationSettingsRestOperations.cs b/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/RestOperations/SynchronizationSettingsRestOperations.cs index fd4ab407a486..ad932da6dc30 100644 --- a/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/RestOperations/SynchronizationSettingsRestOperations.cs +++ b/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/RestOperations/SynchronizationSettingsRestOperations.cs @@ -37,6 +37,24 @@ public SynchronizationSettingsRestOperations(HttpPipeline pipeline, string appli _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string accountName, string shareName, string synchronizationSettingName) + { + 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.DataShare/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/shares/", false); + uri.AppendPath(shareName, true); + uri.AppendPath("/synchronizationSettings/", false); + uri.AppendPath(synchronizationSettingName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string accountName, string shareName, string synchronizationSettingName) { var message = _pipeline.CreateMessage(); @@ -131,6 +149,24 @@ public Response Get(string subscriptionId, } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string accountName, string shareName, string synchronizationSettingName, DataShareSynchronizationSettingData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DataShare/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/shares/", false); + uri.AppendPath(shareName, true); + uri.AppendPath("/synchronizationSettings/", false); + uri.AppendPath(synchronizationSettingName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string accountName, string shareName, string synchronizationSettingName, DataShareSynchronizationSettingData data) { var message = _pipeline.CreateMessage(); @@ -231,6 +267,24 @@ public Response Create(string subscriptionI } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string accountName, string shareName, string synchronizationSettingName) + { + 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.DataShare/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/shares/", false); + uri.AppendPath(shareName, true); + uri.AppendPath("/synchronizationSettings/", false); + uri.AppendPath(synchronizationSettingName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string accountName, string shareName, string synchronizationSettingName) { var message = _pipeline.CreateMessage(); @@ -315,6 +369,27 @@ public Response Delete(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateListByShareRequestUri(string subscriptionId, string resourceGroupName, string accountName, string shareName, string skipToken) + { + 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.DataShare/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/shares/", false); + uri.AppendPath(shareName, true); + uri.AppendPath("/synchronizationSettings", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } + return uri; + } + internal HttpMessage CreateListByShareRequest(string subscriptionId, string resourceGroupName, string accountName, string shareName, string skipToken) { var message = _pipeline.CreateMessage(); @@ -406,6 +481,14 @@ public Response ListByShare(string subscriptionId, s } } + internal RequestUriBuilder CreateListByShareNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string accountName, string shareName, string skipToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByShareNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string accountName, string shareName, string skipToken) { var message = _pipeline.CreateMessage(); diff --git a/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/RestOperations/TriggersRestOperations.cs b/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/RestOperations/TriggersRestOperations.cs index 4995e03319a3..3f984a518825 100644 --- a/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/RestOperations/TriggersRestOperations.cs +++ b/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/RestOperations/TriggersRestOperations.cs @@ -37,6 +37,24 @@ public TriggersRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string accountName, string shareSubscriptionName, string triggerName) + { + 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.DataShare/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/shareSubscriptions/", false); + uri.AppendPath(shareSubscriptionName, true); + uri.AppendPath("/triggers/", false); + uri.AppendPath(triggerName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string accountName, string shareSubscriptionName, string triggerName) { var message = _pipeline.CreateMessage(); @@ -131,6 +149,24 @@ public Response Get(string subscriptionId, string resource } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string accountName, string shareSubscriptionName, string triggerName, DataShareTriggerData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DataShare/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/shareSubscriptions/", false); + uri.AppendPath(shareSubscriptionName, true); + uri.AppendPath("/triggers/", false); + uri.AppendPath(triggerName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string accountName, string shareSubscriptionName, string triggerName, DataShareTriggerData data) { var message = _pipeline.CreateMessage(); @@ -221,6 +257,24 @@ public Response Create(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string accountName, string shareSubscriptionName, string triggerName) + { + 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.DataShare/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/shareSubscriptions/", false); + uri.AppendPath(shareSubscriptionName, true); + uri.AppendPath("/triggers/", false); + uri.AppendPath(triggerName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string accountName, string shareSubscriptionName, string triggerName) { var message = _pipeline.CreateMessage(); @@ -305,6 +359,27 @@ public Response Delete(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateListByShareSubscriptionRequestUri(string subscriptionId, string resourceGroupName, string accountName, string shareSubscriptionName, string skipToken) + { + 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.DataShare/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/shareSubscriptions/", false); + uri.AppendPath(shareSubscriptionName, true); + uri.AppendPath("/triggers", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } + return uri; + } + internal HttpMessage CreateListByShareSubscriptionRequest(string subscriptionId, string resourceGroupName, string accountName, string shareSubscriptionName, string skipToken) { var message = _pipeline.CreateMessage(); @@ -396,6 +471,14 @@ public Response ListByShareSubscription(string subscriptionId, stri } } + internal RequestUriBuilder CreateListByShareSubscriptionNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string accountName, string shareSubscriptionName, string skipToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByShareSubscriptionNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string accountName, string shareSubscriptionName, string skipToken) { var message = _pipeline.CreateMessage(); diff --git a/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/ShareDataSetCollection.cs b/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/ShareDataSetCollection.cs index b789c769b392..75dfba3f0e3b 100644 --- a/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/ShareDataSetCollection.cs +++ b/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/ShareDataSetCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> CreateOrUpdateAsyn try { var response = await _shareDataSetDataSetsRestClient.CreateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, dataSetName, data, cancellationToken).ConfigureAwait(false); - var operation = new DataShareArmOperation(Response.FromValue(new ShareDataSetResource(Client, response), response.GetRawResponse())); + var uri = _shareDataSetDataSetsRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, dataSetName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataShareArmOperation(Response.FromValue(new ShareDataSetResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitU try { var response = _shareDataSetDataSetsRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, dataSetName, data, cancellationToken); - var operation = new DataShareArmOperation(Response.FromValue(new ShareDataSetResource(Client, response), response.GetRawResponse())); + var uri = _shareDataSetDataSetsRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, dataSetName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataShareArmOperation(Response.FromValue(new ShareDataSetResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/ShareDataSetMappingCollection.cs b/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/ShareDataSetMappingCollection.cs index 289effcc04fe..69a5c999e461 100644 --- a/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/ShareDataSetMappingCollection.cs +++ b/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/ShareDataSetMappingCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> CreateOrUpd try { var response = await _shareDataSetMappingDataSetMappingsRestClient.CreateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, dataSetMappingName, data, cancellationToken).ConfigureAwait(false); - var operation = new DataShareArmOperation(Response.FromValue(new ShareDataSetMappingResource(Client, response), response.GetRawResponse())); + var uri = _shareDataSetMappingDataSetMappingsRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, dataSetMappingName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataShareArmOperation(Response.FromValue(new ShareDataSetMappingResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUnti try { var response = _shareDataSetMappingDataSetMappingsRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, dataSetMappingName, data, cancellationToken); - var operation = new DataShareArmOperation(Response.FromValue(new ShareDataSetMappingResource(Client, response), response.GetRawResponse())); + var uri = _shareDataSetMappingDataSetMappingsRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, dataSetMappingName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataShareArmOperation(Response.FromValue(new ShareDataSetMappingResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/ShareDataSetMappingResource.cs b/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/ShareDataSetMappingResource.cs index 8accb95eb47a..a03d4b7bab04 100644 --- a/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/ShareDataSetMappingResource.cs +++ b/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/ShareDataSetMappingResource.cs @@ -201,7 +201,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _shareDataSetMappingDataSetMappingsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new DataShareArmOperation(response); + var uri = _shareDataSetMappingDataSetMappingsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataShareArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -243,7 +245,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _shareDataSetMappingDataSetMappingsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new DataShareArmOperation(response); + var uri = _shareDataSetMappingDataSetMappingsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataShareArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -289,7 +293,9 @@ public virtual async Task> UpdateAsync try { var response = await _shareDataSetMappingDataSetMappingsRestClient.CreateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new DataShareArmOperation(Response.FromValue(new ShareDataSetMappingResource(Client, response), response.GetRawResponse())); + var uri = _shareDataSetMappingDataSetMappingsRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataShareArmOperation(Response.FromValue(new ShareDataSetMappingResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -335,7 +341,9 @@ public virtual ArmOperation Update(WaitUntil waitUn try { var response = _shareDataSetMappingDataSetMappingsRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new DataShareArmOperation(Response.FromValue(new ShareDataSetMappingResource(Client, response), response.GetRawResponse())); + var uri = _shareDataSetMappingDataSetMappingsRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataShareArmOperation(Response.FromValue(new ShareDataSetMappingResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/ShareDataSetResource.cs b/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/ShareDataSetResource.cs index 995fb7cb2248..70efb740be60 100644 --- a/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/ShareDataSetResource.cs +++ b/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/ShareDataSetResource.cs @@ -289,7 +289,9 @@ public virtual async Task> UpdateAsync(WaitUn try { var response = await _shareDataSetDataSetsRestClient.CreateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new DataShareArmOperation(Response.FromValue(new ShareDataSetResource(Client, response), response.GetRawResponse())); + var uri = _shareDataSetDataSetsRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataShareArmOperation(Response.FromValue(new ShareDataSetResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -335,7 +337,9 @@ public virtual ArmOperation Update(WaitUntil waitUntil, Sh try { var response = _shareDataSetDataSetsRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new DataShareArmOperation(Response.FromValue(new ShareDataSetResource(Client, response), response.GetRawResponse())); + var uri = _shareDataSetDataSetsRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataShareArmOperation(Response.FromValue(new ShareDataSetResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/ShareSubscriptionCollection.cs b/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/ShareSubscriptionCollection.cs index b320b42e1b5c..626948768e9f 100644 --- a/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/ShareSubscriptionCollection.cs +++ b/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/ShareSubscriptionCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> CreateOrUpdat try { var response = await _shareSubscriptionRestClient.CreateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, shareSubscriptionName, data, cancellationToken).ConfigureAwait(false); - var operation = new DataShareArmOperation(Response.FromValue(new ShareSubscriptionResource(Client, response), response.GetRawResponse())); + var uri = _shareSubscriptionRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, shareSubscriptionName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataShareArmOperation(Response.FromValue(new ShareSubscriptionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil try { var response = _shareSubscriptionRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, shareSubscriptionName, data, cancellationToken); - var operation = new DataShareArmOperation(Response.FromValue(new ShareSubscriptionResource(Client, response), response.GetRawResponse())); + var uri = _shareSubscriptionRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, shareSubscriptionName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataShareArmOperation(Response.FromValue(new ShareSubscriptionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/ShareSubscriptionResource.cs b/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/ShareSubscriptionResource.cs index eca7f032ef6d..f66818f27e3b 100644 --- a/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/ShareSubscriptionResource.cs +++ b/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/ShareSubscriptionResource.cs @@ -432,7 +432,9 @@ public virtual async Task> UpdateAsync(W try { var response = await _shareSubscriptionRestClient.CreateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new DataShareArmOperation(Response.FromValue(new ShareSubscriptionResource(Client, response), response.GetRawResponse())); + var uri = _shareSubscriptionRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataShareArmOperation(Response.FromValue(new ShareSubscriptionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -478,7 +480,9 @@ public virtual ArmOperation Update(WaitUntil waitUnti try { var response = _shareSubscriptionRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new DataShareArmOperation(Response.FromValue(new ShareSubscriptionResource(Client, response), response.GetRawResponse())); + var uri = _shareSubscriptionRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DataShareArmOperation(Response.FromValue(new ShareSubscriptionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/defendereasm/Azure.ResourceManager.DefenderEasm/src/Generated/LongRunningOperation/DefenderEasmArmOperation.cs b/sdk/defendereasm/Azure.ResourceManager.DefenderEasm/src/Generated/LongRunningOperation/DefenderEasmArmOperation.cs index 2319a9f6e50c..30a21e452627 100644 --- a/sdk/defendereasm/Azure.ResourceManager.DefenderEasm/src/Generated/LongRunningOperation/DefenderEasmArmOperation.cs +++ b/sdk/defendereasm/Azure.ResourceManager.DefenderEasm/src/Generated/LongRunningOperation/DefenderEasmArmOperation.cs @@ -20,21 +20,24 @@ internal class DefenderEasmArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of DefenderEasmArmOperation for mocking. protected DefenderEasmArmOperation() { } - internal DefenderEasmArmOperation(Response response) + internal DefenderEasmArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal DefenderEasmArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "DefenderEasmArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal DefenderEasmArmOperation(ClientDiagnostics clientDiagnostics, HttpPipel public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/defendereasm/Azure.ResourceManager.DefenderEasm/src/Generated/LongRunningOperation/DefenderEasmArmOperationOfT.cs b/sdk/defendereasm/Azure.ResourceManager.DefenderEasm/src/Generated/LongRunningOperation/DefenderEasmArmOperationOfT.cs index 7a8d572195a2..8b792c29578b 100644 --- a/sdk/defendereasm/Azure.ResourceManager.DefenderEasm/src/Generated/LongRunningOperation/DefenderEasmArmOperationOfT.cs +++ b/sdk/defendereasm/Azure.ResourceManager.DefenderEasm/src/Generated/LongRunningOperation/DefenderEasmArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class DefenderEasmArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of DefenderEasmArmOperation for mocking. protected DefenderEasmArmOperation() { } - internal DefenderEasmArmOperation(Response response) + internal DefenderEasmArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal DefenderEasmArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "DefenderEasmArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal DefenderEasmArmOperation(IOperationSource source, ClientDiagnostics public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/defendereasm/Azure.ResourceManager.DefenderEasm/src/Generated/Models/EasmLabelResource.Serialization.cs b/sdk/defendereasm/Azure.ResourceManager.DefenderEasm/src/Generated/Models/EasmLabelResource.Serialization.cs new file mode 100644 index 000000000000..ca51d2c27b6c --- /dev/null +++ b/sdk/defendereasm/Azure.ResourceManager.DefenderEasm/src/Generated/Models/EasmLabelResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DefenderEasm +{ + public partial class EasmLabelResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + EasmLabelData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + EasmLabelData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/defendereasm/Azure.ResourceManager.DefenderEasm/src/Generated/Models/EasmWorkspaceResource.Serialization.cs b/sdk/defendereasm/Azure.ResourceManager.DefenderEasm/src/Generated/Models/EasmWorkspaceResource.Serialization.cs new file mode 100644 index 000000000000..cd5723cc7289 --- /dev/null +++ b/sdk/defendereasm/Azure.ResourceManager.DefenderEasm/src/Generated/Models/EasmWorkspaceResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DefenderEasm +{ + public partial class EasmWorkspaceResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + EasmWorkspaceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + EasmWorkspaceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/defendereasm/Azure.ResourceManager.DefenderEasm/src/Generated/RestOperations/LabelsRestOperations.cs b/sdk/defendereasm/Azure.ResourceManager.DefenderEasm/src/Generated/RestOperations/LabelsRestOperations.cs index 4612b21986eb..9207f25aec93 100644 --- a/sdk/defendereasm/Azure.ResourceManager.DefenderEasm/src/Generated/RestOperations/LabelsRestOperations.cs +++ b/sdk/defendereasm/Azure.ResourceManager.DefenderEasm/src/Generated/RestOperations/LabelsRestOperations.cs @@ -37,6 +37,21 @@ public LabelsRestOperations(HttpPipeline pipeline, string applicationId, Uri end _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByWorkspaceRequestUri(string subscriptionId, string resourceGroupName, string workspaceName) + { + 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.Easm/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/labels", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByWorkspaceRequest(string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByWorkspace(string subscriptionId, stri } } + internal RequestUriBuilder CreateGetByWorkspaceRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string labelName) + { + 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.Easm/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/labels/", false); + uri.AppendPath(labelName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetByWorkspaceRequest(string subscriptionId, string resourceGroupName, string workspaceName, string labelName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response GetByWorkspace(string subscriptionId, string reso } } + internal RequestUriBuilder CreateCreateAndUpdateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string labelName, EasmLabelData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Easm/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/labels/", false); + uri.AppendPath(labelName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateAndUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string labelName, EasmLabelData data) { var message = _pipeline.CreateMessage(); @@ -288,6 +335,22 @@ public Response CreateAndUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string labelName, EasmLabelPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Easm/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/labels/", false); + uri.AppendPath(labelName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string labelName, EasmLabelPatch patch) { var message = _pipeline.CreateMessage(); @@ -380,6 +443,22 @@ public Response Update(string subscriptionId, string resourceGrou } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string labelName) + { + 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.Easm/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/labels/", false); + uri.AppendPath(labelName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string workspaceName, string labelName) { var message = _pipeline.CreateMessage(); @@ -456,6 +535,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string w } } + internal RequestUriBuilder CreateListByWorkspaceNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByWorkspaceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/defendereasm/Azure.ResourceManager.DefenderEasm/src/Generated/RestOperations/TasksRestOperations.cs b/sdk/defendereasm/Azure.ResourceManager.DefenderEasm/src/Generated/RestOperations/TasksRestOperations.cs index b2ca68d7093c..77ef8672cfbc 100644 --- a/sdk/defendereasm/Azure.ResourceManager.DefenderEasm/src/Generated/RestOperations/TasksRestOperations.cs +++ b/sdk/defendereasm/Azure.ResourceManager.DefenderEasm/src/Generated/RestOperations/TasksRestOperations.cs @@ -37,6 +37,22 @@ public TasksRestOperations(HttpPipeline pipeline, string applicationId, Uri endp _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetByWorkspaceRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string taskId) + { + 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.Easm/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/tasks/", false); + uri.AppendPath(taskId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetByWorkspaceRequest(string subscriptionId, string resourceGroupName, string workspaceName, string taskId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/defendereasm/Azure.ResourceManager.DefenderEasm/src/Generated/RestOperations/WorkspacesRestOperations.cs b/sdk/defendereasm/Azure.ResourceManager.DefenderEasm/src/Generated/RestOperations/WorkspacesRestOperations.cs index 634d25fcf81c..49ff8ee5f461 100644 --- a/sdk/defendereasm/Azure.ResourceManager.DefenderEasm/src/Generated/RestOperations/WorkspacesRestOperations.cs +++ b/sdk/defendereasm/Azure.ResourceManager.DefenderEasm/src/Generated/RestOperations/WorkspacesRestOperations.cs @@ -37,6 +37,17 @@ public WorkspacesRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Easm/workspaces", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,19 @@ public Response ListBySubscription(string subscriptionI } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.Easm/workspaces", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -177,6 +201,20 @@ public Response ListByResourceGroup(string subscription } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workspaceName) + { + 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.Easm/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); @@ -259,6 +297,20 @@ public Response Get(string subscriptionId, string resourceGro } } + internal RequestUriBuilder CreateCreateAndUpdateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, EasmWorkspaceData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Easm/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateAndUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, EasmWorkspaceData data) { var message = _pipeline.CreateMessage(); @@ -337,6 +389,20 @@ public Response CreateAndUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, EasmWorkspacePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Easm/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, EasmWorkspacePatch patch) { var message = _pipeline.CreateMessage(); @@ -423,6 +489,20 @@ public Response Update(string subscriptionId, string resource } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string workspaceName) + { + 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.Easm/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); @@ -493,6 +573,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string w } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -561,6 +649,14 @@ public Response ListBySubscriptionNextPage(string nextL } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/HostPoolCollection.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/HostPoolCollection.cs index f3d6f76e0f01..e16140386943 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/HostPoolCollection.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/HostPoolCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> CreateOrUpdateAsync(Wa try { var response = await _hostPoolRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, hostPoolName, data, cancellationToken).ConfigureAwait(false); - var operation = new DesktopVirtualizationArmOperation(Response.FromValue(new HostPoolResource(Client, response), response.GetRawResponse())); + var uri = _hostPoolRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, hostPoolName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DesktopVirtualizationArmOperation(Response.FromValue(new HostPoolResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -140,7 +142,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil try { var response = _hostPoolRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, hostPoolName, data, cancellationToken); - var operation = new DesktopVirtualizationArmOperation(Response.FromValue(new HostPoolResource(Client, response), response.GetRawResponse())); + var uri = _hostPoolRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, hostPoolName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DesktopVirtualizationArmOperation(Response.FromValue(new HostPoolResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/HostPoolPrivateEndpointConnectionCollection.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/HostPoolPrivateEndpointConnectionCollection.cs index a9d5a376e098..07ef83b44fd9 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/HostPoolPrivateEndpointConnectionCollection.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/HostPoolPrivateEndpointConnectionCollection.cs @@ -91,7 +91,9 @@ public virtual async Task(Response.FromValue(new HostPoolPrivateEndpointConnectionResource(Client, response), response.GetRawResponse())); + var uri = _hostPoolPrivateEndpointConnectionPrivateEndpointConnectionsRestClient.CreateUpdateByHostPoolRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, privateEndpointConnectionName, connection); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DesktopVirtualizationArmOperation(Response.FromValue(new HostPoolPrivateEndpointConnectionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -140,7 +142,9 @@ public virtual ArmOperation CreateOrU try { var response = _hostPoolPrivateEndpointConnectionPrivateEndpointConnectionsRestClient.UpdateByHostPool(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, privateEndpointConnectionName, connection, cancellationToken); - var operation = new DesktopVirtualizationArmOperation(Response.FromValue(new HostPoolPrivateEndpointConnectionResource(Client, response), response.GetRawResponse())); + var uri = _hostPoolPrivateEndpointConnectionPrivateEndpointConnectionsRestClient.CreateUpdateByHostPoolRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, privateEndpointConnectionName, connection); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DesktopVirtualizationArmOperation(Response.FromValue(new HostPoolPrivateEndpointConnectionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/HostPoolPrivateEndpointConnectionResource.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/HostPoolPrivateEndpointConnectionResource.cs index 88d7bb9e2051..146e17132134 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/HostPoolPrivateEndpointConnectionResource.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/HostPoolPrivateEndpointConnectionResource.cs @@ -201,7 +201,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _hostPoolPrivateEndpointConnectionPrivateEndpointConnectionsRestClient.DeleteByHostPoolAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new DesktopVirtualizationArmOperation(response); + var uri = _hostPoolPrivateEndpointConnectionPrivateEndpointConnectionsRestClient.CreateDeleteByHostPoolRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DesktopVirtualizationArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -243,7 +245,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _hostPoolPrivateEndpointConnectionPrivateEndpointConnectionsRestClient.DeleteByHostPool(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new DesktopVirtualizationArmOperation(response); + var uri = _hostPoolPrivateEndpointConnectionPrivateEndpointConnectionsRestClient.CreateDeleteByHostPoolRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DesktopVirtualizationArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -289,7 +293,9 @@ public virtual async Task(Response.FromValue(new HostPoolPrivateEndpointConnectionResource(Client, response), response.GetRawResponse())); + var uri = _hostPoolPrivateEndpointConnectionPrivateEndpointConnectionsRestClient.CreateUpdateByHostPoolRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, connection); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DesktopVirtualizationArmOperation(Response.FromValue(new HostPoolPrivateEndpointConnectionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -335,7 +341,9 @@ public virtual ArmOperation Update(Wa try { var response = _hostPoolPrivateEndpointConnectionPrivateEndpointConnectionsRestClient.UpdateByHostPool(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, connection, cancellationToken); - var operation = new DesktopVirtualizationArmOperation(Response.FromValue(new HostPoolPrivateEndpointConnectionResource(Client, response), response.GetRawResponse())); + var uri = _hostPoolPrivateEndpointConnectionPrivateEndpointConnectionsRestClient.CreateUpdateByHostPoolRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, connection); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DesktopVirtualizationArmOperation(Response.FromValue(new HostPoolPrivateEndpointConnectionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/HostPoolResource.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/HostPoolResource.cs index 09e8eac4f132..a959dd440d4d 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/HostPoolResource.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/HostPoolResource.cs @@ -429,7 +429,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, bool? f try { var response = await _hostPoolRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, force, cancellationToken).ConfigureAwait(false); - var operation = new DesktopVirtualizationArmOperation(response); + var uri = _hostPoolRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, force); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DesktopVirtualizationArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -472,7 +474,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, bool? force = null, Canc try { var response = _hostPoolRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, force, cancellationToken); - var operation = new DesktopVirtualizationArmOperation(response); + var uri = _hostPoolRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, force); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DesktopVirtualizationArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/LongRunningOperation/DesktopVirtualizationArmOperation.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/LongRunningOperation/DesktopVirtualizationArmOperation.cs index 53754ba3a4e9..3ecacff657e6 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/LongRunningOperation/DesktopVirtualizationArmOperation.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/LongRunningOperation/DesktopVirtualizationArmOperation.cs @@ -20,21 +20,24 @@ internal class DesktopVirtualizationArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of DesktopVirtualizationArmOperation for mocking. protected DesktopVirtualizationArmOperation() { } - internal DesktopVirtualizationArmOperation(Response response) + internal DesktopVirtualizationArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal DesktopVirtualizationArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "DesktopVirtualizationArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal DesktopVirtualizationArmOperation(ClientDiagnostics clientDiagnostics, public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/LongRunningOperation/DesktopVirtualizationArmOperationOfT.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/LongRunningOperation/DesktopVirtualizationArmOperationOfT.cs index 2ba31eb25786..dd752a00544a 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/LongRunningOperation/DesktopVirtualizationArmOperationOfT.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/LongRunningOperation/DesktopVirtualizationArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class DesktopVirtualizationArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of DesktopVirtualizationArmOperation for mocking. protected DesktopVirtualizationArmOperation() { } - internal DesktopVirtualizationArmOperation(Response response) + internal DesktopVirtualizationArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal DesktopVirtualizationArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "DesktopVirtualizationArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal DesktopVirtualizationArmOperation(IOperationSource source, ClientDia public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/HostPoolPrivateEndpointConnectionResource.Serialization.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/HostPoolPrivateEndpointConnectionResource.Serialization.cs new file mode 100644 index 000000000000..957703442d0d --- /dev/null +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/HostPoolPrivateEndpointConnectionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DesktopVirtualization +{ + public partial class HostPoolPrivateEndpointConnectionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DesktopVirtualizationPrivateEndpointConnectionDataData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DesktopVirtualizationPrivateEndpointConnectionDataData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/HostPoolResource.Serialization.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/HostPoolResource.Serialization.cs new file mode 100644 index 000000000000..22b98c2e56cd --- /dev/null +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/HostPoolResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DesktopVirtualization +{ + public partial class HostPoolResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + HostPoolData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + HostPoolData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/MsixPackageResource.Serialization.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/MsixPackageResource.Serialization.cs new file mode 100644 index 000000000000..66e6da18e41c --- /dev/null +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/MsixPackageResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DesktopVirtualization +{ + public partial class MsixPackageResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MsixPackageData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MsixPackageData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ScalingPlanPersonalScheduleResource.Serialization.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ScalingPlanPersonalScheduleResource.Serialization.cs new file mode 100644 index 000000000000..4424207e2cce --- /dev/null +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ScalingPlanPersonalScheduleResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DesktopVirtualization +{ + public partial class ScalingPlanPersonalScheduleResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ScalingPlanPersonalScheduleData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ScalingPlanPersonalScheduleData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ScalingPlanPooledScheduleResource.Serialization.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ScalingPlanPooledScheduleResource.Serialization.cs new file mode 100644 index 000000000000..b203e100423b --- /dev/null +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ScalingPlanPooledScheduleResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DesktopVirtualization +{ + public partial class ScalingPlanPooledScheduleResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ScalingPlanPooledScheduleData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ScalingPlanPooledScheduleData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ScalingPlanResource.Serialization.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ScalingPlanResource.Serialization.cs new file mode 100644 index 000000000000..b7b55bca09fc --- /dev/null +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ScalingPlanResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DesktopVirtualization +{ + public partial class ScalingPlanResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ScalingPlanData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ScalingPlanData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/SessionHostResource.Serialization.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/SessionHostResource.Serialization.cs new file mode 100644 index 000000000000..089d00d23be3 --- /dev/null +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/SessionHostResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DesktopVirtualization +{ + public partial class SessionHostResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SessionHostData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SessionHostData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/UserSessionResource.Serialization.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/UserSessionResource.Serialization.cs new file mode 100644 index 000000000000..b960745d27c7 --- /dev/null +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/UserSessionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DesktopVirtualization +{ + public partial class UserSessionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + UserSessionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + UserSessionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/VirtualApplicationGroupResource.Serialization.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/VirtualApplicationGroupResource.Serialization.cs new file mode 100644 index 000000000000..fb94396447d0 --- /dev/null +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/VirtualApplicationGroupResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DesktopVirtualization +{ + public partial class VirtualApplicationGroupResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + VirtualApplicationGroupData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + VirtualApplicationGroupData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/VirtualApplicationResource.Serialization.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/VirtualApplicationResource.Serialization.cs new file mode 100644 index 000000000000..a185247c7b93 --- /dev/null +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/VirtualApplicationResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DesktopVirtualization +{ + public partial class VirtualApplicationResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + VirtualApplicationData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + VirtualApplicationData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/VirtualDesktopResource.Serialization.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/VirtualDesktopResource.Serialization.cs new file mode 100644 index 000000000000..c51745603b53 --- /dev/null +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/VirtualDesktopResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DesktopVirtualization +{ + public partial class VirtualDesktopResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + VirtualDesktopData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + VirtualDesktopData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/VirtualWorkspaceResource.Serialization.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/VirtualWorkspaceResource.Serialization.cs new file mode 100644 index 000000000000..7763da491675 --- /dev/null +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/VirtualWorkspaceResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DesktopVirtualization +{ + public partial class VirtualWorkspaceResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + VirtualWorkspaceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + VirtualWorkspaceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/WorkspacePrivateEndpointConnectionResource.Serialization.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/WorkspacePrivateEndpointConnectionResource.Serialization.cs new file mode 100644 index 000000000000..26faf60ef753 --- /dev/null +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/WorkspacePrivateEndpointConnectionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DesktopVirtualization +{ + public partial class WorkspacePrivateEndpointConnectionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DesktopVirtualizationPrivateEndpointConnectionDataData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DesktopVirtualizationPrivateEndpointConnectionDataData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/MsixPackageCollection.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/MsixPackageCollection.cs index eb4e597aa355..5be53ecae888 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/MsixPackageCollection.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/MsixPackageCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> CreateOrUpdateAsync try { var response = await _msixPackageMSIXPackagesRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, msixPackageFullName, data, cancellationToken).ConfigureAwait(false); - var operation = new DesktopVirtualizationArmOperation(Response.FromValue(new MsixPackageResource(Client, response), response.GetRawResponse())); + var uri = _msixPackageMSIXPackagesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, msixPackageFullName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DesktopVirtualizationArmOperation(Response.FromValue(new MsixPackageResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUn try { var response = _msixPackageMSIXPackagesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, msixPackageFullName, data, cancellationToken); - var operation = new DesktopVirtualizationArmOperation(Response.FromValue(new MsixPackageResource(Client, response), response.GetRawResponse())); + var uri = _msixPackageMSIXPackagesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, msixPackageFullName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DesktopVirtualizationArmOperation(Response.FromValue(new MsixPackageResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/MsixPackageResource.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/MsixPackageResource.cs index 4a9c9ffc3236..bc6b93e9f684 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/MsixPackageResource.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/MsixPackageResource.cs @@ -201,7 +201,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _msixPackageMSIXPackagesRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new DesktopVirtualizationArmOperation(response); + var uri = _msixPackageMSIXPackagesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DesktopVirtualizationArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -243,7 +245,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _msixPackageMSIXPackagesRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new DesktopVirtualizationArmOperation(response); + var uri = _msixPackageMSIXPackagesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DesktopVirtualizationArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/ApplicationGroupsRestOperations.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/ApplicationGroupsRestOperations.cs index 999e50a45eb2..8b0601a11ed9 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/ApplicationGroupsRestOperations.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/ApplicationGroupsRestOperations.cs @@ -37,6 +37,20 @@ public ApplicationGroupsRestOperations(HttpPipeline pipeline, string application _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string applicationGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DesktopVirtualization/applicationGroups/", false); + uri.AppendPath(applicationGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string applicationGroupName) { var message = _pipeline.CreateMessage(); @@ -119,6 +133,20 @@ public Response Get(string subscriptionId, string r } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string applicationGroupName, VirtualApplicationGroupData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DesktopVirtualization/applicationGroups/", false); + uri.AppendPath(applicationGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string applicationGroupName, VirtualApplicationGroupData data) { var message = _pipeline.CreateMessage(); @@ -207,6 +235,20 @@ public Response CreateOrUpdate(string subscriptionI } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string applicationGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DesktopVirtualization/applicationGroups/", false); + uri.AppendPath(applicationGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string applicationGroupName) { var message = _pipeline.CreateMessage(); @@ -277,6 +319,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string applicationGroupName, VirtualApplicationGroupPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DesktopVirtualization/applicationGroups/", false); + uri.AppendPath(applicationGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string applicationGroupName, VirtualApplicationGroupPatch patch) { var message = _pipeline.CreateMessage(); @@ -363,6 +419,35 @@ public Response Update(string subscriptionId, strin } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName, string filter, int? pageSize, bool? isDescending, int? initialSkip) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DesktopVirtualization/applicationGroups", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (pageSize != null) + { + uri.AppendQuery("pageSize", pageSize.Value, true); + } + if (isDescending != null) + { + uri.AppendQuery("isDescending", isDescending.Value, true); + } + if (initialSkip != null) + { + uri.AppendQuery("initialSkip", initialSkip.Value, true); + } + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName, string filter, int? pageSize, bool? isDescending, int? initialSkip) { var message = _pipeline.CreateMessage(); @@ -460,6 +545,21 @@ public Response ListByResourceGroup(string subscriptionId, } } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.DesktopVirtualization/applicationGroups", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId, string filter) { var message = _pipeline.CreateMessage(); @@ -533,6 +633,14 @@ public Response ListBySubscription(string subscriptionId, } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string filter, int? pageSize, bool? isDescending, int? initialSkip) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string filter, int? pageSize, bool? isDescending, int? initialSkip) { var message = _pipeline.CreateMessage(); @@ -613,6 +721,14 @@ public Response ListByResourceGroupNextPage(string nextLin } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId, string filter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/ApplicationsRestOperations.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/ApplicationsRestOperations.cs index 3386aa06b16a..8afb864a3ab9 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/ApplicationsRestOperations.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/ApplicationsRestOperations.cs @@ -37,6 +37,22 @@ public ApplicationsRestOperations(HttpPipeline pipeline, string applicationId, U _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string applicationGroupName, string applicationName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DesktopVirtualization/applicationGroups/", false); + uri.AppendPath(applicationGroupName, true); + uri.AppendPath("/applications/", false); + uri.AppendPath(applicationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string applicationGroupName, string applicationName) { var message = _pipeline.CreateMessage(); @@ -125,6 +141,22 @@ public Response Get(string subscriptionId, string resour } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string applicationGroupName, string applicationName, VirtualApplicationData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DesktopVirtualization/applicationGroups/", false); + uri.AppendPath(applicationGroupName, true); + uri.AppendPath("/applications/", false); + uri.AppendPath(applicationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string applicationGroupName, string applicationName, VirtualApplicationData data) { var message = _pipeline.CreateMessage(); @@ -219,6 +251,22 @@ public Response CreateOrUpdate(string subscriptionId, st } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string applicationGroupName, string applicationName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DesktopVirtualization/applicationGroups/", false); + uri.AppendPath(applicationGroupName, true); + uri.AppendPath("/applications/", false); + uri.AppendPath(applicationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string applicationGroupName, string applicationName) { var message = _pipeline.CreateMessage(); @@ -295,6 +343,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string applicationGroupName, string applicationName, VirtualApplicationPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DesktopVirtualization/applicationGroups/", false); + uri.AppendPath(applicationGroupName, true); + uri.AppendPath("/applications/", false); + uri.AppendPath(applicationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string applicationGroupName, string applicationName, VirtualApplicationPatch patch) { var message = _pipeline.CreateMessage(); @@ -387,6 +451,33 @@ public Response Update(string subscriptionId, string res } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string applicationGroupName, int? pageSize, bool? isDescending, int? initialSkip) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DesktopVirtualization/applicationGroups/", false); + uri.AppendPath(applicationGroupName, true); + uri.AppendPath("/applications", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (pageSize != null) + { + uri.AppendQuery("pageSize", pageSize.Value, true); + } + if (isDescending != null) + { + uri.AppendQuery("isDescending", isDescending.Value, true); + } + if (initialSkip != null) + { + uri.AppendQuery("initialSkip", initialSkip.Value, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string applicationGroupName, int? pageSize, bool? isDescending, int? initialSkip) { var message = _pipeline.CreateMessage(); @@ -484,6 +575,14 @@ public Response List(string subscriptionId, string resourceGrou } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string applicationGroupName, int? pageSize, bool? isDescending, int? initialSkip) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string applicationGroupName, int? pageSize, bool? isDescending, int? initialSkip) { var message = _pipeline.CreateMessage(); diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/DesktopsRestOperations.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/DesktopsRestOperations.cs index 8d7006712daf..f3ece01e8b17 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/DesktopsRestOperations.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/DesktopsRestOperations.cs @@ -37,6 +37,22 @@ public DesktopsRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string applicationGroupName, string desktopName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DesktopVirtualization/applicationGroups/", false); + uri.AppendPath(applicationGroupName, true); + uri.AppendPath("/desktops/", false); + uri.AppendPath(desktopName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string applicationGroupName, string desktopName) { var message = _pipeline.CreateMessage(); @@ -125,6 +141,22 @@ public Response Get(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string applicationGroupName, string desktopName, VirtualDesktopPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DesktopVirtualization/applicationGroups/", false); + uri.AppendPath(applicationGroupName, true); + uri.AppendPath("/desktops/", false); + uri.AppendPath(desktopName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string applicationGroupName, string desktopName, VirtualDesktopPatch patch) { var message = _pipeline.CreateMessage(); @@ -217,6 +249,33 @@ public Response Update(string subscriptionId, string resourc } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string applicationGroupName, int? pageSize, bool? isDescending, int? initialSkip) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DesktopVirtualization/applicationGroups/", false); + uri.AppendPath(applicationGroupName, true); + uri.AppendPath("/desktops", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (pageSize != null) + { + uri.AppendQuery("pageSize", pageSize.Value, true); + } + if (isDescending != null) + { + uri.AppendQuery("isDescending", isDescending.Value, true); + } + if (initialSkip != null) + { + uri.AppendQuery("initialSkip", initialSkip.Value, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string applicationGroupName, int? pageSize, bool? isDescending, int? initialSkip) { var message = _pipeline.CreateMessage(); @@ -314,6 +373,14 @@ public Response List(string subscriptionId, string resourceGroupNam } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string applicationGroupName, int? pageSize, bool? isDescending, int? initialSkip) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string applicationGroupName, int? pageSize, bool? isDescending, int? initialSkip) { var message = _pipeline.CreateMessage(); diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/HostPoolsRestOperations.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/HostPoolsRestOperations.cs index 5696ab99400e..de19c3eeb3ef 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/HostPoolsRestOperations.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/HostPoolsRestOperations.cs @@ -37,6 +37,20 @@ public HostPoolsRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string hostPoolName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DesktopVirtualization/hostPools/", false); + uri.AppendPath(hostPoolName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string hostPoolName) { var message = _pipeline.CreateMessage(); @@ -119,6 +133,20 @@ public Response Get(string subscriptionId, string resourceGroupNam } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string hostPoolName, HostPoolData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DesktopVirtualization/hostPools/", false); + uri.AppendPath(hostPoolName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string hostPoolName, HostPoolData data) { var message = _pipeline.CreateMessage(); @@ -207,6 +235,24 @@ public Response CreateOrUpdate(string subscriptionId, string resou } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string hostPoolName, bool? force) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DesktopVirtualization/hostPools/", false); + uri.AppendPath(hostPoolName, true); + uri.AppendQuery("api-version", _apiVersion, true); + if (force != null) + { + uri.AppendQuery("force", force.Value, true); + } + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string hostPoolName, bool? force) { var message = _pipeline.CreateMessage(); @@ -283,6 +329,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string h } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string hostPoolName, HostPoolPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DesktopVirtualization/hostPools/", false); + uri.AppendPath(hostPoolName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string hostPoolName, HostPoolPatch patch) { var message = _pipeline.CreateMessage(); @@ -369,6 +429,31 @@ public Response Update(string subscriptionId, string resourceGroup } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName, int? pageSize, bool? isDescending, int? initialSkip) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DesktopVirtualization/hostPools", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (pageSize != null) + { + uri.AppendQuery("pageSize", pageSize.Value, true); + } + if (isDescending != null) + { + uri.AppendQuery("isDescending", isDescending.Value, true); + } + if (initialSkip != null) + { + uri.AppendQuery("initialSkip", initialSkip.Value, true); + } + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName, int? pageSize, bool? isDescending, int? initialSkip) { var message = _pipeline.CreateMessage(); @@ -460,6 +545,29 @@ public Response ListByResourceGroup(string subscriptionId, string } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, int? pageSize, bool? isDescending, int? initialSkip) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.DesktopVirtualization/hostPools", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (pageSize != null) + { + uri.AppendQuery("pageSize", pageSize.Value, true); + } + if (isDescending != null) + { + uri.AppendQuery("isDescending", isDescending.Value, true); + } + if (initialSkip != null) + { + uri.AppendQuery("initialSkip", initialSkip.Value, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, int? pageSize, bool? isDescending, int? initialSkip) { var message = _pipeline.CreateMessage(); @@ -545,6 +653,21 @@ public Response List(string subscriptionId, int? pageSize = null, } } + internal RequestUriBuilder CreateRetrieveRegistrationTokenRequestUri(string subscriptionId, string resourceGroupName, string hostPoolName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DesktopVirtualization/hostPools/", false); + uri.AppendPath(hostPoolName, true); + uri.AppendPath("/retrieveRegistrationToken", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRetrieveRegistrationTokenRequest(string subscriptionId, string resourceGroupName, string hostPoolName) { var message = _pipeline.CreateMessage(); @@ -624,6 +747,14 @@ public Response RetrieveRegistrationToken(string subsc } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, int? pageSize, bool? isDescending, int? initialSkip) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, int? pageSize, bool? isDescending, int? initialSkip) { var message = _pipeline.CreateMessage(); @@ -702,6 +833,14 @@ public Response ListByResourceGroupNextPage(string nextLink, strin } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, int? pageSize, bool? isDescending, int? initialSkip) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, int? pageSize, bool? isDescending, int? initialSkip) { var message = _pipeline.CreateMessage(); diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/MsixImagesRestOperations.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/MsixImagesRestOperations.cs index a6c6f68b2b25..bee6ba3be190 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/MsixImagesRestOperations.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/MsixImagesRestOperations.cs @@ -37,6 +37,21 @@ public MsixImagesRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateExpandRequestUri(string subscriptionId, string resourceGroupName, string hostPoolName, MsixImageUri msixImageUri) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DesktopVirtualization/hostPools/", false); + uri.AppendPath(hostPoolName, true); + uri.AppendPath("/expandMsixImage", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateExpandRequest(string subscriptionId, string resourceGroupName, string hostPoolName, MsixImageUri msixImageUri) { var message = _pipeline.CreateMessage(); @@ -124,6 +139,14 @@ public Response Expand(string subscriptionId, string resour } } + internal RequestUriBuilder CreateExpandNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string hostPoolName, MsixImageUri msixImageUri) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateExpandNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string hostPoolName, MsixImageUri msixImageUri) { var message = _pipeline.CreateMessage(); diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/MsixPackagesRestOperations.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/MsixPackagesRestOperations.cs index efaca9e3be64..f2d4b95d0e37 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/MsixPackagesRestOperations.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/MsixPackagesRestOperations.cs @@ -37,6 +37,22 @@ public MsixPackagesRestOperations(HttpPipeline pipeline, string applicationId, U _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string hostPoolName, string msixPackageFullName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourcegroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DesktopVirtualization/hostPools/", false); + uri.AppendPath(hostPoolName, true); + uri.AppendPath("/msixPackages/", false); + uri.AppendPath(msixPackageFullName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string hostPoolName, string msixPackageFullName) { var message = _pipeline.CreateMessage(); @@ -125,6 +141,22 @@ public Response Get(string subscriptionId, string resourceGroup } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string hostPoolName, string msixPackageFullName, MsixPackageData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourcegroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DesktopVirtualization/hostPools/", false); + uri.AppendPath(hostPoolName, true); + uri.AppendPath("/msixPackages/", false); + uri.AppendPath(msixPackageFullName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string hostPoolName, string msixPackageFullName, MsixPackageData data) { var message = _pipeline.CreateMessage(); @@ -219,6 +251,22 @@ public Response CreateOrUpdate(string subscriptionId, string re } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string hostPoolName, string msixPackageFullName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourcegroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DesktopVirtualization/hostPools/", false); + uri.AppendPath(hostPoolName, true); + uri.AppendPath("/msixPackages/", false); + uri.AppendPath(msixPackageFullName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string hostPoolName, string msixPackageFullName) { var message = _pipeline.CreateMessage(); @@ -295,6 +343,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string h } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string hostPoolName, string msixPackageFullName, MsixPackagePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourcegroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DesktopVirtualization/hostPools/", false); + uri.AppendPath(hostPoolName, true); + uri.AppendPath("/msixPackages/", false); + uri.AppendPath(msixPackageFullName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string hostPoolName, string msixPackageFullName, MsixPackagePatch patch) { var message = _pipeline.CreateMessage(); @@ -387,6 +451,33 @@ public Response Update(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string hostPoolName, int? pageSize, bool? isDescending, int? initialSkip) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourcegroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DesktopVirtualization/hostPools/", false); + uri.AppendPath(hostPoolName, true); + uri.AppendPath("/msixPackages", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (pageSize != null) + { + uri.AppendQuery("pageSize", pageSize.Value, true); + } + if (isDescending != null) + { + uri.AppendQuery("isDescending", isDescending.Value, true); + } + if (initialSkip != null) + { + uri.AppendQuery("initialSkip", initialSkip.Value, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string hostPoolName, int? pageSize, bool? isDescending, int? initialSkip) { var message = _pipeline.CreateMessage(); @@ -484,6 +575,14 @@ public Response List(string subscriptionId, string resourceGrou } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string hostPoolName, int? pageSize, bool? isDescending, int? initialSkip) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string hostPoolName, int? pageSize, bool? isDescending, int? initialSkip) { var message = _pipeline.CreateMessage(); diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs index 9df9d47cc537..f114649c7ba8 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs @@ -37,6 +37,21 @@ public PrivateEndpointConnectionsRestOperations(HttpPipeline pipeline, string ap _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByWorkspaceRequestUri(string subscriptionId, string resourceGroupName, string workspaceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DesktopVirtualization/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/privateEndpointConnections", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByWorkspaceRequest(string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByWorkspa } } + internal RequestUriBuilder CreateGetByWorkspaceRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string privateEndpointConnectionName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DesktopVirtualization/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetByWorkspaceRequest(string subscriptionId, string resourceGroupName, string workspaceName, string privateEndpointConnectionName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response GetByWor } } + internal RequestUriBuilder CreateDeleteByWorkspaceRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string privateEndpointConnectionName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DesktopVirtualization/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteByWorkspaceRequest(string subscriptionId, string resourceGroupName, string workspaceName, string privateEndpointConnectionName) { var message = _pipeline.CreateMessage(); @@ -280,6 +327,22 @@ public Response DeleteByWorkspace(string subscriptionId, string resourceGroupNam } } + internal RequestUriBuilder CreateUpdateByWorkspaceRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string privateEndpointConnectionName, DesktopVirtualizationPrivateEndpointConnection connection) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DesktopVirtualization/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateByWorkspaceRequest(string subscriptionId, string resourceGroupName, string workspaceName, string privateEndpointConnectionName, DesktopVirtualizationPrivateEndpointConnection connection) { var message = _pipeline.CreateMessage(); @@ -372,6 +435,33 @@ public Response UpdateBy } } + internal RequestUriBuilder CreateListByHostPoolRequestUri(string subscriptionId, string resourceGroupName, string hostPoolName, int? pageSize, bool? isDescending, int? initialSkip) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DesktopVirtualization/hostPools/", false); + uri.AppendPath(hostPoolName, true); + uri.AppendPath("/privateEndpointConnections", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (pageSize != null) + { + uri.AppendQuery("pageSize", pageSize.Value, true); + } + if (isDescending != null) + { + uri.AppendQuery("isDescending", isDescending.Value, true); + } + if (initialSkip != null) + { + uri.AppendQuery("initialSkip", initialSkip.Value, true); + } + return uri; + } + internal HttpMessage CreateListByHostPoolRequest(string subscriptionId, string resourceGroupName, string hostPoolName, int? pageSize, bool? isDescending, int? initialSkip) { var message = _pipeline.CreateMessage(); @@ -469,6 +559,22 @@ public Response ListByHostPoo } } + internal RequestUriBuilder CreateGetByHostPoolRequestUri(string subscriptionId, string resourceGroupName, string hostPoolName, string privateEndpointConnectionName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DesktopVirtualization/hostPools/", false); + uri.AppendPath(hostPoolName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetByHostPoolRequest(string subscriptionId, string resourceGroupName, string hostPoolName, string privateEndpointConnectionName) { var message = _pipeline.CreateMessage(); @@ -557,6 +663,22 @@ public Response GetByHos } } + internal RequestUriBuilder CreateDeleteByHostPoolRequestUri(string subscriptionId, string resourceGroupName, string hostPoolName, string privateEndpointConnectionName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DesktopVirtualization/hostPools/", false); + uri.AppendPath(hostPoolName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteByHostPoolRequest(string subscriptionId, string resourceGroupName, string hostPoolName, string privateEndpointConnectionName) { var message = _pipeline.CreateMessage(); @@ -633,6 +755,22 @@ public Response DeleteByHostPool(string subscriptionId, string resourceGroupName } } + internal RequestUriBuilder CreateUpdateByHostPoolRequestUri(string subscriptionId, string resourceGroupName, string hostPoolName, string privateEndpointConnectionName, DesktopVirtualizationPrivateEndpointConnection connection) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DesktopVirtualization/hostPools/", false); + uri.AppendPath(hostPoolName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateByHostPoolRequest(string subscriptionId, string resourceGroupName, string hostPoolName, string privateEndpointConnectionName, DesktopVirtualizationPrivateEndpointConnection connection) { var message = _pipeline.CreateMessage(); @@ -725,6 +863,14 @@ public Response UpdateBy } } + internal RequestUriBuilder CreateListByWorkspaceNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByWorkspaceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); @@ -801,6 +947,14 @@ public Response ListByWorkspa } } + internal RequestUriBuilder CreateListByHostPoolNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string hostPoolName, int? pageSize, bool? isDescending, int? initialSkip) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByHostPoolNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string hostPoolName, int? pageSize, bool? isDescending, int? initialSkip) { var message = _pipeline.CreateMessage(); diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs index c767fa8f3c9d..fb59fd536d72 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs @@ -37,6 +37,33 @@ public PrivateLinkResourcesRestOperations(HttpPipeline pipeline, string applicat _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByWorkspaceRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, int? pageSize, bool? isDescending, int? initialSkip) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DesktopVirtualization/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/privateLinkResources", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (pageSize != null) + { + uri.AppendQuery("pageSize", pageSize.Value, true); + } + if (isDescending != null) + { + uri.AppendQuery("isDescending", isDescending.Value, true); + } + if (initialSkip != null) + { + uri.AppendQuery("initialSkip", initialSkip.Value, true); + } + return uri; + } + internal HttpMessage CreateListByWorkspaceRequest(string subscriptionId, string resourceGroupName, string workspaceName, int? pageSize, bool? isDescending, int? initialSkip) { var message = _pipeline.CreateMessage(); @@ -134,6 +161,33 @@ public Response ListByWorksp } } + internal RequestUriBuilder CreateListByHostPoolRequestUri(string subscriptionId, string resourceGroupName, string hostPoolName, int? pageSize, bool? isDescending, int? initialSkip) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DesktopVirtualization/hostPools/", false); + uri.AppendPath(hostPoolName, true); + uri.AppendPath("/privateLinkResources", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (pageSize != null) + { + uri.AppendQuery("pageSize", pageSize.Value, true); + } + if (isDescending != null) + { + uri.AppendQuery("isDescending", isDescending.Value, true); + } + if (initialSkip != null) + { + uri.AppendQuery("initialSkip", initialSkip.Value, true); + } + return uri; + } + internal HttpMessage CreateListByHostPoolRequest(string subscriptionId, string resourceGroupName, string hostPoolName, int? pageSize, bool? isDescending, int? initialSkip) { var message = _pipeline.CreateMessage(); @@ -231,6 +285,14 @@ public Response ListByHostPo } } + internal RequestUriBuilder CreateListByWorkspaceNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, int? pageSize, bool? isDescending, int? initialSkip) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByWorkspaceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, int? pageSize, bool? isDescending, int? initialSkip) { var message = _pipeline.CreateMessage(); @@ -313,6 +375,14 @@ public Response ListByWorksp } } + internal RequestUriBuilder CreateListByHostPoolNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string hostPoolName, int? pageSize, bool? isDescending, int? initialSkip) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByHostPoolNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string hostPoolName, int? pageSize, bool? isDescending, int? initialSkip) { var message = _pipeline.CreateMessage(); diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/ScalingPlanPersonalSchedulesRestOperations.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/ScalingPlanPersonalSchedulesRestOperations.cs index ac50e3cf83d9..e3651be0bb14 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/ScalingPlanPersonalSchedulesRestOperations.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/ScalingPlanPersonalSchedulesRestOperations.cs @@ -37,6 +37,22 @@ public ScalingPlanPersonalSchedulesRestOperations(HttpPipeline pipeline, string _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string scalingPlanName, string scalingPlanScheduleName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DesktopVirtualization/scalingPlans/", false); + uri.AppendPath(scalingPlanName, true); + uri.AppendPath("/personalSchedules/", false); + uri.AppendPath(scalingPlanScheduleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string scalingPlanName, string scalingPlanScheduleName) { var message = _pipeline.CreateMessage(); @@ -125,6 +141,22 @@ public Response Get(string subscriptionId, stri } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string scalingPlanName, string scalingPlanScheduleName, ScalingPlanPersonalScheduleData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DesktopVirtualization/scalingPlans/", false); + uri.AppendPath(scalingPlanName, true); + uri.AppendPath("/personalSchedules/", false); + uri.AppendPath(scalingPlanScheduleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string scalingPlanName, string scalingPlanScheduleName, ScalingPlanPersonalScheduleData data) { var message = _pipeline.CreateMessage(); @@ -219,6 +251,22 @@ public Response Create(string subscriptionId, s } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string scalingPlanName, string scalingPlanScheduleName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DesktopVirtualization/scalingPlans/", false); + uri.AppendPath(scalingPlanName, true); + uri.AppendPath("/personalSchedules/", false); + uri.AppendPath(scalingPlanScheduleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string scalingPlanName, string scalingPlanScheduleName) { var message = _pipeline.CreateMessage(); @@ -295,6 +343,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string scalingPlanName, string scalingPlanScheduleName, ScalingPlanPersonalSchedulePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DesktopVirtualization/scalingPlans/", false); + uri.AppendPath(scalingPlanName, true); + uri.AppendPath("/personalSchedules/", false); + uri.AppendPath(scalingPlanScheduleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string scalingPlanName, string scalingPlanScheduleName, ScalingPlanPersonalSchedulePatch patch) { var message = _pipeline.CreateMessage(); @@ -387,6 +451,33 @@ public Response Update(string subscriptionId, s } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string scalingPlanName, int? pageSize, bool? isDescending, int? initialSkip) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DesktopVirtualization/scalingPlans/", false); + uri.AppendPath(scalingPlanName, true); + uri.AppendPath("/personalSchedules", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (pageSize != null) + { + uri.AppendQuery("pageSize", pageSize.Value, true); + } + if (isDescending != null) + { + uri.AppendQuery("isDescending", isDescending.Value, true); + } + if (initialSkip != null) + { + uri.AppendQuery("initialSkip", initialSkip.Value, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string scalingPlanName, int? pageSize, bool? isDescending, int? initialSkip) { var message = _pipeline.CreateMessage(); @@ -484,6 +575,14 @@ public Response List(string subscriptionId, str } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string scalingPlanName, int? pageSize, bool? isDescending, int? initialSkip) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string scalingPlanName, int? pageSize, bool? isDescending, int? initialSkip) { var message = _pipeline.CreateMessage(); diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/ScalingPlanPooledSchedulesRestOperations.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/ScalingPlanPooledSchedulesRestOperations.cs index a6406056096f..2765a2c4f40c 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/ScalingPlanPooledSchedulesRestOperations.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/ScalingPlanPooledSchedulesRestOperations.cs @@ -37,6 +37,22 @@ public ScalingPlanPooledSchedulesRestOperations(HttpPipeline pipeline, string ap _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string scalingPlanName, string scalingPlanScheduleName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DesktopVirtualization/scalingPlans/", false); + uri.AppendPath(scalingPlanName, true); + uri.AppendPath("/pooledSchedules/", false); + uri.AppendPath(scalingPlanScheduleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string scalingPlanName, string scalingPlanScheduleName) { var message = _pipeline.CreateMessage(); @@ -125,6 +141,22 @@ public Response Get(string subscriptionId, string } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string scalingPlanName, string scalingPlanScheduleName, ScalingPlanPooledScheduleData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DesktopVirtualization/scalingPlans/", false); + uri.AppendPath(scalingPlanName, true); + uri.AppendPath("/pooledSchedules/", false); + uri.AppendPath(scalingPlanScheduleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string scalingPlanName, string scalingPlanScheduleName, ScalingPlanPooledScheduleData data) { var message = _pipeline.CreateMessage(); @@ -219,6 +251,22 @@ public Response Create(string subscriptionId, str } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string scalingPlanName, string scalingPlanScheduleName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DesktopVirtualization/scalingPlans/", false); + uri.AppendPath(scalingPlanName, true); + uri.AppendPath("/pooledSchedules/", false); + uri.AppendPath(scalingPlanScheduleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string scalingPlanName, string scalingPlanScheduleName) { var message = _pipeline.CreateMessage(); @@ -295,6 +343,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string scalingPlanName, string scalingPlanScheduleName, ScalingPlanPooledSchedulePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DesktopVirtualization/scalingPlans/", false); + uri.AppendPath(scalingPlanName, true); + uri.AppendPath("/pooledSchedules/", false); + uri.AppendPath(scalingPlanScheduleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string scalingPlanName, string scalingPlanScheduleName, ScalingPlanPooledSchedulePatch patch) { var message = _pipeline.CreateMessage(); @@ -387,6 +451,33 @@ public Response Update(string subscriptionId, str } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string scalingPlanName, int? pageSize, bool? isDescending, int? initialSkip) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DesktopVirtualization/scalingPlans/", false); + uri.AppendPath(scalingPlanName, true); + uri.AppendPath("/pooledSchedules", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (pageSize != null) + { + uri.AppendQuery("pageSize", pageSize.Value, true); + } + if (isDescending != null) + { + uri.AppendQuery("isDescending", isDescending.Value, true); + } + if (initialSkip != null) + { + uri.AppendQuery("initialSkip", initialSkip.Value, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string scalingPlanName, int? pageSize, bool? isDescending, int? initialSkip) { var message = _pipeline.CreateMessage(); @@ -484,6 +575,14 @@ public Response List(string subscriptionId, strin } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string scalingPlanName, int? pageSize, bool? isDescending, int? initialSkip) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string scalingPlanName, int? pageSize, bool? isDescending, int? initialSkip) { var message = _pipeline.CreateMessage(); diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/ScalingPlansRestOperations.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/ScalingPlansRestOperations.cs index 8ef3a07d4469..7be160c44aec 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/ScalingPlansRestOperations.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/ScalingPlansRestOperations.cs @@ -37,6 +37,20 @@ public ScalingPlansRestOperations(HttpPipeline pipeline, string applicationId, U _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string scalingPlanName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DesktopVirtualization/scalingPlans/", false); + uri.AppendPath(scalingPlanName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string scalingPlanName) { var message = _pipeline.CreateMessage(); @@ -119,6 +133,20 @@ public Response Get(string subscriptionId, string resourceGroup } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string scalingPlanName, ScalingPlanData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DesktopVirtualization/scalingPlans/", false); + uri.AppendPath(scalingPlanName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string scalingPlanName, ScalingPlanData data) { var message = _pipeline.CreateMessage(); @@ -207,6 +235,20 @@ public Response Create(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string scalingPlanName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DesktopVirtualization/scalingPlans/", false); + uri.AppendPath(scalingPlanName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string scalingPlanName) { var message = _pipeline.CreateMessage(); @@ -277,6 +319,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string scalingPlanName, ScalingPlanPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DesktopVirtualization/scalingPlans/", false); + uri.AppendPath(scalingPlanName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string scalingPlanName, ScalingPlanPatch patch) { var message = _pipeline.CreateMessage(); @@ -363,6 +419,31 @@ public Response Update(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName, int? pageSize, bool? isDescending, int? initialSkip) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DesktopVirtualization/scalingPlans", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (pageSize != null) + { + uri.AppendQuery("pageSize", pageSize.Value, true); + } + if (isDescending != null) + { + uri.AppendQuery("isDescending", isDescending.Value, true); + } + if (initialSkip != null) + { + uri.AppendQuery("initialSkip", initialSkip.Value, true); + } + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName, int? pageSize, bool? isDescending, int? initialSkip) { var message = _pipeline.CreateMessage(); @@ -454,6 +535,29 @@ public Response ListByResourceGroup(string subscriptionId, stri } } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId, int? pageSize, bool? isDescending, int? initialSkip) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.DesktopVirtualization/scalingPlans", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (pageSize != null) + { + uri.AppendQuery("pageSize", pageSize.Value, true); + } + if (isDescending != null) + { + uri.AppendQuery("isDescending", isDescending.Value, true); + } + if (initialSkip != null) + { + uri.AppendQuery("initialSkip", initialSkip.Value, true); + } + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId, int? pageSize, bool? isDescending, int? initialSkip) { var message = _pipeline.CreateMessage(); @@ -539,6 +643,33 @@ public Response ListBySubscription(string subscriptionId, int? } } + internal RequestUriBuilder CreateListByHostPoolRequestUri(string subscriptionId, string resourceGroupName, string hostPoolName, int? pageSize, bool? isDescending, int? initialSkip) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DesktopVirtualization/hostPools/", false); + uri.AppendPath(hostPoolName, true); + uri.AppendPath("/scalingPlans", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (pageSize != null) + { + uri.AppendQuery("pageSize", pageSize.Value, true); + } + if (isDescending != null) + { + uri.AppendQuery("isDescending", isDescending.Value, true); + } + if (initialSkip != null) + { + uri.AppendQuery("initialSkip", initialSkip.Value, true); + } + return uri; + } + internal HttpMessage CreateListByHostPoolRequest(string subscriptionId, string resourceGroupName, string hostPoolName, int? pageSize, bool? isDescending, int? initialSkip) { var message = _pipeline.CreateMessage(); @@ -636,6 +767,14 @@ public Response ListByHostPool(string subscriptionId, string re } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, int? pageSize, bool? isDescending, int? initialSkip) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, int? pageSize, bool? isDescending, int? initialSkip) { var message = _pipeline.CreateMessage(); @@ -714,6 +853,14 @@ public Response ListByResourceGroupNextPage(string nextLink, st } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId, int? pageSize, bool? isDescending, int? initialSkip) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId, int? pageSize, bool? isDescending, int? initialSkip) { var message = _pipeline.CreateMessage(); @@ -788,6 +935,14 @@ public Response ListBySubscriptionNextPage(string nextLink, str } } + internal RequestUriBuilder CreateListByHostPoolNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string hostPoolName, int? pageSize, bool? isDescending, int? initialSkip) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByHostPoolNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string hostPoolName, int? pageSize, bool? isDescending, int? initialSkip) { var message = _pipeline.CreateMessage(); diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/SessionHostsRestOperations.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/SessionHostsRestOperations.cs index 73a9e6b5ea60..a30dc32b52f0 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/SessionHostsRestOperations.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/SessionHostsRestOperations.cs @@ -37,6 +37,22 @@ public SessionHostsRestOperations(HttpPipeline pipeline, string applicationId, U _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string hostPoolName, string sessionHostName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DesktopVirtualization/hostPools/", false); + uri.AppendPath(hostPoolName, true); + uri.AppendPath("/sessionHosts/", false); + uri.AppendPath(sessionHostName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string hostPoolName, string sessionHostName) { var message = _pipeline.CreateMessage(); @@ -125,6 +141,26 @@ public Response Get(string subscriptionId, string resourceGroup } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string hostPoolName, string sessionHostName, bool? force) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DesktopVirtualization/hostPools/", false); + uri.AppendPath(hostPoolName, true); + uri.AppendPath("/sessionHosts/", false); + uri.AppendPath(sessionHostName, true); + uri.AppendQuery("api-version", _apiVersion, true); + if (force != null) + { + uri.AppendQuery("force", force.Value, true); + } + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string hostPoolName, string sessionHostName, bool? force) { var message = _pipeline.CreateMessage(); @@ -207,6 +243,26 @@ public Response Delete(string subscriptionId, string resourceGroupName, string h } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string hostPoolName, string sessionHostName, SessionHostPatch patch, bool? force) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DesktopVirtualization/hostPools/", false); + uri.AppendPath(hostPoolName, true); + uri.AppendPath("/sessionHosts/", false); + uri.AppendPath(sessionHostName, true); + uri.AppendQuery("api-version", _apiVersion, true); + if (force != null) + { + uri.AppendQuery("force", force.Value, true); + } + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string hostPoolName, string sessionHostName, SessionHostPatch patch, bool? force) { var message = _pipeline.CreateMessage(); @@ -305,6 +361,33 @@ public Response Update(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string hostPoolName, int? pageSize, bool? isDescending, int? initialSkip) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DesktopVirtualization/hostPools/", false); + uri.AppendPath(hostPoolName, true); + uri.AppendPath("/sessionHosts", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (pageSize != null) + { + uri.AppendQuery("pageSize", pageSize.Value, true); + } + if (isDescending != null) + { + uri.AppendQuery("isDescending", isDescending.Value, true); + } + if (initialSkip != null) + { + uri.AppendQuery("initialSkip", initialSkip.Value, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string hostPoolName, int? pageSize, bool? isDescending, int? initialSkip) { var message = _pipeline.CreateMessage(); @@ -402,6 +485,14 @@ public Response List(string subscriptionId, string resourceGrou } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string hostPoolName, int? pageSize, bool? isDescending, int? initialSkip) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string hostPoolName, int? pageSize, bool? isDescending, int? initialSkip) { var message = _pipeline.CreateMessage(); diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/StartMenuItemsRestOperations.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/StartMenuItemsRestOperations.cs index 59ad7daeacfe..3c6e7f73ea06 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/StartMenuItemsRestOperations.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/StartMenuItemsRestOperations.cs @@ -37,6 +37,33 @@ public StartMenuItemsRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string applicationGroupName, int? pageSize, bool? isDescending, int? initialSkip) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DesktopVirtualization/applicationGroups/", false); + uri.AppendPath(applicationGroupName, true); + uri.AppendPath("/startMenuItems", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (pageSize != null) + { + uri.AppendQuery("pageSize", pageSize.Value, true); + } + if (isDescending != null) + { + uri.AppendQuery("isDescending", isDescending.Value, true); + } + if (initialSkip != null) + { + uri.AppendQuery("initialSkip", initialSkip.Value, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string applicationGroupName, int? pageSize, bool? isDescending, int? initialSkip) { var message = _pipeline.CreateMessage(); @@ -134,6 +161,14 @@ public Response List(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string applicationGroupName, int? pageSize, bool? isDescending, int? initialSkip) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string applicationGroupName, int? pageSize, bool? isDescending, int? initialSkip) { var message = _pipeline.CreateMessage(); diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/UserSessionsRestOperations.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/UserSessionsRestOperations.cs index 0d7d526f9dec..ff40eaceb074 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/UserSessionsRestOperations.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/UserSessionsRestOperations.cs @@ -37,6 +37,37 @@ public UserSessionsRestOperations(HttpPipeline pipeline, string applicationId, U _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByHostPoolRequestUri(string subscriptionId, string resourceGroupName, string hostPoolName, string filter, int? pageSize, bool? isDescending, int? initialSkip) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DesktopVirtualization/hostPools/", false); + uri.AppendPath(hostPoolName, true); + uri.AppendPath("/userSessions", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (pageSize != null) + { + uri.AppendQuery("pageSize", pageSize.Value, true); + } + if (isDescending != null) + { + uri.AppendQuery("isDescending", isDescending.Value, true); + } + if (initialSkip != null) + { + uri.AppendQuery("initialSkip", initialSkip.Value, true); + } + return uri; + } + internal HttpMessage CreateListByHostPoolRequest(string subscriptionId, string resourceGroupName, string hostPoolName, string filter, int? pageSize, bool? isDescending, int? initialSkip) { var message = _pipeline.CreateMessage(); @@ -140,6 +171,24 @@ public Response ListByHostPool(string subscriptionId, string re } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string hostPoolName, string sessionHostName, string userSessionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DesktopVirtualization/hostPools/", false); + uri.AppendPath(hostPoolName, true); + uri.AppendPath("/sessionHosts/", false); + uri.AppendPath(sessionHostName, true); + uri.AppendPath("/userSessions/", false); + uri.AppendPath(userSessionId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string hostPoolName, string sessionHostName, string userSessionId) { var message = _pipeline.CreateMessage(); @@ -234,6 +283,28 @@ public Response Get(string subscriptionId, string resourceGroup } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string hostPoolName, string sessionHostName, string userSessionId, bool? force) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DesktopVirtualization/hostPools/", false); + uri.AppendPath(hostPoolName, true); + uri.AppendPath("/sessionHosts/", false); + uri.AppendPath(sessionHostName, true); + uri.AppendPath("/userSessions/", false); + uri.AppendPath(userSessionId, true); + uri.AppendQuery("api-version", _apiVersion, true); + if (force != null) + { + uri.AppendQuery("force", force.Value, true); + } + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string hostPoolName, string sessionHostName, string userSessionId, bool? force) { var message = _pipeline.CreateMessage(); @@ -322,6 +393,35 @@ public Response Delete(string subscriptionId, string resourceGroupName, string h } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string hostPoolName, string sessionHostName, int? pageSize, bool? isDescending, int? initialSkip) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DesktopVirtualization/hostPools/", false); + uri.AppendPath(hostPoolName, true); + uri.AppendPath("/sessionHosts/", false); + uri.AppendPath(sessionHostName, true); + uri.AppendPath("/userSessions", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (pageSize != null) + { + uri.AppendQuery("pageSize", pageSize.Value, true); + } + if (isDescending != null) + { + uri.AppendQuery("isDescending", isDescending.Value, true); + } + if (initialSkip != null) + { + uri.AppendQuery("initialSkip", initialSkip.Value, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string hostPoolName, string sessionHostName, int? pageSize, bool? isDescending, int? initialSkip) { var message = _pipeline.CreateMessage(); @@ -425,6 +525,25 @@ public Response List(string subscriptionId, string resourceGrou } } + internal RequestUriBuilder CreateDisconnectRequestUri(string subscriptionId, string resourceGroupName, string hostPoolName, string sessionHostName, string userSessionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DesktopVirtualization/hostPools/", false); + uri.AppendPath(hostPoolName, true); + uri.AppendPath("/sessionHosts/", false); + uri.AppendPath(sessionHostName, true); + uri.AppendPath("/userSessions/", false); + uri.AppendPath(userSessionId, true); + uri.AppendPath("/disconnect", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDisconnectRequest(string subscriptionId, string resourceGroupName, string hostPoolName, string sessionHostName, string userSessionId) { var message = _pipeline.CreateMessage(); @@ -506,6 +625,25 @@ public Response Disconnect(string subscriptionId, string resourceGroupName, stri } } + internal RequestUriBuilder CreateSendMessageRequestUri(string subscriptionId, string resourceGroupName, string hostPoolName, string sessionHostName, string userSessionId, UserSessionMessage sendMessage) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DesktopVirtualization/hostPools/", false); + uri.AppendPath(hostPoolName, true); + uri.AppendPath("/sessionHosts/", false); + uri.AppendPath(sessionHostName, true); + uri.AppendPath("/userSessions/", false); + uri.AppendPath(userSessionId, true); + uri.AppendPath("/sendMessage", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateSendMessageRequest(string subscriptionId, string resourceGroupName, string hostPoolName, string sessionHostName, string userSessionId, UserSessionMessage sendMessage) { var message = _pipeline.CreateMessage(); @@ -596,6 +734,14 @@ public Response SendMessage(string subscriptionId, string resourceGroupName, str } } + internal RequestUriBuilder CreateListByHostPoolNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string hostPoolName, string filter, int? pageSize, bool? isDescending, int? initialSkip) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByHostPoolNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string hostPoolName, string filter, int? pageSize, bool? isDescending, int? initialSkip) { var message = _pipeline.CreateMessage(); @@ -680,6 +826,14 @@ public Response ListByHostPoolNextPage(string nextLink, string } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string hostPoolName, string sessionHostName, int? pageSize, bool? isDescending, int? initialSkip) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string hostPoolName, string sessionHostName, int? pageSize, bool? isDescending, int? initialSkip) { var message = _pipeline.CreateMessage(); diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/WorkspacesRestOperations.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/WorkspacesRestOperations.cs index bd7ea12135d3..2dfa85dcab90 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/WorkspacesRestOperations.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/RestOperations/WorkspacesRestOperations.cs @@ -37,6 +37,20 @@ public WorkspacesRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workspaceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DesktopVirtualization/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); @@ -119,6 +133,20 @@ public Response Get(string subscriptionId, string resource } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, VirtualWorkspaceData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DesktopVirtualization/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, VirtualWorkspaceData data) { var message = _pipeline.CreateMessage(); @@ -207,6 +235,20 @@ public Response CreateOrUpdate(string subscriptionId, stri } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string workspaceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DesktopVirtualization/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); @@ -277,6 +319,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string w } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, VirtualWorkspacePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DesktopVirtualization/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, VirtualWorkspacePatch patch) { var message = _pipeline.CreateMessage(); @@ -363,6 +419,31 @@ public Response Update(string subscriptionId, string resou } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName, int? pageSize, bool? isDescending, int? initialSkip) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DesktopVirtualization/workspaces", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (pageSize != null) + { + uri.AppendQuery("pageSize", pageSize.Value, true); + } + if (isDescending != null) + { + uri.AppendQuery("isDescending", isDescending.Value, true); + } + if (initialSkip != null) + { + uri.AppendQuery("initialSkip", initialSkip.Value, true); + } + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName, int? pageSize, bool? isDescending, int? initialSkip) { var message = _pipeline.CreateMessage(); @@ -454,6 +535,17 @@ public Response ListByResourceGroup(string subscriptionId, string } } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.DesktopVirtualization/workspaces", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -521,6 +613,14 @@ public Response ListBySubscription(string subscriptionId, Cancell } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, int? pageSize, bool? isDescending, int? initialSkip) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, int? pageSize, bool? isDescending, int? initialSkip) { var message = _pipeline.CreateMessage(); @@ -599,6 +699,14 @@ public Response ListByResourceGroupNextPage(string nextLink, stri } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/ScalingPlanCollection.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/ScalingPlanCollection.cs index f528dce16932..1e44fe4004a0 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/ScalingPlanCollection.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/ScalingPlanCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> CreateOrUpdateAsync try { var response = await _scalingPlanRestClient.CreateAsync(Id.SubscriptionId, Id.ResourceGroupName, scalingPlanName, data, cancellationToken).ConfigureAwait(false); - var operation = new DesktopVirtualizationArmOperation(Response.FromValue(new ScalingPlanResource(Client, response), response.GetRawResponse())); + var uri = _scalingPlanRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, scalingPlanName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DesktopVirtualizationArmOperation(Response.FromValue(new ScalingPlanResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -140,7 +142,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUn try { var response = _scalingPlanRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, scalingPlanName, data, cancellationToken); - var operation = new DesktopVirtualizationArmOperation(Response.FromValue(new ScalingPlanResource(Client, response), response.GetRawResponse())); + var uri = _scalingPlanRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, scalingPlanName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DesktopVirtualizationArmOperation(Response.FromValue(new ScalingPlanResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/ScalingPlanPersonalScheduleCollection.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/ScalingPlanPersonalScheduleCollection.cs index 746d3a1bc614..0a4788dd58ac 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/ScalingPlanPersonalScheduleCollection.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/ScalingPlanPersonalScheduleCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> Cre try { var response = await _scalingPlanPersonalScheduleRestClient.CreateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, scalingPlanScheduleName, data, cancellationToken).ConfigureAwait(false); - var operation = new DesktopVirtualizationArmOperation(Response.FromValue(new ScalingPlanPersonalScheduleResource(Client, response), response.GetRawResponse())); + var uri = _scalingPlanPersonalScheduleRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, scalingPlanScheduleName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DesktopVirtualizationArmOperation(Response.FromValue(new ScalingPlanPersonalScheduleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate( try { var response = _scalingPlanPersonalScheduleRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, scalingPlanScheduleName, data, cancellationToken); - var operation = new DesktopVirtualizationArmOperation(Response.FromValue(new ScalingPlanPersonalScheduleResource(Client, response), response.GetRawResponse())); + var uri = _scalingPlanPersonalScheduleRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, scalingPlanScheduleName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DesktopVirtualizationArmOperation(Response.FromValue(new ScalingPlanPersonalScheduleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/ScalingPlanPersonalScheduleResource.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/ScalingPlanPersonalScheduleResource.cs index aa3a6ac762db..5e3f26730498 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/ScalingPlanPersonalScheduleResource.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/ScalingPlanPersonalScheduleResource.cs @@ -201,7 +201,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _scalingPlanPersonalScheduleRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new DesktopVirtualizationArmOperation(response); + var uri = _scalingPlanPersonalScheduleRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DesktopVirtualizationArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -243,7 +245,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _scalingPlanPersonalScheduleRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new DesktopVirtualizationArmOperation(response); + var uri = _scalingPlanPersonalScheduleRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DesktopVirtualizationArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/ScalingPlanPooledScheduleCollection.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/ScalingPlanPooledScheduleCollection.cs index 4145b9223f67..288addc45b3a 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/ScalingPlanPooledScheduleCollection.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/ScalingPlanPooledScheduleCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> Creat try { var response = await _scalingPlanPooledScheduleRestClient.CreateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, scalingPlanScheduleName, data, cancellationToken).ConfigureAwait(false); - var operation = new DesktopVirtualizationArmOperation(Response.FromValue(new ScalingPlanPooledScheduleResource(Client, response), response.GetRawResponse())); + var uri = _scalingPlanPooledScheduleRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, scalingPlanScheduleName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DesktopVirtualizationArmOperation(Response.FromValue(new ScalingPlanPooledScheduleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(Wa try { var response = _scalingPlanPooledScheduleRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, scalingPlanScheduleName, data, cancellationToken); - var operation = new DesktopVirtualizationArmOperation(Response.FromValue(new ScalingPlanPooledScheduleResource(Client, response), response.GetRawResponse())); + var uri = _scalingPlanPooledScheduleRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, scalingPlanScheduleName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DesktopVirtualizationArmOperation(Response.FromValue(new ScalingPlanPooledScheduleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/ScalingPlanPooledScheduleResource.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/ScalingPlanPooledScheduleResource.cs index 75fbd7513f50..a7da07b37a88 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/ScalingPlanPooledScheduleResource.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/ScalingPlanPooledScheduleResource.cs @@ -201,7 +201,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _scalingPlanPooledScheduleRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new DesktopVirtualizationArmOperation(response); + var uri = _scalingPlanPooledScheduleRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DesktopVirtualizationArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -243,7 +245,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _scalingPlanPooledScheduleRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new DesktopVirtualizationArmOperation(response); + var uri = _scalingPlanPooledScheduleRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DesktopVirtualizationArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/ScalingPlanResource.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/ScalingPlanResource.cs index 4f53b25627ac..9f3b9520b0a2 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/ScalingPlanResource.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/ScalingPlanResource.cs @@ -340,7 +340,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _scalingPlanRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new DesktopVirtualizationArmOperation(response); + var uri = _scalingPlanRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DesktopVirtualizationArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -382,7 +384,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _scalingPlanRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); - var operation = new DesktopVirtualizationArmOperation(response); + var uri = _scalingPlanRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DesktopVirtualizationArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/SessionHostResource.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/SessionHostResource.cs index 24bff4f5d035..748f8dcd0581 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/SessionHostResource.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/SessionHostResource.cs @@ -271,7 +271,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, bool? f try { var response = await _sessionHostRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, force, cancellationToken).ConfigureAwait(false); - var operation = new DesktopVirtualizationArmOperation(response); + var uri = _sessionHostRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, force); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DesktopVirtualizationArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -314,7 +316,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, bool? force = null, Canc try { var response = _sessionHostRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, force, cancellationToken); - var operation = new DesktopVirtualizationArmOperation(response); + var uri = _sessionHostRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, force); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DesktopVirtualizationArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/UserSessionResource.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/UserSessionResource.cs index c7a6080ffaa6..a81efb172c80 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/UserSessionResource.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/UserSessionResource.cs @@ -203,7 +203,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, bool? f try { var response = await _userSessionRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, force, cancellationToken).ConfigureAwait(false); - var operation = new DesktopVirtualizationArmOperation(response); + var uri = _userSessionRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, force); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DesktopVirtualizationArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -246,7 +248,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, bool? force = null, Canc try { var response = _userSessionRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, force, cancellationToken); - var operation = new DesktopVirtualizationArmOperation(response); + var uri = _userSessionRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, force); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DesktopVirtualizationArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/VirtualApplicationCollection.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/VirtualApplicationCollection.cs index 3c17df221dda..7af08c3c9416 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/VirtualApplicationCollection.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/VirtualApplicationCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> CreateOrUpda try { var response = await _virtualApplicationApplicationsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, applicationName, data, cancellationToken).ConfigureAwait(false); - var operation = new DesktopVirtualizationArmOperation(Response.FromValue(new VirtualApplicationResource(Client, response), response.GetRawResponse())); + var uri = _virtualApplicationApplicationsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, applicationName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DesktopVirtualizationArmOperation(Response.FromValue(new VirtualApplicationResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil try { var response = _virtualApplicationApplicationsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, applicationName, data, cancellationToken); - var operation = new DesktopVirtualizationArmOperation(Response.FromValue(new VirtualApplicationResource(Client, response), response.GetRawResponse())); + var uri = _virtualApplicationApplicationsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, applicationName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DesktopVirtualizationArmOperation(Response.FromValue(new VirtualApplicationResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/VirtualApplicationGroupCollection.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/VirtualApplicationGroupCollection.cs index 2fe1b28ea21f..25115c75772c 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/VirtualApplicationGroupCollection.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/VirtualApplicationGroupCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> CreateO try { var response = await _virtualApplicationGroupApplicationGroupsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, applicationGroupName, data, cancellationToken).ConfigureAwait(false); - var operation = new DesktopVirtualizationArmOperation(Response.FromValue(new VirtualApplicationGroupResource(Client, response), response.GetRawResponse())); + var uri = _virtualApplicationGroupApplicationGroupsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, applicationGroupName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DesktopVirtualizationArmOperation(Response.FromValue(new VirtualApplicationGroupResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -140,7 +142,9 @@ public virtual ArmOperation CreateOrUpdate(Wait try { var response = _virtualApplicationGroupApplicationGroupsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, applicationGroupName, data, cancellationToken); - var operation = new DesktopVirtualizationArmOperation(Response.FromValue(new VirtualApplicationGroupResource(Client, response), response.GetRawResponse())); + var uri = _virtualApplicationGroupApplicationGroupsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, applicationGroupName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DesktopVirtualizationArmOperation(Response.FromValue(new VirtualApplicationGroupResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/VirtualApplicationGroupResource.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/VirtualApplicationGroupResource.cs index f7f2217ad572..80cd98246390 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/VirtualApplicationGroupResource.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/VirtualApplicationGroupResource.cs @@ -345,7 +345,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _virtualApplicationGroupApplicationGroupsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new DesktopVirtualizationArmOperation(response); + var uri = _virtualApplicationGroupApplicationGroupsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DesktopVirtualizationArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -387,7 +389,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _virtualApplicationGroupApplicationGroupsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); - var operation = new DesktopVirtualizationArmOperation(response); + var uri = _virtualApplicationGroupApplicationGroupsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DesktopVirtualizationArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/VirtualApplicationResource.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/VirtualApplicationResource.cs index fd07e19e9276..689dfef86158 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/VirtualApplicationResource.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/VirtualApplicationResource.cs @@ -201,7 +201,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _virtualApplicationApplicationsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new DesktopVirtualizationArmOperation(response); + var uri = _virtualApplicationApplicationsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DesktopVirtualizationArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -243,7 +245,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _virtualApplicationApplicationsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new DesktopVirtualizationArmOperation(response); + var uri = _virtualApplicationApplicationsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DesktopVirtualizationArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/VirtualWorkspaceCollection.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/VirtualWorkspaceCollection.cs index 184f7df4a4c8..e8d995ed074d 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/VirtualWorkspaceCollection.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/VirtualWorkspaceCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> CreateOrUpdate try { var response = await _virtualWorkspaceWorkspacesRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, workspaceName, data, cancellationToken).ConfigureAwait(false); - var operation = new DesktopVirtualizationArmOperation(Response.FromValue(new VirtualWorkspaceResource(Client, response), response.GetRawResponse())); + var uri = _virtualWorkspaceWorkspacesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, workspaceName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DesktopVirtualizationArmOperation(Response.FromValue(new VirtualWorkspaceResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -140,7 +142,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil w try { var response = _virtualWorkspaceWorkspacesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, workspaceName, data, cancellationToken); - var operation = new DesktopVirtualizationArmOperation(Response.FromValue(new VirtualWorkspaceResource(Client, response), response.GetRawResponse())); + var uri = _virtualWorkspaceWorkspacesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, workspaceName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DesktopVirtualizationArmOperation(Response.FromValue(new VirtualWorkspaceResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/VirtualWorkspaceResource.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/VirtualWorkspaceResource.cs index c83c143d90ab..c872967f5ec4 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/VirtualWorkspaceResource.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/VirtualWorkspaceResource.cs @@ -276,7 +276,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _virtualWorkspaceWorkspacesRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new DesktopVirtualizationArmOperation(response); + var uri = _virtualWorkspaceWorkspacesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DesktopVirtualizationArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -318,7 +320,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _virtualWorkspaceWorkspacesRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); - var operation = new DesktopVirtualizationArmOperation(response); + var uri = _virtualWorkspaceWorkspacesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DesktopVirtualizationArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/WorkspacePrivateEndpointConnectionCollection.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/WorkspacePrivateEndpointConnectionCollection.cs index 3773bd9d1b5a..e25b7009bde2 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/WorkspacePrivateEndpointConnectionCollection.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/WorkspacePrivateEndpointConnectionCollection.cs @@ -91,7 +91,9 @@ public virtual async Task(Response.FromValue(new WorkspacePrivateEndpointConnectionResource(Client, response), response.GetRawResponse())); + var uri = _workspacePrivateEndpointConnectionPrivateEndpointConnectionsRestClient.CreateUpdateByWorkspaceRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, privateEndpointConnectionName, connection); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DesktopVirtualizationArmOperation(Response.FromValue(new WorkspacePrivateEndpointConnectionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -140,7 +142,9 @@ public virtual ArmOperation CreateOr try { var response = _workspacePrivateEndpointConnectionPrivateEndpointConnectionsRestClient.UpdateByWorkspace(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, privateEndpointConnectionName, connection, cancellationToken); - var operation = new DesktopVirtualizationArmOperation(Response.FromValue(new WorkspacePrivateEndpointConnectionResource(Client, response), response.GetRawResponse())); + var uri = _workspacePrivateEndpointConnectionPrivateEndpointConnectionsRestClient.CreateUpdateByWorkspaceRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, privateEndpointConnectionName, connection); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DesktopVirtualizationArmOperation(Response.FromValue(new WorkspacePrivateEndpointConnectionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/WorkspacePrivateEndpointConnectionResource.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/WorkspacePrivateEndpointConnectionResource.cs index 6068c7578ee1..3b0eaed4dbe1 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/WorkspacePrivateEndpointConnectionResource.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/WorkspacePrivateEndpointConnectionResource.cs @@ -201,7 +201,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _workspacePrivateEndpointConnectionPrivateEndpointConnectionsRestClient.DeleteByWorkspaceAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new DesktopVirtualizationArmOperation(response); + var uri = _workspacePrivateEndpointConnectionPrivateEndpointConnectionsRestClient.CreateDeleteByWorkspaceRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DesktopVirtualizationArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -243,7 +245,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _workspacePrivateEndpointConnectionPrivateEndpointConnectionsRestClient.DeleteByWorkspace(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new DesktopVirtualizationArmOperation(response); + var uri = _workspacePrivateEndpointConnectionPrivateEndpointConnectionsRestClient.CreateDeleteByWorkspaceRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DesktopVirtualizationArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -289,7 +293,9 @@ public virtual async Task(Response.FromValue(new WorkspacePrivateEndpointConnectionResource(Client, response), response.GetRawResponse())); + var uri = _workspacePrivateEndpointConnectionPrivateEndpointConnectionsRestClient.CreateUpdateByWorkspaceRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, connection); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DesktopVirtualizationArmOperation(Response.FromValue(new WorkspacePrivateEndpointConnectionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -335,7 +341,9 @@ public virtual ArmOperation Update(W try { var response = _workspacePrivateEndpointConnectionPrivateEndpointConnectionsRestClient.UpdateByWorkspace(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, connection, cancellationToken); - var operation = new DesktopVirtualizationArmOperation(Response.FromValue(new WorkspacePrivateEndpointConnectionResource(Client, response), response.GetRawResponse())); + var uri = _workspacePrivateEndpointConnectionPrivateEndpointConnectionsRestClient.CreateUpdateByWorkspaceRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, connection); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DesktopVirtualizationArmOperation(Response.FromValue(new WorkspacePrivateEndpointConnectionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/DevCenterEnvironmentTypeCollection.cs b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/DevCenterEnvironmentTypeCollection.cs index 6af0d6a1196b..ae22c8547c2b 100644 --- a/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/DevCenterEnvironmentTypeCollection.cs +++ b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/DevCenterEnvironmentTypeCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> Create try { var response = await _devCenterEnvironmentTypeEnvironmentTypesRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, environmentTypeName, data, cancellationToken).ConfigureAwait(false); - var operation = new DevCenterArmOperation(Response.FromValue(new DevCenterEnvironmentTypeResource(Client, response), response.GetRawResponse())); + var uri = _devCenterEnvironmentTypeEnvironmentTypesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, environmentTypeName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DevCenterArmOperation(Response.FromValue(new DevCenterEnvironmentTypeResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(Wai try { var response = _devCenterEnvironmentTypeEnvironmentTypesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, environmentTypeName, data, cancellationToken); - var operation = new DevCenterArmOperation(Response.FromValue(new DevCenterEnvironmentTypeResource(Client, response), response.GetRawResponse())); + var uri = _devCenterEnvironmentTypeEnvironmentTypesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, environmentTypeName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DevCenterArmOperation(Response.FromValue(new DevCenterEnvironmentTypeResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/DevCenterEnvironmentTypeResource.cs b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/DevCenterEnvironmentTypeResource.cs index 02a4abd8957f..4f8b6685ebb9 100644 --- a/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/DevCenterEnvironmentTypeResource.cs +++ b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/DevCenterEnvironmentTypeResource.cs @@ -202,7 +202,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _devCenterEnvironmentTypeEnvironmentTypesRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new DevCenterArmOperation(response); + var uri = _devCenterEnvironmentTypeEnvironmentTypesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DevCenterArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -244,7 +246,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _devCenterEnvironmentTypeEnvironmentTypesRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new DevCenterArmOperation(response); + var uri = _devCenterEnvironmentTypeEnvironmentTypesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DevCenterArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/DevCenterProjectEnvironmentCollection.cs b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/DevCenterProjectEnvironmentCollection.cs index 7f3e6cb5997d..6f834f416a80 100644 --- a/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/DevCenterProjectEnvironmentCollection.cs +++ b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/DevCenterProjectEnvironmentCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> Cre try { var response = await _devCenterProjectEnvironmentProjectEnvironmentTypesRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, environmentTypeName, data, cancellationToken).ConfigureAwait(false); - var operation = new DevCenterArmOperation(Response.FromValue(new DevCenterProjectEnvironmentResource(Client, response), response.GetRawResponse())); + var uri = _devCenterProjectEnvironmentProjectEnvironmentTypesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, environmentTypeName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DevCenterArmOperation(Response.FromValue(new DevCenterProjectEnvironmentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate( try { var response = _devCenterProjectEnvironmentProjectEnvironmentTypesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, environmentTypeName, data, cancellationToken); - var operation = new DevCenterArmOperation(Response.FromValue(new DevCenterProjectEnvironmentResource(Client, response), response.GetRawResponse())); + var uri = _devCenterProjectEnvironmentProjectEnvironmentTypesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, environmentTypeName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DevCenterArmOperation(Response.FromValue(new DevCenterProjectEnvironmentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/DevCenterProjectEnvironmentResource.cs b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/DevCenterProjectEnvironmentResource.cs index dd8909e01df0..3f4d11516869 100644 --- a/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/DevCenterProjectEnvironmentResource.cs +++ b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/DevCenterProjectEnvironmentResource.cs @@ -202,7 +202,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _devCenterProjectEnvironmentProjectEnvironmentTypesRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new DevCenterArmOperation(response); + var uri = _devCenterProjectEnvironmentProjectEnvironmentTypesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DevCenterArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -244,7 +246,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _devCenterProjectEnvironmentProjectEnvironmentTypesRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new DevCenterArmOperation(response); + var uri = _devCenterProjectEnvironmentProjectEnvironmentTypesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DevCenterArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/LongRunningOperation/DevCenterArmOperation.cs b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/LongRunningOperation/DevCenterArmOperation.cs index 967b136bcb2a..52af05ea6a1d 100644 --- a/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/LongRunningOperation/DevCenterArmOperation.cs +++ b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/LongRunningOperation/DevCenterArmOperation.cs @@ -20,21 +20,24 @@ internal class DevCenterArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of DevCenterArmOperation for mocking. protected DevCenterArmOperation() { } - internal DevCenterArmOperation(Response response) + internal DevCenterArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal DevCenterArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "DevCenterArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal DevCenterArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/LongRunningOperation/DevCenterArmOperationOfT.cs b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/LongRunningOperation/DevCenterArmOperationOfT.cs index 16b1add03dd3..c61ac5ce441f 100644 --- a/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/LongRunningOperation/DevCenterArmOperationOfT.cs +++ b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/LongRunningOperation/DevCenterArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class DevCenterArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of DevCenterArmOperation for mocking. protected DevCenterArmOperation() { } - internal DevCenterArmOperation(Response response) + internal DevCenterArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal DevCenterArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "DevCenterArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal DevCenterArmOperation(IOperationSource source, ClientDiagnostics cli public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/AllowedEnvironmentTypeResource.Serialization.cs b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/AllowedEnvironmentTypeResource.Serialization.cs new file mode 100644 index 000000000000..e9ca9829e287 --- /dev/null +++ b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/AllowedEnvironmentTypeResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DevCenter +{ + public partial class AllowedEnvironmentTypeResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + AllowedEnvironmentTypeData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + AllowedEnvironmentTypeData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/AttachedNetworkConnectionResource.Serialization.cs b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/AttachedNetworkConnectionResource.Serialization.cs new file mode 100644 index 000000000000..7ae7ce058669 --- /dev/null +++ b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/AttachedNetworkConnectionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DevCenter +{ + public partial class AttachedNetworkConnectionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + AttachedNetworkConnectionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + AttachedNetworkConnectionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/DevBoxDefinitionResource.Serialization.cs b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/DevBoxDefinitionResource.Serialization.cs new file mode 100644 index 000000000000..ce6d15635a56 --- /dev/null +++ b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/DevBoxDefinitionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DevCenter +{ + public partial class DevBoxDefinitionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DevBoxDefinitionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DevBoxDefinitionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/DevCenterCatalogResource.Serialization.cs b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/DevCenterCatalogResource.Serialization.cs new file mode 100644 index 000000000000..f708e6db47f5 --- /dev/null +++ b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/DevCenterCatalogResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DevCenter +{ + public partial class DevCenterCatalogResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DevCenterCatalogData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DevCenterCatalogData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/DevCenterEnvironmentTypeResource.Serialization.cs b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/DevCenterEnvironmentTypeResource.Serialization.cs new file mode 100644 index 000000000000..49955038f858 --- /dev/null +++ b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/DevCenterEnvironmentTypeResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DevCenter +{ + public partial class DevCenterEnvironmentTypeResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DevCenterEnvironmentTypeData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DevCenterEnvironmentTypeData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/DevCenterGalleryResource.Serialization.cs b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/DevCenterGalleryResource.Serialization.cs new file mode 100644 index 000000000000..e8c4e949341c --- /dev/null +++ b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/DevCenterGalleryResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DevCenter +{ + public partial class DevCenterGalleryResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DevCenterGalleryData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DevCenterGalleryData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/DevCenterImageResource.Serialization.cs b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/DevCenterImageResource.Serialization.cs new file mode 100644 index 000000000000..782525c564ed --- /dev/null +++ b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/DevCenterImageResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DevCenter +{ + public partial class DevCenterImageResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DevCenterImageData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DevCenterImageData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/DevCenterNetworkConnectionResource.Serialization.cs b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/DevCenterNetworkConnectionResource.Serialization.cs new file mode 100644 index 000000000000..38f7e94946ad --- /dev/null +++ b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/DevCenterNetworkConnectionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DevCenter +{ + public partial class DevCenterNetworkConnectionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DevCenterNetworkConnectionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DevCenterNetworkConnectionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/DevCenterPoolResource.Serialization.cs b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/DevCenterPoolResource.Serialization.cs new file mode 100644 index 000000000000..3f35968c04f1 --- /dev/null +++ b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/DevCenterPoolResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DevCenter +{ + public partial class DevCenterPoolResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DevCenterPoolData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DevCenterPoolData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/DevCenterProjectEnvironmentResource.Serialization.cs b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/DevCenterProjectEnvironmentResource.Serialization.cs new file mode 100644 index 000000000000..2bd9ffbb84fa --- /dev/null +++ b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/DevCenterProjectEnvironmentResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DevCenter +{ + public partial class DevCenterProjectEnvironmentResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DevCenterProjectEnvironmentData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DevCenterProjectEnvironmentData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/DevCenterProjectResource.Serialization.cs b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/DevCenterProjectResource.Serialization.cs new file mode 100644 index 000000000000..e8e907225ec0 --- /dev/null +++ b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/DevCenterProjectResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DevCenter +{ + public partial class DevCenterProjectResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DevCenterProjectData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DevCenterProjectData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/DevCenterResource.Serialization.cs b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/DevCenterResource.Serialization.cs new file mode 100644 index 000000000000..5efbf4dcd7dc --- /dev/null +++ b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/DevCenterResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DevCenter +{ + public partial class DevCenterResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DevCenterData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DevCenterData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/DevCenterScheduleResource.Serialization.cs b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/DevCenterScheduleResource.Serialization.cs new file mode 100644 index 000000000000..7f4b26c7c89a --- /dev/null +++ b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/DevCenterScheduleResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DevCenter +{ + public partial class DevCenterScheduleResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DevCenterScheduleData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DevCenterScheduleData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/HealthCheckStatusDetailResource.Serialization.cs b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/HealthCheckStatusDetailResource.Serialization.cs new file mode 100644 index 000000000000..9457e9d1168b --- /dev/null +++ b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/HealthCheckStatusDetailResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DevCenter +{ + public partial class HealthCheckStatusDetailResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + HealthCheckStatusDetailData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + HealthCheckStatusDetailData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/ImageVersionResource.Serialization.cs b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/ImageVersionResource.Serialization.cs new file mode 100644 index 000000000000..fdfb327e6459 --- /dev/null +++ b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/ImageVersionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DevCenter +{ + public partial class ImageVersionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ImageVersionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ImageVersionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/ProjectAttachedNetworkConnectionResource.Serialization.cs b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/ProjectAttachedNetworkConnectionResource.Serialization.cs new file mode 100644 index 000000000000..ee7809cdbadc --- /dev/null +++ b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/ProjectAttachedNetworkConnectionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DevCenter +{ + public partial class ProjectAttachedNetworkConnectionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + AttachedNetworkConnectionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + AttachedNetworkConnectionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/ProjectDevBoxDefinitionResource.Serialization.cs b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/ProjectDevBoxDefinitionResource.Serialization.cs new file mode 100644 index 000000000000..524eab5b987c --- /dev/null +++ b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/ProjectDevBoxDefinitionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DevCenter +{ + public partial class ProjectDevBoxDefinitionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DevBoxDefinitionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DevBoxDefinitionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/RestOperations/AttachedNetworksRestOperations.cs b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/RestOperations/AttachedNetworksRestOperations.cs index aad3cb064805..a9a07ec458b9 100644 --- a/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/RestOperations/AttachedNetworksRestOperations.cs +++ b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/RestOperations/AttachedNetworksRestOperations.cs @@ -37,6 +37,25 @@ public AttachedNetworksRestOperations(HttpPipeline pipeline, string applicationI _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByProjectRequestUri(string subscriptionId, string resourceGroupName, string projectName, int? top) + { + 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.DevCenter/projects/", false); + uri.AppendPath(projectName, true); + uri.AppendPath("/attachednetworks", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + return uri; + } + internal HttpMessage CreateListByProjectRequest(string subscriptionId, string resourceGroupName, string projectName, int? top) { var message = _pipeline.CreateMessage(); @@ -122,6 +141,22 @@ public Response ListByProject(string subscriptionId, } } + internal RequestUriBuilder CreateGetByProjectRequestUri(string subscriptionId, string resourceGroupName, string projectName, string attachedNetworkConnectionName) + { + 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.DevCenter/projects/", false); + uri.AppendPath(projectName, true); + uri.AppendPath("/attachednetworks/", false); + uri.AppendPath(attachedNetworkConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetByProjectRequest(string subscriptionId, string resourceGroupName, string projectName, string attachedNetworkConnectionName) { var message = _pipeline.CreateMessage(); @@ -210,6 +245,25 @@ public Response GetByProject(string subscriptionI } } + internal RequestUriBuilder CreateListByDevCenterRequestUri(string subscriptionId, string resourceGroupName, string devCenterName, int? top) + { + 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.DevCenter/devcenters/", false); + uri.AppendPath(devCenterName, true); + uri.AppendPath("/attachednetworks", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + return uri; + } + internal HttpMessage CreateListByDevCenterRequest(string subscriptionId, string resourceGroupName, string devCenterName, int? top) { var message = _pipeline.CreateMessage(); @@ -295,6 +349,22 @@ public Response ListByDevCenter(string subscriptionId } } + internal RequestUriBuilder CreateGetByDevCenterRequestUri(string subscriptionId, string resourceGroupName, string devCenterName, string attachedNetworkConnectionName) + { + 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.DevCenter/devcenters/", false); + uri.AppendPath(devCenterName, true); + uri.AppendPath("/attachednetworks/", false); + uri.AppendPath(attachedNetworkConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetByDevCenterRequest(string subscriptionId, string resourceGroupName, string devCenterName, string attachedNetworkConnectionName) { var message = _pipeline.CreateMessage(); @@ -383,6 +453,22 @@ public Response GetByDevCenter(string subscriptio } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string devCenterName, string attachedNetworkConnectionName, AttachedNetworkConnectionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DevCenter/devcenters/", false); + uri.AppendPath(devCenterName, true); + uri.AppendPath("/attachednetworks/", false); + uri.AppendPath(attachedNetworkConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string devCenterName, string attachedNetworkConnectionName, AttachedNetworkConnectionData data) { var message = _pipeline.CreateMessage(); @@ -465,6 +551,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string devCenterName, string attachedNetworkConnectionName) + { + 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.DevCenter/devcenters/", false); + uri.AppendPath(devCenterName, true); + uri.AppendPath("/attachednetworks/", false); + uri.AppendPath(attachedNetworkConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string devCenterName, string attachedNetworkConnectionName) { var message = _pipeline.CreateMessage(); @@ -543,6 +645,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string d } } + internal RequestUriBuilder CreateListByProjectNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string projectName, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByProjectNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string projectName, int? top) { var message = _pipeline.CreateMessage(); @@ -621,6 +731,14 @@ public Response ListByProjectNextPage(string nextLink } } + internal RequestUriBuilder CreateListByDevCenterNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string devCenterName, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByDevCenterNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string devCenterName, int? top) { var message = _pipeline.CreateMessage(); diff --git a/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/RestOperations/CatalogsRestOperations.cs b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/RestOperations/CatalogsRestOperations.cs index ca5ea6098f67..1c394ff43c66 100644 --- a/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/RestOperations/CatalogsRestOperations.cs +++ b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/RestOperations/CatalogsRestOperations.cs @@ -37,6 +37,25 @@ public CatalogsRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByDevCenterRequestUri(string subscriptionId, string resourceGroupName, string devCenterName, int? top) + { + 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.DevCenter/devcenters/", false); + uri.AppendPath(devCenterName, true); + uri.AppendPath("/catalogs", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + return uri; + } + internal HttpMessage CreateListByDevCenterRequest(string subscriptionId, string resourceGroupName, string devCenterName, int? top) { var message = _pipeline.CreateMessage(); @@ -122,6 +141,22 @@ public Response ListByDevCenter(string subscriptionI } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string devCenterName, string catalogName) + { + 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.DevCenter/devcenters/", false); + uri.AppendPath(devCenterName, true); + uri.AppendPath("/catalogs/", false); + uri.AppendPath(catalogName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string devCenterName, string catalogName) { var message = _pipeline.CreateMessage(); @@ -210,6 +245,22 @@ public Response Get(string subscriptionId, string resource } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string devCenterName, string catalogName, DevCenterCatalogData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DevCenter/devcenters/", false); + uri.AppendPath(devCenterName, true); + uri.AppendPath("/catalogs/", false); + uri.AppendPath(catalogName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string devCenterName, string catalogName, DevCenterCatalogData data) { var message = _pipeline.CreateMessage(); @@ -292,6 +343,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string devCenterName, string catalogName, DevCenterCatalogPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DevCenter/devcenters/", false); + uri.AppendPath(devCenterName, true); + uri.AppendPath("/catalogs/", false); + uri.AppendPath(catalogName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string devCenterName, string catalogName, DevCenterCatalogPatch patch) { var message = _pipeline.CreateMessage(); @@ -376,6 +443,22 @@ public Response Update(string subscriptionId, string resourceGroupName, string d } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string devCenterName, string catalogName) + { + 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.DevCenter/devcenters/", false); + uri.AppendPath(devCenterName, true); + uri.AppendPath("/catalogs/", false); + uri.AppendPath(catalogName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string devCenterName, string catalogName) { var message = _pipeline.CreateMessage(); @@ -454,6 +537,23 @@ public Response Delete(string subscriptionId, string resourceGroupName, string d } } + internal RequestUriBuilder CreateSyncRequestUri(string subscriptionId, string resourceGroupName, string devCenterName, string catalogName) + { + 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.DevCenter/devcenters/", false); + uri.AppendPath(devCenterName, true); + uri.AppendPath("/catalogs/", false); + uri.AppendPath(catalogName, true); + uri.AppendPath("/sync", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateSyncRequest(string subscriptionId, string resourceGroupName, string devCenterName, string catalogName) { var message = _pipeline.CreateMessage(); @@ -529,6 +629,14 @@ public Response Sync(string subscriptionId, string resourceGroupName, string dev } } + internal RequestUriBuilder CreateListByDevCenterNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string devCenterName, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByDevCenterNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string devCenterName, int? top) { var message = _pipeline.CreateMessage(); diff --git a/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/RestOperations/CheckNameAvailabilityRestOperations.cs b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/RestOperations/CheckNameAvailabilityRestOperations.cs index 77074d1330c5..7a56f3ebbd37 100644 --- a/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/RestOperations/CheckNameAvailabilityRestOperations.cs +++ b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/RestOperations/CheckNameAvailabilityRestOperations.cs @@ -37,6 +37,17 @@ public CheckNameAvailabilityRestOperations(HttpPipeline pipeline, string applica _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateExecuteRequestUri(string subscriptionId, DevCenterNameAvailabilityContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.DevCenter/checkNameAvailability", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateExecuteRequest(string subscriptionId, DevCenterNameAvailabilityContent content) { var message = _pipeline.CreateMessage(); diff --git a/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/RestOperations/DevBoxDefinitionsRestOperations.cs b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/RestOperations/DevBoxDefinitionsRestOperations.cs index 8b10bdd73122..30ffb93ca770 100644 --- a/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/RestOperations/DevBoxDefinitionsRestOperations.cs +++ b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/RestOperations/DevBoxDefinitionsRestOperations.cs @@ -37,6 +37,25 @@ public DevBoxDefinitionsRestOperations(HttpPipeline pipeline, string application _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByDevCenterRequestUri(string subscriptionId, string resourceGroupName, string devCenterName, int? top) + { + 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.DevCenter/devcenters/", false); + uri.AppendPath(devCenterName, true); + uri.AppendPath("/devboxdefinitions", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + return uri; + } + internal HttpMessage CreateListByDevCenterRequest(string subscriptionId, string resourceGroupName, string devCenterName, int? top) { var message = _pipeline.CreateMessage(); @@ -122,6 +141,22 @@ public Response ListByDevCenter(string subscriptionI } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string devCenterName, string devBoxDefinitionName) + { + 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.DevCenter/devcenters/", false); + uri.AppendPath(devCenterName, true); + uri.AppendPath("/devboxdefinitions/", false); + uri.AppendPath(devBoxDefinitionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string devCenterName, string devBoxDefinitionName) { var message = _pipeline.CreateMessage(); @@ -210,6 +245,22 @@ public Response Get(string subscriptionId, string resource } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string devCenterName, string devBoxDefinitionName, DevBoxDefinitionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DevCenter/devcenters/", false); + uri.AppendPath(devCenterName, true); + uri.AppendPath("/devboxdefinitions/", false); + uri.AppendPath(devBoxDefinitionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string devCenterName, string devBoxDefinitionName, DevBoxDefinitionData data) { var message = _pipeline.CreateMessage(); @@ -294,6 +345,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string devCenterName, string devBoxDefinitionName, DevBoxDefinitionPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DevCenter/devcenters/", false); + uri.AppendPath(devCenterName, true); + uri.AppendPath("/devboxdefinitions/", false); + uri.AppendPath(devBoxDefinitionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string devCenterName, string devBoxDefinitionName, DevBoxDefinitionPatch patch) { var message = _pipeline.CreateMessage(); @@ -378,6 +445,22 @@ public Response Update(string subscriptionId, string resourceGroupName, string d } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string devCenterName, string devBoxDefinitionName) + { + 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.DevCenter/devcenters/", false); + uri.AppendPath(devCenterName, true); + uri.AppendPath("/devboxdefinitions/", false); + uri.AppendPath(devBoxDefinitionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string devCenterName, string devBoxDefinitionName) { var message = _pipeline.CreateMessage(); @@ -456,6 +539,25 @@ public Response Delete(string subscriptionId, string resourceGroupName, string d } } + internal RequestUriBuilder CreateListByProjectRequestUri(string subscriptionId, string resourceGroupName, string projectName, int? top) + { + 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.DevCenter/projects/", false); + uri.AppendPath(projectName, true); + uri.AppendPath("/devboxdefinitions", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + return uri; + } + internal HttpMessage CreateListByProjectRequest(string subscriptionId, string resourceGroupName, string projectName, int? top) { var message = _pipeline.CreateMessage(); @@ -541,6 +643,22 @@ public Response ListByProject(string subscriptionId, } } + internal RequestUriBuilder CreateGetByProjectRequestUri(string subscriptionId, string resourceGroupName, string projectName, string devBoxDefinitionName) + { + 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.DevCenter/projects/", false); + uri.AppendPath(projectName, true); + uri.AppendPath("/devboxdefinitions/", false); + uri.AppendPath(devBoxDefinitionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetByProjectRequest(string subscriptionId, string resourceGroupName, string projectName, string devBoxDefinitionName) { var message = _pipeline.CreateMessage(); @@ -629,6 +747,14 @@ public Response GetByProject(string subscriptionId, string } } + internal RequestUriBuilder CreateListByDevCenterNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string devCenterName, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByDevCenterNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string devCenterName, int? top) { var message = _pipeline.CreateMessage(); @@ -707,6 +833,14 @@ public Response ListByDevCenterNextPage(string nextL } } + internal RequestUriBuilder CreateListByProjectNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string projectName, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByProjectNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string projectName, int? top) { var message = _pipeline.CreateMessage(); diff --git a/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/RestOperations/DevCentersRestOperations.cs b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/RestOperations/DevCentersRestOperations.cs index 4ec6d89168fd..86e7bd599fa2 100644 --- a/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/RestOperations/DevCentersRestOperations.cs +++ b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/RestOperations/DevCentersRestOperations.cs @@ -37,6 +37,21 @@ public DevCentersRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.DevCenter/devcenters", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId, int? top) { var message = _pipeline.CreateMessage(); @@ -110,6 +125,23 @@ public Response ListBySubscription(string subscriptionId, i } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName, int? top) + { + 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.DevCenter/devcenters", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName, int? top) { var message = _pipeline.CreateMessage(); @@ -189,6 +221,20 @@ public Response ListByResourceGroup(string subscriptionId, } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string devCenterName) + { + 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.DevCenter/devcenters/", false); + uri.AppendPath(devCenterName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string devCenterName) { var message = _pipeline.CreateMessage(); @@ -271,6 +317,20 @@ public Response Get(string subscriptionId, string resourceGroupNa } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string devCenterName, DevCenterData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DevCenter/devcenters/", false); + uri.AppendPath(devCenterName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string devCenterName, DevCenterData data) { var message = _pipeline.CreateMessage(); @@ -349,6 +409,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string devCenterName, DevCenterPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DevCenter/devcenters/", false); + uri.AppendPath(devCenterName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string devCenterName, DevCenterPatch patch) { var message = _pipeline.CreateMessage(); @@ -427,6 +501,20 @@ public Response Update(string subscriptionId, string resourceGroupName, string d } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string devCenterName) + { + 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.DevCenter/devcenters/", false); + uri.AppendPath(devCenterName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string devCenterName) { var message = _pipeline.CreateMessage(); @@ -499,6 +587,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string d } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId, int? top) { var message = _pipeline.CreateMessage(); @@ -569,6 +665,14 @@ public Response ListBySubscriptionNextPage(string nextLink, } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, int? top) { var message = _pipeline.CreateMessage(); diff --git a/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/RestOperations/EnvironmentTypesRestOperations.cs b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/RestOperations/EnvironmentTypesRestOperations.cs index d30af3bacb7e..f6bf69098ac8 100644 --- a/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/RestOperations/EnvironmentTypesRestOperations.cs +++ b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/RestOperations/EnvironmentTypesRestOperations.cs @@ -37,6 +37,25 @@ public EnvironmentTypesRestOperations(HttpPipeline pipeline, string applicationI _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByDevCenterRequestUri(string subscriptionId, string resourceGroupName, string devCenterName, int? top) + { + 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.DevCenter/devcenters/", false); + uri.AppendPath(devCenterName, true); + uri.AppendPath("/environmentTypes", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + return uri; + } + internal HttpMessage CreateListByDevCenterRequest(string subscriptionId, string resourceGroupName, string devCenterName, int? top) { var message = _pipeline.CreateMessage(); @@ -122,6 +141,22 @@ public Response ListByDevCenter(string subscriptionId } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string devCenterName, string environmentTypeName) + { + 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.DevCenter/devcenters/", false); + uri.AppendPath(devCenterName, true); + uri.AppendPath("/environmentTypes/", false); + uri.AppendPath(environmentTypeName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string devCenterName, string environmentTypeName) { var message = _pipeline.CreateMessage(); @@ -210,6 +245,22 @@ public Response Get(string subscriptionId, string } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string devCenterName, string environmentTypeName, DevCenterEnvironmentTypeData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DevCenter/devcenters/", false); + uri.AppendPath(devCenterName, true); + uri.AppendPath("/environmentTypes/", false); + uri.AppendPath(environmentTypeName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string devCenterName, string environmentTypeName, DevCenterEnvironmentTypeData data) { var message = _pipeline.CreateMessage(); @@ -302,6 +353,22 @@ public Response CreateOrUpdate(string subscription } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string devCenterName, string environmentTypeName, DevCenterEnvironmentTypePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DevCenter/devcenters/", false); + uri.AppendPath(devCenterName, true); + uri.AppendPath("/environmentTypes/", false); + uri.AppendPath(environmentTypeName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string devCenterName, string environmentTypeName, DevCenterEnvironmentTypePatch patch) { var message = _pipeline.CreateMessage(); @@ -394,6 +461,22 @@ public Response Update(string subscriptionId, stri } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string devCenterName, string environmentTypeName) + { + 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.DevCenter/devcenters/", false); + uri.AppendPath(devCenterName, true); + uri.AppendPath("/environmentTypes/", false); + uri.AppendPath(environmentTypeName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string devCenterName, string environmentTypeName) { var message = _pipeline.CreateMessage(); @@ -470,6 +553,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string d } } + internal RequestUriBuilder CreateListByDevCenterNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string devCenterName, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByDevCenterNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string devCenterName, int? top) { var message = _pipeline.CreateMessage(); diff --git a/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/RestOperations/GalleriesRestOperations.cs b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/RestOperations/GalleriesRestOperations.cs index 5f43093157b5..1c78eaf5aad4 100644 --- a/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/RestOperations/GalleriesRestOperations.cs +++ b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/RestOperations/GalleriesRestOperations.cs @@ -37,6 +37,25 @@ public GalleriesRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByDevCenterRequestUri(string subscriptionId, string resourceGroupName, string devCenterName, int? top) + { + 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.DevCenter/devcenters/", false); + uri.AppendPath(devCenterName, true); + uri.AppendPath("/galleries", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + return uri; + } + internal HttpMessage CreateListByDevCenterRequest(string subscriptionId, string resourceGroupName, string devCenterName, int? top) { var message = _pipeline.CreateMessage(); @@ -122,6 +141,22 @@ public Response ListByDevCenter(string subscriptionId, string } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string devCenterName, string galleryName) + { + 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.DevCenter/devcenters/", false); + uri.AppendPath(devCenterName, true); + uri.AppendPath("/galleries/", false); + uri.AppendPath(galleryName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string devCenterName, string galleryName) { var message = _pipeline.CreateMessage(); @@ -210,6 +245,22 @@ public Response Get(string subscriptionId, string resource } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string devCenterName, string galleryName, DevCenterGalleryData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DevCenter/devcenters/", false); + uri.AppendPath(devCenterName, true); + uri.AppendPath("/galleries/", false); + uri.AppendPath(galleryName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string devCenterName, string galleryName, DevCenterGalleryData data) { var message = _pipeline.CreateMessage(); @@ -292,6 +343,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string devCenterName, string galleryName) + { + 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.DevCenter/devcenters/", false); + uri.AppendPath(devCenterName, true); + uri.AppendPath("/galleries/", false); + uri.AppendPath(galleryName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string devCenterName, string galleryName) { var message = _pipeline.CreateMessage(); @@ -370,6 +437,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string d } } + internal RequestUriBuilder CreateListByDevCenterNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string devCenterName, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByDevCenterNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string devCenterName, int? top) { var message = _pipeline.CreateMessage(); diff --git a/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/RestOperations/ImageVersionsRestOperations.cs b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/RestOperations/ImageVersionsRestOperations.cs index eeb26b5f3b5c..0d9a35796e80 100644 --- a/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/RestOperations/ImageVersionsRestOperations.cs +++ b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/RestOperations/ImageVersionsRestOperations.cs @@ -37,6 +37,25 @@ public ImageVersionsRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByImageRequestUri(string subscriptionId, string resourceGroupName, string devCenterName, string galleryName, string imageName) + { + 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.DevCenter/devcenters/", false); + uri.AppendPath(devCenterName, true); + uri.AppendPath("/galleries/", false); + uri.AppendPath(galleryName, true); + uri.AppendPath("/images/", false); + uri.AppendPath(imageName, true); + uri.AppendPath("/versions", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByImageRequest(string subscriptionId, string resourceGroupName, string devCenterName, string galleryName, string imageName) { var message = _pipeline.CreateMessage(); @@ -128,6 +147,26 @@ public Response ListByImage(string subscriptionId, strin } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string devCenterName, string galleryName, string imageName, string versionName) + { + 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.DevCenter/devcenters/", false); + uri.AppendPath(devCenterName, true); + uri.AppendPath("/galleries/", false); + uri.AppendPath(galleryName, true); + uri.AppendPath("/images/", false); + uri.AppendPath(imageName, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(versionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string devCenterName, string galleryName, string imageName, string versionName) { var message = _pipeline.CreateMessage(); @@ -228,6 +267,14 @@ public Response Get(string subscriptionId, string resourceGrou } } + internal RequestUriBuilder CreateListByImageNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string devCenterName, string galleryName, string imageName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByImageNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string devCenterName, string galleryName, string imageName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/RestOperations/ImagesRestOperations.cs b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/RestOperations/ImagesRestOperations.cs index 3dd784ee49e7..f6e355881fa5 100644 --- a/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/RestOperations/ImagesRestOperations.cs +++ b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/RestOperations/ImagesRestOperations.cs @@ -37,6 +37,25 @@ public ImagesRestOperations(HttpPipeline pipeline, string applicationId, Uri end _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByDevCenterRequestUri(string subscriptionId, string resourceGroupName, string devCenterName, int? top) + { + 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.DevCenter/devcenters/", false); + uri.AppendPath(devCenterName, true); + uri.AppendPath("/images", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + return uri; + } + internal HttpMessage CreateListByDevCenterRequest(string subscriptionId, string resourceGroupName, string devCenterName, int? top) { var message = _pipeline.CreateMessage(); @@ -122,6 +141,27 @@ public Response ListByDevCenter(string subscriptionId, } } + internal RequestUriBuilder CreateListByGalleryRequestUri(string subscriptionId, string resourceGroupName, string devCenterName, string galleryName, int? top) + { + 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.DevCenter/devcenters/", false); + uri.AppendPath(devCenterName, true); + uri.AppendPath("/galleries/", false); + uri.AppendPath(galleryName, true); + uri.AppendPath("/images", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + return uri; + } + internal HttpMessage CreateListByGalleryRequest(string subscriptionId, string resourceGroupName, string devCenterName, string galleryName, int? top) { var message = _pipeline.CreateMessage(); @@ -213,6 +253,24 @@ public Response ListByGallery(string subscriptionId, s } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string devCenterName, string galleryName, string imageName) + { + 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.DevCenter/devcenters/", false); + uri.AppendPath(devCenterName, true); + uri.AppendPath("/galleries/", false); + uri.AppendPath(galleryName, true); + uri.AppendPath("/images/", false); + uri.AppendPath(imageName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string devCenterName, string galleryName, string imageName) { var message = _pipeline.CreateMessage(); @@ -307,6 +365,14 @@ public Response Get(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateListByDevCenterNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string devCenterName, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByDevCenterNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string devCenterName, int? top) { var message = _pipeline.CreateMessage(); @@ -385,6 +451,14 @@ public Response ListByDevCenterNextPage(string nextLin } } + internal RequestUriBuilder CreateListByGalleryNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string devCenterName, string galleryName, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByGalleryNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string devCenterName, string galleryName, int? top) { var message = _pipeline.CreateMessage(); diff --git a/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/RestOperations/NetworkConnectionsRestOperations.cs b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/RestOperations/NetworkConnectionsRestOperations.cs index 9fd6f1844822..6160fa2060c8 100644 --- a/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/RestOperations/NetworkConnectionsRestOperations.cs +++ b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/RestOperations/NetworkConnectionsRestOperations.cs @@ -37,6 +37,21 @@ public NetworkConnectionsRestOperations(HttpPipeline pipeline, string applicatio _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.DevCenter/networkConnections", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId, int? top) { var message = _pipeline.CreateMessage(); @@ -110,6 +125,23 @@ public Response ListBySubscription(string subscript } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName, int? top) + { + 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.DevCenter/networkConnections", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName, int? top) { var message = _pipeline.CreateMessage(); @@ -189,6 +221,20 @@ public Response ListByResourceGroup(string subscrip } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string networkConnectionName) + { + 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.DevCenter/networkConnections/", false); + uri.AppendPath(networkConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string networkConnectionName) { var message = _pipeline.CreateMessage(); @@ -271,6 +317,20 @@ public Response Get(string subscriptionId, strin } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string networkConnectionName, DevCenterNetworkConnectionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DevCenter/networkConnections/", false); + uri.AppendPath(networkConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string networkConnectionName, DevCenterNetworkConnectionData data) { var message = _pipeline.CreateMessage(); @@ -349,6 +409,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string networkConnectionName, DevCenterNetworkConnectionPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DevCenter/networkConnections/", false); + uri.AppendPath(networkConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string networkConnectionName, DevCenterNetworkConnectionPatch patch) { var message = _pipeline.CreateMessage(); @@ -427,6 +501,20 @@ public Response Update(string subscriptionId, string resourceGroupName, string n } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string networkConnectionName) + { + 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.DevCenter/networkConnections/", false); + uri.AppendPath(networkConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string networkConnectionName) { var message = _pipeline.CreateMessage(); @@ -499,6 +587,25 @@ public Response Delete(string subscriptionId, string resourceGroupName, string n } } + internal RequestUriBuilder CreateListHealthDetailsRequestUri(string subscriptionId, string resourceGroupName, string networkConnectionName, int? top) + { + 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.DevCenter/networkConnections/", false); + uri.AppendPath(networkConnectionName, true); + uri.AppendPath("/healthChecks", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + return uri; + } + internal HttpMessage CreateListHealthDetailsRequest(string subscriptionId, string resourceGroupName, string networkConnectionName, int? top) { var message = _pipeline.CreateMessage(); @@ -584,6 +691,21 @@ public Response ListHealthDetails(string sub } } + internal RequestUriBuilder CreateGetHealthDetailsRequestUri(string subscriptionId, string resourceGroupName, string networkConnectionName) + { + 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.DevCenter/networkConnections/", false); + uri.AppendPath(networkConnectionName, true); + uri.AppendPath("/healthChecks/latest", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetHealthDetailsRequest(string subscriptionId, string resourceGroupName, string networkConnectionName) { var message = _pipeline.CreateMessage(); @@ -667,6 +789,21 @@ public Response GetHealthDetails(string subscriptio } } + internal RequestUriBuilder CreateRunHealthChecksRequestUri(string subscriptionId, string resourceGroupName, string networkConnectionName) + { + 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.DevCenter/networkConnections/", false); + uri.AppendPath(networkConnectionName, true); + uri.AppendPath("/runHealthChecks", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRunHealthChecksRequest(string subscriptionId, string resourceGroupName, string networkConnectionName) { var message = _pipeline.CreateMessage(); @@ -738,6 +875,25 @@ public Response RunHealthChecks(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateListOutboundNetworkDependenciesEndpointsRequestUri(string subscriptionId, string resourceGroupName, string networkConnectionName, int? top) + { + 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.DevCenter/networkConnections/", false); + uri.AppendPath(networkConnectionName, true); + uri.AppendPath("/outboundNetworkDependenciesEndpoints", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + return uri; + } + internal HttpMessage CreateListOutboundNetworkDependenciesEndpointsRequest(string subscriptionId, string resourceGroupName, string networkConnectionName, int? top) { var message = _pipeline.CreateMessage(); @@ -823,6 +979,14 @@ public Response ListOutboundNetworkDepend } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId, int? top) { var message = _pipeline.CreateMessage(); @@ -893,6 +1057,14 @@ public Response ListBySubscriptionNextPage(string n } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, int? top) { var message = _pipeline.CreateMessage(); @@ -967,6 +1139,14 @@ public Response ListByResourceGroupNextPage(string } } + internal RequestUriBuilder CreateListHealthDetailsNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string networkConnectionName, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListHealthDetailsNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string networkConnectionName, int? top) { var message = _pipeline.CreateMessage(); @@ -1045,6 +1225,14 @@ public Response ListHealthDetailsNextPage(st } } + internal RequestUriBuilder CreateListOutboundNetworkDependenciesEndpointsNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string networkConnectionName, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListOutboundNetworkDependenciesEndpointsNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string networkConnectionName, int? top) { var message = _pipeline.CreateMessage(); diff --git a/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/RestOperations/OperationStatusesRestOperations.cs b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/RestOperations/OperationStatusesRestOperations.cs index 051e567538df..e63baff70f31 100644 --- a/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/RestOperations/OperationStatusesRestOperations.cs +++ b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/RestOperations/OperationStatusesRestOperations.cs @@ -37,6 +37,20 @@ public OperationStatusesRestOperations(HttpPipeline pipeline, string application _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, AzureLocation location, string operationId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.DevCenter/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/operationStatuses/", false); + uri.AppendPath(operationId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, AzureLocation location, string operationId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/RestOperations/PoolsRestOperations.cs b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/RestOperations/PoolsRestOperations.cs index 4f64bac5cd3b..5dc9dbb6701a 100644 --- a/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/RestOperations/PoolsRestOperations.cs +++ b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/RestOperations/PoolsRestOperations.cs @@ -37,6 +37,25 @@ public PoolsRestOperations(HttpPipeline pipeline, string applicationId, Uri endp _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByProjectRequestUri(string subscriptionId, string resourceGroupName, string projectName, int? top) + { + 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.DevCenter/projects/", false); + uri.AppendPath(projectName, true); + uri.AppendPath("/pools", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + return uri; + } + internal HttpMessage CreateListByProjectRequest(string subscriptionId, string resourceGroupName, string projectName, int? top) { var message = _pipeline.CreateMessage(); @@ -122,6 +141,22 @@ public Response ListByProject(string subscriptionId, string reso } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string projectName, string poolName) + { + 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.DevCenter/projects/", false); + uri.AppendPath(projectName, true); + uri.AppendPath("/pools/", false); + uri.AppendPath(poolName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string projectName, string poolName) { var message = _pipeline.CreateMessage(); @@ -210,6 +245,22 @@ public Response Get(string subscriptionId, string resourceGro } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string projectName, string poolName, DevCenterPoolData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DevCenter/projects/", false); + uri.AppendPath(projectName, true); + uri.AppendPath("/pools/", false); + uri.AppendPath(poolName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string projectName, string poolName, DevCenterPoolData data) { var message = _pipeline.CreateMessage(); @@ -294,6 +345,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string projectName, string poolName, DevCenterPoolPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DevCenter/projects/", false); + uri.AppendPath(projectName, true); + uri.AppendPath("/pools/", false); + uri.AppendPath(poolName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string projectName, string poolName, DevCenterPoolPatch patch) { var message = _pipeline.CreateMessage(); @@ -378,6 +445,22 @@ public Response Update(string subscriptionId, string resourceGroupName, string p } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string projectName, string poolName) + { + 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.DevCenter/projects/", false); + uri.AppendPath(projectName, true); + uri.AppendPath("/pools/", false); + uri.AppendPath(poolName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string projectName, string poolName) { var message = _pipeline.CreateMessage(); @@ -456,6 +539,23 @@ public Response Delete(string subscriptionId, string resourceGroupName, string p } } + internal RequestUriBuilder CreateRunHealthChecksRequestUri(string subscriptionId, string resourceGroupName, string projectName, string poolName) + { + 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.DevCenter/projects/", false); + uri.AppendPath(projectName, true); + uri.AppendPath("/pools/", false); + uri.AppendPath(poolName, true); + uri.AppendPath("/runHealthChecks", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRunHealthChecksRequest(string subscriptionId, string resourceGroupName, string projectName, string poolName) { var message = _pipeline.CreateMessage(); @@ -533,6 +633,14 @@ public Response RunHealthChecks(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateListByProjectNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string projectName, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByProjectNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string projectName, int? top) { var message = _pipeline.CreateMessage(); diff --git a/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/RestOperations/ProjectAllowedEnvironmentTypesRestOperations.cs b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/RestOperations/ProjectAllowedEnvironmentTypesRestOperations.cs index ab4859cf7784..ad64f35a8f67 100644 --- a/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/RestOperations/ProjectAllowedEnvironmentTypesRestOperations.cs +++ b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/RestOperations/ProjectAllowedEnvironmentTypesRestOperations.cs @@ -37,6 +37,25 @@ public ProjectAllowedEnvironmentTypesRestOperations(HttpPipeline pipeline, strin _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string projectName, int? top) + { + 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.DevCenter/projects/", false); + uri.AppendPath(projectName, true); + uri.AppendPath("/allowedEnvironmentTypes", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string projectName, int? top) { var message = _pipeline.CreateMessage(); @@ -122,6 +141,22 @@ public Response List(string subscriptionId, st } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string projectName, string environmentTypeName) + { + 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.DevCenter/projects/", false); + uri.AppendPath(projectName, true); + uri.AppendPath("/allowedEnvironmentTypes/", false); + uri.AppendPath(environmentTypeName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string projectName, string environmentTypeName) { var message = _pipeline.CreateMessage(); @@ -210,6 +245,14 @@ public Response Get(string subscriptionId, string re } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string projectName, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string projectName, int? top) { var message = _pipeline.CreateMessage(); diff --git a/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/RestOperations/ProjectEnvironmentTypesRestOperations.cs b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/RestOperations/ProjectEnvironmentTypesRestOperations.cs index 7f696c7110e4..dd1963e5472b 100644 --- a/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/RestOperations/ProjectEnvironmentTypesRestOperations.cs +++ b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/RestOperations/ProjectEnvironmentTypesRestOperations.cs @@ -37,6 +37,25 @@ public ProjectEnvironmentTypesRestOperations(HttpPipeline pipeline, string appli _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string projectName, int? top) + { + 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.DevCenter/projects/", false); + uri.AppendPath(projectName, true); + uri.AppendPath("/environmentTypes", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string projectName, int? top) { var message = _pipeline.CreateMessage(); @@ -122,6 +141,22 @@ public Response List(string subscriptionId, st } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string projectName, string environmentTypeName) + { + 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.DevCenter/projects/", false); + uri.AppendPath(projectName, true); + uri.AppendPath("/environmentTypes/", false); + uri.AppendPath(environmentTypeName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string projectName, string environmentTypeName) { var message = _pipeline.CreateMessage(); @@ -210,6 +245,22 @@ public Response Get(string subscriptionId, stri } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string projectName, string environmentTypeName, DevCenterProjectEnvironmentData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DevCenter/projects/", false); + uri.AppendPath(projectName, true); + uri.AppendPath("/environmentTypes/", false); + uri.AppendPath(environmentTypeName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string projectName, string environmentTypeName, DevCenterProjectEnvironmentData data) { var message = _pipeline.CreateMessage(); @@ -302,6 +353,22 @@ public Response CreateOrUpdate(string subscript } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string projectName, string environmentTypeName, DevCenterProjectEnvironmentPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DevCenter/projects/", false); + uri.AppendPath(projectName, true); + uri.AppendPath("/environmentTypes/", false); + uri.AppendPath(environmentTypeName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string projectName, string environmentTypeName, DevCenterProjectEnvironmentPatch patch) { var message = _pipeline.CreateMessage(); @@ -394,6 +461,22 @@ public Response Update(string subscriptionId, s } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string projectName, string environmentTypeName) + { + 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.DevCenter/projects/", false); + uri.AppendPath(projectName, true); + uri.AppendPath("/environmentTypes/", false); + uri.AppendPath(environmentTypeName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string projectName, string environmentTypeName) { var message = _pipeline.CreateMessage(); @@ -470,6 +553,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string p } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string projectName, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string projectName, int? top) { var message = _pipeline.CreateMessage(); diff --git a/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/RestOperations/ProjectsRestOperations.cs b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/RestOperations/ProjectsRestOperations.cs index 352b78caf015..2fa1f15e5e1b 100644 --- a/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/RestOperations/ProjectsRestOperations.cs +++ b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/RestOperations/ProjectsRestOperations.cs @@ -37,6 +37,21 @@ public ProjectsRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.DevCenter/projects", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId, int? top) { var message = _pipeline.CreateMessage(); @@ -110,6 +125,23 @@ public Response ListBySubscription(string subscriptionId, int } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName, int? top) + { + 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.DevCenter/projects", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName, int? top) { var message = _pipeline.CreateMessage(); @@ -189,6 +221,20 @@ public Response ListByResourceGroup(string subscriptionId, st } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string projectName) + { + 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.DevCenter/projects/", false); + uri.AppendPath(projectName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string projectName) { var message = _pipeline.CreateMessage(); @@ -271,6 +317,20 @@ public Response Get(string subscriptionId, string resource } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string projectName, DevCenterProjectData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DevCenter/projects/", false); + uri.AppendPath(projectName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string projectName, DevCenterProjectData data) { var message = _pipeline.CreateMessage(); @@ -349,6 +409,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string projectName, DevCenterProjectPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DevCenter/projects/", false); + uri.AppendPath(projectName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string projectName, DevCenterProjectPatch patch) { var message = _pipeline.CreateMessage(); @@ -427,6 +501,20 @@ public Response Update(string subscriptionId, string resourceGroupName, string p } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string projectName) + { + 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.DevCenter/projects/", false); + uri.AppendPath(projectName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string projectName) { var message = _pipeline.CreateMessage(); @@ -499,6 +587,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string p } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId, int? top) { var message = _pipeline.CreateMessage(); @@ -569,6 +665,14 @@ public Response ListBySubscriptionNextPage(string nextLink, s } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, int? top) { var message = _pipeline.CreateMessage(); diff --git a/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/RestOperations/SchedulesRestOperations.cs b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/RestOperations/SchedulesRestOperations.cs index 2f7ddcdde5b3..ab1b635c22cd 100644 --- a/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/RestOperations/SchedulesRestOperations.cs +++ b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/RestOperations/SchedulesRestOperations.cs @@ -37,6 +37,27 @@ public SchedulesRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByPoolRequestUri(string subscriptionId, string resourceGroupName, string projectName, string poolName, int? top) + { + 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.DevCenter/projects/", false); + uri.AppendPath(projectName, true); + uri.AppendPath("/pools/", false); + uri.AppendPath(poolName, true); + uri.AppendPath("/schedules", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + return uri; + } + internal HttpMessage CreateListByPoolRequest(string subscriptionId, string resourceGroupName, string projectName, string poolName, int? top) { var message = _pipeline.CreateMessage(); @@ -128,6 +149,28 @@ public Response ListByPool(string subscriptionId, string res } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string projectName, string poolName, string scheduleName, int? top) + { + 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.DevCenter/projects/", false); + uri.AppendPath(projectName, true); + uri.AppendPath("/pools/", false); + uri.AppendPath(poolName, true); + uri.AppendPath("/schedules/", false); + uri.AppendPath(scheduleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string projectName, string poolName, string scheduleName, int? top) { var message = _pipeline.CreateMessage(); @@ -228,6 +271,28 @@ public Response Get(string subscriptionId, string resourc } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string projectName, string poolName, string scheduleName, DevCenterScheduleData data, int? top) + { + 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.DevCenter/projects/", false); + uri.AppendPath(projectName, true); + uri.AppendPath("/pools/", false); + uri.AppendPath(poolName, true); + uri.AppendPath("/schedules/", false); + uri.AppendPath(scheduleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string projectName, string poolName, string scheduleName, DevCenterScheduleData data, int? top) { var message = _pipeline.CreateMessage(); @@ -324,6 +389,28 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string projectName, string poolName, string scheduleName, DevCenterSchedulePatch patch, int? top) + { + 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.DevCenter/projects/", false); + uri.AppendPath(projectName, true); + uri.AppendPath("/pools/", false); + uri.AppendPath(poolName, true); + uri.AppendPath("/schedules/", false); + uri.AppendPath(scheduleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string projectName, string poolName, string scheduleName, DevCenterSchedulePatch patch, int? top) { var message = _pipeline.CreateMessage(); @@ -420,6 +507,28 @@ public Response Update(string subscriptionId, string resourceGroupName, string p } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string projectName, string poolName, string scheduleName, int? top) + { + 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.DevCenter/projects/", false); + uri.AppendPath(projectName, true); + uri.AppendPath("/pools/", false); + uri.AppendPath(poolName, true); + uri.AppendPath("/schedules/", false); + uri.AppendPath(scheduleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string projectName, string poolName, string scheduleName, int? top) { var message = _pipeline.CreateMessage(); @@ -510,6 +619,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string p } } + internal RequestUriBuilder CreateListByPoolNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string projectName, string poolName, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByPoolNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string projectName, string poolName, int? top) { var message = _pipeline.CreateMessage(); diff --git a/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/RestOperations/SkusRestOperations.cs b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/RestOperations/SkusRestOperations.cs index 2a39e731e1e2..8951268f67a4 100644 --- a/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/RestOperations/SkusRestOperations.cs +++ b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/RestOperations/SkusRestOperations.cs @@ -37,6 +37,21 @@ public SkusRestOperations(HttpPipeline pipeline, string applicationId, Uri endpo _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.DevCenter/skus", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId, int? top) { var message = _pipeline.CreateMessage(); @@ -110,6 +125,14 @@ public Response ListBySubscription(string subscriptionId, int? to } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId, int? top) { var message = _pipeline.CreateMessage(); diff --git a/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/RestOperations/UsagesRestOperations.cs b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/RestOperations/UsagesRestOperations.cs index 97cee9742193..952caf109c50 100644 --- a/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/RestOperations/UsagesRestOperations.cs +++ b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/RestOperations/UsagesRestOperations.cs @@ -37,6 +37,19 @@ public UsagesRestOperations(HttpPipeline pipeline, string applicationId, Uri end _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByLocationRequestUri(string subscriptionId, AzureLocation location) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.DevCenter/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/usages", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByLocationRequest(string subscriptionId, AzureLocation location) { var message = _pipeline.CreateMessage(); @@ -108,6 +121,14 @@ public Response ListByLocation(string subscriptionId, AzureLoc } } + internal RequestUriBuilder CreateListByLocationNextPageRequestUri(string nextLink, string subscriptionId, AzureLocation location) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByLocationNextPageRequest(string nextLink, string subscriptionId, AzureLocation location) { var message = _pipeline.CreateMessage(); diff --git a/sdk/deviceprovisioningservices/Azure.ResourceManager.DeviceProvisioningServices/src/Generated/DeviceProvisioningServicesCertificateCollection.cs b/sdk/deviceprovisioningservices/Azure.ResourceManager.DeviceProvisioningServices/src/Generated/DeviceProvisioningServicesCertificateCollection.cs index ceebedcc7499..6dbf3c1b292e 100644 --- a/sdk/deviceprovisioningservices/Azure.ResourceManager.DeviceProvisioningServices/src/Generated/DeviceProvisioningServicesCertificateCollection.cs +++ b/sdk/deviceprovisioningservices/Azure.ResourceManager.DeviceProvisioningServices/src/Generated/DeviceProvisioningServicesCertificateCollection.cs @@ -91,7 +91,9 @@ public virtual async Task(Response.FromValue(new DeviceProvisioningServicesCertificateResource(Client, response), response.GetRawResponse())); + var uri = _deviceProvisioningServicesCertificateDpsCertificateRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, certificateName, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DeviceProvisioningServicesArmOperation(Response.FromValue(new DeviceProvisioningServicesCertificateResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -141,7 +143,9 @@ public virtual ArmOperation Creat try { var response = _deviceProvisioningServicesCertificateDpsCertificateRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, certificateName, data, ifMatch, cancellationToken); - var operation = new DeviceProvisioningServicesArmOperation(Response.FromValue(new DeviceProvisioningServicesCertificateResource(Client, response), response.GetRawResponse())); + var uri = _deviceProvisioningServicesCertificateDpsCertificateRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, certificateName, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DeviceProvisioningServicesArmOperation(Response.FromValue(new DeviceProvisioningServicesCertificateResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/deviceprovisioningservices/Azure.ResourceManager.DeviceProvisioningServices/src/Generated/DeviceProvisioningServicesCertificateResource.cs b/sdk/deviceprovisioningservices/Azure.ResourceManager.DeviceProvisioningServices/src/Generated/DeviceProvisioningServicesCertificateResource.cs index 8790acd7e8a4..a0e110a064c8 100644 --- a/sdk/deviceprovisioningservices/Azure.ResourceManager.DeviceProvisioningServices/src/Generated/DeviceProvisioningServicesCertificateResource.cs +++ b/sdk/deviceprovisioningservices/Azure.ResourceManager.DeviceProvisioningServices/src/Generated/DeviceProvisioningServicesCertificateResource.cs @@ -207,7 +207,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, DeviceP try { var response = await _deviceProvisioningServicesCertificateDpsCertificateRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, options.IfMatch, options.CertificateCommonName, options.CertificateRawBytes, options.CertificateIsVerified, options.CertificatePurpose, options.CertificateCreatedOn, options.CertificateLastUpdatedOn, options.CertificateHasPrivateKey, options.CertificateNonce, cancellationToken).ConfigureAwait(false); - var operation = new DeviceProvisioningServicesArmOperation(response); + var uri = _deviceProvisioningServicesCertificateDpsCertificateRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, options.IfMatch, options.CertificateCommonName, options.CertificateRawBytes, options.CertificateIsVerified, options.CertificatePurpose, options.CertificateCreatedOn, options.CertificateLastUpdatedOn, options.CertificateHasPrivateKey, options.CertificateNonce); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DeviceProvisioningServicesArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -253,7 +255,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, DeviceProvisioningServic try { var response = _deviceProvisioningServicesCertificateDpsCertificateRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, options.IfMatch, options.CertificateCommonName, options.CertificateRawBytes, options.CertificateIsVerified, options.CertificatePurpose, options.CertificateCreatedOn, options.CertificateLastUpdatedOn, options.CertificateHasPrivateKey, options.CertificateNonce, cancellationToken); - var operation = new DeviceProvisioningServicesArmOperation(response); + var uri = _deviceProvisioningServicesCertificateDpsCertificateRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, options.IfMatch, options.CertificateCommonName, options.CertificateRawBytes, options.CertificateIsVerified, options.CertificatePurpose, options.CertificateCreatedOn, options.CertificateLastUpdatedOn, options.CertificateHasPrivateKey, options.CertificateNonce); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DeviceProvisioningServicesArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -300,7 +304,9 @@ public virtual async Task(Response.FromValue(new DeviceProvisioningServicesCertificateResource(Client, response), response.GetRawResponse())); + var uri = _deviceProvisioningServicesCertificateDpsCertificateRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DeviceProvisioningServicesArmOperation(Response.FromValue(new DeviceProvisioningServicesCertificateResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -347,7 +353,9 @@ public virtual ArmOperation Updat try { var response = _deviceProvisioningServicesCertificateDpsCertificateRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, ifMatch, cancellationToken); - var operation = new DeviceProvisioningServicesArmOperation(Response.FromValue(new DeviceProvisioningServicesCertificateResource(Client, response), response.GetRawResponse())); + var uri = _deviceProvisioningServicesCertificateDpsCertificateRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DeviceProvisioningServicesArmOperation(Response.FromValue(new DeviceProvisioningServicesCertificateResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/deviceprovisioningservices/Azure.ResourceManager.DeviceProvisioningServices/src/Generated/LongRunningOperation/DeviceProvisioningServicesArmOperation.cs b/sdk/deviceprovisioningservices/Azure.ResourceManager.DeviceProvisioningServices/src/Generated/LongRunningOperation/DeviceProvisioningServicesArmOperation.cs index 1da7e5912933..e4beff46e722 100644 --- a/sdk/deviceprovisioningservices/Azure.ResourceManager.DeviceProvisioningServices/src/Generated/LongRunningOperation/DeviceProvisioningServicesArmOperation.cs +++ b/sdk/deviceprovisioningservices/Azure.ResourceManager.DeviceProvisioningServices/src/Generated/LongRunningOperation/DeviceProvisioningServicesArmOperation.cs @@ -20,21 +20,24 @@ internal class DeviceProvisioningServicesArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of DeviceProvisioningServicesArmOperation for mocking. protected DeviceProvisioningServicesArmOperation() { } - internal DeviceProvisioningServicesArmOperation(Response response) + internal DeviceProvisioningServicesArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal DeviceProvisioningServicesArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "DeviceProvisioningServicesArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal DeviceProvisioningServicesArmOperation(ClientDiagnostics clientDiagnost public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/deviceprovisioningservices/Azure.ResourceManager.DeviceProvisioningServices/src/Generated/LongRunningOperation/DeviceProvisioningServicesArmOperationOfT.cs b/sdk/deviceprovisioningservices/Azure.ResourceManager.DeviceProvisioningServices/src/Generated/LongRunningOperation/DeviceProvisioningServicesArmOperationOfT.cs index 9bd36eba7ec4..dd24fde4aff7 100644 --- a/sdk/deviceprovisioningservices/Azure.ResourceManager.DeviceProvisioningServices/src/Generated/LongRunningOperation/DeviceProvisioningServicesArmOperationOfT.cs +++ b/sdk/deviceprovisioningservices/Azure.ResourceManager.DeviceProvisioningServices/src/Generated/LongRunningOperation/DeviceProvisioningServicesArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class DeviceProvisioningServicesArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of DeviceProvisioningServicesArmOperation for mocking. protected DeviceProvisioningServicesArmOperation() { } - internal DeviceProvisioningServicesArmOperation(Response response) + internal DeviceProvisioningServicesArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal DeviceProvisioningServicesArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "DeviceProvisioningServicesArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal DeviceProvisioningServicesArmOperation(IOperationSource source, Clie public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/deviceprovisioningservices/Azure.ResourceManager.DeviceProvisioningServices/src/Generated/Models/DeviceProvisioningServiceResource.Serialization.cs b/sdk/deviceprovisioningservices/Azure.ResourceManager.DeviceProvisioningServices/src/Generated/Models/DeviceProvisioningServiceResource.Serialization.cs new file mode 100644 index 000000000000..ce9e968855ef --- /dev/null +++ b/sdk/deviceprovisioningservices/Azure.ResourceManager.DeviceProvisioningServices/src/Generated/Models/DeviceProvisioningServiceResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DeviceProvisioningServices +{ + public partial class DeviceProvisioningServiceResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DeviceProvisioningServiceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DeviceProvisioningServiceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/deviceprovisioningservices/Azure.ResourceManager.DeviceProvisioningServices/src/Generated/Models/DeviceProvisioningServicesCertificateResource.Serialization.cs b/sdk/deviceprovisioningservices/Azure.ResourceManager.DeviceProvisioningServices/src/Generated/Models/DeviceProvisioningServicesCertificateResource.Serialization.cs new file mode 100644 index 000000000000..f95402e78f76 --- /dev/null +++ b/sdk/deviceprovisioningservices/Azure.ResourceManager.DeviceProvisioningServices/src/Generated/Models/DeviceProvisioningServicesCertificateResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DeviceProvisioningServices +{ + public partial class DeviceProvisioningServicesCertificateResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DeviceProvisioningServicesCertificateData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DeviceProvisioningServicesCertificateData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/deviceprovisioningservices/Azure.ResourceManager.DeviceProvisioningServices/src/Generated/Models/DeviceProvisioningServicesPrivateEndpointConnectionResource.Serialization.cs b/sdk/deviceprovisioningservices/Azure.ResourceManager.DeviceProvisioningServices/src/Generated/Models/DeviceProvisioningServicesPrivateEndpointConnectionResource.Serialization.cs new file mode 100644 index 000000000000..1ad1060cc585 --- /dev/null +++ b/sdk/deviceprovisioningservices/Azure.ResourceManager.DeviceProvisioningServices/src/Generated/Models/DeviceProvisioningServicesPrivateEndpointConnectionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DeviceProvisioningServices +{ + public partial class DeviceProvisioningServicesPrivateEndpointConnectionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DeviceProvisioningServicesPrivateEndpointConnectionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DeviceProvisioningServicesPrivateEndpointConnectionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/deviceprovisioningservices/Azure.ResourceManager.DeviceProvisioningServices/src/Generated/Models/DeviceProvisioningServicesPrivateLinkResource.Serialization.cs b/sdk/deviceprovisioningservices/Azure.ResourceManager.DeviceProvisioningServices/src/Generated/Models/DeviceProvisioningServicesPrivateLinkResource.Serialization.cs new file mode 100644 index 000000000000..9ccf68733ecc --- /dev/null +++ b/sdk/deviceprovisioningservices/Azure.ResourceManager.DeviceProvisioningServices/src/Generated/Models/DeviceProvisioningServicesPrivateLinkResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DeviceProvisioningServices +{ + public partial class DeviceProvisioningServicesPrivateLinkResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DeviceProvisioningServicesPrivateLinkResourceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DeviceProvisioningServicesPrivateLinkResourceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/deviceprovisioningservices/Azure.ResourceManager.DeviceProvisioningServices/src/Generated/RestOperations/DpsCertificateRestOperations.cs b/sdk/deviceprovisioningservices/Azure.ResourceManager.DeviceProvisioningServices/src/Generated/RestOperations/DpsCertificateRestOperations.cs index 6ec26fc85bf4..1fdedf1f9f65 100644 --- a/sdk/deviceprovisioningservices/Azure.ResourceManager.DeviceProvisioningServices/src/Generated/RestOperations/DpsCertificateRestOperations.cs +++ b/sdk/deviceprovisioningservices/Azure.ResourceManager.DeviceProvisioningServices/src/Generated/RestOperations/DpsCertificateRestOperations.cs @@ -37,6 +37,22 @@ public DpsCertificateRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string provisioningServiceName, string certificateName, string ifMatch) + { + 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.Devices/provisioningServices/", false); + uri.AppendPath(provisioningServiceName, true); + uri.AppendPath("/certificates/", false); + uri.AppendPath(certificateName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string provisioningServiceName, string certificateName, string ifMatch) { var message = _pipeline.CreateMessage(); @@ -131,6 +147,22 @@ public Response Get(string subscripti } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string provisioningServiceName, string certificateName, DeviceProvisioningServicesCertificateData data, string ifMatch) + { + 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.Devices/provisioningServices/", false); + uri.AppendPath(provisioningServiceName, true); + uri.AppendPath("/certificates/", false); + uri.AppendPath(certificateName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string provisioningServiceName, string certificateName, DeviceProvisioningServicesCertificateData data, string ifMatch) { var message = _pipeline.CreateMessage(); @@ -229,6 +261,54 @@ public Response CreateOrUpdate(string } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string provisioningServiceName, string certificateName, string ifMatch, string certificateCommonName, byte[] certificateRawBytes, bool? certificateIsVerified, DeviceProvisioningServicesCertificatePurpose? certificatePurpose, DateTimeOffset? certificateCreatedOn, DateTimeOffset? certificateLastUpdatedOn, bool? certificateHasPrivateKey, string certificateNonce) + { + 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.Devices/provisioningServices/", false); + uri.AppendPath(provisioningServiceName, true); + uri.AppendPath("/certificates/", false); + uri.AppendPath(certificateName, true); + if (certificateCommonName != null) + { + uri.AppendQuery("certificateCommonName", certificateCommonName, true); + } + if (certificateRawBytes != null) + { + uri.AppendQuery("certificate.rawBytes", certificateRawBytes, "D", true); + } + if (certificateIsVerified != null) + { + uri.AppendQuery("certificate.isVerified", certificateIsVerified.Value, true); + } + if (certificatePurpose != null) + { + uri.AppendQuery("certificate.purpose", certificatePurpose.Value.ToString(), true); + } + if (certificateCreatedOn != null) + { + uri.AppendQuery("certificateCreatedOn", certificateCreatedOn.Value, "O", true); + } + if (certificateLastUpdatedOn != null) + { + uri.AppendQuery("certificateLastUpdatedOn", certificateLastUpdatedOn.Value, "O", true); + } + if (certificateHasPrivateKey != null) + { + uri.AppendQuery("certificate.hasPrivateKey", certificateHasPrivateKey.Value, true); + } + if (certificateNonce != null) + { + uri.AppendQuery("certificate.nonce", certificateNonce, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string provisioningServiceName, string certificateName, string ifMatch, string certificateCommonName, byte[] certificateRawBytes, bool? certificateIsVerified, DeviceProvisioningServicesCertificatePurpose? certificatePurpose, DateTimeOffset? certificateCreatedOn, DateTimeOffset? certificateLastUpdatedOn, bool? certificateHasPrivateKey, string certificateNonce) { var message = _pipeline.CreateMessage(); @@ -358,6 +438,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string p } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string provisioningServiceName) + { + 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.Devices/provisioningServices/", false); + uri.AppendPath(provisioningServiceName, true); + uri.AppendPath("/certificates", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string provisioningServiceName) { var message = _pipeline.CreateMessage(); @@ -437,6 +532,55 @@ public Response List(string subscriptionId, string r } } + internal RequestUriBuilder CreateGenerateVerificationCodeRequestUri(string subscriptionId, string resourceGroupName, string provisioningServiceName, string certificateName, string ifMatch, string certificateCommonName, byte[] certificateRawBytes, bool? certificateIsVerified, DeviceProvisioningServicesCertificatePurpose? certificatePurpose, DateTimeOffset? certificateCreatedOn, DateTimeOffset? certificateLastUpdatedOn, bool? certificateHasPrivateKey, string certificateNonce) + { + 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.Devices/provisioningServices/", false); + uri.AppendPath(provisioningServiceName, true); + uri.AppendPath("/certificates/", false); + uri.AppendPath(certificateName, true); + uri.AppendPath("/generateVerificationCode", false); + if (certificateCommonName != null) + { + uri.AppendQuery("certificateCommonName", certificateCommonName, true); + } + if (certificateRawBytes != null) + { + uri.AppendQuery("certificate.rawBytes", certificateRawBytes, "D", true); + } + if (certificateIsVerified != null) + { + uri.AppendQuery("certificate.isVerified", certificateIsVerified.Value, true); + } + if (certificatePurpose != null) + { + uri.AppendQuery("certificate.purpose", certificatePurpose.Value.ToString(), true); + } + if (certificateCreatedOn != null) + { + uri.AppendQuery("certificateCreatedOn", certificateCreatedOn.Value, "O", true); + } + if (certificateLastUpdatedOn != null) + { + uri.AppendQuery("certificateLastUpdatedOn", certificateLastUpdatedOn.Value, "O", true); + } + if (certificateHasPrivateKey != null) + { + uri.AppendQuery("certificate.hasPrivateKey", certificateHasPrivateKey.Value, true); + } + if (certificateNonce != null) + { + uri.AppendQuery("certificate.nonce", certificateNonce, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGenerateVerificationCodeRequest(string subscriptionId, string resourceGroupName, string provisioningServiceName, string certificateName, string ifMatch, string certificateCommonName, byte[] certificateRawBytes, bool? certificateIsVerified, DeviceProvisioningServicesCertificatePurpose? certificatePurpose, DateTimeOffset? certificateCreatedOn, DateTimeOffset? certificateLastUpdatedOn, bool? certificateHasPrivateKey, string certificateNonce) { var message = _pipeline.CreateMessage(); @@ -575,6 +719,55 @@ public Response GenerateVerificationCode(stri } } + internal RequestUriBuilder CreateVerifyCertificateRequestUri(string subscriptionId, string resourceGroupName, string provisioningServiceName, string certificateName, string ifMatch, CertificateVerificationCodeContent content, string certificateCommonName, byte[] certificateRawBytes, bool? certificateIsVerified, DeviceProvisioningServicesCertificatePurpose? certificatePurpose, DateTimeOffset? certificateCreatedOn, DateTimeOffset? certificateLastUpdatedOn, bool? certificateHasPrivateKey, string certificateNonce) + { + 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.Devices/provisioningServices/", false); + uri.AppendPath(provisioningServiceName, true); + uri.AppendPath("/certificates/", false); + uri.AppendPath(certificateName, true); + uri.AppendPath("/verify", false); + if (certificateCommonName != null) + { + uri.AppendQuery("certificateCommonName", certificateCommonName, true); + } + if (certificateRawBytes != null) + { + uri.AppendQuery("certificate.rawBytes", certificateRawBytes, "D", true); + } + if (certificateIsVerified != null) + { + uri.AppendQuery("certificate.isVerified", certificateIsVerified.Value, true); + } + if (certificatePurpose != null) + { + uri.AppendQuery("certificate.purpose", certificatePurpose.Value.ToString(), true); + } + if (certificateCreatedOn != null) + { + uri.AppendQuery("certificateCreatedOn", certificateCreatedOn.Value, "O", true); + } + if (certificateLastUpdatedOn != null) + { + uri.AppendQuery("certificateLastUpdatedOn", certificateLastUpdatedOn.Value, "O", true); + } + if (certificateHasPrivateKey != null) + { + uri.AppendQuery("certificate.hasPrivateKey", certificateHasPrivateKey.Value, true); + } + if (certificateNonce != null) + { + uri.AppendQuery("certificate.nonce", certificateNonce, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateVerifyCertificateRequest(string subscriptionId, string resourceGroupName, string provisioningServiceName, string certificateName, string ifMatch, CertificateVerificationCodeContent content, string certificateCommonName, byte[] certificateRawBytes, bool? certificateIsVerified, DeviceProvisioningServicesCertificatePurpose? certificatePurpose, DateTimeOffset? certificateCreatedOn, DateTimeOffset? certificateLastUpdatedOn, bool? certificateHasPrivateKey, string certificateNonce) { var message = _pipeline.CreateMessage(); diff --git a/sdk/deviceprovisioningservices/Azure.ResourceManager.DeviceProvisioningServices/src/Generated/RestOperations/IotDpsResourceRestOperations.cs b/sdk/deviceprovisioningservices/Azure.ResourceManager.DeviceProvisioningServices/src/Generated/RestOperations/IotDpsResourceRestOperations.cs index c817cc83a7b8..f21ac70c5769 100644 --- a/sdk/deviceprovisioningservices/Azure.ResourceManager.DeviceProvisioningServices/src/Generated/RestOperations/IotDpsResourceRestOperations.cs +++ b/sdk/deviceprovisioningservices/Azure.ResourceManager.DeviceProvisioningServices/src/Generated/RestOperations/IotDpsResourceRestOperations.cs @@ -38,6 +38,20 @@ public IotDpsResourceRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string provisioningServiceName) + { + 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.Devices/provisioningServices/", false); + uri.AppendPath(provisioningServiceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string provisioningServiceName) { var message = _pipeline.CreateMessage(); @@ -120,6 +134,20 @@ public Response Get(string subscriptionId, string } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string provisioningServiceName, DeviceProvisioningServiceData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Devices/provisioningServices/", false); + uri.AppendPath(provisioningServiceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string provisioningServiceName, DeviceProvisioningServiceData data) { var message = _pipeline.CreateMessage(); @@ -198,6 +226,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string provisioningServiceName, DeviceProvisioningServicePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Devices/provisioningServices/", false); + uri.AppendPath(provisioningServiceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string provisioningServiceName, DeviceProvisioningServicePatch patch) { var message = _pipeline.CreateMessage(); @@ -274,6 +316,20 @@ public Response Update(string subscriptionId, string resourceGroupName, string p } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string provisioningServiceName) + { + 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.Devices/provisioningServices/", false); + uri.AppendPath(provisioningServiceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string provisioningServiceName) { var message = _pipeline.CreateMessage(); @@ -348,6 +404,17 @@ public Response Delete(string subscriptionId, string resourceGroupName, string p } } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Devices/provisioningServices", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -415,6 +482,19 @@ public Response ListBySubscription(str } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.Devices/provisioningServices", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -488,6 +568,21 @@ public Response ListByResourceGroup(st } } + internal RequestUriBuilder CreateListValidSkusRequestUri(string subscriptionId, string resourceGroupName, string provisioningServiceName) + { + 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.Devices/provisioningServices/", false); + uri.AppendPath(provisioningServiceName, true); + uri.AppendPath("/skus", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListValidSkusRequest(string subscriptionId, string resourceGroupName, string provisioningServiceName) { var message = _pipeline.CreateMessage(); @@ -567,6 +662,17 @@ public Response ListValidSkus(string subscription } } + internal RequestUriBuilder CreateCheckProvisioningServiceNameAvailabilityRequestUri(string subscriptionId, DeviceProvisioningServicesNameAvailabilityContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Devices/checkProvisioningServiceNameAvailability", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCheckProvisioningServiceNameAvailabilityRequest(string subscriptionId, DeviceProvisioningServicesNameAvailabilityContent content) { var message = _pipeline.CreateMessage(); @@ -642,6 +748,21 @@ public Response CheckProvision } } + internal RequestUriBuilder CreateListKeysRequestUri(string subscriptionId, string resourceGroupName, string provisioningServiceName) + { + 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.Devices/provisioningServices/", false); + uri.AppendPath(provisioningServiceName, true); + uri.AppendPath("/listkeys", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListKeysRequest(string subscriptionId, string resourceGroupName, string provisioningServiceName) { var message = _pipeline.CreateMessage(); @@ -721,6 +842,23 @@ public Response ListKeys(strin } } + internal RequestUriBuilder CreateListKeysForKeyNameRequestUri(string subscriptionId, string resourceGroupName, string provisioningServiceName, string keyName) + { + 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.Devices/provisioningServices/", false); + uri.AppendPath(provisioningServiceName, true); + uri.AppendPath("/keys/", false); + uri.AppendPath(keyName, true); + uri.AppendPath("/listkeys", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListKeysForKeyNameRequest(string subscriptionId, string resourceGroupName, string provisioningServiceName, string keyName) { var message = _pipeline.CreateMessage(); @@ -806,6 +944,21 @@ public Response ListKeysForKeyName(st } } + internal RequestUriBuilder CreateListPrivateLinkResourcesRequestUri(string subscriptionId, string resourceGroupName, string resourceName) + { + 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.Devices/provisioningServices/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/privateLinkResources", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListPrivateLinkResourcesRequest(string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); @@ -885,6 +1038,22 @@ public Response ListPrivateLinkResources(string subscripti } } + internal RequestUriBuilder CreateGetPrivateLinkResourcesRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string groupId) + { + 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.Devices/provisioningServices/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/privateLinkResources/", false); + uri.AppendPath(groupId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetPrivateLinkResourcesRequest(string subscriptionId, string resourceGroupName, string resourceName, string groupId) { var message = _pipeline.CreateMessage(); @@ -973,6 +1142,21 @@ public Response GetPrivateLin } } + internal RequestUriBuilder CreateListPrivateEndpointConnectionsRequestUri(string subscriptionId, string resourceGroupName, string resourceName) + { + 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.Devices/provisioningServices/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/privateEndpointConnections", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListPrivateEndpointConnectionsRequest(string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); @@ -1062,6 +1246,22 @@ public Response GetPriv } } + internal RequestUriBuilder CreateCreateOrUpdatePrivateEndpointConnectionRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string privateEndpointConnectionName, DeviceProvisioningServicesPrivateEndpointConnectionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Devices/provisioningServices/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdatePrivateEndpointConnectionRequest(string subscriptionId, string resourceGroupName, string resourceName, string privateEndpointConnectionName, DeviceProvisioningServicesPrivateEndpointConnectionData data) { var message = _pipeline.CreateMessage(); @@ -1234,6 +1450,22 @@ public Response CreateOrUpdatePrivateEndpointConnection(string subscriptionId, s } } + internal RequestUriBuilder CreateDeletePrivateEndpointConnectionRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string privateEndpointConnectionName) + { + 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.Devices/provisioningServices/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeletePrivateEndpointConnectionRequest(string subscriptionId, string resourceGroupName, string resourceName, string privateEndpointConnectionName) { var message = _pipeline.CreateMessage(); @@ -1312,6 +1544,14 @@ public Response DeletePrivateEndpointConnection(string subscriptionId, string re } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -1380,6 +1620,14 @@ public Response ListBySubscriptionNext } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -1452,6 +1700,14 @@ public Response ListByResourceGroupNex } } + internal RequestUriBuilder CreateListValidSkusNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string provisioningServiceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListValidSkusNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string provisioningServiceName) { var message = _pipeline.CreateMessage(); @@ -1528,6 +1784,14 @@ public Response ListValidSkusNextPage(string next } } + internal RequestUriBuilder CreateListKeysNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string provisioningServiceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListKeysNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string provisioningServiceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/LongRunningOperation/DeviceUpdateArmOperation.cs b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/LongRunningOperation/DeviceUpdateArmOperation.cs index 4c63a5feb84f..00656505c3d7 100644 --- a/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/LongRunningOperation/DeviceUpdateArmOperation.cs +++ b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/LongRunningOperation/DeviceUpdateArmOperation.cs @@ -20,21 +20,24 @@ internal class DeviceUpdateArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of DeviceUpdateArmOperation for mocking. protected DeviceUpdateArmOperation() { } - internal DeviceUpdateArmOperation(Response response) + internal DeviceUpdateArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal DeviceUpdateArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "DeviceUpdateArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal DeviceUpdateArmOperation(ClientDiagnostics clientDiagnostics, HttpPipel public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/LongRunningOperation/DeviceUpdateArmOperationOfT.cs b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/LongRunningOperation/DeviceUpdateArmOperationOfT.cs index ac2d6bb44223..f3ad897a30c4 100644 --- a/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/LongRunningOperation/DeviceUpdateArmOperationOfT.cs +++ b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/LongRunningOperation/DeviceUpdateArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class DeviceUpdateArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of DeviceUpdateArmOperation for mocking. protected DeviceUpdateArmOperation() { } - internal DeviceUpdateArmOperation(Response response) + internal DeviceUpdateArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal DeviceUpdateArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "DeviceUpdateArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal DeviceUpdateArmOperation(IOperationSource source, ClientDiagnostics public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/DeviceUpdateAccountResource.Serialization.cs b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/DeviceUpdateAccountResource.Serialization.cs new file mode 100644 index 000000000000..2eab4cc37272 --- /dev/null +++ b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/DeviceUpdateAccountResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DeviceUpdate +{ + public partial class DeviceUpdateAccountResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DeviceUpdateAccountData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DeviceUpdateAccountData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/DeviceUpdateInstanceResource.Serialization.cs b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/DeviceUpdateInstanceResource.Serialization.cs new file mode 100644 index 000000000000..893da0f674e5 --- /dev/null +++ b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/DeviceUpdateInstanceResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DeviceUpdate +{ + public partial class DeviceUpdateInstanceResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DeviceUpdateInstanceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DeviceUpdateInstanceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/DeviceUpdatePrivateEndpointConnectionProxyResource.Serialization.cs b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/DeviceUpdatePrivateEndpointConnectionProxyResource.Serialization.cs new file mode 100644 index 000000000000..5b85af338cf8 --- /dev/null +++ b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/DeviceUpdatePrivateEndpointConnectionProxyResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DeviceUpdate +{ + public partial class DeviceUpdatePrivateEndpointConnectionProxyResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DeviceUpdatePrivateEndpointConnectionProxyData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DeviceUpdatePrivateEndpointConnectionProxyData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/DeviceUpdatePrivateEndpointConnectionResource.Serialization.cs b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/DeviceUpdatePrivateEndpointConnectionResource.Serialization.cs new file mode 100644 index 000000000000..b2306f1cdba1 --- /dev/null +++ b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/DeviceUpdatePrivateEndpointConnectionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DeviceUpdate +{ + public partial class DeviceUpdatePrivateEndpointConnectionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DeviceUpdatePrivateEndpointConnectionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DeviceUpdatePrivateEndpointConnectionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/DeviceUpdatePrivateLinkResource.Serialization.cs b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/DeviceUpdatePrivateLinkResource.Serialization.cs new file mode 100644 index 000000000000..7d5a1ed21663 --- /dev/null +++ b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/DeviceUpdatePrivateLinkResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DeviceUpdate +{ + public partial class DeviceUpdatePrivateLinkResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DeviceUpdatePrivateLinkData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DeviceUpdatePrivateLinkData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/RestOperations/AccountsRestOperations.cs b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/RestOperations/AccountsRestOperations.cs index 351db33230e0..70a7c5e6eeb8 100644 --- a/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/RestOperations/AccountsRestOperations.cs +++ b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/RestOperations/AccountsRestOperations.cs @@ -37,6 +37,17 @@ public AccountsRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.DeviceUpdate/accounts", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,19 @@ public Response ListBySubscription(string subscriptionId, Cancellat } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.DeviceUpdate/accounts", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -177,6 +201,20 @@ public Response ListByResourceGroup(string subscriptionId, string r } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string accountName) + { + 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.DeviceUpdate/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); @@ -259,6 +297,20 @@ public Response Get(string subscriptionId, string resou } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string accountName, DeviceUpdateAccountData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DeviceUpdate/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string accountName, DeviceUpdateAccountData data) { var message = _pipeline.CreateMessage(); @@ -335,6 +387,20 @@ public Response Create(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string accountName) + { + 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.DeviceUpdate/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); @@ -407,6 +473,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string accountName, DeviceUpdateAccountPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DeviceUpdate/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string accountName, DeviceUpdateAccountPatch patch) { var message = _pipeline.CreateMessage(); @@ -485,6 +565,14 @@ public Response Update(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -553,6 +641,14 @@ public Response ListBySubscriptionNextPage(string nextLink, string } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/RestOperations/DeviceUpdateRestOperations.cs b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/RestOperations/DeviceUpdateRestOperations.cs index 1c721ef9cbd4..a90f15d3e8b7 100644 --- a/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/RestOperations/DeviceUpdateRestOperations.cs +++ b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/RestOperations/DeviceUpdateRestOperations.cs @@ -37,6 +37,17 @@ public DeviceUpdateRestOperations(HttpPipeline pipeline, string applicationId, U _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCheckNameAvailabilityRequestUri(string subscriptionId, DeviceUpdateAvailabilityContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.DeviceUpdate/checknameavailability", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCheckNameAvailabilityRequest(string subscriptionId, DeviceUpdateAvailabilityContent content) { var message = _pipeline.CreateMessage(); diff --git a/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/RestOperations/InstancesRestOperations.cs b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/RestOperations/InstancesRestOperations.cs index d1ba76e7ce32..457e4a57d20b 100644 --- a/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/RestOperations/InstancesRestOperations.cs +++ b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/RestOperations/InstancesRestOperations.cs @@ -37,6 +37,21 @@ public InstancesRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByAccountRequestUri(string subscriptionId, string resourceGroupName, string accountName) + { + 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.DeviceUpdate/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/instances", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByAccountRequest(string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByAccount(string subscriptionId, string resour } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string accountName, string instanceName) + { + 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.DeviceUpdate/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/instances/", false); + uri.AppendPath(instanceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string accountName, string instanceName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscriptionId, string reso } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string accountName, string instanceName, DeviceUpdateInstanceData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DeviceUpdate/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/instances/", false); + uri.AppendPath(instanceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string accountName, string instanceName, DeviceUpdateInstanceData data) { var message = _pipeline.CreateMessage(); @@ -286,6 +333,22 @@ public Response Create(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string accountName, string instanceName) + { + 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.DeviceUpdate/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/instances/", false); + uri.AppendPath(instanceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string accountName, string instanceName) { var message = _pipeline.CreateMessage(); @@ -364,6 +427,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string accountName, string instanceName, DeviceUpdateInstancePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DeviceUpdate/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/instances/", false); + uri.AppendPath(instanceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string accountName, string instanceName, DeviceUpdateInstancePatch patch) { var message = _pipeline.CreateMessage(); @@ -456,6 +535,14 @@ public Response Update(string subscriptionId, string r } } + internal RequestUriBuilder CreateListByAccountNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string accountName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByAccountNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/RestOperations/PrivateEndpointConnectionProxiesRestOperations.cs b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/RestOperations/PrivateEndpointConnectionProxiesRestOperations.cs index dfb50f05d077..8a243717a9a0 100644 --- a/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/RestOperations/PrivateEndpointConnectionProxiesRestOperations.cs +++ b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/RestOperations/PrivateEndpointConnectionProxiesRestOperations.cs @@ -37,6 +37,21 @@ public PrivateEndpointConnectionProxiesRestOperations(HttpPipeline pipeline, str _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByAccountRequestUri(string subscriptionId, string resourceGroupName, string accountName) + { + 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.DeviceUpdate/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/privateEndpointConnectionProxies", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByAccountRequest(string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,23 @@ public Response ListByAccount(string s } } + internal RequestUriBuilder CreateValidateRequestUri(string subscriptionId, string resourceGroupName, string accountName, string privateEndpointConnectionProxyId, DeviceUpdatePrivateEndpointConnectionProxyData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DeviceUpdate/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/privateEndpointConnectionProxies/", false); + uri.AppendPath(privateEndpointConnectionProxyId, true); + uri.AppendPath("/validate", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateValidateRequest(string subscriptionId, string resourceGroupName, string accountName, string privateEndpointConnectionProxyId, DeviceUpdatePrivateEndpointConnectionProxyData data) { var message = _pipeline.CreateMessage(); @@ -199,6 +231,23 @@ public Response Validate(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreateUpdatePrivateEndpointPropertiesRequestUri(string subscriptionId, string resourceGroupName, string accountName, string privateEndpointConnectionProxyId, DeviceUpdatePrivateEndpointUpdate privateEndpointUpdate) + { + 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.DeviceUpdate/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/privateEndpointConnectionProxies/", false); + uri.AppendPath(privateEndpointConnectionProxyId, true); + uri.AppendPath("/updatePrivateEndpointProperties", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdatePrivateEndpointPropertiesRequest(string subscriptionId, string resourceGroupName, string accountName, string privateEndpointConnectionProxyId, DeviceUpdatePrivateEndpointUpdate privateEndpointUpdate) { var message = _pipeline.CreateMessage(); @@ -282,6 +331,22 @@ public Response UpdatePrivateEndpointProperties(string subscriptionId, string re } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string accountName, string privateEndpointConnectionProxyId) + { + 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.DeviceUpdate/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/privateEndpointConnectionProxies/", false); + uri.AppendPath(privateEndpointConnectionProxyId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string accountName, string privateEndpointConnectionProxyId) { var message = _pipeline.CreateMessage(); @@ -370,6 +435,22 @@ public Response Get(string subsc } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string accountName, string privateEndpointConnectionProxyId, DeviceUpdatePrivateEndpointConnectionProxyData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DeviceUpdate/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/privateEndpointConnectionProxies/", false); + uri.AppendPath(privateEndpointConnectionProxyId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string accountName, string privateEndpointConnectionProxyId, DeviceUpdatePrivateEndpointConnectionProxyData data) { var message = _pipeline.CreateMessage(); @@ -452,6 +533,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string accountName, string privateEndpointConnectionProxyId) + { + 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.DeviceUpdate/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/privateEndpointConnectionProxies/", false); + uri.AppendPath(privateEndpointConnectionProxyId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string accountName, string privateEndpointConnectionProxyId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs index ed642ad79ee8..cb345137e972 100644 --- a/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs +++ b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs @@ -37,6 +37,21 @@ public PrivateEndpointConnectionsRestOperations(HttpPipeline pipeline, string ap _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByAccountRequestUri(string subscriptionId, string resourceGroupName, string accountName) + { + 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.DeviceUpdate/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/privateEndpointConnections", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByAccountRequest(string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByAccount(s } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string accountName, string privateEndpointConnectionName) + { + 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.DeviceUpdate/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string accountName, string privateEndpointConnectionName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscripti } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string accountName, string privateEndpointConnectionName, DeviceUpdatePrivateEndpointConnectionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DeviceUpdate/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string accountName, string privateEndpointConnectionName, DeviceUpdatePrivateEndpointConnectionData data) { var message = _pipeline.CreateMessage(); @@ -286,6 +333,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string accountName, string privateEndpointConnectionName) + { + 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.DeviceUpdate/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string accountName, string privateEndpointConnectionName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs index ad40ebd7355b..2b6c7ecf29d2 100644 --- a/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs +++ b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs @@ -37,6 +37,21 @@ public PrivateLinkResourcesRestOperations(HttpPipeline pipeline, string applicat _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByAccountRequestUri(string subscriptionId, string resourceGroupName, string accountName) + { + 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.DeviceUpdate/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/privateLinkResources", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByAccountRequest(string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByAccount(string } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string accountName, string groupId) + { + 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.DeviceUpdate/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/privateLinkResources/", false); + uri.AppendPath(groupId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string accountName, string groupId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/devspaces/Azure.ResourceManager.DevSpaces/src/Generated/LongRunningOperation/DevSpacesArmOperation.cs b/sdk/devspaces/Azure.ResourceManager.DevSpaces/src/Generated/LongRunningOperation/DevSpacesArmOperation.cs index 77ec625e7524..374e24a8d86f 100644 --- a/sdk/devspaces/Azure.ResourceManager.DevSpaces/src/Generated/LongRunningOperation/DevSpacesArmOperation.cs +++ b/sdk/devspaces/Azure.ResourceManager.DevSpaces/src/Generated/LongRunningOperation/DevSpacesArmOperation.cs @@ -20,21 +20,24 @@ internal class DevSpacesArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of DevSpacesArmOperation for mocking. protected DevSpacesArmOperation() { } - internal DevSpacesArmOperation(Response response) + internal DevSpacesArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal DevSpacesArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "DevSpacesArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal DevSpacesArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/devspaces/Azure.ResourceManager.DevSpaces/src/Generated/LongRunningOperation/DevSpacesArmOperationOfT.cs b/sdk/devspaces/Azure.ResourceManager.DevSpaces/src/Generated/LongRunningOperation/DevSpacesArmOperationOfT.cs index 0b47a6afff9e..d39d43ba07cb 100644 --- a/sdk/devspaces/Azure.ResourceManager.DevSpaces/src/Generated/LongRunningOperation/DevSpacesArmOperationOfT.cs +++ b/sdk/devspaces/Azure.ResourceManager.DevSpaces/src/Generated/LongRunningOperation/DevSpacesArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class DevSpacesArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of DevSpacesArmOperation for mocking. protected DevSpacesArmOperation() { } - internal DevSpacesArmOperation(Response response) + internal DevSpacesArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal DevSpacesArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "DevSpacesArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal DevSpacesArmOperation(IOperationSource source, ClientDiagnostics cli public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/devspaces/Azure.ResourceManager.DevSpaces/src/Generated/Models/ControllerResource.Serialization.cs b/sdk/devspaces/Azure.ResourceManager.DevSpaces/src/Generated/Models/ControllerResource.Serialization.cs new file mode 100644 index 000000000000..2935d260d77a --- /dev/null +++ b/sdk/devspaces/Azure.ResourceManager.DevSpaces/src/Generated/Models/ControllerResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DevSpaces +{ + public partial class ControllerResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ControllerData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ControllerData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/devspaces/Azure.ResourceManager.DevSpaces/src/Generated/RestOperations/ContainerHostMappingsRestOperations.cs b/sdk/devspaces/Azure.ResourceManager.DevSpaces/src/Generated/RestOperations/ContainerHostMappingsRestOperations.cs index a068598cbcf7..1bf7faf3c496 100644 --- a/sdk/devspaces/Azure.ResourceManager.DevSpaces/src/Generated/RestOperations/ContainerHostMappingsRestOperations.cs +++ b/sdk/devspaces/Azure.ResourceManager.DevSpaces/src/Generated/RestOperations/ContainerHostMappingsRestOperations.cs @@ -37,6 +37,21 @@ public ContainerHostMappingsRestOperations(HttpPipeline pipeline, string applica _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetContainerHostMappingRequestUri(string subscriptionId, string resourceGroupName, AzureLocation location, ContainerHostMapping containerHostMapping) + { + 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.DevSpaces/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/checkContainerHostMapping", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetContainerHostMappingRequest(string subscriptionId, string resourceGroupName, AzureLocation location, ContainerHostMapping containerHostMapping) { var message = _pipeline.CreateMessage(); diff --git a/sdk/devspaces/Azure.ResourceManager.DevSpaces/src/Generated/RestOperations/ControllersRestOperations.cs b/sdk/devspaces/Azure.ResourceManager.DevSpaces/src/Generated/RestOperations/ControllersRestOperations.cs index cc7098a994f8..388626e8b0e2 100644 --- a/sdk/devspaces/Azure.ResourceManager.DevSpaces/src/Generated/RestOperations/ControllersRestOperations.cs +++ b/sdk/devspaces/Azure.ResourceManager.DevSpaces/src/Generated/RestOperations/ControllersRestOperations.cs @@ -37,6 +37,20 @@ public ControllersRestOperations(HttpPipeline pipeline, string applicationId, Ur _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.DevSpaces/controllers/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -119,6 +133,20 @@ public Response Get(string subscriptionId, string resourceGroupN } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string name, ControllerData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DevSpaces/controllers/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string name, ControllerData data) { var message = _pipeline.CreateMessage(); @@ -197,6 +225,20 @@ public Response Create(string subscriptionId, string resourceGroupName, string n } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.DevSpaces/controllers/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -269,6 +311,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string n } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string name, ControllerPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DevSpaces/controllers/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string name, ControllerPatch patch) { var message = _pipeline.CreateMessage(); @@ -357,6 +413,19 @@ public Response Update(string subscriptionId, string resourceGro } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.DevSpaces/controllers", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -430,6 +499,17 @@ public Response ListByResourceGroup(string subscriptionId, strin } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.DevSpaces/controllers", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -497,6 +577,21 @@ public Response List(string subscriptionId, CancellationToken ca } } + internal RequestUriBuilder CreateListConnectionDetailsRequestUri(string subscriptionId, string resourceGroupName, string name, ListConnectionDetailsContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DevSpaces/controllers/", false); + uri.AppendPath(name, true); + uri.AppendPath("/listConnectionDetails", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListConnectionDetailsRequest(string subscriptionId, string resourceGroupName, string name, ListConnectionDetailsContent content) { var message = _pipeline.CreateMessage(); @@ -584,6 +679,14 @@ public Response ListConnectionDetails(string su } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -656,6 +759,14 @@ public Response ListByResourceGroupNextPage(string nextLink, str } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/DevTestLabArtifactSourceCollection.cs b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/DevTestLabArtifactSourceCollection.cs index 02f14a4ef54c..2102d6f0776d 100644 --- a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/DevTestLabArtifactSourceCollection.cs +++ b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/DevTestLabArtifactSourceCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> Create try { var response = await _devTestLabArtifactSourceArtifactSourcesRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data, cancellationToken).ConfigureAwait(false); - var operation = new DevTestLabsArmOperation(Response.FromValue(new DevTestLabArtifactSourceResource(Client, response), response.GetRawResponse())); + var uri = _devTestLabArtifactSourceArtifactSourcesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DevTestLabsArmOperation(Response.FromValue(new DevTestLabArtifactSourceResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(Wai try { var response = _devTestLabArtifactSourceArtifactSourcesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data, cancellationToken); - var operation = new DevTestLabsArmOperation(Response.FromValue(new DevTestLabArtifactSourceResource(Client, response), response.GetRawResponse())); + var uri = _devTestLabArtifactSourceArtifactSourcesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DevTestLabsArmOperation(Response.FromValue(new DevTestLabArtifactSourceResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/DevTestLabArtifactSourceResource.cs b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/DevTestLabArtifactSourceResource.cs index d41fe1f803a5..7844fb5d11a6 100644 --- a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/DevTestLabArtifactSourceResource.cs +++ b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/DevTestLabArtifactSourceResource.cs @@ -346,7 +346,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _devTestLabArtifactSourceArtifactSourcesRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new DevTestLabsArmOperation(response); + var uri = _devTestLabArtifactSourceArtifactSourcesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DevTestLabsArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -388,7 +390,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _devTestLabArtifactSourceArtifactSourcesRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new DevTestLabsArmOperation(response); + var uri = _devTestLabArtifactSourceArtifactSourcesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DevTestLabsArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/DevTestLabCostCollection.cs b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/DevTestLabCostCollection.cs index ee06f5b99a20..2981f66d5c74 100644 --- a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/DevTestLabCostCollection.cs +++ b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/DevTestLabCostCollection.cs @@ -87,7 +87,9 @@ public virtual async Task> CreateOrUpdateAs try { var response = await _devTestLabCostCostsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data, cancellationToken).ConfigureAwait(false); - var operation = new DevTestLabsArmOperation(Response.FromValue(new DevTestLabCostResource(Client, response), response.GetRawResponse())); + var uri = _devTestLabCostCostsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DevTestLabsArmOperation(Response.FromValue(new DevTestLabCostResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -136,7 +138,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wai try { var response = _devTestLabCostCostsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data, cancellationToken); - var operation = new DevTestLabsArmOperation(Response.FromValue(new DevTestLabCostResource(Client, response), response.GetRawResponse())); + var uri = _devTestLabCostCostsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DevTestLabsArmOperation(Response.FromValue(new DevTestLabCostResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/DevTestLabCostResource.cs b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/DevTestLabCostResource.cs index 94fdefc4ac1d..45aa2a65e521 100644 --- a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/DevTestLabCostResource.cs +++ b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/DevTestLabCostResource.cs @@ -207,7 +207,9 @@ public virtual async Task> UpdateAsync(Wait try { var response = await _devTestLabCostCostsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new DevTestLabsArmOperation(Response.FromValue(new DevTestLabCostResource(Client, response), response.GetRawResponse())); + var uri = _devTestLabCostCostsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DevTestLabsArmOperation(Response.FromValue(new DevTestLabCostResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -253,7 +255,9 @@ public virtual ArmOperation Update(WaitUntil waitUntil, try { var response = _devTestLabCostCostsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new DevTestLabsArmOperation(Response.FromValue(new DevTestLabCostResource(Client, response), response.GetRawResponse())); + var uri = _devTestLabCostCostsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DevTestLabsArmOperation(Response.FromValue(new DevTestLabCostResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/DevTestLabFormulaResource.cs b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/DevTestLabFormulaResource.cs index 395663cfac2c..05f4e273f36f 100644 --- a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/DevTestLabFormulaResource.cs +++ b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/DevTestLabFormulaResource.cs @@ -204,7 +204,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _devTestLabFormulaFormulasRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new DevTestLabsArmOperation(response); + var uri = _devTestLabFormulaFormulasRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DevTestLabsArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -246,7 +248,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _devTestLabFormulaFormulasRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new DevTestLabsArmOperation(response); + var uri = _devTestLabFormulaFormulasRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DevTestLabsArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/DevTestLabGlobalScheduleCollection.cs b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/DevTestLabGlobalScheduleCollection.cs index c8d9b7ab5402..ced3aeb090eb 100644 --- a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/DevTestLabGlobalScheduleCollection.cs +++ b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/DevTestLabGlobalScheduleCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> Create try { var response = await _devTestLabGlobalScheduleGlobalSchedulesRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, name, data, cancellationToken).ConfigureAwait(false); - var operation = new DevTestLabsArmOperation(Response.FromValue(new DevTestLabGlobalScheduleResource(Client, response), response.GetRawResponse())); + var uri = _devTestLabGlobalScheduleGlobalSchedulesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DevTestLabsArmOperation(Response.FromValue(new DevTestLabGlobalScheduleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -140,7 +142,9 @@ public virtual ArmOperation CreateOrUpdate(Wai try { var response = _devTestLabGlobalScheduleGlobalSchedulesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, name, data, cancellationToken); - var operation = new DevTestLabsArmOperation(Response.FromValue(new DevTestLabGlobalScheduleResource(Client, response), response.GetRawResponse())); + var uri = _devTestLabGlobalScheduleGlobalSchedulesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DevTestLabsArmOperation(Response.FromValue(new DevTestLabGlobalScheduleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/DevTestLabGlobalScheduleResource.cs b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/DevTestLabGlobalScheduleResource.cs index 4dde5690df62..940f9e541c93 100644 --- a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/DevTestLabGlobalScheduleResource.cs +++ b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/DevTestLabGlobalScheduleResource.cs @@ -204,7 +204,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _devTestLabGlobalScheduleGlobalSchedulesRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new DevTestLabsArmOperation(response); + var uri = _devTestLabGlobalScheduleGlobalSchedulesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DevTestLabsArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -246,7 +248,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _devTestLabGlobalScheduleGlobalSchedulesRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); - var operation = new DevTestLabsArmOperation(response); + var uri = _devTestLabGlobalScheduleGlobalSchedulesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DevTestLabsArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/DevTestLabNotificationChannelCollection.cs b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/DevTestLabNotificationChannelCollection.cs index 4fa9ccb58253..2d151473b7af 100644 --- a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/DevTestLabNotificationChannelCollection.cs +++ b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/DevTestLabNotificationChannelCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> C try { var response = await _devTestLabNotificationChannelNotificationChannelsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data, cancellationToken).ConfigureAwait(false); - var operation = new DevTestLabsArmOperation(Response.FromValue(new DevTestLabNotificationChannelResource(Client, response), response.GetRawResponse())); + var uri = _devTestLabNotificationChannelNotificationChannelsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DevTestLabsArmOperation(Response.FromValue(new DevTestLabNotificationChannelResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdat try { var response = _devTestLabNotificationChannelNotificationChannelsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data, cancellationToken); - var operation = new DevTestLabsArmOperation(Response.FromValue(new DevTestLabNotificationChannelResource(Client, response), response.GetRawResponse())); + var uri = _devTestLabNotificationChannelNotificationChannelsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DevTestLabsArmOperation(Response.FromValue(new DevTestLabNotificationChannelResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/DevTestLabNotificationChannelResource.cs b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/DevTestLabNotificationChannelResource.cs index 5b9939f9d2f7..092440c76b15 100644 --- a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/DevTestLabNotificationChannelResource.cs +++ b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/DevTestLabNotificationChannelResource.cs @@ -204,7 +204,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _devTestLabNotificationChannelNotificationChannelsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new DevTestLabsArmOperation(response); + var uri = _devTestLabNotificationChannelNotificationChannelsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DevTestLabsArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -246,7 +248,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _devTestLabNotificationChannelNotificationChannelsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new DevTestLabsArmOperation(response); + var uri = _devTestLabNotificationChannelNotificationChannelsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DevTestLabsArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/DevTestLabPolicyCollection.cs b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/DevTestLabPolicyCollection.cs index 51bd26bd7a0b..caefedebd071 100644 --- a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/DevTestLabPolicyCollection.cs +++ b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/DevTestLabPolicyCollection.cs @@ -95,7 +95,9 @@ public virtual async Task> CreateOrUpdate try { var response = await _devTestLabPolicyPoliciesRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, _policySetName, name, data, cancellationToken).ConfigureAwait(false); - var operation = new DevTestLabsArmOperation(Response.FromValue(new DevTestLabPolicyResource(Client, response), response.GetRawResponse())); + var uri = _devTestLabPolicyPoliciesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, _policySetName, name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DevTestLabsArmOperation(Response.FromValue(new DevTestLabPolicyResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -144,7 +146,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil w try { var response = _devTestLabPolicyPoliciesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, _policySetName, name, data, cancellationToken); - var operation = new DevTestLabsArmOperation(Response.FromValue(new DevTestLabPolicyResource(Client, response), response.GetRawResponse())); + var uri = _devTestLabPolicyPoliciesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, _policySetName, name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DevTestLabsArmOperation(Response.FromValue(new DevTestLabPolicyResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/DevTestLabPolicyResource.cs b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/DevTestLabPolicyResource.cs index b136d7898750..31ce6e802fbd 100644 --- a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/DevTestLabPolicyResource.cs +++ b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/DevTestLabPolicyResource.cs @@ -205,7 +205,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _devTestLabPolicyPoliciesRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new DevTestLabsArmOperation(response); + var uri = _devTestLabPolicyPoliciesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DevTestLabsArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -247,7 +249,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _devTestLabPolicyPoliciesRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new DevTestLabsArmOperation(response); + var uri = _devTestLabPolicyPoliciesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DevTestLabsArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/DevTestLabScheduleCollection.cs b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/DevTestLabScheduleCollection.cs index 21034ca5adc0..fc09e9919e02 100644 --- a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/DevTestLabScheduleCollection.cs +++ b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/DevTestLabScheduleCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> CreateOrUpda try { var response = await _devTestLabScheduleSchedulesRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data, cancellationToken).ConfigureAwait(false); - var operation = new DevTestLabsArmOperation(Response.FromValue(new DevTestLabScheduleResource(Client, response), response.GetRawResponse())); + var uri = _devTestLabScheduleSchedulesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DevTestLabsArmOperation(Response.FromValue(new DevTestLabScheduleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil try { var response = _devTestLabScheduleSchedulesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data, cancellationToken); - var operation = new DevTestLabsArmOperation(Response.FromValue(new DevTestLabScheduleResource(Client, response), response.GetRawResponse())); + var uri = _devTestLabScheduleSchedulesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DevTestLabsArmOperation(Response.FromValue(new DevTestLabScheduleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/DevTestLabScheduleResource.cs b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/DevTestLabScheduleResource.cs index 1b8ece4ea063..93e7cd232f23 100644 --- a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/DevTestLabScheduleResource.cs +++ b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/DevTestLabScheduleResource.cs @@ -204,7 +204,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _devTestLabScheduleSchedulesRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new DevTestLabsArmOperation(response); + var uri = _devTestLabScheduleSchedulesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DevTestLabsArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -246,7 +248,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _devTestLabScheduleSchedulesRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new DevTestLabsArmOperation(response); + var uri = _devTestLabScheduleSchedulesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DevTestLabsArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/DevTestLabSecretResource.cs b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/DevTestLabSecretResource.cs index f5ab37c5e336..f2825022d39c 100644 --- a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/DevTestLabSecretResource.cs +++ b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/DevTestLabSecretResource.cs @@ -205,7 +205,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _devTestLabSecretSecretsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new DevTestLabsArmOperation(response); + var uri = _devTestLabSecretSecretsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DevTestLabsArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -247,7 +249,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _devTestLabSecretSecretsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new DevTestLabsArmOperation(response); + var uri = _devTestLabSecretSecretsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DevTestLabsArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/DevTestLabServiceFabricScheduleCollection.cs b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/DevTestLabServiceFabricScheduleCollection.cs index 5aab26211580..36947f397e4b 100644 --- a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/DevTestLabServiceFabricScheduleCollection.cs +++ b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/DevTestLabServiceFabricScheduleCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> try { var response = await _devTestLabServiceFabricScheduleServiceFabricSchedulesRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, name, data, cancellationToken).ConfigureAwait(false); - var operation = new DevTestLabsArmOperation(Response.FromValue(new DevTestLabServiceFabricScheduleResource(Client, response), response.GetRawResponse())); + var uri = _devTestLabServiceFabricScheduleServiceFabricSchedulesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DevTestLabsArmOperation(Response.FromValue(new DevTestLabServiceFabricScheduleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpd try { var response = _devTestLabServiceFabricScheduleServiceFabricSchedulesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, name, data, cancellationToken); - var operation = new DevTestLabsArmOperation(Response.FromValue(new DevTestLabServiceFabricScheduleResource(Client, response), response.GetRawResponse())); + var uri = _devTestLabServiceFabricScheduleServiceFabricSchedulesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DevTestLabsArmOperation(Response.FromValue(new DevTestLabServiceFabricScheduleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/DevTestLabServiceFabricScheduleResource.cs b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/DevTestLabServiceFabricScheduleResource.cs index 1f46d34b441c..4ac57c71a1cf 100644 --- a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/DevTestLabServiceFabricScheduleResource.cs +++ b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/DevTestLabServiceFabricScheduleResource.cs @@ -206,7 +206,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _devTestLabServiceFabricScheduleServiceFabricSchedulesRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new DevTestLabsArmOperation(response); + var uri = _devTestLabServiceFabricScheduleServiceFabricSchedulesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DevTestLabsArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -248,7 +250,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _devTestLabServiceFabricScheduleServiceFabricSchedulesRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new DevTestLabsArmOperation(response); + var uri = _devTestLabServiceFabricScheduleServiceFabricSchedulesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DevTestLabsArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/DevTestLabServiceRunnerCollection.cs b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/DevTestLabServiceRunnerCollection.cs index 178b786822af..8581272e86ef 100644 --- a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/DevTestLabServiceRunnerCollection.cs +++ b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/DevTestLabServiceRunnerCollection.cs @@ -87,7 +87,9 @@ public virtual async Task> CreateO try { var response = await _devTestLabServiceRunnerServiceRunnersRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data, cancellationToken).ConfigureAwait(false); - var operation = new DevTestLabsArmOperation(Response.FromValue(new DevTestLabServiceRunnerResource(Client, response), response.GetRawResponse())); + var uri = _devTestLabServiceRunnerServiceRunnersRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DevTestLabsArmOperation(Response.FromValue(new DevTestLabServiceRunnerResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -136,7 +138,9 @@ public virtual ArmOperation CreateOrUpdate(Wait try { var response = _devTestLabServiceRunnerServiceRunnersRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data, cancellationToken); - var operation = new DevTestLabsArmOperation(Response.FromValue(new DevTestLabServiceRunnerResource(Client, response), response.GetRawResponse())); + var uri = _devTestLabServiceRunnerServiceRunnersRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DevTestLabsArmOperation(Response.FromValue(new DevTestLabServiceRunnerResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/DevTestLabServiceRunnerResource.cs b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/DevTestLabServiceRunnerResource.cs index 3eef473d9406..f266786780b8 100644 --- a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/DevTestLabServiceRunnerResource.cs +++ b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/DevTestLabServiceRunnerResource.cs @@ -201,7 +201,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _devTestLabServiceRunnerServiceRunnersRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new DevTestLabsArmOperation(response); + var uri = _devTestLabServiceRunnerServiceRunnersRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DevTestLabsArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -243,7 +245,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _devTestLabServiceRunnerServiceRunnersRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new DevTestLabsArmOperation(response); + var uri = _devTestLabServiceRunnerServiceRunnersRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DevTestLabsArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -289,7 +293,9 @@ public virtual async Task> UpdateA try { var response = await _devTestLabServiceRunnerServiceRunnersRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new DevTestLabsArmOperation(Response.FromValue(new DevTestLabServiceRunnerResource(Client, response), response.GetRawResponse())); + var uri = _devTestLabServiceRunnerServiceRunnersRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DevTestLabsArmOperation(Response.FromValue(new DevTestLabServiceRunnerResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -335,7 +341,9 @@ public virtual ArmOperation Update(WaitUntil wa try { var response = _devTestLabServiceRunnerServiceRunnersRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new DevTestLabsArmOperation(Response.FromValue(new DevTestLabServiceRunnerResource(Client, response), response.GetRawResponse())); + var uri = _devTestLabServiceRunnerServiceRunnersRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DevTestLabsArmOperation(Response.FromValue(new DevTestLabServiceRunnerResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/DevTestLabVmScheduleCollection.cs b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/DevTestLabVmScheduleCollection.cs index bf712f9ab092..ab51666f5072 100644 --- a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/DevTestLabVmScheduleCollection.cs +++ b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/DevTestLabVmScheduleCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> CreateOrUp try { var response = await _devTestLabVmScheduleVmSchedulesRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, name, data, cancellationToken).ConfigureAwait(false); - var operation = new DevTestLabsArmOperation(Response.FromValue(new DevTestLabVmScheduleResource(Client, response), response.GetRawResponse())); + var uri = _devTestLabVmScheduleVmSchedulesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DevTestLabsArmOperation(Response.FromValue(new DevTestLabVmScheduleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUnt try { var response = _devTestLabVmScheduleVmSchedulesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, name, data, cancellationToken); - var operation = new DevTestLabsArmOperation(Response.FromValue(new DevTestLabVmScheduleResource(Client, response), response.GetRawResponse())); + var uri = _devTestLabVmScheduleVmSchedulesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DevTestLabsArmOperation(Response.FromValue(new DevTestLabVmScheduleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/DevTestLabVmScheduleResource.cs b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/DevTestLabVmScheduleResource.cs index 125a46fffaaa..5fb8a2983e99 100644 --- a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/DevTestLabVmScheduleResource.cs +++ b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/DevTestLabVmScheduleResource.cs @@ -205,7 +205,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _devTestLabVmScheduleVmSchedulesRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new DevTestLabsArmOperation(response); + var uri = _devTestLabVmScheduleVmSchedulesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DevTestLabsArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -247,7 +249,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _devTestLabVmScheduleVmSchedulesRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new DevTestLabsArmOperation(response); + var uri = _devTestLabVmScheduleVmSchedulesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DevTestLabsArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/LongRunningOperation/DevTestLabsArmOperation.cs b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/LongRunningOperation/DevTestLabsArmOperation.cs index 5efc7a0e20f0..6b5f8086e085 100644 --- a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/LongRunningOperation/DevTestLabsArmOperation.cs +++ b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/LongRunningOperation/DevTestLabsArmOperation.cs @@ -20,21 +20,24 @@ internal class DevTestLabsArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of DevTestLabsArmOperation for mocking. protected DevTestLabsArmOperation() { } - internal DevTestLabsArmOperation(Response response) + internal DevTestLabsArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal DevTestLabsArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "DevTestLabsArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal DevTestLabsArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeli public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/LongRunningOperation/DevTestLabsArmOperationOfT.cs b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/LongRunningOperation/DevTestLabsArmOperationOfT.cs index 37c29fb1652f..15bdbc66ca90 100644 --- a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/LongRunningOperation/DevTestLabsArmOperationOfT.cs +++ b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/LongRunningOperation/DevTestLabsArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class DevTestLabsArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of DevTestLabsArmOperation for mocking. protected DevTestLabsArmOperation() { } - internal DevTestLabsArmOperation(Response response) + internal DevTestLabsArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal DevTestLabsArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "DevTestLabsArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal DevTestLabsArmOperation(IOperationSource source, ClientDiagnostics c public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/DevTestLabArmTemplateResource.Serialization.cs b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/DevTestLabArmTemplateResource.Serialization.cs new file mode 100644 index 000000000000..10edfcffe876 --- /dev/null +++ b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/DevTestLabArmTemplateResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DevTestLabs +{ + public partial class DevTestLabArmTemplateResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DevTestLabArmTemplateData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DevTestLabArmTemplateData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/DevTestLabArtifactResource.Serialization.cs b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/DevTestLabArtifactResource.Serialization.cs new file mode 100644 index 000000000000..a2cad0e70880 --- /dev/null +++ b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/DevTestLabArtifactResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DevTestLabs +{ + public partial class DevTestLabArtifactResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DevTestLabArtifactData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DevTestLabArtifactData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/DevTestLabArtifactSourceResource.Serialization.cs b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/DevTestLabArtifactSourceResource.Serialization.cs new file mode 100644 index 000000000000..cd4432bf2df7 --- /dev/null +++ b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/DevTestLabArtifactSourceResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DevTestLabs +{ + public partial class DevTestLabArtifactSourceResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DevTestLabArtifactSourceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DevTestLabArtifactSourceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/DevTestLabCostResource.Serialization.cs b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/DevTestLabCostResource.Serialization.cs new file mode 100644 index 000000000000..3b071b2d6fa5 --- /dev/null +++ b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/DevTestLabCostResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DevTestLabs +{ + public partial class DevTestLabCostResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DevTestLabCostData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DevTestLabCostData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/DevTestLabCustomImageResource.Serialization.cs b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/DevTestLabCustomImageResource.Serialization.cs new file mode 100644 index 000000000000..6782c52b6d82 --- /dev/null +++ b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/DevTestLabCustomImageResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DevTestLabs +{ + public partial class DevTestLabCustomImageResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DevTestLabCustomImageData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DevTestLabCustomImageData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/DevTestLabDiskResource.Serialization.cs b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/DevTestLabDiskResource.Serialization.cs new file mode 100644 index 000000000000..2565991c888b --- /dev/null +++ b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/DevTestLabDiskResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DevTestLabs +{ + public partial class DevTestLabDiskResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DevTestLabDiskData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DevTestLabDiskData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/DevTestLabEnvironmentResource.Serialization.cs b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/DevTestLabEnvironmentResource.Serialization.cs new file mode 100644 index 000000000000..3af7a49360db --- /dev/null +++ b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/DevTestLabEnvironmentResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DevTestLabs +{ + public partial class DevTestLabEnvironmentResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DevTestLabEnvironmentData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DevTestLabEnvironmentData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/DevTestLabFormulaResource.Serialization.cs b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/DevTestLabFormulaResource.Serialization.cs new file mode 100644 index 000000000000..ee99ff385920 --- /dev/null +++ b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/DevTestLabFormulaResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DevTestLabs +{ + public partial class DevTestLabFormulaResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DevTestLabFormulaData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DevTestLabFormulaData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/DevTestLabGlobalScheduleResource.Serialization.cs b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/DevTestLabGlobalScheduleResource.Serialization.cs new file mode 100644 index 000000000000..c1e3d77f5891 --- /dev/null +++ b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/DevTestLabGlobalScheduleResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DevTestLabs +{ + public partial class DevTestLabGlobalScheduleResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DevTestLabScheduleData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DevTestLabScheduleData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/DevTestLabNotificationChannelResource.Serialization.cs b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/DevTestLabNotificationChannelResource.Serialization.cs new file mode 100644 index 000000000000..20f47c787da1 --- /dev/null +++ b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/DevTestLabNotificationChannelResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DevTestLabs +{ + public partial class DevTestLabNotificationChannelResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DevTestLabNotificationChannelData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DevTestLabNotificationChannelData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/DevTestLabPolicyResource.Serialization.cs b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/DevTestLabPolicyResource.Serialization.cs new file mode 100644 index 000000000000..d4a9f512795b --- /dev/null +++ b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/DevTestLabPolicyResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DevTestLabs +{ + public partial class DevTestLabPolicyResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DevTestLabPolicyData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DevTestLabPolicyData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/DevTestLabResource.Serialization.cs b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/DevTestLabResource.Serialization.cs new file mode 100644 index 000000000000..984aa75b3f5c --- /dev/null +++ b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/DevTestLabResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DevTestLabs +{ + public partial class DevTestLabResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DevTestLabData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DevTestLabData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/DevTestLabScheduleResource.Serialization.cs b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/DevTestLabScheduleResource.Serialization.cs new file mode 100644 index 000000000000..5d989f016338 --- /dev/null +++ b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/DevTestLabScheduleResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DevTestLabs +{ + public partial class DevTestLabScheduleResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DevTestLabScheduleData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DevTestLabScheduleData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/DevTestLabSecretResource.Serialization.cs b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/DevTestLabSecretResource.Serialization.cs new file mode 100644 index 000000000000..5462d362cf0b --- /dev/null +++ b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/DevTestLabSecretResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DevTestLabs +{ + public partial class DevTestLabSecretResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DevTestLabSecretData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DevTestLabSecretData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/DevTestLabServiceFabricResource.Serialization.cs b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/DevTestLabServiceFabricResource.Serialization.cs new file mode 100644 index 000000000000..e3173e0b5ede --- /dev/null +++ b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/DevTestLabServiceFabricResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DevTestLabs +{ + public partial class DevTestLabServiceFabricResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DevTestLabServiceFabricData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DevTestLabServiceFabricData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/DevTestLabServiceFabricScheduleResource.Serialization.cs b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/DevTestLabServiceFabricScheduleResource.Serialization.cs new file mode 100644 index 000000000000..d8b630f97597 --- /dev/null +++ b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/DevTestLabServiceFabricScheduleResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DevTestLabs +{ + public partial class DevTestLabServiceFabricScheduleResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DevTestLabScheduleData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DevTestLabScheduleData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/DevTestLabServiceRunnerResource.Serialization.cs b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/DevTestLabServiceRunnerResource.Serialization.cs new file mode 100644 index 000000000000..6f7d0d8e62d4 --- /dev/null +++ b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/DevTestLabServiceRunnerResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DevTestLabs +{ + public partial class DevTestLabServiceRunnerResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DevTestLabServiceRunnerData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DevTestLabServiceRunnerData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/DevTestLabUserResource.Serialization.cs b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/DevTestLabUserResource.Serialization.cs new file mode 100644 index 000000000000..fcb7085091bc --- /dev/null +++ b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/DevTestLabUserResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DevTestLabs +{ + public partial class DevTestLabUserResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DevTestLabUserData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DevTestLabUserData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/DevTestLabVirtualNetworkResource.Serialization.cs b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/DevTestLabVirtualNetworkResource.Serialization.cs new file mode 100644 index 000000000000..0c2e701a12a3 --- /dev/null +++ b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/DevTestLabVirtualNetworkResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DevTestLabs +{ + public partial class DevTestLabVirtualNetworkResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DevTestLabVirtualNetworkData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DevTestLabVirtualNetworkData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/DevTestLabVmResource.Serialization.cs b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/DevTestLabVmResource.Serialization.cs new file mode 100644 index 000000000000..8e7fd5576bb8 --- /dev/null +++ b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/DevTestLabVmResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DevTestLabs +{ + public partial class DevTestLabVmResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DevTestLabVmData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DevTestLabVmData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/DevTestLabVmScheduleResource.Serialization.cs b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/DevTestLabVmScheduleResource.Serialization.cs new file mode 100644 index 000000000000..ed50e70f468d --- /dev/null +++ b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/DevTestLabVmScheduleResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DevTestLabs +{ + public partial class DevTestLabVmScheduleResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DevTestLabScheduleData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DevTestLabScheduleData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/RestOperations/ArmTemplatesRestOperations.cs b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/RestOperations/ArmTemplatesRestOperations.cs index 5688075612c8..7194cc4721c4 100644 --- a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/RestOperations/ArmTemplatesRestOperations.cs +++ b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/RestOperations/ArmTemplatesRestOperations.cs @@ -37,6 +37,39 @@ public ArmTemplatesRestOperations(HttpPipeline pipeline, string applicationId, U _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string labName, string artifactSourceName, string expand, string filter, int? top, string orderby) + { + 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.DevTestLab/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/artifactsources/", false); + uri.AppendPath(artifactSourceName, true); + uri.AppendPath("/armtemplates", false); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (orderby != null) + { + uri.AppendQuery("$orderby", orderby, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string labName, string artifactSourceName, string expand, string filter, int? top, string orderby) { var message = _pipeline.CreateMessage(); @@ -146,6 +179,28 @@ public Response List(string subscriptionId, string resourceGrou } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string labName, string artifactSourceName, string name, string expand) + { + 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.DevTestLab/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/artifactsources/", false); + uri.AppendPath(artifactSourceName, true); + uri.AppendPath("/armtemplates/", false); + uri.AppendPath(name, true); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string labName, string artifactSourceName, string name, string expand) { var message = _pipeline.CreateMessage(); @@ -246,6 +301,14 @@ public Response Get(string subscriptionId, string res } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string labName, string artifactSourceName, string expand, string filter, int? top, string orderby) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string labName, string artifactSourceName, string expand, string filter, int? top, string orderby) { var message = _pipeline.CreateMessage(); diff --git a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/RestOperations/ArtifactSourcesRestOperations.cs b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/RestOperations/ArtifactSourcesRestOperations.cs index a6f1b2e5ccc4..10cdda6c5f84 100644 --- a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/RestOperations/ArtifactSourcesRestOperations.cs +++ b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/RestOperations/ArtifactSourcesRestOperations.cs @@ -37,6 +37,37 @@ public ArtifactSourcesRestOperations(HttpPipeline pipeline, string applicationId _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string labName, string expand, string filter, int? top, string orderby) + { + 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.DevTestLab/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/artifactsources", false); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (orderby != null) + { + uri.AppendQuery("$orderby", orderby, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string labName, string expand, string filter, int? top, string orderby) { var message = _pipeline.CreateMessage(); @@ -140,6 +171,26 @@ public Response List(string subscriptionId, string resourceG } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string labName, string name, string expand) + { + 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.DevTestLab/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/artifactsources/", false); + uri.AppendPath(name, true); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string labName, string name, string expand) { var message = _pipeline.CreateMessage(); @@ -234,6 +285,22 @@ public Response Get(string subscriptionId, string } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string labName, string name, DevTestLabArtifactSourceData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DevTestLab/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/artifactsources/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string labName, string name, DevTestLabArtifactSourceData data) { var message = _pipeline.CreateMessage(); @@ -328,6 +395,22 @@ public Response CreateOrUpdate(string subscription } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string labName, string name) + { + 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.DevTestLab/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/artifactsources/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string labName, string name) { var message = _pipeline.CreateMessage(); @@ -404,6 +487,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string l } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string labName, string name, DevTestLabArtifactSourcePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DevTestLab/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/artifactsources/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string labName, string name, DevTestLabArtifactSourcePatch patch) { var message = _pipeline.CreateMessage(); @@ -496,6 +595,14 @@ public Response Update(string subscriptionId, stri } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string labName, string expand, string filter, int? top, string orderby) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string labName, string expand, string filter, int? top, string orderby) { var message = _pipeline.CreateMessage(); diff --git a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/RestOperations/ArtifactsRestOperations.cs b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/RestOperations/ArtifactsRestOperations.cs index bd76524d0d4b..4fd7a6375f3b 100644 --- a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/RestOperations/ArtifactsRestOperations.cs +++ b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/RestOperations/ArtifactsRestOperations.cs @@ -37,6 +37,39 @@ public ArtifactsRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string labName, string artifactSourceName, string expand, string filter, int? top, string orderby) + { + 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.DevTestLab/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/artifactsources/", false); + uri.AppendPath(artifactSourceName, true); + uri.AppendPath("/artifacts", false); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (orderby != null) + { + uri.AppendQuery("$orderby", orderby, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string labName, string artifactSourceName, string expand, string filter, int? top, string orderby) { var message = _pipeline.CreateMessage(); @@ -146,6 +179,28 @@ public Response List(string subscriptionId, string resourceGroupNa } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string labName, string artifactSourceName, string name, string expand) + { + 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.DevTestLab/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/artifactsources/", false); + uri.AppendPath(artifactSourceName, true); + uri.AppendPath("/artifacts/", false); + uri.AppendPath(name, true); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string labName, string artifactSourceName, string name, string expand) { var message = _pipeline.CreateMessage(); @@ -246,6 +301,25 @@ public Response Get(string subscriptionId, string resour } } + internal RequestUriBuilder CreateGenerateArmTemplateRequestUri(string subscriptionId, string resourceGroupName, string labName, string artifactSourceName, string name, DevTestLabArtifactGenerateArmTemplateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DevTestLab/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/artifactsources/", false); + uri.AppendPath(artifactSourceName, true); + uri.AppendPath("/artifacts/", false); + uri.AppendPath(name, true); + uri.AppendPath("/generateArmTemplate", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGenerateArmTemplateRequest(string subscriptionId, string resourceGroupName, string labName, string artifactSourceName, string name, DevTestLabArtifactGenerateArmTemplateContent content) { var message = _pipeline.CreateMessage(); @@ -345,6 +419,14 @@ public Response GenerateArmTemplate(string subscripti } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string labName, string artifactSourceName, string expand, string filter, int? top, string orderby) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string labName, string artifactSourceName, string expand, string filter, int? top, string orderby) { var message = _pipeline.CreateMessage(); diff --git a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/RestOperations/CostsRestOperations.cs b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/RestOperations/CostsRestOperations.cs index 02dc8990c330..f6001393a6b3 100644 --- a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/RestOperations/CostsRestOperations.cs +++ b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/RestOperations/CostsRestOperations.cs @@ -36,6 +36,26 @@ public CostsRestOperations(HttpPipeline pipeline, string applicationId, Uri endp _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string labName, string name, string expand) + { + 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.DevTestLab/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/costs/", false); + uri.AppendPath(name, true); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string labName, string name, string expand) { var message = _pipeline.CreateMessage(); @@ -130,6 +150,22 @@ public Response Get(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string labName, string name, DevTestLabCostData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DevTestLab/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/costs/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string labName, string name, DevTestLabCostData data) { var message = _pipeline.CreateMessage(); diff --git a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/RestOperations/CustomImagesRestOperations.cs b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/RestOperations/CustomImagesRestOperations.cs index f819532c0848..d33d87c06df5 100644 --- a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/RestOperations/CustomImagesRestOperations.cs +++ b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/RestOperations/CustomImagesRestOperations.cs @@ -37,6 +37,37 @@ public CustomImagesRestOperations(HttpPipeline pipeline, string applicationId, U _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string labName, string expand, string filter, int? top, string orderby) + { + 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.DevTestLab/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/customimages", false); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (orderby != null) + { + uri.AppendQuery("$orderby", orderby, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string labName, string expand, string filter, int? top, string orderby) { var message = _pipeline.CreateMessage(); @@ -140,6 +171,26 @@ public Response List(string subscriptionId, string resourceGrou } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string labName, string name, string expand) + { + 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.DevTestLab/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/customimages/", false); + uri.AppendPath(name, true); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string labName, string name, string expand) { var message = _pipeline.CreateMessage(); @@ -234,6 +285,22 @@ public Response Get(string subscriptionId, string res } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string labName, string name, DevTestLabCustomImageData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DevTestLab/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/customimages/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string labName, string name, DevTestLabCustomImageData data) { var message = _pipeline.CreateMessage(); @@ -318,6 +385,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string labName, string name) + { + 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.DevTestLab/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/customimages/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string labName, string name) { var message = _pipeline.CreateMessage(); @@ -396,6 +479,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string l } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string labName, string name, DevTestLabCustomImagePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DevTestLab/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/customimages/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string labName, string name, DevTestLabCustomImagePatch patch) { var message = _pipeline.CreateMessage(); @@ -488,6 +587,14 @@ public Response Update(string subscriptionId, string } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string labName, string expand, string filter, int? top, string orderby) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string labName, string expand, string filter, int? top, string orderby) { var message = _pipeline.CreateMessage(); diff --git a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/RestOperations/DisksRestOperations.cs b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/RestOperations/DisksRestOperations.cs index 9704f141ea46..e9971ab07d60 100644 --- a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/RestOperations/DisksRestOperations.cs +++ b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/RestOperations/DisksRestOperations.cs @@ -37,6 +37,39 @@ public DisksRestOperations(HttpPipeline pipeline, string applicationId, Uri endp _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string labName, string userName, string expand, string filter, int? top, string orderby) + { + 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.DevTestLab/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/users/", false); + uri.AppendPath(userName, true); + uri.AppendPath("/disks", false); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (orderby != null) + { + uri.AppendQuery("$orderby", orderby, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string labName, string userName, string expand, string filter, int? top, string orderby) { var message = _pipeline.CreateMessage(); @@ -146,6 +179,28 @@ public Response List(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string labName, string userName, string name, string expand) + { + 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.DevTestLab/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/users/", false); + uri.AppendPath(userName, true); + uri.AppendPath("/disks/", false); + uri.AppendPath(name, true); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string labName, string userName, string name, string expand) { var message = _pipeline.CreateMessage(); @@ -246,6 +301,24 @@ public Response Get(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string labName, string userName, string name, DevTestLabDiskData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DevTestLab/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/users/", false); + uri.AppendPath(userName, true); + uri.AppendPath("/disks/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string labName, string userName, string name, DevTestLabDiskData data) { var message = _pipeline.CreateMessage(); @@ -336,6 +409,24 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string labName, string userName, string name) + { + 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.DevTestLab/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/users/", false); + uri.AppendPath(userName, true); + uri.AppendPath("/disks/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string labName, string userName, string name) { var message = _pipeline.CreateMessage(); @@ -420,6 +511,24 @@ public Response Delete(string subscriptionId, string resourceGroupName, string l } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string labName, string userName, string name, DevTestLabDiskPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DevTestLab/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/users/", false); + uri.AppendPath(userName, true); + uri.AppendPath("/disks/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string labName, string userName, string name, DevTestLabDiskPatch patch) { var message = _pipeline.CreateMessage(); @@ -518,6 +627,25 @@ public Response Update(string subscriptionId, string resourc } } + internal RequestUriBuilder CreateAttachRequestUri(string subscriptionId, string resourceGroupName, string labName, string userName, string name, DevTestLabDiskAttachContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DevTestLab/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/users/", false); + uri.AppendPath(userName, true); + uri.AppendPath("/disks/", false); + uri.AppendPath(name, true); + uri.AppendPath("/attach", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateAttachRequest(string subscriptionId, string resourceGroupName, string labName, string userName, string name, DevTestLabDiskAttachContent content) { var message = _pipeline.CreateMessage(); @@ -609,6 +737,25 @@ public Response Attach(string subscriptionId, string resourceGroupName, string l } } + internal RequestUriBuilder CreateDetachRequestUri(string subscriptionId, string resourceGroupName, string labName, string userName, string name, DevTestLabDiskDetachContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DevTestLab/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/users/", false); + uri.AppendPath(userName, true); + uri.AppendPath("/disks/", false); + uri.AppendPath(name, true); + uri.AppendPath("/detach", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDetachRequest(string subscriptionId, string resourceGroupName, string labName, string userName, string name, DevTestLabDiskDetachContent content) { var message = _pipeline.CreateMessage(); @@ -700,6 +847,14 @@ public Response Detach(string subscriptionId, string resourceGroupName, string l } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string labName, string userName, string expand, string filter, int? top, string orderby) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string labName, string userName, string expand, string filter, int? top, string orderby) { var message = _pipeline.CreateMessage(); diff --git a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/RestOperations/EnvironmentsRestOperations.cs b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/RestOperations/EnvironmentsRestOperations.cs index b6e0df9b60de..b1bf3c02d40f 100644 --- a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/RestOperations/EnvironmentsRestOperations.cs +++ b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/RestOperations/EnvironmentsRestOperations.cs @@ -37,6 +37,39 @@ public EnvironmentsRestOperations(HttpPipeline pipeline, string applicationId, U _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string labName, string userName, string expand, string filter, int? top, string orderby) + { + 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.DevTestLab/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/users/", false); + uri.AppendPath(userName, true); + uri.AppendPath("/environments", false); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (orderby != null) + { + uri.AppendQuery("$orderby", orderby, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string labName, string userName, string expand, string filter, int? top, string orderby) { var message = _pipeline.CreateMessage(); @@ -146,6 +179,28 @@ public Response List(string subscriptionId, string resourceG } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string labName, string userName, string name, string expand) + { + 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.DevTestLab/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/users/", false); + uri.AppendPath(userName, true); + uri.AppendPath("/environments/", false); + uri.AppendPath(name, true); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string labName, string userName, string name, string expand) { var message = _pipeline.CreateMessage(); @@ -246,6 +301,24 @@ public Response Get(string subscriptionId, string res } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string labName, string userName, string name, DevTestLabEnvironmentData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DevTestLab/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/users/", false); + uri.AppendPath(userName, true); + uri.AppendPath("/environments/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string labName, string userName, string name, DevTestLabEnvironmentData data) { var message = _pipeline.CreateMessage(); @@ -336,6 +409,24 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string labName, string userName, string name) + { + 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.DevTestLab/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/users/", false); + uri.AppendPath(userName, true); + uri.AppendPath("/environments/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string labName, string userName, string name) { var message = _pipeline.CreateMessage(); @@ -420,6 +511,24 @@ public Response Delete(string subscriptionId, string resourceGroupName, string l } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string labName, string userName, string name, DevTestLabEnvironmentPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DevTestLab/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/users/", false); + uri.AppendPath(userName, true); + uri.AppendPath("/environments/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string labName, string userName, string name, DevTestLabEnvironmentPatch patch) { var message = _pipeline.CreateMessage(); @@ -518,6 +627,14 @@ public Response Update(string subscriptionId, string } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string labName, string userName, string expand, string filter, int? top, string orderby) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string labName, string userName, string expand, string filter, int? top, string orderby) { var message = _pipeline.CreateMessage(); diff --git a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/RestOperations/FormulasRestOperations.cs b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/RestOperations/FormulasRestOperations.cs index 1c9ec618051b..d14749629c48 100644 --- a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/RestOperations/FormulasRestOperations.cs +++ b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/RestOperations/FormulasRestOperations.cs @@ -37,6 +37,37 @@ public FormulasRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string labName, string expand, string filter, int? top, string orderby) + { + 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.DevTestLab/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/formulas", false); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (orderby != null) + { + uri.AppendQuery("$orderby", orderby, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string labName, string expand, string filter, int? top, string orderby) { var message = _pipeline.CreateMessage(); @@ -140,6 +171,26 @@ public Response List(string subscriptionId, string resourceGroupNam } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string labName, string name, string expand) + { + 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.DevTestLab/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/formulas/", false); + uri.AppendPath(name, true); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string labName, string name, string expand) { var message = _pipeline.CreateMessage(); @@ -234,6 +285,22 @@ public Response Get(string subscriptionId, string resourc } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string labName, string name, DevTestLabFormulaData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DevTestLab/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/formulas/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string labName, string name, DevTestLabFormulaData data) { var message = _pipeline.CreateMessage(); @@ -318,6 +385,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string labName, string name) + { + 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.DevTestLab/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/formulas/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string labName, string name) { var message = _pipeline.CreateMessage(); @@ -394,6 +477,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string l } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string labName, string name, DevTestLabFormulaPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DevTestLab/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/formulas/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string labName, string name, DevTestLabFormulaPatch patch) { var message = _pipeline.CreateMessage(); @@ -486,6 +585,14 @@ public Response Update(string subscriptionId, string reso } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string labName, string expand, string filter, int? top, string orderby) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string labName, string expand, string filter, int? top, string orderby) { var message = _pipeline.CreateMessage(); diff --git a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/RestOperations/GalleryImagesRestOperations.cs b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/RestOperations/GalleryImagesRestOperations.cs index d93acef28638..c8a3357192e6 100644 --- a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/RestOperations/GalleryImagesRestOperations.cs +++ b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/RestOperations/GalleryImagesRestOperations.cs @@ -37,6 +37,37 @@ public GalleryImagesRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string labName, string expand, string filter, int? top, string orderby) + { + 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.DevTestLab/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/galleryimages", false); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (orderby != null) + { + uri.AppendQuery("$orderby", orderby, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string labName, string expand, string filter, int? top, string orderby) { var message = _pipeline.CreateMessage(); @@ -140,6 +171,14 @@ public Response List(string subscriptionId, string resourceGro } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string labName, string expand, string filter, int? top, string orderby) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string labName, string expand, string filter, int? top, string orderby) { var message = _pipeline.CreateMessage(); diff --git a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/RestOperations/GlobalSchedulesRestOperations.cs b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/RestOperations/GlobalSchedulesRestOperations.cs index d7aa979711a3..19628026ef5e 100644 --- a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/RestOperations/GlobalSchedulesRestOperations.cs +++ b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/RestOperations/GlobalSchedulesRestOperations.cs @@ -37,6 +37,33 @@ public GlobalSchedulesRestOperations(HttpPipeline pipeline, string applicationId _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId, string expand, string filter, int? top, string orderby) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.DevTestLab/schedules", false); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (orderby != null) + { + uri.AppendQuery("$orderby", orderby, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId, string expand, string filter, int? top, string orderby) { var message = _pipeline.CreateMessage(); @@ -128,6 +155,35 @@ public Response ListBySubscription(string subscriptionId, string e } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName, string expand, string filter, int? top, string orderby) + { + 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.DevTestLab/schedules", false); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (orderby != null) + { + uri.AppendQuery("$orderby", orderby, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName, string expand, string filter, int? top, string orderby) { var message = _pipeline.CreateMessage(); @@ -225,6 +281,24 @@ public Response ListByResourceGroup(string subscriptionId, string } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string name, string expand) + { + 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.DevTestLab/schedules/", false); + uri.AppendPath(name, true); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string name, string expand) { var message = _pipeline.CreateMessage(); @@ -313,6 +387,20 @@ public Response Get(string subscriptionId, string resour } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string name, DevTestLabScheduleData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DevTestLab/schedules/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string name, DevTestLabScheduleData data) { var message = _pipeline.CreateMessage(); @@ -401,6 +489,20 @@ public Response CreateOrUpdate(string subscriptionId, st } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.DevTestLab/schedules/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -471,6 +573,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string n } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string name, DevTestLabSchedulePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DevTestLab/schedules/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string name, DevTestLabSchedulePatch patch) { var message = _pipeline.CreateMessage(); @@ -557,6 +673,21 @@ public Response Update(string subscriptionId, string res } } + internal RequestUriBuilder CreateExecuteRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.DevTestLab/schedules/", false); + uri.AppendPath(name, true); + uri.AppendPath("/execute", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateExecuteRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -628,6 +759,21 @@ public Response Execute(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreateRetargetRequestUri(string subscriptionId, string resourceGroupName, string name, DevTestLabGlobalScheduleRetargetContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DevTestLab/schedules/", false); + uri.AppendPath(name, true); + uri.AppendPath("/retarget", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRetargetRequest(string subscriptionId, string resourceGroupName, string name, DevTestLabGlobalScheduleRetargetContent content) { var message = _pipeline.CreateMessage(); @@ -707,6 +853,14 @@ public Response Retarget(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId, string expand, string filter, int? top, string orderby) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId, string expand, string filter, int? top, string orderby) { var message = _pipeline.CreateMessage(); @@ -783,6 +937,14 @@ public Response ListBySubscriptionNextPage(string nextLink, string } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string expand, string filter, int? top, string orderby) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string expand, string filter, int? top, string orderby) { var message = _pipeline.CreateMessage(); diff --git a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/RestOperations/LabsRestOperations.cs b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/RestOperations/LabsRestOperations.cs index 005cfdfb80a5..e0234cce551f 100644 --- a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/RestOperations/LabsRestOperations.cs +++ b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/RestOperations/LabsRestOperations.cs @@ -37,6 +37,33 @@ public LabsRestOperations(HttpPipeline pipeline, string applicationId, Uri endpo _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId, string expand, string filter, int? top, string orderby) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.DevTestLab/labs", false); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (orderby != null) + { + uri.AppendQuery("$orderby", orderby, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId, string expand, string filter, int? top, string orderby) { var message = _pipeline.CreateMessage(); @@ -128,6 +155,35 @@ public Response ListBySubscription(string subscriptionId, string expand } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName, string expand, string filter, int? top, string orderby) + { + 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.DevTestLab/labs", false); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (orderby != null) + { + uri.AppendQuery("$orderby", orderby, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName, string expand, string filter, int? top, string orderby) { var message = _pipeline.CreateMessage(); @@ -225,6 +281,24 @@ public Response ListByResourceGroup(string subscriptionId, string resou } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string name, string expand) + { + 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.DevTestLab/labs/", false); + uri.AppendPath(name, true); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string name, string expand) { var message = _pipeline.CreateMessage(); @@ -313,6 +387,20 @@ public Response Get(string subscriptionId, string resourceGroupN } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string name, DevTestLabData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DevTestLab/labs/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string name, DevTestLabData data) { var message = _pipeline.CreateMessage(); @@ -391,6 +479,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.DevTestLab/labs/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -463,6 +565,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string n } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string name, DevTestLabPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DevTestLab/labs/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string name, DevTestLabPatch patch) { var message = _pipeline.CreateMessage(); @@ -549,6 +665,21 @@ public Response Update(string subscriptionId, string resourceGro } } + internal RequestUriBuilder CreateClaimAnyVmRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.DevTestLab/labs/", false); + uri.AppendPath(name, true); + uri.AppendPath("/claimAnyVm", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateClaimAnyVmRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -620,6 +751,21 @@ public Response ClaimAnyVm(string subscriptionId, string resourceGroupName, stri } } + internal RequestUriBuilder CreateCreateEnvironmentRequestUri(string subscriptionId, string resourceGroupName, string name, DevTestLabVmCreationContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DevTestLab/labs/", false); + uri.AppendPath(name, true); + uri.AppendPath("/createEnvironment", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateEnvironmentRequest(string subscriptionId, string resourceGroupName, string name, DevTestLabVmCreationContent content) { var message = _pipeline.CreateMessage(); @@ -699,6 +845,21 @@ public Response CreateEnvironment(string subscriptionId, string resourceGroupNam } } + internal RequestUriBuilder CreateExportResourceUsageRequestUri(string subscriptionId, string resourceGroupName, string name, DevTestLabExportResourceUsageContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DevTestLab/labs/", false); + uri.AppendPath(name, true); + uri.AppendPath("/exportResourceUsage", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateExportResourceUsageRequest(string subscriptionId, string resourceGroupName, string name, DevTestLabExportResourceUsageContent content) { var message = _pipeline.CreateMessage(); @@ -778,6 +939,21 @@ public Response ExportResourceUsage(string subscriptionId, string resourceGroupN } } + internal RequestUriBuilder CreateGenerateUploadUriRequestUri(string subscriptionId, string resourceGroupName, string name, DevTestLabGenerateUploadUriContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DevTestLab/labs/", false); + uri.AppendPath(name, true); + uri.AppendPath("/generateUploadUri", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGenerateUploadUriRequest(string subscriptionId, string resourceGroupName, string name, DevTestLabGenerateUploadUriContent content) { var message = _pipeline.CreateMessage(); @@ -865,6 +1041,21 @@ public Response GenerateUploadUri(string subs } } + internal RequestUriBuilder CreateImportVmRequestUri(string subscriptionId, string resourceGroupName, string name, DevTestLabImportVmContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DevTestLab/labs/", false); + uri.AppendPath(name, true); + uri.AppendPath("/importVirtualMachine", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateImportVmRequest(string subscriptionId, string resourceGroupName, string name, DevTestLabImportVmContent content) { var message = _pipeline.CreateMessage(); @@ -944,6 +1135,21 @@ public Response ImportVm(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreateListVhdsRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.DevTestLab/labs/", false); + uri.AppendPath(name, true); + uri.AppendPath("/listVhds", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListVhdsRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -1023,6 +1229,14 @@ public Response ListVhds(string subscriptionId, string resourceGroup } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId, string expand, string filter, int? top, string orderby) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId, string expand, string filter, int? top, string orderby) { var message = _pipeline.CreateMessage(); @@ -1099,6 +1313,14 @@ public Response ListBySubscriptionNextPage(string nextLink, string subs } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string expand, string filter, int? top, string orderby) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string expand, string filter, int? top, string orderby) { var message = _pipeline.CreateMessage(); @@ -1179,6 +1401,14 @@ public Response ListByResourceGroupNextPage(string nextLink, string sub } } + internal RequestUriBuilder CreateListVhdsNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string name) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListVhdsNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); diff --git a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/RestOperations/NotificationChannelsRestOperations.cs b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/RestOperations/NotificationChannelsRestOperations.cs index 9c9ed96ceb2b..95807b4ca81a 100644 --- a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/RestOperations/NotificationChannelsRestOperations.cs +++ b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/RestOperations/NotificationChannelsRestOperations.cs @@ -37,6 +37,37 @@ public NotificationChannelsRestOperations(HttpPipeline pipeline, string applicat _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string labName, string expand, string filter, int? top, string orderby) + { + 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.DevTestLab/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/notificationchannels", false); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (orderby != null) + { + uri.AppendQuery("$orderby", orderby, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string labName, string expand, string filter, int? top, string orderby) { var message = _pipeline.CreateMessage(); @@ -140,6 +171,26 @@ public Response List(string subscriptionId, string reso } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string labName, string name, string expand) + { + 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.DevTestLab/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/notificationchannels/", false); + uri.AppendPath(name, true); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string labName, string name, string expand) { var message = _pipeline.CreateMessage(); @@ -234,6 +285,22 @@ public Response Get(string subscriptionId, st } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string labName, string name, DevTestLabNotificationChannelData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DevTestLab/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/notificationchannels/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string labName, string name, DevTestLabNotificationChannelData data) { var message = _pipeline.CreateMessage(); @@ -328,6 +395,22 @@ public Response CreateOrUpdate(string subscri } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string labName, string name) + { + 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.DevTestLab/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/notificationchannels/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string labName, string name) { var message = _pipeline.CreateMessage(); @@ -404,6 +487,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string l } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string labName, string name, DevTestLabNotificationChannelPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DevTestLab/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/notificationchannels/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string labName, string name, DevTestLabNotificationChannelPatch patch) { var message = _pipeline.CreateMessage(); @@ -496,6 +595,23 @@ public Response Update(string subscriptionId, } } + internal RequestUriBuilder CreateNotifyRequestUri(string subscriptionId, string resourceGroupName, string labName, string name, DevTestLabNotificationChannelNotifyContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DevTestLab/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/notificationchannels/", false); + uri.AppendPath(name, true); + uri.AppendPath("/notify", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateNotifyRequest(string subscriptionId, string resourceGroupName, string labName, string name, DevTestLabNotificationChannelNotifyContent content) { var message = _pipeline.CreateMessage(); @@ -579,6 +695,14 @@ public Response Notify(string subscriptionId, string resourceGroupName, string l } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string labName, string expand, string filter, int? top, string orderby) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string labName, string expand, string filter, int? top, string orderby) { var message = _pipeline.CreateMessage(); diff --git a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/RestOperations/PoliciesRestOperations.cs b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/RestOperations/PoliciesRestOperations.cs index 5a281c36f0f1..7d9a74a679ee 100644 --- a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/RestOperations/PoliciesRestOperations.cs +++ b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/RestOperations/PoliciesRestOperations.cs @@ -37,6 +37,39 @@ public PoliciesRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string labName, string policySetName, string expand, string filter, int? top, string orderby) + { + 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.DevTestLab/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/policysets/", false); + uri.AppendPath(policySetName, true); + uri.AppendPath("/policies", false); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (orderby != null) + { + uri.AppendQuery("$orderby", orderby, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string labName, string policySetName, string expand, string filter, int? top, string orderby) { var message = _pipeline.CreateMessage(); @@ -146,6 +179,28 @@ public Response List(string subscriptionId, string resourceGroupName } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string labName, string policySetName, string name, string expand) + { + 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.DevTestLab/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/policysets/", false); + uri.AppendPath(policySetName, true); + uri.AppendPath("/policies/", false); + uri.AppendPath(name, true); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string labName, string policySetName, string name, string expand) { var message = _pipeline.CreateMessage(); @@ -246,6 +301,24 @@ public Response Get(string subscriptionId, string resource } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string labName, string policySetName, string name, DevTestLabPolicyData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DevTestLab/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/policysets/", false); + uri.AppendPath(policySetName, true); + uri.AppendPath("/policies/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string labName, string policySetName, string name, DevTestLabPolicyData data) { var message = _pipeline.CreateMessage(); @@ -346,6 +419,24 @@ public Response CreateOrUpdate(string subscriptionId, stri } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string labName, string policySetName, string name) + { + 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.DevTestLab/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/policysets/", false); + uri.AppendPath(policySetName, true); + uri.AppendPath("/policies/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string labName, string policySetName, string name) { var message = _pipeline.CreateMessage(); @@ -428,6 +519,24 @@ public Response Delete(string subscriptionId, string resourceGroupName, string l } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string labName, string policySetName, string name, DevTestLabPolicyPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DevTestLab/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/policysets/", false); + uri.AppendPath(policySetName, true); + uri.AppendPath("/policies/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string labName, string policySetName, string name, DevTestLabPolicyPatch patch) { var message = _pipeline.CreateMessage(); @@ -526,6 +635,14 @@ public Response Update(string subscriptionId, string resou } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string labName, string policySetName, string expand, string filter, int? top, string orderby) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string labName, string policySetName, string expand, string filter, int? top, string orderby) { var message = _pipeline.CreateMessage(); diff --git a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/RestOperations/PolicySetsRestOperations.cs b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/RestOperations/PolicySetsRestOperations.cs index 37935712d4c1..1fa3e8d27bae 100644 --- a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/RestOperations/PolicySetsRestOperations.cs +++ b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/RestOperations/PolicySetsRestOperations.cs @@ -37,6 +37,23 @@ public PolicySetsRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateEvaluatePoliciesRequestUri(string subscriptionId, string resourceGroupName, string labName, string name, DevTestLabEvaluatePoliciesContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DevTestLab/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/policysets/", false); + uri.AppendPath(name, true); + uri.AppendPath("/evaluatePolicies", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateEvaluatePoliciesRequest(string subscriptionId, string resourceGroupName, string labName, string name, DevTestLabEvaluatePoliciesContent content) { var message = _pipeline.CreateMessage(); diff --git a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/RestOperations/SchedulesRestOperations.cs b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/RestOperations/SchedulesRestOperations.cs index 9145e66fe4e8..a8b1ef242ed5 100644 --- a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/RestOperations/SchedulesRestOperations.cs +++ b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/RestOperations/SchedulesRestOperations.cs @@ -37,6 +37,37 @@ public SchedulesRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string labName, string expand, string filter, int? top, string orderby) + { + 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.DevTestLab/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/schedules", false); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (orderby != null) + { + uri.AppendQuery("$orderby", orderby, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string labName, string expand, string filter, int? top, string orderby) { var message = _pipeline.CreateMessage(); @@ -140,6 +171,26 @@ public Response List(string subscriptionId, string resourceGroupNa } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string labName, string name, string expand) + { + 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.DevTestLab/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/schedules/", false); + uri.AppendPath(name, true); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string labName, string name, string expand) { var message = _pipeline.CreateMessage(); @@ -234,6 +285,22 @@ public Response Get(string subscriptionId, string resour } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string labName, string name, DevTestLabScheduleData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DevTestLab/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/schedules/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string labName, string name, DevTestLabScheduleData data) { var message = _pipeline.CreateMessage(); @@ -328,6 +395,22 @@ public Response CreateOrUpdate(string subscriptionId, st } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string labName, string name) + { + 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.DevTestLab/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/schedules/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string labName, string name) { var message = _pipeline.CreateMessage(); @@ -404,6 +487,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string l } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string labName, string name, DevTestLabSchedulePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DevTestLab/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/schedules/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string labName, string name, DevTestLabSchedulePatch patch) { var message = _pipeline.CreateMessage(); @@ -496,6 +595,23 @@ public Response Update(string subscriptionId, string res } } + internal RequestUriBuilder CreateExecuteRequestUri(string subscriptionId, string resourceGroupName, string labName, string name) + { + 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.DevTestLab/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/schedules/", false); + uri.AppendPath(name, true); + uri.AppendPath("/execute", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateExecuteRequest(string subscriptionId, string resourceGroupName, string labName, string name) { var message = _pipeline.CreateMessage(); @@ -573,6 +689,23 @@ public Response Execute(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreateListApplicableRequestUri(string subscriptionId, string resourceGroupName, string labName, string name) + { + 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.DevTestLab/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/schedules/", false); + uri.AppendPath(name, true); + uri.AppendPath("/listApplicable", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListApplicableRequest(string subscriptionId, string resourceGroupName, string labName, string name) { var message = _pipeline.CreateMessage(); @@ -658,6 +791,14 @@ public Response ListApplicable(string subscriptionId, string resou } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string labName, string expand, string filter, int? top, string orderby) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string labName, string expand, string filter, int? top, string orderby) { var message = _pipeline.CreateMessage(); @@ -742,6 +883,14 @@ public Response ListNextPage(string nextLink, string subscriptionI } } + internal RequestUriBuilder CreateListApplicableNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string labName, string name) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListApplicableNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string labName, string name) { var message = _pipeline.CreateMessage(); diff --git a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/RestOperations/SecretsRestOperations.cs b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/RestOperations/SecretsRestOperations.cs index fd8e78fe38e3..1631588e9b1b 100644 --- a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/RestOperations/SecretsRestOperations.cs +++ b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/RestOperations/SecretsRestOperations.cs @@ -37,6 +37,39 @@ public SecretsRestOperations(HttpPipeline pipeline, string applicationId, Uri en _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string labName, string userName, string expand, string filter, int? top, string orderby) + { + 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.DevTestLab/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/users/", false); + uri.AppendPath(userName, true); + uri.AppendPath("/secrets", false); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (orderby != null) + { + uri.AppendQuery("$orderby", orderby, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string labName, string userName, string expand, string filter, int? top, string orderby) { var message = _pipeline.CreateMessage(); @@ -146,6 +179,28 @@ public Response List(string subscriptionId, string resourceGroupName } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string labName, string userName, string name, string expand) + { + 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.DevTestLab/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/users/", false); + uri.AppendPath(userName, true); + uri.AppendPath("/secrets/", false); + uri.AppendPath(name, true); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string labName, string userName, string name, string expand) { var message = _pipeline.CreateMessage(); @@ -246,6 +301,24 @@ public Response Get(string subscriptionId, string resource } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string labName, string userName, string name, DevTestLabSecretData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DevTestLab/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/users/", false); + uri.AppendPath(userName, true); + uri.AppendPath("/secrets/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string labName, string userName, string name, DevTestLabSecretData data) { var message = _pipeline.CreateMessage(); @@ -336,6 +409,24 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string labName, string userName, string name) + { + 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.DevTestLab/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/users/", false); + uri.AppendPath(userName, true); + uri.AppendPath("/secrets/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string labName, string userName, string name) { var message = _pipeline.CreateMessage(); @@ -418,6 +509,24 @@ public Response Delete(string subscriptionId, string resourceGroupName, string l } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string labName, string userName, string name, DevTestLabSecretPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DevTestLab/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/users/", false); + uri.AppendPath(userName, true); + uri.AppendPath("/secrets/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string labName, string userName, string name, DevTestLabSecretPatch patch) { var message = _pipeline.CreateMessage(); @@ -516,6 +625,14 @@ public Response Update(string subscriptionId, string resou } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string labName, string userName, string expand, string filter, int? top, string orderby) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string labName, string userName, string expand, string filter, int? top, string orderby) { var message = _pipeline.CreateMessage(); diff --git a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/RestOperations/ServiceFabricSchedulesRestOperations.cs b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/RestOperations/ServiceFabricSchedulesRestOperations.cs index 5f3ee41a824b..bda5765136e3 100644 --- a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/RestOperations/ServiceFabricSchedulesRestOperations.cs +++ b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/RestOperations/ServiceFabricSchedulesRestOperations.cs @@ -37,6 +37,41 @@ public ServiceFabricSchedulesRestOperations(HttpPipeline pipeline, string applic _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string labName, string userName, string serviceFabricName, string expand, string filter, int? top, string orderby) + { + 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.DevTestLab/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/users/", false); + uri.AppendPath(userName, true); + uri.AppendPath("/servicefabrics/", false); + uri.AppendPath(serviceFabricName, true); + uri.AppendPath("/schedules", false); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (orderby != null) + { + uri.AppendQuery("$orderby", orderby, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string labName, string userName, string serviceFabricName, string expand, string filter, int? top, string orderby) { var message = _pipeline.CreateMessage(); @@ -152,6 +187,30 @@ public Response List(string subscriptionId, string resourceGroupNa } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string labName, string userName, string serviceFabricName, string name, string expand) + { + 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.DevTestLab/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/users/", false); + uri.AppendPath(userName, true); + uri.AppendPath("/servicefabrics/", false); + uri.AppendPath(serviceFabricName, true); + uri.AppendPath("/schedules/", false); + uri.AppendPath(name, true); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string labName, string userName, string serviceFabricName, string name, string expand) { var message = _pipeline.CreateMessage(); @@ -258,6 +317,26 @@ public Response Get(string subscriptionId, string resour } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string labName, string userName, string serviceFabricName, string name, DevTestLabScheduleData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DevTestLab/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/users/", false); + uri.AppendPath(userName, true); + uri.AppendPath("/servicefabrics/", false); + uri.AppendPath(serviceFabricName, true); + uri.AppendPath("/schedules/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string labName, string userName, string serviceFabricName, string name, DevTestLabScheduleData data) { var message = _pipeline.CreateMessage(); @@ -364,6 +443,26 @@ public Response CreateOrUpdate(string subscriptionId, st } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string labName, string userName, string serviceFabricName, string name) + { + 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.DevTestLab/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/users/", false); + uri.AppendPath(userName, true); + uri.AppendPath("/servicefabrics/", false); + uri.AppendPath(serviceFabricName, true); + uri.AppendPath("/schedules/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string labName, string userName, string serviceFabricName, string name) { var message = _pipeline.CreateMessage(); @@ -452,6 +551,26 @@ public Response Delete(string subscriptionId, string resourceGroupName, string l } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string labName, string userName, string serviceFabricName, string name, DevTestLabSchedulePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DevTestLab/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/users/", false); + uri.AppendPath(userName, true); + uri.AppendPath("/servicefabrics/", false); + uri.AppendPath(serviceFabricName, true); + uri.AppendPath("/schedules/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string labName, string userName, string serviceFabricName, string name, DevTestLabSchedulePatch patch) { var message = _pipeline.CreateMessage(); @@ -556,6 +675,27 @@ public Response Update(string subscriptionId, string res } } + internal RequestUriBuilder CreateExecuteRequestUri(string subscriptionId, string resourceGroupName, string labName, string userName, string serviceFabricName, string name) + { + 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.DevTestLab/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/users/", false); + uri.AppendPath(userName, true); + uri.AppendPath("/servicefabrics/", false); + uri.AppendPath(serviceFabricName, true); + uri.AppendPath("/schedules/", false); + uri.AppendPath(name, true); + uri.AppendPath("/execute", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateExecuteRequest(string subscriptionId, string resourceGroupName, string labName, string userName, string serviceFabricName, string name) { var message = _pipeline.CreateMessage(); @@ -645,6 +785,14 @@ public Response Execute(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string labName, string userName, string serviceFabricName, string expand, string filter, int? top, string orderby) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string labName, string userName, string serviceFabricName, string expand, string filter, int? top, string orderby) { var message = _pipeline.CreateMessage(); diff --git a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/RestOperations/ServiceFabricsRestOperations.cs b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/RestOperations/ServiceFabricsRestOperations.cs index 75a15cde78c9..44d82caf087e 100644 --- a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/RestOperations/ServiceFabricsRestOperations.cs +++ b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/RestOperations/ServiceFabricsRestOperations.cs @@ -37,6 +37,39 @@ public ServiceFabricsRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string labName, string userName, string expand, string filter, int? top, string orderby) + { + 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.DevTestLab/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/users/", false); + uri.AppendPath(userName, true); + uri.AppendPath("/servicefabrics", false); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (orderby != null) + { + uri.AppendQuery("$orderby", orderby, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string labName, string userName, string expand, string filter, int? top, string orderby) { var message = _pipeline.CreateMessage(); @@ -146,6 +179,28 @@ public Response List(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string labName, string userName, string name, string expand) + { + 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.DevTestLab/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/users/", false); + uri.AppendPath(userName, true); + uri.AppendPath("/servicefabrics/", false); + uri.AppendPath(name, true); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string labName, string userName, string name, string expand) { var message = _pipeline.CreateMessage(); @@ -246,6 +301,24 @@ public Response Get(string subscriptionId, string r } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string labName, string userName, string name, DevTestLabServiceFabricData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DevTestLab/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/users/", false); + uri.AppendPath(userName, true); + uri.AppendPath("/servicefabrics/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string labName, string userName, string name, DevTestLabServiceFabricData data) { var message = _pipeline.CreateMessage(); @@ -336,6 +409,24 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string labName, string userName, string name) + { + 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.DevTestLab/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/users/", false); + uri.AppendPath(userName, true); + uri.AppendPath("/servicefabrics/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string labName, string userName, string name) { var message = _pipeline.CreateMessage(); @@ -420,6 +511,24 @@ public Response Delete(string subscriptionId, string resourceGroupName, string l } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string labName, string userName, string name, DevTestLabServiceFabricPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DevTestLab/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/users/", false); + uri.AppendPath(userName, true); + uri.AppendPath("/servicefabrics/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string labName, string userName, string name, DevTestLabServiceFabricPatch patch) { var message = _pipeline.CreateMessage(); @@ -518,6 +627,25 @@ public Response Update(string subscriptionId, strin } } + internal RequestUriBuilder CreateListApplicableSchedulesRequestUri(string subscriptionId, string resourceGroupName, string labName, string userName, string name) + { + 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.DevTestLab/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/users/", false); + uri.AppendPath(userName, true); + uri.AppendPath("/servicefabrics/", false); + uri.AppendPath(name, true); + uri.AppendPath("/listApplicableSchedules", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListApplicableSchedulesRequest(string subscriptionId, string resourceGroupName, string labName, string userName, string name) { var message = _pipeline.CreateMessage(); @@ -609,6 +737,25 @@ public Response ListApplicableSchedules(string sub } } + internal RequestUriBuilder CreateStartRequestUri(string subscriptionId, string resourceGroupName, string labName, string userName, string name) + { + 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.DevTestLab/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/users/", false); + uri.AppendPath(userName, true); + uri.AppendPath("/servicefabrics/", false); + uri.AppendPath(name, true); + uri.AppendPath("/start", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStartRequest(string subscriptionId, string resourceGroupName, string labName, string userName, string name) { var message = _pipeline.CreateMessage(); @@ -692,6 +839,25 @@ public Response Start(string subscriptionId, string resourceGroupName, string la } } + internal RequestUriBuilder CreateStopRequestUri(string subscriptionId, string resourceGroupName, string labName, string userName, string name) + { + 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.DevTestLab/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/users/", false); + uri.AppendPath(userName, true); + uri.AppendPath("/servicefabrics/", false); + uri.AppendPath(name, true); + uri.AppendPath("/stop", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStopRequest(string subscriptionId, string resourceGroupName, string labName, string userName, string name) { var message = _pipeline.CreateMessage(); @@ -775,6 +941,14 @@ public Response Stop(string subscriptionId, string resourceGroupName, string lab } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string labName, string userName, string expand, string filter, int? top, string orderby) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string labName, string userName, string expand, string filter, int? top, string orderby) { var message = _pipeline.CreateMessage(); diff --git a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/RestOperations/ServiceRunnersRestOperations.cs b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/RestOperations/ServiceRunnersRestOperations.cs index ffed45c9afcd..bf52b17492bc 100644 --- a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/RestOperations/ServiceRunnersRestOperations.cs +++ b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/RestOperations/ServiceRunnersRestOperations.cs @@ -36,6 +36,22 @@ public ServiceRunnersRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string labName, string name) + { + 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.DevTestLab/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/servicerunners/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string labName, string name) { var message = _pipeline.CreateMessage(); @@ -124,6 +140,22 @@ public Response Get(string subscriptionId, string r } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string labName, string name, DevTestLabServiceRunnerData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DevTestLab/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/servicerunners/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string labName, string name, DevTestLabServiceRunnerData data) { var message = _pipeline.CreateMessage(); @@ -218,6 +250,22 @@ public Response CreateOrUpdate(string subscriptionI } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string labName, string name) + { + 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.DevTestLab/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/servicerunners/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string labName, string name) { var message = _pipeline.CreateMessage(); diff --git a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/RestOperations/UsersRestOperations.cs b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/RestOperations/UsersRestOperations.cs index 70513c937afc..920ed02c4ba3 100644 --- a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/RestOperations/UsersRestOperations.cs +++ b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/RestOperations/UsersRestOperations.cs @@ -37,6 +37,37 @@ public UsersRestOperations(HttpPipeline pipeline, string applicationId, Uri endp _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string labName, string expand, string filter, int? top, string orderby) + { + 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.DevTestLab/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/users", false); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (orderby != null) + { + uri.AppendQuery("$orderby", orderby, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string labName, string expand, string filter, int? top, string orderby) { var message = _pipeline.CreateMessage(); @@ -140,6 +171,26 @@ public Response List(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string labName, string name, string expand) + { + 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.DevTestLab/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/users/", false); + uri.AppendPath(name, true); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string labName, string name, string expand) { var message = _pipeline.CreateMessage(); @@ -234,6 +285,22 @@ public Response Get(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string labName, string name, DevTestLabUserData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DevTestLab/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/users/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string labName, string name, DevTestLabUserData data) { var message = _pipeline.CreateMessage(); @@ -318,6 +385,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string labName, string name) + { + 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.DevTestLab/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/users/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string labName, string name) { var message = _pipeline.CreateMessage(); @@ -396,6 +479,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string l } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string labName, string name, DevTestLabUserPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DevTestLab/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/users/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string labName, string name, DevTestLabUserPatch patch) { var message = _pipeline.CreateMessage(); @@ -488,6 +587,14 @@ public Response Update(string subscriptionId, string resourc } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string labName, string expand, string filter, int? top, string orderby) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string labName, string expand, string filter, int? top, string orderby) { var message = _pipeline.CreateMessage(); diff --git a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/RestOperations/VirtualMachineSchedulesRestOperations.cs b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/RestOperations/VirtualMachineSchedulesRestOperations.cs index 77e000415abb..b0c992280444 100644 --- a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/RestOperations/VirtualMachineSchedulesRestOperations.cs +++ b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/RestOperations/VirtualMachineSchedulesRestOperations.cs @@ -37,6 +37,39 @@ public VirtualMachineSchedulesRestOperations(HttpPipeline pipeline, string appli _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string labName, string vmName, string expand, string filter, int? top, string orderby) + { + 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.DevTestLab/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/virtualmachines/", false); + uri.AppendPath(vmName, true); + uri.AppendPath("/schedules", false); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (orderby != null) + { + uri.AppendQuery("$orderby", orderby, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string labName, string vmName, string expand, string filter, int? top, string orderby) { var message = _pipeline.CreateMessage(); @@ -146,6 +179,28 @@ public Response List(string subscriptionId, string resourceGroupNa } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string labName, string vmName, string name, string expand) + { + 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.DevTestLab/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/virtualmachines/", false); + uri.AppendPath(vmName, true); + uri.AppendPath("/schedules/", false); + uri.AppendPath(name, true); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string labName, string vmName, string name, string expand) { var message = _pipeline.CreateMessage(); @@ -246,6 +301,24 @@ public Response Get(string subscriptionId, string resour } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string labName, string vmName, string name, DevTestLabScheduleData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DevTestLab/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/virtualmachines/", false); + uri.AppendPath(vmName, true); + uri.AppendPath("/schedules/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string labName, string vmName, string name, DevTestLabScheduleData data) { var message = _pipeline.CreateMessage(); @@ -346,6 +419,24 @@ public Response CreateOrUpdate(string subscriptionId, st } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string labName, string vmName, string name) + { + 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.DevTestLab/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/virtualmachines/", false); + uri.AppendPath(vmName, true); + uri.AppendPath("/schedules/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string labName, string vmName, string name) { var message = _pipeline.CreateMessage(); @@ -428,6 +519,24 @@ public Response Delete(string subscriptionId, string resourceGroupName, string l } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string labName, string vmName, string name, DevTestLabSchedulePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DevTestLab/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/virtualmachines/", false); + uri.AppendPath(vmName, true); + uri.AppendPath("/schedules/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string labName, string vmName, string name, DevTestLabSchedulePatch patch) { var message = _pipeline.CreateMessage(); @@ -526,6 +635,25 @@ public Response Update(string subscriptionId, string res } } + internal RequestUriBuilder CreateExecuteRequestUri(string subscriptionId, string resourceGroupName, string labName, string vmName, string name) + { + 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.DevTestLab/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/virtualmachines/", false); + uri.AppendPath(vmName, true); + uri.AppendPath("/schedules/", false); + uri.AppendPath(name, true); + uri.AppendPath("/execute", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateExecuteRequest(string subscriptionId, string resourceGroupName, string labName, string vmName, string name) { var message = _pipeline.CreateMessage(); @@ -609,6 +737,14 @@ public Response Execute(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string labName, string vmName, string expand, string filter, int? top, string orderby) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string labName, string vmName, string expand, string filter, int? top, string orderby) { var message = _pipeline.CreateMessage(); diff --git a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/RestOperations/VirtualMachinesRestOperations.cs b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/RestOperations/VirtualMachinesRestOperations.cs index 19a095db6c28..432fee8d483b 100644 --- a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/RestOperations/VirtualMachinesRestOperations.cs +++ b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/RestOperations/VirtualMachinesRestOperations.cs @@ -37,6 +37,37 @@ public VirtualMachinesRestOperations(HttpPipeline pipeline, string applicationId _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string labName, string expand, string filter, int? top, string orderby) + { + 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.DevTestLab/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/virtualmachines", false); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (orderby != null) + { + uri.AppendQuery("$orderby", orderby, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string labName, string expand, string filter, int? top, string orderby) { var message = _pipeline.CreateMessage(); @@ -140,6 +171,26 @@ public Response List(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string labName, string name, string expand) + { + 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.DevTestLab/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/virtualmachines/", false); + uri.AppendPath(name, true); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string labName, string name, string expand) { var message = _pipeline.CreateMessage(); @@ -234,6 +285,22 @@ public Response Get(string subscriptionId, string resourceGrou } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string labName, string name, DevTestLabVmData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DevTestLab/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/virtualmachines/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string labName, string name, DevTestLabVmData data) { var message = _pipeline.CreateMessage(); @@ -318,6 +385,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string labName, string name) + { + 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.DevTestLab/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/virtualmachines/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string labName, string name) { var message = _pipeline.CreateMessage(); @@ -396,6 +479,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string l } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string labName, string name, DevTestLabVmPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DevTestLab/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/virtualmachines/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string labName, string name, DevTestLabVmPatch patch) { var message = _pipeline.CreateMessage(); @@ -488,6 +587,23 @@ public Response Update(string subscriptionId, string resourceG } } + internal RequestUriBuilder CreateAddDataDiskRequestUri(string subscriptionId, string resourceGroupName, string labName, string name, DevTestLabDataDiskProperties dataDiskProperties) + { + 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.DevTestLab/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/virtualmachines/", false); + uri.AppendPath(name, true); + uri.AppendPath("/addDataDisk", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateAddDataDiskRequest(string subscriptionId, string resourceGroupName, string labName, string name, DevTestLabDataDiskProperties dataDiskProperties) { var message = _pipeline.CreateMessage(); @@ -573,6 +689,23 @@ public Response AddDataDisk(string subscriptionId, string resourceGroupName, str } } + internal RequestUriBuilder CreateApplyArtifactsRequestUri(string subscriptionId, string resourceGroupName, string labName, string name, DevTestLabVmApplyArtifactsContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DevTestLab/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/virtualmachines/", false); + uri.AppendPath(name, true); + uri.AppendPath("/applyArtifacts", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateApplyArtifactsRequest(string subscriptionId, string resourceGroupName, string labName, string name, DevTestLabVmApplyArtifactsContent content) { var message = _pipeline.CreateMessage(); @@ -658,6 +791,23 @@ public Response ApplyArtifacts(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateClaimRequestUri(string subscriptionId, string resourceGroupName, string labName, string name) + { + 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.DevTestLab/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/virtualmachines/", false); + uri.AppendPath(name, true); + uri.AppendPath("/claim", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateClaimRequest(string subscriptionId, string resourceGroupName, string labName, string name) { var message = _pipeline.CreateMessage(); @@ -735,6 +885,23 @@ public Response Claim(string subscriptionId, string resourceGroupName, string la } } + internal RequestUriBuilder CreateDetachDataDiskRequestUri(string subscriptionId, string resourceGroupName, string labName, string name, DevTestLabVmDetachDataDiskContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DevTestLab/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/virtualmachines/", false); + uri.AppendPath(name, true); + uri.AppendPath("/detachDataDisk", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDetachDataDiskRequest(string subscriptionId, string resourceGroupName, string labName, string name, DevTestLabVmDetachDataDiskContent content) { var message = _pipeline.CreateMessage(); @@ -820,6 +987,23 @@ public Response DetachDataDisk(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateGetRdpFileContentsRequestUri(string subscriptionId, string resourceGroupName, string labName, string name) + { + 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.DevTestLab/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/virtualmachines/", false); + uri.AppendPath(name, true); + uri.AppendPath("/getRdpFileContents", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRdpFileContentsRequest(string subscriptionId, string resourceGroupName, string labName, string name) { var message = _pipeline.CreateMessage(); @@ -905,6 +1089,23 @@ public Response GetRdpFileContents(string subscriptionI } } + internal RequestUriBuilder CreateListApplicableSchedulesRequestUri(string subscriptionId, string resourceGroupName, string labName, string name) + { + 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.DevTestLab/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/virtualmachines/", false); + uri.AppendPath(name, true); + uri.AppendPath("/listApplicableSchedules", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListApplicableSchedulesRequest(string subscriptionId, string resourceGroupName, string labName, string name) { var message = _pipeline.CreateMessage(); @@ -990,6 +1191,23 @@ public Response ListApplicableSchedules(string sub } } + internal RequestUriBuilder CreateRedeployRequestUri(string subscriptionId, string resourceGroupName, string labName, string name) + { + 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.DevTestLab/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/virtualmachines/", false); + uri.AppendPath(name, true); + uri.AppendPath("/redeploy", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRedeployRequest(string subscriptionId, string resourceGroupName, string labName, string name) { var message = _pipeline.CreateMessage(); @@ -1067,6 +1285,23 @@ public Response Redeploy(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreateResizeRequestUri(string subscriptionId, string resourceGroupName, string labName, string name, DevTestLabVmResizeContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DevTestLab/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/virtualmachines/", false); + uri.AppendPath(name, true); + uri.AppendPath("/resize", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateResizeRequest(string subscriptionId, string resourceGroupName, string labName, string name, DevTestLabVmResizeContent content) { var message = _pipeline.CreateMessage(); @@ -1152,6 +1387,23 @@ public Response Resize(string subscriptionId, string resourceGroupName, string l } } + internal RequestUriBuilder CreateRestartRequestUri(string subscriptionId, string resourceGroupName, string labName, string name) + { + 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.DevTestLab/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/virtualmachines/", false); + uri.AppendPath(name, true); + uri.AppendPath("/restart", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRestartRequest(string subscriptionId, string resourceGroupName, string labName, string name) { var message = _pipeline.CreateMessage(); @@ -1229,6 +1481,23 @@ public Response Restart(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreateStartRequestUri(string subscriptionId, string resourceGroupName, string labName, string name) + { + 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.DevTestLab/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/virtualmachines/", false); + uri.AppendPath(name, true); + uri.AppendPath("/start", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStartRequest(string subscriptionId, string resourceGroupName, string labName, string name) { var message = _pipeline.CreateMessage(); @@ -1306,6 +1575,23 @@ public Response Start(string subscriptionId, string resourceGroupName, string la } } + internal RequestUriBuilder CreateStopRequestUri(string subscriptionId, string resourceGroupName, string labName, string name) + { + 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.DevTestLab/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/virtualmachines/", false); + uri.AppendPath(name, true); + uri.AppendPath("/stop", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStopRequest(string subscriptionId, string resourceGroupName, string labName, string name) { var message = _pipeline.CreateMessage(); @@ -1383,6 +1669,23 @@ public Response Stop(string subscriptionId, string resourceGroupName, string lab } } + internal RequestUriBuilder CreateTransferDisksRequestUri(string subscriptionId, string resourceGroupName, string labName, string name) + { + 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.DevTestLab/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/virtualmachines/", false); + uri.AppendPath(name, true); + uri.AppendPath("/transferDisks", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateTransferDisksRequest(string subscriptionId, string resourceGroupName, string labName, string name) { var message = _pipeline.CreateMessage(); @@ -1460,6 +1763,23 @@ public Response TransferDisks(string subscriptionId, string resourceGroupName, s } } + internal RequestUriBuilder CreateUnClaimRequestUri(string subscriptionId, string resourceGroupName, string labName, string name) + { + 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.DevTestLab/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/virtualmachines/", false); + uri.AppendPath(name, true); + uri.AppendPath("/unClaim", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUnClaimRequest(string subscriptionId, string resourceGroupName, string labName, string name) { var message = _pipeline.CreateMessage(); @@ -1537,6 +1857,14 @@ public Response UnClaim(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string labName, string expand, string filter, int? top, string orderby) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string labName, string expand, string filter, int? top, string orderby) { var message = _pipeline.CreateMessage(); diff --git a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/RestOperations/VirtualNetworksRestOperations.cs b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/RestOperations/VirtualNetworksRestOperations.cs index fc55fa9d6d24..67e3067e5f61 100644 --- a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/RestOperations/VirtualNetworksRestOperations.cs +++ b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/RestOperations/VirtualNetworksRestOperations.cs @@ -37,6 +37,37 @@ public VirtualNetworksRestOperations(HttpPipeline pipeline, string applicationId _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string labName, string expand, string filter, int? top, string orderby) + { + 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.DevTestLab/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/virtualnetworks", false); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (orderby != null) + { + uri.AppendQuery("$orderby", orderby, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string labName, string expand, string filter, int? top, string orderby) { var message = _pipeline.CreateMessage(); @@ -140,6 +171,26 @@ public Response List(string subscriptionId, string resourceG } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string labName, string name, string expand) + { + 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.DevTestLab/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/virtualnetworks/", false); + uri.AppendPath(name, true); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string labName, string name, string expand) { var message = _pipeline.CreateMessage(); @@ -234,6 +285,22 @@ public Response Get(string subscriptionId, string } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string labName, string name, DevTestLabVirtualNetworkData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DevTestLab/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/virtualnetworks/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string labName, string name, DevTestLabVirtualNetworkData data) { var message = _pipeline.CreateMessage(); @@ -318,6 +385,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string labName, string name) + { + 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.DevTestLab/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/virtualnetworks/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string labName, string name) { var message = _pipeline.CreateMessage(); @@ -396,6 +479,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string l } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string labName, string name, DevTestLabVirtualNetworkPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DevTestLab/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/virtualnetworks/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string labName, string name, DevTestLabVirtualNetworkPatch patch) { var message = _pipeline.CreateMessage(); @@ -488,6 +587,14 @@ public Response Update(string subscriptionId, stri } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string labName, string expand, string filter, int? top, string orderby) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string labName, string expand, string filter, int? top, string orderby) { var message = _pipeline.CreateMessage(); diff --git a/sdk/digitaltwins/Azure.ResourceManager.DigitalTwins/src/Generated/LongRunningOperation/DigitalTwinsArmOperation.cs b/sdk/digitaltwins/Azure.ResourceManager.DigitalTwins/src/Generated/LongRunningOperation/DigitalTwinsArmOperation.cs index 2aba71bc085a..573ef4de9e10 100644 --- a/sdk/digitaltwins/Azure.ResourceManager.DigitalTwins/src/Generated/LongRunningOperation/DigitalTwinsArmOperation.cs +++ b/sdk/digitaltwins/Azure.ResourceManager.DigitalTwins/src/Generated/LongRunningOperation/DigitalTwinsArmOperation.cs @@ -20,21 +20,24 @@ internal class DigitalTwinsArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of DigitalTwinsArmOperation for mocking. protected DigitalTwinsArmOperation() { } - internal DigitalTwinsArmOperation(Response response) + internal DigitalTwinsArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal DigitalTwinsArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "DigitalTwinsArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal DigitalTwinsArmOperation(ClientDiagnostics clientDiagnostics, HttpPipel public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/digitaltwins/Azure.ResourceManager.DigitalTwins/src/Generated/LongRunningOperation/DigitalTwinsArmOperationOfT.cs b/sdk/digitaltwins/Azure.ResourceManager.DigitalTwins/src/Generated/LongRunningOperation/DigitalTwinsArmOperationOfT.cs index 36ffe753db27..614ac4612d56 100644 --- a/sdk/digitaltwins/Azure.ResourceManager.DigitalTwins/src/Generated/LongRunningOperation/DigitalTwinsArmOperationOfT.cs +++ b/sdk/digitaltwins/Azure.ResourceManager.DigitalTwins/src/Generated/LongRunningOperation/DigitalTwinsArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class DigitalTwinsArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of DigitalTwinsArmOperation for mocking. protected DigitalTwinsArmOperation() { } - internal DigitalTwinsArmOperation(Response response) + internal DigitalTwinsArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal DigitalTwinsArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "DigitalTwinsArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal DigitalTwinsArmOperation(IOperationSource source, ClientDiagnostics public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/digitaltwins/Azure.ResourceManager.DigitalTwins/src/Generated/Models/DigitalTwinsDescriptionResource.Serialization.cs b/sdk/digitaltwins/Azure.ResourceManager.DigitalTwins/src/Generated/Models/DigitalTwinsDescriptionResource.Serialization.cs new file mode 100644 index 000000000000..953d6291f685 --- /dev/null +++ b/sdk/digitaltwins/Azure.ResourceManager.DigitalTwins/src/Generated/Models/DigitalTwinsDescriptionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DigitalTwins +{ + public partial class DigitalTwinsDescriptionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DigitalTwinsDescriptionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DigitalTwinsDescriptionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/digitaltwins/Azure.ResourceManager.DigitalTwins/src/Generated/Models/DigitalTwinsEndpointResource.Serialization.cs b/sdk/digitaltwins/Azure.ResourceManager.DigitalTwins/src/Generated/Models/DigitalTwinsEndpointResource.Serialization.cs new file mode 100644 index 000000000000..9bbc75fce592 --- /dev/null +++ b/sdk/digitaltwins/Azure.ResourceManager.DigitalTwins/src/Generated/Models/DigitalTwinsEndpointResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DigitalTwins +{ + public partial class DigitalTwinsEndpointResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DigitalTwinsEndpointResourceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DigitalTwinsEndpointResourceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/digitaltwins/Azure.ResourceManager.DigitalTwins/src/Generated/Models/DigitalTwinsPrivateEndpointConnectionResource.Serialization.cs b/sdk/digitaltwins/Azure.ResourceManager.DigitalTwins/src/Generated/Models/DigitalTwinsPrivateEndpointConnectionResource.Serialization.cs new file mode 100644 index 000000000000..cceb3e37fed2 --- /dev/null +++ b/sdk/digitaltwins/Azure.ResourceManager.DigitalTwins/src/Generated/Models/DigitalTwinsPrivateEndpointConnectionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DigitalTwins +{ + public partial class DigitalTwinsPrivateEndpointConnectionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DigitalTwinsPrivateEndpointConnectionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DigitalTwinsPrivateEndpointConnectionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/digitaltwins/Azure.ResourceManager.DigitalTwins/src/Generated/Models/DigitalTwinsPrivateLinkResource.Serialization.cs b/sdk/digitaltwins/Azure.ResourceManager.DigitalTwins/src/Generated/Models/DigitalTwinsPrivateLinkResource.Serialization.cs new file mode 100644 index 000000000000..906cca0b1d78 --- /dev/null +++ b/sdk/digitaltwins/Azure.ResourceManager.DigitalTwins/src/Generated/Models/DigitalTwinsPrivateLinkResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DigitalTwins +{ + public partial class DigitalTwinsPrivateLinkResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DigitalTwinsPrivateLinkResourceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DigitalTwinsPrivateLinkResourceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/digitaltwins/Azure.ResourceManager.DigitalTwins/src/Generated/Models/TimeSeriesDatabaseConnectionResource.Serialization.cs b/sdk/digitaltwins/Azure.ResourceManager.DigitalTwins/src/Generated/Models/TimeSeriesDatabaseConnectionResource.Serialization.cs new file mode 100644 index 000000000000..3153a8fe595d --- /dev/null +++ b/sdk/digitaltwins/Azure.ResourceManager.DigitalTwins/src/Generated/Models/TimeSeriesDatabaseConnectionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DigitalTwins +{ + public partial class TimeSeriesDatabaseConnectionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + TimeSeriesDatabaseConnectionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + TimeSeriesDatabaseConnectionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/digitaltwins/Azure.ResourceManager.DigitalTwins/src/Generated/RestOperations/DigitalTwinsEndpointRestOperations.cs b/sdk/digitaltwins/Azure.ResourceManager.DigitalTwins/src/Generated/RestOperations/DigitalTwinsEndpointRestOperations.cs index 7855b827d199..c987cceee92c 100644 --- a/sdk/digitaltwins/Azure.ResourceManager.DigitalTwins/src/Generated/RestOperations/DigitalTwinsEndpointRestOperations.cs +++ b/sdk/digitaltwins/Azure.ResourceManager.DigitalTwins/src/Generated/RestOperations/DigitalTwinsEndpointRestOperations.cs @@ -37,6 +37,21 @@ public DigitalTwinsEndpointRestOperations(HttpPipeline pipeline, string applicat _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string resourceName) + { + 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.DigitalTwins/digitalTwinsInstances/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/endpoints", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response List(string subscription } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string endpointName) + { + 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.DigitalTwins/digitalTwinsInstances/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/endpoints/", false); + uri.AppendPath(endpointName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string resourceName, string endpointName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscriptionId, str } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string endpointName, DigitalTwinsEndpointResourceData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DigitalTwins/digitalTwinsInstances/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/endpoints/", false); + uri.AppendPath(endpointName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string resourceName, string endpointName, DigitalTwinsEndpointResourceData data) { var message = _pipeline.CreateMessage(); @@ -288,6 +335,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string endpointName) + { + 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.DigitalTwins/digitalTwinsInstances/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/endpoints/", false); + uri.AppendPath(endpointName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string resourceName, string endpointName) { var message = _pipeline.CreateMessage(); @@ -366,6 +429,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string resourceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/digitaltwins/Azure.ResourceManager.DigitalTwins/src/Generated/RestOperations/DigitalTwinsRestOperations.cs b/sdk/digitaltwins/Azure.ResourceManager.DigitalTwins/src/Generated/RestOperations/DigitalTwinsRestOperations.cs index 96df7575ec78..9f8bc9fc3568 100644 --- a/sdk/digitaltwins/Azure.ResourceManager.DigitalTwins/src/Generated/RestOperations/DigitalTwinsRestOperations.cs +++ b/sdk/digitaltwins/Azure.ResourceManager.DigitalTwins/src/Generated/RestOperations/DigitalTwinsRestOperations.cs @@ -37,6 +37,20 @@ public DigitalTwinsRestOperations(HttpPipeline pipeline, string applicationId, U _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string resourceName) + { + 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.DigitalTwins/digitalTwinsInstances/", false); + uri.AppendPath(resourceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); @@ -119,6 +133,20 @@ public Response Get(string subscriptionId, string r } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string resourceName, DigitalTwinsDescriptionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DigitalTwins/digitalTwinsInstances/", false); + uri.AppendPath(resourceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string resourceName, DigitalTwinsDescriptionData data) { var message = _pipeline.CreateMessage(); @@ -197,6 +225,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string resourceName, DigitalTwinsDescriptionPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DigitalTwins/digitalTwinsInstances/", false); + uri.AppendPath(resourceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string resourceName, DigitalTwinsDescriptionPatch patch) { var message = _pipeline.CreateMessage(); @@ -275,6 +317,20 @@ public Response Update(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string resourceName) + { + 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.DigitalTwins/digitalTwinsInstances/", false); + uri.AppendPath(resourceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); @@ -347,6 +403,17 @@ public Response Delete(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.DigitalTwins/digitalTwinsInstances", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -414,6 +481,19 @@ public Response List(string subscriptionId, C } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.DigitalTwins/digitalTwinsInstances", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -487,6 +567,19 @@ public Response ListByResourceGroup(string su } } + internal RequestUriBuilder CreateCheckNameAvailabilityRequestUri(string subscriptionId, AzureLocation location, DigitalTwinsNameContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.DigitalTwins/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/checkNameAvailability", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCheckNameAvailabilityRequest(string subscriptionId, AzureLocation location, DigitalTwinsNameContent content) { var message = _pipeline.CreateMessage(); @@ -566,6 +659,14 @@ public Response CheckNameAvailability(string subscriptio } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -634,6 +735,14 @@ public Response ListNextPage(string nextLink, } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/digitaltwins/Azure.ResourceManager.DigitalTwins/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs b/sdk/digitaltwins/Azure.ResourceManager.DigitalTwins/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs index 26c43872cabb..3f60c7c9ad74 100644 --- a/sdk/digitaltwins/Azure.ResourceManager.DigitalTwins/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs +++ b/sdk/digitaltwins/Azure.ResourceManager.DigitalTwins/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs @@ -37,6 +37,21 @@ public PrivateEndpointConnectionsRestOperations(HttpPipeline pipeline, string ap _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string resourceName) + { + 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.DigitalTwins/digitalTwinsInstances/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/privateEndpointConnections", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response List(string subscriptionId, } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string privateEndpointConnectionName) + { + 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.DigitalTwins/digitalTwinsInstances/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string resourceName, string privateEndpointConnectionName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscripti } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string privateEndpointConnectionName) + { + 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.DigitalTwins/digitalTwinsInstances/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string resourceName, string privateEndpointConnectionName) { var message = _pipeline.CreateMessage(); @@ -282,6 +329,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string privateEndpointConnectionName, DigitalTwinsPrivateEndpointConnectionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DigitalTwins/digitalTwinsInstances/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string resourceName, string privateEndpointConnectionName, DigitalTwinsPrivateEndpointConnectionData data) { var message = _pipeline.CreateMessage(); diff --git a/sdk/digitaltwins/Azure.ResourceManager.DigitalTwins/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs b/sdk/digitaltwins/Azure.ResourceManager.DigitalTwins/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs index cff222bb7e77..e671fa1b70d4 100644 --- a/sdk/digitaltwins/Azure.ResourceManager.DigitalTwins/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs +++ b/sdk/digitaltwins/Azure.ResourceManager.DigitalTwins/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs @@ -37,6 +37,21 @@ public PrivateLinkResourcesRestOperations(HttpPipeline pipeline, string applicat _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string resourceName) + { + 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.DigitalTwins/digitalTwinsInstances/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/privateLinkResources", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response List(string subscriptionId, string r } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string resourceId) + { + 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.DigitalTwins/digitalTwinsInstances/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/privateLinkResources/", false); + uri.AppendPath(resourceId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string resourceName, string resourceId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/digitaltwins/Azure.ResourceManager.DigitalTwins/src/Generated/RestOperations/TimeSeriesDatabaseConnectionsRestOperations.cs b/sdk/digitaltwins/Azure.ResourceManager.DigitalTwins/src/Generated/RestOperations/TimeSeriesDatabaseConnectionsRestOperations.cs index ff43b92da829..12200f52c171 100644 --- a/sdk/digitaltwins/Azure.ResourceManager.DigitalTwins/src/Generated/RestOperations/TimeSeriesDatabaseConnectionsRestOperations.cs +++ b/sdk/digitaltwins/Azure.ResourceManager.DigitalTwins/src/Generated/RestOperations/TimeSeriesDatabaseConnectionsRestOperations.cs @@ -37,6 +37,21 @@ public TimeSeriesDatabaseConnectionsRestOperations(HttpPipeline pipeline, string _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string resourceName) + { + 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.DigitalTwins/digitalTwinsInstances/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/timeSeriesDatabaseConnections", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response List(string subscription } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string timeSeriesDatabaseConnectionName) + { + 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.DigitalTwins/digitalTwinsInstances/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/timeSeriesDatabaseConnections/", false); + uri.AppendPath(timeSeriesDatabaseConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string resourceName, string timeSeriesDatabaseConnectionName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscriptionId, str } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string timeSeriesDatabaseConnectionName, TimeSeriesDatabaseConnectionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DigitalTwins/digitalTwinsInstances/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/timeSeriesDatabaseConnections/", false); + uri.AppendPath(timeSeriesDatabaseConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string resourceName, string timeSeriesDatabaseConnectionName, TimeSeriesDatabaseConnectionData data) { var message = _pipeline.CreateMessage(); @@ -288,6 +335,26 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string timeSeriesDatabaseConnectionName, CleanupConnectionArtifact? cleanupConnectionArtifacts) + { + 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.DigitalTwins/digitalTwinsInstances/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/timeSeriesDatabaseConnections/", false); + uri.AppendPath(timeSeriesDatabaseConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + if (cleanupConnectionArtifacts != null) + { + uri.AppendQuery("cleanupConnectionArtifacts", cleanupConnectionArtifacts.Value.ToString(), true); + } + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string resourceName, string timeSeriesDatabaseConnectionName, CleanupConnectionArtifact? cleanupConnectionArtifacts) { var message = _pipeline.CreateMessage(); @@ -372,6 +439,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string resourceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/dns/Azure.ResourceManager.Dns/src/Generated/DnsZoneCollection.cs b/sdk/dns/Azure.ResourceManager.Dns/src/Generated/DnsZoneCollection.cs index 5751a8c3fbbe..08844055876c 100644 --- a/sdk/dns/Azure.ResourceManager.Dns/src/Generated/DnsZoneCollection.cs +++ b/sdk/dns/Azure.ResourceManager.Dns/src/Generated/DnsZoneCollection.cs @@ -93,7 +93,9 @@ public virtual async Task> CreateOrUpdateAsync(Wai try { var response = await _dnsZoneZonesRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, zoneName, data, ifMatch, ifNoneMatch, cancellationToken).ConfigureAwait(false); - var operation = new DnsArmOperation(Response.FromValue(new DnsZoneResource(Client, response), response.GetRawResponse())); + var uri = _dnsZoneZonesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, zoneName, data, ifMatch, ifNoneMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DnsArmOperation(Response.FromValue(new DnsZoneResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -144,7 +146,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, try { var response = _dnsZoneZonesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, zoneName, data, ifMatch, ifNoneMatch, cancellationToken); - var operation = new DnsArmOperation(Response.FromValue(new DnsZoneResource(Client, response), response.GetRawResponse())); + var uri = _dnsZoneZonesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, zoneName, data, ifMatch, ifNoneMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DnsArmOperation(Response.FromValue(new DnsZoneResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/dns/Azure.ResourceManager.Dns/src/Generated/LongRunningOperation/DnsArmOperation.cs b/sdk/dns/Azure.ResourceManager.Dns/src/Generated/LongRunningOperation/DnsArmOperation.cs index 332cb9f538f3..4912e51a67f9 100644 --- a/sdk/dns/Azure.ResourceManager.Dns/src/Generated/LongRunningOperation/DnsArmOperation.cs +++ b/sdk/dns/Azure.ResourceManager.Dns/src/Generated/LongRunningOperation/DnsArmOperation.cs @@ -20,21 +20,24 @@ internal class DnsArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of DnsArmOperation for mocking. protected DnsArmOperation() { } - internal DnsArmOperation(Response response) + internal DnsArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal DnsArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "DnsArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal DnsArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipel public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/dns/Azure.ResourceManager.Dns/src/Generated/LongRunningOperation/DnsArmOperationOfT.cs b/sdk/dns/Azure.ResourceManager.Dns/src/Generated/LongRunningOperation/DnsArmOperationOfT.cs index abf200f05571..7932a22b876c 100644 --- a/sdk/dns/Azure.ResourceManager.Dns/src/Generated/LongRunningOperation/DnsArmOperationOfT.cs +++ b/sdk/dns/Azure.ResourceManager.Dns/src/Generated/LongRunningOperation/DnsArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class DnsArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of DnsArmOperation for mocking. protected DnsArmOperation() { } - internal DnsArmOperation(Response response) + internal DnsArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal DnsArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "DnsArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal DnsArmOperation(IOperationSource source, ClientDiagnostics clientDia public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/dns/Azure.ResourceManager.Dns/src/Generated/RestOperations/DnsResourceReferenceRestOperations.cs b/sdk/dns/Azure.ResourceManager.Dns/src/Generated/RestOperations/DnsResourceReferenceRestOperations.cs index d912c189cfe7..e459aa13e04f 100644 --- a/sdk/dns/Azure.ResourceManager.Dns/src/Generated/RestOperations/DnsResourceReferenceRestOperations.cs +++ b/sdk/dns/Azure.ResourceManager.Dns/src/Generated/RestOperations/DnsResourceReferenceRestOperations.cs @@ -37,6 +37,17 @@ public DnsResourceReferenceRestOperations(HttpPipeline pipeline, string applicat _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetByTargetResourcesRequestUri(string subscriptionId, DnsResourceReferenceContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Network/getDnsResourceReference", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetByTargetResourcesRequest(string subscriptionId, DnsResourceReferenceContent content) { var message = _pipeline.CreateMessage(); diff --git a/sdk/dns/Azure.ResourceManager.Dns/src/Generated/RestOperations/RecordSetsRestOperations.cs b/sdk/dns/Azure.ResourceManager.Dns/src/Generated/RestOperations/RecordSetsRestOperations.cs index 431483ba5a56..b5e8c45ccd37 100644 --- a/sdk/dns/Azure.ResourceManager.Dns/src/Generated/RestOperations/RecordSetsRestOperations.cs +++ b/sdk/dns/Azure.ResourceManager.Dns/src/Generated/RestOperations/RecordSetsRestOperations.cs @@ -37,6 +37,24 @@ public RecordSetsRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string zoneName, DnsRecordType dnsRecordType, string relativeRecordSetName, DnsRecordData data, ETag? ifMatch) + { + 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.Network/dnsZones/", false); + uri.AppendPath(zoneName, true); + uri.AppendPath("/", false); + uri.AppendPath(dnsRecordType.ToSerialString(), true); + uri.AppendPath("/", false); + uri.AppendPath(relativeRecordSetName, false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string zoneName, DnsRecordType dnsRecordType, string relativeRecordSetName, DnsRecordData data, ETag? ifMatch) { var message = _pipeline.CreateMessage(); @@ -139,6 +157,24 @@ public Response Update(string subscriptionId, string resourceGrou } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string zoneName, DnsRecordType dnsRecordType, string relativeRecordSetName, DnsRecordData data, ETag? ifMatch, string ifNoneMatch) + { + 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.Network/dnsZones/", false); + uri.AppendPath(zoneName, true); + uri.AppendPath("/", false); + uri.AppendPath(dnsRecordType.ToSerialString(), true); + uri.AppendPath("/", false); + uri.AppendPath(relativeRecordSetName, false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string zoneName, DnsRecordType dnsRecordType, string relativeRecordSetName, DnsRecordData data, ETag? ifMatch, string ifNoneMatch) { var message = _pipeline.CreateMessage(); @@ -249,6 +285,24 @@ public Response CreateOrUpdate(string subscriptionId, string reso } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string zoneName, DnsRecordType dnsRecordType, string relativeRecordSetName, ETag? ifMatch) + { + 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.Network/dnsZones/", false); + uri.AppendPath(zoneName, true); + uri.AppendPath("/", false); + uri.AppendPath(dnsRecordType.ToSerialString(), true); + uri.AppendPath("/", false); + uri.AppendPath(relativeRecordSetName, false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string zoneName, DnsRecordType dnsRecordType, string relativeRecordSetName, ETag? ifMatch) { var message = _pipeline.CreateMessage(); @@ -335,6 +389,24 @@ public Response Delete(string subscriptionId, string resourceGroupName, string z } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string zoneName, DnsRecordType dnsRecordType, string relativeRecordSetName) + { + 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.Network/dnsZones/", false); + uri.AppendPath(zoneName, true); + uri.AppendPath("/", false); + uri.AppendPath(dnsRecordType.ToSerialString(), true); + uri.AppendPath("/", false); + uri.AppendPath(relativeRecordSetName, false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string zoneName, DnsRecordType dnsRecordType, string relativeRecordSetName) { var message = _pipeline.CreateMessage(); @@ -427,6 +499,30 @@ public Response Get(string subscriptionId, string resourceGroupNa } } + internal RequestUriBuilder CreateListByTypeRequestUri(string subscriptionId, string resourceGroupName, string zoneName, DnsRecordType dnsRecordType, int? top, string recordsetnamesuffix) + { + 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.Network/dnsZones/", false); + uri.AppendPath(zoneName, true); + uri.AppendPath("/", false); + uri.AppendPath(dnsRecordType.ToSerialString(), true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (recordsetnamesuffix != null) + { + uri.AppendQuery("$recordsetnamesuffix", recordsetnamesuffix, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByTypeRequest(string subscriptionId, string resourceGroupName, string zoneName, DnsRecordType dnsRecordType, int? top, string recordsetnamesuffix) { var message = _pipeline.CreateMessage(); @@ -521,6 +617,29 @@ public Response ListByType(string subscriptionId, string re } } + internal RequestUriBuilder CreateListByDnsZoneRequestUri(string subscriptionId, string resourceGroupName, string zoneName, int? top, string recordsetnamesuffix) + { + 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.Network/dnsZones/", false); + uri.AppendPath(zoneName, true); + uri.AppendPath("/recordsets", false); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (recordsetnamesuffix != null) + { + uri.AppendQuery("$recordsetnamesuffix", recordsetnamesuffix, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByDnsZoneRequest(string subscriptionId, string resourceGroupName, string zoneName, int? top, string recordsetnamesuffix) { var message = _pipeline.CreateMessage(); @@ -612,6 +731,14 @@ public Response ListByDnsZone(string subscriptionId, string } } + internal RequestUriBuilder CreateListByTypeNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string zoneName, DnsRecordType dnsRecordType, int? top, string recordsetnamesuffix) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByTypeNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string zoneName, DnsRecordType dnsRecordType, int? top, string recordsetnamesuffix) { var message = _pipeline.CreateMessage(); @@ -694,6 +821,14 @@ public Response ListByTypeNextPage(string nextLink, string } } + internal RequestUriBuilder CreateListByDnsZoneNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string zoneName, int? top, string recordsetnamesuffix) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByDnsZoneNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string zoneName, int? top, string recordsetnamesuffix) { var message = _pipeline.CreateMessage(); diff --git a/sdk/dns/Azure.ResourceManager.Dns/src/Generated/RestOperations/ZonesRestOperations.cs b/sdk/dns/Azure.ResourceManager.Dns/src/Generated/RestOperations/ZonesRestOperations.cs index 9f51c11f907a..bf1e07a3b0b5 100644 --- a/sdk/dns/Azure.ResourceManager.Dns/src/Generated/RestOperations/ZonesRestOperations.cs +++ b/sdk/dns/Azure.ResourceManager.Dns/src/Generated/RestOperations/ZonesRestOperations.cs @@ -37,6 +37,20 @@ public ZonesRestOperations(HttpPipeline pipeline, string applicationId, Uri endp _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string zoneName, DnsZoneData data, ETag? ifMatch, string ifNoneMatch) + { + 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.Network/dnsZones/", false); + uri.AppendPath(zoneName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string zoneName, DnsZoneData data, ETag? ifMatch, string ifNoneMatch) { var message = _pipeline.CreateMessage(); @@ -137,6 +151,20 @@ public Response CreateOrUpdate(string subscriptionId, string resour } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string zoneName, ETag? ifMatch) + { + 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.Network/dnsZones/", false); + uri.AppendPath(zoneName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string zoneName, ETag? ifMatch) { var message = _pipeline.CreateMessage(); @@ -215,6 +243,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string z } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string zoneName) + { + 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.Network/dnsZones/", false); + uri.AppendPath(zoneName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string zoneName) { var message = _pipeline.CreateMessage(); @@ -297,6 +339,20 @@ public Response Get(string subscriptionId, string resourceGroupName } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string zoneName, DnsZonePatch patch, ETag? ifMatch) + { + 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.Network/dnsZones/", false); + uri.AppendPath(zoneName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string zoneName, DnsZonePatch patch, ETag? ifMatch) { var message = _pipeline.CreateMessage(); @@ -389,6 +445,23 @@ public Response Update(string subscriptionId, string resourceGroupN } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName, int? top) + { + 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.Network/dnsZones", false); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName, int? top) { var message = _pipeline.CreateMessage(); @@ -468,6 +541,21 @@ public Response ListByResourceGroup(string subscriptionId, st } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Network/dnszones", false); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, int? top) { var message = _pipeline.CreateMessage(); @@ -541,6 +629,14 @@ public Response List(string subscriptionId, int? top = null, } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, int? top) { var message = _pipeline.CreateMessage(); @@ -615,6 +711,14 @@ public Response ListByResourceGroupNextPage(string nextLink, } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, int? top) { var message = _pipeline.CreateMessage(); diff --git a/sdk/dnsresolver/Azure.ResourceManager.DnsResolver/src/Generated/DnsForwardingRuleCollection.cs b/sdk/dnsresolver/Azure.ResourceManager.DnsResolver/src/Generated/DnsForwardingRuleCollection.cs index e1511e329fba..d478784d062e 100644 --- a/sdk/dnsresolver/Azure.ResourceManager.DnsResolver/src/Generated/DnsForwardingRuleCollection.cs +++ b/sdk/dnsresolver/Azure.ResourceManager.DnsResolver/src/Generated/DnsForwardingRuleCollection.cs @@ -92,7 +92,9 @@ public virtual async Task> CreateOrUpdat try { var response = await _dnsForwardingRuleForwardingRulesRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, forwardingRuleName, data, ifMatch, ifNoneMatch, cancellationToken).ConfigureAwait(false); - var operation = new DnsResolverArmOperation(Response.FromValue(new DnsForwardingRuleResource(Client, response), response.GetRawResponse())); + var uri = _dnsForwardingRuleForwardingRulesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, forwardingRuleName, data, ifMatch, ifNoneMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DnsResolverArmOperation(Response.FromValue(new DnsForwardingRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -143,7 +145,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil try { var response = _dnsForwardingRuleForwardingRulesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, forwardingRuleName, data, ifMatch, ifNoneMatch, cancellationToken); - var operation = new DnsResolverArmOperation(Response.FromValue(new DnsForwardingRuleResource(Client, response), response.GetRawResponse())); + var uri = _dnsForwardingRuleForwardingRulesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, forwardingRuleName, data, ifMatch, ifNoneMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DnsResolverArmOperation(Response.FromValue(new DnsForwardingRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/dnsresolver/Azure.ResourceManager.DnsResolver/src/Generated/DnsForwardingRuleResource.cs b/sdk/dnsresolver/Azure.ResourceManager.DnsResolver/src/Generated/DnsForwardingRuleResource.cs index ff6ee9862fb9..6df7bd226289 100644 --- a/sdk/dnsresolver/Azure.ResourceManager.DnsResolver/src/Generated/DnsForwardingRuleResource.cs +++ b/sdk/dnsresolver/Azure.ResourceManager.DnsResolver/src/Generated/DnsForwardingRuleResource.cs @@ -202,7 +202,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, string try { var response = await _dnsForwardingRuleForwardingRulesRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch, cancellationToken).ConfigureAwait(false); - var operation = new DnsResolverArmOperation(response); + var uri = _dnsForwardingRuleForwardingRulesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DnsResolverArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -245,7 +247,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, string ifMatch = null, C try { var response = _dnsForwardingRuleForwardingRulesRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch, cancellationToken); - var operation = new DnsResolverArmOperation(response); + var uri = _dnsForwardingRuleForwardingRulesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new DnsResolverArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/dnsresolver/Azure.ResourceManager.DnsResolver/src/Generated/LongRunningOperation/DnsResolverArmOperation.cs b/sdk/dnsresolver/Azure.ResourceManager.DnsResolver/src/Generated/LongRunningOperation/DnsResolverArmOperation.cs index c02fbe597604..5f94a8b0a292 100644 --- a/sdk/dnsresolver/Azure.ResourceManager.DnsResolver/src/Generated/LongRunningOperation/DnsResolverArmOperation.cs +++ b/sdk/dnsresolver/Azure.ResourceManager.DnsResolver/src/Generated/LongRunningOperation/DnsResolverArmOperation.cs @@ -20,21 +20,24 @@ internal class DnsResolverArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of DnsResolverArmOperation for mocking. protected DnsResolverArmOperation() { } - internal DnsResolverArmOperation(Response response) + internal DnsResolverArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal DnsResolverArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "DnsResolverArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal DnsResolverArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeli public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/dnsresolver/Azure.ResourceManager.DnsResolver/src/Generated/LongRunningOperation/DnsResolverArmOperationOfT.cs b/sdk/dnsresolver/Azure.ResourceManager.DnsResolver/src/Generated/LongRunningOperation/DnsResolverArmOperationOfT.cs index db45f68476b8..3996395d3734 100644 --- a/sdk/dnsresolver/Azure.ResourceManager.DnsResolver/src/Generated/LongRunningOperation/DnsResolverArmOperationOfT.cs +++ b/sdk/dnsresolver/Azure.ResourceManager.DnsResolver/src/Generated/LongRunningOperation/DnsResolverArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class DnsResolverArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of DnsResolverArmOperation for mocking. protected DnsResolverArmOperation() { } - internal DnsResolverArmOperation(Response response) + internal DnsResolverArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal DnsResolverArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "DnsResolverArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal DnsResolverArmOperation(IOperationSource source, ClientDiagnostics c public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/dnsresolver/Azure.ResourceManager.DnsResolver/src/Generated/Models/DnsForwardingRuleResource.Serialization.cs b/sdk/dnsresolver/Azure.ResourceManager.DnsResolver/src/Generated/Models/DnsForwardingRuleResource.Serialization.cs new file mode 100644 index 000000000000..e9202cd72e4e --- /dev/null +++ b/sdk/dnsresolver/Azure.ResourceManager.DnsResolver/src/Generated/Models/DnsForwardingRuleResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DnsResolver +{ + public partial class DnsForwardingRuleResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DnsForwardingRuleData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DnsForwardingRuleData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/dnsresolver/Azure.ResourceManager.DnsResolver/src/Generated/Models/DnsForwardingRulesetResource.Serialization.cs b/sdk/dnsresolver/Azure.ResourceManager.DnsResolver/src/Generated/Models/DnsForwardingRulesetResource.Serialization.cs new file mode 100644 index 000000000000..f24b6fd278eb --- /dev/null +++ b/sdk/dnsresolver/Azure.ResourceManager.DnsResolver/src/Generated/Models/DnsForwardingRulesetResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DnsResolver +{ + public partial class DnsForwardingRulesetResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DnsForwardingRulesetData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DnsForwardingRulesetData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/dnsresolver/Azure.ResourceManager.DnsResolver/src/Generated/Models/DnsForwardingRulesetVirtualNetworkLinkResource.Serialization.cs b/sdk/dnsresolver/Azure.ResourceManager.DnsResolver/src/Generated/Models/DnsForwardingRulesetVirtualNetworkLinkResource.Serialization.cs new file mode 100644 index 000000000000..f9dcf7f29188 --- /dev/null +++ b/sdk/dnsresolver/Azure.ResourceManager.DnsResolver/src/Generated/Models/DnsForwardingRulesetVirtualNetworkLinkResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DnsResolver +{ + public partial class DnsForwardingRulesetVirtualNetworkLinkResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DnsForwardingRulesetVirtualNetworkLinkData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DnsForwardingRulesetVirtualNetworkLinkData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/dnsresolver/Azure.ResourceManager.DnsResolver/src/Generated/Models/DnsResolverInboundEndpointResource.Serialization.cs b/sdk/dnsresolver/Azure.ResourceManager.DnsResolver/src/Generated/Models/DnsResolverInboundEndpointResource.Serialization.cs new file mode 100644 index 000000000000..d6ff3b3925c0 --- /dev/null +++ b/sdk/dnsresolver/Azure.ResourceManager.DnsResolver/src/Generated/Models/DnsResolverInboundEndpointResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DnsResolver +{ + public partial class DnsResolverInboundEndpointResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DnsResolverInboundEndpointData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DnsResolverInboundEndpointData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/dnsresolver/Azure.ResourceManager.DnsResolver/src/Generated/Models/DnsResolverOutboundEndpointResource.Serialization.cs b/sdk/dnsresolver/Azure.ResourceManager.DnsResolver/src/Generated/Models/DnsResolverOutboundEndpointResource.Serialization.cs new file mode 100644 index 000000000000..d5ab66023144 --- /dev/null +++ b/sdk/dnsresolver/Azure.ResourceManager.DnsResolver/src/Generated/Models/DnsResolverOutboundEndpointResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DnsResolver +{ + public partial class DnsResolverOutboundEndpointResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DnsResolverOutboundEndpointData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DnsResolverOutboundEndpointData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/dnsresolver/Azure.ResourceManager.DnsResolver/src/Generated/Models/DnsResolverResource.Serialization.cs b/sdk/dnsresolver/Azure.ResourceManager.DnsResolver/src/Generated/Models/DnsResolverResource.Serialization.cs new file mode 100644 index 000000000000..2af763cda404 --- /dev/null +++ b/sdk/dnsresolver/Azure.ResourceManager.DnsResolver/src/Generated/Models/DnsResolverResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.DnsResolver +{ + public partial class DnsResolverResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DnsResolverData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DnsResolverData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/dnsresolver/Azure.ResourceManager.DnsResolver/src/Generated/RestOperations/DnsForwardingRulesetsRestOperations.cs b/sdk/dnsresolver/Azure.ResourceManager.DnsResolver/src/Generated/RestOperations/DnsForwardingRulesetsRestOperations.cs index 6001d1ab3d53..2f51c9dc0fc4 100644 --- a/sdk/dnsresolver/Azure.ResourceManager.DnsResolver/src/Generated/RestOperations/DnsForwardingRulesetsRestOperations.cs +++ b/sdk/dnsresolver/Azure.ResourceManager.DnsResolver/src/Generated/RestOperations/DnsForwardingRulesetsRestOperations.cs @@ -37,6 +37,20 @@ public DnsForwardingRulesetsRestOperations(HttpPipeline pipeline, string applica _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string rulesetName, DnsForwardingRulesetData data, string ifMatch, string ifNoneMatch) + { + 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.Network/dnsForwardingRulesets/", false); + uri.AppendPath(rulesetName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string rulesetName, DnsForwardingRulesetData data, string ifMatch, string ifNoneMatch) { var message = _pipeline.CreateMessage(); @@ -129,6 +143,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string rulesetName, DnsForwardingRulesetPatch patch, string ifMatch) + { + 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.Network/dnsForwardingRulesets/", false); + uri.AppendPath(rulesetName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string rulesetName, DnsForwardingRulesetPatch patch, string ifMatch) { var message = _pipeline.CreateMessage(); @@ -213,6 +241,20 @@ public Response Update(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string rulesetName, string ifMatch) + { + 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.Network/dnsForwardingRulesets/", false); + uri.AppendPath(rulesetName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string rulesetName, string ifMatch) { var message = _pipeline.CreateMessage(); @@ -291,6 +333,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string rulesetName) + { + 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.Network/dnsForwardingRulesets/", false); + uri.AppendPath(rulesetName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string rulesetName) { var message = _pipeline.CreateMessage(); @@ -373,6 +429,23 @@ public Response Get(string subscriptionId, string reso } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName, int? top) + { + 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.Network/dnsForwardingRulesets", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName, int? top) { var message = _pipeline.CreateMessage(); @@ -452,6 +525,21 @@ public Response ListByResourceGroup(string subsc } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Network/dnsForwardingRulesets", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, int? top) { var message = _pipeline.CreateMessage(); @@ -525,6 +613,25 @@ public Response List(string subscriptionId, int? } } + internal RequestUriBuilder CreateListByVirtualNetworkRequestUri(string subscriptionId, string resourceGroupName, string virtualNetworkName, int? top) + { + 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.Network/virtualNetworks/", false); + uri.AppendPath(virtualNetworkName, true); + uri.AppendPath("/listDnsForwardingRulesets", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + return uri; + } + internal HttpMessage CreateListByVirtualNetworkRequest(string subscriptionId, string resourceGroupName, string virtualNetworkName, int? top) { var message = _pipeline.CreateMessage(); @@ -610,6 +717,14 @@ public Response ListByVirtualNetwo } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, int? top) { var message = _pipeline.CreateMessage(); @@ -684,6 +799,14 @@ public Response ListByResourceGroupNextPage(stri } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, int? top) { var message = _pipeline.CreateMessage(); @@ -754,6 +877,14 @@ public Response ListNextPage(string nextLink, st } } + internal RequestUriBuilder CreateListByVirtualNetworkNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string virtualNetworkName, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByVirtualNetworkNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string virtualNetworkName, int? top) { var message = _pipeline.CreateMessage(); diff --git a/sdk/dnsresolver/Azure.ResourceManager.DnsResolver/src/Generated/RestOperations/DnsResolversRestOperations.cs b/sdk/dnsresolver/Azure.ResourceManager.DnsResolver/src/Generated/RestOperations/DnsResolversRestOperations.cs index 94d6ebdd0816..991be0f7104f 100644 --- a/sdk/dnsresolver/Azure.ResourceManager.DnsResolver/src/Generated/RestOperations/DnsResolversRestOperations.cs +++ b/sdk/dnsresolver/Azure.ResourceManager.DnsResolver/src/Generated/RestOperations/DnsResolversRestOperations.cs @@ -37,6 +37,20 @@ public DnsResolversRestOperations(HttpPipeline pipeline, string applicationId, U _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string dnsResolverName, DnsResolverData data, string ifMatch, string ifNoneMatch) + { + 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.Network/dnsResolvers/", false); + uri.AppendPath(dnsResolverName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string dnsResolverName, DnsResolverData data, string ifMatch, string ifNoneMatch) { var message = _pipeline.CreateMessage(); @@ -129,6 +143,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string dnsResolverName, DnsResolverPatch patch, string ifMatch) + { + 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.Network/dnsResolvers/", false); + uri.AppendPath(dnsResolverName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string dnsResolverName, DnsResolverPatch patch, string ifMatch) { var message = _pipeline.CreateMessage(); @@ -213,6 +241,20 @@ public Response Update(string subscriptionId, string resourceGroupName, string d } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string dnsResolverName, string ifMatch) + { + 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.Network/dnsResolvers/", false); + uri.AppendPath(dnsResolverName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string dnsResolverName, string ifMatch) { var message = _pipeline.CreateMessage(); @@ -291,6 +333,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string d } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string dnsResolverName) + { + 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.Network/dnsResolvers/", false); + uri.AppendPath(dnsResolverName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string dnsResolverName) { var message = _pipeline.CreateMessage(); @@ -373,6 +429,23 @@ public Response Get(string subscriptionId, string resourceGroup } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName, int? top) + { + 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.Network/dnsResolvers", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName, int? top) { var message = _pipeline.CreateMessage(); @@ -452,6 +525,21 @@ public Response ListByResourceGroup(string subscriptionId } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Network/dnsResolvers", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, int? top) { var message = _pipeline.CreateMessage(); @@ -525,6 +613,25 @@ public Response List(string subscriptionId, int? top = nu } } + internal RequestUriBuilder CreateListByVirtualNetworkRequestUri(string subscriptionId, string resourceGroupName, string virtualNetworkName, int? top) + { + 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.Network/virtualNetworks/", false); + uri.AppendPath(virtualNetworkName, true); + uri.AppendPath("/listDnsResolvers", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + return uri; + } + internal HttpMessage CreateListByVirtualNetworkRequest(string subscriptionId, string resourceGroupName, string virtualNetworkName, int? top) { var message = _pipeline.CreateMessage(); @@ -610,6 +717,14 @@ public Response ListByVirtualNetwork(string subscriptionI } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, int? top) { var message = _pipeline.CreateMessage(); @@ -684,6 +799,14 @@ public Response ListByResourceGroupNextPage(string nextLi } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, int? top) { var message = _pipeline.CreateMessage(); @@ -754,6 +877,14 @@ public Response ListNextPage(string nextLink, string subs } } + internal RequestUriBuilder CreateListByVirtualNetworkNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string virtualNetworkName, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByVirtualNetworkNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string virtualNetworkName, int? top) { var message = _pipeline.CreateMessage(); diff --git a/sdk/dnsresolver/Azure.ResourceManager.DnsResolver/src/Generated/RestOperations/ForwardingRulesRestOperations.cs b/sdk/dnsresolver/Azure.ResourceManager.DnsResolver/src/Generated/RestOperations/ForwardingRulesRestOperations.cs index 1d76a2c9b8eb..62f71f0c9f67 100644 --- a/sdk/dnsresolver/Azure.ResourceManager.DnsResolver/src/Generated/RestOperations/ForwardingRulesRestOperations.cs +++ b/sdk/dnsresolver/Azure.ResourceManager.DnsResolver/src/Generated/RestOperations/ForwardingRulesRestOperations.cs @@ -37,6 +37,22 @@ public ForwardingRulesRestOperations(HttpPipeline pipeline, string applicationId _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string rulesetName, string forwardingRuleName, DnsForwardingRuleData data, string ifMatch, string ifNoneMatch) + { + 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.Network/dnsForwardingRulesets/", false); + uri.AppendPath(rulesetName, true); + uri.AppendPath("/forwardingRules/", false); + uri.AppendPath(forwardingRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string rulesetName, string forwardingRuleName, DnsForwardingRuleData data, string ifMatch, string ifNoneMatch) { var message = _pipeline.CreateMessage(); @@ -143,6 +159,22 @@ public Response CreateOrUpdate(string subscriptionId, str } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string rulesetName, string forwardingRuleName, DnsForwardingRulePatch patch, string ifMatch) + { + 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.Network/dnsForwardingRulesets/", false); + uri.AppendPath(rulesetName, true); + uri.AppendPath("/forwardingRules/", false); + uri.AppendPath(forwardingRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string rulesetName, string forwardingRuleName, DnsForwardingRulePatch patch, string ifMatch) { var message = _pipeline.CreateMessage(); @@ -241,6 +273,22 @@ public Response Update(string subscriptionId, string reso } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string rulesetName, string forwardingRuleName, string ifMatch) + { + 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.Network/dnsForwardingRulesets/", false); + uri.AppendPath(rulesetName, true); + uri.AppendPath("/forwardingRules/", false); + uri.AppendPath(forwardingRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string rulesetName, string forwardingRuleName, string ifMatch) { var message = _pipeline.CreateMessage(); @@ -323,6 +371,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string rulesetName, string forwardingRuleName) + { + 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.Network/dnsForwardingRulesets/", false); + uri.AppendPath(rulesetName, true); + uri.AppendPath("/forwardingRules/", false); + uri.AppendPath(forwardingRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string rulesetName, string forwardingRuleName) { var message = _pipeline.CreateMessage(); @@ -411,6 +475,25 @@ public Response Get(string subscriptionId, string resourc } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string rulesetName, int? top) + { + 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.Network/dnsForwardingRulesets/", false); + uri.AppendPath(rulesetName, true); + uri.AppendPath("/forwardingRules", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string rulesetName, int? top) { var message = _pipeline.CreateMessage(); @@ -496,6 +579,14 @@ public Response List(string subscriptionId, string res } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string rulesetName, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string rulesetName, int? top) { var message = _pipeline.CreateMessage(); diff --git a/sdk/dnsresolver/Azure.ResourceManager.DnsResolver/src/Generated/RestOperations/InboundEndpointsRestOperations.cs b/sdk/dnsresolver/Azure.ResourceManager.DnsResolver/src/Generated/RestOperations/InboundEndpointsRestOperations.cs index 3ee4acc486b6..64c0629f65b8 100644 --- a/sdk/dnsresolver/Azure.ResourceManager.DnsResolver/src/Generated/RestOperations/InboundEndpointsRestOperations.cs +++ b/sdk/dnsresolver/Azure.ResourceManager.DnsResolver/src/Generated/RestOperations/InboundEndpointsRestOperations.cs @@ -37,6 +37,22 @@ public InboundEndpointsRestOperations(HttpPipeline pipeline, string applicationI _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string dnsResolverName, string inboundEndpointName, DnsResolverInboundEndpointData data, string ifMatch, string ifNoneMatch) + { + 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.Network/dnsResolvers/", false); + uri.AppendPath(dnsResolverName, true); + uri.AppendPath("/inboundEndpoints/", false); + uri.AppendPath(inboundEndpointName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string dnsResolverName, string inboundEndpointName, DnsResolverInboundEndpointData data, string ifMatch, string ifNoneMatch) { var message = _pipeline.CreateMessage(); @@ -135,6 +151,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string dnsResolverName, string inboundEndpointName, DnsResolverInboundEndpointPatch patch, string ifMatch) + { + 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.Network/dnsResolvers/", false); + uri.AppendPath(dnsResolverName, true); + uri.AppendPath("/inboundEndpoints/", false); + uri.AppendPath(inboundEndpointName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string dnsResolverName, string inboundEndpointName, DnsResolverInboundEndpointPatch patch, string ifMatch) { var message = _pipeline.CreateMessage(); @@ -225,6 +257,22 @@ public Response Update(string subscriptionId, string resourceGroupName, string d } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string dnsResolverName, string inboundEndpointName, string ifMatch) + { + 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.Network/dnsResolvers/", false); + uri.AppendPath(dnsResolverName, true); + uri.AppendPath("/inboundEndpoints/", false); + uri.AppendPath(inboundEndpointName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string dnsResolverName, string inboundEndpointName, string ifMatch) { var message = _pipeline.CreateMessage(); @@ -309,6 +357,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string d } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string dnsResolverName, string inboundEndpointName) + { + 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.Network/dnsResolvers/", false); + uri.AppendPath(dnsResolverName, true); + uri.AppendPath("/inboundEndpoints/", false); + uri.AppendPath(inboundEndpointName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string dnsResolverName, string inboundEndpointName) { var message = _pipeline.CreateMessage(); @@ -397,6 +461,25 @@ public Response Get(string subscriptionId, strin } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string dnsResolverName, int? top) + { + 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.Network/dnsResolvers/", false); + uri.AppendPath(dnsResolverName, true); + uri.AppendPath("/inboundEndpoints", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string dnsResolverName, int? top) { var message = _pipeline.CreateMessage(); @@ -482,6 +565,14 @@ public Response List(string subscriptionId, string re } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string dnsResolverName, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string dnsResolverName, int? top) { var message = _pipeline.CreateMessage(); diff --git a/sdk/dnsresolver/Azure.ResourceManager.DnsResolver/src/Generated/RestOperations/OutboundEndpointsRestOperations.cs b/sdk/dnsresolver/Azure.ResourceManager.DnsResolver/src/Generated/RestOperations/OutboundEndpointsRestOperations.cs index a89127b1a8d2..e02993e16b7a 100644 --- a/sdk/dnsresolver/Azure.ResourceManager.DnsResolver/src/Generated/RestOperations/OutboundEndpointsRestOperations.cs +++ b/sdk/dnsresolver/Azure.ResourceManager.DnsResolver/src/Generated/RestOperations/OutboundEndpointsRestOperations.cs @@ -37,6 +37,22 @@ public OutboundEndpointsRestOperations(HttpPipeline pipeline, string application _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string dnsResolverName, string outboundEndpointName, DnsResolverOutboundEndpointData data, string ifMatch, string ifNoneMatch) + { + 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.Network/dnsResolvers/", false); + uri.AppendPath(dnsResolverName, true); + uri.AppendPath("/outboundEndpoints/", false); + uri.AppendPath(outboundEndpointName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string dnsResolverName, string outboundEndpointName, DnsResolverOutboundEndpointData data, string ifMatch, string ifNoneMatch) { var message = _pipeline.CreateMessage(); @@ -135,6 +151,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string dnsResolverName, string outboundEndpointName, DnsResolverOutboundEndpointPatch patch, string ifMatch) + { + 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.Network/dnsResolvers/", false); + uri.AppendPath(dnsResolverName, true); + uri.AppendPath("/outboundEndpoints/", false); + uri.AppendPath(outboundEndpointName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string dnsResolverName, string outboundEndpointName, DnsResolverOutboundEndpointPatch patch, string ifMatch) { var message = _pipeline.CreateMessage(); @@ -225,6 +257,22 @@ public Response Update(string subscriptionId, string resourceGroupName, string d } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string dnsResolverName, string outboundEndpointName, string ifMatch) + { + 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.Network/dnsResolvers/", false); + uri.AppendPath(dnsResolverName, true); + uri.AppendPath("/outboundEndpoints/", false); + uri.AppendPath(outboundEndpointName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string dnsResolverName, string outboundEndpointName, string ifMatch) { var message = _pipeline.CreateMessage(); @@ -309,6 +357,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string d } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string dnsResolverName, string outboundEndpointName) + { + 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.Network/dnsResolvers/", false); + uri.AppendPath(dnsResolverName, true); + uri.AppendPath("/outboundEndpoints/", false); + uri.AppendPath(outboundEndpointName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string dnsResolverName, string outboundEndpointName) { var message = _pipeline.CreateMessage(); @@ -397,6 +461,25 @@ public Response Get(string subscriptionId, stri } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string dnsResolverName, int? top) + { + 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.Network/dnsResolvers/", false); + uri.AppendPath(dnsResolverName, true); + uri.AppendPath("/outboundEndpoints", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string dnsResolverName, int? top) { var message = _pipeline.CreateMessage(); @@ -482,6 +565,14 @@ public Response List(string subscriptionId, string r } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string dnsResolverName, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string dnsResolverName, int? top) { var message = _pipeline.CreateMessage(); diff --git a/sdk/dnsresolver/Azure.ResourceManager.DnsResolver/src/Generated/RestOperations/VirtualNetworkLinksRestOperations.cs b/sdk/dnsresolver/Azure.ResourceManager.DnsResolver/src/Generated/RestOperations/VirtualNetworkLinksRestOperations.cs index efa801a488a1..d97b03e9053a 100644 --- a/sdk/dnsresolver/Azure.ResourceManager.DnsResolver/src/Generated/RestOperations/VirtualNetworkLinksRestOperations.cs +++ b/sdk/dnsresolver/Azure.ResourceManager.DnsResolver/src/Generated/RestOperations/VirtualNetworkLinksRestOperations.cs @@ -37,6 +37,22 @@ public VirtualNetworkLinksRestOperations(HttpPipeline pipeline, string applicati _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string rulesetName, string virtualNetworkLinkName, DnsForwardingRulesetVirtualNetworkLinkData data, string ifMatch, string ifNoneMatch) + { + 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.Network/dnsForwardingRulesets/", false); + uri.AppendPath(rulesetName, true); + uri.AppendPath("/virtualNetworkLinks/", false); + uri.AppendPath(virtualNetworkLinkName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string rulesetName, string virtualNetworkLinkName, DnsForwardingRulesetVirtualNetworkLinkData data, string ifMatch, string ifNoneMatch) { var message = _pipeline.CreateMessage(); @@ -135,6 +151,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string rulesetName, string virtualNetworkLinkName, DnsForwardingRulesetVirtualNetworkLinkPatch patch, string ifMatch) + { + 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.Network/dnsForwardingRulesets/", false); + uri.AppendPath(rulesetName, true); + uri.AppendPath("/virtualNetworkLinks/", false); + uri.AppendPath(virtualNetworkLinkName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string rulesetName, string virtualNetworkLinkName, DnsForwardingRulesetVirtualNetworkLinkPatch patch, string ifMatch) { var message = _pipeline.CreateMessage(); @@ -225,6 +257,22 @@ public Response Update(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string rulesetName, string virtualNetworkLinkName, string ifMatch) + { + 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.Network/dnsForwardingRulesets/", false); + uri.AppendPath(rulesetName, true); + uri.AppendPath("/virtualNetworkLinks/", false); + uri.AppendPath(virtualNetworkLinkName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string rulesetName, string virtualNetworkLinkName, string ifMatch) { var message = _pipeline.CreateMessage(); @@ -309,6 +357,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string rulesetName, string virtualNetworkLinkName) + { + 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.Network/dnsForwardingRulesets/", false); + uri.AppendPath(rulesetName, true); + uri.AppendPath("/virtualNetworkLinks/", false); + uri.AppendPath(virtualNetworkLinkName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string rulesetName, string virtualNetworkLinkName) { var message = _pipeline.CreateMessage(); @@ -397,6 +461,25 @@ public Response Get(string subscript } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string rulesetName, int? top) + { + 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.Network/dnsForwardingRulesets/", false); + uri.AppendPath(rulesetName, true); + uri.AppendPath("/virtualNetworkLinks", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string rulesetName, int? top) { var message = _pipeline.CreateMessage(); @@ -482,6 +565,14 @@ public Response List(string subscriptionId, string } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string rulesetName, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string rulesetName, int? top) { var message = _pipeline.CreateMessage(); diff --git a/sdk/dynatrace/Azure.ResourceManager.Dynatrace/src/Generated/LongRunningOperation/DynatraceArmOperation.cs b/sdk/dynatrace/Azure.ResourceManager.Dynatrace/src/Generated/LongRunningOperation/DynatraceArmOperation.cs index ea49eee70626..0b51609246ad 100644 --- a/sdk/dynatrace/Azure.ResourceManager.Dynatrace/src/Generated/LongRunningOperation/DynatraceArmOperation.cs +++ b/sdk/dynatrace/Azure.ResourceManager.Dynatrace/src/Generated/LongRunningOperation/DynatraceArmOperation.cs @@ -20,21 +20,24 @@ internal class DynatraceArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of DynatraceArmOperation for mocking. protected DynatraceArmOperation() { } - internal DynatraceArmOperation(Response response) + internal DynatraceArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal DynatraceArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "DynatraceArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal DynatraceArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/dynatrace/Azure.ResourceManager.Dynatrace/src/Generated/LongRunningOperation/DynatraceArmOperationOfT.cs b/sdk/dynatrace/Azure.ResourceManager.Dynatrace/src/Generated/LongRunningOperation/DynatraceArmOperationOfT.cs index d4208cd55b3b..a42a344d23b6 100644 --- a/sdk/dynatrace/Azure.ResourceManager.Dynatrace/src/Generated/LongRunningOperation/DynatraceArmOperationOfT.cs +++ b/sdk/dynatrace/Azure.ResourceManager.Dynatrace/src/Generated/LongRunningOperation/DynatraceArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class DynatraceArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of DynatraceArmOperation for mocking. protected DynatraceArmOperation() { } - internal DynatraceArmOperation(Response response) + internal DynatraceArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal DynatraceArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "DynatraceArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal DynatraceArmOperation(IOperationSource source, ClientDiagnostics cli public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/dynatrace/Azure.ResourceManager.Dynatrace/src/Generated/Models/DynatraceMonitorResource.Serialization.cs b/sdk/dynatrace/Azure.ResourceManager.Dynatrace/src/Generated/Models/DynatraceMonitorResource.Serialization.cs new file mode 100644 index 000000000000..7251635aff51 --- /dev/null +++ b/sdk/dynatrace/Azure.ResourceManager.Dynatrace/src/Generated/Models/DynatraceMonitorResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Dynatrace +{ + public partial class DynatraceMonitorResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DynatraceMonitorData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DynatraceMonitorData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/dynatrace/Azure.ResourceManager.Dynatrace/src/Generated/Models/DynatraceSingleSignOnResource.Serialization.cs b/sdk/dynatrace/Azure.ResourceManager.Dynatrace/src/Generated/Models/DynatraceSingleSignOnResource.Serialization.cs new file mode 100644 index 000000000000..17946137e1d2 --- /dev/null +++ b/sdk/dynatrace/Azure.ResourceManager.Dynatrace/src/Generated/Models/DynatraceSingleSignOnResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Dynatrace +{ + public partial class DynatraceSingleSignOnResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DynatraceSingleSignOnData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DynatraceSingleSignOnData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/dynatrace/Azure.ResourceManager.Dynatrace/src/Generated/Models/DynatraceTagRuleResource.Serialization.cs b/sdk/dynatrace/Azure.ResourceManager.Dynatrace/src/Generated/Models/DynatraceTagRuleResource.Serialization.cs new file mode 100644 index 000000000000..aa417e7fad0c --- /dev/null +++ b/sdk/dynatrace/Azure.ResourceManager.Dynatrace/src/Generated/Models/DynatraceTagRuleResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Dynatrace +{ + public partial class DynatraceTagRuleResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DynatraceTagRuleData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DynatraceTagRuleData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/dynatrace/Azure.ResourceManager.Dynatrace/src/Generated/RestOperations/MonitorsRestOperations.cs b/sdk/dynatrace/Azure.ResourceManager.Dynatrace/src/Generated/RestOperations/MonitorsRestOperations.cs index 9b1feb3cba1f..23e01da2648e 100644 --- a/sdk/dynatrace/Azure.ResourceManager.Dynatrace/src/Generated/RestOperations/MonitorsRestOperations.cs +++ b/sdk/dynatrace/Azure.ResourceManager.Dynatrace/src/Generated/RestOperations/MonitorsRestOperations.cs @@ -37,6 +37,21 @@ public MonitorsRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetAccountCredentialsRequestUri(string subscriptionId, string resourceGroupName, string monitorName) + { + 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/Dynatrace.Observability/monitors/", false); + uri.AppendPath(monitorName, true); + uri.AppendPath("/getAccountCredentials", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetAccountCredentialsRequest(string subscriptionId, string resourceGroupName, string monitorName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,21 @@ public Response GetAccountCredentials(string su } } + internal RequestUriBuilder CreateListMonitoredResourcesRequestUri(string subscriptionId, string resourceGroupName, string monitorName) + { + 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/Dynatrace.Observability/monitors/", false); + uri.AppendPath(monitorName, true); + uri.AppendPath("/listMonitoredResources", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListMonitoredResourcesRequest(string subscriptionId, string resourceGroupName, string monitorName) { var message = _pipeline.CreateMessage(); @@ -195,6 +225,21 @@ public Response ListMonitoredResources(string sub } } + internal RequestUriBuilder CreateGetVmHostPayloadRequestUri(string subscriptionId, string resourceGroupName, string monitorName) + { + 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/Dynatrace.Observability/monitors/", false); + uri.AppendPath(monitorName, true); + uri.AppendPath("/getVMHostPayload", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetVmHostPayloadRequest(string subscriptionId, string resourceGroupName, string monitorName) { var message = _pipeline.CreateMessage(); @@ -274,6 +319,20 @@ public Response GetVmHostPayload(string subscriptio } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string monitorName) + { + 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/Dynatrace.Observability/monitors/", false); + uri.AppendPath(monitorName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string monitorName) { var message = _pipeline.CreateMessage(); @@ -356,6 +415,20 @@ public Response Get(string subscriptionId, string resource } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string monitorName, DynatraceMonitorData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Dynatrace.Observability/monitors/", false); + uri.AppendPath(monitorName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string monitorName, DynatraceMonitorData data) { var message = _pipeline.CreateMessage(); @@ -434,6 +507,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string monitorName, DynatraceMonitorPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Dynatrace.Observability/monitors/", false); + uri.AppendPath(monitorName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string monitorName, DynatraceMonitorPatch patch) { var message = _pipeline.CreateMessage(); @@ -520,6 +607,20 @@ public Response Update(string subscriptionId, string resou } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string monitorName) + { + 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/Dynatrace.Observability/monitors/", false); + uri.AppendPath(monitorName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string monitorName) { var message = _pipeline.CreateMessage(); @@ -592,6 +693,17 @@ public Response Delete(string subscriptionId, string resourceGroupName, string m } } + internal RequestUriBuilder CreateListBySubscriptionIdRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Dynatrace.Observability/monitors", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionIdRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -659,6 +771,19 @@ public Response ListBySubscriptionId(string subscript } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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/Dynatrace.Observability/monitors", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -732,6 +857,21 @@ public Response ListByResourceGroup(string subscripti } } + internal RequestUriBuilder CreateListHostsRequestUri(string subscriptionId, string resourceGroupName, string monitorName) + { + 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/Dynatrace.Observability/monitors/", false); + uri.AppendPath(monitorName, true); + uri.AppendPath("/listHosts", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListHostsRequest(string subscriptionId, string resourceGroupName, string monitorName) { var message = _pipeline.CreateMessage(); @@ -811,6 +951,21 @@ public Response ListHosts(string subscriptionId, string res } } + internal RequestUriBuilder CreateListAppServicesRequestUri(string subscriptionId, string resourceGroupName, string monitorName) + { + 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/Dynatrace.Observability/monitors/", false); + uri.AppendPath(monitorName, true); + uri.AppendPath("/listAppServices", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListAppServicesRequest(string subscriptionId, string resourceGroupName, string monitorName) { var message = _pipeline.CreateMessage(); @@ -890,6 +1045,21 @@ public Response ListAppServices(string subscriptionId, s } } + internal RequestUriBuilder CreateGetSsoDetailsRequestUri(string subscriptionId, string resourceGroupName, string monitorName, DynatraceSsoDetailsContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Dynatrace.Observability/monitors/", false); + uri.AppendPath(monitorName, true); + uri.AppendPath("/getSSODetails", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetSsoDetailsRequest(string subscriptionId, string resourceGroupName, string monitorName, DynatraceSsoDetailsContent content) { var message = _pipeline.CreateMessage(); @@ -978,6 +1148,21 @@ public Response GetSsoDetails(string subscriptionId, } } + internal RequestUriBuilder CreateListLinkableEnvironmentsRequestUri(string subscriptionId, string resourceGroupName, string monitorName, LinkableEnvironmentContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Dynatrace.Observability/monitors/", false); + uri.AppendPath(monitorName, true); + uri.AppendPath("/listLinkableEnvironments", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListLinkableEnvironmentsRequest(string subscriptionId, string resourceGroupName, string monitorName, LinkableEnvironmentContent content) { var message = _pipeline.CreateMessage(); @@ -1065,6 +1250,14 @@ public Response ListLinkableEnvironments(string } } + internal RequestUriBuilder CreateListMonitoredResourcesNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string monitorName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListMonitoredResourcesNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string monitorName) { var message = _pipeline.CreateMessage(); @@ -1141,6 +1334,14 @@ public Response ListMonitoredResourcesNextPage(st } } + internal RequestUriBuilder CreateListBySubscriptionIdNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionIdNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -1209,6 +1410,14 @@ public Response ListBySubscriptionIdNextPage(string n } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -1281,6 +1490,14 @@ public Response ListByResourceGroupNextPage(string ne } } + internal RequestUriBuilder CreateListHostsNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string monitorName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListHostsNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string monitorName) { var message = _pipeline.CreateMessage(); @@ -1357,6 +1574,14 @@ public Response ListHostsNextPage(string nextLink, string s } } + internal RequestUriBuilder CreateListAppServicesNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string monitorName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListAppServicesNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string monitorName) { var message = _pipeline.CreateMessage(); @@ -1433,6 +1658,14 @@ public Response ListAppServicesNextPage(string nextLink, } } + internal RequestUriBuilder CreateListLinkableEnvironmentsNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string monitorName, LinkableEnvironmentContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListLinkableEnvironmentsNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string monitorName, LinkableEnvironmentContent content) { var message = _pipeline.CreateMessage(); diff --git a/sdk/dynatrace/Azure.ResourceManager.Dynatrace/src/Generated/RestOperations/SingleSignOnRestOperations.cs b/sdk/dynatrace/Azure.ResourceManager.Dynatrace/src/Generated/RestOperations/SingleSignOnRestOperations.cs index daaa125bc90d..111dfd3fef81 100644 --- a/sdk/dynatrace/Azure.ResourceManager.Dynatrace/src/Generated/RestOperations/SingleSignOnRestOperations.cs +++ b/sdk/dynatrace/Azure.ResourceManager.Dynatrace/src/Generated/RestOperations/SingleSignOnRestOperations.cs @@ -37,6 +37,22 @@ public SingleSignOnRestOperations(HttpPipeline pipeline, string applicationId, U _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string monitorName, string configurationName, DynatraceSingleSignOnData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Dynatrace.Observability/monitors/", false); + uri.AppendPath(monitorName, true); + uri.AppendPath("/singleSignOnConfigurations/", false); + uri.AppendPath(configurationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string monitorName, string configurationName, DynatraceSingleSignOnData data) { var message = _pipeline.CreateMessage(); @@ -121,6 +137,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string monitorName, string configurationName) + { + 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/Dynatrace.Observability/monitors/", false); + uri.AppendPath(monitorName, true); + uri.AppendPath("/singleSignOnConfigurations/", false); + uri.AppendPath(configurationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string monitorName, string configurationName) { var message = _pipeline.CreateMessage(); @@ -209,6 +241,21 @@ public Response Get(string subscriptionId, string res } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string monitorName) + { + 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/Dynatrace.Observability/monitors/", false); + uri.AppendPath(monitorName, true); + uri.AppendPath("/singleSignOnConfigurations", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string monitorName) { var message = _pipeline.CreateMessage(); @@ -288,6 +335,14 @@ public Response List(string subscriptio } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string monitorName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string monitorName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/dynatrace/Azure.ResourceManager.Dynatrace/src/Generated/RestOperations/TagRulesRestOperations.cs b/sdk/dynatrace/Azure.ResourceManager.Dynatrace/src/Generated/RestOperations/TagRulesRestOperations.cs index f8396df22ebe..511faf836ad8 100644 --- a/sdk/dynatrace/Azure.ResourceManager.Dynatrace/src/Generated/RestOperations/TagRulesRestOperations.cs +++ b/sdk/dynatrace/Azure.ResourceManager.Dynatrace/src/Generated/RestOperations/TagRulesRestOperations.cs @@ -37,6 +37,22 @@ public TagRulesRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string monitorName, string ruleSetName) + { + 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/Dynatrace.Observability/monitors/", false); + uri.AppendPath(monitorName, true); + uri.AppendPath("/tagRules/", false); + uri.AppendPath(ruleSetName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string monitorName, string ruleSetName) { var message = _pipeline.CreateMessage(); @@ -125,6 +141,22 @@ public Response Get(string subscriptionId, string resource } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string monitorName, string ruleSetName, DynatraceTagRuleData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Dynatrace.Observability/monitors/", false); + uri.AppendPath(monitorName, true); + uri.AppendPath("/tagRules/", false); + uri.AppendPath(ruleSetName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string monitorName, string ruleSetName, DynatraceTagRuleData data) { var message = _pipeline.CreateMessage(); @@ -209,6 +241,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string monitorName, string ruleSetName, DynatraceTagRulePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Dynatrace.Observability/monitors/", false); + uri.AppendPath(monitorName, true); + uri.AppendPath("/tagRules/", false); + uri.AppendPath(ruleSetName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string monitorName, string ruleSetName, DynatraceTagRulePatch patch) { var message = _pipeline.CreateMessage(); @@ -301,6 +349,22 @@ public Response Update(string subscriptionId, string resou } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string monitorName, string ruleSetName) + { + 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/Dynatrace.Observability/monitors/", false); + uri.AppendPath(monitorName, true); + uri.AppendPath("/tagRules/", false); + uri.AppendPath(ruleSetName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string monitorName, string ruleSetName) { var message = _pipeline.CreateMessage(); @@ -379,6 +443,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string m } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string monitorName) + { + 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/Dynatrace.Observability/monitors/", false); + uri.AppendPath(monitorName, true); + uri.AppendPath("/tagRules", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string monitorName) { var message = _pipeline.CreateMessage(); @@ -458,6 +537,14 @@ public Response List(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string monitorName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string monitorName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/edgeorder/Azure.ResourceManager.EdgeOrder/src/Generated/LongRunningOperation/EdgeOrderArmOperation.cs b/sdk/edgeorder/Azure.ResourceManager.EdgeOrder/src/Generated/LongRunningOperation/EdgeOrderArmOperation.cs index 365d8bdaecf7..ee2e8981054f 100644 --- a/sdk/edgeorder/Azure.ResourceManager.EdgeOrder/src/Generated/LongRunningOperation/EdgeOrderArmOperation.cs +++ b/sdk/edgeorder/Azure.ResourceManager.EdgeOrder/src/Generated/LongRunningOperation/EdgeOrderArmOperation.cs @@ -20,21 +20,24 @@ internal class EdgeOrderArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of EdgeOrderArmOperation for mocking. protected EdgeOrderArmOperation() { } - internal EdgeOrderArmOperation(Response response) + internal EdgeOrderArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal EdgeOrderArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "EdgeOrderArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal EdgeOrderArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/edgeorder/Azure.ResourceManager.EdgeOrder/src/Generated/LongRunningOperation/EdgeOrderArmOperationOfT.cs b/sdk/edgeorder/Azure.ResourceManager.EdgeOrder/src/Generated/LongRunningOperation/EdgeOrderArmOperationOfT.cs index 8fa4632aa60a..03b6fa920c9d 100644 --- a/sdk/edgeorder/Azure.ResourceManager.EdgeOrder/src/Generated/LongRunningOperation/EdgeOrderArmOperationOfT.cs +++ b/sdk/edgeorder/Azure.ResourceManager.EdgeOrder/src/Generated/LongRunningOperation/EdgeOrderArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class EdgeOrderArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of EdgeOrderArmOperation for mocking. protected EdgeOrderArmOperation() { } - internal EdgeOrderArmOperation(Response response) + internal EdgeOrderArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal EdgeOrderArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "EdgeOrderArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal EdgeOrderArmOperation(IOperationSource source, ClientDiagnostics cli public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/edgeorder/Azure.ResourceManager.EdgeOrder/src/Generated/Models/EdgeOrderAddressResource.Serialization.cs b/sdk/edgeorder/Azure.ResourceManager.EdgeOrder/src/Generated/Models/EdgeOrderAddressResource.Serialization.cs new file mode 100644 index 000000000000..20d6e4f3b531 --- /dev/null +++ b/sdk/edgeorder/Azure.ResourceManager.EdgeOrder/src/Generated/Models/EdgeOrderAddressResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.EdgeOrder +{ + public partial class EdgeOrderAddressResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + EdgeOrderAddressData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + EdgeOrderAddressData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/edgeorder/Azure.ResourceManager.EdgeOrder/src/Generated/Models/EdgeOrderItemResource.Serialization.cs b/sdk/edgeorder/Azure.ResourceManager.EdgeOrder/src/Generated/Models/EdgeOrderItemResource.Serialization.cs new file mode 100644 index 000000000000..e13c0c04b7b9 --- /dev/null +++ b/sdk/edgeorder/Azure.ResourceManager.EdgeOrder/src/Generated/Models/EdgeOrderItemResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.EdgeOrder +{ + public partial class EdgeOrderItemResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + EdgeOrderItemData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + EdgeOrderItemData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/edgeorder/Azure.ResourceManager.EdgeOrder/src/Generated/Models/EdgeOrderResource.Serialization.cs b/sdk/edgeorder/Azure.ResourceManager.EdgeOrder/src/Generated/Models/EdgeOrderResource.Serialization.cs new file mode 100644 index 000000000000..f067382afe35 --- /dev/null +++ b/sdk/edgeorder/Azure.ResourceManager.EdgeOrder/src/Generated/Models/EdgeOrderResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.EdgeOrder +{ + public partial class EdgeOrderResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + EdgeOrderData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + EdgeOrderData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/edgeorder/Azure.ResourceManager.EdgeOrder/src/Generated/RestOperations/EdgeOrderManagementRestOperations.cs b/sdk/edgeorder/Azure.ResourceManager.EdgeOrder/src/Generated/RestOperations/EdgeOrderManagementRestOperations.cs index fa19dd00c0b3..97e24f3a3155 100644 --- a/sdk/edgeorder/Azure.ResourceManager.EdgeOrder/src/Generated/RestOperations/EdgeOrderManagementRestOperations.cs +++ b/sdk/edgeorder/Azure.ResourceManager.EdgeOrder/src/Generated/RestOperations/EdgeOrderManagementRestOperations.cs @@ -37,6 +37,25 @@ public EdgeOrderManagementRestOperations(HttpPipeline pipeline, string applicati _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListAddressesAtSubscriptionLevelRequestUri(string subscriptionId, string filter, string skipToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.EdgeOrder/addresses", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } + return uri; + } + internal HttpMessage CreateListAddressesAtSubscriptionLevelRequest(string subscriptionId, string filter, string skipToken) { var message = _pipeline.CreateMessage(); @@ -116,6 +135,25 @@ public Response ListAddressesAtSubscriptionLevel(string sub } } + internal RequestUriBuilder CreateListProductFamiliesRequestUri(string subscriptionId, ProductFamiliesContent content, string expand, string skipToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.EdgeOrder/listProductFamilies", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } + return uri; + } + internal HttpMessage CreateListProductFamiliesRequest(string subscriptionId, ProductFamiliesContent content, string expand, string skipToken) { var message = _pipeline.CreateMessage(); @@ -203,6 +241,21 @@ public Response ListProductFamilies(string subscriptionId, Prod } } + internal RequestUriBuilder CreateListConfigurationsRequestUri(string subscriptionId, ConfigurationsContent content, string skipToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.EdgeOrder/listConfigurations", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } + return uri; + } + internal HttpMessage CreateListConfigurationsRequest(string subscriptionId, ConfigurationsContent content, string skipToken) { var message = _pipeline.CreateMessage(); @@ -284,6 +337,21 @@ public Response ListConfigurations(string subscriptionId, } } + internal RequestUriBuilder CreateListProductFamiliesMetadataRequestUri(string subscriptionId, string skipToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.EdgeOrder/productFamiliesMetadata", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } + return uri; + } + internal HttpMessage CreateListProductFamiliesMetadataRequest(string subscriptionId, string skipToken) { var message = _pipeline.CreateMessage(); @@ -357,6 +425,21 @@ public Response ListProductFamiliesMetadata(s } } + internal RequestUriBuilder CreateListOrderAtSubscriptionLevelRequestUri(string subscriptionId, string skipToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.EdgeOrder/orders", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } + return uri; + } + internal HttpMessage CreateListOrderAtSubscriptionLevelRequest(string subscriptionId, string skipToken) { var message = _pipeline.CreateMessage(); @@ -430,6 +513,29 @@ public Response ListOrderAtSubscriptionLevel(string subscript } } + internal RequestUriBuilder CreateListOrderItemsAtSubscriptionLevelRequestUri(string subscriptionId, string filter, string expand, string skipToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.EdgeOrder/orderItems", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } + return uri; + } + internal HttpMessage CreateListOrderItemsAtSubscriptionLevelRequest(string subscriptionId, string filter, string expand, string skipToken) { var message = _pipeline.CreateMessage(); @@ -515,6 +621,27 @@ public Response ListOrderItemsAtSubscriptionLevel(string } } + internal RequestUriBuilder CreateListAddressesAtResourceGroupLevelRequestUri(string subscriptionId, string resourceGroupName, string filter, string skipToken) + { + 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.EdgeOrder/addresses", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } + return uri; + } + internal HttpMessage CreateListAddressesAtResourceGroupLevelRequest(string subscriptionId, string resourceGroupName, string filter, string skipToken) { var message = _pipeline.CreateMessage(); @@ -600,6 +727,20 @@ public Response ListAddressesAtResourceGroupLevel(string su } } + internal RequestUriBuilder CreateGetAddressByNameRequestUri(string subscriptionId, string resourceGroupName, string addressName) + { + 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.EdgeOrder/addresses/", false); + uri.AppendPath(addressName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetAddressByNameRequest(string subscriptionId, string resourceGroupName, string addressName) { var message = _pipeline.CreateMessage(); @@ -682,6 +823,20 @@ public Response GetAddressByName(string subscriptionId, st } } + internal RequestUriBuilder CreateCreateAddressRequestUri(string subscriptionId, string resourceGroupName, string addressName, EdgeOrderAddressData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.EdgeOrder/addresses/", false); + uri.AppendPath(addressName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateAddressRequest(string subscriptionId, string resourceGroupName, string addressName, EdgeOrderAddressData data) { var message = _pipeline.CreateMessage(); @@ -760,6 +915,20 @@ public Response CreateAddress(string subscriptionId, string resourceGroupName, s } } + internal RequestUriBuilder CreateDeleteAddressByNameRequestUri(string subscriptionId, string resourceGroupName, string addressName) + { + 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.EdgeOrder/addresses/", false); + uri.AppendPath(addressName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteAddressByNameRequest(string subscriptionId, string resourceGroupName, string addressName) { var message = _pipeline.CreateMessage(); @@ -832,6 +1001,20 @@ public Response DeleteAddressByName(string subscriptionId, string resourceGroupN } } + internal RequestUriBuilder CreateUpdateAddressRequestUri(string subscriptionId, string resourceGroupName, string addressName, EdgeOrderAddressPatch patch, string ifMatch) + { + 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.EdgeOrder/addresses/", false); + uri.AppendPath(addressName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateAddressRequest(string subscriptionId, string resourceGroupName, string addressName, EdgeOrderAddressPatch patch, string ifMatch) { var message = _pipeline.CreateMessage(); @@ -916,6 +1099,23 @@ public Response UpdateAddress(string subscriptionId, string resourceGroupName, s } } + internal RequestUriBuilder CreateListOrderAtResourceGroupLevelRequestUri(string subscriptionId, string resourceGroupName, string skipToken) + { + 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.EdgeOrder/orders", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } + return uri; + } + internal HttpMessage CreateListOrderAtResourceGroupLevelRequest(string subscriptionId, string resourceGroupName, string skipToken) { var message = _pipeline.CreateMessage(); @@ -995,6 +1195,22 @@ public Response ListOrderAtResourceGroupLevel(string subscrip } } + internal RequestUriBuilder CreateGetOrderByNameRequestUri(string subscriptionId, string resourceGroupName, AzureLocation location, string orderName) + { + 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.EdgeOrder/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/orders/", false); + uri.AppendPath(orderName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetOrderByNameRequest(string subscriptionId, string resourceGroupName, AzureLocation location, string orderName) { var message = _pipeline.CreateMessage(); @@ -1081,6 +1297,31 @@ public Response GetOrderByName(string subscriptionId, string reso } } + internal RequestUriBuilder CreateListOrderItemsAtResourceGroupLevelRequestUri(string subscriptionId, string resourceGroupName, string filter, string expand, string skipToken) + { + 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.EdgeOrder/orderItems", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } + return uri; + } + internal HttpMessage CreateListOrderItemsAtResourceGroupLevelRequest(string subscriptionId, string resourceGroupName, string filter, string expand, string skipToken) { var message = _pipeline.CreateMessage(); @@ -1172,6 +1413,24 @@ public Response ListOrderItemsAtResourceGroupLevel(string } } + internal RequestUriBuilder CreateGetOrderItemByNameRequestUri(string subscriptionId, string resourceGroupName, string orderItemName, string expand) + { + 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.EdgeOrder/orderItems/", false); + uri.AppendPath(orderItemName, true); + uri.AppendQuery("api-version", _apiVersion, true); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + return uri; + } + internal HttpMessage CreateGetOrderItemByNameRequest(string subscriptionId, string resourceGroupName, string orderItemName, string expand) { var message = _pipeline.CreateMessage(); @@ -1260,6 +1519,20 @@ public Response GetOrderItemByName(string subscriptionId, str } } + internal RequestUriBuilder CreateCreateOrderItemRequestUri(string subscriptionId, string resourceGroupName, string orderItemName, EdgeOrderItemData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.EdgeOrder/orderItems/", false); + uri.AppendPath(orderItemName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrderItemRequest(string subscriptionId, string resourceGroupName, string orderItemName, EdgeOrderItemData data) { var message = _pipeline.CreateMessage(); @@ -1338,6 +1611,20 @@ public Response CreateOrderItem(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteOrderItemByNameRequestUri(string subscriptionId, string resourceGroupName, string orderItemName) + { + 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.EdgeOrder/orderItems/", false); + uri.AppendPath(orderItemName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteOrderItemByNameRequest(string subscriptionId, string resourceGroupName, string orderItemName) { var message = _pipeline.CreateMessage(); @@ -1410,6 +1697,20 @@ public Response DeleteOrderItemByName(string subscriptionId, string resourceGrou } } + internal RequestUriBuilder CreateUpdateOrderItemRequestUri(string subscriptionId, string resourceGroupName, string orderItemName, EdgeOrderItemPatch patch, string ifMatch) + { + 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.EdgeOrder/orderItems/", false); + uri.AppendPath(orderItemName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateOrderItemRequest(string subscriptionId, string resourceGroupName, string orderItemName, EdgeOrderItemPatch patch, string ifMatch) { var message = _pipeline.CreateMessage(); @@ -1494,6 +1795,21 @@ public Response UpdateOrderItem(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateCancelOrderItemRequestUri(string subscriptionId, string resourceGroupName, string orderItemName, EdgeOrderItemCancellationReason cancellationReason) + { + 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.EdgeOrder/orderItems/", false); + uri.AppendPath(orderItemName, true); + uri.AppendPath("/cancel", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCancelOrderItemRequest(string subscriptionId, string resourceGroupName, string orderItemName, EdgeOrderItemCancellationReason cancellationReason) { var message = _pipeline.CreateMessage(); @@ -1573,6 +1889,21 @@ public Response CancelOrderItem(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateReturnOrderItemRequestUri(string subscriptionId, string resourceGroupName, string orderItemName, EdgeOrderItemReturnContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.EdgeOrder/orderItems/", false); + uri.AppendPath(orderItemName, true); + uri.AppendPath("/return", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateReturnOrderItemRequest(string subscriptionId, string resourceGroupName, string orderItemName, EdgeOrderItemReturnContent content) { var message = _pipeline.CreateMessage(); @@ -1652,6 +1983,14 @@ public Response ReturnOrderItem(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateListAddressesAtSubscriptionLevelNextPageRequestUri(string nextLink, string subscriptionId, string filter, string skipToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListAddressesAtSubscriptionLevelNextPageRequest(string nextLink, string subscriptionId, string filter, string skipToken) { var message = _pipeline.CreateMessage(); @@ -1724,6 +2063,14 @@ public Response ListAddressesAtSubscriptionLevelNextPage(st } } + internal RequestUriBuilder CreateListProductFamiliesNextPageRequestUri(string nextLink, string subscriptionId, ProductFamiliesContent content, string expand, string skipToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListProductFamiliesNextPageRequest(string nextLink, string subscriptionId, ProductFamiliesContent content, string expand, string skipToken) { var message = _pipeline.CreateMessage(); @@ -1800,6 +2147,14 @@ public Response ListProductFamiliesNextPage(string nextLink, st } } + internal RequestUriBuilder CreateListConfigurationsNextPageRequestUri(string nextLink, string subscriptionId, ConfigurationsContent content, string skipToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListConfigurationsNextPageRequest(string nextLink, string subscriptionId, ConfigurationsContent content, string skipToken) { var message = _pipeline.CreateMessage(); @@ -1874,6 +2229,14 @@ public Response ListConfigurationsNextPage(string nextLin } } + internal RequestUriBuilder CreateListProductFamiliesMetadataNextPageRequestUri(string nextLink, string subscriptionId, string skipToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListProductFamiliesMetadataNextPageRequest(string nextLink, string subscriptionId, string skipToken) { var message = _pipeline.CreateMessage(); @@ -1944,6 +2307,14 @@ public Response ListProductFamiliesMetadataNe } } + internal RequestUriBuilder CreateListOrderAtSubscriptionLevelNextPageRequestUri(string nextLink, string subscriptionId, string skipToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListOrderAtSubscriptionLevelNextPageRequest(string nextLink, string subscriptionId, string skipToken) { var message = _pipeline.CreateMessage(); @@ -2014,6 +2385,14 @@ public Response ListOrderAtSubscriptionLevelNextPage(string n } } + internal RequestUriBuilder CreateListOrderItemsAtSubscriptionLevelNextPageRequestUri(string nextLink, string subscriptionId, string filter, string expand, string skipToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListOrderItemsAtSubscriptionLevelNextPageRequest(string nextLink, string subscriptionId, string filter, string expand, string skipToken) { var message = _pipeline.CreateMessage(); @@ -2088,6 +2467,14 @@ public Response ListOrderItemsAtSubscriptionLevelNextPage } } + internal RequestUriBuilder CreateListAddressesAtResourceGroupLevelNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string filter, string skipToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListAddressesAtResourceGroupLevelNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string filter, string skipToken) { var message = _pipeline.CreateMessage(); @@ -2164,6 +2551,14 @@ public Response ListAddressesAtResourceGroupLevelNextPage(s } } + internal RequestUriBuilder CreateListOrderAtResourceGroupLevelNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string skipToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListOrderAtResourceGroupLevelNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string skipToken) { var message = _pipeline.CreateMessage(); @@ -2238,6 +2633,14 @@ public Response ListOrderAtResourceGroupLevelNextPage(string } } + internal RequestUriBuilder CreateListOrderItemsAtResourceGroupLevelNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string filter, string expand, string skipToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListOrderItemsAtResourceGroupLevelNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string filter, string expand, string skipToken) { var message = _pipeline.CreateMessage(); diff --git a/sdk/elastic/Azure.ResourceManager.Elastic/src/Generated/LongRunningOperation/ElasticArmOperation.cs b/sdk/elastic/Azure.ResourceManager.Elastic/src/Generated/LongRunningOperation/ElasticArmOperation.cs index 853014f67275..0b343dfe7ecb 100644 --- a/sdk/elastic/Azure.ResourceManager.Elastic/src/Generated/LongRunningOperation/ElasticArmOperation.cs +++ b/sdk/elastic/Azure.ResourceManager.Elastic/src/Generated/LongRunningOperation/ElasticArmOperation.cs @@ -20,21 +20,24 @@ internal class ElasticArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of ElasticArmOperation for mocking. protected ElasticArmOperation() { } - internal ElasticArmOperation(Response response) + internal ElasticArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal ElasticArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "ElasticArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal ElasticArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline p public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/elastic/Azure.ResourceManager.Elastic/src/Generated/LongRunningOperation/ElasticArmOperationOfT.cs b/sdk/elastic/Azure.ResourceManager.Elastic/src/Generated/LongRunningOperation/ElasticArmOperationOfT.cs index 2ee9cfbae7da..2681dd305c19 100644 --- a/sdk/elastic/Azure.ResourceManager.Elastic/src/Generated/LongRunningOperation/ElasticArmOperationOfT.cs +++ b/sdk/elastic/Azure.ResourceManager.Elastic/src/Generated/LongRunningOperation/ElasticArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class ElasticArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of ElasticArmOperation for mocking. protected ElasticArmOperation() { } - internal ElasticArmOperation(Response response) + internal ElasticArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal ElasticArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "ElasticArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal ElasticArmOperation(IOperationSource source, ClientDiagnostics clien public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/elastic/Azure.ResourceManager.Elastic/src/Generated/Models/ElasticMonitorResource.Serialization.cs b/sdk/elastic/Azure.ResourceManager.Elastic/src/Generated/Models/ElasticMonitorResource.Serialization.cs new file mode 100644 index 000000000000..42c45cb638dc --- /dev/null +++ b/sdk/elastic/Azure.ResourceManager.Elastic/src/Generated/Models/ElasticMonitorResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Elastic +{ + public partial class ElasticMonitorResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ElasticMonitorResourceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ElasticMonitorResourceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/elastic/Azure.ResourceManager.Elastic/src/Generated/Models/MonitoringTagRuleResource.Serialization.cs b/sdk/elastic/Azure.ResourceManager.Elastic/src/Generated/Models/MonitoringTagRuleResource.Serialization.cs new file mode 100644 index 000000000000..be287559921f --- /dev/null +++ b/sdk/elastic/Azure.ResourceManager.Elastic/src/Generated/Models/MonitoringTagRuleResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Elastic +{ + public partial class MonitoringTagRuleResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MonitoringTagRuleData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MonitoringTagRuleData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/elastic/Azure.ResourceManager.Elastic/src/Generated/MonitoringTagRuleCollection.cs b/sdk/elastic/Azure.ResourceManager.Elastic/src/Generated/MonitoringTagRuleCollection.cs index 98112da6e2f9..3ea69060f8be 100644 --- a/sdk/elastic/Azure.ResourceManager.Elastic/src/Generated/MonitoringTagRuleCollection.cs +++ b/sdk/elastic/Azure.ResourceManager.Elastic/src/Generated/MonitoringTagRuleCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> CreateOrUpdat try { var response = await _monitoringTagRuleTagRulesRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, ruleSetName, data, cancellationToken).ConfigureAwait(false); - var operation = new ElasticArmOperation(Response.FromValue(new MonitoringTagRuleResource(Client, response), response.GetRawResponse())); + var uri = _monitoringTagRuleTagRulesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, ruleSetName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ElasticArmOperation(Response.FromValue(new MonitoringTagRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil try { var response = _monitoringTagRuleTagRulesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, ruleSetName, data, cancellationToken); - var operation = new ElasticArmOperation(Response.FromValue(new MonitoringTagRuleResource(Client, response), response.GetRawResponse())); + var uri = _monitoringTagRuleTagRulesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, ruleSetName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ElasticArmOperation(Response.FromValue(new MonitoringTagRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/elastic/Azure.ResourceManager.Elastic/src/Generated/MonitoringTagRuleResource.cs b/sdk/elastic/Azure.ResourceManager.Elastic/src/Generated/MonitoringTagRuleResource.cs index e6d5bcd7edd7..f18bd34996ed 100644 --- a/sdk/elastic/Azure.ResourceManager.Elastic/src/Generated/MonitoringTagRuleResource.cs +++ b/sdk/elastic/Azure.ResourceManager.Elastic/src/Generated/MonitoringTagRuleResource.cs @@ -288,7 +288,9 @@ public virtual async Task> UpdateAsync(W try { var response = await _monitoringTagRuleTagRulesRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new ElasticArmOperation(Response.FromValue(new MonitoringTagRuleResource(Client, response), response.GetRawResponse())); + var uri = _monitoringTagRuleTagRulesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ElasticArmOperation(Response.FromValue(new MonitoringTagRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -334,7 +336,9 @@ public virtual ArmOperation Update(WaitUntil waitUnti try { var response = _monitoringTagRuleTagRulesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new ElasticArmOperation(Response.FromValue(new MonitoringTagRuleResource(Client, response), response.GetRawResponse())); + var uri = _monitoringTagRuleTagRulesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ElasticArmOperation(Response.FromValue(new MonitoringTagRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/elastic/Azure.ResourceManager.Elastic/src/Generated/RestOperations/DeploymentInfoRestOperations.cs b/sdk/elastic/Azure.ResourceManager.Elastic/src/Generated/RestOperations/DeploymentInfoRestOperations.cs index 474b535182d7..0fcd9d8ca1af 100644 --- a/sdk/elastic/Azure.ResourceManager.Elastic/src/Generated/RestOperations/DeploymentInfoRestOperations.cs +++ b/sdk/elastic/Azure.ResourceManager.Elastic/src/Generated/RestOperations/DeploymentInfoRestOperations.cs @@ -37,6 +37,21 @@ public DeploymentInfoRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string monitorName) + { + 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.Elastic/monitors/", false); + uri.AppendPath(monitorName, true); + uri.AppendPath("/listDeploymentInfo", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string monitorName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/elastic/Azure.ResourceManager.Elastic/src/Generated/RestOperations/MonitoredResourcesRestOperations.cs b/sdk/elastic/Azure.ResourceManager.Elastic/src/Generated/RestOperations/MonitoredResourcesRestOperations.cs index e4be1e36b9c4..c94963843f58 100644 --- a/sdk/elastic/Azure.ResourceManager.Elastic/src/Generated/RestOperations/MonitoredResourcesRestOperations.cs +++ b/sdk/elastic/Azure.ResourceManager.Elastic/src/Generated/RestOperations/MonitoredResourcesRestOperations.cs @@ -37,6 +37,21 @@ public MonitoredResourcesRestOperations(HttpPipeline pipeline, string applicatio _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string monitorName) + { + 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.Elastic/monitors/", false); + uri.AppendPath(monitorName, true); + uri.AppendPath("/listMonitoredResources", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string monitorName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,14 @@ public Response List(string subscriptionId, strin } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string monitorName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string monitorName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/elastic/Azure.ResourceManager.Elastic/src/Generated/RestOperations/MonitorsRestOperations.cs b/sdk/elastic/Azure.ResourceManager.Elastic/src/Generated/RestOperations/MonitorsRestOperations.cs index cc949c5bd5b6..3ee6c6036ef8 100644 --- a/sdk/elastic/Azure.ResourceManager.Elastic/src/Generated/RestOperations/MonitorsRestOperations.cs +++ b/sdk/elastic/Azure.ResourceManager.Elastic/src/Generated/RestOperations/MonitorsRestOperations.cs @@ -37,6 +37,17 @@ public MonitorsRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Elastic/monitors", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,19 @@ public Response List(string subscriptionId, } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.Elastic/monitors", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -177,6 +201,20 @@ public Response ListByResourceGroup(string s } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string monitorName) + { + 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.Elastic/monitors/", false); + uri.AppendPath(monitorName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string monitorName) { var message = _pipeline.CreateMessage(); @@ -259,6 +297,20 @@ public Response Get(string subscriptionId, string re } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string monitorName, ElasticMonitorResourceData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Elastic/monitors/", false); + uri.AppendPath(monitorName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string monitorName, ElasticMonitorResourceData data) { var message = _pipeline.CreateMessage(); @@ -337,6 +389,20 @@ public Response Create(string subscriptionId, string resourceGroupName, string m } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string monitorName, ElasticMonitorResourcePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Elastic/monitors/", false); + uri.AppendPath(monitorName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string monitorName, ElasticMonitorResourcePatch patch) { var message = _pipeline.CreateMessage(); @@ -423,6 +489,20 @@ public Response Update(string subscriptionId, string } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string monitorName) + { + 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.Elastic/monitors/", false); + uri.AppendPath(monitorName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string monitorName) { var message = _pipeline.CreateMessage(); @@ -495,6 +575,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string m } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -563,6 +651,14 @@ public Response ListNextPage(string nextLink } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/elastic/Azure.ResourceManager.Elastic/src/Generated/RestOperations/TagRulesRestOperations.cs b/sdk/elastic/Azure.ResourceManager.Elastic/src/Generated/RestOperations/TagRulesRestOperations.cs index 210774ce98e7..2267be52c9ab 100644 --- a/sdk/elastic/Azure.ResourceManager.Elastic/src/Generated/RestOperations/TagRulesRestOperations.cs +++ b/sdk/elastic/Azure.ResourceManager.Elastic/src/Generated/RestOperations/TagRulesRestOperations.cs @@ -37,6 +37,21 @@ public TagRulesRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string monitorName) + { + 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.Elastic/monitors/", false); + uri.AppendPath(monitorName, true); + uri.AppendPath("/tagRules", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string monitorName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response List(string subscriptionId, stri } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string monitorName, string ruleSetName, MonitoringTagRuleData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Elastic/monitors/", false); + uri.AppendPath(monitorName, true); + uri.AppendPath("/tagRules/", false); + uri.AppendPath(ruleSetName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string monitorName, string ruleSetName, MonitoringTagRuleData data) { var message = _pipeline.CreateMessage(); @@ -208,6 +239,22 @@ public Response CreateOrUpdate(string subscriptionId, str } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string monitorName, string ruleSetName) + { + 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.Elastic/monitors/", false); + uri.AppendPath(monitorName, true); + uri.AppendPath("/tagRules/", false); + uri.AppendPath(ruleSetName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string monitorName, string ruleSetName) { var message = _pipeline.CreateMessage(); @@ -296,6 +343,22 @@ public Response Get(string subscriptionId, string resourc } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string monitorName, string ruleSetName) + { + 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.Elastic/monitors/", false); + uri.AppendPath(monitorName, true); + uri.AppendPath("/tagRules/", false); + uri.AppendPath(ruleSetName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string monitorName, string ruleSetName) { var message = _pipeline.CreateMessage(); @@ -374,6 +437,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string m } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string monitorName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string monitorName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/elastic/Azure.ResourceManager.Elastic/src/Generated/RestOperations/VMCollectionRestOperations.cs b/sdk/elastic/Azure.ResourceManager.Elastic/src/Generated/RestOperations/VMCollectionRestOperations.cs index 1b07dffda68b..f0506d146a5a 100644 --- a/sdk/elastic/Azure.ResourceManager.Elastic/src/Generated/RestOperations/VMCollectionRestOperations.cs +++ b/sdk/elastic/Azure.ResourceManager.Elastic/src/Generated/RestOperations/VMCollectionRestOperations.cs @@ -36,6 +36,21 @@ public VMCollectionRestOperations(HttpPipeline pipeline, string applicationId, U _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string monitorName, VmCollectionUpdate body) + { + 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.Elastic/monitors/", false); + uri.AppendPath(monitorName, true); + uri.AppendPath("/vmCollectionUpdate", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string monitorName, VmCollectionUpdate body) { var message = _pipeline.CreateMessage(); diff --git a/sdk/elastic/Azure.ResourceManager.Elastic/src/Generated/RestOperations/VMHostRestOperations.cs b/sdk/elastic/Azure.ResourceManager.Elastic/src/Generated/RestOperations/VMHostRestOperations.cs index 8784e5fb343a..4a39d306b238 100644 --- a/sdk/elastic/Azure.ResourceManager.Elastic/src/Generated/RestOperations/VMHostRestOperations.cs +++ b/sdk/elastic/Azure.ResourceManager.Elastic/src/Generated/RestOperations/VMHostRestOperations.cs @@ -37,6 +37,21 @@ public VMHostRestOperations(HttpPipeline pipeline, string applicationId, Uri end _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string monitorName) + { + 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.Elastic/monitors/", false); + uri.AppendPath(monitorName, true); + uri.AppendPath("/listVMHost", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string monitorName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,14 @@ public Response List(string subscriptionId, string resourceG } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string monitorName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string monitorName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/elastic/Azure.ResourceManager.Elastic/src/Generated/RestOperations/VMIngestionRestOperations.cs b/sdk/elastic/Azure.ResourceManager.Elastic/src/Generated/RestOperations/VMIngestionRestOperations.cs index 19352a8444bb..e6ecf7ecdf19 100644 --- a/sdk/elastic/Azure.ResourceManager.Elastic/src/Generated/RestOperations/VMIngestionRestOperations.cs +++ b/sdk/elastic/Azure.ResourceManager.Elastic/src/Generated/RestOperations/VMIngestionRestOperations.cs @@ -37,6 +37,21 @@ public VMIngestionRestOperations(HttpPipeline pipeline, string applicationId, Ur _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateDetailsRequestUri(string subscriptionId, string resourceGroupName, string monitorName) + { + 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.Elastic/monitors/", false); + uri.AppendPath(monitorName, true); + uri.AppendPath("/vmIngestionDetails", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDetailsRequest(string subscriptionId, string resourceGroupName, string monitorName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/elasticsan/Azure.ResourceManager.ElasticSan/src/Generated/LongRunningOperation/ElasticSanArmOperation.cs b/sdk/elasticsan/Azure.ResourceManager.ElasticSan/src/Generated/LongRunningOperation/ElasticSanArmOperation.cs index 4bbcb7d02758..d453a4dd552a 100644 --- a/sdk/elasticsan/Azure.ResourceManager.ElasticSan/src/Generated/LongRunningOperation/ElasticSanArmOperation.cs +++ b/sdk/elasticsan/Azure.ResourceManager.ElasticSan/src/Generated/LongRunningOperation/ElasticSanArmOperation.cs @@ -20,21 +20,24 @@ internal class ElasticSanArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of ElasticSanArmOperation for mocking. protected ElasticSanArmOperation() { } - internal ElasticSanArmOperation(Response response) + internal ElasticSanArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal ElasticSanArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "ElasticSanArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal ElasticSanArmOperation(ClientDiagnostics clientDiagnostics, HttpPipelin public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/elasticsan/Azure.ResourceManager.ElasticSan/src/Generated/LongRunningOperation/ElasticSanArmOperationOfT.cs b/sdk/elasticsan/Azure.ResourceManager.ElasticSan/src/Generated/LongRunningOperation/ElasticSanArmOperationOfT.cs index aba44179b831..b62e951b5a71 100644 --- a/sdk/elasticsan/Azure.ResourceManager.ElasticSan/src/Generated/LongRunningOperation/ElasticSanArmOperationOfT.cs +++ b/sdk/elasticsan/Azure.ResourceManager.ElasticSan/src/Generated/LongRunningOperation/ElasticSanArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class ElasticSanArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of ElasticSanArmOperation for mocking. protected ElasticSanArmOperation() { } - internal ElasticSanArmOperation(Response response) + internal ElasticSanArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal ElasticSanArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "ElasticSanArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal ElasticSanArmOperation(IOperationSource source, ClientDiagnostics cl public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/elasticsan/Azure.ResourceManager.ElasticSan/src/Generated/Models/ElasticSanPrivateEndpointConnectionResource.Serialization.cs b/sdk/elasticsan/Azure.ResourceManager.ElasticSan/src/Generated/Models/ElasticSanPrivateEndpointConnectionResource.Serialization.cs new file mode 100644 index 000000000000..3cb3b145ae08 --- /dev/null +++ b/sdk/elasticsan/Azure.ResourceManager.ElasticSan/src/Generated/Models/ElasticSanPrivateEndpointConnectionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ElasticSan +{ + public partial class ElasticSanPrivateEndpointConnectionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ElasticSanPrivateEndpointConnectionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ElasticSanPrivateEndpointConnectionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/elasticsan/Azure.ResourceManager.ElasticSan/src/Generated/Models/ElasticSanResource.Serialization.cs b/sdk/elasticsan/Azure.ResourceManager.ElasticSan/src/Generated/Models/ElasticSanResource.Serialization.cs new file mode 100644 index 000000000000..ca264c558493 --- /dev/null +++ b/sdk/elasticsan/Azure.ResourceManager.ElasticSan/src/Generated/Models/ElasticSanResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ElasticSan +{ + public partial class ElasticSanResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ElasticSanData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ElasticSanData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/elasticsan/Azure.ResourceManager.ElasticSan/src/Generated/Models/ElasticSanSnapshotResource.Serialization.cs b/sdk/elasticsan/Azure.ResourceManager.ElasticSan/src/Generated/Models/ElasticSanSnapshotResource.Serialization.cs new file mode 100644 index 000000000000..82e1be38f0d1 --- /dev/null +++ b/sdk/elasticsan/Azure.ResourceManager.ElasticSan/src/Generated/Models/ElasticSanSnapshotResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ElasticSan +{ + public partial class ElasticSanSnapshotResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ElasticSanSnapshotData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ElasticSanSnapshotData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/elasticsan/Azure.ResourceManager.ElasticSan/src/Generated/Models/ElasticSanVolumeGroupResource.Serialization.cs b/sdk/elasticsan/Azure.ResourceManager.ElasticSan/src/Generated/Models/ElasticSanVolumeGroupResource.Serialization.cs new file mode 100644 index 000000000000..ebbfd7040d15 --- /dev/null +++ b/sdk/elasticsan/Azure.ResourceManager.ElasticSan/src/Generated/Models/ElasticSanVolumeGroupResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ElasticSan +{ + public partial class ElasticSanVolumeGroupResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ElasticSanVolumeGroupData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ElasticSanVolumeGroupData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/elasticsan/Azure.ResourceManager.ElasticSan/src/Generated/Models/ElasticSanVolumeResource.Serialization.cs b/sdk/elasticsan/Azure.ResourceManager.ElasticSan/src/Generated/Models/ElasticSanVolumeResource.Serialization.cs new file mode 100644 index 000000000000..427939892e13 --- /dev/null +++ b/sdk/elasticsan/Azure.ResourceManager.ElasticSan/src/Generated/Models/ElasticSanVolumeResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ElasticSan +{ + public partial class ElasticSanVolumeResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ElasticSanVolumeData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ElasticSanVolumeData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/elasticsan/Azure.ResourceManager.ElasticSan/src/Generated/RestOperations/ElasticSansRestOperations.cs b/sdk/elasticsan/Azure.ResourceManager.ElasticSan/src/Generated/RestOperations/ElasticSansRestOperations.cs index de8ef0403c49..f6387727c40d 100644 --- a/sdk/elasticsan/Azure.ResourceManager.ElasticSan/src/Generated/RestOperations/ElasticSansRestOperations.cs +++ b/sdk/elasticsan/Azure.ResourceManager.ElasticSan/src/Generated/RestOperations/ElasticSansRestOperations.cs @@ -37,6 +37,17 @@ public ElasticSansRestOperations(HttpPipeline pipeline, string applicationId, Ur _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ElasticSan/elasticSans", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,19 @@ public Response ListBySubscription(string subscriptionId, Cancel } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.ElasticSan/elasticSans", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -177,6 +201,20 @@ public Response ListByResourceGroup(string subscriptionId, strin } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string elasticSanName, ElasticSanData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ElasticSan/elasticSans/", false); + uri.AppendPath(elasticSanName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string elasticSanName, ElasticSanData data) { var message = _pipeline.CreateMessage(); @@ -255,6 +293,20 @@ public Response Create(string subscriptionId, string resourceGroupName, string e } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string elasticSanName, ElasticSanPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ElasticSan/elasticSans/", false); + uri.AppendPath(elasticSanName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string elasticSanName, ElasticSanPatch patch) { var message = _pipeline.CreateMessage(); @@ -333,6 +385,20 @@ public Response Update(string subscriptionId, string resourceGroupName, string e } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string elasticSanName) + { + 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.ElasticSan/elasticSans/", false); + uri.AppendPath(elasticSanName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string elasticSanName) { var message = _pipeline.CreateMessage(); @@ -405,6 +471,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string e } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string elasticSanName) + { + 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.ElasticSan/elasticSans/", false); + uri.AppendPath(elasticSanName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string elasticSanName) { var message = _pipeline.CreateMessage(); @@ -487,6 +567,14 @@ public Response Get(string subscriptionId, string resourceGroupN } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -555,6 +643,14 @@ public Response ListBySubscriptionNextPage(string nextLink, stri } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/elasticsan/Azure.ResourceManager.ElasticSan/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs b/sdk/elasticsan/Azure.ResourceManager.ElasticSan/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs index f8d0e561dfa0..fd4e207b7f28 100644 --- a/sdk/elasticsan/Azure.ResourceManager.ElasticSan/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs +++ b/sdk/elasticsan/Azure.ResourceManager.ElasticSan/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs @@ -37,6 +37,22 @@ public PrivateEndpointConnectionsRestOperations(HttpPipeline pipeline, string ap _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string elasticSanName, string privateEndpointConnectionName, ElasticSanPrivateEndpointConnectionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ElasticSan/elasticSans/", false); + uri.AppendPath(elasticSanName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string elasticSanName, string privateEndpointConnectionName, ElasticSanPrivateEndpointConnectionData data) { var message = _pipeline.CreateMessage(); @@ -121,6 +137,22 @@ public Response Create(string subscriptionId, string resourceGroupName, string e } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string elasticSanName, string privateEndpointConnectionName) + { + 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.ElasticSan/elasticSans/", false); + uri.AppendPath(elasticSanName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string elasticSanName, string privateEndpointConnectionName) { var message = _pipeline.CreateMessage(); @@ -209,6 +241,22 @@ public Response Get(string subscription } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string elasticSanName, string privateEndpointConnectionName) + { + 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.ElasticSan/elasticSans/", false); + uri.AppendPath(elasticSanName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string elasticSanName, string privateEndpointConnectionName) { var message = _pipeline.CreateMessage(); @@ -287,6 +335,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string e } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string elasticSanName) + { + 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.ElasticSan/elasticSans/", false); + uri.AppendPath(elasticSanName, true); + uri.AppendPath("/privateEndpointConnections", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string elasticSanName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/elasticsan/Azure.ResourceManager.ElasticSan/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs b/sdk/elasticsan/Azure.ResourceManager.ElasticSan/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs index 45ba629150dd..176f695c1706 100644 --- a/sdk/elasticsan/Azure.ResourceManager.ElasticSan/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs +++ b/sdk/elasticsan/Azure.ResourceManager.ElasticSan/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs @@ -37,6 +37,21 @@ public PrivateLinkResourcesRestOperations(HttpPipeline pipeline, string applicat _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByElasticSanRequestUri(string subscriptionId, string resourceGroupName, string elasticSanName) + { + 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.ElasticSan/elasticSans/", false); + uri.AppendPath(elasticSanName, true); + uri.AppendPath("/privateLinkResources", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByElasticSanRequest(string subscriptionId, string resourceGroupName, string elasticSanName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/elasticsan/Azure.ResourceManager.ElasticSan/src/Generated/RestOperations/SkusRestOperations.cs b/sdk/elasticsan/Azure.ResourceManager.ElasticSan/src/Generated/RestOperations/SkusRestOperations.cs index 5dd80b5fd195..090cd859673f 100644 --- a/sdk/elasticsan/Azure.ResourceManager.ElasticSan/src/Generated/RestOperations/SkusRestOperations.cs +++ b/sdk/elasticsan/Azure.ResourceManager.ElasticSan/src/Generated/RestOperations/SkusRestOperations.cs @@ -37,6 +37,21 @@ public SkusRestOperations(HttpPipeline pipeline, string applicationId, Uri endpo _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ElasticSan/skus", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string filter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/elasticsan/Azure.ResourceManager.ElasticSan/src/Generated/RestOperations/VolumeGroupsRestOperations.cs b/sdk/elasticsan/Azure.ResourceManager.ElasticSan/src/Generated/RestOperations/VolumeGroupsRestOperations.cs index 16f7a5c0ae1f..745c7d81fbdd 100644 --- a/sdk/elasticsan/Azure.ResourceManager.ElasticSan/src/Generated/RestOperations/VolumeGroupsRestOperations.cs +++ b/sdk/elasticsan/Azure.ResourceManager.ElasticSan/src/Generated/RestOperations/VolumeGroupsRestOperations.cs @@ -37,6 +37,21 @@ public VolumeGroupsRestOperations(HttpPipeline pipeline, string applicationId, U _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByElasticSanRequestUri(string subscriptionId, string resourceGroupName, string elasticSanName) + { + 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.ElasticSan/elasticSans/", false); + uri.AppendPath(elasticSanName, true); + uri.AppendPath("/volumeGroups", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByElasticSanRequest(string subscriptionId, string resourceGroupName, string elasticSanName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByElasticSan(string subscriptionI } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string elasticSanName, string volumeGroupName, ElasticSanVolumeGroupData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ElasticSan/elasticSans/", false); + uri.AppendPath(elasticSanName, true); + uri.AppendPath("/volumegroups/", false); + uri.AppendPath(volumeGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string elasticSanName, string volumeGroupName, ElasticSanVolumeGroupData data) { var message = _pipeline.CreateMessage(); @@ -200,6 +231,22 @@ public Response Create(string subscriptionId, string resourceGroupName, string e } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string elasticSanName, string volumeGroupName, ElasticSanVolumeGroupPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ElasticSan/elasticSans/", false); + uri.AppendPath(elasticSanName, true); + uri.AppendPath("/volumegroups/", false); + uri.AppendPath(volumeGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string elasticSanName, string volumeGroupName, ElasticSanVolumeGroupPatch patch) { var message = _pipeline.CreateMessage(); @@ -284,6 +331,22 @@ public Response Update(string subscriptionId, string resourceGroupName, string e } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string elasticSanName, string volumeGroupName) + { + 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.ElasticSan/elasticSans/", false); + uri.AppendPath(elasticSanName, true); + uri.AppendPath("/volumegroups/", false); + uri.AppendPath(volumeGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string elasticSanName, string volumeGroupName) { var message = _pipeline.CreateMessage(); @@ -362,6 +425,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string e } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string elasticSanName, string volumeGroupName) + { + 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.ElasticSan/elasticSans/", false); + uri.AppendPath(elasticSanName, true); + uri.AppendPath("/volumegroups/", false); + uri.AppendPath(volumeGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string elasticSanName, string volumeGroupName) { var message = _pipeline.CreateMessage(); @@ -450,6 +529,14 @@ public Response Get(string subscriptionId, string res } } + internal RequestUriBuilder CreateListByElasticSanNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string elasticSanName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByElasticSanNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string elasticSanName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/elasticsan/Azure.ResourceManager.ElasticSan/src/Generated/RestOperations/VolumeSnapshotsRestOperations.cs b/sdk/elasticsan/Azure.ResourceManager.ElasticSan/src/Generated/RestOperations/VolumeSnapshotsRestOperations.cs index 3d3049686e58..39e328611af3 100644 --- a/sdk/elasticsan/Azure.ResourceManager.ElasticSan/src/Generated/RestOperations/VolumeSnapshotsRestOperations.cs +++ b/sdk/elasticsan/Azure.ResourceManager.ElasticSan/src/Generated/RestOperations/VolumeSnapshotsRestOperations.cs @@ -37,6 +37,27 @@ public VolumeSnapshotsRestOperations(HttpPipeline pipeline, string applicationId _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByVolumeGroupRequestUri(string subscriptionId, string resourceGroupName, string elasticSanName, string volumeGroupName, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ElasticSan/elasticSans/", false); + uri.AppendPath(elasticSanName, true); + uri.AppendPath("/volumegroups/", false); + uri.AppendPath(volumeGroupName, true); + uri.AppendPath("/snapshots", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByVolumeGroupRequest(string subscriptionId, string resourceGroupName, string elasticSanName, string volumeGroupName, string filter) { var message = _pipeline.CreateMessage(); @@ -128,6 +149,24 @@ public Response ListByVolumeGroup(string subscriptionId, string re } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string elasticSanName, string volumeGroupName, string snapshotName, ElasticSanSnapshotData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ElasticSan/elasticSans/", false); + uri.AppendPath(elasticSanName, true); + uri.AppendPath("/volumegroups/", false); + uri.AppendPath(volumeGroupName, true); + uri.AppendPath("/snapshots/", false); + uri.AppendPath(snapshotName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string elasticSanName, string volumeGroupName, string snapshotName, ElasticSanSnapshotData data) { var message = _pipeline.CreateMessage(); @@ -218,6 +257,24 @@ public Response Create(string subscriptionId, string resourceGroupName, string e } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string elasticSanName, string volumeGroupName, string snapshotName) + { + 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.ElasticSan/elasticSans/", false); + uri.AppendPath(elasticSanName, true); + uri.AppendPath("/volumegroups/", false); + uri.AppendPath(volumeGroupName, true); + uri.AppendPath("/snapshots/", false); + uri.AppendPath(snapshotName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string elasticSanName, string volumeGroupName, string snapshotName) { var message = _pipeline.CreateMessage(); @@ -302,6 +359,24 @@ public Response Delete(string subscriptionId, string resourceGroupName, string e } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string elasticSanName, string volumeGroupName, string snapshotName) + { + 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.ElasticSan/elasticSans/", false); + uri.AppendPath(elasticSanName, true); + uri.AppendPath("/volumegroups/", false); + uri.AppendPath(volumeGroupName, true); + uri.AppendPath("/snapshots/", false); + uri.AppendPath(snapshotName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string elasticSanName, string volumeGroupName, string snapshotName) { var message = _pipeline.CreateMessage(); @@ -396,6 +471,14 @@ public Response Get(string subscriptionId, string resour } } + internal RequestUriBuilder CreateListByVolumeGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string elasticSanName, string volumeGroupName, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByVolumeGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string elasticSanName, string volumeGroupName, string filter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/elasticsan/Azure.ResourceManager.ElasticSan/src/Generated/RestOperations/VolumesRestOperations.cs b/sdk/elasticsan/Azure.ResourceManager.ElasticSan/src/Generated/RestOperations/VolumesRestOperations.cs index 5369fe40c3ad..89bdec5ca020 100644 --- a/sdk/elasticsan/Azure.ResourceManager.ElasticSan/src/Generated/RestOperations/VolumesRestOperations.cs +++ b/sdk/elasticsan/Azure.ResourceManager.ElasticSan/src/Generated/RestOperations/VolumesRestOperations.cs @@ -37,6 +37,24 @@ public VolumesRestOperations(HttpPipeline pipeline, string applicationId, Uri en _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string elasticSanName, string volumeGroupName, string volumeName, ElasticSanVolumeData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ElasticSan/elasticSans/", false); + uri.AppendPath(elasticSanName, true); + uri.AppendPath("/volumegroups/", false); + uri.AppendPath(volumeGroupName, true); + uri.AppendPath("/volumes/", false); + uri.AppendPath(volumeName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string elasticSanName, string volumeGroupName, string volumeName, ElasticSanVolumeData data) { var message = _pipeline.CreateMessage(); @@ -127,6 +145,24 @@ public Response Create(string subscriptionId, string resourceGroupName, string e } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string elasticSanName, string volumeGroupName, string volumeName, ElasticSanVolumePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ElasticSan/elasticSans/", false); + uri.AppendPath(elasticSanName, true); + uri.AppendPath("/volumegroups/", false); + uri.AppendPath(volumeGroupName, true); + uri.AppendPath("/volumes/", false); + uri.AppendPath(volumeName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string elasticSanName, string volumeGroupName, string volumeName, ElasticSanVolumePatch patch) { var message = _pipeline.CreateMessage(); @@ -217,6 +253,24 @@ public Response Update(string subscriptionId, string resourceGroupName, string e } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string elasticSanName, string volumeGroupName, string volumeName, XmsDeleteSnapshot? xmsDeleteSnapshots, XmsForceDelete? xmsForceDelete) + { + 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.ElasticSan/elasticSans/", false); + uri.AppendPath(elasticSanName, true); + uri.AppendPath("/volumegroups/", false); + uri.AppendPath(volumeGroupName, true); + uri.AppendPath("/volumes/", false); + uri.AppendPath(volumeName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string elasticSanName, string volumeGroupName, string volumeName, XmsDeleteSnapshot? xmsDeleteSnapshots, XmsForceDelete? xmsForceDelete) { var message = _pipeline.CreateMessage(); @@ -313,6 +367,24 @@ public Response Delete(string subscriptionId, string resourceGroupName, string e } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string elasticSanName, string volumeGroupName, string volumeName) + { + 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.ElasticSan/elasticSans/", false); + uri.AppendPath(elasticSanName, true); + uri.AppendPath("/volumegroups/", false); + uri.AppendPath(volumeGroupName, true); + uri.AppendPath("/volumes/", false); + uri.AppendPath(volumeName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string elasticSanName, string volumeGroupName, string volumeName) { var message = _pipeline.CreateMessage(); @@ -407,6 +479,23 @@ public Response Get(string subscriptionId, string resource } } + internal RequestUriBuilder CreateListByVolumeGroupRequestUri(string subscriptionId, string resourceGroupName, string elasticSanName, string volumeGroupName) + { + 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.ElasticSan/elasticSans/", false); + uri.AppendPath(elasticSanName, true); + uri.AppendPath("/volumegroups/", false); + uri.AppendPath(volumeGroupName, true); + uri.AppendPath("/volumes", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByVolumeGroupRequest(string subscriptionId, string resourceGroupName, string elasticSanName, string volumeGroupName) { var message = _pipeline.CreateMessage(); @@ -492,6 +581,14 @@ public Response ListByVolumeGroup(string subscriptionId, s } } + internal RequestUriBuilder CreateListByVolumeGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string elasticSanName, string volumeGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByVolumeGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string elasticSanName, string volumeGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/LongRunningOperation/EventGridArmOperation.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/LongRunningOperation/EventGridArmOperation.cs index ec8d041baa17..2febda6d5605 100644 --- a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/LongRunningOperation/EventGridArmOperation.cs +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/LongRunningOperation/EventGridArmOperation.cs @@ -20,21 +20,24 @@ internal class EventGridArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of EventGridArmOperation for mocking. protected EventGridArmOperation() { } - internal EventGridArmOperation(Response response) + internal EventGridArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal EventGridArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "EventGridArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal EventGridArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/LongRunningOperation/EventGridArmOperationOfT.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/LongRunningOperation/EventGridArmOperationOfT.cs index 72dbd60ae999..0a75d2e2adf6 100644 --- a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/LongRunningOperation/EventGridArmOperationOfT.cs +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/LongRunningOperation/EventGridArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class EventGridArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of EventGridArmOperation for mocking. protected EventGridArmOperation() { } - internal EventGridArmOperation(Response response) + internal EventGridArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal EventGridArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "EventGridArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal EventGridArmOperation(IOperationSource source, ClientDiagnostics cli public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/CaCertificateResource.Serialization.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/CaCertificateResource.Serialization.cs new file mode 100644 index 000000000000..ba5f28a360d4 --- /dev/null +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/CaCertificateResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.EventGrid +{ + public partial class CaCertificateResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + CaCertificateData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + CaCertificateData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/DomainEventSubscriptionResource.Serialization.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/DomainEventSubscriptionResource.Serialization.cs new file mode 100644 index 000000000000..5e8c1ef7e88d --- /dev/null +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/DomainEventSubscriptionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.EventGrid +{ + public partial class DomainEventSubscriptionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + EventGridSubscriptionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + EventGridSubscriptionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/DomainNetworkSecurityPerimeterConfigurationResource.Serialization.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/DomainNetworkSecurityPerimeterConfigurationResource.Serialization.cs new file mode 100644 index 000000000000..b804f7822335 --- /dev/null +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/DomainNetworkSecurityPerimeterConfigurationResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.EventGrid +{ + public partial class DomainNetworkSecurityPerimeterConfigurationResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + NetworkSecurityPerimeterConfigurationData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + NetworkSecurityPerimeterConfigurationData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/DomainTopicEventSubscriptionResource.Serialization.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/DomainTopicEventSubscriptionResource.Serialization.cs new file mode 100644 index 000000000000..4f2aa32eadee --- /dev/null +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/DomainTopicEventSubscriptionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.EventGrid +{ + public partial class DomainTopicEventSubscriptionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + EventGridSubscriptionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + EventGridSubscriptionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/DomainTopicResource.Serialization.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/DomainTopicResource.Serialization.cs new file mode 100644 index 000000000000..b919c3508247 --- /dev/null +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/DomainTopicResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.EventGrid +{ + public partial class DomainTopicResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DomainTopicData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DomainTopicData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/EventGridDomainPrivateEndpointConnectionResource.Serialization.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/EventGridDomainPrivateEndpointConnectionResource.Serialization.cs new file mode 100644 index 000000000000..cd7921fe4119 --- /dev/null +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/EventGridDomainPrivateEndpointConnectionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.EventGrid +{ + public partial class EventGridDomainPrivateEndpointConnectionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + EventGridPrivateEndpointConnectionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + EventGridPrivateEndpointConnectionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/EventGridDomainPrivateLinkResource.Serialization.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/EventGridDomainPrivateLinkResource.Serialization.cs new file mode 100644 index 000000000000..584070e24f3c --- /dev/null +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/EventGridDomainPrivateLinkResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.EventGrid +{ + public partial class EventGridDomainPrivateLinkResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + EventGridPrivateLinkResourceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + EventGridPrivateLinkResourceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/EventGridDomainResource.Serialization.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/EventGridDomainResource.Serialization.cs new file mode 100644 index 000000000000..1e996aaa8264 --- /dev/null +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/EventGridDomainResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.EventGrid +{ + public partial class EventGridDomainResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + EventGridDomainData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + EventGridDomainData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/EventGridNamespaceClientGroupResource.Serialization.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/EventGridNamespaceClientGroupResource.Serialization.cs new file mode 100644 index 000000000000..5c23744de014 --- /dev/null +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/EventGridNamespaceClientGroupResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.EventGrid +{ + public partial class EventGridNamespaceClientGroupResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + EventGridNamespaceClientGroupData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + EventGridNamespaceClientGroupData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/EventGridNamespaceClientResource.Serialization.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/EventGridNamespaceClientResource.Serialization.cs new file mode 100644 index 000000000000..d4d88e677169 --- /dev/null +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/EventGridNamespaceClientResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.EventGrid +{ + public partial class EventGridNamespaceClientResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + EventGridNamespaceClientData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + EventGridNamespaceClientData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/EventGridNamespacePermissionBindingResource.Serialization.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/EventGridNamespacePermissionBindingResource.Serialization.cs new file mode 100644 index 000000000000..3285160b94c4 --- /dev/null +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/EventGridNamespacePermissionBindingResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.EventGrid +{ + public partial class EventGridNamespacePermissionBindingResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + EventGridNamespacePermissionBindingData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + EventGridNamespacePermissionBindingData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/EventGridNamespaceResource.Serialization.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/EventGridNamespaceResource.Serialization.cs new file mode 100644 index 000000000000..92e482d1f13b --- /dev/null +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/EventGridNamespaceResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.EventGrid +{ + public partial class EventGridNamespaceResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + EventGridNamespaceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + EventGridNamespaceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/EventGridPartnerNamespacePrivateEndpointConnectionResource.Serialization.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/EventGridPartnerNamespacePrivateEndpointConnectionResource.Serialization.cs new file mode 100644 index 000000000000..8df3bb3b7022 --- /dev/null +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/EventGridPartnerNamespacePrivateEndpointConnectionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.EventGrid +{ + public partial class EventGridPartnerNamespacePrivateEndpointConnectionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + EventGridPrivateEndpointConnectionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + EventGridPrivateEndpointConnectionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/EventGridTopicPrivateEndpointConnectionResource.Serialization.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/EventGridTopicPrivateEndpointConnectionResource.Serialization.cs new file mode 100644 index 000000000000..0fb132453de5 --- /dev/null +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/EventGridTopicPrivateEndpointConnectionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.EventGrid +{ + public partial class EventGridTopicPrivateEndpointConnectionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + EventGridPrivateEndpointConnectionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + EventGridPrivateEndpointConnectionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/EventGridTopicPrivateLinkResource.Serialization.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/EventGridTopicPrivateLinkResource.Serialization.cs new file mode 100644 index 000000000000..eeb9873a0897 --- /dev/null +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/EventGridTopicPrivateLinkResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.EventGrid +{ + public partial class EventGridTopicPrivateLinkResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + EventGridPrivateLinkResourceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + EventGridPrivateLinkResourceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/EventGridTopicResource.Serialization.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/EventGridTopicResource.Serialization.cs new file mode 100644 index 000000000000..fdc294f1ff80 --- /dev/null +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/EventGridTopicResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.EventGrid +{ + public partial class EventGridTopicResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + EventGridTopicData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + EventGridTopicData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/EventSubscriptionResource.Serialization.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/EventSubscriptionResource.Serialization.cs new file mode 100644 index 000000000000..83b1dbd7c1a8 --- /dev/null +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/EventSubscriptionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.EventGrid +{ + public partial class EventSubscriptionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + EventGridSubscriptionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + EventGridSubscriptionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/ExtensionTopicResource.Serialization.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/ExtensionTopicResource.Serialization.cs new file mode 100644 index 000000000000..61bdc3021b89 --- /dev/null +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/ExtensionTopicResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.EventGrid +{ + public partial class ExtensionTopicResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ExtensionTopicData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ExtensionTopicData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/NamespaceTopicEventSubscriptionResource.Serialization.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/NamespaceTopicEventSubscriptionResource.Serialization.cs new file mode 100644 index 000000000000..4701dd2f458c --- /dev/null +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/NamespaceTopicEventSubscriptionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.EventGrid +{ + public partial class NamespaceTopicEventSubscriptionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + NamespaceTopicEventSubscriptionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + NamespaceTopicEventSubscriptionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/NamespaceTopicResource.Serialization.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/NamespaceTopicResource.Serialization.cs new file mode 100644 index 000000000000..a9a1eec86926 --- /dev/null +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/NamespaceTopicResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.EventGrid +{ + public partial class NamespaceTopicResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + NamespaceTopicData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + NamespaceTopicData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/PartnerConfigurationResource.Serialization.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/PartnerConfigurationResource.Serialization.cs new file mode 100644 index 000000000000..bd27d5bd2440 --- /dev/null +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/PartnerConfigurationResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.EventGrid +{ + public partial class PartnerConfigurationResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + PartnerConfigurationData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + PartnerConfigurationData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/PartnerDestinationResource.Serialization.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/PartnerDestinationResource.Serialization.cs new file mode 100644 index 000000000000..93254f5ba859 --- /dev/null +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/PartnerDestinationResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.EventGrid +{ + public partial class PartnerDestinationResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + PartnerDestinationData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + PartnerDestinationData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/PartnerNamespaceChannelResource.Serialization.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/PartnerNamespaceChannelResource.Serialization.cs new file mode 100644 index 000000000000..5a749f144bb2 --- /dev/null +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/PartnerNamespaceChannelResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.EventGrid +{ + public partial class PartnerNamespaceChannelResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + PartnerNamespaceChannelData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + PartnerNamespaceChannelData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/PartnerNamespacePrivateLinkResource.Serialization.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/PartnerNamespacePrivateLinkResource.Serialization.cs new file mode 100644 index 000000000000..78bd8815fec2 --- /dev/null +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/PartnerNamespacePrivateLinkResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.EventGrid +{ + public partial class PartnerNamespacePrivateLinkResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + EventGridPrivateLinkResourceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + EventGridPrivateLinkResourceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/PartnerNamespaceResource.Serialization.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/PartnerNamespaceResource.Serialization.cs new file mode 100644 index 000000000000..1e9bcf88ea9d --- /dev/null +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/PartnerNamespaceResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.EventGrid +{ + public partial class PartnerNamespaceResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + PartnerNamespaceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + PartnerNamespaceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/PartnerRegistrationResource.Serialization.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/PartnerRegistrationResource.Serialization.cs new file mode 100644 index 000000000000..1b79e1d33c70 --- /dev/null +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/PartnerRegistrationResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.EventGrid +{ + public partial class PartnerRegistrationResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + PartnerRegistrationData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + PartnerRegistrationData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/PartnerTopicEventSubscriptionResource.Serialization.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/PartnerTopicEventSubscriptionResource.Serialization.cs new file mode 100644 index 000000000000..a591b5572492 --- /dev/null +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/PartnerTopicEventSubscriptionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.EventGrid +{ + public partial class PartnerTopicEventSubscriptionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + EventGridSubscriptionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + EventGridSubscriptionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/PartnerTopicResource.Serialization.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/PartnerTopicResource.Serialization.cs new file mode 100644 index 000000000000..cd3324616022 --- /dev/null +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/PartnerTopicResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.EventGrid +{ + public partial class PartnerTopicResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + PartnerTopicData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + PartnerTopicData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/SystemTopicEventSubscriptionResource.Serialization.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/SystemTopicEventSubscriptionResource.Serialization.cs new file mode 100644 index 000000000000..1bb3f57bc4e0 --- /dev/null +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/SystemTopicEventSubscriptionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.EventGrid +{ + public partial class SystemTopicEventSubscriptionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + EventGridSubscriptionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + EventGridSubscriptionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/SystemTopicResource.Serialization.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/SystemTopicResource.Serialization.cs new file mode 100644 index 000000000000..9971c57fb5c2 --- /dev/null +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/SystemTopicResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.EventGrid +{ + public partial class SystemTopicResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SystemTopicData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SystemTopicData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/TopicEventSubscriptionResource.Serialization.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/TopicEventSubscriptionResource.Serialization.cs new file mode 100644 index 000000000000..5a24e880d329 --- /dev/null +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/TopicEventSubscriptionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.EventGrid +{ + public partial class TopicEventSubscriptionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + EventGridSubscriptionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + EventGridSubscriptionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/TopicNetworkSecurityPerimeterConfigurationResource.Serialization.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/TopicNetworkSecurityPerimeterConfigurationResource.Serialization.cs new file mode 100644 index 000000000000..075071f8f6e9 --- /dev/null +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/TopicNetworkSecurityPerimeterConfigurationResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.EventGrid +{ + public partial class TopicNetworkSecurityPerimeterConfigurationResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + NetworkSecurityPerimeterConfigurationData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + NetworkSecurityPerimeterConfigurationData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/TopicSpaceResource.Serialization.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/TopicSpaceResource.Serialization.cs new file mode 100644 index 000000000000..13c6b50479db --- /dev/null +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/TopicSpaceResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.EventGrid +{ + public partial class TopicSpaceResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + TopicSpaceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + TopicSpaceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/TopicTypeResource.Serialization.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/TopicTypeResource.Serialization.cs new file mode 100644 index 000000000000..0853c06299ad --- /dev/null +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/TopicTypeResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.EventGrid +{ + public partial class TopicTypeResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + TopicTypeData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + TopicTypeData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/VerifiedPartnerResource.Serialization.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/VerifiedPartnerResource.Serialization.cs new file mode 100644 index 000000000000..d8e8c1898f4f --- /dev/null +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/VerifiedPartnerResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.EventGrid +{ + public partial class VerifiedPartnerResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + VerifiedPartnerData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + VerifiedPartnerData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/PartnerNamespaceChannelCollection.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/PartnerNamespaceChannelCollection.cs index 7d09fcdeb4e3..9d9853475852 100644 --- a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/PartnerNamespaceChannelCollection.cs +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/PartnerNamespaceChannelCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> CreateO try { var response = await _partnerNamespaceChannelChannelsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, channelName, data, cancellationToken).ConfigureAwait(false); - var operation = new EventGridArmOperation(Response.FromValue(new PartnerNamespaceChannelResource(Client, response), response.GetRawResponse())); + var uri = _partnerNamespaceChannelChannelsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, channelName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new EventGridArmOperation(Response.FromValue(new PartnerNamespaceChannelResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(Wait try { var response = _partnerNamespaceChannelChannelsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, channelName, data, cancellationToken); - var operation = new EventGridArmOperation(Response.FromValue(new PartnerNamespaceChannelResource(Client, response), response.GetRawResponse())); + var uri = _partnerNamespaceChannelChannelsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, channelName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new EventGridArmOperation(Response.FromValue(new PartnerNamespaceChannelResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/PartnerTopicCollection.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/PartnerTopicCollection.cs index 72eeeda907ed..d3ba61ebaaf6 100644 --- a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/PartnerTopicCollection.cs +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/PartnerTopicCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> CreateOrUpdateAsyn try { var response = await _partnerTopicRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, partnerTopicName, data, cancellationToken).ConfigureAwait(false); - var operation = new EventGridArmOperation(Response.FromValue(new PartnerTopicResource(Client, response), response.GetRawResponse())); + var uri = _partnerTopicRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, partnerTopicName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new EventGridArmOperation(Response.FromValue(new PartnerTopicResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -140,7 +142,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitU try { var response = _partnerTopicRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, partnerTopicName, data, cancellationToken); - var operation = new EventGridArmOperation(Response.FromValue(new PartnerTopicResource(Client, response), response.GetRawResponse())); + var uri = _partnerTopicRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, partnerTopicName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new EventGridArmOperation(Response.FromValue(new PartnerTopicResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/RestOperations/CaCertificatesRestOperations.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/RestOperations/CaCertificatesRestOperations.cs index 92627ef78340..1b9e685427e3 100644 --- a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/RestOperations/CaCertificatesRestOperations.cs +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/RestOperations/CaCertificatesRestOperations.cs @@ -37,6 +37,22 @@ public CaCertificatesRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string caCertificateName) + { + 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.EventGrid/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/caCertificates/", false); + uri.AppendPath(caCertificateName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string namespaceName, string caCertificateName) { var message = _pipeline.CreateMessage(); @@ -125,6 +141,22 @@ public Response Get(string subscriptionId, string resourceGro } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string caCertificateName, CaCertificateData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.EventGrid/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/caCertificates/", false); + uri.AppendPath(caCertificateName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string namespaceName, string caCertificateName, CaCertificateData data) { var message = _pipeline.CreateMessage(); @@ -209,6 +241,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string caCertificateName) + { + 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.EventGrid/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/caCertificates/", false); + uri.AppendPath(caCertificateName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string namespaceName, string caCertificateName) { var message = _pipeline.CreateMessage(); @@ -287,6 +335,29 @@ public Response Delete(string subscriptionId, string resourceGroupName, string n } } + internal RequestUriBuilder CreateListByNamespaceRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string filter, int? top) + { + 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.EventGrid/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/caCertificates", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + return uri; + } + internal HttpMessage CreateListByNamespaceRequest(string subscriptionId, string resourceGroupName, string namespaceName, string filter, int? top) { var message = _pipeline.CreateMessage(); @@ -378,6 +449,14 @@ public Response ListByNamespace(string subscriptionId, } } + internal RequestUriBuilder CreateListByNamespaceNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string namespaceName, string filter, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByNamespaceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string namespaceName, string filter, int? top) { var message = _pipeline.CreateMessage(); diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/RestOperations/ChannelsRestOperations.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/RestOperations/ChannelsRestOperations.cs index 205834928042..9b7551dff63b 100644 --- a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/RestOperations/ChannelsRestOperations.cs +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/RestOperations/ChannelsRestOperations.cs @@ -37,6 +37,22 @@ public ChannelsRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string partnerNamespaceName, string channelName) + { + 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.EventGrid/partnerNamespaces/", false); + uri.AppendPath(partnerNamespaceName, true); + uri.AppendPath("/channels/", false); + uri.AppendPath(channelName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string partnerNamespaceName, string channelName) { var message = _pipeline.CreateMessage(); @@ -125,6 +141,22 @@ public Response Get(string subscriptionId, string r } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string partnerNamespaceName, string channelName, PartnerNamespaceChannelData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.EventGrid/partnerNamespaces/", false); + uri.AppendPath(partnerNamespaceName, true); + uri.AppendPath("/channels/", false); + uri.AppendPath(channelName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string partnerNamespaceName, string channelName, PartnerNamespaceChannelData data) { var message = _pipeline.CreateMessage(); @@ -219,6 +251,22 @@ public Response CreateOrUpdate(string subscriptionI } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string partnerNamespaceName, string channelName) + { + 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.EventGrid/partnerNamespaces/", false); + uri.AppendPath(partnerNamespaceName, true); + uri.AppendPath("/channels/", false); + uri.AppendPath(channelName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string partnerNamespaceName, string channelName) { var message = _pipeline.CreateMessage(); @@ -296,6 +344,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string p } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string partnerNamespaceName, string channelName, PartnerNamespaceChannelPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.EventGrid/partnerNamespaces/", false); + uri.AppendPath(partnerNamespaceName, true); + uri.AppendPath("/channels/", false); + uri.AppendPath(channelName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string partnerNamespaceName, string channelName, PartnerNamespaceChannelPatch patch) { var message = _pipeline.CreateMessage(); @@ -377,6 +441,29 @@ public Response Update(string subscriptionId, string resourceGroupName, string p } } + internal RequestUriBuilder CreateListByPartnerNamespaceRequestUri(string subscriptionId, string resourceGroupName, string partnerNamespaceName, string filter, int? top) + { + 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.EventGrid/partnerNamespaces/", false); + uri.AppendPath(partnerNamespaceName, true); + uri.AppendPath("/channels", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + return uri; + } + internal HttpMessage CreateListByPartnerNamespaceRequest(string subscriptionId, string resourceGroupName, string partnerNamespaceName, string filter, int? top) { var message = _pipeline.CreateMessage(); @@ -468,6 +555,23 @@ public Response ListByPartnerNamespace(string subscriptionId } } + internal RequestUriBuilder CreateGetFullUriRequestUri(string subscriptionId, string resourceGroupName, string partnerNamespaceName, string channelName) + { + 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.EventGrid/partnerNamespaces/", false); + uri.AppendPath(partnerNamespaceName, true); + uri.AppendPath("/channels/", false); + uri.AppendPath(channelName, true); + uri.AppendPath("/getFullUrl", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetFullUriRequest(string subscriptionId, string resourceGroupName, string partnerNamespaceName, string channelName) { var message = _pipeline.CreateMessage(); @@ -553,6 +657,14 @@ public Response GetFullUri(string subscriptionId, stri } } + internal RequestUriBuilder CreateListByPartnerNamespaceNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string partnerNamespaceName, string filter, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByPartnerNamespaceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string partnerNamespaceName, string filter, int? top) { var message = _pipeline.CreateMessage(); diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/RestOperations/ClientGroupsRestOperations.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/RestOperations/ClientGroupsRestOperations.cs index 7d9bc4183e1f..8f393a14c61b 100644 --- a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/RestOperations/ClientGroupsRestOperations.cs +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/RestOperations/ClientGroupsRestOperations.cs @@ -37,6 +37,22 @@ public ClientGroupsRestOperations(HttpPipeline pipeline, string applicationId, U _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string clientGroupName) + { + 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.EventGrid/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/clientGroups/", false); + uri.AppendPath(clientGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string namespaceName, string clientGroupName) { var message = _pipeline.CreateMessage(); @@ -125,6 +141,22 @@ public Response Get(string subscriptionId, st } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string clientGroupName, EventGridNamespaceClientGroupData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.EventGrid/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/clientGroups/", false); + uri.AppendPath(clientGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string namespaceName, string clientGroupName, EventGridNamespaceClientGroupData data) { var message = _pipeline.CreateMessage(); @@ -209,6 +241,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string clientGroupName) + { + 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.EventGrid/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/clientGroups/", false); + uri.AppendPath(clientGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string namespaceName, string clientGroupName) { var message = _pipeline.CreateMessage(); @@ -287,6 +335,29 @@ public Response Delete(string subscriptionId, string resourceGroupName, string n } } + internal RequestUriBuilder CreateListByNamespaceRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string filter, int? top) + { + 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.EventGrid/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/clientGroups", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + return uri; + } + internal HttpMessage CreateListByNamespaceRequest(string subscriptionId, string resourceGroupName, string namespaceName, string filter, int? top) { var message = _pipeline.CreateMessage(); @@ -378,6 +449,14 @@ public Response ListByNamespace(string subscriptionId, s } } + internal RequestUriBuilder CreateListByNamespaceNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string namespaceName, string filter, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByNamespaceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string namespaceName, string filter, int? top) { var message = _pipeline.CreateMessage(); diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/RestOperations/ClientsRestOperations.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/RestOperations/ClientsRestOperations.cs index dbe2b93f3f38..2c4a103fcc8e 100644 --- a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/RestOperations/ClientsRestOperations.cs +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/RestOperations/ClientsRestOperations.cs @@ -37,6 +37,22 @@ public ClientsRestOperations(HttpPipeline pipeline, string applicationId, Uri en _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string clientName) + { + 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.EventGrid/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/clients/", false); + uri.AppendPath(clientName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string namespaceName, string clientName) { var message = _pipeline.CreateMessage(); @@ -125,6 +141,22 @@ public Response Get(string subscriptionId, string } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string clientName, EventGridNamespaceClientData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.EventGrid/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/clients/", false); + uri.AppendPath(clientName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string namespaceName, string clientName, EventGridNamespaceClientData data) { var message = _pipeline.CreateMessage(); @@ -209,6 +241,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string clientName) + { + 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.EventGrid/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/clients/", false); + uri.AppendPath(clientName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string namespaceName, string clientName) { var message = _pipeline.CreateMessage(); @@ -287,6 +335,29 @@ public Response Delete(string subscriptionId, string resourceGroupName, string n } } + internal RequestUriBuilder CreateListByNamespaceRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string filter, int? top) + { + 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.EventGrid/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/clients", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + return uri; + } + internal HttpMessage CreateListByNamespaceRequest(string subscriptionId, string resourceGroupName, string namespaceName, string filter, int? top) { var message = _pipeline.CreateMessage(); @@ -378,6 +449,14 @@ public Response ListByNamespace(string subscriptionId, string } } + internal RequestUriBuilder CreateListByNamespaceNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string namespaceName, string filter, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByNamespaceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string namespaceName, string filter, int? top) { var message = _pipeline.CreateMessage(); diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/RestOperations/DomainEventSubscriptionsRestOperations.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/RestOperations/DomainEventSubscriptionsRestOperations.cs index 124f2ab91eea..946f9f1e21be 100644 --- a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/RestOperations/DomainEventSubscriptionsRestOperations.cs +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/RestOperations/DomainEventSubscriptionsRestOperations.cs @@ -37,6 +37,23 @@ public DomainEventSubscriptionsRestOperations(HttpPipeline pipeline, string appl _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetDeliveryAttributesRequestUri(string subscriptionId, string resourceGroupName, string domainName, string eventSubscriptionName) + { + 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.EventGrid/domains/", false); + uri.AppendPath(domainName, true); + uri.AppendPath("/eventSubscriptions/", false); + uri.AppendPath(eventSubscriptionName, true); + uri.AppendPath("/getDeliveryAttributes", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetDeliveryAttributesRequest(string subscriptionId, string resourceGroupName, string domainName, string eventSubscriptionName) { var message = _pipeline.CreateMessage(); @@ -122,6 +139,22 @@ public Response GetDeliveryAttributes(string subscr } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string domainName, string eventSubscriptionName) + { + 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.EventGrid/domains/", false); + uri.AppendPath(domainName, true); + uri.AppendPath("/eventSubscriptions/", false); + uri.AppendPath(eventSubscriptionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string domainName, string eventSubscriptionName) { var message = _pipeline.CreateMessage(); @@ -210,6 +243,22 @@ public Response Get(string subscriptionId, string res } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string domainName, string eventSubscriptionName, EventGridSubscriptionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.EventGrid/domains/", false); + uri.AppendPath(domainName, true); + uri.AppendPath("/eventSubscriptions/", false); + uri.AppendPath(eventSubscriptionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string domainName, string eventSubscriptionName, EventGridSubscriptionData data) { var message = _pipeline.CreateMessage(); @@ -294,6 +343,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string domainName, string eventSubscriptionName) + { + 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.EventGrid/domains/", false); + uri.AppendPath(domainName, true); + uri.AppendPath("/eventSubscriptions/", false); + uri.AppendPath(eventSubscriptionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string domainName, string eventSubscriptionName) { var message = _pipeline.CreateMessage(); @@ -371,6 +436,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string d } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string domainName, string eventSubscriptionName, EventGridSubscriptionPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.EventGrid/domains/", false); + uri.AppendPath(domainName, true); + uri.AppendPath("/eventSubscriptions/", false); + uri.AppendPath(eventSubscriptionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string domainName, string eventSubscriptionName, EventGridSubscriptionPatch patch) { var message = _pipeline.CreateMessage(); @@ -453,6 +534,23 @@ public Response Update(string subscriptionId, string resourceGroupName, string d } } + internal RequestUriBuilder CreateGetFullUriRequestUri(string subscriptionId, string resourceGroupName, string domainName, string eventSubscriptionName) + { + 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.EventGrid/domains/", false); + uri.AppendPath(domainName, true); + uri.AppendPath("/eventSubscriptions/", false); + uri.AppendPath(eventSubscriptionName, true); + uri.AppendPath("/getFullUrl", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetFullUriRequest(string subscriptionId, string resourceGroupName, string domainName, string eventSubscriptionName) { var message = _pipeline.CreateMessage(); @@ -538,6 +636,29 @@ public Response GetFullUri(string subscriptionId, stri } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string domainName, string filter, int? top) + { + 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.EventGrid/domains/", false); + uri.AppendPath(domainName, true); + uri.AppendPath("/eventSubscriptions", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string domainName, string filter, int? top) { var message = _pipeline.CreateMessage(); @@ -629,6 +750,14 @@ public Response List(string subscriptionId, string } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string domainName, string filter, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string domainName, string filter, int? top) { var message = _pipeline.CreateMessage(); diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/RestOperations/DomainTopicEventSubscriptionsRestOperations.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/RestOperations/DomainTopicEventSubscriptionsRestOperations.cs index 15116cf1bc89..86213907c7fa 100644 --- a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/RestOperations/DomainTopicEventSubscriptionsRestOperations.cs +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/RestOperations/DomainTopicEventSubscriptionsRestOperations.cs @@ -37,6 +37,25 @@ public DomainTopicEventSubscriptionsRestOperations(HttpPipeline pipeline, string _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetDeliveryAttributesRequestUri(string subscriptionId, string resourceGroupName, string domainName, string topicName, string eventSubscriptionName) + { + 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.EventGrid/domains/", false); + uri.AppendPath(domainName, true); + uri.AppendPath("/topics/", false); + uri.AppendPath(topicName, true); + uri.AppendPath("/eventSubscriptions/", false); + uri.AppendPath(eventSubscriptionName, true); + uri.AppendPath("/getDeliveryAttributes", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetDeliveryAttributesRequest(string subscriptionId, string resourceGroupName, string domainName, string topicName, string eventSubscriptionName) { var message = _pipeline.CreateMessage(); @@ -128,6 +147,24 @@ public Response GetDeliveryAttributes(string subscr } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string domainName, string topicName, string eventSubscriptionName) + { + 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.EventGrid/domains/", false); + uri.AppendPath(domainName, true); + uri.AppendPath("/topics/", false); + uri.AppendPath(topicName, true); + uri.AppendPath("/eventSubscriptions/", false); + uri.AppendPath(eventSubscriptionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string domainName, string topicName, string eventSubscriptionName) { var message = _pipeline.CreateMessage(); @@ -222,6 +259,24 @@ public Response Get(string subscriptionId, string res } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string domainName, string topicName, string eventSubscriptionName, EventGridSubscriptionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.EventGrid/domains/", false); + uri.AppendPath(domainName, true); + uri.AppendPath("/topics/", false); + uri.AppendPath(topicName, true); + uri.AppendPath("/eventSubscriptions/", false); + uri.AppendPath(eventSubscriptionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string domainName, string topicName, string eventSubscriptionName, EventGridSubscriptionData data) { var message = _pipeline.CreateMessage(); @@ -312,6 +367,24 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string domainName, string topicName, string eventSubscriptionName) + { + 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.EventGrid/domains/", false); + uri.AppendPath(domainName, true); + uri.AppendPath("/topics/", false); + uri.AppendPath(topicName, true); + uri.AppendPath("/eventSubscriptions/", false); + uri.AppendPath(eventSubscriptionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string domainName, string topicName, string eventSubscriptionName) { var message = _pipeline.CreateMessage(); @@ -395,6 +468,24 @@ public Response Delete(string subscriptionId, string resourceGroupName, string d } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string domainName, string topicName, string eventSubscriptionName, EventGridSubscriptionPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.EventGrid/domains/", false); + uri.AppendPath(domainName, true); + uri.AppendPath("/topics/", false); + uri.AppendPath(topicName, true); + uri.AppendPath("/eventSubscriptions/", false); + uri.AppendPath(eventSubscriptionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string domainName, string topicName, string eventSubscriptionName, EventGridSubscriptionPatch patch) { var message = _pipeline.CreateMessage(); @@ -483,6 +574,25 @@ public Response Update(string subscriptionId, string resourceGroupName, string d } } + internal RequestUriBuilder CreateGetFullUriRequestUri(string subscriptionId, string resourceGroupName, string domainName, string topicName, string eventSubscriptionName) + { + 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.EventGrid/domains/", false); + uri.AppendPath(domainName, true); + uri.AppendPath("/topics/", false); + uri.AppendPath(topicName, true); + uri.AppendPath("/eventSubscriptions/", false); + uri.AppendPath(eventSubscriptionName, true); + uri.AppendPath("/getFullUrl", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetFullUriRequest(string subscriptionId, string resourceGroupName, string domainName, string topicName, string eventSubscriptionName) { var message = _pipeline.CreateMessage(); @@ -574,6 +684,31 @@ public Response GetFullUri(string subscriptionId, stri } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string domainName, string topicName, string filter, int? top) + { + 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.EventGrid/domains/", false); + uri.AppendPath(domainName, true); + uri.AppendPath("/topics/", false); + uri.AppendPath(topicName, true); + uri.AppendPath("/eventSubscriptions", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string domainName, string topicName, string filter, int? top) { var message = _pipeline.CreateMessage(); @@ -671,6 +806,14 @@ public Response List(string subscriptionId, string } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string domainName, string topicName, string filter, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string domainName, string topicName, string filter, int? top) { var message = _pipeline.CreateMessage(); diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/RestOperations/DomainTopicsRestOperations.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/RestOperations/DomainTopicsRestOperations.cs index 7c5ff3c2e798..b62ab7058829 100644 --- a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/RestOperations/DomainTopicsRestOperations.cs +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/RestOperations/DomainTopicsRestOperations.cs @@ -37,6 +37,22 @@ public DomainTopicsRestOperations(HttpPipeline pipeline, string applicationId, U _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string domainName, string domainTopicName) + { + 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.EventGrid/domains/", false); + uri.AppendPath(domainName, true); + uri.AppendPath("/topics/", false); + uri.AppendPath(domainTopicName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string domainName, string domainTopicName) { var message = _pipeline.CreateMessage(); @@ -125,6 +141,22 @@ public Response Get(string subscriptionId, string resourceGroup } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string domainName, string domainTopicName) + { + 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.EventGrid/domains/", false); + uri.AppendPath(domainName, true); + uri.AppendPath("/topics/", false); + uri.AppendPath(domainTopicName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string domainName, string domainTopicName) { var message = _pipeline.CreateMessage(); @@ -199,6 +231,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string domainName, string domainTopicName) + { + 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.EventGrid/domains/", false); + uri.AppendPath(domainName, true); + uri.AppendPath("/topics/", false); + uri.AppendPath(domainTopicName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string domainName, string domainTopicName) { var message = _pipeline.CreateMessage(); @@ -276,6 +324,29 @@ public Response Delete(string subscriptionId, string resourceGroupName, string d } } + internal RequestUriBuilder CreateListByDomainRequestUri(string subscriptionId, string resourceGroupName, string domainName, string filter, int? top) + { + 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.EventGrid/domains/", false); + uri.AppendPath(domainName, true); + uri.AppendPath("/topics", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + return uri; + } + internal HttpMessage CreateListByDomainRequest(string subscriptionId, string resourceGroupName, string domainName, string filter, int? top) { var message = _pipeline.CreateMessage(); @@ -367,6 +438,14 @@ public Response ListByDomain(string subscriptionId, stri } } + internal RequestUriBuilder CreateListByDomainNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string domainName, string filter, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByDomainNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string domainName, string filter, int? top) { var message = _pipeline.CreateMessage(); diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/RestOperations/DomainsRestOperations.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/RestOperations/DomainsRestOperations.cs index 90f8cf83c29c..b97685b9ceb2 100644 --- a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/RestOperations/DomainsRestOperations.cs +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/RestOperations/DomainsRestOperations.cs @@ -37,6 +37,20 @@ public DomainsRestOperations(HttpPipeline pipeline, string applicationId, Uri en _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string domainName) + { + 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.EventGrid/domains/", false); + uri.AppendPath(domainName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string domainName) { var message = _pipeline.CreateMessage(); @@ -119,6 +133,20 @@ public Response Get(string subscriptionId, string resourceG } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string domainName, EventGridDomainData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.EventGrid/domains/", false); + uri.AppendPath(domainName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string domainName, EventGridDomainData data) { var message = _pipeline.CreateMessage(); @@ -195,6 +223,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string domainName) + { + 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.EventGrid/domains/", false); + uri.AppendPath(domainName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string domainName) { var message = _pipeline.CreateMessage(); @@ -266,6 +308,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string d } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string domainName, EventGridDomainPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.EventGrid/domains/", false); + uri.AppendPath(domainName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string domainName, EventGridDomainPatch patch) { var message = _pipeline.CreateMessage(); @@ -344,6 +400,25 @@ public Response Update(string subscriptionId, string resourceGroupName, string d } } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId, string filter, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.EventGrid/domains", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId, string filter, int? top) { var message = _pipeline.CreateMessage(); @@ -423,6 +498,27 @@ public Response ListBySubscription(string subscriptionId, str } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName, string filter, int? top) + { + 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.EventGrid/domains", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName, string filter, int? top) { var message = _pipeline.CreateMessage(); @@ -508,6 +604,21 @@ public Response ListByResourceGroup(string subscriptionId, st } } + internal RequestUriBuilder CreateListSharedAccessKeysRequestUri(string subscriptionId, string resourceGroupName, string domainName) + { + 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.EventGrid/domains/", false); + uri.AppendPath(domainName, true); + uri.AppendPath("/listKeys", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListSharedAccessKeysRequest(string subscriptionId, string resourceGroupName, string domainName) { var message = _pipeline.CreateMessage(); @@ -587,6 +698,21 @@ public Response ListSharedAccessKeys(string sub } } + internal RequestUriBuilder CreateRegenerateKeyRequestUri(string subscriptionId, string resourceGroupName, string domainName, EventGridDomainRegenerateKeyContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.EventGrid/domains/", false); + uri.AppendPath(domainName, true); + uri.AppendPath("/regenerateKey", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRegenerateKeyRequest(string subscriptionId, string resourceGroupName, string domainName, EventGridDomainRegenerateKeyContent content) { var message = _pipeline.CreateMessage(); @@ -674,6 +800,14 @@ public Response RegenerateKey(string subscripti } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId, string filter, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId, string filter, int? top) { var message = _pipeline.CreateMessage(); @@ -746,6 +880,14 @@ public Response ListBySubscriptionNextPage(string nextLink, s } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string filter, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string filter, int? top) { var message = _pipeline.CreateMessage(); diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/RestOperations/EventSubscriptionsRestOperations.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/RestOperations/EventSubscriptionsRestOperations.cs index f127f379d393..5f332ca81810 100644 --- a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/RestOperations/EventSubscriptionsRestOperations.cs +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/RestOperations/EventSubscriptionsRestOperations.cs @@ -37,6 +37,19 @@ public EventSubscriptionsRestOperations(HttpPipeline pipeline, string applicatio _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetDeliveryAttributesRequestUri(string scope, string eventSubscriptionName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.EventGrid/eventSubscriptions/", false); + uri.AppendPath(eventSubscriptionName, true); + uri.AppendPath("/getDeliveryAttributes", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetDeliveryAttributesRequest(string scope, string eventSubscriptionName) { var message = _pipeline.CreateMessage(); @@ -110,6 +123,18 @@ public Response GetDeliveryAttributes(string scope, } } + internal RequestUriBuilder CreateGetRequestUri(string scope, string eventSubscriptionName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.EventGrid/eventSubscriptions/", false); + uri.AppendPath(eventSubscriptionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string scope, string eventSubscriptionName) { var message = _pipeline.CreateMessage(); @@ -186,6 +211,18 @@ public Response Get(string scope, string eventSubscri } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string scope, string eventSubscriptionName, EventGridSubscriptionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.EventGrid/eventSubscriptions/", false); + uri.AppendPath(eventSubscriptionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string scope, string eventSubscriptionName, EventGridSubscriptionData data) { var message = _pipeline.CreateMessage(); @@ -256,6 +293,18 @@ public Response CreateOrUpdate(string scope, string eventSubscriptionName, Event } } + internal RequestUriBuilder CreateDeleteRequestUri(string scope, string eventSubscriptionName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.EventGrid/eventSubscriptions/", false); + uri.AppendPath(eventSubscriptionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string scope, string eventSubscriptionName) { var message = _pipeline.CreateMessage(); @@ -321,6 +370,18 @@ public Response Delete(string scope, string eventSubscriptionName, CancellationT } } + internal RequestUriBuilder CreateUpdateRequestUri(string scope, string eventSubscriptionName, EventGridSubscriptionPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.EventGrid/eventSubscriptions/", false); + uri.AppendPath(eventSubscriptionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string scope, string eventSubscriptionName, EventGridSubscriptionPatch patch) { var message = _pipeline.CreateMessage(); @@ -391,6 +452,19 @@ public Response Update(string scope, string eventSubscriptionName, EventGridSubs } } + internal RequestUriBuilder CreateGetFullUriRequestUri(string scope, string eventSubscriptionName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.EventGrid/eventSubscriptions/", false); + uri.AppendPath(eventSubscriptionName, true); + uri.AppendPath("/getFullUrl", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetFullUriRequest(string scope, string eventSubscriptionName) { var message = _pipeline.CreateMessage(); @@ -464,6 +538,25 @@ public Response GetFullUri(string scope, string eventS } } + internal RequestUriBuilder CreateListGlobalBySubscriptionRequestUri(string subscriptionId, string filter, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.EventGrid/eventSubscriptions", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + return uri; + } + internal HttpMessage CreateListGlobalBySubscriptionRequest(string subscriptionId, string filter, int? top) { var message = _pipeline.CreateMessage(); @@ -543,6 +636,27 @@ public Response ListGlobalBySubscription(string su } } + internal RequestUriBuilder CreateListGlobalBySubscriptionForTopicTypeRequestUri(string subscriptionId, string topicTypeName, string filter, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.EventGrid/topicTypes/", false); + uri.AppendPath(topicTypeName, true); + uri.AppendPath("/eventSubscriptions", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + return uri; + } + internal HttpMessage CreateListGlobalBySubscriptionForTopicTypeRequest(string subscriptionId, string topicTypeName, string filter, int? top) { var message = _pipeline.CreateMessage(); @@ -628,6 +742,27 @@ public Response ListGlobalBySubscriptionForTopicTy } } + internal RequestUriBuilder CreateListGlobalByResourceGroupRequestUri(string subscriptionId, string resourceGroupName, string filter, int? top) + { + 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.EventGrid/eventSubscriptions", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + return uri; + } + internal HttpMessage CreateListGlobalByResourceGroupRequest(string subscriptionId, string resourceGroupName, string filter, int? top) { var message = _pipeline.CreateMessage(); @@ -713,6 +848,29 @@ public Response ListGlobalByResourceGroup(string s } } + internal RequestUriBuilder CreateListGlobalByResourceGroupForTopicTypeRequestUri(string subscriptionId, string resourceGroupName, string topicTypeName, string filter, int? top) + { + 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.EventGrid/topicTypes/", false); + uri.AppendPath(topicTypeName, true); + uri.AppendPath("/eventSubscriptions", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + return uri; + } + internal HttpMessage CreateListGlobalByResourceGroupForTopicTypeRequest(string subscriptionId, string resourceGroupName, string topicTypeName, string filter, int? top) { var message = _pipeline.CreateMessage(); @@ -804,6 +962,27 @@ public Response ListGlobalByResourceGroupForTopicT } } + internal RequestUriBuilder CreateListRegionalBySubscriptionRequestUri(string subscriptionId, AzureLocation location, string filter, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.EventGrid/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/eventSubscriptions", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + return uri; + } + internal HttpMessage CreateListRegionalBySubscriptionRequest(string subscriptionId, AzureLocation location, string filter, int? top) { var message = _pipeline.CreateMessage(); @@ -887,6 +1066,29 @@ public Response ListRegionalBySubscription(string } } + internal RequestUriBuilder CreateListRegionalByResourceGroupRequestUri(string subscriptionId, string resourceGroupName, AzureLocation location, string filter, int? top) + { + 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.EventGrid/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/eventSubscriptions", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + return uri; + } + internal HttpMessage CreateListRegionalByResourceGroupRequest(string subscriptionId, string resourceGroupName, AzureLocation location, string filter, int? top) { var message = _pipeline.CreateMessage(); @@ -976,6 +1178,29 @@ public Response ListRegionalByResourceGroup(string } } + internal RequestUriBuilder CreateListRegionalBySubscriptionForTopicTypeRequestUri(string subscriptionId, AzureLocation location, string topicTypeName, string filter, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.EventGrid/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/topicTypes/", false); + uri.AppendPath(topicTypeName, true); + uri.AppendPath("/eventSubscriptions", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + return uri; + } + internal HttpMessage CreateListRegionalBySubscriptionForTopicTypeRequest(string subscriptionId, AzureLocation location, string topicTypeName, string filter, int? top) { var message = _pipeline.CreateMessage(); @@ -1065,6 +1290,31 @@ public Response ListRegionalBySubscriptionForTopic } } + internal RequestUriBuilder CreateListRegionalByResourceGroupForTopicTypeRequestUri(string subscriptionId, string resourceGroupName, AzureLocation location, string topicTypeName, string filter, int? top) + { + 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.EventGrid/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/topicTypes/", false); + uri.AppendPath(topicTypeName, true); + uri.AppendPath("/eventSubscriptions", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + return uri; + } + internal HttpMessage CreateListRegionalByResourceGroupForTopicTypeRequest(string subscriptionId, string resourceGroupName, AzureLocation location, string topicTypeName, string filter, int? top) { var message = _pipeline.CreateMessage(); @@ -1160,6 +1410,33 @@ public Response ListRegionalByResourceGroupForTopi } } + internal RequestUriBuilder CreateListByResourceRequestUri(string subscriptionId, string resourceGroupName, string providerNamespace, string resourceTypeName, string resourceName, string filter, int? top) + { + 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/", false); + uri.AppendPath(providerNamespace, true); + uri.AppendPath("/", false); + uri.AppendPath(resourceTypeName, true); + uri.AppendPath("/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/providers/Microsoft.EventGrid/eventSubscriptions", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + return uri; + } + internal HttpMessage CreateListByResourceRequest(string subscriptionId, string resourceGroupName, string providerNamespace, string resourceTypeName, string resourceName, string filter, int? top) { var message = _pipeline.CreateMessage(); @@ -1263,6 +1540,31 @@ public Response ListByResource(string subscription } } + internal RequestUriBuilder CreateListByDomainTopicRequestUri(string subscriptionId, string resourceGroupName, string domainName, string topicName, string filter, int? top) + { + 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.EventGrid/domains/", false); + uri.AppendPath(domainName, true); + uri.AppendPath("/topics/", false); + uri.AppendPath(topicName, true); + uri.AppendPath("/providers/Microsoft.EventGrid/eventSubscriptions", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + return uri; + } + internal HttpMessage CreateListByDomainTopicRequest(string subscriptionId, string resourceGroupName, string domainName, string topicName, string filter, int? top) { var message = _pipeline.CreateMessage(); @@ -1360,6 +1662,14 @@ public Response ListByDomainTopic(string subscript } } + internal RequestUriBuilder CreateListGlobalBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId, string filter, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListGlobalBySubscriptionNextPageRequest(string nextLink, string subscriptionId, string filter, int? top) { var message = _pipeline.CreateMessage(); @@ -1432,6 +1742,14 @@ public Response ListGlobalBySubscriptionNextPage(s } } + internal RequestUriBuilder CreateListGlobalBySubscriptionForTopicTypeNextPageRequestUri(string nextLink, string subscriptionId, string topicTypeName, string filter, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListGlobalBySubscriptionForTopicTypeNextPageRequest(string nextLink, string subscriptionId, string topicTypeName, string filter, int? top) { var message = _pipeline.CreateMessage(); @@ -1508,6 +1826,14 @@ public Response ListGlobalBySubscriptionForTopicTy } } + internal RequestUriBuilder CreateListGlobalByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string filter, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListGlobalByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string filter, int? top) { var message = _pipeline.CreateMessage(); @@ -1584,6 +1910,14 @@ public Response ListGlobalByResourceGroupNextPage( } } + internal RequestUriBuilder CreateListGlobalByResourceGroupForTopicTypeNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string topicTypeName, string filter, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListGlobalByResourceGroupForTopicTypeNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string topicTypeName, string filter, int? top) { var message = _pipeline.CreateMessage(); @@ -1664,6 +1998,14 @@ public Response ListGlobalByResourceGroupForTopicT } } + internal RequestUriBuilder CreateListRegionalBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId, AzureLocation location, string filter, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListRegionalBySubscriptionNextPageRequest(string nextLink, string subscriptionId, AzureLocation location, string filter, int? top) { var message = _pipeline.CreateMessage(); @@ -1738,6 +2080,14 @@ public Response ListRegionalBySubscriptionNextPage } } + internal RequestUriBuilder CreateListRegionalByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, AzureLocation location, string filter, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListRegionalByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, AzureLocation location, string filter, int? top) { var message = _pipeline.CreateMessage(); @@ -1816,6 +2166,14 @@ public Response ListRegionalByResourceGroupNextPag } } + internal RequestUriBuilder CreateListRegionalBySubscriptionForTopicTypeNextPageRequestUri(string nextLink, string subscriptionId, AzureLocation location, string topicTypeName, string filter, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListRegionalBySubscriptionForTopicTypeNextPageRequest(string nextLink, string subscriptionId, AzureLocation location, string topicTypeName, string filter, int? top) { var message = _pipeline.CreateMessage(); @@ -1894,6 +2252,14 @@ public Response ListRegionalBySubscriptionForTopic } } + internal RequestUriBuilder CreateListRegionalByResourceGroupForTopicTypeNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, AzureLocation location, string topicTypeName, string filter, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListRegionalByResourceGroupForTopicTypeNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, AzureLocation location, string topicTypeName, string filter, int? top) { var message = _pipeline.CreateMessage(); @@ -1976,6 +2342,14 @@ public Response ListRegionalByResourceGroupForTopi } } + internal RequestUriBuilder CreateListByResourceNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string providerNamespace, string resourceTypeName, string resourceName, string filter, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string providerNamespace, string resourceTypeName, string resourceName, string filter, int? top) { var message = _pipeline.CreateMessage(); @@ -2064,6 +2438,14 @@ public Response ListByResourceNextPage(string next } } + internal RequestUriBuilder CreateListByDomainTopicNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string domainName, string topicName, string filter, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByDomainTopicNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string domainName, string topicName, string filter, int? top) { var message = _pipeline.CreateMessage(); diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/RestOperations/ExtensionTopicsRestOperations.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/RestOperations/ExtensionTopicsRestOperations.cs index c93847b92da2..73c64e69d58c 100644 --- a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/RestOperations/ExtensionTopicsRestOperations.cs +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/RestOperations/ExtensionTopicsRestOperations.cs @@ -36,6 +36,17 @@ public ExtensionTopicsRestOperations(HttpPipeline pipeline, string applicationId _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string scope) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.EventGrid/extensionTopics/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string scope) { var message = _pipeline.CreateMessage(); diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/RestOperations/NamespaceTopicEventSubscriptionsRestOperations.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/RestOperations/NamespaceTopicEventSubscriptionsRestOperations.cs index 6cb5e64c844d..e7886369495c 100644 --- a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/RestOperations/NamespaceTopicEventSubscriptionsRestOperations.cs +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/RestOperations/NamespaceTopicEventSubscriptionsRestOperations.cs @@ -37,6 +37,24 @@ public NamespaceTopicEventSubscriptionsRestOperations(HttpPipeline pipeline, str _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string topicName, string eventSubscriptionName) + { + 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.EventGrid/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/topics/", false); + uri.AppendPath(topicName, true); + uri.AppendPath("/eventSubscriptions/", false); + uri.AppendPath(eventSubscriptionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string namespaceName, string topicName, string eventSubscriptionName) { var message = _pipeline.CreateMessage(); @@ -131,6 +149,24 @@ public Response Get(string subscriptionId, } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string topicName, string eventSubscriptionName, NamespaceTopicEventSubscriptionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.EventGrid/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/topics/", false); + uri.AppendPath(topicName, true); + uri.AppendPath("/eventSubscriptions/", false); + uri.AppendPath(eventSubscriptionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string namespaceName, string topicName, string eventSubscriptionName, NamespaceTopicEventSubscriptionData data) { var message = _pipeline.CreateMessage(); @@ -221,6 +257,24 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string topicName, string eventSubscriptionName) + { + 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.EventGrid/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/topics/", false); + uri.AppendPath(topicName, true); + uri.AppendPath("/eventSubscriptions/", false); + uri.AppendPath(eventSubscriptionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string namespaceName, string topicName, string eventSubscriptionName) { var message = _pipeline.CreateMessage(); @@ -305,6 +359,24 @@ public Response Delete(string subscriptionId, string resourceGroupName, string n } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string topicName, string eventSubscriptionName, NamespaceTopicEventSubscriptionPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.EventGrid/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/topics/", false); + uri.AppendPath(topicName, true); + uri.AppendPath("/eventSubscriptions/", false); + uri.AppendPath(eventSubscriptionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string namespaceName, string topicName, string eventSubscriptionName, NamespaceTopicEventSubscriptionPatch patch) { var message = _pipeline.CreateMessage(); @@ -395,6 +467,31 @@ public Response Update(string subscriptionId, string resourceGroupName, string n } } + internal RequestUriBuilder CreateListByNamespaceTopicRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string topicName, string filter, int? top) + { + 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.EventGrid/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/topics/", false); + uri.AppendPath(topicName, true); + uri.AppendPath("/eventSubscriptions", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + return uri; + } + internal HttpMessage CreateListByNamespaceTopicRequest(string subscriptionId, string resourceGroupName, string namespaceName, string topicName, string filter, int? top) { var message = _pipeline.CreateMessage(); @@ -492,6 +589,25 @@ public Response ListByNamespaceTopic(string subscriptio } } + internal RequestUriBuilder CreateGetDeliveryAttributesRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string topicName, string eventSubscriptionName) + { + 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.EventGrid/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/topics/", false); + uri.AppendPath(topicName, true); + uri.AppendPath("/eventSubscriptions/", false); + uri.AppendPath(eventSubscriptionName, true); + uri.AppendPath("/getDeliveryAttributes", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetDeliveryAttributesRequest(string subscriptionId, string resourceGroupName, string namespaceName, string topicName, string eventSubscriptionName) { var message = _pipeline.CreateMessage(); @@ -583,6 +699,14 @@ public Response GetDeliveryAttributes(string subscr } } + internal RequestUriBuilder CreateListByNamespaceTopicNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string namespaceName, string topicName, string filter, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByNamespaceTopicNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string namespaceName, string topicName, string filter, int? top) { var message = _pipeline.CreateMessage(); diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/RestOperations/NamespaceTopicsRestOperations.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/RestOperations/NamespaceTopicsRestOperations.cs index e25d0ed6976f..17385f474f85 100644 --- a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/RestOperations/NamespaceTopicsRestOperations.cs +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/RestOperations/NamespaceTopicsRestOperations.cs @@ -37,6 +37,22 @@ public NamespaceTopicsRestOperations(HttpPipeline pipeline, string applicationId _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string topicName) + { + 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.EventGrid/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/topics/", false); + uri.AppendPath(topicName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string namespaceName, string topicName) { var message = _pipeline.CreateMessage(); @@ -125,6 +141,22 @@ public Response Get(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string topicName, NamespaceTopicData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.EventGrid/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/topics/", false); + uri.AppendPath(topicName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string namespaceName, string topicName, NamespaceTopicData data) { var message = _pipeline.CreateMessage(); @@ -209,6 +241,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string topicName) + { + 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.EventGrid/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/topics/", false); + uri.AppendPath(topicName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string namespaceName, string topicName) { var message = _pipeline.CreateMessage(); @@ -287,6 +335,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string n } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string topicName, NamespaceTopicPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.EventGrid/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/topics/", false); + uri.AppendPath(topicName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string namespaceName, string topicName, NamespaceTopicPatch patch) { var message = _pipeline.CreateMessage(); @@ -371,6 +435,29 @@ public Response Update(string subscriptionId, string resourceGroupName, string n } } + internal RequestUriBuilder CreateListByNamespaceRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string filter, int? top) + { + 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.EventGrid/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/topics", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + return uri; + } + internal HttpMessage CreateListByNamespaceRequest(string subscriptionId, string resourceGroupName, string namespaceName, string filter, int? top) { var message = _pipeline.CreateMessage(); @@ -462,6 +549,23 @@ public Response ListByNamespace(string subscriptionId } } + internal RequestUriBuilder CreateListSharedAccessKeysRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string topicName) + { + 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.EventGrid/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/topics/", false); + uri.AppendPath(topicName, true); + uri.AppendPath("/listKeys", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListSharedAccessKeysRequest(string subscriptionId, string resourceGroupName, string namespaceName, string topicName) { var message = _pipeline.CreateMessage(); @@ -547,6 +651,23 @@ public Response ListSharedAccessKeys(string subscriptionI } } + internal RequestUriBuilder CreateRegenerateKeyRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string topicName, TopicRegenerateKeyContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.EventGrid/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/topics/", false); + uri.AppendPath(topicName, true); + uri.AppendPath("/regenerateKey", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRegenerateKeyRequest(string subscriptionId, string resourceGroupName, string namespaceName, string topicName, TopicRegenerateKeyContent content) { var message = _pipeline.CreateMessage(); @@ -632,6 +753,14 @@ public Response RegenerateKey(string subscriptionId, string resourceGroupName, s } } + internal RequestUriBuilder CreateListByNamespaceNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string namespaceName, string filter, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByNamespaceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string namespaceName, string filter, int? top) { var message = _pipeline.CreateMessage(); diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/RestOperations/NamespacesRestOperations.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/RestOperations/NamespacesRestOperations.cs index ad5eb02d1616..0a5f6eb7d9e9 100644 --- a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/RestOperations/NamespacesRestOperations.cs +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/RestOperations/NamespacesRestOperations.cs @@ -37,6 +37,20 @@ public NamespacesRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string namespaceName) + { + 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.EventGrid/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string namespaceName) { var message = _pipeline.CreateMessage(); @@ -119,6 +133,20 @@ public Response Get(string subscriptionId, string resour } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, EventGridNamespaceData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.EventGrid/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string namespaceName, EventGridNamespaceData data) { var message = _pipeline.CreateMessage(); @@ -197,6 +225,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string namespaceName) + { + 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.EventGrid/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string namespaceName) { var message = _pipeline.CreateMessage(); @@ -269,6 +311,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string n } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, EventGridNamespacePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.EventGrid/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string namespaceName, EventGridNamespacePatch patch) { var message = _pipeline.CreateMessage(); @@ -347,6 +403,25 @@ public Response Update(string subscriptionId, string resourceGroupName, string n } } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId, string filter, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.EventGrid/namespaces", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId, string filter, int? top) { var message = _pipeline.CreateMessage(); @@ -426,6 +501,27 @@ public Response ListBySubscription(string subscriptionId, } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName, string filter, int? top) + { + 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.EventGrid/namespaces", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName, string filter, int? top) { var message = _pipeline.CreateMessage(); @@ -511,6 +607,21 @@ public Response ListByResourceGroup(string subscriptionId, } } + internal RequestUriBuilder CreateListSharedAccessKeysRequestUri(string subscriptionId, string resourceGroupName, string namespaceName) + { + 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.EventGrid/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/listKeys", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListSharedAccessKeysRequest(string subscriptionId, string resourceGroupName, string namespaceName) { var message = _pipeline.CreateMessage(); @@ -590,6 +701,21 @@ public Response ListSharedAccessKeys(string subscript } } + internal RequestUriBuilder CreateRegenerateKeyRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, NamespaceRegenerateKeyContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.EventGrid/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/regenerateKey", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRegenerateKeyRequest(string subscriptionId, string resourceGroupName, string namespaceName, NamespaceRegenerateKeyContent content) { var message = _pipeline.CreateMessage(); @@ -669,6 +795,14 @@ public Response RegenerateKey(string subscriptionId, string resourceGroupName, s } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId, string filter, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId, string filter, int? top) { var message = _pipeline.CreateMessage(); @@ -741,6 +875,14 @@ public Response ListBySubscriptionNextPage(string nextLink } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string filter, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string filter, int? top) { var message = _pipeline.CreateMessage(); diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/RestOperations/NetworkSecurityPerimeterConfigurationsRestOperations.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/RestOperations/NetworkSecurityPerimeterConfigurationsRestOperations.cs index d7b12b430c36..6d69b2172dba 100644 --- a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/RestOperations/NetworkSecurityPerimeterConfigurationsRestOperations.cs +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/RestOperations/NetworkSecurityPerimeterConfigurationsRestOperations.cs @@ -37,6 +37,26 @@ public NetworkSecurityPerimeterConfigurationsRestOperations(HttpPipeline pipelin _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, NetworkSecurityPerimeterResourceType resourceType, string resourceName, string perimeterGuid, string associationName) + { + 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.EventGrid/", false); + uri.AppendPath(resourceType.ToString(), true); + uri.AppendPath("/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/networkSecurityPerimeterConfigurations/", false); + uri.AppendPath(perimeterGuid, true); + uri.AppendPath(".", false); + uri.AppendPath(associationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, NetworkSecurityPerimeterResourceType resourceType, string resourceName, string perimeterGuid, string associationName) { var message = _pipeline.CreateMessage(); @@ -135,6 +155,27 @@ public Response Get(string subscripti } } + internal RequestUriBuilder CreateReconcileRequestUri(string subscriptionId, string resourceGroupName, NetworkSecurityPerimeterResourceType resourceType, string resourceName, string perimeterGuid, string associationName) + { + 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.EventGrid/", false); + uri.AppendPath(resourceType.ToString(), true); + uri.AppendPath("/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/networkSecurityPerimeterConfigurations/", false); + uri.AppendPath(perimeterGuid, true); + uri.AppendPath(".", false); + uri.AppendPath(associationName, true); + uri.AppendPath("/reconcile", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateReconcileRequest(string subscriptionId, string resourceGroupName, NetworkSecurityPerimeterResourceType resourceType, string resourceName, string perimeterGuid, string associationName) { var message = _pipeline.CreateMessage(); @@ -222,6 +263,23 @@ public Response Reconcile(string subscriptionId, string resourceGroupName, Netwo } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, NetworkSecurityPerimeterResourceType resourceType, string resourceName) + { + 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.EventGrid/", false); + uri.AppendPath(resourceType.ToString(), true); + uri.AppendPath("/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/networkSecurityPerimeterConfigurations", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, NetworkSecurityPerimeterResourceType resourceType, string resourceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/RestOperations/PartnerConfigurationsRestOperations.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/RestOperations/PartnerConfigurationsRestOperations.cs index 2334ba9432fa..86caab3e4f1d 100644 --- a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/RestOperations/PartnerConfigurationsRestOperations.cs +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/RestOperations/PartnerConfigurationsRestOperations.cs @@ -37,6 +37,19 @@ public PartnerConfigurationsRestOperations(HttpPipeline pipeline, string applica _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName) + { + 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.EventGrid/partnerConfigurations/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -114,6 +127,19 @@ public Response Get(string subscriptionId, string reso } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, PartnerConfigurationData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.EventGrid/partnerConfigurations/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, PartnerConfigurationData data) { var message = _pipeline.CreateMessage(); @@ -187,6 +213,19 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName) + { + 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.EventGrid/partnerConfigurations/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -253,6 +292,19 @@ public Response Delete(string subscriptionId, string resourceGroupName, Cancella } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, PartnerConfigurationPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.EventGrid/partnerConfigurations/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, PartnerConfigurationPatch patch) { var message = _pipeline.CreateMessage(); @@ -326,6 +378,19 @@ public Response Update(string subscriptionId, string resourceGroupName, PartnerC } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.EventGrid/partnerConfigurations", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -399,6 +464,25 @@ public Response ListByResourceGroup(string subs } } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId, string filter, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.EventGrid/partnerConfigurations", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId, string filter, int? top) { var message = _pipeline.CreateMessage(); @@ -478,6 +562,19 @@ public Response ListBySubscription(string subsc } } + internal RequestUriBuilder CreateAuthorizePartnerRequestUri(string subscriptionId, string resourceGroupName, EventGridPartnerContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.EventGrid/partnerConfigurations/default/authorizePartner", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateAuthorizePartnerRequest(string subscriptionId, string resourceGroupName, EventGridPartnerContent content) { var message = _pipeline.CreateMessage(); @@ -559,6 +656,19 @@ public Response AuthorizePartner(string subscriptionId } } + internal RequestUriBuilder CreateUnauthorizePartnerRequestUri(string subscriptionId, string resourceGroupName, EventGridPartnerContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.EventGrid/partnerConfigurations/default/unauthorizePartner", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUnauthorizePartnerRequest(string subscriptionId, string resourceGroupName, EventGridPartnerContent content) { var message = _pipeline.CreateMessage(); @@ -640,6 +750,14 @@ public Response UnauthorizePartner(string subscription } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId, string filter, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId, string filter, int? top) { var message = _pipeline.CreateMessage(); diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/RestOperations/PartnerDestinationsRestOperations.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/RestOperations/PartnerDestinationsRestOperations.cs index 776d411a7950..821e892f73b9 100644 --- a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/RestOperations/PartnerDestinationsRestOperations.cs +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/RestOperations/PartnerDestinationsRestOperations.cs @@ -37,6 +37,20 @@ public PartnerDestinationsRestOperations(HttpPipeline pipeline, string applicati _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string partnerDestinationName) + { + 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.EventGrid/partnerDestinations/", false); + uri.AppendPath(partnerDestinationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string partnerDestinationName) { var message = _pipeline.CreateMessage(); @@ -119,6 +133,20 @@ public Response Get(string subscriptionId, string resour } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string partnerDestinationName, PartnerDestinationData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.EventGrid/partnerDestinations/", false); + uri.AppendPath(partnerDestinationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string partnerDestinationName, PartnerDestinationData data) { var message = _pipeline.CreateMessage(); @@ -197,6 +225,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string partnerDestinationName) + { + 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.EventGrid/partnerDestinations/", false); + uri.AppendPath(partnerDestinationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string partnerDestinationName) { var message = _pipeline.CreateMessage(); @@ -269,6 +311,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string p } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string partnerDestinationName, PartnerDestinationPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.EventGrid/partnerDestinations/", false); + uri.AppendPath(partnerDestinationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string partnerDestinationName, PartnerDestinationPatch patch) { var message = _pipeline.CreateMessage(); @@ -349,6 +405,25 @@ public Response Update(string subscriptionId, string resourceGroupName, string p } } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId, string filter, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.EventGrid/partnerDestinations", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId, string filter, int? top) { var message = _pipeline.CreateMessage(); @@ -428,6 +503,27 @@ public Response ListBySubscription(string subscri } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName, string filter, int? top) + { + 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.EventGrid/partnerDestinations", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName, string filter, int? top) { var message = _pipeline.CreateMessage(); @@ -513,6 +609,21 @@ public Response ListByResourceGroup(string subscr } } + internal RequestUriBuilder CreateActivateRequestUri(string subscriptionId, string resourceGroupName, string partnerDestinationName) + { + 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.EventGrid/partnerDestinations/", false); + uri.AppendPath(partnerDestinationName, true); + uri.AppendPath("/activate", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateActivateRequest(string subscriptionId, string resourceGroupName, string partnerDestinationName) { var message = _pipeline.CreateMessage(); @@ -592,6 +703,14 @@ public Response Activate(string subscriptionId, string r } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId, string filter, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId, string filter, int? top) { var message = _pipeline.CreateMessage(); @@ -664,6 +783,14 @@ public Response ListBySubscriptionNextPage(string } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string filter, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string filter, int? top) { var message = _pipeline.CreateMessage(); diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/RestOperations/PartnerNamespacesRestOperations.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/RestOperations/PartnerNamespacesRestOperations.cs index ff33e14eed4e..b9f811f5713b 100644 --- a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/RestOperations/PartnerNamespacesRestOperations.cs +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/RestOperations/PartnerNamespacesRestOperations.cs @@ -37,6 +37,20 @@ public PartnerNamespacesRestOperations(HttpPipeline pipeline, string application _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string partnerNamespaceName) + { + 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.EventGrid/partnerNamespaces/", false); + uri.AppendPath(partnerNamespaceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string partnerNamespaceName) { var message = _pipeline.CreateMessage(); @@ -119,6 +133,20 @@ public Response Get(string subscriptionId, string resource } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string partnerNamespaceName, PartnerNamespaceData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.EventGrid/partnerNamespaces/", false); + uri.AppendPath(partnerNamespaceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string partnerNamespaceName, PartnerNamespaceData data) { var message = _pipeline.CreateMessage(); @@ -195,6 +223,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string partnerNamespaceName) + { + 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.EventGrid/partnerNamespaces/", false); + uri.AppendPath(partnerNamespaceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string partnerNamespaceName) { var message = _pipeline.CreateMessage(); @@ -267,6 +309,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string p } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string partnerNamespaceName, PartnerNamespacePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.EventGrid/partnerNamespaces/", false); + uri.AppendPath(partnerNamespaceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string partnerNamespaceName, PartnerNamespacePatch patch) { var message = _pipeline.CreateMessage(); @@ -345,6 +401,25 @@ public Response Update(string subscriptionId, string resourceGroupName, string p } } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId, string filter, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.EventGrid/partnerNamespaces", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId, string filter, int? top) { var message = _pipeline.CreateMessage(); @@ -424,6 +499,27 @@ public Response ListBySubscription(string subscript } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName, string filter, int? top) + { + 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.EventGrid/partnerNamespaces", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName, string filter, int? top) { var message = _pipeline.CreateMessage(); @@ -509,6 +605,21 @@ public Response ListByResourceGroup(string subscrip } } + internal RequestUriBuilder CreateListSharedAccessKeysRequestUri(string subscriptionId, string resourceGroupName, string partnerNamespaceName) + { + 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.EventGrid/partnerNamespaces/", false); + uri.AppendPath(partnerNamespaceName, true); + uri.AppendPath("/listKeys", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListSharedAccessKeysRequest(string subscriptionId, string resourceGroupName, string partnerNamespaceName) { var message = _pipeline.CreateMessage(); @@ -588,6 +699,21 @@ public Response ListSharedAccessKeys(string su } } + internal RequestUriBuilder CreateRegenerateKeyRequestUri(string subscriptionId, string resourceGroupName, string partnerNamespaceName, PartnerNamespaceRegenerateKeyContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.EventGrid/partnerNamespaces/", false); + uri.AppendPath(partnerNamespaceName, true); + uri.AppendPath("/regenerateKey", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRegenerateKeyRequest(string subscriptionId, string resourceGroupName, string partnerNamespaceName, PartnerNamespaceRegenerateKeyContent content) { var message = _pipeline.CreateMessage(); @@ -675,6 +801,14 @@ public Response RegenerateKey(string subscript } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId, string filter, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId, string filter, int? top) { var message = _pipeline.CreateMessage(); @@ -747,6 +881,14 @@ public Response ListBySubscriptionNextPage(string n } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string filter, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string filter, int? top) { var message = _pipeline.CreateMessage(); diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/RestOperations/PartnerRegistrationsRestOperations.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/RestOperations/PartnerRegistrationsRestOperations.cs index 87d4929c4740..68a417129d62 100644 --- a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/RestOperations/PartnerRegistrationsRestOperations.cs +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/RestOperations/PartnerRegistrationsRestOperations.cs @@ -37,6 +37,20 @@ public PartnerRegistrationsRestOperations(HttpPipeline pipeline, string applicat _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string partnerRegistrationName) + { + 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.EventGrid/partnerRegistrations/", false); + uri.AppendPath(partnerRegistrationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string partnerRegistrationName) { var message = _pipeline.CreateMessage(); @@ -119,6 +133,20 @@ public Response Get(string subscriptionId, string resou } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string partnerRegistrationName, PartnerRegistrationData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.EventGrid/partnerRegistrations/", false); + uri.AppendPath(partnerRegistrationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string partnerRegistrationName, PartnerRegistrationData data) { var message = _pipeline.CreateMessage(); @@ -197,6 +225,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string partnerRegistrationName) + { + 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.EventGrid/partnerRegistrations/", false); + uri.AppendPath(partnerRegistrationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string partnerRegistrationName) { var message = _pipeline.CreateMessage(); @@ -268,6 +310,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string p } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string partnerRegistrationName, PartnerRegistrationPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.EventGrid/partnerRegistrations/", false); + uri.AppendPath(partnerRegistrationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string partnerRegistrationName, PartnerRegistrationPatch patch) { var message = _pipeline.CreateMessage(); @@ -346,6 +402,25 @@ public Response Update(string subscriptionId, string resourceGroupName, string p } } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId, string filter, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.EventGrid/partnerRegistrations", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId, string filter, int? top) { var message = _pipeline.CreateMessage(); @@ -425,6 +500,27 @@ public Response ListBySubscription(string subscr } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName, string filter, int? top) + { + 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.EventGrid/partnerRegistrations", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName, string filter, int? top) { var message = _pipeline.CreateMessage(); @@ -510,6 +606,14 @@ public Response ListByResourceGroup(string subsc } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId, string filter, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId, string filter, int? top) { var message = _pipeline.CreateMessage(); @@ -582,6 +686,14 @@ public Response ListBySubscriptionNextPage(strin } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string filter, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string filter, int? top) { var message = _pipeline.CreateMessage(); diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/RestOperations/PartnerTopicEventSubscriptionsRestOperations.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/RestOperations/PartnerTopicEventSubscriptionsRestOperations.cs index a78e13c70ee1..0636b55edc18 100644 --- a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/RestOperations/PartnerTopicEventSubscriptionsRestOperations.cs +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/RestOperations/PartnerTopicEventSubscriptionsRestOperations.cs @@ -37,6 +37,22 @@ public PartnerTopicEventSubscriptionsRestOperations(HttpPipeline pipeline, strin _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string partnerTopicName, string eventSubscriptionName) + { + 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.EventGrid/partnerTopics/", false); + uri.AppendPath(partnerTopicName, true); + uri.AppendPath("/eventSubscriptions/", false); + uri.AppendPath(eventSubscriptionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string partnerTopicName, string eventSubscriptionName) { var message = _pipeline.CreateMessage(); @@ -125,6 +141,22 @@ public Response Get(string subscriptionId, string res } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string partnerTopicName, string eventSubscriptionName, EventGridSubscriptionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.EventGrid/partnerTopics/", false); + uri.AppendPath(partnerTopicName, true); + uri.AppendPath("/eventSubscriptions/", false); + uri.AppendPath(eventSubscriptionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string partnerTopicName, string eventSubscriptionName, EventGridSubscriptionData data) { var message = _pipeline.CreateMessage(); @@ -209,6 +241,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string partnerTopicName, string eventSubscriptionName) + { + 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.EventGrid/partnerTopics/", false); + uri.AppendPath(partnerTopicName, true); + uri.AppendPath("/eventSubscriptions/", false); + uri.AppendPath(eventSubscriptionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string partnerTopicName, string eventSubscriptionName) { var message = _pipeline.CreateMessage(); @@ -286,6 +334,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string p } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string partnerTopicName, string eventSubscriptionName, EventGridSubscriptionPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.EventGrid/partnerTopics/", false); + uri.AppendPath(partnerTopicName, true); + uri.AppendPath("/eventSubscriptions/", false); + uri.AppendPath(eventSubscriptionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string partnerTopicName, string eventSubscriptionName, EventGridSubscriptionPatch patch) { var message = _pipeline.CreateMessage(); @@ -368,6 +432,23 @@ public Response Update(string subscriptionId, string resourceGroupName, string p } } + internal RequestUriBuilder CreateGetFullUriRequestUri(string subscriptionId, string resourceGroupName, string partnerTopicName, string eventSubscriptionName) + { + 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.EventGrid/partnerTopics/", false); + uri.AppendPath(partnerTopicName, true); + uri.AppendPath("/eventSubscriptions/", false); + uri.AppendPath(eventSubscriptionName, true); + uri.AppendPath("/getFullUrl", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetFullUriRequest(string subscriptionId, string resourceGroupName, string partnerTopicName, string eventSubscriptionName) { var message = _pipeline.CreateMessage(); @@ -453,6 +534,29 @@ public Response GetFullUri(string subscriptionId, stri } } + internal RequestUriBuilder CreateListByPartnerTopicRequestUri(string subscriptionId, string resourceGroupName, string partnerTopicName, string filter, int? top) + { + 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.EventGrid/partnerTopics/", false); + uri.AppendPath(partnerTopicName, true); + uri.AppendPath("/eventSubscriptions", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + return uri; + } + internal HttpMessage CreateListByPartnerTopicRequest(string subscriptionId, string resourceGroupName, string partnerTopicName, string filter, int? top) { var message = _pipeline.CreateMessage(); @@ -544,6 +648,23 @@ public Response ListByPartnerTopic(string subscrip } } + internal RequestUriBuilder CreateGetDeliveryAttributesRequestUri(string subscriptionId, string resourceGroupName, string partnerTopicName, string eventSubscriptionName) + { + 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.EventGrid/partnerTopics/", false); + uri.AppendPath(partnerTopicName, true); + uri.AppendPath("/eventSubscriptions/", false); + uri.AppendPath(eventSubscriptionName, true); + uri.AppendPath("/getDeliveryAttributes", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetDeliveryAttributesRequest(string subscriptionId, string resourceGroupName, string partnerTopicName, string eventSubscriptionName) { var message = _pipeline.CreateMessage(); @@ -629,6 +750,14 @@ public Response GetDeliveryAttributes(string subscr } } + internal RequestUriBuilder CreateListByPartnerTopicNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string partnerTopicName, string filter, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByPartnerTopicNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string partnerTopicName, string filter, int? top) { var message = _pipeline.CreateMessage(); diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/RestOperations/PartnerTopicsRestOperations.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/RestOperations/PartnerTopicsRestOperations.cs index ef9fc922b117..9be47ddfc677 100644 --- a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/RestOperations/PartnerTopicsRestOperations.cs +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/RestOperations/PartnerTopicsRestOperations.cs @@ -37,6 +37,20 @@ public PartnerTopicsRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string partnerTopicName) + { + 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.EventGrid/partnerTopics/", false); + uri.AppendPath(partnerTopicName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string partnerTopicName) { var message = _pipeline.CreateMessage(); @@ -119,6 +133,20 @@ public Response Get(string subscriptionId, string resourceGrou } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string partnerTopicName, PartnerTopicData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.EventGrid/partnerTopics/", false); + uri.AppendPath(partnerTopicName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string partnerTopicName, PartnerTopicData data) { var message = _pipeline.CreateMessage(); @@ -207,6 +235,20 @@ public Response CreateOrUpdate(string subscriptionId, string r } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string partnerTopicName) + { + 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.EventGrid/partnerTopics/", false); + uri.AppendPath(partnerTopicName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string partnerTopicName) { var message = _pipeline.CreateMessage(); @@ -278,6 +320,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string p } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string partnerTopicName, PartnerTopicPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.EventGrid/partnerTopics/", false); + uri.AppendPath(partnerTopicName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string partnerTopicName, PartnerTopicPatch patch) { var message = _pipeline.CreateMessage(); @@ -368,6 +424,25 @@ public Response Update(string subscriptionId, string resourceG } } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId, string filter, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.EventGrid/partnerTopics", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId, string filter, int? top) { var message = _pipeline.CreateMessage(); @@ -447,6 +522,27 @@ public Response ListBySubscription(string subscriptionI } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName, string filter, int? top) + { + 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.EventGrid/partnerTopics", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName, string filter, int? top) { var message = _pipeline.CreateMessage(); @@ -532,6 +628,21 @@ public Response ListByResourceGroup(string subscription } } + internal RequestUriBuilder CreateActivateRequestUri(string subscriptionId, string resourceGroupName, string partnerTopicName) + { + 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.EventGrid/partnerTopics/", false); + uri.AppendPath(partnerTopicName, true); + uri.AppendPath("/activate", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateActivateRequest(string subscriptionId, string resourceGroupName, string partnerTopicName) { var message = _pipeline.CreateMessage(); @@ -611,6 +722,21 @@ public Response Activate(string subscriptionId, string resourc } } + internal RequestUriBuilder CreateDeactivateRequestUri(string subscriptionId, string resourceGroupName, string partnerTopicName) + { + 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.EventGrid/partnerTopics/", false); + uri.AppendPath(partnerTopicName, true); + uri.AppendPath("/deactivate", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeactivateRequest(string subscriptionId, string resourceGroupName, string partnerTopicName) { var message = _pipeline.CreateMessage(); @@ -690,6 +816,14 @@ public Response Deactivate(string subscriptionId, string resou } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId, string filter, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId, string filter, int? top) { var message = _pipeline.CreateMessage(); @@ -762,6 +896,14 @@ public Response ListBySubscriptionNextPage(string nextL } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string filter, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string filter, int? top) { var message = _pipeline.CreateMessage(); diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/RestOperations/PermissionBindingsRestOperations.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/RestOperations/PermissionBindingsRestOperations.cs index d59030347532..7f428733bf99 100644 --- a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/RestOperations/PermissionBindingsRestOperations.cs +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/RestOperations/PermissionBindingsRestOperations.cs @@ -37,6 +37,22 @@ public PermissionBindingsRestOperations(HttpPipeline pipeline, string applicatio _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string permissionBindingName) + { + 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.EventGrid/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/permissionBindings/", false); + uri.AppendPath(permissionBindingName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string namespaceName, string permissionBindingName) { var message = _pipeline.CreateMessage(); @@ -125,6 +141,22 @@ public Response Get(string subscription } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string permissionBindingName, EventGridNamespacePermissionBindingData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.EventGrid/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/permissionBindings/", false); + uri.AppendPath(permissionBindingName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string namespaceName, string permissionBindingName, EventGridNamespacePermissionBindingData data) { var message = _pipeline.CreateMessage(); @@ -209,6 +241,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string permissionBindingName) + { + 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.EventGrid/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/permissionBindings/", false); + uri.AppendPath(permissionBindingName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string namespaceName, string permissionBindingName) { var message = _pipeline.CreateMessage(); @@ -287,6 +335,29 @@ public Response Delete(string subscriptionId, string resourceGroupName, string n } } + internal RequestUriBuilder CreateListByNamespaceRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string filter, int? top) + { + 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.EventGrid/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/permissionBindings", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + return uri; + } + internal HttpMessage CreateListByNamespaceRequest(string subscriptionId, string resourceGroupName, string namespaceName, string filter, int? top) { var message = _pipeline.CreateMessage(); @@ -378,6 +449,14 @@ public Response ListByNamespace(string subscriptio } } + internal RequestUriBuilder CreateListByNamespaceNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string namespaceName, string filter, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByNamespaceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string namespaceName, string filter, int? top) { var message = _pipeline.CreateMessage(); diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs index 9b88e97a0e4f..220148912e49 100644 --- a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs @@ -37,6 +37,24 @@ public PrivateEndpointConnectionsRestOperations(HttpPipeline pipeline, string ap _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, ParentType parentType, string parentName, string privateEndpointConnectionName) + { + 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.EventGrid/", false); + uri.AppendPath(parentType.ToString(), true); + uri.AppendPath("/", false); + uri.AppendPath(parentName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, ParentType parentType, string parentName, string privateEndpointConnectionName) { var message = _pipeline.CreateMessage(); @@ -129,6 +147,24 @@ public Response Get(string subscriptionI } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, ParentType parentType, string parentName, string privateEndpointConnectionName, EventGridPrivateEndpointConnectionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.EventGrid/", false); + uri.AppendPath(parentType.ToString(), true); + uri.AppendPath("/", false); + uri.AppendPath(parentName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, ParentType parentType, string parentName, string privateEndpointConnectionName, EventGridPrivateEndpointConnectionData data) { var message = _pipeline.CreateMessage(); @@ -217,6 +253,24 @@ public Response Update(string subscriptionId, string resourceGroupName, ParentTy } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, ParentType parentType, string parentName, string privateEndpointConnectionName) + { + 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.EventGrid/", false); + uri.AppendPath(parentType.ToString(), true); + uri.AppendPath("/", false); + uri.AppendPath(parentName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, ParentType parentType, string parentName, string privateEndpointConnectionName) { var message = _pipeline.CreateMessage(); @@ -296,6 +350,31 @@ public Response Delete(string subscriptionId, string resourceGroupName, ParentTy } } + internal RequestUriBuilder CreateListByResourceRequestUri(string subscriptionId, string resourceGroupName, ParentType parentType, string parentName, string filter, int? top) + { + 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.EventGrid/", false); + uri.AppendPath(parentType.ToString(), true); + uri.AppendPath("/", false); + uri.AppendPath(parentName, true); + uri.AppendPath("/privateEndpointConnections", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + return uri; + } + internal HttpMessage CreateListByResourceRequest(string subscriptionId, string resourceGroupName, ParentType parentType, string parentName, string filter, int? top) { var message = _pipeline.CreateMessage(); @@ -391,6 +470,14 @@ public Response ListByResource(str } } + internal RequestUriBuilder CreateListByResourceNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, ParentType parentType, string parentName, string filter, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, ParentType parentType, string parentName, string filter, int? top) { var message = _pipeline.CreateMessage(); diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs index 718cc389300b..c2c18d91948d 100644 --- a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs @@ -37,6 +37,24 @@ public PrivateLinkResourcesRestOperations(HttpPipeline pipeline, string applicat _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, ParentType parentType, string parentName, string privateLinkResourceName) + { + 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.EventGrid/", false); + uri.AppendPath(parentType.ToString(), true); + uri.AppendPath("/", false); + uri.AppendPath(parentName, true); + uri.AppendPath("/privateLinkResources/", false); + uri.AppendPath(privateLinkResourceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, ParentType parentType, string parentName, string privateLinkResourceName) { var message = _pipeline.CreateMessage(); @@ -129,6 +147,31 @@ public Response Get(string subscriptionId, str } } + internal RequestUriBuilder CreateListByResourceRequestUri(string subscriptionId, string resourceGroupName, ParentType parentType, string parentName, string filter, int? top) + { + 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.EventGrid/", false); + uri.AppendPath(parentType.ToString(), true); + uri.AppendPath("/", false); + uri.AppendPath(parentName, true); + uri.AppendPath("/privateLinkResources", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + return uri; + } + internal HttpMessage CreateListByResourceRequest(string subscriptionId, string resourceGroupName, ParentType parentType, string parentName, string filter, int? top) { var message = _pipeline.CreateMessage(); @@ -224,6 +267,14 @@ public Response ListByResource(string subscripti } } + internal RequestUriBuilder CreateListByResourceNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, ParentType parentType, string parentName, string filter, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, ParentType parentType, string parentName, string filter, int? top) { var message = _pipeline.CreateMessage(); diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/RestOperations/SystemTopicEventSubscriptionsRestOperations.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/RestOperations/SystemTopicEventSubscriptionsRestOperations.cs index d18b3060c38e..a15a615ef736 100644 --- a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/RestOperations/SystemTopicEventSubscriptionsRestOperations.cs +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/RestOperations/SystemTopicEventSubscriptionsRestOperations.cs @@ -37,6 +37,23 @@ public SystemTopicEventSubscriptionsRestOperations(HttpPipeline pipeline, string _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetDeliveryAttributesRequestUri(string subscriptionId, string resourceGroupName, string systemTopicName, string eventSubscriptionName) + { + 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.EventGrid/systemTopics/", false); + uri.AppendPath(systemTopicName, true); + uri.AppendPath("/eventSubscriptions/", false); + uri.AppendPath(eventSubscriptionName, true); + uri.AppendPath("/getDeliveryAttributes", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetDeliveryAttributesRequest(string subscriptionId, string resourceGroupName, string systemTopicName, string eventSubscriptionName) { var message = _pipeline.CreateMessage(); @@ -122,6 +139,22 @@ public Response GetDeliveryAttributes(string subscr } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string systemTopicName, string eventSubscriptionName) + { + 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.EventGrid/systemTopics/", false); + uri.AppendPath(systemTopicName, true); + uri.AppendPath("/eventSubscriptions/", false); + uri.AppendPath(eventSubscriptionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string systemTopicName, string eventSubscriptionName) { var message = _pipeline.CreateMessage(); @@ -210,6 +243,22 @@ public Response Get(string subscriptionId, string res } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string systemTopicName, string eventSubscriptionName, EventGridSubscriptionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.EventGrid/systemTopics/", false); + uri.AppendPath(systemTopicName, true); + uri.AppendPath("/eventSubscriptions/", false); + uri.AppendPath(eventSubscriptionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string systemTopicName, string eventSubscriptionName, EventGridSubscriptionData data) { var message = _pipeline.CreateMessage(); @@ -292,6 +341,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string systemTopicName, string eventSubscriptionName) + { + 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.EventGrid/systemTopics/", false); + uri.AppendPath(systemTopicName, true); + uri.AppendPath("/eventSubscriptions/", false); + uri.AppendPath(eventSubscriptionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string systemTopicName, string eventSubscriptionName) { var message = _pipeline.CreateMessage(); @@ -369,6 +434,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string systemTopicName, string eventSubscriptionName, EventGridSubscriptionPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.EventGrid/systemTopics/", false); + uri.AppendPath(systemTopicName, true); + uri.AppendPath("/eventSubscriptions/", false); + uri.AppendPath(eventSubscriptionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string systemTopicName, string eventSubscriptionName, EventGridSubscriptionPatch patch) { var message = _pipeline.CreateMessage(); @@ -451,6 +532,23 @@ public Response Update(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateGetFullUriRequestUri(string subscriptionId, string resourceGroupName, string systemTopicName, string eventSubscriptionName) + { + 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.EventGrid/systemTopics/", false); + uri.AppendPath(systemTopicName, true); + uri.AppendPath("/eventSubscriptions/", false); + uri.AppendPath(eventSubscriptionName, true); + uri.AppendPath("/getFullUrl", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetFullUriRequest(string subscriptionId, string resourceGroupName, string systemTopicName, string eventSubscriptionName) { var message = _pipeline.CreateMessage(); @@ -536,6 +634,29 @@ public Response GetFullUri(string subscriptionId, stri } } + internal RequestUriBuilder CreateListBySystemTopicRequestUri(string subscriptionId, string resourceGroupName, string systemTopicName, string filter, int? top) + { + 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.EventGrid/systemTopics/", false); + uri.AppendPath(systemTopicName, true); + uri.AppendPath("/eventSubscriptions", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + return uri; + } + internal HttpMessage CreateListBySystemTopicRequest(string subscriptionId, string resourceGroupName, string systemTopicName, string filter, int? top) { var message = _pipeline.CreateMessage(); @@ -627,6 +748,14 @@ public Response ListBySystemTopic(string subscript } } + internal RequestUriBuilder CreateListBySystemTopicNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string systemTopicName, string filter, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySystemTopicNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string systemTopicName, string filter, int? top) { var message = _pipeline.CreateMessage(); diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/RestOperations/SystemTopicsRestOperations.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/RestOperations/SystemTopicsRestOperations.cs index 99f857a4e4dd..f436fd096bb0 100644 --- a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/RestOperations/SystemTopicsRestOperations.cs +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/RestOperations/SystemTopicsRestOperations.cs @@ -37,6 +37,20 @@ public SystemTopicsRestOperations(HttpPipeline pipeline, string applicationId, U _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string systemTopicName) + { + 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.EventGrid/systemTopics/", false); + uri.AppendPath(systemTopicName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string systemTopicName) { var message = _pipeline.CreateMessage(); @@ -119,6 +133,20 @@ public Response Get(string subscriptionId, string resourceGroup } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string systemTopicName, SystemTopicData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.EventGrid/systemTopics/", false); + uri.AppendPath(systemTopicName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string systemTopicName, SystemTopicData data) { var message = _pipeline.CreateMessage(); @@ -197,6 +225,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string systemTopicName) + { + 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.EventGrid/systemTopics/", false); + uri.AppendPath(systemTopicName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string systemTopicName) { var message = _pipeline.CreateMessage(); @@ -268,6 +310,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string systemTopicName, SystemTopicPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.EventGrid/systemTopics/", false); + uri.AppendPath(systemTopicName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string systemTopicName, SystemTopicPatch patch) { var message = _pipeline.CreateMessage(); @@ -346,6 +402,25 @@ public Response Update(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId, string filter, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.EventGrid/systemTopics", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId, string filter, int? top) { var message = _pipeline.CreateMessage(); @@ -425,6 +500,27 @@ public Response ListBySubscription(string subscriptionId } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName, string filter, int? top) + { + 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.EventGrid/systemTopics", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName, string filter, int? top) { var message = _pipeline.CreateMessage(); @@ -510,6 +606,14 @@ public Response ListByResourceGroup(string subscriptionI } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId, string filter, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId, string filter, int? top) { var message = _pipeline.CreateMessage(); @@ -582,6 +686,14 @@ public Response ListBySubscriptionNextPage(string nextLi } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string filter, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string filter, int? top) { var message = _pipeline.CreateMessage(); diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/RestOperations/TopicEventSubscriptionsRestOperations.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/RestOperations/TopicEventSubscriptionsRestOperations.cs index 3d710a1538ca..fc0d2b14a102 100644 --- a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/RestOperations/TopicEventSubscriptionsRestOperations.cs +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/RestOperations/TopicEventSubscriptionsRestOperations.cs @@ -37,6 +37,23 @@ public TopicEventSubscriptionsRestOperations(HttpPipeline pipeline, string appli _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetDeliveryAttributesRequestUri(string subscriptionId, string resourceGroupName, string topicName, string eventSubscriptionName) + { + 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.EventGrid/topics/", false); + uri.AppendPath(topicName, true); + uri.AppendPath("/eventSubscriptions/", false); + uri.AppendPath(eventSubscriptionName, true); + uri.AppendPath("/getDeliveryAttributes", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetDeliveryAttributesRequest(string subscriptionId, string resourceGroupName, string topicName, string eventSubscriptionName) { var message = _pipeline.CreateMessage(); @@ -122,6 +139,22 @@ public Response GetDeliveryAttributes(string subscr } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string topicName, string eventSubscriptionName) + { + 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.EventGrid/topics/", false); + uri.AppendPath(topicName, true); + uri.AppendPath("/eventSubscriptions/", false); + uri.AppendPath(eventSubscriptionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string topicName, string eventSubscriptionName) { var message = _pipeline.CreateMessage(); @@ -210,6 +243,22 @@ public Response Get(string subscriptionId, string res } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string topicName, string eventSubscriptionName, EventGridSubscriptionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.EventGrid/topics/", false); + uri.AppendPath(topicName, true); + uri.AppendPath("/eventSubscriptions/", false); + uri.AppendPath(eventSubscriptionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string topicName, string eventSubscriptionName, EventGridSubscriptionData data) { var message = _pipeline.CreateMessage(); @@ -294,6 +343,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string topicName, string eventSubscriptionName) + { + 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.EventGrid/topics/", false); + uri.AppendPath(topicName, true); + uri.AppendPath("/eventSubscriptions/", false); + uri.AppendPath(eventSubscriptionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string topicName, string eventSubscriptionName) { var message = _pipeline.CreateMessage(); @@ -371,6 +436,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string t } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string topicName, string eventSubscriptionName, EventGridSubscriptionPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.EventGrid/topics/", false); + uri.AppendPath(topicName, true); + uri.AppendPath("/eventSubscriptions/", false); + uri.AppendPath(eventSubscriptionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string topicName, string eventSubscriptionName, EventGridSubscriptionPatch patch) { var message = _pipeline.CreateMessage(); @@ -453,6 +534,23 @@ public Response Update(string subscriptionId, string resourceGroupName, string t } } + internal RequestUriBuilder CreateGetFullUriRequestUri(string subscriptionId, string resourceGroupName, string topicName, string eventSubscriptionName) + { + 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.EventGrid/topics/", false); + uri.AppendPath(topicName, true); + uri.AppendPath("/eventSubscriptions/", false); + uri.AppendPath(eventSubscriptionName, true); + uri.AppendPath("/getFullUrl", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetFullUriRequest(string subscriptionId, string resourceGroupName, string topicName, string eventSubscriptionName) { var message = _pipeline.CreateMessage(); @@ -538,6 +636,29 @@ public Response GetFullUri(string subscriptionId, stri } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string topicName, string filter, int? top) + { + 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.EventGrid/topics/", false); + uri.AppendPath(topicName, true); + uri.AppendPath("/eventSubscriptions", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string topicName, string filter, int? top) { var message = _pipeline.CreateMessage(); @@ -629,6 +750,14 @@ public Response List(string subscriptionId, string } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string topicName, string filter, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string topicName, string filter, int? top) { var message = _pipeline.CreateMessage(); diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/RestOperations/TopicSpacesRestOperations.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/RestOperations/TopicSpacesRestOperations.cs index ad5ae425a1f3..800e39dc361b 100644 --- a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/RestOperations/TopicSpacesRestOperations.cs +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/RestOperations/TopicSpacesRestOperations.cs @@ -37,6 +37,22 @@ public TopicSpacesRestOperations(HttpPipeline pipeline, string applicationId, Ur _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string topicSpaceName) + { + 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.EventGrid/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/topicSpaces/", false); + uri.AppendPath(topicSpaceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string namespaceName, string topicSpaceName) { var message = _pipeline.CreateMessage(); @@ -125,6 +141,22 @@ public Response Get(string subscriptionId, string resourceGroupN } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string topicSpaceName, TopicSpaceData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.EventGrid/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/topicSpaces/", false); + uri.AppendPath(topicSpaceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string namespaceName, string topicSpaceName, TopicSpaceData data) { var message = _pipeline.CreateMessage(); @@ -209,6 +241,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string topicSpaceName) + { + 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.EventGrid/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/topicSpaces/", false); + uri.AppendPath(topicSpaceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string namespaceName, string topicSpaceName) { var message = _pipeline.CreateMessage(); @@ -287,6 +335,29 @@ public Response Delete(string subscriptionId, string resourceGroupName, string n } } + internal RequestUriBuilder CreateListByNamespaceRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string filter, int? top) + { + 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.EventGrid/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/topicSpaces", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + return uri; + } + internal HttpMessage CreateListByNamespaceRequest(string subscriptionId, string resourceGroupName, string namespaceName, string filter, int? top) { var message = _pipeline.CreateMessage(); @@ -378,6 +449,14 @@ public Response ListByNamespace(string subscriptionId, st } } + internal RequestUriBuilder CreateListByNamespaceNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string namespaceName, string filter, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByNamespaceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string namespaceName, string filter, int? top) { var message = _pipeline.CreateMessage(); diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/RestOperations/TopicTypesRestOperations.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/RestOperations/TopicTypesRestOperations.cs index db04c12428c6..d3b9a473d70d 100644 --- a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/RestOperations/TopicTypesRestOperations.cs +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/RestOperations/TopicTypesRestOperations.cs @@ -37,6 +37,15 @@ public TopicTypesRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri() + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.EventGrid/topicTypes", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest() { var message = _pipeline.CreateMessage(); @@ -92,6 +101,16 @@ public Response List(CancellationToken cancellationToken = } } + internal RequestUriBuilder CreateGetRequestUri(string topicTypeName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.EventGrid/topicTypes/", false); + uri.AppendPath(topicTypeName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string topicTypeName) { var message = _pipeline.CreateMessage(); @@ -162,6 +181,17 @@ public Response Get(string topicTypeName, CancellationToken cance } } + internal RequestUriBuilder CreateListEventTypesRequestUri(string topicTypeName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.EventGrid/topicTypes/", false); + uri.AppendPath(topicTypeName, true); + uri.AppendPath("/eventTypes", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListEventTypesRequest(string topicTypeName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/RestOperations/TopicsRestOperations.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/RestOperations/TopicsRestOperations.cs index d43023e0120f..d980af1bf5ad 100644 --- a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/RestOperations/TopicsRestOperations.cs +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/RestOperations/TopicsRestOperations.cs @@ -37,6 +37,20 @@ public TopicsRestOperations(HttpPipeline pipeline, string applicationId, Uri end _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string topicName) + { + 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.EventGrid/topics/", false); + uri.AppendPath(topicName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string topicName) { var message = _pipeline.CreateMessage(); @@ -119,6 +133,20 @@ public Response Get(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string topicName, EventGridTopicData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.EventGrid/topics/", false); + uri.AppendPath(topicName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string topicName, EventGridTopicData data) { var message = _pipeline.CreateMessage(); @@ -195,6 +223,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string topicName) + { + 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.EventGrid/topics/", false); + uri.AppendPath(topicName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string topicName) { var message = _pipeline.CreateMessage(); @@ -264,6 +306,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string t } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string topicName, EventGridTopicPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.EventGrid/topics/", false); + uri.AppendPath(topicName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string topicName, EventGridTopicPatch patch) { var message = _pipeline.CreateMessage(); @@ -342,6 +398,25 @@ public Response Update(string subscriptionId, string resourceGroupName, string t } } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId, string filter, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.EventGrid/topics", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId, string filter, int? top) { var message = _pipeline.CreateMessage(); @@ -421,6 +496,27 @@ public Response ListBySubscription(string subscriptionId, stri } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName, string filter, int? top) + { + 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.EventGrid/topics", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName, string filter, int? top) { var message = _pipeline.CreateMessage(); @@ -506,6 +602,21 @@ public Response ListByResourceGroup(string subscriptionId, str } } + internal RequestUriBuilder CreateListSharedAccessKeysRequestUri(string subscriptionId, string resourceGroupName, string topicName) + { + 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.EventGrid/topics/", false); + uri.AppendPath(topicName, true); + uri.AppendPath("/listKeys", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListSharedAccessKeysRequest(string subscriptionId, string resourceGroupName, string topicName) { var message = _pipeline.CreateMessage(); @@ -585,6 +696,21 @@ public Response ListSharedAccessKeys(string subscriptionI } } + internal RequestUriBuilder CreateRegenerateKeyRequestUri(string subscriptionId, string resourceGroupName, string topicName, TopicRegenerateKeyContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.EventGrid/topics/", false); + uri.AppendPath(topicName, true); + uri.AppendPath("/regenerateKey", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRegenerateKeyRequest(string subscriptionId, string resourceGroupName, string topicName, TopicRegenerateKeyContent content) { var message = _pipeline.CreateMessage(); @@ -664,6 +790,25 @@ public Response RegenerateKey(string subscriptionId, string resourceGroupName, s } } + internal RequestUriBuilder CreateListEventTypesRequestUri(string subscriptionId, string resourceGroupName, string providerNamespace, string resourceTypeName, string resourceName) + { + 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/", false); + uri.AppendPath(providerNamespace, true); + uri.AppendPath("/", false); + uri.AppendPath(resourceTypeName, true); + uri.AppendPath("/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/providers/Microsoft.EventGrid/eventTypes", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListEventTypesRequest(string subscriptionId, string resourceGroupName, string providerNamespace, string resourceTypeName, string resourceName) { var message = _pipeline.CreateMessage(); @@ -755,6 +900,14 @@ public Response ListEventTypes(string subscriptionId, stri } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId, string filter, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId, string filter, int? top) { var message = _pipeline.CreateMessage(); @@ -827,6 +980,14 @@ public Response ListBySubscriptionNextPage(string nextLink, st } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string filter, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string filter, int? top) { var message = _pipeline.CreateMessage(); diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/RestOperations/VerifiedPartnersRestOperations.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/RestOperations/VerifiedPartnersRestOperations.cs index 8ba0793a55bc..e1cfcd5ed061 100644 --- a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/RestOperations/VerifiedPartnersRestOperations.cs +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/RestOperations/VerifiedPartnersRestOperations.cs @@ -37,6 +37,16 @@ public VerifiedPartnersRestOperations(HttpPipeline pipeline, string applicationI _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string verifiedPartnerName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.EventGrid/verifiedPartners/", false); + uri.AppendPath(verifiedPartnerName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string verifiedPartnerName) { var message = _pipeline.CreateMessage(); @@ -107,6 +117,23 @@ public Response Get(string verifiedPartnerName, Cancellatio } } + internal RequestUriBuilder CreateListRequestUri(string filter, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.EventGrid/verifiedPartners", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string filter, int? top) { var message = _pipeline.CreateMessage(); @@ -174,6 +201,14 @@ public Response List(string filter = null, int? top } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string filter, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string filter, int? top) { var message = _pipeline.CreateMessage(); diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubAuthorizationRuleCollection.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubAuthorizationRuleCollection.cs index c94e9fefd3cc..4263ce255159 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubAuthorizationRuleCollection.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubAuthorizationRuleCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> Creat try { var response = await _eventHubAuthorizationRuleEventHubsRestClient.CreateOrUpdateAuthorizationRuleAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, authorizationRuleName, data, cancellationToken).ConfigureAwait(false); - var operation = new EventHubsArmOperation(Response.FromValue(new EventHubAuthorizationRuleResource(Client, response), response.GetRawResponse())); + var uri = _eventHubAuthorizationRuleEventHubsRestClient.CreateCreateOrUpdateAuthorizationRuleRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, authorizationRuleName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new EventHubsArmOperation(Response.FromValue(new EventHubAuthorizationRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(Wa try { var response = _eventHubAuthorizationRuleEventHubsRestClient.CreateOrUpdateAuthorizationRule(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, authorizationRuleName, data, cancellationToken); - var operation = new EventHubsArmOperation(Response.FromValue(new EventHubAuthorizationRuleResource(Client, response), response.GetRawResponse())); + var uri = _eventHubAuthorizationRuleEventHubsRestClient.CreateCreateOrUpdateAuthorizationRuleRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, authorizationRuleName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new EventHubsArmOperation(Response.FromValue(new EventHubAuthorizationRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubAuthorizationRuleResource.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubAuthorizationRuleResource.cs index 91c1c3aaaa63..3aa811dab973 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubAuthorizationRuleResource.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubAuthorizationRuleResource.cs @@ -202,7 +202,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _eventHubAuthorizationRuleEventHubsRestClient.DeleteAuthorizationRuleAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new EventHubsArmOperation(response); + var uri = _eventHubAuthorizationRuleEventHubsRestClient.CreateDeleteAuthorizationRuleRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new EventHubsArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -244,7 +246,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _eventHubAuthorizationRuleEventHubsRestClient.DeleteAuthorizationRule(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new EventHubsArmOperation(response); + var uri = _eventHubAuthorizationRuleEventHubsRestClient.CreateDeleteAuthorizationRuleRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new EventHubsArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -290,7 +294,9 @@ public virtual async Task> Updat try { var response = await _eventHubAuthorizationRuleEventHubsRestClient.CreateOrUpdateAuthorizationRuleAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new EventHubsArmOperation(Response.FromValue(new EventHubAuthorizationRuleResource(Client, response), response.GetRawResponse())); + var uri = _eventHubAuthorizationRuleEventHubsRestClient.CreateCreateOrUpdateAuthorizationRuleRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new EventHubsArmOperation(Response.FromValue(new EventHubAuthorizationRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -336,7 +342,9 @@ public virtual ArmOperation Update(WaitUntil try { var response = _eventHubAuthorizationRuleEventHubsRestClient.CreateOrUpdateAuthorizationRule(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new EventHubsArmOperation(Response.FromValue(new EventHubAuthorizationRuleResource(Client, response), response.GetRawResponse())); + var uri = _eventHubAuthorizationRuleEventHubsRestClient.CreateCreateOrUpdateAuthorizationRuleRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new EventHubsArmOperation(Response.FromValue(new EventHubAuthorizationRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubCollection.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubCollection.cs index c55b67eb86f9..19d290e97113 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubCollection.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> CreateOrUpdateAsync(Wa try { var response = await _eventHubRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, eventHubName, data, cancellationToken).ConfigureAwait(false); - var operation = new EventHubsArmOperation(Response.FromValue(new EventHubResource(Client, response), response.GetRawResponse())); + var uri = _eventHubRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, eventHubName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new EventHubsArmOperation(Response.FromValue(new EventHubResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil try { var response = _eventHubRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, eventHubName, data, cancellationToken); - var operation = new EventHubsArmOperation(Response.FromValue(new EventHubResource(Client, response), response.GetRawResponse())); + var uri = _eventHubRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, eventHubName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new EventHubsArmOperation(Response.FromValue(new EventHubResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubResource.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubResource.cs index 75fb67480de4..c6fcfadcb13c 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubResource.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubResource.cs @@ -338,7 +338,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _eventHubRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new EventHubsArmOperation(response); + var uri = _eventHubRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new EventHubsArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -380,7 +382,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _eventHubRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new EventHubsArmOperation(response); + var uri = _eventHubRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new EventHubsArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -426,7 +430,9 @@ public virtual async Task> UpdateAsync(WaitUntil try { var response = await _eventHubRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new EventHubsArmOperation(Response.FromValue(new EventHubResource(Client, response), response.GetRawResponse())); + var uri = _eventHubRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new EventHubsArmOperation(Response.FromValue(new EventHubResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -472,7 +478,9 @@ public virtual ArmOperation Update(WaitUntil waitUntil, EventH try { var response = _eventHubRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new EventHubsArmOperation(Response.FromValue(new EventHubResource(Client, response), response.GetRawResponse())); + var uri = _eventHubRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new EventHubsArmOperation(Response.FromValue(new EventHubResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsApplicationGroupCollection.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsApplicationGroupCollection.cs index dd6186b84fe7..1e3636c28907 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsApplicationGroupCollection.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsApplicationGroupCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> Creat try { var response = await _eventHubsApplicationGroupApplicationGroupRestClient.CreateOrUpdateApplicationGroupAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, applicationGroupName, data, cancellationToken).ConfigureAwait(false); - var operation = new EventHubsArmOperation(Response.FromValue(new EventHubsApplicationGroupResource(Client, response), response.GetRawResponse())); + var uri = _eventHubsApplicationGroupApplicationGroupRestClient.CreateCreateOrUpdateApplicationGroupRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, applicationGroupName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new EventHubsArmOperation(Response.FromValue(new EventHubsApplicationGroupResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(Wa try { var response = _eventHubsApplicationGroupApplicationGroupRestClient.CreateOrUpdateApplicationGroup(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, applicationGroupName, data, cancellationToken); - var operation = new EventHubsArmOperation(Response.FromValue(new EventHubsApplicationGroupResource(Client, response), response.GetRawResponse())); + var uri = _eventHubsApplicationGroupApplicationGroupRestClient.CreateCreateOrUpdateApplicationGroupRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, applicationGroupName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new EventHubsArmOperation(Response.FromValue(new EventHubsApplicationGroupResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsApplicationGroupResource.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsApplicationGroupResource.cs index de4abd1cda04..291907b95fde 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsApplicationGroupResource.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsApplicationGroupResource.cs @@ -200,7 +200,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _eventHubsApplicationGroupApplicationGroupRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new EventHubsArmOperation(response); + var uri = _eventHubsApplicationGroupApplicationGroupRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new EventHubsArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -242,7 +244,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _eventHubsApplicationGroupApplicationGroupRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new EventHubsArmOperation(response); + var uri = _eventHubsApplicationGroupApplicationGroupRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new EventHubsArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -288,7 +292,9 @@ public virtual async Task> Updat try { var response = await _eventHubsApplicationGroupApplicationGroupRestClient.CreateOrUpdateApplicationGroupAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new EventHubsArmOperation(Response.FromValue(new EventHubsApplicationGroupResource(Client, response), response.GetRawResponse())); + var uri = _eventHubsApplicationGroupApplicationGroupRestClient.CreateCreateOrUpdateApplicationGroupRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new EventHubsArmOperation(Response.FromValue(new EventHubsApplicationGroupResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -334,7 +340,9 @@ public virtual ArmOperation Update(WaitUntil try { var response = _eventHubsApplicationGroupApplicationGroupRestClient.CreateOrUpdateApplicationGroup(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new EventHubsArmOperation(Response.FromValue(new EventHubsApplicationGroupResource(Client, response), response.GetRawResponse())); + var uri = _eventHubsApplicationGroupApplicationGroupRestClient.CreateCreateOrUpdateApplicationGroupRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new EventHubsArmOperation(Response.FromValue(new EventHubsApplicationGroupResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsConsumerGroupCollection.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsConsumerGroupCollection.cs index 36e91091de8f..f510699c02d8 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsConsumerGroupCollection.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsConsumerGroupCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> CreateOr try { var response = await _eventHubsConsumerGroupConsumerGroupsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, consumerGroupName, data, cancellationToken).ConfigureAwait(false); - var operation = new EventHubsArmOperation(Response.FromValue(new EventHubsConsumerGroupResource(Client, response), response.GetRawResponse())); + var uri = _eventHubsConsumerGroupConsumerGroupsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, consumerGroupName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new EventHubsArmOperation(Response.FromValue(new EventHubsConsumerGroupResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(WaitU try { var response = _eventHubsConsumerGroupConsumerGroupsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, consumerGroupName, data, cancellationToken); - var operation = new EventHubsArmOperation(Response.FromValue(new EventHubsConsumerGroupResource(Client, response), response.GetRawResponse())); + var uri = _eventHubsConsumerGroupConsumerGroupsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, consumerGroupName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new EventHubsArmOperation(Response.FromValue(new EventHubsConsumerGroupResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsConsumerGroupResource.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsConsumerGroupResource.cs index 4e7066aac307..c4f7235117ea 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsConsumerGroupResource.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsConsumerGroupResource.cs @@ -201,7 +201,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _eventHubsConsumerGroupConsumerGroupsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new EventHubsArmOperation(response); + var uri = _eventHubsConsumerGroupConsumerGroupsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new EventHubsArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -243,7 +245,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _eventHubsConsumerGroupConsumerGroupsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new EventHubsArmOperation(response); + var uri = _eventHubsConsumerGroupConsumerGroupsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new EventHubsArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -289,7 +293,9 @@ public virtual async Task> UpdateAs try { var response = await _eventHubsConsumerGroupConsumerGroupsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new EventHubsArmOperation(Response.FromValue(new EventHubsConsumerGroupResource(Client, response), response.GetRawResponse())); + var uri = _eventHubsConsumerGroupConsumerGroupsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new EventHubsArmOperation(Response.FromValue(new EventHubsConsumerGroupResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -335,7 +341,9 @@ public virtual ArmOperation Update(WaitUntil wai try { var response = _eventHubsConsumerGroupConsumerGroupsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new EventHubsArmOperation(Response.FromValue(new EventHubsConsumerGroupResource(Client, response), response.GetRawResponse())); + var uri = _eventHubsConsumerGroupConsumerGroupsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new EventHubsArmOperation(Response.FromValue(new EventHubsConsumerGroupResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsDisasterRecoveryCollection.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsDisasterRecoveryCollection.cs index 938a2914da9b..8b9012bbc8b2 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsDisasterRecoveryCollection.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsDisasterRecoveryCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> Creat try { var response = await _eventHubsDisasterRecoveryDisasterRecoveryConfigsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, alias, data, cancellationToken).ConfigureAwait(false); - var operation = new EventHubsArmOperation(Response.FromValue(new EventHubsDisasterRecoveryResource(Client, response), response.GetRawResponse())); + var uri = _eventHubsDisasterRecoveryDisasterRecoveryConfigsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, alias, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new EventHubsArmOperation(Response.FromValue(new EventHubsDisasterRecoveryResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(Wa try { var response = _eventHubsDisasterRecoveryDisasterRecoveryConfigsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, alias, data, cancellationToken); - var operation = new EventHubsArmOperation(Response.FromValue(new EventHubsDisasterRecoveryResource(Client, response), response.GetRawResponse())); + var uri = _eventHubsDisasterRecoveryDisasterRecoveryConfigsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, alias, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new EventHubsArmOperation(Response.FromValue(new EventHubsDisasterRecoveryResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsDisasterRecoveryResource.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsDisasterRecoveryResource.cs index ffbd04170718..43dbc7e45401 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsDisasterRecoveryResource.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsDisasterRecoveryResource.cs @@ -269,7 +269,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _eventHubsDisasterRecoveryDisasterRecoveryConfigsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new EventHubsArmOperation(response); + var uri = _eventHubsDisasterRecoveryDisasterRecoveryConfigsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new EventHubsArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -311,7 +313,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _eventHubsDisasterRecoveryDisasterRecoveryConfigsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new EventHubsArmOperation(response); + var uri = _eventHubsDisasterRecoveryDisasterRecoveryConfigsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new EventHubsArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -357,7 +361,9 @@ public virtual async Task> Updat try { var response = await _eventHubsDisasterRecoveryDisasterRecoveryConfigsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new EventHubsArmOperation(Response.FromValue(new EventHubsDisasterRecoveryResource(Client, response), response.GetRawResponse())); + var uri = _eventHubsDisasterRecoveryDisasterRecoveryConfigsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new EventHubsArmOperation(Response.FromValue(new EventHubsDisasterRecoveryResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -403,7 +409,9 @@ public virtual ArmOperation Update(WaitUntil try { var response = _eventHubsDisasterRecoveryDisasterRecoveryConfigsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new EventHubsArmOperation(Response.FromValue(new EventHubsDisasterRecoveryResource(Client, response), response.GetRawResponse())); + var uri = _eventHubsDisasterRecoveryDisasterRecoveryConfigsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new EventHubsArmOperation(Response.FromValue(new EventHubsDisasterRecoveryResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsNamespaceAuthorizationRuleCollection.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsNamespaceAuthorizationRuleCollection.cs index dd3cbc892f54..25945ac56c48 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsNamespaceAuthorizationRuleCollection.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsNamespaceAuthorizationRuleCollection.cs @@ -90,7 +90,9 @@ public virtual async Task(Response.FromValue(new EventHubsNamespaceAuthorizationRuleResource(Client, response), response.GetRawResponse())); + var uri = _eventHubsNamespaceAuthorizationRuleNamespacesRestClient.CreateCreateOrUpdateAuthorizationRuleRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, authorizationRuleName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new EventHubsArmOperation(Response.FromValue(new EventHubsNamespaceAuthorizationRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateO try { var response = _eventHubsNamespaceAuthorizationRuleNamespacesRestClient.CreateOrUpdateAuthorizationRule(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, authorizationRuleName, data, cancellationToken); - var operation = new EventHubsArmOperation(Response.FromValue(new EventHubsNamespaceAuthorizationRuleResource(Client, response), response.GetRawResponse())); + var uri = _eventHubsNamespaceAuthorizationRuleNamespacesRestClient.CreateCreateOrUpdateAuthorizationRuleRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, authorizationRuleName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new EventHubsArmOperation(Response.FromValue(new EventHubsNamespaceAuthorizationRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsNamespaceAuthorizationRuleResource.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsNamespaceAuthorizationRuleResource.cs index 5f5891ca0049..093dede96a95 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsNamespaceAuthorizationRuleResource.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsNamespaceAuthorizationRuleResource.cs @@ -201,7 +201,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _eventHubsNamespaceAuthorizationRuleNamespacesRestClient.DeleteAuthorizationRuleAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new EventHubsArmOperation(response); + var uri = _eventHubsNamespaceAuthorizationRuleNamespacesRestClient.CreateDeleteAuthorizationRuleRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new EventHubsArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -243,7 +245,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _eventHubsNamespaceAuthorizationRuleNamespacesRestClient.DeleteAuthorizationRule(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new EventHubsArmOperation(response); + var uri = _eventHubsNamespaceAuthorizationRuleNamespacesRestClient.CreateDeleteAuthorizationRuleRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new EventHubsArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -289,7 +293,9 @@ public virtual async Task(Response.FromValue(new EventHubsNamespaceAuthorizationRuleResource(Client, response), response.GetRawResponse())); + var uri = _eventHubsNamespaceAuthorizationRuleNamespacesRestClient.CreateCreateOrUpdateAuthorizationRuleRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new EventHubsArmOperation(Response.FromValue(new EventHubsNamespaceAuthorizationRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -335,7 +341,9 @@ public virtual ArmOperation Update( try { var response = _eventHubsNamespaceAuthorizationRuleNamespacesRestClient.CreateOrUpdateAuthorizationRule(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new EventHubsArmOperation(Response.FromValue(new EventHubsNamespaceAuthorizationRuleResource(Client, response), response.GetRawResponse())); + var uri = _eventHubsNamespaceAuthorizationRuleNamespacesRestClient.CreateCreateOrUpdateAuthorizationRuleRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new EventHubsArmOperation(Response.FromValue(new EventHubsNamespaceAuthorizationRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsNetworkRuleSetResource.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsNetworkRuleSetResource.cs index e5d386768e8c..c51c96b1d7ac 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsNetworkRuleSetResource.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsNetworkRuleSetResource.cs @@ -203,7 +203,9 @@ public virtual async Task> CreateO try { var response = await _eventHubsNetworkRuleSetNamespacesRestClient.CreateOrUpdateNetworkRuleSetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new EventHubsArmOperation(Response.FromValue(new EventHubsNetworkRuleSetResource(Client, response), response.GetRawResponse())); + var uri = _eventHubsNetworkRuleSetNamespacesRestClient.CreateCreateOrUpdateNetworkRuleSetRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new EventHubsArmOperation(Response.FromValue(new EventHubsNetworkRuleSetResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -249,7 +251,9 @@ public virtual ArmOperation CreateOrUpdate(Wait try { var response = _eventHubsNetworkRuleSetNamespacesRestClient.CreateOrUpdateNetworkRuleSet(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, data, cancellationToken); - var operation = new EventHubsArmOperation(Response.FromValue(new EventHubsNetworkRuleSetResource(Client, response), response.GetRawResponse())); + var uri = _eventHubsNetworkRuleSetNamespacesRestClient.CreateCreateOrUpdateNetworkRuleSetRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new EventHubsArmOperation(Response.FromValue(new EventHubsNetworkRuleSetResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsPrivateEndpointConnectionCollection.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsPrivateEndpointConnectionCollection.cs index e72e927fe2eb..348b269e3e2f 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsPrivateEndpointConnectionCollection.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsPrivateEndpointConnectionCollection.cs @@ -90,7 +90,9 @@ public virtual async Task(Response.FromValue(new EventHubsPrivateEndpointConnectionResource(Client, response), response.GetRawResponse())); + var uri = _eventHubsPrivateEndpointConnectionPrivateEndpointConnectionsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, privateEndpointConnectionName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new EventHubsArmOperation(Response.FromValue(new EventHubsPrivateEndpointConnectionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOr try { var response = _eventHubsPrivateEndpointConnectionPrivateEndpointConnectionsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, privateEndpointConnectionName, data, cancellationToken); - var operation = new EventHubsArmOperation(Response.FromValue(new EventHubsPrivateEndpointConnectionResource(Client, response), response.GetRawResponse())); + var uri = _eventHubsPrivateEndpointConnectionPrivateEndpointConnectionsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, privateEndpointConnectionName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new EventHubsArmOperation(Response.FromValue(new EventHubsPrivateEndpointConnectionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsPrivateEndpointConnectionResource.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsPrivateEndpointConnectionResource.cs index 6eb87a717c93..b1d6b5d457bd 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsPrivateEndpointConnectionResource.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsPrivateEndpointConnectionResource.cs @@ -288,7 +288,9 @@ public virtual async Task(Response.FromValue(new EventHubsPrivateEndpointConnectionResource(Client, response), response.GetRawResponse())); + var uri = _eventHubsPrivateEndpointConnectionPrivateEndpointConnectionsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new EventHubsArmOperation(Response.FromValue(new EventHubsPrivateEndpointConnectionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -334,7 +336,9 @@ public virtual ArmOperation Update(W try { var response = _eventHubsPrivateEndpointConnectionPrivateEndpointConnectionsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new EventHubsArmOperation(Response.FromValue(new EventHubsPrivateEndpointConnectionResource(Client, response), response.GetRawResponse())); + var uri = _eventHubsPrivateEndpointConnectionPrivateEndpointConnectionsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new EventHubsArmOperation(Response.FromValue(new EventHubsPrivateEndpointConnectionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsSchemaGroupCollection.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsSchemaGroupCollection.cs index 0533ffdcab4f..b16deec533d4 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsSchemaGroupCollection.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsSchemaGroupCollection.cs @@ -89,7 +89,9 @@ public virtual async Task> CreateOrUp try { var response = await _eventHubsSchemaGroupSchemaRegistryRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, schemaGroupName, data, cancellationToken).ConfigureAwait(false); - var operation = new EventHubsArmOperation(Response.FromValue(new EventHubsSchemaGroupResource(Client, response), response.GetRawResponse())); + var uri = _eventHubsSchemaGroupSchemaRegistryRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, schemaGroupName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new EventHubsArmOperation(Response.FromValue(new EventHubsSchemaGroupResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -137,7 +139,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUnt try { var response = _eventHubsSchemaGroupSchemaRegistryRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, schemaGroupName, data, cancellationToken); - var operation = new EventHubsArmOperation(Response.FromValue(new EventHubsSchemaGroupResource(Client, response), response.GetRawResponse())); + var uri = _eventHubsSchemaGroupSchemaRegistryRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, schemaGroupName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new EventHubsArmOperation(Response.FromValue(new EventHubsSchemaGroupResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsSchemaGroupResource.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsSchemaGroupResource.cs index 0ae0a37be486..88002f9ba6a4 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsSchemaGroupResource.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsSchemaGroupResource.cs @@ -197,7 +197,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _eventHubsSchemaGroupSchemaRegistryRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new EventHubsArmOperation(response); + var uri = _eventHubsSchemaGroupSchemaRegistryRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new EventHubsArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -238,7 +240,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _eventHubsSchemaGroupSchemaRegistryRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new EventHubsArmOperation(response); + var uri = _eventHubsSchemaGroupSchemaRegistryRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new EventHubsArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -283,7 +287,9 @@ public virtual async Task> UpdateAsyn try { var response = await _eventHubsSchemaGroupSchemaRegistryRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new EventHubsArmOperation(Response.FromValue(new EventHubsSchemaGroupResource(Client, response), response.GetRawResponse())); + var uri = _eventHubsSchemaGroupSchemaRegistryRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new EventHubsArmOperation(Response.FromValue(new EventHubsSchemaGroupResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -328,7 +334,9 @@ public virtual ArmOperation Update(WaitUntil waitU try { var response = _eventHubsSchemaGroupSchemaRegistryRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new EventHubsArmOperation(Response.FromValue(new EventHubsSchemaGroupResource(Client, response), response.GetRawResponse())); + var uri = _eventHubsSchemaGroupSchemaRegistryRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new EventHubsArmOperation(Response.FromValue(new EventHubsSchemaGroupResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/LongRunningOperation/EventHubsArmOperation.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/LongRunningOperation/EventHubsArmOperation.cs index d3244f2b5082..1e48a9307be4 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/LongRunningOperation/EventHubsArmOperation.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/LongRunningOperation/EventHubsArmOperation.cs @@ -20,21 +20,24 @@ internal class EventHubsArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of EventHubsArmOperation for mocking. protected EventHubsArmOperation() { } - internal EventHubsArmOperation(Response response) + internal EventHubsArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal EventHubsArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "EventHubsArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal EventHubsArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/LongRunningOperation/EventHubsArmOperationOfT.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/LongRunningOperation/EventHubsArmOperationOfT.cs index 3e2964bf5d13..6516dd4efecf 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/LongRunningOperation/EventHubsArmOperationOfT.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/LongRunningOperation/EventHubsArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class EventHubsArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of EventHubsArmOperation for mocking. protected EventHubsArmOperation() { } - internal EventHubsArmOperation(Response response) + internal EventHubsArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal EventHubsArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "EventHubsArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal EventHubsArmOperation(IOperationSource source, ClientDiagnostics cli public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubAuthorizationRuleResource.Serialization.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubAuthorizationRuleResource.Serialization.cs new file mode 100644 index 000000000000..d68144535f80 --- /dev/null +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubAuthorizationRuleResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.EventHubs +{ + public partial class EventHubAuthorizationRuleResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + EventHubsAuthorizationRuleData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + EventHubsAuthorizationRuleData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubResource.Serialization.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubResource.Serialization.cs new file mode 100644 index 000000000000..e465f11072f1 --- /dev/null +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.EventHubs +{ + public partial class EventHubResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + EventHubData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + EventHubData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsApplicationGroupResource.Serialization.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsApplicationGroupResource.Serialization.cs new file mode 100644 index 000000000000..45030fec9671 --- /dev/null +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsApplicationGroupResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.EventHubs +{ + public partial class EventHubsApplicationGroupResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + EventHubsApplicationGroupData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + EventHubsApplicationGroupData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsClusterResource.Serialization.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsClusterResource.Serialization.cs new file mode 100644 index 000000000000..4892c29cb1c0 --- /dev/null +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsClusterResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.EventHubs +{ + public partial class EventHubsClusterResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + EventHubsClusterData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + EventHubsClusterData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsConsumerGroupResource.Serialization.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsConsumerGroupResource.Serialization.cs new file mode 100644 index 000000000000..b7de34b8b0f6 --- /dev/null +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsConsumerGroupResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.EventHubs +{ + public partial class EventHubsConsumerGroupResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + EventHubsConsumerGroupData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + EventHubsConsumerGroupData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsDisasterRecoveryAuthorizationRuleResource.Serialization.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsDisasterRecoveryAuthorizationRuleResource.Serialization.cs new file mode 100644 index 000000000000..f5e8614c1a22 --- /dev/null +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsDisasterRecoveryAuthorizationRuleResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.EventHubs +{ + public partial class EventHubsDisasterRecoveryAuthorizationRuleResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + EventHubsAuthorizationRuleData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + EventHubsAuthorizationRuleData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsDisasterRecoveryResource.Serialization.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsDisasterRecoveryResource.Serialization.cs new file mode 100644 index 000000000000..3f13f14b2a41 --- /dev/null +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsDisasterRecoveryResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.EventHubs +{ + public partial class EventHubsDisasterRecoveryResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + EventHubsDisasterRecoveryData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + EventHubsDisasterRecoveryData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsNamespaceAuthorizationRuleResource.Serialization.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsNamespaceAuthorizationRuleResource.Serialization.cs new file mode 100644 index 000000000000..b0ac7a973ca8 --- /dev/null +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsNamespaceAuthorizationRuleResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.EventHubs +{ + public partial class EventHubsNamespaceAuthorizationRuleResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + EventHubsAuthorizationRuleData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + EventHubsAuthorizationRuleData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsNamespaceResource.Serialization.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsNamespaceResource.Serialization.cs new file mode 100644 index 000000000000..e836c71c2ead --- /dev/null +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsNamespaceResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.EventHubs +{ + public partial class EventHubsNamespaceResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + EventHubsNamespaceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + EventHubsNamespaceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsNetworkRuleSetResource.Serialization.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsNetworkRuleSetResource.Serialization.cs new file mode 100644 index 000000000000..c52afb99fefc --- /dev/null +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsNetworkRuleSetResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.EventHubs +{ + public partial class EventHubsNetworkRuleSetResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + EventHubsNetworkRuleSetData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + EventHubsNetworkRuleSetData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsPrivateEndpointConnectionResource.Serialization.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsPrivateEndpointConnectionResource.Serialization.cs new file mode 100644 index 000000000000..f2b8bb9efbf6 --- /dev/null +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsPrivateEndpointConnectionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.EventHubs +{ + public partial class EventHubsPrivateEndpointConnectionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + EventHubsPrivateEndpointConnectionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + EventHubsPrivateEndpointConnectionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsSchemaGroupResource.Serialization.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsSchemaGroupResource.Serialization.cs new file mode 100644 index 000000000000..c52bd0753b33 --- /dev/null +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsSchemaGroupResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.EventHubs +{ + public partial class EventHubsSchemaGroupResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + EventHubsSchemaGroupData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + EventHubsSchemaGroupData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/ApplicationGroupRestOperations.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/ApplicationGroupRestOperations.cs index 334d502c7347..a1ab36d9f812 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/ApplicationGroupRestOperations.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/ApplicationGroupRestOperations.cs @@ -37,6 +37,21 @@ public ApplicationGroupRestOperations(HttpPipeline pipeline, string applicationI _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByNamespaceRequestUri(string subscriptionId, string resourceGroupName, string namespaceName) + { + 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.EventHub/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/applicationGroups", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByNamespaceRequest(string subscriptionId, string resourceGroupName, string namespaceName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByNamespace(string subs } } + internal RequestUriBuilder CreateCreateOrUpdateApplicationGroupRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string applicationGroupName, EventHubsApplicationGroupData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.EventHub/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/applicationGroups/", false); + uri.AppendPath(applicationGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateApplicationGroupRequest(string subscriptionId, string resourceGroupName, string namespaceName, string applicationGroupName, EventHubsApplicationGroupData data) { var message = _pipeline.CreateMessage(); @@ -208,6 +239,22 @@ public Response CreateOrUpdateApplicationGroup(st } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string applicationGroupName) + { + 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.EventHub/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/applicationGroups/", false); + uri.AppendPath(applicationGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string namespaceName, string applicationGroupName) { var message = _pipeline.CreateMessage(); @@ -284,6 +331,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string n } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string applicationGroupName) + { + 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.EventHub/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/applicationGroups/", false); + uri.AppendPath(applicationGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string namespaceName, string applicationGroupName) { var message = _pipeline.CreateMessage(); @@ -372,6 +435,14 @@ public Response Get(string subscriptionId, string } } + internal RequestUriBuilder CreateListByNamespaceNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string namespaceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByNamespaceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string namespaceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/ClustersRestOperations.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/ClustersRestOperations.cs index 3119ef531650..e4d737749ab7 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/ClustersRestOperations.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/ClustersRestOperations.cs @@ -37,6 +37,17 @@ public ClustersRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListAvailableClusterRegionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.EventHub/availableClusterRegions", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListAvailableClusterRegionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,17 @@ public Response ListAvailableClusterRegion(string subscri } } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.EventHub/clusters", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -171,6 +193,19 @@ public Response ListBySubscription(string subscriptionId, Can } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.EventHub/clusters", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -244,6 +279,20 @@ public Response ListByResourceGroup(string subscriptionId, st } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string clusterName) + { + 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.EventHub/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string clusterName) { var message = _pipeline.CreateMessage(); @@ -326,6 +375,20 @@ public Response Get(string subscriptionId, string resource } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string clusterName, EventHubsClusterData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.EventHub/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string clusterName, EventHubsClusterData data) { var message = _pipeline.CreateMessage(); @@ -406,6 +469,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string clusterName, EventHubsClusterData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.EventHub/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string clusterName, EventHubsClusterData data) { var message = _pipeline.CreateMessage(); @@ -486,6 +563,20 @@ public Response Update(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string clusterName) + { + 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.EventHub/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string clusterName) { var message = _pipeline.CreateMessage(); @@ -558,6 +649,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateListNamespacesRequestUri(string subscriptionId, string resourceGroupName, string clusterName) + { + 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.EventHub/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/namespaces", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListNamespacesRequest(string subscriptionId, string resourceGroupName, string clusterName) { var message = _pipeline.CreateMessage(); @@ -637,6 +743,14 @@ public Response ListNamespaces(string subscriptionId, s } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -705,6 +819,14 @@ public Response ListBySubscriptionNextPage(string nextLink, s } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/ConfigurationRestOperations.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/ConfigurationRestOperations.cs index bd966cee6e1b..53c6437b445b 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/ConfigurationRestOperations.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/ConfigurationRestOperations.cs @@ -37,6 +37,21 @@ public ConfigurationRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreatePatchRequestUri(string subscriptionId, string resourceGroupName, string clusterName, ClusterQuotaConfigurationProperties clusterQuotaConfigurationProperties) + { + 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.EventHub/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/quotaConfiguration/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreatePatchRequest(string subscriptionId, string resourceGroupName, string clusterName, ClusterQuotaConfigurationProperties clusterQuotaConfigurationProperties) { var message = _pipeline.CreateMessage(); @@ -130,6 +145,21 @@ public Response Patch(string subscriptionId } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string clusterName) + { + 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.EventHub/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/quotaConfiguration/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string clusterName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/ConsumerGroupsRestOperations.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/ConsumerGroupsRestOperations.cs index a9f409a9952c..5cb61783d28e 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/ConsumerGroupsRestOperations.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/ConsumerGroupsRestOperations.cs @@ -37,6 +37,24 @@ public ConsumerGroupsRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string eventHubName, string consumerGroupName, EventHubsConsumerGroupData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.EventHub/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/eventhubs/", false); + uri.AppendPath(eventHubName, true); + uri.AppendPath("/consumergroups/", false); + uri.AppendPath(consumerGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string namespaceName, string eventHubName, string consumerGroupName, EventHubsConsumerGroupData data) { var message = _pipeline.CreateMessage(); @@ -135,6 +153,24 @@ public Response CreateOrUpdate(string subscriptionId } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string eventHubName, string consumerGroupName) + { + 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.EventHub/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/eventhubs/", false); + uri.AppendPath(eventHubName, true); + uri.AppendPath("/consumergroups/", false); + uri.AppendPath(consumerGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string namespaceName, string eventHubName, string consumerGroupName) { var message = _pipeline.CreateMessage(); @@ -217,6 +253,24 @@ public Response Delete(string subscriptionId, string resourceGroupName, string n } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string eventHubName, string consumerGroupName) + { + 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.EventHub/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/eventhubs/", false); + uri.AppendPath(eventHubName, true); + uri.AppendPath("/consumergroups/", false); + uri.AppendPath(consumerGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string namespaceName, string eventHubName, string consumerGroupName) { var message = _pipeline.CreateMessage(); @@ -311,6 +365,31 @@ public Response Get(string subscriptionId, string re } } + internal RequestUriBuilder CreateListByEventHubRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string eventHubName, int? skip, int? top) + { + 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.EventHub/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/eventhubs/", false); + uri.AppendPath(eventHubName, true); + uri.AppendPath("/consumergroups", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (skip != null) + { + uri.AppendQuery("$skip", skip.Value, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + return uri; + } + internal HttpMessage CreateListByEventHubRequest(string subscriptionId, string resourceGroupName, string namespaceName, string eventHubName, int? skip, int? top) { var message = _pipeline.CreateMessage(); @@ -408,6 +487,14 @@ public Response ListByEventHub(string subscriptionId, s } } + internal RequestUriBuilder CreateListByEventHubNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string namespaceName, string eventHubName, int? skip, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByEventHubNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string namespaceName, string eventHubName, int? skip, int? top) { var message = _pipeline.CreateMessage(); diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/DisasterRecoveryConfigsRestOperations.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/DisasterRecoveryConfigsRestOperations.cs index 35703864ba9a..2a14cd494591 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/DisasterRecoveryConfigsRestOperations.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/DisasterRecoveryConfigsRestOperations.cs @@ -37,6 +37,23 @@ public DisasterRecoveryConfigsRestOperations(HttpPipeline pipeline, string appli _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListAuthorizationRulesRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string @alias) + { + 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.EventHub/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/disasterRecoveryConfigs/", false); + uri.AppendPath(@alias, true); + uri.AppendPath("/authorizationRules", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListAuthorizationRulesRequest(string subscriptionId, string resourceGroupName, string namespaceName, string @alias) { var message = _pipeline.CreateMessage(); @@ -122,6 +139,24 @@ public Response ListAuthorizationRules(string subsc } } + internal RequestUriBuilder CreateGetAuthorizationRuleRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string @alias, string authorizationRuleName) + { + 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.EventHub/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/disasterRecoveryConfigs/", false); + uri.AppendPath(@alias, true); + uri.AppendPath("/authorizationRules/", false); + uri.AppendPath(authorizationRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetAuthorizationRuleRequest(string subscriptionId, string resourceGroupName, string namespaceName, string @alias, string authorizationRuleName) { var message = _pipeline.CreateMessage(); @@ -216,6 +251,25 @@ public Response GetAuthorizationRule(string subs } } + internal RequestUriBuilder CreateListKeysRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string @alias, string authorizationRuleName) + { + 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.EventHub/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/disasterRecoveryConfigs/", false); + uri.AppendPath(@alias, true); + uri.AppendPath("/authorizationRules/", false); + uri.AppendPath(authorizationRuleName, true); + uri.AppendPath("/listKeys", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListKeysRequest(string subscriptionId, string resourceGroupName, string namespaceName, string @alias, string authorizationRuleName) { var message = _pipeline.CreateMessage(); @@ -307,6 +361,21 @@ public Response ListKeys(string subscriptionId, string reso } } + internal RequestUriBuilder CreateCheckNameAvailabilityRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, EventHubsNameAvailabilityContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.EventHub/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/disasterRecoveryConfigs/checkNameAvailability", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCheckNameAvailabilityRequest(string subscriptionId, string resourceGroupName, string namespaceName, EventHubsNameAvailabilityContent content) { var message = _pipeline.CreateMessage(); @@ -394,6 +463,21 @@ public Response CheckNameAvailability(string su } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string namespaceName) + { + 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.EventHub/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/disasterRecoveryConfigs", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string namespaceName) { var message = _pipeline.CreateMessage(); @@ -473,6 +557,22 @@ public Response List(string subscriptionId, strin } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string @alias, EventHubsDisasterRecoveryData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.EventHub/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/disasterRecoveryConfigs/", false); + uri.AppendPath(@alias, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string namespaceName, string @alias, EventHubsDisasterRecoveryData data) { var message = _pipeline.CreateMessage(); @@ -567,6 +667,22 @@ public Response CreateOrUpdate(string subscriptio } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string @alias) + { + 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.EventHub/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/disasterRecoveryConfigs/", false); + uri.AppendPath(@alias, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string namespaceName, string @alias) { var message = _pipeline.CreateMessage(); @@ -643,6 +759,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string n } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string @alias) + { + 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.EventHub/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/disasterRecoveryConfigs/", false); + uri.AppendPath(@alias, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string namespaceName, string @alias) { var message = _pipeline.CreateMessage(); @@ -731,6 +863,23 @@ public Response Get(string subscriptionId, string } } + internal RequestUriBuilder CreateBreakPairingRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string @alias) + { + 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.EventHub/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/disasterRecoveryConfigs/", false); + uri.AppendPath(@alias, true); + uri.AppendPath("/breakPairing", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateBreakPairingRequest(string subscriptionId, string resourceGroupName, string namespaceName, string @alias) { var message = _pipeline.CreateMessage(); @@ -806,6 +955,23 @@ public Response BreakPairing(string subscriptionId, string resourceGroupName, st } } + internal RequestUriBuilder CreateFailOverRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string @alias) + { + 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.EventHub/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/disasterRecoveryConfigs/", false); + uri.AppendPath(@alias, true); + uri.AppendPath("/failover", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateFailOverRequest(string subscriptionId, string resourceGroupName, string namespaceName, string @alias) { var message = _pipeline.CreateMessage(); @@ -881,6 +1047,14 @@ public Response FailOver(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreateListAuthorizationRulesNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string namespaceName, string @alias) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListAuthorizationRulesNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string namespaceName, string @alias) { var message = _pipeline.CreateMessage(); @@ -961,6 +1135,14 @@ public Response ListAuthorizationRulesNextPage(stri } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string namespaceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string namespaceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/EventHubsRestOperations.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/EventHubsRestOperations.cs index 526d8403c246..fa0a5536ac3e 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/EventHubsRestOperations.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/EventHubsRestOperations.cs @@ -37,6 +37,23 @@ public EventHubsRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListAuthorizationRulesRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string eventHubName) + { + 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.EventHub/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/eventhubs/", false); + uri.AppendPath(eventHubName, true); + uri.AppendPath("/authorizationRules", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListAuthorizationRulesRequest(string subscriptionId, string resourceGroupName, string namespaceName, string eventHubName) { var message = _pipeline.CreateMessage(); @@ -122,6 +139,24 @@ public Response ListAuthorizationRules(string subsc } } + internal RequestUriBuilder CreateCreateOrUpdateAuthorizationRuleRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string eventHubName, string authorizationRuleName, EventHubsAuthorizationRuleData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.EventHub/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/eventhubs/", false); + uri.AppendPath(eventHubName, true); + uri.AppendPath("/authorizationRules/", false); + uri.AppendPath(authorizationRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateAuthorizationRuleRequest(string subscriptionId, string resourceGroupName, string namespaceName, string eventHubName, string authorizationRuleName, EventHubsAuthorizationRuleData data) { var message = _pipeline.CreateMessage(); @@ -220,6 +255,24 @@ public Response CreateOrUpdateAuthorizationRule( } } + internal RequestUriBuilder CreateGetAuthorizationRuleRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string eventHubName, string authorizationRuleName) + { + 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.EventHub/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/eventhubs/", false); + uri.AppendPath(eventHubName, true); + uri.AppendPath("/authorizationRules/", false); + uri.AppendPath(authorizationRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetAuthorizationRuleRequest(string subscriptionId, string resourceGroupName, string namespaceName, string eventHubName, string authorizationRuleName) { var message = _pipeline.CreateMessage(); @@ -314,6 +367,24 @@ public Response GetAuthorizationRule(string subs } } + internal RequestUriBuilder CreateDeleteAuthorizationRuleRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string eventHubName, string authorizationRuleName) + { + 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.EventHub/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/eventhubs/", false); + uri.AppendPath(eventHubName, true); + uri.AppendPath("/authorizationRules/", false); + uri.AppendPath(authorizationRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteAuthorizationRuleRequest(string subscriptionId, string resourceGroupName, string namespaceName, string eventHubName, string authorizationRuleName) { var message = _pipeline.CreateMessage(); @@ -396,6 +467,25 @@ public Response DeleteAuthorizationRule(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateListKeysRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string eventHubName, string authorizationRuleName) + { + 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.EventHub/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/eventhubs/", false); + uri.AppendPath(eventHubName, true); + uri.AppendPath("/authorizationRules/", false); + uri.AppendPath(authorizationRuleName, true); + uri.AppendPath("/listKeys", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListKeysRequest(string subscriptionId, string resourceGroupName, string namespaceName, string eventHubName, string authorizationRuleName) { var message = _pipeline.CreateMessage(); @@ -487,6 +577,25 @@ public Response ListKeys(string subscriptionId, string reso } } + internal RequestUriBuilder CreateRegenerateKeysRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string eventHubName, string authorizationRuleName, EventHubsRegenerateAccessKeyContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.EventHub/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/eventhubs/", false); + uri.AppendPath(eventHubName, true); + uri.AppendPath("/authorizationRules/", false); + uri.AppendPath(authorizationRuleName, true); + uri.AppendPath("/regenerateKeys", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRegenerateKeysRequest(string subscriptionId, string resourceGroupName, string namespaceName, string eventHubName, string authorizationRuleName, EventHubsRegenerateAccessKeyContent content) { var message = _pipeline.CreateMessage(); @@ -586,6 +695,29 @@ public Response RegenerateKeys(string subscriptionId, strin } } + internal RequestUriBuilder CreateListByNamespaceRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, int? skip, int? top) + { + 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.EventHub/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/eventhubs", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (skip != null) + { + uri.AppendQuery("$skip", skip.Value, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + return uri; + } + internal HttpMessage CreateListByNamespaceRequest(string subscriptionId, string resourceGroupName, string namespaceName, int? skip, int? top) { var message = _pipeline.CreateMessage(); @@ -677,6 +809,22 @@ public Response ListByNamespace(string subscriptionId, strin } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string eventHubName, EventHubData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.EventHub/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/eventhubs/", false); + uri.AppendPath(eventHubName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string namespaceName, string eventHubName, EventHubData data) { var message = _pipeline.CreateMessage(); @@ -769,6 +917,22 @@ public Response CreateOrUpdate(string subscriptionId, string resou } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string eventHubName) + { + 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.EventHub/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/eventhubs/", false); + uri.AppendPath(eventHubName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string namespaceName, string eventHubName) { var message = _pipeline.CreateMessage(); @@ -845,6 +1009,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string n } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string eventHubName) + { + 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.EventHub/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/eventhubs/", false); + uri.AppendPath(eventHubName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string namespaceName, string eventHubName) { var message = _pipeline.CreateMessage(); @@ -933,6 +1113,14 @@ public Response Get(string subscriptionId, string resourceGroupNam } } + internal RequestUriBuilder CreateListAuthorizationRulesNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string namespaceName, string eventHubName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListAuthorizationRulesNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string namespaceName, string eventHubName) { var message = _pipeline.CreateMessage(); @@ -1013,6 +1201,14 @@ public Response ListAuthorizationRulesNextPage(stri } } + internal RequestUriBuilder CreateListByNamespaceNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string namespaceName, int? skip, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByNamespaceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string namespaceName, int? skip, int? top) { var message = _pipeline.CreateMessage(); diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/NamespacesRestOperations.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/NamespacesRestOperations.cs index 9bbf5ed334d1..40ade763a4cc 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/NamespacesRestOperations.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/NamespacesRestOperations.cs @@ -37,6 +37,17 @@ public NamespacesRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.EventHub/namespaces", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,19 @@ public Response List(string subscriptionId, CancellationT } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.EventHub/namespaces", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -177,6 +201,20 @@ public Response ListByResourceGroup(string subscriptionId } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, EventHubsNamespaceData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.EventHub/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string namespaceName, EventHubsNamespaceData data) { var message = _pipeline.CreateMessage(); @@ -257,6 +295,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string namespaceName) + { + 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.EventHub/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string namespaceName) { var message = _pipeline.CreateMessage(); @@ -329,6 +381,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string n } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string namespaceName) + { + 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.EventHub/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string namespaceName) { var message = _pipeline.CreateMessage(); @@ -411,6 +477,20 @@ public Response Get(string subscriptionId, string resour } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, EventHubsNamespaceData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.EventHub/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string namespaceName, EventHubsNamespaceData data) { var message = _pipeline.CreateMessage(); @@ -503,6 +583,21 @@ public Response Update(string subscriptionId, string res } } + internal RequestUriBuilder CreateCreateOrUpdateNetworkRuleSetRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, EventHubsNetworkRuleSetData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.EventHub/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/networkRuleSets/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateNetworkRuleSetRequest(string subscriptionId, string resourceGroupName, string namespaceName, EventHubsNetworkRuleSetData data) { var message = _pipeline.CreateMessage(); @@ -590,6 +685,21 @@ public Response CreateOrUpdateNetworkRuleSet(string } } + internal RequestUriBuilder CreateGetNetworkRuleSetRequestUri(string subscriptionId, string resourceGroupName, string namespaceName) + { + 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.EventHub/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/networkRuleSets/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetNetworkRuleSetRequest(string subscriptionId, string resourceGroupName, string namespaceName) { var message = _pipeline.CreateMessage(); @@ -673,6 +783,21 @@ public Response GetNetworkRuleSet(string subscripti } } + internal RequestUriBuilder CreateListNetworkRuleSetRequestUri(string subscriptionId, string resourceGroupName, string namespaceName) + { + 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.EventHub/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/networkRuleSets", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListNetworkRuleSetRequest(string subscriptionId, string resourceGroupName, string namespaceName) { var message = _pipeline.CreateMessage(); @@ -752,6 +877,21 @@ public Response ListNetworkRuleSet(string subscription } } + internal RequestUriBuilder CreateListAuthorizationRulesRequestUri(string subscriptionId, string resourceGroupName, string namespaceName) + { + 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.EventHub/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/authorizationRules", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListAuthorizationRulesRequest(string subscriptionId, string resourceGroupName, string namespaceName) { var message = _pipeline.CreateMessage(); @@ -831,6 +971,22 @@ public Response ListAuthorizationRules(string subsc } } + internal RequestUriBuilder CreateCreateOrUpdateAuthorizationRuleRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string authorizationRuleName, EventHubsAuthorizationRuleData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.EventHub/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/authorizationRules/", false); + uri.AppendPath(authorizationRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateAuthorizationRuleRequest(string subscriptionId, string resourceGroupName, string namespaceName, string authorizationRuleName, EventHubsAuthorizationRuleData data) { var message = _pipeline.CreateMessage(); @@ -923,6 +1079,22 @@ public Response CreateOrUpdateAuthorizationRule( } } + internal RequestUriBuilder CreateDeleteAuthorizationRuleRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string authorizationRuleName) + { + 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.EventHub/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/authorizationRules/", false); + uri.AppendPath(authorizationRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteAuthorizationRuleRequest(string subscriptionId, string resourceGroupName, string namespaceName, string authorizationRuleName) { var message = _pipeline.CreateMessage(); @@ -999,6 +1171,22 @@ public Response DeleteAuthorizationRule(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateGetAuthorizationRuleRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string authorizationRuleName) + { + 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.EventHub/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/authorizationRules/", false); + uri.AppendPath(authorizationRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetAuthorizationRuleRequest(string subscriptionId, string resourceGroupName, string namespaceName, string authorizationRuleName) { var message = _pipeline.CreateMessage(); @@ -1087,6 +1275,23 @@ public Response GetAuthorizationRule(string subs } } + internal RequestUriBuilder CreateListKeysRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string authorizationRuleName) + { + 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.EventHub/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/authorizationRules/", false); + uri.AppendPath(authorizationRuleName, true); + uri.AppendPath("/listKeys", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListKeysRequest(string subscriptionId, string resourceGroupName, string namespaceName, string authorizationRuleName) { var message = _pipeline.CreateMessage(); @@ -1172,6 +1377,23 @@ public Response ListKeys(string subscriptionId, string reso } } + internal RequestUriBuilder CreateRegenerateKeysRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string authorizationRuleName, EventHubsRegenerateAccessKeyContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.EventHub/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/authorizationRules/", false); + uri.AppendPath(authorizationRuleName, true); + uri.AppendPath("/regenerateKeys", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRegenerateKeysRequest(string subscriptionId, string resourceGroupName, string namespaceName, string authorizationRuleName, EventHubsRegenerateAccessKeyContent content) { var message = _pipeline.CreateMessage(); @@ -1265,6 +1487,17 @@ public Response RegenerateKeys(string subscriptionId, strin } } + internal RequestUriBuilder CreateCheckNameAvailabilityRequestUri(string subscriptionId, EventHubsNameAvailabilityContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.EventHub/checkNameAvailability", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCheckNameAvailabilityRequest(string subscriptionId, EventHubsNameAvailabilityContent content) { var message = _pipeline.CreateMessage(); @@ -1340,6 +1573,14 @@ public Response CheckNameAvailability(string su } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -1408,6 +1649,14 @@ public Response ListNextPage(string nextLink, string subs } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -1480,6 +1729,14 @@ public Response ListByResourceGroupNextPage(string nextLi } } + internal RequestUriBuilder CreateListAuthorizationRulesNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string namespaceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListAuthorizationRulesNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string namespaceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/NetworkSecurityPerimeterConfigurationRestOperations.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/NetworkSecurityPerimeterConfigurationRestOperations.cs index 027e85ed7dc1..b91e63bbe10a 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/NetworkSecurityPerimeterConfigurationRestOperations.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/NetworkSecurityPerimeterConfigurationRestOperations.cs @@ -37,6 +37,21 @@ public NetworkSecurityPerimeterConfigurationRestOperations(HttpPipeline pipeline _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string namespaceName) + { + 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.EventHub/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/networkSecurityPerimeterConfigurations", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string namespaceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/NetworkSecurityPerimeterConfigurationsRestOperations.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/NetworkSecurityPerimeterConfigurationsRestOperations.cs index 1fd89ce2fce6..9558e581e86b 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/NetworkSecurityPerimeterConfigurationsRestOperations.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/NetworkSecurityPerimeterConfigurationsRestOperations.cs @@ -35,6 +35,23 @@ public NetworkSecurityPerimeterConfigurationsRestOperations(HttpPipeline pipelin _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string resourceAssociationName) + { + 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.EventHub/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/networkSecurityPerimeterConfigurations/", false); + uri.AppendPath(resourceAssociationName, true); + uri.AppendPath("/reconcile", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string namespaceName, string resourceAssociationName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs index 9d2e70e47184..ae64f463513a 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs @@ -37,6 +37,21 @@ public PrivateEndpointConnectionsRestOperations(HttpPipeline pipeline, string ap _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string namespaceName) + { + 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.EventHub/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/privateEndpointConnections", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string namespaceName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response List(string subscr } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string privateEndpointConnectionName, EventHubsPrivateEndpointConnectionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.EventHub/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string namespaceName, string privateEndpointConnectionName, EventHubsPrivateEndpointConnectionData data) { var message = _pipeline.CreateMessage(); @@ -212,6 +243,22 @@ public Response CreateOrUpdate(string su } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string privateEndpointConnectionName) + { + 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.EventHub/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string namespaceName, string privateEndpointConnectionName) { var message = _pipeline.CreateMessage(); @@ -290,6 +337,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string n } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string privateEndpointConnectionName) + { + 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.EventHub/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string namespaceName, string privateEndpointConnectionName) { var message = _pipeline.CreateMessage(); @@ -378,6 +441,14 @@ public Response Get(string subscriptionI } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string namespaceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string namespaceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs index 6b09aa58a0e7..679bd96674d7 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs @@ -37,6 +37,21 @@ public PrivateLinkResourcesRestOperations(HttpPipeline pipeline, string applicat _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string namespaceName) + { + 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.EventHub/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/privateLinkResources", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string namespaceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/SchemaRegistryRestOperations.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/SchemaRegistryRestOperations.cs index 6e49d845e032..2b5df884c96a 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/SchemaRegistryRestOperations.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/SchemaRegistryRestOperations.cs @@ -37,6 +37,29 @@ public SchemaRegistryRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByNamespaceRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, int? skip, int? top) + { + 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.EventHub/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/schemagroups", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (skip != null) + { + uri.AppendQuery("$skip", skip.Value, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + return uri; + } + internal HttpMessage CreateListByNamespaceRequest(string subscriptionId, string resourceGroupName, string namespaceName, int? skip, int? top) { var message = _pipeline.CreateMessage(); @@ -128,6 +151,22 @@ public Response ListByNamespace(string subscriptionId, st } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string schemaGroupName, EventHubsSchemaGroupData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.EventHub/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/schemagroups/", false); + uri.AppendPath(schemaGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string namespaceName, string schemaGroupName, EventHubsSchemaGroupData data) { var message = _pipeline.CreateMessage(); @@ -218,6 +257,22 @@ public Response CreateOrUpdate(string subscriptionId, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string schemaGroupName) + { + 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.EventHub/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/schemagroups/", false); + uri.AppendPath(schemaGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string namespaceName, string schemaGroupName) { var message = _pipeline.CreateMessage(); @@ -292,6 +347,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string n } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string schemaGroupName) + { + 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.EventHub/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/schemagroups/", false); + uri.AppendPath(schemaGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string namespaceName, string schemaGroupName) { var message = _pipeline.CreateMessage(); @@ -378,6 +449,14 @@ public Response Get(string subscriptionId, string reso } } + internal RequestUriBuilder CreateListByNamespaceNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string namespaceName, int? skip, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByNamespaceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string namespaceName, int? skip, int? top) { var message = _pipeline.CreateMessage(); diff --git a/sdk/extendedlocation/Azure.ResourceManager.ExtendedLocations/src/Generated/LongRunningOperation/ExtendedLocationsArmOperation.cs b/sdk/extendedlocation/Azure.ResourceManager.ExtendedLocations/src/Generated/LongRunningOperation/ExtendedLocationsArmOperation.cs index 4abd889a153a..fc8fe579d3ce 100644 --- a/sdk/extendedlocation/Azure.ResourceManager.ExtendedLocations/src/Generated/LongRunningOperation/ExtendedLocationsArmOperation.cs +++ b/sdk/extendedlocation/Azure.ResourceManager.ExtendedLocations/src/Generated/LongRunningOperation/ExtendedLocationsArmOperation.cs @@ -20,21 +20,24 @@ internal class ExtendedLocationsArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of ExtendedLocationsArmOperation for mocking. protected ExtendedLocationsArmOperation() { } - internal ExtendedLocationsArmOperation(Response response) + internal ExtendedLocationsArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal ExtendedLocationsArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "ExtendedLocationsArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal ExtendedLocationsArmOperation(ClientDiagnostics clientDiagnostics, Http public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/extendedlocation/Azure.ResourceManager.ExtendedLocations/src/Generated/LongRunningOperation/ExtendedLocationsArmOperationOfT.cs b/sdk/extendedlocation/Azure.ResourceManager.ExtendedLocations/src/Generated/LongRunningOperation/ExtendedLocationsArmOperationOfT.cs index 4709dfbb1a9d..4fbc78fbdd96 100644 --- a/sdk/extendedlocation/Azure.ResourceManager.ExtendedLocations/src/Generated/LongRunningOperation/ExtendedLocationsArmOperationOfT.cs +++ b/sdk/extendedlocation/Azure.ResourceManager.ExtendedLocations/src/Generated/LongRunningOperation/ExtendedLocationsArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class ExtendedLocationsArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of ExtendedLocationsArmOperation for mocking. protected ExtendedLocationsArmOperation() { } - internal ExtendedLocationsArmOperation(Response response) + internal ExtendedLocationsArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal ExtendedLocationsArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "ExtendedLocationsArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal ExtendedLocationsArmOperation(IOperationSource source, ClientDiagnos public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/extendedlocation/Azure.ResourceManager.ExtendedLocations/src/Generated/Models/CustomLocationResource.Serialization.cs b/sdk/extendedlocation/Azure.ResourceManager.ExtendedLocations/src/Generated/Models/CustomLocationResource.Serialization.cs new file mode 100644 index 000000000000..6ab824efde7c --- /dev/null +++ b/sdk/extendedlocation/Azure.ResourceManager.ExtendedLocations/src/Generated/Models/CustomLocationResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ExtendedLocations +{ + public partial class CustomLocationResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + CustomLocationData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + CustomLocationData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/extendedlocation/Azure.ResourceManager.ExtendedLocations/src/Generated/RestOperations/CustomLocationsRestOperations.cs b/sdk/extendedlocation/Azure.ResourceManager.ExtendedLocations/src/Generated/RestOperations/CustomLocationsRestOperations.cs index d8b7eda8a2cd..ea0bf57f35cf 100644 --- a/sdk/extendedlocation/Azure.ResourceManager.ExtendedLocations/src/Generated/RestOperations/CustomLocationsRestOperations.cs +++ b/sdk/extendedlocation/Azure.ResourceManager.ExtendedLocations/src/Generated/RestOperations/CustomLocationsRestOperations.cs @@ -37,6 +37,17 @@ public CustomLocationsRestOperations(HttpPipeline pipeline, string applicationId _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ExtendedLocation/customLocations", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,19 @@ public Response ListBySubscription(string subscription } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.ExtendedLocation/customLocations", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -177,6 +201,20 @@ public Response ListByResourceGroup(string subscriptio } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string resourceName) + { + 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.ExtendedLocation/customLocations/", false); + uri.AppendPath(resourceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); @@ -259,6 +297,20 @@ public Response Get(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string resourceName, CustomLocationData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ExtendedLocation/customLocations/", false); + uri.AppendPath(resourceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string resourceName, CustomLocationData data) { var message = _pipeline.CreateMessage(); @@ -337,6 +389,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string resourceName) + { + 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.ExtendedLocation/customLocations/", false); + uri.AppendPath(resourceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); @@ -407,6 +473,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string resourceName, CustomLocationPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ExtendedLocation/customLocations/", false); + uri.AppendPath(resourceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string resourceName, CustomLocationPatch patch) { var message = _pipeline.CreateMessage(); @@ -493,6 +573,21 @@ public Response Update(string subscriptionId, string resourc } } + internal RequestUriBuilder CreateListEnabledResourceTypesRequestUri(string subscriptionId, string resourceGroupName, string resourceName) + { + 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.ExtendedLocation/customLocations/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/enabledResourceTypes", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListEnabledResourceTypesRequest(string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); @@ -572,6 +667,14 @@ public Response ListEnabledResourceTyp } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -640,6 +743,14 @@ public Response ListBySubscriptionNextPage(string next } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -712,6 +823,14 @@ public Response ListByResourceGroupNextPage(string nex } } + internal RequestUriBuilder CreateListEnabledResourceTypesNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string resourceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListEnabledResourceTypesNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/LongRunningOperation/ContainerServiceFleetArmOperation.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/LongRunningOperation/ContainerServiceFleetArmOperation.cs index bf347fe22108..5759c8379dee 100644 --- a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/LongRunningOperation/ContainerServiceFleetArmOperation.cs +++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/LongRunningOperation/ContainerServiceFleetArmOperation.cs @@ -20,21 +20,24 @@ internal class ContainerServiceFleetArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of ContainerServiceFleetArmOperation for mocking. protected ContainerServiceFleetArmOperation() { } - internal ContainerServiceFleetArmOperation(Response response) + internal ContainerServiceFleetArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal ContainerServiceFleetArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "ContainerServiceFleetArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal ContainerServiceFleetArmOperation(ClientDiagnostics clientDiagnostics, public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/LongRunningOperation/ContainerServiceFleetArmOperationOfT.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/LongRunningOperation/ContainerServiceFleetArmOperationOfT.cs index 390d5a2d0908..fdbd7373656a 100644 --- a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/LongRunningOperation/ContainerServiceFleetArmOperationOfT.cs +++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/LongRunningOperation/ContainerServiceFleetArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class ContainerServiceFleetArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of ContainerServiceFleetArmOperation for mocking. protected ContainerServiceFleetArmOperation() { } - internal ContainerServiceFleetArmOperation(Response response) + internal ContainerServiceFleetArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal ContainerServiceFleetArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "ContainerServiceFleetArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal ContainerServiceFleetArmOperation(IOperationSource source, ClientDia public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/ContainerServiceFleetMemberResource.Serialization.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/ContainerServiceFleetMemberResource.Serialization.cs new file mode 100644 index 000000000000..82977df990cc --- /dev/null +++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/ContainerServiceFleetMemberResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ContainerServiceFleet +{ + public partial class ContainerServiceFleetMemberResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ContainerServiceFleetMemberData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ContainerServiceFleetMemberData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/ContainerServiceFleetResource.Serialization.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/ContainerServiceFleetResource.Serialization.cs new file mode 100644 index 000000000000..cb6c0e10b982 --- /dev/null +++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/ContainerServiceFleetResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ContainerServiceFleet +{ + public partial class ContainerServiceFleetResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ContainerServiceFleetData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ContainerServiceFleetData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/ContainerServiceFleetUpdateRunResource.Serialization.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/ContainerServiceFleetUpdateRunResource.Serialization.cs new file mode 100644 index 000000000000..f7fd89ae3380 --- /dev/null +++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/ContainerServiceFleetUpdateRunResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ContainerServiceFleet +{ + public partial class ContainerServiceFleetUpdateRunResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ContainerServiceFleetUpdateRunData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ContainerServiceFleetUpdateRunData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/FleetUpdateStrategyResource.Serialization.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/FleetUpdateStrategyResource.Serialization.cs new file mode 100644 index 000000000000..9eb4756f60ff --- /dev/null +++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/FleetUpdateStrategyResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ContainerServiceFleet +{ + public partial class FleetUpdateStrategyResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + FleetUpdateStrategyData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + FleetUpdateStrategyData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/RestOperations/FleetMembersRestOperations.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/RestOperations/FleetMembersRestOperations.cs index c8b75e3114f4..7885d24df6b0 100644 --- a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/RestOperations/FleetMembersRestOperations.cs +++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/RestOperations/FleetMembersRestOperations.cs @@ -37,6 +37,21 @@ public FleetMembersRestOperations(HttpPipeline pipeline, string applicationId, U _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByFleetRequestUri(string subscriptionId, string resourceGroupName, string fleetName) + { + 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.ContainerService/fleets/", false); + uri.AppendPath(fleetName, true); + uri.AppendPath("/members", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByFleetRequest(string subscriptionId, string resourceGroupName, string fleetName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByFleet(string subscr } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string fleetName, string fleetMemberName) + { + 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.ContainerService/fleets/", false); + uri.AppendPath(fleetName, true); + uri.AppendPath("/members/", false); + uri.AppendPath(fleetMemberName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string fleetName, string fleetMemberName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscriptionId, stri } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string fleetName, string fleetMemberName, ContainerServiceFleetMemberData data, string ifMatch, string ifNoneMatch) + { + 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.ContainerService/fleets/", false); + uri.AppendPath(fleetName, true); + uri.AppendPath("/members/", false); + uri.AppendPath(fleetMemberName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string fleetName, string fleetMemberName, ContainerServiceFleetMemberData data, string ifMatch, string ifNoneMatch) { var message = _pipeline.CreateMessage(); @@ -300,6 +347,22 @@ public Response Create(string subscriptionId, string resourceGroupName, string f } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string fleetName, string fleetMemberName, ContainerServiceFleetMemberPatch patch, string ifMatch) + { + 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.ContainerService/fleets/", false); + uri.AppendPath(fleetName, true); + uri.AppendPath("/members/", false); + uri.AppendPath(fleetMemberName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string fleetName, string fleetMemberName, ContainerServiceFleetMemberPatch patch, string ifMatch) { var message = _pipeline.CreateMessage(); @@ -390,6 +453,22 @@ public Response Update(string subscriptionId, string resourceGroupName, string f } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string fleetName, string fleetMemberName, string ifMatch) + { + 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.ContainerService/fleets/", false); + uri.AppendPath(fleetName, true); + uri.AppendPath("/members/", false); + uri.AppendPath(fleetMemberName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string fleetName, string fleetMemberName, string ifMatch) { var message = _pipeline.CreateMessage(); @@ -474,6 +553,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string f } } + internal RequestUriBuilder CreateListByFleetNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string fleetName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByFleetNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string fleetName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/RestOperations/FleetUpdateStrategiesRestOperations.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/RestOperations/FleetUpdateStrategiesRestOperations.cs index 3fb22978192e..da97f29b389e 100644 --- a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/RestOperations/FleetUpdateStrategiesRestOperations.cs +++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/RestOperations/FleetUpdateStrategiesRestOperations.cs @@ -37,6 +37,21 @@ public FleetUpdateStrategiesRestOperations(HttpPipeline pipeline, string applica _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByFleetRequestUri(string subscriptionId, string resourceGroupName, string fleetName) + { + 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.ContainerService/fleets/", false); + uri.AppendPath(fleetName, true); + uri.AppendPath("/updateStrategies", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByFleetRequest(string subscriptionId, string resourceGroupName, string fleetName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByFleet(string subscriptionId } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string fleetName, string updateStrategyName) + { + 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.ContainerService/fleets/", false); + uri.AppendPath(fleetName, true); + uri.AppendPath("/updateStrategies/", false); + uri.AppendPath(updateStrategyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string fleetName, string updateStrategyName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscriptionId, string resou } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string fleetName, string updateStrategyName, FleetUpdateStrategyData data, string ifMatch, string ifNoneMatch) + { + 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.ContainerService/fleets/", false); + uri.AppendPath(fleetName, true); + uri.AppendPath("/updateStrategies/", false); + uri.AppendPath(updateStrategyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string fleetName, string updateStrategyName, FleetUpdateStrategyData data, string ifMatch, string ifNoneMatch) { var message = _pipeline.CreateMessage(); @@ -300,6 +347,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string fleetName, string updateStrategyName, string ifMatch) + { + 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.ContainerService/fleets/", false); + uri.AppendPath(fleetName, true); + uri.AppendPath("/updateStrategies/", false); + uri.AppendPath(updateStrategyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string fleetName, string updateStrategyName, string ifMatch) { var message = _pipeline.CreateMessage(); @@ -384,6 +447,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string f } } + internal RequestUriBuilder CreateListByFleetNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string fleetName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByFleetNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string fleetName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/RestOperations/FleetsRestOperations.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/RestOperations/FleetsRestOperations.cs index 875353f05797..b03f4d82db14 100644 --- a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/RestOperations/FleetsRestOperations.cs +++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/RestOperations/FleetsRestOperations.cs @@ -37,6 +37,17 @@ public FleetsRestOperations(HttpPipeline pipeline, string applicationId, Uri end _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ContainerService/fleets", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,19 @@ public Response ListBySubscription(string subsc } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.ContainerService/fleets", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -177,6 +201,20 @@ public Response ListByResourceGroup(string subs } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string fleetName) + { + 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.ContainerService/fleets/", false); + uri.AppendPath(fleetName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string fleetName) { var message = _pipeline.CreateMessage(); @@ -259,6 +297,20 @@ public Response Get(string subscriptionId, string res } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string fleetName, ContainerServiceFleetData data, string ifMatch, string ifNoneMatch) + { + 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.ContainerService/fleets/", false); + uri.AppendPath(fleetName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string fleetName, ContainerServiceFleetData data, string ifMatch, string ifNoneMatch) { var message = _pipeline.CreateMessage(); @@ -349,6 +401,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string fleetName, ContainerServiceFleetPatch patch, string ifMatch) + { + 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.ContainerService/fleets/", false); + uri.AppendPath(fleetName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string fleetName, ContainerServiceFleetPatch patch, string ifMatch) { var message = _pipeline.CreateMessage(); @@ -433,6 +499,20 @@ public Response Update(string subscriptionId, string resourceGroupName, string f } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string fleetName, string ifMatch) + { + 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.ContainerService/fleets/", false); + uri.AppendPath(fleetName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string fleetName, string ifMatch) { var message = _pipeline.CreateMessage(); @@ -511,6 +591,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string f } } + internal RequestUriBuilder CreateListCredentialsRequestUri(string subscriptionId, string resourceGroupName, string fleetName) + { + 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.ContainerService/fleets/", false); + uri.AppendPath(fleetName, true); + uri.AppendPath("/listCredentials", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListCredentialsRequest(string subscriptionId, string resourceGroupName, string fleetName) { var message = _pipeline.CreateMessage(); @@ -590,6 +685,14 @@ public Response ListCredentials(string subscriptionId, s } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -658,6 +761,14 @@ public Response ListBySubscriptionNextPage(stri } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/RestOperations/UpdateRunsRestOperations.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/RestOperations/UpdateRunsRestOperations.cs index 0cba173937ef..ec0a49ef7c79 100644 --- a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/RestOperations/UpdateRunsRestOperations.cs +++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/RestOperations/UpdateRunsRestOperations.cs @@ -37,6 +37,21 @@ public UpdateRunsRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByFleetRequestUri(string subscriptionId, string resourceGroupName, string fleetName) + { + 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.ContainerService/fleets/", false); + uri.AppendPath(fleetName, true); + uri.AppendPath("/updateRuns", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByFleetRequest(string subscriptionId, string resourceGroupName, string fleetName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByFleet(string sub } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string fleetName, string updateRunName) + { + 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.ContainerService/fleets/", false); + uri.AppendPath(fleetName, true); + uri.AppendPath("/updateRuns/", false); + uri.AppendPath(updateRunName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string fleetName, string updateRunName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscriptionId, s } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string fleetName, string updateRunName, ContainerServiceFleetUpdateRunData data, string ifMatch, string ifNoneMatch) + { + 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.ContainerService/fleets/", false); + uri.AppendPath(fleetName, true); + uri.AppendPath("/updateRuns/", false); + uri.AppendPath(updateRunName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string fleetName, string updateRunName, ContainerServiceFleetUpdateRunData data, string ifMatch, string ifNoneMatch) { var message = _pipeline.CreateMessage(); @@ -300,6 +347,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string fleetName, string updateRunName, string ifMatch) + { + 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.ContainerService/fleets/", false); + uri.AppendPath(fleetName, true); + uri.AppendPath("/updateRuns/", false); + uri.AppendPath(updateRunName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string fleetName, string updateRunName, string ifMatch) { var message = _pipeline.CreateMessage(); @@ -384,6 +447,23 @@ public Response Delete(string subscriptionId, string resourceGroupName, string f } } + internal RequestUriBuilder CreateStartRequestUri(string subscriptionId, string resourceGroupName, string fleetName, string updateRunName, string ifMatch) + { + 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.ContainerService/fleets/", false); + uri.AppendPath(fleetName, true); + uri.AppendPath("/updateRuns/", false); + uri.AppendPath(updateRunName, true); + uri.AppendPath("/start", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStartRequest(string subscriptionId, string resourceGroupName, string fleetName, string updateRunName, string ifMatch) { var message = _pipeline.CreateMessage(); @@ -467,6 +547,23 @@ public Response Start(string subscriptionId, string resourceGroupName, string fl } } + internal RequestUriBuilder CreateStopRequestUri(string subscriptionId, string resourceGroupName, string fleetName, string updateRunName, string ifMatch) + { + 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.ContainerService/fleets/", false); + uri.AppendPath(fleetName, true); + uri.AppendPath("/updateRuns/", false); + uri.AppendPath(updateRunName, true); + uri.AppendPath("/stop", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStopRequest(string subscriptionId, string resourceGroupName, string fleetName, string updateRunName, string ifMatch) { var message = _pipeline.CreateMessage(); @@ -550,6 +647,14 @@ public Response Stop(string subscriptionId, string resourceGroupName, string fle } } + internal RequestUriBuilder CreateListByFleetNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string fleetName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByFleetNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string fleetName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/fluidrelay/Azure.ResourceManager.FluidRelay/src/Generated/FluidRelayContainerResource.cs b/sdk/fluidrelay/Azure.ResourceManager.FluidRelay/src/Generated/FluidRelayContainerResource.cs index 6ab299ac0ffd..3081d484c70d 100644 --- a/sdk/fluidrelay/Azure.ResourceManager.FluidRelay/src/Generated/FluidRelayContainerResource.cs +++ b/sdk/fluidrelay/Azure.ResourceManager.FluidRelay/src/Generated/FluidRelayContainerResource.cs @@ -200,7 +200,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _fluidRelayContainerRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new FluidRelayArmOperation(response); + var uri = _fluidRelayContainerRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new FluidRelayArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -242,7 +244,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _fluidRelayContainerRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new FluidRelayArmOperation(response); + var uri = _fluidRelayContainerRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new FluidRelayArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/fluidrelay/Azure.ResourceManager.FluidRelay/src/Generated/FluidRelayServerCollection.cs b/sdk/fluidrelay/Azure.ResourceManager.FluidRelay/src/Generated/FluidRelayServerCollection.cs index 0e0dea1a04c8..cb8059b6f1e4 100644 --- a/sdk/fluidrelay/Azure.ResourceManager.FluidRelay/src/Generated/FluidRelayServerCollection.cs +++ b/sdk/fluidrelay/Azure.ResourceManager.FluidRelay/src/Generated/FluidRelayServerCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> CreateOrUpdate try { var response = await _fluidRelayServerRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, fluidRelayServerName, data, cancellationToken).ConfigureAwait(false); - var operation = new FluidRelayArmOperation(Response.FromValue(new FluidRelayServerResource(Client, response), response.GetRawResponse())); + var uri = _fluidRelayServerRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, fluidRelayServerName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new FluidRelayArmOperation(Response.FromValue(new FluidRelayServerResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -140,7 +142,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil w try { var response = _fluidRelayServerRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, fluidRelayServerName, data, cancellationToken); - var operation = new FluidRelayArmOperation(Response.FromValue(new FluidRelayServerResource(Client, response), response.GetRawResponse())); + var uri = _fluidRelayServerRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, fluidRelayServerName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new FluidRelayArmOperation(Response.FromValue(new FluidRelayServerResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/fluidrelay/Azure.ResourceManager.FluidRelay/src/Generated/FluidRelayServerResource.cs b/sdk/fluidrelay/Azure.ResourceManager.FluidRelay/src/Generated/FluidRelayServerResource.cs index 91b579b2fe79..dcd77f988105 100644 --- a/sdk/fluidrelay/Azure.ResourceManager.FluidRelay/src/Generated/FluidRelayServerResource.cs +++ b/sdk/fluidrelay/Azure.ResourceManager.FluidRelay/src/Generated/FluidRelayServerResource.cs @@ -271,7 +271,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _fluidRelayServerRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new FluidRelayArmOperation(response); + var uri = _fluidRelayServerRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new FluidRelayArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -313,7 +315,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _fluidRelayServerRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); - var operation = new FluidRelayArmOperation(response); + var uri = _fluidRelayServerRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new FluidRelayArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/fluidrelay/Azure.ResourceManager.FluidRelay/src/Generated/LongRunningOperation/FluidRelayArmOperation.cs b/sdk/fluidrelay/Azure.ResourceManager.FluidRelay/src/Generated/LongRunningOperation/FluidRelayArmOperation.cs index fd9590e65ad0..4a9a7538928d 100644 --- a/sdk/fluidrelay/Azure.ResourceManager.FluidRelay/src/Generated/LongRunningOperation/FluidRelayArmOperation.cs +++ b/sdk/fluidrelay/Azure.ResourceManager.FluidRelay/src/Generated/LongRunningOperation/FluidRelayArmOperation.cs @@ -20,21 +20,24 @@ internal class FluidRelayArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of FluidRelayArmOperation for mocking. protected FluidRelayArmOperation() { } - internal FluidRelayArmOperation(Response response) + internal FluidRelayArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal FluidRelayArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "FluidRelayArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal FluidRelayArmOperation(ClientDiagnostics clientDiagnostics, HttpPipelin public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/fluidrelay/Azure.ResourceManager.FluidRelay/src/Generated/LongRunningOperation/FluidRelayArmOperationOfT.cs b/sdk/fluidrelay/Azure.ResourceManager.FluidRelay/src/Generated/LongRunningOperation/FluidRelayArmOperationOfT.cs index 714b8cc30f5b..fe4a750449aa 100644 --- a/sdk/fluidrelay/Azure.ResourceManager.FluidRelay/src/Generated/LongRunningOperation/FluidRelayArmOperationOfT.cs +++ b/sdk/fluidrelay/Azure.ResourceManager.FluidRelay/src/Generated/LongRunningOperation/FluidRelayArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class FluidRelayArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of FluidRelayArmOperation for mocking. protected FluidRelayArmOperation() { } - internal FluidRelayArmOperation(Response response) + internal FluidRelayArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal FluidRelayArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "FluidRelayArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal FluidRelayArmOperation(IOperationSource source, ClientDiagnostics cl public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/fluidrelay/Azure.ResourceManager.FluidRelay/src/Generated/Models/FluidRelayContainerResource.Serialization.cs b/sdk/fluidrelay/Azure.ResourceManager.FluidRelay/src/Generated/Models/FluidRelayContainerResource.Serialization.cs new file mode 100644 index 000000000000..271343d0ee79 --- /dev/null +++ b/sdk/fluidrelay/Azure.ResourceManager.FluidRelay/src/Generated/Models/FluidRelayContainerResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.FluidRelay +{ + public partial class FluidRelayContainerResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + FluidRelayContainerData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + FluidRelayContainerData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/fluidrelay/Azure.ResourceManager.FluidRelay/src/Generated/Models/FluidRelayServerResource.Serialization.cs b/sdk/fluidrelay/Azure.ResourceManager.FluidRelay/src/Generated/Models/FluidRelayServerResource.Serialization.cs new file mode 100644 index 000000000000..b882738147aa --- /dev/null +++ b/sdk/fluidrelay/Azure.ResourceManager.FluidRelay/src/Generated/Models/FluidRelayServerResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.FluidRelay +{ + public partial class FluidRelayServerResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + FluidRelayServerData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + FluidRelayServerData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/fluidrelay/Azure.ResourceManager.FluidRelay/src/Generated/RestOperations/FluidRelayContainersRestOperations.cs b/sdk/fluidrelay/Azure.ResourceManager.FluidRelay/src/Generated/RestOperations/FluidRelayContainersRestOperations.cs index de509daaf04e..03b3923a9cb9 100644 --- a/sdk/fluidrelay/Azure.ResourceManager.FluidRelay/src/Generated/RestOperations/FluidRelayContainersRestOperations.cs +++ b/sdk/fluidrelay/Azure.ResourceManager.FluidRelay/src/Generated/RestOperations/FluidRelayContainersRestOperations.cs @@ -37,6 +37,22 @@ public FluidRelayContainersRestOperations(HttpPipeline pipeline, string applicat _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroup, string fluidRelayServerName, string fluidRelayContainerName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroup, true); + uri.AppendPath("/providers/Microsoft.FluidRelay/fluidRelayServers/", false); + uri.AppendPath(fluidRelayServerName, true); + uri.AppendPath("/fluidRelayContainers/", false); + uri.AppendPath(fluidRelayContainerName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroup, string fluidRelayServerName, string fluidRelayContainerName) { var message = _pipeline.CreateMessage(); @@ -125,6 +141,22 @@ public Response Get(string subscriptionId, string resou } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroup, string fluidRelayServerName, string fluidRelayContainerName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroup, true); + uri.AppendPath("/providers/Microsoft.FluidRelay/fluidRelayServers/", false); + uri.AppendPath(fluidRelayServerName, true); + uri.AppendPath("/fluidRelayContainers/", false); + uri.AppendPath(fluidRelayContainerName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroup, string fluidRelayServerName, string fluidRelayContainerName) { var message = _pipeline.CreateMessage(); @@ -201,6 +233,21 @@ public Response Delete(string subscriptionId, string resourceGroup, string fluid } } + internal RequestUriBuilder CreateListByFluidRelayServersRequestUri(string subscriptionId, string resourceGroup, string fluidRelayServerName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroup, true); + uri.AppendPath("/providers/Microsoft.FluidRelay/fluidRelayServers/", false); + uri.AppendPath(fluidRelayServerName, true); + uri.AppendPath("/fluidRelayContainers", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByFluidRelayServersRequest(string subscriptionId, string resourceGroup, string fluidRelayServerName) { var message = _pipeline.CreateMessage(); @@ -280,6 +327,14 @@ public Response ListByFluidRelayServers(string subscrip } } + internal RequestUriBuilder CreateListByFluidRelayServersNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroup, string fluidRelayServerName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByFluidRelayServersNextPageRequest(string nextLink, string subscriptionId, string resourceGroup, string fluidRelayServerName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/fluidrelay/Azure.ResourceManager.FluidRelay/src/Generated/RestOperations/FluidRelayServersRestOperations.cs b/sdk/fluidrelay/Azure.ResourceManager.FluidRelay/src/Generated/RestOperations/FluidRelayServersRestOperations.cs index 92026942adb3..cb3237b86d32 100644 --- a/sdk/fluidrelay/Azure.ResourceManager.FluidRelay/src/Generated/RestOperations/FluidRelayServersRestOperations.cs +++ b/sdk/fluidrelay/Azure.ResourceManager.FluidRelay/src/Generated/RestOperations/FluidRelayServersRestOperations.cs @@ -37,6 +37,20 @@ public FluidRelayServersRestOperations(HttpPipeline pipeline, string application _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroup, string fluidRelayServerName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroup, true); + uri.AppendPath("/providers/Microsoft.FluidRelay/fluidRelayServers/", false); + uri.AppendPath(fluidRelayServerName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroup, string fluidRelayServerName) { var message = _pipeline.CreateMessage(); @@ -119,6 +133,20 @@ public Response Get(string subscriptionId, string resource } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroup, string fluidRelayServerName, FluidRelayServerData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroup, true); + uri.AppendPath("/providers/Microsoft.FluidRelay/fluidRelayServers/", false); + uri.AppendPath(fluidRelayServerName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroup, string fluidRelayServerName, FluidRelayServerData data) { var message = _pipeline.CreateMessage(); @@ -205,6 +233,20 @@ public Response CreateOrUpdate(string subscriptionId, stri } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroup, string fluidRelayServerName, FluidRelayServerPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroup, true); + uri.AppendPath("/providers/Microsoft.FluidRelay/fluidRelayServers/", false); + uri.AppendPath(fluidRelayServerName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroup, string fluidRelayServerName, FluidRelayServerPatch patch) { var message = _pipeline.CreateMessage(); @@ -291,6 +333,20 @@ public Response Update(string subscriptionId, string resou } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroup, string fluidRelayServerName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroup, true); + uri.AppendPath("/providers/Microsoft.FluidRelay/fluidRelayServers/", false); + uri.AppendPath(fluidRelayServerName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroup, string fluidRelayServerName) { var message = _pipeline.CreateMessage(); @@ -361,6 +417,21 @@ public Response Delete(string subscriptionId, string resourceGroup, string fluid } } + internal RequestUriBuilder CreateRegenerateKeyRequestUri(string subscriptionId, string resourceGroup, string fluidRelayServerName, RegenerateKeyContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroup, true); + uri.AppendPath("/providers/Microsoft.FluidRelay/fluidRelayServers/", false); + uri.AppendPath(fluidRelayServerName, true); + uri.AppendPath("/regenerateKey", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRegenerateKeyRequest(string subscriptionId, string resourceGroup, string fluidRelayServerName, RegenerateKeyContent content) { var message = _pipeline.CreateMessage(); @@ -448,6 +519,21 @@ public Response RegenerateKey(string subscriptionId, strin } } + internal RequestUriBuilder CreateListKeysRequestUri(string subscriptionId, string resourceGroup, string fluidRelayServerName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroup, true); + uri.AppendPath("/providers/Microsoft.FluidRelay/fluidRelayServers/", false); + uri.AppendPath(fluidRelayServerName, true); + uri.AppendPath("/listKeys", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListKeysRequest(string subscriptionId, string resourceGroup, string fluidRelayServerName) { var message = _pipeline.CreateMessage(); @@ -527,6 +613,17 @@ public Response ListKeys(string subscriptionId, string res } } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.FluidRelay/fluidRelayServers", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -594,6 +691,19 @@ public Response ListBySubscription(string subscriptionId, } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroup) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroup, true); + uri.AppendPath("/providers/Microsoft.FluidRelay/fluidRelayServers", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroup) { var message = _pipeline.CreateMessage(); @@ -667,6 +777,14 @@ public Response ListByResourceGroup(string subscriptionId, } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -735,6 +853,14 @@ public Response ListBySubscriptionNextPage(string nextLink } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroup) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroup) { var message = _pipeline.CreateMessage(); diff --git a/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/LongRunningOperation/FrontDoorArmOperation.cs b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/LongRunningOperation/FrontDoorArmOperation.cs index 595357999488..dddc7ba5aaff 100644 --- a/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/LongRunningOperation/FrontDoorArmOperation.cs +++ b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/LongRunningOperation/FrontDoorArmOperation.cs @@ -20,21 +20,24 @@ internal class FrontDoorArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of FrontDoorArmOperation for mocking. protected FrontDoorArmOperation() { } - internal FrontDoorArmOperation(Response response) + internal FrontDoorArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal FrontDoorArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "FrontDoorArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal FrontDoorArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/LongRunningOperation/FrontDoorArmOperationOfT.cs b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/LongRunningOperation/FrontDoorArmOperationOfT.cs index 16125d4d247b..fa99bc679f1d 100644 --- a/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/LongRunningOperation/FrontDoorArmOperationOfT.cs +++ b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/LongRunningOperation/FrontDoorArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class FrontDoorArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of FrontDoorArmOperation for mocking. protected FrontDoorArmOperation() { } - internal FrontDoorArmOperation(Response response) + internal FrontDoorArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal FrontDoorArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "FrontDoorArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal FrontDoorArmOperation(IOperationSource source, ClientDiagnostics cli public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/FrontDoorExperimentResource.Serialization.cs b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/FrontDoorExperimentResource.Serialization.cs new file mode 100644 index 000000000000..22a08cecfcd4 --- /dev/null +++ b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/FrontDoorExperimentResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.FrontDoor +{ + public partial class FrontDoorExperimentResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + FrontDoorExperimentData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + FrontDoorExperimentData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/FrontDoorNetworkExperimentProfileResource.Serialization.cs b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/FrontDoorNetworkExperimentProfileResource.Serialization.cs new file mode 100644 index 000000000000..512317e0a9ae --- /dev/null +++ b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/FrontDoorNetworkExperimentProfileResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.FrontDoor +{ + public partial class FrontDoorNetworkExperimentProfileResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + FrontDoorNetworkExperimentProfileData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + FrontDoorNetworkExperimentProfileData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/FrontDoorResource.Serialization.cs b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/FrontDoorResource.Serialization.cs new file mode 100644 index 000000000000..cbf20410c1a6 --- /dev/null +++ b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/FrontDoorResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.FrontDoor +{ + public partial class FrontDoorResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + FrontDoorData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + FrontDoorData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/FrontDoorRulesEngineResource.Serialization.cs b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/FrontDoorRulesEngineResource.Serialization.cs new file mode 100644 index 000000000000..935894a6c2eb --- /dev/null +++ b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/FrontDoorRulesEngineResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.FrontDoor +{ + public partial class FrontDoorRulesEngineResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + FrontDoorRulesEngineData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + FrontDoorRulesEngineData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/FrontDoorWebApplicationFirewallPolicyResource.Serialization.cs b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/FrontDoorWebApplicationFirewallPolicyResource.Serialization.cs new file mode 100644 index 000000000000..0f6c3a46b231 --- /dev/null +++ b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/FrontDoorWebApplicationFirewallPolicyResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.FrontDoor +{ + public partial class FrontDoorWebApplicationFirewallPolicyResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + FrontDoorWebApplicationFirewallPolicyData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + FrontDoorWebApplicationFirewallPolicyData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/FrontendEndpointResource.Serialization.cs b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/FrontendEndpointResource.Serialization.cs new file mode 100644 index 000000000000..963eb8051f1d --- /dev/null +++ b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/FrontendEndpointResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.FrontDoor +{ + public partial class FrontendEndpointResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + FrontendEndpointData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + FrontendEndpointData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/RestOperations/EndpointsRestOperations.cs b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/RestOperations/EndpointsRestOperations.cs index cb3cfb3c3e68..df53efefac98 100644 --- a/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/RestOperations/EndpointsRestOperations.cs +++ b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/RestOperations/EndpointsRestOperations.cs @@ -36,6 +36,21 @@ public EndpointsRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreatePurgeContentRequestUri(string subscriptionId, string resourceGroupName, string frontDoorName, FrontDoorEndpointPurgeContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/frontDoors/", false); + uri.AppendPath(frontDoorName, true); + uri.AppendPath("/purge", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreatePurgeContentRequest(string subscriptionId, string resourceGroupName, string frontDoorName, FrontDoorEndpointPurgeContent content) { var message = _pipeline.CreateMessage(); diff --git a/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/RestOperations/ExperimentsRestOperations.cs b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/RestOperations/ExperimentsRestOperations.cs index a72d925f4511..dbc13f451e40 100644 --- a/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/RestOperations/ExperimentsRestOperations.cs +++ b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/RestOperations/ExperimentsRestOperations.cs @@ -37,6 +37,21 @@ public ExperimentsRestOperations(HttpPipeline pipeline, string applicationId, Ur _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByProfileRequestUri(string subscriptionId, string resourceGroupName, string profileName) + { + 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.Network/NetworkExperimentProfiles/", false); + uri.AppendPath(profileName, true); + uri.AppendPath("/Experiments", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByProfileRequest(string subscriptionId, string resourceGroupName, string profileName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByProfile(string subscriptionId, string reso } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string profileName, string experimentName) + { + 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.Network/NetworkExperimentProfiles/", false); + uri.AppendPath(profileName, true); + uri.AppendPath("/Experiments/", false); + uri.AppendPath(experimentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string profileName, string experimentName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscriptionId, string resou } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string profileName, string experimentName, FrontDoorExperimentData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/NetworkExperimentProfiles/", false); + uri.AppendPath(profileName, true); + uri.AppendPath("/Experiments/", false); + uri.AppendPath(experimentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string profileName, string experimentName, FrontDoorExperimentData data) { var message = _pipeline.CreateMessage(); @@ -290,6 +337,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string profileName, string experimentName, FrontDoorExperimentPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/NetworkExperimentProfiles/", false); + uri.AppendPath(profileName, true); + uri.AppendPath("/Experiments/", false); + uri.AppendPath(experimentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string profileName, string experimentName, FrontDoorExperimentPatch patch) { var message = _pipeline.CreateMessage(); @@ -374,6 +437,22 @@ public Response Update(string subscriptionId, string resourceGroupName, string p } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string profileName, string experimentName) + { + 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.Network/NetworkExperimentProfiles/", false); + uri.AppendPath(profileName, true); + uri.AppendPath("/Experiments/", false); + uri.AppendPath(experimentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string profileName, string experimentName) { var message = _pipeline.CreateMessage(); @@ -452,6 +531,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string p } } + internal RequestUriBuilder CreateListByProfileNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string profileName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByProfileNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string profileName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/RestOperations/FrontDoorNameAvailabilityRestOperations.cs b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/RestOperations/FrontDoorNameAvailabilityRestOperations.cs index ef9b8baffa60..75a5b38ec4b6 100644 --- a/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/RestOperations/FrontDoorNameAvailabilityRestOperations.cs +++ b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/RestOperations/FrontDoorNameAvailabilityRestOperations.cs @@ -37,6 +37,15 @@ public FrontDoorNameAvailabilityRestOperations(HttpPipeline pipeline, string app _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCheckRequestUri(FrontDoorNameAvailabilityContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Network/checkFrontDoorNameAvailability", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCheckRequest(FrontDoorNameAvailabilityContent content) { var message = _pipeline.CreateMessage(); diff --git a/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/RestOperations/FrontDoorNameAvailabilityWithSubscriptionRestOperations.cs b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/RestOperations/FrontDoorNameAvailabilityWithSubscriptionRestOperations.cs index 061241a8cd8d..3b798a556de9 100644 --- a/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/RestOperations/FrontDoorNameAvailabilityWithSubscriptionRestOperations.cs +++ b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/RestOperations/FrontDoorNameAvailabilityWithSubscriptionRestOperations.cs @@ -37,6 +37,17 @@ public FrontDoorNameAvailabilityWithSubscriptionRestOperations(HttpPipeline pipe _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCheckRequestUri(string subscriptionId, FrontDoorNameAvailabilityContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Network/checkFrontDoorNameAvailability", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCheckRequest(string subscriptionId, FrontDoorNameAvailabilityContent content) { var message = _pipeline.CreateMessage(); diff --git a/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/RestOperations/FrontDoorsRestOperations.cs b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/RestOperations/FrontDoorsRestOperations.cs index 27555105288a..598ee680ca73 100644 --- a/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/RestOperations/FrontDoorsRestOperations.cs +++ b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/RestOperations/FrontDoorsRestOperations.cs @@ -37,6 +37,17 @@ public FrontDoorsRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Network/frontDoors", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,19 @@ public Response List(string subscriptionId, CancellationTok } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.Network/frontDoors", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -177,6 +201,20 @@ public Response ListByResourceGroup(string subscriptionId, } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string frontDoorName) + { + 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.Network/frontDoors/", false); + uri.AppendPath(frontDoorName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string frontDoorName) { var message = _pipeline.CreateMessage(); @@ -259,6 +297,20 @@ public Response Get(string subscriptionId, string resourceGroupNa } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string frontDoorName, FrontDoorData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/frontDoors/", false); + uri.AppendPath(frontDoorName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string frontDoorName, FrontDoorData data) { var message = _pipeline.CreateMessage(); @@ -339,6 +391,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string frontDoorName) + { + 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.Network/frontDoors/", false); + uri.AppendPath(frontDoorName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string frontDoorName) { var message = _pipeline.CreateMessage(); @@ -409,6 +475,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string f } } + internal RequestUriBuilder CreateValidateCustomDomainRequestUri(string subscriptionId, string resourceGroupName, string frontDoorName, FrontDoorValidateCustomDomainContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/frontDoors/", false); + uri.AppendPath(frontDoorName, true); + uri.AppendPath("/validateCustomDomain", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateValidateCustomDomainRequest(string subscriptionId, string resourceGroupName, string frontDoorName, FrontDoorValidateCustomDomainContent content) { var message = _pipeline.CreateMessage(); @@ -496,6 +577,14 @@ public Response ValidateCustomDomain(string } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -564,6 +653,14 @@ public Response ListNextPage(string nextLink, string subscr } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/RestOperations/FrontendEndpointsRestOperations.cs b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/RestOperations/FrontendEndpointsRestOperations.cs index 44eccab6617a..d92db1f5623a 100644 --- a/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/RestOperations/FrontendEndpointsRestOperations.cs +++ b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/RestOperations/FrontendEndpointsRestOperations.cs @@ -37,6 +37,21 @@ public FrontendEndpointsRestOperations(HttpPipeline pipeline, string application _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByFrontDoorRequestUri(string subscriptionId, string resourceGroupName, string frontDoorName) + { + 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.Network/frontDoors/", false); + uri.AppendPath(frontDoorName, true); + uri.AppendPath("/frontendEndpoints", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByFrontDoorRequest(string subscriptionId, string resourceGroupName, string frontDoorName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByFrontDoor(string subscription } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string frontDoorName, string frontendEndpointName) + { + 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.Network/frontDoors/", false); + uri.AppendPath(frontDoorName, true); + uri.AppendPath("/frontendEndpoints/", false); + uri.AppendPath(frontendEndpointName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string frontDoorName, string frontendEndpointName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,23 @@ public Response Get(string subscriptionId, string resource } } + internal RequestUriBuilder CreateEnableHttpsRequestUri(string subscriptionId, string resourceGroupName, string frontDoorName, string frontendEndpointName, CustomHttpsConfiguration customHttpsConfiguration) + { + 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.Network/frontDoors/", false); + uri.AppendPath(frontDoorName, true); + uri.AppendPath("/frontendEndpoints/", false); + uri.AppendPath(frontendEndpointName, true); + uri.AppendPath("/enableHttps", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateEnableHttpsRequest(string subscriptionId, string resourceGroupName, string frontDoorName, string frontendEndpointName, CustomHttpsConfiguration customHttpsConfiguration) { var message = _pipeline.CreateMessage(); @@ -289,6 +337,23 @@ public Response EnableHttps(string subscriptionId, string resourceGroupName, str } } + internal RequestUriBuilder CreateDisableHttpsRequestUri(string subscriptionId, string resourceGroupName, string frontDoorName, string frontendEndpointName) + { + 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.Network/frontDoors/", false); + uri.AppendPath(frontDoorName, true); + uri.AppendPath("/frontendEndpoints/", false); + uri.AppendPath(frontendEndpointName, true); + uri.AppendPath("/disableHttps", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDisableHttpsRequest(string subscriptionId, string resourceGroupName, string frontDoorName, string frontendEndpointName) { var message = _pipeline.CreateMessage(); @@ -366,6 +431,14 @@ public Response DisableHttps(string subscriptionId, string resourceGroupName, st } } + internal RequestUriBuilder CreateListByFrontDoorNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string frontDoorName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByFrontDoorNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string frontDoorName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/RestOperations/ManagedRuleSetsRestOperations.cs b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/RestOperations/ManagedRuleSetsRestOperations.cs index 6079c2572a4d..f9244d070197 100644 --- a/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/RestOperations/ManagedRuleSetsRestOperations.cs +++ b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/RestOperations/ManagedRuleSetsRestOperations.cs @@ -37,6 +37,17 @@ public ManagedRuleSetsRestOperations(HttpPipeline pipeline, string applicationId _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Network/FrontDoorWebApplicationFirewallManagedRuleSets", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,14 @@ public Response List(string subscriptionId, Cancel } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/RestOperations/NetworkExperimentProfilesRestOperations.cs b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/RestOperations/NetworkExperimentProfilesRestOperations.cs index 69be95ddad07..20da89ac50b6 100644 --- a/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/RestOperations/NetworkExperimentProfilesRestOperations.cs +++ b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/RestOperations/NetworkExperimentProfilesRestOperations.cs @@ -37,6 +37,17 @@ public NetworkExperimentProfilesRestOperations(HttpPipeline pipeline, string app _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Network/NetworkExperimentProfiles", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,19 @@ public Response List(string subscriptionId, CancellationToken cance } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.Network/NetworkExperimentProfiles", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -177,6 +201,20 @@ public Response ListByResourceGroup(string subscriptionId, string r } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string profileName) + { + 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.Network/NetworkExperimentProfiles/", false); + uri.AppendPath(profileName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string profileName) { var message = _pipeline.CreateMessage(); @@ -259,6 +297,20 @@ public Response Get(string subscriptionId } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string profileName, FrontDoorNetworkExperimentProfileData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/NetworkExperimentProfiles/", false); + uri.AppendPath(profileName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string profileName, FrontDoorNetworkExperimentProfileData data) { var message = _pipeline.CreateMessage(); @@ -339,6 +391,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string profileName, FrontDoorNetworkExperimentProfilePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/NetworkExperimentProfiles/", false); + uri.AppendPath(profileName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string profileName, FrontDoorNetworkExperimentProfilePatch patch) { var message = _pipeline.CreateMessage(); @@ -417,6 +483,20 @@ public Response Update(string subscriptionId, string resourceGroupName, string p } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string profileName) + { + 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.Network/NetworkExperimentProfiles/", false); + uri.AppendPath(profileName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string profileName) { var message = _pipeline.CreateMessage(); @@ -489,6 +569,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string p } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -557,6 +645,14 @@ public Response ListNextPage(string nextLink, string subscriptionId } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/RestOperations/PoliciesRestOperations.cs b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/RestOperations/PoliciesRestOperations.cs index e8cdf20f5458..17719187d9dd 100644 --- a/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/RestOperations/PoliciesRestOperations.cs +++ b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/RestOperations/PoliciesRestOperations.cs @@ -37,6 +37,19 @@ public PoliciesRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName) + { + 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.Network/frontDoorWebApplicationFirewallPolicies", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -110,6 +123,20 @@ public Response List(string subscriptionId, st } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string policyName) + { + 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.Network/FrontDoorWebApplicationFirewallPolicies/", false); + uri.AppendPath(policyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string policyName) { var message = _pipeline.CreateMessage(); @@ -192,6 +219,20 @@ public Response Get(string subscripti } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string policyName, FrontDoorWebApplicationFirewallPolicyData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/", false); + uri.AppendPath(policyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string policyName, FrontDoorWebApplicationFirewallPolicyData data) { var message = _pipeline.CreateMessage(); @@ -272,6 +313,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string policyName, FrontDoorWebApplicationFirewallPolicyPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/", false); + uri.AppendPath(policyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string policyName, FrontDoorWebApplicationFirewallPolicyPatch patch) { var message = _pipeline.CreateMessage(); @@ -348,6 +403,20 @@ public Response Update(string subscriptionId, string resourceGroupName, string p } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string policyName) + { + 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.Network/FrontDoorWebApplicationFirewallPolicies/", false); + uri.AppendPath(policyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string policyName) { var message = _pipeline.CreateMessage(); @@ -419,6 +488,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string p } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/RestOperations/PreconfiguredEndpointsRestOperations.cs b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/RestOperations/PreconfiguredEndpointsRestOperations.cs index 0abeca502da3..d54563c9c042 100644 --- a/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/RestOperations/PreconfiguredEndpointsRestOperations.cs +++ b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/RestOperations/PreconfiguredEndpointsRestOperations.cs @@ -37,6 +37,21 @@ public PreconfiguredEndpointsRestOperations(HttpPipeline pipeline, string applic _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string profileName) + { + 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.Network/NetworkExperimentProfiles/", false); + uri.AppendPath(profileName, true); + uri.AppendPath("/PreconfiguredEndpoints", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string profileName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,14 @@ public Response List(string subscriptionId, string re } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string profileName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string profileName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/RestOperations/ReportsRestOperations.cs b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/RestOperations/ReportsRestOperations.cs index 5417f5f1b42b..25398243ba3d 100644 --- a/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/RestOperations/ReportsRestOperations.cs +++ b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/RestOperations/ReportsRestOperations.cs @@ -37,6 +37,32 @@ public ReportsRestOperations(HttpPipeline pipeline, string applicationId, Uri en _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetLatencyScorecardsRequestUri(string subscriptionId, string resourceGroupName, string profileName, string experimentName, LatencyScorecardAggregationInterval aggregationInterval, DateTimeOffset? endOn, string country) + { + 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.Network/NetworkExperimentProfiles/", false); + uri.AppendPath(profileName, true); + uri.AppendPath("/Experiments/", false); + uri.AppendPath(experimentName, true); + uri.AppendPath("/LatencyScorecard", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (endOn != null) + { + uri.AppendQuery("endDateTimeUTC", endOn.Value, "O", true); + } + if (country != null) + { + uri.AppendQuery("country", country, true); + } + uri.AppendQuery("aggregationInterval", aggregationInterval.ToString(), true); + return uri; + } + internal HttpMessage CreateGetLatencyScorecardsRequest(string subscriptionId, string resourceGroupName, string profileName, string experimentName, LatencyScorecardAggregationInterval aggregationInterval, DateTimeOffset? endOn, string country) { var message = _pipeline.CreateMessage(); @@ -137,6 +163,35 @@ public Response GetLatencyScorecards(string subscriptionId, st } } + internal RequestUriBuilder CreateGetTimeSeriesRequestUri(string subscriptionId, string resourceGroupName, string profileName, string experimentName, DateTimeOffset startOn, DateTimeOffset endOn, FrontDoorTimeSeriesAggregationInterval aggregationInterval, FrontDoorTimeSeriesType timeSeriesType, string endpoint, string country) + { + 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.Network/NetworkExperimentProfiles/", false); + uri.AppendPath(profileName, true); + uri.AppendPath("/Experiments/", false); + uri.AppendPath(experimentName, true); + uri.AppendPath("/Timeseries", false); + uri.AppendQuery("api-version", _apiVersion, true); + uri.AppendQuery("startDateTimeUTC", startOn, "O", true); + uri.AppendQuery("endDateTimeUTC", endOn, "O", true); + uri.AppendQuery("aggregationInterval", aggregationInterval.ToString(), true); + uri.AppendQuery("timeseriesType", timeSeriesType.ToString(), true); + if (endpoint != null) + { + uri.AppendQuery("endpoint", endpoint, true); + } + if (country != null) + { + uri.AppendQuery("country", country, true); + } + return uri; + } + internal HttpMessage CreateGetTimeSeriesRequest(string subscriptionId, string resourceGroupName, string profileName, string experimentName, DateTimeOffset startOn, DateTimeOffset endOn, FrontDoorTimeSeriesAggregationInterval aggregationInterval, FrontDoorTimeSeriesType timeSeriesType, string endpoint, string country) { var message = _pipeline.CreateMessage(); diff --git a/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/RestOperations/RulesEnginesRestOperations.cs b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/RestOperations/RulesEnginesRestOperations.cs index 7bef10908485..b0942f7f3264 100644 --- a/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/RestOperations/RulesEnginesRestOperations.cs +++ b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/RestOperations/RulesEnginesRestOperations.cs @@ -37,6 +37,21 @@ public RulesEnginesRestOperations(HttpPipeline pipeline, string applicationId, U _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByFrontDoorRequestUri(string subscriptionId, string resourceGroupName, string frontDoorName) + { + 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.Network/frontDoors/", false); + uri.AppendPath(frontDoorName, true); + uri.AppendPath("/rulesEngines", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByFrontDoorRequest(string subscriptionId, string resourceGroupName, string frontDoorName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByFrontDoor(string subscriptionId, st } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string frontDoorName, string rulesEngineName) + { + 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.Network/frontDoors/", false); + uri.AppendPath(frontDoorName, true); + uri.AppendPath("/rulesEngines/", false); + uri.AppendPath(rulesEngineName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string frontDoorName, string rulesEngineName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscriptionId, string reso } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string frontDoorName, string rulesEngineName, FrontDoorRulesEngineData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/frontDoors/", false); + uri.AppendPath(frontDoorName, true); + uri.AppendPath("/rulesEngines/", false); + uri.AppendPath(rulesEngineName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string frontDoorName, string rulesEngineName, FrontDoorRulesEngineData data) { var message = _pipeline.CreateMessage(); @@ -290,6 +337,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string frontDoorName, string rulesEngineName) + { + 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.Network/frontDoors/", false); + uri.AppendPath(frontDoorName, true); + uri.AppendPath("/rulesEngines/", false); + uri.AppendPath(rulesEngineName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string frontDoorName, string rulesEngineName) { var message = _pipeline.CreateMessage(); @@ -366,6 +429,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string f } } + internal RequestUriBuilder CreateListByFrontDoorNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string frontDoorName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByFrontDoorNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string frontDoorName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/LongRunningOperation/GrafanaArmOperation.cs b/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/LongRunningOperation/GrafanaArmOperation.cs index 1f0a616ed1b4..709d9554c1a6 100644 --- a/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/LongRunningOperation/GrafanaArmOperation.cs +++ b/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/LongRunningOperation/GrafanaArmOperation.cs @@ -20,21 +20,24 @@ internal class GrafanaArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of GrafanaArmOperation for mocking. protected GrafanaArmOperation() { } - internal GrafanaArmOperation(Response response) + internal GrafanaArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal GrafanaArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "GrafanaArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal GrafanaArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline p public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/LongRunningOperation/GrafanaArmOperationOfT.cs b/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/LongRunningOperation/GrafanaArmOperationOfT.cs index 2c26414aa03a..9bdb8b0f6875 100644 --- a/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/LongRunningOperation/GrafanaArmOperationOfT.cs +++ b/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/LongRunningOperation/GrafanaArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class GrafanaArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of GrafanaArmOperation for mocking. protected GrafanaArmOperation() { } - internal GrafanaArmOperation(Response response) + internal GrafanaArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal GrafanaArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "GrafanaArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal GrafanaArmOperation(IOperationSource source, ClientDiagnostics clien public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/Models/GrafanaPrivateEndpointConnectionResource.Serialization.cs b/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/Models/GrafanaPrivateEndpointConnectionResource.Serialization.cs new file mode 100644 index 000000000000..34727c1a5354 --- /dev/null +++ b/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/Models/GrafanaPrivateEndpointConnectionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Grafana +{ + public partial class GrafanaPrivateEndpointConnectionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + GrafanaPrivateEndpointConnectionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + GrafanaPrivateEndpointConnectionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/Models/GrafanaPrivateLinkResource.Serialization.cs b/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/Models/GrafanaPrivateLinkResource.Serialization.cs new file mode 100644 index 000000000000..3da916055285 --- /dev/null +++ b/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/Models/GrafanaPrivateLinkResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Grafana +{ + public partial class GrafanaPrivateLinkResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + GrafanaPrivateLinkResourceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + GrafanaPrivateLinkResourceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/Models/ManagedGrafanaResource.Serialization.cs b/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/Models/ManagedGrafanaResource.Serialization.cs new file mode 100644 index 000000000000..1f1dbc3ea0a5 --- /dev/null +++ b/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/Models/ManagedGrafanaResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Grafana +{ + public partial class ManagedGrafanaResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ManagedGrafanaData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ManagedGrafanaData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/Models/ManagedPrivateEndpointModelResource.Serialization.cs b/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/Models/ManagedPrivateEndpointModelResource.Serialization.cs new file mode 100644 index 000000000000..89807de7f9ba --- /dev/null +++ b/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/Models/ManagedPrivateEndpointModelResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Grafana +{ + public partial class ManagedPrivateEndpointModelResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ManagedPrivateEndpointModelData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ManagedPrivateEndpointModelData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/RestOperations/GrafanaRestOperations.cs b/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/RestOperations/GrafanaRestOperations.cs index a7c529c4bfb5..ba830595a094 100644 --- a/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/RestOperations/GrafanaRestOperations.cs +++ b/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/RestOperations/GrafanaRestOperations.cs @@ -37,6 +37,17 @@ public GrafanaRestOperations(HttpPipeline pipeline, string applicationId, Uri en _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Dashboard/grafana", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,19 @@ public Response List(string subscriptionId, Cancella } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.Dashboard/grafana", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -177,6 +201,20 @@ public Response ListByResourceGroup(string subscript } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workspaceName) + { + 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.Dashboard/grafana/", false); + uri.AppendPath(workspaceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); @@ -259,6 +297,20 @@ public Response Get(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, ManagedGrafanaData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Dashboard/grafana/", false); + uri.AppendPath(workspaceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string workspaceName, ManagedGrafanaData data) { var message = _pipeline.CreateMessage(); @@ -337,6 +389,20 @@ public Response Create(string subscriptionId, string resourceGroupName, string w } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, ManagedGrafanaPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Dashboard/grafana/", false); + uri.AppendPath(workspaceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, ManagedGrafanaPatch patch) { var message = _pipeline.CreateMessage(); @@ -425,6 +491,20 @@ public Response Update(string subscriptionId, string resourc } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string workspaceName) + { + 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.Dashboard/grafana/", false); + uri.AppendPath(workspaceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); @@ -497,6 +577,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string w } } + internal RequestUriBuilder CreateCheckEnterpriseDetailsRequestUri(string subscriptionId, string resourceGroupName, string workspaceName) + { + 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.Dashboard/grafana/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/checkEnterpriseDetails", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCheckEnterpriseDetailsRequest(string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); @@ -576,6 +671,21 @@ public Response CheckEnterpriseDetails(string subscriptionId, } } + internal RequestUriBuilder CreateFetchAvailablePluginsRequestUri(string subscriptionId, string resourceGroupName, string workspaceName) + { + 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.Dashboard/grafana/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/fetchAvailablePlugins", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateFetchAvailablePluginsRequest(string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); @@ -653,6 +763,14 @@ public Response FetchAvailablePlugins(string } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -721,6 +839,14 @@ public Response ListNextPage(string nextLink, string } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/RestOperations/ManagedPrivateEndpointsRestOperations.cs b/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/RestOperations/ManagedPrivateEndpointsRestOperations.cs index 005e19ea62e8..6dff61846cd9 100644 --- a/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/RestOperations/ManagedPrivateEndpointsRestOperations.cs +++ b/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/RestOperations/ManagedPrivateEndpointsRestOperations.cs @@ -37,6 +37,21 @@ public ManagedPrivateEndpointsRestOperations(HttpPipeline pipeline, string appli _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string workspaceName) + { + 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.Dashboard/grafana/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/managedPrivateEndpoints", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,21 @@ public Response List(string subscriptio } } + internal RequestUriBuilder CreateRefreshRequestUri(string subscriptionId, string resourceGroupName, string workspaceName) + { + 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.Dashboard/grafana/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/refreshManagedPrivateEndpoints", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRefreshRequest(string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); @@ -187,6 +217,22 @@ public Response Refresh(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string managedPrivateEndpointName) + { + 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.Dashboard/grafana/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/managedPrivateEndpoints/", false); + uri.AppendPath(managedPrivateEndpointName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName, string managedPrivateEndpointName) { var message = _pipeline.CreateMessage(); @@ -275,6 +321,22 @@ public Response Get(string subscriptionId, stri } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string managedPrivateEndpointName, ManagedPrivateEndpointModelData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Dashboard/grafana/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/managedPrivateEndpoints/", false); + uri.AppendPath(managedPrivateEndpointName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string managedPrivateEndpointName, ManagedPrivateEndpointModelData data) { var message = _pipeline.CreateMessage(); @@ -359,6 +421,22 @@ public Response Create(string subscriptionId, string resourceGroupName, string w } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string managedPrivateEndpointName, ManagedPrivateEndpointModelPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Dashboard/grafana/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/managedPrivateEndpoints/", false); + uri.AppendPath(managedPrivateEndpointName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string managedPrivateEndpointName, ManagedPrivateEndpointModelPatch patch) { var message = _pipeline.CreateMessage(); @@ -443,6 +521,22 @@ public Response Update(string subscriptionId, string resourceGroupName, string w } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string managedPrivateEndpointName) + { + 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.Dashboard/grafana/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/managedPrivateEndpoints/", false); + uri.AppendPath(managedPrivateEndpointName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string workspaceName, string managedPrivateEndpointName) { var message = _pipeline.CreateMessage(); @@ -521,6 +615,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string w } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs b/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs index 8364cbd0f4d9..93f9161ba413 100644 --- a/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs +++ b/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs @@ -37,6 +37,22 @@ public PrivateEndpointConnectionsRestOperations(HttpPipeline pipeline, string ap _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string privateEndpointConnectionName) + { + 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.Dashboard/grafana/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName, string privateEndpointConnectionName) { var message = _pipeline.CreateMessage(); @@ -125,6 +141,22 @@ public Response Get(string subscriptionId, } } + internal RequestUriBuilder CreateApproveRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string privateEndpointConnectionName, GrafanaPrivateEndpointConnectionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Dashboard/grafana/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateApproveRequest(string subscriptionId, string resourceGroupName, string workspaceName, string privateEndpointConnectionName, GrafanaPrivateEndpointConnectionData data) { var message = _pipeline.CreateMessage(); @@ -207,6 +239,22 @@ public Response Approve(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string privateEndpointConnectionName) + { + 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.Dashboard/grafana/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string workspaceName, string privateEndpointConnectionName) { var message = _pipeline.CreateMessage(); @@ -283,6 +331,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string w } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string workspaceName) + { + 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.Dashboard/grafana/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/privateEndpointConnections", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); @@ -362,6 +425,14 @@ public Response List(string subscrip } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs b/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs index 35a93dbe98b7..856c3758a9b9 100644 --- a/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs +++ b/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs @@ -37,6 +37,21 @@ public PrivateLinkResourcesRestOperations(HttpPipeline pipeline, string applicat _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string workspaceName) + { + 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.Dashboard/grafana/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/privateLinkResources", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response List(string subscriptionId } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string privateLinkResourceName) + { + 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.Dashboard/grafana/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/privateLinkResources/", false); + uri.AppendPath(privateLinkResourceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName, string privateLinkResourceName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,14 @@ public Response Get(string subscriptionId, strin } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/graphservices/Azure.ResourceManager.GraphServices/src/Generated/GraphServicesAccountResource.cs b/sdk/graphservices/Azure.ResourceManager.GraphServices/src/Generated/GraphServicesAccountResource.cs index 126125fb6c77..bc83b8d34c3a 100644 --- a/sdk/graphservices/Azure.ResourceManager.GraphServices/src/Generated/GraphServicesAccountResource.cs +++ b/sdk/graphservices/Azure.ResourceManager.GraphServices/src/Generated/GraphServicesAccountResource.cs @@ -202,7 +202,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _graphServicesAccountResourceAccountsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new GraphServicesArmOperation(response); + var uri = _graphServicesAccountResourceAccountsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new GraphServicesArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -244,7 +246,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _graphServicesAccountResourceAccountsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); - var operation = new GraphServicesArmOperation(response); + var uri = _graphServicesAccountResourceAccountsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new GraphServicesArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/graphservices/Azure.ResourceManager.GraphServices/src/Generated/LongRunningOperation/GraphServicesArmOperation.cs b/sdk/graphservices/Azure.ResourceManager.GraphServices/src/Generated/LongRunningOperation/GraphServicesArmOperation.cs index 170931d7e2ae..972ddbf0ce0c 100644 --- a/sdk/graphservices/Azure.ResourceManager.GraphServices/src/Generated/LongRunningOperation/GraphServicesArmOperation.cs +++ b/sdk/graphservices/Azure.ResourceManager.GraphServices/src/Generated/LongRunningOperation/GraphServicesArmOperation.cs @@ -20,21 +20,24 @@ internal class GraphServicesArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of GraphServicesArmOperation for mocking. protected GraphServicesArmOperation() { } - internal GraphServicesArmOperation(Response response) + internal GraphServicesArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal GraphServicesArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "GraphServicesArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal GraphServicesArmOperation(ClientDiagnostics clientDiagnostics, HttpPipe public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/graphservices/Azure.ResourceManager.GraphServices/src/Generated/LongRunningOperation/GraphServicesArmOperationOfT.cs b/sdk/graphservices/Azure.ResourceManager.GraphServices/src/Generated/LongRunningOperation/GraphServicesArmOperationOfT.cs index 4676aece6ed7..5b7592aa78d5 100644 --- a/sdk/graphservices/Azure.ResourceManager.GraphServices/src/Generated/LongRunningOperation/GraphServicesArmOperationOfT.cs +++ b/sdk/graphservices/Azure.ResourceManager.GraphServices/src/Generated/LongRunningOperation/GraphServicesArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class GraphServicesArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of GraphServicesArmOperation for mocking. protected GraphServicesArmOperation() { } - internal GraphServicesArmOperation(Response response) + internal GraphServicesArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal GraphServicesArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "GraphServicesArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal GraphServicesArmOperation(IOperationSource source, ClientDiagnostics public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/graphservices/Azure.ResourceManager.GraphServices/src/Generated/Models/GraphServicesAccountResource.Serialization.cs b/sdk/graphservices/Azure.ResourceManager.GraphServices/src/Generated/Models/GraphServicesAccountResource.Serialization.cs new file mode 100644 index 000000000000..fff801fd77e0 --- /dev/null +++ b/sdk/graphservices/Azure.ResourceManager.GraphServices/src/Generated/Models/GraphServicesAccountResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.GraphServices +{ + public partial class GraphServicesAccountResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + GraphServicesAccountResourceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + GraphServicesAccountResourceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/graphservices/Azure.ResourceManager.GraphServices/src/Generated/RestOperations/AccountsRestOperations.cs b/sdk/graphservices/Azure.ResourceManager.GraphServices/src/Generated/RestOperations/AccountsRestOperations.cs index b04f43c306a2..889853e10088 100644 --- a/sdk/graphservices/Azure.ResourceManager.GraphServices/src/Generated/RestOperations/AccountsRestOperations.cs +++ b/sdk/graphservices/Azure.ResourceManager.GraphServices/src/Generated/RestOperations/AccountsRestOperations.cs @@ -37,6 +37,19 @@ public AccountsRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.GraphServices/accounts", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -110,6 +123,17 @@ public Response ListByResourceGroup(string sub } } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.GraphServices/accounts", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -177,6 +201,20 @@ public Response ListBySubscription(string subs } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string resourceName) + { + 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.GraphServices/accounts/", false); + uri.AppendPath(resourceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); @@ -259,6 +297,20 @@ public Response Get(string subscriptionId, str } } + internal RequestUriBuilder CreateCreateAndUpdateRequestUri(string subscriptionId, string resourceGroupName, string resourceName, GraphServicesAccountResourceData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.GraphServices/accounts/", false); + uri.AppendPath(resourceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateAndUpdateRequest(string subscriptionId, string resourceGroupName, string resourceName, GraphServicesAccountResourceData data) { var message = _pipeline.CreateMessage(); @@ -337,6 +389,20 @@ public Response CreateAndUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string resourceName, GraphServicesAccountResourcePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.GraphServices/accounts/", false); + uri.AppendPath(resourceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string resourceName, GraphServicesAccountResourcePatch patch) { var message = _pipeline.CreateMessage(); @@ -423,6 +489,20 @@ public Response Update(string subscriptionId, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string resourceName) + { + 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.GraphServices/accounts/", false); + uri.AppendPath(resourceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); @@ -493,6 +573,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -565,6 +653,14 @@ public Response ListByResourceGroupNextPage(st } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration/src/Generated/GuestConfigurationHcrpAssignmentCollection.cs b/sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration/src/Generated/GuestConfigurationHcrpAssignmentCollection.cs index dbd29e978145..262160ddacca 100644 --- a/sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration/src/Generated/GuestConfigurationHcrpAssignmentCollection.cs +++ b/sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration/src/Generated/GuestConfigurationHcrpAssignmentCollection.cs @@ -90,7 +90,9 @@ public virtual async Task try { var response = await _guestConfigurationHcrpAssignmentGuestConfigurationHcrpAssignmentsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, guestConfigurationAssignmentName, data, cancellationToken).ConfigureAwait(false); - var operation = new GuestConfigurationArmOperation(Response.FromValue(new GuestConfigurationHcrpAssignmentResource(Client, response), response.GetRawResponse())); + var uri = _guestConfigurationHcrpAssignmentGuestConfigurationHcrpAssignmentsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, guestConfigurationAssignmentName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new GuestConfigurationArmOperation(Response.FromValue(new GuestConfigurationHcrpAssignmentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUp try { var response = _guestConfigurationHcrpAssignmentGuestConfigurationHcrpAssignmentsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, guestConfigurationAssignmentName, data, cancellationToken); - var operation = new GuestConfigurationArmOperation(Response.FromValue(new GuestConfigurationHcrpAssignmentResource(Client, response), response.GetRawResponse())); + var uri = _guestConfigurationHcrpAssignmentGuestConfigurationHcrpAssignmentsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, guestConfigurationAssignmentName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new GuestConfigurationArmOperation(Response.FromValue(new GuestConfigurationHcrpAssignmentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration/src/Generated/GuestConfigurationHcrpAssignmentResource.cs b/sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration/src/Generated/GuestConfigurationHcrpAssignmentResource.cs index 617f67768e08..084c9f34df15 100644 --- a/sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration/src/Generated/GuestConfigurationHcrpAssignmentResource.cs +++ b/sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration/src/Generated/GuestConfigurationHcrpAssignmentResource.cs @@ -206,7 +206,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _guestConfigurationHcrpAssignmentGuestConfigurationHcrpAssignmentsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new GuestConfigurationArmOperation(response); + var uri = _guestConfigurationHcrpAssignmentGuestConfigurationHcrpAssignmentsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new GuestConfigurationArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -248,7 +250,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _guestConfigurationHcrpAssignmentGuestConfigurationHcrpAssignmentsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new GuestConfigurationArmOperation(response); + var uri = _guestConfigurationHcrpAssignmentGuestConfigurationHcrpAssignmentsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new GuestConfigurationArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -294,7 +298,9 @@ public virtual async Task try { var response = await _guestConfigurationHcrpAssignmentGuestConfigurationHcrpAssignmentsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new GuestConfigurationArmOperation(Response.FromValue(new GuestConfigurationHcrpAssignmentResource(Client, response), response.GetRawResponse())); + var uri = _guestConfigurationHcrpAssignmentGuestConfigurationHcrpAssignmentsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new GuestConfigurationArmOperation(Response.FromValue(new GuestConfigurationHcrpAssignmentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -340,7 +346,9 @@ public virtual ArmOperation Update(Wai try { var response = _guestConfigurationHcrpAssignmentGuestConfigurationHcrpAssignmentsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new GuestConfigurationArmOperation(Response.FromValue(new GuestConfigurationHcrpAssignmentResource(Client, response), response.GetRawResponse())); + var uri = _guestConfigurationHcrpAssignmentGuestConfigurationHcrpAssignmentsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new GuestConfigurationArmOperation(Response.FromValue(new GuestConfigurationHcrpAssignmentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration/src/Generated/GuestConfigurationVmAssignmentCollection.cs b/sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration/src/Generated/GuestConfigurationVmAssignmentCollection.cs index 9ce55bbb095a..091754cb5e51 100644 --- a/sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration/src/Generated/GuestConfigurationVmAssignmentCollection.cs +++ b/sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration/src/Generated/GuestConfigurationVmAssignmentCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> try { var response = await _guestConfigurationVmAssignmentGuestConfigurationAssignmentsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, guestConfigurationAssignmentName, data, cancellationToken).ConfigureAwait(false); - var operation = new GuestConfigurationArmOperation(Response.FromValue(new GuestConfigurationVmAssignmentResource(Client, response), response.GetRawResponse())); + var uri = _guestConfigurationVmAssignmentGuestConfigurationAssignmentsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, guestConfigurationAssignmentName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new GuestConfigurationArmOperation(Response.FromValue(new GuestConfigurationVmAssignmentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpda try { var response = _guestConfigurationVmAssignmentGuestConfigurationAssignmentsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, guestConfigurationAssignmentName, data, cancellationToken); - var operation = new GuestConfigurationArmOperation(Response.FromValue(new GuestConfigurationVmAssignmentResource(Client, response), response.GetRawResponse())); + var uri = _guestConfigurationVmAssignmentGuestConfigurationAssignmentsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, guestConfigurationAssignmentName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new GuestConfigurationArmOperation(Response.FromValue(new GuestConfigurationVmAssignmentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration/src/Generated/GuestConfigurationVmAssignmentResource.cs b/sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration/src/Generated/GuestConfigurationVmAssignmentResource.cs index 5a65e456bef4..8a4102626ca3 100644 --- a/sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration/src/Generated/GuestConfigurationVmAssignmentResource.cs +++ b/sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration/src/Generated/GuestConfigurationVmAssignmentResource.cs @@ -206,7 +206,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _guestConfigurationVmAssignmentGuestConfigurationAssignmentsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new GuestConfigurationArmOperation(response); + var uri = _guestConfigurationVmAssignmentGuestConfigurationAssignmentsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new GuestConfigurationArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -248,7 +250,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _guestConfigurationVmAssignmentGuestConfigurationAssignmentsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new GuestConfigurationArmOperation(response); + var uri = _guestConfigurationVmAssignmentGuestConfigurationAssignmentsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new GuestConfigurationArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -294,7 +298,9 @@ public virtual async Task> try { var response = await _guestConfigurationVmAssignmentGuestConfigurationAssignmentsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new GuestConfigurationArmOperation(Response.FromValue(new GuestConfigurationVmAssignmentResource(Client, response), response.GetRawResponse())); + var uri = _guestConfigurationVmAssignmentGuestConfigurationAssignmentsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new GuestConfigurationArmOperation(Response.FromValue(new GuestConfigurationVmAssignmentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -340,7 +346,9 @@ public virtual ArmOperation Update(WaitU try { var response = _guestConfigurationVmAssignmentGuestConfigurationAssignmentsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new GuestConfigurationArmOperation(Response.FromValue(new GuestConfigurationVmAssignmentResource(Client, response), response.GetRawResponse())); + var uri = _guestConfigurationVmAssignmentGuestConfigurationAssignmentsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new GuestConfigurationArmOperation(Response.FromValue(new GuestConfigurationVmAssignmentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration/src/Generated/GuestConfigurationVmssAssignmentResource.cs b/sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration/src/Generated/GuestConfigurationVmssAssignmentResource.cs index e6b9bc6eb967..e8a2e7cd0fd3 100644 --- a/sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration/src/Generated/GuestConfigurationVmssAssignmentResource.cs +++ b/sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration/src/Generated/GuestConfigurationVmssAssignmentResource.cs @@ -206,7 +206,9 @@ public virtual async Task try { var response = await _guestConfigurationVmssAssignmentGuestConfigurationAssignmentsVmSSRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new GuestConfigurationArmOperation(Response.FromValue(new GuestConfigurationVmssAssignmentResource(Client, response), response.GetRawResponse())); + var uri = _guestConfigurationVmssAssignmentGuestConfigurationAssignmentsVmSSRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new GuestConfigurationArmOperation(Response.FromValue(new GuestConfigurationVmssAssignmentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -248,7 +250,9 @@ public virtual ArmOperation Delete(Wai try { var response = _guestConfigurationVmssAssignmentGuestConfigurationAssignmentsVmSSRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new GuestConfigurationArmOperation(Response.FromValue(new GuestConfigurationVmssAssignmentResource(Client, response), response.GetRawResponse())); + var uri = _guestConfigurationVmssAssignmentGuestConfigurationAssignmentsVmSSRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new GuestConfigurationArmOperation(Response.FromValue(new GuestConfigurationVmssAssignmentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration/src/Generated/LongRunningOperation/GuestConfigurationArmOperation.cs b/sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration/src/Generated/LongRunningOperation/GuestConfigurationArmOperation.cs index e511d02bcefb..f5930f4aa0c0 100644 --- a/sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration/src/Generated/LongRunningOperation/GuestConfigurationArmOperation.cs +++ b/sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration/src/Generated/LongRunningOperation/GuestConfigurationArmOperation.cs @@ -20,21 +20,24 @@ internal class GuestConfigurationArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of GuestConfigurationArmOperation for mocking. protected GuestConfigurationArmOperation() { } - internal GuestConfigurationArmOperation(Response response) + internal GuestConfigurationArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal GuestConfigurationArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "GuestConfigurationArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal GuestConfigurationArmOperation(ClientDiagnostics clientDiagnostics, Htt public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration/src/Generated/LongRunningOperation/GuestConfigurationArmOperationOfT.cs b/sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration/src/Generated/LongRunningOperation/GuestConfigurationArmOperationOfT.cs index 192d3e1f8b9f..abb959f5bcb9 100644 --- a/sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration/src/Generated/LongRunningOperation/GuestConfigurationArmOperationOfT.cs +++ b/sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration/src/Generated/LongRunningOperation/GuestConfigurationArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class GuestConfigurationArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of GuestConfigurationArmOperation for mocking. protected GuestConfigurationArmOperation() { } - internal GuestConfigurationArmOperation(Response response) + internal GuestConfigurationArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal GuestConfigurationArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "GuestConfigurationArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal GuestConfigurationArmOperation(IOperationSource source, ClientDiagno public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration/src/Generated/Models/GuestConfigurationHcrpAssignmentResource.Serialization.cs b/sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration/src/Generated/Models/GuestConfigurationHcrpAssignmentResource.Serialization.cs new file mode 100644 index 000000000000..15a25c7bdab4 --- /dev/null +++ b/sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration/src/Generated/Models/GuestConfigurationHcrpAssignmentResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.GuestConfiguration +{ + public partial class GuestConfigurationHcrpAssignmentResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + GuestConfigurationAssignmentData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + GuestConfigurationAssignmentData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration/src/Generated/Models/GuestConfigurationVmAssignmentResource.Serialization.cs b/sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration/src/Generated/Models/GuestConfigurationVmAssignmentResource.Serialization.cs new file mode 100644 index 000000000000..15c850ffb2cf --- /dev/null +++ b/sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration/src/Generated/Models/GuestConfigurationVmAssignmentResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.GuestConfiguration +{ + public partial class GuestConfigurationVmAssignmentResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + GuestConfigurationAssignmentData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + GuestConfigurationAssignmentData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration/src/Generated/Models/GuestConfigurationVmssAssignmentResource.Serialization.cs b/sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration/src/Generated/Models/GuestConfigurationVmssAssignmentResource.Serialization.cs new file mode 100644 index 000000000000..1805a6ca5f85 --- /dev/null +++ b/sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration/src/Generated/Models/GuestConfigurationVmssAssignmentResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.GuestConfiguration +{ + public partial class GuestConfigurationVmssAssignmentResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + GuestConfigurationAssignmentData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + GuestConfigurationAssignmentData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration/src/Generated/RestOperations/GuestConfigurationAssignmentReportsRestOperations.cs b/sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration/src/Generated/RestOperations/GuestConfigurationAssignmentReportsRestOperations.cs index 08424d250f6b..a621ce38bc72 100644 --- a/sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration/src/Generated/RestOperations/GuestConfigurationAssignmentReportsRestOperations.cs +++ b/sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration/src/Generated/RestOperations/GuestConfigurationAssignmentReportsRestOperations.cs @@ -37,6 +37,23 @@ public GuestConfigurationAssignmentReportsRestOperations(HttpPipeline pipeline, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string vmName, string guestConfigurationAssignmentName) + { + 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.Compute/virtualMachines/", false); + uri.AppendPath(vmName, true); + uri.AppendPath("/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/", false); + uri.AppendPath(guestConfigurationAssignmentName, true); + uri.AppendPath("/reports", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string vmName, string guestConfigurationAssignmentName) { var message = _pipeline.CreateMessage(); @@ -122,6 +139,24 @@ public Response List(string subscription } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string vmName, string guestConfigurationAssignmentName, string reportId) + { + 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.Compute/virtualMachines/", false); + uri.AppendPath(vmName, true); + uri.AppendPath("/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/", false); + uri.AppendPath(guestConfigurationAssignmentName, true); + uri.AppendPath("/reports/", false); + uri.AppendPath(reportId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string vmName, string guestConfigurationAssignmentName, string reportId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration/src/Generated/RestOperations/GuestConfigurationAssignmentReportsVmssRestOperations.cs b/sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration/src/Generated/RestOperations/GuestConfigurationAssignmentReportsVmssRestOperations.cs index bd961c8baf9f..4873ce645339 100644 --- a/sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration/src/Generated/RestOperations/GuestConfigurationAssignmentReportsVmssRestOperations.cs +++ b/sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration/src/Generated/RestOperations/GuestConfigurationAssignmentReportsVmssRestOperations.cs @@ -37,6 +37,23 @@ public GuestConfigurationAssignmentReportsVmssRestOperations(HttpPipeline pipeli _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string vmssName, string name) + { + 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.Compute/virtualMachineScaleSets/", false); + uri.AppendPath(vmssName, true); + uri.AppendPath("/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/", false); + uri.AppendPath(name, true); + uri.AppendPath("/reports", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string vmssName, string name) { var message = _pipeline.CreateMessage(); @@ -122,6 +139,24 @@ public Response List(string subscription } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string vmssName, string name, string id) + { + 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.Compute/virtualMachineScaleSets/", false); + uri.AppendPath(vmssName, true); + uri.AppendPath("/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/", false); + uri.AppendPath(name, true); + uri.AppendPath("/reports/", false); + uri.AppendPath(id, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string vmssName, string name, string id) { var message = _pipeline.CreateMessage(); diff --git a/sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration/src/Generated/RestOperations/GuestConfigurationAssignmentsRestOperations.cs b/sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration/src/Generated/RestOperations/GuestConfigurationAssignmentsRestOperations.cs index 39cab04b9f12..69fc31d1fe8d 100644 --- a/sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration/src/Generated/RestOperations/GuestConfigurationAssignmentsRestOperations.cs +++ b/sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration/src/Generated/RestOperations/GuestConfigurationAssignmentsRestOperations.cs @@ -37,6 +37,22 @@ public GuestConfigurationAssignmentsRestOperations(HttpPipeline pipeline, string _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string vmName, string guestConfigurationAssignmentName, GuestConfigurationAssignmentData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Compute/virtualMachines/", false); + uri.AppendPath(vmName, true); + uri.AppendPath("/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/", false); + uri.AppendPath(guestConfigurationAssignmentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string vmName, string guestConfigurationAssignmentName, GuestConfigurationAssignmentData data) { var message = _pipeline.CreateMessage(); @@ -131,6 +147,22 @@ public Response CreateOrUpdate(string subscrip } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string vmName, string guestConfigurationAssignmentName) + { + 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.Compute/virtualMachines/", false); + uri.AppendPath(vmName, true); + uri.AppendPath("/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/", false); + uri.AppendPath(guestConfigurationAssignmentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string vmName, string guestConfigurationAssignmentName) { var message = _pipeline.CreateMessage(); @@ -219,6 +251,22 @@ public Response Get(string subscriptionId, str } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string vmName, string guestConfigurationAssignmentName) + { + 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.Compute/virtualMachines/", false); + uri.AppendPath(vmName, true); + uri.AppendPath("/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/", false); + uri.AppendPath(guestConfigurationAssignmentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string vmName, string guestConfigurationAssignmentName) { var message = _pipeline.CreateMessage(); @@ -293,6 +341,17 @@ public Response Delete(string subscriptionId, string resourceGroupName, string v } } + internal RequestUriBuilder CreateSubscriptionListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateSubscriptionListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -364,6 +423,19 @@ public Response SubscriptionList(string subscr } } + internal RequestUriBuilder CreateRGListRequestUri(string subscriptionId, string resourceGroupName) + { + 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.GuestConfiguration/guestConfigurationAssignments", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRGListRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -441,6 +513,21 @@ public Response RGList(string subscriptionId, } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string vmName) + { + 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.Compute/virtualMachines/", false); + uri.AppendPath(vmName, true); + uri.AppendPath("/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string vmName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration/src/Generated/RestOperations/GuestConfigurationAssignmentsVmssRestOperations.cs b/sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration/src/Generated/RestOperations/GuestConfigurationAssignmentsVmssRestOperations.cs index 313db1506ed0..0d4708ae2073 100644 --- a/sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration/src/Generated/RestOperations/GuestConfigurationAssignmentsVmssRestOperations.cs +++ b/sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration/src/Generated/RestOperations/GuestConfigurationAssignmentsVmssRestOperations.cs @@ -37,6 +37,22 @@ public GuestConfigurationAssignmentsVmssRestOperations(HttpPipeline pipeline, st _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string vmssName, string name) + { + 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.Compute/virtualMachineScaleSets/", false); + uri.AppendPath(vmssName, true); + uri.AppendPath("/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string vmssName, string name) { var message = _pipeline.CreateMessage(); @@ -125,6 +141,22 @@ public Response Get(string subscriptionId, str } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string vmssName, string name) + { + 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.Compute/virtualMachineScaleSets/", false); + uri.AppendPath(vmssName, true); + uri.AppendPath("/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string vmssName, string name) { var message = _pipeline.CreateMessage(); @@ -213,6 +245,21 @@ public Response Delete(string subscriptionId, } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string vmssName) + { + 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.Compute/virtualMachineScaleSets/", false); + uri.AppendPath(vmssName, true); + uri.AppendPath("/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string vmssName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration/src/Generated/RestOperations/GuestConfigurationHcrpAssignmentReportsRestOperations.cs b/sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration/src/Generated/RestOperations/GuestConfigurationHcrpAssignmentReportsRestOperations.cs index feda20b2ab6f..97a3e97610ae 100644 --- a/sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration/src/Generated/RestOperations/GuestConfigurationHcrpAssignmentReportsRestOperations.cs +++ b/sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration/src/Generated/RestOperations/GuestConfigurationHcrpAssignmentReportsRestOperations.cs @@ -37,6 +37,23 @@ public GuestConfigurationHcrpAssignmentReportsRestOperations(HttpPipeline pipeli _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string machineName, string guestConfigurationAssignmentName) + { + 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.HybridCompute/machines/", false); + uri.AppendPath(machineName, true); + uri.AppendPath("/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/", false); + uri.AppendPath(guestConfigurationAssignmentName, true); + uri.AppendPath("/reports", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string machineName, string guestConfigurationAssignmentName) { var message = _pipeline.CreateMessage(); @@ -122,6 +139,24 @@ public Response List(string subscription } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string machineName, string guestConfigurationAssignmentName, string reportId) + { + 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.HybridCompute/machines/", false); + uri.AppendPath(machineName, true); + uri.AppendPath("/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/", false); + uri.AppendPath(guestConfigurationAssignmentName, true); + uri.AppendPath("/reports/", false); + uri.AppendPath(reportId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string machineName, string guestConfigurationAssignmentName, string reportId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration/src/Generated/RestOperations/GuestConfigurationHcrpAssignmentsRestOperations.cs b/sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration/src/Generated/RestOperations/GuestConfigurationHcrpAssignmentsRestOperations.cs index 48691a9d7472..5c1c9d2faeea 100644 --- a/sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration/src/Generated/RestOperations/GuestConfigurationHcrpAssignmentsRestOperations.cs +++ b/sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration/src/Generated/RestOperations/GuestConfigurationHcrpAssignmentsRestOperations.cs @@ -37,6 +37,22 @@ public GuestConfigurationHcrpAssignmentsRestOperations(HttpPipeline pipeline, st _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string machineName, string guestConfigurationAssignmentName, GuestConfigurationAssignmentData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.HybridCompute/machines/", false); + uri.AppendPath(machineName, true); + uri.AppendPath("/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/", false); + uri.AppendPath(guestConfigurationAssignmentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string machineName, string guestConfigurationAssignmentName, GuestConfigurationAssignmentData data) { var message = _pipeline.CreateMessage(); @@ -131,6 +147,22 @@ public Response CreateOrUpdate(string subscrip } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string machineName, string guestConfigurationAssignmentName) + { + 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.HybridCompute/machines/", false); + uri.AppendPath(machineName, true); + uri.AppendPath("/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/", false); + uri.AppendPath(guestConfigurationAssignmentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string machineName, string guestConfigurationAssignmentName) { var message = _pipeline.CreateMessage(); @@ -219,6 +251,22 @@ public Response Get(string subscriptionId, str } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string machineName, string guestConfigurationAssignmentName) + { + 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.HybridCompute/machines/", false); + uri.AppendPath(machineName, true); + uri.AppendPath("/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/", false); + uri.AppendPath(guestConfigurationAssignmentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string machineName, string guestConfigurationAssignmentName) { var message = _pipeline.CreateMessage(); @@ -293,6 +341,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string m } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string machineName) + { + 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.HybridCompute/machines/", false); + uri.AppendPath(machineName, true); + uri.AppendPath("/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string machineName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/hdinsight/Azure.ResourceManager.HDInsight.Containers/src/Generated/LongRunningOperation/ContainersArmOperation.cs b/sdk/hdinsight/Azure.ResourceManager.HDInsight.Containers/src/Generated/LongRunningOperation/ContainersArmOperation.cs index de1b360cb501..c27e1299bd95 100644 --- a/sdk/hdinsight/Azure.ResourceManager.HDInsight.Containers/src/Generated/LongRunningOperation/ContainersArmOperation.cs +++ b/sdk/hdinsight/Azure.ResourceManager.HDInsight.Containers/src/Generated/LongRunningOperation/ContainersArmOperation.cs @@ -20,21 +20,24 @@ internal class ContainersArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of ContainersArmOperation for mocking. protected ContainersArmOperation() { } - internal ContainersArmOperation(Response response) + internal ContainersArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal ContainersArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "ContainersArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal ContainersArmOperation(ClientDiagnostics clientDiagnostics, HttpPipelin public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/hdinsight/Azure.ResourceManager.HDInsight.Containers/src/Generated/LongRunningOperation/ContainersArmOperationOfT.cs b/sdk/hdinsight/Azure.ResourceManager.HDInsight.Containers/src/Generated/LongRunningOperation/ContainersArmOperationOfT.cs index 8ae0c38ba35c..64a115d8fc24 100644 --- a/sdk/hdinsight/Azure.ResourceManager.HDInsight.Containers/src/Generated/LongRunningOperation/ContainersArmOperationOfT.cs +++ b/sdk/hdinsight/Azure.ResourceManager.HDInsight.Containers/src/Generated/LongRunningOperation/ContainersArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class ContainersArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of ContainersArmOperation for mocking. protected ContainersArmOperation() { } - internal ContainersArmOperation(Response response) + internal ContainersArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal ContainersArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "ContainersArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal ContainersArmOperation(IOperationSource source, ClientDiagnostics cl public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/hdinsight/Azure.ResourceManager.HDInsight.Containers/src/Generated/Models/HDInsightClusterPoolResource.Serialization.cs b/sdk/hdinsight/Azure.ResourceManager.HDInsight.Containers/src/Generated/Models/HDInsightClusterPoolResource.Serialization.cs new file mode 100644 index 000000000000..3557f2f52e0b --- /dev/null +++ b/sdk/hdinsight/Azure.ResourceManager.HDInsight.Containers/src/Generated/Models/HDInsightClusterPoolResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.HDInsight.Containers +{ + public partial class HDInsightClusterPoolResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + HDInsightClusterPoolData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + HDInsightClusterPoolData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/hdinsight/Azure.ResourceManager.HDInsight.Containers/src/Generated/Models/HDInsightClusterResource.Serialization.cs b/sdk/hdinsight/Azure.ResourceManager.HDInsight.Containers/src/Generated/Models/HDInsightClusterResource.Serialization.cs new file mode 100644 index 000000000000..e162a119c099 --- /dev/null +++ b/sdk/hdinsight/Azure.ResourceManager.HDInsight.Containers/src/Generated/Models/HDInsightClusterResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.HDInsight.Containers +{ + public partial class HDInsightClusterResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + HDInsightClusterData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + HDInsightClusterData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/hdinsight/Azure.ResourceManager.HDInsight.Containers/src/Generated/RestOperations/AvailableClusterPoolVersionsRestOperations.cs b/sdk/hdinsight/Azure.ResourceManager.HDInsight.Containers/src/Generated/RestOperations/AvailableClusterPoolVersionsRestOperations.cs index f8011df0b75b..fe56673ec243 100644 --- a/sdk/hdinsight/Azure.ResourceManager.HDInsight.Containers/src/Generated/RestOperations/AvailableClusterPoolVersionsRestOperations.cs +++ b/sdk/hdinsight/Azure.ResourceManager.HDInsight.Containers/src/Generated/RestOperations/AvailableClusterPoolVersionsRestOperations.cs @@ -37,6 +37,19 @@ public AvailableClusterPoolVersionsRestOperations(HttpPipeline pipeline, string _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByLocationRequestUri(string subscriptionId, AzureLocation location) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.HDInsight/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/availableClusterPoolVersions", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByLocationRequest(string subscriptionId, AzureLocation location) { var message = _pipeline.CreateMessage(); @@ -108,6 +121,14 @@ public Response ListByLocation(string subscription } } + internal RequestUriBuilder CreateListByLocationNextPageRequestUri(string nextLink, string subscriptionId, AzureLocation location) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByLocationNextPageRequest(string nextLink, string subscriptionId, AzureLocation location) { var message = _pipeline.CreateMessage(); diff --git a/sdk/hdinsight/Azure.ResourceManager.HDInsight.Containers/src/Generated/RestOperations/AvailableClusterVersionsRestOperations.cs b/sdk/hdinsight/Azure.ResourceManager.HDInsight.Containers/src/Generated/RestOperations/AvailableClusterVersionsRestOperations.cs index 98a52bb0db21..a09986a06a0d 100644 --- a/sdk/hdinsight/Azure.ResourceManager.HDInsight.Containers/src/Generated/RestOperations/AvailableClusterVersionsRestOperations.cs +++ b/sdk/hdinsight/Azure.ResourceManager.HDInsight.Containers/src/Generated/RestOperations/AvailableClusterVersionsRestOperations.cs @@ -37,6 +37,19 @@ public AvailableClusterVersionsRestOperations(HttpPipeline pipeline, string appl _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByLocationRequestUri(string subscriptionId, AzureLocation location) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.HDInsight/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/availableClusterVersions", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByLocationRequest(string subscriptionId, AzureLocation location) { var message = _pipeline.CreateMessage(); @@ -108,6 +121,14 @@ public Response ListByLocation(string subscri } } + internal RequestUriBuilder CreateListByLocationNextPageRequestUri(string nextLink, string subscriptionId, AzureLocation location) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByLocationNextPageRequest(string nextLink, string subscriptionId, AzureLocation location) { var message = _pipeline.CreateMessage(); diff --git a/sdk/hdinsight/Azure.ResourceManager.HDInsight.Containers/src/Generated/RestOperations/ClusterJobsRestOperations.cs b/sdk/hdinsight/Azure.ResourceManager.HDInsight.Containers/src/Generated/RestOperations/ClusterJobsRestOperations.cs index 717f32812270..3fc4ea7823b6 100644 --- a/sdk/hdinsight/Azure.ResourceManager.HDInsight.Containers/src/Generated/RestOperations/ClusterJobsRestOperations.cs +++ b/sdk/hdinsight/Azure.ResourceManager.HDInsight.Containers/src/Generated/RestOperations/ClusterJobsRestOperations.cs @@ -37,6 +37,23 @@ public ClusterJobsRestOperations(HttpPipeline pipeline, string applicationId, Ur _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateRunJobRequestUri(string subscriptionId, string resourceGroupName, string clusterPoolName, string clusterName, ClusterJob clusterJob) + { + 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.HDInsight/clusterpools/", false); + uri.AppendPath(clusterPoolName, true); + uri.AppendPath("/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/runJob", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRunJobRequest(string subscriptionId, string resourceGroupName, string clusterPoolName, string clusterName, ClusterJob clusterJob) { var message = _pipeline.CreateMessage(); @@ -122,6 +139,23 @@ public Response RunJob(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string clusterPoolName, string clusterName) + { + 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.HDInsight/clusterpools/", false); + uri.AppendPath(clusterPoolName, true); + uri.AppendPath("/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/jobs", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string clusterPoolName, string clusterName) { var message = _pipeline.CreateMessage(); @@ -207,6 +241,14 @@ public Response List(string subscriptionId, string resourc } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string clusterPoolName, string clusterName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string clusterPoolName, string clusterName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/hdinsight/Azure.ResourceManager.HDInsight.Containers/src/Generated/RestOperations/ClusterPoolsRestOperations.cs b/sdk/hdinsight/Azure.ResourceManager.HDInsight.Containers/src/Generated/RestOperations/ClusterPoolsRestOperations.cs index e3d4e915559c..dcd1ecf15674 100644 --- a/sdk/hdinsight/Azure.ResourceManager.HDInsight.Containers/src/Generated/RestOperations/ClusterPoolsRestOperations.cs +++ b/sdk/hdinsight/Azure.ResourceManager.HDInsight.Containers/src/Generated/RestOperations/ClusterPoolsRestOperations.cs @@ -37,6 +37,20 @@ public ClusterPoolsRestOperations(HttpPipeline pipeline, string applicationId, U _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string clusterPoolName) + { + 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.HDInsight/clusterpools/", false); + uri.AppendPath(clusterPoolName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string clusterPoolName) { var message = _pipeline.CreateMessage(); @@ -119,6 +133,20 @@ public Response Get(string subscriptionId, string reso } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string clusterPoolName, HDInsightClusterPoolData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.HDInsight/clusterpools/", false); + uri.AppendPath(clusterPoolName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string clusterPoolName, HDInsightClusterPoolData data) { var message = _pipeline.CreateMessage(); @@ -197,6 +225,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateTagsRequestUri(string subscriptionId, string resourceGroupName, string clusterPoolName, HDInsightClusterPoolPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.HDInsight/clusterpools/", false); + uri.AppendPath(clusterPoolName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateTagsRequest(string subscriptionId, string resourceGroupName, string clusterPoolName, HDInsightClusterPoolPatch patch) { var message = _pipeline.CreateMessage(); @@ -275,6 +317,20 @@ public Response UpdateTags(string subscriptionId, string resourceGroupName, stri } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string clusterPoolName) + { + 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.HDInsight/clusterpools/", false); + uri.AppendPath(clusterPoolName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string clusterPoolName) { var message = _pipeline.CreateMessage(); @@ -347,6 +403,17 @@ public Response Delete(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.HDInsight/clusterpools", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -414,6 +481,19 @@ public Response ListBySubscription(string subscrip } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.HDInsight/clusterpools", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -487,6 +567,14 @@ public Response ListByResourceGroup(string subscri } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -555,6 +643,14 @@ public Response ListBySubscriptionNextPage(string } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/hdinsight/Azure.ResourceManager.HDInsight.Containers/src/Generated/RestOperations/ClustersRestOperations.cs b/sdk/hdinsight/Azure.ResourceManager.HDInsight.Containers/src/Generated/RestOperations/ClustersRestOperations.cs index a8829cb9a867..f0e4391703c5 100644 --- a/sdk/hdinsight/Azure.ResourceManager.HDInsight.Containers/src/Generated/RestOperations/ClustersRestOperations.cs +++ b/sdk/hdinsight/Azure.ResourceManager.HDInsight.Containers/src/Generated/RestOperations/ClustersRestOperations.cs @@ -37,6 +37,21 @@ public ClustersRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByClusterPoolNameRequestUri(string subscriptionId, string resourceGroupName, string clusterPoolName) + { + 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.HDInsight/clusterpools/", false); + uri.AppendPath(clusterPoolName, true); + uri.AppendPath("/clusters", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByClusterPoolNameRequest(string subscriptionId, string resourceGroupName, string clusterPoolName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,23 @@ public Response ListByClusterPoolName(string subscri } } + internal RequestUriBuilder CreateResizeRequestUri(string subscriptionId, string resourceGroupName, string clusterPoolName, string clusterName, ClusterResizeContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.HDInsight/clusterpools/", false); + uri.AppendPath(clusterPoolName, true); + uri.AppendPath("/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/resize", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateResizeRequest(string subscriptionId, string resourceGroupName, string clusterPoolName, string clusterName, ClusterResizeContent content) { var message = _pipeline.CreateMessage(); @@ -201,6 +233,22 @@ public Response Resize(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string clusterPoolName, string clusterName) + { + 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.HDInsight/clusterpools/", false); + uri.AppendPath(clusterPoolName, true); + uri.AppendPath("/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string clusterPoolName, string clusterName) { var message = _pipeline.CreateMessage(); @@ -289,6 +337,22 @@ public Response Get(string subscriptionId, string resource } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string clusterPoolName, string clusterName, HDInsightClusterData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.HDInsight/clusterpools/", false); + uri.AppendPath(clusterPoolName, true); + uri.AppendPath("/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string clusterPoolName, string clusterName, HDInsightClusterData data) { var message = _pipeline.CreateMessage(); @@ -373,6 +437,22 @@ public Response Create(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string clusterPoolName, string clusterName, HDInsightClusterPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.HDInsight/clusterpools/", false); + uri.AppendPath(clusterPoolName, true); + uri.AppendPath("/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string clusterPoolName, string clusterName, HDInsightClusterPatch patch) { var message = _pipeline.CreateMessage(); @@ -457,6 +537,22 @@ public Response Update(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string clusterPoolName, string clusterName) + { + 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.HDInsight/clusterpools/", false); + uri.AppendPath(clusterPoolName, true); + uri.AppendPath("/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string clusterPoolName, string clusterName) { var message = _pipeline.CreateMessage(); @@ -535,6 +631,23 @@ public Response Delete(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateListServiceConfigsRequestUri(string subscriptionId, string resourceGroupName, string clusterPoolName, string clusterName) + { + 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.HDInsight/clusterpools/", false); + uri.AppendPath(clusterPoolName, true); + uri.AppendPath("/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/serviceConfigs", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListServiceConfigsRequest(string subscriptionId, string resourceGroupName, string clusterPoolName, string clusterName) { var message = _pipeline.CreateMessage(); @@ -620,6 +733,23 @@ public Response ListServiceConfigs(string subscr } } + internal RequestUriBuilder CreateListInstanceViewsRequestUri(string subscriptionId, string resourceGroupName, string clusterPoolName, string clusterName) + { + 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.HDInsight/clusterpools/", false); + uri.AppendPath(clusterPoolName, true); + uri.AppendPath("/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/instanceViews", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListInstanceViewsRequest(string subscriptionId, string resourceGroupName, string clusterPoolName, string clusterName) { var message = _pipeline.CreateMessage(); @@ -705,6 +835,23 @@ public Response ListInstanceViews(string subscrip } } + internal RequestUriBuilder CreateGetInstanceViewRequestUri(string subscriptionId, string resourceGroupName, string clusterPoolName, string clusterName) + { + 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.HDInsight/clusterpools/", false); + uri.AppendPath(clusterPoolName, true); + uri.AppendPath("/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/instanceViews/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetInstanceViewRequest(string subscriptionId, string resourceGroupName, string clusterPoolName, string clusterName) { var message = _pipeline.CreateMessage(); @@ -790,6 +937,14 @@ public Response GetInstanceView(string subscriptionId } } + internal RequestUriBuilder CreateListByClusterPoolNameNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string clusterPoolName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByClusterPoolNameNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string clusterPoolName) { var message = _pipeline.CreateMessage(); @@ -866,6 +1021,14 @@ public Response ListByClusterPoolNameNextPage(string } } + internal RequestUriBuilder CreateListServiceConfigsNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string clusterPoolName, string clusterName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListServiceConfigsNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string clusterPoolName, string clusterName) { var message = _pipeline.CreateMessage(); @@ -946,6 +1109,14 @@ public Response ListServiceConfigsNextPage(strin } } + internal RequestUriBuilder CreateListInstanceViewsNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string clusterPoolName, string clusterName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListInstanceViewsNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string clusterPoolName, string clusterName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/hdinsight/Azure.ResourceManager.HDInsight.Containers/src/Generated/RestOperations/LocationsRestOperations.cs b/sdk/hdinsight/Azure.ResourceManager.HDInsight.Containers/src/Generated/RestOperations/LocationsRestOperations.cs index cccd3be381fe..218d827a0e11 100644 --- a/sdk/hdinsight/Azure.ResourceManager.HDInsight.Containers/src/Generated/RestOperations/LocationsRestOperations.cs +++ b/sdk/hdinsight/Azure.ResourceManager.HDInsight.Containers/src/Generated/RestOperations/LocationsRestOperations.cs @@ -37,6 +37,19 @@ public LocationsRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCheckNameAvailabilityRequestUri(string subscriptionId, AzureLocation location, HDInsightNameAvailabilityContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.HDInsight/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/checkNameAvailability", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCheckNameAvailabilityRequest(string subscriptionId, AzureLocation location, HDInsightNameAvailabilityContent content) { var message = _pipeline.CreateMessage(); diff --git a/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/LongRunningOperation/HDInsightArmOperation.cs b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/LongRunningOperation/HDInsightArmOperation.cs index 1a5c2a46041b..be4436d00bd7 100644 --- a/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/LongRunningOperation/HDInsightArmOperation.cs +++ b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/LongRunningOperation/HDInsightArmOperation.cs @@ -20,21 +20,24 @@ internal class HDInsightArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of HDInsightArmOperation for mocking. protected HDInsightArmOperation() { } - internal HDInsightArmOperation(Response response) + internal HDInsightArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal HDInsightArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "HDInsightArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal HDInsightArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/LongRunningOperation/HDInsightArmOperationOfT.cs b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/LongRunningOperation/HDInsightArmOperationOfT.cs index 9a7ee245bc33..acaaa0ed71c7 100644 --- a/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/LongRunningOperation/HDInsightArmOperationOfT.cs +++ b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/LongRunningOperation/HDInsightArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class HDInsightArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of HDInsightArmOperation for mocking. protected HDInsightArmOperation() { } - internal HDInsightArmOperation(Response response) + internal HDInsightArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal HDInsightArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "HDInsightArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal HDInsightArmOperation(IOperationSource source, ClientDiagnostics cli public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/HDInsightApplicationResource.Serialization.cs b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/HDInsightApplicationResource.Serialization.cs new file mode 100644 index 000000000000..a6a04e1c7296 --- /dev/null +++ b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/HDInsightApplicationResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.HDInsight +{ + public partial class HDInsightApplicationResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + HDInsightApplicationData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + HDInsightApplicationData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/HDInsightClusterResource.Serialization.cs b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/HDInsightClusterResource.Serialization.cs new file mode 100644 index 000000000000..9faee994fae0 --- /dev/null +++ b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/HDInsightClusterResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.HDInsight +{ + public partial class HDInsightClusterResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + HDInsightClusterData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + HDInsightClusterData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/HDInsightPrivateEndpointConnectionResource.Serialization.cs b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/HDInsightPrivateEndpointConnectionResource.Serialization.cs new file mode 100644 index 000000000000..5afe19745324 --- /dev/null +++ b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/HDInsightPrivateEndpointConnectionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.HDInsight +{ + public partial class HDInsightPrivateEndpointConnectionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + HDInsightPrivateEndpointConnectionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + HDInsightPrivateEndpointConnectionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/HDInsightPrivateLinkResource.Serialization.cs b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/HDInsightPrivateLinkResource.Serialization.cs new file mode 100644 index 000000000000..035eeb1d9e53 --- /dev/null +++ b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/HDInsightPrivateLinkResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.HDInsight +{ + public partial class HDInsightPrivateLinkResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + HDInsightPrivateLinkResourceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + HDInsightPrivateLinkResourceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/RestOperations/ApplicationsRestOperations.cs b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/RestOperations/ApplicationsRestOperations.cs index 4de37b26751a..34b686686d6d 100644 --- a/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/RestOperations/ApplicationsRestOperations.cs +++ b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/RestOperations/ApplicationsRestOperations.cs @@ -37,6 +37,21 @@ public ApplicationsRestOperations(HttpPipeline pipeline, string applicationId, U _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByClusterRequestUri(string subscriptionId, string resourceGroupName, string clusterName) + { + 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.HDInsight/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/applications", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByClusterRequest(string subscriptionId, string resourceGroupName, string clusterName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByCluster(string subscriptionId, stri } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string applicationName) + { + 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.HDInsight/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/applications/", false); + uri.AppendPath(applicationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string clusterName, string applicationName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscriptionId, string reso } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string applicationName, HDInsightApplicationData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.HDInsight/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/applications/", false); + uri.AppendPath(applicationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string clusterName, string applicationName, HDInsightApplicationData data) { var message = _pipeline.CreateMessage(); @@ -286,6 +333,22 @@ public Response Create(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string applicationName) + { + 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.HDInsight/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/applications/", false); + uri.AppendPath(applicationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string clusterName, string applicationName) { var message = _pipeline.CreateMessage(); @@ -364,6 +427,24 @@ public Response Delete(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateGetAzureAsyncOperationStatusRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string applicationName, string operationId) + { + 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.HDInsight/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/applications/", false); + uri.AppendPath(applicationName, true); + uri.AppendPath("/azureasyncoperations/", false); + uri.AppendPath(operationId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetAzureAsyncOperationStatusRequest(string subscriptionId, string resourceGroupName, string clusterName, string applicationName, string operationId) { var message = _pipeline.CreateMessage(); @@ -454,6 +535,14 @@ public Response GetAzureAsyncOperationStatus(stri } } + internal RequestUriBuilder CreateListByClusterNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string clusterName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByClusterNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string clusterName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/RestOperations/ClustersRestOperations.cs b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/RestOperations/ClustersRestOperations.cs index 5b70dd0751fe..b4edd9f34b7c 100644 --- a/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/RestOperations/ClustersRestOperations.cs +++ b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/RestOperations/ClustersRestOperations.cs @@ -37,6 +37,20 @@ public ClustersRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string clusterName, HDInsightClusterCreateOrUpdateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.HDInsight/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string clusterName, HDInsightClusterCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); @@ -113,6 +127,20 @@ public Response Create(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string clusterName, HDInsightClusterPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.HDInsight/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string clusterName, HDInsightClusterPatch patch) { var message = _pipeline.CreateMessage(); @@ -199,6 +227,20 @@ public Response Update(string subscriptionId, string resou } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string clusterName) + { + 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.HDInsight/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string clusterName) { var message = _pipeline.CreateMessage(); @@ -271,6 +313,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string clusterName) + { + 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.HDInsight/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string clusterName) { var message = _pipeline.CreateMessage(); @@ -353,6 +409,19 @@ public Response Get(string subscriptionId, string resource } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.HDInsight/clusters", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -426,6 +495,23 @@ public Response ListByResourceGroup(string subscriptionId, st } } + internal RequestUriBuilder CreateResizeRequestUri(string subscriptionId, string resourceGroupName, string clusterName, HDInsightRoleName roleName, HDInsightClusterResizeContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.HDInsight/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/roles/", false); + uri.AppendPath(roleName.ToString(), true); + uri.AppendPath("/resize", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateResizeRequest(string subscriptionId, string resourceGroupName, string clusterName, HDInsightRoleName roleName, HDInsightClusterResizeContent content) { var message = _pipeline.CreateMessage(); @@ -509,6 +595,23 @@ public Response Resize(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateUpdateAutoScaleConfigurationRequestUri(string subscriptionId, string resourceGroupName, string clusterName, HDInsightRoleName roleName, HDInsightAutoScaleConfigurationUpdateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.HDInsight/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/roles/", false); + uri.AppendPath(roleName.ToString(), true); + uri.AppendPath("/autoscale", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateAutoScaleConfigurationRequest(string subscriptionId, string resourceGroupName, string clusterName, HDInsightRoleName roleName, HDInsightAutoScaleConfigurationUpdateContent content) { var message = _pipeline.CreateMessage(); @@ -592,6 +695,17 @@ public Response UpdateAutoScaleConfiguration(string subscriptionId, string resou } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.HDInsight/clusters", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -659,6 +773,21 @@ public Response List(string subscriptionId, CancellationToken } } + internal RequestUriBuilder CreateRotateDiskEncryptionKeyRequestUri(string subscriptionId, string resourceGroupName, string clusterName, HDInsightClusterDiskEncryptionContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.HDInsight/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/rotatediskencryptionkey", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRotateDiskEncryptionKeyRequest(string subscriptionId, string resourceGroupName, string clusterName, HDInsightClusterDiskEncryptionContent content) { var message = _pipeline.CreateMessage(); @@ -738,6 +867,21 @@ public Response RotateDiskEncryptionKey(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateGetGatewaySettingsRequestUri(string subscriptionId, string resourceGroupName, string clusterName) + { + 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.HDInsight/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/getGatewaySettings", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetGatewaySettingsRequest(string subscriptionId, string resourceGroupName, string clusterName) { var message = _pipeline.CreateMessage(); @@ -817,6 +961,21 @@ public Response GetGatewaySettings(string subsc } } + internal RequestUriBuilder CreateUpdateGatewaySettingsRequestUri(string subscriptionId, string resourceGroupName, string clusterName, HDInsightClusterUpdateGatewaySettingsContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.HDInsight/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/updateGatewaySettings", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateGatewaySettingsRequest(string subscriptionId, string resourceGroupName, string clusterName, HDInsightClusterUpdateGatewaySettingsContent content) { var message = _pipeline.CreateMessage(); @@ -896,6 +1055,22 @@ public Response UpdateGatewaySettings(string subscriptionId, string resourceGrou } } + internal RequestUriBuilder CreateGetAzureAsyncOperationStatusRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string operationId) + { + 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.HDInsight/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/azureasyncoperations/", false); + uri.AppendPath(operationId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetAzureAsyncOperationStatusRequest(string subscriptionId, string resourceGroupName, string clusterName, string operationId) { var message = _pipeline.CreateMessage(); @@ -980,6 +1155,21 @@ public Response GetAzureAsyncOperationStatus(stri } } + internal RequestUriBuilder CreateUpdateIdentityCertificateRequestUri(string subscriptionId, string resourceGroupName, string clusterName, HDInsightClusterUpdateIdentityCertificateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.HDInsight/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/updateClusterIdentityCertificate", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateIdentityCertificateRequest(string subscriptionId, string resourceGroupName, string clusterName, HDInsightClusterUpdateIdentityCertificateContent content) { var message = _pipeline.CreateMessage(); @@ -1059,6 +1249,21 @@ public Response UpdateIdentityCertificate(string subscriptionId, string resource } } + internal RequestUriBuilder CreateExecuteScriptActionsRequestUri(string subscriptionId, string resourceGroupName, string clusterName, ExecuteScriptActionContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.HDInsight/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/executeScriptActions", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateExecuteScriptActionsRequest(string subscriptionId, string resourceGroupName, string clusterName, ExecuteScriptActionContent content) { var message = _pipeline.CreateMessage(); @@ -1138,6 +1343,14 @@ public Response ExecuteScriptActions(string subscriptionId, string resourceGroup } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -1210,6 +1423,14 @@ public Response ListByResourceGroupNextPage(string nextLink, } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/RestOperations/ConfigurationsRestOperations.cs b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/RestOperations/ConfigurationsRestOperations.cs index ef09f6573202..f88772043138 100644 --- a/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/RestOperations/ConfigurationsRestOperations.cs +++ b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/RestOperations/ConfigurationsRestOperations.cs @@ -38,6 +38,21 @@ public ConfigurationsRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string clusterName) + { + 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.HDInsight/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/configurations", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string clusterName) { var message = _pipeline.CreateMessage(); @@ -117,6 +132,22 @@ public Response List(string subscriptionId, stri } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string configurationName, IDictionary clusterConfiguration) + { + 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.HDInsight/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/configurations/", false); + uri.AppendPath(configurationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string clusterName, string configurationName, IDictionary clusterConfiguration) { var message = _pipeline.CreateMessage(); @@ -209,6 +240,22 @@ public Response Update(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string configurationName) + { + 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.HDInsight/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/configurations/", false); + uri.AppendPath(configurationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string clusterName, string configurationName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/RestOperations/ExtensionsRestOperations.cs b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/RestOperations/ExtensionsRestOperations.cs index a4c18500cfc2..75c6319b596b 100644 --- a/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/RestOperations/ExtensionsRestOperations.cs +++ b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/RestOperations/ExtensionsRestOperations.cs @@ -37,6 +37,21 @@ public ExtensionsRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateEnableMonitoringRequestUri(string subscriptionId, string resourceGroupName, string clusterName, HDInsightClusterEnableClusterMonitoringContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.HDInsight/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/extensions/clustermonitoring", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateEnableMonitoringRequest(string subscriptionId, string resourceGroupName, string clusterName, HDInsightClusterEnableClusterMonitoringContent content) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,21 @@ public Response EnableMonitoring(string subscriptionId, string resourceGroupName } } + internal RequestUriBuilder CreateGetMonitoringStatusRequestUri(string subscriptionId, string resourceGroupName, string clusterName) + { + 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.HDInsight/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/extensions/clustermonitoring", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetMonitoringStatusRequest(string subscriptionId, string resourceGroupName, string clusterName) { var message = _pipeline.CreateMessage(); @@ -195,6 +225,21 @@ public Response GetMonitoringStatus(string subs } } + internal RequestUriBuilder CreateDisableMonitoringRequestUri(string subscriptionId, string resourceGroupName, string clusterName) + { + 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.HDInsight/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/extensions/clustermonitoring", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDisableMonitoringRequest(string subscriptionId, string resourceGroupName, string clusterName) { var message = _pipeline.CreateMessage(); @@ -268,6 +313,21 @@ public Response DisableMonitoring(string subscriptionId, string resourceGroupNam } } + internal RequestUriBuilder CreateEnableAzureMonitorRequestUri(string subscriptionId, string resourceGroupName, string clusterName, HDInsightAzureMonitorExtensionEnableContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.HDInsight/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/extensions/azureMonitor", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateEnableAzureMonitorRequest(string subscriptionId, string resourceGroupName, string clusterName, HDInsightAzureMonitorExtensionEnableContent content) { var message = _pipeline.CreateMessage(); @@ -347,6 +407,21 @@ public Response EnableAzureMonitor(string subscriptionId, string resourceGroupNa } } + internal RequestUriBuilder CreateGetAzureMonitorStatusRequestUri(string subscriptionId, string resourceGroupName, string clusterName) + { + 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.HDInsight/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/extensions/azureMonitor", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetAzureMonitorStatusRequest(string subscriptionId, string resourceGroupName, string clusterName) { var message = _pipeline.CreateMessage(); @@ -426,6 +501,21 @@ public Response GetAzureMonitorStatus(stri } } + internal RequestUriBuilder CreateDisableAzureMonitorRequestUri(string subscriptionId, string resourceGroupName, string clusterName) + { + 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.HDInsight/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/extensions/azureMonitor", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDisableAzureMonitorRequest(string subscriptionId, string resourceGroupName, string clusterName) { var message = _pipeline.CreateMessage(); @@ -499,6 +589,22 @@ public Response DisableAzureMonitor(string subscriptionId, string resourceGroupN } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string extensionName, HDInsightClusterCreateExtensionContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.HDInsight/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/extensions/", false); + uri.AppendPath(extensionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string clusterName, string extensionName, HDInsightClusterCreateExtensionContent content) { var message = _pipeline.CreateMessage(); @@ -583,6 +689,22 @@ public Response Create(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string extensionName) + { + 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.HDInsight/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/extensions/", false); + uri.AppendPath(extensionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string clusterName, string extensionName) { var message = _pipeline.CreateMessage(); @@ -667,6 +789,22 @@ public Response Get(string subscriptionId, stri } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string extensionName) + { + 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.HDInsight/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/extensions/", false); + uri.AppendPath(extensionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string clusterName, string extensionName) { var message = _pipeline.CreateMessage(); @@ -745,6 +883,24 @@ public Response Delete(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateGetAzureAsyncOperationStatusRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string extensionName, string operationId) + { + 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.HDInsight/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/extensions/", false); + uri.AppendPath(extensionName, true); + uri.AppendPath("/azureAsyncOperations/", false); + uri.AppendPath(operationId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetAzureAsyncOperationStatusRequest(string subscriptionId, string resourceGroupName, string clusterName, string extensionName, string operationId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/RestOperations/LocationsRestOperations.cs b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/RestOperations/LocationsRestOperations.cs index a2713e305aa8..c5883d1d13fd 100644 --- a/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/RestOperations/LocationsRestOperations.cs +++ b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/RestOperations/LocationsRestOperations.cs @@ -37,6 +37,19 @@ public LocationsRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetCapabilitiesRequestUri(string subscriptionId, AzureLocation location) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.HDInsight/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/capabilities", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetCapabilitiesRequest(string subscriptionId, AzureLocation location) { var message = _pipeline.CreateMessage(); @@ -108,6 +121,19 @@ public Response GetCapabilities(string subscription } } + internal RequestUriBuilder CreateListUsagesRequestUri(string subscriptionId, AzureLocation location) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.HDInsight/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/usages", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListUsagesRequest(string subscriptionId, AzureLocation location) { var message = _pipeline.CreateMessage(); @@ -179,6 +205,19 @@ public Response ListUsages(string subscriptionId, AzureLocatio } } + internal RequestUriBuilder CreateListBillingSpecsRequestUri(string subscriptionId, AzureLocation location) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.HDInsight/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/billingSpecs", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBillingSpecsRequest(string subscriptionId, AzureLocation location) { var message = _pipeline.CreateMessage(); @@ -250,6 +289,19 @@ public Response ListBillingSpecs(string subscri } } + internal RequestUriBuilder CreateCheckNameAvailabilityRequestUri(string subscriptionId, AzureLocation location, HDInsightNameAvailabilityContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.HDInsight/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/checkNameAvailability", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCheckNameAvailabilityRequest(string subscriptionId, AzureLocation location, HDInsightNameAvailabilityContent content) { var message = _pipeline.CreateMessage(); @@ -329,6 +381,19 @@ public Response CheckNameAvailability(string su } } + internal RequestUriBuilder CreateValidateClusterCreateRequestRequestUri(string subscriptionId, AzureLocation location, HDInsightClusterCreationValidateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.HDInsight/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/validateCreateRequest", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateValidateClusterCreateRequestRequest(string subscriptionId, AzureLocation location, HDInsightClusterCreationValidateContent content) { var message = _pipeline.CreateMessage(); diff --git a/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs index 618b03c22c78..4b1769b2fbe1 100644 --- a/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs +++ b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs @@ -37,6 +37,21 @@ public PrivateEndpointConnectionsRestOperations(HttpPipeline pipeline, string ap _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByClusterRequestUri(string subscriptionId, string resourceGroupName, string clusterName) + { + 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.HDInsight/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/privateEndpointConnections", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByClusterRequest(string subscriptionId, string resourceGroupName, string clusterName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByCluster(stri } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string privateEndpointConnectionName, HDInsightPrivateEndpointConnectionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.HDInsight/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string clusterName, string privateEndpointConnectionName, HDInsightPrivateEndpointConnectionData data) { var message = _pipeline.CreateMessage(); @@ -200,6 +231,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string privateEndpointConnectionName) + { + 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.HDInsight/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string clusterName, string privateEndpointConnectionName) { var message = _pipeline.CreateMessage(); @@ -288,6 +335,22 @@ public Response Get(string subscriptionI } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string privateEndpointConnectionName) + { + 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.HDInsight/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string clusterName, string privateEndpointConnectionName) { var message = _pipeline.CreateMessage(); @@ -366,6 +429,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateListByClusterNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string clusterName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByClusterNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string clusterName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs index fdc2969b78ab..0d13c1ceccf1 100644 --- a/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs +++ b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs @@ -37,6 +37,21 @@ public PrivateLinkResourcesRestOperations(HttpPipeline pipeline, string applicat _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByClusterRequestUri(string subscriptionId, string resourceGroupName, string clusterName) + { + 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.HDInsight/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/privateLinkResources", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByClusterRequest(string subscriptionId, string resourceGroupName, string clusterName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByCluster(string sub } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string privateLinkResourceName) + { + 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.HDInsight/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/privateLinkResources/", false); + uri.AppendPath(privateLinkResourceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string clusterName, string privateLinkResourceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/RestOperations/ScriptActionsRestOperations.cs b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/RestOperations/ScriptActionsRestOperations.cs index ec51a5cdabdb..f5e8b9889e5a 100644 --- a/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/RestOperations/ScriptActionsRestOperations.cs +++ b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/RestOperations/ScriptActionsRestOperations.cs @@ -37,6 +37,22 @@ public ScriptActionsRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string scriptName) + { + 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.HDInsight/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/scriptActions/", false); + uri.AppendPath(scriptName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string clusterName, string scriptName) { var message = _pipeline.CreateMessage(); @@ -113,6 +129,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateListByClusterRequestUri(string subscriptionId, string resourceGroupName, string clusterName) + { + 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.HDInsight/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/scriptActions", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByClusterRequest(string subscriptionId, string resourceGroupName, string clusterName) { var message = _pipeline.CreateMessage(); @@ -192,6 +223,22 @@ public Response ListByCluster(string subscriptionId, string r } } + internal RequestUriBuilder CreateGetExecutionDetailRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string scriptExecutionId) + { + 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.HDInsight/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/scriptExecutionHistory/", false); + uri.AppendPath(scriptExecutionId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetExecutionDetailRequest(string subscriptionId, string resourceGroupName, string clusterName, string scriptExecutionId) { var message = _pipeline.CreateMessage(); @@ -276,6 +323,22 @@ public Response GetExecutionDetail(string subscriptio } } + internal RequestUriBuilder CreateGetExecutionAsyncOperationStatusRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string operationId) + { + 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.HDInsight/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/executeScriptActions/azureasyncoperations/", false); + uri.AppendPath(operationId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetExecutionAsyncOperationStatusRequest(string subscriptionId, string resourceGroupName, string clusterName, string operationId) { var message = _pipeline.CreateMessage(); @@ -360,6 +423,14 @@ public Response GetExecutionAsyncOperationStatus( } } + internal RequestUriBuilder CreateListByClusterNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string clusterName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByClusterNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string clusterName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/RestOperations/ScriptExecutionHistoryRestOperations.cs b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/RestOperations/ScriptExecutionHistoryRestOperations.cs index add16134dd69..7073ecbd6499 100644 --- a/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/RestOperations/ScriptExecutionHistoryRestOperations.cs +++ b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/RestOperations/ScriptExecutionHistoryRestOperations.cs @@ -37,6 +37,21 @@ public ScriptExecutionHistoryRestOperations(HttpPipeline pipeline, string applic _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByClusterRequestUri(string subscriptionId, string resourceGroupName, string clusterName) + { + 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.HDInsight/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/scriptExecutionHistory", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByClusterRequest(string subscriptionId, string resourceGroupName, string clusterName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,23 @@ public Response ListByCluster(string subscript } } + internal RequestUriBuilder CreatePromoteRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string scriptExecutionId) + { + 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.HDInsight/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/scriptExecutionHistory/", false); + uri.AppendPath(scriptExecutionId, true); + uri.AppendPath("/promote", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreatePromoteRequest(string subscriptionId, string resourceGroupName, string clusterName, string scriptExecutionId) { var message = _pipeline.CreateMessage(); @@ -191,6 +223,14 @@ public Response Promote(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreateListByClusterNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string clusterName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByClusterNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string clusterName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/RestOperations/VirtualMachinesRestOperations.cs b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/RestOperations/VirtualMachinesRestOperations.cs index 79903df52cd2..9087575897b7 100644 --- a/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/RestOperations/VirtualMachinesRestOperations.cs +++ b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/RestOperations/VirtualMachinesRestOperations.cs @@ -38,6 +38,21 @@ public VirtualMachinesRestOperations(HttpPipeline pipeline, string applicationId _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListHostsRequestUri(string subscriptionId, string resourceGroupName, string clusterName) + { + 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.HDInsight/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/listHosts", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListHostsRequest(string subscriptionId, string resourceGroupName, string clusterName) { var message = _pipeline.CreateMessage(); @@ -127,6 +142,21 @@ public Response> ListHosts(string subscr } } + internal RequestUriBuilder CreateRestartHostsRequestUri(string subscriptionId, string resourceGroupName, string clusterName, IEnumerable content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.HDInsight/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/restartHosts", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRestartHostsRequest(string subscriptionId, string resourceGroupName, string clusterName, IEnumerable content) { var message = _pipeline.CreateMessage(); @@ -211,6 +241,22 @@ public Response RestartHosts(string subscriptionId, string resourceGroupName, st } } + internal RequestUriBuilder CreateGetAsyncOperationStatusRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string operationId) + { + 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.HDInsight/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/restartHosts/azureasyncoperations/", false); + uri.AppendPath(operationId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetAsyncOperationStatusRequest(string subscriptionId, string resourceGroupName, string clusterName, string operationId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/healthbot/Azure.ResourceManager.HealthBot/src/Generated/LongRunningOperation/HealthBotArmOperation.cs b/sdk/healthbot/Azure.ResourceManager.HealthBot/src/Generated/LongRunningOperation/HealthBotArmOperation.cs index 21b92518477e..52215947456d 100644 --- a/sdk/healthbot/Azure.ResourceManager.HealthBot/src/Generated/LongRunningOperation/HealthBotArmOperation.cs +++ b/sdk/healthbot/Azure.ResourceManager.HealthBot/src/Generated/LongRunningOperation/HealthBotArmOperation.cs @@ -20,21 +20,24 @@ internal class HealthBotArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of HealthBotArmOperation for mocking. protected HealthBotArmOperation() { } - internal HealthBotArmOperation(Response response) + internal HealthBotArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal HealthBotArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "HealthBotArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal HealthBotArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/healthbot/Azure.ResourceManager.HealthBot/src/Generated/LongRunningOperation/HealthBotArmOperationOfT.cs b/sdk/healthbot/Azure.ResourceManager.HealthBot/src/Generated/LongRunningOperation/HealthBotArmOperationOfT.cs index 3727a5db796a..2d80ab35c75e 100644 --- a/sdk/healthbot/Azure.ResourceManager.HealthBot/src/Generated/LongRunningOperation/HealthBotArmOperationOfT.cs +++ b/sdk/healthbot/Azure.ResourceManager.HealthBot/src/Generated/LongRunningOperation/HealthBotArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class HealthBotArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of HealthBotArmOperation for mocking. protected HealthBotArmOperation() { } - internal HealthBotArmOperation(Response response) + internal HealthBotArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal HealthBotArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "HealthBotArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal HealthBotArmOperation(IOperationSource source, ClientDiagnostics cli public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/healthbot/Azure.ResourceManager.HealthBot/src/Generated/Models/HealthBotResource.Serialization.cs b/sdk/healthbot/Azure.ResourceManager.HealthBot/src/Generated/Models/HealthBotResource.Serialization.cs new file mode 100644 index 000000000000..fa8935dc528a --- /dev/null +++ b/sdk/healthbot/Azure.ResourceManager.HealthBot/src/Generated/Models/HealthBotResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.HealthBot +{ + public partial class HealthBotResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + HealthBotData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + HealthBotData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/healthbot/Azure.ResourceManager.HealthBot/src/Generated/RestOperations/BotsRestOperations.cs b/sdk/healthbot/Azure.ResourceManager.HealthBot/src/Generated/RestOperations/BotsRestOperations.cs index f3976b6d3b76..c19ff5b30af8 100644 --- a/sdk/healthbot/Azure.ResourceManager.HealthBot/src/Generated/RestOperations/BotsRestOperations.cs +++ b/sdk/healthbot/Azure.ResourceManager.HealthBot/src/Generated/RestOperations/BotsRestOperations.cs @@ -37,6 +37,20 @@ public BotsRestOperations(HttpPipeline pipeline, string applicationId, Uri endpo _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string botName, HealthBotData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.HealthBot/healthBots/", false); + uri.AppendPath(botName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string botName, HealthBotData data) { var message = _pipeline.CreateMessage(); @@ -115,6 +129,20 @@ public Response Create(string subscriptionId, string resourceGroupName, string b } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string botName) + { + 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.HealthBot/healthBots/", false); + uri.AppendPath(botName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string botName) { var message = _pipeline.CreateMessage(); @@ -197,6 +225,20 @@ public Response Get(string subscriptionId, string resourceGroupNa } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string botName, HealthBotPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.HealthBot/healthBots/", false); + uri.AppendPath(botName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string botName, HealthBotPatch patch) { var message = _pipeline.CreateMessage(); @@ -285,6 +327,20 @@ public Response Update(string subscriptionId, string resourceGrou } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string botName) + { + 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.HealthBot/healthBots/", false); + uri.AppendPath(botName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string botName) { var message = _pipeline.CreateMessage(); @@ -357,6 +413,19 @@ public Response Delete(string subscriptionId, string resourceGroupName, string b } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.HealthBot/healthBots", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -430,6 +499,17 @@ public Response ListByResourceGroup(string subscriptionId, stri } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.HealthBot/healthBots", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -497,6 +577,14 @@ public Response List(string subscriptionId, CancellationToken c } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -569,6 +657,14 @@ public Response ListByResourceGroupNextPage(string nextLink, st } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/LongRunningOperation/HealthcareApisArmOperation.cs b/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/LongRunningOperation/HealthcareApisArmOperation.cs index 3b72f4a1f9e5..c2dec36c6365 100644 --- a/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/LongRunningOperation/HealthcareApisArmOperation.cs +++ b/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/LongRunningOperation/HealthcareApisArmOperation.cs @@ -20,21 +20,24 @@ internal class HealthcareApisArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of HealthcareApisArmOperation for mocking. protected HealthcareApisArmOperation() { } - internal HealthcareApisArmOperation(Response response) + internal HealthcareApisArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal HealthcareApisArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "HealthcareApisArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal HealthcareApisArmOperation(ClientDiagnostics clientDiagnostics, HttpPip public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/LongRunningOperation/HealthcareApisArmOperationOfT.cs b/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/LongRunningOperation/HealthcareApisArmOperationOfT.cs index 016133a81bda..49cb7686a0a0 100644 --- a/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/LongRunningOperation/HealthcareApisArmOperationOfT.cs +++ b/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/LongRunningOperation/HealthcareApisArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class HealthcareApisArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of HealthcareApisArmOperation for mocking. protected HealthcareApisArmOperation() { } - internal HealthcareApisArmOperation(Response response) + internal HealthcareApisArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal HealthcareApisArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "HealthcareApisArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal HealthcareApisArmOperation(IOperationSource source, ClientDiagnostic public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/Models/DicomServiceResource.Serialization.cs b/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/Models/DicomServiceResource.Serialization.cs new file mode 100644 index 000000000000..9a3d1a531bdb --- /dev/null +++ b/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/Models/DicomServiceResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.HealthcareApis +{ + public partial class DicomServiceResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DicomServiceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DicomServiceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/Models/FhirServiceResource.Serialization.cs b/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/Models/FhirServiceResource.Serialization.cs new file mode 100644 index 000000000000..da550f2cd90e --- /dev/null +++ b/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/Models/FhirServiceResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.HealthcareApis +{ + public partial class FhirServiceResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + FhirServiceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + FhirServiceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/Models/HealthcareApisIotConnectorResource.Serialization.cs b/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/Models/HealthcareApisIotConnectorResource.Serialization.cs new file mode 100644 index 000000000000..5ea44bdb11e1 --- /dev/null +++ b/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/Models/HealthcareApisIotConnectorResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.HealthcareApis +{ + public partial class HealthcareApisIotConnectorResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + HealthcareApisIotConnectorData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + HealthcareApisIotConnectorData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/Models/HealthcareApisIotFhirDestinationResource.Serialization.cs b/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/Models/HealthcareApisIotFhirDestinationResource.Serialization.cs new file mode 100644 index 000000000000..48312607b37b --- /dev/null +++ b/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/Models/HealthcareApisIotFhirDestinationResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.HealthcareApis +{ + public partial class HealthcareApisIotFhirDestinationResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + HealthcareApisIotFhirDestinationData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + HealthcareApisIotFhirDestinationData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/Models/HealthcareApisServicePrivateEndpointConnectionResource.Serialization.cs b/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/Models/HealthcareApisServicePrivateEndpointConnectionResource.Serialization.cs new file mode 100644 index 000000000000..0ac5d95c293a --- /dev/null +++ b/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/Models/HealthcareApisServicePrivateEndpointConnectionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.HealthcareApis +{ + public partial class HealthcareApisServicePrivateEndpointConnectionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + HealthcareApisPrivateEndpointConnectionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + HealthcareApisPrivateEndpointConnectionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/Models/HealthcareApisServicePrivateLinkResource.Serialization.cs b/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/Models/HealthcareApisServicePrivateLinkResource.Serialization.cs new file mode 100644 index 000000000000..77c02658635d --- /dev/null +++ b/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/Models/HealthcareApisServicePrivateLinkResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.HealthcareApis +{ + public partial class HealthcareApisServicePrivateLinkResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + HealthcareApisPrivateLinkResourceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + HealthcareApisPrivateLinkResourceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/Models/HealthcareApisServiceResource.Serialization.cs b/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/Models/HealthcareApisServiceResource.Serialization.cs new file mode 100644 index 000000000000..ee12520a45ce --- /dev/null +++ b/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/Models/HealthcareApisServiceResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.HealthcareApis +{ + public partial class HealthcareApisServiceResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + HealthcareApisServiceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + HealthcareApisServiceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/Models/HealthcareApisWorkspacePrivateEndpointConnectionResource.Serialization.cs b/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/Models/HealthcareApisWorkspacePrivateEndpointConnectionResource.Serialization.cs new file mode 100644 index 000000000000..ba6407b72e42 --- /dev/null +++ b/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/Models/HealthcareApisWorkspacePrivateEndpointConnectionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.HealthcareApis +{ + public partial class HealthcareApisWorkspacePrivateEndpointConnectionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + HealthcareApisPrivateEndpointConnectionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + HealthcareApisPrivateEndpointConnectionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/Models/HealthcareApisWorkspacePrivateLinkResource.Serialization.cs b/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/Models/HealthcareApisWorkspacePrivateLinkResource.Serialization.cs new file mode 100644 index 000000000000..ad14481fb7d4 --- /dev/null +++ b/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/Models/HealthcareApisWorkspacePrivateLinkResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.HealthcareApis +{ + public partial class HealthcareApisWorkspacePrivateLinkResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + HealthcareApisPrivateLinkResourceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + HealthcareApisPrivateLinkResourceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/Models/HealthcareApisWorkspaceResource.Serialization.cs b/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/Models/HealthcareApisWorkspaceResource.Serialization.cs new file mode 100644 index 000000000000..1571160a0f6d --- /dev/null +++ b/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/Models/HealthcareApisWorkspaceResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.HealthcareApis +{ + public partial class HealthcareApisWorkspaceResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + HealthcareApisWorkspaceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + HealthcareApisWorkspaceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/RestOperations/DicomServicesRestOperations.cs b/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/RestOperations/DicomServicesRestOperations.cs index e9ddfb2dcd5e..e12f3fdf24f9 100644 --- a/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/RestOperations/DicomServicesRestOperations.cs +++ b/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/RestOperations/DicomServicesRestOperations.cs @@ -37,6 +37,21 @@ public DicomServicesRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByWorkspaceRequestUri(string subscriptionId, string resourceGroupName, string workspaceName) + { + 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.HealthcareApis/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/dicomservices", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByWorkspaceRequest(string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ internal HttpMessage CreateListByWorkspaceRequest(string subscriptionId, string } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string dicomServiceName) + { + 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.HealthcareApis/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/dicomservices/", false); + uri.AppendPath(dicomServiceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName, string dicomServiceName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscriptionId, string resourceGrou } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string dicomServiceName, DicomServiceData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.HealthcareApis/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/dicomservices/", false); + uri.AppendPath(dicomServiceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string dicomServiceName, DicomServiceData data) { var message = _pipeline.CreateMessage(); @@ -290,6 +337,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string dicomServiceName, DicomServicePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.HealthcareApis/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/dicomservices/", false); + uri.AppendPath(dicomServiceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string dicomServiceName, DicomServicePatch patch) { var message = _pipeline.CreateMessage(); @@ -374,6 +437,22 @@ public Response Update(string subscriptionId, string resourceGroupName, string w } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string dicomServiceName) + { + 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.HealthcareApis/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/dicomservices/", false); + uri.AppendPath(dicomServiceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string workspaceName, string dicomServiceName) { var message = _pipeline.CreateMessage(); @@ -452,6 +531,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string w } } + internal RequestUriBuilder CreateListByWorkspaceNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByWorkspaceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/RestOperations/FhirDestinationsRestOperations.cs b/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/RestOperations/FhirDestinationsRestOperations.cs index 0d7851bd284a..beca2ab15c3d 100644 --- a/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/RestOperations/FhirDestinationsRestOperations.cs +++ b/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/RestOperations/FhirDestinationsRestOperations.cs @@ -37,6 +37,23 @@ public FhirDestinationsRestOperations(HttpPipeline pipeline, string applicationI _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByIotConnectorRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string iotConnectorName) + { + 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.HealthcareApis/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/iotconnectors/", false); + uri.AppendPath(iotConnectorName, true); + uri.AppendPath("/fhirdestinations", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByIotConnectorRequest(string subscriptionId, string resourceGroupName, string workspaceName, string iotConnectorName) { var message = _pipeline.CreateMessage(); @@ -122,6 +139,14 @@ public Response ListByIotConnector(string subscrip } } + internal RequestUriBuilder CreateListByIotConnectorNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string iotConnectorName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByIotConnectorNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string iotConnectorName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/RestOperations/FhirServicesRestOperations.cs b/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/RestOperations/FhirServicesRestOperations.cs index b98184225f24..e3493a363574 100644 --- a/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/RestOperations/FhirServicesRestOperations.cs +++ b/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/RestOperations/FhirServicesRestOperations.cs @@ -37,6 +37,21 @@ public FhirServicesRestOperations(HttpPipeline pipeline, string applicationId, U _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByWorkspaceRequestUri(string subscriptionId, string resourceGroupName, string workspaceName) + { + 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.HealthcareApis/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/fhirservices", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByWorkspaceRequest(string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ internal HttpMessage CreateListByWorkspaceRequest(string subscriptionId, string } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string fhirServiceName) + { + 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.HealthcareApis/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/fhirservices/", false); + uri.AppendPath(fhirServiceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName, string fhirServiceName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscriptionId, string resourceGroup } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string fhirServiceName, FhirServiceData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.HealthcareApis/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/fhirservices/", false); + uri.AppendPath(fhirServiceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string fhirServiceName, FhirServiceData data) { var message = _pipeline.CreateMessage(); @@ -290,6 +337,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string fhirServiceName, FhirServicePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.HealthcareApis/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/fhirservices/", false); + uri.AppendPath(fhirServiceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string fhirServiceName, FhirServicePatch patch) { var message = _pipeline.CreateMessage(); @@ -374,6 +437,22 @@ public Response Update(string subscriptionId, string resourceGroupName, string w } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string fhirServiceName) + { + 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.HealthcareApis/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/fhirservices/", false); + uri.AppendPath(fhirServiceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string workspaceName, string fhirServiceName) { var message = _pipeline.CreateMessage(); @@ -452,6 +531,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string w } } + internal RequestUriBuilder CreateListByWorkspaceNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByWorkspaceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/RestOperations/IotConnectorFhirDestinationRestOperations.cs b/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/RestOperations/IotConnectorFhirDestinationRestOperations.cs index 0486b23a3c75..94c56697508b 100644 --- a/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/RestOperations/IotConnectorFhirDestinationRestOperations.cs +++ b/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/RestOperations/IotConnectorFhirDestinationRestOperations.cs @@ -36,6 +36,24 @@ public IotConnectorFhirDestinationRestOperations(HttpPipeline pipeline, string a _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string iotConnectorName, string fhirDestinationName) + { + 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.HealthcareApis/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/iotconnectors/", false); + uri.AppendPath(iotConnectorName, true); + uri.AppendPath("/fhirdestinations/", false); + uri.AppendPath(fhirDestinationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName, string iotConnectorName, string fhirDestinationName) { var message = _pipeline.CreateMessage(); @@ -130,6 +148,24 @@ public Response Get(string subscriptionId, } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string iotConnectorName, string fhirDestinationName, HealthcareApisIotFhirDestinationData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.HealthcareApis/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/iotconnectors/", false); + uri.AppendPath(iotConnectorName, true); + uri.AppendPath("/fhirdestinations/", false); + uri.AppendPath(fhirDestinationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string iotConnectorName, string fhirDestinationName, HealthcareApisIotFhirDestinationData data) { var message = _pipeline.CreateMessage(); @@ -222,6 +258,24 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string iotConnectorName, string fhirDestinationName) + { + 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.HealthcareApis/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/iotconnectors/", false); + uri.AppendPath(iotConnectorName, true); + uri.AppendPath("/fhirdestinations/", false); + uri.AppendPath(fhirDestinationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string workspaceName, string iotConnectorName, string fhirDestinationName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/RestOperations/IotConnectorsRestOperations.cs b/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/RestOperations/IotConnectorsRestOperations.cs index fb0ca9d2b8ba..12c23fb404af 100644 --- a/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/RestOperations/IotConnectorsRestOperations.cs +++ b/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/RestOperations/IotConnectorsRestOperations.cs @@ -37,6 +37,21 @@ public IotConnectorsRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByWorkspaceRequestUri(string subscriptionId, string resourceGroupName, string workspaceName) + { + 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.HealthcareApis/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/iotconnectors", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByWorkspaceRequest(string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByWorkspace(string subscriptionId, s } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string iotConnectorName) + { + 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.HealthcareApis/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/iotconnectors/", false); + uri.AppendPath(iotConnectorName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName, string iotConnectorName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscriptionId, strin } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string iotConnectorName, HealthcareApisIotConnectorData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.HealthcareApis/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/iotconnectors/", false); + uri.AppendPath(iotConnectorName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string iotConnectorName, HealthcareApisIotConnectorData data) { var message = _pipeline.CreateMessage(); @@ -290,6 +337,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string iotConnectorName, HealthcareApisIotConnectorPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.HealthcareApis/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/iotconnectors/", false); + uri.AppendPath(iotConnectorName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string iotConnectorName, HealthcareApisIotConnectorPatch patch) { var message = _pipeline.CreateMessage(); @@ -374,6 +437,22 @@ public Response Update(string subscriptionId, string resourceGroupName, string w } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string iotConnectorName) + { + 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.HealthcareApis/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/iotconnectors/", false); + uri.AppendPath(iotConnectorName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string workspaceName, string iotConnectorName) { var message = _pipeline.CreateMessage(); @@ -452,6 +531,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string w } } + internal RequestUriBuilder CreateListByWorkspaceNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByWorkspaceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs b/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs index 0d914c478ced..055ee943ee8a 100644 --- a/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs +++ b/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs @@ -37,6 +37,21 @@ public PrivateEndpointConnectionsRestOperations(HttpPipeline pipeline, string ap _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByServiceRequestUri(string subscriptionId, string resourceGroupName, string resourceName) + { + 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.HealthcareApis/services/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/privateEndpointConnections", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByServiceRequest(string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByService(st } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string privateEndpointConnectionName) + { + 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.HealthcareApis/services/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string resourceName, string privateEndpointConnectionName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscrip } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string privateEndpointConnectionName, HealthcareApisPrivateEndpointConnectionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.HealthcareApis/services/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string resourceName, string privateEndpointConnectionName, HealthcareApisPrivateEndpointConnectionData data) { var message = _pipeline.CreateMessage(); @@ -286,6 +333,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string privateEndpointConnectionName) + { + 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.HealthcareApis/services/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string resourceName, string privateEndpointConnectionName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs b/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs index 3682e1b19357..7acf08977f43 100644 --- a/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs +++ b/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs @@ -37,6 +37,21 @@ public PrivateLinkResourcesRestOperations(HttpPipeline pipeline, string applicat _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByServiceRequestUri(string subscriptionId, string resourceGroupName, string resourceName) + { + 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.HealthcareApis/services/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/privateLinkResources", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByServiceRequest(string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByService(string s } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string groupName) + { + 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.HealthcareApis/services/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/privateLinkResources/", false); + uri.AppendPath(groupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string resourceName, string groupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/RestOperations/ServicesRestOperations.cs b/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/RestOperations/ServicesRestOperations.cs index 97c717e6b5d1..582cdd2c59c4 100644 --- a/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/RestOperations/ServicesRestOperations.cs +++ b/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/RestOperations/ServicesRestOperations.cs @@ -37,6 +37,20 @@ public ServicesRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string resourceName) + { + 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.HealthcareApis/services/", false); + uri.AppendPath(resourceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); @@ -119,6 +133,20 @@ public Response Get(string subscriptionId, string res } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string resourceName, HealthcareApisServiceData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.HealthcareApis/services/", false); + uri.AppendPath(resourceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string resourceName, HealthcareApisServiceData data) { var message = _pipeline.CreateMessage(); @@ -197,6 +225,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string resourceName, HealthcareApisServicePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.HealthcareApis/services/", false); + uri.AppendPath(resourceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string resourceName, HealthcareApisServicePatch patch) { var message = _pipeline.CreateMessage(); @@ -273,6 +315,20 @@ public Response Update(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string resourceName) + { + 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.HealthcareApis/services/", false); + uri.AppendPath(resourceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); @@ -343,6 +399,17 @@ public Response Delete(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.HealthcareApis/services", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -410,6 +477,19 @@ public Response List(string subscriptionId, Cance } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.HealthcareApis/services", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -483,6 +563,17 @@ public Response ListByResourceGroup(string subscr } } + internal RequestUriBuilder CreateCheckNameAvailabilityRequestUri(string subscriptionId, HealthcareApisNameAvailabilityContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.HealthcareApis/checkNameAvailability", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCheckNameAvailabilityRequest(string subscriptionId, HealthcareApisNameAvailabilityContent content) { var message = _pipeline.CreateMessage(); @@ -558,6 +649,14 @@ public Response CheckNameAvailability(stri } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -626,6 +725,14 @@ public Response ListNextPage(string nextLink, str } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/RestOperations/WorkspacePrivateEndpointConnectionsRestOperations.cs b/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/RestOperations/WorkspacePrivateEndpointConnectionsRestOperations.cs index 0bd6609cf1f5..5e41d2845f71 100644 --- a/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/RestOperations/WorkspacePrivateEndpointConnectionsRestOperations.cs +++ b/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/RestOperations/WorkspacePrivateEndpointConnectionsRestOperations.cs @@ -37,6 +37,21 @@ public WorkspacePrivateEndpointConnectionsRestOperations(HttpPipeline pipeline, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByWorkspaceRequestUri(string subscriptionId, string resourceGroupName, string workspaceName) + { + 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.HealthcareApis/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/privateEndpointConnections", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByWorkspaceRequest(string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByWorkspace( } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string privateEndpointConnectionName) + { + 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.HealthcareApis/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName, string privateEndpointConnectionName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscrip } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string privateEndpointConnectionName, HealthcareApisPrivateEndpointConnectionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.HealthcareApis/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string privateEndpointConnectionName, HealthcareApisPrivateEndpointConnectionData data) { var message = _pipeline.CreateMessage(); @@ -286,6 +333,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string privateEndpointConnectionName) + { + 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.HealthcareApis/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string workspaceName, string privateEndpointConnectionName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/RestOperations/WorkspacePrivateLinkResourcesRestOperations.cs b/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/RestOperations/WorkspacePrivateLinkResourcesRestOperations.cs index 70e614e95173..73f8f8775dd7 100644 --- a/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/RestOperations/WorkspacePrivateLinkResourcesRestOperations.cs +++ b/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/RestOperations/WorkspacePrivateLinkResourcesRestOperations.cs @@ -37,6 +37,21 @@ public WorkspacePrivateLinkResourcesRestOperations(HttpPipeline pipeline, string _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByWorkspaceRequestUri(string subscriptionId, string resourceGroupName, string workspaceName) + { + 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.HealthcareApis/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/privateLinkResources", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByWorkspaceRequest(string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByWorkspace(string } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string groupName) + { + 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.HealthcareApis/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/privateLinkResources/", false); + uri.AppendPath(groupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName, string groupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/RestOperations/WorkspacesRestOperations.cs b/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/RestOperations/WorkspacesRestOperations.cs index a3a43bda395d..07a68f5a546c 100644 --- a/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/RestOperations/WorkspacesRestOperations.cs +++ b/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/RestOperations/WorkspacesRestOperations.cs @@ -37,6 +37,17 @@ public WorkspacesRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.HealthcareApis/workspaces", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,19 @@ public Response ListBySubscription(string subscriptionId, Cancell } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.HealthcareApis/workspaces", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -177,6 +201,20 @@ public Response ListByResourceGroup(string subscriptionId, string } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workspaceName) + { + 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.HealthcareApis/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); @@ -259,6 +297,20 @@ public Response Get(string subscriptionId, string r } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, HealthcareApisWorkspaceData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.HealthcareApis/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, HealthcareApisWorkspaceData data) { var message = _pipeline.CreateMessage(); @@ -339,6 +391,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, HealthcareApisWorkspacePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.HealthcareApis/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, HealthcareApisWorkspacePatch patch) { var message = _pipeline.CreateMessage(); @@ -417,6 +483,20 @@ public Response Update(string subscriptionId, string resourceGroupName, string w } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string workspaceName) + { + 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.HealthcareApis/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); @@ -489,6 +569,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string w } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -557,6 +645,14 @@ public Response ListBySubscriptionNextPage(string nextLink, strin } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/Generated/HybridIdentityMetadataResource.cs b/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/Generated/HybridIdentityMetadataResource.cs index dbd376df4f6d..db342d3e31ad 100644 --- a/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/Generated/HybridIdentityMetadataResource.cs +++ b/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/Generated/HybridIdentityMetadataResource.cs @@ -285,7 +285,9 @@ public virtual async Task> CreateOr try { var response = await _hybridIdentityMetadataHybridIdentityMetadataRestClient.PutAsync(Id.Parent.Parent, data, cancellationToken).ConfigureAwait(false); - var operation = new HybridContainerServiceArmOperation(Response.FromValue(new HybridIdentityMetadataResource(Client, response), response.GetRawResponse())); + var uri = _hybridIdentityMetadataHybridIdentityMetadataRestClient.CreatePutRequestUri(Id.Parent.Parent, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new HybridContainerServiceArmOperation(Response.FromValue(new HybridIdentityMetadataResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -331,7 +333,9 @@ public virtual ArmOperation CreateOrUpdate(WaitU try { var response = _hybridIdentityMetadataHybridIdentityMetadataRestClient.Put(Id.Parent.Parent, data, cancellationToken); - var operation = new HybridContainerServiceArmOperation(Response.FromValue(new HybridIdentityMetadataResource(Client, response), response.GetRawResponse())); + var uri = _hybridIdentityMetadataHybridIdentityMetadataRestClient.CreatePutRequestUri(Id.Parent.Parent, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new HybridContainerServiceArmOperation(Response.FromValue(new HybridIdentityMetadataResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/Generated/LongRunningOperation/HybridContainerServiceArmOperation.cs b/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/Generated/LongRunningOperation/HybridContainerServiceArmOperation.cs index ccd4dff322b7..878ba9d131dd 100644 --- a/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/Generated/LongRunningOperation/HybridContainerServiceArmOperation.cs +++ b/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/Generated/LongRunningOperation/HybridContainerServiceArmOperation.cs @@ -20,21 +20,24 @@ internal class HybridContainerServiceArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of HybridContainerServiceArmOperation for mocking. protected HybridContainerServiceArmOperation() { } - internal HybridContainerServiceArmOperation(Response response) + internal HybridContainerServiceArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal HybridContainerServiceArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "HybridContainerServiceArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal HybridContainerServiceArmOperation(ClientDiagnostics clientDiagnostics, public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/Generated/LongRunningOperation/HybridContainerServiceArmOperationOfT.cs b/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/Generated/LongRunningOperation/HybridContainerServiceArmOperationOfT.cs index 7ddd96ce9cfc..5a491e6d5e80 100644 --- a/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/Generated/LongRunningOperation/HybridContainerServiceArmOperationOfT.cs +++ b/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/Generated/LongRunningOperation/HybridContainerServiceArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class HybridContainerServiceArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of HybridContainerServiceArmOperation for mocking. protected HybridContainerServiceArmOperation() { } - internal HybridContainerServiceArmOperation(Response response) + internal HybridContainerServiceArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal HybridContainerServiceArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "HybridContainerServiceArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal HybridContainerServiceArmOperation(IOperationSource source, ClientDi public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/Generated/Models/HybridContainerServiceAgentPoolResource.Serialization.cs b/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/Generated/Models/HybridContainerServiceAgentPoolResource.Serialization.cs new file mode 100644 index 000000000000..fc403ec16ae0 --- /dev/null +++ b/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/Generated/Models/HybridContainerServiceAgentPoolResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.HybridContainerService +{ + public partial class HybridContainerServiceAgentPoolResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + HybridContainerServiceAgentPoolData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + HybridContainerServiceAgentPoolData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/Generated/Models/HybridContainerServiceVirtualNetworkResource.Serialization.cs b/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/Generated/Models/HybridContainerServiceVirtualNetworkResource.Serialization.cs new file mode 100644 index 000000000000..e83fb6e8062c --- /dev/null +++ b/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/Generated/Models/HybridContainerServiceVirtualNetworkResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.HybridContainerService +{ + public partial class HybridContainerServiceVirtualNetworkResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + HybridContainerServiceVirtualNetworkData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + HybridContainerServiceVirtualNetworkData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/Generated/Models/HybridContainerServiceVmSkuResource.Serialization.cs b/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/Generated/Models/HybridContainerServiceVmSkuResource.Serialization.cs new file mode 100644 index 000000000000..50abd1b1b0f0 --- /dev/null +++ b/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/Generated/Models/HybridContainerServiceVmSkuResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.HybridContainerService +{ + public partial class HybridContainerServiceVmSkuResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + HybridContainerServiceVmSkuData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + HybridContainerServiceVmSkuData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/Generated/Models/HybridIdentityMetadataResource.Serialization.cs b/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/Generated/Models/HybridIdentityMetadataResource.Serialization.cs new file mode 100644 index 000000000000..f4fdec03fe38 --- /dev/null +++ b/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/Generated/Models/HybridIdentityMetadataResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.HybridContainerService +{ + public partial class HybridIdentityMetadataResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + HybridIdentityMetadataData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + HybridIdentityMetadataData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/Generated/Models/KubernetesVersionProfileResource.Serialization.cs b/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/Generated/Models/KubernetesVersionProfileResource.Serialization.cs new file mode 100644 index 000000000000..c163a669df4e --- /dev/null +++ b/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/Generated/Models/KubernetesVersionProfileResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.HybridContainerService +{ + public partial class KubernetesVersionProfileResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + KubernetesVersionProfileData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + KubernetesVersionProfileData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/Generated/Models/ProvisionedClusterResource.Serialization.cs b/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/Generated/Models/ProvisionedClusterResource.Serialization.cs new file mode 100644 index 000000000000..3a3780c9d04d --- /dev/null +++ b/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/Generated/Models/ProvisionedClusterResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.HybridContainerService +{ + public partial class ProvisionedClusterResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ProvisionedClusterData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ProvisionedClusterData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/Generated/Models/ProvisionedClusterUpgradeProfileResource.Serialization.cs b/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/Generated/Models/ProvisionedClusterUpgradeProfileResource.Serialization.cs new file mode 100644 index 000000000000..bf23177afeee --- /dev/null +++ b/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/Generated/Models/ProvisionedClusterUpgradeProfileResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.HybridContainerService +{ + public partial class ProvisionedClusterUpgradeProfileResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ProvisionedClusterUpgradeProfileData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ProvisionedClusterUpgradeProfileData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/Generated/RestOperations/AgentPoolRestOperations.cs b/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/Generated/RestOperations/AgentPoolRestOperations.cs index 25d91f2722b6..1e20eb084f74 100644 --- a/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/Generated/RestOperations/AgentPoolRestOperations.cs +++ b/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/Generated/RestOperations/AgentPoolRestOperations.cs @@ -37,6 +37,18 @@ public AgentPoolRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string connectedClusterResourceUri, string agentPoolName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(connectedClusterResourceUri, false); + uri.AppendPath("/providers/Microsoft.HybridContainerService/provisionedClusterInstances/default/agentPools/", false); + uri.AppendPath(agentPoolName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string connectedClusterResourceUri, string agentPoolName) { var message = _pipeline.CreateMessage(); @@ -113,6 +125,18 @@ public Response Get(string connectedCluster } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string connectedClusterResourceUri, string agentPoolName, HybridContainerServiceAgentPoolData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(connectedClusterResourceUri, false); + uri.AppendPath("/providers/Microsoft.HybridContainerService/provisionedClusterInstances/default/agentPools/", false); + uri.AppendPath(agentPoolName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string connectedClusterResourceUri, string agentPoolName, HybridContainerServiceAgentPoolData data) { var message = _pipeline.CreateMessage(); @@ -185,6 +209,18 @@ public Response CreateOrUpdate(string connectedClusterResourceUri, string agentP } } + internal RequestUriBuilder CreateDeleteRequestUri(string connectedClusterResourceUri, string agentPoolName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(connectedClusterResourceUri, false); + uri.AppendPath("/providers/Microsoft.HybridContainerService/provisionedClusterInstances/default/agentPools/", false); + uri.AppendPath(agentPoolName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string connectedClusterResourceUri, string agentPoolName) { var message = _pipeline.CreateMessage(); @@ -249,6 +285,17 @@ public Response Delete(string connectedClusterResourceUri, string agentPoolName, } } + internal RequestUriBuilder CreateListByProvisionedClusterRequestUri(string connectedClusterResourceUri) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(connectedClusterResourceUri, false); + uri.AppendPath("/providers/Microsoft.HybridContainerService/provisionedClusterInstances/default/agentPools", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByProvisionedClusterRequest(string connectedClusterResourceUri) { var message = _pipeline.CreateMessage(); @@ -314,6 +361,14 @@ public Response ListByProvisionedCluster(string connectedCl } } + internal RequestUriBuilder CreateListByProvisionedClusterNextPageRequestUri(string nextLink, string connectedClusterResourceUri) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByProvisionedClusterNextPageRequest(string nextLink, string connectedClusterResourceUri) { var message = _pipeline.CreateMessage(); diff --git a/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/Generated/RestOperations/HybridContainerServiceRestOperations.cs b/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/Generated/RestOperations/HybridContainerServiceRestOperations.cs index 795d711cc1e4..e0d3a68a7373 100644 --- a/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/Generated/RestOperations/HybridContainerServiceRestOperations.cs +++ b/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/Generated/RestOperations/HybridContainerServiceRestOperations.cs @@ -36,6 +36,17 @@ public HybridContainerServiceRestOperations(HttpPipeline pipeline, string applic _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetKubernetesVersionsRequestUri(string customLocationResourceUri) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(customLocationResourceUri, false); + uri.AppendPath("/providers/Microsoft.HybridContainerService/kubernetesVersions/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetKubernetesVersionsRequest(string customLocationResourceUri) { var message = _pipeline.CreateMessage(); @@ -105,6 +116,17 @@ public Response GetKubernetesVersions(string custo } } + internal RequestUriBuilder CreatePutKubernetesVersionsRequestUri(string customLocationResourceUri, KubernetesVersionProfileData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(customLocationResourceUri, false); + uri.AppendPath("/providers/Microsoft.HybridContainerService/kubernetesVersions/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreatePutKubernetesVersionsRequest(string customLocationResourceUri, KubernetesVersionProfileData data) { var message = _pipeline.CreateMessage(); @@ -170,6 +192,17 @@ public Response PutKubernetesVersions(string customLocationResourceUri, Kubernet } } + internal RequestUriBuilder CreateDeleteKubernetesVersionsRequestUri(string customLocationResourceUri) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(customLocationResourceUri, false); + uri.AppendPath("/providers/Microsoft.HybridContainerService/kubernetesVersions/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteKubernetesVersionsRequest(string customLocationResourceUri) { var message = _pipeline.CreateMessage(); @@ -227,6 +260,17 @@ public Response DeleteKubernetesVersions(string customLocationResourceUri, Cance } } + internal RequestUriBuilder CreateGetVmSkusRequestUri(string customLocationResourceUri) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(customLocationResourceUri, false); + uri.AppendPath("/providers/Microsoft.HybridContainerService/skus/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetVmSkusRequest(string customLocationResourceUri) { var message = _pipeline.CreateMessage(); @@ -296,6 +340,17 @@ public Response GetVmSkus(string customLocation } } + internal RequestUriBuilder CreatePutVmSkusRequestUri(string customLocationResourceUri, HybridContainerServiceVmSkuData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(customLocationResourceUri, false); + uri.AppendPath("/providers/Microsoft.HybridContainerService/skus/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreatePutVmSkusRequest(string customLocationResourceUri, HybridContainerServiceVmSkuData data) { var message = _pipeline.CreateMessage(); @@ -361,6 +416,17 @@ public Response PutVmSkus(string customLocationResourceUri, HybridContainerServi } } + internal RequestUriBuilder CreateDeleteVmSkusRequestUri(string customLocationResourceUri) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(customLocationResourceUri, false); + uri.AppendPath("/providers/Microsoft.HybridContainerService/skus/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteVmSkusRequest(string customLocationResourceUri) { var message = _pipeline.CreateMessage(); diff --git a/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/Generated/RestOperations/HybridIdentityMetadataRestOperations.cs b/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/Generated/RestOperations/HybridIdentityMetadataRestOperations.cs index 8b3b565272dc..aa9f3e35a04a 100644 --- a/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/Generated/RestOperations/HybridIdentityMetadataRestOperations.cs +++ b/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/Generated/RestOperations/HybridIdentityMetadataRestOperations.cs @@ -37,6 +37,17 @@ public HybridIdentityMetadataRestOperations(HttpPipeline pipeline, string applic _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreatePutRequestUri(string connectedClusterResourceUri, HybridIdentityMetadataData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(connectedClusterResourceUri, false); + uri.AppendPath("/providers/Microsoft.HybridContainerService/provisionedClusterInstances/default/hybridIdentityMetadata/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreatePutRequest(string connectedClusterResourceUri, HybridIdentityMetadataData data) { var message = _pipeline.CreateMessage(); @@ -112,6 +123,17 @@ public Response Put(string connectedClusterResourceU } } + internal RequestUriBuilder CreateGetRequestUri(string connectedClusterResourceUri) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(connectedClusterResourceUri, false); + uri.AppendPath("/providers/Microsoft.HybridContainerService/provisionedClusterInstances/default/hybridIdentityMetadata/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string connectedClusterResourceUri) { var message = _pipeline.CreateMessage(); @@ -181,6 +203,17 @@ public Response Get(string connectedClusterResourceU } } + internal RequestUriBuilder CreateDeleteRequestUri(string connectedClusterResourceUri) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(connectedClusterResourceUri, false); + uri.AppendPath("/providers/Microsoft.HybridContainerService/provisionedClusterInstances/default/hybridIdentityMetadata/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string connectedClusterResourceUri) { var message = _pipeline.CreateMessage(); @@ -238,6 +271,17 @@ public Response Delete(string connectedClusterResourceUri, CancellationToken can } } + internal RequestUriBuilder CreateListByClusterRequestUri(string connectedClusterResourceUri) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(connectedClusterResourceUri, false); + uri.AppendPath("/providers/Microsoft.HybridContainerService/provisionedClusterInstances/default/hybridIdentityMetadata", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByClusterRequest(string connectedClusterResourceUri) { var message = _pipeline.CreateMessage(); @@ -303,6 +347,14 @@ public Response ListByCluster(string connectedCluste } } + internal RequestUriBuilder CreateListByClusterNextPageRequestUri(string nextLink, string connectedClusterResourceUri) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByClusterNextPageRequest(string nextLink, string connectedClusterResourceUri) { var message = _pipeline.CreateMessage(); diff --git a/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/Generated/RestOperations/ProvisionedClusterInstancesRestOperations.cs b/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/Generated/RestOperations/ProvisionedClusterInstancesRestOperations.cs index decfcfcd254f..28bf9c26ee1a 100644 --- a/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/Generated/RestOperations/ProvisionedClusterInstancesRestOperations.cs +++ b/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/Generated/RestOperations/ProvisionedClusterInstancesRestOperations.cs @@ -37,6 +37,17 @@ public ProvisionedClusterInstancesRestOperations(HttpPipeline pipeline, string a _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string connectedClusterResourceUri) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(connectedClusterResourceUri, false); + uri.AppendPath("/providers/Microsoft.HybridContainerService/provisionedClusterInstances/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string connectedClusterResourceUri) { var message = _pipeline.CreateMessage(); @@ -106,6 +117,17 @@ public Response Get(string connectedClusterResourceUri, } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string connectedClusterResourceUri, ProvisionedClusterData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(connectedClusterResourceUri, false); + uri.AppendPath("/providers/Microsoft.HybridContainerService/provisionedClusterInstances/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string connectedClusterResourceUri, ProvisionedClusterData data) { var message = _pipeline.CreateMessage(); @@ -171,6 +193,17 @@ public Response CreateOrUpdate(string connectedClusterResourceUri, ProvisionedCl } } + internal RequestUriBuilder CreateDeleteRequestUri(string connectedClusterResourceUri) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(connectedClusterResourceUri, false); + uri.AppendPath("/providers/Microsoft.HybridContainerService/provisionedClusterInstances/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string connectedClusterResourceUri) { var message = _pipeline.CreateMessage(); @@ -228,6 +261,17 @@ public Response Delete(string connectedClusterResourceUri, CancellationToken can } } + internal RequestUriBuilder CreateListRequestUri(string connectedClusterResourceUri) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(connectedClusterResourceUri, false); + uri.AppendPath("/providers/Microsoft.HybridContainerService/provisionedClusterInstances", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string connectedClusterResourceUri) { var message = _pipeline.CreateMessage(); @@ -293,6 +337,17 @@ public Response List(string connectedClusterResour } } + internal RequestUriBuilder CreateGetUpgradeProfileRequestUri(string connectedClusterResourceUri) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(connectedClusterResourceUri, false); + uri.AppendPath("/providers/Microsoft.HybridContainerService/provisionedClusterInstances/default/upgradeProfiles/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetUpgradeProfileRequest(string connectedClusterResourceUri) { var message = _pipeline.CreateMessage(); @@ -362,6 +417,17 @@ public Response GetUpgradeProfile(string c } } + internal RequestUriBuilder CreateListUserKubeconfigRequestUri(string connectedClusterResourceUri) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(connectedClusterResourceUri, false); + uri.AppendPath("/providers/Microsoft.HybridContainerService/provisionedClusterInstances/default/listUserKubeconfig", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListUserKubeconfigRequest(string connectedClusterResourceUri) { var message = _pipeline.CreateMessage(); @@ -419,6 +485,17 @@ public Response ListUserKubeconfig(string connectedClusterResourceUri, Cancellat } } + internal RequestUriBuilder CreateListAdminKubeconfigRequestUri(string connectedClusterResourceUri) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(connectedClusterResourceUri, false); + uri.AppendPath("/providers/Microsoft.HybridContainerService/provisionedClusterInstances/default/listAdminKubeconfig", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListAdminKubeconfigRequest(string connectedClusterResourceUri) { var message = _pipeline.CreateMessage(); @@ -476,6 +553,14 @@ public Response ListAdminKubeconfig(string connectedClusterResourceUri, Cancella } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string connectedClusterResourceUri) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string connectedClusterResourceUri) { var message = _pipeline.CreateMessage(); diff --git a/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/Generated/RestOperations/VirtualNetworksRestOperations.cs b/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/Generated/RestOperations/VirtualNetworksRestOperations.cs index 00043a1d8eb8..b7ec871db34e 100644 --- a/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/Generated/RestOperations/VirtualNetworksRestOperations.cs +++ b/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/Generated/RestOperations/VirtualNetworksRestOperations.cs @@ -37,6 +37,20 @@ public VirtualNetworksRestOperations(HttpPipeline pipeline, string applicationId _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateRetrieveRequestUri(string subscriptionId, string resourceGroupName, string virtualNetworkName) + { + 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.HybridContainerService/virtualNetworks/", false); + uri.AppendPath(virtualNetworkName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRetrieveRequest(string subscriptionId, string resourceGroupName, string virtualNetworkName) { var message = _pipeline.CreateMessage(); @@ -119,6 +133,20 @@ public Response Retrieve(string subscr } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string virtualNetworkName, HybridContainerServiceVirtualNetworkData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.HybridContainerService/virtualNetworks/", false); + uri.AppendPath(virtualNetworkName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string virtualNetworkName, HybridContainerServiceVirtualNetworkData data) { var message = _pipeline.CreateMessage(); @@ -197,6 +225,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string virtualNetworkName) + { + 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.HybridContainerService/virtualNetworks/", false); + uri.AppendPath(virtualNetworkName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string virtualNetworkName) { var message = _pipeline.CreateMessage(); @@ -267,6 +309,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string v } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string virtualNetworkName, HybridContainerServiceVirtualNetworkPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.HybridContainerService/virtualNetworks/", false); + uri.AppendPath(virtualNetworkName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string virtualNetworkName, HybridContainerServiceVirtualNetworkPatch patch) { var message = _pipeline.CreateMessage(); @@ -345,6 +401,19 @@ public Response Update(string subscriptionId, string resourceGroupName, string v } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.HybridContainerService/virtualNetworks", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -418,6 +487,17 @@ public Response ListByResourceGroup(string subscripti } } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.HybridContainerService/virtualNetworks", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -485,6 +565,14 @@ public Response ListBySubscription(string subscriptio } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -557,6 +645,14 @@ public Response ListByResourceGroupNextPage(string ne } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/HybridComputeMachineResource.cs b/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/HybridComputeMachineResource.cs index b30c0f5026fb..79aa939b829d 100644 --- a/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/HybridComputeMachineResource.cs +++ b/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/HybridComputeMachineResource.cs @@ -355,7 +355,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _hybridComputeMachineMachinesRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new HybridComputeArmOperation(response); + var uri = _hybridComputeMachineMachinesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new HybridComputeArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -397,7 +399,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _hybridComputeMachineMachinesRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); - var operation = new HybridComputeArmOperation(response); + var uri = _hybridComputeMachineMachinesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new HybridComputeArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/HybridComputePrivateLinkScopeCollection.cs b/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/HybridComputePrivateLinkScopeCollection.cs index aa94c11deb99..7dfc5a9825f8 100644 --- a/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/HybridComputePrivateLinkScopeCollection.cs +++ b/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/HybridComputePrivateLinkScopeCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> C try { var response = await _hybridComputePrivateLinkScopePrivateLinkScopesRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, scopeName, data, cancellationToken).ConfigureAwait(false); - var operation = new HybridComputeArmOperation(Response.FromValue(new HybridComputePrivateLinkScopeResource(Client, response), response.GetRawResponse())); + var uri = _hybridComputePrivateLinkScopePrivateLinkScopesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, scopeName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new HybridComputeArmOperation(Response.FromValue(new HybridComputePrivateLinkScopeResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -140,7 +142,9 @@ public virtual ArmOperation CreateOrUpdat try { var response = _hybridComputePrivateLinkScopePrivateLinkScopesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, scopeName, data, cancellationToken); - var operation = new HybridComputeArmOperation(Response.FromValue(new HybridComputePrivateLinkScopeResource(Client, response), response.GetRawResponse())); + var uri = _hybridComputePrivateLinkScopePrivateLinkScopesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, scopeName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new HybridComputeArmOperation(Response.FromValue(new HybridComputePrivateLinkScopeResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/LongRunningOperation/HybridComputeArmOperation.cs b/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/LongRunningOperation/HybridComputeArmOperation.cs index 281bd6853c18..37cc1c9c3e5d 100644 --- a/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/LongRunningOperation/HybridComputeArmOperation.cs +++ b/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/LongRunningOperation/HybridComputeArmOperation.cs @@ -20,21 +20,24 @@ internal class HybridComputeArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of HybridComputeArmOperation for mocking. protected HybridComputeArmOperation() { } - internal HybridComputeArmOperation(Response response) + internal HybridComputeArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal HybridComputeArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "HybridComputeArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal HybridComputeArmOperation(ClientDiagnostics clientDiagnostics, HttpPipe public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/LongRunningOperation/HybridComputeArmOperationOfT.cs b/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/LongRunningOperation/HybridComputeArmOperationOfT.cs index 2590906b7afc..76af4169ea73 100644 --- a/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/LongRunningOperation/HybridComputeArmOperationOfT.cs +++ b/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/LongRunningOperation/HybridComputeArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class HybridComputeArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of HybridComputeArmOperation for mocking. protected HybridComputeArmOperation() { } - internal HybridComputeArmOperation(Response response) + internal HybridComputeArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal HybridComputeArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "HybridComputeArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal HybridComputeArmOperation(IOperationSource source, ClientDiagnostics public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/HybridComputeExtensionValueResource.Serialization.cs b/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/HybridComputeExtensionValueResource.Serialization.cs new file mode 100644 index 000000000000..3ba468309e3a --- /dev/null +++ b/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/HybridComputeExtensionValueResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.HybridCompute +{ + public partial class HybridComputeExtensionValueResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + HybridComputeExtensionValueData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + HybridComputeExtensionValueData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/HybridComputeMachineExtensionResource.Serialization.cs b/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/HybridComputeMachineExtensionResource.Serialization.cs new file mode 100644 index 000000000000..4b57fbdbd862 --- /dev/null +++ b/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/HybridComputeMachineExtensionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.HybridCompute +{ + public partial class HybridComputeMachineExtensionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + HybridComputeMachineExtensionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + HybridComputeMachineExtensionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/HybridComputeMachineResource.Serialization.cs b/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/HybridComputeMachineResource.Serialization.cs new file mode 100644 index 000000000000..c7d32b674d58 --- /dev/null +++ b/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/HybridComputeMachineResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.HybridCompute +{ + public partial class HybridComputeMachineResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + HybridComputeMachineData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + HybridComputeMachineData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/HybridComputePrivateEndpointConnectionResource.Serialization.cs b/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/HybridComputePrivateEndpointConnectionResource.Serialization.cs new file mode 100644 index 000000000000..fade24fba553 --- /dev/null +++ b/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/HybridComputePrivateEndpointConnectionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.HybridCompute +{ + public partial class HybridComputePrivateEndpointConnectionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + HybridComputePrivateEndpointConnectionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + HybridComputePrivateEndpointConnectionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/HybridComputePrivateLinkResource.Serialization.cs b/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/HybridComputePrivateLinkResource.Serialization.cs new file mode 100644 index 000000000000..fdbe74798f1d --- /dev/null +++ b/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/HybridComputePrivateLinkResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.HybridCompute +{ + public partial class HybridComputePrivateLinkResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + HybridComputePrivateLinkResourceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + HybridComputePrivateLinkResourceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/HybridComputePrivateLinkScopeResource.Serialization.cs b/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/HybridComputePrivateLinkScopeResource.Serialization.cs new file mode 100644 index 000000000000..7e0d7b67c66c --- /dev/null +++ b/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/HybridComputePrivateLinkScopeResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.HybridCompute +{ + public partial class HybridComputePrivateLinkScopeResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + HybridComputePrivateLinkScopeData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + HybridComputePrivateLinkScopeData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/MachineRunCommandResource.Serialization.cs b/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/MachineRunCommandResource.Serialization.cs new file mode 100644 index 000000000000..2ec8cde25614 --- /dev/null +++ b/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/MachineRunCommandResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.HybridCompute +{ + public partial class MachineRunCommandResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MachineRunCommandData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MachineRunCommandData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/RestOperations/ExtensionMetadataRestOperations.cs b/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/RestOperations/ExtensionMetadataRestOperations.cs index 43e20db43407..3a98470a2b8b 100644 --- a/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/RestOperations/ExtensionMetadataRestOperations.cs +++ b/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/RestOperations/ExtensionMetadataRestOperations.cs @@ -37,6 +37,24 @@ public ExtensionMetadataRestOperations(HttpPipeline pipeline, string application _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, AzureLocation location, string publisher, string extensionType, string version) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.HybridCompute/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/publishers/", false); + uri.AppendPath(publisher, true); + uri.AppendPath("/extensionTypes/", false); + uri.AppendPath(extensionType, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(version, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, AzureLocation location, string publisher, string extensionType, string version) { var message = _pipeline.CreateMessage(); @@ -129,6 +147,23 @@ public Response Get(string subscriptionId, Azur } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, AzureLocation location, string publisher, string extensionType) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.HybridCompute/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/publishers/", false); + uri.AppendPath(publisher, true); + uri.AppendPath("/extensionTypes/", false); + uri.AppendPath(extensionType, true); + uri.AppendPath("/versions", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, AzureLocation location, string publisher, string extensionType) { var message = _pipeline.CreateMessage(); diff --git a/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/RestOperations/HybridComputeManagementRestOperations.cs b/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/RestOperations/HybridComputeManagementRestOperations.cs index 7ba1941fbc11..6db6304b7d98 100644 --- a/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/RestOperations/HybridComputeManagementRestOperations.cs +++ b/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/RestOperations/HybridComputeManagementRestOperations.cs @@ -36,6 +36,21 @@ public HybridComputeManagementRestOperations(HttpPipeline pipeline, string appli _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateUpgradeExtensionsRequestUri(string subscriptionId, string resourceGroupName, string machineName, MachineExtensionUpgrade extensionUpgradeParameters) + { + 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.HybridCompute/machines/", false); + uri.AppendPath(machineName, true); + uri.AppendPath("/upgradeExtensions", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpgradeExtensionsRequest(string subscriptionId, string resourceGroupName, string machineName, MachineExtensionUpgrade extensionUpgradeParameters) { var message = _pipeline.CreateMessage(); diff --git a/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/RestOperations/MachineExtensionsRestOperations.cs b/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/RestOperations/MachineExtensionsRestOperations.cs index d594f4c335da..5e18a684aa68 100644 --- a/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/RestOperations/MachineExtensionsRestOperations.cs +++ b/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/RestOperations/MachineExtensionsRestOperations.cs @@ -37,6 +37,22 @@ public MachineExtensionsRestOperations(HttpPipeline pipeline, string application _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string machineName, string extensionName, HybridComputeMachineExtensionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.HybridCompute/machines/", false); + uri.AppendPath(machineName, true); + uri.AppendPath("/extensions/", false); + uri.AppendPath(extensionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string machineName, string extensionName, HybridComputeMachineExtensionData data) { var message = _pipeline.CreateMessage(); @@ -121,6 +137,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string machineName, string extensionName, HybridComputeMachineExtensionPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.HybridCompute/machines/", false); + uri.AppendPath(machineName, true); + uri.AppendPath("/extensions/", false); + uri.AppendPath(extensionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string machineName, string extensionName, HybridComputeMachineExtensionPatch patch) { var message = _pipeline.CreateMessage(); @@ -205,6 +237,22 @@ public Response Update(string subscriptionId, string resourceGroupName, string m } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string machineName, string extensionName) + { + 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.HybridCompute/machines/", false); + uri.AppendPath(machineName, true); + uri.AppendPath("/extensions/", false); + uri.AppendPath(extensionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string machineName, string extensionName) { var message = _pipeline.CreateMessage(); @@ -283,6 +331,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string m } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string machineName, string extensionName) + { + 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.HybridCompute/machines/", false); + uri.AppendPath(machineName, true); + uri.AppendPath("/extensions/", false); + uri.AppendPath(extensionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string machineName, string extensionName) { var message = _pipeline.CreateMessage(); @@ -371,6 +435,25 @@ public Response Get(string subscriptionId, st } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string machineName, string expand) + { + 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.HybridCompute/machines/", false); + uri.AppendPath(machineName, true); + uri.AppendPath("/extensions", false); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string machineName, string expand) { var message = _pipeline.CreateMessage(); @@ -456,6 +539,14 @@ public Response List(string subscriptionId, string } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string machineName, string expand) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string machineName, string expand) { var message = _pipeline.CreateMessage(); diff --git a/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/RestOperations/MachineRunCommandsRestOperations.cs b/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/RestOperations/MachineRunCommandsRestOperations.cs index 44f6a60dec75..01b43be3b9ac 100644 --- a/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/RestOperations/MachineRunCommandsRestOperations.cs +++ b/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/RestOperations/MachineRunCommandsRestOperations.cs @@ -37,6 +37,22 @@ public MachineRunCommandsRestOperations(HttpPipeline pipeline, string applicatio _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string machineName, string runCommandName, MachineRunCommandData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.HybridCompute/machines/", false); + uri.AppendPath(machineName, true); + uri.AppendPath("/runCommands/", false); + uri.AppendPath(runCommandName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string machineName, string runCommandName, MachineRunCommandData data) { var message = _pipeline.CreateMessage(); @@ -121,6 +137,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string machineName, string runCommandName) + { + 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.HybridCompute/machines/", false); + uri.AppendPath(machineName, true); + uri.AppendPath("/runCommands/", false); + uri.AppendPath(runCommandName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string machineName, string runCommandName) { var message = _pipeline.CreateMessage(); @@ -199,6 +231,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string m } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string machineName, string runCommandName) + { + 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.HybridCompute/machines/", false); + uri.AppendPath(machineName, true); + uri.AppendPath("/runCommands/", false); + uri.AppendPath(runCommandName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string machineName, string runCommandName) { var message = _pipeline.CreateMessage(); @@ -287,6 +335,25 @@ public Response Get(string subscriptionId, string resourc } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string machineName, string expand) + { + 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.HybridCompute/machines/", false); + uri.AppendPath(machineName, true); + uri.AppendPath("/runCommands", false); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string machineName, string expand) { var message = _pipeline.CreateMessage(); @@ -372,6 +439,14 @@ public Response List(string subscriptionId, string } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string machineName, string expand) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string machineName, string expand) { var message = _pipeline.CreateMessage(); diff --git a/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/RestOperations/MachinesRestOperations.cs b/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/RestOperations/MachinesRestOperations.cs index 33673cbbaf19..3ed7d3e20f04 100644 --- a/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/RestOperations/MachinesRestOperations.cs +++ b/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/RestOperations/MachinesRestOperations.cs @@ -37,6 +37,20 @@ public MachinesRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string machineName, HybridComputeMachinePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.HybridCompute/machines/", false); + uri.AppendPath(machineName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string machineName, HybridComputeMachinePatch patch) { var message = _pipeline.CreateMessage(); @@ -123,6 +137,20 @@ public Response Update(string subscriptionId, string r } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string machineName) + { + 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.HybridCompute/machines/", false); + uri.AppendPath(machineName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string machineName) { var message = _pipeline.CreateMessage(); @@ -193,6 +221,24 @@ public Response Delete(string subscriptionId, string resourceGroupName, string m } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string machineName, string expand) + { + 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.HybridCompute/machines/", false); + uri.AppendPath(machineName, true); + uri.AppendQuery("api-version", _apiVersion, true); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string machineName, string expand) { var message = _pipeline.CreateMessage(); @@ -281,6 +327,21 @@ public Response Get(string subscriptionId, string reso } } + internal RequestUriBuilder CreateAssessPatchesRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.HybridCompute/machines/", false); + uri.AppendPath(name, true); + uri.AppendPath("/assessPatches", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateAssessPatchesRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -352,6 +413,21 @@ public Response AssessPatches(string subscriptionId, string resourceGroupName, s } } + internal RequestUriBuilder CreateInstallPatchesRequestUri(string subscriptionId, string resourceGroupName, string name, MachineInstallPatchesContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.HybridCompute/machines/", false); + uri.AppendPath(name, true); + uri.AppendPath("/installPatches", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateInstallPatchesRequest(string subscriptionId, string resourceGroupName, string name, MachineInstallPatchesContent content) { var message = _pipeline.CreateMessage(); @@ -431,6 +507,23 @@ public Response InstallPatches(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName, string expand) + { + 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.HybridCompute/machines", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName, string expand) { var message = _pipeline.CreateMessage(); @@ -510,6 +603,17 @@ public Response ListByResourceGroup(string subscriptionId, st } } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.HybridCompute/machines", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -577,6 +681,14 @@ public Response ListBySubscription(string subscriptionId, Can } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string expand) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string expand) { var message = _pipeline.CreateMessage(); @@ -651,6 +763,14 @@ public Response ListByResourceGroupNextPage(string nextLink, } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/RestOperations/NetworkProfileRestOperations.cs b/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/RestOperations/NetworkProfileRestOperations.cs index 4713b1baa999..19e2b326a93a 100644 --- a/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/RestOperations/NetworkProfileRestOperations.cs +++ b/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/RestOperations/NetworkProfileRestOperations.cs @@ -37,6 +37,21 @@ public NetworkProfileRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string machineName) + { + 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.HybridCompute/machines/", false); + uri.AppendPath(machineName, true); + uri.AppendPath("/networkProfile", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string machineName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs b/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs index aeead7f1e24a..c0eb27c716e9 100644 --- a/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs +++ b/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs @@ -37,6 +37,22 @@ public PrivateEndpointConnectionsRestOperations(HttpPipeline pipeline, string ap _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string scopeName, string privateEndpointConnectionName) + { + 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.HybridCompute/privateLinkScopes/", false); + uri.AppendPath(scopeName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string scopeName, string privateEndpointConnectionName) { var message = _pipeline.CreateMessage(); @@ -125,6 +141,22 @@ public Response Get(string subscript } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string scopeName, string privateEndpointConnectionName, HybridComputePrivateEndpointConnectionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.HybridCompute/privateLinkScopes/", false); + uri.AppendPath(scopeName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string scopeName, string privateEndpointConnectionName, HybridComputePrivateEndpointConnectionData data) { var message = _pipeline.CreateMessage(); @@ -209,6 +241,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string scopeName, string privateEndpointConnectionName) + { + 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.HybridCompute/privateLinkScopes/", false); + uri.AppendPath(scopeName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string scopeName, string privateEndpointConnectionName) { var message = _pipeline.CreateMessage(); @@ -287,6 +335,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListByPrivateLinkScopeRequestUri(string subscriptionId, string resourceGroupName, string scopeName) + { + 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.HybridCompute/privateLinkScopes/", false); + uri.AppendPath(scopeName, true); + uri.AppendPath("/privateEndpointConnections", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByPrivateLinkScopeRequest(string subscriptionId, string resourceGroupName, string scopeName) { var message = _pipeline.CreateMessage(); @@ -366,6 +429,14 @@ public Response ListByPrivateL } } + internal RequestUriBuilder CreateListByPrivateLinkScopeNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string scopeName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByPrivateLinkScopeNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string scopeName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs b/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs index 2192e2cddbe6..f74e05d3df2a 100644 --- a/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs +++ b/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs @@ -37,6 +37,21 @@ public PrivateLinkResourcesRestOperations(HttpPipeline pipeline, string applicat _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByPrivateLinkScopeRequestUri(string subscriptionId, string resourceGroupName, string scopeName) + { + 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.HybridCompute/privateLinkScopes/", false); + uri.AppendPath(scopeName, true); + uri.AppendPath("/privateLinkResources", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByPrivateLinkScopeRequest(string subscriptionId, string resourceGroupName, string scopeName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByPrivateLinkSco } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string scopeName, string groupName) + { + 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.HybridCompute/privateLinkScopes/", false); + uri.AppendPath(scopeName, true); + uri.AppendPath("/privateLinkResources/", false); + uri.AppendPath(groupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string scopeName, string groupName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,14 @@ public Response Get(string subscriptionId, } } + internal RequestUriBuilder CreateListByPrivateLinkScopeNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string scopeName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByPrivateLinkScopeNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string scopeName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/RestOperations/PrivateLinkScopesRestOperations.cs b/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/RestOperations/PrivateLinkScopesRestOperations.cs index 30732b4c5deb..6cc3132fff2a 100644 --- a/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/RestOperations/PrivateLinkScopesRestOperations.cs +++ b/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/RestOperations/PrivateLinkScopesRestOperations.cs @@ -37,6 +37,17 @@ public PrivateLinkScopesRestOperations(HttpPipeline pipeline, string application _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.HybridCompute/privateLinkScopes", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,19 @@ public Response List(string subscriptio } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.HybridCompute/privateLinkScopes", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -177,6 +201,20 @@ public Response ListByResourceGroup(str } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string scopeName) + { + 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.HybridCompute/privateLinkScopes/", false); + uri.AppendPath(scopeName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string scopeName) { var message = _pipeline.CreateMessage(); @@ -249,6 +287,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string scopeName) + { + 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.HybridCompute/privateLinkScopes/", false); + uri.AppendPath(scopeName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string scopeName) { var message = _pipeline.CreateMessage(); @@ -331,6 +383,20 @@ public Response Get(string subscriptionId, st } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string scopeName, HybridComputePrivateLinkScopeData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.HybridCompute/privateLinkScopes/", false); + uri.AppendPath(scopeName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string scopeName, HybridComputePrivateLinkScopeData data) { var message = _pipeline.CreateMessage(); @@ -419,6 +485,20 @@ public Response CreateOrUpdate(string subscri } } + internal RequestUriBuilder CreateUpdateTagsRequestUri(string subscriptionId, string resourceGroupName, string scopeName, HybridComputePrivateLinkScopePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.HybridCompute/privateLinkScopes/", false); + uri.AppendPath(scopeName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateTagsRequest(string subscriptionId, string resourceGroupName, string scopeName, HybridComputePrivateLinkScopePatch patch) { var message = _pipeline.CreateMessage(); @@ -505,6 +585,20 @@ public Response UpdateTags(string subscriptio } } + internal RequestUriBuilder CreateGetValidationDetailsRequestUri(string subscriptionId, AzureLocation location, string privateLinkScopeId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.HybridCompute/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/privateLinkScopes/", false); + uri.AppendPath(privateLinkScopeId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetValidationDetailsRequest(string subscriptionId, AzureLocation location, string privateLinkScopeId) { var message = _pipeline.CreateMessage(); @@ -581,6 +675,21 @@ public Response GetValidationDetails(string s } } + internal RequestUriBuilder CreateGetValidationDetailsForMachineRequestUri(string subscriptionId, string resourceGroupName, string machineName) + { + 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.HybridCompute/machines/", false); + uri.AppendPath(machineName, true); + uri.AppendPath("/privateLinkScopes/current", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetValidationDetailsForMachineRequest(string subscriptionId, string resourceGroupName, string machineName) { var message = _pipeline.CreateMessage(); @@ -660,6 +769,14 @@ public Response GetValidationDetailsForMachin } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -728,6 +845,14 @@ public Response ListNextPage(string nex } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/EndpointResource.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/EndpointResource.cs index 436e00b478db..05ada2f2823c 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/EndpointResource.cs +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/EndpointResource.cs @@ -199,7 +199,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _endpointResourceEndpointsRestClient.DeleteAsync(Id.Parent, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new HybridConnectivityArmOperation(response); + var uri = _endpointResourceEndpointsRestClient.CreateDeleteRequestUri(Id.Parent, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new HybridConnectivityArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -241,7 +243,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _endpointResourceEndpointsRestClient.Delete(Id.Parent, Id.Name, cancellationToken); - var operation = new HybridConnectivityArmOperation(response); + var uri = _endpointResourceEndpointsRestClient.CreateDeleteRequestUri(Id.Parent, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new HybridConnectivityArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/EndpointResourceCollection.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/EndpointResourceCollection.cs index cb1ed5040980..55a70b669726 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/EndpointResourceCollection.cs +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/EndpointResourceCollection.cs @@ -79,7 +79,9 @@ public virtual async Task> CreateOrUpdateAsync(Wa try { var response = await _endpointResourceEndpointsRestClient.CreateOrUpdateAsync(Id, endpointName, data, cancellationToken).ConfigureAwait(false); - var operation = new HybridConnectivityArmOperation(Response.FromValue(new EndpointResource(Client, response), response.GetRawResponse())); + var uri = _endpointResourceEndpointsRestClient.CreateCreateOrUpdateRequestUri(Id, endpointName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new HybridConnectivityArmOperation(Response.FromValue(new EndpointResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -127,7 +129,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil try { var response = _endpointResourceEndpointsRestClient.CreateOrUpdate(Id, endpointName, data, cancellationToken); - var operation = new HybridConnectivityArmOperation(Response.FromValue(new EndpointResource(Client, response), response.GetRawResponse())); + var uri = _endpointResourceEndpointsRestClient.CreateCreateOrUpdateRequestUri(Id, endpointName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new HybridConnectivityArmOperation(Response.FromValue(new EndpointResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/LongRunningOperation/HybridConnectivityArmOperation.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/LongRunningOperation/HybridConnectivityArmOperation.cs index d8205ff059db..27e9048ed09d 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/LongRunningOperation/HybridConnectivityArmOperation.cs +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/LongRunningOperation/HybridConnectivityArmOperation.cs @@ -20,21 +20,24 @@ internal class HybridConnectivityArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of HybridConnectivityArmOperation for mocking. protected HybridConnectivityArmOperation() { } - internal HybridConnectivityArmOperation(Response response) + internal HybridConnectivityArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal HybridConnectivityArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "HybridConnectivityArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal HybridConnectivityArmOperation(ClientDiagnostics clientDiagnostics, Htt public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/LongRunningOperation/HybridConnectivityArmOperationOfT.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/LongRunningOperation/HybridConnectivityArmOperationOfT.cs index 3097659d8ba2..3e84e5f67144 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/LongRunningOperation/HybridConnectivityArmOperationOfT.cs +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/LongRunningOperation/HybridConnectivityArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class HybridConnectivityArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of HybridConnectivityArmOperation for mocking. protected HybridConnectivityArmOperation() { } - internal HybridConnectivityArmOperation(Response response) + internal HybridConnectivityArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal HybridConnectivityArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "HybridConnectivityArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal HybridConnectivityArmOperation(IOperationSource source, ClientDiagno public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/EndpointResource.Serialization.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/EndpointResource.Serialization.cs new file mode 100644 index 000000000000..a69ded9a4a0b --- /dev/null +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/EndpointResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.HybridConnectivity +{ + public partial class EndpointResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + EndpointResourceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + EndpointResourceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/RestOperations/EndpointsRestOperations.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/RestOperations/EndpointsRestOperations.cs index 9a9a031d05ac..0a326f9bf78e 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/RestOperations/EndpointsRestOperations.cs +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/RestOperations/EndpointsRestOperations.cs @@ -37,6 +37,17 @@ public EndpointsRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string scope) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.HybridConnectivity/endpoints", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string scope) { var message = _pipeline.CreateMessage(); @@ -102,6 +113,18 @@ public Response List(string scope, CancellationToken cancellation } } + internal RequestUriBuilder CreateGetRequestUri(string scope, string endpointName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.HybridConnectivity/endpoints/", false); + uri.AppendPath(endpointName, false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string scope, string endpointName) { var message = _pipeline.CreateMessage(); @@ -176,6 +199,18 @@ public Response Get(string scope, string endpointName, Can } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string scope, string endpointName, EndpointResourceData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.HybridConnectivity/endpoints/", false); + uri.AppendPath(endpointName, false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string scope, string endpointName, EndpointResourceData data) { var message = _pipeline.CreateMessage(); @@ -254,6 +289,18 @@ public Response CreateOrUpdate(string scope, string endpoi } } + internal RequestUriBuilder CreateUpdateRequestUri(string scope, string endpointName, EndpointResourceData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.HybridConnectivity/endpoints/", false); + uri.AppendPath(endpointName, false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string scope, string endpointName, EndpointResourceData data) { var message = _pipeline.CreateMessage(); @@ -332,6 +379,18 @@ public Response Update(string scope, string endpointName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string scope, string endpointName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.HybridConnectivity/endpoints/", false); + uri.AppendPath(endpointName, false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string scope, string endpointName) { var message = _pipeline.CreateMessage(); @@ -394,6 +453,23 @@ public Response Delete(string scope, string endpointName, CancellationToken canc } } + internal RequestUriBuilder CreateListCredentialsRequestUri(string scope, string endpointName, long? expiresin) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.HybridConnectivity/endpoints/", false); + uri.AppendPath(endpointName, false); + uri.AppendPath("/listCredentials", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (expiresin != null) + { + uri.AppendQuery("expiresin", expiresin.Value, true); + } + return uri; + } + internal HttpMessage CreateListCredentialsRequest(string scope, string endpointName, long? expiresin) { var message = _pipeline.CreateMessage(); @@ -471,6 +547,14 @@ public Response ListCredentials(string scope, stri } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string scope) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string scope) { var message = _pipeline.CreateMessage(); diff --git a/sdk/hybridkubernetes/Azure.ResourceManager.Kubernetes/src/Generated/LongRunningOperation/KubernetesArmOperation.cs b/sdk/hybridkubernetes/Azure.ResourceManager.Kubernetes/src/Generated/LongRunningOperation/KubernetesArmOperation.cs index c9cd9f26c693..6532aded3466 100644 --- a/sdk/hybridkubernetes/Azure.ResourceManager.Kubernetes/src/Generated/LongRunningOperation/KubernetesArmOperation.cs +++ b/sdk/hybridkubernetes/Azure.ResourceManager.Kubernetes/src/Generated/LongRunningOperation/KubernetesArmOperation.cs @@ -20,21 +20,24 @@ internal class KubernetesArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of KubernetesArmOperation for mocking. protected KubernetesArmOperation() { } - internal KubernetesArmOperation(Response response) + internal KubernetesArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal KubernetesArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "KubernetesArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal KubernetesArmOperation(ClientDiagnostics clientDiagnostics, HttpPipelin public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/hybridkubernetes/Azure.ResourceManager.Kubernetes/src/Generated/LongRunningOperation/KubernetesArmOperationOfT.cs b/sdk/hybridkubernetes/Azure.ResourceManager.Kubernetes/src/Generated/LongRunningOperation/KubernetesArmOperationOfT.cs index 313837d70f67..33bdfb6b9172 100644 --- a/sdk/hybridkubernetes/Azure.ResourceManager.Kubernetes/src/Generated/LongRunningOperation/KubernetesArmOperationOfT.cs +++ b/sdk/hybridkubernetes/Azure.ResourceManager.Kubernetes/src/Generated/LongRunningOperation/KubernetesArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class KubernetesArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of KubernetesArmOperation for mocking. protected KubernetesArmOperation() { } - internal KubernetesArmOperation(Response response) + internal KubernetesArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal KubernetesArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "KubernetesArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal KubernetesArmOperation(IOperationSource source, ClientDiagnostics cl public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/hybridkubernetes/Azure.ResourceManager.Kubernetes/src/Generated/Models/ConnectedClusterResource.Serialization.cs b/sdk/hybridkubernetes/Azure.ResourceManager.Kubernetes/src/Generated/Models/ConnectedClusterResource.Serialization.cs new file mode 100644 index 000000000000..fa1ab21cfe0f --- /dev/null +++ b/sdk/hybridkubernetes/Azure.ResourceManager.Kubernetes/src/Generated/Models/ConnectedClusterResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Kubernetes +{ + public partial class ConnectedClusterResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ConnectedClusterData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ConnectedClusterData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/hybridkubernetes/Azure.ResourceManager.Kubernetes/src/Generated/RestOperations/ConnectedClusterRestOperations.cs b/sdk/hybridkubernetes/Azure.ResourceManager.Kubernetes/src/Generated/RestOperations/ConnectedClusterRestOperations.cs index 1be29584af73..175ae88f8da1 100644 --- a/sdk/hybridkubernetes/Azure.ResourceManager.Kubernetes/src/Generated/RestOperations/ConnectedClusterRestOperations.cs +++ b/sdk/hybridkubernetes/Azure.ResourceManager.Kubernetes/src/Generated/RestOperations/ConnectedClusterRestOperations.cs @@ -37,6 +37,20 @@ public ConnectedClusterRestOperations(HttpPipeline pipeline, string applicationI _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string clusterName, ConnectedClusterData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourcegroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Kubernetes/connectedClusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string clusterName, ConnectedClusterData data) { var message = _pipeline.CreateMessage(); @@ -115,6 +129,20 @@ public Response Create(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string clusterName, ConnectedClusterPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourcegroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Kubernetes/connectedClusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string clusterName, ConnectedClusterPatch patch) { var message = _pipeline.CreateMessage(); @@ -201,6 +229,20 @@ public Response Update(string subscriptionId, string resou } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string clusterName) + { + 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.Kubernetes/connectedClusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string clusterName) { var message = _pipeline.CreateMessage(); @@ -283,6 +325,20 @@ public Response Get(string subscriptionId, string resource } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string clusterName) + { + 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.Kubernetes/connectedClusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string clusterName) { var message = _pipeline.CreateMessage(); @@ -355,6 +411,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateListClusterUserCredentialRequestUri(string subscriptionId, string resourceGroupName, string clusterName, ListClusterUserCredentialProperties properties) + { + 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.Kubernetes/connectedClusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/listClusterUserCredential", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListClusterUserCredentialRequest(string subscriptionId, string resourceGroupName, string clusterName, ListClusterUserCredentialProperties properties) { var message = _pipeline.CreateMessage(); @@ -442,6 +513,19 @@ public Response ListClusterUserCredential(string subscription } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.Kubernetes/connectedClusters", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -515,6 +599,17 @@ public Response ListByResourceGroup(string subscriptionId, } } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Kubernetes/connectedClusters", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -582,6 +677,14 @@ public Response ListBySubscription(string subscriptionId, } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -654,6 +757,14 @@ public Response ListByResourceGroupNextPage(string nextLin } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/LongRunningOperation/HybridNetworkArmOperation.cs b/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/LongRunningOperation/HybridNetworkArmOperation.cs index bfe340a9d6ba..7d5216892c4c 100644 --- a/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/LongRunningOperation/HybridNetworkArmOperation.cs +++ b/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/LongRunningOperation/HybridNetworkArmOperation.cs @@ -20,21 +20,24 @@ internal class HybridNetworkArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of HybridNetworkArmOperation for mocking. protected HybridNetworkArmOperation() { } - internal HybridNetworkArmOperation(Response response) + internal HybridNetworkArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal HybridNetworkArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "HybridNetworkArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal HybridNetworkArmOperation(ClientDiagnostics clientDiagnostics, HttpPipe public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/LongRunningOperation/HybridNetworkArmOperationOfT.cs b/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/LongRunningOperation/HybridNetworkArmOperationOfT.cs index cde1354b2a6b..f4ffe2bd7713 100644 --- a/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/LongRunningOperation/HybridNetworkArmOperationOfT.cs +++ b/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/LongRunningOperation/HybridNetworkArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class HybridNetworkArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of HybridNetworkArmOperation for mocking. protected HybridNetworkArmOperation() { } - internal HybridNetworkArmOperation(Response response) + internal HybridNetworkArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal HybridNetworkArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "HybridNetworkArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal HybridNetworkArmOperation(IOperationSource source, ClientDiagnostics public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/ArtifactManifestResource.Serialization.cs b/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/ArtifactManifestResource.Serialization.cs new file mode 100644 index 000000000000..850482a7a73a --- /dev/null +++ b/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/ArtifactManifestResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.HybridNetwork +{ + public partial class ArtifactManifestResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ArtifactManifestData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ArtifactManifestData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/ArtifactStoreResource.Serialization.cs b/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/ArtifactStoreResource.Serialization.cs new file mode 100644 index 000000000000..73cddc14b5e9 --- /dev/null +++ b/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/ArtifactStoreResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.HybridNetwork +{ + public partial class ArtifactStoreResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ArtifactStoreData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ArtifactStoreData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/ComponentResource.Serialization.cs b/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/ComponentResource.Serialization.cs new file mode 100644 index 000000000000..9caebafc95e8 --- /dev/null +++ b/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/ComponentResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.HybridNetwork +{ + public partial class ComponentResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ComponentData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ComponentData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/ConfigurationGroupSchemaResource.Serialization.cs b/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/ConfigurationGroupSchemaResource.Serialization.cs new file mode 100644 index 000000000000..01d2ab89f7fa --- /dev/null +++ b/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/ConfigurationGroupSchemaResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.HybridNetwork +{ + public partial class ConfigurationGroupSchemaResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ConfigurationGroupSchemaData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ConfigurationGroupSchemaData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/ConfigurationGroupValueResource.Serialization.cs b/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/ConfigurationGroupValueResource.Serialization.cs new file mode 100644 index 000000000000..53fc05509bed --- /dev/null +++ b/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/ConfigurationGroupValueResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.HybridNetwork +{ + public partial class ConfigurationGroupValueResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ConfigurationGroupValueData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ConfigurationGroupValueData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/NetworkFunctionDefinitionGroupResource.Serialization.cs b/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/NetworkFunctionDefinitionGroupResource.Serialization.cs new file mode 100644 index 000000000000..063db417ec26 --- /dev/null +++ b/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/NetworkFunctionDefinitionGroupResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.HybridNetwork +{ + public partial class NetworkFunctionDefinitionGroupResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + NetworkFunctionDefinitionGroupData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + NetworkFunctionDefinitionGroupData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/NetworkFunctionDefinitionVersionResource.Serialization.cs b/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/NetworkFunctionDefinitionVersionResource.Serialization.cs new file mode 100644 index 000000000000..ad7d3cb158d8 --- /dev/null +++ b/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/NetworkFunctionDefinitionVersionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.HybridNetwork +{ + public partial class NetworkFunctionDefinitionVersionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + NetworkFunctionDefinitionVersionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + NetworkFunctionDefinitionVersionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/NetworkFunctionResource.Serialization.cs b/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/NetworkFunctionResource.Serialization.cs new file mode 100644 index 000000000000..0d2c5f21b74e --- /dev/null +++ b/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/NetworkFunctionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.HybridNetwork +{ + public partial class NetworkFunctionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + NetworkFunctionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + NetworkFunctionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/NetworkServiceDesignGroupResource.Serialization.cs b/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/NetworkServiceDesignGroupResource.Serialization.cs new file mode 100644 index 000000000000..0a0464fbd11e --- /dev/null +++ b/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/NetworkServiceDesignGroupResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.HybridNetwork +{ + public partial class NetworkServiceDesignGroupResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + NetworkServiceDesignGroupData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + NetworkServiceDesignGroupData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/NetworkServiceDesignVersionResource.Serialization.cs b/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/NetworkServiceDesignVersionResource.Serialization.cs new file mode 100644 index 000000000000..eb2a9aaa626e --- /dev/null +++ b/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/NetworkServiceDesignVersionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.HybridNetwork +{ + public partial class NetworkServiceDesignVersionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + NetworkServiceDesignVersionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + NetworkServiceDesignVersionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/PublisherResource.Serialization.cs b/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/PublisherResource.Serialization.cs new file mode 100644 index 000000000000..c7226dc1856c --- /dev/null +++ b/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/PublisherResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.HybridNetwork +{ + public partial class PublisherResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + PublisherData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + PublisherData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/SiteNetworkServiceResource.Serialization.cs b/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/SiteNetworkServiceResource.Serialization.cs new file mode 100644 index 000000000000..442e859fe3e1 --- /dev/null +++ b/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/SiteNetworkServiceResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.HybridNetwork +{ + public partial class SiteNetworkServiceResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SiteNetworkServiceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SiteNetworkServiceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/SiteResource.Serialization.cs b/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/SiteResource.Serialization.cs new file mode 100644 index 000000000000..c5db58ec197a --- /dev/null +++ b/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/SiteResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.HybridNetwork +{ + public partial class SiteResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SiteData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SiteData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/RestOperations/ArtifactManifestsRestOperations.cs b/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/RestOperations/ArtifactManifestsRestOperations.cs index 2dda76dd9641..57541045710d 100644 --- a/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/RestOperations/ArtifactManifestsRestOperations.cs +++ b/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/RestOperations/ArtifactManifestsRestOperations.cs @@ -37,6 +37,23 @@ public ArtifactManifestsRestOperations(HttpPipeline pipeline, string application _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByArtifactStoreRequestUri(string subscriptionId, string resourceGroupName, string publisherName, string artifactStoreName) + { + 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.HybridNetwork/publishers/", false); + uri.AppendPath(publisherName, true); + uri.AppendPath("/artifactStores/", false); + uri.AppendPath(artifactStoreName, true); + uri.AppendPath("/artifactManifests", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByArtifactStoreRequest(string subscriptionId, string resourceGroupName, string publisherName, string artifactStoreName) { var message = _pipeline.CreateMessage(); @@ -122,6 +139,24 @@ public Response ListByArtifactStore(string subscript } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string publisherName, string artifactStoreName, string artifactManifestName) + { + 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.HybridNetwork/publishers/", false); + uri.AppendPath(publisherName, true); + uri.AppendPath("/artifactStores/", false); + uri.AppendPath(artifactStoreName, true); + uri.AppendPath("/artifactManifests/", false); + uri.AppendPath(artifactManifestName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string publisherName, string artifactStoreName, string artifactManifestName) { var message = _pipeline.CreateMessage(); @@ -204,6 +239,24 @@ public Response Delete(string subscriptionId, string resourceGroupName, string p } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string publisherName, string artifactStoreName, string artifactManifestName, ArtifactManifestData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.HybridNetwork/publishers/", false); + uri.AppendPath(publisherName, true); + uri.AppendPath("/artifactStores/", false); + uri.AppendPath(artifactStoreName, true); + uri.AppendPath("/artifactManifests/", false); + uri.AppendPath(artifactManifestName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string publisherName, string artifactStoreName, string artifactManifestName, ArtifactManifestData data) { var message = _pipeline.CreateMessage(); @@ -294,6 +347,24 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string publisherName, string artifactStoreName, string artifactManifestName) + { + 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.HybridNetwork/publishers/", false); + uri.AppendPath(publisherName, true); + uri.AppendPath("/artifactStores/", false); + uri.AppendPath(artifactStoreName, true); + uri.AppendPath("/artifactManifests/", false); + uri.AppendPath(artifactManifestName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string publisherName, string artifactStoreName, string artifactManifestName) { var message = _pipeline.CreateMessage(); @@ -388,6 +459,24 @@ public Response Get(string subscriptionId, string resource } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string publisherName, string artifactStoreName, string artifactManifestName, TagsObject tagsObject) + { + 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.HybridNetwork/publishers/", false); + uri.AppendPath(publisherName, true); + uri.AppendPath("/artifactStores/", false); + uri.AppendPath(artifactStoreName, true); + uri.AppendPath("/artifactManifests/", false); + uri.AppendPath(artifactManifestName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string publisherName, string artifactStoreName, string artifactManifestName, TagsObject tagsObject) { var message = _pipeline.CreateMessage(); @@ -486,6 +575,25 @@ public Response Update(string subscriptionId, string resou } } + internal RequestUriBuilder CreateListCredentialRequestUri(string subscriptionId, string resourceGroupName, string publisherName, string artifactStoreName, string artifactManifestName) + { + 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.HybridNetwork/publishers/", false); + uri.AppendPath(publisherName, true); + uri.AppendPath("/artifactStores/", false); + uri.AppendPath(artifactStoreName, true); + uri.AppendPath("/artifactManifests/", false); + uri.AppendPath(artifactManifestName, true); + uri.AppendPath("/listCredential", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListCredentialRequest(string subscriptionId, string resourceGroupName, string publisherName, string artifactStoreName, string artifactManifestName) { var message = _pipeline.CreateMessage(); @@ -577,6 +685,25 @@ public Response ListCredential(string subscriptionId, } } + internal RequestUriBuilder CreateUpdateStateRequestUri(string subscriptionId, string resourceGroupName, string publisherName, string artifactStoreName, string artifactManifestName, ArtifactManifestUpdateState artifactManifestUpdateState) + { + 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.HybridNetwork/publishers/", false); + uri.AppendPath(publisherName, true); + uri.AppendPath("/artifactStores/", false); + uri.AppendPath(artifactStoreName, true); + uri.AppendPath("/artifactManifests/", false); + uri.AppendPath(artifactManifestName, true); + uri.AppendPath("/updateState", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateStateRequest(string subscriptionId, string resourceGroupName, string publisherName, string artifactStoreName, string artifactManifestName, ArtifactManifestUpdateState artifactManifestUpdateState) { var message = _pipeline.CreateMessage(); @@ -668,6 +795,14 @@ public Response UpdateState(string subscriptionId, string resourceGroupName, str } } + internal RequestUriBuilder CreateListByArtifactStoreNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string publisherName, string artifactStoreName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByArtifactStoreNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string publisherName, string artifactStoreName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/RestOperations/ArtifactStoresRestOperations.cs b/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/RestOperations/ArtifactStoresRestOperations.cs index b2ff512d641d..04e0918e5bb9 100644 --- a/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/RestOperations/ArtifactStoresRestOperations.cs +++ b/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/RestOperations/ArtifactStoresRestOperations.cs @@ -37,6 +37,21 @@ public ArtifactStoresRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByPublisherRequestUri(string subscriptionId, string resourceGroupName, string publisherName) + { + 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.HybridNetwork/publishers/", false); + uri.AppendPath(publisherName, true); + uri.AppendPath("/artifactStores", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByPublisherRequest(string subscriptionId, string resourceGroupName, string publisherName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByPublisher(string subscriptionId, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string publisherName, string artifactStoreName) + { + 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.HybridNetwork/publishers/", false); + uri.AppendPath(publisherName, true); + uri.AppendPath("/artifactStores/", false); + uri.AppendPath(artifactStoreName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string publisherName, string artifactStoreName) { var message = _pipeline.CreateMessage(); @@ -192,6 +223,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string p } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string publisherName, string artifactStoreName, ArtifactStoreData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.HybridNetwork/publishers/", false); + uri.AppendPath(publisherName, true); + uri.AppendPath("/artifactStores/", false); + uri.AppendPath(artifactStoreName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string publisherName, string artifactStoreName, ArtifactStoreData data) { var message = _pipeline.CreateMessage(); @@ -276,6 +323,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string publisherName, string artifactStoreName) + { + 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.HybridNetwork/publishers/", false); + uri.AppendPath(publisherName, true); + uri.AppendPath("/artifactStores/", false); + uri.AppendPath(artifactStoreName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string publisherName, string artifactStoreName) { var message = _pipeline.CreateMessage(); @@ -364,6 +427,22 @@ public Response Get(string subscriptionId, string resourceGro } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string publisherName, string artifactStoreName, TagsObject tagsObject) + { + 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.HybridNetwork/publishers/", false); + uri.AppendPath(publisherName, true); + uri.AppendPath("/artifactStores/", false); + uri.AppendPath(artifactStoreName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string publisherName, string artifactStoreName, TagsObject tagsObject) { var message = _pipeline.CreateMessage(); @@ -456,6 +535,14 @@ public Response Update(string subscriptionId, string resource } } + internal RequestUriBuilder CreateListByPublisherNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string publisherName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByPublisherNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string publisherName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/RestOperations/ComponentsRestOperations.cs b/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/RestOperations/ComponentsRestOperations.cs index 54943cb4e055..2d2a0d8c7227 100644 --- a/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/RestOperations/ComponentsRestOperations.cs +++ b/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/RestOperations/ComponentsRestOperations.cs @@ -37,6 +37,22 @@ public ComponentsRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string networkFunctionName, string componentName) + { + 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.HybridNetwork/networkFunctions/", false); + uri.AppendPath(networkFunctionName, true); + uri.AppendPath("/components/", false); + uri.AppendPath(componentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string networkFunctionName, string componentName) { var message = _pipeline.CreateMessage(); @@ -125,6 +141,21 @@ public Response Get(string subscriptionId, string resourceGroupNa } } + internal RequestUriBuilder CreateListByNetworkFunctionRequestUri(string subscriptionId, string resourceGroupName, string networkFunctionName) + { + 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.HybridNetwork/networkFunctions/", false); + uri.AppendPath(networkFunctionName, true); + uri.AppendPath("/components", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByNetworkFunctionRequest(string subscriptionId, string resourceGroupName, string networkFunctionName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,14 @@ public Response ListByNetworkFunction(string subscriptionId } } + internal RequestUriBuilder CreateListByNetworkFunctionNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string networkFunctionName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByNetworkFunctionNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string networkFunctionName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/RestOperations/ConfigurationGroupSchemasRestOperations.cs b/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/RestOperations/ConfigurationGroupSchemasRestOperations.cs index 528cbc63ecf6..f56b82ca1554 100644 --- a/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/RestOperations/ConfigurationGroupSchemasRestOperations.cs +++ b/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/RestOperations/ConfigurationGroupSchemasRestOperations.cs @@ -37,6 +37,21 @@ public ConfigurationGroupSchemasRestOperations(HttpPipeline pipeline, string app _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByPublisherRequestUri(string subscriptionId, string resourceGroupName, string publisherName) + { + 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.HybridNetwork/publishers/", false); + uri.AppendPath(publisherName, true); + uri.AppendPath("/configurationGroupSchemas", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByPublisherRequest(string subscriptionId, string resourceGroupName, string publisherName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByPublisher(string subsc } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string publisherName, string configurationGroupSchemaName) + { + 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.HybridNetwork/publishers/", false); + uri.AppendPath(publisherName, true); + uri.AppendPath("/configurationGroupSchemas/", false); + uri.AppendPath(configurationGroupSchemaName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string publisherName, string configurationGroupSchemaName) { var message = _pipeline.CreateMessage(); @@ -192,6 +223,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string p } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string publisherName, string configurationGroupSchemaName, ConfigurationGroupSchemaData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.HybridNetwork/publishers/", false); + uri.AppendPath(publisherName, true); + uri.AppendPath("/configurationGroupSchemas/", false); + uri.AppendPath(configurationGroupSchemaName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string publisherName, string configurationGroupSchemaName, ConfigurationGroupSchemaData data) { var message = _pipeline.CreateMessage(); @@ -276,6 +323,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string publisherName, string configurationGroupSchemaName) + { + 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.HybridNetwork/publishers/", false); + uri.AppendPath(publisherName, true); + uri.AppendPath("/configurationGroupSchemas/", false); + uri.AppendPath(configurationGroupSchemaName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string publisherName, string configurationGroupSchemaName) { var message = _pipeline.CreateMessage(); @@ -364,6 +427,22 @@ public Response Get(string subscriptionId, string } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string publisherName, string configurationGroupSchemaName, TagsObject tagsObject) + { + 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.HybridNetwork/publishers/", false); + uri.AppendPath(publisherName, true); + uri.AppendPath("/configurationGroupSchemas/", false); + uri.AppendPath(configurationGroupSchemaName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string publisherName, string configurationGroupSchemaName, TagsObject tagsObject) { var message = _pipeline.CreateMessage(); @@ -456,6 +535,23 @@ public Response Update(string subscriptionId, stri } } + internal RequestUriBuilder CreateUpdateStateRequestUri(string subscriptionId, string resourceGroupName, string publisherName, string configurationGroupSchemaName, ConfigurationGroupSchemaVersionUpdateState configurationGroupSchemaVersionUpdateState) + { + 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.HybridNetwork/publishers/", false); + uri.AppendPath(publisherName, true); + uri.AppendPath("/configurationGroupSchemas/", false); + uri.AppendPath(configurationGroupSchemaName, true); + uri.AppendPath("/updateState", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateStateRequest(string subscriptionId, string resourceGroupName, string publisherName, string configurationGroupSchemaName, ConfigurationGroupSchemaVersionUpdateState configurationGroupSchemaVersionUpdateState) { var message = _pipeline.CreateMessage(); @@ -541,6 +637,14 @@ public Response UpdateState(string subscriptionId, string resourceGroupName, str } } + internal RequestUriBuilder CreateListByPublisherNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string publisherName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByPublisherNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string publisherName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/RestOperations/ConfigurationGroupValuesRestOperations.cs b/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/RestOperations/ConfigurationGroupValuesRestOperations.cs index 72330943abc0..247a25ae2c08 100644 --- a/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/RestOperations/ConfigurationGroupValuesRestOperations.cs +++ b/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/RestOperations/ConfigurationGroupValuesRestOperations.cs @@ -37,6 +37,20 @@ public ConfigurationGroupValuesRestOperations(HttpPipeline pipeline, string appl _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string configurationGroupValueName) + { + 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.HybridNetwork/configurationGroupValues/", false); + uri.AppendPath(configurationGroupValueName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string configurationGroupValueName) { var message = _pipeline.CreateMessage(); @@ -107,6 +121,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string configurationGroupValueName) + { + 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.HybridNetwork/configurationGroupValues/", false); + uri.AppendPath(configurationGroupValueName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string configurationGroupValueName) { var message = _pipeline.CreateMessage(); @@ -189,6 +217,20 @@ public Response Get(string subscriptionId, string r } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string configurationGroupValueName, ConfigurationGroupValueData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.HybridNetwork/configurationGroupValues/", false); + uri.AppendPath(configurationGroupValueName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string configurationGroupValueName, ConfigurationGroupValueData data) { var message = _pipeline.CreateMessage(); @@ -267,6 +309,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateTagsRequestUri(string subscriptionId, string resourceGroupName, string configurationGroupValueName, TagsObject tagsObject) + { + 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.HybridNetwork/configurationGroupValues/", false); + uri.AppendPath(configurationGroupValueName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateTagsRequest(string subscriptionId, string resourceGroupName, string configurationGroupValueName, TagsObject tagsObject) { var message = _pipeline.CreateMessage(); @@ -353,6 +409,17 @@ public Response UpdateTags(string subscriptionId, s } } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.HybridNetwork/configurationGroupValues", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -420,6 +487,19 @@ public Response ListBySubscription(string sub } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.HybridNetwork/configurationGroupValues", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -493,6 +573,14 @@ public Response ListByResourceGroup(string su } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -561,6 +649,14 @@ public Response ListBySubscriptionNextPage(st } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/RestOperations/NetworkFunctionDefinitionGroupsRestOperations.cs b/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/RestOperations/NetworkFunctionDefinitionGroupsRestOperations.cs index 2d22b832557b..84ad0242bb9e 100644 --- a/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/RestOperations/NetworkFunctionDefinitionGroupsRestOperations.cs +++ b/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/RestOperations/NetworkFunctionDefinitionGroupsRestOperations.cs @@ -37,6 +37,21 @@ public NetworkFunctionDefinitionGroupsRestOperations(HttpPipeline pipeline, stri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByPublisherRequestUri(string subscriptionId, string resourceGroupName, string publisherName) + { + 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.HybridNetwork/publishers/", false); + uri.AppendPath(publisherName, true); + uri.AppendPath("/networkFunctionDefinitionGroups", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByPublisherRequest(string subscriptionId, string resourceGroupName, string publisherName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByPublisher(string } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string publisherName, string networkFunctionDefinitionGroupName) + { + 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.HybridNetwork/publishers/", false); + uri.AppendPath(publisherName, true); + uri.AppendPath("/networkFunctionDefinitionGroups/", false); + uri.AppendPath(networkFunctionDefinitionGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string publisherName, string networkFunctionDefinitionGroupName) { var message = _pipeline.CreateMessage(); @@ -192,6 +223,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string p } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string publisherName, string networkFunctionDefinitionGroupName, NetworkFunctionDefinitionGroupData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.HybridNetwork/publishers/", false); + uri.AppendPath(publisherName, true); + uri.AppendPath("/networkFunctionDefinitionGroups/", false); + uri.AppendPath(networkFunctionDefinitionGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string publisherName, string networkFunctionDefinitionGroupName, NetworkFunctionDefinitionGroupData data) { var message = _pipeline.CreateMessage(); @@ -276,6 +323,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string publisherName, string networkFunctionDefinitionGroupName) + { + 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.HybridNetwork/publishers/", false); + uri.AppendPath(publisherName, true); + uri.AppendPath("/networkFunctionDefinitionGroups/", false); + uri.AppendPath(networkFunctionDefinitionGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string publisherName, string networkFunctionDefinitionGroupName) { var message = _pipeline.CreateMessage(); @@ -364,6 +427,22 @@ public Response Get(string subscriptionId, s } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string publisherName, string networkFunctionDefinitionGroupName, TagsObject tagsObject) + { + 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.HybridNetwork/publishers/", false); + uri.AppendPath(publisherName, true); + uri.AppendPath("/networkFunctionDefinitionGroups/", false); + uri.AppendPath(networkFunctionDefinitionGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string publisherName, string networkFunctionDefinitionGroupName, TagsObject tagsObject) { var message = _pipeline.CreateMessage(); @@ -456,6 +535,14 @@ public Response Update(string subscriptionId } } + internal RequestUriBuilder CreateListByPublisherNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string publisherName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByPublisherNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string publisherName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/RestOperations/NetworkFunctionDefinitionVersionsRestOperations.cs b/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/RestOperations/NetworkFunctionDefinitionVersionsRestOperations.cs index ec9a998eb7d5..4f4311997354 100644 --- a/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/RestOperations/NetworkFunctionDefinitionVersionsRestOperations.cs +++ b/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/RestOperations/NetworkFunctionDefinitionVersionsRestOperations.cs @@ -37,6 +37,24 @@ public NetworkFunctionDefinitionVersionsRestOperations(HttpPipeline pipeline, st _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string publisherName, string networkFunctionDefinitionGroupName, string networkFunctionDefinitionVersionName) + { + 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.HybridNetwork/publishers/", false); + uri.AppendPath(publisherName, true); + uri.AppendPath("/networkFunctionDefinitionGroups/", false); + uri.AppendPath(networkFunctionDefinitionGroupName, true); + uri.AppendPath("/networkFunctionDefinitionVersions/", false); + uri.AppendPath(networkFunctionDefinitionVersionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string publisherName, string networkFunctionDefinitionGroupName, string networkFunctionDefinitionVersionName) { var message = _pipeline.CreateMessage(); @@ -119,6 +137,24 @@ public Response Delete(string subscriptionId, string resourceGroupName, string p } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string publisherName, string networkFunctionDefinitionGroupName, string networkFunctionDefinitionVersionName, NetworkFunctionDefinitionVersionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.HybridNetwork/publishers/", false); + uri.AppendPath(publisherName, true); + uri.AppendPath("/networkFunctionDefinitionGroups/", false); + uri.AppendPath(networkFunctionDefinitionGroupName, true); + uri.AppendPath("/networkFunctionDefinitionVersions/", false); + uri.AppendPath(networkFunctionDefinitionVersionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string publisherName, string networkFunctionDefinitionGroupName, string networkFunctionDefinitionVersionName, NetworkFunctionDefinitionVersionData data) { var message = _pipeline.CreateMessage(); @@ -209,6 +245,24 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string publisherName, string networkFunctionDefinitionGroupName, string networkFunctionDefinitionVersionName) + { + 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.HybridNetwork/publishers/", false); + uri.AppendPath(publisherName, true); + uri.AppendPath("/networkFunctionDefinitionGroups/", false); + uri.AppendPath(networkFunctionDefinitionGroupName, true); + uri.AppendPath("/networkFunctionDefinitionVersions/", false); + uri.AppendPath(networkFunctionDefinitionVersionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string publisherName, string networkFunctionDefinitionGroupName, string networkFunctionDefinitionVersionName) { var message = _pipeline.CreateMessage(); @@ -303,6 +357,24 @@ public Response Get(string subscriptionId, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string publisherName, string networkFunctionDefinitionGroupName, string networkFunctionDefinitionVersionName, TagsObject tagsObject) + { + 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.HybridNetwork/publishers/", false); + uri.AppendPath(publisherName, true); + uri.AppendPath("/networkFunctionDefinitionGroups/", false); + uri.AppendPath(networkFunctionDefinitionGroupName, true); + uri.AppendPath("/networkFunctionDefinitionVersions/", false); + uri.AppendPath(networkFunctionDefinitionVersionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string publisherName, string networkFunctionDefinitionGroupName, string networkFunctionDefinitionVersionName, TagsObject tagsObject) { var message = _pipeline.CreateMessage(); @@ -401,6 +473,23 @@ public Response Update(string subscription } } + internal RequestUriBuilder CreateListByNetworkFunctionDefinitionGroupRequestUri(string subscriptionId, string resourceGroupName, string publisherName, string networkFunctionDefinitionGroupName) + { + 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.HybridNetwork/publishers/", false); + uri.AppendPath(publisherName, true); + uri.AppendPath("/networkFunctionDefinitionGroups/", false); + uri.AppendPath(networkFunctionDefinitionGroupName, true); + uri.AppendPath("/networkFunctionDefinitionVersions", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByNetworkFunctionDefinitionGroupRequest(string subscriptionId, string resourceGroupName, string publisherName, string networkFunctionDefinitionGroupName) { var message = _pipeline.CreateMessage(); @@ -486,6 +575,25 @@ public Response ListByNetworkFunctio } } + internal RequestUriBuilder CreateUpdateStateRequestUri(string subscriptionId, string resourceGroupName, string publisherName, string networkFunctionDefinitionGroupName, string networkFunctionDefinitionVersionName, NetworkFunctionDefinitionVersionUpdateState networkFunctionDefinitionVersionUpdateState) + { + 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.HybridNetwork/publishers/", false); + uri.AppendPath(publisherName, true); + uri.AppendPath("/networkFunctionDefinitionGroups/", false); + uri.AppendPath(networkFunctionDefinitionGroupName, true); + uri.AppendPath("/networkFunctionDefinitionVersions/", false); + uri.AppendPath(networkFunctionDefinitionVersionName, true); + uri.AppendPath("/updateState", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateStateRequest(string subscriptionId, string resourceGroupName, string publisherName, string networkFunctionDefinitionGroupName, string networkFunctionDefinitionVersionName, NetworkFunctionDefinitionVersionUpdateState networkFunctionDefinitionVersionUpdateState) { var message = _pipeline.CreateMessage(); @@ -577,6 +685,14 @@ public Response UpdateState(string subscriptionId, string resourceGroupName, str } } + internal RequestUriBuilder CreateListByNetworkFunctionDefinitionGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string publisherName, string networkFunctionDefinitionGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByNetworkFunctionDefinitionGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string publisherName, string networkFunctionDefinitionGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/RestOperations/NetworkFunctionsRestOperations.cs b/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/RestOperations/NetworkFunctionsRestOperations.cs index dfe4c57e8ef1..26a820950018 100644 --- a/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/RestOperations/NetworkFunctionsRestOperations.cs +++ b/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/RestOperations/NetworkFunctionsRestOperations.cs @@ -37,6 +37,20 @@ public NetworkFunctionsRestOperations(HttpPipeline pipeline, string applicationI _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string networkFunctionName) + { + 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.HybridNetwork/networkFunctions/", false); + uri.AppendPath(networkFunctionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string networkFunctionName) { var message = _pipeline.CreateMessage(); @@ -109,6 +123,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string n } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string networkFunctionName) + { + 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.HybridNetwork/networkFunctions/", false); + uri.AppendPath(networkFunctionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string networkFunctionName) { var message = _pipeline.CreateMessage(); @@ -191,6 +219,20 @@ public Response Get(string subscriptionId, string resourceG } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string networkFunctionName, NetworkFunctionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.HybridNetwork/networkFunctions/", false); + uri.AppendPath(networkFunctionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string networkFunctionName, NetworkFunctionData data) { var message = _pipeline.CreateMessage(); @@ -269,6 +311,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateTagsRequestUri(string subscriptionId, string resourceGroupName, string networkFunctionName, TagsObject tagsObject) + { + 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.HybridNetwork/networkFunctions/", false); + uri.AppendPath(networkFunctionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateTagsRequest(string subscriptionId, string resourceGroupName, string networkFunctionName, TagsObject tagsObject) { var message = _pipeline.CreateMessage(); @@ -355,6 +411,17 @@ public Response UpdateTags(string subscriptionId, string re } } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.HybridNetwork/networkFunctions", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -422,6 +489,19 @@ public Response ListBySubscription(string subscriptio } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.HybridNetwork/networkFunctions", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -495,6 +575,21 @@ public Response ListByResourceGroup(string subscripti } } + internal RequestUriBuilder CreateExecuteRequestRequestUri(string subscriptionId, string resourceGroupName, string networkFunctionName, ExecuteRequestContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.HybridNetwork/networkFunctions/", false); + uri.AppendPath(networkFunctionName, true); + uri.AppendPath("/executeRequest", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateExecuteRequestRequest(string subscriptionId, string resourceGroupName, string networkFunctionName, ExecuteRequestContent content) { var message = _pipeline.CreateMessage(); @@ -574,6 +669,14 @@ public Response ExecuteRequest(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -642,6 +745,14 @@ public Response ListBySubscriptionNextPage(string nex } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/RestOperations/NetworkServiceDesignGroupsRestOperations.cs b/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/RestOperations/NetworkServiceDesignGroupsRestOperations.cs index 0a8e620dd2e3..d001d1d66415 100644 --- a/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/RestOperations/NetworkServiceDesignGroupsRestOperations.cs +++ b/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/RestOperations/NetworkServiceDesignGroupsRestOperations.cs @@ -37,6 +37,21 @@ public NetworkServiceDesignGroupsRestOperations(HttpPipeline pipeline, string ap _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByPublisherRequestUri(string subscriptionId, string resourceGroupName, string publisherName) + { + 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.HybridNetwork/publishers/", false); + uri.AppendPath(publisherName, true); + uri.AppendPath("/networkServiceDesignGroups", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByPublisherRequest(string subscriptionId, string resourceGroupName, string publisherName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByPublisher(string subs } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string publisherName, string networkServiceDesignGroupName) + { + 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.HybridNetwork/publishers/", false); + uri.AppendPath(publisherName, true); + uri.AppendPath("/networkServiceDesignGroups/", false); + uri.AppendPath(networkServiceDesignGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string publisherName, string networkServiceDesignGroupName) { var message = _pipeline.CreateMessage(); @@ -192,6 +223,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string p } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string publisherName, string networkServiceDesignGroupName, NetworkServiceDesignGroupData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.HybridNetwork/publishers/", false); + uri.AppendPath(publisherName, true); + uri.AppendPath("/networkServiceDesignGroups/", false); + uri.AppendPath(networkServiceDesignGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string publisherName, string networkServiceDesignGroupName, NetworkServiceDesignGroupData data) { var message = _pipeline.CreateMessage(); @@ -276,6 +323,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string publisherName, string networkServiceDesignGroupName) + { + 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.HybridNetwork/publishers/", false); + uri.AppendPath(publisherName, true); + uri.AppendPath("/networkServiceDesignGroups/", false); + uri.AppendPath(networkServiceDesignGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string publisherName, string networkServiceDesignGroupName) { var message = _pipeline.CreateMessage(); @@ -364,6 +427,22 @@ public Response Get(string subscriptionId, string } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string publisherName, string networkServiceDesignGroupName, TagsObject tagsObject) + { + 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.HybridNetwork/publishers/", false); + uri.AppendPath(publisherName, true); + uri.AppendPath("/networkServiceDesignGroups/", false); + uri.AppendPath(networkServiceDesignGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string publisherName, string networkServiceDesignGroupName, TagsObject tagsObject) { var message = _pipeline.CreateMessage(); @@ -456,6 +535,14 @@ public Response Update(string subscriptionId, str } } + internal RequestUriBuilder CreateListByPublisherNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string publisherName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByPublisherNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string publisherName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/RestOperations/NetworkServiceDesignVersionsRestOperations.cs b/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/RestOperations/NetworkServiceDesignVersionsRestOperations.cs index c046c6ccd4d3..3e53df9b69dd 100644 --- a/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/RestOperations/NetworkServiceDesignVersionsRestOperations.cs +++ b/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/RestOperations/NetworkServiceDesignVersionsRestOperations.cs @@ -37,6 +37,24 @@ public NetworkServiceDesignVersionsRestOperations(HttpPipeline pipeline, string _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string publisherName, string networkServiceDesignGroupName, string networkServiceDesignVersionName) + { + 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.HybridNetwork/publishers/", false); + uri.AppendPath(publisherName, true); + uri.AppendPath("/networkServiceDesignGroups/", false); + uri.AppendPath(networkServiceDesignGroupName, true); + uri.AppendPath("/networkServiceDesignVersions/", false); + uri.AppendPath(networkServiceDesignVersionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string publisherName, string networkServiceDesignGroupName, string networkServiceDesignVersionName) { var message = _pipeline.CreateMessage(); @@ -119,6 +137,24 @@ public Response Delete(string subscriptionId, string resourceGroupName, string p } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string publisherName, string networkServiceDesignGroupName, string networkServiceDesignVersionName, NetworkServiceDesignVersionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.HybridNetwork/publishers/", false); + uri.AppendPath(publisherName, true); + uri.AppendPath("/networkServiceDesignGroups/", false); + uri.AppendPath(networkServiceDesignGroupName, true); + uri.AppendPath("/networkServiceDesignVersions/", false); + uri.AppendPath(networkServiceDesignVersionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string publisherName, string networkServiceDesignGroupName, string networkServiceDesignVersionName, NetworkServiceDesignVersionData data) { var message = _pipeline.CreateMessage(); @@ -209,6 +245,24 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string publisherName, string networkServiceDesignGroupName, string networkServiceDesignVersionName) + { + 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.HybridNetwork/publishers/", false); + uri.AppendPath(publisherName, true); + uri.AppendPath("/networkServiceDesignGroups/", false); + uri.AppendPath(networkServiceDesignGroupName, true); + uri.AppendPath("/networkServiceDesignVersions/", false); + uri.AppendPath(networkServiceDesignVersionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string publisherName, string networkServiceDesignGroupName, string networkServiceDesignVersionName) { var message = _pipeline.CreateMessage(); @@ -303,6 +357,24 @@ public Response Get(string subscriptionId, stri } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string publisherName, string networkServiceDesignGroupName, string networkServiceDesignVersionName, TagsObject tagsObject) + { + 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.HybridNetwork/publishers/", false); + uri.AppendPath(publisherName, true); + uri.AppendPath("/networkServiceDesignGroups/", false); + uri.AppendPath(networkServiceDesignGroupName, true); + uri.AppendPath("/networkServiceDesignVersions/", false); + uri.AppendPath(networkServiceDesignVersionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string publisherName, string networkServiceDesignGroupName, string networkServiceDesignVersionName, TagsObject tagsObject) { var message = _pipeline.CreateMessage(); @@ -401,6 +473,23 @@ public Response Update(string subscriptionId, s } } + internal RequestUriBuilder CreateListByNetworkServiceDesignGroupRequestUri(string subscriptionId, string resourceGroupName, string publisherName, string networkServiceDesignGroupName) + { + 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.HybridNetwork/publishers/", false); + uri.AppendPath(publisherName, true); + uri.AppendPath("/networkServiceDesignGroups/", false); + uri.AppendPath(networkServiceDesignGroupName, true); + uri.AppendPath("/networkServiceDesignVersions", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByNetworkServiceDesignGroupRequest(string subscriptionId, string resourceGroupName, string publisherName, string networkServiceDesignGroupName) { var message = _pipeline.CreateMessage(); @@ -486,6 +575,25 @@ public Response ListByNetworkServiceDesig } } + internal RequestUriBuilder CreateUpdateStateRequestUri(string subscriptionId, string resourceGroupName, string publisherName, string networkServiceDesignGroupName, string networkServiceDesignVersionName, NetworkServiceDesignVersionUpdateState networkServiceDesignVersionUpdateState) + { + 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.HybridNetwork/publishers/", false); + uri.AppendPath(publisherName, true); + uri.AppendPath("/networkServiceDesignGroups/", false); + uri.AppendPath(networkServiceDesignGroupName, true); + uri.AppendPath("/networkServiceDesignVersions/", false); + uri.AppendPath(networkServiceDesignVersionName, true); + uri.AppendPath("/updateState", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateStateRequest(string subscriptionId, string resourceGroupName, string publisherName, string networkServiceDesignGroupName, string networkServiceDesignVersionName, NetworkServiceDesignVersionUpdateState networkServiceDesignVersionUpdateState) { var message = _pipeline.CreateMessage(); @@ -577,6 +685,14 @@ public Response UpdateState(string subscriptionId, string resourceGroupName, str } } + internal RequestUriBuilder CreateListByNetworkServiceDesignGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string publisherName, string networkServiceDesignGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByNetworkServiceDesignGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string publisherName, string networkServiceDesignGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/RestOperations/ProxyArtifactRestOperations.cs b/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/RestOperations/ProxyArtifactRestOperations.cs index 139d3dd38c2a..aba3189c5d2d 100644 --- a/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/RestOperations/ProxyArtifactRestOperations.cs +++ b/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/RestOperations/ProxyArtifactRestOperations.cs @@ -37,6 +37,23 @@ public ProxyArtifactRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string publisherName, string artifactStoreName) + { + 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.HybridNetwork/publishers/", false); + uri.AppendPath(publisherName, true); + uri.AppendPath("/artifactStores/", false); + uri.AppendPath(artifactStoreName, true); + uri.AppendPath("/artifacts", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string publisherName, string artifactStoreName) { var message = _pipeline.CreateMessage(); @@ -122,6 +139,24 @@ public Response List(string subscriptionId, str } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string publisherName, string artifactStoreName, string artifactName) + { + 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.HybridNetwork/publishers/", false); + uri.AppendPath(publisherName, true); + uri.AppendPath("/artifactStores/", false); + uri.AppendPath(artifactStoreName, true); + uri.AppendPath("/artifactVersions", false); + uri.AppendQuery("artifactName", artifactName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string publisherName, string artifactStoreName, string artifactName) { var message = _pipeline.CreateMessage(); @@ -212,6 +247,25 @@ public Response Get(string subscription } } + internal RequestUriBuilder CreateUpdateStateRequestUri(string subscriptionId, string resourceGroupName, string publisherName, string artifactStoreName, string artifactVersionName, string artifactName, ArtifactChangeState artifactChangeState) + { + 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.HybridNetwork/publishers/", false); + uri.AppendPath(publisherName, true); + uri.AppendPath("/artifactStores/", false); + uri.AppendPath(artifactStoreName, true); + uri.AppendPath("/artifactVersions/", false); + uri.AppendPath(artifactVersionName, true); + uri.AppendQuery("artifactName", artifactName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateStateRequest(string subscriptionId, string resourceGroupName, string publisherName, string artifactStoreName, string artifactVersionName, string artifactName, ArtifactChangeState artifactChangeState) { var message = _pipeline.CreateMessage(); @@ -307,6 +361,14 @@ public Response UpdateState(string subscriptionId, string resourceGroupName, str } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string publisherName, string artifactStoreName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string publisherName, string artifactStoreName) { var message = _pipeline.CreateMessage(); @@ -387,6 +449,14 @@ public Response ListNextPage(string nextLink, s } } + internal RequestUriBuilder CreateGetNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string publisherName, string artifactStoreName, string artifactName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateGetNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string publisherName, string artifactStoreName, string artifactName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/RestOperations/PublishersRestOperations.cs b/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/RestOperations/PublishersRestOperations.cs index f64b44171432..31a7b8a714f2 100644 --- a/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/RestOperations/PublishersRestOperations.cs +++ b/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/RestOperations/PublishersRestOperations.cs @@ -37,6 +37,17 @@ public PublishersRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.HybridNetwork/publishers", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,19 @@ public Response ListBySubscription(string subscriptionId, C } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.HybridNetwork/publishers", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -177,6 +201,20 @@ public Response ListByResourceGroup(string subscriptionId, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string publisherName) + { + 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.HybridNetwork/publishers/", false); + uri.AppendPath(publisherName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string publisherName) { var message = _pipeline.CreateMessage(); @@ -247,6 +285,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string p } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string publisherName) + { + 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.HybridNetwork/publishers/", false); + uri.AppendPath(publisherName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string publisherName) { var message = _pipeline.CreateMessage(); @@ -329,6 +381,20 @@ public Response Get(string subscriptionId, string resourceGroupNa } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string publisherName, PublisherData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.HybridNetwork/publishers/", false); + uri.AppendPath(publisherName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string publisherName, PublisherData data) { var message = _pipeline.CreateMessage(); @@ -407,6 +473,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string publisherName, TagsObject tagsObject) + { + 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.HybridNetwork/publishers/", false); + uri.AppendPath(publisherName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string publisherName, TagsObject tagsObject) { var message = _pipeline.CreateMessage(); @@ -493,6 +573,14 @@ public Response Update(string subscriptionId, string resourceGrou } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -561,6 +649,14 @@ public Response ListBySubscriptionNextPage(string nextLink, } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/RestOperations/SiteNetworkServicesRestOperations.cs b/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/RestOperations/SiteNetworkServicesRestOperations.cs index 68d76d178b58..e5707c14ee38 100644 --- a/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/RestOperations/SiteNetworkServicesRestOperations.cs +++ b/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/RestOperations/SiteNetworkServicesRestOperations.cs @@ -37,6 +37,20 @@ public SiteNetworkServicesRestOperations(HttpPipeline pipeline, string applicati _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string siteNetworkServiceName) + { + 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.HybridNetwork/siteNetworkServices/", false); + uri.AppendPath(siteNetworkServiceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string siteNetworkServiceName) { var message = _pipeline.CreateMessage(); @@ -107,6 +121,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string siteNetworkServiceName) + { + 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.HybridNetwork/siteNetworkServices/", false); + uri.AppendPath(siteNetworkServiceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string siteNetworkServiceName) { var message = _pipeline.CreateMessage(); @@ -189,6 +217,20 @@ public Response Get(string subscriptionId, string resour } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string siteNetworkServiceName, SiteNetworkServiceData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.HybridNetwork/siteNetworkServices/", false); + uri.AppendPath(siteNetworkServiceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string siteNetworkServiceName, SiteNetworkServiceData data) { var message = _pipeline.CreateMessage(); @@ -267,6 +309,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateTagsRequestUri(string subscriptionId, string resourceGroupName, string siteNetworkServiceName, TagsObject tagsObject) + { + 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.HybridNetwork/siteNetworkServices/", false); + uri.AppendPath(siteNetworkServiceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateTagsRequest(string subscriptionId, string resourceGroupName, string siteNetworkServiceName, TagsObject tagsObject) { var message = _pipeline.CreateMessage(); @@ -353,6 +409,17 @@ public Response UpdateTags(string subscriptionId, string } } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.HybridNetwork/siteNetworkServices", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -420,6 +487,19 @@ public Response ListBySubscription(string subscrip } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.HybridNetwork/siteNetworkServices", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -493,6 +573,14 @@ public Response ListByResourceGroup(string subscri } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -561,6 +649,14 @@ public Response ListBySubscriptionNextPage(string } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/RestOperations/SitesRestOperations.cs b/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/RestOperations/SitesRestOperations.cs index 4d431ea381cb..206a2672aa70 100644 --- a/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/RestOperations/SitesRestOperations.cs +++ b/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/RestOperations/SitesRestOperations.cs @@ -37,6 +37,20 @@ public SitesRestOperations(HttpPipeline pipeline, string applicationId, Uri endp _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string siteName) + { + 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.HybridNetwork/sites/", false); + uri.AppendPath(siteName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string siteName) { var message = _pipeline.CreateMessage(); @@ -107,6 +121,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string siteName) + { + 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.HybridNetwork/sites/", false); + uri.AppendPath(siteName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string siteName) { var message = _pipeline.CreateMessage(); @@ -189,6 +217,20 @@ public Response Get(string subscriptionId, string resourceGroupName, s } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string siteName, SiteData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.HybridNetwork/sites/", false); + uri.AppendPath(siteName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string siteName, SiteData data) { var message = _pipeline.CreateMessage(); @@ -267,6 +309,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateTagsRequestUri(string subscriptionId, string resourceGroupName, string siteName, TagsObject tagsObject) + { + 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.HybridNetwork/sites/", false); + uri.AppendPath(siteName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateTagsRequest(string subscriptionId, string resourceGroupName, string siteName, TagsObject tagsObject) { var message = _pipeline.CreateMessage(); @@ -353,6 +409,17 @@ public Response UpdateTags(string subscriptionId, string resourceGroup } } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.HybridNetwork/sites", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -420,6 +487,19 @@ public Response ListBySubscription(string subscriptionId, Cancel } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.HybridNetwork/sites", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -493,6 +573,14 @@ public Response ListByResourceGroup(string subscriptionId, strin } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -561,6 +649,14 @@ public Response ListBySubscriptionNextPage(string nextLink, stri } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/iot/Azure.ResourceManager.IotFirmwareDefense/src/Generated/FirmwareCollection.cs b/sdk/iot/Azure.ResourceManager.IotFirmwareDefense/src/Generated/FirmwareCollection.cs index 7764c81283d0..0c4dab453215 100644 --- a/sdk/iot/Azure.ResourceManager.IotFirmwareDefense/src/Generated/FirmwareCollection.cs +++ b/sdk/iot/Azure.ResourceManager.IotFirmwareDefense/src/Generated/FirmwareCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> CreateOrUpdateAsync(Wa try { var response = await _firmwareRestClient.CreateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, firmwareName, data, cancellationToken).ConfigureAwait(false); - var operation = new IotFirmwareDefenseArmOperation(Response.FromValue(new FirmwareResource(Client, response), response.GetRawResponse())); + var uri = _firmwareRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, firmwareName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new IotFirmwareDefenseArmOperation(Response.FromValue(new FirmwareResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil try { var response = _firmwareRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, firmwareName, data, cancellationToken); - var operation = new IotFirmwareDefenseArmOperation(Response.FromValue(new FirmwareResource(Client, response), response.GetRawResponse())); + var uri = _firmwareRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, firmwareName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new IotFirmwareDefenseArmOperation(Response.FromValue(new FirmwareResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/iot/Azure.ResourceManager.IotFirmwareDefense/src/Generated/FirmwareResource.cs b/sdk/iot/Azure.ResourceManager.IotFirmwareDefense/src/Generated/FirmwareResource.cs index bac82dd42870..3963ff1197a4 100644 --- a/sdk/iot/Azure.ResourceManager.IotFirmwareDefense/src/Generated/FirmwareResource.cs +++ b/sdk/iot/Azure.ResourceManager.IotFirmwareDefense/src/Generated/FirmwareResource.cs @@ -202,7 +202,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _firmwareRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new IotFirmwareDefenseArmOperation(response); + var uri = _firmwareRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new IotFirmwareDefenseArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -244,7 +246,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _firmwareRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new IotFirmwareDefenseArmOperation(response); + var uri = _firmwareRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new IotFirmwareDefenseArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/iot/Azure.ResourceManager.IotFirmwareDefense/src/Generated/FirmwareWorkspaceCollection.cs b/sdk/iot/Azure.ResourceManager.IotFirmwareDefense/src/Generated/FirmwareWorkspaceCollection.cs index 4c63c415eedc..b7a4d61c96f7 100644 --- a/sdk/iot/Azure.ResourceManager.IotFirmwareDefense/src/Generated/FirmwareWorkspaceCollection.cs +++ b/sdk/iot/Azure.ResourceManager.IotFirmwareDefense/src/Generated/FirmwareWorkspaceCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> CreateOrUpdat try { var response = await _firmwareWorkspaceWorkspacesRestClient.CreateAsync(Id.SubscriptionId, Id.ResourceGroupName, workspaceName, data, cancellationToken).ConfigureAwait(false); - var operation = new IotFirmwareDefenseArmOperation(Response.FromValue(new FirmwareWorkspaceResource(Client, response), response.GetRawResponse())); + var uri = _firmwareWorkspaceWorkspacesRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, workspaceName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new IotFirmwareDefenseArmOperation(Response.FromValue(new FirmwareWorkspaceResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -140,7 +142,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil try { var response = _firmwareWorkspaceWorkspacesRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, workspaceName, data, cancellationToken); - var operation = new IotFirmwareDefenseArmOperation(Response.FromValue(new FirmwareWorkspaceResource(Client, response), response.GetRawResponse())); + var uri = _firmwareWorkspaceWorkspacesRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, workspaceName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new IotFirmwareDefenseArmOperation(Response.FromValue(new FirmwareWorkspaceResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/iot/Azure.ResourceManager.IotFirmwareDefense/src/Generated/FirmwareWorkspaceResource.cs b/sdk/iot/Azure.ResourceManager.IotFirmwareDefense/src/Generated/FirmwareWorkspaceResource.cs index 96597ec6abf5..c266995f4948 100644 --- a/sdk/iot/Azure.ResourceManager.IotFirmwareDefense/src/Generated/FirmwareWorkspaceResource.cs +++ b/sdk/iot/Azure.ResourceManager.IotFirmwareDefense/src/Generated/FirmwareWorkspaceResource.cs @@ -270,7 +270,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _firmwareWorkspaceWorkspacesRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new IotFirmwareDefenseArmOperation(response); + var uri = _firmwareWorkspaceWorkspacesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new IotFirmwareDefenseArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -312,7 +314,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _firmwareWorkspaceWorkspacesRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); - var operation = new IotFirmwareDefenseArmOperation(response); + var uri = _firmwareWorkspaceWorkspacesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new IotFirmwareDefenseArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/iot/Azure.ResourceManager.IotFirmwareDefense/src/Generated/LongRunningOperation/IotFirmwareDefenseArmOperation.cs b/sdk/iot/Azure.ResourceManager.IotFirmwareDefense/src/Generated/LongRunningOperation/IotFirmwareDefenseArmOperation.cs index 492bd407da7f..379578148d5f 100644 --- a/sdk/iot/Azure.ResourceManager.IotFirmwareDefense/src/Generated/LongRunningOperation/IotFirmwareDefenseArmOperation.cs +++ b/sdk/iot/Azure.ResourceManager.IotFirmwareDefense/src/Generated/LongRunningOperation/IotFirmwareDefenseArmOperation.cs @@ -20,21 +20,24 @@ internal class IotFirmwareDefenseArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of IotFirmwareDefenseArmOperation for mocking. protected IotFirmwareDefenseArmOperation() { } - internal IotFirmwareDefenseArmOperation(Response response) + internal IotFirmwareDefenseArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal IotFirmwareDefenseArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "IotFirmwareDefenseArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal IotFirmwareDefenseArmOperation(ClientDiagnostics clientDiagnostics, Htt public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/iot/Azure.ResourceManager.IotFirmwareDefense/src/Generated/LongRunningOperation/IotFirmwareDefenseArmOperationOfT.cs b/sdk/iot/Azure.ResourceManager.IotFirmwareDefense/src/Generated/LongRunningOperation/IotFirmwareDefenseArmOperationOfT.cs index 94a3da161ddb..b90a51e78057 100644 --- a/sdk/iot/Azure.ResourceManager.IotFirmwareDefense/src/Generated/LongRunningOperation/IotFirmwareDefenseArmOperationOfT.cs +++ b/sdk/iot/Azure.ResourceManager.IotFirmwareDefense/src/Generated/LongRunningOperation/IotFirmwareDefenseArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class IotFirmwareDefenseArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of IotFirmwareDefenseArmOperation for mocking. protected IotFirmwareDefenseArmOperation() { } - internal IotFirmwareDefenseArmOperation(Response response) + internal IotFirmwareDefenseArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal IotFirmwareDefenseArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "IotFirmwareDefenseArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal IotFirmwareDefenseArmOperation(IOperationSource source, ClientDiagno public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/iot/Azure.ResourceManager.IotFirmwareDefense/src/Generated/Models/FirmwareResource.Serialization.cs b/sdk/iot/Azure.ResourceManager.IotFirmwareDefense/src/Generated/Models/FirmwareResource.Serialization.cs new file mode 100644 index 000000000000..b8c7edb7a69a --- /dev/null +++ b/sdk/iot/Azure.ResourceManager.IotFirmwareDefense/src/Generated/Models/FirmwareResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.IotFirmwareDefense +{ + public partial class FirmwareResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + FirmwareData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + FirmwareData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/iot/Azure.ResourceManager.IotFirmwareDefense/src/Generated/Models/FirmwareWorkspaceResource.Serialization.cs b/sdk/iot/Azure.ResourceManager.IotFirmwareDefense/src/Generated/Models/FirmwareWorkspaceResource.Serialization.cs new file mode 100644 index 000000000000..48caa020cbeb --- /dev/null +++ b/sdk/iot/Azure.ResourceManager.IotFirmwareDefense/src/Generated/Models/FirmwareWorkspaceResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.IotFirmwareDefense +{ + public partial class FirmwareWorkspaceResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + FirmwareWorkspaceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + FirmwareWorkspaceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/iot/Azure.ResourceManager.IotFirmwareDefense/src/Generated/RestOperations/FirmwareRestOperations.cs b/sdk/iot/Azure.ResourceManager.IotFirmwareDefense/src/Generated/RestOperations/FirmwareRestOperations.cs index 7fe3830ab2a8..a82ea02d15f3 100644 --- a/sdk/iot/Azure.ResourceManager.IotFirmwareDefense/src/Generated/RestOperations/FirmwareRestOperations.cs +++ b/sdk/iot/Azure.ResourceManager.IotFirmwareDefense/src/Generated/RestOperations/FirmwareRestOperations.cs @@ -37,6 +37,21 @@ public FirmwareRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByWorkspaceRequestUri(string subscriptionId, string resourceGroupName, string workspaceName) + { + 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.IoTFirmwareDefense/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/firmwares", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByWorkspaceRequest(string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByWorkspace(string subscriptionId, string reso } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string firmwareName, FirmwareData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.IoTFirmwareDefense/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/firmwares/", false); + uri.AppendPath(firmwareName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string firmwareName, FirmwareData data) { var message = _pipeline.CreateMessage(); @@ -210,6 +241,22 @@ public Response Create(string subscriptionId, string resourceGroup } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string firmwareName, FirmwarePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.IoTFirmwareDefense/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/firmwares/", false); + uri.AppendPath(firmwareName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string firmwareName, FirmwarePatch patch) { var message = _pipeline.CreateMessage(); @@ -304,6 +351,22 @@ public Response Update(string subscriptionId, string resourceGroup } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string firmwareName) + { + 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.IoTFirmwareDefense/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/firmwares/", false); + uri.AppendPath(firmwareName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string workspaceName, string firmwareName) { var message = _pipeline.CreateMessage(); @@ -380,6 +443,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string w } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string firmwareName) + { + 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.IoTFirmwareDefense/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/firmwares/", false); + uri.AppendPath(firmwareName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName, string firmwareName) { var message = _pipeline.CreateMessage(); @@ -468,6 +547,23 @@ public Response Get(string subscriptionId, string resourceGroupNam } } + internal RequestUriBuilder CreateGenerateDownloadUrlRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string firmwareName) + { + 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.IoTFirmwareDefense/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/firmwares/", false); + uri.AppendPath(firmwareName, true); + uri.AppendPath("/generateDownloadUrl", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGenerateDownloadUrlRequest(string subscriptionId, string resourceGroupName, string workspaceName, string firmwareName) { var message = _pipeline.CreateMessage(); @@ -553,6 +649,23 @@ public Response GenerateDownloadUrl(string subscriptionId, string reso } } + internal RequestUriBuilder CreateGenerateFilesystemDownloadUrlRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string firmwareName) + { + 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.IoTFirmwareDefense/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/firmwares/", false); + uri.AppendPath(firmwareName, true); + uri.AppendPath("/generateFilesystemDownloadUrl", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGenerateFilesystemDownloadUrlRequest(string subscriptionId, string resourceGroupName, string workspaceName, string firmwareName) { var message = _pipeline.CreateMessage(); @@ -638,6 +751,23 @@ public Response GenerateFilesystemDownloadUrl(string subscriptionId, s } } + internal RequestUriBuilder CreateGetFirmwareSummaryRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string firmwareName) + { + 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.IoTFirmwareDefense/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/firmwares/", false); + uri.AppendPath(firmwareName, true); + uri.AppendPath("/generateSummary", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetFirmwareSummaryRequest(string subscriptionId, string resourceGroupName, string workspaceName, string firmwareName) { var message = _pipeline.CreateMessage(); @@ -723,6 +853,23 @@ public Response GetFirmwareSummary(string subscriptionId, strin } } + internal RequestUriBuilder CreateListSbomComponentsRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string firmwareName) + { + 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.IoTFirmwareDefense/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/firmwares/", false); + uri.AppendPath(firmwareName, true); + uri.AppendPath("/generateComponentList", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListSbomComponentsRequest(string subscriptionId, string resourceGroupName, string workspaceName, string firmwareName) { var message = _pipeline.CreateMessage(); @@ -808,6 +955,23 @@ public Response ListSbomComponents(string subscriptionId, string } } + internal RequestUriBuilder CreateGetComponentDetailsRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string firmwareName) + { + 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.IoTFirmwareDefense/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/firmwares/", false); + uri.AppendPath(firmwareName, true); + uri.AppendPath("/generateComponentDetails", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetComponentDetailsRequest(string subscriptionId, string resourceGroupName, string workspaceName, string firmwareName) { var message = _pipeline.CreateMessage(); @@ -893,6 +1057,23 @@ public Response GetComponentDetails(string subscriptionId, string } } + internal RequestUriBuilder CreateListBinaryHardeningResultsRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string firmwareName) + { + 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.IoTFirmwareDefense/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/firmwares/", false); + uri.AppendPath(firmwareName, true); + uri.AppendPath("/generateBinaryHardeningList", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBinaryHardeningResultsRequest(string subscriptionId, string resourceGroupName, string workspaceName, string firmwareName) { var message = _pipeline.CreateMessage(); @@ -978,6 +1159,23 @@ public Response ListBinaryHardeningResults(string subscript } } + internal RequestUriBuilder CreateGetBinaryHardeningSummaryRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string firmwareName) + { + 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.IoTFirmwareDefense/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/firmwares/", false); + uri.AppendPath(firmwareName, true); + uri.AppendPath("/generateBinaryHardeningSummary", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetBinaryHardeningSummaryRequest(string subscriptionId, string resourceGroupName, string workspaceName, string firmwareName) { var message = _pipeline.CreateMessage(); @@ -1063,6 +1261,23 @@ public Response GetBinaryHardeningSummary(string subscri } } + internal RequestUriBuilder CreateGetBinaryHardeningDetailsRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string firmwareName) + { + 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.IoTFirmwareDefense/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/firmwares/", false); + uri.AppendPath(firmwareName, true); + uri.AppendPath("/generateBinaryHardeningDetails", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetBinaryHardeningDetailsRequest(string subscriptionId, string resourceGroupName, string workspaceName, string firmwareName) { var message = _pipeline.CreateMessage(); @@ -1148,6 +1363,23 @@ public Response GetBinaryHardeningDetails(string subscriptionId } } + internal RequestUriBuilder CreateListPasswordHashesRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string firmwareName) + { + 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.IoTFirmwareDefense/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/firmwares/", false); + uri.AppendPath(firmwareName, true); + uri.AppendPath("/generatePasswordHashList", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListPasswordHashesRequest(string subscriptionId, string resourceGroupName, string workspaceName, string firmwareName) { var message = _pipeline.CreateMessage(); @@ -1233,6 +1465,23 @@ public Response ListPasswordHashes(string subscriptionId, stri } } + internal RequestUriBuilder CreateListCvesRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string firmwareName) + { + 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.IoTFirmwareDefense/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/firmwares/", false); + uri.AppendPath(firmwareName, true); + uri.AppendPath("/generateCveList", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListCvesRequest(string subscriptionId, string resourceGroupName, string workspaceName, string firmwareName) { var message = _pipeline.CreateMessage(); @@ -1318,6 +1567,23 @@ public Response ListCves(string subscriptionId, string resourceGroupNam } } + internal RequestUriBuilder CreateGetCveSummaryRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string firmwareName) + { + 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.IoTFirmwareDefense/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/firmwares/", false); + uri.AppendPath(firmwareName, true); + uri.AppendPath("/generateCveSummary", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetCveSummaryRequest(string subscriptionId, string resourceGroupName, string workspaceName, string firmwareName) { var message = _pipeline.CreateMessage(); @@ -1403,6 +1669,23 @@ public Response GetCveSummary(string subscriptionId, string resource } } + internal RequestUriBuilder CreateGetCryptoCertificateSummaryRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string firmwareName) + { + 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.IoTFirmwareDefense/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/firmwares/", false); + uri.AppendPath(firmwareName, true); + uri.AppendPath("/generateCryptoCertificateSummary", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetCryptoCertificateSummaryRequest(string subscriptionId, string resourceGroupName, string workspaceName, string firmwareName) { var message = _pipeline.CreateMessage(); @@ -1488,6 +1771,23 @@ public Response GetCryptoCertificateSummary(st } } + internal RequestUriBuilder CreateGetCryptoKeySummaryRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string firmwareName) + { + 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.IoTFirmwareDefense/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/firmwares/", false); + uri.AppendPath(firmwareName, true); + uri.AppendPath("/generateCryptoKeySummary", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetCryptoKeySummaryRequest(string subscriptionId, string resourceGroupName, string workspaceName, string firmwareName) { var message = _pipeline.CreateMessage(); @@ -1573,6 +1873,23 @@ public Response GetCryptoKeySummary(string subscriptio } } + internal RequestUriBuilder CreateListCryptoCertificatesRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string firmwareName) + { + 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.IoTFirmwareDefense/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/firmwares/", false); + uri.AppendPath(firmwareName, true); + uri.AppendPath("/generateCryptoCertificateList", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListCryptoCertificatesRequest(string subscriptionId, string resourceGroupName, string workspaceName, string firmwareName) { var message = _pipeline.CreateMessage(); @@ -1658,6 +1975,23 @@ public Response ListCryptoCertificates(string sub } } + internal RequestUriBuilder CreateListCryptoKeysRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string firmwareName) + { + 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.IoTFirmwareDefense/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/firmwares/", false); + uri.AppendPath(firmwareName, true); + uri.AppendPath("/generateCryptoKeyList", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListCryptoKeysRequest(string subscriptionId, string resourceGroupName, string workspaceName, string firmwareName) { var message = _pipeline.CreateMessage(); @@ -1743,6 +2077,14 @@ public Response ListCryptoKeys(string subscriptionId, str } } + internal RequestUriBuilder CreateListByWorkspaceNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByWorkspaceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); @@ -1819,6 +2161,14 @@ public Response ListByWorkspaceNextPage(string nextLink, string su } } + internal RequestUriBuilder CreateListSbomComponentsNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string firmwareName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListSbomComponentsNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string firmwareName) { var message = _pipeline.CreateMessage(); @@ -1899,6 +2249,14 @@ public Response ListSbomComponentsNextPage(string nextLink, strin } } + internal RequestUriBuilder CreateListBinaryHardeningResultsNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string firmwareName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBinaryHardeningResultsNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string firmwareName) { var message = _pipeline.CreateMessage(); @@ -1979,6 +2337,14 @@ public Response ListBinaryHardeningResultsNextPage(string n } } + internal RequestUriBuilder CreateListPasswordHashesNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string firmwareName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListPasswordHashesNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string firmwareName) { var message = _pipeline.CreateMessage(); @@ -2059,6 +2425,14 @@ public Response ListPasswordHashesNextPage(string nextLink, st } } + internal RequestUriBuilder CreateListCvesNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string firmwareName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListCvesNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string firmwareName) { var message = _pipeline.CreateMessage(); @@ -2139,6 +2513,14 @@ public Response ListCvesNextPage(string nextLink, string subscriptionId } } + internal RequestUriBuilder CreateListCryptoCertificatesNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string firmwareName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListCryptoCertificatesNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string firmwareName) { var message = _pipeline.CreateMessage(); @@ -2219,6 +2601,14 @@ public Response ListCryptoCertificatesNextPage(st } } + internal RequestUriBuilder CreateListCryptoKeysNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string firmwareName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListCryptoKeysNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string firmwareName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/iot/Azure.ResourceManager.IotFirmwareDefense/src/Generated/RestOperations/WorkspacesRestOperations.cs b/sdk/iot/Azure.ResourceManager.IotFirmwareDefense/src/Generated/RestOperations/WorkspacesRestOperations.cs index 8153fed6ed25..b640fa7f70d7 100644 --- a/sdk/iot/Azure.ResourceManager.IotFirmwareDefense/src/Generated/RestOperations/WorkspacesRestOperations.cs +++ b/sdk/iot/Azure.ResourceManager.IotFirmwareDefense/src/Generated/RestOperations/WorkspacesRestOperations.cs @@ -37,6 +37,17 @@ public WorkspacesRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.IoTFirmwareDefense/workspaces", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,19 @@ public Response ListBySubscription(string subscriptionId, Cancell } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.IoTFirmwareDefense/workspaces", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -177,6 +201,20 @@ public Response ListByResourceGroup(string subscriptionId, string } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, FirmwareWorkspaceData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.IoTFirmwareDefense/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string workspaceName, FirmwareWorkspaceData data) { var message = _pipeline.CreateMessage(); @@ -265,6 +303,20 @@ public Response Create(string subscriptionId, string reso } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, FirmwareWorkspacePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.IoTFirmwareDefense/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, FirmwareWorkspacePatch patch) { var message = _pipeline.CreateMessage(); @@ -353,6 +405,20 @@ public Response Update(string subscriptionId, string reso } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string workspaceName) + { + 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.IoTFirmwareDefense/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); @@ -423,6 +489,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string w } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workspaceName) + { + 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.IoTFirmwareDefense/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); @@ -507,6 +587,21 @@ public Response Get(string subscriptionId, string resourc } } + internal RequestUriBuilder CreateGenerateUploadUrlRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, UploadUrlContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.IoTFirmwareDefense/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/generateUploadUrl", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGenerateUploadUrlRequest(string subscriptionId, string resourceGroupName, string workspaceName, UploadUrlContent content) { var message = _pipeline.CreateMessage(); @@ -594,6 +689,14 @@ public Response GenerateUploadUrl(string subscriptionId, string resour } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -662,6 +765,14 @@ public Response ListBySubscriptionNextPage(string nextLink, strin } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/iotcentral/Azure.ResourceManager.IotCentral/src/Generated/LongRunningOperation/IotCentralArmOperation.cs b/sdk/iotcentral/Azure.ResourceManager.IotCentral/src/Generated/LongRunningOperation/IotCentralArmOperation.cs index 32d361795f52..a04040bc3245 100644 --- a/sdk/iotcentral/Azure.ResourceManager.IotCentral/src/Generated/LongRunningOperation/IotCentralArmOperation.cs +++ b/sdk/iotcentral/Azure.ResourceManager.IotCentral/src/Generated/LongRunningOperation/IotCentralArmOperation.cs @@ -20,21 +20,24 @@ internal class IotCentralArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of IotCentralArmOperation for mocking. protected IotCentralArmOperation() { } - internal IotCentralArmOperation(Response response) + internal IotCentralArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal IotCentralArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "IotCentralArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal IotCentralArmOperation(ClientDiagnostics clientDiagnostics, HttpPipelin public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/iotcentral/Azure.ResourceManager.IotCentral/src/Generated/LongRunningOperation/IotCentralArmOperationOfT.cs b/sdk/iotcentral/Azure.ResourceManager.IotCentral/src/Generated/LongRunningOperation/IotCentralArmOperationOfT.cs index ce4a598a81d4..d350dc86c11e 100644 --- a/sdk/iotcentral/Azure.ResourceManager.IotCentral/src/Generated/LongRunningOperation/IotCentralArmOperationOfT.cs +++ b/sdk/iotcentral/Azure.ResourceManager.IotCentral/src/Generated/LongRunningOperation/IotCentralArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class IotCentralArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of IotCentralArmOperation for mocking. protected IotCentralArmOperation() { } - internal IotCentralArmOperation(Response response) + internal IotCentralArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal IotCentralArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "IotCentralArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal IotCentralArmOperation(IOperationSource source, ClientDiagnostics cl public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/iotcentral/Azure.ResourceManager.IotCentral/src/Generated/Models/IotCentralAppResource.Serialization.cs b/sdk/iotcentral/Azure.ResourceManager.IotCentral/src/Generated/Models/IotCentralAppResource.Serialization.cs new file mode 100644 index 000000000000..8c5c6fa6351b --- /dev/null +++ b/sdk/iotcentral/Azure.ResourceManager.IotCentral/src/Generated/Models/IotCentralAppResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.IotCentral +{ + public partial class IotCentralAppResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + IotCentralAppData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + IotCentralAppData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/iotcentral/Azure.ResourceManager.IotCentral/src/Generated/Models/IotCentralPrivateEndpointConnectionResource.Serialization.cs b/sdk/iotcentral/Azure.ResourceManager.IotCentral/src/Generated/Models/IotCentralPrivateEndpointConnectionResource.Serialization.cs new file mode 100644 index 000000000000..225305b6539e --- /dev/null +++ b/sdk/iotcentral/Azure.ResourceManager.IotCentral/src/Generated/Models/IotCentralPrivateEndpointConnectionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.IotCentral +{ + public partial class IotCentralPrivateEndpointConnectionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + IotCentralPrivateEndpointConnectionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + IotCentralPrivateEndpointConnectionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/iotcentral/Azure.ResourceManager.IotCentral/src/Generated/Models/IotCentralPrivateLinkResource.Serialization.cs b/sdk/iotcentral/Azure.ResourceManager.IotCentral/src/Generated/Models/IotCentralPrivateLinkResource.Serialization.cs new file mode 100644 index 000000000000..62cb2f656bb5 --- /dev/null +++ b/sdk/iotcentral/Azure.ResourceManager.IotCentral/src/Generated/Models/IotCentralPrivateLinkResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.IotCentral +{ + public partial class IotCentralPrivateLinkResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + IotCentralPrivateLinkResourceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + IotCentralPrivateLinkResourceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/iotcentral/Azure.ResourceManager.IotCentral/src/Generated/RestOperations/AppsRestOperations.cs b/sdk/iotcentral/Azure.ResourceManager.IotCentral/src/Generated/RestOperations/AppsRestOperations.cs index 57f337ac97a6..1e169ed0a45c 100644 --- a/sdk/iotcentral/Azure.ResourceManager.IotCentral/src/Generated/RestOperations/AppsRestOperations.cs +++ b/sdk/iotcentral/Azure.ResourceManager.IotCentral/src/Generated/RestOperations/AppsRestOperations.cs @@ -37,6 +37,20 @@ public AppsRestOperations(HttpPipeline pipeline, string applicationId, Uri endpo _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string resourceName) + { + 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.IoTCentral/iotApps/", false); + uri.AppendPath(resourceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); @@ -119,6 +133,20 @@ public Response Get(string subscriptionId, string resourceGro } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string resourceName, IotCentralAppData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.IoTCentral/iotApps/", false); + uri.AppendPath(resourceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string resourceName, IotCentralAppData data) { var message = _pipeline.CreateMessage(); @@ -197,6 +225,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string resourceName, IotCentralAppPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.IoTCentral/iotApps/", false); + uri.AppendPath(resourceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string resourceName, IotCentralAppPatch patch) { var message = _pipeline.CreateMessage(); @@ -273,6 +315,20 @@ public Response Update(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string resourceName) + { + 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.IoTCentral/iotApps/", false); + uri.AppendPath(resourceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); @@ -343,6 +399,17 @@ public Response Delete(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.IoTCentral/iotApps", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -410,6 +477,19 @@ public Response ListBySubscription(string subscriptionI } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.IoTCentral/iotApps", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -483,6 +563,17 @@ public Response ListByResourceGroup(string subscription } } + internal RequestUriBuilder CreateCheckNameAvailabilityRequestUri(string subscriptionId, IotCentralAppNameAvailabilityContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.IoTCentral/checkNameAvailability", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCheckNameAvailabilityRequest(string subscriptionId, IotCentralAppNameAvailabilityContent content) { var message = _pipeline.CreateMessage(); @@ -558,6 +649,17 @@ public Response CheckNameAvailability(str } } + internal RequestUriBuilder CreateCheckSubdomainAvailabilityRequestUri(string subscriptionId, IotCentralAppNameAvailabilityContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.IoTCentral/checkSubdomainAvailability", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCheckSubdomainAvailabilityRequest(string subscriptionId, IotCentralAppNameAvailabilityContent content) { var message = _pipeline.CreateMessage(); @@ -633,6 +735,17 @@ public Response CheckSubdomainAvailabilit } } + internal RequestUriBuilder CreateListTemplatesRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.IoTCentral/appTemplates", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListTemplatesRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -700,6 +813,14 @@ public Response ListTemplates(string subscriptionI } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -768,6 +889,14 @@ public Response ListBySubscriptionNextPage(string nextL } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -840,6 +969,14 @@ public Response ListByResourceGroupNextPage(string next } } + internal RequestUriBuilder CreateListTemplatesNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListTemplatesNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/iotcentral/Azure.ResourceManager.IotCentral/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs b/sdk/iotcentral/Azure.ResourceManager.IotCentral/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs index 7f45756a3c78..57ffd4c6d955 100644 --- a/sdk/iotcentral/Azure.ResourceManager.IotCentral/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs +++ b/sdk/iotcentral/Azure.ResourceManager.IotCentral/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs @@ -37,6 +37,22 @@ public PrivateEndpointConnectionsRestOperations(HttpPipeline pipeline, string ap _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string privateEndpointConnectionName) + { + 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.IoTCentral/iotApps/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string resourceName, string privateEndpointConnectionName) { var message = _pipeline.CreateMessage(); @@ -125,6 +141,22 @@ public Response Get(string subscription } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string privateEndpointConnectionName, IotCentralPrivateEndpointConnectionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.IoTCentral/iotApps/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string resourceName, string privateEndpointConnectionName, IotCentralPrivateEndpointConnectionData data) { var message = _pipeline.CreateMessage(); @@ -207,6 +239,22 @@ public Response Create(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string privateEndpointConnectionName) + { + 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.IoTCentral/iotApps/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string resourceName, string privateEndpointConnectionName) { var message = _pipeline.CreateMessage(); @@ -283,6 +331,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string resourceName) + { + 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.IoTCentral/iotApps/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/privateEndpointConnections", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/iotcentral/Azure.ResourceManager.IotCentral/src/Generated/RestOperations/PrivateLinksRestOperations.cs b/sdk/iotcentral/Azure.ResourceManager.IotCentral/src/Generated/RestOperations/PrivateLinksRestOperations.cs index 55c26c4b3461..9241b032a101 100644 --- a/sdk/iotcentral/Azure.ResourceManager.IotCentral/src/Generated/RestOperations/PrivateLinksRestOperations.cs +++ b/sdk/iotcentral/Azure.ResourceManager.IotCentral/src/Generated/RestOperations/PrivateLinksRestOperations.cs @@ -37,6 +37,22 @@ public PrivateLinksRestOperations(HttpPipeline pipeline, string applicationId, U _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string groupId) + { + 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.IoTCentral/iotApps/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/privateLinkResources/", false); + uri.AppendPath(groupId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string resourceName, string groupId) { var message = _pipeline.CreateMessage(); @@ -125,6 +141,21 @@ public Response Get(string subscriptionId, st } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string resourceName) + { + 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.IoTCentral/iotApps/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/privateLinkResources", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/EventHubConsumerGroupInfoCollection.cs b/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/EventHubConsumerGroupInfoCollection.cs index 2b455c95ce62..bac3ef30f50c 100644 --- a/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/EventHubConsumerGroupInfoCollection.cs +++ b/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/EventHubConsumerGroupInfoCollection.cs @@ -96,7 +96,9 @@ public virtual async Task> Creat try { var response = await _eventHubConsumerGroupInfoIotHubResourceRestClient.CreateEventHubConsumerGroupAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, _eventHubEndpointName, name, content, cancellationToken).ConfigureAwait(false); - var operation = new IotHubArmOperation(Response.FromValue(new EventHubConsumerGroupInfoResource(Client, response), response.GetRawResponse())); + var uri = _eventHubConsumerGroupInfoIotHubResourceRestClient.CreateCreateEventHubConsumerGroupRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, _eventHubEndpointName, name, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new IotHubArmOperation(Response.FromValue(new EventHubConsumerGroupInfoResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -145,7 +147,9 @@ public virtual ArmOperation CreateOrUpdate(Wa try { var response = _eventHubConsumerGroupInfoIotHubResourceRestClient.CreateEventHubConsumerGroup(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, _eventHubEndpointName, name, content, cancellationToken); - var operation = new IotHubArmOperation(Response.FromValue(new EventHubConsumerGroupInfoResource(Client, response), response.GetRawResponse())); + var uri = _eventHubConsumerGroupInfoIotHubResourceRestClient.CreateCreateEventHubConsumerGroupRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, _eventHubEndpointName, name, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new IotHubArmOperation(Response.FromValue(new EventHubConsumerGroupInfoResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/EventHubConsumerGroupInfoResource.cs b/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/EventHubConsumerGroupInfoResource.cs index 3aab8eb10d72..1838424cfa59 100644 --- a/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/EventHubConsumerGroupInfoResource.cs +++ b/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/EventHubConsumerGroupInfoResource.cs @@ -202,7 +202,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _eventHubConsumerGroupInfoIotHubResourceRestClient.DeleteEventHubConsumerGroupAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new IotHubArmOperation(response); + var uri = _eventHubConsumerGroupInfoIotHubResourceRestClient.CreateDeleteEventHubConsumerGroupRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new IotHubArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -244,7 +246,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _eventHubConsumerGroupInfoIotHubResourceRestClient.DeleteEventHubConsumerGroup(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new IotHubArmOperation(response); + var uri = _eventHubConsumerGroupInfoIotHubResourceRestClient.CreateDeleteEventHubConsumerGroupRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new IotHubArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -290,7 +294,9 @@ public virtual async Task> Updat try { var response = await _eventHubConsumerGroupInfoIotHubResourceRestClient.CreateEventHubConsumerGroupAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content, cancellationToken).ConfigureAwait(false); - var operation = new IotHubArmOperation(Response.FromValue(new EventHubConsumerGroupInfoResource(Client, response), response.GetRawResponse())); + var uri = _eventHubConsumerGroupInfoIotHubResourceRestClient.CreateCreateEventHubConsumerGroupRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new IotHubArmOperation(Response.FromValue(new EventHubConsumerGroupInfoResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -336,7 +342,9 @@ public virtual ArmOperation Update(WaitUntil try { var response = _eventHubConsumerGroupInfoIotHubResourceRestClient.CreateEventHubConsumerGroup(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content, cancellationToken); - var operation = new IotHubArmOperation(Response.FromValue(new EventHubConsumerGroupInfoResource(Client, response), response.GetRawResponse())); + var uri = _eventHubConsumerGroupInfoIotHubResourceRestClient.CreateCreateEventHubConsumerGroupRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new IotHubArmOperation(Response.FromValue(new EventHubConsumerGroupInfoResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/IotHubCertificateDescriptionCollection.cs b/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/IotHubCertificateDescriptionCollection.cs index 9363f76b61af..34100e7cbb84 100644 --- a/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/IotHubCertificateDescriptionCollection.cs +++ b/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/IotHubCertificateDescriptionCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> Cr try { var response = await _iotHubCertificateDescriptionCertificatesRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, certificateName, data, ifMatch, cancellationToken).ConfigureAwait(false); - var operation = new IotHubArmOperation(Response.FromValue(new IotHubCertificateDescriptionResource(Client, response), response.GetRawResponse())); + var uri = _iotHubCertificateDescriptionCertificatesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, certificateName, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new IotHubArmOperation(Response.FromValue(new IotHubCertificateDescriptionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -141,7 +143,9 @@ public virtual ArmOperation CreateOrUpdate try { var response = _iotHubCertificateDescriptionCertificatesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, certificateName, data, ifMatch, cancellationToken); - var operation = new IotHubArmOperation(Response.FromValue(new IotHubCertificateDescriptionResource(Client, response), response.GetRawResponse())); + var uri = _iotHubCertificateDescriptionCertificatesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, certificateName, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new IotHubArmOperation(Response.FromValue(new IotHubCertificateDescriptionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/IotHubCertificateDescriptionResource.cs b/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/IotHubCertificateDescriptionResource.cs index e6c7755b39e8..f665374d14f8 100644 --- a/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/IotHubCertificateDescriptionResource.cs +++ b/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/IotHubCertificateDescriptionResource.cs @@ -205,7 +205,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, string try { var response = await _iotHubCertificateDescriptionCertificatesRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch, cancellationToken).ConfigureAwait(false); - var operation = new IotHubArmOperation(response); + var uri = _iotHubCertificateDescriptionCertificatesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new IotHubArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -251,7 +253,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, string ifMatch, Cancella try { var response = _iotHubCertificateDescriptionCertificatesRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch, cancellationToken); - var operation = new IotHubArmOperation(response); + var uri = _iotHubCertificateDescriptionCertificatesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new IotHubArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -298,7 +302,9 @@ public virtual async Task> Up try { var response = await _iotHubCertificateDescriptionCertificatesRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, ifMatch, cancellationToken).ConfigureAwait(false); - var operation = new IotHubArmOperation(Response.FromValue(new IotHubCertificateDescriptionResource(Client, response), response.GetRawResponse())); + var uri = _iotHubCertificateDescriptionCertificatesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new IotHubArmOperation(Response.FromValue(new IotHubCertificateDescriptionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -345,7 +351,9 @@ public virtual ArmOperation Update(WaitUnt try { var response = _iotHubCertificateDescriptionCertificatesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, ifMatch, cancellationToken); - var operation = new IotHubArmOperation(Response.FromValue(new IotHubCertificateDescriptionResource(Client, response), response.GetRawResponse())); + var uri = _iotHubCertificateDescriptionCertificatesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new IotHubArmOperation(Response.FromValue(new IotHubCertificateDescriptionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/LongRunningOperation/IotHubArmOperation.cs b/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/LongRunningOperation/IotHubArmOperation.cs index 4c63b4effa50..23b4334d3039 100644 --- a/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/LongRunningOperation/IotHubArmOperation.cs +++ b/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/LongRunningOperation/IotHubArmOperation.cs @@ -20,21 +20,24 @@ internal class IotHubArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of IotHubArmOperation for mocking. protected IotHubArmOperation() { } - internal IotHubArmOperation(Response response) + internal IotHubArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal IotHubArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "IotHubArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal IotHubArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pi public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/LongRunningOperation/IotHubArmOperationOfT.cs b/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/LongRunningOperation/IotHubArmOperationOfT.cs index 7eb233315be5..e81b7093bbf6 100644 --- a/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/LongRunningOperation/IotHubArmOperationOfT.cs +++ b/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/LongRunningOperation/IotHubArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class IotHubArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of IotHubArmOperation for mocking. protected IotHubArmOperation() { } - internal IotHubArmOperation(Response response) + internal IotHubArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal IotHubArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "IotHubArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal IotHubArmOperation(IOperationSource source, ClientDiagnostics client public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/EventHubConsumerGroupInfoResource.Serialization.cs b/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/EventHubConsumerGroupInfoResource.Serialization.cs new file mode 100644 index 000000000000..7d41a99974c2 --- /dev/null +++ b/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/EventHubConsumerGroupInfoResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.IotHub +{ + public partial class EventHubConsumerGroupInfoResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + EventHubConsumerGroupInfoData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + EventHubConsumerGroupInfoData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubCertificateDescriptionResource.Serialization.cs b/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubCertificateDescriptionResource.Serialization.cs new file mode 100644 index 000000000000..87b505879f77 --- /dev/null +++ b/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubCertificateDescriptionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.IotHub +{ + public partial class IotHubCertificateDescriptionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + IotHubCertificateDescriptionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + IotHubCertificateDescriptionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubDescriptionResource.Serialization.cs b/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubDescriptionResource.Serialization.cs new file mode 100644 index 000000000000..d5eca9c0203d --- /dev/null +++ b/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubDescriptionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.IotHub +{ + public partial class IotHubDescriptionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + IotHubDescriptionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + IotHubDescriptionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubPrivateEndpointConnectionResource.Serialization.cs b/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubPrivateEndpointConnectionResource.Serialization.cs new file mode 100644 index 000000000000..29e6066a01b0 --- /dev/null +++ b/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubPrivateEndpointConnectionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.IotHub +{ + public partial class IotHubPrivateEndpointConnectionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + IotHubPrivateEndpointConnectionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + IotHubPrivateEndpointConnectionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubPrivateEndpointGroupInformationResource.Serialization.cs b/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubPrivateEndpointGroupInformationResource.Serialization.cs new file mode 100644 index 000000000000..376cb85f7a9e --- /dev/null +++ b/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubPrivateEndpointGroupInformationResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.IotHub +{ + public partial class IotHubPrivateEndpointGroupInformationResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + IotHubPrivateEndpointGroupInformationData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + IotHubPrivateEndpointGroupInformationData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/RestOperations/CertificatesRestOperations.cs b/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/RestOperations/CertificatesRestOperations.cs index 60f96efe5b1e..c7ccdba9e1a9 100644 --- a/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/RestOperations/CertificatesRestOperations.cs +++ b/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/RestOperations/CertificatesRestOperations.cs @@ -37,6 +37,21 @@ public CertificatesRestOperations(HttpPipeline pipeline, string applicationId, U _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByIotHubRequestUri(string subscriptionId, string resourceGroupName, string resourceName) + { + 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.Devices/IotHubs/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/certificates", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByIotHubRequest(string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByIotHub(string subscripti } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string certificateName) + { + 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.Devices/IotHubs/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/certificates/", false); + uri.AppendPath(certificateName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string resourceName, string certificateName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscriptionId, str } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string certificateName, IotHubCertificateDescriptionData data, string ifMatch) + { + 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.Devices/IotHubs/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/certificates/", false); + uri.AppendPath(certificateName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string resourceName, string certificateName, IotHubCertificateDescriptionData data, string ifMatch) { var message = _pipeline.CreateMessage(); @@ -304,6 +351,22 @@ public Response CreateOrUpdate(string subscrip } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string certificateName, string ifMatch) + { + 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.Devices/IotHubs/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/certificates/", false); + uri.AppendPath(certificateName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string resourceName, string certificateName, string ifMatch) { var message = _pipeline.CreateMessage(); @@ -385,6 +448,23 @@ public Response Delete(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateGenerateVerificationCodeRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string certificateName, string ifMatch) + { + 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.Devices/IotHubs/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/certificates/", false); + uri.AppendPath(certificateName, true); + uri.AppendPath("/generateVerificationCode", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGenerateVerificationCodeRequest(string subscriptionId, string resourceGroupName, string resourceName, string certificateName, string ifMatch) { var message = _pipeline.CreateMessage(); @@ -475,6 +555,23 @@ public Response GenerateVerificationCode( } } + internal RequestUriBuilder CreateVerifyRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string certificateName, string ifMatch, IotHubCertificateVerificationContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Devices/IotHubs/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/certificates/", false); + uri.AppendPath(certificateName, true); + uri.AppendPath("/verify", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateVerifyRequest(string subscriptionId, string resourceGroupName, string resourceName, string certificateName, string ifMatch, IotHubCertificateVerificationContent content) { var message = _pipeline.CreateMessage(); diff --git a/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/RestOperations/IotHubResourceRestOperations.cs b/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/RestOperations/IotHubResourceRestOperations.cs index 55bc3f47ac21..775ccf96c2e5 100644 --- a/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/RestOperations/IotHubResourceRestOperations.cs +++ b/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/RestOperations/IotHubResourceRestOperations.cs @@ -37,6 +37,20 @@ public IotHubResourceRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string resourceName) + { + 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.Devices/IotHubs/", false); + uri.AppendPath(resourceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); @@ -119,6 +133,20 @@ public Response Get(string subscriptionId, string resourc } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string resourceName, IotHubDescriptionData data, string ifMatch) + { + 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.Devices/IotHubs/", false); + uri.AppendPath(resourceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string resourceName, IotHubDescriptionData data, string ifMatch) { var message = _pipeline.CreateMessage(); @@ -203,6 +231,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string resourceName, IotHubDescriptionPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Devices/IotHubs/", false); + uri.AppendPath(resourceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string resourceName, IotHubDescriptionPatch patch) { var message = _pipeline.CreateMessage(); @@ -279,6 +321,20 @@ public Response Update(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string resourceName) + { + 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.Devices/IotHubs/", false); + uri.AppendPath(resourceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); @@ -353,6 +409,17 @@ public Response Delete(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Devices/IotHubs", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -420,6 +487,19 @@ public Response ListBySubscription(string subscript } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.Devices/IotHubs", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -493,6 +573,21 @@ public Response ListByResourceGroup(string subscrip } } + internal RequestUriBuilder CreateGetStatsRequestUri(string subscriptionId, string resourceGroupName, string resourceName) + { + 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.Devices/IotHubs/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/IotHubStats", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetStatsRequest(string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); @@ -572,6 +667,21 @@ public Response GetStats(string subscriptionId, string } } + internal RequestUriBuilder CreateGetValidSkusRequestUri(string subscriptionId, string resourceGroupName, string resourceName) + { + 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.Devices/IotHubs/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/skus", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetValidSkusRequest(string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); @@ -651,6 +761,23 @@ public Response GetValidSkus(string subscription } } + internal RequestUriBuilder CreateListEventHubConsumerGroupsRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string eventHubEndpointName) + { + 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.Devices/IotHubs/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/eventHubEndpoints/", false); + uri.AppendPath(eventHubEndpointName, true); + uri.AppendPath("/ConsumerGroups", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListEventHubConsumerGroupsRequest(string subscriptionId, string resourceGroupName, string resourceName, string eventHubEndpointName) { var message = _pipeline.CreateMessage(); @@ -736,6 +863,24 @@ public Response ListEventHubConsumerGroups(str } } + internal RequestUriBuilder CreateGetEventHubConsumerGroupRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string eventHubEndpointName, string name) + { + 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.Devices/IotHubs/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/eventHubEndpoints/", false); + uri.AppendPath(eventHubEndpointName, true); + uri.AppendPath("/ConsumerGroups/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetEventHubConsumerGroupRequest(string subscriptionId, string resourceGroupName, string resourceName, string eventHubEndpointName, string name) { var message = _pipeline.CreateMessage(); @@ -830,6 +975,24 @@ public Response GetEventHubConsumerGroup(string s } } + internal RequestUriBuilder CreateCreateEventHubConsumerGroupRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string eventHubEndpointName, string name, EventHubConsumerGroupInfoCreateOrUpdateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Devices/IotHubs/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/eventHubEndpoints/", false); + uri.AppendPath(eventHubEndpointName, true); + uri.AppendPath("/ConsumerGroups/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateEventHubConsumerGroupRequest(string subscriptionId, string resourceGroupName, string resourceName, string eventHubEndpointName, string name, EventHubConsumerGroupInfoCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); @@ -928,6 +1091,24 @@ public Response CreateEventHubConsumerGroup(strin } } + internal RequestUriBuilder CreateDeleteEventHubConsumerGroupRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string eventHubEndpointName, string name) + { + 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.Devices/IotHubs/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/eventHubEndpoints/", false); + uri.AppendPath(eventHubEndpointName, true); + uri.AppendPath("/ConsumerGroups/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteEventHubConsumerGroupRequest(string subscriptionId, string resourceGroupName, string resourceName, string eventHubEndpointName, string name) { var message = _pipeline.CreateMessage(); @@ -1008,6 +1189,21 @@ public Response DeleteEventHubConsumerGroup(string subscriptionId, string resour } } + internal RequestUriBuilder CreateListJobsRequestUri(string subscriptionId, string resourceGroupName, string resourceName) + { + 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.Devices/IotHubs/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/jobs", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListJobsRequest(string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); @@ -1087,6 +1283,22 @@ public Response ListJobs(string subscriptionId, string } } + internal RequestUriBuilder CreateGetJobRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string jobId) + { + 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.Devices/IotHubs/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/jobs/", false); + uri.AppendPath(jobId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetJobRequest(string subscriptionId, string resourceGroupName, string resourceName, string jobId) { var message = _pipeline.CreateMessage(); @@ -1171,6 +1383,21 @@ public Response GetJob(string subscriptionId, string resourceGrou } } + internal RequestUriBuilder CreateGetQuotaMetricsRequestUri(string subscriptionId, string resourceGroupName, string resourceName) + { + 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.Devices/IotHubs/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/quotaMetrics", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetQuotaMetricsRequest(string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); @@ -1250,6 +1477,21 @@ public Response GetQuotaMetrics(string subscrip } } + internal RequestUriBuilder CreateGetEndpointHealthRequestUri(string subscriptionId, string resourceGroupName, string iotHubName) + { + 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.Devices/IotHubs/", false); + uri.AppendPath(iotHubName, true); + uri.AppendPath("/routingEndpointsHealth", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetEndpointHealthRequest(string subscriptionId, string resourceGroupName, string iotHubName) { var message = _pipeline.CreateMessage(); @@ -1329,6 +1571,17 @@ public Response GetEndpointHealth(string sub } } + internal RequestUriBuilder CreateCheckNameAvailabilityRequestUri(string subscriptionId, IotHubNameAvailabilityContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Devices/checkNameAvailability", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCheckNameAvailabilityRequest(string subscriptionId, IotHubNameAvailabilityContent content) { var message = _pipeline.CreateMessage(); @@ -1404,6 +1657,21 @@ public Response CheckNameAvailability(string sub } } + internal RequestUriBuilder CreateTestAllRoutesRequestUri(string subscriptionId, string resourceGroupName, string iotHubName, IotHubTestAllRoutesContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Devices/IotHubs/", false); + uri.AppendPath(iotHubName, true); + uri.AppendPath("/routing/routes/$testall", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateTestAllRoutesRequest(string subscriptionId, string resourceGroupName, string iotHubName, IotHubTestAllRoutesContent content) { var message = _pipeline.CreateMessage(); @@ -1491,6 +1759,21 @@ public Response TestAllRoutes(string subscriptionId, } } + internal RequestUriBuilder CreateTestRouteRequestUri(string subscriptionId, string resourceGroupName, string iotHubName, IotHubTestRouteContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Devices/IotHubs/", false); + uri.AppendPath(iotHubName, true); + uri.AppendPath("/routing/routes/$testnew", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateTestRouteRequest(string subscriptionId, string resourceGroupName, string iotHubName, IotHubTestRouteContent content) { var message = _pipeline.CreateMessage(); @@ -1578,6 +1861,21 @@ public Response TestRoute(string subscriptionId, string r } } + internal RequestUriBuilder CreateListKeysRequestUri(string subscriptionId, string resourceGroupName, string resourceName) + { + 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.Devices/IotHubs/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/listkeys", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListKeysRequest(string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); @@ -1657,6 +1955,23 @@ public Response ListKeys(strin } } + internal RequestUriBuilder CreateGetKeysForKeyNameRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string keyName) + { + 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.Devices/IotHubs/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/IotHubKeys/", false); + uri.AppendPath(keyName, true); + uri.AppendPath("/listkeys", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetKeysForKeyNameRequest(string subscriptionId, string resourceGroupName, string resourceName, string keyName) { var message = _pipeline.CreateMessage(); @@ -1742,6 +2057,21 @@ public Response GetKeysForKeyName(string } } + internal RequestUriBuilder CreateExportDevicesRequestUri(string subscriptionId, string resourceGroupName, string resourceName, ExportDevicesContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Devices/IotHubs/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/exportDevices", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateExportDevicesRequest(string subscriptionId, string resourceGroupName, string resourceName, ExportDevicesContent content) { var message = _pipeline.CreateMessage(); @@ -1829,6 +2159,21 @@ public Response ExportDevices(string subscriptionId, string resou } } + internal RequestUriBuilder CreateImportDevicesRequestUri(string subscriptionId, string resourceGroupName, string resourceName, IotHubImportDevicesContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Devices/IotHubs/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/importDevices", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateImportDevicesRequest(string subscriptionId, string resourceGroupName, string resourceName, IotHubImportDevicesContent content) { var message = _pipeline.CreateMessage(); @@ -1916,6 +2261,14 @@ public Response ImportDevices(string subscriptionId, string resou } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -1984,6 +2337,14 @@ public Response ListBySubscriptionNextPage(string n } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -2056,6 +2417,14 @@ public Response ListByResourceGroupNextPage(string } } + internal RequestUriBuilder CreateGetValidSkusNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string resourceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateGetValidSkusNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); @@ -2132,6 +2501,14 @@ public Response GetValidSkusNextPage(string next } } + internal RequestUriBuilder CreateListEventHubConsumerGroupsNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string resourceName, string eventHubEndpointName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListEventHubConsumerGroupsNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string resourceName, string eventHubEndpointName) { var message = _pipeline.CreateMessage(); @@ -2212,6 +2589,14 @@ public Response ListEventHubConsumerGroupsNext } } + internal RequestUriBuilder CreateListJobsNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string resourceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListJobsNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); @@ -2288,6 +2673,14 @@ public Response ListJobsNextPage(string nextLink, strin } } + internal RequestUriBuilder CreateGetQuotaMetricsNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string resourceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateGetQuotaMetricsNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); @@ -2364,6 +2757,14 @@ public Response GetQuotaMetricsNextPage(string } } + internal RequestUriBuilder CreateGetEndpointHealthNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string iotHubName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateGetEndpointHealthNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string iotHubName) { var message = _pipeline.CreateMessage(); @@ -2440,6 +2841,14 @@ public Response GetEndpointHealthNextPage(st } } + internal RequestUriBuilder CreateListKeysNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string resourceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListKeysNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/RestOperations/IotHubRestOperations.cs b/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/RestOperations/IotHubRestOperations.cs index c3b70b2dcbf1..a4c0ef8473d7 100644 --- a/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/RestOperations/IotHubRestOperations.cs +++ b/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/RestOperations/IotHubRestOperations.cs @@ -36,6 +36,21 @@ public IotHubRestOperations(HttpPipeline pipeline, string applicationId, Uri end _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateManualFailoverRequestUri(string subscriptionId, string resourceGroupName, string iotHubName, IotHubFailoverContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Devices/IotHubs/", false); + uri.AppendPath(iotHubName, true); + uri.AppendPath("/failover", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateManualFailoverRequest(string subscriptionId, string resourceGroupName, string iotHubName, IotHubFailoverContent content) { var message = _pipeline.CreateMessage(); diff --git a/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs b/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs index 31fb952d16a7..45f2caf2fef2 100644 --- a/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs +++ b/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs @@ -37,6 +37,21 @@ public PrivateEndpointConnectionsRestOperations(HttpPipeline pipeline, string ap _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string resourceName) + { + 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.Devices/iotHubs/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/privateEndpointConnections", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response List(string subscriptionId } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string privateEndpointConnectionName) + { + 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.Devices/iotHubs/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string resourceName, string privateEndpointConnectionName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscriptionId, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string privateEndpointConnectionName, IotHubPrivateEndpointConnectionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Devices/iotHubs/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string resourceName, string privateEndpointConnectionName, IotHubPrivateEndpointConnectionData data) { var message = _pipeline.CreateMessage(); @@ -288,6 +335,22 @@ public Response Update(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string privateEndpointConnectionName) + { + 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.Devices/iotHubs/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string resourceName, string privateEndpointConnectionName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs b/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs index 9cbe4807540f..f6839031dda5 100644 --- a/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs +++ b/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs @@ -37,6 +37,21 @@ public PrivateLinkResourcesRestOperations(HttpPipeline pipeline, string applicat _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string resourceName) + { + 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.Devices/iotHubs/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/privateLinkResources", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response List(string subscriptionId, string r } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string groupId) + { + 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.Devices/iotHubs/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/privateLinkResources/", false); + uri.AppendPath(groupId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string resourceName, string groupId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/RestOperations/ResourceProviderCommonRestOperations.cs b/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/RestOperations/ResourceProviderCommonRestOperations.cs index 609177ae88c2..f6a6f0ae3a40 100644 --- a/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/RestOperations/ResourceProviderCommonRestOperations.cs +++ b/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/RestOperations/ResourceProviderCommonRestOperations.cs @@ -37,6 +37,17 @@ public ResourceProviderCommonRestOperations(HttpPipeline pipeline, string applic _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetSubscriptionQuotaRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Devices/usages", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetSubscriptionQuotaRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/kubernetesconfiguration/Azure.ResourceManager.KubernetesConfiguration/src/Generated/KubernetesSourceControlConfigurationCollection.cs b/sdk/kubernetesconfiguration/Azure.ResourceManager.KubernetesConfiguration/src/Generated/KubernetesSourceControlConfigurationCollection.cs index 88b900f68bdf..54ebc7dac6bb 100644 --- a/sdk/kubernetesconfiguration/Azure.ResourceManager.KubernetesConfiguration/src/Generated/KubernetesSourceControlConfigurationCollection.cs +++ b/sdk/kubernetesconfiguration/Azure.ResourceManager.KubernetesConfiguration/src/Generated/KubernetesSourceControlConfigurationCollection.cs @@ -102,7 +102,9 @@ public virtual async Task(Response.FromValue(new KubernetesSourceControlConfigurationResource(Client, response), response.GetRawResponse())); + var uri = _kubernetesSourceControlConfigurationSourceControlConfigurationsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, _clusterRp, _clusterResourceName, _clusterName, sourceControlConfigurationName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new KubernetesConfigurationArmOperation(Response.FromValue(new KubernetesSourceControlConfigurationResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -151,7 +153,9 @@ public virtual ArmOperation Create try { var response = _kubernetesSourceControlConfigurationSourceControlConfigurationsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, _clusterRp, _clusterResourceName, _clusterName, sourceControlConfigurationName, data, cancellationToken); - var operation = new KubernetesConfigurationArmOperation(Response.FromValue(new KubernetesSourceControlConfigurationResource(Client, response), response.GetRawResponse())); + var uri = _kubernetesSourceControlConfigurationSourceControlConfigurationsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, _clusterRp, _clusterResourceName, _clusterName, sourceControlConfigurationName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new KubernetesConfigurationArmOperation(Response.FromValue(new KubernetesSourceControlConfigurationResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/kubernetesconfiguration/Azure.ResourceManager.KubernetesConfiguration/src/Generated/KubernetesSourceControlConfigurationResource.cs b/sdk/kubernetesconfiguration/Azure.ResourceManager.KubernetesConfiguration/src/Generated/KubernetesSourceControlConfigurationResource.cs index 909737edaa67..3ff63e0a231c 100644 --- a/sdk/kubernetesconfiguration/Azure.ResourceManager.KubernetesConfiguration/src/Generated/KubernetesSourceControlConfigurationResource.cs +++ b/sdk/kubernetesconfiguration/Azure.ResourceManager.KubernetesConfiguration/src/Generated/KubernetesSourceControlConfigurationResource.cs @@ -292,7 +292,9 @@ public virtual async Task(Response.FromValue(new KubernetesSourceControlConfigurationResource(Client, response), response.GetRawResponse())); + var uri = _kubernetesSourceControlConfigurationSourceControlConfigurationsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.ResourceType.Namespace, Id.Parent.ResourceType.GetLastType(), Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new KubernetesConfigurationArmOperation(Response.FromValue(new KubernetesSourceControlConfigurationResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -338,7 +340,9 @@ public virtual ArmOperation Update try { var response = _kubernetesSourceControlConfigurationSourceControlConfigurationsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.ResourceType.Namespace, Id.Parent.ResourceType.GetLastType(), Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new KubernetesConfigurationArmOperation(Response.FromValue(new KubernetesSourceControlConfigurationResource(Client, response), response.GetRawResponse())); + var uri = _kubernetesSourceControlConfigurationSourceControlConfigurationsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.ResourceType.Namespace, Id.Parent.ResourceType.GetLastType(), Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new KubernetesConfigurationArmOperation(Response.FromValue(new KubernetesSourceControlConfigurationResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/kubernetesconfiguration/Azure.ResourceManager.KubernetesConfiguration/src/Generated/LongRunningOperation/KubernetesConfigurationArmOperation.cs b/sdk/kubernetesconfiguration/Azure.ResourceManager.KubernetesConfiguration/src/Generated/LongRunningOperation/KubernetesConfigurationArmOperation.cs index 4e982f9dabb6..9feaf08efef9 100644 --- a/sdk/kubernetesconfiguration/Azure.ResourceManager.KubernetesConfiguration/src/Generated/LongRunningOperation/KubernetesConfigurationArmOperation.cs +++ b/sdk/kubernetesconfiguration/Azure.ResourceManager.KubernetesConfiguration/src/Generated/LongRunningOperation/KubernetesConfigurationArmOperation.cs @@ -20,21 +20,24 @@ internal class KubernetesConfigurationArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of KubernetesConfigurationArmOperation for mocking. protected KubernetesConfigurationArmOperation() { } - internal KubernetesConfigurationArmOperation(Response response) + internal KubernetesConfigurationArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal KubernetesConfigurationArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "KubernetesConfigurationArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal KubernetesConfigurationArmOperation(ClientDiagnostics clientDiagnostics public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/kubernetesconfiguration/Azure.ResourceManager.KubernetesConfiguration/src/Generated/LongRunningOperation/KubernetesConfigurationArmOperationOfT.cs b/sdk/kubernetesconfiguration/Azure.ResourceManager.KubernetesConfiguration/src/Generated/LongRunningOperation/KubernetesConfigurationArmOperationOfT.cs index 3837cba83e61..dca600a4083c 100644 --- a/sdk/kubernetesconfiguration/Azure.ResourceManager.KubernetesConfiguration/src/Generated/LongRunningOperation/KubernetesConfigurationArmOperationOfT.cs +++ b/sdk/kubernetesconfiguration/Azure.ResourceManager.KubernetesConfiguration/src/Generated/LongRunningOperation/KubernetesConfigurationArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class KubernetesConfigurationArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of KubernetesConfigurationArmOperation for mocking. protected KubernetesConfigurationArmOperation() { } - internal KubernetesConfigurationArmOperation(Response response) + internal KubernetesConfigurationArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal KubernetesConfigurationArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "KubernetesConfigurationArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal KubernetesConfigurationArmOperation(IOperationSource source, ClientD public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/kubernetesconfiguration/Azure.ResourceManager.KubernetesConfiguration/src/Generated/Models/KubernetesClusterExtensionResource.Serialization.cs b/sdk/kubernetesconfiguration/Azure.ResourceManager.KubernetesConfiguration/src/Generated/Models/KubernetesClusterExtensionResource.Serialization.cs new file mode 100644 index 000000000000..320e6f9fc287 --- /dev/null +++ b/sdk/kubernetesconfiguration/Azure.ResourceManager.KubernetesConfiguration/src/Generated/Models/KubernetesClusterExtensionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.KubernetesConfiguration +{ + public partial class KubernetesClusterExtensionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + KubernetesClusterExtensionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + KubernetesClusterExtensionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/kubernetesconfiguration/Azure.ResourceManager.KubernetesConfiguration/src/Generated/Models/KubernetesFluxConfigurationResource.Serialization.cs b/sdk/kubernetesconfiguration/Azure.ResourceManager.KubernetesConfiguration/src/Generated/Models/KubernetesFluxConfigurationResource.Serialization.cs new file mode 100644 index 000000000000..34673ea6c9e9 --- /dev/null +++ b/sdk/kubernetesconfiguration/Azure.ResourceManager.KubernetesConfiguration/src/Generated/Models/KubernetesFluxConfigurationResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.KubernetesConfiguration +{ + public partial class KubernetesFluxConfigurationResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + KubernetesFluxConfigurationData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + KubernetesFluxConfigurationData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/kubernetesconfiguration/Azure.ResourceManager.KubernetesConfiguration/src/Generated/Models/KubernetesSourceControlConfigurationResource.Serialization.cs b/sdk/kubernetesconfiguration/Azure.ResourceManager.KubernetesConfiguration/src/Generated/Models/KubernetesSourceControlConfigurationResource.Serialization.cs new file mode 100644 index 000000000000..c78555e8b6dd --- /dev/null +++ b/sdk/kubernetesconfiguration/Azure.ResourceManager.KubernetesConfiguration/src/Generated/Models/KubernetesSourceControlConfigurationResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.KubernetesConfiguration +{ + public partial class KubernetesSourceControlConfigurationResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + KubernetesSourceControlConfigurationData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + KubernetesSourceControlConfigurationData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/kubernetesconfiguration/Azure.ResourceManager.KubernetesConfiguration/src/Generated/RestOperations/ExtensionsRestOperations.cs b/sdk/kubernetesconfiguration/Azure.ResourceManager.KubernetesConfiguration/src/Generated/RestOperations/ExtensionsRestOperations.cs index c056c287df93..0f14aeba4527 100644 --- a/sdk/kubernetesconfiguration/Azure.ResourceManager.KubernetesConfiguration/src/Generated/RestOperations/ExtensionsRestOperations.cs +++ b/sdk/kubernetesconfiguration/Azure.ResourceManager.KubernetesConfiguration/src/Generated/RestOperations/ExtensionsRestOperations.cs @@ -37,6 +37,26 @@ public ExtensionsRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string clusterRp, string clusterResourceName, string clusterName, string extensionName, KubernetesClusterExtensionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/", false); + uri.AppendPath(clusterRp, true); + uri.AppendPath("/", false); + uri.AppendPath(clusterResourceName, true); + uri.AppendPath("/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/providers/Microsoft.KubernetesConfiguration/extensions/", false); + uri.AppendPath(extensionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string clusterRp, string clusterResourceName, string clusterName, string extensionName, KubernetesClusterExtensionData data) { var message = _pipeline.CreateMessage(); @@ -133,6 +153,26 @@ public Response Create(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string clusterRp, string clusterResourceName, string clusterName, string extensionName) + { + 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/", false); + uri.AppendPath(clusterRp, true); + uri.AppendPath("/", false); + uri.AppendPath(clusterResourceName, true); + uri.AppendPath("/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/providers/Microsoft.KubernetesConfiguration/extensions/", false); + uri.AppendPath(extensionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string clusterRp, string clusterResourceName, string clusterName, string extensionName) { var message = _pipeline.CreateMessage(); @@ -233,6 +273,30 @@ public Response Get(string subscriptionId, strin } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string clusterRp, string clusterResourceName, string clusterName, string extensionName, bool? forceDelete) + { + 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/", false); + uri.AppendPath(clusterRp, true); + uri.AppendPath("/", false); + uri.AppendPath(clusterResourceName, true); + uri.AppendPath("/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/providers/Microsoft.KubernetesConfiguration/extensions/", false); + uri.AppendPath(extensionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + if (forceDelete != null) + { + uri.AppendQuery("forceDelete", forceDelete.Value, true); + } + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string clusterRp, string clusterResourceName, string clusterName, string extensionName, bool? forceDelete) { var message = _pipeline.CreateMessage(); @@ -329,6 +393,26 @@ public Response Delete(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string clusterRp, string clusterResourceName, string clusterName, string extensionName, KubernetesClusterExtensionPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/", false); + uri.AppendPath(clusterRp, true); + uri.AppendPath("/", false); + uri.AppendPath(clusterResourceName, true); + uri.AppendPath("/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/providers/Microsoft.KubernetesConfiguration/extensions/", false); + uri.AppendPath(extensionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string clusterRp, string clusterResourceName, string clusterName, string extensionName, KubernetesClusterExtensionPatch patch) { var message = _pipeline.CreateMessage(); @@ -425,6 +509,25 @@ public Response Update(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string clusterRp, string clusterResourceName, string clusterName) + { + 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/", false); + uri.AppendPath(clusterRp, true); + uri.AppendPath("/", false); + uri.AppendPath(clusterResourceName, true); + uri.AppendPath("/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/providers/Microsoft.KubernetesConfiguration/extensions", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string clusterRp, string clusterResourceName, string clusterName) { var message = _pipeline.CreateMessage(); @@ -516,6 +619,14 @@ public Response List(string subscriptionId, string resourceGroup } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string clusterRp, string clusterResourceName, string clusterName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string clusterRp, string clusterResourceName, string clusterName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/kubernetesconfiguration/Azure.ResourceManager.KubernetesConfiguration/src/Generated/RestOperations/FluxConfigurationsRestOperations.cs b/sdk/kubernetesconfiguration/Azure.ResourceManager.KubernetesConfiguration/src/Generated/RestOperations/FluxConfigurationsRestOperations.cs index a95578b60f68..c1923c7d71cd 100644 --- a/sdk/kubernetesconfiguration/Azure.ResourceManager.KubernetesConfiguration/src/Generated/RestOperations/FluxConfigurationsRestOperations.cs +++ b/sdk/kubernetesconfiguration/Azure.ResourceManager.KubernetesConfiguration/src/Generated/RestOperations/FluxConfigurationsRestOperations.cs @@ -37,6 +37,26 @@ public FluxConfigurationsRestOperations(HttpPipeline pipeline, string applicatio _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string clusterRp, string clusterResourceName, string clusterName, string fluxConfigurationName) + { + 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/", false); + uri.AppendPath(clusterRp, true); + uri.AppendPath("/", false); + uri.AppendPath(clusterResourceName, true); + uri.AppendPath("/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/providers/Microsoft.KubernetesConfiguration/fluxConfigurations/", false); + uri.AppendPath(fluxConfigurationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string clusterRp, string clusterResourceName, string clusterName, string fluxConfigurationName) { var message = _pipeline.CreateMessage(); @@ -137,6 +157,26 @@ public Response Get(string subscriptionId, stri } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string clusterRp, string clusterResourceName, string clusterName, string fluxConfigurationName, KubernetesFluxConfigurationData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/", false); + uri.AppendPath(clusterRp, true); + uri.AppendPath("/", false); + uri.AppendPath(clusterResourceName, true); + uri.AppendPath("/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/providers/Microsoft.KubernetesConfiguration/fluxConfigurations/", false); + uri.AppendPath(fluxConfigurationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string clusterRp, string clusterResourceName, string clusterName, string fluxConfigurationName, KubernetesFluxConfigurationData data) { var message = _pipeline.CreateMessage(); @@ -233,6 +273,26 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string clusterRp, string clusterResourceName, string clusterName, string fluxConfigurationName, KubernetesFluxConfigurationPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/", false); + uri.AppendPath(clusterRp, true); + uri.AppendPath("/", false); + uri.AppendPath(clusterResourceName, true); + uri.AppendPath("/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/providers/Microsoft.KubernetesConfiguration/fluxConfigurations/", false); + uri.AppendPath(fluxConfigurationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string clusterRp, string clusterResourceName, string clusterName, string fluxConfigurationName, KubernetesFluxConfigurationPatch patch) { var message = _pipeline.CreateMessage(); @@ -329,6 +389,30 @@ public Response Update(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string clusterRp, string clusterResourceName, string clusterName, string fluxConfigurationName, bool? forceDelete) + { + 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/", false); + uri.AppendPath(clusterRp, true); + uri.AppendPath("/", false); + uri.AppendPath(clusterResourceName, true); + uri.AppendPath("/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/providers/Microsoft.KubernetesConfiguration/fluxConfigurations/", false); + uri.AppendPath(fluxConfigurationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + if (forceDelete != null) + { + uri.AppendQuery("forceDelete", forceDelete.Value, true); + } + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string clusterRp, string clusterResourceName, string clusterName, string fluxConfigurationName, bool? forceDelete) { var message = _pipeline.CreateMessage(); @@ -425,6 +509,25 @@ public Response Delete(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string clusterRp, string clusterResourceName, string clusterName) + { + 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/", false); + uri.AppendPath(clusterRp, true); + uri.AppendPath("/", false); + uri.AppendPath(clusterResourceName, true); + uri.AppendPath("/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/providers/Microsoft.KubernetesConfiguration/fluxConfigurations", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string clusterRp, string clusterResourceName, string clusterName) { var message = _pipeline.CreateMessage(); @@ -516,6 +619,14 @@ public Response List(string subscriptionId, string resou } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string clusterRp, string clusterResourceName, string clusterName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string clusterRp, string clusterResourceName, string clusterName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/kubernetesconfiguration/Azure.ResourceManager.KubernetesConfiguration/src/Generated/RestOperations/SourceControlConfigurationsRestOperations.cs b/sdk/kubernetesconfiguration/Azure.ResourceManager.KubernetesConfiguration/src/Generated/RestOperations/SourceControlConfigurationsRestOperations.cs index 7402d28cdf05..b987c033095e 100644 --- a/sdk/kubernetesconfiguration/Azure.ResourceManager.KubernetesConfiguration/src/Generated/RestOperations/SourceControlConfigurationsRestOperations.cs +++ b/sdk/kubernetesconfiguration/Azure.ResourceManager.KubernetesConfiguration/src/Generated/RestOperations/SourceControlConfigurationsRestOperations.cs @@ -37,6 +37,26 @@ public SourceControlConfigurationsRestOperations(HttpPipeline pipeline, string a _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string clusterRp, string clusterResourceName, string clusterName, string sourceControlConfigurationName) + { + 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/", false); + uri.AppendPath(clusterRp, true); + uri.AppendPath("/", false); + uri.AppendPath(clusterResourceName, true); + uri.AppendPath("/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/providers/Microsoft.KubernetesConfiguration/sourceControlConfigurations/", false); + uri.AppendPath(sourceControlConfigurationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string clusterRp, string clusterResourceName, string clusterName, string sourceControlConfigurationName) { var message = _pipeline.CreateMessage(); @@ -137,6 +157,26 @@ public Response Get(string subscriptio } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string clusterRp, string clusterResourceName, string clusterName, string sourceControlConfigurationName, KubernetesSourceControlConfigurationData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/", false); + uri.AppendPath(clusterRp, true); + uri.AppendPath("/", false); + uri.AppendPath(clusterResourceName, true); + uri.AppendPath("/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/providers/Microsoft.KubernetesConfiguration/sourceControlConfigurations/", false); + uri.AppendPath(sourceControlConfigurationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string clusterRp, string clusterResourceName, string clusterName, string sourceControlConfigurationName, KubernetesSourceControlConfigurationData data) { var message = _pipeline.CreateMessage(); @@ -243,6 +283,26 @@ public Response CreateOrUpdate(string } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string clusterRp, string clusterResourceName, string clusterName, string sourceControlConfigurationName) + { + 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/", false); + uri.AppendPath(clusterRp, true); + uri.AppendPath("/", false); + uri.AppendPath(clusterResourceName, true); + uri.AppendPath("/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/providers/Microsoft.KubernetesConfiguration/sourceControlConfigurations/", false); + uri.AppendPath(sourceControlConfigurationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string clusterRp, string clusterResourceName, string clusterName, string sourceControlConfigurationName) { var message = _pipeline.CreateMessage(); @@ -331,6 +391,25 @@ public Response Delete(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string clusterRp, string clusterResourceName, string clusterName) + { + 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/", false); + uri.AppendPath(clusterRp, true); + uri.AppendPath("/", false); + uri.AppendPath(clusterResourceName, true); + uri.AppendPath("/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/providers/Microsoft.KubernetesConfiguration/sourceControlConfigurations", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string clusterRp, string clusterResourceName, string clusterName) { var message = _pipeline.CreateMessage(); @@ -422,6 +501,14 @@ public Response List(string subscriptionId, stri } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string clusterRp, string clusterResourceName, string clusterName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string clusterRp, string clusterResourceName, string clusterName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/LongRunningOperation/KustoArmOperation.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/LongRunningOperation/KustoArmOperation.cs index ef84ec56ddaf..f6f4e318fbe9 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/LongRunningOperation/KustoArmOperation.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/LongRunningOperation/KustoArmOperation.cs @@ -20,21 +20,24 @@ internal class KustoArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of KustoArmOperation for mocking. protected KustoArmOperation() { } - internal KustoArmOperation(Response response) + internal KustoArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal KustoArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "KustoArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal KustoArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pip public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/LongRunningOperation/KustoArmOperationOfT.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/LongRunningOperation/KustoArmOperationOfT.cs index d96f75238dec..8854ad11e388 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/LongRunningOperation/KustoArmOperationOfT.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/LongRunningOperation/KustoArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class KustoArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of KustoArmOperation for mocking. protected KustoArmOperation() { } - internal KustoArmOperation(Response response) + internal KustoArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal KustoArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "KustoArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal KustoArmOperation(IOperationSource source, ClientDiagnostics clientD public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoAttachedDatabaseConfigurationResource.Serialization.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoAttachedDatabaseConfigurationResource.Serialization.cs new file mode 100644 index 000000000000..adc2e551a259 --- /dev/null +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoAttachedDatabaseConfigurationResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Kusto +{ + public partial class KustoAttachedDatabaseConfigurationResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + KustoAttachedDatabaseConfigurationData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + KustoAttachedDatabaseConfigurationData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoClusterPrincipalAssignmentResource.Serialization.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoClusterPrincipalAssignmentResource.Serialization.cs new file mode 100644 index 000000000000..ef9d4c724212 --- /dev/null +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoClusterPrincipalAssignmentResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Kusto +{ + public partial class KustoClusterPrincipalAssignmentResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + KustoClusterPrincipalAssignmentData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + KustoClusterPrincipalAssignmentData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoClusterResource.Serialization.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoClusterResource.Serialization.cs new file mode 100644 index 000000000000..95f807c136dd --- /dev/null +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoClusterResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Kusto +{ + public partial class KustoClusterResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + KustoClusterData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + KustoClusterData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoDataConnectionResource.Serialization.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoDataConnectionResource.Serialization.cs new file mode 100644 index 000000000000..7c276ef33804 --- /dev/null +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoDataConnectionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Kusto +{ + public partial class KustoDataConnectionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + KustoDataConnectionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + KustoDataConnectionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoDatabasePrincipalAssignmentResource.Serialization.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoDatabasePrincipalAssignmentResource.Serialization.cs new file mode 100644 index 000000000000..8fc0b8968947 --- /dev/null +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoDatabasePrincipalAssignmentResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Kusto +{ + public partial class KustoDatabasePrincipalAssignmentResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + KustoDatabasePrincipalAssignmentData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + KustoDatabasePrincipalAssignmentData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoDatabaseResource.Serialization.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoDatabaseResource.Serialization.cs new file mode 100644 index 000000000000..1178e5e8d241 --- /dev/null +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoDatabaseResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Kusto +{ + public partial class KustoDatabaseResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + KustoDatabaseData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + KustoDatabaseData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoManagedPrivateEndpointResource.Serialization.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoManagedPrivateEndpointResource.Serialization.cs new file mode 100644 index 000000000000..bdeb955a6f4d --- /dev/null +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoManagedPrivateEndpointResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Kusto +{ + public partial class KustoManagedPrivateEndpointResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + KustoManagedPrivateEndpointData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + KustoManagedPrivateEndpointData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoPrivateEndpointConnectionResource.Serialization.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoPrivateEndpointConnectionResource.Serialization.cs new file mode 100644 index 000000000000..da71589f25e1 --- /dev/null +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoPrivateEndpointConnectionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Kusto +{ + public partial class KustoPrivateEndpointConnectionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + KustoPrivateEndpointConnectionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + KustoPrivateEndpointConnectionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoPrivateLinkResource.Serialization.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoPrivateLinkResource.Serialization.cs new file mode 100644 index 000000000000..7ac26cc6dc5d --- /dev/null +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoPrivateLinkResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Kusto +{ + public partial class KustoPrivateLinkResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + KustoPrivateLinkResourceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + KustoPrivateLinkResourceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoScriptResource.Serialization.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoScriptResource.Serialization.cs new file mode 100644 index 000000000000..88a6bd8e464b --- /dev/null +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoScriptResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Kusto +{ + public partial class KustoScriptResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + KustoScriptData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + KustoScriptData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/SandboxCustomImageResource.Serialization.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/SandboxCustomImageResource.Serialization.cs new file mode 100644 index 000000000000..ae0639f51b9b --- /dev/null +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/SandboxCustomImageResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Kusto +{ + public partial class SandboxCustomImageResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SandboxCustomImageData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SandboxCustomImageData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/AttachedDatabaseConfigurationsRestOperations.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/AttachedDatabaseConfigurationsRestOperations.cs index f1025af9e211..f402926b168c 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/AttachedDatabaseConfigurationsRestOperations.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/AttachedDatabaseConfigurationsRestOperations.cs @@ -37,6 +37,21 @@ public AttachedDatabaseConfigurationsRestOperations(HttpPipeline pipeline, strin _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCheckNameAvailabilityRequestUri(string subscriptionId, string resourceGroupName, string clusterName, KustoAttachedDatabaseConfigurationNameAvailabilityContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Kusto/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/attachedDatabaseConfigurationCheckNameAvailability", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCheckNameAvailabilityRequest(string subscriptionId, string resourceGroupName, string clusterName, KustoAttachedDatabaseConfigurationNameAvailabilityContent content) { var message = _pipeline.CreateMessage(); @@ -124,6 +139,21 @@ public Response CheckNameAvailability(string subscr } } + internal RequestUriBuilder CreateListByClusterRequestUri(string subscriptionId, string resourceGroupName, string clusterName) + { + 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.Kusto/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/attachedDatabaseConfigurations", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByClusterRequest(string subscriptionId, string resourceGroupName, string clusterName) { var message = _pipeline.CreateMessage(); @@ -203,6 +233,22 @@ public Response ListByCluster(string su } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string attachedDatabaseConfigurationName) + { + 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.Kusto/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/attachedDatabaseConfigurations/", false); + uri.AppendPath(attachedDatabaseConfigurationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string clusterName, string attachedDatabaseConfigurationName) { var message = _pipeline.CreateMessage(); @@ -291,6 +337,22 @@ public Response Get(string subscriptionI } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string attachedDatabaseConfigurationName, KustoAttachedDatabaseConfigurationData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Kusto/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/attachedDatabaseConfigurations/", false); + uri.AppendPath(attachedDatabaseConfigurationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string clusterName, string attachedDatabaseConfigurationName, KustoAttachedDatabaseConfigurationData data) { var message = _pipeline.CreateMessage(); @@ -377,6 +439,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string attachedDatabaseConfigurationName) + { + 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.Kusto/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/attachedDatabaseConfigurations/", false); + uri.AppendPath(attachedDatabaseConfigurationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string clusterName, string attachedDatabaseConfigurationName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/ClusterPrincipalAssignmentsRestOperations.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/ClusterPrincipalAssignmentsRestOperations.cs index 637c222b561b..1eb7bd8eda53 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/ClusterPrincipalAssignmentsRestOperations.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/ClusterPrincipalAssignmentsRestOperations.cs @@ -37,6 +37,21 @@ public ClusterPrincipalAssignmentsRestOperations(HttpPipeline pipeline, string a _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCheckNameAvailabilityRequestUri(string subscriptionId, string resourceGroupName, string clusterName, KustoClusterPrincipalAssignmentNameAvailabilityContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Kusto/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/checkPrincipalAssignmentNameAvailability", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCheckNameAvailabilityRequest(string subscriptionId, string resourceGroupName, string clusterName, KustoClusterPrincipalAssignmentNameAvailabilityContent content) { var message = _pipeline.CreateMessage(); @@ -124,6 +139,22 @@ public Response CheckNameAvailability(string subscr } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string principalAssignmentName) + { + 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.Kusto/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/principalAssignments/", false); + uri.AppendPath(principalAssignmentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string clusterName, string principalAssignmentName) { var message = _pipeline.CreateMessage(); @@ -212,6 +243,22 @@ public Response Get(string subscriptionId, } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string principalAssignmentName, KustoClusterPrincipalAssignmentData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Kusto/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/principalAssignments/", false); + uri.AppendPath(principalAssignmentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string clusterName, string principalAssignmentName, KustoClusterPrincipalAssignmentData data) { var message = _pipeline.CreateMessage(); @@ -296,6 +343,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string principalAssignmentName) + { + 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.Kusto/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/principalAssignments/", false); + uri.AppendPath(principalAssignmentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string clusterName, string principalAssignmentName) { var message = _pipeline.CreateMessage(); @@ -374,6 +437,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string clusterName) + { + 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.Kusto/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/principalAssignments", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string clusterName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/ClustersRestOperations.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/ClustersRestOperations.cs index 68c8377a06b5..8d129145da1d 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/ClustersRestOperations.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/ClustersRestOperations.cs @@ -37,6 +37,20 @@ public ClustersRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string clusterName) + { + 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.Kusto/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string clusterName) { var message = _pipeline.CreateMessage(); @@ -119,6 +133,20 @@ public Response Get(string subscriptionId, string resourceGrou } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string clusterName, KustoClusterData data, string ifMatch, string ifNoneMatch) + { + 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.Kusto/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string clusterName, KustoClusterData data, string ifMatch, string ifNoneMatch) { var message = _pipeline.CreateMessage(); @@ -209,6 +237,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string clusterName, KustoClusterPatch patch, string ifMatch) + { + 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.Kusto/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string clusterName, KustoClusterPatch patch, string ifMatch) { var message = _pipeline.CreateMessage(); @@ -295,6 +337,20 @@ public Response Update(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string clusterName) + { + 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.Kusto/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string clusterName) { var message = _pipeline.CreateMessage(); @@ -367,6 +423,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateStopRequestUri(string subscriptionId, string resourceGroupName, string clusterName) + { + 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.Kusto/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/stop", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStopRequest(string subscriptionId, string resourceGroupName, string clusterName) { var message = _pipeline.CreateMessage(); @@ -438,6 +509,21 @@ public Response Stop(string subscriptionId, string resourceGroupName, string clu } } + internal RequestUriBuilder CreateStartRequestUri(string subscriptionId, string resourceGroupName, string clusterName) + { + 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.Kusto/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/start", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStartRequest(string subscriptionId, string resourceGroupName, string clusterName) { var message = _pipeline.CreateMessage(); @@ -509,6 +595,21 @@ public Response Start(string subscriptionId, string resourceGroupName, string cl } } + internal RequestUriBuilder CreateMigrateRequestUri(string subscriptionId, string resourceGroupName, string clusterName, ClusterMigrateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Kusto/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/migrate", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateMigrateRequest(string subscriptionId, string resourceGroupName, string clusterName, ClusterMigrateContent content) { var message = _pipeline.CreateMessage(); @@ -588,6 +689,21 @@ public Response Migrate(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreateListFollowerDatabasesRequestUri(string subscriptionId, string resourceGroupName, string clusterName) + { + 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.Kusto/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/listFollowerDatabases", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListFollowerDatabasesRequest(string subscriptionId, string resourceGroupName, string clusterName) { var message = _pipeline.CreateMessage(); @@ -667,6 +783,21 @@ public Response ListFollowerDatabases(string subscri } } + internal RequestUriBuilder CreateDetachFollowerDatabasesRequestUri(string subscriptionId, string resourceGroupName, string clusterName, KustoFollowerDatabaseDefinition followerDatabaseToRemove) + { + 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.Kusto/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/detachFollowerDatabases", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDetachFollowerDatabasesRequest(string subscriptionId, string resourceGroupName, string clusterName, KustoFollowerDatabaseDefinition followerDatabaseToRemove) { var message = _pipeline.CreateMessage(); @@ -746,6 +877,21 @@ public Response DetachFollowerDatabases(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateDiagnoseVirtualNetworkRequestUri(string subscriptionId, string resourceGroupName, string clusterName) + { + 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.Kusto/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/diagnoseVirtualNetwork", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDiagnoseVirtualNetworkRequest(string subscriptionId, string resourceGroupName, string clusterName) { var message = _pipeline.CreateMessage(); @@ -817,6 +963,19 @@ public Response DiagnoseVirtualNetwork(string subscriptionId, string resourceGro } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.Kusto/clusters", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -890,6 +1049,17 @@ public Response ListByResourceGroup(string subscriptionId, st } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Kusto/clusters", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -957,6 +1127,17 @@ public Response List(string subscriptionId, CancellationToken } } + internal RequestUriBuilder CreateListSkusRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Kusto/skus", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListSkusRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -1024,6 +1205,19 @@ public Response ListSkus(string subscriptionId, Cancell } } + internal RequestUriBuilder CreateCheckNameAvailabilityRequestUri(string subscriptionId, AzureLocation location, KustoClusterNameAvailabilityContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Kusto/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/checkNameAvailability", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCheckNameAvailabilityRequest(string subscriptionId, AzureLocation location, KustoClusterNameAvailabilityContent content) { var message = _pipeline.CreateMessage(); @@ -1103,6 +1297,21 @@ public Response CheckNameAvailability(string subscr } } + internal RequestUriBuilder CreateListSkusByResourceRequestUri(string subscriptionId, string resourceGroupName, string clusterName) + { + 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.Kusto/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/skus", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListSkusByResourceRequest(string subscriptionId, string resourceGroupName, string clusterName) { var message = _pipeline.CreateMessage(); @@ -1182,6 +1391,21 @@ public Response ListSkusByResource(string subscriptionId } } + internal RequestUriBuilder CreateListOutboundNetworkDependenciesEndpointsRequestUri(string subscriptionId, string resourceGroupName, string clusterName) + { + 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.Kusto/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/outboundNetworkDependenciesEndpoints", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListOutboundNetworkDependenciesEndpointsRequest(string subscriptionId, string resourceGroupName, string clusterName) { var message = _pipeline.CreateMessage(); @@ -1261,6 +1485,21 @@ public Response ListOutboundNetwo } } + internal RequestUriBuilder CreateListLanguageExtensionsRequestUri(string subscriptionId, string resourceGroupName, string clusterName) + { + 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.Kusto/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/listLanguageExtensions", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListLanguageExtensionsRequest(string subscriptionId, string resourceGroupName, string clusterName) { var message = _pipeline.CreateMessage(); @@ -1340,6 +1579,21 @@ public Response ListLanguageExtensions(string subscr } } + internal RequestUriBuilder CreateAddLanguageExtensionsRequestUri(string subscriptionId, string resourceGroupName, string clusterName, KustoLanguageExtensionList languageExtensionsToAdd) + { + 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.Kusto/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/addLanguageExtensions", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateAddLanguageExtensionsRequest(string subscriptionId, string resourceGroupName, string clusterName, KustoLanguageExtensionList languageExtensionsToAdd) { var message = _pipeline.CreateMessage(); @@ -1419,6 +1673,21 @@ public Response AddLanguageExtensions(string subscriptionId, string resourceGrou } } + internal RequestUriBuilder CreateRemoveLanguageExtensionsRequestUri(string subscriptionId, string resourceGroupName, string clusterName, KustoLanguageExtensionList languageExtensionsToRemove) + { + 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.Kusto/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/removeLanguageExtensions", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRemoveLanguageExtensionsRequest(string subscriptionId, string resourceGroupName, string clusterName, KustoLanguageExtensionList languageExtensionsToRemove) { var message = _pipeline.CreateMessage(); @@ -1498,6 +1767,14 @@ public Response RemoveLanguageExtensions(string subscriptionId, string resourceG } } + internal RequestUriBuilder CreateListOutboundNetworkDependenciesEndpointsNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string clusterName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListOutboundNetworkDependenciesEndpointsNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string clusterName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/DataConnectionsRestOperations.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/DataConnectionsRestOperations.cs index c070729fc168..008186437361 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/DataConnectionsRestOperations.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/DataConnectionsRestOperations.cs @@ -37,6 +37,23 @@ public DataConnectionsRestOperations(HttpPipeline pipeline, string applicationId _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByDatabaseRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string databaseName) + { + 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.Kusto/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/dataConnections", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByDatabaseRequest(string subscriptionId, string resourceGroupName, string clusterName, string databaseName) { var message = _pipeline.CreateMessage(); @@ -122,6 +139,23 @@ public Response ListByDatabase(string subscriptionId, } } + internal RequestUriBuilder CreateDataConnectionValidationRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string databaseName, DataConnectionValidationContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Kusto/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/dataConnectionValidation", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDataConnectionValidationRequest(string subscriptionId, string resourceGroupName, string clusterName, string databaseName, DataConnectionValidationContent content) { var message = _pipeline.CreateMessage(); @@ -207,6 +241,23 @@ public Response DataConnectionValidation(string subscriptionId, string resourceG } } + internal RequestUriBuilder CreateCheckNameAvailabilityRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string databaseName, KustoDataConnectionNameAvailabilityContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Kusto/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/checkNameAvailability", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCheckNameAvailabilityRequest(string subscriptionId, string resourceGroupName, string clusterName, string databaseName, KustoDataConnectionNameAvailabilityContent content) { var message = _pipeline.CreateMessage(); @@ -300,6 +351,24 @@ public Response CheckNameAvailability(string subscr } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string databaseName, string dataConnectionName) + { + 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.Kusto/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/dataConnections/", false); + uri.AppendPath(dataConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string clusterName, string databaseName, string dataConnectionName) { var message = _pipeline.CreateMessage(); @@ -394,6 +463,24 @@ public Response Get(string subscriptionId, string resou } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string databaseName, string dataConnectionName, KustoDataConnectionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Kusto/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/dataConnections/", false); + uri.AppendPath(dataConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string clusterName, string databaseName, string dataConnectionName, KustoDataConnectionData data) { var message = _pipeline.CreateMessage(); @@ -486,6 +573,24 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string databaseName, string dataConnectionName, KustoDataConnectionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Kusto/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/dataConnections/", false); + uri.AppendPath(dataConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string clusterName, string databaseName, string dataConnectionName, KustoDataConnectionData data) { var message = _pipeline.CreateMessage(); @@ -578,6 +683,24 @@ public Response Update(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string databaseName, string dataConnectionName) + { + 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.Kusto/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/dataConnections/", false); + uri.AppendPath(dataConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string clusterName, string databaseName, string dataConnectionName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/DatabasePrincipalAssignmentsRestOperations.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/DatabasePrincipalAssignmentsRestOperations.cs index 900911833c72..103e4db0e721 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/DatabasePrincipalAssignmentsRestOperations.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/DatabasePrincipalAssignmentsRestOperations.cs @@ -37,6 +37,23 @@ public DatabasePrincipalAssignmentsRestOperations(HttpPipeline pipeline, string _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCheckNameAvailabilityRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string databaseName, KustoDatabasePrincipalAssignmentNameAvailabilityContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Kusto/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/checkPrincipalAssignmentNameAvailability", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCheckNameAvailabilityRequest(string subscriptionId, string resourceGroupName, string clusterName, string databaseName, KustoDatabasePrincipalAssignmentNameAvailabilityContent content) { var message = _pipeline.CreateMessage(); @@ -130,6 +147,24 @@ public Response CheckNameAvailability(string subscr } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string databaseName, string principalAssignmentName) + { + 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.Kusto/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/principalAssignments/", false); + uri.AppendPath(principalAssignmentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string clusterName, string databaseName, string principalAssignmentName) { var message = _pipeline.CreateMessage(); @@ -224,6 +259,24 @@ public Response Get(string subscriptionId, } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string databaseName, string principalAssignmentName, KustoDatabasePrincipalAssignmentData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Kusto/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/principalAssignments/", false); + uri.AppendPath(principalAssignmentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string clusterName, string databaseName, string principalAssignmentName, KustoDatabasePrincipalAssignmentData data) { var message = _pipeline.CreateMessage(); @@ -314,6 +367,24 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string databaseName, string principalAssignmentName) + { + 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.Kusto/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/principalAssignments/", false); + uri.AppendPath(principalAssignmentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string clusterName, string databaseName, string principalAssignmentName) { var message = _pipeline.CreateMessage(); @@ -398,6 +469,23 @@ public Response Delete(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string databaseName) + { + 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.Kusto/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/principalAssignments", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string clusterName, string databaseName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/DatabaseRestOperations.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/DatabaseRestOperations.cs index 225a913a6536..a6afc839a0e4 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/DatabaseRestOperations.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/DatabaseRestOperations.cs @@ -37,6 +37,23 @@ public DatabaseRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateInviteFollowerRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string databaseName, DatabaseInviteFollowerContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Kusto/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/inviteFollower", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateInviteFollowerRequest(string subscriptionId, string resourceGroupName, string clusterName, string databaseName, DatabaseInviteFollowerContent content) { var message = _pipeline.CreateMessage(); diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/DatabasesRestOperations.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/DatabasesRestOperations.cs index 479b00ae19de..9fefd0e617a4 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/DatabasesRestOperations.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/DatabasesRestOperations.cs @@ -37,6 +37,21 @@ public DatabasesRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCheckNameAvailabilityRequestUri(string subscriptionId, string resourceGroupName, string clusterName, KustoDatabaseNameAvailabilityContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Kusto/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/checkNameAvailability", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCheckNameAvailabilityRequest(string subscriptionId, string resourceGroupName, string clusterName, KustoDatabaseNameAvailabilityContent content) { var message = _pipeline.CreateMessage(); @@ -124,6 +139,29 @@ public Response CheckNameAvailability(string subscr } } + internal RequestUriBuilder CreateListByClusterRequestUri(string subscriptionId, string resourceGroupName, string clusterName, int? top, string skiptoken) + { + 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.Kusto/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/databases", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skiptoken != null) + { + uri.AppendQuery("$skiptoken", skiptoken, true); + } + return uri; + } + internal HttpMessage CreateListByClusterRequest(string subscriptionId, string resourceGroupName, string clusterName, int? top, string skiptoken) { var message = _pipeline.CreateMessage(); @@ -215,6 +253,22 @@ public Response ListByCluster(string subscriptionId, string } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string databaseName) + { + 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.Kusto/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string clusterName, string databaseName) { var message = _pipeline.CreateMessage(); @@ -303,6 +357,26 @@ public Response Get(string subscriptionId, string resourceGro } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string databaseName, KustoDatabaseData data, KustoDatabaseCallerRole? callerRole) + { + 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.Kusto/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendQuery("api-version", _apiVersion, true); + if (callerRole != null) + { + uri.AppendQuery("callerRole", callerRole.Value.ToString(), true); + } + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string clusterName, string databaseName, KustoDatabaseData data, KustoDatabaseCallerRole? callerRole) { var message = _pipeline.CreateMessage(); @@ -395,6 +469,26 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string databaseName, KustoDatabaseData data, KustoDatabaseCallerRole? callerRole) + { + 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.Kusto/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendQuery("api-version", _apiVersion, true); + if (callerRole != null) + { + uri.AppendQuery("callerRole", callerRole.Value.ToString(), true); + } + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string clusterName, string databaseName, KustoDatabaseData data, KustoDatabaseCallerRole? callerRole) { var message = _pipeline.CreateMessage(); @@ -487,6 +581,22 @@ public Response Update(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string databaseName) + { + 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.Kusto/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string clusterName, string databaseName) { var message = _pipeline.CreateMessage(); @@ -565,6 +675,23 @@ public Response Delete(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateListPrincipalsRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string databaseName) + { + 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.Kusto/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/listPrincipals", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListPrincipalsRequest(string subscriptionId, string resourceGroupName, string clusterName, string databaseName) { var message = _pipeline.CreateMessage(); @@ -650,6 +777,23 @@ public Response ListPrincipals(string subscriptionI } } + internal RequestUriBuilder CreateAddPrincipalsRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string databaseName, DatabasePrincipalList databasePrincipalsToAdd) + { + 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.Kusto/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/addPrincipals", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateAddPrincipalsRequest(string subscriptionId, string resourceGroupName, string clusterName, string databaseName, DatabasePrincipalList databasePrincipalsToAdd) { var message = _pipeline.CreateMessage(); @@ -743,6 +887,23 @@ public Response AddPrincipals(string subscriptionId } } + internal RequestUriBuilder CreateRemovePrincipalsRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string databaseName, DatabasePrincipalList databasePrincipalsToRemove) + { + 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.Kusto/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/removePrincipals", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRemovePrincipalsRequest(string subscriptionId, string resourceGroupName, string clusterName, string databaseName, DatabasePrincipalList databasePrincipalsToRemove) { var message = _pipeline.CreateMessage(); @@ -836,6 +997,14 @@ public Response RemovePrincipals(string subscriptio } } + internal RequestUriBuilder CreateListByClusterNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string clusterName, int? top, string skiptoken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByClusterNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string clusterName, int? top, string skiptoken) { var message = _pipeline.CreateMessage(); diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/ManagedPrivateEndpointsRestOperations.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/ManagedPrivateEndpointsRestOperations.cs index 5601f561d3a8..1fadee1f5c0f 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/ManagedPrivateEndpointsRestOperations.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/ManagedPrivateEndpointsRestOperations.cs @@ -37,6 +37,21 @@ public ManagedPrivateEndpointsRestOperations(HttpPipeline pipeline, string appli _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCheckNameAvailabilityRequestUri(string subscriptionId, string resourceGroupName, string clusterName, KustoManagedPrivateEndpointNameAvailabilityContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Kusto/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/managedPrivateEndpointsCheckNameAvailability", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCheckNameAvailabilityRequest(string subscriptionId, string resourceGroupName, string clusterName, KustoManagedPrivateEndpointNameAvailabilityContent content) { var message = _pipeline.CreateMessage(); @@ -124,6 +139,21 @@ public Response CheckNameAvailability(string subscr } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string clusterName) + { + 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.Kusto/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/managedPrivateEndpoints", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string clusterName) { var message = _pipeline.CreateMessage(); @@ -203,6 +233,22 @@ public Response List(string subscriptionId, st } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string managedPrivateEndpointName) + { + 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.Kusto/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/managedPrivateEndpoints/", false); + uri.AppendPath(managedPrivateEndpointName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string clusterName, string managedPrivateEndpointName) { var message = _pipeline.CreateMessage(); @@ -291,6 +337,22 @@ public Response Get(string subscriptionId, stri } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string managedPrivateEndpointName, KustoManagedPrivateEndpointData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Kusto/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/managedPrivateEndpoints/", false); + uri.AppendPath(managedPrivateEndpointName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string clusterName, string managedPrivateEndpointName, KustoManagedPrivateEndpointData data) { var message = _pipeline.CreateMessage(); @@ -377,6 +439,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string managedPrivateEndpointName, KustoManagedPrivateEndpointData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Kusto/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/managedPrivateEndpoints/", false); + uri.AppendPath(managedPrivateEndpointName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string clusterName, string managedPrivateEndpointName, KustoManagedPrivateEndpointData data) { var message = _pipeline.CreateMessage(); @@ -461,6 +539,22 @@ public Response Update(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string managedPrivateEndpointName) + { + 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.Kusto/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/managedPrivateEndpoints/", false); + uri.AppendPath(managedPrivateEndpointName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string clusterName, string managedPrivateEndpointName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs index 5d9ad636ec72..6c7de647f194 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs @@ -37,6 +37,21 @@ public PrivateEndpointConnectionsRestOperations(HttpPipeline pipeline, string ap _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string clusterName) + { + 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.Kusto/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/privateEndpointConnections", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string clusterName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response List(string subscripti } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string privateEndpointConnectionName) + { + 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.Kusto/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string clusterName, string privateEndpointConnectionName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscriptionId, s } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string privateEndpointConnectionName, KustoPrivateEndpointConnectionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Kusto/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string clusterName, string privateEndpointConnectionName, KustoPrivateEndpointConnectionData data) { var message = _pipeline.CreateMessage(); @@ -288,6 +335,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string privateEndpointConnectionName) + { + 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.Kusto/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string clusterName, string privateEndpointConnectionName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs index ec5f17f46d0f..dbfeda2c35fa 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs @@ -37,6 +37,21 @@ public PrivateLinkResourcesRestOperations(HttpPipeline pipeline, string applicat _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string clusterName) + { + 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.Kusto/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/privateLinkResources", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string clusterName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response List(string subscriptionId, } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string privateLinkResourceName) + { + 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.Kusto/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/privateLinkResources/", false); + uri.AppendPath(privateLinkResourceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string clusterName, string privateLinkResourceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/SandboxCustomImagesRestOperations.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/SandboxCustomImagesRestOperations.cs index 0b429711ab95..86446ccf2b52 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/SandboxCustomImagesRestOperations.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/SandboxCustomImagesRestOperations.cs @@ -37,6 +37,21 @@ public SandboxCustomImagesRestOperations(HttpPipeline pipeline, string applicati _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByClusterRequestUri(string subscriptionId, string resourceGroupName, string clusterName) + { + 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.Kusto/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/sandboxCustomImages", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByClusterRequest(string subscriptionId, string resourceGroupName, string clusterName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByCluster(string subscription } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string sandboxCustomImageName) + { + 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.Kusto/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/sandboxCustomImages/", false); + uri.AppendPath(sandboxCustomImageName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string clusterName, string sandboxCustomImageName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscriptionId, string resour } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string sandboxCustomImageName, SandboxCustomImageData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Kusto/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/sandboxCustomImages/", false); + uri.AppendPath(sandboxCustomImageName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string clusterName, string sandboxCustomImageName, SandboxCustomImageData data) { var message = _pipeline.CreateMessage(); @@ -288,6 +335,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string sandboxCustomImageName, SandboxCustomImageData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Kusto/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/sandboxCustomImages/", false); + uri.AppendPath(sandboxCustomImageName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string clusterName, string sandboxCustomImageName, SandboxCustomImageData data) { var message = _pipeline.CreateMessage(); @@ -374,6 +437,22 @@ public Response Update(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string sandboxCustomImageName) + { + 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.Kusto/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/sandboxCustomImages/", false); + uri.AppendPath(sandboxCustomImageName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string clusterName, string sandboxCustomImageName) { var message = _pipeline.CreateMessage(); @@ -452,6 +531,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateCheckNameAvailabilityRequestUri(string subscriptionId, string resourceGroupName, string clusterName, SandboxCustomImagesCheckNameContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Kusto/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/sandboxCustomImagesCheckNameAvailability", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCheckNameAvailabilityRequest(string subscriptionId, string resourceGroupName, string clusterName, SandboxCustomImagesCheckNameContent content) { var message = _pipeline.CreateMessage(); diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/ScriptsRestOperations.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/ScriptsRestOperations.cs index e57502043d24..7b567f26ba55 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/ScriptsRestOperations.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/ScriptsRestOperations.cs @@ -37,6 +37,23 @@ public ScriptsRestOperations(HttpPipeline pipeline, string applicationId, Uri en _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByDatabaseRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string databaseName) + { + 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.Kusto/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/scripts", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByDatabaseRequest(string subscriptionId, string resourceGroupName, string clusterName, string databaseName) { var message = _pipeline.CreateMessage(); @@ -122,6 +139,24 @@ public Response ListByDatabase(string subscriptionId, string r } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string databaseName, string scriptName) + { + 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.Kusto/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/scripts/", false); + uri.AppendPath(scriptName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string clusterName, string databaseName, string scriptName) { var message = _pipeline.CreateMessage(); @@ -216,6 +251,24 @@ public Response Get(string subscriptionId, string resourceGroup } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string databaseName, string scriptName, KustoScriptData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Kusto/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/scripts/", false); + uri.AppendPath(scriptName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string clusterName, string databaseName, string scriptName, KustoScriptData data) { var message = _pipeline.CreateMessage(); @@ -308,6 +361,24 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string databaseName, string scriptName, KustoScriptData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Kusto/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/scripts/", false); + uri.AppendPath(scriptName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string clusterName, string databaseName, string scriptName, KustoScriptData data) { var message = _pipeline.CreateMessage(); @@ -398,6 +469,24 @@ public Response Update(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string databaseName, string scriptName) + { + 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.Kusto/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/scripts/", false); + uri.AppendPath(scriptName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string clusterName, string databaseName, string scriptName) { var message = _pipeline.CreateMessage(); @@ -482,6 +571,23 @@ public Response Delete(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateCheckNameAvailabilityRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string databaseName, KustoScriptNameAvailabilityContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Kusto/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/scriptsCheckNameAvailability", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCheckNameAvailabilityRequest(string subscriptionId, string resourceGroupName, string clusterName, string databaseName, KustoScriptNameAvailabilityContent content) { var message = _pipeline.CreateMessage(); diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/SkusRestOperations.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/SkusRestOperations.cs index 26dfc37c1d4c..ccbb3acdfab7 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/SkusRestOperations.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/SkusRestOperations.cs @@ -37,6 +37,19 @@ public SkusRestOperations(HttpPipeline pipeline, string applicationId, Uri endpo _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, AzureLocation location) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Kusto/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/skus", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, AzureLocation location) { var message = _pipeline.CreateMessage(); diff --git a/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/LabServicesScheduleCollection.cs b/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/LabServicesScheduleCollection.cs index 852bd0027818..2661b0ce4a2e 100644 --- a/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/LabServicesScheduleCollection.cs +++ b/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/LabServicesScheduleCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> CreateOrUpd try { var response = await _labServicesScheduleSchedulesRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, scheduleName, data, cancellationToken).ConfigureAwait(false); - var operation = new LabServicesArmOperation(Response.FromValue(new LabServicesScheduleResource(Client, response), response.GetRawResponse())); + var uri = _labServicesScheduleSchedulesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, scheduleName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new LabServicesArmOperation(Response.FromValue(new LabServicesScheduleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUnti try { var response = _labServicesScheduleSchedulesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, scheduleName, data, cancellationToken); - var operation = new LabServicesArmOperation(Response.FromValue(new LabServicesScheduleResource(Client, response), response.GetRawResponse())); + var uri = _labServicesScheduleSchedulesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, scheduleName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new LabServicesArmOperation(Response.FromValue(new LabServicesScheduleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/LabVirtualMachineImageCollection.cs b/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/LabVirtualMachineImageCollection.cs index 9f0b12ce71a9..d0d0454bfd61 100644 --- a/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/LabVirtualMachineImageCollection.cs +++ b/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/LabVirtualMachineImageCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> CreateOr try { var response = await _labVirtualMachineImageImagesRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, imageName, data, cancellationToken).ConfigureAwait(false); - var operation = new LabServicesArmOperation(Response.FromValue(new LabVirtualMachineImageResource(Client, response), response.GetRawResponse())); + var uri = _labVirtualMachineImageImagesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, imageName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new LabServicesArmOperation(Response.FromValue(new LabVirtualMachineImageResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(WaitU try { var response = _labVirtualMachineImageImagesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, imageName, data, cancellationToken); - var operation = new LabServicesArmOperation(Response.FromValue(new LabVirtualMachineImageResource(Client, response), response.GetRawResponse())); + var uri = _labVirtualMachineImageImagesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, imageName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new LabServicesArmOperation(Response.FromValue(new LabVirtualMachineImageResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/LongRunningOperation/LabServicesArmOperation.cs b/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/LongRunningOperation/LabServicesArmOperation.cs index 7fd76eee5621..51e53462d19d 100644 --- a/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/LongRunningOperation/LabServicesArmOperation.cs +++ b/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/LongRunningOperation/LabServicesArmOperation.cs @@ -20,21 +20,24 @@ internal class LabServicesArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of LabServicesArmOperation for mocking. protected LabServicesArmOperation() { } - internal LabServicesArmOperation(Response response) + internal LabServicesArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal LabServicesArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "LabServicesArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal LabServicesArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeli public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/LongRunningOperation/LabServicesArmOperationOfT.cs b/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/LongRunningOperation/LabServicesArmOperationOfT.cs index 839e1256f908..8d5f4f1fd502 100644 --- a/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/LongRunningOperation/LabServicesArmOperationOfT.cs +++ b/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/LongRunningOperation/LabServicesArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class LabServicesArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of LabServicesArmOperation for mocking. protected LabServicesArmOperation() { } - internal LabServicesArmOperation(Response response) + internal LabServicesArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal LabServicesArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "LabServicesArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal LabServicesArmOperation(IOperationSource source, ClientDiagnostics c public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/LabPlanResource.Serialization.cs b/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/LabPlanResource.Serialization.cs new file mode 100644 index 000000000000..8971775899dc --- /dev/null +++ b/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/LabPlanResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.LabServices +{ + public partial class LabPlanResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + LabPlanData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + LabPlanData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/LabResource.Serialization.cs b/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/LabResource.Serialization.cs new file mode 100644 index 000000000000..14d13fe8395f --- /dev/null +++ b/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/LabResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.LabServices +{ + public partial class LabResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + LabData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + LabData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/LabServicesScheduleResource.Serialization.cs b/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/LabServicesScheduleResource.Serialization.cs new file mode 100644 index 000000000000..ac0432d792ba --- /dev/null +++ b/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/LabServicesScheduleResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.LabServices +{ + public partial class LabServicesScheduleResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + LabServicesScheduleData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + LabServicesScheduleData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/LabUserResource.Serialization.cs b/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/LabUserResource.Serialization.cs new file mode 100644 index 000000000000..dded70557e87 --- /dev/null +++ b/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/LabUserResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.LabServices +{ + public partial class LabUserResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + LabUserData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + LabUserData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/LabVirtualMachineImageResource.Serialization.cs b/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/LabVirtualMachineImageResource.Serialization.cs new file mode 100644 index 000000000000..8643042b744f --- /dev/null +++ b/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/LabVirtualMachineImageResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.LabServices +{ + public partial class LabVirtualMachineImageResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + LabVirtualMachineImageData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + LabVirtualMachineImageData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/LabVirtualMachineResource.Serialization.cs b/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/LabVirtualMachineResource.Serialization.cs new file mode 100644 index 000000000000..3f6e6a000456 --- /dev/null +++ b/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/LabVirtualMachineResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.LabServices +{ + public partial class LabVirtualMachineResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + LabVirtualMachineData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + LabVirtualMachineData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/RestOperations/ImagesRestOperations.cs b/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/RestOperations/ImagesRestOperations.cs index 001ee3c75f79..24330231c807 100644 --- a/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/RestOperations/ImagesRestOperations.cs +++ b/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/RestOperations/ImagesRestOperations.cs @@ -37,6 +37,25 @@ public ImagesRestOperations(HttpPipeline pipeline, string applicationId, Uri end _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByLabPlanRequestUri(string subscriptionId, string resourceGroupName, string labPlanName, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.LabServices/labPlans/", false); + uri.AppendPath(labPlanName, true); + uri.AppendPath("/images", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + return uri; + } + internal HttpMessage CreateListByLabPlanRequest(string subscriptionId, string resourceGroupName, string labPlanName, string filter) { var message = _pipeline.CreateMessage(); @@ -122,6 +141,22 @@ public Response ListByLabPlan(string subscriptionId, string resourc } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string labPlanName, string imageName) + { + 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.LabServices/labPlans/", false); + uri.AppendPath(labPlanName, true); + uri.AppendPath("/images/", false); + uri.AppendPath(imageName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string labPlanName, string imageName) { var message = _pipeline.CreateMessage(); @@ -210,6 +245,22 @@ public Response Get(string subscriptionId, string re } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string labPlanName, string imageName, LabVirtualMachineImageData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.LabServices/labPlans/", false); + uri.AppendPath(labPlanName, true); + uri.AppendPath("/images/", false); + uri.AppendPath(imageName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string labPlanName, string imageName, LabVirtualMachineImageData data) { var message = _pipeline.CreateMessage(); @@ -302,6 +353,22 @@ public Response CreateOrUpdate(string subscriptionId } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string labPlanName, string imageName, LabVirtualMachineImagePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.LabServices/labPlans/", false); + uri.AppendPath(labPlanName, true); + uri.AppendPath("/images/", false); + uri.AppendPath(imageName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string labPlanName, string imageName, LabVirtualMachineImagePatch patch) { var message = _pipeline.CreateMessage(); @@ -394,6 +461,14 @@ public Response Update(string subscriptionId, string } } + internal RequestUriBuilder CreateListByLabPlanNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string labPlanName, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByLabPlanNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string labPlanName, string filter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/RestOperations/LabPlansRestOperations.cs b/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/RestOperations/LabPlansRestOperations.cs index c2e89aa342ae..b5d4c29f12cd 100644 --- a/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/RestOperations/LabPlansRestOperations.cs +++ b/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/RestOperations/LabPlansRestOperations.cs @@ -37,6 +37,21 @@ public LabPlansRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.LabServices/labPlans", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId, string filter) { var message = _pipeline.CreateMessage(); @@ -110,6 +125,19 @@ public Response ListBySubscription(string subscriptionId, string } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.LabServices/labPlans", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -183,6 +211,20 @@ public Response ListByResourceGroup(string subscriptionId, string } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string labPlanName) + { + 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.LabServices/labPlans/", false); + uri.AppendPath(labPlanName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string labPlanName) { var message = _pipeline.CreateMessage(); @@ -265,6 +307,20 @@ public Response Get(string subscriptionId, string resourceGroupName } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string labPlanName, LabPlanData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.LabServices/labPlans/", false); + uri.AppendPath(labPlanName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string labPlanName, LabPlanData data) { var message = _pipeline.CreateMessage(); @@ -345,6 +401,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string labPlanName, LabPlanPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.LabServices/labPlans/", false); + uri.AppendPath(labPlanName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string labPlanName, LabPlanPatch patch) { var message = _pipeline.CreateMessage(); @@ -423,6 +493,20 @@ public Response Update(string subscriptionId, string resourceGroupName, string l } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string labPlanName) + { + 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.LabServices/labPlans/", false); + uri.AppendPath(labPlanName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string labPlanName) { var message = _pipeline.CreateMessage(); @@ -495,6 +579,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string l } } + internal RequestUriBuilder CreateSaveImageRequestUri(string subscriptionId, string resourceGroupName, string labPlanName, LabVirtualMachineImageContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.LabServices/labPlans/", false); + uri.AppendPath(labPlanName, true); + uri.AppendPath("/saveImage", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateSaveImageRequest(string subscriptionId, string resourceGroupName, string labPlanName, LabVirtualMachineImageContent content) { var message = _pipeline.CreateMessage(); @@ -574,6 +673,14 @@ public Response SaveImage(string subscriptionId, string resourceGroupName, strin } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId, string filter) { var message = _pipeline.CreateMessage(); @@ -644,6 +751,14 @@ public Response ListBySubscriptionNextPage(string nextLink, strin } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/RestOperations/LabsRestOperations.cs b/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/RestOperations/LabsRestOperations.cs index ed2756794598..76b8023b72f6 100644 --- a/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/RestOperations/LabsRestOperations.cs +++ b/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/RestOperations/LabsRestOperations.cs @@ -37,6 +37,21 @@ public LabsRestOperations(HttpPipeline pipeline, string applicationId, Uri endpo _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.LabServices/labs", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId, string filter) { var message = _pipeline.CreateMessage(); @@ -110,6 +125,19 @@ public Response ListBySubscription(string subscriptionId, string filt } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.LabServices/labs", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -183,6 +211,20 @@ public Response ListByResourceGroup(string subscriptionId, string res } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string labName) + { + 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.LabServices/labs/", false); + uri.AppendPath(labName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string labName) { var message = _pipeline.CreateMessage(); @@ -265,6 +307,20 @@ public Response Get(string subscriptionId, string resourceGroupName, st } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string labName, LabData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.LabServices/labs/", false); + uri.AppendPath(labName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string labName, LabData data) { var message = _pipeline.CreateMessage(); @@ -345,6 +401,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string labName, LabPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.LabServices/labs/", false); + uri.AppendPath(labName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string labName, LabPatch patch) { var message = _pipeline.CreateMessage(); @@ -423,6 +493,20 @@ public Response Update(string subscriptionId, string resourceGroupName, string l } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string labName) + { + 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.LabServices/labs/", false); + uri.AppendPath(labName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string labName) { var message = _pipeline.CreateMessage(); @@ -495,6 +579,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string l } } + internal RequestUriBuilder CreatePublishRequestUri(string subscriptionId, string resourceGroupName, string labName) + { + 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.LabServices/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/publish", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreatePublishRequest(string subscriptionId, string resourceGroupName, string labName) { var message = _pipeline.CreateMessage(); @@ -566,6 +665,21 @@ public Response Publish(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreateSyncGroupRequestUri(string subscriptionId, string resourceGroupName, string labName) + { + 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.LabServices/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/syncGroup", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateSyncGroupRequest(string subscriptionId, string resourceGroupName, string labName) { var message = _pipeline.CreateMessage(); @@ -637,6 +751,14 @@ public Response SyncGroup(string subscriptionId, string resourceGroupName, strin } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId, string filter) { var message = _pipeline.CreateMessage(); @@ -707,6 +829,14 @@ public Response ListBySubscriptionNextPage(string nextLink, string su } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/RestOperations/SchedulesRestOperations.cs b/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/RestOperations/SchedulesRestOperations.cs index 9438a11880ee..94a12cbdbe36 100644 --- a/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/RestOperations/SchedulesRestOperations.cs +++ b/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/RestOperations/SchedulesRestOperations.cs @@ -37,6 +37,25 @@ public SchedulesRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByLabRequestUri(string subscriptionId, string resourceGroupName, string labName, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.LabServices/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/schedules", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + return uri; + } + internal HttpMessage CreateListByLabRequest(string subscriptionId, string resourceGroupName, string labName, string filter) { var message = _pipeline.CreateMessage(); @@ -122,6 +141,22 @@ public Response ListByLab(string subscriptionId, string resource } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string labName, string scheduleName) + { + 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.LabServices/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/schedules/", false); + uri.AppendPath(scheduleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string labName, string scheduleName) { var message = _pipeline.CreateMessage(); @@ -210,6 +245,22 @@ public Response Get(string subscriptionId, string resou } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string labName, string scheduleName, LabServicesScheduleData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.LabServices/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/schedules/", false); + uri.AppendPath(scheduleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string labName, string scheduleName, LabServicesScheduleData data) { var message = _pipeline.CreateMessage(); @@ -304,6 +355,22 @@ public Response CreateOrUpdate(string subscriptionId, s } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string labName, string scheduleName, LabServicesSchedulePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.LabServices/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/schedules/", false); + uri.AppendPath(scheduleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string labName, string scheduleName, LabServicesSchedulePatch patch) { var message = _pipeline.CreateMessage(); @@ -396,6 +463,22 @@ public Response Update(string subscriptionId, string re } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string labName, string scheduleName) + { + 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.LabServices/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/schedules/", false); + uri.AppendPath(scheduleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string labName, string scheduleName) { var message = _pipeline.CreateMessage(); @@ -474,6 +557,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string l } } + internal RequestUriBuilder CreateListByLabNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string labName, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByLabNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string labName, string filter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/RestOperations/SkusRestOperations.cs b/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/RestOperations/SkusRestOperations.cs index 27c60d8623c4..8b061a34422a 100644 --- a/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/RestOperations/SkusRestOperations.cs +++ b/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/RestOperations/SkusRestOperations.cs @@ -37,6 +37,21 @@ public SkusRestOperations(HttpPipeline pipeline, string applicationId, Uri endpo _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.LabServices/skus", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string filter) { var message = _pipeline.CreateMessage(); @@ -110,6 +125,14 @@ public Response List(string subscriptionId, string filter } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string filter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/RestOperations/UsagesRestOperations.cs b/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/RestOperations/UsagesRestOperations.cs index 83cb4e97ee33..8f8cff77adc5 100644 --- a/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/RestOperations/UsagesRestOperations.cs +++ b/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/RestOperations/UsagesRestOperations.cs @@ -37,6 +37,23 @@ public UsagesRestOperations(HttpPipeline pipeline, string applicationId, Uri end _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByLocationRequestUri(string subscriptionId, AzureLocation location, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.LabServices/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/usages", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + return uri; + } + internal HttpMessage CreateListByLocationRequest(string subscriptionId, AzureLocation location, string filter) { var message = _pipeline.CreateMessage(); @@ -114,6 +131,14 @@ public Response ListByLocation(string subscriptionId } } + internal RequestUriBuilder CreateListByLocationNextPageRequestUri(string nextLink, string subscriptionId, AzureLocation location, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByLocationNextPageRequest(string nextLink, string subscriptionId, AzureLocation location, string filter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/RestOperations/UsersRestOperations.cs b/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/RestOperations/UsersRestOperations.cs index a8b7f516d758..46a7288ce34a 100644 --- a/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/RestOperations/UsersRestOperations.cs +++ b/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/RestOperations/UsersRestOperations.cs @@ -37,6 +37,25 @@ public UsersRestOperations(HttpPipeline pipeline, string applicationId, Uri endp _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByLabRequestUri(string subscriptionId, string resourceGroupName, string labName, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.LabServices/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/users", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + return uri; + } + internal HttpMessage CreateListByLabRequest(string subscriptionId, string resourceGroupName, string labName, string filter) { var message = _pipeline.CreateMessage(); @@ -122,6 +141,22 @@ public Response ListByLab(string subscriptionId, string resourceGrou } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string labName, string userName) + { + 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.LabServices/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/users/", false); + uri.AppendPath(userName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string labName, string userName) { var message = _pipeline.CreateMessage(); @@ -210,6 +245,22 @@ public Response Get(string subscriptionId, string resourceGroupName } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string labName, string userName, LabUserData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.LabServices/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/users/", false); + uri.AppendPath(userName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string labName, string userName, LabUserData data) { var message = _pipeline.CreateMessage(); @@ -296,6 +347,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string labName, string userName, LabUserPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.LabServices/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/users/", false); + uri.AppendPath(userName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string labName, string userName, LabUserPatch patch) { var message = _pipeline.CreateMessage(); @@ -380,6 +447,22 @@ public Response Update(string subscriptionId, string resourceGroupName, string l } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string labName, string userName) + { + 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.LabServices/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/users/", false); + uri.AppendPath(userName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string labName, string userName) { var message = _pipeline.CreateMessage(); @@ -458,6 +541,23 @@ public Response Delete(string subscriptionId, string resourceGroupName, string l } } + internal RequestUriBuilder CreateInviteRequestUri(string subscriptionId, string resourceGroupName, string labName, string userName, LabUserInviteRequestContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.LabServices/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/users/", false); + uri.AppendPath(userName, true); + uri.AppendPath("/invite", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateInviteRequest(string subscriptionId, string resourceGroupName, string labName, string userName, LabUserInviteRequestContent content) { var message = _pipeline.CreateMessage(); @@ -543,6 +643,14 @@ public Response Invite(string subscriptionId, string resourceGroupName, string l } } + internal RequestUriBuilder CreateListByLabNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string labName, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByLabNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string labName, string filter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/RestOperations/VirtualMachinesRestOperations.cs b/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/RestOperations/VirtualMachinesRestOperations.cs index 60173f4d35e3..01e8422d082a 100644 --- a/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/RestOperations/VirtualMachinesRestOperations.cs +++ b/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/RestOperations/VirtualMachinesRestOperations.cs @@ -37,6 +37,25 @@ public VirtualMachinesRestOperations(HttpPipeline pipeline, string applicationId _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByLabRequestUri(string subscriptionId, string resourceGroupName, string labName, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.LabServices/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/virtualMachines", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + return uri; + } + internal HttpMessage CreateListByLabRequest(string subscriptionId, string resourceGroupName, string labName, string filter) { var message = _pipeline.CreateMessage(); @@ -122,6 +141,22 @@ public Response ListByLab(string subscriptionId, string re } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string labName, string virtualMachineName) + { + 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.LabServices/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/virtualMachines/", false); + uri.AppendPath(virtualMachineName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string labName, string virtualMachineName) { var message = _pipeline.CreateMessage(); @@ -210,6 +245,23 @@ public Response Get(string subscriptionId, string resourc } } + internal RequestUriBuilder CreateStartRequestUri(string subscriptionId, string resourceGroupName, string labName, string virtualMachineName) + { + 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.LabServices/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/virtualMachines/", false); + uri.AppendPath(virtualMachineName, true); + uri.AppendPath("/start", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStartRequest(string subscriptionId, string resourceGroupName, string labName, string virtualMachineName) { var message = _pipeline.CreateMessage(); @@ -287,6 +339,23 @@ public Response Start(string subscriptionId, string resourceGroupName, string la } } + internal RequestUriBuilder CreateStopRequestUri(string subscriptionId, string resourceGroupName, string labName, string virtualMachineName) + { + 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.LabServices/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/virtualMachines/", false); + uri.AppendPath(virtualMachineName, true); + uri.AppendPath("/stop", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStopRequest(string subscriptionId, string resourceGroupName, string labName, string virtualMachineName) { var message = _pipeline.CreateMessage(); @@ -364,6 +433,23 @@ public Response Stop(string subscriptionId, string resourceGroupName, string lab } } + internal RequestUriBuilder CreateReimageRequestUri(string subscriptionId, string resourceGroupName, string labName, string virtualMachineName) + { + 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.LabServices/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/virtualMachines/", false); + uri.AppendPath(virtualMachineName, true); + uri.AppendPath("/reimage", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateReimageRequest(string subscriptionId, string resourceGroupName, string labName, string virtualMachineName) { var message = _pipeline.CreateMessage(); @@ -441,6 +527,23 @@ public Response Reimage(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreateRedeployRequestUri(string subscriptionId, string resourceGroupName, string labName, string virtualMachineName) + { + 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.LabServices/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/virtualMachines/", false); + uri.AppendPath(virtualMachineName, true); + uri.AppendPath("/redeploy", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRedeployRequest(string subscriptionId, string resourceGroupName, string labName, string virtualMachineName) { var message = _pipeline.CreateMessage(); @@ -518,6 +621,23 @@ public Response Redeploy(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreateResetPasswordRequestUri(string subscriptionId, string resourceGroupName, string labName, string virtualMachineName, LabVirtualMachineResetPasswordContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.LabServices/labs/", false); + uri.AppendPath(labName, true); + uri.AppendPath("/virtualMachines/", false); + uri.AppendPath(virtualMachineName, true); + uri.AppendPath("/resetPassword", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateResetPasswordRequest(string subscriptionId, string resourceGroupName, string labName, string virtualMachineName, LabVirtualMachineResetPasswordContent content) { var message = _pipeline.CreateMessage(); @@ -603,6 +723,14 @@ public Response ResetPassword(string subscriptionId, string resourceGroupName, s } } + internal RequestUriBuilder CreateListByLabNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string labName, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByLabNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string labName, string filter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/loadtestservice/Azure.ResourceManager.LoadTesting/src/Generated/LongRunningOperation/LoadTestingArmOperation.cs b/sdk/loadtestservice/Azure.ResourceManager.LoadTesting/src/Generated/LongRunningOperation/LoadTestingArmOperation.cs index 831961d57083..17ba0419f169 100644 --- a/sdk/loadtestservice/Azure.ResourceManager.LoadTesting/src/Generated/LongRunningOperation/LoadTestingArmOperation.cs +++ b/sdk/loadtestservice/Azure.ResourceManager.LoadTesting/src/Generated/LongRunningOperation/LoadTestingArmOperation.cs @@ -20,21 +20,24 @@ internal class LoadTestingArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of LoadTestingArmOperation for mocking. protected LoadTestingArmOperation() { } - internal LoadTestingArmOperation(Response response) + internal LoadTestingArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal LoadTestingArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "LoadTestingArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal LoadTestingArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeli public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/loadtestservice/Azure.ResourceManager.LoadTesting/src/Generated/LongRunningOperation/LoadTestingArmOperationOfT.cs b/sdk/loadtestservice/Azure.ResourceManager.LoadTesting/src/Generated/LongRunningOperation/LoadTestingArmOperationOfT.cs index 339b0df4d856..9afd11d9a530 100644 --- a/sdk/loadtestservice/Azure.ResourceManager.LoadTesting/src/Generated/LongRunningOperation/LoadTestingArmOperationOfT.cs +++ b/sdk/loadtestservice/Azure.ResourceManager.LoadTesting/src/Generated/LongRunningOperation/LoadTestingArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class LoadTestingArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of LoadTestingArmOperation for mocking. protected LoadTestingArmOperation() { } - internal LoadTestingArmOperation(Response response) + internal LoadTestingArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal LoadTestingArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "LoadTestingArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal LoadTestingArmOperation(IOperationSource source, ClientDiagnostics c public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/loadtestservice/Azure.ResourceManager.LoadTesting/src/Generated/Models/LoadTestingQuotaResource.Serialization.cs b/sdk/loadtestservice/Azure.ResourceManager.LoadTesting/src/Generated/Models/LoadTestingQuotaResource.Serialization.cs new file mode 100644 index 000000000000..2a4e0744100e --- /dev/null +++ b/sdk/loadtestservice/Azure.ResourceManager.LoadTesting/src/Generated/Models/LoadTestingQuotaResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.LoadTesting +{ + public partial class LoadTestingQuotaResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + LoadTestingQuotaData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + LoadTestingQuotaData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/loadtestservice/Azure.ResourceManager.LoadTesting/src/Generated/Models/LoadTestingResource.Serialization.cs b/sdk/loadtestservice/Azure.ResourceManager.LoadTesting/src/Generated/Models/LoadTestingResource.Serialization.cs new file mode 100644 index 000000000000..3371ee1b5649 --- /dev/null +++ b/sdk/loadtestservice/Azure.ResourceManager.LoadTesting/src/Generated/Models/LoadTestingResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.LoadTesting +{ + public partial class LoadTestingResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + LoadTestingResourceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + LoadTestingResourceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/loadtestservice/Azure.ResourceManager.LoadTesting/src/Generated/RestOperations/LoadTestsRestOperations.cs b/sdk/loadtestservice/Azure.ResourceManager.LoadTesting/src/Generated/RestOperations/LoadTestsRestOperations.cs index 87d573601814..84067f1c1a37 100644 --- a/sdk/loadtestservice/Azure.ResourceManager.LoadTesting/src/Generated/RestOperations/LoadTestsRestOperations.cs +++ b/sdk/loadtestservice/Azure.ResourceManager.LoadTesting/src/Generated/RestOperations/LoadTestsRestOperations.cs @@ -37,6 +37,17 @@ public LoadTestsRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.LoadTestService/loadTests", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,19 @@ public Response ListBySubscription(string subscription } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.LoadTestService/loadTests", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -177,6 +201,20 @@ public Response ListByResourceGroup(string subscriptio } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string loadTestName) + { + 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.LoadTestService/loadTests/", false); + uri.AppendPath(loadTestName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string loadTestName) { var message = _pipeline.CreateMessage(); @@ -259,6 +297,20 @@ public Response Get(string subscriptionId, string resou } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string loadTestName, LoadTestingResourceData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.LoadTestService/loadTests/", false); + uri.AppendPath(loadTestName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string loadTestName, LoadTestingResourceData data) { var message = _pipeline.CreateMessage(); @@ -337,6 +389,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string loadTestName, LoadTestingResourcePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.LoadTestService/loadTests/", false); + uri.AppendPath(loadTestName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string loadTestName, LoadTestingResourcePatch patch) { var message = _pipeline.CreateMessage(); @@ -415,6 +481,20 @@ public Response Update(string subscriptionId, string resourceGroupName, string l } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string loadTestName) + { + 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.LoadTestService/loadTests/", false); + uri.AppendPath(loadTestName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string loadTestName) { var message = _pipeline.CreateMessage(); @@ -487,6 +567,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string l } } + internal RequestUriBuilder CreateListOutboundNetworkDependenciesEndpointsRequestUri(string subscriptionId, string resourceGroupName, string loadTestName) + { + 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.LoadTestService/loadTests/", false); + uri.AppendPath(loadTestName, true); + uri.AppendPath("/outboundNetworkDependenciesEndpoints", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListOutboundNetworkDependenciesEndpointsRequest(string subscriptionId, string resourceGroupName, string loadTestName) { var message = _pipeline.CreateMessage(); @@ -566,6 +661,14 @@ public Response ListOutboundNetworkDepend } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -634,6 +737,14 @@ public Response ListBySubscriptionNextPage(string next } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -706,6 +817,14 @@ public Response ListByResourceGroupNextPage(string nex } } + internal RequestUriBuilder CreateListOutboundNetworkDependenciesEndpointsNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string loadTestName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListOutboundNetworkDependenciesEndpointsNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string loadTestName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/loadtestservice/Azure.ResourceManager.LoadTesting/src/Generated/RestOperations/QuotasRestOperations.cs b/sdk/loadtestservice/Azure.ResourceManager.LoadTesting/src/Generated/RestOperations/QuotasRestOperations.cs index c52eeb1b5276..e460b973fc08 100644 --- a/sdk/loadtestservice/Azure.ResourceManager.LoadTesting/src/Generated/RestOperations/QuotasRestOperations.cs +++ b/sdk/loadtestservice/Azure.ResourceManager.LoadTesting/src/Generated/RestOperations/QuotasRestOperations.cs @@ -37,6 +37,19 @@ public QuotasRestOperations(HttpPipeline pipeline, string applicationId, Uri end _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, AzureLocation location) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.LoadTestService/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/quotas", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, AzureLocation location) { var message = _pipeline.CreateMessage(); @@ -108,6 +121,20 @@ public Response List(string subscriptionId, AzureLoc } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, AzureLocation location, string quotaBucketName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.LoadTestService/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/quotas/", false); + uri.AppendPath(quotaBucketName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, AzureLocation location, string quotaBucketName) { var message = _pipeline.CreateMessage(); @@ -188,6 +215,21 @@ public Response Get(string subscriptionId, AzureLocation l } } + internal RequestUriBuilder CreateCheckAvailabilityRequestUri(string subscriptionId, AzureLocation location, string quotaBucketName, LoadTestingQuotaBucketContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.LoadTestService/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/quotas/", false); + uri.AppendPath(quotaBucketName, true); + uri.AppendPath("/checkAvailability", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCheckAvailabilityRequest(string subscriptionId, AzureLocation location, string quotaBucketName, LoadTestingQuotaBucketContent content) { var message = _pipeline.CreateMessage(); @@ -273,6 +315,14 @@ public Response CheckAvailability(string sub } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, AzureLocation location) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, AzureLocation location) { var message = _pipeline.CreateMessage(); diff --git a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/IntegrationAccountAgreementCollection.cs b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/IntegrationAccountAgreementCollection.cs index 5eacbf10fcf0..b49691caa082 100644 --- a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/IntegrationAccountAgreementCollection.cs +++ b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/IntegrationAccountAgreementCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> Cre try { var response = await _integrationAccountAgreementRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, agreementName, data, cancellationToken).ConfigureAwait(false); - var operation = new LogicArmOperation(Response.FromValue(new IntegrationAccountAgreementResource(Client, response), response.GetRawResponse())); + var uri = _integrationAccountAgreementRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, agreementName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new LogicArmOperation(Response.FromValue(new IntegrationAccountAgreementResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate( try { var response = _integrationAccountAgreementRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, agreementName, data, cancellationToken); - var operation = new LogicArmOperation(Response.FromValue(new IntegrationAccountAgreementResource(Client, response), response.GetRawResponse())); + var uri = _integrationAccountAgreementRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, agreementName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new LogicArmOperation(Response.FromValue(new IntegrationAccountAgreementResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/IntegrationAccountAgreementResource.cs b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/IntegrationAccountAgreementResource.cs index ecc66d8db790..0d8f647d9ec5 100644 --- a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/IntegrationAccountAgreementResource.cs +++ b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/IntegrationAccountAgreementResource.cs @@ -202,7 +202,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _integrationAccountAgreementRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new LogicArmOperation(response); + var uri = _integrationAccountAgreementRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new LogicArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -244,7 +246,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _integrationAccountAgreementRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new LogicArmOperation(response); + var uri = _integrationAccountAgreementRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new LogicArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -290,7 +294,9 @@ public virtual async Task> Upd try { var response = await _integrationAccountAgreementRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new LogicArmOperation(Response.FromValue(new IntegrationAccountAgreementResource(Client, response), response.GetRawResponse())); + var uri = _integrationAccountAgreementRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new LogicArmOperation(Response.FromValue(new IntegrationAccountAgreementResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -336,7 +342,9 @@ public virtual ArmOperation Update(WaitUnti try { var response = _integrationAccountAgreementRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new LogicArmOperation(Response.FromValue(new IntegrationAccountAgreementResource(Client, response), response.GetRawResponse())); + var uri = _integrationAccountAgreementRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new LogicArmOperation(Response.FromValue(new IntegrationAccountAgreementResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/IntegrationAccountAssemblyDefinitionCollection.cs b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/IntegrationAccountAssemblyDefinitionCollection.cs index 3931f6246cd4..5f3cf55fa866 100644 --- a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/IntegrationAccountAssemblyDefinitionCollection.cs +++ b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/IntegrationAccountAssemblyDefinitionCollection.cs @@ -90,7 +90,9 @@ public virtual async Task(Response.FromValue(new IntegrationAccountAssemblyDefinitionResource(Client, response), response.GetRawResponse())); + var uri = _integrationAccountAssemblyDefinitionIntegrationAccountAssembliesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, assemblyArtifactName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new LogicArmOperation(Response.FromValue(new IntegrationAccountAssemblyDefinitionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation Create try { var response = _integrationAccountAssemblyDefinitionIntegrationAccountAssembliesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, assemblyArtifactName, data, cancellationToken); - var operation = new LogicArmOperation(Response.FromValue(new IntegrationAccountAssemblyDefinitionResource(Client, response), response.GetRawResponse())); + var uri = _integrationAccountAssemblyDefinitionIntegrationAccountAssembliesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, assemblyArtifactName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new LogicArmOperation(Response.FromValue(new IntegrationAccountAssemblyDefinitionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/IntegrationAccountAssemblyDefinitionResource.cs b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/IntegrationAccountAssemblyDefinitionResource.cs index 98e6f87536fe..b98e7903698d 100644 --- a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/IntegrationAccountAssemblyDefinitionResource.cs +++ b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/IntegrationAccountAssemblyDefinitionResource.cs @@ -202,7 +202,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _integrationAccountAssemblyDefinitionIntegrationAccountAssembliesRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new LogicArmOperation(response); + var uri = _integrationAccountAssemblyDefinitionIntegrationAccountAssembliesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new LogicArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -244,7 +246,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _integrationAccountAssemblyDefinitionIntegrationAccountAssembliesRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new LogicArmOperation(response); + var uri = _integrationAccountAssemblyDefinitionIntegrationAccountAssembliesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new LogicArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -290,7 +294,9 @@ public virtual async Task(Response.FromValue(new IntegrationAccountAssemblyDefinitionResource(Client, response), response.GetRawResponse())); + var uri = _integrationAccountAssemblyDefinitionIntegrationAccountAssembliesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new LogicArmOperation(Response.FromValue(new IntegrationAccountAssemblyDefinitionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -336,7 +342,9 @@ public virtual ArmOperation Update try { var response = _integrationAccountAssemblyDefinitionIntegrationAccountAssembliesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new LogicArmOperation(Response.FromValue(new IntegrationAccountAssemblyDefinitionResource(Client, response), response.GetRawResponse())); + var uri = _integrationAccountAssemblyDefinitionIntegrationAccountAssembliesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new LogicArmOperation(Response.FromValue(new IntegrationAccountAssemblyDefinitionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/IntegrationAccountBatchConfigurationCollection.cs b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/IntegrationAccountBatchConfigurationCollection.cs index b8d8bd69756c..c75c808e9857 100644 --- a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/IntegrationAccountBatchConfigurationCollection.cs +++ b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/IntegrationAccountBatchConfigurationCollection.cs @@ -90,7 +90,9 @@ public virtual async Task(Response.FromValue(new IntegrationAccountBatchConfigurationResource(Client, response), response.GetRawResponse())); + var uri = _integrationAccountBatchConfigurationRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, batchConfigurationName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new LogicArmOperation(Response.FromValue(new IntegrationAccountBatchConfigurationResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation Create try { var response = _integrationAccountBatchConfigurationRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, batchConfigurationName, data, cancellationToken); - var operation = new LogicArmOperation(Response.FromValue(new IntegrationAccountBatchConfigurationResource(Client, response), response.GetRawResponse())); + var uri = _integrationAccountBatchConfigurationRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, batchConfigurationName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new LogicArmOperation(Response.FromValue(new IntegrationAccountBatchConfigurationResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/IntegrationAccountBatchConfigurationResource.cs b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/IntegrationAccountBatchConfigurationResource.cs index 32cbcdb3ede4..fa3d85b32be3 100644 --- a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/IntegrationAccountBatchConfigurationResource.cs +++ b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/IntegrationAccountBatchConfigurationResource.cs @@ -201,7 +201,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _integrationAccountBatchConfigurationRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new LogicArmOperation(response); + var uri = _integrationAccountBatchConfigurationRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new LogicArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -243,7 +245,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _integrationAccountBatchConfigurationRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new LogicArmOperation(response); + var uri = _integrationAccountBatchConfigurationRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new LogicArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -289,7 +293,9 @@ public virtual async Task(Response.FromValue(new IntegrationAccountBatchConfigurationResource(Client, response), response.GetRawResponse())); + var uri = _integrationAccountBatchConfigurationRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new LogicArmOperation(Response.FromValue(new IntegrationAccountBatchConfigurationResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -335,7 +341,9 @@ public virtual ArmOperation Update try { var response = _integrationAccountBatchConfigurationRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new LogicArmOperation(Response.FromValue(new IntegrationAccountBatchConfigurationResource(Client, response), response.GetRawResponse())); + var uri = _integrationAccountBatchConfigurationRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new LogicArmOperation(Response.FromValue(new IntegrationAccountBatchConfigurationResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/IntegrationAccountCertificateCollection.cs b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/IntegrationAccountCertificateCollection.cs index 6c36e9896f5a..60da8dbbfc34 100644 --- a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/IntegrationAccountCertificateCollection.cs +++ b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/IntegrationAccountCertificateCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> C try { var response = await _integrationAccountCertificateRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, certificateName, data, cancellationToken).ConfigureAwait(false); - var operation = new LogicArmOperation(Response.FromValue(new IntegrationAccountCertificateResource(Client, response), response.GetRawResponse())); + var uri = _integrationAccountCertificateRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, certificateName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new LogicArmOperation(Response.FromValue(new IntegrationAccountCertificateResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdat try { var response = _integrationAccountCertificateRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, certificateName, data, cancellationToken); - var operation = new LogicArmOperation(Response.FromValue(new IntegrationAccountCertificateResource(Client, response), response.GetRawResponse())); + var uri = _integrationAccountCertificateRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, certificateName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new LogicArmOperation(Response.FromValue(new IntegrationAccountCertificateResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/IntegrationAccountCertificateResource.cs b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/IntegrationAccountCertificateResource.cs index 019b46acc107..8a2b9de03334 100644 --- a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/IntegrationAccountCertificateResource.cs +++ b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/IntegrationAccountCertificateResource.cs @@ -201,7 +201,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _integrationAccountCertificateRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new LogicArmOperation(response); + var uri = _integrationAccountCertificateRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new LogicArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -243,7 +245,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _integrationAccountCertificateRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new LogicArmOperation(response); + var uri = _integrationAccountCertificateRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new LogicArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -289,7 +293,9 @@ public virtual async Task> U try { var response = await _integrationAccountCertificateRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new LogicArmOperation(Response.FromValue(new IntegrationAccountCertificateResource(Client, response), response.GetRawResponse())); + var uri = _integrationAccountCertificateRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new LogicArmOperation(Response.FromValue(new IntegrationAccountCertificateResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -335,7 +341,9 @@ public virtual ArmOperation Update(WaitUn try { var response = _integrationAccountCertificateRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new LogicArmOperation(Response.FromValue(new IntegrationAccountCertificateResource(Client, response), response.GetRawResponse())); + var uri = _integrationAccountCertificateRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new LogicArmOperation(Response.FromValue(new IntegrationAccountCertificateResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/IntegrationAccountCollection.cs b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/IntegrationAccountCollection.cs index 927a652e1f0a..a493fba893bd 100644 --- a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/IntegrationAccountCollection.cs +++ b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/IntegrationAccountCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> CreateOrUpda try { var response = await _integrationAccountRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, integrationAccountName, data, cancellationToken).ConfigureAwait(false); - var operation = new LogicArmOperation(Response.FromValue(new IntegrationAccountResource(Client, response), response.GetRawResponse())); + var uri = _integrationAccountRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, integrationAccountName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new LogicArmOperation(Response.FromValue(new IntegrationAccountResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -140,7 +142,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil try { var response = _integrationAccountRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, integrationAccountName, data, cancellationToken); - var operation = new LogicArmOperation(Response.FromValue(new IntegrationAccountResource(Client, response), response.GetRawResponse())); + var uri = _integrationAccountRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, integrationAccountName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new LogicArmOperation(Response.FromValue(new IntegrationAccountResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/IntegrationAccountMapCollection.cs b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/IntegrationAccountMapCollection.cs index fb1a6fa62454..44c4bfc64f17 100644 --- a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/IntegrationAccountMapCollection.cs +++ b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/IntegrationAccountMapCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> CreateOrU try { var response = await _integrationAccountMapRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, mapName, data, cancellationToken).ConfigureAwait(false); - var operation = new LogicArmOperation(Response.FromValue(new IntegrationAccountMapResource(Client, response), response.GetRawResponse())); + var uri = _integrationAccountMapRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, mapName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new LogicArmOperation(Response.FromValue(new IntegrationAccountMapResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUn try { var response = _integrationAccountMapRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, mapName, data, cancellationToken); - var operation = new LogicArmOperation(Response.FromValue(new IntegrationAccountMapResource(Client, response), response.GetRawResponse())); + var uri = _integrationAccountMapRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, mapName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new LogicArmOperation(Response.FromValue(new IntegrationAccountMapResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/IntegrationAccountMapResource.cs b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/IntegrationAccountMapResource.cs index 9f444eef8e78..43df997c2ec7 100644 --- a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/IntegrationAccountMapResource.cs +++ b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/IntegrationAccountMapResource.cs @@ -202,7 +202,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _integrationAccountMapRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new LogicArmOperation(response); + var uri = _integrationAccountMapRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new LogicArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -244,7 +246,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _integrationAccountMapRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new LogicArmOperation(response); + var uri = _integrationAccountMapRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new LogicArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -290,7 +294,9 @@ public virtual async Task> UpdateAsy try { var response = await _integrationAccountMapRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new LogicArmOperation(Response.FromValue(new IntegrationAccountMapResource(Client, response), response.GetRawResponse())); + var uri = _integrationAccountMapRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new LogicArmOperation(Response.FromValue(new IntegrationAccountMapResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -336,7 +342,9 @@ public virtual ArmOperation Update(WaitUntil wait try { var response = _integrationAccountMapRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new LogicArmOperation(Response.FromValue(new IntegrationAccountMapResource(Client, response), response.GetRawResponse())); + var uri = _integrationAccountMapRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new LogicArmOperation(Response.FromValue(new IntegrationAccountMapResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/IntegrationAccountPartnerCollection.cs b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/IntegrationAccountPartnerCollection.cs index fdb217a78b6b..10aa9cca583b 100644 --- a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/IntegrationAccountPartnerCollection.cs +++ b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/IntegrationAccountPartnerCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> Creat try { var response = await _integrationAccountPartnerRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, partnerName, data, cancellationToken).ConfigureAwait(false); - var operation = new LogicArmOperation(Response.FromValue(new IntegrationAccountPartnerResource(Client, response), response.GetRawResponse())); + var uri = _integrationAccountPartnerRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, partnerName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new LogicArmOperation(Response.FromValue(new IntegrationAccountPartnerResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(Wa try { var response = _integrationAccountPartnerRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, partnerName, data, cancellationToken); - var operation = new LogicArmOperation(Response.FromValue(new IntegrationAccountPartnerResource(Client, response), response.GetRawResponse())); + var uri = _integrationAccountPartnerRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, partnerName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new LogicArmOperation(Response.FromValue(new IntegrationAccountPartnerResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/IntegrationAccountPartnerResource.cs b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/IntegrationAccountPartnerResource.cs index 8555c79cccdf..6ad9aa633acf 100644 --- a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/IntegrationAccountPartnerResource.cs +++ b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/IntegrationAccountPartnerResource.cs @@ -202,7 +202,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _integrationAccountPartnerRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new LogicArmOperation(response); + var uri = _integrationAccountPartnerRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new LogicArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -244,7 +246,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _integrationAccountPartnerRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new LogicArmOperation(response); + var uri = _integrationAccountPartnerRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new LogicArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -290,7 +294,9 @@ public virtual async Task> Updat try { var response = await _integrationAccountPartnerRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new LogicArmOperation(Response.FromValue(new IntegrationAccountPartnerResource(Client, response), response.GetRawResponse())); + var uri = _integrationAccountPartnerRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new LogicArmOperation(Response.FromValue(new IntegrationAccountPartnerResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -336,7 +342,9 @@ public virtual ArmOperation Update(WaitUntil try { var response = _integrationAccountPartnerRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new LogicArmOperation(Response.FromValue(new IntegrationAccountPartnerResource(Client, response), response.GetRawResponse())); + var uri = _integrationAccountPartnerRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new LogicArmOperation(Response.FromValue(new IntegrationAccountPartnerResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/IntegrationAccountResource.cs b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/IntegrationAccountResource.cs index 01b39ad3bef6..118e9f7c02e8 100644 --- a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/IntegrationAccountResource.cs +++ b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/IntegrationAccountResource.cs @@ -755,7 +755,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _integrationAccountRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new LogicArmOperation(response); + var uri = _integrationAccountRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new LogicArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -797,7 +799,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _integrationAccountRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); - var operation = new LogicArmOperation(response); + var uri = _integrationAccountRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new LogicArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/IntegrationAccountSchemaCollection.cs b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/IntegrationAccountSchemaCollection.cs index 489efa0308b5..94b9b1535e42 100644 --- a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/IntegrationAccountSchemaCollection.cs +++ b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/IntegrationAccountSchemaCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> Create try { var response = await _integrationAccountSchemaRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, schemaName, data, cancellationToken).ConfigureAwait(false); - var operation = new LogicArmOperation(Response.FromValue(new IntegrationAccountSchemaResource(Client, response), response.GetRawResponse())); + var uri = _integrationAccountSchemaRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, schemaName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new LogicArmOperation(Response.FromValue(new IntegrationAccountSchemaResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(Wai try { var response = _integrationAccountSchemaRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, schemaName, data, cancellationToken); - var operation = new LogicArmOperation(Response.FromValue(new IntegrationAccountSchemaResource(Client, response), response.GetRawResponse())); + var uri = _integrationAccountSchemaRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, schemaName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new LogicArmOperation(Response.FromValue(new IntegrationAccountSchemaResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/IntegrationAccountSchemaResource.cs b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/IntegrationAccountSchemaResource.cs index 5da52be694bd..753e7270b116 100644 --- a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/IntegrationAccountSchemaResource.cs +++ b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/IntegrationAccountSchemaResource.cs @@ -202,7 +202,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _integrationAccountSchemaRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new LogicArmOperation(response); + var uri = _integrationAccountSchemaRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new LogicArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -244,7 +246,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _integrationAccountSchemaRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new LogicArmOperation(response); + var uri = _integrationAccountSchemaRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new LogicArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -290,7 +294,9 @@ public virtual async Task> Update try { var response = await _integrationAccountSchemaRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new LogicArmOperation(Response.FromValue(new IntegrationAccountSchemaResource(Client, response), response.GetRawResponse())); + var uri = _integrationAccountSchemaRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new LogicArmOperation(Response.FromValue(new IntegrationAccountSchemaResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -336,7 +342,9 @@ public virtual ArmOperation Update(WaitUntil w try { var response = _integrationAccountSchemaRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new LogicArmOperation(Response.FromValue(new IntegrationAccountSchemaResource(Client, response), response.GetRawResponse())); + var uri = _integrationAccountSchemaRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new LogicArmOperation(Response.FromValue(new IntegrationAccountSchemaResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/IntegrationAccountSessionCollection.cs b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/IntegrationAccountSessionCollection.cs index 0555a0017627..86417ff5a507 100644 --- a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/IntegrationAccountSessionCollection.cs +++ b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/IntegrationAccountSessionCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> Creat try { var response = await _integrationAccountSessionRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, sessionName, data, cancellationToken).ConfigureAwait(false); - var operation = new LogicArmOperation(Response.FromValue(new IntegrationAccountSessionResource(Client, response), response.GetRawResponse())); + var uri = _integrationAccountSessionRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, sessionName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new LogicArmOperation(Response.FromValue(new IntegrationAccountSessionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(Wa try { var response = _integrationAccountSessionRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, sessionName, data, cancellationToken); - var operation = new LogicArmOperation(Response.FromValue(new IntegrationAccountSessionResource(Client, response), response.GetRawResponse())); + var uri = _integrationAccountSessionRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, sessionName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new LogicArmOperation(Response.FromValue(new IntegrationAccountSessionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/IntegrationAccountSessionResource.cs b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/IntegrationAccountSessionResource.cs index d17f4bb4321a..d7cde725e6c4 100644 --- a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/IntegrationAccountSessionResource.cs +++ b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/IntegrationAccountSessionResource.cs @@ -201,7 +201,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _integrationAccountSessionRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new LogicArmOperation(response); + var uri = _integrationAccountSessionRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new LogicArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -243,7 +245,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _integrationAccountSessionRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new LogicArmOperation(response); + var uri = _integrationAccountSessionRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new LogicArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -289,7 +293,9 @@ public virtual async Task> Updat try { var response = await _integrationAccountSessionRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new LogicArmOperation(Response.FromValue(new IntegrationAccountSessionResource(Client, response), response.GetRawResponse())); + var uri = _integrationAccountSessionRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new LogicArmOperation(Response.FromValue(new IntegrationAccountSessionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -335,7 +341,9 @@ public virtual ArmOperation Update(WaitUntil try { var response = _integrationAccountSessionRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new LogicArmOperation(Response.FromValue(new IntegrationAccountSessionResource(Client, response), response.GetRawResponse())); + var uri = _integrationAccountSessionRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new LogicArmOperation(Response.FromValue(new IntegrationAccountSessionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/IntegrationServiceEnvironmentResource.cs b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/IntegrationServiceEnvironmentResource.cs index 99a74222ead0..885ef853188b 100644 --- a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/IntegrationServiceEnvironmentResource.cs +++ b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/IntegrationServiceEnvironmentResource.cs @@ -280,7 +280,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _integrationServiceEnvironmentRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new LogicArmOperation(response); + var uri = _integrationServiceEnvironmentRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new LogicArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -322,7 +324,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _integrationServiceEnvironmentRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); - var operation = new LogicArmOperation(response); + var uri = _integrationServiceEnvironmentRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new LogicArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/LogicWorkflowCollection.cs b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/LogicWorkflowCollection.cs index d6476049faf1..2bbe954102dd 100644 --- a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/LogicWorkflowCollection.cs +++ b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/LogicWorkflowCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> CreateOrUpdateAsy try { var response = await _logicWorkflowWorkflowsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, workflowName, data, cancellationToken).ConfigureAwait(false); - var operation = new LogicArmOperation(Response.FromValue(new LogicWorkflowResource(Client, response), response.GetRawResponse())); + var uri = _logicWorkflowWorkflowsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, workflowName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new LogicArmOperation(Response.FromValue(new LogicWorkflowResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -140,7 +142,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wait try { var response = _logicWorkflowWorkflowsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, workflowName, data, cancellationToken); - var operation = new LogicArmOperation(Response.FromValue(new LogicWorkflowResource(Client, response), response.GetRawResponse())); + var uri = _logicWorkflowWorkflowsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, workflowName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new LogicArmOperation(Response.FromValue(new LogicWorkflowResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/LogicWorkflowResource.cs b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/LogicWorkflowResource.cs index eda85425e4d9..9b7e5d0affdc 100644 --- a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/LogicWorkflowResource.cs +++ b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/LogicWorkflowResource.cs @@ -409,7 +409,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _logicWorkflowWorkflowsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new LogicArmOperation(response); + var uri = _logicWorkflowWorkflowsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new LogicArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -451,7 +453,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _logicWorkflowWorkflowsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); - var operation = new LogicArmOperation(response); + var uri = _logicWorkflowWorkflowsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new LogicArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -497,7 +501,9 @@ public virtual async Task> UpdateAsync(WaitU try { var response = await _logicWorkflowWorkflowsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new LogicArmOperation(Response.FromValue(new LogicWorkflowResource(Client, response), response.GetRawResponse())); + var uri = _logicWorkflowWorkflowsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new LogicArmOperation(Response.FromValue(new LogicWorkflowResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -543,7 +549,9 @@ public virtual ArmOperation Update(WaitUntil waitUntil, L try { var response = _logicWorkflowWorkflowsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, data, cancellationToken); - var operation = new LogicArmOperation(Response.FromValue(new LogicWorkflowResource(Client, response), response.GetRawResponse())); + var uri = _logicWorkflowWorkflowsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new LogicArmOperation(Response.FromValue(new LogicWorkflowResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/LongRunningOperation/LogicArmOperation.cs b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/LongRunningOperation/LogicArmOperation.cs index 0c20cd312213..832e59e9debb 100644 --- a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/LongRunningOperation/LogicArmOperation.cs +++ b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/LongRunningOperation/LogicArmOperation.cs @@ -20,21 +20,24 @@ internal class LogicArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of LogicArmOperation for mocking. protected LogicArmOperation() { } - internal LogicArmOperation(Response response) + internal LogicArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal LogicArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "LogicArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal LogicArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pip public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/LongRunningOperation/LogicArmOperationOfT.cs b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/LongRunningOperation/LogicArmOperationOfT.cs index 71de74d05c3d..fb0c4199a78c 100644 --- a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/LongRunningOperation/LogicArmOperationOfT.cs +++ b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/LongRunningOperation/LogicArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class LogicArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of LogicArmOperation for mocking. protected LogicArmOperation() { } - internal LogicArmOperation(Response response) + internal LogicArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal LogicArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "LogicArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal LogicArmOperation(IOperationSource source, ClientDiagnostics clientD public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/IntegrationAccountAgreementResource.Serialization.cs b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/IntegrationAccountAgreementResource.Serialization.cs new file mode 100644 index 000000000000..5d3bcccf901f --- /dev/null +++ b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/IntegrationAccountAgreementResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Logic +{ + public partial class IntegrationAccountAgreementResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + IntegrationAccountAgreementData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + IntegrationAccountAgreementData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/IntegrationAccountAssemblyDefinitionResource.Serialization.cs b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/IntegrationAccountAssemblyDefinitionResource.Serialization.cs new file mode 100644 index 000000000000..98b11f24aa16 --- /dev/null +++ b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/IntegrationAccountAssemblyDefinitionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Logic +{ + public partial class IntegrationAccountAssemblyDefinitionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + IntegrationAccountAssemblyDefinitionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + IntegrationAccountAssemblyDefinitionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/IntegrationAccountBatchConfigurationResource.Serialization.cs b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/IntegrationAccountBatchConfigurationResource.Serialization.cs new file mode 100644 index 000000000000..3eeb1174753d --- /dev/null +++ b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/IntegrationAccountBatchConfigurationResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Logic +{ + public partial class IntegrationAccountBatchConfigurationResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + IntegrationAccountBatchConfigurationData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + IntegrationAccountBatchConfigurationData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/IntegrationAccountCertificateResource.Serialization.cs b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/IntegrationAccountCertificateResource.Serialization.cs new file mode 100644 index 000000000000..f2c28ff2c890 --- /dev/null +++ b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/IntegrationAccountCertificateResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Logic +{ + public partial class IntegrationAccountCertificateResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + IntegrationAccountCertificateData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + IntegrationAccountCertificateData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/IntegrationAccountMapResource.Serialization.cs b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/IntegrationAccountMapResource.Serialization.cs new file mode 100644 index 000000000000..b5c242c5b770 --- /dev/null +++ b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/IntegrationAccountMapResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Logic +{ + public partial class IntegrationAccountMapResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + IntegrationAccountMapData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + IntegrationAccountMapData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/IntegrationAccountPartnerResource.Serialization.cs b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/IntegrationAccountPartnerResource.Serialization.cs new file mode 100644 index 000000000000..b354fb182de1 --- /dev/null +++ b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/IntegrationAccountPartnerResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Logic +{ + public partial class IntegrationAccountPartnerResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + IntegrationAccountPartnerData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + IntegrationAccountPartnerData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/IntegrationAccountResource.Serialization.cs b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/IntegrationAccountResource.Serialization.cs new file mode 100644 index 000000000000..6da7a45ba00b --- /dev/null +++ b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/IntegrationAccountResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Logic +{ + public partial class IntegrationAccountResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + IntegrationAccountData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + IntegrationAccountData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/IntegrationAccountSchemaResource.Serialization.cs b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/IntegrationAccountSchemaResource.Serialization.cs new file mode 100644 index 000000000000..3d08418c7ec0 --- /dev/null +++ b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/IntegrationAccountSchemaResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Logic +{ + public partial class IntegrationAccountSchemaResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + IntegrationAccountSchemaData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + IntegrationAccountSchemaData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/IntegrationAccountSessionResource.Serialization.cs b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/IntegrationAccountSessionResource.Serialization.cs new file mode 100644 index 000000000000..9b095e4a6643 --- /dev/null +++ b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/IntegrationAccountSessionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Logic +{ + public partial class IntegrationAccountSessionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + IntegrationAccountSessionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + IntegrationAccountSessionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/IntegrationServiceEnvironmentManagedApiResource.Serialization.cs b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/IntegrationServiceEnvironmentManagedApiResource.Serialization.cs new file mode 100644 index 000000000000..b026e0af4f38 --- /dev/null +++ b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/IntegrationServiceEnvironmentManagedApiResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Logic +{ + public partial class IntegrationServiceEnvironmentManagedApiResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + IntegrationServiceEnvironmentManagedApiData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + IntegrationServiceEnvironmentManagedApiData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/IntegrationServiceEnvironmentResource.Serialization.cs b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/IntegrationServiceEnvironmentResource.Serialization.cs new file mode 100644 index 000000000000..b0373909dff5 --- /dev/null +++ b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/IntegrationServiceEnvironmentResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Logic +{ + public partial class IntegrationServiceEnvironmentResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + IntegrationServiceEnvironmentData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + IntegrationServiceEnvironmentData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/LogicWorkflowResource.Serialization.cs b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/LogicWorkflowResource.Serialization.cs new file mode 100644 index 000000000000..06737953ca8f --- /dev/null +++ b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/LogicWorkflowResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Logic +{ + public partial class LogicWorkflowResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + LogicWorkflowData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + LogicWorkflowData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/LogicWorkflowRunActionRepetitionRequestHistoryResource.Serialization.cs b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/LogicWorkflowRunActionRepetitionRequestHistoryResource.Serialization.cs new file mode 100644 index 000000000000..43f23ccddf44 --- /dev/null +++ b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/LogicWorkflowRunActionRepetitionRequestHistoryResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Logic +{ + public partial class LogicWorkflowRunActionRepetitionRequestHistoryResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + LogicWorkflowRequestHistoryData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + LogicWorkflowRequestHistoryData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/LogicWorkflowRunActionRepetitionResource.Serialization.cs b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/LogicWorkflowRunActionRepetitionResource.Serialization.cs new file mode 100644 index 000000000000..48fc38a30cf3 --- /dev/null +++ b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/LogicWorkflowRunActionRepetitionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Logic +{ + public partial class LogicWorkflowRunActionRepetitionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + LogicWorkflowRunActionRepetitionDefinitionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + LogicWorkflowRunActionRepetitionDefinitionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/LogicWorkflowRunActionRequestHistoryResource.Serialization.cs b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/LogicWorkflowRunActionRequestHistoryResource.Serialization.cs new file mode 100644 index 000000000000..ebb4e02722b9 --- /dev/null +++ b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/LogicWorkflowRunActionRequestHistoryResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Logic +{ + public partial class LogicWorkflowRunActionRequestHistoryResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + LogicWorkflowRequestHistoryData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + LogicWorkflowRequestHistoryData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/LogicWorkflowRunActionResource.Serialization.cs b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/LogicWorkflowRunActionResource.Serialization.cs new file mode 100644 index 000000000000..c97e1c7d8c8f --- /dev/null +++ b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/LogicWorkflowRunActionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Logic +{ + public partial class LogicWorkflowRunActionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + LogicWorkflowRunActionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + LogicWorkflowRunActionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/LogicWorkflowRunActionScopeRepetitionResource.Serialization.cs b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/LogicWorkflowRunActionScopeRepetitionResource.Serialization.cs new file mode 100644 index 000000000000..883fefb19b01 --- /dev/null +++ b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/LogicWorkflowRunActionScopeRepetitionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Logic +{ + public partial class LogicWorkflowRunActionScopeRepetitionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + LogicWorkflowRunActionRepetitionDefinitionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + LogicWorkflowRunActionRepetitionDefinitionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/LogicWorkflowRunOperationResource.Serialization.cs b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/LogicWorkflowRunOperationResource.Serialization.cs new file mode 100644 index 000000000000..02b41a0ec44e --- /dev/null +++ b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/LogicWorkflowRunOperationResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Logic +{ + public partial class LogicWorkflowRunOperationResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + LogicWorkflowRunData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + LogicWorkflowRunData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/LogicWorkflowRunResource.Serialization.cs b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/LogicWorkflowRunResource.Serialization.cs new file mode 100644 index 000000000000..f955cabc3351 --- /dev/null +++ b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/LogicWorkflowRunResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Logic +{ + public partial class LogicWorkflowRunResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + LogicWorkflowRunData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + LogicWorkflowRunData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/LogicWorkflowTriggerHistoryResource.Serialization.cs b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/LogicWorkflowTriggerHistoryResource.Serialization.cs new file mode 100644 index 000000000000..0cf62baf47c6 --- /dev/null +++ b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/LogicWorkflowTriggerHistoryResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Logic +{ + public partial class LogicWorkflowTriggerHistoryResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + LogicWorkflowTriggerHistoryData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + LogicWorkflowTriggerHistoryData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/LogicWorkflowTriggerResource.Serialization.cs b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/LogicWorkflowTriggerResource.Serialization.cs new file mode 100644 index 000000000000..df82797cd787 --- /dev/null +++ b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/LogicWorkflowTriggerResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Logic +{ + public partial class LogicWorkflowTriggerResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + LogicWorkflowTriggerData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + LogicWorkflowTriggerData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/LogicWorkflowVersionResource.Serialization.cs b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/LogicWorkflowVersionResource.Serialization.cs new file mode 100644 index 000000000000..68fcf66d3961 --- /dev/null +++ b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/LogicWorkflowVersionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Logic +{ + public partial class LogicWorkflowVersionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + LogicWorkflowVersionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + LogicWorkflowVersionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/RestOperations/IntegrationAccountAgreementsRestOperations.cs b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/RestOperations/IntegrationAccountAgreementsRestOperations.cs index 27ac7f381ec0..14cdb0eabb3d 100644 --- a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/RestOperations/IntegrationAccountAgreementsRestOperations.cs +++ b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/RestOperations/IntegrationAccountAgreementsRestOperations.cs @@ -37,6 +37,29 @@ public IntegrationAccountAgreementsRestOperations(HttpPipeline pipeline, string _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string integrationAccountName, int? top, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Logic/integrationAccounts/", false); + uri.AppendPath(integrationAccountName, true); + uri.AppendPath("/agreements", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string integrationAccountName, int? top, string filter) { var message = _pipeline.CreateMessage(); @@ -128,6 +151,22 @@ public Response List(string subscriptionI } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string integrationAccountName, string agreementName) + { + 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.Logic/integrationAccounts/", false); + uri.AppendPath(integrationAccountName, true); + uri.AppendPath("/agreements/", false); + uri.AppendPath(agreementName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string integrationAccountName, string agreementName) { var message = _pipeline.CreateMessage(); @@ -216,6 +255,22 @@ public Response Get(string subscriptionId, stri } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string integrationAccountName, string agreementName, IntegrationAccountAgreementData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Logic/integrationAccounts/", false); + uri.AppendPath(integrationAccountName, true); + uri.AppendPath("/agreements/", false); + uri.AppendPath(agreementName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string integrationAccountName, string agreementName, IntegrationAccountAgreementData data) { var message = _pipeline.CreateMessage(); @@ -310,6 +365,22 @@ public Response CreateOrUpdate(string subscript } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string integrationAccountName, string agreementName) + { + 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.Logic/integrationAccounts/", false); + uri.AppendPath(integrationAccountName, true); + uri.AppendPath("/agreements/", false); + uri.AppendPath(agreementName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string integrationAccountName, string agreementName) { var message = _pipeline.CreateMessage(); @@ -386,6 +457,23 @@ public Response Delete(string subscriptionId, string resourceGroupName, string i } } + internal RequestUriBuilder CreateListContentCallbackUrlRequestUri(string subscriptionId, string resourceGroupName, string integrationAccountName, string agreementName, ListOperationCallbackUrlParameterInfo info) + { + 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.Logic/integrationAccounts/", false); + uri.AppendPath(integrationAccountName, true); + uri.AppendPath("/agreements/", false); + uri.AppendPath(agreementName, true); + uri.AppendPath("/listContentCallbackUrl", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListContentCallbackUrlRequest(string subscriptionId, string resourceGroupName, string integrationAccountName, string agreementName, ListOperationCallbackUrlParameterInfo info) { var message = _pipeline.CreateMessage(); @@ -479,6 +567,14 @@ public Response ListContentCallbackUrl(string s } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string integrationAccountName, int? top, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string integrationAccountName, int? top, string filter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/RestOperations/IntegrationAccountAssembliesRestOperations.cs b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/RestOperations/IntegrationAccountAssembliesRestOperations.cs index ed865bd6fd0f..57051cbe2298 100644 --- a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/RestOperations/IntegrationAccountAssembliesRestOperations.cs +++ b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/RestOperations/IntegrationAccountAssembliesRestOperations.cs @@ -37,6 +37,21 @@ public IntegrationAccountAssembliesRestOperations(HttpPipeline pipeline, string _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string integrationAccountName) + { + 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.Logic/integrationAccounts/", false); + uri.AppendPath(integrationAccountName, true); + uri.AppendPath("/assemblies", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string integrationAccountName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response List(string subscriptionId, stri } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string integrationAccountName, string assemblyArtifactName) + { + 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.Logic/integrationAccounts/", false); + uri.AppendPath(integrationAccountName, true); + uri.AppendPath("/assemblies/", false); + uri.AppendPath(assemblyArtifactName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string integrationAccountName, string assemblyArtifactName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscriptio } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string integrationAccountName, string assemblyArtifactName, IntegrationAccountAssemblyDefinitionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Logic/integrationAccounts/", false); + uri.AppendPath(integrationAccountName, true); + uri.AppendPath("/assemblies/", false); + uri.AppendPath(assemblyArtifactName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string integrationAccountName, string assemblyArtifactName, IntegrationAccountAssemblyDefinitionData data) { var message = _pipeline.CreateMessage(); @@ -298,6 +345,22 @@ public Response CreateOrUpdate(string } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string integrationAccountName, string assemblyArtifactName) + { + 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.Logic/integrationAccounts/", false); + uri.AppendPath(integrationAccountName, true); + uri.AppendPath("/assemblies/", false); + uri.AppendPath(assemblyArtifactName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string integrationAccountName, string assemblyArtifactName) { var message = _pipeline.CreateMessage(); @@ -374,6 +437,23 @@ public Response Delete(string subscriptionId, string resourceGroupName, string i } } + internal RequestUriBuilder CreateListContentCallbackUrlRequestUri(string subscriptionId, string resourceGroupName, string integrationAccountName, string assemblyArtifactName) + { + 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.Logic/integrationAccounts/", false); + uri.AppendPath(integrationAccountName, true); + uri.AppendPath("/assemblies/", false); + uri.AppendPath(assemblyArtifactName, true); + uri.AppendPath("/listContentCallbackUrl", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListContentCallbackUrlRequest(string subscriptionId, string resourceGroupName, string integrationAccountName, string assemblyArtifactName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/RestOperations/IntegrationAccountBatchConfigurationsRestOperations.cs b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/RestOperations/IntegrationAccountBatchConfigurationsRestOperations.cs index 0c910790b929..a6de172524de 100644 --- a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/RestOperations/IntegrationAccountBatchConfigurationsRestOperations.cs +++ b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/RestOperations/IntegrationAccountBatchConfigurationsRestOperations.cs @@ -37,6 +37,21 @@ public IntegrationAccountBatchConfigurationsRestOperations(HttpPipeline pipeline _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string integrationAccountName) + { + 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.Logic/integrationAccounts/", false); + uri.AppendPath(integrationAccountName, true); + uri.AppendPath("/batchConfigurations", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string integrationAccountName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response List(string subscriptionId, string } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string integrationAccountName, string batchConfigurationName) + { + 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.Logic/integrationAccounts/", false); + uri.AppendPath(integrationAccountName, true); + uri.AppendPath("/batchConfigurations/", false); + uri.AppendPath(batchConfigurationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string integrationAccountName, string batchConfigurationName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscriptio } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string integrationAccountName, string batchConfigurationName, IntegrationAccountBatchConfigurationData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Logic/integrationAccounts/", false); + uri.AppendPath(integrationAccountName, true); + uri.AppendPath("/batchConfigurations/", false); + uri.AppendPath(batchConfigurationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string integrationAccountName, string batchConfigurationName, IntegrationAccountBatchConfigurationData data) { var message = _pipeline.CreateMessage(); @@ -298,6 +345,22 @@ public Response CreateOrUpdate(string } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string integrationAccountName, string batchConfigurationName) + { + 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.Logic/integrationAccounts/", false); + uri.AppendPath(integrationAccountName, true); + uri.AppendPath("/batchConfigurations/", false); + uri.AppendPath(batchConfigurationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string integrationAccountName, string batchConfigurationName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/RestOperations/IntegrationAccountCertificatesRestOperations.cs b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/RestOperations/IntegrationAccountCertificatesRestOperations.cs index a4273890c603..e145ef6fe9ad 100644 --- a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/RestOperations/IntegrationAccountCertificatesRestOperations.cs +++ b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/RestOperations/IntegrationAccountCertificatesRestOperations.cs @@ -37,6 +37,25 @@ public IntegrationAccountCertificatesRestOperations(HttpPipeline pipeline, strin _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string integrationAccountName, int? top) + { + 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.Logic/integrationAccounts/", false); + uri.AppendPath(integrationAccountName, true); + uri.AppendPath("/certificates", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string integrationAccountName, int? top) { var message = _pipeline.CreateMessage(); @@ -122,6 +141,22 @@ public Response List(string subscriptio } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string integrationAccountName, string certificateName) + { + 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.Logic/integrationAccounts/", false); + uri.AppendPath(integrationAccountName, true); + uri.AppendPath("/certificates/", false); + uri.AppendPath(certificateName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string integrationAccountName, string certificateName) { var message = _pipeline.CreateMessage(); @@ -210,6 +245,22 @@ public Response Get(string subscriptionId, st } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string integrationAccountName, string certificateName, IntegrationAccountCertificateData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Logic/integrationAccounts/", false); + uri.AppendPath(integrationAccountName, true); + uri.AppendPath("/certificates/", false); + uri.AppendPath(certificateName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string integrationAccountName, string certificateName, IntegrationAccountCertificateData data) { var message = _pipeline.CreateMessage(); @@ -304,6 +355,22 @@ public Response CreateOrUpdate(string subscri } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string integrationAccountName, string certificateName) + { + 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.Logic/integrationAccounts/", false); + uri.AppendPath(integrationAccountName, true); + uri.AppendPath("/certificates/", false); + uri.AppendPath(certificateName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string integrationAccountName, string certificateName) { var message = _pipeline.CreateMessage(); @@ -380,6 +447,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string i } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string integrationAccountName, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string integrationAccountName, int? top) { var message = _pipeline.CreateMessage(); diff --git a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/RestOperations/IntegrationAccountMapsRestOperations.cs b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/RestOperations/IntegrationAccountMapsRestOperations.cs index bd25dacfc9c2..77f3f17052f5 100644 --- a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/RestOperations/IntegrationAccountMapsRestOperations.cs +++ b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/RestOperations/IntegrationAccountMapsRestOperations.cs @@ -37,6 +37,29 @@ public IntegrationAccountMapsRestOperations(HttpPipeline pipeline, string applic _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string integrationAccountName, int? top, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Logic/integrationAccounts/", false); + uri.AppendPath(integrationAccountName, true); + uri.AppendPath("/maps", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string integrationAccountName, int? top, string filter) { var message = _pipeline.CreateMessage(); @@ -128,6 +151,22 @@ public Response List(string subscriptionId, str } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string integrationAccountName, string mapName) + { + 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.Logic/integrationAccounts/", false); + uri.AppendPath(integrationAccountName, true); + uri.AppendPath("/maps/", false); + uri.AppendPath(mapName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string integrationAccountName, string mapName) { var message = _pipeline.CreateMessage(); @@ -216,6 +255,22 @@ public Response Get(string subscriptionId, string res } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string integrationAccountName, string mapName, IntegrationAccountMapData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Logic/integrationAccounts/", false); + uri.AppendPath(integrationAccountName, true); + uri.AppendPath("/maps/", false); + uri.AppendPath(mapName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string integrationAccountName, string mapName, IntegrationAccountMapData data) { var message = _pipeline.CreateMessage(); @@ -310,6 +365,22 @@ public Response CreateOrUpdate(string subscriptionId, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string integrationAccountName, string mapName) + { + 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.Logic/integrationAccounts/", false); + uri.AppendPath(integrationAccountName, true); + uri.AppendPath("/maps/", false); + uri.AppendPath(mapName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string integrationAccountName, string mapName) { var message = _pipeline.CreateMessage(); @@ -386,6 +457,23 @@ public Response Delete(string subscriptionId, string resourceGroupName, string i } } + internal RequestUriBuilder CreateListContentCallbackUrlRequestUri(string subscriptionId, string resourceGroupName, string integrationAccountName, string mapName, ListOperationCallbackUrlParameterInfo info) + { + 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.Logic/integrationAccounts/", false); + uri.AppendPath(integrationAccountName, true); + uri.AppendPath("/maps/", false); + uri.AppendPath(mapName, true); + uri.AppendPath("/listContentCallbackUrl", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListContentCallbackUrlRequest(string subscriptionId, string resourceGroupName, string integrationAccountName, string mapName, ListOperationCallbackUrlParameterInfo info) { var message = _pipeline.CreateMessage(); @@ -479,6 +567,14 @@ public Response ListContentCallbackUrl(string s } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string integrationAccountName, int? top, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string integrationAccountName, int? top, string filter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/RestOperations/IntegrationAccountPartnersRestOperations.cs b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/RestOperations/IntegrationAccountPartnersRestOperations.cs index 8ef9d2d77fe3..0874b243d00e 100644 --- a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/RestOperations/IntegrationAccountPartnersRestOperations.cs +++ b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/RestOperations/IntegrationAccountPartnersRestOperations.cs @@ -37,6 +37,29 @@ public IntegrationAccountPartnersRestOperations(HttpPipeline pipeline, string ap _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string integrationAccountName, int? top, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Logic/integrationAccounts/", false); + uri.AppendPath(integrationAccountName, true); + uri.AppendPath("/partners", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string integrationAccountName, int? top, string filter) { var message = _pipeline.CreateMessage(); @@ -128,6 +151,22 @@ public Response List(string subscriptionId, } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string integrationAccountName, string partnerName) + { + 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.Logic/integrationAccounts/", false); + uri.AppendPath(integrationAccountName, true); + uri.AppendPath("/partners/", false); + uri.AppendPath(partnerName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string integrationAccountName, string partnerName) { var message = _pipeline.CreateMessage(); @@ -216,6 +255,22 @@ public Response Get(string subscriptionId, string } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string integrationAccountName, string partnerName, IntegrationAccountPartnerData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Logic/integrationAccounts/", false); + uri.AppendPath(integrationAccountName, true); + uri.AppendPath("/partners/", false); + uri.AppendPath(partnerName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string integrationAccountName, string partnerName, IntegrationAccountPartnerData data) { var message = _pipeline.CreateMessage(); @@ -310,6 +365,22 @@ public Response CreateOrUpdate(string subscriptio } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string integrationAccountName, string partnerName) + { + 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.Logic/integrationAccounts/", false); + uri.AppendPath(integrationAccountName, true); + uri.AppendPath("/partners/", false); + uri.AppendPath(partnerName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string integrationAccountName, string partnerName) { var message = _pipeline.CreateMessage(); @@ -386,6 +457,23 @@ public Response Delete(string subscriptionId, string resourceGroupName, string i } } + internal RequestUriBuilder CreateListContentCallbackUrlRequestUri(string subscriptionId, string resourceGroupName, string integrationAccountName, string partnerName, ListOperationCallbackUrlParameterInfo info) + { + 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.Logic/integrationAccounts/", false); + uri.AppendPath(integrationAccountName, true); + uri.AppendPath("/partners/", false); + uri.AppendPath(partnerName, true); + uri.AppendPath("/listContentCallbackUrl", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListContentCallbackUrlRequest(string subscriptionId, string resourceGroupName, string integrationAccountName, string partnerName, ListOperationCallbackUrlParameterInfo info) { var message = _pipeline.CreateMessage(); @@ -479,6 +567,14 @@ public Response ListContentCallbackUrl(string s } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string integrationAccountName, int? top, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string integrationAccountName, int? top, string filter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/RestOperations/IntegrationAccountSchemasRestOperations.cs b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/RestOperations/IntegrationAccountSchemasRestOperations.cs index 028d46ccf209..c3f09a24e9d9 100644 --- a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/RestOperations/IntegrationAccountSchemasRestOperations.cs +++ b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/RestOperations/IntegrationAccountSchemasRestOperations.cs @@ -37,6 +37,29 @@ public IntegrationAccountSchemasRestOperations(HttpPipeline pipeline, string app _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string integrationAccountName, int? top, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Logic/integrationAccounts/", false); + uri.AppendPath(integrationAccountName, true); + uri.AppendPath("/schemas", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string integrationAccountName, int? top, string filter) { var message = _pipeline.CreateMessage(); @@ -128,6 +151,22 @@ public Response List(string subscriptionId, } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string integrationAccountName, string schemaName) + { + 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.Logic/integrationAccounts/", false); + uri.AppendPath(integrationAccountName, true); + uri.AppendPath("/schemas/", false); + uri.AppendPath(schemaName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string integrationAccountName, string schemaName) { var message = _pipeline.CreateMessage(); @@ -216,6 +255,22 @@ public Response Get(string subscriptionId, string } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string integrationAccountName, string schemaName, IntegrationAccountSchemaData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Logic/integrationAccounts/", false); + uri.AppendPath(integrationAccountName, true); + uri.AppendPath("/schemas/", false); + uri.AppendPath(schemaName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string integrationAccountName, string schemaName, IntegrationAccountSchemaData data) { var message = _pipeline.CreateMessage(); @@ -310,6 +365,22 @@ public Response CreateOrUpdate(string subscription } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string integrationAccountName, string schemaName) + { + 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.Logic/integrationAccounts/", false); + uri.AppendPath(integrationAccountName, true); + uri.AppendPath("/schemas/", false); + uri.AppendPath(schemaName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string integrationAccountName, string schemaName) { var message = _pipeline.CreateMessage(); @@ -386,6 +457,23 @@ public Response Delete(string subscriptionId, string resourceGroupName, string i } } + internal RequestUriBuilder CreateListContentCallbackUrlRequestUri(string subscriptionId, string resourceGroupName, string integrationAccountName, string schemaName, ListOperationCallbackUrlParameterInfo info) + { + 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.Logic/integrationAccounts/", false); + uri.AppendPath(integrationAccountName, true); + uri.AppendPath("/schemas/", false); + uri.AppendPath(schemaName, true); + uri.AppendPath("/listContentCallbackUrl", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListContentCallbackUrlRequest(string subscriptionId, string resourceGroupName, string integrationAccountName, string schemaName, ListOperationCallbackUrlParameterInfo info) { var message = _pipeline.CreateMessage(); @@ -479,6 +567,14 @@ public Response ListContentCallbackUrl(string s } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string integrationAccountName, int? top, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string integrationAccountName, int? top, string filter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/RestOperations/IntegrationAccountSessionsRestOperations.cs b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/RestOperations/IntegrationAccountSessionsRestOperations.cs index 9c1d989a5e64..0c9656d5723e 100644 --- a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/RestOperations/IntegrationAccountSessionsRestOperations.cs +++ b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/RestOperations/IntegrationAccountSessionsRestOperations.cs @@ -37,6 +37,29 @@ public IntegrationAccountSessionsRestOperations(HttpPipeline pipeline, string ap _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string integrationAccountName, int? top, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Logic/integrationAccounts/", false); + uri.AppendPath(integrationAccountName, true); + uri.AppendPath("/sessions", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string integrationAccountName, int? top, string filter) { var message = _pipeline.CreateMessage(); @@ -128,6 +151,22 @@ public Response List(string subscriptionId, } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string integrationAccountName, string sessionName) + { + 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.Logic/integrationAccounts/", false); + uri.AppendPath(integrationAccountName, true); + uri.AppendPath("/sessions/", false); + uri.AppendPath(sessionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string integrationAccountName, string sessionName) { var message = _pipeline.CreateMessage(); @@ -216,6 +255,22 @@ public Response Get(string subscriptionId, string } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string integrationAccountName, string sessionName, IntegrationAccountSessionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Logic/integrationAccounts/", false); + uri.AppendPath(integrationAccountName, true); + uri.AppendPath("/sessions/", false); + uri.AppendPath(sessionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string integrationAccountName, string sessionName, IntegrationAccountSessionData data) { var message = _pipeline.CreateMessage(); @@ -310,6 +365,22 @@ public Response CreateOrUpdate(string subscriptio } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string integrationAccountName, string sessionName) + { + 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.Logic/integrationAccounts/", false); + uri.AppendPath(integrationAccountName, true); + uri.AppendPath("/sessions/", false); + uri.AppendPath(sessionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string integrationAccountName, string sessionName) { var message = _pipeline.CreateMessage(); @@ -386,6 +457,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string i } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string integrationAccountName, int? top, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string integrationAccountName, int? top, string filter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/RestOperations/IntegrationAccountsRestOperations.cs b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/RestOperations/IntegrationAccountsRestOperations.cs index 0d8bca636390..b067a1191868 100644 --- a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/RestOperations/IntegrationAccountsRestOperations.cs +++ b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/RestOperations/IntegrationAccountsRestOperations.cs @@ -37,6 +37,21 @@ public IntegrationAccountsRestOperations(HttpPipeline pipeline, string applicati _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Logic/integrationAccounts", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId, int? top) { var message = _pipeline.CreateMessage(); @@ -110,6 +125,23 @@ public Response ListBySubscription(string subscrip } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName, int? top) + { + 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.Logic/integrationAccounts", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName, int? top) { var message = _pipeline.CreateMessage(); @@ -189,6 +221,20 @@ public Response ListByResourceGroup(string subscri } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string integrationAccountName) + { + 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.Logic/integrationAccounts/", false); + uri.AppendPath(integrationAccountName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string integrationAccountName) { var message = _pipeline.CreateMessage(); @@ -271,6 +317,20 @@ public Response Get(string subscriptionId, string resour } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string integrationAccountName, IntegrationAccountData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Logic/integrationAccounts/", false); + uri.AppendPath(integrationAccountName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string integrationAccountName, IntegrationAccountData data) { var message = _pipeline.CreateMessage(); @@ -359,6 +419,20 @@ public Response CreateOrUpdate(string subscriptionId, st } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string integrationAccountName, IntegrationAccountData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Logic/integrationAccounts/", false); + uri.AppendPath(integrationAccountName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string integrationAccountName, IntegrationAccountData data) { var message = _pipeline.CreateMessage(); @@ -445,6 +519,20 @@ public Response Update(string subscriptionId, string res } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string integrationAccountName) + { + 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.Logic/integrationAccounts/", false); + uri.AppendPath(integrationAccountName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string integrationAccountName) { var message = _pipeline.CreateMessage(); @@ -515,6 +603,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string i } } + internal RequestUriBuilder CreateListCallbackUrlRequestUri(string subscriptionId, string resourceGroupName, string integrationAccountName, ListOperationCallbackUrlParameterInfo info) + { + 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.Logic/integrationAccounts/", false); + uri.AppendPath(integrationAccountName, true); + uri.AppendPath("/listCallbackUrl", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListCallbackUrlRequest(string subscriptionId, string resourceGroupName, string integrationAccountName, ListOperationCallbackUrlParameterInfo info) { var message = _pipeline.CreateMessage(); @@ -602,6 +705,21 @@ public Response ListCallbackUrl(string subscriptionId, } } + internal RequestUriBuilder CreateListKeyVaultKeysRequestUri(string subscriptionId, string resourceGroupName, string integrationAccountName, IntegrationAccountListKeyVaultKeyContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Logic/integrationAccounts/", false); + uri.AppendPath(integrationAccountName, true); + uri.AppendPath("/listKeyVaultKeys", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListKeyVaultKeysRequest(string subscriptionId, string resourceGroupName, string integrationAccountName, IntegrationAccountListKeyVaultKeyContent content) { var message = _pipeline.CreateMessage(); @@ -689,6 +807,21 @@ public Response ListKeyVaultKeys(string subsc } } + internal RequestUriBuilder CreateLogTrackingEventsRequestUri(string subscriptionId, string resourceGroupName, string integrationAccountName, IntegrationAccountTrackingEventsContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Logic/integrationAccounts/", false); + uri.AppendPath(integrationAccountName, true); + uri.AppendPath("/logTrackingEvents", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateLogTrackingEventsRequest(string subscriptionId, string resourceGroupName, string integrationAccountName, IntegrationAccountTrackingEventsContent content) { var message = _pipeline.CreateMessage(); @@ -766,6 +899,21 @@ public Response LogTrackingEvents(string subscriptionId, string resourceGroupNam } } + internal RequestUriBuilder CreateRegenerateAccessKeyRequestUri(string subscriptionId, string resourceGroupName, string integrationAccountName, LogicWorkflowRegenerateActionContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Logic/integrationAccounts/", false); + uri.AppendPath(integrationAccountName, true); + uri.AppendPath("/regenerateAccessKey", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRegenerateAccessKeyRequest(string subscriptionId, string resourceGroupName, string integrationAccountName, LogicWorkflowRegenerateActionContent content) { var message = _pipeline.CreateMessage(); @@ -853,6 +1001,14 @@ public Response RegenerateAccessKey(string subscriptionI } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId, int? top) { var message = _pipeline.CreateMessage(); @@ -923,6 +1079,14 @@ public Response ListBySubscriptionNextPage(string } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, int? top) { var message = _pipeline.CreateMessage(); diff --git a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/RestOperations/IntegrationServiceEnvironmentManagedApiRestOperations.cs b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/RestOperations/IntegrationServiceEnvironmentManagedApiRestOperations.cs index d240a68619f6..47858b6aae0c 100644 --- a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/RestOperations/IntegrationServiceEnvironmentManagedApiRestOperations.cs +++ b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/RestOperations/IntegrationServiceEnvironmentManagedApiRestOperations.cs @@ -37,6 +37,23 @@ public IntegrationServiceEnvironmentManagedApiRestOperations(HttpPipeline pipeli _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroup, string integrationServiceEnvironmentName, string apiName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroup, true); + uri.AppendPath("/providers/Microsoft.Logic/integrationServiceEnvironments/", false); + uri.AppendPath(integrationServiceEnvironmentName, true); + uri.AppendPath("/managedApis/", false); + uri.AppendPath(apiName, true); + uri.AppendPath("/apiOperations", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroup, string integrationServiceEnvironmentName, string apiName) { var message = _pipeline.CreateMessage(); @@ -122,6 +139,14 @@ public Response List(string subscriptionId, string } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroup, string integrationServiceEnvironmentName, string apiName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroup, string integrationServiceEnvironmentName, string apiName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/RestOperations/IntegrationServiceEnvironmentManagedApisRestOperations.cs b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/RestOperations/IntegrationServiceEnvironmentManagedApisRestOperations.cs index b52a745b4de2..cbac09aa3334 100644 --- a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/RestOperations/IntegrationServiceEnvironmentManagedApisRestOperations.cs +++ b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/RestOperations/IntegrationServiceEnvironmentManagedApisRestOperations.cs @@ -37,6 +37,21 @@ public IntegrationServiceEnvironmentManagedApisRestOperations(HttpPipeline pipel _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroup, string integrationServiceEnvironmentName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroup, true); + uri.AppendPath("/providers/Microsoft.Logic/integrationServiceEnvironments/", false); + uri.AppendPath(integrationServiceEnvironmentName, true); + uri.AppendPath("/managedApis", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroup, string integrationServiceEnvironmentName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response List(string s } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroup, string integrationServiceEnvironmentName, string apiName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroup, true); + uri.AppendPath("/providers/Microsoft.Logic/integrationServiceEnvironments/", false); + uri.AppendPath(integrationServiceEnvironmentName, true); + uri.AppendPath("/managedApis/", false); + uri.AppendPath(apiName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroup, string integrationServiceEnvironmentName, string apiName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscrip } } + internal RequestUriBuilder CreatePutRequestUri(string subscriptionId, string resourceGroup, string integrationServiceEnvironmentName, string apiName, IntegrationServiceEnvironmentManagedApiData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroup, true); + uri.AppendPath("/providers/Microsoft.Logic/integrationServiceEnvironments/", false); + uri.AppendPath(integrationServiceEnvironmentName, true); + uri.AppendPath("/managedApis/", false); + uri.AppendPath(apiName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreatePutRequest(string subscriptionId, string resourceGroup, string integrationServiceEnvironmentName, string apiName, IntegrationServiceEnvironmentManagedApiData data) { var message = _pipeline.CreateMessage(); @@ -288,6 +335,22 @@ public Response Put(string subscriptionId, string resourceGroup, string integrat } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroup, string integrationServiceEnvironmentName, string apiName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroup, true); + uri.AppendPath("/providers/Microsoft.Logic/integrationServiceEnvironments/", false); + uri.AppendPath(integrationServiceEnvironmentName, true); + uri.AppendPath("/managedApis/", false); + uri.AppendPath(apiName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroup, string integrationServiceEnvironmentName, string apiName) { var message = _pipeline.CreateMessage(); @@ -364,6 +427,14 @@ public Response Delete(string subscriptionId, string resourceGroup, string integ } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroup, string integrationServiceEnvironmentName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroup, string integrationServiceEnvironmentName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/RestOperations/IntegrationServiceEnvironmentNetworkHealthRestOperations.cs b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/RestOperations/IntegrationServiceEnvironmentNetworkHealthRestOperations.cs index 8022947f8528..a93480b4d64c 100644 --- a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/RestOperations/IntegrationServiceEnvironmentNetworkHealthRestOperations.cs +++ b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/RestOperations/IntegrationServiceEnvironmentNetworkHealthRestOperations.cs @@ -38,6 +38,21 @@ public IntegrationServiceEnvironmentNetworkHealthRestOperations(HttpPipeline pip _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroup, string integrationServiceEnvironmentName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroup, true); + uri.AppendPath("/providers/Microsoft.Logic/integrationServiceEnvironments/", false); + uri.AppendPath(integrationServiceEnvironmentName, true); + uri.AppendPath("/health/network", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroup, string integrationServiceEnvironmentName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/RestOperations/IntegrationServiceEnvironmentSkusRestOperations.cs b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/RestOperations/IntegrationServiceEnvironmentSkusRestOperations.cs index 578bc97b4630..d7ca090df3b1 100644 --- a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/RestOperations/IntegrationServiceEnvironmentSkusRestOperations.cs +++ b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/RestOperations/IntegrationServiceEnvironmentSkusRestOperations.cs @@ -37,6 +37,21 @@ public IntegrationServiceEnvironmentSkusRestOperations(HttpPipeline pipeline, st _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroup, string integrationServiceEnvironmentName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroup, true); + uri.AppendPath("/providers/Microsoft.Logic/integrationServiceEnvironments/", false); + uri.AppendPath(integrationServiceEnvironmentName, true); + uri.AppendPath("/skus", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroup, string integrationServiceEnvironmentName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,14 @@ public Response List(string subscriptionId } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroup, string integrationServiceEnvironmentName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroup, string integrationServiceEnvironmentName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/RestOperations/IntegrationServiceEnvironmentsRestOperations.cs b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/RestOperations/IntegrationServiceEnvironmentsRestOperations.cs index ee586eeff7fd..467e892cea4e 100644 --- a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/RestOperations/IntegrationServiceEnvironmentsRestOperations.cs +++ b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/RestOperations/IntegrationServiceEnvironmentsRestOperations.cs @@ -37,6 +37,21 @@ public IntegrationServiceEnvironmentsRestOperations(HttpPipeline pipeline, strin _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Logic/integrationServiceEnvironments", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId, int? top) { var message = _pipeline.CreateMessage(); @@ -110,6 +125,23 @@ public Response ListBySubscription(stri } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroup, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroup, true); + uri.AppendPath("/providers/Microsoft.Logic/integrationServiceEnvironments", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroup, int? top) { var message = _pipeline.CreateMessage(); @@ -189,6 +221,20 @@ public Response ListByResourceGroup(str } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroup, string integrationServiceEnvironmentName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroup, true); + uri.AppendPath("/providers/Microsoft.Logic/integrationServiceEnvironments/", false); + uri.AppendPath(integrationServiceEnvironmentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroup, string integrationServiceEnvironmentName) { var message = _pipeline.CreateMessage(); @@ -271,6 +317,20 @@ public Response Get(string subscriptionId, st } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroup, string integrationServiceEnvironmentName, IntegrationServiceEnvironmentData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroup, true); + uri.AppendPath("/providers/Microsoft.Logic/integrationServiceEnvironments/", false); + uri.AppendPath(integrationServiceEnvironmentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroup, string integrationServiceEnvironmentName, IntegrationServiceEnvironmentData data) { var message = _pipeline.CreateMessage(); @@ -349,6 +409,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroup, stri } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroup, string integrationServiceEnvironmentName, IntegrationServiceEnvironmentData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroup, true); + uri.AppendPath("/providers/Microsoft.Logic/integrationServiceEnvironments/", false); + uri.AppendPath(integrationServiceEnvironmentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroup, string integrationServiceEnvironmentName, IntegrationServiceEnvironmentData data) { var message = _pipeline.CreateMessage(); @@ -425,6 +499,20 @@ public Response Update(string subscriptionId, string resourceGroup, string integ } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroup, string integrationServiceEnvironmentName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroup, true); + uri.AppendPath("/providers/Microsoft.Logic/integrationServiceEnvironments/", false); + uri.AppendPath(integrationServiceEnvironmentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroup, string integrationServiceEnvironmentName) { var message = _pipeline.CreateMessage(); @@ -495,6 +583,21 @@ public Response Delete(string subscriptionId, string resourceGroup, string integ } } + internal RequestUriBuilder CreateRestartRequestUri(string subscriptionId, string resourceGroup, string integrationServiceEnvironmentName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroup, true); + uri.AppendPath("/providers/Microsoft.Logic/integrationServiceEnvironments/", false); + uri.AppendPath(integrationServiceEnvironmentName, true); + uri.AppendPath("/restart", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRestartRequest(string subscriptionId, string resourceGroup, string integrationServiceEnvironmentName) { var message = _pipeline.CreateMessage(); @@ -564,6 +667,14 @@ public Response Restart(string subscriptionId, string resourceGroup, string inte } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId, int? top) { var message = _pipeline.CreateMessage(); @@ -634,6 +745,14 @@ public Response ListBySubscriptionNextP } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroup, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroup, int? top) { var message = _pipeline.CreateMessage(); diff --git a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/RestOperations/WorkflowRunActionRepetitionsRequestHistoriesRestOperations.cs b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/RestOperations/WorkflowRunActionRepetitionsRequestHistoriesRestOperations.cs index 090af1d43309..67a07471508a 100644 --- a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/RestOperations/WorkflowRunActionRepetitionsRequestHistoriesRestOperations.cs +++ b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/RestOperations/WorkflowRunActionRepetitionsRequestHistoriesRestOperations.cs @@ -37,6 +37,27 @@ public WorkflowRunActionRepetitionsRequestHistoriesRestOperations(HttpPipeline p _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string workflowName, string runName, string actionName, string repetitionName) + { + 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.Logic/workflows/", false); + uri.AppendPath(workflowName, true); + uri.AppendPath("/runs/", false); + uri.AppendPath(runName, true); + uri.AppendPath("/actions/", false); + uri.AppendPath(actionName, true); + uri.AppendPath("/repetitions/", false); + uri.AppendPath(repetitionName, true); + uri.AppendPath("/requestHistories", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string workflowName, string runName, string actionName, string repetitionName) { var message = _pipeline.CreateMessage(); @@ -134,6 +155,28 @@ public Response List(string subscriptionI } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workflowName, string runName, string actionName, string repetitionName, string requestHistoryName) + { + 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.Logic/workflows/", false); + uri.AppendPath(workflowName, true); + uri.AppendPath("/runs/", false); + uri.AppendPath(runName, true); + uri.AppendPath("/actions/", false); + uri.AppendPath(actionName, true); + uri.AppendPath("/repetitions/", false); + uri.AppendPath(repetitionName, true); + uri.AppendPath("/requestHistories/", false); + uri.AppendPath(requestHistoryName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workflowName, string runName, string actionName, string repetitionName, string requestHistoryName) { var message = _pipeline.CreateMessage(); @@ -240,6 +283,14 @@ public Response Get(string subscriptionId, stri } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string workflowName, string runName, string actionName, string repetitionName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workflowName, string runName, string actionName, string repetitionName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/RestOperations/WorkflowRunActionRepetitionsRestOperations.cs b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/RestOperations/WorkflowRunActionRepetitionsRestOperations.cs index 9c1a73c96c59..3478577d771a 100644 --- a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/RestOperations/WorkflowRunActionRepetitionsRestOperations.cs +++ b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/RestOperations/WorkflowRunActionRepetitionsRestOperations.cs @@ -37,6 +37,25 @@ public WorkflowRunActionRepetitionsRestOperations(HttpPipeline pipeline, string _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string workflowName, string runName, string actionName) + { + 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.Logic/workflows/", false); + uri.AppendPath(workflowName, true); + uri.AppendPath("/runs/", false); + uri.AppendPath(runName, true); + uri.AppendPath("/actions/", false); + uri.AppendPath(actionName, true); + uri.AppendPath("/repetitions", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string workflowName, string runName, string actionName) { var message = _pipeline.CreateMessage(); @@ -128,6 +147,26 @@ public Response List(string subs } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workflowName, string runName, string actionName, string repetitionName) + { + 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.Logic/workflows/", false); + uri.AppendPath(workflowName, true); + uri.AppendPath("/runs/", false); + uri.AppendPath(runName, true); + uri.AppendPath("/actions/", false); + uri.AppendPath(actionName, true); + uri.AppendPath("/repetitions/", false); + uri.AppendPath(repetitionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workflowName, string runName, string actionName, string repetitionName) { var message = _pipeline.CreateMessage(); @@ -228,6 +267,27 @@ public Response Get(string subsc } } + internal RequestUriBuilder CreateListExpressionTracesRequestUri(string subscriptionId, string resourceGroupName, string workflowName, string runName, string actionName, string repetitionName) + { + 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.Logic/workflows/", false); + uri.AppendPath(workflowName, true); + uri.AppendPath("/runs/", false); + uri.AppendPath(runName, true); + uri.AppendPath("/actions/", false); + uri.AppendPath(actionName, true); + uri.AppendPath("/repetitions/", false); + uri.AppendPath(repetitionName, true); + uri.AppendPath("/listExpressionTraces", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListExpressionTracesRequest(string subscriptionId, string resourceGroupName, string workflowName, string runName, string actionName, string repetitionName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/RestOperations/WorkflowRunActionRequestHistoriesRestOperations.cs b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/RestOperations/WorkflowRunActionRequestHistoriesRestOperations.cs index 432cc5c88672..90f9b1890231 100644 --- a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/RestOperations/WorkflowRunActionRequestHistoriesRestOperations.cs +++ b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/RestOperations/WorkflowRunActionRequestHistoriesRestOperations.cs @@ -37,6 +37,25 @@ public WorkflowRunActionRequestHistoriesRestOperations(HttpPipeline pipeline, st _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string workflowName, string runName, string actionName) + { + 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.Logic/workflows/", false); + uri.AppendPath(workflowName, true); + uri.AppendPath("/runs/", false); + uri.AppendPath(runName, true); + uri.AppendPath("/actions/", false); + uri.AppendPath(actionName, true); + uri.AppendPath("/requestHistories", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string workflowName, string runName, string actionName) { var message = _pipeline.CreateMessage(); @@ -128,6 +147,26 @@ public Response List(string subscriptionI } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workflowName, string runName, string actionName, string requestHistoryName) + { + 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.Logic/workflows/", false); + uri.AppendPath(workflowName, true); + uri.AppendPath("/runs/", false); + uri.AppendPath(runName, true); + uri.AppendPath("/actions/", false); + uri.AppendPath(actionName, true); + uri.AppendPath("/requestHistories/", false); + uri.AppendPath(requestHistoryName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workflowName, string runName, string actionName, string requestHistoryName) { var message = _pipeline.CreateMessage(); @@ -228,6 +267,14 @@ public Response Get(string subscriptionId, stri } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string workflowName, string runName, string actionName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workflowName, string runName, string actionName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/RestOperations/WorkflowRunActionScopeRepetitionsRestOperations.cs b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/RestOperations/WorkflowRunActionScopeRepetitionsRestOperations.cs index 16ba40cce785..ecd244f485aa 100644 --- a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/RestOperations/WorkflowRunActionScopeRepetitionsRestOperations.cs +++ b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/RestOperations/WorkflowRunActionScopeRepetitionsRestOperations.cs @@ -37,6 +37,25 @@ public WorkflowRunActionScopeRepetitionsRestOperations(HttpPipeline pipeline, st _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string workflowName, string runName, string actionName) + { + 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.Logic/workflows/", false); + uri.AppendPath(workflowName, true); + uri.AppendPath("/runs/", false); + uri.AppendPath(runName, true); + uri.AppendPath("/actions/", false); + uri.AppendPath(actionName, true); + uri.AppendPath("/scopeRepetitions", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string workflowName, string runName, string actionName) { var message = _pipeline.CreateMessage(); @@ -128,6 +147,26 @@ public Response List(string subs } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workflowName, string runName, string actionName, string repetitionName) + { + 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.Logic/workflows/", false); + uri.AppendPath(workflowName, true); + uri.AppendPath("/runs/", false); + uri.AppendPath(runName, true); + uri.AppendPath("/actions/", false); + uri.AppendPath(actionName, true); + uri.AppendPath("/scopeRepetitions/", false); + uri.AppendPath(repetitionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workflowName, string runName, string actionName, string repetitionName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/RestOperations/WorkflowRunActionsRestOperations.cs b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/RestOperations/WorkflowRunActionsRestOperations.cs index d90640bdfdb7..649c56b153ab 100644 --- a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/RestOperations/WorkflowRunActionsRestOperations.cs +++ b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/RestOperations/WorkflowRunActionsRestOperations.cs @@ -37,6 +37,31 @@ public WorkflowRunActionsRestOperations(HttpPipeline pipeline, string applicatio _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string workflowName, string runName, int? top, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Logic/workflows/", false); + uri.AppendPath(workflowName, true); + uri.AppendPath("/runs/", false); + uri.AppendPath(runName, true); + uri.AppendPath("/actions", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string workflowName, string runName, int? top, string filter) { var message = _pipeline.CreateMessage(); @@ -134,6 +159,24 @@ public Response List(string subscriptionId, st } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workflowName, string runName, string actionName) + { + 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.Logic/workflows/", false); + uri.AppendPath(workflowName, true); + uri.AppendPath("/runs/", false); + uri.AppendPath(runName, true); + uri.AppendPath("/actions/", false); + uri.AppendPath(actionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workflowName, string runName, string actionName) { var message = _pipeline.CreateMessage(); @@ -228,6 +271,25 @@ public Response Get(string subscriptionId, string re } } + internal RequestUriBuilder CreateListExpressionTracesRequestUri(string subscriptionId, string resourceGroupName, string workflowName, string runName, string actionName) + { + 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.Logic/workflows/", false); + uri.AppendPath(workflowName, true); + uri.AppendPath("/runs/", false); + uri.AppendPath(runName, true); + uri.AppendPath("/actions/", false); + uri.AppendPath(actionName, true); + uri.AppendPath("/listExpressionTraces", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListExpressionTracesRequest(string subscriptionId, string resourceGroupName, string workflowName, string runName, string actionName) { var message = _pipeline.CreateMessage(); @@ -319,6 +381,14 @@ public Response ListExpressionTraces(string subscriptionId, st } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string workflowName, string runName, int? top, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workflowName, string runName, int? top, string filter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/RestOperations/WorkflowRunRestOperations.cs b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/RestOperations/WorkflowRunRestOperations.cs index f685f780fb9b..15b69f4878a1 100644 --- a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/RestOperations/WorkflowRunRestOperations.cs +++ b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/RestOperations/WorkflowRunRestOperations.cs @@ -36,6 +36,24 @@ public WorkflowRunRestOperations(HttpPipeline pipeline, string applicationId, Ur _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workflowName, string runName, string operationId) + { + 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.Logic/workflows/", false); + uri.AppendPath(workflowName, true); + uri.AppendPath("/runs/", false); + uri.AppendPath(runName, true); + uri.AppendPath("/operations/", false); + uri.AppendPath(operationId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workflowName, string runName, string operationId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/RestOperations/WorkflowRunsRestOperations.cs b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/RestOperations/WorkflowRunsRestOperations.cs index 2030a220d64f..a4fbe0143fa2 100644 --- a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/RestOperations/WorkflowRunsRestOperations.cs +++ b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/RestOperations/WorkflowRunsRestOperations.cs @@ -37,6 +37,29 @@ public WorkflowRunsRestOperations(HttpPipeline pipeline, string applicationId, U _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string workflowName, int? top, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Logic/workflows/", false); + uri.AppendPath(workflowName, true); + uri.AppendPath("/runs", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string workflowName, int? top, string filter) { var message = _pipeline.CreateMessage(); @@ -128,6 +151,22 @@ public Response List(string subscriptionId, string r } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workflowName, string runName) + { + 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.Logic/workflows/", false); + uri.AppendPath(workflowName, true); + uri.AppendPath("/runs/", false); + uri.AppendPath(runName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workflowName, string runName) { var message = _pipeline.CreateMessage(); @@ -216,6 +255,23 @@ public Response Get(string subscriptionId, string resource } } + internal RequestUriBuilder CreateCancelRequestUri(string subscriptionId, string resourceGroupName, string workflowName, string runName) + { + 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.Logic/workflows/", false); + uri.AppendPath(workflowName, true); + uri.AppendPath("/runs/", false); + uri.AppendPath(runName, true); + uri.AppendPath("/cancel", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCancelRequest(string subscriptionId, string resourceGroupName, string workflowName, string runName) { var message = _pipeline.CreateMessage(); @@ -291,6 +347,14 @@ public Response Cancel(string subscriptionId, string resourceGroupName, string w } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string workflowName, int? top, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workflowName, int? top, string filter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/RestOperations/WorkflowTriggerHistoriesRestOperations.cs b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/RestOperations/WorkflowTriggerHistoriesRestOperations.cs index 31fe92df4dcb..391863b6a03e 100644 --- a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/RestOperations/WorkflowTriggerHistoriesRestOperations.cs +++ b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/RestOperations/WorkflowTriggerHistoriesRestOperations.cs @@ -37,6 +37,31 @@ public WorkflowTriggerHistoriesRestOperations(HttpPipeline pipeline, string appl _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string workflowName, string triggerName, int? top, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Logic/workflows/", false); + uri.AppendPath(workflowName, true); + uri.AppendPath("/triggers/", false); + uri.AppendPath(triggerName, true); + uri.AppendPath("/histories", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string workflowName, string triggerName, int? top, string filter) { var message = _pipeline.CreateMessage(); @@ -134,6 +159,24 @@ public Response List(string subscriptionI } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workflowName, string triggerName, string historyName) + { + 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.Logic/workflows/", false); + uri.AppendPath(workflowName, true); + uri.AppendPath("/triggers/", false); + uri.AppendPath(triggerName, true); + uri.AppendPath("/histories/", false); + uri.AppendPath(historyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workflowName, string triggerName, string historyName) { var message = _pipeline.CreateMessage(); @@ -228,6 +271,25 @@ public Response Get(string subscriptionId, stri } } + internal RequestUriBuilder CreateResubmitRequestUri(string subscriptionId, string resourceGroupName, string workflowName, string triggerName, string historyName) + { + 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.Logic/workflows/", false); + uri.AppendPath(workflowName, true); + uri.AppendPath("/triggers/", false); + uri.AppendPath(triggerName, true); + uri.AppendPath("/histories/", false); + uri.AppendPath(historyName, true); + uri.AppendPath("/resubmit", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateResubmitRequest(string subscriptionId, string resourceGroupName, string workflowName, string triggerName, string historyName) { var message = _pipeline.CreateMessage(); @@ -309,6 +371,14 @@ public Response Resubmit(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string workflowName, string triggerName, int? top, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workflowName, string triggerName, int? top, string filter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/RestOperations/WorkflowTriggersRestOperations.cs b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/RestOperations/WorkflowTriggersRestOperations.cs index 78694ff4cd26..13bcb3aa9572 100644 --- a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/RestOperations/WorkflowTriggersRestOperations.cs +++ b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/RestOperations/WorkflowTriggersRestOperations.cs @@ -37,6 +37,29 @@ public WorkflowTriggersRestOperations(HttpPipeline pipeline, string applicationI _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string workflowName, int? top, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Logic/workflows/", false); + uri.AppendPath(workflowName, true); + uri.AppendPath("/triggers", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string workflowName, int? top, string filter) { var message = _pipeline.CreateMessage(); @@ -128,6 +151,22 @@ public Response List(string subscriptionId, stri } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workflowName, string triggerName) + { + 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.Logic/workflows/", false); + uri.AppendPath(workflowName, true); + uri.AppendPath("/triggers/", false); + uri.AppendPath(triggerName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workflowName, string triggerName) { var message = _pipeline.CreateMessage(); @@ -216,6 +255,23 @@ public Response Get(string subscriptionId, string reso } } + internal RequestUriBuilder CreateResetRequestUri(string subscriptionId, string resourceGroupName, string workflowName, string triggerName) + { + 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.Logic/workflows/", false); + uri.AppendPath(workflowName, true); + uri.AppendPath("/triggers/", false); + uri.AppendPath(triggerName, true); + uri.AppendPath("/reset", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateResetRequest(string subscriptionId, string resourceGroupName, string workflowName, string triggerName) { var message = _pipeline.CreateMessage(); @@ -291,6 +347,23 @@ public Response Reset(string subscriptionId, string resourceGroupName, string wo } } + internal RequestUriBuilder CreateRunRequestUri(string subscriptionId, string resourceGroupName, string workflowName, string triggerName) + { + 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.Logic/workflows/", false); + uri.AppendPath(workflowName, true); + uri.AppendPath("/triggers/", false); + uri.AppendPath(triggerName, true); + uri.AppendPath("/run", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRunRequest(string subscriptionId, string resourceGroupName, string workflowName, string triggerName) { var message = _pipeline.CreateMessage(); @@ -368,6 +441,23 @@ public Response Run(string subscriptionId, string resourceGroupName, string work } } + internal RequestUriBuilder CreateGetSchemaJsonRequestUri(string subscriptionId, string resourceGroupName, string workflowName, string triggerName) + { + 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.Logic/workflows/", false); + uri.AppendPath(workflowName, true); + uri.AppendPath("/triggers/", false); + uri.AppendPath(triggerName, true); + uri.AppendPath("/schemas/json", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetSchemaJsonRequest(string subscriptionId, string resourceGroupName, string workflowName, string triggerName) { var message = _pipeline.CreateMessage(); @@ -453,6 +543,23 @@ public Response GetSchemaJson(string subscriptionId, string res } } + internal RequestUriBuilder CreateSetStateRequestUri(string subscriptionId, string resourceGroupName, string workflowName, string triggerName, LogicWorkflowTriggerStateActionContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Logic/workflows/", false); + uri.AppendPath(workflowName, true); + uri.AppendPath("/triggers/", false); + uri.AppendPath(triggerName, true); + uri.AppendPath("/setState", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateSetStateRequest(string subscriptionId, string resourceGroupName, string workflowName, string triggerName, LogicWorkflowTriggerStateActionContent content) { var message = _pipeline.CreateMessage(); @@ -536,6 +643,23 @@ public Response SetState(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreateListCallbackUrlRequestUri(string subscriptionId, string resourceGroupName, string workflowName, string triggerName) + { + 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.Logic/workflows/", false); + uri.AppendPath(workflowName, true); + uri.AppendPath("/triggers/", false); + uri.AppendPath(triggerName, true); + uri.AppendPath("/listCallbackUrl", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListCallbackUrlRequest(string subscriptionId, string resourceGroupName, string workflowName, string triggerName) { var message = _pipeline.CreateMessage(); @@ -621,6 +745,14 @@ public Response ListCallbackUrl(string subscrip } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string workflowName, int? top, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workflowName, int? top, string filter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/RestOperations/WorkflowVersionTriggersRestOperations.cs b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/RestOperations/WorkflowVersionTriggersRestOperations.cs index 7b70f06642dd..ed71a54ff29e 100644 --- a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/RestOperations/WorkflowVersionTriggersRestOperations.cs +++ b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/RestOperations/WorkflowVersionTriggersRestOperations.cs @@ -37,6 +37,25 @@ public WorkflowVersionTriggersRestOperations(HttpPipeline pipeline, string appli _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListCallbackUrlRequestUri(string subscriptionId, string resourceGroupName, string workflowName, string versionId, string triggerName, ListOperationCallbackUrlParameterInfo info) + { + 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.Logic/workflows/", false); + uri.AppendPath(workflowName, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(versionId, true); + uri.AppendPath("/triggers/", false); + uri.AppendPath(triggerName, true); + uri.AppendPath("/listCallbackUrl", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListCallbackUrlRequest(string subscriptionId, string resourceGroupName, string workflowName, string versionId, string triggerName, ListOperationCallbackUrlParameterInfo info) { var message = _pipeline.CreateMessage(); diff --git a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/RestOperations/WorkflowVersionsRestOperations.cs b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/RestOperations/WorkflowVersionsRestOperations.cs index 4c49bc9fd757..e08fb020b1d2 100644 --- a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/RestOperations/WorkflowVersionsRestOperations.cs +++ b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/RestOperations/WorkflowVersionsRestOperations.cs @@ -37,6 +37,25 @@ public WorkflowVersionsRestOperations(HttpPipeline pipeline, string applicationI _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string workflowName, int? top) + { + 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.Logic/workflows/", false); + uri.AppendPath(workflowName, true); + uri.AppendPath("/versions", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string workflowName, int? top) { var message = _pipeline.CreateMessage(); @@ -122,6 +141,22 @@ public Response List(string subscriptionId, stri } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workflowName, string versionId) + { + 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.Logic/workflows/", false); + uri.AppendPath(workflowName, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(versionId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workflowName, string versionId) { var message = _pipeline.CreateMessage(); @@ -210,6 +245,14 @@ public Response Get(string subscriptionId, string reso } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string workflowName, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workflowName, int? top) { var message = _pipeline.CreateMessage(); diff --git a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/RestOperations/WorkflowsRestOperations.cs b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/RestOperations/WorkflowsRestOperations.cs index 263bc3f87f38..fb7db835aace 100644 --- a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/RestOperations/WorkflowsRestOperations.cs +++ b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/RestOperations/WorkflowsRestOperations.cs @@ -37,6 +37,25 @@ public WorkflowsRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId, int? top, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Logic/workflows", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId, int? top, string filter) { var message = _pipeline.CreateMessage(); @@ -116,6 +135,27 @@ public Response ListBySubscription(string subscriptionI } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName, int? top, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Logic/workflows", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName, int? top, string filter) { var message = _pipeline.CreateMessage(); @@ -201,6 +241,20 @@ public Response ListByResourceGroup(string subscription } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workflowName) + { + 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.Logic/workflows/", false); + uri.AppendPath(workflowName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workflowName) { var message = _pipeline.CreateMessage(); @@ -283,6 +337,20 @@ public Response Get(string subscriptionId, string resourceGro } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string workflowName, LogicWorkflowData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Logic/workflows/", false); + uri.AppendPath(workflowName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string workflowName, LogicWorkflowData data) { var message = _pipeline.CreateMessage(); @@ -371,6 +439,20 @@ public Response CreateOrUpdate(string subscriptionId, string } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string workflowName) + { + 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.Logic/workflows/", false); + uri.AppendPath(workflowName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string workflowName) { var message = _pipeline.CreateMessage(); @@ -441,6 +523,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string w } } + internal RequestUriBuilder CreateDisableRequestUri(string subscriptionId, string resourceGroupName, string workflowName) + { + 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.Logic/workflows/", false); + uri.AppendPath(workflowName, true); + uri.AppendPath("/disable", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDisableRequest(string subscriptionId, string resourceGroupName, string workflowName) { var message = _pipeline.CreateMessage(); @@ -510,6 +607,21 @@ public Response Disable(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreateEnableRequestUri(string subscriptionId, string resourceGroupName, string workflowName) + { + 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.Logic/workflows/", false); + uri.AppendPath(workflowName, true); + uri.AppendPath("/enable", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateEnableRequest(string subscriptionId, string resourceGroupName, string workflowName) { var message = _pipeline.CreateMessage(); @@ -579,6 +691,21 @@ public Response Enable(string subscriptionId, string resourceGroupName, string w } } + internal RequestUriBuilder CreateGenerateUpgradedDefinitionRequestUri(string subscriptionId, string resourceGroupName, string workflowName, GenerateUpgradedDefinitionContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Logic/workflows/", false); + uri.AppendPath(workflowName, true); + uri.AppendPath("/generateUpgradedDefinition", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGenerateUpgradedDefinitionRequest(string subscriptionId, string resourceGroupName, string workflowName, GenerateUpgradedDefinitionContent content) { var message = _pipeline.CreateMessage(); @@ -664,6 +791,21 @@ public Response GenerateUpgradedDefinition(string subscriptionId, st } } + internal RequestUriBuilder CreateListCallbackUrlRequestUri(string subscriptionId, string resourceGroupName, string workflowName, ListOperationCallbackUrlParameterInfo info) + { + 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.Logic/workflows/", false); + uri.AppendPath(workflowName, true); + uri.AppendPath("/listCallbackUrl", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListCallbackUrlRequest(string subscriptionId, string resourceGroupName, string workflowName, ListOperationCallbackUrlParameterInfo info) { var message = _pipeline.CreateMessage(); @@ -751,6 +893,21 @@ public Response ListCallbackUrl(string subscrip } } + internal RequestUriBuilder CreateListSwaggerRequestUri(string subscriptionId, string resourceGroupName, string workflowName) + { + 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.Logic/workflows/", false); + uri.AppendPath(workflowName, true); + uri.AppendPath("/listSwagger", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListSwaggerRequest(string subscriptionId, string resourceGroupName, string workflowName) { var message = _pipeline.CreateMessage(); @@ -828,6 +985,21 @@ public Response ListSwagger(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateMoveRequestUri(string subscriptionId, string resourceGroupName, string workflowName, LogicWorkflowReference move) + { + 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.Logic/workflows/", false); + uri.AppendPath(workflowName, true); + uri.AppendPath("/move", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateMoveRequest(string subscriptionId, string resourceGroupName, string workflowName, LogicWorkflowReference move) { var message = _pipeline.CreateMessage(); @@ -907,6 +1079,21 @@ public Response Move(string subscriptionId, string resourceGroupName, string wor } } + internal RequestUriBuilder CreateRegenerateAccessKeyRequestUri(string subscriptionId, string resourceGroupName, string workflowName, LogicWorkflowRegenerateActionContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Logic/workflows/", false); + uri.AppendPath(workflowName, true); + uri.AppendPath("/regenerateAccessKey", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRegenerateAccessKeyRequest(string subscriptionId, string resourceGroupName, string workflowName, LogicWorkflowRegenerateActionContent content) { var message = _pipeline.CreateMessage(); @@ -984,6 +1171,21 @@ public Response RegenerateAccessKey(string subscriptionId, string resourceGroupN } } + internal RequestUriBuilder CreateValidateByResourceGroupRequestUri(string subscriptionId, string resourceGroupName, string workflowName, LogicWorkflowData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Logic/workflows/", false); + uri.AppendPath(workflowName, true); + uri.AppendPath("/validate", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateValidateByResourceGroupRequest(string subscriptionId, string resourceGroupName, string workflowName, LogicWorkflowData data) { var message = _pipeline.CreateMessage(); @@ -1061,6 +1263,23 @@ public Response ValidateByResourceGroup(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateValidateByLocationRequestUri(string subscriptionId, string resourceGroupName, AzureLocation location, string workflowName, LogicWorkflowData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Logic/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/workflows/", false); + uri.AppendPath(workflowName, true); + uri.AppendPath("/validate", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateValidateByLocationRequest(string subscriptionId, string resourceGroupName, AzureLocation location, string workflowName, LogicWorkflowData data) { var message = _pipeline.CreateMessage(); @@ -1142,6 +1361,14 @@ public Response ValidateByLocation(string subscriptionId, string resourceGroupNa } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId, int? top, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId, int? top, string filter) { var message = _pipeline.CreateMessage(); @@ -1214,6 +1441,14 @@ public Response ListBySubscriptionNextPage(string nextL } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, int? top, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, int? top, string filter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/machinelearningcompute/Azure.ResourceManager.MachineLearningCompute/src/Generated/LongRunningOperation/MachineLearningComputeArmOperation.cs b/sdk/machinelearningcompute/Azure.ResourceManager.MachineLearningCompute/src/Generated/LongRunningOperation/MachineLearningComputeArmOperation.cs index ebc20365f5e9..8a6e2a3753ae 100644 --- a/sdk/machinelearningcompute/Azure.ResourceManager.MachineLearningCompute/src/Generated/LongRunningOperation/MachineLearningComputeArmOperation.cs +++ b/sdk/machinelearningcompute/Azure.ResourceManager.MachineLearningCompute/src/Generated/LongRunningOperation/MachineLearningComputeArmOperation.cs @@ -20,21 +20,24 @@ internal class MachineLearningComputeArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of MachineLearningComputeArmOperation for mocking. protected MachineLearningComputeArmOperation() { } - internal MachineLearningComputeArmOperation(Response response) + internal MachineLearningComputeArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal MachineLearningComputeArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "MachineLearningComputeArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal MachineLearningComputeArmOperation(ClientDiagnostics clientDiagnostics, public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/machinelearningcompute/Azure.ResourceManager.MachineLearningCompute/src/Generated/LongRunningOperation/MachineLearningComputeArmOperationOfT.cs b/sdk/machinelearningcompute/Azure.ResourceManager.MachineLearningCompute/src/Generated/LongRunningOperation/MachineLearningComputeArmOperationOfT.cs index 118a8c2ce3c6..ce15279ce460 100644 --- a/sdk/machinelearningcompute/Azure.ResourceManager.MachineLearningCompute/src/Generated/LongRunningOperation/MachineLearningComputeArmOperationOfT.cs +++ b/sdk/machinelearningcompute/Azure.ResourceManager.MachineLearningCompute/src/Generated/LongRunningOperation/MachineLearningComputeArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class MachineLearningComputeArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of MachineLearningComputeArmOperation for mocking. protected MachineLearningComputeArmOperation() { } - internal MachineLearningComputeArmOperation(Response response) + internal MachineLearningComputeArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal MachineLearningComputeArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "MachineLearningComputeArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal MachineLearningComputeArmOperation(IOperationSource source, ClientDi public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/machinelearningcompute/Azure.ResourceManager.MachineLearningCompute/src/Generated/Models/OperationalizationClusterResource.Serialization.cs b/sdk/machinelearningcompute/Azure.ResourceManager.MachineLearningCompute/src/Generated/Models/OperationalizationClusterResource.Serialization.cs new file mode 100644 index 000000000000..dc34e16e33b8 --- /dev/null +++ b/sdk/machinelearningcompute/Azure.ResourceManager.MachineLearningCompute/src/Generated/Models/OperationalizationClusterResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.MachineLearningCompute +{ + public partial class OperationalizationClusterResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + OperationalizationClusterData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + OperationalizationClusterData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/machinelearningcompute/Azure.ResourceManager.MachineLearningCompute/src/Generated/RestOperations/MachineLearningComputeRestOperations.cs b/sdk/machinelearningcompute/Azure.ResourceManager.MachineLearningCompute/src/Generated/RestOperations/MachineLearningComputeRestOperations.cs index 3b07e6dbbf5e..5edacc5885da 100644 --- a/sdk/machinelearningcompute/Azure.ResourceManager.MachineLearningCompute/src/Generated/RestOperations/MachineLearningComputeRestOperations.cs +++ b/sdk/machinelearningcompute/Azure.ResourceManager.MachineLearningCompute/src/Generated/RestOperations/MachineLearningComputeRestOperations.cs @@ -37,6 +37,15 @@ public MachineLearningComputeRestOperations(HttpPipeline pipeline, string applic _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListAvailableOperationsRequestUri() + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.MachineLearningCompute/operations", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListAvailableOperationsRequest() { var message = _pipeline.CreateMessage(); diff --git a/sdk/machinelearningcompute/Azure.ResourceManager.MachineLearningCompute/src/Generated/RestOperations/OperationalizationClustersRestOperations.cs b/sdk/machinelearningcompute/Azure.ResourceManager.MachineLearningCompute/src/Generated/RestOperations/OperationalizationClustersRestOperations.cs index 346d62e61420..31c5b107920b 100644 --- a/sdk/machinelearningcompute/Azure.ResourceManager.MachineLearningCompute/src/Generated/RestOperations/OperationalizationClustersRestOperations.cs +++ b/sdk/machinelearningcompute/Azure.ResourceManager.MachineLearningCompute/src/Generated/RestOperations/OperationalizationClustersRestOperations.cs @@ -37,6 +37,20 @@ public OperationalizationClustersRestOperations(HttpPipeline pipeline, string ap _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string clusterName, OperationalizationClusterData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningCompute/operationalizationClusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string clusterName, OperationalizationClusterData data) { var message = _pipeline.CreateMessage(); @@ -115,6 +129,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string clusterName) + { + 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.MachineLearningCompute/operationalizationClusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string clusterName) { var message = _pipeline.CreateMessage(); @@ -197,6 +225,20 @@ public Response Get(string subscriptionId, string } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string clusterName, OperationalizationClusterPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningCompute/operationalizationClusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string clusterName, OperationalizationClusterPatch patch) { var message = _pipeline.CreateMessage(); @@ -283,6 +325,24 @@ public Response Update(string subscriptionId, str } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string clusterName, bool? deleteAll) + { + 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.MachineLearningCompute/operationalizationClusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendQuery("api-version", _apiVersion, true); + if (deleteAll != null) + { + uri.AppendQuery("deleteAll", deleteAll.Value, true); + } + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string clusterName, bool? deleteAll) { var message = _pipeline.CreateMessage(); @@ -359,6 +419,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateListKeysRequestUri(string subscriptionId, string resourceGroupName, string clusterName) + { + 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.MachineLearningCompute/operationalizationClusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/listKeys", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListKeysRequest(string subscriptionId, string resourceGroupName, string clusterName) { var message = _pipeline.CreateMessage(); @@ -438,6 +513,21 @@ public Response ListKeys(string subscripti } } + internal RequestUriBuilder CreateCheckSystemServicesUpdatesAvailableRequestUri(string subscriptionId, string resourceGroupName, string clusterName) + { + 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.MachineLearningCompute/operationalizationClusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/checkSystemServicesUpdatesAvailable", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCheckSystemServicesUpdatesAvailableRequest(string subscriptionId, string resourceGroupName, string clusterName) { var message = _pipeline.CreateMessage(); @@ -517,6 +607,21 @@ public Response CheckSystemServices } } + internal RequestUriBuilder CreateUpdateSystemServicesRequestUri(string subscriptionId, string resourceGroupName, string clusterName) + { + 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.MachineLearningCompute/operationalizationClusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/updateSystemServices", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateSystemServicesRequest(string subscriptionId, string resourceGroupName, string clusterName) { var message = _pipeline.CreateMessage(); @@ -588,6 +693,23 @@ public Response UpdateSystemServices(string subscriptionId, string resourceGroup } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName, string skiptoken) + { + 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.MachineLearningCompute/operationalizationClusters", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (skiptoken != null) + { + uri.AppendQuery("$skiptoken", skiptoken, true); + } + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName, string skiptoken) { var message = _pipeline.CreateMessage(); @@ -667,6 +789,21 @@ public Response ListByResourceGroup(str } } + internal RequestUriBuilder CreateListBySubscriptionIdRequestUri(string subscriptionId, string skiptoken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.MachineLearningCompute/operationalizationClusters", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (skiptoken != null) + { + uri.AppendQuery("$skiptoken", skiptoken, true); + } + return uri; + } + internal HttpMessage CreateListBySubscriptionIdRequest(string subscriptionId, string skiptoken) { var message = _pipeline.CreateMessage(); @@ -740,6 +877,14 @@ public Response ListBySubscriptionId(st } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string skiptoken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string skiptoken) { var message = _pipeline.CreateMessage(); @@ -814,6 +959,14 @@ public Response ListByResourceGroupNext } } + internal RequestUriBuilder CreateListBySubscriptionIdNextPageRequestUri(string nextLink, string subscriptionId, string skiptoken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionIdNextPageRequest(string nextLink, string subscriptionId, string skiptoken) { var message = _pipeline.CreateMessage(); diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/MachineLearningArmOperation.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/MachineLearningArmOperation.cs index 85b8f81105e0..a7e51e65d0a6 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/MachineLearningArmOperation.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/MachineLearningArmOperation.cs @@ -20,21 +20,24 @@ internal class MachineLearningArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of MachineLearningArmOperation for mocking. protected MachineLearningArmOperation() { } - internal MachineLearningArmOperation(Response response) + internal MachineLearningArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal MachineLearningArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "MachineLearningArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal MachineLearningArmOperation(ClientDiagnostics clientDiagnostics, HttpPi public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/MachineLearningArmOperationOfT.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/MachineLearningArmOperationOfT.cs index 9b86a15ccfdb..301d19f27b07 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/MachineLearningArmOperationOfT.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/LongRunningOperation/MachineLearningArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class MachineLearningArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of MachineLearningArmOperation for mocking. protected MachineLearningArmOperation() { } - internal MachineLearningArmOperation(Response response) + internal MachineLearningArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal MachineLearningArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "MachineLearningArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal MachineLearningArmOperation(IOperationSource source, ClientDiagnosti public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningCodeContainerCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningCodeContainerCollection.cs index d46a2d875ada..eb4cfdb2a03f 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningCodeContainerCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningCodeContainerCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> Cr try { var response = await _machineLearningCodeContainerCodeContainersRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningCodeContainerResource(Client, response), response.GetRawResponse())); + var uri = _machineLearningCodeContainerCodeContainersRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningCodeContainerResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate try { var response = _machineLearningCodeContainerCodeContainersRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data, cancellationToken); - var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningCodeContainerResource(Client, response), response.GetRawResponse())); + var uri = _machineLearningCodeContainerCodeContainersRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningCodeContainerResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningCodeContainerResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningCodeContainerResource.cs index 2c7b364b5298..00d60a26ba48 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningCodeContainerResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningCodeContainerResource.cs @@ -269,7 +269,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _machineLearningCodeContainerCodeContainersRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(response); + var uri = _machineLearningCodeContainerCodeContainersRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MachineLearningArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -311,7 +313,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _machineLearningCodeContainerCodeContainersRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new MachineLearningArmOperation(response); + var uri = _machineLearningCodeContainerCodeContainersRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MachineLearningArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -357,7 +361,9 @@ public virtual async Task> Up try { var response = await _machineLearningCodeContainerCodeContainersRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningCodeContainerResource(Client, response), response.GetRawResponse())); + var uri = _machineLearningCodeContainerCodeContainersRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningCodeContainerResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -403,7 +409,9 @@ public virtual ArmOperation Update(WaitUnt try { var response = _machineLearningCodeContainerCodeContainersRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningCodeContainerResource(Client, response), response.GetRawResponse())); + var uri = _machineLearningCodeContainerCodeContainersRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningCodeContainerResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningCodeVersionCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningCodeVersionCollection.cs index 68552e01c198..2d9586562cef 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningCodeVersionCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningCodeVersionCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> Crea try { var response = await _machineLearningCodeVersionCodeVersionsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningCodeVersionResource(Client, response), response.GetRawResponse())); + var uri = _machineLearningCodeVersionCodeVersionsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningCodeVersionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(W try { var response = _machineLearningCodeVersionCodeVersionsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data, cancellationToken); - var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningCodeVersionResource(Client, response), response.GetRawResponse())); + var uri = _machineLearningCodeVersionCodeVersionsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningCodeVersionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningCodeVersionResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningCodeVersionResource.cs index 06a264521fd7..7e9f0714a2b6 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningCodeVersionResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningCodeVersionResource.cs @@ -202,7 +202,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _machineLearningCodeVersionCodeVersionsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(response); + var uri = _machineLearningCodeVersionCodeVersionsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MachineLearningArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -244,7 +246,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _machineLearningCodeVersionCodeVersionsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new MachineLearningArmOperation(response); + var uri = _machineLearningCodeVersionCodeVersionsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MachineLearningArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -290,7 +294,9 @@ public virtual async Task> Upda try { var response = await _machineLearningCodeVersionCodeVersionsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningCodeVersionResource(Client, response), response.GetRawResponse())); + var uri = _machineLearningCodeVersionCodeVersionsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningCodeVersionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -336,7 +342,9 @@ public virtual ArmOperation Update(WaitUntil try { var response = _machineLearningCodeVersionCodeVersionsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningCodeVersionResource(Client, response), response.GetRawResponse())); + var uri = _machineLearningCodeVersionCodeVersionsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningCodeVersionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningComponentContainerCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningComponentContainerCollection.cs index c24643bd5857..b94febbea9e9 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningComponentContainerCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningComponentContainerCollection.cs @@ -91,7 +91,9 @@ public virtual async Task(Response.FromValue(new MachineLearningComponentContainerResource(Client, response), response.GetRawResponse())); + var uri = _machineLearningComponentContainerComponentContainersRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningComponentContainerResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -140,7 +142,9 @@ public virtual ArmOperation CreateOrU try { var response = _machineLearningComponentContainerComponentContainersRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data, cancellationToken); - var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningComponentContainerResource(Client, response), response.GetRawResponse())); + var uri = _machineLearningComponentContainerComponentContainersRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningComponentContainerResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningComponentContainerResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningComponentContainerResource.cs index 9b42e4dfd535..60b625f2d27b 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningComponentContainerResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningComponentContainerResource.cs @@ -269,7 +269,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _machineLearningComponentContainerComponentContainersRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(response); + var uri = _machineLearningComponentContainerComponentContainersRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MachineLearningArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -311,7 +313,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _machineLearningComponentContainerComponentContainersRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new MachineLearningArmOperation(response); + var uri = _machineLearningComponentContainerComponentContainersRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MachineLearningArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -357,7 +361,9 @@ public virtual async Task(Response.FromValue(new MachineLearningComponentContainerResource(Client, response), response.GetRawResponse())); + var uri = _machineLearningComponentContainerComponentContainersRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningComponentContainerResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -403,7 +409,9 @@ public virtual ArmOperation Update(Wa try { var response = _machineLearningComponentContainerComponentContainersRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningComponentContainerResource(Client, response), response.GetRawResponse())); + var uri = _machineLearningComponentContainerComponentContainersRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningComponentContainerResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningComponentVersionCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningComponentVersionCollection.cs index acc4a15f4ad6..6c49b7917b72 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningComponentVersionCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningComponentVersionCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> try { var response = await _machineLearningComponentVersionComponentVersionsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningComponentVersionResource(Client, response), response.GetRawResponse())); + var uri = _machineLearningComponentVersionComponentVersionsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningComponentVersionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -140,7 +142,9 @@ public virtual ArmOperation CreateOrUpd try { var response = _machineLearningComponentVersionComponentVersionsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data, cancellationToken); - var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningComponentVersionResource(Client, response), response.GetRawResponse())); + var uri = _machineLearningComponentVersionComponentVersionsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningComponentVersionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningComponentVersionResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningComponentVersionResource.cs index 30d3e09998a8..0ea8d8e719b3 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningComponentVersionResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningComponentVersionResource.cs @@ -201,7 +201,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _machineLearningComponentVersionComponentVersionsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(response); + var uri = _machineLearningComponentVersionComponentVersionsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MachineLearningArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -243,7 +245,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _machineLearningComponentVersionComponentVersionsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new MachineLearningArmOperation(response); + var uri = _machineLearningComponentVersionComponentVersionsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MachineLearningArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -289,7 +293,9 @@ public virtual async Task> try { var response = await _machineLearningComponentVersionComponentVersionsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningComponentVersionResource(Client, response), response.GetRawResponse())); + var uri = _machineLearningComponentVersionComponentVersionsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningComponentVersionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -335,7 +341,9 @@ public virtual ArmOperation Update(Wait try { var response = _machineLearningComponentVersionComponentVersionsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningComponentVersionResource(Client, response), response.GetRawResponse())); + var uri = _machineLearningComponentVersionComponentVersionsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningComponentVersionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningDataContainerCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningDataContainerCollection.cs index 3c1659a79817..8138f2e8a4d9 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningDataContainerCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningDataContainerCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> Cr try { var response = await _machineLearningDataContainerDataContainersRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningDataContainerResource(Client, response), response.GetRawResponse())); + var uri = _machineLearningDataContainerDataContainersRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningDataContainerResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -140,7 +142,9 @@ public virtual ArmOperation CreateOrUpdate try { var response = _machineLearningDataContainerDataContainersRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data, cancellationToken); - var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningDataContainerResource(Client, response), response.GetRawResponse())); + var uri = _machineLearningDataContainerDataContainersRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningDataContainerResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningDataContainerResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningDataContainerResource.cs index c4fb72649ac6..dde34ae81e9d 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningDataContainerResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningDataContainerResource.cs @@ -269,7 +269,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _machineLearningDataContainerDataContainersRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(response); + var uri = _machineLearningDataContainerDataContainersRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MachineLearningArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -311,7 +313,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _machineLearningDataContainerDataContainersRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new MachineLearningArmOperation(response); + var uri = _machineLearningDataContainerDataContainersRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MachineLearningArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -357,7 +361,9 @@ public virtual async Task> Up try { var response = await _machineLearningDataContainerDataContainersRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningDataContainerResource(Client, response), response.GetRawResponse())); + var uri = _machineLearningDataContainerDataContainersRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningDataContainerResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -403,7 +409,9 @@ public virtual ArmOperation Update(WaitUnt try { var response = _machineLearningDataContainerDataContainersRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningDataContainerResource(Client, response), response.GetRawResponse())); + var uri = _machineLearningDataContainerDataContainersRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningDataContainerResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningDataVersionCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningDataVersionCollection.cs index 00050be744b8..d59418829e46 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningDataVersionCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningDataVersionCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> Crea try { var response = await _machineLearningDataVersionDataVersionsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningDataVersionResource(Client, response), response.GetRawResponse())); + var uri = _machineLearningDataVersionDataVersionsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningDataVersionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -140,7 +142,9 @@ public virtual ArmOperation CreateOrUpdate(W try { var response = _machineLearningDataVersionDataVersionsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data, cancellationToken); - var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningDataVersionResource(Client, response), response.GetRawResponse())); + var uri = _machineLearningDataVersionDataVersionsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningDataVersionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningDataVersionResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningDataVersionResource.cs index 5e6907647691..9b91d6a765f5 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningDataVersionResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningDataVersionResource.cs @@ -201,7 +201,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _machineLearningDataVersionDataVersionsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(response); + var uri = _machineLearningDataVersionDataVersionsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MachineLearningArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -243,7 +245,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _machineLearningDataVersionDataVersionsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new MachineLearningArmOperation(response); + var uri = _machineLearningDataVersionDataVersionsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MachineLearningArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -289,7 +293,9 @@ public virtual async Task> Upda try { var response = await _machineLearningDataVersionDataVersionsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningDataVersionResource(Client, response), response.GetRawResponse())); + var uri = _machineLearningDataVersionDataVersionsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningDataVersionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -335,7 +341,9 @@ public virtual ArmOperation Update(WaitUntil try { var response = _machineLearningDataVersionDataVersionsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningDataVersionResource(Client, response), response.GetRawResponse())); + var uri = _machineLearningDataVersionDataVersionsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningDataVersionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningDatastoreCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningDatastoreCollection.cs index 8b0422bb685c..f4338185d18d 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningDatastoreCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningDatastoreCollection.cs @@ -92,7 +92,9 @@ public virtual async Task> Create try { var response = await _machineLearningDatastoreDatastoresRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data, skipValidation, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningDatastoreResource(Client, response), response.GetRawResponse())); + var uri = _machineLearningDatastoreDatastoresRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data, skipValidation); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningDatastoreResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -142,7 +144,9 @@ public virtual ArmOperation CreateOrUpdate(Wai try { var response = _machineLearningDatastoreDatastoresRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data, skipValidation, cancellationToken); - var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningDatastoreResource(Client, response), response.GetRawResponse())); + var uri = _machineLearningDatastoreDatastoresRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data, skipValidation); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningDatastoreResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningDatastoreResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningDatastoreResource.cs index 7ced6980aa04..76c17c4cc89a 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningDatastoreResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningDatastoreResource.cs @@ -201,7 +201,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _machineLearningDatastoreDatastoresRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(response); + var uri = _machineLearningDatastoreDatastoresRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MachineLearningArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -243,7 +245,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _machineLearningDatastoreDatastoresRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new MachineLearningArmOperation(response); + var uri = _machineLearningDatastoreDatastoresRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MachineLearningArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -290,7 +294,9 @@ public virtual async Task> Update try { var response = await _machineLearningDatastoreDatastoresRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, skipValidation, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningDatastoreResource(Client, response), response.GetRawResponse())); + var uri = _machineLearningDatastoreDatastoresRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, skipValidation); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningDatastoreResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -337,7 +343,9 @@ public virtual ArmOperation Update(WaitUntil w try { var response = _machineLearningDatastoreDatastoresRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, skipValidation, cancellationToken); - var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningDatastoreResource(Client, response), response.GetRawResponse())); + var uri = _machineLearningDatastoreDatastoresRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, skipValidation); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningDatastoreResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningEnvironmentContainerCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningEnvironmentContainerCollection.cs index 11972b6ed0c8..ec4e087126f5 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningEnvironmentContainerCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningEnvironmentContainerCollection.cs @@ -91,7 +91,9 @@ public virtual async Task(Response.FromValue(new MachineLearningEnvironmentContainerResource(Client, response), response.GetRawResponse())); + var uri = _machineLearningEnvironmentContainerEnvironmentContainersRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningEnvironmentContainerResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -140,7 +142,9 @@ public virtual ArmOperation CreateO try { var response = _machineLearningEnvironmentContainerEnvironmentContainersRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data, cancellationToken); - var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningEnvironmentContainerResource(Client, response), response.GetRawResponse())); + var uri = _machineLearningEnvironmentContainerEnvironmentContainersRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningEnvironmentContainerResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningEnvironmentContainerResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningEnvironmentContainerResource.cs index 35ea02d178e4..19ceecab3e25 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningEnvironmentContainerResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningEnvironmentContainerResource.cs @@ -269,7 +269,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _machineLearningEnvironmentContainerEnvironmentContainersRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(response); + var uri = _machineLearningEnvironmentContainerEnvironmentContainersRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MachineLearningArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -311,7 +313,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _machineLearningEnvironmentContainerEnvironmentContainersRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new MachineLearningArmOperation(response); + var uri = _machineLearningEnvironmentContainerEnvironmentContainersRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MachineLearningArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -357,7 +361,9 @@ public virtual async Task(Response.FromValue(new MachineLearningEnvironmentContainerResource(Client, response), response.GetRawResponse())); + var uri = _machineLearningEnvironmentContainerEnvironmentContainersRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningEnvironmentContainerResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -403,7 +409,9 @@ public virtual ArmOperation Update( try { var response = _machineLearningEnvironmentContainerEnvironmentContainersRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningEnvironmentContainerResource(Client, response), response.GetRawResponse())); + var uri = _machineLearningEnvironmentContainerEnvironmentContainersRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningEnvironmentContainerResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningEnvironmentVersionCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningEnvironmentVersionCollection.cs index 7ab4aa82d627..d97fa555c68f 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningEnvironmentVersionCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningEnvironmentVersionCollection.cs @@ -91,7 +91,9 @@ public virtual async Task(Response.FromValue(new MachineLearningEnvironmentVersionResource(Client, response), response.GetRawResponse())); + var uri = _machineLearningEnvironmentVersionEnvironmentVersionsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningEnvironmentVersionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -140,7 +142,9 @@ public virtual ArmOperation CreateOrU try { var response = _machineLearningEnvironmentVersionEnvironmentVersionsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data, cancellationToken); - var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningEnvironmentVersionResource(Client, response), response.GetRawResponse())); + var uri = _machineLearningEnvironmentVersionEnvironmentVersionsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningEnvironmentVersionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningEnvironmentVersionResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningEnvironmentVersionResource.cs index 5061b42c9334..47ff771bd431 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningEnvironmentVersionResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningEnvironmentVersionResource.cs @@ -201,7 +201,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _machineLearningEnvironmentVersionEnvironmentVersionsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(response); + var uri = _machineLearningEnvironmentVersionEnvironmentVersionsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MachineLearningArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -243,7 +245,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _machineLearningEnvironmentVersionEnvironmentVersionsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new MachineLearningArmOperation(response); + var uri = _machineLearningEnvironmentVersionEnvironmentVersionsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MachineLearningArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -289,7 +293,9 @@ public virtual async Task(Response.FromValue(new MachineLearningEnvironmentVersionResource(Client, response), response.GetRawResponse())); + var uri = _machineLearningEnvironmentVersionEnvironmentVersionsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningEnvironmentVersionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -335,7 +341,9 @@ public virtual ArmOperation Update(Wa try { var response = _machineLearningEnvironmentVersionEnvironmentVersionsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningEnvironmentVersionResource(Client, response), response.GetRawResponse())); + var uri = _machineLearningEnvironmentVersionEnvironmentVersionsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningEnvironmentVersionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningJobCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningJobCollection.cs index 80b103fa8bcb..c506516795aa 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningJobCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningJobCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> CreateOrUpda try { var response = await _machineLearningJobJobsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, id, data, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningJobResource(Client, response), response.GetRawResponse())); + var uri = _machineLearningJobJobsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, id, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningJobResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -140,7 +142,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil try { var response = _machineLearningJobJobsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, id, data, cancellationToken); - var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningJobResource(Client, response), response.GetRawResponse())); + var uri = _machineLearningJobJobsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, id, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningJobResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningLabelingJobResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningLabelingJobResource.cs index 04a3ef091d9b..60e49ff4ded2 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningLabelingJobResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningLabelingJobResource.cs @@ -205,7 +205,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _machineLearningLabelingJobLabelingJobsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(response); + var uri = _machineLearningLabelingJobLabelingJobsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MachineLearningArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -247,7 +249,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _machineLearningLabelingJobLabelingJobsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new MachineLearningArmOperation(response); + var uri = _machineLearningLabelingJobLabelingJobsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MachineLearningArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningModelContainerCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningModelContainerCollection.cs index 55ba57391de5..798eb495f157 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningModelContainerCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningModelContainerCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> C try { var response = await _machineLearningModelContainerModelContainersRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningModelContainerResource(Client, response), response.GetRawResponse())); + var uri = _machineLearningModelContainerModelContainersRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningModelContainerResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -140,7 +142,9 @@ public virtual ArmOperation CreateOrUpdat try { var response = _machineLearningModelContainerModelContainersRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data, cancellationToken); - var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningModelContainerResource(Client, response), response.GetRawResponse())); + var uri = _machineLearningModelContainerModelContainersRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningModelContainerResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningModelContainerResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningModelContainerResource.cs index 37750ac87d45..e5b117ca3009 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningModelContainerResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningModelContainerResource.cs @@ -269,7 +269,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _machineLearningModelContainerModelContainersRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(response); + var uri = _machineLearningModelContainerModelContainersRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MachineLearningArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -311,7 +313,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _machineLearningModelContainerModelContainersRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new MachineLearningArmOperation(response); + var uri = _machineLearningModelContainerModelContainersRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MachineLearningArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -357,7 +361,9 @@ public virtual async Task> U try { var response = await _machineLearningModelContainerModelContainersRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningModelContainerResource(Client, response), response.GetRawResponse())); + var uri = _machineLearningModelContainerModelContainersRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningModelContainerResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -403,7 +409,9 @@ public virtual ArmOperation Update(WaitUn try { var response = _machineLearningModelContainerModelContainersRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningModelContainerResource(Client, response), response.GetRawResponse())); + var uri = _machineLearningModelContainerModelContainersRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningModelContainerResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningModelVersionCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningModelVersionCollection.cs index aa55c08d57e2..d63c974dc63b 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningModelVersionCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningModelVersionCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> Cre try { var response = await _machineLearningModelVersionModelVersionsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningModelVersionResource(Client, response), response.GetRawResponse())); + var uri = _machineLearningModelVersionModelVersionsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningModelVersionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -140,7 +142,9 @@ public virtual ArmOperation CreateOrUpdate( try { var response = _machineLearningModelVersionModelVersionsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data, cancellationToken); - var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningModelVersionResource(Client, response), response.GetRawResponse())); + var uri = _machineLearningModelVersionModelVersionsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, version, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningModelVersionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningModelVersionResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningModelVersionResource.cs index 8a2812e5173b..f9035290e547 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningModelVersionResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningModelVersionResource.cs @@ -202,7 +202,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _machineLearningModelVersionModelVersionsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(response); + var uri = _machineLearningModelVersionModelVersionsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MachineLearningArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -244,7 +246,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _machineLearningModelVersionModelVersionsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new MachineLearningArmOperation(response); + var uri = _machineLearningModelVersionModelVersionsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MachineLearningArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -290,7 +294,9 @@ public virtual async Task> Upd try { var response = await _machineLearningModelVersionModelVersionsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningModelVersionResource(Client, response), response.GetRawResponse())); + var uri = _machineLearningModelVersionModelVersionsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningModelVersionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -336,7 +342,9 @@ public virtual ArmOperation Update(WaitUnti try { var response = _machineLearningModelVersionModelVersionsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningModelVersionResource(Client, response), response.GetRawResponse())); + var uri = _machineLearningModelVersionModelVersionsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningModelVersionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningPrivateEndpointConnectionCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningPrivateEndpointConnectionCollection.cs index af3fe95fdd19..d9df2c97bf41 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningPrivateEndpointConnectionCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningPrivateEndpointConnectionCollection.cs @@ -91,7 +91,9 @@ public virtual async Task(Response.FromValue(new MachineLearningPrivateEndpointConnectionResource(Client, response), response.GetRawResponse())); + var uri = _machineLearningPrivateEndpointConnectionPrivateEndpointConnectionsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, privateEndpointConnectionName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningPrivateEndpointConnectionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -141,7 +143,9 @@ public virtual ArmOperation Cr try { var response = _machineLearningPrivateEndpointConnectionPrivateEndpointConnectionsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, privateEndpointConnectionName, data, cancellationToken); - var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningPrivateEndpointConnectionResource(Client, response), response.GetRawResponse())); + var uri = _machineLearningPrivateEndpointConnectionPrivateEndpointConnectionsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, privateEndpointConnectionName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningPrivateEndpointConnectionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningPrivateEndpointConnectionResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningPrivateEndpointConnectionResource.cs index f32169e94681..35763ad25d18 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningPrivateEndpointConnectionResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningPrivateEndpointConnectionResource.cs @@ -201,7 +201,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _machineLearningPrivateEndpointConnectionPrivateEndpointConnectionsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(response); + var uri = _machineLearningPrivateEndpointConnectionPrivateEndpointConnectionsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MachineLearningArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -243,7 +245,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _machineLearningPrivateEndpointConnectionPrivateEndpointConnectionsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new MachineLearningArmOperation(response); + var uri = _machineLearningPrivateEndpointConnectionPrivateEndpointConnectionsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MachineLearningArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -290,7 +294,9 @@ public virtual async Task(Response.FromValue(new MachineLearningPrivateEndpointConnectionResource(Client, response), response.GetRawResponse())); + var uri = _machineLearningPrivateEndpointConnectionPrivateEndpointConnectionsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningPrivateEndpointConnectionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -337,7 +343,9 @@ public virtual ArmOperation Up try { var response = _machineLearningPrivateEndpointConnectionPrivateEndpointConnectionsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningPrivateEndpointConnectionResource(Client, response), response.GetRawResponse())); + var uri = _machineLearningPrivateEndpointConnectionPrivateEndpointConnectionsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningPrivateEndpointConnectionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningWorkspaceConnectionCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningWorkspaceConnectionCollection.cs index 0f553b3b2a40..240fee7a193f 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningWorkspaceConnectionCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningWorkspaceConnectionCollection.cs @@ -90,7 +90,9 @@ public virtual async Task(Response.FromValue(new MachineLearningWorkspaceConnectionResource(Client, response), response.GetRawResponse())); + var uri = _machineLearningWorkspaceConnectionWorkspaceConnectionsRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, connectionName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningWorkspaceConnectionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOr try { var response = _machineLearningWorkspaceConnectionWorkspaceConnectionsRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, connectionName, data, cancellationToken); - var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningWorkspaceConnectionResource(Client, response), response.GetRawResponse())); + var uri = _machineLearningWorkspaceConnectionWorkspaceConnectionsRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, connectionName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MachineLearningArmOperation(Response.FromValue(new MachineLearningWorkspaceConnectionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningWorkspaceConnectionResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningWorkspaceConnectionResource.cs index 02f0bda2e75c..45cd8b420096 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningWorkspaceConnectionResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningWorkspaceConnectionResource.cs @@ -201,7 +201,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _machineLearningWorkspaceConnectionWorkspaceConnectionsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new MachineLearningArmOperation(response); + var uri = _machineLearningWorkspaceConnectionWorkspaceConnectionsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MachineLearningArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -243,7 +245,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _machineLearningWorkspaceConnectionWorkspaceConnectionsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new MachineLearningArmOperation(response); + var uri = _machineLearningWorkspaceConnectionWorkspaceConnectionsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MachineLearningArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearninRegistryComponentContainerResource.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearninRegistryComponentContainerResource.Serialization.cs new file mode 100644 index 000000000000..a7ec15b50f46 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearninRegistryComponentContainerResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.MachineLearning +{ + public partial class MachineLearninRegistryComponentContainerResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MachineLearningComponentContainerData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MachineLearningComponentContainerData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearninRegistryComponentVersionResource.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearninRegistryComponentVersionResource.Serialization.cs new file mode 100644 index 000000000000..3de50d49c15b --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearninRegistryComponentVersionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.MachineLearning +{ + public partial class MachineLearninRegistryComponentVersionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MachineLearningComponentVersionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MachineLearningComponentVersionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningBatchDeploymentResource.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningBatchDeploymentResource.Serialization.cs new file mode 100644 index 000000000000..7ffb54cf12cc --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningBatchDeploymentResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.MachineLearning +{ + public partial class MachineLearningBatchDeploymentResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MachineLearningBatchDeploymentData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MachineLearningBatchDeploymentData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningBatchEndpointResource.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningBatchEndpointResource.Serialization.cs new file mode 100644 index 000000000000..ba542b5976fe --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningBatchEndpointResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.MachineLearning +{ + public partial class MachineLearningBatchEndpointResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MachineLearningBatchEndpointData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MachineLearningBatchEndpointData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningCodeContainerResource.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningCodeContainerResource.Serialization.cs new file mode 100644 index 000000000000..b8ed7560712d --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningCodeContainerResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.MachineLearning +{ + public partial class MachineLearningCodeContainerResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MachineLearningCodeContainerData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MachineLearningCodeContainerData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningCodeVersionResource.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningCodeVersionResource.Serialization.cs new file mode 100644 index 000000000000..9f421d32694e --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningCodeVersionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.MachineLearning +{ + public partial class MachineLearningCodeVersionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MachineLearningCodeVersionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MachineLearningCodeVersionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningComponentContainerResource.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningComponentContainerResource.Serialization.cs new file mode 100644 index 000000000000..39784bd6de83 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningComponentContainerResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.MachineLearning +{ + public partial class MachineLearningComponentContainerResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MachineLearningComponentContainerData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MachineLearningComponentContainerData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningComponentVersionResource.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningComponentVersionResource.Serialization.cs new file mode 100644 index 000000000000..0dde0b931128 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningComponentVersionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.MachineLearning +{ + public partial class MachineLearningComponentVersionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MachineLearningComponentVersionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MachineLearningComponentVersionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningComputeResource.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningComputeResource.Serialization.cs new file mode 100644 index 000000000000..f186eb07d788 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningComputeResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.MachineLearning +{ + public partial class MachineLearningComputeResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MachineLearningComputeData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MachineLearningComputeData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningDataContainerResource.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningDataContainerResource.Serialization.cs new file mode 100644 index 000000000000..4ea9f5458125 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningDataContainerResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.MachineLearning +{ + public partial class MachineLearningDataContainerResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MachineLearningDataContainerData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MachineLearningDataContainerData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningDataVersionResource.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningDataVersionResource.Serialization.cs new file mode 100644 index 000000000000..6407e20be52b --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningDataVersionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.MachineLearning +{ + public partial class MachineLearningDataVersionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MachineLearningDataVersionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MachineLearningDataVersionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningDatastoreResource.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningDatastoreResource.Serialization.cs new file mode 100644 index 000000000000..dd9471af454c --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningDatastoreResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.MachineLearning +{ + public partial class MachineLearningDatastoreResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MachineLearningDatastoreData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MachineLearningDatastoreData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningEnvironmentContainerResource.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningEnvironmentContainerResource.Serialization.cs new file mode 100644 index 000000000000..b7b15c5213bd --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningEnvironmentContainerResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.MachineLearning +{ + public partial class MachineLearningEnvironmentContainerResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MachineLearningEnvironmentContainerData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MachineLearningEnvironmentContainerData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningEnvironmentVersionResource.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningEnvironmentVersionResource.Serialization.cs new file mode 100644 index 000000000000..c043ccf2814d --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningEnvironmentVersionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.MachineLearning +{ + public partial class MachineLearningEnvironmentVersionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MachineLearningEnvironmentVersionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MachineLearningEnvironmentVersionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFeatureResource.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFeatureResource.Serialization.cs new file mode 100644 index 000000000000..e7fceaac72e4 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFeatureResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.MachineLearning +{ + public partial class MachineLearningFeatureResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MachineLearningFeatureData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MachineLearningFeatureData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFeatureSetContainerResource.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFeatureSetContainerResource.Serialization.cs new file mode 100644 index 000000000000..a952de14b2de --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFeatureSetContainerResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.MachineLearning +{ + public partial class MachineLearningFeatureSetContainerResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MachineLearningFeatureSetContainerData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MachineLearningFeatureSetContainerData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFeatureSetVersionResource.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFeatureSetVersionResource.Serialization.cs new file mode 100644 index 000000000000..02352a95f520 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFeatureSetVersionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.MachineLearning +{ + public partial class MachineLearningFeatureSetVersionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MachineLearningFeatureSetVersionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MachineLearningFeatureSetVersionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFeatureStoreEntityContainerResource.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFeatureStoreEntityContainerResource.Serialization.cs new file mode 100644 index 000000000000..7a17eb501892 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFeatureStoreEntityContainerResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.MachineLearning +{ + public partial class MachineLearningFeatureStoreEntityContainerResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MachineLearningFeatureStoreEntityContainerData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MachineLearningFeatureStoreEntityContainerData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFeaturestoreEntityVersionResource.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFeaturestoreEntityVersionResource.Serialization.cs new file mode 100644 index 000000000000..cec3949b42fc --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFeaturestoreEntityVersionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.MachineLearning +{ + public partial class MachineLearningFeaturestoreEntityVersionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MachineLearningFeaturestoreEntityVersionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MachineLearningFeaturestoreEntityVersionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningJobResource.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningJobResource.Serialization.cs new file mode 100644 index 000000000000..08efd5c9dfd3 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningJobResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.MachineLearning +{ + public partial class MachineLearningJobResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MachineLearningJobData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MachineLearningJobData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningLabelingJobResource.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningLabelingJobResource.Serialization.cs new file mode 100644 index 000000000000..1b3605d339db --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningLabelingJobResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.MachineLearning +{ + public partial class MachineLearningLabelingJobResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MachineLearningLabelingJobData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MachineLearningLabelingJobData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningModelContainerResource.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningModelContainerResource.Serialization.cs new file mode 100644 index 000000000000..5243282a3c6f --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningModelContainerResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.MachineLearning +{ + public partial class MachineLearningModelContainerResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MachineLearningModelContainerData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MachineLearningModelContainerData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningModelVersionResource.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningModelVersionResource.Serialization.cs new file mode 100644 index 000000000000..bd468a30830a --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningModelVersionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.MachineLearning +{ + public partial class MachineLearningModelVersionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MachineLearningModelVersionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MachineLearningModelVersionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningOnlineDeploymentResource.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningOnlineDeploymentResource.Serialization.cs new file mode 100644 index 000000000000..d23114a35d3d --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningOnlineDeploymentResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.MachineLearning +{ + public partial class MachineLearningOnlineDeploymentResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MachineLearningOnlineDeploymentData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MachineLearningOnlineDeploymentData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningOnlineEndpointResource.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningOnlineEndpointResource.Serialization.cs new file mode 100644 index 000000000000..6041d255a471 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningOnlineEndpointResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.MachineLearning +{ + public partial class MachineLearningOnlineEndpointResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MachineLearningOnlineEndpointData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MachineLearningOnlineEndpointData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningOutboundRuleBasicResource.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningOutboundRuleBasicResource.Serialization.cs new file mode 100644 index 000000000000..a8c7abf92445 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningOutboundRuleBasicResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.MachineLearning +{ + public partial class MachineLearningOutboundRuleBasicResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MachineLearningOutboundRuleBasicData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MachineLearningOutboundRuleBasicData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningPrivateEndpointConnectionResource.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningPrivateEndpointConnectionResource.Serialization.cs new file mode 100644 index 000000000000..c47bf1488916 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningPrivateEndpointConnectionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.MachineLearning +{ + public partial class MachineLearningPrivateEndpointConnectionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MachineLearningPrivateEndpointConnectionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MachineLearningPrivateEndpointConnectionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningRegistryCodeContainerResource.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningRegistryCodeContainerResource.Serialization.cs new file mode 100644 index 000000000000..bb9d154d827c --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningRegistryCodeContainerResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.MachineLearning +{ + public partial class MachineLearningRegistryCodeContainerResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MachineLearningCodeContainerData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MachineLearningCodeContainerData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningRegistryCodeVersionResource.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningRegistryCodeVersionResource.Serialization.cs new file mode 100644 index 000000000000..06eb1ea0dc95 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningRegistryCodeVersionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.MachineLearning +{ + public partial class MachineLearningRegistryCodeVersionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MachineLearningCodeVersionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MachineLearningCodeVersionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningRegistryDataContainerResource.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningRegistryDataContainerResource.Serialization.cs new file mode 100644 index 000000000000..ec5197379d06 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningRegistryDataContainerResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.MachineLearning +{ + public partial class MachineLearningRegistryDataContainerResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MachineLearningDataContainerData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MachineLearningDataContainerData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningRegistryDataVersionResource.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningRegistryDataVersionResource.Serialization.cs new file mode 100644 index 000000000000..cb8f65523f7c --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningRegistryDataVersionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.MachineLearning +{ + public partial class MachineLearningRegistryDataVersionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MachineLearningDataVersionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MachineLearningDataVersionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningRegistryEnvironmentContainerResource.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningRegistryEnvironmentContainerResource.Serialization.cs new file mode 100644 index 000000000000..68b636939e39 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningRegistryEnvironmentContainerResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.MachineLearning +{ + public partial class MachineLearningRegistryEnvironmentContainerResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MachineLearningEnvironmentContainerData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MachineLearningEnvironmentContainerData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningRegistryEnvironmentVersionResource.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningRegistryEnvironmentVersionResource.Serialization.cs new file mode 100644 index 000000000000..ccec5ed52fdb --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningRegistryEnvironmentVersionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.MachineLearning +{ + public partial class MachineLearningRegistryEnvironmentVersionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MachineLearningEnvironmentVersionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MachineLearningEnvironmentVersionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningRegistryModelContainerResource.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningRegistryModelContainerResource.Serialization.cs new file mode 100644 index 000000000000..767c267982e3 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningRegistryModelContainerResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.MachineLearning +{ + public partial class MachineLearningRegistryModelContainerResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MachineLearningModelContainerData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MachineLearningModelContainerData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningRegistryModelVersionResource.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningRegistryModelVersionResource.Serialization.cs new file mode 100644 index 000000000000..b5f91247d5b3 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningRegistryModelVersionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.MachineLearning +{ + public partial class MachineLearningRegistryModelVersionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MachineLearningModelVersionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MachineLearningModelVersionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningRegistryResource.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningRegistryResource.Serialization.cs new file mode 100644 index 000000000000..fbc913c0683f --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningRegistryResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.MachineLearning +{ + public partial class MachineLearningRegistryResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MachineLearningRegistryData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MachineLearningRegistryData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningScheduleResource.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningScheduleResource.Serialization.cs new file mode 100644 index 000000000000..9947b8e9342e --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningScheduleResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.MachineLearning +{ + public partial class MachineLearningScheduleResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MachineLearningScheduleData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MachineLearningScheduleData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningWorkspaceConnectionResource.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningWorkspaceConnectionResource.Serialization.cs new file mode 100644 index 000000000000..4d06eaa94ec0 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningWorkspaceConnectionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.MachineLearning +{ + public partial class MachineLearningWorkspaceConnectionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MachineLearningWorkspaceConnectionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MachineLearningWorkspaceConnectionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningWorkspaceResource.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningWorkspaceResource.Serialization.cs new file mode 100644 index 000000000000..44b7f65b0db9 --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningWorkspaceResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.MachineLearning +{ + public partial class MachineLearningWorkspaceResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MachineLearningWorkspaceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MachineLearningWorkspaceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/BatchDeploymentsRestOperations.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/BatchDeploymentsRestOperations.cs index 0d3fbb1d67f1..7279536b6079 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/BatchDeploymentsRestOperations.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/BatchDeploymentsRestOperations.cs @@ -37,6 +37,35 @@ public BatchDeploymentsRestOperations(HttpPipeline pipeline, string applicationI _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string endpointName, string orderBy, int? top, string skip) + { + 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.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/batchEndpoints/", false); + uri.AppendPath(endpointName, true); + uri.AppendPath("/deployments", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (orderBy != null) + { + uri.AppendQuery("$orderBy", orderBy, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skip != null) + { + uri.AppendQuery("$skip", skip, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string workspaceName, string endpointName, string orderBy, int? top, string skip) { var message = _pipeline.CreateMessage(); @@ -140,6 +169,24 @@ public Response List(string su } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string endpointName, string deploymentName) + { + 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.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/batchEndpoints/", false); + uri.AppendPath(endpointName, true); + uri.AppendPath("/deployments/", false); + uri.AppendPath(deploymentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string workspaceName, string endpointName, string deploymentName) { var message = _pipeline.CreateMessage(); @@ -224,6 +271,24 @@ public Response Delete(string subscriptionId, string resourceGroupName, string w } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string endpointName, string deploymentName) + { + 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.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/batchEndpoints/", false); + uri.AppendPath(endpointName, true); + uri.AppendPath("/deployments/", false); + uri.AppendPath(deploymentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName, string endpointName, string deploymentName) { var message = _pipeline.CreateMessage(); @@ -318,6 +383,24 @@ public Response Get(string subscriptionId, s } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string endpointName, string deploymentName, MachineLearningBatchDeploymentPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/batchEndpoints/", false); + uri.AppendPath(endpointName, true); + uri.AppendPath("/deployments/", false); + uri.AppendPath(deploymentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string endpointName, string deploymentName, MachineLearningBatchDeploymentPatch patch) { var message = _pipeline.CreateMessage(); @@ -408,6 +491,24 @@ public Response Update(string subscriptionId, string resourceGroupName, string w } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string endpointName, string deploymentName, MachineLearningBatchDeploymentData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/batchEndpoints/", false); + uri.AppendPath(endpointName, true); + uri.AppendPath("/deployments/", false); + uri.AppendPath(deploymentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string endpointName, string deploymentName, MachineLearningBatchDeploymentData data) { var message = _pipeline.CreateMessage(); @@ -498,6 +599,14 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string endpointName, string orderBy, int? top, string skip) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string endpointName, string orderBy, int? top, string skip) { var message = _pipeline.CreateMessage(); diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/BatchEndpointsRestOperations.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/BatchEndpointsRestOperations.cs index 1e8ffed85938..00c1f8eaeb88 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/BatchEndpointsRestOperations.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/BatchEndpointsRestOperations.cs @@ -37,6 +37,29 @@ public BatchEndpointsRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, int? count, string skip) + { + 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.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/batchEndpoints", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (count != null) + { + uri.AppendQuery("count", count.Value, true); + } + if (skip != null) + { + uri.AppendQuery("$skip", skip, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string workspaceName, int? count, string skip) { var message = _pipeline.CreateMessage(); @@ -128,6 +151,22 @@ public Response List(string subs } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string endpointName) + { + 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.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/batchEndpoints/", false); + uri.AppendPath(endpointName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string workspaceName, string endpointName) { var message = _pipeline.CreateMessage(); @@ -206,6 +245,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string w } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string endpointName) + { + 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.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/batchEndpoints/", false); + uri.AppendPath(endpointName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName, string endpointName) { var message = _pipeline.CreateMessage(); @@ -294,6 +349,22 @@ public Response Get(string subscriptionId, str } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string endpointName, MachineLearningResourcePatchWithIdentity body) + { + 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.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/batchEndpoints/", false); + uri.AppendPath(endpointName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string endpointName, MachineLearningResourcePatchWithIdentity body) { var message = _pipeline.CreateMessage(); @@ -378,6 +449,22 @@ public Response Update(string subscriptionId, string resourceGroupName, string w } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string endpointName, MachineLearningBatchEndpointData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/batchEndpoints/", false); + uri.AppendPath(endpointName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string endpointName, MachineLearningBatchEndpointData data) { var message = _pipeline.CreateMessage(); @@ -462,6 +549,23 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateListKeysRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string endpointName) + { + 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.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/batchEndpoints/", false); + uri.AppendPath(endpointName, true); + uri.AppendPath("/listkeys", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListKeysRequest(string subscriptionId, string resourceGroupName, string workspaceName, string endpointName) { var message = _pipeline.CreateMessage(); @@ -547,6 +651,14 @@ public Response ListKeys(string subscriptionId, } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, int? count, string skip) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, int? count, string skip) { var message = _pipeline.CreateMessage(); diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/CodeContainersRestOperations.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/CodeContainersRestOperations.cs index c9e5d9b568c7..0b3f863a94f5 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/CodeContainersRestOperations.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/CodeContainersRestOperations.cs @@ -37,6 +37,25 @@ public CodeContainersRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string skip) + { + 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.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/codes", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (skip != null) + { + uri.AppendQuery("$skip", skip, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string workspaceName, string skip) { var message = _pipeline.CreateMessage(); @@ -122,6 +141,22 @@ public Response List(string subscriptio } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string name) + { + 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.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/codes/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string workspaceName, string name) { var message = _pipeline.CreateMessage(); @@ -198,6 +233,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string w } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string name) + { + 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.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/codes/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName, string name) { var message = _pipeline.CreateMessage(); @@ -286,6 +337,22 @@ public Response Get(string subscriptionId, str } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string name, MachineLearningCodeContainerData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/codes/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string name, MachineLearningCodeContainerData data) { var message = _pipeline.CreateMessage(); @@ -380,6 +447,14 @@ public Response CreateOrUpdate(string subscrip } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string skip) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string skip) { var message = _pipeline.CreateMessage(); diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/CodeVersionsRestOperations.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/CodeVersionsRestOperations.cs index 846d8be4f5b8..b6bfe3737de5 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/CodeVersionsRestOperations.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/CodeVersionsRestOperations.cs @@ -37,6 +37,43 @@ public CodeVersionsRestOperations(HttpPipeline pipeline, string applicationId, U _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string name, string orderBy, int? top, string skip, string hash, string hashVersion) + { + 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.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/codes/", false); + uri.AppendPath(name, true); + uri.AppendPath("/versions", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (orderBy != null) + { + uri.AppendQuery("$orderBy", orderBy, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skip != null) + { + uri.AppendQuery("$skip", skip, true); + } + if (hash != null) + { + uri.AppendQuery("hash", hash, true); + } + if (hashVersion != null) + { + uri.AppendQuery("hashVersion", hashVersion, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string workspaceName, string name, string orderBy, int? top, string skip, string hash, string hashVersion) { var message = _pipeline.CreateMessage(); @@ -152,6 +189,24 @@ public Response List(string subscriptionI } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version) + { + 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.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/codes/", false); + uri.AppendPath(name, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(version, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version) { var message = _pipeline.CreateMessage(); @@ -234,6 +289,24 @@ public Response Delete(string subscriptionId, string resourceGroupName, string w } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version) + { + 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.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/codes/", false); + uri.AppendPath(name, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(version, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version) { var message = _pipeline.CreateMessage(); @@ -328,6 +401,24 @@ public Response Get(string subscriptionId, strin } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version, MachineLearningCodeVersionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/codes/", false); + uri.AppendPath(name, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(version, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version, MachineLearningCodeVersionData data) { var message = _pipeline.CreateMessage(); @@ -428,6 +519,25 @@ public Response CreateOrUpdate(string subscripti } } + internal RequestUriBuilder CreateCreateOrGetStartPendingUploadRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version, PendingUploadRequestDto body) + { + 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.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/codes/", false); + uri.AppendPath(name, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(version, true); + uri.AppendPath("/startPendingUpload", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrGetStartPendingUploadRequest(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version, PendingUploadRequestDto body) { var message = _pipeline.CreateMessage(); @@ -527,6 +637,14 @@ public Response CreateOrGetStartPendingUpload(string s } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string name, string orderBy, int? top, string skip, string hash, string hashVersion) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string name, string orderBy, int? top, string skip, string hash, string hashVersion) { var message = _pipeline.CreateMessage(); diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/ComponentContainersRestOperations.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/ComponentContainersRestOperations.cs index f59c835a67f8..7aea1336f9a4 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/ComponentContainersRestOperations.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/ComponentContainersRestOperations.cs @@ -37,6 +37,29 @@ public ComponentContainersRestOperations(HttpPipeline pipeline, string applicati _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string skip, MachineLearningListViewType? listViewType) + { + 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.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/components", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (skip != null) + { + uri.AppendQuery("$skip", skip, true); + } + if (listViewType != null) + { + uri.AppendQuery("listViewType", listViewType.Value.ToString(), true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string workspaceName, string skip, MachineLearningListViewType? listViewType) { var message = _pipeline.CreateMessage(); @@ -128,6 +151,22 @@ public Response List(string subscr } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string name) + { + 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.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/components/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string workspaceName, string name) { var message = _pipeline.CreateMessage(); @@ -204,6 +243,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string w } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string name) + { + 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.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/components/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName, string name) { var message = _pipeline.CreateMessage(); @@ -292,6 +347,22 @@ public Response Get(string subscriptionId } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string name, MachineLearningComponentContainerData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/components/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string name, MachineLearningComponentContainerData data) { var message = _pipeline.CreateMessage(); @@ -386,6 +457,14 @@ public Response CreateOrUpdate(string sub } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string skip, MachineLearningListViewType? listViewType) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string skip, MachineLearningListViewType? listViewType) { var message = _pipeline.CreateMessage(); diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/ComponentVersionsRestOperations.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/ComponentVersionsRestOperations.cs index d33b34ded736..9d81edf5f4d6 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/ComponentVersionsRestOperations.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/ComponentVersionsRestOperations.cs @@ -37,6 +37,43 @@ public ComponentVersionsRestOperations(HttpPipeline pipeline, string application _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string name, string orderBy, int? top, string skip, MachineLearningListViewType? listViewType, string stage) + { + 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.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/components/", false); + uri.AppendPath(name, true); + uri.AppendPath("/versions", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (orderBy != null) + { + uri.AppendQuery("$orderBy", orderBy, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skip != null) + { + uri.AppendQuery("$skip", skip, true); + } + if (listViewType != null) + { + uri.AppendQuery("listViewType", listViewType.Value.ToString(), true); + } + if (stage != null) + { + uri.AppendQuery("stage", stage, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string workspaceName, string name, string orderBy, int? top, string skip, MachineLearningListViewType? listViewType, string stage) { var message = _pipeline.CreateMessage(); @@ -152,6 +189,24 @@ public Response List(string subscrip } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version) + { + 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.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/components/", false); + uri.AppendPath(name, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(version, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version) { var message = _pipeline.CreateMessage(); @@ -234,6 +289,24 @@ public Response Delete(string subscriptionId, string resourceGroupName, string w } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version) + { + 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.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/components/", false); + uri.AppendPath(name, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(version, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version) { var message = _pipeline.CreateMessage(); @@ -328,6 +401,24 @@ public Response Get(string subscriptionId, } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version, MachineLearningComponentVersionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/components/", false); + uri.AppendPath(name, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(version, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version, MachineLearningComponentVersionData data) { var message = _pipeline.CreateMessage(); @@ -428,6 +519,14 @@ public Response CreateOrUpdate(string subsc } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string name, string orderBy, int? top, string skip, MachineLearningListViewType? listViewType, string stage) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string name, string orderBy, int? top, string skip, MachineLearningListViewType? listViewType, string stage) { var message = _pipeline.CreateMessage(); diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/ComputeRestOperations.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/ComputeRestOperations.cs index 0f6e46908d17..a6ba4bea49cf 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/ComputeRestOperations.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/ComputeRestOperations.cs @@ -38,6 +38,25 @@ public ComputeRestOperations(HttpPipeline pipeline, string applicationId, Uri en _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string skip) + { + 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.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/computes", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (skip != null) + { + uri.AppendQuery("$skip", skip, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string workspaceName, string skip) { var message = _pipeline.CreateMessage(); @@ -123,6 +142,22 @@ public Response List(string subscriptionId, strin } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string computeName) + { + 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.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/computes/", false); + uri.AppendPath(computeName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName, string computeName) { var message = _pipeline.CreateMessage(); @@ -211,6 +246,22 @@ public Response Get(string subscriptionId, string re } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string computeName, MachineLearningComputeData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/computes/", false); + uri.AppendPath(computeName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string computeName, MachineLearningComputeData data) { var message = _pipeline.CreateMessage(); @@ -295,6 +346,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string computeName, MachineLearningComputePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/computes/", false); + uri.AppendPath(computeName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string computeName, MachineLearningComputePatch patch) { var message = _pipeline.CreateMessage(); @@ -377,6 +444,23 @@ public Response Update(string subscriptionId, string resourceGroupName, string w } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string computeName, MachineLearningUnderlyingResourceAction underlyingResourceAction) + { + 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.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/computes/", false); + uri.AppendPath(computeName, true); + uri.AppendQuery("api-version", _apiVersion, true); + uri.AppendQuery("underlyingResourceAction", underlyingResourceAction.ToString(), true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string workspaceName, string computeName, MachineLearningUnderlyingResourceAction underlyingResourceAction) { var message = _pipeline.CreateMessage(); @@ -458,6 +542,23 @@ public Response Delete(string subscriptionId, string resourceGroupName, string w } } + internal RequestUriBuilder CreateUpdateCustomServicesRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string computeName, IEnumerable customServices) + { + 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.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/computes/", false); + uri.AppendPath(computeName, true); + uri.AppendPath("/customServices", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateCustomServicesRequest(string subscriptionId, string resourceGroupName, string workspaceName, string computeName, IEnumerable customServices) { var message = _pipeline.CreateMessage(); @@ -546,6 +647,23 @@ public Response UpdateCustomServices(string subscriptionId, string resourceGroup } } + internal RequestUriBuilder CreateListNodesRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string computeName) + { + 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.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/computes/", false); + uri.AppendPath(computeName, true); + uri.AppendPath("/listNodes", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListNodesRequest(string subscriptionId, string resourceGroupName, string workspaceName, string computeName) { var message = _pipeline.CreateMessage(); @@ -631,6 +749,23 @@ public Response ListNodes(string subscriptionId, str } } + internal RequestUriBuilder CreateListKeysRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string computeName) + { + 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.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/computes/", false); + uri.AppendPath(computeName, true); + uri.AppendPath("/listKeys", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListKeysRequest(string subscriptionId, string resourceGroupName, string workspaceName, string computeName) { var message = _pipeline.CreateMessage(); @@ -716,6 +851,23 @@ public Response ListKeys(string subscriptionId, s } } + internal RequestUriBuilder CreateStartRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string computeName) + { + 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.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/computes/", false); + uri.AppendPath(computeName, true); + uri.AppendPath("/start", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStartRequest(string subscriptionId, string resourceGroupName, string workspaceName, string computeName) { var message = _pipeline.CreateMessage(); @@ -791,6 +943,23 @@ public Response Start(string subscriptionId, string resourceGroupName, string wo } } + internal RequestUriBuilder CreateStopRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string computeName) + { + 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.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/computes/", false); + uri.AppendPath(computeName, true); + uri.AppendPath("/stop", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStopRequest(string subscriptionId, string resourceGroupName, string workspaceName, string computeName) { var message = _pipeline.CreateMessage(); @@ -866,6 +1035,23 @@ public Response Stop(string subscriptionId, string resourceGroupName, string wor } } + internal RequestUriBuilder CreateRestartRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string computeName) + { + 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.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/computes/", false); + uri.AppendPath(computeName, true); + uri.AppendPath("/restart", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRestartRequest(string subscriptionId, string resourceGroupName, string workspaceName, string computeName) { var message = _pipeline.CreateMessage(); @@ -941,6 +1127,23 @@ public Response Restart(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreateUpdateIdleShutdownSettingRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string computeName, IdleShutdownSetting idleShutdownSetting) + { + 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.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/computes/", false); + uri.AppendPath(computeName, true); + uri.AppendPath("/updateIdleShutdownSetting", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateIdleShutdownSettingRequest(string subscriptionId, string resourceGroupName, string workspaceName, string computeName, IdleShutdownSetting idleShutdownSetting) { var message = _pipeline.CreateMessage(); @@ -1024,6 +1227,14 @@ public Response UpdateIdleShutdownSetting(string subscriptionId, string resource } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string skip) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string skip) { var message = _pipeline.CreateMessage(); @@ -1102,6 +1313,14 @@ public Response ListNextPage(string nextLink, str } } + internal RequestUriBuilder CreateListNodesNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string computeName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNodesNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string computeName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/DataContainersRestOperations.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/DataContainersRestOperations.cs index 1e17c706a6fd..1294bf430c43 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/DataContainersRestOperations.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/DataContainersRestOperations.cs @@ -37,6 +37,29 @@ public DataContainersRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string skip, MachineLearningListViewType? listViewType) + { + 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.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/data", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (skip != null) + { + uri.AppendQuery("$skip", skip, true); + } + if (listViewType != null) + { + uri.AppendQuery("listViewType", listViewType.Value.ToString(), true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string workspaceName, string skip, MachineLearningListViewType? listViewType) { var message = _pipeline.CreateMessage(); @@ -128,6 +151,22 @@ public Response List(string subscriptio } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string name) + { + 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.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/data/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string workspaceName, string name) { var message = _pipeline.CreateMessage(); @@ -204,6 +243,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string w } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string name) + { + 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.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/data/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName, string name) { var message = _pipeline.CreateMessage(); @@ -292,6 +347,22 @@ public Response Get(string subscriptionId, str } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string name, MachineLearningDataContainerData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/data/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string name, MachineLearningDataContainerData data) { var message = _pipeline.CreateMessage(); @@ -386,6 +457,14 @@ public Response CreateOrUpdate(string subscrip } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string skip, MachineLearningListViewType? listViewType) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string skip, MachineLearningListViewType? listViewType) { var message = _pipeline.CreateMessage(); diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/DataVersionsRestOperations.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/DataVersionsRestOperations.cs index af0e6d6435b2..2c30416b7b31 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/DataVersionsRestOperations.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/DataVersionsRestOperations.cs @@ -37,6 +37,47 @@ public DataVersionsRestOperations(HttpPipeline pipeline, string applicationId, U _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string name, string orderBy, int? top, string skip, string tags, MachineLearningListViewType? listViewType, string stage) + { + 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.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/data/", false); + uri.AppendPath(name, true); + uri.AppendPath("/versions", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (orderBy != null) + { + uri.AppendQuery("$orderBy", orderBy, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skip != null) + { + uri.AppendQuery("$skip", skip, true); + } + if (tags != null) + { + uri.AppendQuery("$tags", tags, true); + } + if (listViewType != null) + { + uri.AppendQuery("listViewType", listViewType.Value.ToString(), true); + } + if (stage != null) + { + uri.AppendQuery("stage", stage, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string workspaceName, string name, string orderBy, int? top, string skip, string tags, MachineLearningListViewType? listViewType, string stage) { var message = _pipeline.CreateMessage(); @@ -164,6 +205,24 @@ public Response List(string subscript } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version) + { + 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.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/data/", false); + uri.AppendPath(name, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(version, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version) { var message = _pipeline.CreateMessage(); @@ -246,6 +305,24 @@ public Response Delete(string subscriptionId, string resourceGroupName, string w } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version) + { + 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.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/data/", false); + uri.AppendPath(name, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(version, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version) { var message = _pipeline.CreateMessage(); @@ -340,6 +417,24 @@ public Response Get(string subscriptionId, strin } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version, MachineLearningDataVersionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/data/", false); + uri.AppendPath(name, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(version, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version, MachineLearningDataVersionData data) { var message = _pipeline.CreateMessage(); @@ -440,6 +535,14 @@ public Response CreateOrUpdate(string subscripti } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string name, string orderBy, int? top, string skip, string tags, MachineLearningListViewType? listViewType, string stage) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string name, string orderBy, int? top, string skip, string tags, MachineLearningListViewType? listViewType, string stage) { var message = _pipeline.CreateMessage(); diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/DatastoresRestOperations.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/DatastoresRestOperations.cs index 1cf870168778..1acdafd4476c 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/DatastoresRestOperations.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/DatastoresRestOperations.cs @@ -38,6 +38,49 @@ public DatastoresRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string skip, int? count, bool? isDefault, IEnumerable names, string searchText, string orderBy, bool? orderByAsc) + { + 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.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/datastores", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (skip != null) + { + uri.AppendQuery("$skip", skip, true); + } + if (count != null) + { + uri.AppendQuery("count", count.Value, true); + } + if (isDefault != null) + { + uri.AppendQuery("isDefault", isDefault.Value, true); + } + if (names != null && Optional.IsCollectionDefined(names)) + { + uri.AppendQueryDelimited("names", names, ",", true); + } + if (searchText != null) + { + uri.AppendQuery("searchText", searchText, true); + } + if (orderBy != null) + { + uri.AppendQuery("orderBy", orderBy, true); + } + if (orderByAsc != null) + { + uri.AppendQuery("orderByAsc", orderByAsc.Value, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string workspaceName, string skip, int? count, bool? isDefault, IEnumerable names, string searchText, string orderBy, bool? orderByAsc) { var message = _pipeline.CreateMessage(); @@ -159,6 +202,22 @@ public Response List(string subscriptionId, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string name) + { + 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.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/datastores/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string workspaceName, string name) { var message = _pipeline.CreateMessage(); @@ -235,6 +294,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string w } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string name) + { + 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.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/datastores/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName, string name) { var message = _pipeline.CreateMessage(); @@ -323,6 +398,26 @@ public Response Get(string subscriptionId, string } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string name, MachineLearningDatastoreData data, bool? skipValidation) + { + 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.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/datastores/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + if (skipValidation != null) + { + uri.AppendQuery("skipValidation", skipValidation.Value, true); + } + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string name, MachineLearningDatastoreData data, bool? skipValidation) { var message = _pipeline.CreateMessage(); @@ -423,6 +518,23 @@ public Response CreateOrUpdate(string subscription } } + internal RequestUriBuilder CreateListSecretsRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string name) + { + 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.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/datastores/", false); + uri.AppendPath(name, true); + uri.AppendPath("/listSecrets", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListSecretsRequest(string subscriptionId, string resourceGroupName, string workspaceName, string name) { var message = _pipeline.CreateMessage(); @@ -508,6 +620,14 @@ public Response ListSecrets(string subscription } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string skip, int? count, bool? isDefault, IEnumerable names, string searchText, string orderBy, bool? orderByAsc) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string skip, int? count, bool? isDefault, IEnumerable names, string searchText, string orderBy, bool? orderByAsc) { var message = _pipeline.CreateMessage(); diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/EnvironmentContainersRestOperations.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/EnvironmentContainersRestOperations.cs index 289ac30febf5..dae59fefbfb9 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/EnvironmentContainersRestOperations.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/EnvironmentContainersRestOperations.cs @@ -37,6 +37,29 @@ public EnvironmentContainersRestOperations(HttpPipeline pipeline, string applica _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string skip, MachineLearningListViewType? listViewType) + { + 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.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/environments", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (skip != null) + { + uri.AppendQuery("$skip", skip, true); + } + if (listViewType != null) + { + uri.AppendQuery("listViewType", listViewType.Value.ToString(), true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string workspaceName, string skip, MachineLearningListViewType? listViewType) { var message = _pipeline.CreateMessage(); @@ -128,6 +151,22 @@ public Response List(string subs } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string name) + { + 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.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/environments/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string workspaceName, string name) { var message = _pipeline.CreateMessage(); @@ -204,6 +243,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string w } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string name) + { + 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.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/environments/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName, string name) { var message = _pipeline.CreateMessage(); @@ -292,6 +347,22 @@ public Response Get(string subscription } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string name, MachineLearningEnvironmentContainerData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/environments/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string name, MachineLearningEnvironmentContainerData data) { var message = _pipeline.CreateMessage(); @@ -386,6 +457,14 @@ public Response CreateOrUpdate(string s } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string skip, MachineLearningListViewType? listViewType) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string skip, MachineLearningListViewType? listViewType) { var message = _pipeline.CreateMessage(); diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/EnvironmentVersionsRestOperations.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/EnvironmentVersionsRestOperations.cs index 0ec04ac2286c..6963b5f92137 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/EnvironmentVersionsRestOperations.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/EnvironmentVersionsRestOperations.cs @@ -37,6 +37,43 @@ public EnvironmentVersionsRestOperations(HttpPipeline pipeline, string applicati _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string name, string orderBy, int? top, string skip, MachineLearningListViewType? listViewType, string stage) + { + 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.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/environments/", false); + uri.AppendPath(name, true); + uri.AppendPath("/versions", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (orderBy != null) + { + uri.AppendQuery("$orderBy", orderBy, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skip != null) + { + uri.AppendQuery("$skip", skip, true); + } + if (listViewType != null) + { + uri.AppendQuery("listViewType", listViewType.Value.ToString(), true); + } + if (stage != null) + { + uri.AppendQuery("stage", stage, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string workspaceName, string name, string orderBy, int? top, string skip, MachineLearningListViewType? listViewType, string stage) { var message = _pipeline.CreateMessage(); @@ -152,6 +189,24 @@ public Response List(string subscr } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version) + { + 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.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/environments/", false); + uri.AppendPath(name, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(version, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version) { var message = _pipeline.CreateMessage(); @@ -234,6 +289,24 @@ public Response Delete(string subscriptionId, string resourceGroupName, string w } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version) + { + 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.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/environments/", false); + uri.AppendPath(name, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(version, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version) { var message = _pipeline.CreateMessage(); @@ -328,6 +401,24 @@ public Response Get(string subscriptionId } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version, MachineLearningEnvironmentVersionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/environments/", false); + uri.AppendPath(name, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(version, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version, MachineLearningEnvironmentVersionData data) { var message = _pipeline.CreateMessage(); @@ -428,6 +519,14 @@ public Response CreateOrUpdate(string sub } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string name, string orderBy, int? top, string skip, MachineLearningListViewType? listViewType, string stage) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string name, string orderBy, int? top, string skip, MachineLearningListViewType? listViewType, string stage) { var message = _pipeline.CreateMessage(); diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/FeaturesRestOperations.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/FeaturesRestOperations.cs index 76b852e99ac3..421e73ec525a 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/FeaturesRestOperations.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/FeaturesRestOperations.cs @@ -37,6 +37,41 @@ public FeaturesRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string featuresetName, string featuresetVersion, string skip, string tags, string featureName, string description) + { + 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.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/featuresets/", false); + uri.AppendPath(featuresetName, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(featuresetVersion, true); + uri.AppendPath("/features", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (skip != null) + { + uri.AppendQuery("$skip", skip, true); + } + if (tags != null) + { + uri.AppendQuery("tags", tags, true); + } + if (featureName != null) + { + uri.AppendQuery("featureName", featureName, true); + } + if (description != null) + { + uri.AppendQuery("description", description, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string workspaceName, string featuresetName, string featuresetVersion, string skip, string tags, string featureName, string description) { var message = _pipeline.CreateMessage(); @@ -152,6 +187,26 @@ public Response List(string subscriptionId, s } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string featuresetName, string featuresetVersion, string featureName) + { + 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.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/featuresets/", false); + uri.AppendPath(featuresetName, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(featuresetVersion, true); + uri.AppendPath("/features/", false); + uri.AppendPath(featureName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName, string featuresetName, string featuresetVersion, string featureName) { var message = _pipeline.CreateMessage(); @@ -252,6 +307,14 @@ public Response Get(string subscriptionId, string re } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string featuresetName, string featuresetVersion, string skip, string tags, string featureName, string description) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string featuresetName, string featuresetVersion, string skip, string tags, string featureName, string description) { var message = _pipeline.CreateMessage(); diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/FeaturesetContainersRestOperations.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/FeaturesetContainersRestOperations.cs index db64689879c9..04458c3b8a9d 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/FeaturesetContainersRestOperations.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/FeaturesetContainersRestOperations.cs @@ -37,6 +37,49 @@ public FeaturesetContainersRestOperations(HttpPipeline pipeline, string applicat _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string skip, string tags, MachineLearningListViewType? listViewType, int? pageSize, string name, string description, string createdBy) + { + 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.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/featuresets", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (skip != null) + { + uri.AppendQuery("$skip", skip, true); + } + if (tags != null) + { + uri.AppendQuery("tags", tags, true); + } + if (listViewType != null) + { + uri.AppendQuery("listViewType", listViewType.Value.ToString(), true); + } + if (pageSize != null) + { + uri.AppendQuery("pageSize", pageSize.Value, true); + } + if (name != null) + { + uri.AppendQuery("name", name, true); + } + if (description != null) + { + uri.AppendQuery("description", description, true); + } + if (createdBy != null) + { + uri.AppendQuery("createdBy", createdBy, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string workspaceName, string skip, string tags, MachineLearningListViewType? listViewType, int? pageSize, string name, string description, string createdBy) { var message = _pipeline.CreateMessage(); @@ -158,6 +201,22 @@ public Response List(string subsc } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string name) + { + 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.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/featuresets/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string workspaceName, string name) { var message = _pipeline.CreateMessage(); @@ -236,6 +295,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string w } } + internal RequestUriBuilder CreateGetEntityRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string name) + { + 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.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/featuresets/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetEntityRequest(string subscriptionId, string resourceGroupName, string workspaceName, string name) { var message = _pipeline.CreateMessage(); @@ -324,6 +399,22 @@ public Response GetEntity(string subscri } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string name, MachineLearningFeatureSetContainerData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/featuresets/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string name, MachineLearningFeatureSetContainerData data) { var message = _pipeline.CreateMessage(); @@ -408,6 +499,14 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string skip, string tags, MachineLearningListViewType? listViewType, int? pageSize, string name, string description, string createdBy) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string skip, string tags, MachineLearningListViewType? listViewType, int? pageSize, string name, string description, string createdBy) { var message = _pipeline.CreateMessage(); diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/FeaturesetVersionsRestOperations.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/FeaturesetVersionsRestOperations.cs index e9f297eaddf2..b4e8d0276b93 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/FeaturesetVersionsRestOperations.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/FeaturesetVersionsRestOperations.cs @@ -37,6 +37,59 @@ public FeaturesetVersionsRestOperations(HttpPipeline pipeline, string applicatio _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string name, string skip, string tags, MachineLearningListViewType? listViewType, int? pageSize, string versionName, string version, string description, string createdBy, string stage) + { + 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.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/featuresets/", false); + uri.AppendPath(name, true); + uri.AppendPath("/versions", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (skip != null) + { + uri.AppendQuery("$skip", skip, true); + } + if (tags != null) + { + uri.AppendQuery("tags", tags, true); + } + if (listViewType != null) + { + uri.AppendQuery("listViewType", listViewType.Value.ToString(), true); + } + if (pageSize != null) + { + uri.AppendQuery("pageSize", pageSize.Value, true); + } + if (versionName != null) + { + uri.AppendQuery("versionName", versionName, true); + } + if (version != null) + { + uri.AppendQuery("version", version, true); + } + if (description != null) + { + uri.AppendQuery("description", description, true); + } + if (createdBy != null) + { + uri.AppendQuery("createdBy", createdBy, true); + } + if (stage != null) + { + uri.AppendQuery("stage", stage, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string workspaceName, string name, string skip, string tags, MachineLearningListViewType? listViewType, int? pageSize, string versionName, string version, string description, string createdBy, string stage) { var message = _pipeline.CreateMessage(); @@ -176,6 +229,24 @@ public Response List(string subscri } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version) + { + 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.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/featuresets/", false); + uri.AppendPath(name, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(version, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version) { var message = _pipeline.CreateMessage(); @@ -260,6 +331,24 @@ public Response Delete(string subscriptionId, string resourceGroupName, string w } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version) + { + 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.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/featuresets/", false); + uri.AppendPath(name, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(version, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version) { var message = _pipeline.CreateMessage(); @@ -354,6 +443,24 @@ public Response Get(string subscriptionId, } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version, MachineLearningFeatureSetVersionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/featuresets/", false); + uri.AppendPath(name, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(version, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version, MachineLearningFeatureSetVersionData data) { var message = _pipeline.CreateMessage(); @@ -444,6 +551,25 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateBackfillRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version, FeatureSetVersionBackfillContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/featuresets/", false); + uri.AppendPath(name, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(version, true); + uri.AppendPath("/backfill", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateBackfillRequest(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version, FeatureSetVersionBackfillContent content) { var message = _pipeline.CreateMessage(); @@ -535,6 +661,41 @@ public Response Backfill(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreateListMaterializationJobsRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version, string skip, string filters, string featureWindowStart, string featureWindowEnd) + { + 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.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/featuresets/", false); + uri.AppendPath(name, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(version, true); + uri.AppendPath("/listMaterializationJobs", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (skip != null) + { + uri.AppendQuery("$skip", skip, true); + } + if (filters != null) + { + uri.AppendQuery("filters", filters, true); + } + if (featureWindowStart != null) + { + uri.AppendQuery("featureWindowStart", featureWindowStart, true); + } + if (featureWindowEnd != null) + { + uri.AppendQuery("featureWindowEnd", featureWindowEnd, true); + } + return uri; + } + internal HttpMessage CreateListMaterializationJobsRequest(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version, string skip, string filters, string featureWindowStart, string featureWindowEnd) { var message = _pipeline.CreateMessage(); @@ -650,6 +811,14 @@ public Response ListMaterializationJobs(string } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string name, string skip, string tags, MachineLearningListViewType? listViewType, int? pageSize, string versionName, string version, string description, string createdBy, string stage) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string name, string skip, string tags, MachineLearningListViewType? listViewType, int? pageSize, string versionName, string version, string description, string createdBy, string stage) { var message = _pipeline.CreateMessage(); @@ -748,6 +917,14 @@ public Response ListNextPage(string } } + internal RequestUriBuilder CreateListMaterializationJobsNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string name, string version, string skip, string filters, string featureWindowStart, string featureWindowEnd) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListMaterializationJobsNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string name, string version, string skip, string filters, string featureWindowStart, string featureWindowEnd) { var message = _pipeline.CreateMessage(); diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/FeaturestoreEntityContainersRestOperations.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/FeaturestoreEntityContainersRestOperations.cs index 583b48a9256f..36c7258c03e2 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/FeaturestoreEntityContainersRestOperations.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/FeaturestoreEntityContainersRestOperations.cs @@ -37,6 +37,49 @@ public FeaturestoreEntityContainersRestOperations(HttpPipeline pipeline, string _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string skip, string tags, MachineLearningListViewType? listViewType, int? pageSize, string name, string description, string createdBy) + { + 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.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/featurestoreEntities", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (skip != null) + { + uri.AppendQuery("$skip", skip, true); + } + if (tags != null) + { + uri.AppendQuery("tags", tags, true); + } + if (listViewType != null) + { + uri.AppendQuery("listViewType", listViewType.Value.ToString(), true); + } + if (pageSize != null) + { + uri.AppendQuery("pageSize", pageSize.Value, true); + } + if (name != null) + { + uri.AppendQuery("name", name, true); + } + if (description != null) + { + uri.AppendQuery("description", description, true); + } + if (createdBy != null) + { + uri.AppendQuery("createdBy", createdBy, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string workspaceName, string skip, string tags, MachineLearningListViewType? listViewType, int? pageSize, string name, string description, string createdBy) { var message = _pipeline.CreateMessage(); @@ -158,6 +201,22 @@ public Response List(stri } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string name) + { + 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.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/featurestoreEntities/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string workspaceName, string name) { var message = _pipeline.CreateMessage(); @@ -236,6 +295,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string w } } + internal RequestUriBuilder CreateGetEntityRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string name) + { + 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.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/featurestoreEntities/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetEntityRequest(string subscriptionId, string resourceGroupName, string workspaceName, string name) { var message = _pipeline.CreateMessage(); @@ -324,6 +399,22 @@ public Response GetEntity(string } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string name, MachineLearningFeatureStoreEntityContainerData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/featurestoreEntities/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string name, MachineLearningFeatureStoreEntityContainerData data) { var message = _pipeline.CreateMessage(); @@ -408,6 +499,14 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string skip, string tags, MachineLearningListViewType? listViewType, int? pageSize, string name, string description, string createdBy) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string skip, string tags, MachineLearningListViewType? listViewType, int? pageSize, string name, string description, string createdBy) { var message = _pipeline.CreateMessage(); diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/FeaturestoreEntityVersionsRestOperations.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/FeaturestoreEntityVersionsRestOperations.cs index 7103ca0ba695..9bd1dd8037ac 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/FeaturestoreEntityVersionsRestOperations.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/FeaturestoreEntityVersionsRestOperations.cs @@ -37,6 +37,59 @@ public FeaturestoreEntityVersionsRestOperations(HttpPipeline pipeline, string ap _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string name, string skip, string tags, MachineLearningListViewType? listViewType, int? pageSize, string versionName, string version, string description, string createdBy, string stage) + { + 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.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/featurestoreEntities/", false); + uri.AppendPath(name, true); + uri.AppendPath("/versions", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (skip != null) + { + uri.AppendQuery("$skip", skip, true); + } + if (tags != null) + { + uri.AppendQuery("tags", tags, true); + } + if (listViewType != null) + { + uri.AppendQuery("listViewType", listViewType.Value.ToString(), true); + } + if (pageSize != null) + { + uri.AppendQuery("pageSize", pageSize.Value, true); + } + if (versionName != null) + { + uri.AppendQuery("versionName", versionName, true); + } + if (version != null) + { + uri.AppendQuery("version", version, true); + } + if (description != null) + { + uri.AppendQuery("description", description, true); + } + if (createdBy != null) + { + uri.AppendQuery("createdBy", createdBy, true); + } + if (stage != null) + { + uri.AppendQuery("stage", stage, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string workspaceName, string name, string skip, string tags, MachineLearningListViewType? listViewType, int? pageSize, string versionName, string version, string description, string createdBy, string stage) { var message = _pipeline.CreateMessage(); @@ -176,6 +229,24 @@ public Response List(string } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version) + { + 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.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/featurestoreEntities/", false); + uri.AppendPath(name, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(version, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version) { var message = _pipeline.CreateMessage(); @@ -260,6 +331,24 @@ public Response Delete(string subscriptionId, string resourceGroupName, string w } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version) + { + 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.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/featurestoreEntities/", false); + uri.AppendPath(name, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(version, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version) { var message = _pipeline.CreateMessage(); @@ -354,6 +443,24 @@ public Response Get(string subscri } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version, MachineLearningFeaturestoreEntityVersionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/featurestoreEntities/", false); + uri.AppendPath(name, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(version, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version, MachineLearningFeaturestoreEntityVersionData data) { var message = _pipeline.CreateMessage(); @@ -444,6 +551,14 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string name, string skip, string tags, MachineLearningListViewType? listViewType, int? pageSize, string versionName, string version, string description, string createdBy, string stage) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string name, string skip, string tags, MachineLearningListViewType? listViewType, int? pageSize, string versionName, string version, string description, string createdBy, string stage) { var message = _pipeline.CreateMessage(); diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/JobsRestOperations.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/JobsRestOperations.cs index 13b5d54467ad..c51520b53724 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/JobsRestOperations.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/JobsRestOperations.cs @@ -37,6 +37,49 @@ public JobsRestOperations(HttpPipeline pipeline, string applicationId, Uri endpo _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string skip, string jobType, string tag, MachineLearningListViewType? listViewType, string assetName, bool? scheduled, string scheduleId) + { + 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.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/jobs", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (skip != null) + { + uri.AppendQuery("$skip", skip, true); + } + if (jobType != null) + { + uri.AppendQuery("jobType", jobType, true); + } + if (tag != null) + { + uri.AppendQuery("tag", tag, true); + } + if (listViewType != null) + { + uri.AppendQuery("listViewType", listViewType.Value.ToString(), true); + } + if (assetName != null) + { + uri.AppendQuery("assetName", assetName, true); + } + if (scheduled != null) + { + uri.AppendQuery("scheduled", scheduled.Value, true); + } + if (scheduleId != null) + { + uri.AppendQuery("scheduleId", scheduleId, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string workspaceName, string skip, string jobType, string tag, MachineLearningListViewType? listViewType, string assetName, bool? scheduled, string scheduleId) { var message = _pipeline.CreateMessage(); @@ -158,6 +201,22 @@ public Response List(string subscriptionId, s } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string id) + { + 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.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/jobs/", false); + uri.AppendPath(id, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string workspaceName, string id) { var message = _pipeline.CreateMessage(); @@ -236,6 +295,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string w } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string id) + { + 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.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/jobs/", false); + uri.AppendPath(id, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName, string id) { var message = _pipeline.CreateMessage(); @@ -324,6 +399,22 @@ public Response Get(string subscriptionId, string resour } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string id, MachineLearningJobPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/jobs/", false); + uri.AppendPath(id, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string id, MachineLearningJobPatch patch) { var message = _pipeline.CreateMessage(); @@ -416,6 +507,22 @@ public Response Update(string subscriptionId, string res } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string id, MachineLearningJobData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/jobs/", false); + uri.AppendPath(id, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string id, MachineLearningJobData data) { var message = _pipeline.CreateMessage(); @@ -510,6 +617,23 @@ public Response CreateOrUpdate(string subscriptionId, st } } + internal RequestUriBuilder CreateCancelRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string id) + { + 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.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/jobs/", false); + uri.AppendPath(id, true); + uri.AppendPath("/cancel", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCancelRequest(string subscriptionId, string resourceGroupName, string workspaceName, string id) { var message = _pipeline.CreateMessage(); @@ -587,6 +711,14 @@ public Response Cancel(string subscriptionId, string resourceGroupName, string w } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string skip, string jobType, string tag, MachineLearningListViewType? listViewType, string assetName, bool? scheduled, string scheduleId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string skip, string jobType, string tag, MachineLearningListViewType? listViewType, string assetName, bool? scheduled, string scheduleId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/LabelingJobsRestOperations.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/LabelingJobsRestOperations.cs index f980925047fb..0774b12dfaad 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/LabelingJobsRestOperations.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/LabelingJobsRestOperations.cs @@ -37,6 +37,29 @@ public LabelingJobsRestOperations(HttpPipeline pipeline, string applicationId, U _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string skip, int? top) + { + 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.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/labelingJobs", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (skip != null) + { + uri.AppendQuery("$skip", skip, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string workspaceName, string skip, int? top) { var message = _pipeline.CreateMessage(); @@ -128,6 +151,22 @@ public Response List(string subscriptionI } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string id) + { + 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.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/labelingJobs/", false); + uri.AppendPath(id, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string workspaceName, string id) { var message = _pipeline.CreateMessage(); @@ -204,6 +243,30 @@ public Response Delete(string subscriptionId, string resourceGroupName, string w } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string id, bool? includeJobInstructions, bool? includeLabelCategories) + { + 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.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/labelingJobs/", false); + uri.AppendPath(id, true); + uri.AppendQuery("api-version", _apiVersion, true); + if (includeJobInstructions != null) + { + uri.AppendQuery("includeJobInstructions", includeJobInstructions.Value, true); + } + if (includeLabelCategories != null) + { + uri.AppendQuery("includeLabelCategories", includeLabelCategories.Value, true); + } + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName, string id, bool? includeJobInstructions, bool? includeLabelCategories) { var message = _pipeline.CreateMessage(); @@ -304,6 +367,22 @@ public Response Get(string subscriptionId, strin } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string id, MachineLearningLabelingJobData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/labelingJobs/", false); + uri.AppendPath(id, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string id, MachineLearningLabelingJobData data) { var message = _pipeline.CreateMessage(); @@ -388,6 +467,23 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateExportLabelsRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string id, ExportSummary body) + { + 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.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/labelingJobs/", false); + uri.AppendPath(id, true); + uri.AppendPath("/exportLabels", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateExportLabelsRequest(string subscriptionId, string resourceGroupName, string workspaceName, string id, ExportSummary body) { var message = _pipeline.CreateMessage(); @@ -473,6 +569,23 @@ public Response ExportLabels(string subscriptionId, string resourceGroupName, st } } + internal RequestUriBuilder CreatePauseRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string id) + { + 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.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/labelingJobs/", false); + uri.AppendPath(id, true); + uri.AppendPath("/pause", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreatePauseRequest(string subscriptionId, string resourceGroupName, string workspaceName, string id) { var message = _pipeline.CreateMessage(); @@ -548,6 +661,23 @@ public Response Pause(string subscriptionId, string resourceGroupName, string wo } } + internal RequestUriBuilder CreateResumeRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string id) + { + 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.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/labelingJobs/", false); + uri.AppendPath(id, true); + uri.AppendPath("/resume", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateResumeRequest(string subscriptionId, string resourceGroupName, string workspaceName, string id) { var message = _pipeline.CreateMessage(); @@ -625,6 +755,14 @@ public Response Resume(string subscriptionId, string resourceGroupName, string w } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string skip, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string skip, int? top) { var message = _pipeline.CreateMessage(); diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/ManagedNetworkProvisionsRestOperations.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/ManagedNetworkProvisionsRestOperations.cs index 3a8b13d1f3e9..8793b3d90187 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/ManagedNetworkProvisionsRestOperations.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/ManagedNetworkProvisionsRestOperations.cs @@ -36,6 +36,21 @@ public ManagedNetworkProvisionsRestOperations(HttpPipeline pipeline, string appl _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateProvisionManagedNetworkRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, ManagedNetworkProvisionContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/provisionManagedNetwork", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateProvisionManagedNetworkRequest(string subscriptionId, string resourceGroupName, string workspaceName, ManagedNetworkProvisionContent content) { var message = _pipeline.CreateMessage(); diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/ManagedNetworkSettingsRuleRestOperations.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/ManagedNetworkSettingsRuleRestOperations.cs index b24ef8dcef0a..65449ecc99d8 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/ManagedNetworkSettingsRuleRestOperations.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/ManagedNetworkSettingsRuleRestOperations.cs @@ -37,6 +37,21 @@ public ManagedNetworkSettingsRuleRestOperations(HttpPipeline pipeline, string ap _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string workspaceName) + { + 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.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/outboundRules", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response List(string subscriptionId, string resou } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string ruleName) + { + 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.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/outboundRules/", false); + uri.AppendPath(ruleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string workspaceName, string ruleName) { var message = _pipeline.CreateMessage(); @@ -194,6 +225,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string w } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string ruleName) + { + 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.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/outboundRules/", false); + uri.AppendPath(ruleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName, string ruleName) { var message = _pipeline.CreateMessage(); @@ -282,6 +329,22 @@ public Response Get(string subscriptionId, } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string ruleName, MachineLearningOutboundRuleBasicData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/outboundRules/", false); + uri.AppendPath(ruleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string ruleName, MachineLearningOutboundRuleBasicData data) { var message = _pipeline.CreateMessage(); @@ -366,6 +429,14 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/ModelContainersRestOperations.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/ModelContainersRestOperations.cs index 1894153b7ec7..fcadaf003263 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/ModelContainersRestOperations.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/ModelContainersRestOperations.cs @@ -37,6 +37,33 @@ public ModelContainersRestOperations(HttpPipeline pipeline, string applicationId _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string skip, int? count, MachineLearningListViewType? listViewType) + { + 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.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/models", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (skip != null) + { + uri.AppendQuery("$skip", skip, true); + } + if (count != null) + { + uri.AppendQuery("count", count.Value, true); + } + if (listViewType != null) + { + uri.AppendQuery("listViewType", listViewType.Value.ToString(), true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string workspaceName, string skip, int? count, MachineLearningListViewType? listViewType) { var message = _pipeline.CreateMessage(); @@ -134,6 +161,22 @@ public Response List(string subscripti } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string name) + { + 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.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/models/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string workspaceName, string name) { var message = _pipeline.CreateMessage(); @@ -210,6 +253,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string w } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string name) + { + 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.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/models/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName, string name) { var message = _pipeline.CreateMessage(); @@ -298,6 +357,22 @@ public Response Get(string subscriptionId, st } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string name, MachineLearningModelContainerData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/models/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string name, MachineLearningModelContainerData data) { var message = _pipeline.CreateMessage(); @@ -392,6 +467,14 @@ public Response CreateOrUpdate(string subscri } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string skip, int? count, MachineLearningListViewType? listViewType) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string skip, int? count, MachineLearningListViewType? listViewType) { var message = _pipeline.CreateMessage(); diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/ModelVersionsRestOperations.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/ModelVersionsRestOperations.cs index f9792db94521..f7c48f6c9a75 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/ModelVersionsRestOperations.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/ModelVersionsRestOperations.cs @@ -37,6 +37,67 @@ public ModelVersionsRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string name, string skip, string orderBy, int? top, string version, string description, int? offset, string tags, string properties, string feed, MachineLearningListViewType? listViewType, string stage) + { + 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.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/models/", false); + uri.AppendPath(name, true); + uri.AppendPath("/versions", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (skip != null) + { + uri.AppendQuery("$skip", skip, true); + } + if (orderBy != null) + { + uri.AppendQuery("$orderBy", orderBy, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (version != null) + { + uri.AppendQuery("version", version, true); + } + if (description != null) + { + uri.AppendQuery("description", description, true); + } + if (offset != null) + { + uri.AppendQuery("offset", offset.Value, true); + } + if (tags != null) + { + uri.AppendQuery("tags", tags, true); + } + if (properties != null) + { + uri.AppendQuery("properties", properties, true); + } + if (feed != null) + { + uri.AppendQuery("feed", feed, true); + } + if (listViewType != null) + { + uri.AppendQuery("listViewType", listViewType.Value.ToString(), true); + } + if (stage != null) + { + uri.AppendQuery("stage", stage, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string workspaceName, string name, string skip, string orderBy, int? top, string version, string description, int? offset, string tags, string properties, string feed, MachineLearningListViewType? listViewType, string stage) { var message = _pipeline.CreateMessage(); @@ -188,6 +249,24 @@ public Response List(string subscription } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version) + { + 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.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/models/", false); + uri.AppendPath(name, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(version, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version) { var message = _pipeline.CreateMessage(); @@ -270,6 +349,24 @@ public Response Delete(string subscriptionId, string resourceGroupName, string w } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version) + { + 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.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/models/", false); + uri.AppendPath(name, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(version, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version) { var message = _pipeline.CreateMessage(); @@ -364,6 +461,24 @@ public Response Get(string subscriptionId, stri } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version, MachineLearningModelVersionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/models/", false); + uri.AppendPath(name, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(version, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version, MachineLearningModelVersionData data) { var message = _pipeline.CreateMessage(); @@ -464,6 +579,25 @@ public Response CreateOrUpdate(string subscript } } + internal RequestUriBuilder CreatePackageRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version, ModelPackageContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/models/", false); + uri.AppendPath(name, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(version, true); + uri.AppendPath("/package", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreatePackageRequest(string subscriptionId, string resourceGroupName, string workspaceName, string name, string version, ModelPackageContent content) { var message = _pipeline.CreateMessage(); @@ -555,6 +689,14 @@ public Response Package(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string name, string skip, string orderBy, int? top, string version, string description, int? offset, string tags, string properties, string feed, MachineLearningListViewType? listViewType, string stage) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string name, string skip, string orderBy, int? top, string version, string description, int? offset, string tags, string properties, string feed, MachineLearningListViewType? listViewType, string stage) { var message = _pipeline.CreateMessage(); diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/OnlineDeploymentsRestOperations.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/OnlineDeploymentsRestOperations.cs index b02db4f157e9..218c00fef248 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/OnlineDeploymentsRestOperations.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/OnlineDeploymentsRestOperations.cs @@ -37,6 +37,35 @@ public OnlineDeploymentsRestOperations(HttpPipeline pipeline, string application _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string endpointName, string orderBy, int? top, string skip) + { + 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.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/onlineEndpoints/", false); + uri.AppendPath(endpointName, true); + uri.AppendPath("/deployments", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (orderBy != null) + { + uri.AppendQuery("$orderBy", orderBy, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skip != null) + { + uri.AppendQuery("$skip", skip, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string workspaceName, string endpointName, string orderBy, int? top, string skip) { var message = _pipeline.CreateMessage(); @@ -140,6 +169,24 @@ public Response List(string s } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string endpointName, string deploymentName) + { + 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.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/onlineEndpoints/", false); + uri.AppendPath(endpointName, true); + uri.AppendPath("/deployments/", false); + uri.AppendPath(deploymentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string workspaceName, string endpointName, string deploymentName) { var message = _pipeline.CreateMessage(); @@ -224,6 +271,24 @@ public Response Delete(string subscriptionId, string resourceGroupName, string w } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string endpointName, string deploymentName) + { + 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.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/onlineEndpoints/", false); + uri.AppendPath(endpointName, true); + uri.AppendPath("/deployments/", false); + uri.AppendPath(deploymentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName, string endpointName, string deploymentName) { var message = _pipeline.CreateMessage(); @@ -318,6 +383,24 @@ public Response Get(string subscriptionId, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string endpointName, string deploymentName, MachineLearningOnlineDeploymentPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/onlineEndpoints/", false); + uri.AppendPath(endpointName, true); + uri.AppendPath("/deployments/", false); + uri.AppendPath(deploymentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string endpointName, string deploymentName, MachineLearningOnlineDeploymentPatch patch) { var message = _pipeline.CreateMessage(); @@ -408,6 +491,24 @@ public Response Update(string subscriptionId, string resourceGroupName, string w } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string endpointName, string deploymentName, MachineLearningOnlineDeploymentData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/onlineEndpoints/", false); + uri.AppendPath(endpointName, true); + uri.AppendPath("/deployments/", false); + uri.AppendPath(deploymentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string endpointName, string deploymentName, MachineLearningOnlineDeploymentData data) { var message = _pipeline.CreateMessage(); @@ -498,6 +599,25 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateGetLogsRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string endpointName, string deploymentName, MachineLearningDeploymentLogsContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/onlineEndpoints/", false); + uri.AppendPath(endpointName, true); + uri.AppendPath("/deployments/", false); + uri.AppendPath(deploymentName, true); + uri.AppendPath("/getLogs", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetLogsRequest(string subscriptionId, string resourceGroupName, string workspaceName, string endpointName, string deploymentName, MachineLearningDeploymentLogsContent content) { var message = _pipeline.CreateMessage(); @@ -597,6 +717,33 @@ public Response GetLogs(string subscriptionId, st } } + internal RequestUriBuilder CreateListSkusRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string endpointName, string deploymentName, int? count, string skip) + { + 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.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/onlineEndpoints/", false); + uri.AppendPath(endpointName, true); + uri.AppendPath("/deployments/", false); + uri.AppendPath(deploymentName, true); + uri.AppendPath("/skus", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (count != null) + { + uri.AppendQuery("count", count.Value, true); + } + if (skip != null) + { + uri.AppendQuery("$skip", skip, true); + } + return uri; + } + internal HttpMessage CreateListSkusRequest(string subscriptionId, string resourceGroupName, string workspaceName, string endpointName, string deploymentName, int? count, string skip) { var message = _pipeline.CreateMessage(); @@ -700,6 +847,14 @@ public Response ListSkus(string subscriptionId, s } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string endpointName, string orderBy, int? top, string skip) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string endpointName, string orderBy, int? top, string skip) { var message = _pipeline.CreateMessage(); @@ -786,6 +941,14 @@ public Response ListNextPage( } } + internal RequestUriBuilder CreateListSkusNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string endpointName, string deploymentName, int? count, string skip) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListSkusNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string endpointName, string deploymentName, int? count, string skip) { var message = _pipeline.CreateMessage(); diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/OnlineEndpointsRestOperations.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/OnlineEndpointsRestOperations.cs index 1855d9af4735..7f84bb44ef6b 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/OnlineEndpointsRestOperations.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/OnlineEndpointsRestOperations.cs @@ -37,6 +37,49 @@ public OnlineEndpointsRestOperations(HttpPipeline pipeline, string applicationId _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string name, int? count, MachineLearningEndpointComputeType? computeType, string skip, string tags, string properties, MachineLearningOrderString? orderBy) + { + 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.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/onlineEndpoints", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (name != null) + { + uri.AppendQuery("name", name, true); + } + if (count != null) + { + uri.AppendQuery("count", count.Value, true); + } + if (computeType != null) + { + uri.AppendQuery("computeType", computeType.Value.ToString(), true); + } + if (skip != null) + { + uri.AppendQuery("$skip", skip, true); + } + if (tags != null) + { + uri.AppendQuery("tags", tags, true); + } + if (properties != null) + { + uri.AppendQuery("properties", properties, true); + } + if (orderBy != null) + { + uri.AppendQuery("orderBy", orderBy.Value.ToString(), true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string workspaceName, string name, int? count, MachineLearningEndpointComputeType? computeType, string skip, string tags, string properties, MachineLearningOrderString? orderBy) { var message = _pipeline.CreateMessage(); @@ -158,6 +201,22 @@ public Response List(string sub } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string endpointName) + { + 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.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/onlineEndpoints/", false); + uri.AppendPath(endpointName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string workspaceName, string endpointName) { var message = _pipeline.CreateMessage(); @@ -236,6 +295,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string w } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string endpointName) + { + 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.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/onlineEndpoints/", false); + uri.AppendPath(endpointName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName, string endpointName) { var message = _pipeline.CreateMessage(); @@ -324,6 +399,22 @@ public Response Get(string subscriptionId, st } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string endpointName, MachineLearningResourcePatchWithIdentity body) + { + 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.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/onlineEndpoints/", false); + uri.AppendPath(endpointName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string endpointName, MachineLearningResourcePatchWithIdentity body) { var message = _pipeline.CreateMessage(); @@ -408,6 +499,22 @@ public Response Update(string subscriptionId, string resourceGroupName, string w } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string endpointName, MachineLearningOnlineEndpointData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/onlineEndpoints/", false); + uri.AppendPath(endpointName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string endpointName, MachineLearningOnlineEndpointData data) { var message = _pipeline.CreateMessage(); @@ -492,6 +599,23 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateListKeysRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string endpointName) + { + 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.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/onlineEndpoints/", false); + uri.AppendPath(endpointName, true); + uri.AppendPath("/listKeys", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListKeysRequest(string subscriptionId, string resourceGroupName, string workspaceName, string endpointName) { var message = _pipeline.CreateMessage(); @@ -577,6 +701,23 @@ public Response ListKeys(string subscriptionId, } } + internal RequestUriBuilder CreateRegenerateKeysRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string endpointName, MachineLearningEndpointKeyRegenerateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/onlineEndpoints/", false); + uri.AppendPath(endpointName, true); + uri.AppendPath("/regenerateKeys", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRegenerateKeysRequest(string subscriptionId, string resourceGroupName, string workspaceName, string endpointName, MachineLearningEndpointKeyRegenerateContent content) { var message = _pipeline.CreateMessage(); @@ -662,6 +803,23 @@ public Response RegenerateKeys(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateGetTokenRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string endpointName) + { + 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.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/onlineEndpoints/", false); + uri.AppendPath(endpointName, true); + uri.AppendPath("/token", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetTokenRequest(string subscriptionId, string resourceGroupName, string workspaceName, string endpointName) { var message = _pipeline.CreateMessage(); @@ -747,6 +905,14 @@ public Response GetToken(string subscriptionId } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string name, int? count, MachineLearningEndpointComputeType? computeType, string skip, string tags, string properties, MachineLearningOrderString? orderBy) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string name, int? count, MachineLearningEndpointComputeType? computeType, string skip, string tags, string properties, MachineLearningOrderString? orderBy) { var message = _pipeline.CreateMessage(); diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs index f4815068568a..74ca36ffb65a 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs @@ -37,6 +37,21 @@ public PrivateEndpointConnectionsRestOperations(HttpPipeline pipeline, string ap _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string workspaceName) + { + 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.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/privateEndpointConnections", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response List(string } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string privateEndpointConnectionName) + { + 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.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string workspaceName, string privateEndpointConnectionName) { var message = _pipeline.CreateMessage(); @@ -192,6 +223,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string w } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string privateEndpointConnectionName) + { + 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.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName, string privateEndpointConnectionName) { var message = _pipeline.CreateMessage(); @@ -280,6 +327,22 @@ public Response Get(string subscri } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string privateEndpointConnectionName, MachineLearningPrivateEndpointConnectionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string privateEndpointConnectionName, MachineLearningPrivateEndpointConnectionData data) { var message = _pipeline.CreateMessage(); diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs index a62b50c0eb5c..af92f8557ab2 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs @@ -37,6 +37,21 @@ public PrivateLinkResourcesRestOperations(HttpPipeline pipeline, string applicat _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string workspaceName) + { + 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.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/privateLinkResources", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/QuotasRestOperations.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/QuotasRestOperations.cs index 754746dbb8e2..01dee32235ee 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/QuotasRestOperations.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/QuotasRestOperations.cs @@ -37,6 +37,19 @@ public QuotasRestOperations(HttpPipeline pipeline, string applicationId, Uri end _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, AzureLocation location, MachineLearningQuotaUpdateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/updateQuotas", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, AzureLocation location, MachineLearningQuotaUpdateContent content) { var message = _pipeline.CreateMessage(); @@ -116,6 +129,19 @@ public Response Update(string subscriptionId, Azure } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, AzureLocation location) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/quotas", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, AzureLocation location) { var message = _pipeline.CreateMessage(); @@ -187,6 +213,14 @@ public Response List(string subscriptionId, AzureLocation l } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, AzureLocation location) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, AzureLocation location) { var message = _pipeline.CreateMessage(); diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/RegistriesRestOperations.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/RegistriesRestOperations.cs index 836ce3d80488..fecc01b80672 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/RegistriesRestOperations.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/RegistriesRestOperations.cs @@ -37,6 +37,17 @@ public RegistriesRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/registries", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,19 @@ public Response ListBySubscription(st } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName) + { + 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.MachineLearningServices/registries", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -177,6 +201,20 @@ public Response List(string subscript } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string registryName) + { + 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.MachineLearningServices/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string registryName) { var message = _pipeline.CreateMessage(); @@ -249,6 +287,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string registryName) + { + 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.MachineLearningServices/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string registryName) { var message = _pipeline.CreateMessage(); @@ -331,6 +383,20 @@ public Response Get(string subscriptionId, string r } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string registryName, MachineLearningRegistryPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string registryName, MachineLearningRegistryPatch patch) { var message = _pipeline.CreateMessage(); @@ -417,6 +483,20 @@ public Response Update(string subscriptionId, strin } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string registryName, MachineLearningRegistryData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string registryName, MachineLearningRegistryData data) { var message = _pipeline.CreateMessage(); @@ -495,6 +575,21 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateRemoveRegionsRequestUri(string subscriptionId, string resourceGroupName, string registryName, MachineLearningRegistryData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/removeRegions", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRemoveRegionsRequest(string subscriptionId, string resourceGroupName, string registryName, MachineLearningRegistryData data) { var message = _pipeline.CreateMessage(); @@ -574,6 +669,14 @@ public Response RemoveRegions(string subscriptionId, string resourceGroupName, s } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -642,6 +745,14 @@ public Response ListBySubscriptionNex } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/RegistryCodeContainersRestOperations.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/RegistryCodeContainersRestOperations.cs index 2b6ad62d16ae..2f63b90e5fcb 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/RegistryCodeContainersRestOperations.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/RegistryCodeContainersRestOperations.cs @@ -37,6 +37,25 @@ public RegistryCodeContainersRestOperations(HttpPipeline pipeline, string applic _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string registryName, string skip) + { + 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.MachineLearningServices/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/codes", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (skip != null) + { + uri.AppendQuery("$skip", skip, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string registryName, string skip) { var message = _pipeline.CreateMessage(); @@ -122,6 +141,22 @@ public Response List(string subscriptio } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string registryName, string codeName) + { + 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.MachineLearningServices/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/codes/", false); + uri.AppendPath(codeName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string registryName, string codeName) { var message = _pipeline.CreateMessage(); @@ -200,6 +235,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string registryName, string codeName) + { + 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.MachineLearningServices/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/codes/", false); + uri.AppendPath(codeName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string registryName, string codeName) { var message = _pipeline.CreateMessage(); @@ -288,6 +339,22 @@ public Response Get(string subscriptionId, str } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string registryName, string codeName, MachineLearningCodeContainerData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/codes/", false); + uri.AppendPath(codeName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string registryName, string codeName, MachineLearningCodeContainerData data) { var message = _pipeline.CreateMessage(); @@ -372,6 +439,14 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string registryName, string skip) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string registryName, string skip) { var message = _pipeline.CreateMessage(); diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/RegistryCodeVersionsRestOperations.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/RegistryCodeVersionsRestOperations.cs index 2b64dcca6897..ad07edc14e8c 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/RegistryCodeVersionsRestOperations.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/RegistryCodeVersionsRestOperations.cs @@ -37,6 +37,35 @@ public RegistryCodeVersionsRestOperations(HttpPipeline pipeline, string applicat _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string registryName, string codeName, string orderBy, int? top, string skip) + { + 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.MachineLearningServices/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/codes/", false); + uri.AppendPath(codeName, true); + uri.AppendPath("/versions", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (orderBy != null) + { + uri.AppendQuery("$orderBy", orderBy, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skip != null) + { + uri.AppendQuery("$skip", skip, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string registryName, string codeName, string orderBy, int? top, string skip) { var message = _pipeline.CreateMessage(); @@ -140,6 +169,24 @@ public Response List(string subscriptionI } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string registryName, string codeName, string version) + { + 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.MachineLearningServices/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/codes/", false); + uri.AppendPath(codeName, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(version, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string registryName, string codeName, string version) { var message = _pipeline.CreateMessage(); @@ -224,6 +271,24 @@ public Response Delete(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string registryName, string codeName, string version) + { + 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.MachineLearningServices/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/codes/", false); + uri.AppendPath(codeName, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(version, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string registryName, string codeName, string version) { var message = _pipeline.CreateMessage(); @@ -318,6 +383,24 @@ public Response Get(string subscriptionId, strin } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string registryName, string codeName, string version, MachineLearningCodeVersionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/codes/", false); + uri.AppendPath(codeName, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(version, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string registryName, string codeName, string version, MachineLearningCodeVersionData data) { var message = _pipeline.CreateMessage(); @@ -408,6 +491,25 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateCreateOrGetStartPendingUploadRequestUri(string subscriptionId, string resourceGroupName, string registryName, string codeName, string version, PendingUploadRequestDto body) + { + 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.MachineLearningServices/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/codes/", false); + uri.AppendPath(codeName, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(version, true); + uri.AppendPath("/startPendingUpload", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrGetStartPendingUploadRequest(string subscriptionId, string resourceGroupName, string registryName, string codeName, string version, PendingUploadRequestDto body) { var message = _pipeline.CreateMessage(); @@ -507,6 +609,14 @@ public Response CreateOrGetStartPendingUpload(string s } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string registryName, string codeName, string orderBy, int? top, string skip) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string registryName, string codeName, string orderBy, int? top, string skip) { var message = _pipeline.CreateMessage(); diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/RegistryComponentContainersRestOperations.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/RegistryComponentContainersRestOperations.cs index a86c0387f41e..4c73d4fb1539 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/RegistryComponentContainersRestOperations.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/RegistryComponentContainersRestOperations.cs @@ -37,6 +37,25 @@ public RegistryComponentContainersRestOperations(HttpPipeline pipeline, string a _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string registryName, string skip) + { + 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.MachineLearningServices/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/components", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (skip != null) + { + uri.AppendQuery("$skip", skip, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string registryName, string skip) { var message = _pipeline.CreateMessage(); @@ -122,6 +141,22 @@ public Response List(string subscr } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string registryName, string componentName) + { + 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.MachineLearningServices/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/components/", false); + uri.AppendPath(componentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string registryName, string componentName) { var message = _pipeline.CreateMessage(); @@ -200,6 +235,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string registryName, string componentName) + { + 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.MachineLearningServices/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/components/", false); + uri.AppendPath(componentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string registryName, string componentName) { var message = _pipeline.CreateMessage(); @@ -288,6 +339,22 @@ public Response Get(string subscriptionId } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string registryName, string componentName, MachineLearningComponentContainerData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/components/", false); + uri.AppendPath(componentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string registryName, string componentName, MachineLearningComponentContainerData data) { var message = _pipeline.CreateMessage(); @@ -372,6 +439,14 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string registryName, string skip) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string registryName, string skip) { var message = _pipeline.CreateMessage(); diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/RegistryComponentVersionsRestOperations.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/RegistryComponentVersionsRestOperations.cs index 573a2dd67ac6..d491ad5e8b30 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/RegistryComponentVersionsRestOperations.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/RegistryComponentVersionsRestOperations.cs @@ -37,6 +37,39 @@ public RegistryComponentVersionsRestOperations(HttpPipeline pipeline, string app _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string registryName, string componentName, string orderBy, int? top, string skip, string stage) + { + 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.MachineLearningServices/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/components/", false); + uri.AppendPath(componentName, true); + uri.AppendPath("/versions", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (orderBy != null) + { + uri.AppendQuery("$orderBy", orderBy, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skip != null) + { + uri.AppendQuery("$skip", skip, true); + } + if (stage != null) + { + uri.AppendQuery("stage", stage, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string registryName, string componentName, string orderBy, int? top, string skip, string stage) { var message = _pipeline.CreateMessage(); @@ -146,6 +179,24 @@ public Response List(string subscrip } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string registryName, string componentName, string version) + { + 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.MachineLearningServices/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/components/", false); + uri.AppendPath(componentName, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(version, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string registryName, string componentName, string version) { var message = _pipeline.CreateMessage(); @@ -230,6 +281,24 @@ public Response Delete(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string registryName, string componentName, string version) + { + 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.MachineLearningServices/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/components/", false); + uri.AppendPath(componentName, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(version, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string registryName, string componentName, string version) { var message = _pipeline.CreateMessage(); @@ -324,6 +393,24 @@ public Response Get(string subscriptionId, } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string registryName, string componentName, string version, MachineLearningComponentVersionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/components/", false); + uri.AppendPath(componentName, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(version, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string registryName, string componentName, string version, MachineLearningComponentVersionData data) { var message = _pipeline.CreateMessage(); @@ -414,6 +501,14 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string registryName, string componentName, string orderBy, int? top, string skip, string stage) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string registryName, string componentName, string orderBy, int? top, string skip, string stage) { var message = _pipeline.CreateMessage(); diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/RegistryDataContainersRestOperations.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/RegistryDataContainersRestOperations.cs index ddfbc3561b72..04f0c7e08593 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/RegistryDataContainersRestOperations.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/RegistryDataContainersRestOperations.cs @@ -37,6 +37,29 @@ public RegistryDataContainersRestOperations(HttpPipeline pipeline, string applic _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string registryName, string skip, MachineLearningListViewType? listViewType) + { + 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.MachineLearningServices/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/data", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (skip != null) + { + uri.AppendQuery("$skip", skip, true); + } + if (listViewType != null) + { + uri.AppendQuery("listViewType", listViewType.Value.ToString(), true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string registryName, string skip, MachineLearningListViewType? listViewType) { var message = _pipeline.CreateMessage(); @@ -128,6 +151,22 @@ public Response List(string subscriptio } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string registryName, string name) + { + 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.MachineLearningServices/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/data/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string registryName, string name) { var message = _pipeline.CreateMessage(); @@ -206,6 +245,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string registryName, string name) + { + 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.MachineLearningServices/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/data/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string registryName, string name) { var message = _pipeline.CreateMessage(); @@ -294,6 +349,22 @@ public Response Get(string subscriptionId, str } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string registryName, string name, MachineLearningDataContainerData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/data/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string registryName, string name, MachineLearningDataContainerData data) { var message = _pipeline.CreateMessage(); @@ -378,6 +449,14 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string registryName, string skip, MachineLearningListViewType? listViewType) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string registryName, string skip, MachineLearningListViewType? listViewType) { var message = _pipeline.CreateMessage(); diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/RegistryDataVersionsRestOperations.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/RegistryDataVersionsRestOperations.cs index 01b7a5076827..b158cec08980 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/RegistryDataVersionsRestOperations.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/RegistryDataVersionsRestOperations.cs @@ -37,6 +37,43 @@ public RegistryDataVersionsRestOperations(HttpPipeline pipeline, string applicat _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string registryName, string name, string orderBy, int? top, string skip, string tags, MachineLearningListViewType? listViewType) + { + 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.MachineLearningServices/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/data/", false); + uri.AppendPath(name, true); + uri.AppendPath("/versions", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (orderBy != null) + { + uri.AppendQuery("$orderBy", orderBy, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skip != null) + { + uri.AppendQuery("$skip", skip, true); + } + if (tags != null) + { + uri.AppendQuery("$tags", tags, true); + } + if (listViewType != null) + { + uri.AppendQuery("listViewType", listViewType.Value.ToString(), true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string registryName, string name, string orderBy, int? top, string skip, string tags, MachineLearningListViewType? listViewType) { var message = _pipeline.CreateMessage(); @@ -158,6 +195,24 @@ public Response List(string subscript } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string registryName, string name, string version) + { + 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.MachineLearningServices/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/data/", false); + uri.AppendPath(name, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(version, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string registryName, string name, string version) { var message = _pipeline.CreateMessage(); @@ -242,6 +297,24 @@ public Response Delete(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string registryName, string name, string version) + { + 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.MachineLearningServices/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/data/", false); + uri.AppendPath(name, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(version, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string registryName, string name, string version) { var message = _pipeline.CreateMessage(); @@ -336,6 +409,24 @@ public Response Get(string subscriptionId, strin } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string registryName, string name, string version, MachineLearningDataVersionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/data/", false); + uri.AppendPath(name, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(version, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string registryName, string name, string version, MachineLearningDataVersionData data) { var message = _pipeline.CreateMessage(); @@ -426,6 +517,25 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateCreateOrGetStartPendingUploadRequestUri(string subscriptionId, string resourceGroupName, string registryName, string name, string version, PendingUploadRequestDto body) + { + 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.MachineLearningServices/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/data/", false); + uri.AppendPath(name, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(version, true); + uri.AppendPath("/startPendingUpload", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrGetStartPendingUploadRequest(string subscriptionId, string resourceGroupName, string registryName, string name, string version, PendingUploadRequestDto body) { var message = _pipeline.CreateMessage(); @@ -525,6 +635,14 @@ public Response CreateOrGetStartPendingUpload(string s } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string registryName, string name, string orderBy, int? top, string skip, string tags, MachineLearningListViewType? listViewType) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string registryName, string name, string orderBy, int? top, string skip, string tags, MachineLearningListViewType? listViewType) { var message = _pipeline.CreateMessage(); diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/RegistryEnvironmentContainersRestOperations.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/RegistryEnvironmentContainersRestOperations.cs index 39f40c62ebfd..5f5c490e16c1 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/RegistryEnvironmentContainersRestOperations.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/RegistryEnvironmentContainersRestOperations.cs @@ -37,6 +37,29 @@ public RegistryEnvironmentContainersRestOperations(HttpPipeline pipeline, string _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string registryName, string skip, MachineLearningListViewType? listViewType) + { + 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.MachineLearningServices/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/environments", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (skip != null) + { + uri.AppendQuery("$skip", skip, true); + } + if (listViewType != null) + { + uri.AppendQuery("listViewType", listViewType.Value.ToString(), true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string registryName, string skip, MachineLearningListViewType? listViewType) { var message = _pipeline.CreateMessage(); @@ -128,6 +151,22 @@ public Response List(string subs } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string registryName, string environmentName) + { + 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.MachineLearningServices/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/environments/", false); + uri.AppendPath(environmentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string registryName, string environmentName) { var message = _pipeline.CreateMessage(); @@ -206,6 +245,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string registryName, string environmentName) + { + 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.MachineLearningServices/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/environments/", false); + uri.AppendPath(environmentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string registryName, string environmentName) { var message = _pipeline.CreateMessage(); @@ -294,6 +349,22 @@ public Response Get(string subscription } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string registryName, string environmentName, MachineLearningEnvironmentContainerData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/environments/", false); + uri.AppendPath(environmentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string registryName, string environmentName, MachineLearningEnvironmentContainerData data) { var message = _pipeline.CreateMessage(); @@ -378,6 +449,14 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string registryName, string skip, MachineLearningListViewType? listViewType) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string registryName, string skip, MachineLearningListViewType? listViewType) { var message = _pipeline.CreateMessage(); diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/RegistryEnvironmentVersionsRestOperations.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/RegistryEnvironmentVersionsRestOperations.cs index 6f7995269aa0..2abcbb2b5990 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/RegistryEnvironmentVersionsRestOperations.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/RegistryEnvironmentVersionsRestOperations.cs @@ -37,6 +37,43 @@ public RegistryEnvironmentVersionsRestOperations(HttpPipeline pipeline, string a _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string registryName, string environmentName, string orderBy, int? top, string skip, MachineLearningListViewType? listViewType, string stage) + { + 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.MachineLearningServices/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/environments/", false); + uri.AppendPath(environmentName, true); + uri.AppendPath("/versions", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (orderBy != null) + { + uri.AppendQuery("$orderBy", orderBy, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skip != null) + { + uri.AppendQuery("$skip", skip, true); + } + if (listViewType != null) + { + uri.AppendQuery("listViewType", listViewType.Value.ToString(), true); + } + if (stage != null) + { + uri.AppendQuery("stage", stage, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string registryName, string environmentName, string orderBy, int? top, string skip, MachineLearningListViewType? listViewType, string stage) { var message = _pipeline.CreateMessage(); @@ -152,6 +189,24 @@ public Response List(string subscr } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string registryName, string environmentName, string version) + { + 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.MachineLearningServices/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/environments/", false); + uri.AppendPath(environmentName, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(version, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string registryName, string environmentName, string version) { var message = _pipeline.CreateMessage(); @@ -236,6 +291,24 @@ public Response Delete(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string registryName, string environmentName, string version) + { + 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.MachineLearningServices/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/environments/", false); + uri.AppendPath(environmentName, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(version, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string registryName, string environmentName, string version) { var message = _pipeline.CreateMessage(); @@ -330,6 +403,24 @@ public Response Get(string subscriptionId } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string registryName, string environmentName, string version, MachineLearningEnvironmentVersionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/environments/", false); + uri.AppendPath(environmentName, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(version, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string registryName, string environmentName, string version, MachineLearningEnvironmentVersionData data) { var message = _pipeline.CreateMessage(); @@ -420,6 +511,14 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string registryName, string environmentName, string orderBy, int? top, string skip, MachineLearningListViewType? listViewType, string stage) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string registryName, string environmentName, string orderBy, int? top, string skip, MachineLearningListViewType? listViewType, string stage) { var message = _pipeline.CreateMessage(); diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/RegistryModelContainersRestOperations.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/RegistryModelContainersRestOperations.cs index ae45fa2925e6..4f5a7e5d8928 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/RegistryModelContainersRestOperations.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/RegistryModelContainersRestOperations.cs @@ -37,6 +37,29 @@ public RegistryModelContainersRestOperations(HttpPipeline pipeline, string appli _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string registryName, string skip, MachineLearningListViewType? listViewType) + { + 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.MachineLearningServices/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/models", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (skip != null) + { + uri.AppendQuery("$skip", skip, true); + } + if (listViewType != null) + { + uri.AppendQuery("listViewType", listViewType.Value.ToString(), true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string registryName, string skip, MachineLearningListViewType? listViewType) { var message = _pipeline.CreateMessage(); @@ -128,6 +151,22 @@ public Response List(string subscripti } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string registryName, string modelName) + { + 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.MachineLearningServices/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/models/", false); + uri.AppendPath(modelName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string registryName, string modelName) { var message = _pipeline.CreateMessage(); @@ -206,6 +245,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string registryName, string modelName) + { + 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.MachineLearningServices/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/models/", false); + uri.AppendPath(modelName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string registryName, string modelName) { var message = _pipeline.CreateMessage(); @@ -294,6 +349,22 @@ public Response Get(string subscriptionId, st } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string registryName, string modelName, MachineLearningModelContainerData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/models/", false); + uri.AppendPath(modelName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string registryName, string modelName, MachineLearningModelContainerData data) { var message = _pipeline.CreateMessage(); @@ -378,6 +449,14 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string registryName, string skip, MachineLearningListViewType? listViewType) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string registryName, string skip, MachineLearningListViewType? listViewType) { var message = _pipeline.CreateMessage(); diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/RegistryModelVersionsRestOperations.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/RegistryModelVersionsRestOperations.cs index 577213bbabd8..a5b9da8d0e1c 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/RegistryModelVersionsRestOperations.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/RegistryModelVersionsRestOperations.cs @@ -37,6 +37,55 @@ public RegistryModelVersionsRestOperations(HttpPipeline pipeline, string applica _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string registryName, string modelName, string skip, string orderBy, int? top, string version, string description, string tags, string properties, MachineLearningListViewType? listViewType) + { + 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.MachineLearningServices/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/models/", false); + uri.AppendPath(modelName, true); + uri.AppendPath("/versions", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (skip != null) + { + uri.AppendQuery("$skip", skip, true); + } + if (orderBy != null) + { + uri.AppendQuery("$orderBy", orderBy, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (version != null) + { + uri.AppendQuery("version", version, true); + } + if (description != null) + { + uri.AppendQuery("description", description, true); + } + if (tags != null) + { + uri.AppendQuery("tags", tags, true); + } + if (properties != null) + { + uri.AppendQuery("properties", properties, true); + } + if (listViewType != null) + { + uri.AppendQuery("listViewType", listViewType.Value.ToString(), true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string registryName, string modelName, string skip, string orderBy, int? top, string version, string description, string tags, string properties, MachineLearningListViewType? listViewType) { var message = _pipeline.CreateMessage(); @@ -170,6 +219,24 @@ public Response List(string subscription } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string registryName, string modelName, string version) + { + 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.MachineLearningServices/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/models/", false); + uri.AppendPath(modelName, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(version, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string registryName, string modelName, string version) { var message = _pipeline.CreateMessage(); @@ -254,6 +321,24 @@ public Response Delete(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string registryName, string modelName, string version) + { + 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.MachineLearningServices/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/models/", false); + uri.AppendPath(modelName, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(version, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string registryName, string modelName, string version) { var message = _pipeline.CreateMessage(); @@ -348,6 +433,24 @@ public Response Get(string subscriptionId, stri } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string registryName, string modelName, string version, MachineLearningModelVersionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/models/", false); + uri.AppendPath(modelName, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(version, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string registryName, string modelName, string version, MachineLearningModelVersionData data) { var message = _pipeline.CreateMessage(); @@ -438,6 +541,25 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreatePackageRequestUri(string subscriptionId, string resourceGroupName, string registryName, string modelName, string version, ModelPackageContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/models/", false); + uri.AppendPath(modelName, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(version, true); + uri.AppendPath("/package", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreatePackageRequest(string subscriptionId, string resourceGroupName, string registryName, string modelName, string version, ModelPackageContent content) { var message = _pipeline.CreateMessage(); @@ -529,6 +651,25 @@ public Response Package(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreateCreateOrGetStartPendingUploadRequestUri(string subscriptionId, string resourceGroupName, string registryName, string modelName, string version, PendingUploadRequestDto body) + { + 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.MachineLearningServices/registries/", false); + uri.AppendPath(registryName, true); + uri.AppendPath("/models/", false); + uri.AppendPath(modelName, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(version, true); + uri.AppendPath("/startPendingUpload", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrGetStartPendingUploadRequest(string subscriptionId, string resourceGroupName, string registryName, string modelName, string version, PendingUploadRequestDto body) { var message = _pipeline.CreateMessage(); @@ -628,6 +769,14 @@ public Response CreateOrGetStartPendingUpload(string s } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string registryName, string modelName, string skip, string orderBy, int? top, string version, string description, string tags, string properties, MachineLearningListViewType? listViewType) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string registryName, string modelName, string skip, string orderBy, int? top, string version, string description, string tags, string properties, MachineLearningListViewType? listViewType) { var message = _pipeline.CreateMessage(); diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/SchedulesRestOperations.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/SchedulesRestOperations.cs index eaf4e35b1b13..c00514714fcb 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/SchedulesRestOperations.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/SchedulesRestOperations.cs @@ -37,6 +37,29 @@ public SchedulesRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string skip, MachineLearningScheduleListViewType? listViewType) + { + 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.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/schedules", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (skip != null) + { + uri.AppendQuery("$skip", skip, true); + } + if (listViewType != null) + { + uri.AppendQuery("listViewType", listViewType.Value.ToString(), true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string workspaceName, string skip, MachineLearningScheduleListViewType? listViewType) { var message = _pipeline.CreateMessage(); @@ -128,6 +151,22 @@ public Response List(string subscriptionId, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string name) + { + 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.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/schedules/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string workspaceName, string name) { var message = _pipeline.CreateMessage(); @@ -206,6 +245,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string w } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string name) + { + 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.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/schedules/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName, string name) { var message = _pipeline.CreateMessage(); @@ -294,6 +349,22 @@ public Response Get(string subscriptionId, string r } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string name, MachineLearningScheduleData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/schedules/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string name, MachineLearningScheduleData data) { var message = _pipeline.CreateMessage(); @@ -378,6 +449,14 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string skip, MachineLearningScheduleListViewType? listViewType) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string skip, MachineLearningScheduleListViewType? listViewType) { var message = _pipeline.CreateMessage(); diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/UsagesRestOperations.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/UsagesRestOperations.cs index 8a6933333d85..facd0d2ed754 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/UsagesRestOperations.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/UsagesRestOperations.cs @@ -37,6 +37,19 @@ public UsagesRestOperations(HttpPipeline pipeline, string applicationId, Uri end _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, AzureLocation location) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/usages", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, AzureLocation location) { var message = _pipeline.CreateMessage(); @@ -108,6 +121,14 @@ public Response List(string subscriptionId, AzureLocation loca } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, AzureLocation location) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, AzureLocation location) { var message = _pipeline.CreateMessage(); diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/VirtualMachineSizesRestOperations.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/VirtualMachineSizesRestOperations.cs index 944e0169bc87..3cb8ed336211 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/VirtualMachineSizesRestOperations.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/VirtualMachineSizesRestOperations.cs @@ -37,6 +37,19 @@ public VirtualMachineSizesRestOperations(HttpPipeline pipeline, string applicati _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, AzureLocation location) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/vmSizes", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, AzureLocation location) { var message = _pipeline.CreateMessage(); diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/WorkspaceConnectionsRestOperations.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/WorkspaceConnectionsRestOperations.cs index b867f83c85de..865bc0c16127 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/WorkspaceConnectionsRestOperations.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/WorkspaceConnectionsRestOperations.cs @@ -37,6 +37,29 @@ public WorkspaceConnectionsRestOperations(HttpPipeline pipeline, string applicat _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string target, string category) + { + 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.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/connections", false); + if (target != null) + { + uri.AppendQuery("target", target, true); + } + if (category != null) + { + uri.AppendQuery("category", category, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string workspaceName, string target, string category) { var message = _pipeline.CreateMessage(); @@ -128,6 +151,22 @@ public Response } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string connectionName) + { + 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.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/connections/", false); + uri.AppendPath(connectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string workspaceName, string connectionName) { var message = _pipeline.CreateMessage(); @@ -204,6 +243,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string w } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string connectionName) + { + 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.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/connections/", false); + uri.AppendPath(connectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName, string connectionName) { var message = _pipeline.CreateMessage(); @@ -292,6 +347,22 @@ public Response Get(string subscriptionI } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string connectionName, MachineLearningWorkspaceConnectionPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/connections/", false); + uri.AppendPath(connectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string connectionName, MachineLearningWorkspaceConnectionPatch patch) { var message = _pipeline.CreateMessage(); @@ -384,6 +455,22 @@ public Response Update(string subscripti } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string connectionName, MachineLearningWorkspaceConnectionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/connections/", false); + uri.AppendPath(connectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string connectionName, MachineLearningWorkspaceConnectionData data) { var message = _pipeline.CreateMessage(); @@ -476,6 +563,23 @@ public Response Create(string subscripti } } + internal RequestUriBuilder CreateListSecretsRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string connectionName) + { + 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.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/connections/", false); + uri.AppendPath(connectionName, true); + uri.AppendPath("/listsecrets", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListSecretsRequest(string subscriptionId, string resourceGroupName, string workspaceName, string connectionName) { var message = _pipeline.CreateMessage(); @@ -561,6 +665,14 @@ public Response ListSecrets(string subsc } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string target, string category) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string target, string category) { var message = _pipeline.CreateMessage(); diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/WorkspaceFeaturesRestOperations.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/WorkspaceFeaturesRestOperations.cs index 4cdec98dd621..7cad8a3a3de2 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/WorkspaceFeaturesRestOperations.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/WorkspaceFeaturesRestOperations.cs @@ -37,6 +37,21 @@ public WorkspaceFeaturesRestOperations(HttpPipeline pipeline, string application _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string workspaceName) + { + 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.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/features", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,14 @@ public Response List(string subscriptionId, string res } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/WorkspacesRestOperations.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/WorkspacesRestOperations.cs index d62e672e023d..5fc91aa493f9 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/WorkspacesRestOperations.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/RestOperations/WorkspacesRestOperations.cs @@ -37,6 +37,25 @@ public WorkspacesRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId, string skip, string kind) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/workspaces", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (skip != null) + { + uri.AppendQuery("$skip", skip, true); + } + if (kind != null) + { + uri.AppendQuery("kind", kind, true); + } + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId, string skip, string kind) { var message = _pipeline.CreateMessage(); @@ -116,6 +135,27 @@ public Response ListBySubscription(string subscriptionId, s } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName, string skip, string kind) + { + 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.MachineLearningServices/workspaces", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (skip != null) + { + uri.AppendQuery("$skip", skip, true); + } + if (kind != null) + { + uri.AppendQuery("kind", kind, true); + } + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName, string skip, string kind) { var message = _pipeline.CreateMessage(); @@ -201,6 +241,24 @@ public Response ListByResourceGroup(string subscriptionId, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, bool? forceToPurge) + { + 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.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + if (forceToPurge != null) + { + uri.AppendQuery("forceToPurge", forceToPurge.Value, true); + } + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string workspaceName, bool? forceToPurge) { var message = _pipeline.CreateMessage(); @@ -279,6 +337,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string w } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workspaceName) + { + 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.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); @@ -361,6 +433,20 @@ public Response Get(string subscriptionId, string } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, MachineLearningWorkspacePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, MachineLearningWorkspacePatch patch) { var message = _pipeline.CreateMessage(); @@ -439,6 +525,20 @@ public Response Update(string subscriptionId, string resourceGroupName, string w } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, MachineLearningWorkspaceData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, MachineLearningWorkspaceData data) { var message = _pipeline.CreateMessage(); @@ -517,6 +617,21 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDiagnoseRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, MachineLearningWorkspaceDiagnoseContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/diagnose", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDiagnoseRequest(string subscriptionId, string resourceGroupName, string workspaceName, MachineLearningWorkspaceDiagnoseContent content) { var message = _pipeline.CreateMessage(); @@ -597,6 +712,21 @@ public Response Diagnose(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreateListKeysRequestUri(string subscriptionId, string resourceGroupName, string workspaceName) + { + 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.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/listKeys", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListKeysRequest(string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); @@ -676,6 +806,21 @@ public Response ListKeys(string subscript } } + internal RequestUriBuilder CreateListNotebookAccessTokenRequestUri(string subscriptionId, string resourceGroupName, string workspaceName) + { + 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.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/listNotebookAccessToken", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListNotebookAccessTokenRequest(string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); @@ -755,6 +900,21 @@ public Response ListNotebookA } } + internal RequestUriBuilder CreateListNotebookKeysRequestUri(string subscriptionId, string resourceGroupName, string workspaceName) + { + 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.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/listNotebookKeys", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListNotebookKeysRequest(string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); @@ -834,6 +994,21 @@ public Response ListNotebookKeys( } } + internal RequestUriBuilder CreateListStorageAccountKeysRequestUri(string subscriptionId, string resourceGroupName, string workspaceName) + { + 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.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/listStorageAccountKeys", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListStorageAccountKeysRequest(string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); @@ -913,6 +1088,21 @@ public Response ListStorage } } + internal RequestUriBuilder CreateListOutboundNetworkDependenciesEndpointsRequestUri(string subscriptionId, string resourceGroupName, string workspaceName) + { + 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.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/outboundNetworkDependenciesEndpoints", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListOutboundNetworkDependenciesEndpointsRequest(string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); @@ -992,6 +1182,21 @@ public Response ListOutboundNetworkDependenciesEndpoints(s } } + internal RequestUriBuilder CreatePrepareNotebookRequestUri(string subscriptionId, string resourceGroupName, string workspaceName) + { + 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.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/prepareNotebook", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreatePrepareNotebookRequest(string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); @@ -1063,6 +1268,21 @@ public Response PrepareNotebook(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateResyncKeysRequestUri(string subscriptionId, string resourceGroupName, string workspaceName) + { + 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.MachineLearningServices/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/resyncKeys", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateResyncKeysRequest(string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); @@ -1134,6 +1354,14 @@ public Response ResyncKeys(string subscriptionId, string resourceGroupName, stri } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId, string skip, string kind) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId, string skip, string kind) { var message = _pipeline.CreateMessage(); @@ -1206,6 +1434,14 @@ public Response ListBySubscriptionNextPage(string nextLink, } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string skip, string kind) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string skip, string kind) { var message = _pipeline.CreateMessage(); diff --git a/sdk/maintenance/Azure.ResourceManager.Maintenance/src/Generated/LongRunningOperation/MaintenanceArmOperation.cs b/sdk/maintenance/Azure.ResourceManager.Maintenance/src/Generated/LongRunningOperation/MaintenanceArmOperation.cs index bb2863bae097..a54fb2a210b9 100644 --- a/sdk/maintenance/Azure.ResourceManager.Maintenance/src/Generated/LongRunningOperation/MaintenanceArmOperation.cs +++ b/sdk/maintenance/Azure.ResourceManager.Maintenance/src/Generated/LongRunningOperation/MaintenanceArmOperation.cs @@ -20,21 +20,24 @@ internal class MaintenanceArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of MaintenanceArmOperation for mocking. protected MaintenanceArmOperation() { } - internal MaintenanceArmOperation(Response response) + internal MaintenanceArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal MaintenanceArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "MaintenanceArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal MaintenanceArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeli public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/maintenance/Azure.ResourceManager.Maintenance/src/Generated/LongRunningOperation/MaintenanceArmOperationOfT.cs b/sdk/maintenance/Azure.ResourceManager.Maintenance/src/Generated/LongRunningOperation/MaintenanceArmOperationOfT.cs index 02a31a0e062e..82eee058558a 100644 --- a/sdk/maintenance/Azure.ResourceManager.Maintenance/src/Generated/LongRunningOperation/MaintenanceArmOperationOfT.cs +++ b/sdk/maintenance/Azure.ResourceManager.Maintenance/src/Generated/LongRunningOperation/MaintenanceArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class MaintenanceArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of MaintenanceArmOperation for mocking. protected MaintenanceArmOperation() { } - internal MaintenanceArmOperation(Response response) + internal MaintenanceArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal MaintenanceArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "MaintenanceArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal MaintenanceArmOperation(IOperationSource source, ClientDiagnostics c public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/maintenance/Azure.ResourceManager.Maintenance/src/Generated/MaintenanceApplyUpdateCollection.cs b/sdk/maintenance/Azure.ResourceManager.Maintenance/src/Generated/MaintenanceApplyUpdateCollection.cs index aa3bb8ea6d97..1f97596fb41c 100644 --- a/sdk/maintenance/Azure.ResourceManager.Maintenance/src/Generated/MaintenanceApplyUpdateCollection.cs +++ b/sdk/maintenance/Azure.ResourceManager.Maintenance/src/Generated/MaintenanceApplyUpdateCollection.cs @@ -94,7 +94,9 @@ public virtual async Task> CreateOr try { var response = await _maintenanceApplyUpdateApplyUpdatesRestClient.CreateOrUpdateOrCancelAsync(Id.SubscriptionId, Id.ResourceGroupName, providerName, resourceType, resourceName, applyUpdateName, data, cancellationToken).ConfigureAwait(false); - var operation = new MaintenanceArmOperation(Response.FromValue(new MaintenanceApplyUpdateResource(Client, response), response.GetRawResponse())); + var uri = _maintenanceApplyUpdateApplyUpdatesRestClient.CreateCreateOrUpdateOrCancelRequestUri(Id.SubscriptionId, Id.ResourceGroupName, providerName, resourceType, resourceName, applyUpdateName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MaintenanceArmOperation(Response.FromValue(new MaintenanceApplyUpdateResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -149,7 +151,9 @@ public virtual ArmOperation CreateOrUpdate(WaitU try { var response = _maintenanceApplyUpdateApplyUpdatesRestClient.CreateOrUpdateOrCancel(Id.SubscriptionId, Id.ResourceGroupName, providerName, resourceType, resourceName, applyUpdateName, data, cancellationToken); - var operation = new MaintenanceArmOperation(Response.FromValue(new MaintenanceApplyUpdateResource(Client, response), response.GetRawResponse())); + var uri = _maintenanceApplyUpdateApplyUpdatesRestClient.CreateCreateOrUpdateOrCancelRequestUri(Id.SubscriptionId, Id.ResourceGroupName, providerName, resourceType, resourceName, applyUpdateName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MaintenanceArmOperation(Response.FromValue(new MaintenanceApplyUpdateResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/maintenance/Azure.ResourceManager.Maintenance/src/Generated/MaintenanceApplyUpdateResource.cs b/sdk/maintenance/Azure.ResourceManager.Maintenance/src/Generated/MaintenanceApplyUpdateResource.cs index 6771aa62b250..b025a11534f1 100644 --- a/sdk/maintenance/Azure.ResourceManager.Maintenance/src/Generated/MaintenanceApplyUpdateResource.cs +++ b/sdk/maintenance/Azure.ResourceManager.Maintenance/src/Generated/MaintenanceApplyUpdateResource.cs @@ -208,7 +208,9 @@ public virtual async Task> UpdateAs try { var response = await _maintenanceApplyUpdateApplyUpdatesRestClient.CreateOrUpdateOrCancelAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.ResourceType.Namespace, Id.Parent.ResourceType.GetLastType(), Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new MaintenanceArmOperation(Response.FromValue(new MaintenanceApplyUpdateResource(Client, response), response.GetRawResponse())); + var uri = _maintenanceApplyUpdateApplyUpdatesRestClient.CreateCreateOrUpdateOrCancelRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.ResourceType.Namespace, Id.Parent.ResourceType.GetLastType(), Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MaintenanceArmOperation(Response.FromValue(new MaintenanceApplyUpdateResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -254,7 +256,9 @@ public virtual ArmOperation Update(WaitUntil wai try { var response = _maintenanceApplyUpdateApplyUpdatesRestClient.CreateOrUpdateOrCancel(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.ResourceType.Namespace, Id.Parent.ResourceType.GetLastType(), Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new MaintenanceArmOperation(Response.FromValue(new MaintenanceApplyUpdateResource(Client, response), response.GetRawResponse())); + var uri = _maintenanceApplyUpdateApplyUpdatesRestClient.CreateCreateOrUpdateOrCancelRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.ResourceType.Namespace, Id.Parent.ResourceType.GetLastType(), Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MaintenanceArmOperation(Response.FromValue(new MaintenanceApplyUpdateResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/maintenance/Azure.ResourceManager.Maintenance/src/Generated/MaintenanceConfigurationCollection.cs b/sdk/maintenance/Azure.ResourceManager.Maintenance/src/Generated/MaintenanceConfigurationCollection.cs index 07f5b5b8992b..c85d50d5c48c 100644 --- a/sdk/maintenance/Azure.ResourceManager.Maintenance/src/Generated/MaintenanceConfigurationCollection.cs +++ b/sdk/maintenance/Azure.ResourceManager.Maintenance/src/Generated/MaintenanceConfigurationCollection.cs @@ -96,7 +96,9 @@ public virtual async Task> Create try { var response = await _maintenanceConfigurationRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, resourceName, data, cancellationToken).ConfigureAwait(false); - var operation = new MaintenanceArmOperation(Response.FromValue(new MaintenanceConfigurationResource(Client, response), response.GetRawResponse())); + var uri = _maintenanceConfigurationRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, resourceName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MaintenanceArmOperation(Response.FromValue(new MaintenanceConfigurationResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -145,7 +147,9 @@ public virtual ArmOperation CreateOrUpdate(Wai try { var response = _maintenanceConfigurationRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, resourceName, data, cancellationToken); - var operation = new MaintenanceArmOperation(Response.FromValue(new MaintenanceConfigurationResource(Client, response), response.GetRawResponse())); + var uri = _maintenanceConfigurationRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, resourceName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MaintenanceArmOperation(Response.FromValue(new MaintenanceConfigurationResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/maintenance/Azure.ResourceManager.Maintenance/src/Generated/Models/MaintenanceApplyUpdateResource.Serialization.cs b/sdk/maintenance/Azure.ResourceManager.Maintenance/src/Generated/Models/MaintenanceApplyUpdateResource.Serialization.cs new file mode 100644 index 000000000000..f77dcadb60a5 --- /dev/null +++ b/sdk/maintenance/Azure.ResourceManager.Maintenance/src/Generated/Models/MaintenanceApplyUpdateResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Maintenance +{ + public partial class MaintenanceApplyUpdateResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MaintenanceApplyUpdateData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MaintenanceApplyUpdateData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/maintenance/Azure.ResourceManager.Maintenance/src/Generated/Models/MaintenanceConfigurationResource.Serialization.cs b/sdk/maintenance/Azure.ResourceManager.Maintenance/src/Generated/Models/MaintenanceConfigurationResource.Serialization.cs new file mode 100644 index 000000000000..1db2f46dfa21 --- /dev/null +++ b/sdk/maintenance/Azure.ResourceManager.Maintenance/src/Generated/Models/MaintenanceConfigurationResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Maintenance +{ + public partial class MaintenanceConfigurationResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MaintenanceConfigurationData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MaintenanceConfigurationData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/maintenance/Azure.ResourceManager.Maintenance/src/Generated/Models/MaintenancePublicConfigurationResource.Serialization.cs b/sdk/maintenance/Azure.ResourceManager.Maintenance/src/Generated/Models/MaintenancePublicConfigurationResource.Serialization.cs new file mode 100644 index 000000000000..d24699a745bf --- /dev/null +++ b/sdk/maintenance/Azure.ResourceManager.Maintenance/src/Generated/Models/MaintenancePublicConfigurationResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Maintenance +{ + public partial class MaintenancePublicConfigurationResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MaintenanceConfigurationData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MaintenanceConfigurationData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/maintenance/Azure.ResourceManager.Maintenance/src/Generated/RestOperations/ApplyUpdateForResourceGroupRestOperations.cs b/sdk/maintenance/Azure.ResourceManager.Maintenance/src/Generated/RestOperations/ApplyUpdateForResourceGroupRestOperations.cs index d8ba821b0ee4..d8191cb1586e 100644 --- a/sdk/maintenance/Azure.ResourceManager.Maintenance/src/Generated/RestOperations/ApplyUpdateForResourceGroupRestOperations.cs +++ b/sdk/maintenance/Azure.ResourceManager.Maintenance/src/Generated/RestOperations/ApplyUpdateForResourceGroupRestOperations.cs @@ -37,6 +37,19 @@ public ApplyUpdateForResourceGroupRestOperations(HttpPipeline pipeline, string a _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName) + { + 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.Maintenance/applyUpdates", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/maintenance/Azure.ResourceManager.Maintenance/src/Generated/RestOperations/ApplyUpdatesRestOperations.cs b/sdk/maintenance/Azure.ResourceManager.Maintenance/src/Generated/RestOperations/ApplyUpdatesRestOperations.cs index 584fd137eba8..f6c1b681ead7 100644 --- a/sdk/maintenance/Azure.ResourceManager.Maintenance/src/Generated/RestOperations/ApplyUpdatesRestOperations.cs +++ b/sdk/maintenance/Azure.ResourceManager.Maintenance/src/Generated/RestOperations/ApplyUpdatesRestOperations.cs @@ -37,6 +37,30 @@ public ApplyUpdatesRestOperations(HttpPipeline pipeline, string applicationId, U _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetParentRequestUri(string subscriptionId, string resourceGroupName, string providerName, string resourceParentType, string resourceParentName, string resourceType, string resourceName, string applyUpdateName) + { + 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/", false); + uri.AppendPath(providerName, true); + uri.AppendPath("/", false); + uri.AppendPath(resourceParentType, true); + uri.AppendPath("/", false); + uri.AppendPath(resourceParentName, true); + uri.AppendPath("/", false); + uri.AppendPath(resourceType, true); + uri.AppendPath("/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/providers/Microsoft.Maintenance/applyUpdates/", false); + uri.AppendPath(applyUpdateName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetParentRequest(string subscriptionId, string resourceGroupName, string providerName, string resourceParentType, string resourceParentName, string resourceType, string resourceName, string applyUpdateName) { var message = _pipeline.CreateMessage(); @@ -145,6 +169,26 @@ public Response GetParent(string subscriptionId, str } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string providerName, string resourceType, string resourceName, string applyUpdateName) + { + 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/", false); + uri.AppendPath(providerName, true); + uri.AppendPath("/", false); + uri.AppendPath(resourceType, true); + uri.AppendPath("/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/providers/Microsoft.Maintenance/applyUpdates/", false); + uri.AppendPath(applyUpdateName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string providerName, string resourceType, string resourceName, string applyUpdateName) { var message = _pipeline.CreateMessage(); @@ -245,6 +289,26 @@ public Response Get(string subscriptionId, string re } } + internal RequestUriBuilder CreateCreateOrUpdateOrCancelRequestUri(string subscriptionId, string resourceGroupName, string providerName, string resourceType, string resourceName, string applyUpdateName, MaintenanceApplyUpdateData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourcegroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/", false); + uri.AppendPath(providerName, true); + uri.AppendPath("/", false); + uri.AppendPath(resourceType, true); + uri.AppendPath("/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/providers/Microsoft.Maintenance/applyUpdates/", false); + uri.AppendPath(applyUpdateName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateOrCancelRequest(string subscriptionId, string resourceGroupName, string providerName, string resourceType, string resourceName, string applyUpdateName, MaintenanceApplyUpdateData data) { var message = _pipeline.CreateMessage(); @@ -351,6 +415,29 @@ public Response CreateOrUpdateOrCancel(string subscr } } + internal RequestUriBuilder CreateCreateOrUpdateParentRequestUri(string subscriptionId, string resourceGroupName, string providerName, string resourceParentType, string resourceParentName, string resourceType, string resourceName) + { + 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/", false); + uri.AppendPath(providerName, true); + uri.AppendPath("/", false); + uri.AppendPath(resourceParentType, true); + uri.AppendPath("/", false); + uri.AppendPath(resourceParentName, true); + uri.AppendPath("/", false); + uri.AppendPath(resourceType, true); + uri.AppendPath("/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/providers/Microsoft.Maintenance/applyUpdates/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateParentRequest(string subscriptionId, string resourceGroupName, string providerName, string resourceParentType, string resourceParentName, string resourceType, string resourceName) { var message = _pipeline.CreateMessage(); @@ -456,6 +543,25 @@ public Response CreateOrUpdateParent(string subscrip } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string providerName, string resourceType, string resourceName) + { + 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/", false); + uri.AppendPath(providerName, true); + uri.AppendPath("/", false); + uri.AppendPath(resourceType, true); + uri.AppendPath("/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/providers/Microsoft.Maintenance/applyUpdates/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string providerName, string resourceType, string resourceName) { var message = _pipeline.CreateMessage(); @@ -549,6 +655,17 @@ public Response CreateOrUpdate(string subscriptionId } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Maintenance/applyUpdates", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/maintenance/Azure.ResourceManager.Maintenance/src/Generated/RestOperations/ConfigurationAssignmentsForResourceGroupRestOperations.cs b/sdk/maintenance/Azure.ResourceManager.Maintenance/src/Generated/RestOperations/ConfigurationAssignmentsForResourceGroupRestOperations.cs index 0cff7917356a..6b8ed58855f6 100644 --- a/sdk/maintenance/Azure.ResourceManager.Maintenance/src/Generated/RestOperations/ConfigurationAssignmentsForResourceGroupRestOperations.cs +++ b/sdk/maintenance/Azure.ResourceManager.Maintenance/src/Generated/RestOperations/ConfigurationAssignmentsForResourceGroupRestOperations.cs @@ -37,6 +37,20 @@ public ConfigurationAssignmentsForResourceGroupRestOperations(HttpPipeline pipel _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string configurationAssignmentName) + { + 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.Maintenance/configurationAssignments/", false); + uri.AppendPath(configurationAssignmentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string configurationAssignmentName) { var message = _pipeline.CreateMessage(); @@ -115,6 +129,20 @@ public Response Get(string subscriptionI } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string configurationAssignmentName, MaintenanceConfigurationAssignmentData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourcegroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Maintenance/configurationAssignments/", false); + uri.AppendPath(configurationAssignmentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string configurationAssignmentName, MaintenanceConfigurationAssignmentData data) { var message = _pipeline.CreateMessage(); @@ -203,6 +231,20 @@ public Response CreateOrUpdate(string su } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string configurationAssignmentName, MaintenanceConfigurationAssignmentData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourcegroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Maintenance/configurationAssignments/", false); + uri.AppendPath(configurationAssignmentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string configurationAssignmentName, MaintenanceConfigurationAssignmentData data) { var message = _pipeline.CreateMessage(); @@ -289,6 +331,20 @@ public Response Update(string subscripti } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string configurationAssignmentName) + { + 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.Maintenance/configurationAssignments/", false); + uri.AppendPath(configurationAssignmentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string configurationAssignmentName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/maintenance/Azure.ResourceManager.Maintenance/src/Generated/RestOperations/ConfigurationAssignmentsForSubscriptionsRestOperations.cs b/sdk/maintenance/Azure.ResourceManager.Maintenance/src/Generated/RestOperations/ConfigurationAssignmentsForSubscriptionsRestOperations.cs index a5120a16eab4..6d7a24704d62 100644 --- a/sdk/maintenance/Azure.ResourceManager.Maintenance/src/Generated/RestOperations/ConfigurationAssignmentsForSubscriptionsRestOperations.cs +++ b/sdk/maintenance/Azure.ResourceManager.Maintenance/src/Generated/RestOperations/ConfigurationAssignmentsForSubscriptionsRestOperations.cs @@ -37,6 +37,18 @@ public ConfigurationAssignmentsForSubscriptionsRestOperations(HttpPipeline pipel _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string configurationAssignmentName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Maintenance/configurationAssignments/", false); + uri.AppendPath(configurationAssignmentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string configurationAssignmentName) { var message = _pipeline.CreateMessage(); @@ -109,6 +121,18 @@ public Response Get(string subscriptionI } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string configurationAssignmentName, MaintenanceConfigurationAssignmentData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Maintenance/configurationAssignments/", false); + uri.AppendPath(configurationAssignmentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string configurationAssignmentName, MaintenanceConfigurationAssignmentData data) { var message = _pipeline.CreateMessage(); @@ -191,6 +215,18 @@ public Response CreateOrUpdate(string su } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string configurationAssignmentName, MaintenanceConfigurationAssignmentData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Maintenance/configurationAssignments/", false); + uri.AppendPath(configurationAssignmentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string configurationAssignmentName, MaintenanceConfigurationAssignmentData data) { var message = _pipeline.CreateMessage(); @@ -271,6 +307,18 @@ public Response Update(string subscripti } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string configurationAssignmentName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Maintenance/configurationAssignments/", false); + uri.AppendPath(configurationAssignmentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string configurationAssignmentName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/maintenance/Azure.ResourceManager.Maintenance/src/Generated/RestOperations/ConfigurationAssignmentsRestOperations.cs b/sdk/maintenance/Azure.ResourceManager.Maintenance/src/Generated/RestOperations/ConfigurationAssignmentsRestOperations.cs index b8721d68b7ed..eba0acf2bc7b 100644 --- a/sdk/maintenance/Azure.ResourceManager.Maintenance/src/Generated/RestOperations/ConfigurationAssignmentsRestOperations.cs +++ b/sdk/maintenance/Azure.ResourceManager.Maintenance/src/Generated/RestOperations/ConfigurationAssignmentsRestOperations.cs @@ -37,6 +37,30 @@ public ConfigurationAssignmentsRestOperations(HttpPipeline pipeline, string appl _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetParentRequestUri(string subscriptionId, string resourceGroupName, string providerName, string resourceParentType, string resourceParentName, string resourceType, string resourceName, string configurationAssignmentName) + { + 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/", false); + uri.AppendPath(providerName, true); + uri.AppendPath("/", false); + uri.AppendPath(resourceParentType, true); + uri.AppendPath("/", false); + uri.AppendPath(resourceParentName, true); + uri.AppendPath("/", false); + uri.AppendPath(resourceType, true); + uri.AppendPath("/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/providers/Microsoft.Maintenance/configurationAssignments/", false); + uri.AppendPath(configurationAssignmentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetParentRequest(string subscriptionId, string resourceGroupName, string providerName, string resourceParentType, string resourceParentName, string resourceType, string resourceName, string configurationAssignmentName) { var message = _pipeline.CreateMessage(); @@ -145,6 +169,30 @@ public Response GetParent(string subscri } } + internal RequestUriBuilder CreateCreateOrUpdateParentRequestUri(string subscriptionId, string resourceGroupName, string providerName, string resourceParentType, string resourceParentName, string resourceType, string resourceName, string configurationAssignmentName, MaintenanceConfigurationAssignmentData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourcegroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/", false); + uri.AppendPath(providerName, true); + uri.AppendPath("/", false); + uri.AppendPath(resourceParentType, true); + uri.AppendPath("/", false); + uri.AppendPath(resourceParentName, true); + uri.AppendPath("/", false); + uri.AppendPath(resourceType, true); + uri.AppendPath("/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/providers/Microsoft.Maintenance/configurationAssignments/", false); + uri.AppendPath(configurationAssignmentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateParentRequest(string subscriptionId, string resourceGroupName, string providerName, string resourceParentType, string resourceParentName, string resourceType, string resourceName, string configurationAssignmentName, MaintenanceConfigurationAssignmentData data) { var message = _pipeline.CreateMessage(); @@ -263,6 +311,30 @@ public Response CreateOrUpdateParent(str } } + internal RequestUriBuilder CreateDeleteParentRequestUri(string subscriptionId, string resourceGroupName, string providerName, string resourceParentType, string resourceParentName, string resourceType, string resourceName, string configurationAssignmentName) + { + 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/", false); + uri.AppendPath(providerName, true); + uri.AppendPath("/", false); + uri.AppendPath(resourceParentType, true); + uri.AppendPath("/", false); + uri.AppendPath(resourceParentName, true); + uri.AppendPath("/", false); + uri.AppendPath(resourceType, true); + uri.AppendPath("/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/providers/Microsoft.Maintenance/configurationAssignments/", false); + uri.AppendPath(configurationAssignmentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteParentRequest(string subscriptionId, string resourceGroupName, string providerName, string resourceParentType, string resourceParentName, string resourceType, string resourceName, string configurationAssignmentName) { var message = _pipeline.CreateMessage(); @@ -375,6 +447,26 @@ public Response DeleteParent(string subs } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string providerName, string resourceType, string resourceName, string configurationAssignmentName) + { + 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/", false); + uri.AppendPath(providerName, true); + uri.AppendPath("/", false); + uri.AppendPath(resourceType, true); + uri.AppendPath("/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/providers/Microsoft.Maintenance/configurationAssignments/", false); + uri.AppendPath(configurationAssignmentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string providerName, string resourceType, string resourceName, string configurationAssignmentName) { var message = _pipeline.CreateMessage(); @@ -471,6 +563,26 @@ public Response Get(string subscriptionI } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string providerName, string resourceType, string resourceName, string configurationAssignmentName, MaintenanceConfigurationAssignmentData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourcegroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/", false); + uri.AppendPath(providerName, true); + uri.AppendPath("/", false); + uri.AppendPath(resourceType, true); + uri.AppendPath("/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/providers/Microsoft.Maintenance/configurationAssignments/", false); + uri.AppendPath(configurationAssignmentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string providerName, string resourceType, string resourceName, string configurationAssignmentName, MaintenanceConfigurationAssignmentData data) { var message = _pipeline.CreateMessage(); @@ -577,6 +689,26 @@ public Response CreateOrUpdate(string su } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string providerName, string resourceType, string resourceName, string configurationAssignmentName) + { + 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/", false); + uri.AppendPath(providerName, true); + uri.AppendPath("/", false); + uri.AppendPath(resourceType, true); + uri.AppendPath("/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/providers/Microsoft.Maintenance/configurationAssignments/", false); + uri.AppendPath(configurationAssignmentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string providerName, string resourceType, string resourceName, string configurationAssignmentName) { var message = _pipeline.CreateMessage(); @@ -677,6 +809,29 @@ public Response Delete(string subscripti } } + internal RequestUriBuilder CreateListParentRequestUri(string subscriptionId, string resourceGroupName, string providerName, string resourceParentType, string resourceParentName, string resourceType, string resourceName) + { + 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/", false); + uri.AppendPath(providerName, true); + uri.AppendPath("/", false); + uri.AppendPath(resourceParentType, true); + uri.AppendPath("/", false); + uri.AppendPath(resourceParentName, true); + uri.AppendPath("/", false); + uri.AppendPath(resourceType, true); + uri.AppendPath("/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/providers/Microsoft.Maintenance/configurationAssignments", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListParentRequest(string subscriptionId, string resourceGroupName, string providerName, string resourceParentType, string resourceParentName, string resourceType, string resourceName) { var message = _pipeline.CreateMessage(); @@ -780,6 +935,25 @@ public Response ListParent(string } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string providerName, string resourceType, string resourceName) + { + 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/", false); + uri.AppendPath(providerName, true); + uri.AppendPath("/", false); + uri.AppendPath(resourceType, true); + uri.AppendPath("/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/providers/Microsoft.Maintenance/configurationAssignments", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string providerName, string resourceType, string resourceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/maintenance/Azure.ResourceManager.Maintenance/src/Generated/RestOperations/ConfigurationAssignmentsWithinSubscriptionRestOperations.cs b/sdk/maintenance/Azure.ResourceManager.Maintenance/src/Generated/RestOperations/ConfigurationAssignmentsWithinSubscriptionRestOperations.cs index 85e0dc017803..b7bfd814d2de 100644 --- a/sdk/maintenance/Azure.ResourceManager.Maintenance/src/Generated/RestOperations/ConfigurationAssignmentsWithinSubscriptionRestOperations.cs +++ b/sdk/maintenance/Azure.ResourceManager.Maintenance/src/Generated/RestOperations/ConfigurationAssignmentsWithinSubscriptionRestOperations.cs @@ -37,6 +37,17 @@ public ConfigurationAssignmentsWithinSubscriptionRestOperations(HttpPipeline pip _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Maintenance/configurationAssignments", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/maintenance/Azure.ResourceManager.Maintenance/src/Generated/RestOperations/MaintenanceConfigurationsForResourceGroupRestOperations.cs b/sdk/maintenance/Azure.ResourceManager.Maintenance/src/Generated/RestOperations/MaintenanceConfigurationsForResourceGroupRestOperations.cs index 978471b0d57c..435ed73191f6 100644 --- a/sdk/maintenance/Azure.ResourceManager.Maintenance/src/Generated/RestOperations/MaintenanceConfigurationsForResourceGroupRestOperations.cs +++ b/sdk/maintenance/Azure.ResourceManager.Maintenance/src/Generated/RestOperations/MaintenanceConfigurationsForResourceGroupRestOperations.cs @@ -37,6 +37,19 @@ public MaintenanceConfigurationsForResourceGroupRestOperations(HttpPipeline pipe _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName) + { + 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.Maintenance/maintenanceConfigurations", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/maintenance/Azure.ResourceManager.Maintenance/src/Generated/RestOperations/MaintenanceConfigurationsRestOperations.cs b/sdk/maintenance/Azure.ResourceManager.Maintenance/src/Generated/RestOperations/MaintenanceConfigurationsRestOperations.cs index 0eb4513c8cf7..12bc2bf359a1 100644 --- a/sdk/maintenance/Azure.ResourceManager.Maintenance/src/Generated/RestOperations/MaintenanceConfigurationsRestOperations.cs +++ b/sdk/maintenance/Azure.ResourceManager.Maintenance/src/Generated/RestOperations/MaintenanceConfigurationsRestOperations.cs @@ -37,6 +37,20 @@ public MaintenanceConfigurationsRestOperations(HttpPipeline pipeline, string app _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string resourceName) + { + 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.Maintenance/maintenanceConfigurations/", false); + uri.AppendPath(resourceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); @@ -119,6 +133,20 @@ public Response Get(string subscriptionId, string } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string resourceName, MaintenanceConfigurationData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourcegroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Maintenance/maintenanceConfigurations/", false); + uri.AppendPath(resourceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string resourceName, MaintenanceConfigurationData data) { var message = _pipeline.CreateMessage(); @@ -207,6 +235,20 @@ public Response CreateOrUpdate(string subscription } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string resourceName) + { + 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.Maintenance/maintenanceConfigurations/", false); + uri.AppendPath(resourceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); @@ -277,6 +319,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string resourceName, MaintenanceConfigurationData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourcegroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Maintenance/maintenanceConfigurations/", false); + uri.AppendPath(resourceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string resourceName, MaintenanceConfigurationData data) { var message = _pipeline.CreateMessage(); @@ -363,6 +419,17 @@ public Response Update(string subscriptionId, stri } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Maintenance/maintenanceConfigurations", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/maintenance/Azure.ResourceManager.Maintenance/src/Generated/RestOperations/PublicMaintenanceConfigurationsRestOperations.cs b/sdk/maintenance/Azure.ResourceManager.Maintenance/src/Generated/RestOperations/PublicMaintenanceConfigurationsRestOperations.cs index eb24681ff278..39a70a238259 100644 --- a/sdk/maintenance/Azure.ResourceManager.Maintenance/src/Generated/RestOperations/PublicMaintenanceConfigurationsRestOperations.cs +++ b/sdk/maintenance/Azure.ResourceManager.Maintenance/src/Generated/RestOperations/PublicMaintenanceConfigurationsRestOperations.cs @@ -37,6 +37,17 @@ public PublicMaintenanceConfigurationsRestOperations(HttpPipeline pipeline, stri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Maintenance/publicMaintenanceConfigurations", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,18 @@ public Response List(string subscriptionId, } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/", false); + uri.AppendPath(resourceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/maintenance/Azure.ResourceManager.Maintenance/src/Generated/RestOperations/UpdatesRestOperations.cs b/sdk/maintenance/Azure.ResourceManager.Maintenance/src/Generated/RestOperations/UpdatesRestOperations.cs index 7b6cb61e69fb..11d22be5f68e 100644 --- a/sdk/maintenance/Azure.ResourceManager.Maintenance/src/Generated/RestOperations/UpdatesRestOperations.cs +++ b/sdk/maintenance/Azure.ResourceManager.Maintenance/src/Generated/RestOperations/UpdatesRestOperations.cs @@ -37,6 +37,29 @@ public UpdatesRestOperations(HttpPipeline pipeline, string applicationId, Uri en _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListParentRequestUri(string subscriptionId, string resourceGroupName, string providerName, string resourceParentType, string resourceParentName, string resourceType, string resourceName) + { + 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/", false); + uri.AppendPath(providerName, true); + uri.AppendPath("/", false); + uri.AppendPath(resourceParentType, true); + uri.AppendPath("/", false); + uri.AppendPath(resourceParentName, true); + uri.AppendPath("/", false); + uri.AppendPath(resourceType, true); + uri.AppendPath("/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/providers/Microsoft.Maintenance/updates", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListParentRequest(string subscriptionId, string resourceGroupName, string providerName, string resourceParentType, string resourceParentName, string resourceType, string resourceName) { var message = _pipeline.CreateMessage(); @@ -140,6 +163,25 @@ public Response ListParent(string subscriptionId, s } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string providerName, string resourceType, string resourceName) + { + 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/", false); + uri.AppendPath(providerName, true); + uri.AppendPath("/", false); + uri.AppendPath(resourceType, true); + uri.AppendPath("/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/providers/Microsoft.Maintenance/updates", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string providerName, string resourceType, string resourceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/managednetwork/Azure.ResourceManager.ManagedNetwork/src/Generated/LongRunningOperation/ManagedNetworkArmOperation.cs b/sdk/managednetwork/Azure.ResourceManager.ManagedNetwork/src/Generated/LongRunningOperation/ManagedNetworkArmOperation.cs index 6d00afb809ca..2abfd6bbcb88 100644 --- a/sdk/managednetwork/Azure.ResourceManager.ManagedNetwork/src/Generated/LongRunningOperation/ManagedNetworkArmOperation.cs +++ b/sdk/managednetwork/Azure.ResourceManager.ManagedNetwork/src/Generated/LongRunningOperation/ManagedNetworkArmOperation.cs @@ -20,21 +20,24 @@ internal class ManagedNetworkArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of ManagedNetworkArmOperation for mocking. protected ManagedNetworkArmOperation() { } - internal ManagedNetworkArmOperation(Response response) + internal ManagedNetworkArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal ManagedNetworkArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "ManagedNetworkArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal ManagedNetworkArmOperation(ClientDiagnostics clientDiagnostics, HttpPip public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/managednetwork/Azure.ResourceManager.ManagedNetwork/src/Generated/LongRunningOperation/ManagedNetworkArmOperationOfT.cs b/sdk/managednetwork/Azure.ResourceManager.ManagedNetwork/src/Generated/LongRunningOperation/ManagedNetworkArmOperationOfT.cs index e4366f5b6c5f..cd653bb66ed6 100644 --- a/sdk/managednetwork/Azure.ResourceManager.ManagedNetwork/src/Generated/LongRunningOperation/ManagedNetworkArmOperationOfT.cs +++ b/sdk/managednetwork/Azure.ResourceManager.ManagedNetwork/src/Generated/LongRunningOperation/ManagedNetworkArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class ManagedNetworkArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of ManagedNetworkArmOperation for mocking. protected ManagedNetworkArmOperation() { } - internal ManagedNetworkArmOperation(Response response) + internal ManagedNetworkArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal ManagedNetworkArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "ManagedNetworkArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal ManagedNetworkArmOperation(IOperationSource source, ClientDiagnostic public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/managednetwork/Azure.ResourceManager.ManagedNetwork/src/Generated/ManagedNetworkCollection.cs b/sdk/managednetwork/Azure.ResourceManager.ManagedNetwork/src/Generated/ManagedNetworkCollection.cs index ab2ca4808e55..81259914f3db 100644 --- a/sdk/managednetwork/Azure.ResourceManager.ManagedNetwork/src/Generated/ManagedNetworkCollection.cs +++ b/sdk/managednetwork/Azure.ResourceManager.ManagedNetwork/src/Generated/ManagedNetworkCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> CreateOrUpdateAs try { var response = await _managedNetworkRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, managedNetworkName, data, cancellationToken).ConfigureAwait(false); - var operation = new ManagedNetworkArmOperation(Response.FromValue(new ManagedNetworkResource(Client, response), response.GetRawResponse())); + var uri = _managedNetworkRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, managedNetworkName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ManagedNetworkArmOperation(Response.FromValue(new ManagedNetworkResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -140,7 +142,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wai try { var response = _managedNetworkRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, managedNetworkName, data, cancellationToken); - var operation = new ManagedNetworkArmOperation(Response.FromValue(new ManagedNetworkResource(Client, response), response.GetRawResponse())); + var uri = _managedNetworkRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, managedNetworkName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ManagedNetworkArmOperation(Response.FromValue(new ManagedNetworkResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/managednetwork/Azure.ResourceManager.ManagedNetwork/src/Generated/Models/ManagedNetworkGroupResource.Serialization.cs b/sdk/managednetwork/Azure.ResourceManager.ManagedNetwork/src/Generated/Models/ManagedNetworkGroupResource.Serialization.cs new file mode 100644 index 000000000000..5c0dbb0d3158 --- /dev/null +++ b/sdk/managednetwork/Azure.ResourceManager.ManagedNetwork/src/Generated/Models/ManagedNetworkGroupResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ManagedNetwork +{ + public partial class ManagedNetworkGroupResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ManagedNetworkGroupData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ManagedNetworkGroupData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/managednetwork/Azure.ResourceManager.ManagedNetwork/src/Generated/Models/ManagedNetworkPeeringPolicyResource.Serialization.cs b/sdk/managednetwork/Azure.ResourceManager.ManagedNetwork/src/Generated/Models/ManagedNetworkPeeringPolicyResource.Serialization.cs new file mode 100644 index 000000000000..f7ff2461ce6d --- /dev/null +++ b/sdk/managednetwork/Azure.ResourceManager.ManagedNetwork/src/Generated/Models/ManagedNetworkPeeringPolicyResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ManagedNetwork +{ + public partial class ManagedNetworkPeeringPolicyResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ManagedNetworkPeeringPolicyData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ManagedNetworkPeeringPolicyData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/managednetwork/Azure.ResourceManager.ManagedNetwork/src/Generated/Models/ManagedNetworkResource.Serialization.cs b/sdk/managednetwork/Azure.ResourceManager.ManagedNetwork/src/Generated/Models/ManagedNetworkResource.Serialization.cs new file mode 100644 index 000000000000..d64de67774b1 --- /dev/null +++ b/sdk/managednetwork/Azure.ResourceManager.ManagedNetwork/src/Generated/Models/ManagedNetworkResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ManagedNetwork +{ + public partial class ManagedNetworkResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ManagedNetworkData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ManagedNetworkData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/managednetwork/Azure.ResourceManager.ManagedNetwork/src/Generated/Models/ScopeAssignmentResource.Serialization.cs b/sdk/managednetwork/Azure.ResourceManager.ManagedNetwork/src/Generated/Models/ScopeAssignmentResource.Serialization.cs new file mode 100644 index 000000000000..5bc536bd3a2c --- /dev/null +++ b/sdk/managednetwork/Azure.ResourceManager.ManagedNetwork/src/Generated/Models/ScopeAssignmentResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ManagedNetwork +{ + public partial class ScopeAssignmentResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ScopeAssignmentData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ScopeAssignmentData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/managednetwork/Azure.ResourceManager.ManagedNetwork/src/Generated/RestOperations/ManagedNetworkGroupsRestOperations.cs b/sdk/managednetwork/Azure.ResourceManager.ManagedNetwork/src/Generated/RestOperations/ManagedNetworkGroupsRestOperations.cs index fd181cd177af..693f9fef7a1b 100644 --- a/sdk/managednetwork/Azure.ResourceManager.ManagedNetwork/src/Generated/RestOperations/ManagedNetworkGroupsRestOperations.cs +++ b/sdk/managednetwork/Azure.ResourceManager.ManagedNetwork/src/Generated/RestOperations/ManagedNetworkGroupsRestOperations.cs @@ -37,6 +37,22 @@ public ManagedNetworkGroupsRestOperations(HttpPipeline pipeline, string applicat _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string managedNetworkName, string managedNetworkGroupName) + { + 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.ManagedNetwork/managedNetworks/", false); + uri.AppendPath(managedNetworkName, true); + uri.AppendPath("/managedNetworkGroups/", false); + uri.AppendPath(managedNetworkGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string managedNetworkName, string managedNetworkGroupName) { var message = _pipeline.CreateMessage(); @@ -125,6 +141,22 @@ public Response Get(string subscriptionId, string resou } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string managedNetworkName, string managedNetworkGroupName, ManagedNetworkGroupData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ManagedNetwork/managedNetworks/", false); + uri.AppendPath(managedNetworkName, true); + uri.AppendPath("/managedNetworkGroups/", false); + uri.AppendPath(managedNetworkGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string managedNetworkName, string managedNetworkGroupName, ManagedNetworkGroupData data) { var message = _pipeline.CreateMessage(); @@ -209,6 +241,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string managedNetworkName, string managedNetworkGroupName) + { + 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.ManagedNetwork/managedNetworks/", false); + uri.AppendPath(managedNetworkName, true); + uri.AppendPath("/managedNetworkGroups/", false); + uri.AppendPath(managedNetworkGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string managedNetworkName, string managedNetworkGroupName) { var message = _pipeline.CreateMessage(); @@ -287,6 +335,29 @@ public Response Delete(string subscriptionId, string resourceGroupName, string m } } + internal RequestUriBuilder CreateListByManagedNetworkRequestUri(string subscriptionId, string resourceGroupName, string managedNetworkName, int? top, string skiptoken) + { + 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.ManagedNetwork/managedNetworks/", false); + uri.AppendPath(managedNetworkName, true); + uri.AppendPath("/managedNetworkGroups", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skiptoken != null) + { + uri.AppendQuery("$skiptoken", skiptoken, true); + } + return uri; + } + internal HttpMessage CreateListByManagedNetworkRequest(string subscriptionId, string resourceGroupName, string managedNetworkName, int? top, string skiptoken) { var message = _pipeline.CreateMessage(); @@ -378,6 +449,14 @@ public Response ListByManagedNetwork(string subsc } } + internal RequestUriBuilder CreateListByManagedNetworkNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string managedNetworkName, int? top, string skiptoken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByManagedNetworkNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string managedNetworkName, int? top, string skiptoken) { var message = _pipeline.CreateMessage(); diff --git a/sdk/managednetwork/Azure.ResourceManager.ManagedNetwork/src/Generated/RestOperations/ManagedNetworkPeeringPoliciesRestOperations.cs b/sdk/managednetwork/Azure.ResourceManager.ManagedNetwork/src/Generated/RestOperations/ManagedNetworkPeeringPoliciesRestOperations.cs index dc5a672e06b6..0122a3ccdba1 100644 --- a/sdk/managednetwork/Azure.ResourceManager.ManagedNetwork/src/Generated/RestOperations/ManagedNetworkPeeringPoliciesRestOperations.cs +++ b/sdk/managednetwork/Azure.ResourceManager.ManagedNetwork/src/Generated/RestOperations/ManagedNetworkPeeringPoliciesRestOperations.cs @@ -37,6 +37,22 @@ public ManagedNetworkPeeringPoliciesRestOperations(HttpPipeline pipeline, string _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string managedNetworkName, string managedNetworkPeeringPolicyName) + { + 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.ManagedNetwork/managedNetworks/", false); + uri.AppendPath(managedNetworkName, true); + uri.AppendPath("/managedNetworkPeeringPolicies/", false); + uri.AppendPath(managedNetworkPeeringPolicyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string managedNetworkName, string managedNetworkPeeringPolicyName) { var message = _pipeline.CreateMessage(); @@ -125,6 +141,22 @@ public Response Get(string subscriptionId, stri } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string managedNetworkName, string managedNetworkPeeringPolicyName, ManagedNetworkPeeringPolicyData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ManagedNetwork/managedNetworks/", false); + uri.AppendPath(managedNetworkName, true); + uri.AppendPath("/managedNetworkPeeringPolicies/", false); + uri.AppendPath(managedNetworkPeeringPolicyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string managedNetworkName, string managedNetworkPeeringPolicyName, ManagedNetworkPeeringPolicyData data) { var message = _pipeline.CreateMessage(); @@ -209,6 +241,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string managedNetworkName, string managedNetworkPeeringPolicyName) + { + 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.ManagedNetwork/managedNetworks/", false); + uri.AppendPath(managedNetworkName, true); + uri.AppendPath("/managedNetworkPeeringPolicies/", false); + uri.AppendPath(managedNetworkPeeringPolicyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string managedNetworkName, string managedNetworkPeeringPolicyName) { var message = _pipeline.CreateMessage(); @@ -287,6 +335,29 @@ public Response Delete(string subscriptionId, string resourceGroupName, string m } } + internal RequestUriBuilder CreateListByManagedNetworkRequestUri(string subscriptionId, string resourceGroupName, string managedNetworkName, int? top, string skiptoken) + { + 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.ManagedNetwork/managedNetworks/", false); + uri.AppendPath(managedNetworkName, true); + uri.AppendPath("/managedNetworkPeeringPolicies", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skiptoken != null) + { + uri.AppendQuery("$skiptoken", skiptoken, true); + } + return uri; + } + internal HttpMessage CreateListByManagedNetworkRequest(string subscriptionId, string resourceGroupName, string managedNetworkName, int? top, string skiptoken) { var message = _pipeline.CreateMessage(); @@ -378,6 +449,14 @@ public Response ListByManagedNetwork(stri } } + internal RequestUriBuilder CreateListByManagedNetworkNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string managedNetworkName, int? top, string skiptoken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByManagedNetworkNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string managedNetworkName, int? top, string skiptoken) { var message = _pipeline.CreateMessage(); diff --git a/sdk/managednetwork/Azure.ResourceManager.ManagedNetwork/src/Generated/RestOperations/ManagedNetworksRestOperations.cs b/sdk/managednetwork/Azure.ResourceManager.ManagedNetwork/src/Generated/RestOperations/ManagedNetworksRestOperations.cs index 8d19b71296bb..fa27e8e75b42 100644 --- a/sdk/managednetwork/Azure.ResourceManager.ManagedNetwork/src/Generated/RestOperations/ManagedNetworksRestOperations.cs +++ b/sdk/managednetwork/Azure.ResourceManager.ManagedNetwork/src/Generated/RestOperations/ManagedNetworksRestOperations.cs @@ -37,6 +37,20 @@ public ManagedNetworksRestOperations(HttpPipeline pipeline, string applicationId _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string managedNetworkName) + { + 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.ManagedNetwork/managedNetworks/", false); + uri.AppendPath(managedNetworkName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string managedNetworkName) { var message = _pipeline.CreateMessage(); @@ -119,6 +133,20 @@ public Response Get(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string managedNetworkName, ManagedNetworkData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ManagedNetwork/managedNetworks/", false); + uri.AppendPath(managedNetworkName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string managedNetworkName, ManagedNetworkData data) { var message = _pipeline.CreateMessage(); @@ -207,6 +235,20 @@ public Response CreateOrUpdate(string subscriptionId, string } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string managedNetworkName) + { + 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.ManagedNetwork/managedNetworks/", false); + uri.AppendPath(managedNetworkName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string managedNetworkName) { var message = _pipeline.CreateMessage(); @@ -279,6 +321,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string m } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string managedNetworkName, ManagedNetworkPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ManagedNetwork/managedNetworks/", false); + uri.AppendPath(managedNetworkName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string managedNetworkName, ManagedNetworkPatch patch) { var message = _pipeline.CreateMessage(); @@ -357,6 +413,27 @@ public Response Update(string subscriptionId, string resourceGroupName, string m } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName, int? top, string skiptoken) + { + 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.ManagedNetwork/managedNetworks", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skiptoken != null) + { + uri.AppendQuery("$skiptoken", skiptoken, true); + } + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName, int? top, string skiptoken) { var message = _pipeline.CreateMessage(); @@ -442,6 +519,25 @@ public Response ListByResourceGroup(string subscriptio } } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId, int? top, string skiptoken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ManagedNetwork/managedNetworks", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skiptoken != null) + { + uri.AppendQuery("$skiptoken", skiptoken, true); + } + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId, int? top, string skiptoken) { var message = _pipeline.CreateMessage(); @@ -521,6 +617,14 @@ public Response ListBySubscription(string subscription } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, int? top, string skiptoken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, int? top, string skiptoken) { var message = _pipeline.CreateMessage(); @@ -597,6 +701,14 @@ public Response ListByResourceGroupNextPage(string nex } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId, int? top, string skiptoken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId, int? top, string skiptoken) { var message = _pipeline.CreateMessage(); diff --git a/sdk/managednetwork/Azure.ResourceManager.ManagedNetwork/src/Generated/RestOperations/ScopeAssignmentsRestOperations.cs b/sdk/managednetwork/Azure.ResourceManager.ManagedNetwork/src/Generated/RestOperations/ScopeAssignmentsRestOperations.cs index b88ba3aaa485..684a9fbd0226 100644 --- a/sdk/managednetwork/Azure.ResourceManager.ManagedNetwork/src/Generated/RestOperations/ScopeAssignmentsRestOperations.cs +++ b/sdk/managednetwork/Azure.ResourceManager.ManagedNetwork/src/Generated/RestOperations/ScopeAssignmentsRestOperations.cs @@ -37,6 +37,18 @@ public ScopeAssignmentsRestOperations(HttpPipeline pipeline, string applicationI _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string scope, string scopeAssignmentName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.ManagedNetwork/scopeAssignments/", false); + uri.AppendPath(scopeAssignmentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string scope, string scopeAssignmentName) { var message = _pipeline.CreateMessage(); @@ -113,6 +125,18 @@ public Response Get(string scope, string scopeAssignmentNam } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string scope, string scopeAssignmentName, ScopeAssignmentData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.ManagedNetwork/scopeAssignments/", false); + uri.AppendPath(scopeAssignmentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string scope, string scopeAssignmentName, ScopeAssignmentData data) { var message = _pipeline.CreateMessage(); @@ -195,6 +219,18 @@ public Response CreateOrUpdate(string scope, string scopeAs } } + internal RequestUriBuilder CreateDeleteRequestUri(string scope, string scopeAssignmentName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.ManagedNetwork/scopeAssignments/", false); + uri.AppendPath(scopeAssignmentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string scope, string scopeAssignmentName) { var message = _pipeline.CreateMessage(); @@ -256,6 +292,17 @@ public Response Delete(string scope, string scopeAssignmentName, CancellationTok } } + internal RequestUriBuilder CreateListRequestUri(string scope) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.ManagedNetwork/scopeAssignments", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string scope) { var message = _pipeline.CreateMessage(); @@ -321,6 +368,14 @@ public Response List(string scope, CancellationToken } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string scope) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string scope) { var message = _pipeline.CreateMessage(); diff --git a/sdk/managednetwork/Azure.ResourceManager.ManagedNetwork/src/Generated/ScopeAssignmentCollection.cs b/sdk/managednetwork/Azure.ResourceManager.ManagedNetwork/src/Generated/ScopeAssignmentCollection.cs index 9c402c3ec4e7..7da4334a4be1 100644 --- a/sdk/managednetwork/Azure.ResourceManager.ManagedNetwork/src/Generated/ScopeAssignmentCollection.cs +++ b/sdk/managednetwork/Azure.ResourceManager.ManagedNetwork/src/Generated/ScopeAssignmentCollection.cs @@ -80,7 +80,9 @@ public virtual async Task> CreateOrUpdateA try { var response = await _scopeAssignmentRestClient.CreateOrUpdateAsync(Id, scopeAssignmentName, data, cancellationToken).ConfigureAwait(false); - var operation = new ManagedNetworkArmOperation(Response.FromValue(new ScopeAssignmentResource(Client, response), response.GetRawResponse())); + var uri = _scopeAssignmentRestClient.CreateCreateOrUpdateRequestUri(Id, scopeAssignmentName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ManagedNetworkArmOperation(Response.FromValue(new ScopeAssignmentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -129,7 +131,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wa try { var response = _scopeAssignmentRestClient.CreateOrUpdate(Id, scopeAssignmentName, data, cancellationToken); - var operation = new ManagedNetworkArmOperation(Response.FromValue(new ScopeAssignmentResource(Client, response), response.GetRawResponse())); + var uri = _scopeAssignmentRestClient.CreateCreateOrUpdateRequestUri(Id, scopeAssignmentName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ManagedNetworkArmOperation(Response.FromValue(new ScopeAssignmentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/managednetwork/Azure.ResourceManager.ManagedNetwork/src/Generated/ScopeAssignmentResource.cs b/sdk/managednetwork/Azure.ResourceManager.ManagedNetwork/src/Generated/ScopeAssignmentResource.cs index ae06575083ec..59756b12ba3b 100644 --- a/sdk/managednetwork/Azure.ResourceManager.ManagedNetwork/src/Generated/ScopeAssignmentResource.cs +++ b/sdk/managednetwork/Azure.ResourceManager.ManagedNetwork/src/Generated/ScopeAssignmentResource.cs @@ -198,7 +198,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _scopeAssignmentRestClient.DeleteAsync(Id.Parent, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new ManagedNetworkArmOperation(response); + var uri = _scopeAssignmentRestClient.CreateDeleteRequestUri(Id.Parent, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ManagedNetworkArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -240,7 +242,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _scopeAssignmentRestClient.Delete(Id.Parent, Id.Name, cancellationToken); - var operation = new ManagedNetworkArmOperation(response); + var uri = _scopeAssignmentRestClient.CreateDeleteRequestUri(Id.Parent, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ManagedNetworkArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -286,7 +290,9 @@ public virtual async Task> UpdateAsync(Wai try { var response = await _scopeAssignmentRestClient.CreateOrUpdateAsync(Id.Parent, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new ManagedNetworkArmOperation(Response.FromValue(new ScopeAssignmentResource(Client, response), response.GetRawResponse())); + var uri = _scopeAssignmentRestClient.CreateCreateOrUpdateRequestUri(Id.Parent, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ManagedNetworkArmOperation(Response.FromValue(new ScopeAssignmentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -332,7 +338,9 @@ public virtual ArmOperation Update(WaitUntil waitUntil, try { var response = _scopeAssignmentRestClient.CreateOrUpdate(Id.Parent, Id.Name, data, cancellationToken); - var operation = new ManagedNetworkArmOperation(Response.FromValue(new ScopeAssignmentResource(Client, response), response.GetRawResponse())); + var uri = _scopeAssignmentRestClient.CreateCreateOrUpdateRequestUri(Id.Parent, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ManagedNetworkArmOperation(Response.FromValue(new ScopeAssignmentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/LongRunningOperation/ManagedNetworkFabricArmOperation.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/LongRunningOperation/ManagedNetworkFabricArmOperation.cs index a6b56d6ae6b5..03b31b8ea95f 100644 --- a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/LongRunningOperation/ManagedNetworkFabricArmOperation.cs +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/LongRunningOperation/ManagedNetworkFabricArmOperation.cs @@ -20,21 +20,24 @@ internal class ManagedNetworkFabricArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of ManagedNetworkFabricArmOperation for mocking. protected ManagedNetworkFabricArmOperation() { } - internal ManagedNetworkFabricArmOperation(Response response) + internal ManagedNetworkFabricArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal ManagedNetworkFabricArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "ManagedNetworkFabricArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal ManagedNetworkFabricArmOperation(ClientDiagnostics clientDiagnostics, H public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/LongRunningOperation/ManagedNetworkFabricArmOperationOfT.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/LongRunningOperation/ManagedNetworkFabricArmOperationOfT.cs index c52710914621..7127de52856c 100644 --- a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/LongRunningOperation/ManagedNetworkFabricArmOperationOfT.cs +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/LongRunningOperation/ManagedNetworkFabricArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class ManagedNetworkFabricArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of ManagedNetworkFabricArmOperation for mocking. protected ManagedNetworkFabricArmOperation() { } - internal ManagedNetworkFabricArmOperation(Response response) + internal ManagedNetworkFabricArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal ManagedNetworkFabricArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "ManagedNetworkFabricArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal ManagedNetworkFabricArmOperation(IOperationSource source, ClientDiag public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkDeviceInterfaceResource.Serialization.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkDeviceInterfaceResource.Serialization.cs new file mode 100644 index 000000000000..09911089f53f --- /dev/null +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkDeviceInterfaceResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ManagedNetworkFabric +{ + public partial class NetworkDeviceInterfaceResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + NetworkDeviceInterfaceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + NetworkDeviceInterfaceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkDeviceResource.Serialization.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkDeviceResource.Serialization.cs new file mode 100644 index 000000000000..49715bca87c7 --- /dev/null +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkDeviceResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ManagedNetworkFabric +{ + public partial class NetworkDeviceResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + NetworkDeviceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + NetworkDeviceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkDeviceSkuResource.Serialization.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkDeviceSkuResource.Serialization.cs new file mode 100644 index 000000000000..79de03b3963d --- /dev/null +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkDeviceSkuResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ManagedNetworkFabric +{ + public partial class NetworkDeviceSkuResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + NetworkDeviceSkuData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + NetworkDeviceSkuData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkFabricAccessControlListResource.Serialization.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkFabricAccessControlListResource.Serialization.cs new file mode 100644 index 000000000000..b4d5802fde6c --- /dev/null +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkFabricAccessControlListResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ManagedNetworkFabric +{ + public partial class NetworkFabricAccessControlListResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + NetworkFabricAccessControlListData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + NetworkFabricAccessControlListData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkFabricControllerResource.Serialization.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkFabricControllerResource.Serialization.cs new file mode 100644 index 000000000000..ab99cc8da6f8 --- /dev/null +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkFabricControllerResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ManagedNetworkFabric +{ + public partial class NetworkFabricControllerResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + NetworkFabricControllerData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + NetworkFabricControllerData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkFabricExternalNetworkResource.Serialization.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkFabricExternalNetworkResource.Serialization.cs new file mode 100644 index 000000000000..3c737b0d5a4a --- /dev/null +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkFabricExternalNetworkResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ManagedNetworkFabric +{ + public partial class NetworkFabricExternalNetworkResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + NetworkFabricExternalNetworkData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + NetworkFabricExternalNetworkData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkFabricIPCommunityResource.Serialization.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkFabricIPCommunityResource.Serialization.cs new file mode 100644 index 000000000000..b37018cb35f2 --- /dev/null +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkFabricIPCommunityResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ManagedNetworkFabric +{ + public partial class NetworkFabricIPCommunityResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + NetworkFabricIPCommunityData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + NetworkFabricIPCommunityData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkFabricIPExtendedCommunityResource.Serialization.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkFabricIPExtendedCommunityResource.Serialization.cs new file mode 100644 index 000000000000..eab9577e56b4 --- /dev/null +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkFabricIPExtendedCommunityResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ManagedNetworkFabric +{ + public partial class NetworkFabricIPExtendedCommunityResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + NetworkFabricIPExtendedCommunityData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + NetworkFabricIPExtendedCommunityData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkFabricIPPrefixResource.Serialization.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkFabricIPPrefixResource.Serialization.cs new file mode 100644 index 000000000000..91cf6f6f499f --- /dev/null +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkFabricIPPrefixResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ManagedNetworkFabric +{ + public partial class NetworkFabricIPPrefixResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + NetworkFabricIPPrefixData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + NetworkFabricIPPrefixData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkFabricInternalNetworkResource.Serialization.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkFabricInternalNetworkResource.Serialization.cs new file mode 100644 index 000000000000..551499468321 --- /dev/null +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkFabricInternalNetworkResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ManagedNetworkFabric +{ + public partial class NetworkFabricInternalNetworkResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + NetworkFabricInternalNetworkData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + NetworkFabricInternalNetworkData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkFabricInternetGatewayResource.Serialization.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkFabricInternetGatewayResource.Serialization.cs new file mode 100644 index 000000000000..3424ffef2167 --- /dev/null +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkFabricInternetGatewayResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ManagedNetworkFabric +{ + public partial class NetworkFabricInternetGatewayResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + NetworkFabricInternetGatewayData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + NetworkFabricInternetGatewayData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkFabricInternetGatewayRuleResource.Serialization.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkFabricInternetGatewayRuleResource.Serialization.cs new file mode 100644 index 000000000000..887130a6acc3 --- /dev/null +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkFabricInternetGatewayRuleResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ManagedNetworkFabric +{ + public partial class NetworkFabricInternetGatewayRuleResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + NetworkFabricInternetGatewayRuleData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + NetworkFabricInternetGatewayRuleData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkFabricL2IsolationDomainResource.Serialization.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkFabricL2IsolationDomainResource.Serialization.cs new file mode 100644 index 000000000000..ebdd7741be16 --- /dev/null +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkFabricL2IsolationDomainResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ManagedNetworkFabric +{ + public partial class NetworkFabricL2IsolationDomainResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + NetworkFabricL2IsolationDomainData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + NetworkFabricL2IsolationDomainData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkFabricL3IsolationDomainResource.Serialization.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkFabricL3IsolationDomainResource.Serialization.cs new file mode 100644 index 000000000000..8100eb90b0d7 --- /dev/null +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkFabricL3IsolationDomainResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ManagedNetworkFabric +{ + public partial class NetworkFabricL3IsolationDomainResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + NetworkFabricL3IsolationDomainData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + NetworkFabricL3IsolationDomainData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkFabricNeighborGroupResource.Serialization.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkFabricNeighborGroupResource.Serialization.cs new file mode 100644 index 000000000000..2e6cd8c43665 --- /dev/null +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkFabricNeighborGroupResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ManagedNetworkFabric +{ + public partial class NetworkFabricNeighborGroupResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + NetworkFabricNeighborGroupData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + NetworkFabricNeighborGroupData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkFabricResource.Serialization.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkFabricResource.Serialization.cs new file mode 100644 index 000000000000..0e8005e22c92 --- /dev/null +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkFabricResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ManagedNetworkFabric +{ + public partial class NetworkFabricResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + NetworkFabricData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + NetworkFabricData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkFabricRoutePolicyResource.Serialization.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkFabricRoutePolicyResource.Serialization.cs new file mode 100644 index 000000000000..f2e0f093b4d1 --- /dev/null +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkFabricRoutePolicyResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ManagedNetworkFabric +{ + public partial class NetworkFabricRoutePolicyResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + NetworkFabricRoutePolicyData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + NetworkFabricRoutePolicyData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkFabricSkuResource.Serialization.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkFabricSkuResource.Serialization.cs new file mode 100644 index 000000000000..cf1490c24d49 --- /dev/null +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkFabricSkuResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ManagedNetworkFabric +{ + public partial class NetworkFabricSkuResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + NetworkFabricSkuData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + NetworkFabricSkuData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkPacketBrokerResource.Serialization.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkPacketBrokerResource.Serialization.cs new file mode 100644 index 000000000000..e8bdbccacc2c --- /dev/null +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkPacketBrokerResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ManagedNetworkFabric +{ + public partial class NetworkPacketBrokerResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + NetworkPacketBrokerData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + NetworkPacketBrokerData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkRackResource.Serialization.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkRackResource.Serialization.cs new file mode 100644 index 000000000000..d8c16fbc753d --- /dev/null +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkRackResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ManagedNetworkFabric +{ + public partial class NetworkRackResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + NetworkRackData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + NetworkRackData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkTapResource.Serialization.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkTapResource.Serialization.cs new file mode 100644 index 000000000000..88f1806bb2ed --- /dev/null +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkTapResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ManagedNetworkFabric +{ + public partial class NetworkTapResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + NetworkTapData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + NetworkTapData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkTapRuleResource.Serialization.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkTapRuleResource.Serialization.cs new file mode 100644 index 000000000000..bbda95025065 --- /dev/null +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkTapRuleResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ManagedNetworkFabric +{ + public partial class NetworkTapRuleResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + NetworkTapRuleData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + NetworkTapRuleData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkToNetworkInterconnectResource.Serialization.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkToNetworkInterconnectResource.Serialization.cs new file mode 100644 index 000000000000..7e94b1db819e --- /dev/null +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkToNetworkInterconnectResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ManagedNetworkFabric +{ + public partial class NetworkToNetworkInterconnectResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + NetworkToNetworkInterconnectData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + NetworkToNetworkInterconnectData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/RestOperations/AccessControlListsRestOperations.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/RestOperations/AccessControlListsRestOperations.cs index 1ad856fe3ca2..b33cd8a71f7a 100644 --- a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/RestOperations/AccessControlListsRestOperations.cs +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/RestOperations/AccessControlListsRestOperations.cs @@ -37,6 +37,20 @@ public AccessControlListsRestOperations(HttpPipeline pipeline, string applicatio _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string accessControlListName, NetworkFabricAccessControlListData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ManagedNetworkFabric/accessControlLists/", false); + uri.AppendPath(accessControlListName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string accessControlListName, NetworkFabricAccessControlListData data) { var message = _pipeline.CreateMessage(); @@ -115,6 +129,20 @@ public Response Create(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string accessControlListName) + { + 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.ManagedNetworkFabric/accessControlLists/", false); + uri.AppendPath(accessControlListName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string accessControlListName) { var message = _pipeline.CreateMessage(); @@ -197,6 +225,20 @@ public Response Get(string subscriptionId, s } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string accessControlListName, NetworkFabricAccessControlListPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ManagedNetworkFabric/accessControlLists/", false); + uri.AppendPath(accessControlListName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string accessControlListName, NetworkFabricAccessControlListPatch patch) { var message = _pipeline.CreateMessage(); @@ -275,6 +317,20 @@ public Response Update(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string accessControlListName) + { + 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.ManagedNetworkFabric/accessControlLists/", false); + uri.AppendPath(accessControlListName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string accessControlListName) { var message = _pipeline.CreateMessage(); @@ -345,6 +401,19 @@ public Response Delete(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.ManagedNetworkFabric/accessControlLists", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -418,6 +487,17 @@ public Response ListByResourceGroup(string subscriptio } } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ManagedNetworkFabric/accessControlLists", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -485,6 +565,21 @@ public Response ListBySubscription(string subscription } } + internal RequestUriBuilder CreateUpdateAdministrativeStateRequestUri(string subscriptionId, string resourceGroupName, string accessControlListName, UpdateAdministrativeStateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ManagedNetworkFabric/accessControlLists/", false); + uri.AppendPath(accessControlListName, true); + uri.AppendPath("/updateAdministrativeState", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateAdministrativeStateRequest(string subscriptionId, string resourceGroupName, string accessControlListName, UpdateAdministrativeStateContent content) { var message = _pipeline.CreateMessage(); @@ -564,6 +659,21 @@ public Response UpdateAdministrativeState(string subscriptionId, string resource } } + internal RequestUriBuilder CreateResyncRequestUri(string subscriptionId, string resourceGroupName, string accessControlListName) + { + 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.ManagedNetworkFabric/accessControlLists/", false); + uri.AppendPath(accessControlListName, true); + uri.AppendPath("/resync", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateResyncRequest(string subscriptionId, string resourceGroupName, string accessControlListName) { var message = _pipeline.CreateMessage(); @@ -635,6 +745,21 @@ public Response Resync(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateValidateConfigurationRequestUri(string subscriptionId, string resourceGroupName, string accessControlListName) + { + 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.ManagedNetworkFabric/accessControlLists/", false); + uri.AppendPath(accessControlListName, true); + uri.AppendPath("/validateConfiguration", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateValidateConfigurationRequest(string subscriptionId, string resourceGroupName, string accessControlListName) { var message = _pipeline.CreateMessage(); @@ -706,6 +831,14 @@ public Response ValidateConfiguration(string subscriptionId, string resourceGrou } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -778,6 +911,14 @@ public Response ListByResourceGroupNextPage(string nex } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/RestOperations/ExternalNetworksRestOperations.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/RestOperations/ExternalNetworksRestOperations.cs index 0f81317d21ba..a1c5ddc4a4af 100644 --- a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/RestOperations/ExternalNetworksRestOperations.cs +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/RestOperations/ExternalNetworksRestOperations.cs @@ -37,6 +37,22 @@ public ExternalNetworksRestOperations(HttpPipeline pipeline, string applicationI _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string l3IsolationDomainName, string externalNetworkName, NetworkFabricExternalNetworkData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ManagedNetworkFabric/l3IsolationDomains/", false); + uri.AppendPath(l3IsolationDomainName, true); + uri.AppendPath("/externalNetworks/", false); + uri.AppendPath(externalNetworkName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string l3IsolationDomainName, string externalNetworkName, NetworkFabricExternalNetworkData data) { var message = _pipeline.CreateMessage(); @@ -121,6 +137,22 @@ public Response Create(string subscriptionId, string resourceGroupName, string l } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string l3IsolationDomainName, string externalNetworkName) + { + 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.ManagedNetworkFabric/l3IsolationDomains/", false); + uri.AppendPath(l3IsolationDomainName, true); + uri.AppendPath("/externalNetworks/", false); + uri.AppendPath(externalNetworkName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string l3IsolationDomainName, string externalNetworkName) { var message = _pipeline.CreateMessage(); @@ -209,6 +241,22 @@ public Response Get(string subscriptionId, str } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string l3IsolationDomainName, string externalNetworkName, NetworkFabricExternalNetworkPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ManagedNetworkFabric/l3IsolationDomains/", false); + uri.AppendPath(l3IsolationDomainName, true); + uri.AppendPath("/externalNetworks/", false); + uri.AppendPath(externalNetworkName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string l3IsolationDomainName, string externalNetworkName, NetworkFabricExternalNetworkPatch patch) { var message = _pipeline.CreateMessage(); @@ -293,6 +341,22 @@ public Response Update(string subscriptionId, string resourceGroupName, string l } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string l3IsolationDomainName, string externalNetworkName) + { + 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.ManagedNetworkFabric/l3IsolationDomains/", false); + uri.AppendPath(l3IsolationDomainName, true); + uri.AppendPath("/externalNetworks/", false); + uri.AppendPath(externalNetworkName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string l3IsolationDomainName, string externalNetworkName) { var message = _pipeline.CreateMessage(); @@ -369,6 +433,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string l } } + internal RequestUriBuilder CreateListByL3IsolationDomainRequestUri(string subscriptionId, string resourceGroupName, string l3IsolationDomainName) + { + 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.ManagedNetworkFabric/l3IsolationDomains/", false); + uri.AppendPath(l3IsolationDomainName, true); + uri.AppendPath("/externalNetworks", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByL3IsolationDomainRequest(string subscriptionId, string resourceGroupName, string l3IsolationDomainName) { var message = _pipeline.CreateMessage(); @@ -448,6 +527,23 @@ public Response ListByL3IsolationDomain(string subscriptio } } + internal RequestUriBuilder CreateUpdateAdministrativeStateRequestUri(string subscriptionId, string resourceGroupName, string l3IsolationDomainName, string externalNetworkName, UpdateAdministrativeStateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ManagedNetworkFabric/l3IsolationDomains/", false); + uri.AppendPath(l3IsolationDomainName, true); + uri.AppendPath("/externalNetworks/", false); + uri.AppendPath(externalNetworkName, true); + uri.AppendPath("/updateAdministrativeState", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateAdministrativeStateRequest(string subscriptionId, string resourceGroupName, string l3IsolationDomainName, string externalNetworkName, UpdateAdministrativeStateContent content) { var message = _pipeline.CreateMessage(); @@ -533,6 +629,23 @@ public Response UpdateAdministrativeState(string subscriptionId, string resource } } + internal RequestUriBuilder CreateUpdateStaticRouteBfdAdministrativeStateRequestUri(string subscriptionId, string resourceGroupName, string l3IsolationDomainName, string externalNetworkName, UpdateAdministrativeStateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ManagedNetworkFabric/l3IsolationDomains/", false); + uri.AppendPath(l3IsolationDomainName, true); + uri.AppendPath("/externalNetworks/", false); + uri.AppendPath(externalNetworkName, true); + uri.AppendPath("/updateStaticRouteBfdAdministrativeState", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateStaticRouteBfdAdministrativeStateRequest(string subscriptionId, string resourceGroupName, string l3IsolationDomainName, string externalNetworkName, UpdateAdministrativeStateContent content) { var message = _pipeline.CreateMessage(); @@ -618,6 +731,14 @@ public Response UpdateStaticRouteBfdAdministrativeState(string subscriptionId, s } } + internal RequestUriBuilder CreateListByL3IsolationDomainNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string l3IsolationDomainName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByL3IsolationDomainNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string l3IsolationDomainName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/RestOperations/InternalNetworksRestOperations.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/RestOperations/InternalNetworksRestOperations.cs index c6f2b1388281..e2c1a1580b85 100644 --- a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/RestOperations/InternalNetworksRestOperations.cs +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/RestOperations/InternalNetworksRestOperations.cs @@ -37,6 +37,22 @@ public InternalNetworksRestOperations(HttpPipeline pipeline, string applicationI _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string l3IsolationDomainName, string internalNetworkName, NetworkFabricInternalNetworkData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ManagedNetworkFabric/l3IsolationDomains/", false); + uri.AppendPath(l3IsolationDomainName, true); + uri.AppendPath("/internalNetworks/", false); + uri.AppendPath(internalNetworkName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string l3IsolationDomainName, string internalNetworkName, NetworkFabricInternalNetworkData data) { var message = _pipeline.CreateMessage(); @@ -121,6 +137,22 @@ public Response Create(string subscriptionId, string resourceGroupName, string l } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string l3IsolationDomainName, string internalNetworkName) + { + 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.ManagedNetworkFabric/l3IsolationDomains/", false); + uri.AppendPath(l3IsolationDomainName, true); + uri.AppendPath("/internalNetworks/", false); + uri.AppendPath(internalNetworkName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string l3IsolationDomainName, string internalNetworkName) { var message = _pipeline.CreateMessage(); @@ -209,6 +241,22 @@ public Response Get(string subscriptionId, str } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string l3IsolationDomainName, string internalNetworkName, NetworkFabricInternalNetworkPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ManagedNetworkFabric/l3IsolationDomains/", false); + uri.AppendPath(l3IsolationDomainName, true); + uri.AppendPath("/internalNetworks/", false); + uri.AppendPath(internalNetworkName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string l3IsolationDomainName, string internalNetworkName, NetworkFabricInternalNetworkPatch patch) { var message = _pipeline.CreateMessage(); @@ -293,6 +341,22 @@ public Response Update(string subscriptionId, string resourceGroupName, string l } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string l3IsolationDomainName, string internalNetworkName) + { + 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.ManagedNetworkFabric/l3IsolationDomains/", false); + uri.AppendPath(l3IsolationDomainName, true); + uri.AppendPath("/internalNetworks/", false); + uri.AppendPath(internalNetworkName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string l3IsolationDomainName, string internalNetworkName) { var message = _pipeline.CreateMessage(); @@ -369,6 +433,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string l } } + internal RequestUriBuilder CreateListByL3IsolationDomainRequestUri(string subscriptionId, string resourceGroupName, string l3IsolationDomainName) + { + 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.ManagedNetworkFabric/l3IsolationDomains/", false); + uri.AppendPath(l3IsolationDomainName, true); + uri.AppendPath("/internalNetworks", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByL3IsolationDomainRequest(string subscriptionId, string resourceGroupName, string l3IsolationDomainName) { var message = _pipeline.CreateMessage(); @@ -448,6 +527,23 @@ public Response ListByL3IsolationDomain(string subscriptio } } + internal RequestUriBuilder CreateUpdateAdministrativeStateRequestUri(string subscriptionId, string resourceGroupName, string l3IsolationDomainName, string internalNetworkName, UpdateAdministrativeStateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ManagedNetworkFabric/l3IsolationDomains/", false); + uri.AppendPath(l3IsolationDomainName, true); + uri.AppendPath("/internalNetworks/", false); + uri.AppendPath(internalNetworkName, true); + uri.AppendPath("/updateAdministrativeState", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateAdministrativeStateRequest(string subscriptionId, string resourceGroupName, string l3IsolationDomainName, string internalNetworkName, UpdateAdministrativeStateContent content) { var message = _pipeline.CreateMessage(); @@ -533,6 +629,23 @@ public Response UpdateAdministrativeState(string subscriptionId, string resource } } + internal RequestUriBuilder CreateUpdateBgpAdministrativeStateRequestUri(string subscriptionId, string resourceGroupName, string l3IsolationDomainName, string internalNetworkName, UpdateAdministrativeStateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ManagedNetworkFabric/l3IsolationDomains/", false); + uri.AppendPath(l3IsolationDomainName, true); + uri.AppendPath("/internalNetworks/", false); + uri.AppendPath(internalNetworkName, true); + uri.AppendPath("/updateBgpAdministrativeState", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateBgpAdministrativeStateRequest(string subscriptionId, string resourceGroupName, string l3IsolationDomainName, string internalNetworkName, UpdateAdministrativeStateContent content) { var message = _pipeline.CreateMessage(); @@ -618,6 +731,23 @@ public Response UpdateBgpAdministrativeState(string subscriptionId, string resou } } + internal RequestUriBuilder CreateUpdateStaticRouteBfdAdministrativeStateRequestUri(string subscriptionId, string resourceGroupName, string l3IsolationDomainName, string internalNetworkName, UpdateAdministrativeStateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ManagedNetworkFabric/l3IsolationDomains/", false); + uri.AppendPath(l3IsolationDomainName, true); + uri.AppendPath("/internalNetworks/", false); + uri.AppendPath(internalNetworkName, true); + uri.AppendPath("/updateStaticRouteBfdAdministrativeState", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateStaticRouteBfdAdministrativeStateRequest(string subscriptionId, string resourceGroupName, string l3IsolationDomainName, string internalNetworkName, UpdateAdministrativeStateContent content) { var message = _pipeline.CreateMessage(); @@ -703,6 +833,14 @@ public Response UpdateStaticRouteBfdAdministrativeState(string subscriptionId, s } } + internal RequestUriBuilder CreateListByL3IsolationDomainNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string l3IsolationDomainName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByL3IsolationDomainNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string l3IsolationDomainName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/RestOperations/InternetGatewayRulesRestOperations.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/RestOperations/InternetGatewayRulesRestOperations.cs index 613fdce6ee1e..536c3f228e91 100644 --- a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/RestOperations/InternetGatewayRulesRestOperations.cs +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/RestOperations/InternetGatewayRulesRestOperations.cs @@ -37,6 +37,20 @@ public InternetGatewayRulesRestOperations(HttpPipeline pipeline, string applicat _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string internetGatewayRuleName, NetworkFabricInternetGatewayRuleData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ManagedNetworkFabric/internetGatewayRules/", false); + uri.AppendPath(internetGatewayRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string internetGatewayRuleName, NetworkFabricInternetGatewayRuleData data) { var message = _pipeline.CreateMessage(); @@ -115,6 +129,20 @@ public Response Create(string subscriptionId, string resourceGroupName, string i } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string internetGatewayRuleName) + { + 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.ManagedNetworkFabric/internetGatewayRules/", false); + uri.AppendPath(internetGatewayRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string internetGatewayRuleName) { var message = _pipeline.CreateMessage(); @@ -197,6 +225,20 @@ public Response Get(string subscriptionId, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string internetGatewayRuleName, NetworkFabricInternetGatewayRulePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ManagedNetworkFabric/internetGatewayRules/", false); + uri.AppendPath(internetGatewayRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string internetGatewayRuleName, NetworkFabricInternetGatewayRulePatch patch) { var message = _pipeline.CreateMessage(); @@ -275,6 +317,20 @@ public Response Update(string subscriptionId, string resourceGroupName, string i } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string internetGatewayRuleName) + { + 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.ManagedNetworkFabric/internetGatewayRules/", false); + uri.AppendPath(internetGatewayRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string internetGatewayRuleName) { var message = _pipeline.CreateMessage(); @@ -345,6 +401,19 @@ public Response Delete(string subscriptionId, string resourceGroupName, string i } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.ManagedNetworkFabric/internetGatewayRules", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -418,6 +487,17 @@ public Response ListByResourceGroup(string subsc } } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ManagedNetworkFabric/internetGatewayRules", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -485,6 +565,14 @@ public Response ListBySubscription(string subscr } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -557,6 +645,14 @@ public Response ListByResourceGroupNextPage(stri } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/RestOperations/InternetGatewaysRestOperations.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/RestOperations/InternetGatewaysRestOperations.cs index 31fe7ed327b4..42be9faba940 100644 --- a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/RestOperations/InternetGatewaysRestOperations.cs +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/RestOperations/InternetGatewaysRestOperations.cs @@ -37,6 +37,20 @@ public InternetGatewaysRestOperations(HttpPipeline pipeline, string applicationI _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string internetGatewayName) + { + 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.ManagedNetworkFabric/internetGateways/", false); + uri.AppendPath(internetGatewayName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string internetGatewayName) { var message = _pipeline.CreateMessage(); @@ -119,6 +133,20 @@ public Response Get(string subscriptionId, str } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string internetGatewayName, NetworkFabricInternetGatewayPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ManagedNetworkFabric/internetGateways/", false); + uri.AppendPath(internetGatewayName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string internetGatewayName, NetworkFabricInternetGatewayPatch patch) { var message = _pipeline.CreateMessage(); @@ -197,6 +225,19 @@ public Response Update(string subscriptionId, string resourceGroupName, string i } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.ManagedNetworkFabric/internetGateways", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -270,6 +311,17 @@ public Response ListByResourceGroup(string subscript } } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ManagedNetworkFabric/internetGateways", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -337,6 +389,14 @@ public Response ListBySubscription(string subscripti } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -409,6 +469,14 @@ public Response ListByResourceGroupNextPage(string n } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/RestOperations/IpCommunitiesRestOperations.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/RestOperations/IpCommunitiesRestOperations.cs index a8ee0575a47b..95951e93b823 100644 --- a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/RestOperations/IpCommunitiesRestOperations.cs +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/RestOperations/IpCommunitiesRestOperations.cs @@ -37,6 +37,20 @@ public IpCommunitiesRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string ipCommunityName, NetworkFabricIPCommunityData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ManagedNetworkFabric/ipCommunities/", false); + uri.AppendPath(ipCommunityName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string ipCommunityName, NetworkFabricIPCommunityData data) { var message = _pipeline.CreateMessage(); @@ -115,6 +129,20 @@ public Response Create(string subscriptionId, string resourceGroupName, string i } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string ipCommunityName) + { + 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.ManagedNetworkFabric/ipCommunities/", false); + uri.AppendPath(ipCommunityName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string ipCommunityName) { var message = _pipeline.CreateMessage(); @@ -197,6 +225,20 @@ public Response Get(string subscriptionId, string } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string ipCommunityName, NetworkFabricIPCommunityPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ManagedNetworkFabric/ipCommunities/", false); + uri.AppendPath(ipCommunityName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string ipCommunityName, NetworkFabricIPCommunityPatch patch) { var message = _pipeline.CreateMessage(); @@ -275,6 +317,20 @@ public Response Update(string subscriptionId, string resourceGroupName, string i } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string ipCommunityName) + { + 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.ManagedNetworkFabric/ipCommunities/", false); + uri.AppendPath(ipCommunityName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string ipCommunityName) { var message = _pipeline.CreateMessage(); @@ -345,6 +401,19 @@ public Response Delete(string subscriptionId, string resourceGroupName, string i } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.ManagedNetworkFabric/ipCommunities", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -418,6 +487,17 @@ public Response ListByResourceGroup(string subscription } } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ManagedNetworkFabric/ipCommunities", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -485,6 +565,14 @@ public Response ListBySubscription(string subscriptionI } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -557,6 +645,14 @@ public Response ListByResourceGroupNextPage(string next } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/RestOperations/IpExtendedCommunitiesRestOperations.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/RestOperations/IpExtendedCommunitiesRestOperations.cs index 78ddf1cc46c4..c870df44eabe 100644 --- a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/RestOperations/IpExtendedCommunitiesRestOperations.cs +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/RestOperations/IpExtendedCommunitiesRestOperations.cs @@ -37,6 +37,20 @@ public IpExtendedCommunitiesRestOperations(HttpPipeline pipeline, string applica _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string ipExtendedCommunityName, NetworkFabricIPExtendedCommunityData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ManagedNetworkFabric/ipExtendedCommunities/", false); + uri.AppendPath(ipExtendedCommunityName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string ipExtendedCommunityName, NetworkFabricIPExtendedCommunityData data) { var message = _pipeline.CreateMessage(); @@ -115,6 +129,20 @@ public Response Create(string subscriptionId, string resourceGroupName, string i } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string ipExtendedCommunityName) + { + 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.ManagedNetworkFabric/ipExtendedCommunities/", false); + uri.AppendPath(ipExtendedCommunityName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string ipExtendedCommunityName) { var message = _pipeline.CreateMessage(); @@ -197,6 +225,20 @@ public Response Get(string subscriptionId, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string ipExtendedCommunityName, NetworkFabricIPExtendedCommunityPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ManagedNetworkFabric/ipExtendedCommunities/", false); + uri.AppendPath(ipExtendedCommunityName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string ipExtendedCommunityName, NetworkFabricIPExtendedCommunityPatch patch) { var message = _pipeline.CreateMessage(); @@ -275,6 +317,20 @@ public Response Update(string subscriptionId, string resourceGroupName, string i } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string ipExtendedCommunityName) + { + 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.ManagedNetworkFabric/ipExtendedCommunities/", false); + uri.AppendPath(ipExtendedCommunityName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string ipExtendedCommunityName) { var message = _pipeline.CreateMessage(); @@ -345,6 +401,19 @@ public Response Delete(string subscriptionId, string resourceGroupName, string i } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.ManagedNetworkFabric/ipExtendedCommunities", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -418,6 +487,17 @@ public Response ListByResourceGroup(string subscr } } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ManagedNetworkFabric/ipExtendedCommunities", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -485,6 +565,14 @@ public Response ListBySubscription(string subscri } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -557,6 +645,14 @@ public Response ListByResourceGroupNextPage(strin } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/RestOperations/IpPrefixesRestOperations.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/RestOperations/IpPrefixesRestOperations.cs index 682269f3707a..a79e2ddb7c61 100644 --- a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/RestOperations/IpPrefixesRestOperations.cs +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/RestOperations/IpPrefixesRestOperations.cs @@ -37,6 +37,20 @@ public IpPrefixesRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string ipPrefixName, NetworkFabricIPPrefixData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ManagedNetworkFabric/ipPrefixes/", false); + uri.AppendPath(ipPrefixName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string ipPrefixName, NetworkFabricIPPrefixData data) { var message = _pipeline.CreateMessage(); @@ -115,6 +129,20 @@ public Response Create(string subscriptionId, string resourceGroupName, string i } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string ipPrefixName) + { + 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.ManagedNetworkFabric/ipPrefixes/", false); + uri.AppendPath(ipPrefixName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string ipPrefixName) { var message = _pipeline.CreateMessage(); @@ -197,6 +225,20 @@ public Response Get(string subscriptionId, string res } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string ipPrefixName, NetworkFabricIPPrefixPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ManagedNetworkFabric/ipPrefixes/", false); + uri.AppendPath(ipPrefixName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string ipPrefixName, NetworkFabricIPPrefixPatch patch) { var message = _pipeline.CreateMessage(); @@ -275,6 +317,20 @@ public Response Update(string subscriptionId, string resourceGroupName, string i } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string ipPrefixName) + { + 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.ManagedNetworkFabric/ipPrefixes/", false); + uri.AppendPath(ipPrefixName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string ipPrefixName) { var message = _pipeline.CreateMessage(); @@ -345,6 +401,19 @@ public Response Delete(string subscriptionId, string resourceGroupName, string i } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.ManagedNetworkFabric/ipPrefixes", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -418,6 +487,17 @@ public Response ListByResourceGroup(string subscriptionId, } } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ManagedNetworkFabric/ipPrefixes", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -485,6 +565,14 @@ public Response ListBySubscription(string subscriptionId, } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -557,6 +645,14 @@ public Response ListByResourceGroupNextPage(string nextLin } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/RestOperations/L2IsolationDomainsRestOperations.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/RestOperations/L2IsolationDomainsRestOperations.cs index 1126acdcf8f5..562e95fdc42b 100644 --- a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/RestOperations/L2IsolationDomainsRestOperations.cs +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/RestOperations/L2IsolationDomainsRestOperations.cs @@ -37,6 +37,20 @@ public L2IsolationDomainsRestOperations(HttpPipeline pipeline, string applicatio _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string l2IsolationDomainName, NetworkFabricL2IsolationDomainData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ManagedNetworkFabric/l2IsolationDomains/", false); + uri.AppendPath(l2IsolationDomainName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string l2IsolationDomainName, NetworkFabricL2IsolationDomainData data) { var message = _pipeline.CreateMessage(); @@ -115,6 +129,20 @@ public Response Create(string subscriptionId, string resourceGroupName, string l } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string l2IsolationDomainName) + { + 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.ManagedNetworkFabric/l2IsolationDomains/", false); + uri.AppendPath(l2IsolationDomainName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string l2IsolationDomainName) { var message = _pipeline.CreateMessage(); @@ -197,6 +225,20 @@ public Response Get(string subscriptionId, s } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string l2IsolationDomainName, NetworkFabricL2IsolationDomainPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ManagedNetworkFabric/l2IsolationDomains/", false); + uri.AppendPath(l2IsolationDomainName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string l2IsolationDomainName, NetworkFabricL2IsolationDomainPatch patch) { var message = _pipeline.CreateMessage(); @@ -275,6 +317,20 @@ public Response Update(string subscriptionId, string resourceGroupName, string l } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string l2IsolationDomainName) + { + 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.ManagedNetworkFabric/l2IsolationDomains/", false); + uri.AppendPath(l2IsolationDomainName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string l2IsolationDomainName) { var message = _pipeline.CreateMessage(); @@ -345,6 +401,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string l } } + internal RequestUriBuilder CreateUpdateAdministrativeStateRequestUri(string subscriptionId, string resourceGroupName, string l2IsolationDomainName, UpdateAdministrativeStateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ManagedNetworkFabric/l2IsolationDomains/", false); + uri.AppendPath(l2IsolationDomainName, true); + uri.AppendPath("/updateAdministrativeState", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateAdministrativeStateRequest(string subscriptionId, string resourceGroupName, string l2IsolationDomainName, UpdateAdministrativeStateContent content) { var message = _pipeline.CreateMessage(); @@ -424,6 +495,21 @@ public Response UpdateAdministrativeState(string subscriptionId, string resource } } + internal RequestUriBuilder CreateValidateConfigurationRequestUri(string subscriptionId, string resourceGroupName, string l2IsolationDomainName) + { + 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.ManagedNetworkFabric/l2IsolationDomains/", false); + uri.AppendPath(l2IsolationDomainName, true); + uri.AppendPath("/validateConfiguration", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateValidateConfigurationRequest(string subscriptionId, string resourceGroupName, string l2IsolationDomainName) { var message = _pipeline.CreateMessage(); @@ -495,6 +581,21 @@ public Response ValidateConfiguration(string subscriptionId, string resourceGrou } } + internal RequestUriBuilder CreateCommitConfigurationRequestUri(string subscriptionId, string resourceGroupName, string l2IsolationDomainName) + { + 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.ManagedNetworkFabric/l2IsolationDomains/", false); + uri.AppendPath(l2IsolationDomainName, true); + uri.AppendPath("/commitConfiguration", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCommitConfigurationRequest(string subscriptionId, string resourceGroupName, string l2IsolationDomainName) { var message = _pipeline.CreateMessage(); @@ -566,6 +667,19 @@ public Response CommitConfiguration(string subscriptionId, string resourceGroupN } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.ManagedNetworkFabric/l2IsolationDomains", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -639,6 +753,17 @@ public Response ListByResourceGroup(string subscri } } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ManagedNetworkFabric/l2IsolationDomains", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -706,6 +831,14 @@ public Response ListBySubscription(string subscrip } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -778,6 +911,14 @@ public Response ListByResourceGroupNextPage(string } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/RestOperations/L3IsolationDomainsRestOperations.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/RestOperations/L3IsolationDomainsRestOperations.cs index 0615e60a0e38..d72a11a6b3fe 100644 --- a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/RestOperations/L3IsolationDomainsRestOperations.cs +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/RestOperations/L3IsolationDomainsRestOperations.cs @@ -37,6 +37,20 @@ public L3IsolationDomainsRestOperations(HttpPipeline pipeline, string applicatio _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string l3IsolationDomainName, NetworkFabricL3IsolationDomainData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ManagedNetworkFabric/l3IsolationDomains/", false); + uri.AppendPath(l3IsolationDomainName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string l3IsolationDomainName, NetworkFabricL3IsolationDomainData data) { var message = _pipeline.CreateMessage(); @@ -115,6 +129,20 @@ public Response Create(string subscriptionId, string resourceGroupName, string l } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string l3IsolationDomainName) + { + 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.ManagedNetworkFabric/l3IsolationDomains/", false); + uri.AppendPath(l3IsolationDomainName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string l3IsolationDomainName) { var message = _pipeline.CreateMessage(); @@ -197,6 +225,20 @@ public Response Get(string subscriptionId, s } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string l3IsolationDomainName, NetworkFabricL3IsolationDomainPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ManagedNetworkFabric/l3IsolationDomains/", false); + uri.AppendPath(l3IsolationDomainName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string l3IsolationDomainName, NetworkFabricL3IsolationDomainPatch patch) { var message = _pipeline.CreateMessage(); @@ -275,6 +317,20 @@ public Response Update(string subscriptionId, string resourceGroupName, string l } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string l3IsolationDomainName) + { + 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.ManagedNetworkFabric/l3IsolationDomains/", false); + uri.AppendPath(l3IsolationDomainName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string l3IsolationDomainName) { var message = _pipeline.CreateMessage(); @@ -345,6 +401,19 @@ public Response Delete(string subscriptionId, string resourceGroupName, string l } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.ManagedNetworkFabric/l3IsolationDomains", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -418,6 +487,17 @@ public Response ListByResourceGroup(string subscri } } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ManagedNetworkFabric/l3IsolationDomains", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -485,6 +565,21 @@ public Response ListBySubscription(string subscrip } } + internal RequestUriBuilder CreateUpdateAdministrativeStateRequestUri(string subscriptionId, string resourceGroupName, string l3IsolationDomainName, UpdateAdministrativeStateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ManagedNetworkFabric/l3IsolationDomains/", false); + uri.AppendPath(l3IsolationDomainName, true); + uri.AppendPath("/updateAdministrativeState", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateAdministrativeStateRequest(string subscriptionId, string resourceGroupName, string l3IsolationDomainName, UpdateAdministrativeStateContent content) { var message = _pipeline.CreateMessage(); @@ -564,6 +659,21 @@ public Response UpdateAdministrativeState(string subscriptionId, string resource } } + internal RequestUriBuilder CreateValidateConfigurationRequestUri(string subscriptionId, string resourceGroupName, string l3IsolationDomainName) + { + 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.ManagedNetworkFabric/l3IsolationDomains/", false); + uri.AppendPath(l3IsolationDomainName, true); + uri.AppendPath("/validateConfiguration", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateValidateConfigurationRequest(string subscriptionId, string resourceGroupName, string l3IsolationDomainName) { var message = _pipeline.CreateMessage(); @@ -635,6 +745,21 @@ public Response ValidateConfiguration(string subscriptionId, string resourceGrou } } + internal RequestUriBuilder CreateCommitConfigurationRequestUri(string subscriptionId, string resourceGroupName, string l3IsolationDomainName) + { + 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.ManagedNetworkFabric/l3IsolationDomains/", false); + uri.AppendPath(l3IsolationDomainName, true); + uri.AppendPath("/commitConfiguration", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCommitConfigurationRequest(string subscriptionId, string resourceGroupName, string l3IsolationDomainName) { var message = _pipeline.CreateMessage(); @@ -706,6 +831,14 @@ public Response CommitConfiguration(string subscriptionId, string resourceGroupN } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -778,6 +911,14 @@ public Response ListByResourceGroupNextPage(string } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/RestOperations/NeighborGroupsRestOperations.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/RestOperations/NeighborGroupsRestOperations.cs index e4c2cc41b1e6..539d6bb3dfb5 100644 --- a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/RestOperations/NeighborGroupsRestOperations.cs +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/RestOperations/NeighborGroupsRestOperations.cs @@ -37,6 +37,20 @@ public NeighborGroupsRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string neighborGroupName, NetworkFabricNeighborGroupData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ManagedNetworkFabric/neighborGroups/", false); + uri.AppendPath(neighborGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string neighborGroupName, NetworkFabricNeighborGroupData data) { var message = _pipeline.CreateMessage(); @@ -115,6 +129,20 @@ public Response Create(string subscriptionId, string resourceGroupName, string n } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string neighborGroupName) + { + 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.ManagedNetworkFabric/neighborGroups/", false); + uri.AppendPath(neighborGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string neighborGroupName) { var message = _pipeline.CreateMessage(); @@ -197,6 +225,20 @@ public Response Get(string subscriptionId, strin } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string neighborGroupName, NetworkFabricNeighborGroupPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ManagedNetworkFabric/neighborGroups/", false); + uri.AppendPath(neighborGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string neighborGroupName, NetworkFabricNeighborGroupPatch patch) { var message = _pipeline.CreateMessage(); @@ -275,6 +317,20 @@ public Response Update(string subscriptionId, string resourceGroupName, string n } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string neighborGroupName) + { + 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.ManagedNetworkFabric/neighborGroups/", false); + uri.AppendPath(neighborGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string neighborGroupName) { var message = _pipeline.CreateMessage(); @@ -345,6 +401,19 @@ public Response Delete(string subscriptionId, string resourceGroupName, string n } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.ManagedNetworkFabric/neighborGroups", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -418,6 +487,17 @@ public Response ListByResourceGroup(string subscriptio } } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ManagedNetworkFabric/neighborGroups", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -485,6 +565,14 @@ public Response ListBySubscription(string subscription } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -557,6 +645,14 @@ public Response ListByResourceGroupNextPage(string nex } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/RestOperations/NetworkDeviceSkusRestOperations.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/RestOperations/NetworkDeviceSkusRestOperations.cs index 9cc1101b3b2c..91ddf3c9e17a 100644 --- a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/RestOperations/NetworkDeviceSkusRestOperations.cs +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/RestOperations/NetworkDeviceSkusRestOperations.cs @@ -37,6 +37,18 @@ public NetworkDeviceSkusRestOperations(HttpPipeline pipeline, string application _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string networkDeviceSkuName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ManagedNetworkFabric/networkDeviceSkus/", false); + uri.AppendPath(networkDeviceSkuName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string networkDeviceSkuName) { var message = _pipeline.CreateMessage(); @@ -113,6 +125,17 @@ public Response Get(string subscriptionId, string networkD } } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ManagedNetworkFabric/networkDeviceSkus", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -180,6 +203,14 @@ public Response ListBySubscription(string subscript } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/RestOperations/NetworkDevicesRestOperations.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/RestOperations/NetworkDevicesRestOperations.cs index 8a3e84113569..7ea3e10e6e24 100644 --- a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/RestOperations/NetworkDevicesRestOperations.cs +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/RestOperations/NetworkDevicesRestOperations.cs @@ -37,6 +37,20 @@ public NetworkDevicesRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string networkDeviceName, NetworkDeviceData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ManagedNetworkFabric/networkDevices/", false); + uri.AppendPath(networkDeviceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string networkDeviceName, NetworkDeviceData data) { var message = _pipeline.CreateMessage(); @@ -115,6 +129,20 @@ public Response Create(string subscriptionId, string resourceGroupName, string n } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string networkDeviceName) + { + 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.ManagedNetworkFabric/networkDevices/", false); + uri.AppendPath(networkDeviceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string networkDeviceName) { var message = _pipeline.CreateMessage(); @@ -197,6 +225,20 @@ public Response Get(string subscriptionId, string resourceGro } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string networkDeviceName, NetworkDevicePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ManagedNetworkFabric/networkDevices/", false); + uri.AppendPath(networkDeviceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string networkDeviceName, NetworkDevicePatch patch) { var message = _pipeline.CreateMessage(); @@ -275,6 +317,20 @@ public Response Update(string subscriptionId, string resourceGroupName, string n } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string networkDeviceName) + { + 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.ManagedNetworkFabric/networkDevices/", false); + uri.AppendPath(networkDeviceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string networkDeviceName) { var message = _pipeline.CreateMessage(); @@ -345,6 +401,19 @@ public Response Delete(string subscriptionId, string resourceGroupName, string n } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.ManagedNetworkFabric/networkDevices", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -418,6 +487,17 @@ public Response ListByResourceGroup(string subscriptio } } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ManagedNetworkFabric/networkDevices", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -485,6 +565,21 @@ public Response ListBySubscription(string subscription } } + internal RequestUriBuilder CreateRebootRequestUri(string subscriptionId, string resourceGroupName, string networkDeviceName, NetworkDeviceRebootContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ManagedNetworkFabric/networkDevices/", false); + uri.AppendPath(networkDeviceName, true); + uri.AppendPath("/reboot", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRebootRequest(string subscriptionId, string resourceGroupName, string networkDeviceName, NetworkDeviceRebootContent content) { var message = _pipeline.CreateMessage(); @@ -564,6 +659,21 @@ public Response Reboot(string subscriptionId, string resourceGroupName, string n } } + internal RequestUriBuilder CreateRefreshConfigurationRequestUri(string subscriptionId, string resourceGroupName, string networkDeviceName) + { + 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.ManagedNetworkFabric/networkDevices/", false); + uri.AppendPath(networkDeviceName, true); + uri.AppendPath("/refreshConfiguration", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRefreshConfigurationRequest(string subscriptionId, string resourceGroupName, string networkDeviceName) { var message = _pipeline.CreateMessage(); @@ -635,6 +745,21 @@ public Response RefreshConfiguration(string subscriptionId, string resourceGroup } } + internal RequestUriBuilder CreateUpdateAdministrativeStateRequestUri(string subscriptionId, string resourceGroupName, string networkDeviceName, UpdateDeviceAdministrativeStateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ManagedNetworkFabric/networkDevices/", false); + uri.AppendPath(networkDeviceName, true); + uri.AppendPath("/updateAdministrativeState", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateAdministrativeStateRequest(string subscriptionId, string resourceGroupName, string networkDeviceName, UpdateDeviceAdministrativeStateContent content) { var message = _pipeline.CreateMessage(); @@ -714,6 +839,21 @@ public Response UpdateAdministrativeState(string subscriptionId, string resource } } + internal RequestUriBuilder CreateUpgradeRequestUri(string subscriptionId, string resourceGroupName, string networkDeviceName, NetworkFabricUpdateVersionContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ManagedNetworkFabric/networkDevices/", false); + uri.AppendPath(networkDeviceName, true); + uri.AppendPath("/upgrade", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpgradeRequest(string subscriptionId, string resourceGroupName, string networkDeviceName, NetworkFabricUpdateVersionContent content) { var message = _pipeline.CreateMessage(); @@ -793,6 +933,14 @@ public Response Upgrade(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -865,6 +1013,14 @@ public Response ListByResourceGroupNextPage(string nex } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/RestOperations/NetworkFabricControllersRestOperations.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/RestOperations/NetworkFabricControllersRestOperations.cs index 965424e21922..3b0e95cea783 100644 --- a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/RestOperations/NetworkFabricControllersRestOperations.cs +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/RestOperations/NetworkFabricControllersRestOperations.cs @@ -37,6 +37,20 @@ public NetworkFabricControllersRestOperations(HttpPipeline pipeline, string appl _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string networkFabricControllerName, NetworkFabricControllerData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ManagedNetworkFabric/networkFabricControllers/", false); + uri.AppendPath(networkFabricControllerName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string networkFabricControllerName, NetworkFabricControllerData data) { var message = _pipeline.CreateMessage(); @@ -115,6 +129,20 @@ public Response Create(string subscriptionId, string resourceGroupName, string n } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string networkFabricControllerName) + { + 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.ManagedNetworkFabric/networkFabricControllers/", false); + uri.AppendPath(networkFabricControllerName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string networkFabricControllerName) { var message = _pipeline.CreateMessage(); @@ -197,6 +225,20 @@ public Response Get(string subscriptionId, string r } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string networkFabricControllerName, NetworkFabricControllerPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ManagedNetworkFabric/networkFabricControllers/", false); + uri.AppendPath(networkFabricControllerName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string networkFabricControllerName, NetworkFabricControllerPatch patch) { var message = _pipeline.CreateMessage(); @@ -275,6 +317,20 @@ public Response Update(string subscriptionId, string resourceGroupName, string n } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string networkFabricControllerName) + { + 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.ManagedNetworkFabric/networkFabricControllers/", false); + uri.AppendPath(networkFabricControllerName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string networkFabricControllerName) { var message = _pipeline.CreateMessage(); @@ -345,6 +401,19 @@ public Response Delete(string subscriptionId, string resourceGroupName, string n } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.ManagedNetworkFabric/networkFabricControllers", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -418,6 +487,17 @@ public Response ListByResourceGroup(string s } } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ManagedNetworkFabric/networkFabricControllers", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -485,6 +565,14 @@ public Response ListBySubscription(string su } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -557,6 +645,14 @@ public Response ListByResourceGroupNextPage( } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/RestOperations/NetworkFabricSkusRestOperations.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/RestOperations/NetworkFabricSkusRestOperations.cs index 806c3aea8a20..555409b220b5 100644 --- a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/RestOperations/NetworkFabricSkusRestOperations.cs +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/RestOperations/NetworkFabricSkusRestOperations.cs @@ -37,6 +37,18 @@ public NetworkFabricSkusRestOperations(HttpPipeline pipeline, string application _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string networkFabricSkuName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ManagedNetworkFabric/networkFabricSkus/", false); + uri.AppendPath(networkFabricSkuName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string networkFabricSkuName) { var message = _pipeline.CreateMessage(); @@ -113,6 +125,17 @@ public Response Get(string subscriptionId, string networkF } } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ManagedNetworkFabric/networkFabricSkus", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -180,6 +203,14 @@ public Response ListBySubscription(string subscript } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/RestOperations/NetworkFabricsRestOperations.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/RestOperations/NetworkFabricsRestOperations.cs index 4b3e74be422c..0fc49dae8ac5 100644 --- a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/RestOperations/NetworkFabricsRestOperations.cs +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/RestOperations/NetworkFabricsRestOperations.cs @@ -37,6 +37,20 @@ public NetworkFabricsRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string networkFabricName, NetworkFabricData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ManagedNetworkFabric/networkFabrics/", false); + uri.AppendPath(networkFabricName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string networkFabricName, NetworkFabricData data) { var message = _pipeline.CreateMessage(); @@ -115,6 +129,20 @@ public Response Create(string subscriptionId, string resourceGroupName, string n } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string networkFabricName) + { + 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.ManagedNetworkFabric/networkFabrics/", false); + uri.AppendPath(networkFabricName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string networkFabricName) { var message = _pipeline.CreateMessage(); @@ -197,6 +225,20 @@ public Response Get(string subscriptionId, string resourceGro } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string networkFabricName, NetworkFabricPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ManagedNetworkFabric/networkFabrics/", false); + uri.AppendPath(networkFabricName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string networkFabricName, NetworkFabricPatch patch) { var message = _pipeline.CreateMessage(); @@ -275,6 +317,20 @@ public Response Update(string subscriptionId, string resourceGroupName, string n } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string networkFabricName) + { + 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.ManagedNetworkFabric/networkFabrics/", false); + uri.AppendPath(networkFabricName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string networkFabricName) { var message = _pipeline.CreateMessage(); @@ -345,6 +401,19 @@ public Response Delete(string subscriptionId, string resourceGroupName, string n } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.ManagedNetworkFabric/networkFabrics", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -418,6 +487,17 @@ public Response ListByResourceGroup(string subscriptio } } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ManagedNetworkFabric/networkFabrics", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -485,6 +565,21 @@ public Response ListBySubscription(string subscription } } + internal RequestUriBuilder CreateProvisionRequestUri(string subscriptionId, string resourceGroupName, string networkFabricName) + { + 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.ManagedNetworkFabric/networkFabrics/", false); + uri.AppendPath(networkFabricName, true); + uri.AppendPath("/provision", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateProvisionRequest(string subscriptionId, string resourceGroupName, string networkFabricName) { var message = _pipeline.CreateMessage(); @@ -556,6 +651,21 @@ public Response Provision(string subscriptionId, string resourceGroupName, strin } } + internal RequestUriBuilder CreateDeprovisionRequestUri(string subscriptionId, string resourceGroupName, string networkFabricName) + { + 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.ManagedNetworkFabric/networkFabrics/", false); + uri.AppendPath(networkFabricName, true); + uri.AppendPath("/deprovision", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeprovisionRequest(string subscriptionId, string resourceGroupName, string networkFabricName) { var message = _pipeline.CreateMessage(); @@ -627,6 +737,21 @@ public Response Deprovision(string subscriptionId, string resourceGroupName, str } } + internal RequestUriBuilder CreateUpgradeRequestUri(string subscriptionId, string resourceGroupName, string networkFabricName, NetworkFabricUpdateVersionContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ManagedNetworkFabric/networkFabrics/", false); + uri.AppendPath(networkFabricName, true); + uri.AppendPath("/upgrade", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpgradeRequest(string subscriptionId, string resourceGroupName, string networkFabricName, NetworkFabricUpdateVersionContent content) { var message = _pipeline.CreateMessage(); @@ -706,6 +831,21 @@ public Response Upgrade(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreateRefreshConfigurationRequestUri(string subscriptionId, string resourceGroupName, string networkFabricName) + { + 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.ManagedNetworkFabric/networkFabrics/", false); + uri.AppendPath(networkFabricName, true); + uri.AppendPath("/refreshConfiguration", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRefreshConfigurationRequest(string subscriptionId, string resourceGroupName, string networkFabricName) { var message = _pipeline.CreateMessage(); @@ -777,6 +917,21 @@ public Response RefreshConfiguration(string subscriptionId, string resourceGroup } } + internal RequestUriBuilder CreateUpdateWorkloadManagementBfdConfigurationRequestUri(string subscriptionId, string resourceGroupName, string networkFabricName, UpdateAdministrativeStateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ManagedNetworkFabric/networkFabrics/", false); + uri.AppendPath(networkFabricName, true); + uri.AppendPath("/updateWorkloadManagementBfdConfiguration", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateWorkloadManagementBfdConfigurationRequest(string subscriptionId, string resourceGroupName, string networkFabricName, UpdateAdministrativeStateContent content) { var message = _pipeline.CreateMessage(); @@ -856,6 +1011,21 @@ public Response UpdateWorkloadManagementBfdConfiguration(string subscriptionId, } } + internal RequestUriBuilder CreateUpdateInfraManagementBfdConfigurationRequestUri(string subscriptionId, string resourceGroupName, string networkFabricName, UpdateAdministrativeStateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ManagedNetworkFabric/networkFabrics/", false); + uri.AppendPath(networkFabricName, true); + uri.AppendPath("/updateInfraManagementBfdConfiguration", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateInfraManagementBfdConfigurationRequest(string subscriptionId, string resourceGroupName, string networkFabricName, UpdateAdministrativeStateContent content) { var message = _pipeline.CreateMessage(); @@ -935,6 +1105,21 @@ public Response UpdateInfraManagementBfdConfiguration(string subscriptionId, str } } + internal RequestUriBuilder CreateValidateConfigurationRequestUri(string subscriptionId, string resourceGroupName, string networkFabricName, ValidateConfigurationContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ManagedNetworkFabric/networkFabrics/", false); + uri.AppendPath(networkFabricName, true); + uri.AppendPath("/validateConfiguration", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateValidateConfigurationRequest(string subscriptionId, string resourceGroupName, string networkFabricName, ValidateConfigurationContent content) { var message = _pipeline.CreateMessage(); @@ -1014,6 +1199,21 @@ public Response ValidateConfiguration(string subscriptionId, string resourceGrou } } + internal RequestUriBuilder CreateGetTopologyRequestUri(string subscriptionId, string resourceGroupName, string networkFabricName) + { + 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.ManagedNetworkFabric/networkFabrics/", false); + uri.AppendPath(networkFabricName, true); + uri.AppendPath("/getTopology", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetTopologyRequest(string subscriptionId, string resourceGroupName, string networkFabricName) { var message = _pipeline.CreateMessage(); @@ -1085,6 +1285,21 @@ public Response GetTopology(string subscriptionId, string resourceGroupName, str } } + internal RequestUriBuilder CreateCommitConfigurationRequestUri(string subscriptionId, string resourceGroupName, string networkFabricName) + { + 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.ManagedNetworkFabric/networkFabrics/", false); + uri.AppendPath(networkFabricName, true); + uri.AppendPath("/commitConfiguration", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCommitConfigurationRequest(string subscriptionId, string resourceGroupName, string networkFabricName) { var message = _pipeline.CreateMessage(); @@ -1156,6 +1371,14 @@ public Response CommitConfiguration(string subscriptionId, string resourceGroupN } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -1228,6 +1451,14 @@ public Response ListByResourceGroupNextPage(string nex } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/RestOperations/NetworkInterfacesRestOperations.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/RestOperations/NetworkInterfacesRestOperations.cs index 2d473dc42d51..a8f44f62e0f5 100644 --- a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/RestOperations/NetworkInterfacesRestOperations.cs +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/RestOperations/NetworkInterfacesRestOperations.cs @@ -37,6 +37,22 @@ public NetworkInterfacesRestOperations(HttpPipeline pipeline, string application _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string networkDeviceName, string networkInterfaceName, NetworkDeviceInterfaceData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ManagedNetworkFabric/networkDevices/", false); + uri.AppendPath(networkDeviceName, true); + uri.AppendPath("/networkInterfaces/", false); + uri.AppendPath(networkInterfaceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string networkDeviceName, string networkInterfaceName, NetworkDeviceInterfaceData data) { var message = _pipeline.CreateMessage(); @@ -121,6 +137,22 @@ public Response Create(string subscriptionId, string resourceGroupName, string n } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string networkDeviceName, string networkInterfaceName) + { + 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.ManagedNetworkFabric/networkDevices/", false); + uri.AppendPath(networkDeviceName, true); + uri.AppendPath("/networkInterfaces/", false); + uri.AppendPath(networkInterfaceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string networkDeviceName, string networkInterfaceName) { var message = _pipeline.CreateMessage(); @@ -209,6 +241,22 @@ public Response Get(string subscriptionId, string re } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string networkDeviceName, string networkInterfaceName, NetworkDeviceInterfacePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ManagedNetworkFabric/networkDevices/", false); + uri.AppendPath(networkDeviceName, true); + uri.AppendPath("/networkInterfaces/", false); + uri.AppendPath(networkInterfaceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string networkDeviceName, string networkInterfaceName, NetworkDeviceInterfacePatch patch) { var message = _pipeline.CreateMessage(); @@ -293,6 +341,22 @@ public Response Update(string subscriptionId, string resourceGroupName, string n } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string networkDeviceName, string networkInterfaceName) + { + 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.ManagedNetworkFabric/networkDevices/", false); + uri.AppendPath(networkDeviceName, true); + uri.AppendPath("/networkInterfaces/", false); + uri.AppendPath(networkInterfaceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string networkDeviceName, string networkInterfaceName) { var message = _pipeline.CreateMessage(); @@ -369,6 +433,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string n } } + internal RequestUriBuilder CreateListByNetworkDeviceRequestUri(string subscriptionId, string resourceGroupName, string networkDeviceName) + { + 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.ManagedNetworkFabric/networkDevices/", false); + uri.AppendPath(networkDeviceName, true); + uri.AppendPath("/networkInterfaces", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByNetworkDeviceRequest(string subscriptionId, string resourceGroupName, string networkDeviceName) { var message = _pipeline.CreateMessage(); @@ -448,6 +527,23 @@ public Response ListByNetworkDevice(string subscrip } } + internal RequestUriBuilder CreateUpdateAdministrativeStateRequestUri(string subscriptionId, string resourceGroupName, string networkDeviceName, string networkInterfaceName, UpdateAdministrativeStateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ManagedNetworkFabric/networkDevices/", false); + uri.AppendPath(networkDeviceName, true); + uri.AppendPath("/networkInterfaces/", false); + uri.AppendPath(networkInterfaceName, true); + uri.AppendPath("/updateAdministrativeState", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateAdministrativeStateRequest(string subscriptionId, string resourceGroupName, string networkDeviceName, string networkInterfaceName, UpdateAdministrativeStateContent content) { var message = _pipeline.CreateMessage(); @@ -533,6 +629,14 @@ public Response UpdateAdministrativeState(string subscriptionId, string resource } } + internal RequestUriBuilder CreateListByNetworkDeviceNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string networkDeviceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByNetworkDeviceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string networkDeviceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/RestOperations/NetworkPacketBrokersRestOperations.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/RestOperations/NetworkPacketBrokersRestOperations.cs index 51d4aa189f64..d56392551c2a 100644 --- a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/RestOperations/NetworkPacketBrokersRestOperations.cs +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/RestOperations/NetworkPacketBrokersRestOperations.cs @@ -37,6 +37,20 @@ public NetworkPacketBrokersRestOperations(HttpPipeline pipeline, string applicat _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string networkPacketBrokerName, NetworkPacketBrokerData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ManagedNetworkFabric/networkPacketBrokers/", false); + uri.AppendPath(networkPacketBrokerName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string networkPacketBrokerName, NetworkPacketBrokerData data) { var message = _pipeline.CreateMessage(); @@ -115,6 +129,20 @@ public Response Create(string subscriptionId, string resourceGroupName, string n } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string networkPacketBrokerName) + { + 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.ManagedNetworkFabric/networkPacketBrokers/", false); + uri.AppendPath(networkPacketBrokerName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string networkPacketBrokerName) { var message = _pipeline.CreateMessage(); @@ -197,6 +225,20 @@ public Response Get(string subscriptionId, string resou } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string networkPacketBrokerName, NetworkPacketBrokerPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ManagedNetworkFabric/networkPacketBrokers/", false); + uri.AppendPath(networkPacketBrokerName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string networkPacketBrokerName, NetworkPacketBrokerPatch patch) { var message = _pipeline.CreateMessage(); @@ -275,6 +317,20 @@ public Response Update(string subscriptionId, string resourceGroupName, string n } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string networkPacketBrokerName) + { + 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.ManagedNetworkFabric/networkPacketBrokers/", false); + uri.AppendPath(networkPacketBrokerName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string networkPacketBrokerName) { var message = _pipeline.CreateMessage(); @@ -345,6 +401,19 @@ public Response Delete(string subscriptionId, string resourceGroupName, string n } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.ManagedNetworkFabric/networkPacketBrokers", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -418,6 +487,17 @@ public Response ListByResourceGroup(string subsc } } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ManagedNetworkFabric/networkPacketBrokers", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -485,6 +565,14 @@ public Response ListBySubscription(string subscr } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -557,6 +645,14 @@ public Response ListByResourceGroupNextPage(stri } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/RestOperations/NetworkRacksRestOperations.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/RestOperations/NetworkRacksRestOperations.cs index a95b393d2401..7891be8089f9 100644 --- a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/RestOperations/NetworkRacksRestOperations.cs +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/RestOperations/NetworkRacksRestOperations.cs @@ -37,6 +37,20 @@ public NetworkRacksRestOperations(HttpPipeline pipeline, string applicationId, U _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string networkRackName, NetworkRackData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ManagedNetworkFabric/networkRacks/", false); + uri.AppendPath(networkRackName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string networkRackName, NetworkRackData data) { var message = _pipeline.CreateMessage(); @@ -115,6 +129,20 @@ public Response Create(string subscriptionId, string resourceGroupName, string n } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string networkRackName) + { + 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.ManagedNetworkFabric/networkRacks/", false); + uri.AppendPath(networkRackName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string networkRackName) { var message = _pipeline.CreateMessage(); @@ -197,6 +225,20 @@ public Response Get(string subscriptionId, string resourceGroup } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string networkRackName, NetworkRackPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ManagedNetworkFabric/networkRacks/", false); + uri.AppendPath(networkRackName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string networkRackName, NetworkRackPatch patch) { var message = _pipeline.CreateMessage(); @@ -275,6 +317,20 @@ public Response Update(string subscriptionId, string resourceGroupName, string n } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string networkRackName) + { + 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.ManagedNetworkFabric/networkRacks/", false); + uri.AppendPath(networkRackName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string networkRackName) { var message = _pipeline.CreateMessage(); @@ -345,6 +401,19 @@ public Response Delete(string subscriptionId, string resourceGroupName, string n } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.ManagedNetworkFabric/networkRacks", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -418,6 +487,17 @@ public Response ListByResourceGroup(string subscriptionI } } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ManagedNetworkFabric/networkRacks", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -485,6 +565,14 @@ public Response ListBySubscription(string subscriptionId } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -557,6 +645,14 @@ public Response ListByResourceGroupNextPage(string nextL } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/RestOperations/NetworkTapRulesRestOperations.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/RestOperations/NetworkTapRulesRestOperations.cs index f4d9bfe02e47..f004fdcb21f5 100644 --- a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/RestOperations/NetworkTapRulesRestOperations.cs +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/RestOperations/NetworkTapRulesRestOperations.cs @@ -37,6 +37,20 @@ public NetworkTapRulesRestOperations(HttpPipeline pipeline, string applicationId _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string networkTapRuleName, NetworkTapRuleData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ManagedNetworkFabric/networkTapRules/", false); + uri.AppendPath(networkTapRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string networkTapRuleName, NetworkTapRuleData data) { var message = _pipeline.CreateMessage(); @@ -115,6 +129,20 @@ public Response Create(string subscriptionId, string resourceGroupName, string n } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string networkTapRuleName) + { + 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.ManagedNetworkFabric/networkTapRules/", false); + uri.AppendPath(networkTapRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string networkTapRuleName) { var message = _pipeline.CreateMessage(); @@ -197,6 +225,20 @@ public Response Get(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string networkTapRuleName, NetworkTapRulePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ManagedNetworkFabric/networkTapRules/", false); + uri.AppendPath(networkTapRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string networkTapRuleName, NetworkTapRulePatch patch) { var message = _pipeline.CreateMessage(); @@ -275,6 +317,20 @@ public Response Update(string subscriptionId, string resourceGroupName, string n } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string networkTapRuleName) + { + 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.ManagedNetworkFabric/networkTapRules/", false); + uri.AppendPath(networkTapRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string networkTapRuleName) { var message = _pipeline.CreateMessage(); @@ -345,6 +401,19 @@ public Response Delete(string subscriptionId, string resourceGroupName, string n } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.ManagedNetworkFabric/networkTapRules", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -418,6 +487,17 @@ public Response ListByResourceGroup(string subscripti } } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ManagedNetworkFabric/networkTapRules", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -485,6 +565,21 @@ public Response ListBySubscription(string subscriptio } } + internal RequestUriBuilder CreateUpdateAdministrativeStateRequestUri(string subscriptionId, string resourceGroupName, string networkTapRuleName, UpdateAdministrativeStateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ManagedNetworkFabric/networkTapRules/", false); + uri.AppendPath(networkTapRuleName, true); + uri.AppendPath("/updateAdministrativeState", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateAdministrativeStateRequest(string subscriptionId, string resourceGroupName, string networkTapRuleName, UpdateAdministrativeStateContent content) { var message = _pipeline.CreateMessage(); @@ -564,6 +659,21 @@ public Response UpdateAdministrativeState(string subscriptionId, string resource } } + internal RequestUriBuilder CreateResyncRequestUri(string subscriptionId, string resourceGroupName, string networkTapRuleName) + { + 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.ManagedNetworkFabric/networkTapRules/", false); + uri.AppendPath(networkTapRuleName, true); + uri.AppendPath("/resync", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateResyncRequest(string subscriptionId, string resourceGroupName, string networkTapRuleName) { var message = _pipeline.CreateMessage(); @@ -635,6 +745,21 @@ public Response Resync(string subscriptionId, string resourceGroupName, string n } } + internal RequestUriBuilder CreateValidateConfigurationRequestUri(string subscriptionId, string resourceGroupName, string networkTapRuleName) + { + 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.ManagedNetworkFabric/networkTapRules/", false); + uri.AppendPath(networkTapRuleName, true); + uri.AppendPath("/validateConfiguration", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateValidateConfigurationRequest(string subscriptionId, string resourceGroupName, string networkTapRuleName) { var message = _pipeline.CreateMessage(); @@ -706,6 +831,14 @@ public Response ValidateConfiguration(string subscriptionId, string resourceGrou } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -778,6 +911,14 @@ public Response ListByResourceGroupNextPage(string ne } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/RestOperations/NetworkTapsRestOperations.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/RestOperations/NetworkTapsRestOperations.cs index b430450f0f4a..297652ab5a2f 100644 --- a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/RestOperations/NetworkTapsRestOperations.cs +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/RestOperations/NetworkTapsRestOperations.cs @@ -37,6 +37,20 @@ public NetworkTapsRestOperations(HttpPipeline pipeline, string applicationId, Ur _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string networkTapName, NetworkTapData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ManagedNetworkFabric/networkTaps/", false); + uri.AppendPath(networkTapName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string networkTapName, NetworkTapData data) { var message = _pipeline.CreateMessage(); @@ -115,6 +129,20 @@ public Response Create(string subscriptionId, string resourceGroupName, string n } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string networkTapName) + { + 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.ManagedNetworkFabric/networkTaps/", false); + uri.AppendPath(networkTapName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string networkTapName) { var message = _pipeline.CreateMessage(); @@ -197,6 +225,20 @@ public Response Get(string subscriptionId, string resourceGroupN } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string networkTapName, NetworkTapPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ManagedNetworkFabric/networkTaps/", false); + uri.AppendPath(networkTapName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string networkTapName, NetworkTapPatch patch) { var message = _pipeline.CreateMessage(); @@ -275,6 +317,20 @@ public Response Update(string subscriptionId, string resourceGroupName, string n } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string networkTapName) + { + 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.ManagedNetworkFabric/networkTaps/", false); + uri.AppendPath(networkTapName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string networkTapName) { var message = _pipeline.CreateMessage(); @@ -345,6 +401,19 @@ public Response Delete(string subscriptionId, string resourceGroupName, string n } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.ManagedNetworkFabric/networkTaps", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -418,6 +487,17 @@ public Response ListByResourceGroup(string subscriptionId } } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ManagedNetworkFabric/networkTaps", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -485,6 +565,21 @@ public Response ListBySubscription(string subscriptionId, } } + internal RequestUriBuilder CreateUpdateAdministrativeStateRequestUri(string subscriptionId, string resourceGroupName, string networkTapName, UpdateAdministrativeStateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ManagedNetworkFabric/networkTaps/", false); + uri.AppendPath(networkTapName, true); + uri.AppendPath("/updateAdministrativeState", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateAdministrativeStateRequest(string subscriptionId, string resourceGroupName, string networkTapName, UpdateAdministrativeStateContent content) { var message = _pipeline.CreateMessage(); @@ -564,6 +659,21 @@ public Response UpdateAdministrativeState(string subscriptionId, string resource } } + internal RequestUriBuilder CreateResyncRequestUri(string subscriptionId, string resourceGroupName, string networkTapName) + { + 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.ManagedNetworkFabric/networkTaps/", false); + uri.AppendPath(networkTapName, true); + uri.AppendPath("/resync", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateResyncRequest(string subscriptionId, string resourceGroupName, string networkTapName) { var message = _pipeline.CreateMessage(); @@ -635,6 +745,14 @@ public Response Resync(string subscriptionId, string resourceGroupName, string n } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -707,6 +825,14 @@ public Response ListByResourceGroupNextPage(string nextLi } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/RestOperations/NetworkToNetworkInterconnectsRestOperations.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/RestOperations/NetworkToNetworkInterconnectsRestOperations.cs index 1c06cae64743..567d4ec0e6bb 100644 --- a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/RestOperations/NetworkToNetworkInterconnectsRestOperations.cs +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/RestOperations/NetworkToNetworkInterconnectsRestOperations.cs @@ -37,6 +37,22 @@ public NetworkToNetworkInterconnectsRestOperations(HttpPipeline pipeline, string _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string networkFabricName, string networkToNetworkInterconnectName, NetworkToNetworkInterconnectData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ManagedNetworkFabric/networkFabrics/", false); + uri.AppendPath(networkFabricName, true); + uri.AppendPath("/networkToNetworkInterconnects/", false); + uri.AppendPath(networkToNetworkInterconnectName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string networkFabricName, string networkToNetworkInterconnectName, NetworkToNetworkInterconnectData data) { var message = _pipeline.CreateMessage(); @@ -121,6 +137,22 @@ public Response Create(string subscriptionId, string resourceGroupName, string n } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string networkFabricName, string networkToNetworkInterconnectName) + { + 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.ManagedNetworkFabric/networkFabrics/", false); + uri.AppendPath(networkFabricName, true); + uri.AppendPath("/networkToNetworkInterconnects/", false); + uri.AppendPath(networkToNetworkInterconnectName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string networkFabricName, string networkToNetworkInterconnectName) { var message = _pipeline.CreateMessage(); @@ -209,6 +241,22 @@ public Response Get(string subscriptionId, str } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string networkFabricName, string networkToNetworkInterconnectName, NetworkToNetworkInterconnectPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ManagedNetworkFabric/networkFabrics/", false); + uri.AppendPath(networkFabricName, true); + uri.AppendPath("/networkToNetworkInterconnects/", false); + uri.AppendPath(networkToNetworkInterconnectName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string networkFabricName, string networkToNetworkInterconnectName, NetworkToNetworkInterconnectPatch patch) { var message = _pipeline.CreateMessage(); @@ -293,6 +341,22 @@ public Response Update(string subscriptionId, string resourceGroupName, string n } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string networkFabricName, string networkToNetworkInterconnectName) + { + 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.ManagedNetworkFabric/networkFabrics/", false); + uri.AppendPath(networkFabricName, true); + uri.AppendPath("/networkToNetworkInterconnects/", false); + uri.AppendPath(networkToNetworkInterconnectName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string networkFabricName, string networkToNetworkInterconnectName) { var message = _pipeline.CreateMessage(); @@ -369,6 +433,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string n } } + internal RequestUriBuilder CreateListByNetworkFabricRequestUri(string subscriptionId, string resourceGroupName, string networkFabricName) + { + 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.ManagedNetworkFabric/networkFabrics/", false); + uri.AppendPath(networkFabricName, true); + uri.AppendPath("/networkToNetworkInterconnects", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByNetworkFabricRequest(string subscriptionId, string resourceGroupName, string networkFabricName) { var message = _pipeline.CreateMessage(); @@ -448,6 +527,23 @@ public Response ListByNetworkFabric(string su } } + internal RequestUriBuilder CreateUpdateNpbStaticRouteBfdAdministrativeStateRequestUri(string subscriptionId, string resourceGroupName, string networkFabricName, string networkToNetworkInterconnectName, UpdateAdministrativeStateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ManagedNetworkFabric/networkFabrics/", false); + uri.AppendPath(networkFabricName, true); + uri.AppendPath("/networkToNetworkInterconnects/", false); + uri.AppendPath(networkToNetworkInterconnectName, true); + uri.AppendPath("/updateNpbStaticRouteBfdAdministrativeState", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateNpbStaticRouteBfdAdministrativeStateRequest(string subscriptionId, string resourceGroupName, string networkFabricName, string networkToNetworkInterconnectName, UpdateAdministrativeStateContent content) { var message = _pipeline.CreateMessage(); @@ -533,6 +629,23 @@ public Response UpdateNpbStaticRouteBfdAdministrativeState(string subscriptionId } } + internal RequestUriBuilder CreateUpdateAdministrativeStateRequestUri(string subscriptionId, string resourceGroupName, string networkFabricName, string networkToNetworkInterconnectName, UpdateAdministrativeStateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ManagedNetworkFabric/networkFabrics/", false); + uri.AppendPath(networkFabricName, true); + uri.AppendPath("/networkToNetworkInterconnects/", false); + uri.AppendPath(networkToNetworkInterconnectName, true); + uri.AppendPath("/updateAdministrativeState", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateAdministrativeStateRequest(string subscriptionId, string resourceGroupName, string networkFabricName, string networkToNetworkInterconnectName, UpdateAdministrativeStateContent content) { var message = _pipeline.CreateMessage(); @@ -618,6 +731,14 @@ public Response UpdateAdministrativeState(string subscriptionId, string resource } } + internal RequestUriBuilder CreateListByNetworkFabricNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string networkFabricName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByNetworkFabricNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string networkFabricName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/RestOperations/RoutePoliciesRestOperations.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/RestOperations/RoutePoliciesRestOperations.cs index be3d1e135fd1..55478c067cd0 100644 --- a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/RestOperations/RoutePoliciesRestOperations.cs +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/RestOperations/RoutePoliciesRestOperations.cs @@ -37,6 +37,20 @@ public RoutePoliciesRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string routePolicyName, NetworkFabricRoutePolicyData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ManagedNetworkFabric/routePolicies/", false); + uri.AppendPath(routePolicyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string routePolicyName, NetworkFabricRoutePolicyData data) { var message = _pipeline.CreateMessage(); @@ -115,6 +129,20 @@ public Response Create(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string routePolicyName) + { + 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.ManagedNetworkFabric/routePolicies/", false); + uri.AppendPath(routePolicyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string routePolicyName) { var message = _pipeline.CreateMessage(); @@ -197,6 +225,20 @@ public Response Get(string subscriptionId, string } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string routePolicyName, NetworkFabricRoutePolicyPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ManagedNetworkFabric/routePolicies/", false); + uri.AppendPath(routePolicyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string routePolicyName, NetworkFabricRoutePolicyPatch patch) { var message = _pipeline.CreateMessage(); @@ -275,6 +317,20 @@ public Response Update(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string routePolicyName) + { + 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.ManagedNetworkFabric/routePolicies/", false); + uri.AppendPath(routePolicyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string routePolicyName) { var message = _pipeline.CreateMessage(); @@ -345,6 +401,19 @@ public Response Delete(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.ManagedNetworkFabric/routePolicies", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -418,6 +487,17 @@ public Response ListByResourceGroup(string subscription } } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ManagedNetworkFabric/routePolicies", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -485,6 +565,21 @@ public Response ListBySubscription(string subscriptionI } } + internal RequestUriBuilder CreateUpdateAdministrativeStateRequestUri(string subscriptionId, string resourceGroupName, string routePolicyName, UpdateAdministrativeStateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ManagedNetworkFabric/routePolicies/", false); + uri.AppendPath(routePolicyName, true); + uri.AppendPath("/updateAdministrativeState", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateAdministrativeStateRequest(string subscriptionId, string resourceGroupName, string routePolicyName, UpdateAdministrativeStateContent content) { var message = _pipeline.CreateMessage(); @@ -564,6 +659,21 @@ public Response UpdateAdministrativeState(string subscriptionId, string resource } } + internal RequestUriBuilder CreateValidateConfigurationRequestUri(string subscriptionId, string resourceGroupName, string routePolicyName) + { + 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.ManagedNetworkFabric/routePolicies/", false); + uri.AppendPath(routePolicyName, true); + uri.AppendPath("/validateConfiguration", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateValidateConfigurationRequest(string subscriptionId, string resourceGroupName, string routePolicyName) { var message = _pipeline.CreateMessage(); @@ -635,6 +745,21 @@ public Response ValidateConfiguration(string subscriptionId, string resourceGrou } } + internal RequestUriBuilder CreateCommitConfigurationRequestUri(string subscriptionId, string resourceGroupName, string routePolicyName) + { + 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.ManagedNetworkFabric/routePolicies/", false); + uri.AppendPath(routePolicyName, true); + uri.AppendPath("/commitConfiguration", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCommitConfigurationRequest(string subscriptionId, string resourceGroupName, string routePolicyName) { var message = _pipeline.CreateMessage(); @@ -706,6 +831,14 @@ public Response CommitConfiguration(string subscriptionId, string resourceGroupN } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -778,6 +911,14 @@ public Response ListByResourceGroupNextPage(string next } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/managedserviceidentity/Azure.ResourceManager.ManagedServiceIdentities/src/Generated/FederatedIdentityCredentialCollection.cs b/sdk/managedserviceidentity/Azure.ResourceManager.ManagedServiceIdentities/src/Generated/FederatedIdentityCredentialCollection.cs index dea5a89be545..620813558e2e 100644 --- a/sdk/managedserviceidentity/Azure.ResourceManager.ManagedServiceIdentities/src/Generated/FederatedIdentityCredentialCollection.cs +++ b/sdk/managedserviceidentity/Azure.ResourceManager.ManagedServiceIdentities/src/Generated/FederatedIdentityCredentialCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> Cre try { var response = await _federatedIdentityCredentialRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, federatedIdentityCredentialResourceName, data, cancellationToken).ConfigureAwait(false); - var operation = new ManagedServiceIdentitiesArmOperation(Response.FromValue(new FederatedIdentityCredentialResource(Client, response), response.GetRawResponse())); + var uri = _federatedIdentityCredentialRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, federatedIdentityCredentialResourceName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ManagedServiceIdentitiesArmOperation(Response.FromValue(new FederatedIdentityCredentialResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate( try { var response = _federatedIdentityCredentialRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, federatedIdentityCredentialResourceName, data, cancellationToken); - var operation = new ManagedServiceIdentitiesArmOperation(Response.FromValue(new FederatedIdentityCredentialResource(Client, response), response.GetRawResponse())); + var uri = _federatedIdentityCredentialRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, federatedIdentityCredentialResourceName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ManagedServiceIdentitiesArmOperation(Response.FromValue(new FederatedIdentityCredentialResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/managedserviceidentity/Azure.ResourceManager.ManagedServiceIdentities/src/Generated/FederatedIdentityCredentialResource.cs b/sdk/managedserviceidentity/Azure.ResourceManager.ManagedServiceIdentities/src/Generated/FederatedIdentityCredentialResource.cs index d9391f0c893a..6bd4c78dd8fb 100644 --- a/sdk/managedserviceidentity/Azure.ResourceManager.ManagedServiceIdentities/src/Generated/FederatedIdentityCredentialResource.cs +++ b/sdk/managedserviceidentity/Azure.ResourceManager.ManagedServiceIdentities/src/Generated/FederatedIdentityCredentialResource.cs @@ -200,7 +200,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _federatedIdentityCredentialRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new ManagedServiceIdentitiesArmOperation(response); + var uri = _federatedIdentityCredentialRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ManagedServiceIdentitiesArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -242,7 +244,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _federatedIdentityCredentialRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new ManagedServiceIdentitiesArmOperation(response); + var uri = _federatedIdentityCredentialRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ManagedServiceIdentitiesArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -288,7 +292,9 @@ public virtual async Task> Upd try { var response = await _federatedIdentityCredentialRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new ManagedServiceIdentitiesArmOperation(Response.FromValue(new FederatedIdentityCredentialResource(Client, response), response.GetRawResponse())); + var uri = _federatedIdentityCredentialRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ManagedServiceIdentitiesArmOperation(Response.FromValue(new FederatedIdentityCredentialResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -334,7 +340,9 @@ public virtual ArmOperation Update(WaitUnti try { var response = _federatedIdentityCredentialRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new ManagedServiceIdentitiesArmOperation(Response.FromValue(new FederatedIdentityCredentialResource(Client, response), response.GetRawResponse())); + var uri = _federatedIdentityCredentialRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ManagedServiceIdentitiesArmOperation(Response.FromValue(new FederatedIdentityCredentialResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/managedserviceidentity/Azure.ResourceManager.ManagedServiceIdentities/src/Generated/LongRunningOperation/ManagedServiceIdentitiesArmOperation.cs b/sdk/managedserviceidentity/Azure.ResourceManager.ManagedServiceIdentities/src/Generated/LongRunningOperation/ManagedServiceIdentitiesArmOperation.cs index 8a2381e3bd68..8196837a4724 100644 --- a/sdk/managedserviceidentity/Azure.ResourceManager.ManagedServiceIdentities/src/Generated/LongRunningOperation/ManagedServiceIdentitiesArmOperation.cs +++ b/sdk/managedserviceidentity/Azure.ResourceManager.ManagedServiceIdentities/src/Generated/LongRunningOperation/ManagedServiceIdentitiesArmOperation.cs @@ -20,21 +20,24 @@ internal class ManagedServiceIdentitiesArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of ManagedServiceIdentitiesArmOperation for mocking. protected ManagedServiceIdentitiesArmOperation() { } - internal ManagedServiceIdentitiesArmOperation(Response response) + internal ManagedServiceIdentitiesArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal ManagedServiceIdentitiesArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "ManagedServiceIdentitiesArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal ManagedServiceIdentitiesArmOperation(ClientDiagnostics clientDiagnostic public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/managedserviceidentity/Azure.ResourceManager.ManagedServiceIdentities/src/Generated/LongRunningOperation/ManagedServiceIdentitiesArmOperationOfT.cs b/sdk/managedserviceidentity/Azure.ResourceManager.ManagedServiceIdentities/src/Generated/LongRunningOperation/ManagedServiceIdentitiesArmOperationOfT.cs index 905ae462001b..ad23d24cd440 100644 --- a/sdk/managedserviceidentity/Azure.ResourceManager.ManagedServiceIdentities/src/Generated/LongRunningOperation/ManagedServiceIdentitiesArmOperationOfT.cs +++ b/sdk/managedserviceidentity/Azure.ResourceManager.ManagedServiceIdentities/src/Generated/LongRunningOperation/ManagedServiceIdentitiesArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class ManagedServiceIdentitiesArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of ManagedServiceIdentitiesArmOperation for mocking. protected ManagedServiceIdentitiesArmOperation() { } - internal ManagedServiceIdentitiesArmOperation(Response response) + internal ManagedServiceIdentitiesArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal ManagedServiceIdentitiesArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "ManagedServiceIdentitiesArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal ManagedServiceIdentitiesArmOperation(IOperationSource source, Client public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/managedserviceidentity/Azure.ResourceManager.ManagedServiceIdentities/src/Generated/Models/FederatedIdentityCredentialResource.Serialization.cs b/sdk/managedserviceidentity/Azure.ResourceManager.ManagedServiceIdentities/src/Generated/Models/FederatedIdentityCredentialResource.Serialization.cs new file mode 100644 index 000000000000..1e7c3fe37cda --- /dev/null +++ b/sdk/managedserviceidentity/Azure.ResourceManager.ManagedServiceIdentities/src/Generated/Models/FederatedIdentityCredentialResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ManagedServiceIdentities +{ + public partial class FederatedIdentityCredentialResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + FederatedIdentityCredentialData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + FederatedIdentityCredentialData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/managedserviceidentity/Azure.ResourceManager.ManagedServiceIdentities/src/Generated/Models/SystemAssignedIdentityResource.Serialization.cs b/sdk/managedserviceidentity/Azure.ResourceManager.ManagedServiceIdentities/src/Generated/Models/SystemAssignedIdentityResource.Serialization.cs new file mode 100644 index 000000000000..132335a42b47 --- /dev/null +++ b/sdk/managedserviceidentity/Azure.ResourceManager.ManagedServiceIdentities/src/Generated/Models/SystemAssignedIdentityResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ManagedServiceIdentities +{ + public partial class SystemAssignedIdentityResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SystemAssignedIdentityData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SystemAssignedIdentityData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/managedserviceidentity/Azure.ResourceManager.ManagedServiceIdentities/src/Generated/Models/UserAssignedIdentityResource.Serialization.cs b/sdk/managedserviceidentity/Azure.ResourceManager.ManagedServiceIdentities/src/Generated/Models/UserAssignedIdentityResource.Serialization.cs new file mode 100644 index 000000000000..6c5014ac9eb4 --- /dev/null +++ b/sdk/managedserviceidentity/Azure.ResourceManager.ManagedServiceIdentities/src/Generated/Models/UserAssignedIdentityResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ManagedServiceIdentities +{ + public partial class UserAssignedIdentityResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + UserAssignedIdentityData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + UserAssignedIdentityData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/managedserviceidentity/Azure.ResourceManager.ManagedServiceIdentities/src/Generated/RestOperations/FederatedIdentityCredentialsRestOperations.cs b/sdk/managedserviceidentity/Azure.ResourceManager.ManagedServiceIdentities/src/Generated/RestOperations/FederatedIdentityCredentialsRestOperations.cs index 4a4c528245bc..d529363813f7 100644 --- a/sdk/managedserviceidentity/Azure.ResourceManager.ManagedServiceIdentities/src/Generated/RestOperations/FederatedIdentityCredentialsRestOperations.cs +++ b/sdk/managedserviceidentity/Azure.ResourceManager.ManagedServiceIdentities/src/Generated/RestOperations/FederatedIdentityCredentialsRestOperations.cs @@ -37,6 +37,29 @@ public FederatedIdentityCredentialsRestOperations(HttpPipeline pipeline, string _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string resourceName, int? top, string skiptoken) + { + 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.ManagedIdentity/userAssignedIdentities/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/federatedIdentityCredentials", false); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skiptoken != null) + { + uri.AppendQuery("$skiptoken", skiptoken, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string resourceName, int? top, string skiptoken) { var message = _pipeline.CreateMessage(); @@ -128,6 +151,22 @@ public Response List(string subscription } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string federatedIdentityCredentialResourceName, FederatedIdentityCredentialData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ManagedIdentity/userAssignedIdentities/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/federatedIdentityCredentials/", false); + uri.AppendPath(federatedIdentityCredentialResourceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string resourceName, string federatedIdentityCredentialResourceName, FederatedIdentityCredentialData data) { var message = _pipeline.CreateMessage(); @@ -222,6 +261,22 @@ public Response CreateOrUpdate(string subscript } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string federatedIdentityCredentialResourceName) + { + 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.ManagedIdentity/userAssignedIdentities/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/federatedIdentityCredentials/", false); + uri.AppendPath(federatedIdentityCredentialResourceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string resourceName, string federatedIdentityCredentialResourceName) { var message = _pipeline.CreateMessage(); @@ -310,6 +365,22 @@ public Response Get(string subscriptionId, stri } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string federatedIdentityCredentialResourceName) + { + 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.ManagedIdentity/userAssignedIdentities/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/federatedIdentityCredentials/", false); + uri.AppendPath(federatedIdentityCredentialResourceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string resourceName, string federatedIdentityCredentialResourceName) { var message = _pipeline.CreateMessage(); @@ -386,6 +457,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string resourceName, int? top, string skiptoken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string resourceName, int? top, string skiptoken) { var message = _pipeline.CreateMessage(); diff --git a/sdk/managedserviceidentity/Azure.ResourceManager.ManagedServiceIdentities/src/Generated/RestOperations/SystemAssignedIdentitiesRestOperations.cs b/sdk/managedserviceidentity/Azure.ResourceManager.ManagedServiceIdentities/src/Generated/RestOperations/SystemAssignedIdentitiesRestOperations.cs index 4fdc88db4a2e..d2c7cbc36cfb 100644 --- a/sdk/managedserviceidentity/Azure.ResourceManager.ManagedServiceIdentities/src/Generated/RestOperations/SystemAssignedIdentitiesRestOperations.cs +++ b/sdk/managedserviceidentity/Azure.ResourceManager.ManagedServiceIdentities/src/Generated/RestOperations/SystemAssignedIdentitiesRestOperations.cs @@ -36,6 +36,17 @@ public SystemAssignedIdentitiesRestOperations(HttpPipeline pipeline, string appl _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetByScopeRequestUri(string scope) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.ManagedIdentity/identities/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetByScopeRequest(string scope) { var message = _pipeline.CreateMessage(); diff --git a/sdk/managedserviceidentity/Azure.ResourceManager.ManagedServiceIdentities/src/Generated/RestOperations/UserAssignedIdentitiesRestOperations.cs b/sdk/managedserviceidentity/Azure.ResourceManager.ManagedServiceIdentities/src/Generated/RestOperations/UserAssignedIdentitiesRestOperations.cs index aca0835d819a..ad52c1f62a4d 100644 --- a/sdk/managedserviceidentity/Azure.ResourceManager.ManagedServiceIdentities/src/Generated/RestOperations/UserAssignedIdentitiesRestOperations.cs +++ b/sdk/managedserviceidentity/Azure.ResourceManager.ManagedServiceIdentities/src/Generated/RestOperations/UserAssignedIdentitiesRestOperations.cs @@ -37,6 +37,17 @@ public UserAssignedIdentitiesRestOperations(HttpPipeline pipeline, string applic _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ManagedIdentity/userAssignedIdentities", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,19 @@ public Response ListBySubscription(string subs } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.ManagedIdentity/userAssignedIdentities", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -177,6 +201,20 @@ public Response ListByResourceGroup(string sub } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string resourceName, UserAssignedIdentityData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ManagedIdentity/userAssignedIdentities/", false); + uri.AppendPath(resourceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string resourceName, UserAssignedIdentityData data) { var message = _pipeline.CreateMessage(); @@ -265,6 +303,20 @@ public Response CreateOrUpdate(string subscriptionId, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string resourceName, UserAssignedIdentityPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ManagedIdentity/userAssignedIdentities/", false); + uri.AppendPath(resourceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string resourceName, UserAssignedIdentityPatch patch) { var message = _pipeline.CreateMessage(); @@ -351,6 +403,20 @@ public Response Update(string subscriptionId, string r } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string resourceName) + { + 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.ManagedIdentity/userAssignedIdentities/", false); + uri.AppendPath(resourceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); @@ -433,6 +499,20 @@ public Response Get(string subscriptionId, string reso } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string resourceName) + { + 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.ManagedIdentity/userAssignedIdentities/", false); + uri.AppendPath(resourceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); @@ -503,6 +583,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -571,6 +659,14 @@ public Response ListBySubscriptionNextPage(str } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/managedserviceidentity/Azure.ResourceManager.ManagedServiceIdentities/src/Generated/UserAssignedIdentityCollection.cs b/sdk/managedserviceidentity/Azure.ResourceManager.ManagedServiceIdentities/src/Generated/UserAssignedIdentityCollection.cs index 2af093fe0ed8..045a6de3fd40 100644 --- a/sdk/managedserviceidentity/Azure.ResourceManager.ManagedServiceIdentities/src/Generated/UserAssignedIdentityCollection.cs +++ b/sdk/managedserviceidentity/Azure.ResourceManager.ManagedServiceIdentities/src/Generated/UserAssignedIdentityCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> CreateOrUp try { var response = await _userAssignedIdentityRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, resourceName, data, cancellationToken).ConfigureAwait(false); - var operation = new ManagedServiceIdentitiesArmOperation(Response.FromValue(new UserAssignedIdentityResource(Client, response), response.GetRawResponse())); + var uri = _userAssignedIdentityRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, resourceName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ManagedServiceIdentitiesArmOperation(Response.FromValue(new UserAssignedIdentityResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -140,7 +142,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUnt try { var response = _userAssignedIdentityRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, resourceName, data, cancellationToken); - var operation = new ManagedServiceIdentitiesArmOperation(Response.FromValue(new UserAssignedIdentityResource(Client, response), response.GetRawResponse())); + var uri = _userAssignedIdentityRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, resourceName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ManagedServiceIdentitiesArmOperation(Response.FromValue(new UserAssignedIdentityResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/managedserviceidentity/Azure.ResourceManager.ManagedServiceIdentities/src/Generated/UserAssignedIdentityResource.cs b/sdk/managedserviceidentity/Azure.ResourceManager.ManagedServiceIdentities/src/Generated/UserAssignedIdentityResource.cs index b28973a0949f..8cff6e01637e 100644 --- a/sdk/managedserviceidentity/Azure.ResourceManager.ManagedServiceIdentities/src/Generated/UserAssignedIdentityResource.cs +++ b/sdk/managedserviceidentity/Azure.ResourceManager.ManagedServiceIdentities/src/Generated/UserAssignedIdentityResource.cs @@ -271,7 +271,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _userAssignedIdentityRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new ManagedServiceIdentitiesArmOperation(response); + var uri = _userAssignedIdentityRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ManagedServiceIdentitiesArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -313,7 +315,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _userAssignedIdentityRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); - var operation = new ManagedServiceIdentitiesArmOperation(response); + var uri = _userAssignedIdentityRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ManagedServiceIdentitiesArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/managedservices/Azure.ResourceManager.ManagedServices/src/Generated/LongRunningOperation/ManagedServicesArmOperation.cs b/sdk/managedservices/Azure.ResourceManager.ManagedServices/src/Generated/LongRunningOperation/ManagedServicesArmOperation.cs index 8fd012f89ec1..846ead792795 100644 --- a/sdk/managedservices/Azure.ResourceManager.ManagedServices/src/Generated/LongRunningOperation/ManagedServicesArmOperation.cs +++ b/sdk/managedservices/Azure.ResourceManager.ManagedServices/src/Generated/LongRunningOperation/ManagedServicesArmOperation.cs @@ -20,21 +20,24 @@ internal class ManagedServicesArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of ManagedServicesArmOperation for mocking. protected ManagedServicesArmOperation() { } - internal ManagedServicesArmOperation(Response response) + internal ManagedServicesArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal ManagedServicesArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "ManagedServicesArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal ManagedServicesArmOperation(ClientDiagnostics clientDiagnostics, HttpPi public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/managedservices/Azure.ResourceManager.ManagedServices/src/Generated/LongRunningOperation/ManagedServicesArmOperationOfT.cs b/sdk/managedservices/Azure.ResourceManager.ManagedServices/src/Generated/LongRunningOperation/ManagedServicesArmOperationOfT.cs index 2942a71ea83d..5487bd970bbd 100644 --- a/sdk/managedservices/Azure.ResourceManager.ManagedServices/src/Generated/LongRunningOperation/ManagedServicesArmOperationOfT.cs +++ b/sdk/managedservices/Azure.ResourceManager.ManagedServices/src/Generated/LongRunningOperation/ManagedServicesArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class ManagedServicesArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of ManagedServicesArmOperation for mocking. protected ManagedServicesArmOperation() { } - internal ManagedServicesArmOperation(Response response) + internal ManagedServicesArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal ManagedServicesArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "ManagedServicesArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal ManagedServicesArmOperation(IOperationSource source, ClientDiagnosti public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/managedservices/Azure.ResourceManager.ManagedServices/src/Generated/ManagedServicesRegistrationResource.cs b/sdk/managedservices/Azure.ResourceManager.ManagedServices/src/Generated/ManagedServicesRegistrationResource.cs index 027c57376cd8..bc6bd39cc71e 100644 --- a/sdk/managedservices/Azure.ResourceManager.ManagedServices/src/Generated/ManagedServicesRegistrationResource.cs +++ b/sdk/managedservices/Azure.ResourceManager.ManagedServices/src/Generated/ManagedServicesRegistrationResource.cs @@ -198,7 +198,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _managedServicesRegistrationRegistrationDefinitionsRestClient.DeleteAsync(Id.Parent, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new ManagedServicesArmOperation(response); + var uri = _managedServicesRegistrationRegistrationDefinitionsRestClient.CreateDeleteRequestUri(Id.Parent, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ManagedServicesArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -240,7 +242,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _managedServicesRegistrationRegistrationDefinitionsRestClient.Delete(Id.Parent, Id.Name, cancellationToken); - var operation = new ManagedServicesArmOperation(response); + var uri = _managedServicesRegistrationRegistrationDefinitionsRestClient.CreateDeleteRequestUri(Id.Parent, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ManagedServicesArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/managedservices/Azure.ResourceManager.ManagedServices/src/Generated/Models/ManagedServicesMarketplaceRegistrationResource.Serialization.cs b/sdk/managedservices/Azure.ResourceManager.ManagedServices/src/Generated/Models/ManagedServicesMarketplaceRegistrationResource.Serialization.cs new file mode 100644 index 000000000000..c6d4f22e9cfa --- /dev/null +++ b/sdk/managedservices/Azure.ResourceManager.ManagedServices/src/Generated/Models/ManagedServicesMarketplaceRegistrationResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ManagedServices +{ + public partial class ManagedServicesMarketplaceRegistrationResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ManagedServicesMarketplaceRegistrationData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ManagedServicesMarketplaceRegistrationData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/managedservices/Azure.ResourceManager.ManagedServices/src/Generated/Models/ManagedServicesRegistrationAssignmentResource.Serialization.cs b/sdk/managedservices/Azure.ResourceManager.ManagedServices/src/Generated/Models/ManagedServicesRegistrationAssignmentResource.Serialization.cs new file mode 100644 index 000000000000..4032a5269053 --- /dev/null +++ b/sdk/managedservices/Azure.ResourceManager.ManagedServices/src/Generated/Models/ManagedServicesRegistrationAssignmentResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ManagedServices +{ + public partial class ManagedServicesRegistrationAssignmentResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ManagedServicesRegistrationAssignmentData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ManagedServicesRegistrationAssignmentData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/managedservices/Azure.ResourceManager.ManagedServices/src/Generated/Models/ManagedServicesRegistrationResource.Serialization.cs b/sdk/managedservices/Azure.ResourceManager.ManagedServices/src/Generated/Models/ManagedServicesRegistrationResource.Serialization.cs new file mode 100644 index 000000000000..e98a015ad5b2 --- /dev/null +++ b/sdk/managedservices/Azure.ResourceManager.ManagedServices/src/Generated/Models/ManagedServicesRegistrationResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ManagedServices +{ + public partial class ManagedServicesRegistrationResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ManagedServicesRegistrationData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ManagedServicesRegistrationData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/managedservices/Azure.ResourceManager.ManagedServices/src/Generated/RestOperations/MarketplaceRegistrationDefinitionsRestOperations.cs b/sdk/managedservices/Azure.ResourceManager.ManagedServices/src/Generated/RestOperations/MarketplaceRegistrationDefinitionsRestOperations.cs index 6a1bcf401620..3ddb2486a355 100644 --- a/sdk/managedservices/Azure.ResourceManager.ManagedServices/src/Generated/RestOperations/MarketplaceRegistrationDefinitionsRestOperations.cs +++ b/sdk/managedservices/Azure.ResourceManager.ManagedServices/src/Generated/RestOperations/MarketplaceRegistrationDefinitionsRestOperations.cs @@ -37,6 +37,21 @@ public MarketplaceRegistrationDefinitionsRestOperations(HttpPipeline pipeline, s _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string scope, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.ManagedServices/marketplaceRegistrationDefinitions", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string scope, string filter) { var message = _pipeline.CreateMessage(); @@ -108,6 +123,18 @@ public Response List(string scope, string } } + internal RequestUriBuilder CreateGetRequestUri(string scope, string marketplaceIdentifier) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.ManagedServices/marketplaceRegistrationDefinitions/", false); + uri.AppendPath(marketplaceIdentifier, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string scope, string marketplaceIdentifier) { var message = _pipeline.CreateMessage(); @@ -184,6 +211,14 @@ public Response Get(string scope, st } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string scope, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string scope, string filter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/managedservices/Azure.ResourceManager.ManagedServices/src/Generated/RestOperations/RegistrationAssignmentsRestOperations.cs b/sdk/managedservices/Azure.ResourceManager.ManagedServices/src/Generated/RestOperations/RegistrationAssignmentsRestOperations.cs index a01588bbddd0..ba656d0e83e8 100644 --- a/sdk/managedservices/Azure.ResourceManager.ManagedServices/src/Generated/RestOperations/RegistrationAssignmentsRestOperations.cs +++ b/sdk/managedservices/Azure.ResourceManager.ManagedServices/src/Generated/RestOperations/RegistrationAssignmentsRestOperations.cs @@ -37,6 +37,22 @@ public RegistrationAssignmentsRestOperations(HttpPipeline pipeline, string appli _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string scope, string registrationAssignmentId, bool? expandRegistrationDefinition) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.ManagedServices/registrationAssignments/", false); + uri.AppendPath(registrationAssignmentId, true); + if (expandRegistrationDefinition != null) + { + uri.AppendQuery("$expandRegistrationDefinition", expandRegistrationDefinition.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string scope, string registrationAssignmentId, bool? expandRegistrationDefinition) { var message = _pipeline.CreateMessage(); @@ -119,6 +135,18 @@ public Response Get(string scope, str } } + internal RequestUriBuilder CreateDeleteRequestUri(string scope, string registrationAssignmentId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.ManagedServices/registrationAssignments/", false); + uri.AppendPath(registrationAssignmentId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string scope, string registrationAssignmentId) { var message = _pipeline.CreateMessage(); @@ -185,6 +213,18 @@ public Response Delete(string scope, string registrationAssignmentId, Cancellati } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string scope, string registrationAssignmentId, ManagedServicesRegistrationAssignmentData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.ManagedServices/registrationAssignments/", false); + uri.AppendPath(registrationAssignmentId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string scope, string registrationAssignmentId, ManagedServicesRegistrationAssignmentData data) { var message = _pipeline.CreateMessage(); @@ -257,6 +297,25 @@ public Response CreateOrUpdate(string scope, string registrationAssignmentId, Ma } } + internal RequestUriBuilder CreateListRequestUri(string scope, bool? expandRegistrationDefinition, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.ManagedServices/registrationAssignments", false); + if (expandRegistrationDefinition != null) + { + uri.AppendQuery("$expandRegistrationDefinition", expandRegistrationDefinition.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string scope, bool? expandRegistrationDefinition, string filter) { var message = _pipeline.CreateMessage(); @@ -334,6 +393,14 @@ public Response List(string sco } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string scope, bool? expandRegistrationDefinition, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string scope, bool? expandRegistrationDefinition, string filter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/managedservices/Azure.ResourceManager.ManagedServices/src/Generated/RestOperations/RegistrationDefinitionsRestOperations.cs b/sdk/managedservices/Azure.ResourceManager.ManagedServices/src/Generated/RestOperations/RegistrationDefinitionsRestOperations.cs index d33c8cd15ad2..b10fb1843c69 100644 --- a/sdk/managedservices/Azure.ResourceManager.ManagedServices/src/Generated/RestOperations/RegistrationDefinitionsRestOperations.cs +++ b/sdk/managedservices/Azure.ResourceManager.ManagedServices/src/Generated/RestOperations/RegistrationDefinitionsRestOperations.cs @@ -37,6 +37,18 @@ public RegistrationDefinitionsRestOperations(HttpPipeline pipeline, string appli _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string scope, string registrationId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.ManagedServices/registrationDefinitions/", false); + uri.AppendPath(registrationId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string scope, string registrationId) { var message = _pipeline.CreateMessage(); @@ -113,6 +125,18 @@ public Response Get(string scope, string regist } } + internal RequestUriBuilder CreateDeleteRequestUri(string scope, string registrationId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.ManagedServices/registrationDefinitions/", false); + uri.AppendPath(registrationId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string scope, string registrationId) { var message = _pipeline.CreateMessage(); @@ -177,6 +201,18 @@ public Response Delete(string scope, string registrationId, CancellationToken ca } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string scope, string registrationId, ManagedServicesRegistrationData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.ManagedServices/registrationDefinitions/", false); + uri.AppendPath(registrationId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string scope, string registrationId, ManagedServicesRegistrationData data) { var message = _pipeline.CreateMessage(); @@ -249,6 +285,21 @@ public Response CreateOrUpdate(string scope, string registrationId, ManagedServi } } + internal RequestUriBuilder CreateListRequestUri(string scope, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.ManagedServices/registrationDefinitions", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string scope, string filter) { var message = _pipeline.CreateMessage(); @@ -320,6 +371,14 @@ public Response List(string scope, string } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string scope, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string scope, string filter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/managementpartner/Azure.ResourceManager.ManagementPartner/src/Generated/LongRunningOperation/ManagementPartnerArmOperation.cs b/sdk/managementpartner/Azure.ResourceManager.ManagementPartner/src/Generated/LongRunningOperation/ManagementPartnerArmOperation.cs index e02379dfb47c..12b3b62b8170 100644 --- a/sdk/managementpartner/Azure.ResourceManager.ManagementPartner/src/Generated/LongRunningOperation/ManagementPartnerArmOperation.cs +++ b/sdk/managementpartner/Azure.ResourceManager.ManagementPartner/src/Generated/LongRunningOperation/ManagementPartnerArmOperation.cs @@ -20,21 +20,24 @@ internal class ManagementPartnerArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of ManagementPartnerArmOperation for mocking. protected ManagementPartnerArmOperation() { } - internal ManagementPartnerArmOperation(Response response) + internal ManagementPartnerArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal ManagementPartnerArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "ManagementPartnerArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal ManagementPartnerArmOperation(ClientDiagnostics clientDiagnostics, Http public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/managementpartner/Azure.ResourceManager.ManagementPartner/src/Generated/LongRunningOperation/ManagementPartnerArmOperationOfT.cs b/sdk/managementpartner/Azure.ResourceManager.ManagementPartner/src/Generated/LongRunningOperation/ManagementPartnerArmOperationOfT.cs index 5d9284050287..b16bb814fbd3 100644 --- a/sdk/managementpartner/Azure.ResourceManager.ManagementPartner/src/Generated/LongRunningOperation/ManagementPartnerArmOperationOfT.cs +++ b/sdk/managementpartner/Azure.ResourceManager.ManagementPartner/src/Generated/LongRunningOperation/ManagementPartnerArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class ManagementPartnerArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of ManagementPartnerArmOperation for mocking. protected ManagementPartnerArmOperation() { } - internal ManagementPartnerArmOperation(Response response) + internal ManagementPartnerArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal ManagementPartnerArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "ManagementPartnerArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal ManagementPartnerArmOperation(IOperationSource source, ClientDiagnos public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/managementpartner/Azure.ResourceManager.ManagementPartner/src/Generated/Models/PartnerResponseResource.Serialization.cs b/sdk/managementpartner/Azure.ResourceManager.ManagementPartner/src/Generated/Models/PartnerResponseResource.Serialization.cs new file mode 100644 index 000000000000..c9c84a8935ac --- /dev/null +++ b/sdk/managementpartner/Azure.ResourceManager.ManagementPartner/src/Generated/Models/PartnerResponseResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ManagementPartner +{ + public partial class PartnerResponseResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + PartnerResponseData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + PartnerResponseData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/managementpartner/Azure.ResourceManager.ManagementPartner/src/Generated/PartnerResponseCollection.cs b/sdk/managementpartner/Azure.ResourceManager.ManagementPartner/src/Generated/PartnerResponseCollection.cs index 6d85024b5617..1f25bf581998 100644 --- a/sdk/managementpartner/Azure.ResourceManager.ManagementPartner/src/Generated/PartnerResponseCollection.cs +++ b/sdk/managementpartner/Azure.ResourceManager.ManagementPartner/src/Generated/PartnerResponseCollection.cs @@ -86,7 +86,9 @@ public virtual async Task> CreateOrUpdateA try { var response = await _partnerResponsePartnerRestClient.CreateAsync(partnerId, cancellationToken).ConfigureAwait(false); - var operation = new ManagementPartnerArmOperation(Response.FromValue(new PartnerResponseResource(Client, response), response.GetRawResponse())); + var uri = _partnerResponsePartnerRestClient.CreateCreateRequestUri(partnerId); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ManagementPartnerArmOperation(Response.FromValue(new PartnerResponseResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -133,7 +135,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wa try { var response = _partnerResponsePartnerRestClient.Create(partnerId, cancellationToken); - var operation = new ManagementPartnerArmOperation(Response.FromValue(new PartnerResponseResource(Client, response), response.GetRawResponse())); + var uri = _partnerResponsePartnerRestClient.CreateCreateRequestUri(partnerId); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ManagementPartnerArmOperation(Response.FromValue(new PartnerResponseResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/managementpartner/Azure.ResourceManager.ManagementPartner/src/Generated/PartnerResponseResource.cs b/sdk/managementpartner/Azure.ResourceManager.ManagementPartner/src/Generated/PartnerResponseResource.cs index 291962506917..be93915aaf7a 100644 --- a/sdk/managementpartner/Azure.ResourceManager.ManagementPartner/src/Generated/PartnerResponseResource.cs +++ b/sdk/managementpartner/Azure.ResourceManager.ManagementPartner/src/Generated/PartnerResponseResource.cs @@ -198,7 +198,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _partnerResponsePartnerRestClient.DeleteAsync(Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new ManagementPartnerArmOperation(response); + var uri = _partnerResponsePartnerRestClient.CreateDeleteRequestUri(Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ManagementPartnerArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -240,7 +242,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _partnerResponsePartnerRestClient.Delete(Id.Name, cancellationToken); - var operation = new ManagementPartnerArmOperation(response); + var uri = _partnerResponsePartnerRestClient.CreateDeleteRequestUri(Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ManagementPartnerArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/managementpartner/Azure.ResourceManager.ManagementPartner/src/Generated/RestOperations/OperationRestOperations.cs b/sdk/managementpartner/Azure.ResourceManager.ManagementPartner/src/Generated/RestOperations/OperationRestOperations.cs index 5cc190add883..12457acb3a49 100644 --- a/sdk/managementpartner/Azure.ResourceManager.ManagementPartner/src/Generated/RestOperations/OperationRestOperations.cs +++ b/sdk/managementpartner/Azure.ResourceManager.ManagementPartner/src/Generated/RestOperations/OperationRestOperations.cs @@ -37,6 +37,15 @@ public OperationRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri() + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.ManagementPartner/operations", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest() { var message = _pipeline.CreateMessage(); @@ -92,6 +101,14 @@ public Response List(CancellationToken cancellationToken = defaul } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink) { var message = _pipeline.CreateMessage(); diff --git a/sdk/managementpartner/Azure.ResourceManager.ManagementPartner/src/Generated/RestOperations/PartnerRestOperations.cs b/sdk/managementpartner/Azure.ResourceManager.ManagementPartner/src/Generated/RestOperations/PartnerRestOperations.cs index bf914228cceb..fbdbc0d0187b 100644 --- a/sdk/managementpartner/Azure.ResourceManager.ManagementPartner/src/Generated/RestOperations/PartnerRestOperations.cs +++ b/sdk/managementpartner/Azure.ResourceManager.ManagementPartner/src/Generated/RestOperations/PartnerRestOperations.cs @@ -36,6 +36,16 @@ public PartnerRestOperations(HttpPipeline pipeline, string applicationId, Uri en _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string partnerId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.ManagementPartner/partners/", false); + uri.AppendPath(partnerId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string partnerId) { var message = _pipeline.CreateMessage(); @@ -106,6 +116,16 @@ public Response Get(string partnerId, CancellationToken can } } + internal RequestUriBuilder CreateCreateRequestUri(string partnerId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.ManagementPartner/partners/", false); + uri.AppendPath(partnerId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string partnerId) { var message = _pipeline.CreateMessage(); @@ -172,6 +192,16 @@ public Response Create(string partnerId, CancellationToken } } + internal RequestUriBuilder CreateUpdateRequestUri(string partnerId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.ManagementPartner/partners/", false); + uri.AppendPath(partnerId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string partnerId) { var message = _pipeline.CreateMessage(); @@ -238,6 +268,16 @@ public Response Update(string partnerId, CancellationToken } } + internal RequestUriBuilder CreateDeleteRequestUri(string partnerId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.ManagementPartner/partners/", false); + uri.AppendPath(partnerId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string partnerId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/maps/Azure.ResourceManager.Maps/src/Generated/LongRunningOperation/MapsArmOperation.cs b/sdk/maps/Azure.ResourceManager.Maps/src/Generated/LongRunningOperation/MapsArmOperation.cs index 1575ecf17d9f..8c4c2ac03800 100644 --- a/sdk/maps/Azure.ResourceManager.Maps/src/Generated/LongRunningOperation/MapsArmOperation.cs +++ b/sdk/maps/Azure.ResourceManager.Maps/src/Generated/LongRunningOperation/MapsArmOperation.cs @@ -20,21 +20,24 @@ internal class MapsArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of MapsArmOperation for mocking. protected MapsArmOperation() { } - internal MapsArmOperation(Response response) + internal MapsArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal MapsArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "MapsArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal MapsArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipe public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/maps/Azure.ResourceManager.Maps/src/Generated/LongRunningOperation/MapsArmOperationOfT.cs b/sdk/maps/Azure.ResourceManager.Maps/src/Generated/LongRunningOperation/MapsArmOperationOfT.cs index 2533f061cd37..8a4a7dad054d 100644 --- a/sdk/maps/Azure.ResourceManager.Maps/src/Generated/LongRunningOperation/MapsArmOperationOfT.cs +++ b/sdk/maps/Azure.ResourceManager.Maps/src/Generated/LongRunningOperation/MapsArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class MapsArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of MapsArmOperation for mocking. protected MapsArmOperation() { } - internal MapsArmOperation(Response response) + internal MapsArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal MapsArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "MapsArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal MapsArmOperation(IOperationSource source, ClientDiagnostics clientDi public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/maps/Azure.ResourceManager.Maps/src/Generated/MapsAccountCollection.cs b/sdk/maps/Azure.ResourceManager.Maps/src/Generated/MapsAccountCollection.cs index 4531ba303afb..a20d49da369d 100644 --- a/sdk/maps/Azure.ResourceManager.Maps/src/Generated/MapsAccountCollection.cs +++ b/sdk/maps/Azure.ResourceManager.Maps/src/Generated/MapsAccountCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> CreateOrUpdateAsync try { var response = await _mapsAccountAccountsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, accountName, data, cancellationToken).ConfigureAwait(false); - var operation = new MapsArmOperation(Response.FromValue(new MapsAccountResource(Client, response), response.GetRawResponse())); + var uri = _mapsAccountAccountsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, accountName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MapsArmOperation(Response.FromValue(new MapsAccountResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -140,7 +142,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUn try { var response = _mapsAccountAccountsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, accountName, data, cancellationToken); - var operation = new MapsArmOperation(Response.FromValue(new MapsAccountResource(Client, response), response.GetRawResponse())); + var uri = _mapsAccountAccountsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, accountName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MapsArmOperation(Response.FromValue(new MapsAccountResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/maps/Azure.ResourceManager.Maps/src/Generated/MapsAccountResource.cs b/sdk/maps/Azure.ResourceManager.Maps/src/Generated/MapsAccountResource.cs index 1a643ebd3be0..85b7e4cdfb8d 100644 --- a/sdk/maps/Azure.ResourceManager.Maps/src/Generated/MapsAccountResource.cs +++ b/sdk/maps/Azure.ResourceManager.Maps/src/Generated/MapsAccountResource.cs @@ -271,7 +271,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _mapsAccountAccountsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new MapsArmOperation(response); + var uri = _mapsAccountAccountsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MapsArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -313,7 +315,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _mapsAccountAccountsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); - var operation = new MapsArmOperation(response); + var uri = _mapsAccountAccountsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MapsArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/maps/Azure.ResourceManager.Maps/src/Generated/MapsCreatorCollection.cs b/sdk/maps/Azure.ResourceManager.Maps/src/Generated/MapsCreatorCollection.cs index 3a84f9af728f..9a1cea269892 100644 --- a/sdk/maps/Azure.ResourceManager.Maps/src/Generated/MapsCreatorCollection.cs +++ b/sdk/maps/Azure.ResourceManager.Maps/src/Generated/MapsCreatorCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> CreateOrUpdateAsync try { var response = await _mapsCreatorCreatorsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, creatorName, data, cancellationToken).ConfigureAwait(false); - var operation = new MapsArmOperation(Response.FromValue(new MapsCreatorResource(Client, response), response.GetRawResponse())); + var uri = _mapsCreatorCreatorsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, creatorName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MapsArmOperation(Response.FromValue(new MapsCreatorResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUn try { var response = _mapsCreatorCreatorsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, creatorName, data, cancellationToken); - var operation = new MapsArmOperation(Response.FromValue(new MapsCreatorResource(Client, response), response.GetRawResponse())); + var uri = _mapsCreatorCreatorsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, creatorName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MapsArmOperation(Response.FromValue(new MapsCreatorResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/maps/Azure.ResourceManager.Maps/src/Generated/MapsCreatorResource.cs b/sdk/maps/Azure.ResourceManager.Maps/src/Generated/MapsCreatorResource.cs index f474ea3ed27d..4bf425717d46 100644 --- a/sdk/maps/Azure.ResourceManager.Maps/src/Generated/MapsCreatorResource.cs +++ b/sdk/maps/Azure.ResourceManager.Maps/src/Generated/MapsCreatorResource.cs @@ -202,7 +202,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _mapsCreatorCreatorsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new MapsArmOperation(response); + var uri = _mapsCreatorCreatorsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MapsArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -244,7 +246,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _mapsCreatorCreatorsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new MapsArmOperation(response); + var uri = _mapsCreatorCreatorsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MapsArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/maps/Azure.ResourceManager.Maps/src/Generated/Models/MapsAccountResource.Serialization.cs b/sdk/maps/Azure.ResourceManager.Maps/src/Generated/Models/MapsAccountResource.Serialization.cs new file mode 100644 index 000000000000..fac363fe4ecc --- /dev/null +++ b/sdk/maps/Azure.ResourceManager.Maps/src/Generated/Models/MapsAccountResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Maps +{ + public partial class MapsAccountResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MapsAccountData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MapsAccountData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/maps/Azure.ResourceManager.Maps/src/Generated/Models/MapsCreatorResource.Serialization.cs b/sdk/maps/Azure.ResourceManager.Maps/src/Generated/Models/MapsCreatorResource.Serialization.cs new file mode 100644 index 000000000000..b9bfcfd8389c --- /dev/null +++ b/sdk/maps/Azure.ResourceManager.Maps/src/Generated/Models/MapsCreatorResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Maps +{ + public partial class MapsCreatorResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MapsCreatorData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MapsCreatorData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/maps/Azure.ResourceManager.Maps/src/Generated/RestOperations/AccountsRestOperations.cs b/sdk/maps/Azure.ResourceManager.Maps/src/Generated/RestOperations/AccountsRestOperations.cs index 7c1ce1e914a3..7c5972c2e3a3 100644 --- a/sdk/maps/Azure.ResourceManager.Maps/src/Generated/RestOperations/AccountsRestOperations.cs +++ b/sdk/maps/Azure.ResourceManager.Maps/src/Generated/RestOperations/AccountsRestOperations.cs @@ -37,6 +37,20 @@ public AccountsRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string accountName, MapsAccountData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Maps/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string accountName, MapsAccountData data) { var message = _pipeline.CreateMessage(); @@ -125,6 +139,20 @@ public Response CreateOrUpdate(string subscriptionId, string re } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string accountName, MapsAccountPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Maps/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string accountName, MapsAccountPatch patch) { var message = _pipeline.CreateMessage(); @@ -211,6 +239,20 @@ public Response Update(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string accountName) + { + 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.Maps/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); @@ -281,6 +323,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string accountName) + { + 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.Maps/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); @@ -363,6 +419,19 @@ public Response Get(string subscriptionId, string resourceGroup } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.Maps/accounts", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -436,6 +505,17 @@ public Response ListByResourceGroup(string subscriptionId, string } } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Maps/accounts", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -503,6 +583,21 @@ public Response ListBySubscription(string subscriptionId, Cancella } } + internal RequestUriBuilder CreateListSasRequestUri(string subscriptionId, string resourceGroupName, string accountName, MapsAccountSasContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Maps/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/listSas", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListSasRequest(string subscriptionId, string resourceGroupName, string accountName, MapsAccountSasContent content) { var message = _pipeline.CreateMessage(); @@ -602,6 +697,21 @@ public Response ListSas(string subscriptionId, string resou } } + internal RequestUriBuilder CreateListKeysRequestUri(string subscriptionId, string resourceGroupName, string accountName) + { + 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.Maps/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/listKeys", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListKeysRequest(string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); @@ -681,6 +791,21 @@ public Response ListKeys(string subscriptionId, string resource } } + internal RequestUriBuilder CreateRegenerateKeysRequestUri(string subscriptionId, string resourceGroupName, string accountName, MapsKeySpecification keySpecification) + { + 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.Maps/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/regenerateKey", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRegenerateKeysRequest(string subscriptionId, string resourceGroupName, string accountName, MapsKeySpecification keySpecification) { var message = _pipeline.CreateMessage(); @@ -768,6 +893,14 @@ public Response RegenerateKeys(string subscriptionId, string re } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -840,6 +973,14 @@ public Response ListByResourceGroupNextPage(string nextLink, strin } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/maps/Azure.ResourceManager.Maps/src/Generated/RestOperations/CreatorsRestOperations.cs b/sdk/maps/Azure.ResourceManager.Maps/src/Generated/RestOperations/CreatorsRestOperations.cs index 1dc7f8d19910..586d56e17558 100644 --- a/sdk/maps/Azure.ResourceManager.Maps/src/Generated/RestOperations/CreatorsRestOperations.cs +++ b/sdk/maps/Azure.ResourceManager.Maps/src/Generated/RestOperations/CreatorsRestOperations.cs @@ -37,6 +37,21 @@ public CreatorsRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByAccountRequestUri(string subscriptionId, string resourceGroupName, string accountName) + { + 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.Maps/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/creators", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByAccountRequest(string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByAccount(string subscriptionId, stri } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string accountName, string creatorName, MapsCreatorData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Maps/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/creators/", false); + uri.AppendPath(creatorName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string accountName, string creatorName, MapsCreatorData data) { var message = _pipeline.CreateMessage(); @@ -210,6 +241,22 @@ public Response CreateOrUpdate(string subscriptionId, string re } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string accountName, string creatorName, MapsCreatorPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Maps/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/creators/", false); + uri.AppendPath(creatorName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string accountName, string creatorName, MapsCreatorPatch patch) { var message = _pipeline.CreateMessage(); @@ -302,6 +349,22 @@ public Response Update(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string accountName, string creatorName) + { + 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.Maps/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/creators/", false); + uri.AppendPath(creatorName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string accountName, string creatorName) { var message = _pipeline.CreateMessage(); @@ -378,6 +441,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string accountName, string creatorName) + { + 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.Maps/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/creators/", false); + uri.AppendPath(creatorName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string accountName, string creatorName) { var message = _pipeline.CreateMessage(); @@ -466,6 +545,14 @@ public Response Get(string subscriptionId, string resourceGroup } } + internal RequestUriBuilder CreateListByAccountNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string accountName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByAccountNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/LongRunningOperation/MarketplaceArmOperation.cs b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/LongRunningOperation/MarketplaceArmOperation.cs index f7a1a282bc10..1fc962aea3e3 100644 --- a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/LongRunningOperation/MarketplaceArmOperation.cs +++ b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/LongRunningOperation/MarketplaceArmOperation.cs @@ -20,21 +20,24 @@ internal class MarketplaceArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of MarketplaceArmOperation for mocking. protected MarketplaceArmOperation() { } - internal MarketplaceArmOperation(Response response) + internal MarketplaceArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal MarketplaceArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "MarketplaceArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal MarketplaceArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeli public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/LongRunningOperation/MarketplaceArmOperationOfT.cs b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/LongRunningOperation/MarketplaceArmOperationOfT.cs index 94fc8f24e2ab..bb7d34b12f37 100644 --- a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/LongRunningOperation/MarketplaceArmOperationOfT.cs +++ b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/LongRunningOperation/MarketplaceArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class MarketplaceArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of MarketplaceArmOperation for mocking. protected MarketplaceArmOperation() { } - internal MarketplaceArmOperation(Response response) + internal MarketplaceArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal MarketplaceArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "MarketplaceArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal MarketplaceArmOperation(IOperationSource source, ClientDiagnostics c public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/MarketplaceAdminApprovalRequestCollection.cs b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/MarketplaceAdminApprovalRequestCollection.cs index 0d226c886de0..57ad0cbedb2e 100644 --- a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/MarketplaceAdminApprovalRequestCollection.cs +++ b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/MarketplaceAdminApprovalRequestCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> try { var response = await _marketplaceAdminApprovalRequestPrivateStoreRestClient.UpdateAdminRequestApprovalAsync(Guid.Parse(Id.Name), adminRequestApprovalId, data, cancellationToken).ConfigureAwait(false); - var operation = new MarketplaceArmOperation(Response.FromValue(new MarketplaceAdminApprovalRequestResource(Client, response), response.GetRawResponse())); + var uri = _marketplaceAdminApprovalRequestPrivateStoreRestClient.CreateUpdateAdminRequestApprovalRequestUri(Guid.Parse(Id.Name), adminRequestApprovalId, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MarketplaceArmOperation(Response.FromValue(new MarketplaceAdminApprovalRequestResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpd try { var response = _marketplaceAdminApprovalRequestPrivateStoreRestClient.UpdateAdminRequestApproval(Guid.Parse(Id.Name), adminRequestApprovalId, data, cancellationToken); - var operation = new MarketplaceArmOperation(Response.FromValue(new MarketplaceAdminApprovalRequestResource(Client, response), response.GetRawResponse())); + var uri = _marketplaceAdminApprovalRequestPrivateStoreRestClient.CreateUpdateAdminRequestApprovalRequestUri(Guid.Parse(Id.Name), adminRequestApprovalId, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MarketplaceArmOperation(Response.FromValue(new MarketplaceAdminApprovalRequestResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/MarketplaceAdminApprovalRequestResource.cs b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/MarketplaceAdminApprovalRequestResource.cs index e80bc41e1552..90afdcee8b0f 100644 --- a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/MarketplaceAdminApprovalRequestResource.cs +++ b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/MarketplaceAdminApprovalRequestResource.cs @@ -210,7 +210,9 @@ public virtual async Task> try { var response = await _marketplaceAdminApprovalRequestPrivateStoreRestClient.UpdateAdminRequestApprovalAsync(Guid.Parse(Id.Parent.Name), Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new MarketplaceArmOperation(Response.FromValue(new MarketplaceAdminApprovalRequestResource(Client, response), response.GetRawResponse())); + var uri = _marketplaceAdminApprovalRequestPrivateStoreRestClient.CreateUpdateAdminRequestApprovalRequestUri(Guid.Parse(Id.Parent.Name), Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MarketplaceArmOperation(Response.FromValue(new MarketplaceAdminApprovalRequestResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -256,7 +258,9 @@ public virtual ArmOperation Update(Wait try { var response = _marketplaceAdminApprovalRequestPrivateStoreRestClient.UpdateAdminRequestApproval(Guid.Parse(Id.Parent.Name), Id.Name, data, cancellationToken); - var operation = new MarketplaceArmOperation(Response.FromValue(new MarketplaceAdminApprovalRequestResource(Client, response), response.GetRawResponse())); + var uri = _marketplaceAdminApprovalRequestPrivateStoreRestClient.CreateUpdateAdminRequestApprovalRequestUri(Guid.Parse(Id.Parent.Name), Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MarketplaceArmOperation(Response.FromValue(new MarketplaceAdminApprovalRequestResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/MarketplaceApprovalRequestCollection.cs b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/MarketplaceApprovalRequestCollection.cs index 1833e649effe..1c49acfe5f98 100644 --- a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/MarketplaceApprovalRequestCollection.cs +++ b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/MarketplaceApprovalRequestCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> Crea try { var response = await _marketplaceApprovalRequestPrivateStoreRestClient.CreateApprovalRequestAsync(Guid.Parse(Id.Name), requestApprovalId, data, cancellationToken).ConfigureAwait(false); - var operation = new MarketplaceArmOperation(Response.FromValue(new MarketplaceApprovalRequestResource(Client, response), response.GetRawResponse())); + var uri = _marketplaceApprovalRequestPrivateStoreRestClient.CreateCreateApprovalRequestRequestUri(Guid.Parse(Id.Name), requestApprovalId, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MarketplaceArmOperation(Response.FromValue(new MarketplaceApprovalRequestResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(W try { var response = _marketplaceApprovalRequestPrivateStoreRestClient.CreateApprovalRequest(Guid.Parse(Id.Name), requestApprovalId, data, cancellationToken); - var operation = new MarketplaceArmOperation(Response.FromValue(new MarketplaceApprovalRequestResource(Client, response), response.GetRawResponse())); + var uri = _marketplaceApprovalRequestPrivateStoreRestClient.CreateCreateApprovalRequestRequestUri(Guid.Parse(Id.Name), requestApprovalId, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MarketplaceArmOperation(Response.FromValue(new MarketplaceApprovalRequestResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/MarketplaceApprovalRequestResource.cs b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/MarketplaceApprovalRequestResource.cs index 96c1b3e4f58e..9459d14af849 100644 --- a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/MarketplaceApprovalRequestResource.cs +++ b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/MarketplaceApprovalRequestResource.cs @@ -203,7 +203,9 @@ public virtual async Task> Upda try { var response = await _marketplaceApprovalRequestPrivateStoreRestClient.CreateApprovalRequestAsync(Guid.Parse(Id.Parent.Name), Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new MarketplaceArmOperation(Response.FromValue(new MarketplaceApprovalRequestResource(Client, response), response.GetRawResponse())); + var uri = _marketplaceApprovalRequestPrivateStoreRestClient.CreateCreateApprovalRequestRequestUri(Guid.Parse(Id.Parent.Name), Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MarketplaceArmOperation(Response.FromValue(new MarketplaceApprovalRequestResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -249,7 +251,9 @@ public virtual ArmOperation Update(WaitUntil try { var response = _marketplaceApprovalRequestPrivateStoreRestClient.CreateApprovalRequest(Guid.Parse(Id.Parent.Name), Id.Name, data, cancellationToken); - var operation = new MarketplaceArmOperation(Response.FromValue(new MarketplaceApprovalRequestResource(Client, response), response.GetRawResponse())); + var uri = _marketplaceApprovalRequestPrivateStoreRestClient.CreateCreateApprovalRequestRequestUri(Guid.Parse(Id.Parent.Name), Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MarketplaceArmOperation(Response.FromValue(new MarketplaceApprovalRequestResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/MarketplaceAdminApprovalRequestResource.Serialization.cs b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/MarketplaceAdminApprovalRequestResource.Serialization.cs new file mode 100644 index 000000000000..f42a805c0f9f --- /dev/null +++ b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/MarketplaceAdminApprovalRequestResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Marketplace +{ + public partial class MarketplaceAdminApprovalRequestResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MarketplaceAdminApprovalRequestData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MarketplaceAdminApprovalRequestData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/MarketplaceApprovalRequestResource.Serialization.cs b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/MarketplaceApprovalRequestResource.Serialization.cs new file mode 100644 index 000000000000..0103b28b0f03 --- /dev/null +++ b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/MarketplaceApprovalRequestResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Marketplace +{ + public partial class MarketplaceApprovalRequestResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MarketplaceApprovalRequestData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MarketplaceApprovalRequestData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/PrivateStoreCollectionInfoResource.Serialization.cs b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/PrivateStoreCollectionInfoResource.Serialization.cs new file mode 100644 index 000000000000..e75b70f46280 --- /dev/null +++ b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/PrivateStoreCollectionInfoResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Marketplace +{ + public partial class PrivateStoreCollectionInfoResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + PrivateStoreCollectionInfoData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + PrivateStoreCollectionInfoData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/PrivateStoreOfferResource.Serialization.cs b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/PrivateStoreOfferResource.Serialization.cs new file mode 100644 index 000000000000..83da5b40dd2e --- /dev/null +++ b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/PrivateStoreOfferResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Marketplace +{ + public partial class PrivateStoreOfferResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + PrivateStoreOfferData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + PrivateStoreOfferData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/PrivateStoreResource.Serialization.cs b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/PrivateStoreResource.Serialization.cs new file mode 100644 index 000000000000..64910bb4f120 --- /dev/null +++ b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/PrivateStoreResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Marketplace +{ + public partial class PrivateStoreResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + PrivateStoreData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + PrivateStoreData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/PrivateStoreCollection.cs b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/PrivateStoreCollection.cs index cd1199e4df0e..1f1ea4b12ad1 100644 --- a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/PrivateStoreCollection.cs +++ b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/PrivateStoreCollection.cs @@ -89,7 +89,9 @@ public virtual async Task CreateOrUpdateAsync(WaitUntil waitUntil, try { var response = await _privateStoreRestClient.CreateOrUpdateAsync(privateStoreId, data, cancellationToken).ConfigureAwait(false); - var operation = new MarketplaceArmOperation(response); + var uri = _privateStoreRestClient.CreateCreateOrUpdateRequestUri(privateStoreId, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MarketplaceArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -136,7 +138,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, Guid privateStor try { var response = _privateStoreRestClient.CreateOrUpdate(privateStoreId, data, cancellationToken); - var operation = new MarketplaceArmOperation(response); + var uri = _privateStoreRestClient.CreateCreateOrUpdateRequestUri(privateStoreId, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MarketplaceArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/PrivateStoreCollectionInfoCollection.cs b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/PrivateStoreCollectionInfoCollection.cs index bc81491eff34..92bff3acc18e 100644 --- a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/PrivateStoreCollectionInfoCollection.cs +++ b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/PrivateStoreCollectionInfoCollection.cs @@ -88,7 +88,9 @@ public virtual async Task> Crea try { var response = await _privateStoreCollectionInfoPrivateStoreCollectionRestClient.CreateOrUpdateAsync(Guid.Parse(Id.Name), collectionId, info, cancellationToken).ConfigureAwait(false); - var operation = new MarketplaceArmOperation(Response.FromValue(new PrivateStoreCollectionInfoResource(Client, response), response.GetRawResponse())); + var uri = _privateStoreCollectionInfoPrivateStoreCollectionRestClient.CreateCreateOrUpdateRequestUri(Guid.Parse(Id.Name), collectionId, info); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MarketplaceArmOperation(Response.FromValue(new PrivateStoreCollectionInfoResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -135,7 +137,9 @@ public virtual ArmOperation CreateOrUpdate(W try { var response = _privateStoreCollectionInfoPrivateStoreCollectionRestClient.CreateOrUpdate(Guid.Parse(Id.Name), collectionId, info, cancellationToken); - var operation = new MarketplaceArmOperation(Response.FromValue(new PrivateStoreCollectionInfoResource(Client, response), response.GetRawResponse())); + var uri = _privateStoreCollectionInfoPrivateStoreCollectionRestClient.CreateCreateOrUpdateRequestUri(Guid.Parse(Id.Name), collectionId, info); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MarketplaceArmOperation(Response.FromValue(new PrivateStoreCollectionInfoResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/PrivateStoreCollectionInfoResource.cs b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/PrivateStoreCollectionInfoResource.cs index 811a79ea6028..50ffacb8814b 100644 --- a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/PrivateStoreCollectionInfoResource.cs +++ b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/PrivateStoreCollectionInfoResource.cs @@ -278,7 +278,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _privateStoreCollectionInfoPrivateStoreCollectionRestClient.DeleteAsync(Guid.Parse(Id.Parent.Name), Guid.Parse(Id.Name), cancellationToken).ConfigureAwait(false); - var operation = new MarketplaceArmOperation(response); + var uri = _privateStoreCollectionInfoPrivateStoreCollectionRestClient.CreateDeleteRequestUri(Guid.Parse(Id.Parent.Name), Guid.Parse(Id.Name)); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MarketplaceArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -320,7 +322,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _privateStoreCollectionInfoPrivateStoreCollectionRestClient.Delete(Guid.Parse(Id.Parent.Name), Guid.Parse(Id.Name), cancellationToken); - var operation = new MarketplaceArmOperation(response); + var uri = _privateStoreCollectionInfoPrivateStoreCollectionRestClient.CreateDeleteRequestUri(Guid.Parse(Id.Parent.Name), Guid.Parse(Id.Name)); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MarketplaceArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -366,7 +370,9 @@ public virtual async Task> Upda try { var response = await _privateStoreCollectionInfoPrivateStoreCollectionRestClient.CreateOrUpdateAsync(Guid.Parse(Id.Parent.Name), Guid.Parse(Id.Name), info, cancellationToken).ConfigureAwait(false); - var operation = new MarketplaceArmOperation(Response.FromValue(new PrivateStoreCollectionInfoResource(Client, response), response.GetRawResponse())); + var uri = _privateStoreCollectionInfoPrivateStoreCollectionRestClient.CreateCreateOrUpdateRequestUri(Guid.Parse(Id.Parent.Name), Guid.Parse(Id.Name), info); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MarketplaceArmOperation(Response.FromValue(new PrivateStoreCollectionInfoResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -412,7 +418,9 @@ public virtual ArmOperation Update(WaitUntil try { var response = _privateStoreCollectionInfoPrivateStoreCollectionRestClient.CreateOrUpdate(Guid.Parse(Id.Parent.Name), Guid.Parse(Id.Name), info, cancellationToken); - var operation = new MarketplaceArmOperation(Response.FromValue(new PrivateStoreCollectionInfoResource(Client, response), response.GetRawResponse())); + var uri = _privateStoreCollectionInfoPrivateStoreCollectionRestClient.CreateCreateOrUpdateRequestUri(Guid.Parse(Id.Parent.Name), Guid.Parse(Id.Name), info); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MarketplaceArmOperation(Response.FromValue(new PrivateStoreCollectionInfoResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/PrivateStoreOfferCollection.cs b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/PrivateStoreOfferCollection.cs index 53898951c4f5..a8fd25e6d9f0 100644 --- a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/PrivateStoreOfferCollection.cs +++ b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/PrivateStoreOfferCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> CreateOrUpdat try { var response = await _privateStoreOfferPrivateStoreCollectionOfferRestClient.CreateOrUpdateAsync(Guid.Parse(Id.Parent.Name), Guid.Parse(Id.Name), offerId, data, cancellationToken).ConfigureAwait(false); - var operation = new MarketplaceArmOperation(Response.FromValue(new PrivateStoreOfferResource(Client, response), response.GetRawResponse())); + var uri = _privateStoreOfferPrivateStoreCollectionOfferRestClient.CreateCreateOrUpdateRequestUri(Guid.Parse(Id.Parent.Name), Guid.Parse(Id.Name), offerId, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MarketplaceArmOperation(Response.FromValue(new PrivateStoreOfferResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil try { var response = _privateStoreOfferPrivateStoreCollectionOfferRestClient.CreateOrUpdate(Guid.Parse(Id.Parent.Name), Guid.Parse(Id.Name), offerId, data, cancellationToken); - var operation = new MarketplaceArmOperation(Response.FromValue(new PrivateStoreOfferResource(Client, response), response.GetRawResponse())); + var uri = _privateStoreOfferPrivateStoreCollectionOfferRestClient.CreateCreateOrUpdateRequestUri(Guid.Parse(Id.Parent.Name), Guid.Parse(Id.Name), offerId, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MarketplaceArmOperation(Response.FromValue(new PrivateStoreOfferResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/PrivateStoreOfferResource.cs b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/PrivateStoreOfferResource.cs index 84b6db0d8620..67b67aa9ce68 100644 --- a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/PrivateStoreOfferResource.cs +++ b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/PrivateStoreOfferResource.cs @@ -200,7 +200,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _privateStoreOfferPrivateStoreCollectionOfferRestClient.DeleteAsync(Guid.Parse(Id.Parent.Parent.Name), Guid.Parse(Id.Parent.Name), Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new MarketplaceArmOperation(response); + var uri = _privateStoreOfferPrivateStoreCollectionOfferRestClient.CreateDeleteRequestUri(Guid.Parse(Id.Parent.Parent.Name), Guid.Parse(Id.Parent.Name), Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MarketplaceArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -242,7 +244,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _privateStoreOfferPrivateStoreCollectionOfferRestClient.Delete(Guid.Parse(Id.Parent.Parent.Name), Guid.Parse(Id.Parent.Name), Id.Name, cancellationToken); - var operation = new MarketplaceArmOperation(response); + var uri = _privateStoreOfferPrivateStoreCollectionOfferRestClient.CreateDeleteRequestUri(Guid.Parse(Id.Parent.Parent.Name), Guid.Parse(Id.Parent.Name), Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MarketplaceArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -288,7 +292,9 @@ public virtual async Task> UpdateAsync(W try { var response = await _privateStoreOfferPrivateStoreCollectionOfferRestClient.CreateOrUpdateAsync(Guid.Parse(Id.Parent.Parent.Name), Guid.Parse(Id.Parent.Name), Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new MarketplaceArmOperation(Response.FromValue(new PrivateStoreOfferResource(Client, response), response.GetRawResponse())); + var uri = _privateStoreOfferPrivateStoreCollectionOfferRestClient.CreateCreateOrUpdateRequestUri(Guid.Parse(Id.Parent.Parent.Name), Guid.Parse(Id.Parent.Name), Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MarketplaceArmOperation(Response.FromValue(new PrivateStoreOfferResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -334,7 +340,9 @@ public virtual ArmOperation Update(WaitUntil waitUnti try { var response = _privateStoreOfferPrivateStoreCollectionOfferRestClient.CreateOrUpdate(Guid.Parse(Id.Parent.Parent.Name), Guid.Parse(Id.Parent.Name), Id.Name, data, cancellationToken); - var operation = new MarketplaceArmOperation(Response.FromValue(new PrivateStoreOfferResource(Client, response), response.GetRawResponse())); + var uri = _privateStoreOfferPrivateStoreCollectionOfferRestClient.CreateCreateOrUpdateRequestUri(Guid.Parse(Id.Parent.Parent.Name), Guid.Parse(Id.Parent.Name), Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MarketplaceArmOperation(Response.FromValue(new PrivateStoreOfferResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/PrivateStoreResource.cs b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/PrivateStoreResource.cs index 6b79afcb1491..f832db14419d 100644 --- a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/PrivateStoreResource.cs +++ b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/PrivateStoreResource.cs @@ -409,7 +409,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _privateStoreRestClient.DeleteAsync(Guid.Parse(Id.Name), cancellationToken).ConfigureAwait(false); - var operation = new MarketplaceArmOperation(response); + var uri = _privateStoreRestClient.CreateDeleteRequestUri(Guid.Parse(Id.Name)); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MarketplaceArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -451,7 +453,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _privateStoreRestClient.Delete(Guid.Parse(Id.Name), cancellationToken); - var operation = new MarketplaceArmOperation(response); + var uri = _privateStoreRestClient.CreateDeleteRequestUri(Guid.Parse(Id.Name)); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MarketplaceArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -497,7 +501,9 @@ public virtual async Task UpdateAsync(WaitUntil waitUntil, Private try { var response = await _privateStoreRestClient.CreateOrUpdateAsync(Guid.Parse(Id.Name), data, cancellationToken).ConfigureAwait(false); - var operation = new MarketplaceArmOperation(response); + var uri = _privateStoreRestClient.CreateCreateOrUpdateRequestUri(Guid.Parse(Id.Name), data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MarketplaceArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -543,7 +549,9 @@ public virtual ArmOperation Update(WaitUntil waitUntil, PrivateStoreData data, C try { var response = _privateStoreRestClient.CreateOrUpdate(Guid.Parse(Id.Name), data, cancellationToken); - var operation = new MarketplaceArmOperation(response); + var uri = _privateStoreRestClient.CreateCreateOrUpdateRequestUri(Guid.Parse(Id.Name), data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MarketplaceArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/RestOperations/MarketplaceRPServiceRestOperations.cs b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/RestOperations/MarketplaceRPServiceRestOperations.cs index d3e2416d6268..94294bf8a723 100644 --- a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/RestOperations/MarketplaceRPServiceRestOperations.cs +++ b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/RestOperations/MarketplaceRPServiceRestOperations.cs @@ -37,6 +37,17 @@ public MarketplaceRPServiceRestOperations(HttpPipeline pipeline, string applicat _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateQueryUserRulesRequestUri(Guid privateStoreId, QueryUserRulesContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Marketplace/privateStores/", false); + uri.AppendPath(privateStoreId, true); + uri.AppendPath("/queryUserRules", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateQueryUserRulesRequest(Guid privateStoreId, QueryUserRulesContent content) { var message = _pipeline.CreateMessage(); @@ -105,6 +116,19 @@ public Response QueryUserRules(Guid privateStoreId, Q } } + internal RequestUriBuilder CreateSetCollectionRulesRequestUri(Guid privateStoreId, Guid collectionId, SetRulesContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Marketplace/privateStores/", false); + uri.AppendPath(privateStoreId, true); + uri.AppendPath("/collections/", false); + uri.AppendPath(collectionId, true); + uri.AppendPath("/setRules", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateSetCollectionRulesRequest(Guid privateStoreId, Guid collectionId, SetRulesContent content) { var message = _pipeline.CreateMessage(); @@ -167,6 +191,19 @@ public Response SetCollectionRules(Guid privateStoreId, Guid collectionId, SetRu } } + internal RequestUriBuilder CreateQueryRulesRequestUri(Guid privateStoreId, Guid collectionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Marketplace/privateStores/", false); + uri.AppendPath(privateStoreId, true); + uri.AppendPath("/collections/", false); + uri.AppendPath(collectionId, true); + uri.AppendPath("/queryRules", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateQueryRulesRequest(Guid privateStoreId, Guid collectionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/RestOperations/PrivateStoreCollectionOfferRestOperations.cs b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/RestOperations/PrivateStoreCollectionOfferRestOperations.cs index f3da42e9c2eb..a8e26514cfad 100644 --- a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/RestOperations/PrivateStoreCollectionOfferRestOperations.cs +++ b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/RestOperations/PrivateStoreCollectionOfferRestOperations.cs @@ -37,6 +37,19 @@ public PrivateStoreCollectionOfferRestOperations(HttpPipeline pipeline, string a _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(Guid privateStoreId, Guid collectionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Marketplace/privateStores/", false); + uri.AppendPath(privateStoreId, true); + uri.AppendPath("/collections/", false); + uri.AppendPath(collectionId, true); + uri.AppendPath("/offers", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(Guid privateStoreId, Guid collectionId) { var message = _pipeline.CreateMessage(); @@ -100,6 +113,19 @@ public Response List(Guid privateStoreId, Guid collectionId, } } + internal RequestUriBuilder CreateListByContextsRequestUri(Guid privateStoreId, Guid collectionId, CollectionOffersByAllContextsPayload payload) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Marketplace/privateStores/", false); + uri.AppendPath(privateStoreId, true); + uri.AppendPath("/collections/", false); + uri.AppendPath(collectionId, true); + uri.AppendPath("/mapOffersToContexts", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByContextsRequest(Guid privateStoreId, Guid collectionId, CollectionOffersByAllContextsPayload payload) { var message = _pipeline.CreateMessage(); @@ -172,6 +198,20 @@ public Response ListByContexts(Guid privateStoreI } } + internal RequestUriBuilder CreateGetRequestUri(Guid privateStoreId, Guid collectionId, string offerId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Marketplace/privateStores/", false); + uri.AppendPath(privateStoreId, true); + uri.AppendPath("/collections/", false); + uri.AppendPath(collectionId, true); + uri.AppendPath("/offers/", false); + uri.AppendPath(offerId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(Guid privateStoreId, Guid collectionId, string offerId) { var message = _pipeline.CreateMessage(); @@ -250,6 +290,20 @@ public Response Get(Guid privateStoreId, Guid collectionI } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(Guid privateStoreId, Guid collectionId, string offerId, PrivateStoreOfferData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Marketplace/privateStores/", false); + uri.AppendPath(privateStoreId, true); + uri.AppendPath("/collections/", false); + uri.AppendPath(collectionId, true); + uri.AppendPath("/offers/", false); + uri.AppendPath(offerId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(Guid privateStoreId, Guid collectionId, string offerId, PrivateStoreOfferData data) { var message = _pipeline.CreateMessage(); @@ -332,6 +386,20 @@ public Response CreateOrUpdate(Guid privateStoreId, Guid } } + internal RequestUriBuilder CreateDeleteRequestUri(Guid privateStoreId, Guid collectionId, string offerId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Marketplace/privateStores/", false); + uri.AppendPath(privateStoreId, true); + uri.AppendPath("/collections/", false); + uri.AppendPath(collectionId, true); + uri.AppendPath("/offers/", false); + uri.AppendPath(offerId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(Guid privateStoreId, Guid collectionId, string offerId) { var message = _pipeline.CreateMessage(); @@ -398,6 +466,20 @@ public Response Delete(Guid privateStoreId, Guid collectionId, string offerId, C } } + internal RequestUriBuilder CreatePostRequestUri(Guid privateStoreId, Guid collectionId, string offerId, PrivateStoreOperation? payload) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Marketplace/privateStores/", false); + uri.AppendPath(privateStoreId, true); + uri.AppendPath("/collections/", false); + uri.AppendPath(collectionId, true); + uri.AppendPath("/offers/", false); + uri.AppendPath(offerId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreatePostRequest(Guid privateStoreId, Guid collectionId, string offerId, PrivateStoreOperation? payload) { var message = _pipeline.CreateMessage(); @@ -471,6 +553,21 @@ public Response Post(Guid privateStoreId, Guid collectionId, string offerId, Pri } } + internal RequestUriBuilder CreateUpsertOfferWithMultiContextRequestUri(Guid privateStoreId, Guid collectionId, string offerId, MultiContextAndPlansContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Marketplace/privateStores/", false); + uri.AppendPath(privateStoreId, true); + uri.AppendPath("/collections/", false); + uri.AppendPath(collectionId, true); + uri.AppendPath("/offers/", false); + uri.AppendPath(offerId, true); + uri.AppendPath("/upsertOfferWithMultiContext", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpsertOfferWithMultiContextRequest(Guid privateStoreId, Guid collectionId, string offerId, MultiContextAndPlansContent content) { var message = _pipeline.CreateMessage(); @@ -555,6 +652,14 @@ public Response UpsertOfferWithMultiContext(Guid privateS } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, Guid privateStoreId, Guid collectionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, Guid privateStoreId, Guid collectionId) { var message = _pipeline.CreateMessage(); @@ -621,6 +726,14 @@ public Response ListNextPage(string nextLink, Guid privateSto } } + internal RequestUriBuilder CreateListByContextsNextPageRequestUri(string nextLink, Guid privateStoreId, Guid collectionId, CollectionOffersByAllContextsPayload payload) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByContextsNextPageRequest(string nextLink, Guid privateStoreId, Guid collectionId, CollectionOffersByAllContextsPayload payload) { var message = _pipeline.CreateMessage(); diff --git a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/RestOperations/PrivateStoreCollectionRestOperations.cs b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/RestOperations/PrivateStoreCollectionRestOperations.cs index ba4599b1b54d..754f2f855262 100644 --- a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/RestOperations/PrivateStoreCollectionRestOperations.cs +++ b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/RestOperations/PrivateStoreCollectionRestOperations.cs @@ -37,6 +37,17 @@ public PrivateStoreCollectionRestOperations(HttpPipeline pipeline, string applic _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(Guid privateStoreId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Marketplace/privateStores/", false); + uri.AppendPath(privateStoreId, true); + uri.AppendPath("/collections", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(Guid privateStoreId) { var message = _pipeline.CreateMessage(); @@ -96,6 +107,18 @@ public Response List(Guid privateStoreId, CancellationToken can } } + internal RequestUriBuilder CreateGetRequestUri(Guid privateStoreId, Guid collectionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Marketplace/privateStores/", false); + uri.AppendPath(privateStoreId, true); + uri.AppendPath("/collections/", false); + uri.AppendPath(collectionId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(Guid privateStoreId, Guid collectionId) { var message = _pipeline.CreateMessage(); @@ -162,6 +185,18 @@ public Response Get(Guid privateStoreId, Guid co } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(Guid privateStoreId, Guid collectionId, PrivateStoreCollectionInfoData info) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Marketplace/privateStores/", false); + uri.AppendPath(privateStoreId, true); + uri.AppendPath("/collections/", false); + uri.AppendPath(collectionId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(Guid privateStoreId, Guid collectionId, PrivateStoreCollectionInfoData info) { var message = _pipeline.CreateMessage(); @@ -236,6 +271,18 @@ public Response CreateOrUpdate(Guid privateStore } } + internal RequestUriBuilder CreateDeleteRequestUri(Guid privateStoreId, Guid collectionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Marketplace/privateStores/", false); + uri.AppendPath(privateStoreId, true); + uri.AppendPath("/collections/", false); + uri.AppendPath(collectionId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(Guid privateStoreId, Guid collectionId) { var message = _pipeline.CreateMessage(); @@ -290,6 +337,18 @@ public Response Delete(Guid privateStoreId, Guid collectionId, CancellationToken } } + internal RequestUriBuilder CreatePostRequestUri(Guid privateStoreId, Guid collectionId, PrivateStoreOperation? payload) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Marketplace/privateStores/", false); + uri.AppendPath(privateStoreId, true); + uri.AppendPath("/collections/", false); + uri.AppendPath(collectionId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreatePostRequest(Guid privateStoreId, Guid collectionId, PrivateStoreOperation? payload) { var message = _pipeline.CreateMessage(); @@ -351,6 +410,19 @@ public Response Post(Guid privateStoreId, Guid collectionId, PrivateStoreOperati } } + internal RequestUriBuilder CreateTransferOffersRequestUri(Guid privateStoreId, Guid collectionId, TransferOffersContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Marketplace/privateStores/", false); + uri.AppendPath(privateStoreId, true); + uri.AppendPath("/collections/", false); + uri.AppendPath(collectionId, true); + uri.AppendPath("/transferOffers", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateTransferOffersRequest(Guid privateStoreId, Guid collectionId, TransferOffersContent content) { var message = _pipeline.CreateMessage(); @@ -423,6 +495,19 @@ public Response TransferOffers(Guid privateStoreId, Guid c } } + internal RequestUriBuilder CreateApproveAllItemsRequestUri(Guid privateStoreId, Guid collectionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Marketplace/privateStores/", false); + uri.AppendPath(privateStoreId, true); + uri.AppendPath("/collections/", false); + uri.AppendPath(collectionId, true); + uri.AppendPath("/approveAllItems", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateApproveAllItemsRequest(Guid privateStoreId, Guid collectionId) { var message = _pipeline.CreateMessage(); @@ -486,6 +571,19 @@ public Response ApproveAllItems(Guid privateStor } } + internal RequestUriBuilder CreateDisableApproveAllItemsRequestUri(Guid privateStoreId, Guid collectionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Marketplace/privateStores/", false); + uri.AppendPath(privateStoreId, true); + uri.AppendPath("/collections/", false); + uri.AppendPath(collectionId, true); + uri.AppendPath("/disableApproveAllItems", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDisableApproveAllItemsRequest(Guid privateStoreId, Guid collectionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/RestOperations/PrivateStoreRestOperations.cs b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/RestOperations/PrivateStoreRestOperations.cs index 928a383d2ae5..89bc324ec614 100644 --- a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/RestOperations/PrivateStoreRestOperations.cs +++ b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/RestOperations/PrivateStoreRestOperations.cs @@ -37,6 +37,19 @@ public PrivateStoreRestOperations(HttpPipeline pipeline, string applicationId, U _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string useCache) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Marketplace/privateStores", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (useCache != null) + { + uri.AppendQuery("use-cache", useCache, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string useCache) { var message = _pipeline.CreateMessage(); @@ -98,6 +111,16 @@ public Response List(string useCache = null, CancellationToken } } + internal RequestUriBuilder CreateGetRequestUri(Guid privateStoreId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Marketplace/privateStores/", false); + uri.AppendPath(privateStoreId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(Guid privateStoreId) { var message = _pipeline.CreateMessage(); @@ -160,6 +183,16 @@ public Response Get(Guid privateStoreId, CancellationToken can } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(Guid privateStoreId, PrivateStoreData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Marketplace/privateStores/", false); + uri.AppendPath(privateStoreId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(Guid privateStoreId, PrivateStoreData data) { var message = _pipeline.CreateMessage(); @@ -220,6 +253,16 @@ public Response CreateOrUpdate(Guid privateStoreId, PrivateStoreData data, Cance } } + internal RequestUriBuilder CreateDeleteRequestUri(Guid privateStoreId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Marketplace/privateStores/", false); + uri.AppendPath(privateStoreId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(Guid privateStoreId) { var message = _pipeline.CreateMessage(); @@ -270,6 +313,17 @@ public Response Delete(Guid privateStoreId, CancellationToken cancellationToken } } + internal RequestUriBuilder CreateAnyExistingOffersInTheCollectionsRequestUri(Guid privateStoreId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Marketplace/privateStores/", false); + uri.AppendPath(privateStoreId, true); + uri.AppendPath("/anyExistingOffersInTheCollections", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateAnyExistingOffersInTheCollectionsRequest(Guid privateStoreId) { var message = _pipeline.CreateMessage(); @@ -329,6 +383,17 @@ public Response AnyExistingOffersInTheC } } + internal RequestUriBuilder CreateQueryOffersRequestUri(Guid privateStoreId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Marketplace/privateStores/", false); + uri.AppendPath(privateStoreId, true); + uri.AppendPath("/queryOffers", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateQueryOffersRequest(Guid privateStoreId) { var message = _pipeline.CreateMessage(); @@ -388,6 +453,17 @@ public Response QueryOffers(Guid privateStoreId, CancellationToken } } + internal RequestUriBuilder CreateQueryUserOffersRequestUri(Guid privateStoreId, QueryUserOffersContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Marketplace/privateStores/", false); + uri.AppendPath(privateStoreId, true); + uri.AppendPath("/queryUserOffers", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateQueryUserOffersRequest(Guid privateStoreId, QueryUserOffersContent content) { var message = _pipeline.CreateMessage(); @@ -456,6 +532,17 @@ public Response QueryUserOffers(Guid privateStoreId, QueryUserOffer } } + internal RequestUriBuilder CreateBillingAccountsRequestUri(Guid privateStoreId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Marketplace/privateStores/", false); + uri.AppendPath(privateStoreId, true); + uri.AppendPath("/billingAccounts", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateBillingAccountsRequest(Guid privateStoreId) { var message = _pipeline.CreateMessage(); @@ -515,6 +602,17 @@ public Response BillingAccounts(Guid privateS } } + internal RequestUriBuilder CreateCollectionsToSubscriptionsMappingRequestUri(Guid privateStoreId, CollectionsToSubscriptionsMappingContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Marketplace/privateStores/", false); + uri.AppendPath(privateStoreId, true); + uri.AppendPath("/collectionsToSubscriptionsMapping", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCollectionsToSubscriptionsMappingRequest(Guid privateStoreId, CollectionsToSubscriptionsMappingContent content) { var message = _pipeline.CreateMessage(); @@ -583,6 +681,17 @@ public Response CollectionsToSubscripti } } + internal RequestUriBuilder CreateQueryApprovedPlansRequestUri(Guid privateStoreId, QueryApprovedPlansContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Marketplace/privateStores/", false); + uri.AppendPath(privateStoreId, true); + uri.AppendPath("/queryApprovedPlans", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateQueryApprovedPlansRequest(Guid privateStoreId, QueryApprovedPlansContent content) { var message = _pipeline.CreateMessage(); @@ -651,6 +760,17 @@ public Response QueryApprovedPlans(Guid privateStoreId } } + internal RequestUriBuilder CreateBulkCollectionsActionRequestUri(Guid privateStoreId, BulkCollectionsActionContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Marketplace/privateStores/", false); + uri.AppendPath(privateStoreId, true); + uri.AppendPath("/bulkCollectionsAction", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateBulkCollectionsActionRequest(Guid privateStoreId, BulkCollectionsActionContent content) { var message = _pipeline.CreateMessage(); @@ -719,6 +839,17 @@ public Response BulkCollectionsAction(Guid privateS } } + internal RequestUriBuilder CreateGetApprovalRequestsListRequestUri(Guid privateStoreId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Marketplace/privateStores/", false); + uri.AppendPath(privateStoreId, true); + uri.AppendPath("/requestApprovals", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetApprovalRequestsListRequest(Guid privateStoreId) { var message = _pipeline.CreateMessage(); @@ -778,6 +909,18 @@ public Response GetApprovalRequestsList(Guid privateStoreI } } + internal RequestUriBuilder CreateGetRequestApprovalRequestUri(Guid privateStoreId, string requestApprovalId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Marketplace/privateStores/", false); + uri.AppendPath(privateStoreId, true); + uri.AppendPath("/requestApprovals/", false); + uri.AppendPath(requestApprovalId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequestApprovalRequest(Guid privateStoreId, string requestApprovalId) { var message = _pipeline.CreateMessage(); @@ -852,6 +995,18 @@ public Response GetRequestApproval(Guid privateS } } + internal RequestUriBuilder CreateCreateApprovalRequestRequestUri(Guid privateStoreId, string requestApprovalId, MarketplaceApprovalRequestData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Marketplace/privateStores/", false); + uri.AppendPath(privateStoreId, true); + uri.AppendPath("/requestApprovals/", false); + uri.AppendPath(requestApprovalId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateApprovalRequestRequest(Guid privateStoreId, string requestApprovalId, MarketplaceApprovalRequestData data) { var message = _pipeline.CreateMessage(); @@ -930,6 +1085,19 @@ public Response CreateApprovalRequest(Guid priva } } + internal RequestUriBuilder CreateQueryRequestApprovalRequestUri(Guid privateStoreId, string requestApprovalId, QueryApprovalRequestContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Marketplace/privateStores/", false); + uri.AppendPath(privateStoreId, true); + uri.AppendPath("/requestApprovals/", false); + uri.AppendPath(requestApprovalId, true); + uri.AppendPath("/query", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateQueryRequestApprovalRequest(Guid privateStoreId, string requestApprovalId, QueryApprovalRequestContent content) { var message = _pipeline.CreateMessage(); @@ -1010,6 +1178,17 @@ public Response QueryRequestApproval(Guid privateSto } } + internal RequestUriBuilder CreateAdminRequestApprovalsListRequestUri(Guid privateStoreId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Marketplace/privateStores/", false); + uri.AppendPath(privateStoreId, true); + uri.AppendPath("/adminRequestApprovals", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateAdminRequestApprovalsListRequest(Guid privateStoreId) { var message = _pipeline.CreateMessage(); @@ -1069,6 +1248,19 @@ public Response AdminRequestApprovalsList(G } } + internal RequestUriBuilder CreateGetAdminRequestApprovalRequestUri(Guid privateStoreId, string adminRequestApprovalId, string publisherId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Marketplace/privateStores/", false); + uri.AppendPath(privateStoreId, true); + uri.AppendPath("/adminRequestApprovals/", false); + uri.AppendPath(adminRequestApprovalId, true); + uri.AppendQuery("api-version", _apiVersion, true); + uri.AppendQuery("publisherId", publisherId, true); + return uri; + } + internal HttpMessage CreateGetAdminRequestApprovalRequest(Guid privateStoreId, string adminRequestApprovalId, string publisherId) { var message = _pipeline.CreateMessage(); @@ -1148,6 +1340,18 @@ public Response GetAdminRequestApproval(Gui } } + internal RequestUriBuilder CreateUpdateAdminRequestApprovalRequestUri(Guid privateStoreId, string adminRequestApprovalId, MarketplaceAdminApprovalRequestData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Marketplace/privateStores/", false); + uri.AppendPath(privateStoreId, true); + uri.AppendPath("/adminRequestApprovals/", false); + uri.AppendPath(adminRequestApprovalId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateAdminRequestApprovalRequest(Guid privateStoreId, string adminRequestApprovalId, MarketplaceAdminApprovalRequestData data) { var message = _pipeline.CreateMessage(); @@ -1226,6 +1430,17 @@ public Response UpdateAdminRequestApproval( } } + internal RequestUriBuilder CreateQueryNotificationsStateRequestUri(Guid privateStoreId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Marketplace/privateStores/", false); + uri.AppendPath(privateStoreId, true); + uri.AppendPath("/queryNotificationsState", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateQueryNotificationsStateRequest(Guid privateStoreId) { var message = _pipeline.CreateMessage(); @@ -1285,6 +1500,19 @@ public Response QueryNotificationsState(Guid pri } } + internal RequestUriBuilder CreateAcknowledgeOfferNotificationRequestUri(Guid privateStoreId, string offerId, AcknowledgeOfferNotificationContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Marketplace/privateStores/", false); + uri.AppendPath(privateStoreId, true); + uri.AppendPath("/offers/", false); + uri.AppendPath(offerId, true); + uri.AppendPath("/acknowledgeNotification", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateAcknowledgeOfferNotificationRequest(Guid privateStoreId, string offerId, AcknowledgeOfferNotificationContent content) { var message = _pipeline.CreateMessage(); @@ -1355,6 +1583,19 @@ public Response AcknowledgeOfferNotification(Guid privateStoreId, string offerId } } + internal RequestUriBuilder CreateWithdrawPlanRequestUri(Guid privateStoreId, string requestApprovalId, WithdrawPlanContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Marketplace/privateStores/", false); + uri.AppendPath(privateStoreId, true); + uri.AppendPath("/requestApprovals/", false); + uri.AppendPath(requestApprovalId, true); + uri.AppendPath("/withdrawPlan", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateWithdrawPlanRequest(Guid privateStoreId, string requestApprovalId, WithdrawPlanContent content) { var message = _pipeline.CreateMessage(); @@ -1425,6 +1666,17 @@ public Response WithdrawPlan(Guid privateStoreId, string requestApprovalId, With } } + internal RequestUriBuilder CreateFetchAllSubscriptionsInTenantRequestUri(Guid privateStoreId, string nextPageToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Marketplace/privateStores/", false); + uri.AppendPath(privateStoreId, true); + uri.AppendPath("/fetchAllSubscriptionsInTenant", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateFetchAllSubscriptionsInTenantRequest(Guid privateStoreId, string nextPageToken) { var message = _pipeline.CreateMessage(); @@ -1490,6 +1742,17 @@ public Response FetchAllSubscriptionsInTenant(Guid privat } } + internal RequestUriBuilder CreateListNewPlansNotificationsRequestUri(Guid privateStoreId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Marketplace/privateStores/", false); + uri.AppendPath(privateStoreId, true); + uri.AppendPath("/listNewPlansNotifications", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListNewPlansNotificationsRequest(Guid privateStoreId) { var message = _pipeline.CreateMessage(); @@ -1549,6 +1812,17 @@ public Response ListNewPlansNotifications(Guid pr } } + internal RequestUriBuilder CreateListStopSellOffersPlansNotificationsRequestUri(Guid privateStoreId, StopSellSubscriptions stopSellSubscriptions) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Marketplace/privateStores/", false); + uri.AppendPath(privateStoreId, true); + uri.AppendPath("/listStopSellOffersPlansNotifications", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListStopSellOffersPlansNotificationsRequest(Guid privateStoreId, StopSellSubscriptions stopSellSubscriptions) { var message = _pipeline.CreateMessage(); @@ -1617,6 +1891,17 @@ public Response ListStopSellOffersPlansNot } } + internal RequestUriBuilder CreateListSubscriptionsContextRequestUri(Guid privateStoreId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Marketplace/privateStores/", false); + uri.AppendPath(privateStoreId, true); + uri.AppendPath("/listSubscriptionsContext", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListSubscriptionsContextRequest(Guid privateStoreId) { var message = _pipeline.CreateMessage(); @@ -1676,6 +1961,14 @@ public Response ListSubscriptionsContext(Guid privateS } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string useCache) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string useCache) { var message = _pipeline.CreateMessage(); diff --git a/sdk/marketplaceordering/Azure.ResourceManager.MarketplaceOrdering/src/Generated/LongRunningOperation/MarketplaceOrderingArmOperationOfT.cs b/sdk/marketplaceordering/Azure.ResourceManager.MarketplaceOrdering/src/Generated/LongRunningOperation/MarketplaceOrderingArmOperationOfT.cs index 5eb02f92e088..903b81a39c88 100644 --- a/sdk/marketplaceordering/Azure.ResourceManager.MarketplaceOrdering/src/Generated/LongRunningOperation/MarketplaceOrderingArmOperationOfT.cs +++ b/sdk/marketplaceordering/Azure.ResourceManager.MarketplaceOrdering/src/Generated/LongRunningOperation/MarketplaceOrderingArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class MarketplaceOrderingArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of MarketplaceOrderingArmOperation for mocking. protected MarketplaceOrderingArmOperation() { } - internal MarketplaceOrderingArmOperation(Response response) + internal MarketplaceOrderingArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal MarketplaceOrderingArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "MarketplaceOrderingArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal MarketplaceOrderingArmOperation(IOperationSource source, ClientDiagn public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/marketplaceordering/Azure.ResourceManager.MarketplaceOrdering/src/Generated/MarketplaceAgreementTermCollection.cs b/sdk/marketplaceordering/Azure.ResourceManager.MarketplaceOrdering/src/Generated/MarketplaceAgreementTermCollection.cs index 769e04de7d0f..3da1bfb37c8d 100644 --- a/sdk/marketplaceordering/Azure.ResourceManager.MarketplaceOrdering/src/Generated/MarketplaceAgreementTermCollection.cs +++ b/sdk/marketplaceordering/Azure.ResourceManager.MarketplaceOrdering/src/Generated/MarketplaceAgreementTermCollection.cs @@ -94,7 +94,9 @@ public virtual async Task> Create try { var response = await _marketplaceAgreementTermMarketplaceAgreementsRestClient.CreateAsync(Id.SubscriptionId, offerType, publisherId, offerId, planId, data, cancellationToken).ConfigureAwait(false); - var operation = new MarketplaceOrderingArmOperation(Response.FromValue(new MarketplaceAgreementTermResource(Client, response), response.GetRawResponse())); + var uri = _marketplaceAgreementTermMarketplaceAgreementsRestClient.CreateCreateRequestUri(Id.SubscriptionId, offerType, publisherId, offerId, planId, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MarketplaceOrderingArmOperation(Response.FromValue(new MarketplaceAgreementTermResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -148,7 +150,9 @@ public virtual ArmOperation CreateOrUpdate(Wai try { var response = _marketplaceAgreementTermMarketplaceAgreementsRestClient.Create(Id.SubscriptionId, offerType, publisherId, offerId, planId, data, cancellationToken); - var operation = new MarketplaceOrderingArmOperation(Response.FromValue(new MarketplaceAgreementTermResource(Client, response), response.GetRawResponse())); + var uri = _marketplaceAgreementTermMarketplaceAgreementsRestClient.CreateCreateRequestUri(Id.SubscriptionId, offerType, publisherId, offerId, planId, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MarketplaceOrderingArmOperation(Response.FromValue(new MarketplaceAgreementTermResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/marketplaceordering/Azure.ResourceManager.MarketplaceOrdering/src/Generated/MarketplaceAgreementTermResource.cs b/sdk/marketplaceordering/Azure.ResourceManager.MarketplaceOrdering/src/Generated/MarketplaceAgreementTermResource.cs index 9ca8c3c7071e..7c89b954b363 100644 --- a/sdk/marketplaceordering/Azure.ResourceManager.MarketplaceOrdering/src/Generated/MarketplaceAgreementTermResource.cs +++ b/sdk/marketplaceordering/Azure.ResourceManager.MarketplaceOrdering/src/Generated/MarketplaceAgreementTermResource.cs @@ -207,7 +207,9 @@ public virtual async Task> Update try { var response = await _marketplaceAgreementTermMarketplaceAgreementsRestClient.CreateAsync(Id.SubscriptionId, Id.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new MarketplaceOrderingArmOperation(Response.FromValue(new MarketplaceAgreementTermResource(Client, response), response.GetRawResponse())); + var uri = _marketplaceAgreementTermMarketplaceAgreementsRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MarketplaceOrderingArmOperation(Response.FromValue(new MarketplaceAgreementTermResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -253,7 +255,9 @@ public virtual ArmOperation Update(WaitUntil w try { var response = _marketplaceAgreementTermMarketplaceAgreementsRestClient.Create(Id.SubscriptionId, Id.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, data, cancellationToken); - var operation = new MarketplaceOrderingArmOperation(Response.FromValue(new MarketplaceAgreementTermResource(Client, response), response.GetRawResponse())); + var uri = _marketplaceAgreementTermMarketplaceAgreementsRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MarketplaceOrderingArmOperation(Response.FromValue(new MarketplaceAgreementTermResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/marketplaceordering/Azure.ResourceManager.MarketplaceOrdering/src/Generated/Models/MarketplaceAgreementResource.Serialization.cs b/sdk/marketplaceordering/Azure.ResourceManager.MarketplaceOrdering/src/Generated/Models/MarketplaceAgreementResource.Serialization.cs new file mode 100644 index 000000000000..792dd6796a61 --- /dev/null +++ b/sdk/marketplaceordering/Azure.ResourceManager.MarketplaceOrdering/src/Generated/Models/MarketplaceAgreementResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.MarketplaceOrdering +{ + public partial class MarketplaceAgreementResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MarketplaceAgreementTermData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MarketplaceAgreementTermData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/marketplaceordering/Azure.ResourceManager.MarketplaceOrdering/src/Generated/Models/MarketplaceAgreementTermResource.Serialization.cs b/sdk/marketplaceordering/Azure.ResourceManager.MarketplaceOrdering/src/Generated/Models/MarketplaceAgreementTermResource.Serialization.cs new file mode 100644 index 000000000000..a0e67d7a73ea --- /dev/null +++ b/sdk/marketplaceordering/Azure.ResourceManager.MarketplaceOrdering/src/Generated/Models/MarketplaceAgreementTermResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.MarketplaceOrdering +{ + public partial class MarketplaceAgreementTermResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MarketplaceAgreementTermData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MarketplaceAgreementTermData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/marketplaceordering/Azure.ResourceManager.MarketplaceOrdering/src/Generated/RestOperations/MarketplaceAgreementsRestOperations.cs b/sdk/marketplaceordering/Azure.ResourceManager.MarketplaceOrdering/src/Generated/RestOperations/MarketplaceAgreementsRestOperations.cs index 3d4032e314a6..60667ff0d43e 100644 --- a/sdk/marketplaceordering/Azure.ResourceManager.MarketplaceOrdering/src/Generated/RestOperations/MarketplaceAgreementsRestOperations.cs +++ b/sdk/marketplaceordering/Azure.ResourceManager.MarketplaceOrdering/src/Generated/RestOperations/MarketplaceAgreementsRestOperations.cs @@ -38,6 +38,25 @@ public MarketplaceAgreementsRestOperations(HttpPipeline pipeline, string applica _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, AgreementOfferType offerType, string publisherId, string offerId, string planId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.MarketplaceOrdering/offerTypes/", false); + uri.AppendPath(offerType.ToString(), true); + uri.AppendPath("/publishers/", false); + uri.AppendPath(publisherId, true); + uri.AppendPath("/offers/", false); + uri.AppendPath(offerId, true); + uri.AppendPath("/plans/", false); + uri.AppendPath(planId, true); + uri.AppendPath("/agreements/current", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, AgreementOfferType offerType, string publisherId, string offerId, string planId) { var message = _pipeline.CreateMessage(); @@ -131,6 +150,25 @@ public Response Get(string subscriptionId, Agreeme } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, AgreementOfferType offerType, string publisherId, string offerId, string planId, MarketplaceAgreementTermData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.MarketplaceOrdering/offerTypes/", false); + uri.AppendPath(offerType.ToString(), true); + uri.AppendPath("/publishers/", false); + uri.AppendPath(publisherId, true); + uri.AppendPath("/offers/", false); + uri.AppendPath(offerId, true); + uri.AppendPath("/plans/", false); + uri.AppendPath(planId, true); + uri.AppendPath("/agreements/current", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, AgreementOfferType offerType, string publisherId, string offerId, string planId, MarketplaceAgreementTermData data) { var message = _pipeline.CreateMessage(); @@ -228,6 +266,23 @@ public Response Create(string subscriptionId, Agre } } + internal RequestUriBuilder CreateSignRequestUri(string subscriptionId, string publisherId, string offerId, string planId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.MarketplaceOrdering/agreements/", false); + uri.AppendPath(publisherId, true); + uri.AppendPath("/offers/", false); + uri.AppendPath(offerId, true); + uri.AppendPath("/plans/", false); + uri.AppendPath(planId, true); + uri.AppendPath("/sign", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateSignRequest(string subscriptionId, string publisherId, string offerId, string planId) { var message = _pipeline.CreateMessage(); @@ -313,6 +368,23 @@ public Response Sign(string subscriptionId, string } } + internal RequestUriBuilder CreateCancelRequestUri(string subscriptionId, string publisherId, string offerId, string planId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.MarketplaceOrdering/agreements/", false); + uri.AppendPath(publisherId, true); + uri.AppendPath("/offers/", false); + uri.AppendPath(offerId, true); + uri.AppendPath("/plans/", false); + uri.AppendPath(planId, true); + uri.AppendPath("/cancel", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCancelRequest(string subscriptionId, string publisherId, string offerId, string planId) { var message = _pipeline.CreateMessage(); @@ -398,6 +470,22 @@ public Response Cancel(string subscriptionId, stri } } + internal RequestUriBuilder CreateGetAgreementRequestUri(string subscriptionId, string publisherId, string offerId, string planId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.MarketplaceOrdering/agreements/", false); + uri.AppendPath(publisherId, true); + uri.AppendPath("/offers/", false); + uri.AppendPath(offerId, true); + uri.AppendPath("/plans/", false); + uri.AppendPath(planId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetAgreementRequest(string subscriptionId, string publisherId, string offerId, string planId) { var message = _pipeline.CreateMessage(); @@ -486,6 +574,17 @@ public Response GetAgreement(string subscriptionId } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.MarketplaceOrdering/agreements", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/ContentKeyPolicyCollection.cs b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/ContentKeyPolicyCollection.cs index 49d3caf842c6..6018c5cb7fe2 100644 --- a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/ContentKeyPolicyCollection.cs +++ b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/ContentKeyPolicyCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> CreateOrUpdate try { var response = await _contentKeyPolicyRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, contentKeyPolicyName, data, cancellationToken).ConfigureAwait(false); - var operation = new MediaArmOperation(Response.FromValue(new ContentKeyPolicyResource(Client, response), response.GetRawResponse())); + var uri = _contentKeyPolicyRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, contentKeyPolicyName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MediaArmOperation(Response.FromValue(new ContentKeyPolicyResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil w try { var response = _contentKeyPolicyRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, contentKeyPolicyName, data, cancellationToken); - var operation = new MediaArmOperation(Response.FromValue(new ContentKeyPolicyResource(Client, response), response.GetRawResponse())); + var uri = _contentKeyPolicyRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, contentKeyPolicyName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MediaArmOperation(Response.FromValue(new ContentKeyPolicyResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/ContentKeyPolicyResource.cs b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/ContentKeyPolicyResource.cs index 9412a346868c..4e73ff12e286 100644 --- a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/ContentKeyPolicyResource.cs +++ b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/ContentKeyPolicyResource.cs @@ -201,7 +201,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _contentKeyPolicyRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new MediaArmOperation(response); + var uri = _contentKeyPolicyRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MediaArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -243,7 +245,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _contentKeyPolicyRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new MediaArmOperation(response); + var uri = _contentKeyPolicyRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MediaArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/LongRunningOperation/MediaArmOperation.cs b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/LongRunningOperation/MediaArmOperation.cs index d3e752cecb91..9003d0d98a12 100644 --- a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/LongRunningOperation/MediaArmOperation.cs +++ b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/LongRunningOperation/MediaArmOperation.cs @@ -20,21 +20,24 @@ internal class MediaArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of MediaArmOperation for mocking. protected MediaArmOperation() { } - internal MediaArmOperation(Response response) + internal MediaArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal MediaArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "MediaArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal MediaArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pip public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/LongRunningOperation/MediaArmOperationOfT.cs b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/LongRunningOperation/MediaArmOperationOfT.cs index c1bdbfca011d..702f76e7e380 100644 --- a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/LongRunningOperation/MediaArmOperationOfT.cs +++ b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/LongRunningOperation/MediaArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class MediaArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of MediaArmOperation for mocking. protected MediaArmOperation() { } - internal MediaArmOperation(Response response) + internal MediaArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal MediaArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "MediaArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal MediaArmOperation(IOperationSource source, ClientDiagnostics clientD public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/MediaAssetCollection.cs b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/MediaAssetCollection.cs index 3df1974a99a6..05b581233fff 100644 --- a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/MediaAssetCollection.cs +++ b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/MediaAssetCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> CreateOrUpdateAsync( try { var response = await _mediaAssetAssetsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, assetName, data, cancellationToken).ConfigureAwait(false); - var operation = new MediaArmOperation(Response.FromValue(new MediaAssetResource(Client, response), response.GetRawResponse())); + var uri = _mediaAssetAssetsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, assetName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MediaArmOperation(Response.FromValue(new MediaAssetResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUnt try { var response = _mediaAssetAssetsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, assetName, data, cancellationToken); - var operation = new MediaArmOperation(Response.FromValue(new MediaAssetResource(Client, response), response.GetRawResponse())); + var uri = _mediaAssetAssetsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, assetName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MediaArmOperation(Response.FromValue(new MediaAssetResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/MediaAssetFilterCollection.cs b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/MediaAssetFilterCollection.cs index 2be711977301..62ce186a0675 100644 --- a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/MediaAssetFilterCollection.cs +++ b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/MediaAssetFilterCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> CreateOrUpdate try { var response = await _mediaAssetFilterAssetFiltersRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, filterName, data, cancellationToken).ConfigureAwait(false); - var operation = new MediaArmOperation(Response.FromValue(new MediaAssetFilterResource(Client, response), response.GetRawResponse())); + var uri = _mediaAssetFilterAssetFiltersRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, filterName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MediaArmOperation(Response.FromValue(new MediaAssetFilterResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil w try { var response = _mediaAssetFilterAssetFiltersRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, filterName, data, cancellationToken); - var operation = new MediaArmOperation(Response.FromValue(new MediaAssetFilterResource(Client, response), response.GetRawResponse())); + var uri = _mediaAssetFilterAssetFiltersRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, filterName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MediaArmOperation(Response.FromValue(new MediaAssetFilterResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/MediaAssetFilterResource.cs b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/MediaAssetFilterResource.cs index b8ef7731cae0..a39bc6d2b676 100644 --- a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/MediaAssetFilterResource.cs +++ b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/MediaAssetFilterResource.cs @@ -201,7 +201,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _mediaAssetFilterAssetFiltersRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new MediaArmOperation(response); + var uri = _mediaAssetFilterAssetFiltersRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MediaArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -243,7 +245,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _mediaAssetFilterAssetFiltersRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new MediaArmOperation(response); + var uri = _mediaAssetFilterAssetFiltersRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MediaArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/MediaAssetResource.cs b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/MediaAssetResource.cs index 3a5829ba2fc0..a14099a60466 100644 --- a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/MediaAssetResource.cs +++ b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/MediaAssetResource.cs @@ -340,7 +340,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _mediaAssetAssetsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new MediaArmOperation(response); + var uri = _mediaAssetAssetsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MediaArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -382,7 +384,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _mediaAssetAssetsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new MediaArmOperation(response); + var uri = _mediaAssetAssetsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MediaArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/MediaJobCollection.cs b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/MediaJobCollection.cs index 054ce8ba60c4..5c72d59c1309 100644 --- a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/MediaJobCollection.cs +++ b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/MediaJobCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> CreateOrUpdateAsync(Wa try { var response = await _mediaJobJobsRestClient.CreateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, jobName, data, cancellationToken).ConfigureAwait(false); - var operation = new MediaArmOperation(Response.FromValue(new MediaJobResource(Client, response), response.GetRawResponse())); + var uri = _mediaJobJobsRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, jobName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MediaArmOperation(Response.FromValue(new MediaJobResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil try { var response = _mediaJobJobsRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, jobName, data, cancellationToken); - var operation = new MediaArmOperation(Response.FromValue(new MediaJobResource(Client, response), response.GetRawResponse())); + var uri = _mediaJobJobsRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, jobName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MediaArmOperation(Response.FromValue(new MediaJobResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/MediaJobResource.cs b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/MediaJobResource.cs index 78a41b55d1ab..a8c0cb9f3ed4 100644 --- a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/MediaJobResource.cs +++ b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/MediaJobResource.cs @@ -201,7 +201,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _mediaJobJobsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new MediaArmOperation(response); + var uri = _mediaJobJobsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MediaArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -243,7 +245,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _mediaJobJobsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new MediaArmOperation(response); + var uri = _mediaJobJobsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MediaArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/MediaServicesAccountFilterCollection.cs b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/MediaServicesAccountFilterCollection.cs index 250b5d24247c..c75265f9a3e8 100644 --- a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/MediaServicesAccountFilterCollection.cs +++ b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/MediaServicesAccountFilterCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> Crea try { var response = await _mediaServicesAccountFilterAccountFiltersRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filterName, data, cancellationToken).ConfigureAwait(false); - var operation = new MediaArmOperation(Response.FromValue(new MediaServicesAccountFilterResource(Client, response), response.GetRawResponse())); + var uri = _mediaServicesAccountFilterAccountFiltersRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filterName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MediaArmOperation(Response.FromValue(new MediaServicesAccountFilterResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(W try { var response = _mediaServicesAccountFilterAccountFiltersRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filterName, data, cancellationToken); - var operation = new MediaArmOperation(Response.FromValue(new MediaServicesAccountFilterResource(Client, response), response.GetRawResponse())); + var uri = _mediaServicesAccountFilterAccountFiltersRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filterName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MediaArmOperation(Response.FromValue(new MediaServicesAccountFilterResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/MediaServicesAccountFilterResource.cs b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/MediaServicesAccountFilterResource.cs index b907d0b48b3a..07f08c454e93 100644 --- a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/MediaServicesAccountFilterResource.cs +++ b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/MediaServicesAccountFilterResource.cs @@ -200,7 +200,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _mediaServicesAccountFilterAccountFiltersRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new MediaArmOperation(response); + var uri = _mediaServicesAccountFilterAccountFiltersRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MediaArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -242,7 +244,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _mediaServicesAccountFilterAccountFiltersRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new MediaArmOperation(response); + var uri = _mediaServicesAccountFilterAccountFiltersRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MediaArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/MediaServicesAccountResource.cs b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/MediaServicesAccountResource.cs index 9668173abbd9..f1ce663fd0fc 100644 --- a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/MediaServicesAccountResource.cs +++ b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/MediaServicesAccountResource.cs @@ -892,7 +892,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _mediaServicesAccountMediaservicesRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new MediaArmOperation(response); + var uri = _mediaServicesAccountMediaservicesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MediaArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -934,7 +936,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _mediaServicesAccountMediaservicesRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); - var operation = new MediaArmOperation(response); + var uri = _mediaServicesAccountMediaservicesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MediaArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/MediaServicesPrivateEndpointConnectionCollection.cs b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/MediaServicesPrivateEndpointConnectionCollection.cs index 8d92b5e3839b..ef52d0dcc890 100644 --- a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/MediaServicesPrivateEndpointConnectionCollection.cs +++ b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/MediaServicesPrivateEndpointConnectionCollection.cs @@ -90,7 +90,9 @@ public virtual async Task(Response.FromValue(new MediaServicesPrivateEndpointConnectionResource(Client, response), response.GetRawResponse())); + var uri = _mediaServicesPrivateEndpointConnectionPrivateEndpointConnectionsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MediaArmOperation(Response.FromValue(new MediaServicesPrivateEndpointConnectionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation Crea try { var response = _mediaServicesPrivateEndpointConnectionPrivateEndpointConnectionsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data, cancellationToken); - var operation = new MediaArmOperation(Response.FromValue(new MediaServicesPrivateEndpointConnectionResource(Client, response), response.GetRawResponse())); + var uri = _mediaServicesPrivateEndpointConnectionPrivateEndpointConnectionsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MediaArmOperation(Response.FromValue(new MediaServicesPrivateEndpointConnectionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/MediaServicesPrivateEndpointConnectionResource.cs b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/MediaServicesPrivateEndpointConnectionResource.cs index 02cf6a832082..1da550d57fd7 100644 --- a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/MediaServicesPrivateEndpointConnectionResource.cs +++ b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/MediaServicesPrivateEndpointConnectionResource.cs @@ -200,7 +200,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _mediaServicesPrivateEndpointConnectionPrivateEndpointConnectionsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new MediaArmOperation(response); + var uri = _mediaServicesPrivateEndpointConnectionPrivateEndpointConnectionsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MediaArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -242,7 +244,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _mediaServicesPrivateEndpointConnectionPrivateEndpointConnectionsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new MediaArmOperation(response); + var uri = _mediaServicesPrivateEndpointConnectionPrivateEndpointConnectionsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MediaArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -288,7 +292,9 @@ public virtual async Task(Response.FromValue(new MediaServicesPrivateEndpointConnectionResource(Client, response), response.GetRawResponse())); + var uri = _mediaServicesPrivateEndpointConnectionPrivateEndpointConnectionsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MediaArmOperation(Response.FromValue(new MediaServicesPrivateEndpointConnectionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -334,7 +340,9 @@ public virtual ArmOperation Upda try { var response = _mediaServicesPrivateEndpointConnectionPrivateEndpointConnectionsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new MediaArmOperation(Response.FromValue(new MediaServicesPrivateEndpointConnectionResource(Client, response), response.GetRawResponse())); + var uri = _mediaServicesPrivateEndpointConnectionPrivateEndpointConnectionsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MediaArmOperation(Response.FromValue(new MediaServicesPrivateEndpointConnectionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/MediaTransformCollection.cs b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/MediaTransformCollection.cs index 6218d9a74da5..2dcfdca094c0 100644 --- a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/MediaTransformCollection.cs +++ b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/MediaTransformCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> CreateOrUpdateAs try { var response = await _mediaTransformTransformsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, transformName, data, cancellationToken).ConfigureAwait(false); - var operation = new MediaArmOperation(Response.FromValue(new MediaTransformResource(Client, response), response.GetRawResponse())); + var uri = _mediaTransformTransformsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, transformName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MediaArmOperation(Response.FromValue(new MediaTransformResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wai try { var response = _mediaTransformTransformsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, transformName, data, cancellationToken); - var operation = new MediaArmOperation(Response.FromValue(new MediaTransformResource(Client, response), response.GetRawResponse())); + var uri = _mediaTransformTransformsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, transformName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MediaArmOperation(Response.FromValue(new MediaTransformResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/MediaTransformResource.cs b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/MediaTransformResource.cs index c108866cfb64..2fa02a7f9e65 100644 --- a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/MediaTransformResource.cs +++ b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/MediaTransformResource.cs @@ -269,7 +269,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _mediaTransformTransformsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new MediaArmOperation(response); + var uri = _mediaTransformTransformsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MediaArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -311,7 +313,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _mediaTransformTransformsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new MediaArmOperation(response); + var uri = _mediaTransformTransformsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MediaArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/ContentKeyPolicyResource.Serialization.cs b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/ContentKeyPolicyResource.Serialization.cs new file mode 100644 index 000000000000..0841ff805a74 --- /dev/null +++ b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/ContentKeyPolicyResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Media +{ + public partial class ContentKeyPolicyResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ContentKeyPolicyData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ContentKeyPolicyData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/MediaAssetFilterResource.Serialization.cs b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/MediaAssetFilterResource.Serialization.cs new file mode 100644 index 000000000000..34993dbf92d5 --- /dev/null +++ b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/MediaAssetFilterResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Media +{ + public partial class MediaAssetFilterResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MediaAssetFilterData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MediaAssetFilterData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/MediaAssetResource.Serialization.cs b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/MediaAssetResource.Serialization.cs new file mode 100644 index 000000000000..7050b20826c2 --- /dev/null +++ b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/MediaAssetResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Media +{ + public partial class MediaAssetResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MediaAssetData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MediaAssetData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/MediaAssetTrackResource.Serialization.cs b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/MediaAssetTrackResource.Serialization.cs new file mode 100644 index 000000000000..863adf28318c --- /dev/null +++ b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/MediaAssetTrackResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Media +{ + public partial class MediaAssetTrackResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MediaAssetTrackData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MediaAssetTrackData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/MediaJobResource.Serialization.cs b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/MediaJobResource.Serialization.cs new file mode 100644 index 000000000000..7fbdc078fa4c --- /dev/null +++ b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/MediaJobResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Media +{ + public partial class MediaJobResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MediaJobData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MediaJobData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/MediaLiveEventResource.Serialization.cs b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/MediaLiveEventResource.Serialization.cs new file mode 100644 index 000000000000..7f212c844aaf --- /dev/null +++ b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/MediaLiveEventResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Media +{ + public partial class MediaLiveEventResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MediaLiveEventData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MediaLiveEventData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/MediaLiveOutputResource.Serialization.cs b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/MediaLiveOutputResource.Serialization.cs new file mode 100644 index 000000000000..2b74dedec7af --- /dev/null +++ b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/MediaLiveOutputResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Media +{ + public partial class MediaLiveOutputResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MediaLiveOutputData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MediaLiveOutputData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/MediaServicesAccountFilterResource.Serialization.cs b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/MediaServicesAccountFilterResource.Serialization.cs new file mode 100644 index 000000000000..afa1cb087a7c --- /dev/null +++ b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/MediaServicesAccountFilterResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Media +{ + public partial class MediaServicesAccountFilterResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MediaServicesAccountFilterData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MediaServicesAccountFilterData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/MediaServicesAccountResource.Serialization.cs b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/MediaServicesAccountResource.Serialization.cs new file mode 100644 index 000000000000..91c0cc9c1909 --- /dev/null +++ b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/MediaServicesAccountResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Media +{ + public partial class MediaServicesAccountResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MediaServicesAccountData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MediaServicesAccountData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/MediaServicesPrivateEndpointConnectionResource.Serialization.cs b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/MediaServicesPrivateEndpointConnectionResource.Serialization.cs new file mode 100644 index 000000000000..820041179430 --- /dev/null +++ b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/MediaServicesPrivateEndpointConnectionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Media +{ + public partial class MediaServicesPrivateEndpointConnectionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MediaServicesPrivateEndpointConnectionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MediaServicesPrivateEndpointConnectionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/MediaServicesPrivateLinkResource.Serialization.cs b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/MediaServicesPrivateLinkResource.Serialization.cs new file mode 100644 index 000000000000..9cb80ac2d017 --- /dev/null +++ b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/MediaServicesPrivateLinkResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Media +{ + public partial class MediaServicesPrivateLinkResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MediaServicesPrivateLinkResourceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MediaServicesPrivateLinkResourceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/MediaTransformResource.Serialization.cs b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/MediaTransformResource.Serialization.cs new file mode 100644 index 000000000000..7b5f83704e30 --- /dev/null +++ b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/MediaTransformResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Media +{ + public partial class MediaTransformResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MediaTransformData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MediaTransformData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/StreamingEndpointResource.Serialization.cs b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/StreamingEndpointResource.Serialization.cs new file mode 100644 index 000000000000..62566cb96a32 --- /dev/null +++ b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/StreamingEndpointResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Media +{ + public partial class StreamingEndpointResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + StreamingEndpointData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + StreamingEndpointData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/StreamingLocatorResource.Serialization.cs b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/StreamingLocatorResource.Serialization.cs new file mode 100644 index 000000000000..97ab396eb9bc --- /dev/null +++ b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/StreamingLocatorResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Media +{ + public partial class StreamingLocatorResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + StreamingLocatorData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + StreamingLocatorData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/StreamingPolicyResource.Serialization.cs b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/StreamingPolicyResource.Serialization.cs new file mode 100644 index 000000000000..46508b419121 --- /dev/null +++ b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/StreamingPolicyResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Media +{ + public partial class StreamingPolicyResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + StreamingPolicyData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + StreamingPolicyData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/RestOperations/AccountFiltersRestOperations.cs b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/RestOperations/AccountFiltersRestOperations.cs index 418be08cb87e..16c83ea17aea 100644 --- a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/RestOperations/AccountFiltersRestOperations.cs +++ b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/RestOperations/AccountFiltersRestOperations.cs @@ -37,6 +37,21 @@ public AccountFiltersRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string accountName) + { + 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.Media/mediaServices/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/accountFilters", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response List(string subscriptionId } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string accountName, string filterName) + { + 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.Media/mediaServices/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/accountFilters/", false); + uri.AppendPath(filterName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string accountName, string filterName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscriptionId, strin } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string accountName, string filterName, MediaServicesAccountFilterData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Media/mediaServices/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/accountFilters/", false); + uri.AppendPath(filterName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string accountName, string filterName, MediaServicesAccountFilterData data) { var message = _pipeline.CreateMessage(); @@ -298,6 +345,22 @@ public Response CreateOrUpdate(string subscripti } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string accountName, string filterName) + { + 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.Media/mediaServices/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/accountFilters/", false); + uri.AppendPath(filterName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string accountName, string filterName) { var message = _pipeline.CreateMessage(); @@ -374,6 +437,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string accountName, string filterName, MediaServicesAccountFilterData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Media/mediaServices/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/accountFilters/", false); + uri.AppendPath(filterName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string accountName, string filterName, MediaServicesAccountFilterData data) { var message = _pipeline.CreateMessage(); @@ -466,6 +545,14 @@ public Response Update(string subscriptionId, st } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string accountName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/RestOperations/AssetFiltersRestOperations.cs b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/RestOperations/AssetFiltersRestOperations.cs index ee14302076e9..42cad75f072a 100644 --- a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/RestOperations/AssetFiltersRestOperations.cs +++ b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/RestOperations/AssetFiltersRestOperations.cs @@ -37,6 +37,23 @@ public AssetFiltersRestOperations(HttpPipeline pipeline, string applicationId, U _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string accountName, string assetName) + { + 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.Media/mediaServices/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/assets/", false); + uri.AppendPath(assetName, true); + uri.AppendPath("/assetFilters", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string accountName, string assetName) { var message = _pipeline.CreateMessage(); @@ -122,6 +139,24 @@ public Response List(string subscriptionId, string r } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string accountName, string assetName, string filterName) + { + 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.Media/mediaServices/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/assets/", false); + uri.AppendPath(assetName, true); + uri.AppendPath("/assetFilters/", false); + uri.AppendPath(filterName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string accountName, string assetName, string filterName) { var message = _pipeline.CreateMessage(); @@ -216,6 +251,24 @@ public Response Get(string subscriptionId, string resource } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string accountName, string assetName, string filterName, MediaAssetFilterData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Media/mediaServices/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/assets/", false); + uri.AppendPath(assetName, true); + uri.AppendPath("/assetFilters/", false); + uri.AppendPath(filterName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string accountName, string assetName, string filterName, MediaAssetFilterData data) { var message = _pipeline.CreateMessage(); @@ -316,6 +369,24 @@ public Response CreateOrUpdate(string subscriptionId, stri } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string accountName, string assetName, string filterName) + { + 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.Media/mediaServices/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/assets/", false); + uri.AppendPath(assetName, true); + uri.AppendPath("/assetFilters/", false); + uri.AppendPath(filterName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string accountName, string assetName, string filterName) { var message = _pipeline.CreateMessage(); @@ -398,6 +469,24 @@ public Response Delete(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string accountName, string assetName, string filterName, MediaAssetFilterData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Media/mediaServices/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/assets/", false); + uri.AppendPath(assetName, true); + uri.AppendPath("/assetFilters/", false); + uri.AppendPath(filterName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string accountName, string assetName, string filterName, MediaAssetFilterData data) { var message = _pipeline.CreateMessage(); @@ -496,6 +585,14 @@ public Response Update(string subscriptionId, string resou } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string accountName, string assetName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string accountName, string assetName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/RestOperations/AssetsRestOperations.cs b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/RestOperations/AssetsRestOperations.cs index f47d648a6007..a3db0d264f09 100644 --- a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/RestOperations/AssetsRestOperations.cs +++ b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/RestOperations/AssetsRestOperations.cs @@ -37,6 +37,33 @@ public AssetsRestOperations(HttpPipeline pipeline, string applicationId, Uri end _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string accountName, string filter, int? top, string orderby) + { + 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.Media/mediaServices/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/assets", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (orderby != null) + { + uri.AppendQuery("$orderby", orderby, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string accountName, string filter, int? top, string orderby) { var message = _pipeline.CreateMessage(); @@ -134,6 +161,22 @@ public Response List(string subscriptionId, string resourc } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string accountName, string assetName) + { + 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.Media/mediaServices/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/assets/", false); + uri.AppendPath(assetName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string accountName, string assetName) { var message = _pipeline.CreateMessage(); @@ -222,6 +265,22 @@ public Response Get(string subscriptionId, string resourceGroupN } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string accountName, string assetName, MediaAssetData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Media/mediaServices/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/assets/", false); + uri.AppendPath(assetName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string accountName, string assetName, MediaAssetData data) { var message = _pipeline.CreateMessage(); @@ -316,6 +375,22 @@ public Response CreateOrUpdate(string subscriptionId, string res } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string accountName, string assetName) + { + 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.Media/mediaServices/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/assets/", false); + uri.AppendPath(assetName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string accountName, string assetName) { var message = _pipeline.CreateMessage(); @@ -392,6 +467,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string accountName, string assetName, MediaAssetData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Media/mediaServices/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/assets/", false); + uri.AppendPath(assetName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string accountName, string assetName, MediaAssetData data) { var message = _pipeline.CreateMessage(); @@ -484,6 +575,23 @@ public Response Update(string subscriptionId, string resourceGro } } + internal RequestUriBuilder CreateListContainerSasRequestUri(string subscriptionId, string resourceGroupName, string accountName, string assetName, MediaAssetStorageContainerSasContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Media/mediaServices/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/assets/", false); + uri.AppendPath(assetName, true); + uri.AppendPath("/listContainerSas", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListContainerSasRequest(string subscriptionId, string resourceGroupName, string accountName, string assetName, MediaAssetStorageContainerSasContent content) { var message = _pipeline.CreateMessage(); @@ -577,6 +685,23 @@ public Response ListContainerSas(string subscriptionId, strin } } + internal RequestUriBuilder CreateGetEncryptionKeyRequestUri(string subscriptionId, string resourceGroupName, string accountName, string assetName) + { + 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.Media/mediaServices/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/assets/", false); + uri.AppendPath(assetName, true); + uri.AppendPath("/getEncryptionKey", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetEncryptionKeyRequest(string subscriptionId, string resourceGroupName, string accountName, string assetName) { var message = _pipeline.CreateMessage(); @@ -662,6 +787,23 @@ public Response GetEncryptionKey(string sub } } + internal RequestUriBuilder CreateListStreamingLocatorsRequestUri(string subscriptionId, string resourceGroupName, string accountName, string assetName) + { + 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.Media/mediaServices/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/assets/", false); + uri.AppendPath(assetName, true); + uri.AppendPath("/listStreamingLocators", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListStreamingLocatorsRequest(string subscriptionId, string resourceGroupName, string accountName, string assetName) { var message = _pipeline.CreateMessage(); @@ -747,6 +889,14 @@ public Response ListStreamingLocators(string subs } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string accountName, string filter, int? top, string orderby) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string accountName, string filter, int? top, string orderby) { var message = _pipeline.CreateMessage(); diff --git a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/RestOperations/ContentKeyPoliciesRestOperations.cs b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/RestOperations/ContentKeyPoliciesRestOperations.cs index 8d2f07b780cd..bb2738ecc7bc 100644 --- a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/RestOperations/ContentKeyPoliciesRestOperations.cs +++ b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/RestOperations/ContentKeyPoliciesRestOperations.cs @@ -37,6 +37,33 @@ public ContentKeyPoliciesRestOperations(HttpPipeline pipeline, string applicatio _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string accountName, string filter, int? top, string orderby) + { + 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.Media/mediaServices/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/contentKeyPolicies", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (orderby != null) + { + uri.AppendQuery("$orderby", orderby, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string accountName, string filter, int? top, string orderby) { var message = _pipeline.CreateMessage(); @@ -134,6 +161,22 @@ public Response List(string subscriptionId, string r } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string accountName, string contentKeyPolicyName) + { + 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.Media/mediaServices/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/contentKeyPolicies/", false); + uri.AppendPath(contentKeyPolicyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string accountName, string contentKeyPolicyName) { var message = _pipeline.CreateMessage(); @@ -222,6 +265,22 @@ public Response Get(string subscriptionId, string resource } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string accountName, string contentKeyPolicyName, ContentKeyPolicyData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Media/mediaServices/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/contentKeyPolicies/", false); + uri.AppendPath(contentKeyPolicyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string accountName, string contentKeyPolicyName, ContentKeyPolicyData data) { var message = _pipeline.CreateMessage(); @@ -316,6 +375,22 @@ public Response CreateOrUpdate(string subscriptionId, stri } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string accountName, string contentKeyPolicyName) + { + 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.Media/mediaServices/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/contentKeyPolicies/", false); + uri.AppendPath(contentKeyPolicyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string accountName, string contentKeyPolicyName) { var message = _pipeline.CreateMessage(); @@ -392,6 +467,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string accountName, string contentKeyPolicyName, ContentKeyPolicyData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Media/mediaServices/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/contentKeyPolicies/", false); + uri.AppendPath(contentKeyPolicyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string accountName, string contentKeyPolicyName, ContentKeyPolicyData data) { var message = _pipeline.CreateMessage(); @@ -484,6 +575,23 @@ public Response Update(string subscriptionId, string resou } } + internal RequestUriBuilder CreateGetPolicyPropertiesWithSecretsRequestUri(string subscriptionId, string resourceGroupName, string accountName, string contentKeyPolicyName) + { + 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.Media/mediaServices/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/contentKeyPolicies/", false); + uri.AppendPath(contentKeyPolicyName, true); + uri.AppendPath("/getPolicyPropertiesWithSecrets", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetPolicyPropertiesWithSecretsRequest(string subscriptionId, string resourceGroupName, string accountName, string contentKeyPolicyName) { var message = _pipeline.CreateMessage(); @@ -569,6 +677,14 @@ public Response GetPolicyPropertiesWithSecrets(strin } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string accountName, string filter, int? top, string orderby) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string accountName, string filter, int? top, string orderby) { var message = _pipeline.CreateMessage(); diff --git a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/RestOperations/JobsRestOperations.cs b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/RestOperations/JobsRestOperations.cs index eb3f4f6de3f1..4a39175b6084 100644 --- a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/RestOperations/JobsRestOperations.cs +++ b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/RestOperations/JobsRestOperations.cs @@ -37,6 +37,31 @@ public JobsRestOperations(HttpPipeline pipeline, string applicationId, Uri endpo _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string accountName, string transformName, string filter, string orderby) + { + 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.Media/mediaServices/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/transforms/", false); + uri.AppendPath(transformName, true); + uri.AppendPath("/jobs", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (orderby != null) + { + uri.AppendQuery("$orderby", orderby, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string accountName, string transformName, string filter, string orderby) { var message = _pipeline.CreateMessage(); @@ -134,6 +159,24 @@ public Response List(string subscriptionId, string resourceG } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string accountName, string transformName, string jobName) + { + 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.Media/mediaServices/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/transforms/", false); + uri.AppendPath(transformName, true); + uri.AppendPath("/jobs/", false); + uri.AppendPath(jobName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string accountName, string transformName, string jobName) { var message = _pipeline.CreateMessage(); @@ -228,6 +271,24 @@ public Response Get(string subscriptionId, string resourceGroupNam } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string accountName, string transformName, string jobName, MediaJobData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Media/mediaServices/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/transforms/", false); + uri.AppendPath(transformName, true); + uri.AppendPath("/jobs/", false); + uri.AppendPath(jobName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string accountName, string transformName, string jobName, MediaJobData data) { var message = _pipeline.CreateMessage(); @@ -326,6 +387,24 @@ public Response Create(string subscriptionId, string resourceGroup } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string accountName, string transformName, string jobName) + { + 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.Media/mediaServices/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/transforms/", false); + uri.AppendPath(transformName, true); + uri.AppendPath("/jobs/", false); + uri.AppendPath(jobName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string accountName, string transformName, string jobName) { var message = _pipeline.CreateMessage(); @@ -408,6 +487,24 @@ public Response Delete(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string accountName, string transformName, string jobName, MediaJobData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Media/mediaServices/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/transforms/", false); + uri.AppendPath(transformName, true); + uri.AppendPath("/jobs/", false); + uri.AppendPath(jobName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string accountName, string transformName, string jobName, MediaJobData data) { var message = _pipeline.CreateMessage(); @@ -506,6 +603,25 @@ public Response Update(string subscriptionId, string resourceGroup } } + internal RequestUriBuilder CreateCancelJobRequestUri(string subscriptionId, string resourceGroupName, string accountName, string transformName, string jobName) + { + 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.Media/mediaServices/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/transforms/", false); + uri.AppendPath(transformName, true); + uri.AppendPath("/jobs/", false); + uri.AppendPath(jobName, true); + uri.AppendPath("/cancelJob", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCancelJobRequest(string subscriptionId, string resourceGroupName, string accountName, string transformName, string jobName) { var message = _pipeline.CreateMessage(); @@ -587,6 +703,14 @@ public Response CancelJob(string subscriptionId, string resourceGroupName, strin } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string accountName, string transformName, string filter, string orderby) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string accountName, string transformName, string filter, string orderby) { var message = _pipeline.CreateMessage(); diff --git a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/RestOperations/LiveEventsRestOperations.cs b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/RestOperations/LiveEventsRestOperations.cs index c2e594fc2fa2..f6fdbbf60b55 100644 --- a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/RestOperations/LiveEventsRestOperations.cs +++ b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/RestOperations/LiveEventsRestOperations.cs @@ -37,6 +37,21 @@ public LiveEventsRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string accountName) + { + 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.Media/mediaservices/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/liveEvents", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response List(string subscriptionId, string resource } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string accountName, string liveEventName) + { + 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.Media/mediaservices/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/liveEvents/", false); + uri.AppendPath(liveEventName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string accountName, string liveEventName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,26 @@ public Response Get(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string accountName, string liveEventName, MediaLiveEventData data, bool? autoStart) + { + 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.Media/mediaservices/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/liveEvents/", false); + uri.AppendPath(liveEventName, true); + uri.AppendQuery("api-version", _apiVersion, true); + if (autoStart != null) + { + uri.AppendQuery("autoStart", autoStart.Value, true); + } + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string accountName, string liveEventName, MediaLiveEventData data, bool? autoStart) { var message = _pipeline.CreateMessage(); @@ -294,6 +345,22 @@ public Response Create(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string accountName, string liveEventName, MediaLiveEventData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Media/mediaservices/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/liveEvents/", false); + uri.AppendPath(liveEventName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string accountName, string liveEventName, MediaLiveEventData data) { var message = _pipeline.CreateMessage(); @@ -378,6 +445,22 @@ public Response Update(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string accountName, string liveEventName) + { + 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.Media/mediaservices/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/liveEvents/", false); + uri.AppendPath(liveEventName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string accountName, string liveEventName) { var message = _pipeline.CreateMessage(); @@ -456,6 +539,23 @@ public Response Delete(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateAllocateRequestUri(string subscriptionId, string resourceGroupName, string accountName, string liveEventName) + { + 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.Media/mediaservices/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/liveEvents/", false); + uri.AppendPath(liveEventName, true); + uri.AppendPath("/allocate", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateAllocateRequest(string subscriptionId, string resourceGroupName, string accountName, string liveEventName) { var message = _pipeline.CreateMessage(); @@ -533,6 +633,23 @@ public Response Allocate(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreateStartRequestUri(string subscriptionId, string resourceGroupName, string accountName, string liveEventName) + { + 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.Media/mediaservices/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/liveEvents/", false); + uri.AppendPath(liveEventName, true); + uri.AppendPath("/start", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStartRequest(string subscriptionId, string resourceGroupName, string accountName, string liveEventName) { var message = _pipeline.CreateMessage(); @@ -610,6 +727,23 @@ public Response Start(string subscriptionId, string resourceGroupName, string ac } } + internal RequestUriBuilder CreateStopRequestUri(string subscriptionId, string resourceGroupName, string accountName, string liveEventName, LiveEventActionContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Media/mediaservices/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/liveEvents/", false); + uri.AppendPath(liveEventName, true); + uri.AppendPath("/stop", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStopRequest(string subscriptionId, string resourceGroupName, string accountName, string liveEventName, LiveEventActionContent content) { var message = _pipeline.CreateMessage(); @@ -695,6 +829,23 @@ public Response Stop(string subscriptionId, string resourceGroupName, string acc } } + internal RequestUriBuilder CreateResetRequestUri(string subscriptionId, string resourceGroupName, string accountName, string liveEventName) + { + 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.Media/mediaservices/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/liveEvents/", false); + uri.AppendPath(liveEventName, true); + uri.AppendPath("/reset", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateResetRequest(string subscriptionId, string resourceGroupName, string accountName, string liveEventName) { var message = _pipeline.CreateMessage(); @@ -772,6 +923,14 @@ public Response Reset(string subscriptionId, string resourceGroupName, string ac } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string accountName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/RestOperations/LiveOutputsRestOperations.cs b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/RestOperations/LiveOutputsRestOperations.cs index 729da31ed5cc..d61cebe8db54 100644 --- a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/RestOperations/LiveOutputsRestOperations.cs +++ b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/RestOperations/LiveOutputsRestOperations.cs @@ -37,6 +37,23 @@ public LiveOutputsRestOperations(HttpPipeline pipeline, string applicationId, Ur _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string accountName, string liveEventName) + { + 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.Media/mediaservices/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/liveEvents/", false); + uri.AppendPath(liveEventName, true); + uri.AppendPath("/liveOutputs", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string accountName, string liveEventName) { var message = _pipeline.CreateMessage(); @@ -122,6 +139,24 @@ public Response List(string subscriptionId, string resourc } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string accountName, string liveEventName, string liveOutputName) + { + 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.Media/mediaservices/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/liveEvents/", false); + uri.AppendPath(liveEventName, true); + uri.AppendPath("/liveOutputs/", false); + uri.AppendPath(liveOutputName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string accountName, string liveEventName, string liveOutputName) { var message = _pipeline.CreateMessage(); @@ -216,6 +251,24 @@ public Response Get(string subscriptionId, string resourceG } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string accountName, string liveEventName, string liveOutputName, MediaLiveOutputData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Media/mediaservices/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/liveEvents/", false); + uri.AppendPath(liveEventName, true); + uri.AppendPath("/liveOutputs/", false); + uri.AppendPath(liveOutputName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string accountName, string liveEventName, string liveOutputName, MediaLiveOutputData data) { var message = _pipeline.CreateMessage(); @@ -306,6 +359,24 @@ public Response Create(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string accountName, string liveEventName, string liveOutputName) + { + 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.Media/mediaservices/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/liveEvents/", false); + uri.AppendPath(liveEventName, true); + uri.AppendPath("/liveOutputs/", false); + uri.AppendPath(liveOutputName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string accountName, string liveEventName, string liveOutputName) { var message = _pipeline.CreateMessage(); @@ -390,6 +461,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string accountName, string liveEventName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string accountName, string liveEventName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/RestOperations/LocationsRestOperations.cs b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/RestOperations/LocationsRestOperations.cs index 79cbe4234ea0..61440364c2ee 100644 --- a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/RestOperations/LocationsRestOperations.cs +++ b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/RestOperations/LocationsRestOperations.cs @@ -37,6 +37,19 @@ public LocationsRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCheckNameAvailabilityRequestUri(string subscriptionId, AzureLocation locationName, MediaServicesNameAvailabilityContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Media/locations/", false); + uri.AppendPath(locationName, true); + uri.AppendPath("/checkNameAvailability", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCheckNameAvailabilityRequest(string subscriptionId, AzureLocation locationName, MediaServicesNameAvailabilityContent content) { var message = _pipeline.CreateMessage(); diff --git a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/RestOperations/MediaservicesRestOperations.cs b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/RestOperations/MediaservicesRestOperations.cs index 6b547eed33f2..bc166837985d 100644 --- a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/RestOperations/MediaservicesRestOperations.cs +++ b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/RestOperations/MediaservicesRestOperations.cs @@ -37,6 +37,19 @@ public MediaservicesRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName) + { + 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.Media/mediaservices", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -110,6 +123,20 @@ public Response List(string subscriptionId, stri } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string accountName) + { + 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.Media/mediaservices/", false); + uri.AppendPath(accountName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); @@ -192,6 +219,20 @@ public Response Get(string subscriptionId, string reso } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string accountName, MediaServicesAccountData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Media/mediaservices/", false); + uri.AppendPath(accountName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string accountName, MediaServicesAccountData data) { var message = _pipeline.CreateMessage(); @@ -270,6 +311,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string accountName) + { + 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.Media/mediaservices/", false); + uri.AppendPath(accountName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); @@ -340,6 +395,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string accountName, MediaServicesAccountPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Media/mediaservices/", false); + uri.AppendPath(accountName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string accountName, MediaServicesAccountPatch patch) { var message = _pipeline.CreateMessage(); @@ -416,6 +485,21 @@ public Response Update(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateSyncStorageKeysRequestUri(string subscriptionId, string resourceGroupName, string accountName, SyncStorageKeysContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Media/mediaservices/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/syncStorageKeys", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateSyncStorageKeysRequest(string subscriptionId, string resourceGroupName, string accountName, SyncStorageKeysContent content) { var message = _pipeline.CreateMessage(); @@ -493,6 +577,21 @@ public Response SyncStorageKeys(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateListEdgePoliciesRequestUri(string subscriptionId, string resourceGroupName, string accountName, EdgePoliciesRequestContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Media/mediaservices/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/listEdgePolicies", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListEdgePoliciesRequest(string subscriptionId, string resourceGroupName, string accountName, EdgePoliciesRequestContent content) { var message = _pipeline.CreateMessage(); @@ -580,6 +679,17 @@ public Response ListEdgePolicies(string subscriptionI } } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Media/mediaservices", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -647,6 +757,14 @@ public Response ListBySubscription(string subscr } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -719,6 +837,14 @@ public Response ListNextPage(string nextLink, st } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs index 0758e29dd894..416b59c4086e 100644 --- a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs +++ b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs @@ -37,6 +37,21 @@ public PrivateEndpointConnectionsRestOperations(HttpPipeline pipeline, string ap _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string accountName) + { + 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.Media/mediaservices/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/privateEndpointConnections", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response List(string subscripti } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string accountName, string name) + { + 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.Media/mediaservices/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string accountName, string name) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscript } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string accountName, string name, MediaServicesPrivateEndpointConnectionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Media/mediaservices/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string accountName, string name, MediaServicesPrivateEndpointConnectionData data) { var message = _pipeline.CreateMessage(); @@ -296,6 +343,22 @@ public Response CreateOrUpdate(strin } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string accountName, string name) + { + 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.Media/mediaservices/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string accountName, string name) { var message = _pipeline.CreateMessage(); diff --git a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs index 9bf137d56b6a..cbc9753e4900 100644 --- a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs +++ b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs @@ -37,6 +37,21 @@ public PrivateLinkResourcesRestOperations(HttpPipeline pipeline, string applicat _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string accountName) + { + 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.Media/mediaservices/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/privateLinkResources", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response List(string subscriptionId, } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string accountName, string name) + { + 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.Media/mediaservices/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/privateLinkResources/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string accountName, string name) { var message = _pipeline.CreateMessage(); diff --git a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/RestOperations/StreamingEndpointsRestOperations.cs b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/RestOperations/StreamingEndpointsRestOperations.cs index 03ebff5a37ed..34a85c727403 100644 --- a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/RestOperations/StreamingEndpointsRestOperations.cs +++ b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/RestOperations/StreamingEndpointsRestOperations.cs @@ -37,6 +37,21 @@ public StreamingEndpointsRestOperations(HttpPipeline pipeline, string applicatio _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string accountName) + { + 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.Media/mediaservices/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/streamingEndpoints", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response List(string subscriptionId, string } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string accountName, string streamingEndpointName) + { + 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.Media/mediaservices/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/streamingEndpoints/", false); + uri.AppendPath(streamingEndpointName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string accountName, string streamingEndpointName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,26 @@ public Response Get(string subscriptionId, string resourc } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string accountName, string streamingEndpointName, StreamingEndpointData data, bool? autoStart) + { + 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.Media/mediaservices/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/streamingEndpoints/", false); + uri.AppendPath(streamingEndpointName, true); + uri.AppendQuery("api-version", _apiVersion, true); + if (autoStart != null) + { + uri.AppendQuery("autoStart", autoStart.Value, true); + } + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string accountName, string streamingEndpointName, StreamingEndpointData data, bool? autoStart) { var message = _pipeline.CreateMessage(); @@ -294,6 +345,22 @@ public Response Create(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string accountName, string streamingEndpointName, StreamingEndpointData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Media/mediaservices/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/streamingEndpoints/", false); + uri.AppendPath(streamingEndpointName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string accountName, string streamingEndpointName, StreamingEndpointData data) { var message = _pipeline.CreateMessage(); @@ -378,6 +445,22 @@ public Response Update(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string accountName, string streamingEndpointName) + { + 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.Media/mediaservices/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/streamingEndpoints/", false); + uri.AppendPath(streamingEndpointName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string accountName, string streamingEndpointName) { var message = _pipeline.CreateMessage(); @@ -456,6 +539,23 @@ public Response Delete(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateSkusRequestUri(string subscriptionId, string resourceGroupName, string accountName, string streamingEndpointName) + { + 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.Media/mediaservices/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/streamingEndpoints/", false); + uri.AppendPath(streamingEndpointName, true); + uri.AppendPath("/skus", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateSkusRequest(string subscriptionId, string resourceGroupName, string accountName, string streamingEndpointName) { var message = _pipeline.CreateMessage(); @@ -541,6 +641,23 @@ public Response Skus(string subscriptionId, } } + internal RequestUriBuilder CreateStartRequestUri(string subscriptionId, string resourceGroupName, string accountName, string streamingEndpointName) + { + 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.Media/mediaservices/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/streamingEndpoints/", false); + uri.AppendPath(streamingEndpointName, true); + uri.AppendPath("/start", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStartRequest(string subscriptionId, string resourceGroupName, string accountName, string streamingEndpointName) { var message = _pipeline.CreateMessage(); @@ -618,6 +735,23 @@ public Response Start(string subscriptionId, string resourceGroupName, string ac } } + internal RequestUriBuilder CreateStopRequestUri(string subscriptionId, string resourceGroupName, string accountName, string streamingEndpointName) + { + 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.Media/mediaservices/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/streamingEndpoints/", false); + uri.AppendPath(streamingEndpointName, true); + uri.AppendPath("/stop", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStopRequest(string subscriptionId, string resourceGroupName, string accountName, string streamingEndpointName) { var message = _pipeline.CreateMessage(); @@ -695,6 +829,23 @@ public Response Stop(string subscriptionId, string resourceGroupName, string acc } } + internal RequestUriBuilder CreateScaleRequestUri(string subscriptionId, string resourceGroupName, string accountName, string streamingEndpointName, StreamingEntityScaleUnit streamingEntityScaleUnit) + { + 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.Media/mediaservices/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/streamingEndpoints/", false); + uri.AppendPath(streamingEndpointName, true); + uri.AppendPath("/scale", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateScaleRequest(string subscriptionId, string resourceGroupName, string accountName, string streamingEndpointName, StreamingEntityScaleUnit streamingEntityScaleUnit) { var message = _pipeline.CreateMessage(); @@ -780,6 +931,14 @@ public Response Scale(string subscriptionId, string resourceGroupName, string ac } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string accountName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/RestOperations/StreamingLocatorsRestOperations.cs b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/RestOperations/StreamingLocatorsRestOperations.cs index d1d4167325d0..6c1609722361 100644 --- a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/RestOperations/StreamingLocatorsRestOperations.cs +++ b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/RestOperations/StreamingLocatorsRestOperations.cs @@ -37,6 +37,33 @@ public StreamingLocatorsRestOperations(HttpPipeline pipeline, string application _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string accountName, string filter, int? top, string orderby) + { + 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.Media/mediaServices/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/streamingLocators", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (orderby != null) + { + uri.AppendQuery("$orderby", orderby, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string accountName, string filter, int? top, string orderby) { var message = _pipeline.CreateMessage(); @@ -134,6 +161,22 @@ public Response List(string subscriptionId, string r } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string accountName, string streamingLocatorName) + { + 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.Media/mediaServices/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/streamingLocators/", false); + uri.AppendPath(streamingLocatorName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string accountName, string streamingLocatorName) { var message = _pipeline.CreateMessage(); @@ -222,6 +265,22 @@ public Response Get(string subscriptionId, string resource } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string accountName, string streamingLocatorName, StreamingLocatorData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Media/mediaServices/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/streamingLocators/", false); + uri.AppendPath(streamingLocatorName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string accountName, string streamingLocatorName, StreamingLocatorData data) { var message = _pipeline.CreateMessage(); @@ -314,6 +373,22 @@ public Response Create(string subscriptionId, string resou } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string accountName, string streamingLocatorName) + { + 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.Media/mediaServices/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/streamingLocators/", false); + uri.AppendPath(streamingLocatorName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string accountName, string streamingLocatorName) { var message = _pipeline.CreateMessage(); @@ -390,6 +465,23 @@ public Response Delete(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateListContentKeysRequestUri(string subscriptionId, string resourceGroupName, string accountName, string streamingLocatorName) + { + 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.Media/mediaServices/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/streamingLocators/", false); + uri.AppendPath(streamingLocatorName, true); + uri.AppendPath("/listContentKeys", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListContentKeysRequest(string subscriptionId, string resourceGroupName, string accountName, string streamingLocatorName) { var message = _pipeline.CreateMessage(); @@ -475,6 +567,23 @@ public Response ListContentKeys(string subscriptionId, } } + internal RequestUriBuilder CreateListPathsRequestUri(string subscriptionId, string resourceGroupName, string accountName, string streamingLocatorName) + { + 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.Media/mediaServices/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/streamingLocators/", false); + uri.AppendPath(streamingLocatorName, true); + uri.AppendPath("/listPaths", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListPathsRequest(string subscriptionId, string resourceGroupName, string accountName, string streamingLocatorName) { var message = _pipeline.CreateMessage(); @@ -560,6 +669,14 @@ public Response ListPaths(string subscriptionId, string re } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string accountName, string filter, int? top, string orderby) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string accountName, string filter, int? top, string orderby) { var message = _pipeline.CreateMessage(); diff --git a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/RestOperations/StreamingPoliciesRestOperations.cs b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/RestOperations/StreamingPoliciesRestOperations.cs index a3dc9f5b5602..60295f30f6c8 100644 --- a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/RestOperations/StreamingPoliciesRestOperations.cs +++ b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/RestOperations/StreamingPoliciesRestOperations.cs @@ -37,6 +37,33 @@ public StreamingPoliciesRestOperations(HttpPipeline pipeline, string application _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string accountName, string filter, int? top, string orderby) + { + 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.Media/mediaServices/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/streamingPolicies", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (orderby != null) + { + uri.AppendQuery("$orderby", orderby, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string accountName, string filter, int? top, string orderby) { var message = _pipeline.CreateMessage(); @@ -134,6 +161,22 @@ public Response List(string subscriptionId, string re } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string accountName, string streamingPolicyName) + { + 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.Media/mediaServices/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/streamingPolicies/", false); + uri.AppendPath(streamingPolicyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string accountName, string streamingPolicyName) { var message = _pipeline.CreateMessage(); @@ -222,6 +265,22 @@ public Response Get(string subscriptionId, string resourceG } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string accountName, string streamingPolicyName, StreamingPolicyData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Media/mediaServices/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/streamingPolicies/", false); + uri.AppendPath(streamingPolicyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string accountName, string streamingPolicyName, StreamingPolicyData data) { var message = _pipeline.CreateMessage(); @@ -314,6 +373,22 @@ public Response Create(string subscriptionId, string resour } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string accountName, string streamingPolicyName) + { + 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.Media/mediaServices/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/streamingPolicies/", false); + uri.AppendPath(streamingPolicyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string accountName, string streamingPolicyName) { var message = _pipeline.CreateMessage(); @@ -390,6 +465,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string accountName, string filter, int? top, string orderby) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string accountName, string filter, int? top, string orderby) { var message = _pipeline.CreateMessage(); diff --git a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/RestOperations/TracksRestOperations.cs b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/RestOperations/TracksRestOperations.cs index 5a7f25d1d214..8c5bd62d8f0f 100644 --- a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/RestOperations/TracksRestOperations.cs +++ b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/RestOperations/TracksRestOperations.cs @@ -37,6 +37,23 @@ public TracksRestOperations(HttpPipeline pipeline, string applicationId, Uri end _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string accountName, string assetName) + { + 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.Media/mediaServices/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/assets/", false); + uri.AppendPath(assetName, true); + uri.AppendPath("/tracks", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string accountName, string assetName) { var message = _pipeline.CreateMessage(); @@ -122,6 +139,24 @@ public Response List(string subscriptionId, string re } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string accountName, string assetName, string trackName) + { + 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.Media/mediaServices/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/assets/", false); + uri.AppendPath(assetName, true); + uri.AppendPath("/tracks/", false); + uri.AppendPath(trackName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string accountName, string assetName, string trackName) { var message = _pipeline.CreateMessage(); @@ -216,6 +251,24 @@ public Response Get(string subscriptionId, string resourceG } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string accountName, string assetName, string trackName, MediaAssetTrackData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Media/mediaServices/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/assets/", false); + uri.AppendPath(assetName, true); + uri.AppendPath("/tracks/", false); + uri.AppendPath(trackName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string accountName, string assetName, string trackName, MediaAssetTrackData data) { var message = _pipeline.CreateMessage(); @@ -306,6 +359,24 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string accountName, string assetName, string trackName) + { + 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.Media/mediaServices/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/assets/", false); + uri.AppendPath(assetName, true); + uri.AppendPath("/tracks/", false); + uri.AppendPath(trackName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string accountName, string assetName, string trackName) { var message = _pipeline.CreateMessage(); @@ -388,6 +459,24 @@ public Response Delete(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string accountName, string assetName, string trackName, MediaAssetTrackData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Media/mediaServices/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/assets/", false); + uri.AppendPath(assetName, true); + uri.AppendPath("/tracks/", false); + uri.AppendPath(trackName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string accountName, string assetName, string trackName, MediaAssetTrackData data) { var message = _pipeline.CreateMessage(); @@ -476,6 +565,25 @@ public Response Update(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateUpdateTrackDataRequestUri(string subscriptionId, string resourceGroupName, string accountName, string assetName, string trackName) + { + 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.Media/mediaServices/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/assets/", false); + uri.AppendPath(assetName, true); + uri.AppendPath("/tracks/", false); + uri.AppendPath(trackName, true); + uri.AppendPath("/updateTrackData", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateTrackDataRequest(string subscriptionId, string resourceGroupName, string accountName, string assetName, string trackName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/RestOperations/TransformsRestOperations.cs b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/RestOperations/TransformsRestOperations.cs index dd61f1270593..3e8f68dbe1f1 100644 --- a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/RestOperations/TransformsRestOperations.cs +++ b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/RestOperations/TransformsRestOperations.cs @@ -37,6 +37,29 @@ public TransformsRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string accountName, string filter, string orderby) + { + 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.Media/mediaServices/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/transforms", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (orderby != null) + { + uri.AppendQuery("$orderby", orderby, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string accountName, string filter, string orderby) { var message = _pipeline.CreateMessage(); @@ -128,6 +151,22 @@ public Response List(string subscriptionId, string res } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string accountName, string transformName) + { + 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.Media/mediaServices/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/transforms/", false); + uri.AppendPath(transformName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string accountName, string transformName) { var message = _pipeline.CreateMessage(); @@ -216,6 +255,22 @@ public Response Get(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string accountName, string transformName, MediaTransformData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Media/mediaServices/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/transforms/", false); + uri.AppendPath(transformName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string accountName, string transformName, MediaTransformData data) { var message = _pipeline.CreateMessage(); @@ -310,6 +365,22 @@ public Response CreateOrUpdate(string subscriptionId, string } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string accountName, string transformName) + { + 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.Media/mediaServices/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/transforms/", false); + uri.AppendPath(transformName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string accountName, string transformName) { var message = _pipeline.CreateMessage(); @@ -386,6 +457,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string accountName, string transformName, MediaTransformData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Media/mediaServices/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/transforms/", false); + uri.AppendPath(transformName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string accountName, string transformName, MediaTransformData data) { var message = _pipeline.CreateMessage(); @@ -478,6 +565,14 @@ public Response Update(string subscriptionId, string resourc } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string accountName, string filter, string orderby) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string accountName, string filter, string orderby) { var message = _pipeline.CreateMessage(); diff --git a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/StreamingLocatorCollection.cs b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/StreamingLocatorCollection.cs index 10d9d008219b..676e4549149d 100644 --- a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/StreamingLocatorCollection.cs +++ b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/StreamingLocatorCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> CreateOrUpdate try { var response = await _streamingLocatorRestClient.CreateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, streamingLocatorName, data, cancellationToken).ConfigureAwait(false); - var operation = new MediaArmOperation(Response.FromValue(new StreamingLocatorResource(Client, response), response.GetRawResponse())); + var uri = _streamingLocatorRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, streamingLocatorName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MediaArmOperation(Response.FromValue(new StreamingLocatorResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil w try { var response = _streamingLocatorRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, streamingLocatorName, data, cancellationToken); - var operation = new MediaArmOperation(Response.FromValue(new StreamingLocatorResource(Client, response), response.GetRawResponse())); + var uri = _streamingLocatorRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, streamingLocatorName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MediaArmOperation(Response.FromValue(new StreamingLocatorResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/StreamingLocatorResource.cs b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/StreamingLocatorResource.cs index f50153f9e305..d330d9db8b25 100644 --- a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/StreamingLocatorResource.cs +++ b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/StreamingLocatorResource.cs @@ -202,7 +202,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _streamingLocatorRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new MediaArmOperation(response); + var uri = _streamingLocatorRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MediaArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -244,7 +246,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _streamingLocatorRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new MediaArmOperation(response); + var uri = _streamingLocatorRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MediaArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -290,7 +294,9 @@ public virtual async Task> UpdateAsync(Wa try { var response = await _streamingLocatorRestClient.CreateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new MediaArmOperation(Response.FromValue(new StreamingLocatorResource(Client, response), response.GetRawResponse())); + var uri = _streamingLocatorRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MediaArmOperation(Response.FromValue(new StreamingLocatorResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -336,7 +342,9 @@ public virtual ArmOperation Update(WaitUntil waitUntil try { var response = _streamingLocatorRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new MediaArmOperation(Response.FromValue(new StreamingLocatorResource(Client, response), response.GetRawResponse())); + var uri = _streamingLocatorRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MediaArmOperation(Response.FromValue(new StreamingLocatorResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/StreamingPolicyCollection.cs b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/StreamingPolicyCollection.cs index 8aa00448d749..96a318bec9de 100644 --- a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/StreamingPolicyCollection.cs +++ b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/StreamingPolicyCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> CreateOrUpdateA try { var response = await _streamingPolicyRestClient.CreateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, streamingPolicyName, data, cancellationToken).ConfigureAwait(false); - var operation = new MediaArmOperation(Response.FromValue(new StreamingPolicyResource(Client, response), response.GetRawResponse())); + var uri = _streamingPolicyRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, streamingPolicyName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MediaArmOperation(Response.FromValue(new StreamingPolicyResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wa try { var response = _streamingPolicyRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, streamingPolicyName, data, cancellationToken); - var operation = new MediaArmOperation(Response.FromValue(new StreamingPolicyResource(Client, response), response.GetRawResponse())); + var uri = _streamingPolicyRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, streamingPolicyName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MediaArmOperation(Response.FromValue(new StreamingPolicyResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/StreamingPolicyResource.cs b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/StreamingPolicyResource.cs index 20349f2fb3de..c5a3a5b00eef 100644 --- a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/StreamingPolicyResource.cs +++ b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/StreamingPolicyResource.cs @@ -200,7 +200,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _streamingPolicyRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new MediaArmOperation(response); + var uri = _streamingPolicyRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MediaArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -242,7 +244,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _streamingPolicyRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new MediaArmOperation(response); + var uri = _streamingPolicyRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MediaArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -288,7 +292,9 @@ public virtual async Task> UpdateAsync(Wai try { var response = await _streamingPolicyRestClient.CreateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new MediaArmOperation(Response.FromValue(new StreamingPolicyResource(Client, response), response.GetRawResponse())); + var uri = _streamingPolicyRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MediaArmOperation(Response.FromValue(new StreamingPolicyResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -334,7 +340,9 @@ public virtual ArmOperation Update(WaitUntil waitUntil, try { var response = _streamingPolicyRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new MediaArmOperation(Response.FromValue(new StreamingPolicyResource(Client, response), response.GetRawResponse())); + var uri = _streamingPolicyRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MediaArmOperation(Response.FromValue(new StreamingPolicyResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/mixedreality/Azure.ResourceManager.MixedReality/src/Generated/LongRunningOperation/MixedRealityArmOperation.cs b/sdk/mixedreality/Azure.ResourceManager.MixedReality/src/Generated/LongRunningOperation/MixedRealityArmOperation.cs index 4bb8aa2a57f7..6093f886735f 100644 --- a/sdk/mixedreality/Azure.ResourceManager.MixedReality/src/Generated/LongRunningOperation/MixedRealityArmOperation.cs +++ b/sdk/mixedreality/Azure.ResourceManager.MixedReality/src/Generated/LongRunningOperation/MixedRealityArmOperation.cs @@ -20,21 +20,24 @@ internal class MixedRealityArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of MixedRealityArmOperation for mocking. protected MixedRealityArmOperation() { } - internal MixedRealityArmOperation(Response response) + internal MixedRealityArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal MixedRealityArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "MixedRealityArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal MixedRealityArmOperation(ClientDiagnostics clientDiagnostics, HttpPipel public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/mixedreality/Azure.ResourceManager.MixedReality/src/Generated/LongRunningOperation/MixedRealityArmOperationOfT.cs b/sdk/mixedreality/Azure.ResourceManager.MixedReality/src/Generated/LongRunningOperation/MixedRealityArmOperationOfT.cs index 1333c85ea57e..f445646f30e2 100644 --- a/sdk/mixedreality/Azure.ResourceManager.MixedReality/src/Generated/LongRunningOperation/MixedRealityArmOperationOfT.cs +++ b/sdk/mixedreality/Azure.ResourceManager.MixedReality/src/Generated/LongRunningOperation/MixedRealityArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class MixedRealityArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of MixedRealityArmOperation for mocking. protected MixedRealityArmOperation() { } - internal MixedRealityArmOperation(Response response) + internal MixedRealityArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal MixedRealityArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "MixedRealityArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal MixedRealityArmOperation(IOperationSource source, ClientDiagnostics public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/mixedreality/Azure.ResourceManager.MixedReality/src/Generated/Models/RemoteRenderingAccountResource.Serialization.cs b/sdk/mixedreality/Azure.ResourceManager.MixedReality/src/Generated/Models/RemoteRenderingAccountResource.Serialization.cs new file mode 100644 index 000000000000..493d7d816699 --- /dev/null +++ b/sdk/mixedreality/Azure.ResourceManager.MixedReality/src/Generated/Models/RemoteRenderingAccountResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.MixedReality +{ + public partial class RemoteRenderingAccountResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + RemoteRenderingAccountData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + RemoteRenderingAccountData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/mixedreality/Azure.ResourceManager.MixedReality/src/Generated/Models/SpatialAnchorsAccountResource.Serialization.cs b/sdk/mixedreality/Azure.ResourceManager.MixedReality/src/Generated/Models/SpatialAnchorsAccountResource.Serialization.cs new file mode 100644 index 000000000000..a27836d2ae25 --- /dev/null +++ b/sdk/mixedreality/Azure.ResourceManager.MixedReality/src/Generated/Models/SpatialAnchorsAccountResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.MixedReality +{ + public partial class SpatialAnchorsAccountResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SpatialAnchorsAccountData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SpatialAnchorsAccountData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/mixedreality/Azure.ResourceManager.MixedReality/src/Generated/RemoteRenderingAccountCollection.cs b/sdk/mixedreality/Azure.ResourceManager.MixedReality/src/Generated/RemoteRenderingAccountCollection.cs index 3783a1434466..a07712fdc183 100644 --- a/sdk/mixedreality/Azure.ResourceManager.MixedReality/src/Generated/RemoteRenderingAccountCollection.cs +++ b/sdk/mixedreality/Azure.ResourceManager.MixedReality/src/Generated/RemoteRenderingAccountCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> CreateOr try { var response = await _remoteRenderingAccountRestClient.CreateAsync(Id.SubscriptionId, Id.ResourceGroupName, accountName, data, cancellationToken).ConfigureAwait(false); - var operation = new MixedRealityArmOperation(Response.FromValue(new RemoteRenderingAccountResource(Client, response), response.GetRawResponse())); + var uri = _remoteRenderingAccountRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, accountName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MixedRealityArmOperation(Response.FromValue(new RemoteRenderingAccountResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -140,7 +142,9 @@ public virtual ArmOperation CreateOrUpdate(WaitU try { var response = _remoteRenderingAccountRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, accountName, data, cancellationToken); - var operation = new MixedRealityArmOperation(Response.FromValue(new RemoteRenderingAccountResource(Client, response), response.GetRawResponse())); + var uri = _remoteRenderingAccountRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, accountName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MixedRealityArmOperation(Response.FromValue(new RemoteRenderingAccountResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/mixedreality/Azure.ResourceManager.MixedReality/src/Generated/RemoteRenderingAccountResource.cs b/sdk/mixedreality/Azure.ResourceManager.MixedReality/src/Generated/RemoteRenderingAccountResource.cs index 86fb10ffb085..ed892ef3af38 100644 --- a/sdk/mixedreality/Azure.ResourceManager.MixedReality/src/Generated/RemoteRenderingAccountResource.cs +++ b/sdk/mixedreality/Azure.ResourceManager.MixedReality/src/Generated/RemoteRenderingAccountResource.cs @@ -202,7 +202,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _remoteRenderingAccountRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new MixedRealityArmOperation(response); + var uri = _remoteRenderingAccountRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MixedRealityArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -244,7 +246,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _remoteRenderingAccountRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); - var operation = new MixedRealityArmOperation(response); + var uri = _remoteRenderingAccountRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MixedRealityArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/mixedreality/Azure.ResourceManager.MixedReality/src/Generated/RestOperations/MixedRealityRestOperations.cs b/sdk/mixedreality/Azure.ResourceManager.MixedReality/src/Generated/RestOperations/MixedRealityRestOperations.cs index a690e22f99ea..111f4ddab76a 100644 --- a/sdk/mixedreality/Azure.ResourceManager.MixedReality/src/Generated/RestOperations/MixedRealityRestOperations.cs +++ b/sdk/mixedreality/Azure.ResourceManager.MixedReality/src/Generated/RestOperations/MixedRealityRestOperations.cs @@ -37,6 +37,19 @@ public MixedRealityRestOperations(HttpPipeline pipeline, string applicationId, U _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCheckNameAvailabilityLocalRequestUri(string subscriptionId, AzureLocation location, MixedRealityNameAvailabilityContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.MixedReality/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/checkNameAvailability", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCheckNameAvailabilityLocalRequest(string subscriptionId, AzureLocation location, MixedRealityNameAvailabilityContent content) { var message = _pipeline.CreateMessage(); diff --git a/sdk/mixedreality/Azure.ResourceManager.MixedReality/src/Generated/RestOperations/RemoteRenderingAccountsRestOperations.cs b/sdk/mixedreality/Azure.ResourceManager.MixedReality/src/Generated/RestOperations/RemoteRenderingAccountsRestOperations.cs index 90b0e364229b..1e8927ee4f2d 100644 --- a/sdk/mixedreality/Azure.ResourceManager.MixedReality/src/Generated/RestOperations/RemoteRenderingAccountsRestOperations.cs +++ b/sdk/mixedreality/Azure.ResourceManager.MixedReality/src/Generated/RestOperations/RemoteRenderingAccountsRestOperations.cs @@ -37,6 +37,17 @@ public RemoteRenderingAccountsRestOperations(HttpPipeline pipeline, string appli _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.MixedReality/remoteRenderingAccounts", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,19 @@ public Response ListBySubscription(string subs } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.MixedReality/remoteRenderingAccounts", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -177,6 +201,20 @@ public Response ListByResourceGroup(string sub } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string accountName) + { + 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.MixedReality/remoteRenderingAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); @@ -247,6 +285,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string accountName) + { + 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.MixedReality/remoteRenderingAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); @@ -329,6 +381,20 @@ public Response Get(string subscriptionId, string re } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string accountName, RemoteRenderingAccountData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MixedReality/remoteRenderingAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string accountName, RemoteRenderingAccountData data) { var message = _pipeline.CreateMessage(); @@ -415,6 +481,20 @@ public Response Update(string subscriptionId, string } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string accountName, RemoteRenderingAccountData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MixedReality/remoteRenderingAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string accountName, RemoteRenderingAccountData data) { var message = _pipeline.CreateMessage(); @@ -503,6 +583,21 @@ public Response Create(string subscriptionId, string } } + internal RequestUriBuilder CreateListKeysRequestUri(string subscriptionId, string resourceGroupName, string accountName) + { + 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.MixedReality/remoteRenderingAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/listKeys", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListKeysRequest(string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); @@ -582,6 +677,21 @@ public Response ListKeys(string subscriptionId, string } } + internal RequestUriBuilder CreateRegenerateKeysRequestUri(string subscriptionId, string resourceGroupName, string accountName, MixedRealityAccountKeyRegenerateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MixedReality/remoteRenderingAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/regenerateKeys", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRegenerateKeysRequest(string subscriptionId, string resourceGroupName, string accountName, MixedRealityAccountKeyRegenerateContent content) { var message = _pipeline.CreateMessage(); @@ -669,6 +779,14 @@ public Response RegenerateKeys(string subscriptionId, s } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -737,6 +855,14 @@ public Response ListBySubscriptionNextPage(str } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/mixedreality/Azure.ResourceManager.MixedReality/src/Generated/RestOperations/SpatialAnchorsAccountsRestOperations.cs b/sdk/mixedreality/Azure.ResourceManager.MixedReality/src/Generated/RestOperations/SpatialAnchorsAccountsRestOperations.cs index c1a685dfc10e..d3e97230debd 100644 --- a/sdk/mixedreality/Azure.ResourceManager.MixedReality/src/Generated/RestOperations/SpatialAnchorsAccountsRestOperations.cs +++ b/sdk/mixedreality/Azure.ResourceManager.MixedReality/src/Generated/RestOperations/SpatialAnchorsAccountsRestOperations.cs @@ -37,6 +37,17 @@ public SpatialAnchorsAccountsRestOperations(HttpPipeline pipeline, string applic _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.MixedReality/spatialAnchorsAccounts", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,19 @@ public Response ListBySubscription(string subsc } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.MixedReality/spatialAnchorsAccounts", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -177,6 +201,20 @@ public Response ListByResourceGroup(string subs } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string accountName) + { + 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.MixedReality/spatialAnchorsAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); @@ -247,6 +285,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string accountName) + { + 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.MixedReality/spatialAnchorsAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); @@ -329,6 +381,20 @@ public Response Get(string subscriptionId, string res } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string accountName, SpatialAnchorsAccountData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MixedReality/spatialAnchorsAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string accountName, SpatialAnchorsAccountData data) { var message = _pipeline.CreateMessage(); @@ -415,6 +481,20 @@ public Response Update(string subscriptionId, string } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string accountName, SpatialAnchorsAccountData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MixedReality/spatialAnchorsAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string accountName, SpatialAnchorsAccountData data) { var message = _pipeline.CreateMessage(); @@ -503,6 +583,21 @@ public Response Create(string subscriptionId, string } } + internal RequestUriBuilder CreateListKeysRequestUri(string subscriptionId, string resourceGroupName, string accountName) + { + 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.MixedReality/spatialAnchorsAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/listKeys", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListKeysRequest(string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); @@ -582,6 +677,21 @@ public Response ListKeys(string subscriptionId, string } } + internal RequestUriBuilder CreateRegenerateKeysRequestUri(string subscriptionId, string resourceGroupName, string accountName, MixedRealityAccountKeyRegenerateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MixedReality/spatialAnchorsAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/regenerateKeys", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRegenerateKeysRequest(string subscriptionId, string resourceGroupName, string accountName, MixedRealityAccountKeyRegenerateContent content) { var message = _pipeline.CreateMessage(); @@ -669,6 +779,14 @@ public Response RegenerateKeys(string subscriptionId, s } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -737,6 +855,14 @@ public Response ListBySubscriptionNextPage(stri } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/mixedreality/Azure.ResourceManager.MixedReality/src/Generated/SpatialAnchorsAccountCollection.cs b/sdk/mixedreality/Azure.ResourceManager.MixedReality/src/Generated/SpatialAnchorsAccountCollection.cs index f746c85ac7c2..3ca7a5c261ab 100644 --- a/sdk/mixedreality/Azure.ResourceManager.MixedReality/src/Generated/SpatialAnchorsAccountCollection.cs +++ b/sdk/mixedreality/Azure.ResourceManager.MixedReality/src/Generated/SpatialAnchorsAccountCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> CreateOrU try { var response = await _spatialAnchorsAccountRestClient.CreateAsync(Id.SubscriptionId, Id.ResourceGroupName, accountName, data, cancellationToken).ConfigureAwait(false); - var operation = new MixedRealityArmOperation(Response.FromValue(new SpatialAnchorsAccountResource(Client, response), response.GetRawResponse())); + var uri = _spatialAnchorsAccountRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, accountName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MixedRealityArmOperation(Response.FromValue(new SpatialAnchorsAccountResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -140,7 +142,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUn try { var response = _spatialAnchorsAccountRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, accountName, data, cancellationToken); - var operation = new MixedRealityArmOperation(Response.FromValue(new SpatialAnchorsAccountResource(Client, response), response.GetRawResponse())); + var uri = _spatialAnchorsAccountRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, accountName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MixedRealityArmOperation(Response.FromValue(new SpatialAnchorsAccountResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/mixedreality/Azure.ResourceManager.MixedReality/src/Generated/SpatialAnchorsAccountResource.cs b/sdk/mixedreality/Azure.ResourceManager.MixedReality/src/Generated/SpatialAnchorsAccountResource.cs index 1f6db0ecd42e..3e83e5e6d61b 100644 --- a/sdk/mixedreality/Azure.ResourceManager.MixedReality/src/Generated/SpatialAnchorsAccountResource.cs +++ b/sdk/mixedreality/Azure.ResourceManager.MixedReality/src/Generated/SpatialAnchorsAccountResource.cs @@ -202,7 +202,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _spatialAnchorsAccountRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new MixedRealityArmOperation(response); + var uri = _spatialAnchorsAccountRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MixedRealityArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -244,7 +246,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _spatialAnchorsAccountRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); - var operation = new MixedRealityArmOperation(response); + var uri = _spatialAnchorsAccountRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MixedRealityArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/LongRunningOperation/MobileNetworkArmOperation.cs b/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/LongRunningOperation/MobileNetworkArmOperation.cs index 56d1c3f68805..f54e3d0cb61b 100644 --- a/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/LongRunningOperation/MobileNetworkArmOperation.cs +++ b/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/LongRunningOperation/MobileNetworkArmOperation.cs @@ -20,21 +20,24 @@ internal class MobileNetworkArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of MobileNetworkArmOperation for mocking. protected MobileNetworkArmOperation() { } - internal MobileNetworkArmOperation(Response response) + internal MobileNetworkArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal MobileNetworkArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "MobileNetworkArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal MobileNetworkArmOperation(ClientDiagnostics clientDiagnostics, HttpPipe public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/LongRunningOperation/MobileNetworkArmOperationOfT.cs b/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/LongRunningOperation/MobileNetworkArmOperationOfT.cs index cc000d1872e0..fccb4eaf4d1e 100644 --- a/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/LongRunningOperation/MobileNetworkArmOperationOfT.cs +++ b/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/LongRunningOperation/MobileNetworkArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class MobileNetworkArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of MobileNetworkArmOperation for mocking. protected MobileNetworkArmOperation() { } - internal MobileNetworkArmOperation(Response response) + internal MobileNetworkArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal MobileNetworkArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "MobileNetworkArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal MobileNetworkArmOperation(IOperationSource source, ClientDiagnostics public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/MobileAttachedDataNetworkResource.Serialization.cs b/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/MobileAttachedDataNetworkResource.Serialization.cs new file mode 100644 index 000000000000..fbf673aeb6f6 --- /dev/null +++ b/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/MobileAttachedDataNetworkResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.MobileNetwork +{ + public partial class MobileAttachedDataNetworkResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MobileAttachedDataNetworkData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MobileAttachedDataNetworkData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/MobileDataNetworkResource.Serialization.cs b/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/MobileDataNetworkResource.Serialization.cs new file mode 100644 index 000000000000..1ab347bb0e3a --- /dev/null +++ b/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/MobileDataNetworkResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.MobileNetwork +{ + public partial class MobileDataNetworkResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MobileDataNetworkData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MobileDataNetworkData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/MobileNetworkDiagnosticsPackageResource.Serialization.cs b/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/MobileNetworkDiagnosticsPackageResource.Serialization.cs new file mode 100644 index 000000000000..69341bad6d70 --- /dev/null +++ b/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/MobileNetworkDiagnosticsPackageResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.MobileNetwork +{ + public partial class MobileNetworkDiagnosticsPackageResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MobileNetworkDiagnosticsPackageData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MobileNetworkDiagnosticsPackageData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/MobileNetworkPacketCaptureResource.Serialization.cs b/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/MobileNetworkPacketCaptureResource.Serialization.cs new file mode 100644 index 000000000000..65538cd6b8b6 --- /dev/null +++ b/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/MobileNetworkPacketCaptureResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.MobileNetwork +{ + public partial class MobileNetworkPacketCaptureResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MobileNetworkPacketCaptureData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MobileNetworkPacketCaptureData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/MobileNetworkResource.Serialization.cs b/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/MobileNetworkResource.Serialization.cs new file mode 100644 index 000000000000..cb73248f0010 --- /dev/null +++ b/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/MobileNetworkResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.MobileNetwork +{ + public partial class MobileNetworkResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MobileNetworkData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MobileNetworkData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/MobileNetworkServiceResource.Serialization.cs b/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/MobileNetworkServiceResource.Serialization.cs new file mode 100644 index 000000000000..7b3a5a5207d7 --- /dev/null +++ b/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/MobileNetworkServiceResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.MobileNetwork +{ + public partial class MobileNetworkServiceResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MobileNetworkServiceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MobileNetworkServiceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/MobileNetworkSimGroupResource.Serialization.cs b/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/MobileNetworkSimGroupResource.Serialization.cs new file mode 100644 index 000000000000..081b57fc5ce8 --- /dev/null +++ b/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/MobileNetworkSimGroupResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.MobileNetwork +{ + public partial class MobileNetworkSimGroupResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MobileNetworkSimGroupData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MobileNetworkSimGroupData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/MobileNetworkSimPolicyResource.Serialization.cs b/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/MobileNetworkSimPolicyResource.Serialization.cs new file mode 100644 index 000000000000..37fe5976678c --- /dev/null +++ b/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/MobileNetworkSimPolicyResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.MobileNetwork +{ + public partial class MobileNetworkSimPolicyResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MobileNetworkSimPolicyData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MobileNetworkSimPolicyData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/MobileNetworkSimResource.Serialization.cs b/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/MobileNetworkSimResource.Serialization.cs new file mode 100644 index 000000000000..da6b2a6c1802 --- /dev/null +++ b/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/MobileNetworkSimResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.MobileNetwork +{ + public partial class MobileNetworkSimResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MobileNetworkSimData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MobileNetworkSimData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/MobileNetworkSiteResource.Serialization.cs b/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/MobileNetworkSiteResource.Serialization.cs new file mode 100644 index 000000000000..a03c2325e71a --- /dev/null +++ b/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/MobileNetworkSiteResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.MobileNetwork +{ + public partial class MobileNetworkSiteResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MobileNetworkSiteData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MobileNetworkSiteData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/MobileNetworkSliceResource.Serialization.cs b/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/MobileNetworkSliceResource.Serialization.cs new file mode 100644 index 000000000000..7277e4712588 --- /dev/null +++ b/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/MobileNetworkSliceResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.MobileNetwork +{ + public partial class MobileNetworkSliceResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MobileNetworkSliceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MobileNetworkSliceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/PacketCoreControlPlaneResource.Serialization.cs b/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/PacketCoreControlPlaneResource.Serialization.cs new file mode 100644 index 000000000000..6b20500c4fd7 --- /dev/null +++ b/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/PacketCoreControlPlaneResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.MobileNetwork +{ + public partial class PacketCoreControlPlaneResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + PacketCoreControlPlaneData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + PacketCoreControlPlaneData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/PacketCoreDataPlaneResource.Serialization.cs b/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/PacketCoreDataPlaneResource.Serialization.cs new file mode 100644 index 000000000000..f32559f38c04 --- /dev/null +++ b/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/PacketCoreDataPlaneResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.MobileNetwork +{ + public partial class PacketCoreDataPlaneResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + PacketCoreDataPlaneData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + PacketCoreDataPlaneData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/SubscriptionPacketCoreControlPlaneVersionResource.Serialization.cs b/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/SubscriptionPacketCoreControlPlaneVersionResource.Serialization.cs new file mode 100644 index 000000000000..e0c6a33bd1b2 --- /dev/null +++ b/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/SubscriptionPacketCoreControlPlaneVersionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.MobileNetwork +{ + public partial class SubscriptionPacketCoreControlPlaneVersionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + PacketCoreControlPlaneVersionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + PacketCoreControlPlaneVersionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/TenantPacketCoreControlPlaneVersionResource.Serialization.cs b/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/TenantPacketCoreControlPlaneVersionResource.Serialization.cs new file mode 100644 index 000000000000..5f048b0f35c5 --- /dev/null +++ b/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/TenantPacketCoreControlPlaneVersionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.MobileNetwork +{ + public partial class TenantPacketCoreControlPlaneVersionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + PacketCoreControlPlaneVersionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + PacketCoreControlPlaneVersionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/RestOperations/AttachedDataNetworksRestOperations.cs b/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/RestOperations/AttachedDataNetworksRestOperations.cs index 8f2ea6ce8382..b3aa99c3278f 100644 --- a/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/RestOperations/AttachedDataNetworksRestOperations.cs +++ b/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/RestOperations/AttachedDataNetworksRestOperations.cs @@ -37,6 +37,24 @@ public AttachedDataNetworksRestOperations(HttpPipeline pipeline, string applicat _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string packetCoreControlPlaneName, string packetCoreDataPlaneName, string attachedDataNetworkName) + { + 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.MobileNetwork/packetCoreControlPlanes/", false); + uri.AppendPath(packetCoreControlPlaneName, true); + uri.AppendPath("/packetCoreDataPlanes/", false); + uri.AppendPath(packetCoreDataPlaneName, true); + uri.AppendPath("/attachedDataNetworks/", false); + uri.AppendPath(attachedDataNetworkName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string packetCoreControlPlaneName, string packetCoreDataPlaneName, string attachedDataNetworkName) { var message = _pipeline.CreateMessage(); @@ -121,6 +139,24 @@ public Response Delete(string subscriptionId, string resourceGroupName, string p } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string packetCoreControlPlaneName, string packetCoreDataPlaneName, string attachedDataNetworkName) + { + 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.MobileNetwork/packetCoreControlPlanes/", false); + uri.AppendPath(packetCoreControlPlaneName, true); + uri.AppendPath("/packetCoreDataPlanes/", false); + uri.AppendPath(packetCoreDataPlaneName, true); + uri.AppendPath("/attachedDataNetworks/", false); + uri.AppendPath(attachedDataNetworkName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string packetCoreControlPlaneName, string packetCoreDataPlaneName, string attachedDataNetworkName) { var message = _pipeline.CreateMessage(); @@ -215,6 +251,24 @@ public Response Get(string subscriptionId, string } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string packetCoreControlPlaneName, string packetCoreDataPlaneName, string attachedDataNetworkName, MobileAttachedDataNetworkData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/", false); + uri.AppendPath(packetCoreControlPlaneName, true); + uri.AppendPath("/packetCoreDataPlanes/", false); + uri.AppendPath(packetCoreDataPlaneName, true); + uri.AppendPath("/attachedDataNetworks/", false); + uri.AppendPath(attachedDataNetworkName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string packetCoreControlPlaneName, string packetCoreDataPlaneName, string attachedDataNetworkName, MobileAttachedDataNetworkData data) { var message = _pipeline.CreateMessage(); @@ -305,6 +359,24 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateTagsRequestUri(string subscriptionId, string resourceGroupName, string packetCoreControlPlaneName, string packetCoreDataPlaneName, string attachedDataNetworkName, MobileNetworkTagsPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/", false); + uri.AppendPath(packetCoreControlPlaneName, true); + uri.AppendPath("/packetCoreDataPlanes/", false); + uri.AppendPath(packetCoreDataPlaneName, true); + uri.AppendPath("/attachedDataNetworks/", false); + uri.AppendPath(attachedDataNetworkName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateTagsRequest(string subscriptionId, string resourceGroupName, string packetCoreControlPlaneName, string packetCoreDataPlaneName, string attachedDataNetworkName, MobileNetworkTagsPatch patch) { var message = _pipeline.CreateMessage(); @@ -403,6 +475,23 @@ public Response UpdateTags(string subscriptionId, } } + internal RequestUriBuilder CreateListByPacketCoreDataPlaneRequestUri(string subscriptionId, string resourceGroupName, string packetCoreControlPlaneName, string packetCoreDataPlaneName) + { + 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.MobileNetwork/packetCoreControlPlanes/", false); + uri.AppendPath(packetCoreControlPlaneName, true); + uri.AppendPath("/packetCoreDataPlanes/", false); + uri.AppendPath(packetCoreDataPlaneName, true); + uri.AppendPath("/attachedDataNetworks", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByPacketCoreDataPlaneRequest(string subscriptionId, string resourceGroupName, string packetCoreControlPlaneName, string packetCoreDataPlaneName) { var message = _pipeline.CreateMessage(); @@ -488,6 +577,14 @@ public Response ListByPacketCoreDataPlane(string } } + internal RequestUriBuilder CreateListByPacketCoreDataPlaneNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string packetCoreControlPlaneName, string packetCoreDataPlaneName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByPacketCoreDataPlaneNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string packetCoreControlPlaneName, string packetCoreDataPlaneName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/RestOperations/DataNetworksRestOperations.cs b/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/RestOperations/DataNetworksRestOperations.cs index 2e1ec22172da..9788f9c88b3a 100644 --- a/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/RestOperations/DataNetworksRestOperations.cs +++ b/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/RestOperations/DataNetworksRestOperations.cs @@ -37,6 +37,22 @@ public DataNetworksRestOperations(HttpPipeline pipeline, string applicationId, U _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string mobileNetworkName, string dataNetworkName) + { + 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.MobileNetwork/mobileNetworks/", false); + uri.AppendPath(mobileNetworkName, true); + uri.AppendPath("/dataNetworks/", false); + uri.AppendPath(dataNetworkName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string mobileNetworkName, string dataNetworkName) { var message = _pipeline.CreateMessage(); @@ -115,6 +131,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string m } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string mobileNetworkName, string dataNetworkName) + { + 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.MobileNetwork/mobileNetworks/", false); + uri.AppendPath(mobileNetworkName, true); + uri.AppendPath("/dataNetworks/", false); + uri.AppendPath(dataNetworkName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string mobileNetworkName, string dataNetworkName) { var message = _pipeline.CreateMessage(); @@ -203,6 +235,22 @@ public Response Get(string subscriptionId, string resourc } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string mobileNetworkName, string dataNetworkName, MobileDataNetworkData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MobileNetwork/mobileNetworks/", false); + uri.AppendPath(mobileNetworkName, true); + uri.AppendPath("/dataNetworks/", false); + uri.AppendPath(dataNetworkName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string mobileNetworkName, string dataNetworkName, MobileDataNetworkData data) { var message = _pipeline.CreateMessage(); @@ -287,6 +335,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateTagsRequestUri(string subscriptionId, string resourceGroupName, string mobileNetworkName, string dataNetworkName, MobileNetworkTagsPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MobileNetwork/mobileNetworks/", false); + uri.AppendPath(mobileNetworkName, true); + uri.AppendPath("/dataNetworks/", false); + uri.AppendPath(dataNetworkName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateTagsRequest(string subscriptionId, string resourceGroupName, string mobileNetworkName, string dataNetworkName, MobileNetworkTagsPatch patch) { var message = _pipeline.CreateMessage(); @@ -379,6 +443,21 @@ public Response UpdateTags(string subscriptionId, string } } + internal RequestUriBuilder CreateListByMobileNetworkRequestUri(string subscriptionId, string resourceGroupName, string mobileNetworkName) + { + 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.MobileNetwork/mobileNetworks/", false); + uri.AppendPath(mobileNetworkName, true); + uri.AppendPath("/dataNetworks", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByMobileNetworkRequest(string subscriptionId, string resourceGroupName, string mobileNetworkName) { var message = _pipeline.CreateMessage(); @@ -458,6 +537,14 @@ public Response ListByMobileNetwork(string subscriptionId } } + internal RequestUriBuilder CreateListByMobileNetworkNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string mobileNetworkName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByMobileNetworkNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string mobileNetworkName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/RestOperations/DiagnosticsPackagesRestOperations.cs b/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/RestOperations/DiagnosticsPackagesRestOperations.cs index ddb7597a205f..7585b1199fae 100644 --- a/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/RestOperations/DiagnosticsPackagesRestOperations.cs +++ b/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/RestOperations/DiagnosticsPackagesRestOperations.cs @@ -37,6 +37,22 @@ public DiagnosticsPackagesRestOperations(HttpPipeline pipeline, string applicati _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string packetCoreControlPlaneName, string diagnosticsPackageName) + { + 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.MobileNetwork/packetCoreControlPlanes/", false); + uri.AppendPath(packetCoreControlPlaneName, true); + uri.AppendPath("/diagnosticsPackages/", false); + uri.AppendPath(diagnosticsPackageName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string packetCoreControlPlaneName, string diagnosticsPackageName) { var message = _pipeline.CreateMessage(); @@ -113,6 +129,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string packetCoreControlPlaneName, string diagnosticsPackageName) + { + 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.MobileNetwork/packetCoreControlPlanes/", false); + uri.AppendPath(packetCoreControlPlaneName, true); + uri.AppendPath("/diagnosticsPackages/", false); + uri.AppendPath(diagnosticsPackageName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string packetCoreControlPlaneName, string diagnosticsPackageName) { var message = _pipeline.CreateMessage(); @@ -201,6 +233,22 @@ public Response Get(string subscriptionId, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string packetCoreControlPlaneName, string diagnosticsPackageName) + { + 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.MobileNetwork/packetCoreControlPlanes/", false); + uri.AppendPath(packetCoreControlPlaneName, true); + uri.AppendPath("/diagnosticsPackages/", false); + uri.AppendPath(diagnosticsPackageName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string packetCoreControlPlaneName, string diagnosticsPackageName) { var message = _pipeline.CreateMessage(); @@ -279,6 +327,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string p } } + internal RequestUriBuilder CreateListByPacketCoreControlPlaneRequestUri(string subscriptionId, string resourceGroupName, string packetCoreControlPlaneName) + { + 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.MobileNetwork/packetCoreControlPlanes/", false); + uri.AppendPath(packetCoreControlPlaneName, true); + uri.AppendPath("/diagnosticsPackages", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByPacketCoreControlPlaneRequest(string subscriptionId, string resourceGroupName, string packetCoreControlPlaneName) { var message = _pipeline.CreateMessage(); @@ -358,6 +421,14 @@ public Response ListByPacketCoreControlPlane(strin } } + internal RequestUriBuilder CreateListByPacketCoreControlPlaneNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string packetCoreControlPlaneName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByPacketCoreControlPlaneNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string packetCoreControlPlaneName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/RestOperations/MobileNetworksRestOperations.cs b/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/RestOperations/MobileNetworksRestOperations.cs index 51c2eb05a819..2906eb1d85e4 100644 --- a/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/RestOperations/MobileNetworksRestOperations.cs +++ b/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/RestOperations/MobileNetworksRestOperations.cs @@ -37,6 +37,20 @@ public MobileNetworksRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string mobileNetworkName) + { + 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.MobileNetwork/mobileNetworks/", false); + uri.AppendPath(mobileNetworkName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string mobileNetworkName) { var message = _pipeline.CreateMessage(); @@ -109,6 +123,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string m } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string mobileNetworkName) + { + 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.MobileNetwork/mobileNetworks/", false); + uri.AppendPath(mobileNetworkName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string mobileNetworkName) { var message = _pipeline.CreateMessage(); @@ -191,6 +219,20 @@ public Response Get(string subscriptionId, string resourceGro } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string mobileNetworkName, MobileNetworkData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MobileNetwork/mobileNetworks/", false); + uri.AppendPath(mobileNetworkName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string mobileNetworkName, MobileNetworkData data) { var message = _pipeline.CreateMessage(); @@ -269,6 +311,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateTagsRequestUri(string subscriptionId, string resourceGroupName, string mobileNetworkName, MobileNetworkTagsPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MobileNetwork/mobileNetworks/", false); + uri.AppendPath(mobileNetworkName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateTagsRequest(string subscriptionId, string resourceGroupName, string mobileNetworkName, MobileNetworkTagsPatch patch) { var message = _pipeline.CreateMessage(); @@ -355,6 +411,17 @@ public Response UpdateTags(string subscriptionId, string reso } } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.MobileNetwork/mobileNetworks", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -422,6 +489,19 @@ public Response ListBySubscription(string subscriptionI } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.MobileNetwork/mobileNetworks", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -495,6 +575,14 @@ public Response ListByResourceGroup(string subscription } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -563,6 +651,14 @@ public Response ListBySubscriptionNextPage(string nextL } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/RestOperations/PacketCapturesRestOperations.cs b/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/RestOperations/PacketCapturesRestOperations.cs index e8e645cc174b..43628c30f8e2 100644 --- a/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/RestOperations/PacketCapturesRestOperations.cs +++ b/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/RestOperations/PacketCapturesRestOperations.cs @@ -37,6 +37,22 @@ public PacketCapturesRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string packetCoreControlPlaneName, string packetCaptureName, MobileNetworkPacketCaptureData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/", false); + uri.AppendPath(packetCoreControlPlaneName, true); + uri.AppendPath("/packetCaptures/", false); + uri.AppendPath(packetCaptureName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string packetCoreControlPlaneName, string packetCaptureName, MobileNetworkPacketCaptureData data) { var message = _pipeline.CreateMessage(); @@ -121,6 +137,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string packetCoreControlPlaneName, string packetCaptureName) + { + 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.MobileNetwork/packetCoreControlPlanes/", false); + uri.AppendPath(packetCoreControlPlaneName, true); + uri.AppendPath("/packetCaptures/", false); + uri.AppendPath(packetCaptureName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string packetCoreControlPlaneName, string packetCaptureName) { var message = _pipeline.CreateMessage(); @@ -209,6 +241,22 @@ public Response Get(string subscriptionId, strin } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string packetCoreControlPlaneName, string packetCaptureName) + { + 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.MobileNetwork/packetCoreControlPlanes/", false); + uri.AppendPath(packetCoreControlPlaneName, true); + uri.AppendPath("/packetCaptures/", false); + uri.AppendPath(packetCaptureName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string packetCoreControlPlaneName, string packetCaptureName) { var message = _pipeline.CreateMessage(); @@ -287,6 +335,23 @@ public Response Delete(string subscriptionId, string resourceGroupName, string p } } + internal RequestUriBuilder CreateStopRequestUri(string subscriptionId, string resourceGroupName, string packetCoreControlPlaneName, string packetCaptureName) + { + 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.MobileNetwork/packetCoreControlPlanes/", false); + uri.AppendPath(packetCoreControlPlaneName, true); + uri.AppendPath("/packetCaptures/", false); + uri.AppendPath(packetCaptureName, true); + uri.AppendPath("/stop", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStopRequest(string subscriptionId, string resourceGroupName, string packetCoreControlPlaneName, string packetCaptureName) { var message = _pipeline.CreateMessage(); @@ -364,6 +429,21 @@ public Response Stop(string subscriptionId, string resourceGroupName, string pac } } + internal RequestUriBuilder CreateListByPacketCoreControlPlaneRequestUri(string subscriptionId, string resourceGroupName, string packetCoreControlPlaneName) + { + 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.MobileNetwork/packetCoreControlPlanes/", false); + uri.AppendPath(packetCoreControlPlaneName, true); + uri.AppendPath("/packetCaptures", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByPacketCoreControlPlaneRequest(string subscriptionId, string resourceGroupName, string packetCoreControlPlaneName) { var message = _pipeline.CreateMessage(); @@ -443,6 +523,14 @@ public Response ListByPacketCoreControlPlane(string sub } } + internal RequestUriBuilder CreateListByPacketCoreControlPlaneNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string packetCoreControlPlaneName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByPacketCoreControlPlaneNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string packetCoreControlPlaneName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/RestOperations/PacketCoreControlPlaneVersionsRestOperations.cs b/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/RestOperations/PacketCoreControlPlaneVersionsRestOperations.cs index 8020028cb225..5462b3cef7a8 100644 --- a/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/RestOperations/PacketCoreControlPlaneVersionsRestOperations.cs +++ b/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/RestOperations/PacketCoreControlPlaneVersionsRestOperations.cs @@ -37,6 +37,16 @@ public PacketCoreControlPlaneVersionsRestOperations(HttpPipeline pipeline, strin _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string versionName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.MobileNetwork/packetCoreControlPlaneVersions/", false); + uri.AppendPath(versionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string versionName) { var message = _pipeline.CreateMessage(); @@ -107,6 +117,15 @@ public Response Get(string versionName, Cance } } + internal RequestUriBuilder CreateListRequestUri() + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.MobileNetwork/packetCoreControlPlaneVersions", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest() { var message = _pipeline.CreateMessage(); @@ -162,6 +181,18 @@ public Response List(CancellationToken } } + internal RequestUriBuilder CreateGetBySubscriptionRequestUri(string subscriptionId, string versionName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.MobileNetwork/packetCoreControlPlaneVersions/", false); + uri.AppendPath(versionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetBySubscriptionRequest(string subscriptionId, string versionName) { var message = _pipeline.CreateMessage(); @@ -238,6 +269,17 @@ public Response GetBySubscription(string subs } } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.MobileNetwork/packetCoreControlPlaneVersions", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -305,6 +347,14 @@ public Response ListBySubscription(stri } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink) { var message = _pipeline.CreateMessage(); @@ -367,6 +417,14 @@ public Response ListNextPage(string nex } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/RestOperations/PacketCoreControlPlanesRestOperations.cs b/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/RestOperations/PacketCoreControlPlanesRestOperations.cs index 3dc045eaa36e..78f1744495f8 100644 --- a/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/RestOperations/PacketCoreControlPlanesRestOperations.cs +++ b/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/RestOperations/PacketCoreControlPlanesRestOperations.cs @@ -37,6 +37,20 @@ public PacketCoreControlPlanesRestOperations(HttpPipeline pipeline, string appli _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string packetCoreControlPlaneName) + { + 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.MobileNetwork/packetCoreControlPlanes/", false); + uri.AppendPath(packetCoreControlPlaneName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string packetCoreControlPlaneName) { var message = _pipeline.CreateMessage(); @@ -109,6 +123,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string p } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string packetCoreControlPlaneName) + { + 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.MobileNetwork/packetCoreControlPlanes/", false); + uri.AppendPath(packetCoreControlPlaneName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string packetCoreControlPlaneName) { var message = _pipeline.CreateMessage(); @@ -191,6 +219,20 @@ public Response Get(string subscriptionId, string re } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string packetCoreControlPlaneName, PacketCoreControlPlaneData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/", false); + uri.AppendPath(packetCoreControlPlaneName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string packetCoreControlPlaneName, PacketCoreControlPlaneData data) { var message = _pipeline.CreateMessage(); @@ -269,6 +311,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateTagsRequestUri(string subscriptionId, string resourceGroupName, string packetCoreControlPlaneName, MobileNetworkResourcePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/", false); + uri.AppendPath(packetCoreControlPlaneName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateTagsRequest(string subscriptionId, string resourceGroupName, string packetCoreControlPlaneName, MobileNetworkResourcePatch patch) { var message = _pipeline.CreateMessage(); @@ -355,6 +411,17 @@ public Response UpdateTags(string subscriptionId, st } } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.MobileNetwork/packetCoreControlPlanes", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -422,6 +489,19 @@ public Response ListBySubscription(string subs } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.MobileNetwork/packetCoreControlPlanes", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -495,6 +575,21 @@ public Response ListByResourceGroup(string sub } } + internal RequestUriBuilder CreateRollbackRequestUri(string subscriptionId, string resourceGroupName, string packetCoreControlPlaneName) + { + 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.MobileNetwork/packetCoreControlPlanes/", false); + uri.AppendPath(packetCoreControlPlaneName, true); + uri.AppendPath("/rollback", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRollbackRequest(string subscriptionId, string resourceGroupName, string packetCoreControlPlaneName) { var message = _pipeline.CreateMessage(); @@ -566,6 +661,21 @@ public Response Rollback(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreateReinstallRequestUri(string subscriptionId, string resourceGroupName, string packetCoreControlPlaneName) + { + 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.MobileNetwork/packetCoreControlPlanes/", false); + uri.AppendPath(packetCoreControlPlaneName, true); + uri.AppendPath("/reinstall", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateReinstallRequest(string subscriptionId, string resourceGroupName, string packetCoreControlPlaneName) { var message = _pipeline.CreateMessage(); @@ -637,6 +747,21 @@ public Response Reinstall(string subscriptionId, string resourceGroupName, strin } } + internal RequestUriBuilder CreateCollectDiagnosticsPackageRequestUri(string subscriptionId, string resourceGroupName, string packetCoreControlPlaneName, PacketCoreControlPlaneCollectDiagnosticsPackage packetCoreControlPlaneCollectDiagnosticsPackage) + { + 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.MobileNetwork/packetCoreControlPlanes/", false); + uri.AppendPath(packetCoreControlPlaneName, true); + uri.AppendPath("/collectDiagnosticsPackage", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCollectDiagnosticsPackageRequest(string subscriptionId, string resourceGroupName, string packetCoreControlPlaneName, PacketCoreControlPlaneCollectDiagnosticsPackage packetCoreControlPlaneCollectDiagnosticsPackage) { var message = _pipeline.CreateMessage(); @@ -716,6 +841,14 @@ public Response CollectDiagnosticsPackage(string subscriptionId, string resource } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -784,6 +917,14 @@ public Response ListBySubscriptionNextPage(str } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/RestOperations/PacketCoreDataPlanesRestOperations.cs b/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/RestOperations/PacketCoreDataPlanesRestOperations.cs index 2e14a675aa18..29512e121e4d 100644 --- a/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/RestOperations/PacketCoreDataPlanesRestOperations.cs +++ b/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/RestOperations/PacketCoreDataPlanesRestOperations.cs @@ -37,6 +37,22 @@ public PacketCoreDataPlanesRestOperations(HttpPipeline pipeline, string applicat _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string packetCoreControlPlaneName, string packetCoreDataPlaneName) + { + 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.MobileNetwork/packetCoreControlPlanes/", false); + uri.AppendPath(packetCoreControlPlaneName, true); + uri.AppendPath("/packetCoreDataPlanes/", false); + uri.AppendPath(packetCoreDataPlaneName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string packetCoreControlPlaneName, string packetCoreDataPlaneName) { var message = _pipeline.CreateMessage(); @@ -115,6 +131,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string p } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string packetCoreControlPlaneName, string packetCoreDataPlaneName) + { + 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.MobileNetwork/packetCoreControlPlanes/", false); + uri.AppendPath(packetCoreControlPlaneName, true); + uri.AppendPath("/packetCoreDataPlanes/", false); + uri.AppendPath(packetCoreDataPlaneName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string packetCoreControlPlaneName, string packetCoreDataPlaneName) { var message = _pipeline.CreateMessage(); @@ -203,6 +235,22 @@ public Response Get(string subscriptionId, string resou } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string packetCoreControlPlaneName, string packetCoreDataPlaneName, PacketCoreDataPlaneData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/", false); + uri.AppendPath(packetCoreControlPlaneName, true); + uri.AppendPath("/packetCoreDataPlanes/", false); + uri.AppendPath(packetCoreDataPlaneName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string packetCoreControlPlaneName, string packetCoreDataPlaneName, PacketCoreDataPlaneData data) { var message = _pipeline.CreateMessage(); @@ -287,6 +335,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateTagsRequestUri(string subscriptionId, string resourceGroupName, string packetCoreControlPlaneName, string packetCoreDataPlaneName, MobileNetworkTagsPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/", false); + uri.AppendPath(packetCoreControlPlaneName, true); + uri.AppendPath("/packetCoreDataPlanes/", false); + uri.AppendPath(packetCoreDataPlaneName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateTagsRequest(string subscriptionId, string resourceGroupName, string packetCoreControlPlaneName, string packetCoreDataPlaneName, MobileNetworkTagsPatch patch) { var message = _pipeline.CreateMessage(); @@ -379,6 +443,21 @@ public Response UpdateTags(string subscriptionId, strin } } + internal RequestUriBuilder CreateListByPacketCoreControlPlaneRequestUri(string subscriptionId, string resourceGroupName, string packetCoreControlPlaneName) + { + 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.MobileNetwork/packetCoreControlPlanes/", false); + uri.AppendPath(packetCoreControlPlaneName, true); + uri.AppendPath("/packetCoreDataPlanes", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByPacketCoreControlPlaneRequest(string subscriptionId, string resourceGroupName, string packetCoreControlPlaneName) { var message = _pipeline.CreateMessage(); @@ -458,6 +537,14 @@ public Response ListByPacketCoreControlPlane(stri } } + internal RequestUriBuilder CreateListByPacketCoreControlPlaneNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string packetCoreControlPlaneName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByPacketCoreControlPlaneNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string packetCoreControlPlaneName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/RestOperations/ServicesRestOperations.cs b/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/RestOperations/ServicesRestOperations.cs index 4999b42d43f4..b0c95dfaf8fb 100644 --- a/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/RestOperations/ServicesRestOperations.cs +++ b/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/RestOperations/ServicesRestOperations.cs @@ -37,6 +37,22 @@ public ServicesRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string mobileNetworkName, string serviceName) + { + 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.MobileNetwork/mobileNetworks/", false); + uri.AppendPath(mobileNetworkName, true); + uri.AppendPath("/services/", false); + uri.AppendPath(serviceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string mobileNetworkName, string serviceName) { var message = _pipeline.CreateMessage(); @@ -115,6 +131,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string m } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string mobileNetworkName, string serviceName) + { + 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.MobileNetwork/mobileNetworks/", false); + uri.AppendPath(mobileNetworkName, true); + uri.AppendPath("/services/", false); + uri.AppendPath(serviceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string mobileNetworkName, string serviceName) { var message = _pipeline.CreateMessage(); @@ -203,6 +235,22 @@ public Response Get(string subscriptionId, string reso } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string mobileNetworkName, string serviceName, MobileNetworkServiceData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MobileNetwork/mobileNetworks/", false); + uri.AppendPath(mobileNetworkName, true); + uri.AppendPath("/services/", false); + uri.AppendPath(serviceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string mobileNetworkName, string serviceName, MobileNetworkServiceData data) { var message = _pipeline.CreateMessage(); @@ -287,6 +335,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateTagsRequestUri(string subscriptionId, string resourceGroupName, string mobileNetworkName, string serviceName, MobileNetworkTagsPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MobileNetwork/mobileNetworks/", false); + uri.AppendPath(mobileNetworkName, true); + uri.AppendPath("/services/", false); + uri.AppendPath(serviceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateTagsRequest(string subscriptionId, string resourceGroupName, string mobileNetworkName, string serviceName, MobileNetworkTagsPatch patch) { var message = _pipeline.CreateMessage(); @@ -379,6 +443,21 @@ public Response UpdateTags(string subscriptionId, stri } } + internal RequestUriBuilder CreateListByMobileNetworkRequestUri(string subscriptionId, string resourceGroupName, string mobileNetworkName) + { + 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.MobileNetwork/mobileNetworks/", false); + uri.AppendPath(mobileNetworkName, true); + uri.AppendPath("/services", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByMobileNetworkRequest(string subscriptionId, string resourceGroupName, string mobileNetworkName) { var message = _pipeline.CreateMessage(); @@ -458,6 +537,14 @@ public Response ListByMobileNetwork(string subscriptionId, st } } + internal RequestUriBuilder CreateListByMobileNetworkNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string mobileNetworkName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByMobileNetworkNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string mobileNetworkName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/RestOperations/SimGroupsRestOperations.cs b/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/RestOperations/SimGroupsRestOperations.cs index 8441fd60631a..371c9ee4c720 100644 --- a/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/RestOperations/SimGroupsRestOperations.cs +++ b/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/RestOperations/SimGroupsRestOperations.cs @@ -37,6 +37,20 @@ public SimGroupsRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string simGroupName) + { + 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.MobileNetwork/simGroups/", false); + uri.AppendPath(simGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string simGroupName) { var message = _pipeline.CreateMessage(); @@ -109,6 +123,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string simGroupName) + { + 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.MobileNetwork/simGroups/", false); + uri.AppendPath(simGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string simGroupName) { var message = _pipeline.CreateMessage(); @@ -191,6 +219,20 @@ public Response Get(string subscriptionId, string res } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string simGroupName, MobileNetworkSimGroupData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MobileNetwork/simGroups/", false); + uri.AppendPath(simGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string simGroupName, MobileNetworkSimGroupData data) { var message = _pipeline.CreateMessage(); @@ -269,6 +311,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateTagsRequestUri(string subscriptionId, string resourceGroupName, string simGroupName, MobileNetworkResourcePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MobileNetwork/simGroups/", false); + uri.AppendPath(simGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateTagsRequest(string subscriptionId, string resourceGroupName, string simGroupName, MobileNetworkResourcePatch patch) { var message = _pipeline.CreateMessage(); @@ -355,6 +411,17 @@ public Response UpdateTags(string subscriptionId, str } } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.MobileNetwork/simGroups", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -422,6 +489,19 @@ public Response ListBySubscription(string subscriptionId, Ca } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.MobileNetwork/simGroups", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -495,6 +575,14 @@ public Response ListByResourceGroup(string subscriptionId, s } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -563,6 +651,14 @@ public Response ListBySubscriptionNextPage(string nextLink, } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/RestOperations/SimPoliciesRestOperations.cs b/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/RestOperations/SimPoliciesRestOperations.cs index 6e9bd865f457..2fd30e03175d 100644 --- a/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/RestOperations/SimPoliciesRestOperations.cs +++ b/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/RestOperations/SimPoliciesRestOperations.cs @@ -37,6 +37,22 @@ public SimPoliciesRestOperations(HttpPipeline pipeline, string applicationId, Ur _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string mobileNetworkName, string simPolicyName) + { + 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.MobileNetwork/mobileNetworks/", false); + uri.AppendPath(mobileNetworkName, true); + uri.AppendPath("/simPolicies/", false); + uri.AppendPath(simPolicyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string mobileNetworkName, string simPolicyName) { var message = _pipeline.CreateMessage(); @@ -115,6 +131,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string m } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string mobileNetworkName, string simPolicyName) + { + 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.MobileNetwork/mobileNetworks/", false); + uri.AppendPath(mobileNetworkName, true); + uri.AppendPath("/simPolicies/", false); + uri.AppendPath(simPolicyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string mobileNetworkName, string simPolicyName) { var message = _pipeline.CreateMessage(); @@ -203,6 +235,22 @@ public Response Get(string subscriptionId, string re } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string mobileNetworkName, string simPolicyName, MobileNetworkSimPolicyData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MobileNetwork/mobileNetworks/", false); + uri.AppendPath(mobileNetworkName, true); + uri.AppendPath("/simPolicies/", false); + uri.AppendPath(simPolicyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string mobileNetworkName, string simPolicyName, MobileNetworkSimPolicyData data) { var message = _pipeline.CreateMessage(); @@ -287,6 +335,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateTagsRequestUri(string subscriptionId, string resourceGroupName, string mobileNetworkName, string simPolicyName, MobileNetworkTagsPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MobileNetwork/mobileNetworks/", false); + uri.AppendPath(mobileNetworkName, true); + uri.AppendPath("/simPolicies/", false); + uri.AppendPath(simPolicyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateTagsRequest(string subscriptionId, string resourceGroupName, string mobileNetworkName, string simPolicyName, MobileNetworkTagsPatch patch) { var message = _pipeline.CreateMessage(); @@ -379,6 +443,21 @@ public Response UpdateTags(string subscriptionId, st } } + internal RequestUriBuilder CreateListByMobileNetworkRequestUri(string subscriptionId, string resourceGroupName, string mobileNetworkName) + { + 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.MobileNetwork/mobileNetworks/", false); + uri.AppendPath(mobileNetworkName, true); + uri.AppendPath("/simPolicies", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByMobileNetworkRequest(string subscriptionId, string resourceGroupName, string mobileNetworkName) { var message = _pipeline.CreateMessage(); @@ -458,6 +537,14 @@ public Response ListByMobileNetwork(string subscriptionId, } } + internal RequestUriBuilder CreateListByMobileNetworkNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string mobileNetworkName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByMobileNetworkNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string mobileNetworkName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/RestOperations/SimsRestOperations.cs b/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/RestOperations/SimsRestOperations.cs index e500597baea2..71fdc8b0e72f 100644 --- a/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/RestOperations/SimsRestOperations.cs +++ b/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/RestOperations/SimsRestOperations.cs @@ -37,6 +37,22 @@ public SimsRestOperations(HttpPipeline pipeline, string applicationId, Uri endpo _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string simGroupName, string simName) + { + 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.MobileNetwork/simGroups/", false); + uri.AppendPath(simGroupName, true); + uri.AppendPath("/sims/", false); + uri.AppendPath(simName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string simGroupName, string simName) { var message = _pipeline.CreateMessage(); @@ -115,6 +131,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string simGroupName, string simName) + { + 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.MobileNetwork/simGroups/", false); + uri.AppendPath(simGroupName, true); + uri.AppendPath("/sims/", false); + uri.AppendPath(simName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string simGroupName, string simName) { var message = _pipeline.CreateMessage(); @@ -203,6 +235,22 @@ public Response Get(string subscriptionId, string resource } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string simGroupName, string simName, MobileNetworkSimData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MobileNetwork/simGroups/", false); + uri.AppendPath(simGroupName, true); + uri.AppendPath("/sims/", false); + uri.AppendPath(simName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string simGroupName, string simName, MobileNetworkSimData data) { var message = _pipeline.CreateMessage(); @@ -287,6 +335,21 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateListByGroupRequestUri(string subscriptionId, string resourceGroupName, string simGroupName) + { + 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.MobileNetwork/simGroups/", false); + uri.AppendPath(simGroupName, true); + uri.AppendPath("/sims", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByGroupRequest(string subscriptionId, string resourceGroupName, string simGroupName) { var message = _pipeline.CreateMessage(); @@ -366,6 +429,21 @@ public Response ListByGroup(string subscriptionId, string resourc } } + internal RequestUriBuilder CreateBulkUploadRequestUri(string subscriptionId, string resourceGroupName, string simGroupName, SimUploadList simUploadList) + { + 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.MobileNetwork/simGroups/", false); + uri.AppendPath(simGroupName, true); + uri.AppendPath("/uploadSims", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateBulkUploadRequest(string subscriptionId, string resourceGroupName, string simGroupName, SimUploadList simUploadList) { var message = _pipeline.CreateMessage(); @@ -445,6 +523,21 @@ public Response BulkUpload(string subscriptionId, string resourceGroupName, stri } } + internal RequestUriBuilder CreateBulkDeleteRequestUri(string subscriptionId, string resourceGroupName, string simGroupName, SimDeleteList simDeleteList) + { + 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.MobileNetwork/simGroups/", false); + uri.AppendPath(simGroupName, true); + uri.AppendPath("/deleteSims", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateBulkDeleteRequest(string subscriptionId, string resourceGroupName, string simGroupName, SimDeleteList simDeleteList) { var message = _pipeline.CreateMessage(); @@ -526,6 +619,21 @@ public Response BulkDelete(string subscriptionId, string resourceGroupName, stri } } + internal RequestUriBuilder CreateBulkUploadEncryptedRequestUri(string subscriptionId, string resourceGroupName, string simGroupName, EncryptedSimUploadList encryptedSimUploadList) + { + 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.MobileNetwork/simGroups/", false); + uri.AppendPath(simGroupName, true); + uri.AppendPath("/uploadEncryptedSims", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateBulkUploadEncryptedRequest(string subscriptionId, string resourceGroupName, string simGroupName, EncryptedSimUploadList encryptedSimUploadList) { var message = _pipeline.CreateMessage(); @@ -605,6 +713,14 @@ public Response BulkUploadEncrypted(string subscriptionId, string resourceGroupN } } + internal RequestUriBuilder CreateListByGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string simGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string simGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/RestOperations/SitesRestOperations.cs b/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/RestOperations/SitesRestOperations.cs index 055167c6df5c..6b7b4fb1a1ef 100644 --- a/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/RestOperations/SitesRestOperations.cs +++ b/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/RestOperations/SitesRestOperations.cs @@ -37,6 +37,22 @@ public SitesRestOperations(HttpPipeline pipeline, string applicationId, Uri endp _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string mobileNetworkName, string siteName) + { + 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.MobileNetwork/mobileNetworks/", false); + uri.AppendPath(mobileNetworkName, true); + uri.AppendPath("/sites/", false); + uri.AppendPath(siteName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string mobileNetworkName, string siteName) { var message = _pipeline.CreateMessage(); @@ -115,6 +131,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string m } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string mobileNetworkName, string siteName) + { + 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.MobileNetwork/mobileNetworks/", false); + uri.AppendPath(mobileNetworkName, true); + uri.AppendPath("/sites/", false); + uri.AppendPath(siteName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string mobileNetworkName, string siteName) { var message = _pipeline.CreateMessage(); @@ -203,6 +235,22 @@ public Response Get(string subscriptionId, string resourc } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string mobileNetworkName, string siteName, MobileNetworkSiteData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MobileNetwork/mobileNetworks/", false); + uri.AppendPath(mobileNetworkName, true); + uri.AppendPath("/sites/", false); + uri.AppendPath(siteName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string mobileNetworkName, string siteName, MobileNetworkSiteData data) { var message = _pipeline.CreateMessage(); @@ -287,6 +335,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateTagsRequestUri(string subscriptionId, string resourceGroupName, string mobileNetworkName, string siteName, MobileNetworkTagsPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MobileNetwork/mobileNetworks/", false); + uri.AppendPath(mobileNetworkName, true); + uri.AppendPath("/sites/", false); + uri.AppendPath(siteName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateTagsRequest(string subscriptionId, string resourceGroupName, string mobileNetworkName, string siteName, MobileNetworkTagsPatch patch) { var message = _pipeline.CreateMessage(); @@ -379,6 +443,21 @@ public Response UpdateTags(string subscriptionId, string } } + internal RequestUriBuilder CreateListByMobileNetworkRequestUri(string subscriptionId, string resourceGroupName, string mobileNetworkName) + { + 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.MobileNetwork/mobileNetworks/", false); + uri.AppendPath(mobileNetworkName, true); + uri.AppendPath("/sites", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByMobileNetworkRequest(string subscriptionId, string resourceGroupName, string mobileNetworkName) { var message = _pipeline.CreateMessage(); @@ -458,6 +537,23 @@ public Response ListByMobileNetwork(string subscriptionId, strin } } + internal RequestUriBuilder CreateDeletePacketCoreRequestUri(string subscriptionId, string resourceGroupName, string mobileNetworkName, string siteName, SiteDeletePacketCore siteDeletePacketCore) + { + 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.MobileNetwork/mobileNetworks/", false); + uri.AppendPath(mobileNetworkName, true); + uri.AppendPath("/sites/", false); + uri.AppendPath(siteName, true); + uri.AppendPath("/deletePacketCore", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeletePacketCoreRequest(string subscriptionId, string resourceGroupName, string mobileNetworkName, string siteName, SiteDeletePacketCore siteDeletePacketCore) { var message = _pipeline.CreateMessage(); @@ -543,6 +639,14 @@ public Response DeletePacketCore(string subscriptionId, string resourceGroupName } } + internal RequestUriBuilder CreateListByMobileNetworkNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string mobileNetworkName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByMobileNetworkNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string mobileNetworkName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/RestOperations/SlicesRestOperations.cs b/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/RestOperations/SlicesRestOperations.cs index 8cbe399ea24b..991d3150eacd 100644 --- a/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/RestOperations/SlicesRestOperations.cs +++ b/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/RestOperations/SlicesRestOperations.cs @@ -37,6 +37,22 @@ public SlicesRestOperations(HttpPipeline pipeline, string applicationId, Uri end _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string mobileNetworkName, string sliceName) + { + 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.MobileNetwork/mobileNetworks/", false); + uri.AppendPath(mobileNetworkName, true); + uri.AppendPath("/slices/", false); + uri.AppendPath(sliceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string mobileNetworkName, string sliceName) { var message = _pipeline.CreateMessage(); @@ -115,6 +131,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string m } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string mobileNetworkName, string sliceName) + { + 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.MobileNetwork/mobileNetworks/", false); + uri.AppendPath(mobileNetworkName, true); + uri.AppendPath("/slices/", false); + uri.AppendPath(sliceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string mobileNetworkName, string sliceName) { var message = _pipeline.CreateMessage(); @@ -203,6 +235,22 @@ public Response Get(string subscriptionId, string resour } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string mobileNetworkName, string sliceName, MobileNetworkSliceData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MobileNetwork/mobileNetworks/", false); + uri.AppendPath(mobileNetworkName, true); + uri.AppendPath("/slices/", false); + uri.AppendPath(sliceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string mobileNetworkName, string sliceName, MobileNetworkSliceData data) { var message = _pipeline.CreateMessage(); @@ -287,6 +335,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateTagsRequestUri(string subscriptionId, string resourceGroupName, string mobileNetworkName, string sliceName, MobileNetworkTagsPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.MobileNetwork/mobileNetworks/", false); + uri.AppendPath(mobileNetworkName, true); + uri.AppendPath("/slices/", false); + uri.AppendPath(sliceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateTagsRequest(string subscriptionId, string resourceGroupName, string mobileNetworkName, string sliceName, MobileNetworkTagsPatch patch) { var message = _pipeline.CreateMessage(); @@ -379,6 +443,21 @@ public Response UpdateTags(string subscriptionId, string } } + internal RequestUriBuilder CreateListByMobileNetworkRequestUri(string subscriptionId, string resourceGroupName, string mobileNetworkName) + { + 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.MobileNetwork/mobileNetworks/", false); + uri.AppendPath(mobileNetworkName, true); + uri.AppendPath("/slices", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByMobileNetworkRequest(string subscriptionId, string resourceGroupName, string mobileNetworkName) { var message = _pipeline.CreateMessage(); @@ -458,6 +537,14 @@ public Response ListByMobileNetwork(string subscriptionId, stri } } + internal RequestUriBuilder CreateListByMobileNetworkNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string mobileNetworkName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByMobileNetworkNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string mobileNetworkName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/ActionGroupCollection.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/ActionGroupCollection.cs index e6008c72ce39..16647ad052ab 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/ActionGroupCollection.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/ActionGroupCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> CreateOrUpdateAsync try { var response = await _actionGroupRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, actionGroupName, data, cancellationToken).ConfigureAwait(false); - var operation = new MonitorArmOperation(Response.FromValue(new ActionGroupResource(Client, response), response.GetRawResponse())); + var uri = _actionGroupRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, actionGroupName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MonitorArmOperation(Response.FromValue(new ActionGroupResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -140,7 +142,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUn try { var response = _actionGroupRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, actionGroupName, data, cancellationToken); - var operation = new MonitorArmOperation(Response.FromValue(new ActionGroupResource(Client, response), response.GetRawResponse())); + var uri = _actionGroupRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, actionGroupName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MonitorArmOperation(Response.FromValue(new ActionGroupResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/ActionGroupResource.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/ActionGroupResource.cs index 70e8a58f4455..b3a93a9ac7ba 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/ActionGroupResource.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/ActionGroupResource.cs @@ -202,7 +202,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _actionGroupRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new MonitorArmOperation(response); + var uri = _actionGroupRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MonitorArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -244,7 +246,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _actionGroupRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); - var operation = new MonitorArmOperation(response); + var uri = _actionGroupRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MonitorArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/ActivityLogAlertCollection.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/ActivityLogAlertCollection.cs index 1ca6ea2351a6..2b9315545cbb 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/ActivityLogAlertCollection.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/ActivityLogAlertCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> CreateOrUpdate try { var response = await _activityLogAlertRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, activityLogAlertName, data, cancellationToken).ConfigureAwait(false); - var operation = new MonitorArmOperation(Response.FromValue(new ActivityLogAlertResource(Client, response), response.GetRawResponse())); + var uri = _activityLogAlertRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, activityLogAlertName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MonitorArmOperation(Response.FromValue(new ActivityLogAlertResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -140,7 +142,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil w try { var response = _activityLogAlertRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, activityLogAlertName, data, cancellationToken); - var operation = new MonitorArmOperation(Response.FromValue(new ActivityLogAlertResource(Client, response), response.GetRawResponse())); + var uri = _activityLogAlertRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, activityLogAlertName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MonitorArmOperation(Response.FromValue(new ActivityLogAlertResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/ActivityLogAlertResource.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/ActivityLogAlertResource.cs index 69f3caa66644..bba98180ac73 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/ActivityLogAlertResource.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/ActivityLogAlertResource.cs @@ -202,7 +202,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _activityLogAlertRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new MonitorArmOperation(response); + var uri = _activityLogAlertRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MonitorArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -244,7 +246,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _activityLogAlertRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); - var operation = new MonitorArmOperation(response); + var uri = _activityLogAlertRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MonitorArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/AlertRuleCollection.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/AlertRuleCollection.cs index 00f1939d092b..41f0c95853ab 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/AlertRuleCollection.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/AlertRuleCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> CreateOrUpdateAsync(W try { var response = await _alertRuleRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, ruleName, data, cancellationToken).ConfigureAwait(false); - var operation = new MonitorArmOperation(Response.FromValue(new AlertRuleResource(Client, response), response.GetRawResponse())); + var uri = _alertRuleRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, ruleName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MonitorArmOperation(Response.FromValue(new AlertRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -140,7 +142,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUnti try { var response = _alertRuleRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, ruleName, data, cancellationToken); - var operation = new MonitorArmOperation(Response.FromValue(new AlertRuleResource(Client, response), response.GetRawResponse())); + var uri = _alertRuleRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, ruleName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MonitorArmOperation(Response.FromValue(new AlertRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/AlertRuleResource.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/AlertRuleResource.cs index 2c1c0629a6a0..e22dab486da1 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/AlertRuleResource.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/AlertRuleResource.cs @@ -207,7 +207,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _alertRuleRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new MonitorArmOperation(response); + var uri = _alertRuleRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MonitorArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -249,7 +251,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _alertRuleRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); - var operation = new MonitorArmOperation(response); + var uri = _alertRuleRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MonitorArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/AutoscaleSettingCollection.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/AutoscaleSettingCollection.cs index dbe282bd4eef..888fbb4d606c 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/AutoscaleSettingCollection.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/AutoscaleSettingCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> CreateOrUpdate try { var response = await _autoscaleSettingRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, autoscaleSettingName, data, cancellationToken).ConfigureAwait(false); - var operation = new MonitorArmOperation(Response.FromValue(new AutoscaleSettingResource(Client, response), response.GetRawResponse())); + var uri = _autoscaleSettingRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, autoscaleSettingName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MonitorArmOperation(Response.FromValue(new AutoscaleSettingResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -140,7 +142,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil w try { var response = _autoscaleSettingRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, autoscaleSettingName, data, cancellationToken); - var operation = new MonitorArmOperation(Response.FromValue(new AutoscaleSettingResource(Client, response), response.GetRawResponse())); + var uri = _autoscaleSettingRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, autoscaleSettingName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MonitorArmOperation(Response.FromValue(new AutoscaleSettingResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/AutoscaleSettingResource.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/AutoscaleSettingResource.cs index bbf118a51194..3d1096013b90 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/AutoscaleSettingResource.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/AutoscaleSettingResource.cs @@ -206,7 +206,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _autoscaleSettingRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new MonitorArmOperation(response); + var uri = _autoscaleSettingRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MonitorArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -248,7 +250,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _autoscaleSettingRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); - var operation = new MonitorArmOperation(response); + var uri = _autoscaleSettingRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MonitorArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/DataCollectionEndpointCollection.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/DataCollectionEndpointCollection.cs index aeaa3a6d5d5b..09ec732f2c51 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/DataCollectionEndpointCollection.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/DataCollectionEndpointCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> CreateOr try { var response = await _dataCollectionEndpointRestClient.CreateAsync(Id.SubscriptionId, Id.ResourceGroupName, dataCollectionEndpointName, data, cancellationToken).ConfigureAwait(false); - var operation = new MonitorArmOperation(Response.FromValue(new DataCollectionEndpointResource(Client, response), response.GetRawResponse())); + var uri = _dataCollectionEndpointRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, dataCollectionEndpointName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MonitorArmOperation(Response.FromValue(new DataCollectionEndpointResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -140,7 +142,9 @@ public virtual ArmOperation CreateOrUpdate(WaitU try { var response = _dataCollectionEndpointRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, dataCollectionEndpointName, data, cancellationToken); - var operation = new MonitorArmOperation(Response.FromValue(new DataCollectionEndpointResource(Client, response), response.GetRawResponse())); + var uri = _dataCollectionEndpointRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, dataCollectionEndpointName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MonitorArmOperation(Response.FromValue(new DataCollectionEndpointResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/DataCollectionEndpointResource.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/DataCollectionEndpointResource.cs index 37677cdefd77..37122279975f 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/DataCollectionEndpointResource.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/DataCollectionEndpointResource.cs @@ -208,7 +208,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _dataCollectionEndpointRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new MonitorArmOperation(response); + var uri = _dataCollectionEndpointRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MonitorArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -250,7 +252,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _dataCollectionEndpointRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); - var operation = new MonitorArmOperation(response); + var uri = _dataCollectionEndpointRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MonitorArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/DataCollectionRuleAssociationCollection.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/DataCollectionRuleAssociationCollection.cs index 7bcc8ec94029..b91c1394792f 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/DataCollectionRuleAssociationCollection.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/DataCollectionRuleAssociationCollection.cs @@ -80,7 +80,9 @@ public virtual async Task> C try { var response = await _dataCollectionRuleAssociationRestClient.CreateAsync(Id, associationName, data, cancellationToken).ConfigureAwait(false); - var operation = new MonitorArmOperation(Response.FromValue(new DataCollectionRuleAssociationResource(Client, response), response.GetRawResponse())); + var uri = _dataCollectionRuleAssociationRestClient.CreateCreateRequestUri(Id, associationName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MonitorArmOperation(Response.FromValue(new DataCollectionRuleAssociationResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -129,7 +131,9 @@ public virtual ArmOperation CreateOrUpdat try { var response = _dataCollectionRuleAssociationRestClient.Create(Id, associationName, data, cancellationToken); - var operation = new MonitorArmOperation(Response.FromValue(new DataCollectionRuleAssociationResource(Client, response), response.GetRawResponse())); + var uri = _dataCollectionRuleAssociationRestClient.CreateCreateRequestUri(Id, associationName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MonitorArmOperation(Response.FromValue(new DataCollectionRuleAssociationResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/DataCollectionRuleAssociationResource.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/DataCollectionRuleAssociationResource.cs index cf3df9ad468d..e5c6b1c637c4 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/DataCollectionRuleAssociationResource.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/DataCollectionRuleAssociationResource.cs @@ -198,7 +198,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _dataCollectionRuleAssociationRestClient.DeleteAsync(Id.Parent, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new MonitorArmOperation(response); + var uri = _dataCollectionRuleAssociationRestClient.CreateDeleteRequestUri(Id.Parent, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MonitorArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -240,7 +242,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _dataCollectionRuleAssociationRestClient.Delete(Id.Parent, Id.Name, cancellationToken); - var operation = new MonitorArmOperation(response); + var uri = _dataCollectionRuleAssociationRestClient.CreateDeleteRequestUri(Id.Parent, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MonitorArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -286,7 +290,9 @@ public virtual async Task> U try { var response = await _dataCollectionRuleAssociationRestClient.CreateAsync(Id.Parent, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new MonitorArmOperation(Response.FromValue(new DataCollectionRuleAssociationResource(Client, response), response.GetRawResponse())); + var uri = _dataCollectionRuleAssociationRestClient.CreateCreateRequestUri(Id.Parent, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MonitorArmOperation(Response.FromValue(new DataCollectionRuleAssociationResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -332,7 +338,9 @@ public virtual ArmOperation Update(WaitUn try { var response = _dataCollectionRuleAssociationRestClient.Create(Id.Parent, Id.Name, data, cancellationToken); - var operation = new MonitorArmOperation(Response.FromValue(new DataCollectionRuleAssociationResource(Client, response), response.GetRawResponse())); + var uri = _dataCollectionRuleAssociationRestClient.CreateCreateRequestUri(Id.Parent, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MonitorArmOperation(Response.FromValue(new DataCollectionRuleAssociationResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/DataCollectionRuleCollection.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/DataCollectionRuleCollection.cs index da1cccf672f9..677ecfdc0477 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/DataCollectionRuleCollection.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/DataCollectionRuleCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> CreateOrUpda try { var response = await _dataCollectionRuleRestClient.CreateAsync(Id.SubscriptionId, Id.ResourceGroupName, dataCollectionRuleName, data, cancellationToken).ConfigureAwait(false); - var operation = new MonitorArmOperation(Response.FromValue(new DataCollectionRuleResource(Client, response), response.GetRawResponse())); + var uri = _dataCollectionRuleRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, dataCollectionRuleName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MonitorArmOperation(Response.FromValue(new DataCollectionRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -140,7 +142,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil try { var response = _dataCollectionRuleRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, dataCollectionRuleName, data, cancellationToken); - var operation = new MonitorArmOperation(Response.FromValue(new DataCollectionRuleResource(Client, response), response.GetRawResponse())); + var uri = _dataCollectionRuleRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, dataCollectionRuleName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MonitorArmOperation(Response.FromValue(new DataCollectionRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/DataCollectionRuleResource.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/DataCollectionRuleResource.cs index c9c1d0772516..7b847c0ad31c 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/DataCollectionRuleResource.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/DataCollectionRuleResource.cs @@ -208,7 +208,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _dataCollectionRuleRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new MonitorArmOperation(response); + var uri = _dataCollectionRuleRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MonitorArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -250,7 +252,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _dataCollectionRuleRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); - var operation = new MonitorArmOperation(response); + var uri = _dataCollectionRuleRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MonitorArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/DiagnosticSettingCollection.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/DiagnosticSettingCollection.cs index 2cb49cc042d2..3267d13872cd 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/DiagnosticSettingCollection.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/DiagnosticSettingCollection.cs @@ -80,7 +80,9 @@ public virtual async Task> CreateOrUpdat try { var response = await _diagnosticSettingRestClient.CreateOrUpdateAsync(Id, name, data, cancellationToken).ConfigureAwait(false); - var operation = new MonitorArmOperation(Response.FromValue(new DiagnosticSettingResource(Client, response), response.GetRawResponse())); + var uri = _diagnosticSettingRestClient.CreateCreateOrUpdateRequestUri(Id, name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MonitorArmOperation(Response.FromValue(new DiagnosticSettingResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -129,7 +131,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil try { var response = _diagnosticSettingRestClient.CreateOrUpdate(Id, name, data, cancellationToken); - var operation = new MonitorArmOperation(Response.FromValue(new DiagnosticSettingResource(Client, response), response.GetRawResponse())); + var uri = _diagnosticSettingRestClient.CreateCreateOrUpdateRequestUri(Id, name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MonitorArmOperation(Response.FromValue(new DiagnosticSettingResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/DiagnosticSettingResource.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/DiagnosticSettingResource.cs index 91c50eabe28a..9ca2ecf2365d 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/DiagnosticSettingResource.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/DiagnosticSettingResource.cs @@ -198,7 +198,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _diagnosticSettingRestClient.DeleteAsync(Id.Parent, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new MonitorArmOperation(response); + var uri = _diagnosticSettingRestClient.CreateDeleteRequestUri(Id.Parent, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MonitorArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -240,7 +242,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _diagnosticSettingRestClient.Delete(Id.Parent, Id.Name, cancellationToken); - var operation = new MonitorArmOperation(response); + var uri = _diagnosticSettingRestClient.CreateDeleteRequestUri(Id.Parent, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MonitorArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -286,7 +290,9 @@ public virtual async Task> UpdateAsync(W try { var response = await _diagnosticSettingRestClient.CreateOrUpdateAsync(Id.Parent, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new MonitorArmOperation(Response.FromValue(new DiagnosticSettingResource(Client, response), response.GetRawResponse())); + var uri = _diagnosticSettingRestClient.CreateCreateOrUpdateRequestUri(Id.Parent, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MonitorArmOperation(Response.FromValue(new DiagnosticSettingResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -332,7 +338,9 @@ public virtual ArmOperation Update(WaitUntil waitUnti try { var response = _diagnosticSettingRestClient.CreateOrUpdate(Id.Parent, Id.Name, data, cancellationToken); - var operation = new MonitorArmOperation(Response.FromValue(new DiagnosticSettingResource(Client, response), response.GetRawResponse())); + var uri = _diagnosticSettingRestClient.CreateCreateOrUpdateRequestUri(Id.Parent, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MonitorArmOperation(Response.FromValue(new DiagnosticSettingResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/LogProfileCollection.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/LogProfileCollection.cs index dc87828443df..ed7c06d3414f 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/LogProfileCollection.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/LogProfileCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> CreateOrUpdateAsync( try { var response = await _logProfileRestClient.CreateOrUpdateAsync(Id.SubscriptionId, logProfileName, data, cancellationToken).ConfigureAwait(false); - var operation = new MonitorArmOperation(Response.FromValue(new LogProfileResource(Client, response), response.GetRawResponse())); + var uri = _logProfileRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, logProfileName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MonitorArmOperation(Response.FromValue(new LogProfileResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -140,7 +142,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUnt try { var response = _logProfileRestClient.CreateOrUpdate(Id.SubscriptionId, logProfileName, data, cancellationToken); - var operation = new MonitorArmOperation(Response.FromValue(new LogProfileResource(Client, response), response.GetRawResponse())); + var uri = _logProfileRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, logProfileName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MonitorArmOperation(Response.FromValue(new LogProfileResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/LogProfileResource.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/LogProfileResource.cs index c425a203cfdb..3dd270c16aad 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/LogProfileResource.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/LogProfileResource.cs @@ -201,7 +201,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _logProfileRestClient.DeleteAsync(Id.SubscriptionId, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new MonitorArmOperation(response); + var uri = _logProfileRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MonitorArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -243,7 +245,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _logProfileRestClient.Delete(Id.SubscriptionId, Id.Name, cancellationToken); - var operation = new MonitorArmOperation(response); + var uri = _logProfileRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MonitorArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/LongRunningOperation/MonitorArmOperation.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/LongRunningOperation/MonitorArmOperation.cs index 5338f391fd1a..1e3e650abc9d 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/LongRunningOperation/MonitorArmOperation.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/LongRunningOperation/MonitorArmOperation.cs @@ -20,21 +20,24 @@ internal class MonitorArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of MonitorArmOperation for mocking. protected MonitorArmOperation() { } - internal MonitorArmOperation(Response response) + internal MonitorArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal MonitorArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "MonitorArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal MonitorArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline p public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/LongRunningOperation/MonitorArmOperationOfT.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/LongRunningOperation/MonitorArmOperationOfT.cs index 18746f02f8c4..b394e23cf30a 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/LongRunningOperation/MonitorArmOperationOfT.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/LongRunningOperation/MonitorArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class MonitorArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of MonitorArmOperation for mocking. protected MonitorArmOperation() { } - internal MonitorArmOperation(Response response) + internal MonitorArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal MonitorArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "MonitorArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal MonitorArmOperation(IOperationSource source, ClientDiagnostics clien public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/MetricAlertCollection.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/MetricAlertCollection.cs index e44e99e03ff4..ed83f107e732 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/MetricAlertCollection.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/MetricAlertCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> CreateOrUpdateAsync try { var response = await _metricAlertRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, ruleName, data, cancellationToken).ConfigureAwait(false); - var operation = new MonitorArmOperation(Response.FromValue(new MetricAlertResource(Client, response), response.GetRawResponse())); + var uri = _metricAlertRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, ruleName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MonitorArmOperation(Response.FromValue(new MetricAlertResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -140,7 +142,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUn try { var response = _metricAlertRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, ruleName, data, cancellationToken); - var operation = new MonitorArmOperation(Response.FromValue(new MetricAlertResource(Client, response), response.GetRawResponse())); + var uri = _metricAlertRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, ruleName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MonitorArmOperation(Response.FromValue(new MetricAlertResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/MetricAlertResource.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/MetricAlertResource.cs index 6a75980a5548..481a505a0e8d 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/MetricAlertResource.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/MetricAlertResource.cs @@ -207,7 +207,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _metricAlertRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new MonitorArmOperation(response); + var uri = _metricAlertRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MonitorArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -249,7 +251,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _metricAlertRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); - var operation = new MonitorArmOperation(response); + var uri = _metricAlertRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MonitorArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/ActionGroupResource.Serialization.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/ActionGroupResource.Serialization.cs new file mode 100644 index 000000000000..2fc30425f4d2 --- /dev/null +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/ActionGroupResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Monitor +{ + public partial class ActionGroupResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ActionGroupData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ActionGroupData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/ActivityLogAlertResource.Serialization.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/ActivityLogAlertResource.Serialization.cs new file mode 100644 index 000000000000..8921bed428a1 --- /dev/null +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/ActivityLogAlertResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Monitor +{ + public partial class ActivityLogAlertResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ActivityLogAlertData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ActivityLogAlertData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/AlertRuleResource.Serialization.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/AlertRuleResource.Serialization.cs new file mode 100644 index 000000000000..3bd2b3d41fe8 --- /dev/null +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/AlertRuleResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Monitor +{ + public partial class AlertRuleResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + AlertRuleData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + AlertRuleData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/AutoscaleSettingResource.Serialization.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/AutoscaleSettingResource.Serialization.cs new file mode 100644 index 000000000000..7b28a44383df --- /dev/null +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/AutoscaleSettingResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Monitor +{ + public partial class AutoscaleSettingResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + AutoscaleSettingData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + AutoscaleSettingData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/DataCollectionEndpointResource.Serialization.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/DataCollectionEndpointResource.Serialization.cs new file mode 100644 index 000000000000..4f88cc9dbef1 --- /dev/null +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/DataCollectionEndpointResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Monitor +{ + public partial class DataCollectionEndpointResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DataCollectionEndpointData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DataCollectionEndpointData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/DataCollectionRuleAssociationResource.Serialization.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/DataCollectionRuleAssociationResource.Serialization.cs new file mode 100644 index 000000000000..076aa4ccab7b --- /dev/null +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/DataCollectionRuleAssociationResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Monitor +{ + public partial class DataCollectionRuleAssociationResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DataCollectionRuleAssociationData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DataCollectionRuleAssociationData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/DataCollectionRuleResource.Serialization.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/DataCollectionRuleResource.Serialization.cs new file mode 100644 index 000000000000..98c4032ce9ea --- /dev/null +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/DataCollectionRuleResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Monitor +{ + public partial class DataCollectionRuleResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DataCollectionRuleData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DataCollectionRuleData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/DiagnosticSettingResource.Serialization.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/DiagnosticSettingResource.Serialization.cs new file mode 100644 index 000000000000..e666294f102a --- /dev/null +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/DiagnosticSettingResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Monitor +{ + public partial class DiagnosticSettingResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DiagnosticSettingData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DiagnosticSettingData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/DiagnosticSettingsCategoryResource.Serialization.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/DiagnosticSettingsCategoryResource.Serialization.cs new file mode 100644 index 000000000000..f22921a613c8 --- /dev/null +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/DiagnosticSettingsCategoryResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Monitor +{ + public partial class DiagnosticSettingsCategoryResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DiagnosticSettingsCategoryData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DiagnosticSettingsCategoryData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/LogProfileResource.Serialization.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/LogProfileResource.Serialization.cs new file mode 100644 index 000000000000..a6c4c748d4e5 --- /dev/null +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/LogProfileResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Monitor +{ + public partial class LogProfileResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + LogProfileData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + LogProfileData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MetricAlertResource.Serialization.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MetricAlertResource.Serialization.cs new file mode 100644 index 000000000000..e9e81962bee0 --- /dev/null +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MetricAlertResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Monitor +{ + public partial class MetricAlertResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MetricAlertData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MetricAlertData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MonitorPrivateEndpointConnectionResource.Serialization.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MonitorPrivateEndpointConnectionResource.Serialization.cs new file mode 100644 index 000000000000..d80196d8ca9a --- /dev/null +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MonitorPrivateEndpointConnectionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Monitor +{ + public partial class MonitorPrivateEndpointConnectionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MonitorPrivateEndpointConnectionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MonitorPrivateEndpointConnectionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MonitorPrivateLinkResource.Serialization.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MonitorPrivateLinkResource.Serialization.cs new file mode 100644 index 000000000000..7e7e5bfda114 --- /dev/null +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MonitorPrivateLinkResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Monitor +{ + public partial class MonitorPrivateLinkResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MonitorPrivateLinkResourceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MonitorPrivateLinkResourceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MonitorPrivateLinkScopeResource.Serialization.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MonitorPrivateLinkScopeResource.Serialization.cs new file mode 100644 index 000000000000..9c1a796e38e0 --- /dev/null +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MonitorPrivateLinkScopeResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Monitor +{ + public partial class MonitorPrivateLinkScopeResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MonitorPrivateLinkScopeData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MonitorPrivateLinkScopeData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MonitorPrivateLinkScopedResource.Serialization.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MonitorPrivateLinkScopedResource.Serialization.cs new file mode 100644 index 000000000000..6aa337606646 --- /dev/null +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MonitorPrivateLinkScopedResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Monitor +{ + public partial class MonitorPrivateLinkScopedResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MonitorPrivateLinkScopedResourceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MonitorPrivateLinkScopedResourceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MonitorWorkspaceResource.Serialization.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MonitorWorkspaceResource.Serialization.cs new file mode 100644 index 000000000000..45ee79275a9e --- /dev/null +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MonitorWorkspaceResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Monitor +{ + public partial class MonitorWorkspaceResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MonitorWorkspaceResourceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MonitorWorkspaceResourceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/ScheduledQueryRuleResource.Serialization.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/ScheduledQueryRuleResource.Serialization.cs new file mode 100644 index 000000000000..4986665a0316 --- /dev/null +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/ScheduledQueryRuleResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Monitor +{ + public partial class ScheduledQueryRuleResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ScheduledQueryRuleData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ScheduledQueryRuleData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/VmInsightsOnboardingStatusResource.Serialization.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/VmInsightsOnboardingStatusResource.Serialization.cs new file mode 100644 index 000000000000..e3c9fcf2abcd --- /dev/null +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/VmInsightsOnboardingStatusResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Monitor +{ + public partial class VmInsightsOnboardingStatusResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + VmInsightsOnboardingStatusData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + VmInsightsOnboardingStatusData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/MonitorPrivateLinkScopeCollection.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/MonitorPrivateLinkScopeCollection.cs index b861db991ef8..bbe4025d4c19 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/MonitorPrivateLinkScopeCollection.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/MonitorPrivateLinkScopeCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> CreateO try { var response = await _monitorPrivateLinkScopePrivateLinkScopesRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, scopeName, data, cancellationToken).ConfigureAwait(false); - var operation = new MonitorArmOperation(Response.FromValue(new MonitorPrivateLinkScopeResource(Client, response), response.GetRawResponse())); + var uri = _monitorPrivateLinkScopePrivateLinkScopesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, scopeName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MonitorArmOperation(Response.FromValue(new MonitorPrivateLinkScopeResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -140,7 +142,9 @@ public virtual ArmOperation CreateOrUpdate(Wait try { var response = _monitorPrivateLinkScopePrivateLinkScopesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, scopeName, data, cancellationToken); - var operation = new MonitorArmOperation(Response.FromValue(new MonitorPrivateLinkScopeResource(Client, response), response.GetRawResponse())); + var uri = _monitorPrivateLinkScopePrivateLinkScopesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, scopeName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MonitorArmOperation(Response.FromValue(new MonitorPrivateLinkScopeResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/MonitorWorkspaceResourceCollection.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/MonitorWorkspaceResourceCollection.cs index c47ca08e4d80..6ebde5e22021 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/MonitorWorkspaceResourceCollection.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/MonitorWorkspaceResourceCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> CreateOrUpdate try { var response = await _monitorWorkspaceResourceAzureMonitorWorkspacesRestClient.CreateAsync(Id.SubscriptionId, Id.ResourceGroupName, azureMonitorWorkspaceName, data, cancellationToken).ConfigureAwait(false); - var operation = new MonitorArmOperation(Response.FromValue(new MonitorWorkspaceResource(Client, response), response.GetRawResponse())); + var uri = _monitorWorkspaceResourceAzureMonitorWorkspacesRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, azureMonitorWorkspaceName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MonitorArmOperation(Response.FromValue(new MonitorWorkspaceResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -140,7 +142,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil w try { var response = _monitorWorkspaceResourceAzureMonitorWorkspacesRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, azureMonitorWorkspaceName, data, cancellationToken); - var operation = new MonitorArmOperation(Response.FromValue(new MonitorWorkspaceResource(Client, response), response.GetRawResponse())); + var uri = _monitorWorkspaceResourceAzureMonitorWorkspacesRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, azureMonitorWorkspaceName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MonitorArmOperation(Response.FromValue(new MonitorWorkspaceResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/RestOperations/ActionGroupsRestOperations.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/RestOperations/ActionGroupsRestOperations.cs index 168591074817..9d08f727ad49 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/RestOperations/ActionGroupsRestOperations.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/RestOperations/ActionGroupsRestOperations.cs @@ -37,6 +37,20 @@ public ActionGroupsRestOperations(HttpPipeline pipeline, string applicationId, U _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string actionGroupName, ActionGroupData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Insights/actionGroups/", false); + uri.AppendPath(actionGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string actionGroupName, ActionGroupData data) { var message = _pipeline.CreateMessage(); @@ -125,6 +139,20 @@ public Response CreateOrUpdate(string subscriptionId, string re } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string actionGroupName) + { + 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.Insights/actionGroups/", false); + uri.AppendPath(actionGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string actionGroupName) { var message = _pipeline.CreateMessage(); @@ -207,6 +235,20 @@ public Response Get(string subscriptionId, string resourceGroup } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string actionGroupName) + { + 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.Insights/actionGroups/", false); + uri.AppendPath(actionGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string actionGroupName) { var message = _pipeline.CreateMessage(); @@ -277,6 +319,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string actionGroupName, ActionGroupPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Insights/actionGroups/", false); + uri.AppendPath(actionGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string actionGroupName, ActionGroupPatch patch) { var message = _pipeline.CreateMessage(); @@ -363,6 +419,21 @@ public Response Update(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateCreateNotificationsAtActionGroupResourceLevelRequestUri(string subscriptionId, string resourceGroupName, string actionGroupName, NotificationContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Insights/actionGroups/", false); + uri.AppendPath(actionGroupName, true); + uri.AppendPath("/createNotifications", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateNotificationsAtActionGroupResourceLevelRequest(string subscriptionId, string resourceGroupName, string actionGroupName, NotificationContent content) { var message = _pipeline.CreateMessage(); @@ -442,6 +513,22 @@ public Response CreateNotificationsAtActionGroupResourceLevel(string subscriptio } } + internal RequestUriBuilder CreateGetTestNotificationsAtActionGroupResourceLevelRequestUri(string subscriptionId, string resourceGroupName, string actionGroupName, string notificationId) + { + 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.Insights/actionGroups/", false); + uri.AppendPath(actionGroupName, true); + uri.AppendPath("/notificationStatus/", false); + uri.AppendPath(notificationId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetTestNotificationsAtActionGroupResourceLevelRequest(string subscriptionId, string resourceGroupName, string actionGroupName, string notificationId) { var message = _pipeline.CreateMessage(); @@ -526,6 +613,17 @@ public Response GetTestNotificationsAtActionGroupResourceLev } } + internal RequestUriBuilder CreateListBySubscriptionIdRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Insights/actionGroups", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionIdRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -593,6 +691,19 @@ public Response ListBySubscriptionId(string subscriptionId, Can } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.Insights/actionGroups", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -666,6 +777,21 @@ public Response ListByResourceGroup(string subscriptionId, stri } } + internal RequestUriBuilder CreateEnableReceiverRequestUri(string subscriptionId, string resourceGroupName, string actionGroupName, ActionGroupEnableContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Insights/actionGroups/", false); + uri.AppendPath(actionGroupName, true); + uri.AppendPath("/subscribe", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateEnableReceiverRequest(string subscriptionId, string resourceGroupName, string actionGroupName, ActionGroupEnableContent content) { var message = _pipeline.CreateMessage(); diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/RestOperations/ActivityLogAlertsRestOperations.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/RestOperations/ActivityLogAlertsRestOperations.cs index ac4ef254559e..ec3bb59011c4 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/RestOperations/ActivityLogAlertsRestOperations.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/RestOperations/ActivityLogAlertsRestOperations.cs @@ -37,6 +37,20 @@ public ActivityLogAlertsRestOperations(HttpPipeline pipeline, string application _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string activityLogAlertName, ActivityLogAlertData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Insights/activityLogAlerts/", false); + uri.AppendPath(activityLogAlertName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string activityLogAlertName, ActivityLogAlertData data) { var message = _pipeline.CreateMessage(); @@ -125,6 +139,20 @@ public Response CreateOrUpdate(string subscriptionId, stri } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string activityLogAlertName) + { + 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.Insights/activityLogAlerts/", false); + uri.AppendPath(activityLogAlertName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string activityLogAlertName) { var message = _pipeline.CreateMessage(); @@ -207,6 +235,20 @@ public Response Get(string subscriptionId, string resource } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string activityLogAlertName) + { + 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.Insights/activityLogAlerts/", false); + uri.AppendPath(activityLogAlertName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string activityLogAlertName) { var message = _pipeline.CreateMessage(); @@ -277,6 +319,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string activityLogAlertName, ActivityLogAlertPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Insights/activityLogAlerts/", false); + uri.AppendPath(activityLogAlertName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string activityLogAlertName, ActivityLogAlertPatch patch) { var message = _pipeline.CreateMessage(); @@ -363,6 +419,17 @@ public Response Update(string subscriptionId, string resou } } + internal RequestUriBuilder CreateListBySubscriptionIdRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Insights/activityLogAlerts", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionIdRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -430,6 +497,19 @@ public Response ListBySubscriptionId(string subscriptionId, Cance } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.Insights/activityLogAlerts", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -503,6 +583,14 @@ public Response ListByResourceGroup(string subscriptionId, string } } + internal RequestUriBuilder CreateListBySubscriptionIdNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionIdNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -571,6 +659,14 @@ public Response ListBySubscriptionIdNextPage(string nextLink, str } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/RestOperations/ActivityLogsRestOperations.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/RestOperations/ActivityLogsRestOperations.cs index 3326717d1adf..5c6543083007 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/RestOperations/ActivityLogsRestOperations.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/RestOperations/ActivityLogsRestOperations.cs @@ -37,6 +37,22 @@ public ActivityLogsRestOperations(HttpPipeline pipeline, string applicationId, U _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string filter, string select) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Insights/eventtypes/management/values", false); + uri.AppendQuery("api-version", _apiVersion, true); + uri.AppendQuery("$filter", filter, true); + if (select != null) + { + uri.AppendQuery("$select", select, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string filter, string select) { var message = _pipeline.CreateMessage(); @@ -115,6 +131,14 @@ public Response List(string subscriptionId, string filter, } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string filter, string select) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string filter, string select) { var message = _pipeline.CreateMessage(); diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/RestOperations/AlertRuleIncidentsRestOperations.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/RestOperations/AlertRuleIncidentsRestOperations.cs index 2ef66641016f..045f96036b2f 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/RestOperations/AlertRuleIncidentsRestOperations.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/RestOperations/AlertRuleIncidentsRestOperations.cs @@ -37,6 +37,22 @@ public AlertRuleIncidentsRestOperations(HttpPipeline pipeline, string applicatio _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string ruleName, string incidentName) + { + 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.insights/alertrules/", false); + uri.AppendPath(ruleName, true); + uri.AppendPath("/incidents/", false); + uri.AppendPath(incidentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string ruleName, string incidentName) { var message = _pipeline.CreateMessage(); @@ -121,6 +137,21 @@ public Response Get(string subscriptionId, string resourceGroup } } + internal RequestUriBuilder CreateListByAlertRuleRequestUri(string subscriptionId, string resourceGroupName, string ruleName) + { + 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.insights/alertrules/", false); + uri.AppendPath(ruleName, true); + uri.AppendPath("/incidents", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByAlertRuleRequest(string subscriptionId, string resourceGroupName, string ruleName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/RestOperations/AlertRulesRestOperations.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/RestOperations/AlertRulesRestOperations.cs index 061d55ad78d8..2a8b0376cc3e 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/RestOperations/AlertRulesRestOperations.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/RestOperations/AlertRulesRestOperations.cs @@ -37,6 +37,20 @@ public AlertRulesRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string ruleName, AlertRuleData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourcegroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Insights/alertrules/", false); + uri.AppendPath(ruleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string ruleName, AlertRuleData data) { var message = _pipeline.CreateMessage(); @@ -125,6 +139,20 @@ public Response CreateOrUpdate(string subscriptionId, string reso } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string ruleName) + { + 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.Insights/alertrules/", false); + uri.AppendPath(ruleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string ruleName) { var message = _pipeline.CreateMessage(); @@ -195,6 +223,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string ruleName) + { + 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.Insights/alertrules/", false); + uri.AppendPath(ruleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string ruleName) { var message = _pipeline.CreateMessage(); @@ -277,6 +319,20 @@ public Response Get(string subscriptionId, string resourceGroupNa } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string ruleName, AlertRulePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourcegroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Insights/alertrules/", false); + uri.AppendPath(ruleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string ruleName, AlertRulePatch patch) { var message = _pipeline.CreateMessage(); @@ -365,6 +421,19 @@ public Response Update(string subscriptionId, string resourceGrou } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.Insights/alertrules", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -438,6 +507,17 @@ public Response ListByResourceGroup(string subscrip } } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Insights/alertrules", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/RestOperations/AutoscaleSettingsRestOperations.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/RestOperations/AutoscaleSettingsRestOperations.cs index 7fc03318e885..b0a8a0fcb550 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/RestOperations/AutoscaleSettingsRestOperations.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/RestOperations/AutoscaleSettingsRestOperations.cs @@ -37,6 +37,19 @@ public AutoscaleSettingsRestOperations(HttpPipeline pipeline, string application _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.Insights/autoscalesettings", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -110,6 +123,20 @@ public Response ListByResourceGroup(string s } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string autoscaleSettingName, AutoscaleSettingData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourcegroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Insights/autoscalesettings/", false); + uri.AppendPath(autoscaleSettingName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string autoscaleSettingName, AutoscaleSettingData data) { var message = _pipeline.CreateMessage(); @@ -198,6 +225,20 @@ public Response CreateOrUpdate(string subscriptionId, stri } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string autoscaleSettingName) + { + 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.Insights/autoscalesettings/", false); + uri.AppendPath(autoscaleSettingName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string autoscaleSettingName) { var message = _pipeline.CreateMessage(); @@ -268,6 +309,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string autoscaleSettingName) + { + 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.Insights/autoscalesettings/", false); + uri.AppendPath(autoscaleSettingName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string autoscaleSettingName) { var message = _pipeline.CreateMessage(); @@ -350,6 +405,20 @@ public Response Get(string subscriptionId, string resource } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string autoscaleSettingName, AutoscaleSettingPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourcegroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Insights/autoscalesettings/", false); + uri.AppendPath(autoscaleSettingName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string autoscaleSettingName, AutoscaleSettingPatch patch) { var message = _pipeline.CreateMessage(); @@ -436,6 +505,17 @@ public Response Update(string subscriptionId, string resou } } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Insights/autoscalesettings", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -503,6 +583,14 @@ public Response ListBySubscription(string su } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -575,6 +663,14 @@ public Response ListByResourceGroupNextPage( } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/RestOperations/AzureMonitorWorkspacesRestOperations.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/RestOperations/AzureMonitorWorkspacesRestOperations.cs index 7cb93a4dc359..117f40c56589 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/RestOperations/AzureMonitorWorkspacesRestOperations.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/RestOperations/AzureMonitorWorkspacesRestOperations.cs @@ -37,6 +37,19 @@ public AzureMonitorWorkspacesRestOperations(HttpPipeline pipeline, string applic _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.Monitor/accounts", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -110,6 +123,17 @@ public Response ListByResourceGroup(string s } } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Monitor/accounts", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -177,6 +201,20 @@ public Response ListBySubscription(string su } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string azureMonitorWorkspaceName) + { + 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.Monitor/accounts/", false); + uri.AppendPath(azureMonitorWorkspaceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string azureMonitorWorkspaceName) { var message = _pipeline.CreateMessage(); @@ -259,6 +297,20 @@ public Response Get(string subscriptionId, string } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string azureMonitorWorkspaceName, MonitorWorkspaceResourceData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Monitor/accounts/", false); + uri.AppendPath(azureMonitorWorkspaceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string azureMonitorWorkspaceName, MonitorWorkspaceResourceData data) { var message = _pipeline.CreateMessage(); @@ -347,6 +399,20 @@ public Response Create(string subscriptionId, stri } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string azureMonitorWorkspaceName, MonitorWorkspaceResourcePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Monitor/accounts/", false); + uri.AppendPath(azureMonitorWorkspaceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string azureMonitorWorkspaceName, MonitorWorkspaceResourcePatch patch) { var message = _pipeline.CreateMessage(); @@ -433,6 +499,20 @@ public Response Update(string subscriptionId, stri } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string azureMonitorWorkspaceName) + { + 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.Monitor/accounts/", false); + uri.AppendPath(azureMonitorWorkspaceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string azureMonitorWorkspaceName) { var message = _pipeline.CreateMessage(); @@ -503,6 +583,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -575,6 +663,14 @@ public Response ListByResourceGroupNextPage( } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/RestOperations/BaselinesRestOperations.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/RestOperations/BaselinesRestOperations.cs index 0209f13ddc0c..4584e7c7302f 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/RestOperations/BaselinesRestOperations.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/RestOperations/BaselinesRestOperations.cs @@ -37,6 +37,49 @@ public BaselinesRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string resourceUri, string metricnames, string metricnamespace, string timespan, TimeSpan? interval, string aggregation, string sensitivities, string filter, MonitorResultType? resultType) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceUri, false); + uri.AppendPath("/providers/Microsoft.Insights/metricBaselines", false); + if (metricnames != null) + { + uri.AppendQuery("metricnames", metricnames, true); + } + if (metricnamespace != null) + { + uri.AppendQuery("metricnamespace", metricnamespace, true); + } + if (timespan != null) + { + uri.AppendQuery("timespan", timespan, true); + } + if (interval != null) + { + uri.AppendQuery("interval", interval.Value, "P", true); + } + if (aggregation != null) + { + uri.AppendQuery("aggregation", aggregation, true); + } + if (sensitivities != null) + { + uri.AppendQuery("sensitivities", sensitivities, true); + } + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (resultType != null) + { + uri.AppendQuery("resultType", resultType.Value.ToSerialString(), true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string resourceUri, string metricnames, string metricnamespace, string timespan, TimeSpan? interval, string aggregation, string sensitivities, string filter, MonitorResultType? resultType) { var message = _pipeline.CreateMessage(); diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/RestOperations/DataCollectionEndpointsRestOperations.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/RestOperations/DataCollectionEndpointsRestOperations.cs index 44724fa5d16a..11a209273121 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/RestOperations/DataCollectionEndpointsRestOperations.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/RestOperations/DataCollectionEndpointsRestOperations.cs @@ -37,6 +37,19 @@ public DataCollectionEndpointsRestOperations(HttpPipeline pipeline, string appli _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.Insights/dataCollectionEndpoints", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -110,6 +123,17 @@ public Response ListByResourceGroup(st } } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Insights/dataCollectionEndpoints", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -177,6 +201,20 @@ public Response ListBySubscription(str } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string dataCollectionEndpointName) + { + 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.Insights/dataCollectionEndpoints/", false); + uri.AppendPath(dataCollectionEndpointName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string dataCollectionEndpointName) { var message = _pipeline.CreateMessage(); @@ -259,6 +297,20 @@ public Response Get(string subscriptionId, string re } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string dataCollectionEndpointName, DataCollectionEndpointData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Insights/dataCollectionEndpoints/", false); + uri.AppendPath(dataCollectionEndpointName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string dataCollectionEndpointName, DataCollectionEndpointData data) { var message = _pipeline.CreateMessage(); @@ -347,6 +399,20 @@ public Response Create(string subscriptionId, string } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string dataCollectionEndpointName, ResourceForUpdate body) + { + 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.Insights/dataCollectionEndpoints/", false); + uri.AppendPath(dataCollectionEndpointName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string dataCollectionEndpointName, ResourceForUpdate body) { var message = _pipeline.CreateMessage(); @@ -433,6 +499,20 @@ public Response Update(string subscriptionId, string } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string dataCollectionEndpointName) + { + 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.Insights/dataCollectionEndpoints/", false); + uri.AppendPath(dataCollectionEndpointName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string dataCollectionEndpointName) { var message = _pipeline.CreateMessage(); @@ -503,6 +583,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string d } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -575,6 +663,14 @@ public Response ListByResourceGroupNex } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/RestOperations/DataCollectionRuleAssociationsRestOperations.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/RestOperations/DataCollectionRuleAssociationsRestOperations.cs index af60620bdf94..64c10ae090c4 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/RestOperations/DataCollectionRuleAssociationsRestOperations.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/RestOperations/DataCollectionRuleAssociationsRestOperations.cs @@ -37,6 +37,17 @@ public DataCollectionRuleAssociationsRestOperations(HttpPipeline pipeline, strin _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByResourceRequestUri(string resourceUri) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceUri, false); + uri.AppendPath("/providers/Microsoft.Insights/dataCollectionRuleAssociations", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceRequest(string resourceUri) { var message = _pipeline.CreateMessage(); @@ -102,6 +113,21 @@ public Response ListBy } } + internal RequestUriBuilder CreateListByRuleRequestUri(string subscriptionId, string resourceGroupName, string dataCollectionRuleName) + { + 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.Insights/dataCollectionRules/", false); + uri.AppendPath(dataCollectionRuleName, true); + uri.AppendPath("/associations", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByRuleRequest(string subscriptionId, string resourceGroupName, string dataCollectionRuleName) { var message = _pipeline.CreateMessage(); @@ -181,6 +207,21 @@ public Response ListBy } } + internal RequestUriBuilder CreateListByDataCollectionEndpointRequestUri(string subscriptionId, string resourceGroupName, string dataCollectionEndpointName) + { + 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.Insights/dataCollectionEndpoints/", false); + uri.AppendPath(dataCollectionEndpointName, true); + uri.AppendPath("/associations", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByDataCollectionEndpointRequest(string subscriptionId, string resourceGroupName, string dataCollectionEndpointName) { var message = _pipeline.CreateMessage(); @@ -260,6 +301,18 @@ public Response ListBy } } + internal RequestUriBuilder CreateGetRequestUri(string resourceUri, string associationName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceUri, false); + uri.AppendPath("/providers/Microsoft.Insights/dataCollectionRuleAssociations/", false); + uri.AppendPath(associationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string resourceUri, string associationName) { var message = _pipeline.CreateMessage(); @@ -336,6 +389,18 @@ public Response Get(string resourceUri, strin } } + internal RequestUriBuilder CreateCreateRequestUri(string resourceUri, string associationName, DataCollectionRuleAssociationData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceUri, false); + uri.AppendPath("/providers/Microsoft.Insights/dataCollectionRuleAssociations/", false); + uri.AppendPath(associationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string resourceUri, string associationName, DataCollectionRuleAssociationData data) { var message = _pipeline.CreateMessage(); @@ -418,6 +483,18 @@ public Response Create(string resourceUri, st } } + internal RequestUriBuilder CreateDeleteRequestUri(string resourceUri, string associationName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceUri, false); + uri.AppendPath("/providers/Microsoft.Insights/dataCollectionRuleAssociations/", false); + uri.AppendPath(associationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string resourceUri, string associationName) { var message = _pipeline.CreateMessage(); @@ -482,6 +559,14 @@ public Response Delete(string resourceUri, string associationName, CancellationT } } + internal RequestUriBuilder CreateListByResourceNextPageRequestUri(string nextLink, string resourceUri) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceNextPageRequest(string nextLink, string resourceUri) { var message = _pipeline.CreateMessage(); @@ -548,6 +633,14 @@ public Response ListBy } } + internal RequestUriBuilder CreateListByRuleNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string dataCollectionRuleName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByRuleNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string dataCollectionRuleName) { var message = _pipeline.CreateMessage(); @@ -624,6 +717,14 @@ public Response ListBy } } + internal RequestUriBuilder CreateListByDataCollectionEndpointNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string dataCollectionEndpointName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByDataCollectionEndpointNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string dataCollectionEndpointName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/RestOperations/DataCollectionRulesRestOperations.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/RestOperations/DataCollectionRulesRestOperations.cs index 238b84b86c6e..abc65d52b15a 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/RestOperations/DataCollectionRulesRestOperations.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/RestOperations/DataCollectionRulesRestOperations.cs @@ -37,6 +37,19 @@ public DataCollectionRulesRestOperations(HttpPipeline pipeline, string applicati _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.Insights/dataCollectionRules", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -110,6 +123,17 @@ public Response ListByResourceGroup(string } } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Insights/dataCollectionRules", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -177,6 +201,20 @@ public Response ListBySubscription(string } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string dataCollectionRuleName) + { + 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.Insights/dataCollectionRules/", false); + uri.AppendPath(dataCollectionRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string dataCollectionRuleName) { var message = _pipeline.CreateMessage(); @@ -259,6 +297,20 @@ public Response Get(string subscriptionId, string resour } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string dataCollectionRuleName, DataCollectionRuleData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Insights/dataCollectionRules/", false); + uri.AppendPath(dataCollectionRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string dataCollectionRuleName, DataCollectionRuleData data) { var message = _pipeline.CreateMessage(); @@ -347,6 +399,20 @@ public Response Create(string subscriptionId, string res } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string dataCollectionRuleName, ResourceForUpdate body) + { + 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.Insights/dataCollectionRules/", false); + uri.AppendPath(dataCollectionRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string dataCollectionRuleName, ResourceForUpdate body) { var message = _pipeline.CreateMessage(); @@ -433,6 +499,20 @@ public Response Update(string subscriptionId, string res } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string dataCollectionRuleName) + { + 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.Insights/dataCollectionRules/", false); + uri.AppendPath(dataCollectionRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string dataCollectionRuleName) { var message = _pipeline.CreateMessage(); @@ -503,6 +583,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string d } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -575,6 +663,14 @@ public Response ListByResourceGroupNextPag } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/RestOperations/DiagnosticSettingsCategoryRestOperations.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/RestOperations/DiagnosticSettingsCategoryRestOperations.cs index ed0b9aa45382..e42b3d162f2d 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/RestOperations/DiagnosticSettingsCategoryRestOperations.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/RestOperations/DiagnosticSettingsCategoryRestOperations.cs @@ -37,6 +37,18 @@ public DiagnosticSettingsCategoryRestOperations(HttpPipeline pipeline, string ap _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string resourceUri, string name) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceUri, false); + uri.AppendPath("/providers/Microsoft.Insights/diagnosticSettingsCategories/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string resourceUri, string name) { var message = _pipeline.CreateMessage(); @@ -113,6 +125,17 @@ public Response Get(string resourceUri, string n } } + internal RequestUriBuilder CreateListRequestUri(string resourceUri) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceUri, false); + uri.AppendPath("/providers/Microsoft.Insights/diagnosticSettingsCategories", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string resourceUri) { var message = _pipeline.CreateMessage(); diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/RestOperations/DiagnosticSettingsRestOperations.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/RestOperations/DiagnosticSettingsRestOperations.cs index 2379796491b7..f86d932e6f2f 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/RestOperations/DiagnosticSettingsRestOperations.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/RestOperations/DiagnosticSettingsRestOperations.cs @@ -37,6 +37,18 @@ public DiagnosticSettingsRestOperations(HttpPipeline pipeline, string applicatio _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string resourceUri, string name) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceUri, false); + uri.AppendPath("/providers/Microsoft.Insights/diagnosticSettings/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string resourceUri, string name) { var message = _pipeline.CreateMessage(); @@ -113,6 +125,18 @@ public Response Get(string resourceUri, string name, Canc } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string resourceUri, string name, DiagnosticSettingData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceUri, false); + uri.AppendPath("/providers/Microsoft.Insights/diagnosticSettings/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string resourceUri, string name, DiagnosticSettingData data) { var message = _pipeline.CreateMessage(); @@ -193,6 +217,18 @@ public Response CreateOrUpdate(string resourceUri, string } } + internal RequestUriBuilder CreateDeleteRequestUri(string resourceUri, string name) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceUri, false); + uri.AppendPath("/providers/Microsoft.Insights/diagnosticSettings/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string resourceUri, string name) { var message = _pipeline.CreateMessage(); @@ -257,6 +293,17 @@ public Response Delete(string resourceUri, string name, CancellationToken cancel } } + internal RequestUriBuilder CreateListRequestUri(string resourceUri) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceUri, false); + uri.AppendPath("/providers/Microsoft.Insights/diagnosticSettings", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string resourceUri) { var message = _pipeline.CreateMessage(); diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/RestOperations/EventCategoriesRestOperations.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/RestOperations/EventCategoriesRestOperations.cs index 30ca448011cf..56d05f7f4898 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/RestOperations/EventCategoriesRestOperations.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/RestOperations/EventCategoriesRestOperations.cs @@ -37,6 +37,15 @@ public EventCategoriesRestOperations(HttpPipeline pipeline, string applicationId _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri() + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Insights/eventcategories", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest() { var message = _pipeline.CreateMessage(); diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/RestOperations/LogProfilesRestOperations.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/RestOperations/LogProfilesRestOperations.cs index c13e9bd9fff1..69ef20c0baa5 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/RestOperations/LogProfilesRestOperations.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/RestOperations/LogProfilesRestOperations.cs @@ -37,6 +37,18 @@ public LogProfilesRestOperations(HttpPipeline pipeline, string applicationId, Ur _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string logProfileName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Insights/logprofiles/", false); + uri.AppendPath(logProfileName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string logProfileName) { var message = _pipeline.CreateMessage(); @@ -98,6 +110,18 @@ public Response Delete(string subscriptionId, string logProfileName, Cancellatio } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string logProfileName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Insights/logprofiles/", false); + uri.AppendPath(logProfileName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string logProfileName) { var message = _pipeline.CreateMessage(); @@ -174,6 +198,18 @@ public Response Get(string subscriptionId, string logProfileName } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string logProfileName, LogProfileData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Insights/logprofiles/", false); + uri.AppendPath(logProfileName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string logProfileName, LogProfileData data) { var message = _pipeline.CreateMessage(); @@ -254,6 +290,18 @@ public Response CreateOrUpdate(string subscriptionId, string log } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string logProfileName, LogProfilePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Insights/logprofiles/", false); + uri.AppendPath(logProfileName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string logProfileName, LogProfilePatch patch) { var message = _pipeline.CreateMessage(); @@ -334,6 +382,17 @@ public Response Update(string subscriptionId, string logProfileN } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Insights/logprofiles", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/RestOperations/MetricAlertsRestOperations.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/RestOperations/MetricAlertsRestOperations.cs index 94ac99ab8f83..15a39dd1385e 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/RestOperations/MetricAlertsRestOperations.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/RestOperations/MetricAlertsRestOperations.cs @@ -37,6 +37,17 @@ public MetricAlertsRestOperations(HttpPipeline pipeline, string applicationId, U _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Insights/metricAlerts", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,19 @@ public Response ListBySubscription(string subscri } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.Insights/metricAlerts", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -177,6 +201,20 @@ public Response ListByResourceGroup(string subscr } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string ruleName) + { + 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.Insights/metricAlerts/", false); + uri.AppendPath(ruleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string ruleName) { var message = _pipeline.CreateMessage(); @@ -259,6 +297,20 @@ public Response Get(string subscriptionId, string resourceGroup } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string ruleName, MetricAlertData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Insights/metricAlerts/", false); + uri.AppendPath(ruleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string ruleName, MetricAlertData data) { var message = _pipeline.CreateMessage(); @@ -345,6 +397,20 @@ public Response CreateOrUpdate(string subscriptionId, string re } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string ruleName, MetricAlertPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Insights/metricAlerts/", false); + uri.AppendPath(ruleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string ruleName, MetricAlertPatch patch) { var message = _pipeline.CreateMessage(); @@ -431,6 +497,20 @@ public Response Update(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string ruleName) + { + 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.Insights/metricAlerts/", false); + uri.AppendPath(ruleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string ruleName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/RestOperations/MetricAlertsStatusRestOperations.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/RestOperations/MetricAlertsStatusRestOperations.cs index 28a2ba6ba8af..49c4feaf616f 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/RestOperations/MetricAlertsStatusRestOperations.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/RestOperations/MetricAlertsStatusRestOperations.cs @@ -37,6 +37,21 @@ public MetricAlertsStatusRestOperations(HttpPipeline pipeline, string applicatio _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string ruleName) + { + 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.Insights/metricAlerts/", false); + uri.AppendPath(ruleName, true); + uri.AppendPath("/status", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string ruleName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response List(string subscriptionId, string } } + internal RequestUriBuilder CreateListByNameRequestUri(string subscriptionId, string resourceGroupName, string ruleName, string statusName) + { + 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.Insights/metricAlerts/", false); + uri.AppendPath(ruleName, true); + uri.AppendPath("/status/", false); + uri.AppendPath(statusName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByNameRequest(string subscriptionId, string resourceGroupName, string ruleName, string statusName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/RestOperations/MetricDefinitionsRestOperations.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/RestOperations/MetricDefinitionsRestOperations.cs index 4501dc7da436..572c977ef340 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/RestOperations/MetricDefinitionsRestOperations.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/RestOperations/MetricDefinitionsRestOperations.cs @@ -37,6 +37,21 @@ public MetricDefinitionsRestOperations(HttpPipeline pipeline, string application _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string resourceUri, string metricnamespace) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceUri, false); + uri.AppendPath("/providers/Microsoft.Insights/metricDefinitions", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (metricnamespace != null) + { + uri.AppendQuery("metricnamespace", metricnamespace, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string resourceUri, string metricnamespace) { var message = _pipeline.CreateMessage(); diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/RestOperations/MetricNamespacesRestOperations.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/RestOperations/MetricNamespacesRestOperations.cs index 5168b754ed98..2d560bf73c40 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/RestOperations/MetricNamespacesRestOperations.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/RestOperations/MetricNamespacesRestOperations.cs @@ -37,6 +37,21 @@ public MetricNamespacesRestOperations(HttpPipeline pipeline, string applicationI _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string resourceUri, string startTime) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceUri, false); + uri.AppendPath("/providers/microsoft.insights/metricNamespaces", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (startTime != null) + { + uri.AppendQuery("startTime", startTime, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string resourceUri, string startTime) { var message = _pipeline.CreateMessage(); diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/RestOperations/MetricsRestOperations.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/RestOperations/MetricsRestOperations.cs index 843ed492532f..69457a9f82ad 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/RestOperations/MetricsRestOperations.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/RestOperations/MetricsRestOperations.cs @@ -37,6 +37,62 @@ public MetricsRestOperations(HttpPipeline pipeline, string applicationId, Uri en _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListAtSubscriptionScopeRequestUri(string subscriptionId, string region, string timespan, TimeSpan? interval, string metricnames, string aggregation, int? top, string orderby, string filter, MonitorMetricResultType? resultType, string metricnamespace, bool? autoAdjustTimegrain, bool? validateDimensions) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Insights/metrics", false); + uri.AppendQuery("api-version", _apiVersion, true); + uri.AppendQuery("region", region, true); + if (timespan != null) + { + uri.AppendQuery("timespan", timespan, true); + } + if (interval != null) + { + uri.AppendQuery("interval", interval.Value, "P", true); + } + if (metricnames != null) + { + uri.AppendQuery("metricnames", metricnames, true); + } + if (aggregation != null) + { + uri.AppendQuery("aggregation", aggregation, true); + } + if (top != null) + { + uri.AppendQuery("top", top.Value, true); + } + if (orderby != null) + { + uri.AppendQuery("orderby", orderby, true); + } + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (resultType != null) + { + uri.AppendQuery("resultType", resultType.Value.ToString(), true); + } + if (metricnamespace != null) + { + uri.AppendQuery("metricnamespace", metricnamespace, true); + } + if (autoAdjustTimegrain != null) + { + uri.AppendQuery("AutoAdjustTimegrain", autoAdjustTimegrain.Value, true); + } + if (validateDimensions != null) + { + uri.AppendQuery("ValidateDimensions", validateDimensions.Value, true); + } + return uri; + } + internal HttpMessage CreateListAtSubscriptionScopeRequest(string subscriptionId, string region, string timespan, TimeSpan? interval, string metricnames, string aggregation, int? top, string orderby, string filter, MonitorMetricResultType? resultType, string metricnamespace, bool? autoAdjustTimegrain, bool? validateDimensions) { var message = _pipeline.CreateMessage(); @@ -191,6 +247,62 @@ public Response ListAtSubscriptionScope(string } } + internal RequestUriBuilder CreateListAtSubscriptionScopePostRequestUri(string subscriptionId, string region, SubscriptionResourceGetMonitorMetricsWithPostContent content, string timespan, TimeSpan? interval, string metricnames, string aggregation, int? top, string orderby, string filter, MonitorMetricResultType? resultType, string metricnamespace, bool? autoAdjustTimegrain, bool? validateDimensions) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Insights/metrics", false); + uri.AppendQuery("api-version", _apiVersion, true); + uri.AppendQuery("region", region, true); + if (timespan != null) + { + uri.AppendQuery("timespan", timespan, true); + } + if (interval != null) + { + uri.AppendQuery("interval", interval.Value, "P", true); + } + if (metricnames != null) + { + uri.AppendQuery("metricnames", metricnames, true); + } + if (aggregation != null) + { + uri.AppendQuery("aggregation", aggregation, true); + } + if (top != null) + { + uri.AppendQuery("top", top.Value, true); + } + if (orderby != null) + { + uri.AppendQuery("orderby", orderby, true); + } + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (resultType != null) + { + uri.AppendQuery("resultType", resultType.Value.ToString(), true); + } + if (metricnamespace != null) + { + uri.AppendQuery("metricnamespace", metricnamespace, true); + } + if (autoAdjustTimegrain != null) + { + uri.AppendQuery("AutoAdjustTimegrain", autoAdjustTimegrain.Value, true); + } + if (validateDimensions != null) + { + uri.AppendQuery("ValidateDimensions", validateDimensions.Value, true); + } + return uri; + } + internal HttpMessage CreateListAtSubscriptionScopePostRequest(string subscriptionId, string region, SubscriptionResourceGetMonitorMetricsWithPostContent content, string timespan, TimeSpan? interval, string metricnames, string aggregation, int? top, string orderby, string filter, MonitorMetricResultType? resultType, string metricnamespace, bool? autoAdjustTimegrain, bool? validateDimensions) { var message = _pipeline.CreateMessage(); @@ -354,6 +466,61 @@ public Response ListAtSubscriptionScopePost(str } } + internal RequestUriBuilder CreateListRequestUri(string resourceUri, string timespan, TimeSpan? interval, string metricnames, string aggregation, int? top, string orderby, string filter, MonitorResultType? resultType, string metricnamespace, bool? autoAdjustTimegrain, bool? validateDimensions) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceUri, false); + uri.AppendPath("/providers/Microsoft.Insights/metrics", false); + if (timespan != null) + { + uri.AppendQuery("timespan", timespan, true); + } + if (interval != null) + { + uri.AppendQuery("interval", interval.Value, "P", true); + } + if (metricnames != null) + { + uri.AppendQuery("metricnames", metricnames, true); + } + if (aggregation != null) + { + uri.AppendQuery("aggregation", aggregation, true); + } + if (top != null) + { + uri.AppendQuery("top", top.Value, true); + } + if (orderby != null) + { + uri.AppendQuery("orderby", orderby, true); + } + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (resultType != null) + { + uri.AppendQuery("resultType", resultType.Value.ToSerialString(), true); + } + uri.AppendQuery("api-version", _apiVersion, true); + if (metricnamespace != null) + { + uri.AppendQuery("metricnamespace", metricnamespace, true); + } + if (autoAdjustTimegrain != null) + { + uri.AppendQuery("AutoAdjustTimegrain", autoAdjustTimegrain.Value, true); + } + if (validateDimensions != null) + { + uri.AppendQuery("ValidateDimensions", validateDimensions.Value, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string resourceUri, string timespan, TimeSpan? interval, string metricnames, string aggregation, int? top, string orderby, string filter, MonitorResultType? resultType, string metricnamespace, bool? autoAdjustTimegrain, bool? validateDimensions) { var message = _pipeline.CreateMessage(); diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/RestOperations/PredictiveMetricRestOperations.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/RestOperations/PredictiveMetricRestOperations.cs index 99ae3837ad8f..38ecdcdf28c6 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/RestOperations/PredictiveMetricRestOperations.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/RestOperations/PredictiveMetricRestOperations.cs @@ -37,6 +37,26 @@ public PredictiveMetricRestOperations(HttpPipeline pipeline, string applicationI _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string autoscaleSettingName, string timespan, TimeSpan interval, string metricNamespace, string metricName, string aggregation) + { + 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.Insights/autoscalesettings/", false); + uri.AppendPath(autoscaleSettingName, true); + uri.AppendPath("/predictiveMetrics", false); + uri.AppendQuery("timespan", timespan, true); + uri.AppendQuery("interval", interval, "P", true); + uri.AppendQuery("metricNamespace", metricNamespace, true); + uri.AppendQuery("metricName", metricName, true); + uri.AppendQuery("aggregation", aggregation, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string autoscaleSettingName, string timespan, TimeSpan interval, string metricNamespace, string metricName, string aggregation) { var message = _pipeline.CreateMessage(); diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs index 551cf01e7cde..62d334597208 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs @@ -37,6 +37,22 @@ public PrivateEndpointConnectionsRestOperations(HttpPipeline pipeline, string ap _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string scopeName, string privateEndpointConnectionName) + { + 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.Insights/privateLinkScopes/", false); + uri.AppendPath(scopeName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string scopeName, string privateEndpointConnectionName) { var message = _pipeline.CreateMessage(); @@ -125,6 +141,22 @@ public Response Get(string subscriptionId, } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string scopeName, string privateEndpointConnectionName, MonitorPrivateEndpointConnectionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Insights/privateLinkScopes/", false); + uri.AppendPath(scopeName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string scopeName, string privateEndpointConnectionName, MonitorPrivateEndpointConnectionData data) { var message = _pipeline.CreateMessage(); @@ -209,6 +241,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string scopeName, string privateEndpointConnectionName) + { + 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.Insights/privateLinkScopes/", false); + uri.AppendPath(scopeName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string scopeName, string privateEndpointConnectionName) { var message = _pipeline.CreateMessage(); @@ -287,6 +335,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListByPrivateLinkScopeRequestUri(string subscriptionId, string resourceGroupName, string scopeName) + { + 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.Insights/privateLinkScopes/", false); + uri.AppendPath(scopeName, true); + uri.AppendPath("/privateEndpointConnections", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByPrivateLinkScopeRequest(string subscriptionId, string resourceGroupName, string scopeName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs index b2702a55ae6d..4f4d7dba40c5 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs @@ -37,6 +37,21 @@ public PrivateLinkResourcesRestOperations(HttpPipeline pipeline, string applicat _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByPrivateLinkScopeRequestUri(string subscriptionId, string resourceGroupName, string scopeName) + { + 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.Insights/privateLinkScopes/", false); + uri.AppendPath(scopeName, true); + uri.AppendPath("/privateLinkResources", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByPrivateLinkScopeRequest(string subscriptionId, string resourceGroupName, string scopeName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByPrivateLinkScope(str } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string scopeName, string groupName) + { + 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.Insights/privateLinkScopes/", false); + uri.AppendPath(scopeName, true); + uri.AppendPath("/privateLinkResources/", false); + uri.AppendPath(groupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string scopeName, string groupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/RestOperations/PrivateLinkScopeOperationStatusRestOperations.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/RestOperations/PrivateLinkScopeOperationStatusRestOperations.cs index 5e8b1c7d5cc5..b6aea3f2227b 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/RestOperations/PrivateLinkScopeOperationStatusRestOperations.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/RestOperations/PrivateLinkScopeOperationStatusRestOperations.cs @@ -37,6 +37,20 @@ public PrivateLinkScopeOperationStatusRestOperations(HttpPipeline pipeline, stri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string asyncOperationId) + { + 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.insights/privateLinkScopeOperationStatuses/", false); + uri.AppendPath(asyncOperationId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string asyncOperationId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/RestOperations/PrivateLinkScopedResourcesRestOperations.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/RestOperations/PrivateLinkScopedResourcesRestOperations.cs index 9b21c3824be3..f38057d9124c 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/RestOperations/PrivateLinkScopedResourcesRestOperations.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/RestOperations/PrivateLinkScopedResourcesRestOperations.cs @@ -37,6 +37,22 @@ public PrivateLinkScopedResourcesRestOperations(HttpPipeline pipeline, string ap _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string scopeName, string name) + { + 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.Insights/privateLinkScopes/", false); + uri.AppendPath(scopeName, true); + uri.AppendPath("/scopedResources/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string scopeName, string name) { var message = _pipeline.CreateMessage(); @@ -125,6 +141,22 @@ public Response Get(string subscriptionId, } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string scopeName, string name, MonitorPrivateLinkScopedResourceData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Insights/privateLinkScopes/", false); + uri.AppendPath(scopeName, true); + uri.AppendPath("/scopedResources/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string scopeName, string name, MonitorPrivateLinkScopedResourceData data) { var message = _pipeline.CreateMessage(); @@ -211,6 +243,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string scopeName, string name) + { + 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.Insights/privateLinkScopes/", false); + uri.AppendPath(scopeName, true); + uri.AppendPath("/scopedResources/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string scopeName, string name) { var message = _pipeline.CreateMessage(); @@ -289,6 +337,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListByPrivateLinkScopeRequestUri(string subscriptionId, string resourceGroupName, string scopeName) + { + 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.Insights/privateLinkScopes/", false); + uri.AppendPath(scopeName, true); + uri.AppendPath("/scopedResources", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByPrivateLinkScopeRequest(string subscriptionId, string resourceGroupName, string scopeName) { var message = _pipeline.CreateMessage(); @@ -368,6 +431,14 @@ public Response ListByPrivateLinkScope(string subscrip } } + internal RequestUriBuilder CreateListByPrivateLinkScopeNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string scopeName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByPrivateLinkScopeNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string scopeName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/RestOperations/PrivateLinkScopesRestOperations.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/RestOperations/PrivateLinkScopesRestOperations.cs index 252f68b02c11..12716ecdd50a 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/RestOperations/PrivateLinkScopesRestOperations.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/RestOperations/PrivateLinkScopesRestOperations.cs @@ -37,6 +37,17 @@ public PrivateLinkScopesRestOperations(HttpPipeline pipeline, string application _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/microsoft.insights/privateLinkScopes", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,19 @@ public Response List(string subscription } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.insights/privateLinkScopes", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -177,6 +201,20 @@ public Response ListByResourceGroup(stri } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string scopeName) + { + 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.insights/privateLinkScopes/", false); + uri.AppendPath(scopeName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string scopeName) { var message = _pipeline.CreateMessage(); @@ -249,6 +287,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string scopeName) + { + 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.insights/privateLinkScopes/", false); + uri.AppendPath(scopeName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string scopeName) { var message = _pipeline.CreateMessage(); @@ -331,6 +383,20 @@ public Response Get(string subscriptionId, string r } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string scopeName, MonitorPrivateLinkScopeData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/microsoft.insights/privateLinkScopes/", false); + uri.AppendPath(scopeName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string scopeName, MonitorPrivateLinkScopeData data) { var message = _pipeline.CreateMessage(); @@ -419,6 +485,20 @@ public Response CreateOrUpdate(string subscriptionI } } + internal RequestUriBuilder CreateUpdateTagsRequestUri(string subscriptionId, string resourceGroupName, string scopeName, MonitorPrivateLinkScopePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/microsoft.insights/privateLinkScopes/", false); + uri.AppendPath(scopeName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateTagsRequest(string subscriptionId, string resourceGroupName, string scopeName, MonitorPrivateLinkScopePatch patch) { var message = _pipeline.CreateMessage(); @@ -505,6 +585,14 @@ public Response UpdateTags(string subscriptionId, s } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -573,6 +661,14 @@ public Response ListNextPage(string next } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/RestOperations/ScheduledQueryRulesRestOperations.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/RestOperations/ScheduledQueryRulesRestOperations.cs index 3ae4b2c91768..efd12414a93f 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/RestOperations/ScheduledQueryRulesRestOperations.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/RestOperations/ScheduledQueryRulesRestOperations.cs @@ -37,6 +37,17 @@ public ScheduledQueryRulesRestOperations(HttpPipeline pipeline, string applicati _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Insights/scheduledQueryRules", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,19 @@ public Response ListBySubscription(string } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.Insights/scheduledQueryRules", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -177,6 +201,20 @@ public Response ListByResourceGroup(string } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string ruleName) + { + 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.Insights/scheduledQueryRules/", false); + uri.AppendPath(ruleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string ruleName) { var message = _pipeline.CreateMessage(); @@ -259,6 +297,20 @@ public Response Get(string subscriptionId, string resour } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string ruleName, ScheduledQueryRuleData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Insights/scheduledQueryRules/", false); + uri.AppendPath(ruleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string ruleName, ScheduledQueryRuleData data) { var message = _pipeline.CreateMessage(); @@ -347,6 +399,20 @@ public Response CreateOrUpdate(string subscriptionId, st } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string ruleName, ScheduledQueryRulePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Insights/scheduledQueryRules/", false); + uri.AppendPath(ruleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string ruleName, ScheduledQueryRulePatch patch) { var message = _pipeline.CreateMessage(); @@ -433,6 +499,20 @@ public Response Update(string subscriptionId, string res } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string ruleName) + { + 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.Insights/scheduledQueryRules/", false); + uri.AppendPath(ruleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string ruleName) { var message = _pipeline.CreateMessage(); @@ -503,6 +583,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -571,6 +659,14 @@ public Response ListBySubscriptionNextPage } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/RestOperations/TenantActivityLogsRestOperations.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/RestOperations/TenantActivityLogsRestOperations.cs index c4379be581f4..70147388ddca 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/RestOperations/TenantActivityLogsRestOperations.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/RestOperations/TenantActivityLogsRestOperations.cs @@ -37,6 +37,23 @@ public TenantActivityLogsRestOperations(HttpPipeline pipeline, string applicatio _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string filter, string select) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Insights/eventtypes/management/values", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (select != null) + { + uri.AppendQuery("$select", select, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string filter, string select) { var message = _pipeline.CreateMessage(); @@ -104,6 +121,14 @@ public Response List(string filter = null, string select = } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string filter, string select) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string filter, string select) { var message = _pipeline.CreateMessage(); diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/RestOperations/VMInsightsRestOperations.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/RestOperations/VMInsightsRestOperations.cs index c7136386b634..066490feeaa2 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/RestOperations/VMInsightsRestOperations.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/RestOperations/VMInsightsRestOperations.cs @@ -36,6 +36,17 @@ public VMInsightsRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetOnboardingStatusRequestUri(string resourceUri) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceUri, false); + uri.AppendPath("/providers/Microsoft.Insights/vmInsightsOnboardingStatuses/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetOnboardingStatusRequest(string resourceUri) { var message = _pipeline.CreateMessage(); diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/ScheduledQueryRuleCollection.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/ScheduledQueryRuleCollection.cs index e00b5b7abedb..9f1973a5fc94 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/ScheduledQueryRuleCollection.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/ScheduledQueryRuleCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> CreateOrUpda try { var response = await _scheduledQueryRuleRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, ruleName, data, cancellationToken).ConfigureAwait(false); - var operation = new MonitorArmOperation(Response.FromValue(new ScheduledQueryRuleResource(Client, response), response.GetRawResponse())); + var uri = _scheduledQueryRuleRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, ruleName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MonitorArmOperation(Response.FromValue(new ScheduledQueryRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -140,7 +142,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil try { var response = _scheduledQueryRuleRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, ruleName, data, cancellationToken); - var operation = new MonitorArmOperation(Response.FromValue(new ScheduledQueryRuleResource(Client, response), response.GetRawResponse())); + var uri = _scheduledQueryRuleRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, ruleName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MonitorArmOperation(Response.FromValue(new ScheduledQueryRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/ScheduledQueryRuleResource.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/ScheduledQueryRuleResource.cs index 7260d1210429..cf21153bc1b1 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/ScheduledQueryRuleResource.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/ScheduledQueryRuleResource.cs @@ -202,7 +202,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _scheduledQueryRuleRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new MonitorArmOperation(response); + var uri = _scheduledQueryRuleRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MonitorArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -244,7 +246,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _scheduledQueryRuleRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); - var operation = new MonitorArmOperation(response); + var uri = _scheduledQueryRuleRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new MonitorArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/LongRunningOperation/MySqlArmOperation.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/LongRunningOperation/MySqlArmOperation.cs index 389f95ee4881..5c1581b0266e 100644 --- a/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/LongRunningOperation/MySqlArmOperation.cs +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/LongRunningOperation/MySqlArmOperation.cs @@ -20,21 +20,24 @@ internal class MySqlArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of MySqlArmOperation for mocking. protected MySqlArmOperation() { } - internal MySqlArmOperation(Response response) + internal MySqlArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal MySqlArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "MySqlArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal MySqlArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pip public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/LongRunningOperation/MySqlArmOperationOfT.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/LongRunningOperation/MySqlArmOperationOfT.cs index 269aa28f4374..310449832ca8 100644 --- a/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/LongRunningOperation/MySqlArmOperationOfT.cs +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/LongRunningOperation/MySqlArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class MySqlArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of MySqlArmOperation for mocking. protected MySqlArmOperation() { } - internal MySqlArmOperation(Response response) + internal MySqlArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal MySqlArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "MySqlArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal MySqlArmOperation(IOperationSource source, ClientDiagnostics clientD public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlAdvisorResource.Serialization.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlAdvisorResource.Serialization.cs new file mode 100644 index 000000000000..6463c12e14ad --- /dev/null +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlAdvisorResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.MySql +{ + public partial class MySqlAdvisorResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MySqlAdvisorData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MySqlAdvisorData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlConfigurationResource.Serialization.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlConfigurationResource.Serialization.cs new file mode 100644 index 000000000000..f547a70be738 --- /dev/null +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlConfigurationResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.MySql +{ + public partial class MySqlConfigurationResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MySqlConfigurationData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MySqlConfigurationData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlDatabaseResource.Serialization.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlDatabaseResource.Serialization.cs new file mode 100644 index 000000000000..c3530dd1eb18 --- /dev/null +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlDatabaseResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.MySql +{ + public partial class MySqlDatabaseResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MySqlDatabaseData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MySqlDatabaseData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlFirewallRuleResource.Serialization.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlFirewallRuleResource.Serialization.cs new file mode 100644 index 000000000000..8743d663e088 --- /dev/null +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlFirewallRuleResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.MySql +{ + public partial class MySqlFirewallRuleResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MySqlFirewallRuleData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MySqlFirewallRuleData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlPrivateEndpointConnectionResource.Serialization.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlPrivateEndpointConnectionResource.Serialization.cs new file mode 100644 index 000000000000..4c1a94a2afd3 --- /dev/null +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlPrivateEndpointConnectionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.MySql +{ + public partial class MySqlPrivateEndpointConnectionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MySqlPrivateEndpointConnectionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MySqlPrivateEndpointConnectionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlPrivateLinkResource.Serialization.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlPrivateLinkResource.Serialization.cs new file mode 100644 index 000000000000..8e53749c40f7 --- /dev/null +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlPrivateLinkResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.MySql +{ + public partial class MySqlPrivateLinkResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MySqlPrivateLinkResourceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MySqlPrivateLinkResourceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlQueryStatisticResource.Serialization.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlQueryStatisticResource.Serialization.cs new file mode 100644 index 000000000000..7fe0eca79468 --- /dev/null +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlQueryStatisticResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.MySql +{ + public partial class MySqlQueryStatisticResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MySqlQueryStatisticData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MySqlQueryStatisticData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlQueryTextResource.Serialization.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlQueryTextResource.Serialization.cs new file mode 100644 index 000000000000..77ad7b9da2ae --- /dev/null +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlQueryTextResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.MySql +{ + public partial class MySqlQueryTextResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MySqlQueryTextData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MySqlQueryTextData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlRecommendationActionResource.Serialization.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlRecommendationActionResource.Serialization.cs new file mode 100644 index 000000000000..affeea6c5b45 --- /dev/null +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlRecommendationActionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.MySql +{ + public partial class MySqlRecommendationActionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MySqlRecommendationActionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MySqlRecommendationActionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlServerAdministratorResource.Serialization.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlServerAdministratorResource.Serialization.cs new file mode 100644 index 000000000000..ea05e9248f91 --- /dev/null +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlServerAdministratorResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.MySql +{ + public partial class MySqlServerAdministratorResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MySqlServerAdministratorData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MySqlServerAdministratorData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlServerKeyResource.Serialization.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlServerKeyResource.Serialization.cs new file mode 100644 index 000000000000..0ff0727aba9d --- /dev/null +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlServerKeyResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.MySql +{ + public partial class MySqlServerKeyResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MySqlServerKeyData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MySqlServerKeyData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlServerResource.Serialization.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlServerResource.Serialization.cs new file mode 100644 index 000000000000..0ceed73adffc --- /dev/null +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlServerResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.MySql +{ + public partial class MySqlServerResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MySqlServerData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MySqlServerData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlServerSecurityAlertPolicyResource.Serialization.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlServerSecurityAlertPolicyResource.Serialization.cs new file mode 100644 index 000000000000..dd6fd67068b9 --- /dev/null +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlServerSecurityAlertPolicyResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.MySql +{ + public partial class MySqlServerSecurityAlertPolicyResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MySqlServerSecurityAlertPolicyData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MySqlServerSecurityAlertPolicyData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlVirtualNetworkRuleResource.Serialization.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlVirtualNetworkRuleResource.Serialization.cs new file mode 100644 index 000000000000..f1f9f554e4f1 --- /dev/null +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlVirtualNetworkRuleResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.MySql +{ + public partial class MySqlVirtualNetworkRuleResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MySqlVirtualNetworkRuleData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MySqlVirtualNetworkRuleData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlWaitStatisticResource.Serialization.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlWaitStatisticResource.Serialization.cs new file mode 100644 index 000000000000..99eed20d9226 --- /dev/null +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlWaitStatisticResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.MySql +{ + public partial class MySqlWaitStatisticResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MySqlWaitStatisticData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MySqlWaitStatisticData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/RestOperations/AdvisorsRestOperations.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/RestOperations/AdvisorsRestOperations.cs index c2cc8768f099..1d69673a50ec 100644 --- a/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/RestOperations/AdvisorsRestOperations.cs +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/RestOperations/AdvisorsRestOperations.cs @@ -37,6 +37,22 @@ public AdvisorsRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serverName, string advisorName) + { + 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.DBforMySQL/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/advisors/", false); + uri.AppendPath(advisorName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serverName, string advisorName) { var message = _pipeline.CreateMessage(); @@ -125,6 +141,21 @@ public Response Get(string subscriptionId, string resourceGrou } } + internal RequestUriBuilder CreateListByServerRequestUri(string subscriptionId, string resourceGroupName, string serverName) + { + 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.DBforMySQL/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/advisors", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByServerRequest(string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,14 @@ public Response ListByServer(string subscriptionId, stri } } + internal RequestUriBuilder CreateListByServerNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serverName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByServerNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/RestOperations/CheckNameAvailabilityRestOperations.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/RestOperations/CheckNameAvailabilityRestOperations.cs index 931393933ffc..72cf0631e20e 100644 --- a/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/RestOperations/CheckNameAvailabilityRestOperations.cs +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/RestOperations/CheckNameAvailabilityRestOperations.cs @@ -37,6 +37,17 @@ public CheckNameAvailabilityRestOperations(HttpPipeline pipeline, string applica _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateExecuteRequestUri(string subscriptionId, MySqlNameAvailabilityContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.DBforMySQL/checkNameAvailability", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateExecuteRequest(string subscriptionId, MySqlNameAvailabilityContent content) { var message = _pipeline.CreateMessage(); diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/RestOperations/ConfigurationsRestOperations.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/RestOperations/ConfigurationsRestOperations.cs index a409ab692c71..b010c50e39d0 100644 --- a/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/RestOperations/ConfigurationsRestOperations.cs +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/RestOperations/ConfigurationsRestOperations.cs @@ -37,6 +37,22 @@ public ConfigurationsRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serverName, string configurationName, MySqlConfigurationData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DBforMySQL/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/configurations/", false); + uri.AppendPath(configurationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serverName, string configurationName, MySqlConfigurationData data) { var message = _pipeline.CreateMessage(); @@ -121,6 +137,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serverName, string configurationName) + { + 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.DBforMySQL/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/configurations/", false); + uri.AppendPath(configurationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serverName, string configurationName) { var message = _pipeline.CreateMessage(); @@ -209,6 +241,21 @@ public Response Get(string subscriptionId, string resour } } + internal RequestUriBuilder CreateListByServerRequestUri(string subscriptionId, string resourceGroupName, string serverName) + { + 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.DBforMySQL/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/configurations", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByServerRequest(string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/RestOperations/DatabasesRestOperations.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/RestOperations/DatabasesRestOperations.cs index 172954598a30..55b5c656d91f 100644 --- a/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/RestOperations/DatabasesRestOperations.cs +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/RestOperations/DatabasesRestOperations.cs @@ -37,6 +37,22 @@ public DatabasesRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName, MySqlDatabaseData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DBforMySQL/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName, MySqlDatabaseData data) { var message = _pipeline.CreateMessage(); @@ -123,6 +139,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName) + { + 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.DBforMySQL/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName) { var message = _pipeline.CreateMessage(); @@ -201,6 +233,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName) + { + 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.DBforMySQL/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName) { var message = _pipeline.CreateMessage(); @@ -289,6 +337,21 @@ public Response Get(string subscriptionId, string resourceGro } } + internal RequestUriBuilder CreateListByServerRequestUri(string subscriptionId, string resourceGroupName, string serverName) + { + 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.DBforMySQL/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByServerRequest(string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/RestOperations/FirewallRulesRestOperations.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/RestOperations/FirewallRulesRestOperations.cs index 6713460a481b..3d62423c378a 100644 --- a/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/RestOperations/FirewallRulesRestOperations.cs +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/RestOperations/FirewallRulesRestOperations.cs @@ -37,6 +37,22 @@ public FirewallRulesRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serverName, string firewallRuleName, MySqlFirewallRuleData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DBforMySQL/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/firewallRules/", false); + uri.AppendPath(firewallRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serverName, string firewallRuleName, MySqlFirewallRuleData data) { var message = _pipeline.CreateMessage(); @@ -123,6 +139,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string serverName, string firewallRuleName) + { + 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.DBforMySQL/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/firewallRules/", false); + uri.AppendPath(firewallRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string serverName, string firewallRuleName) { var message = _pipeline.CreateMessage(); @@ -201,6 +233,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serverName, string firewallRuleName) + { + 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.DBforMySQL/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/firewallRules/", false); + uri.AppendPath(firewallRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serverName, string firewallRuleName) { var message = _pipeline.CreateMessage(); @@ -289,6 +337,21 @@ public Response Get(string subscriptionId, string resourc } } + internal RequestUriBuilder CreateListByServerRequestUri(string subscriptionId, string resourceGroupName, string serverName) + { + 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.DBforMySQL/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/firewallRules", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByServerRequest(string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/RestOperations/LocationBasedPerformanceTierRestOperations.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/RestOperations/LocationBasedPerformanceTierRestOperations.cs index 6e22a4413a4f..dc7fdca90a2a 100644 --- a/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/RestOperations/LocationBasedPerformanceTierRestOperations.cs +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/RestOperations/LocationBasedPerformanceTierRestOperations.cs @@ -37,6 +37,19 @@ public LocationBasedPerformanceTierRestOperations(HttpPipeline pipeline, string _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, AzureLocation locationName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.DBforMySQL/locations/", false); + uri.AppendPath(locationName, true); + uri.AppendPath("/performanceTiers", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, AzureLocation locationName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/RestOperations/LogFilesRestOperations.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/RestOperations/LogFilesRestOperations.cs index f8664ca5d0d1..7b0133fee6d0 100644 --- a/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/RestOperations/LogFilesRestOperations.cs +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/RestOperations/LogFilesRestOperations.cs @@ -37,6 +37,21 @@ public LogFilesRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByServerRequestUri(string subscriptionId, string resourceGroupName, string serverName) + { + 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.DBforMySQL/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/logFiles", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByServerRequest(string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/RestOperations/MySQLManagementRestOperations.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/RestOperations/MySQLManagementRestOperations.cs index 7b14a7e0cc44..2eebd8da09e1 100644 --- a/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/RestOperations/MySQLManagementRestOperations.cs +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/RestOperations/MySQLManagementRestOperations.cs @@ -37,6 +37,21 @@ public MySQLManagementRestOperations(HttpPipeline pipeline, string applicationId _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateResetQueryPerformanceInsightDataRequestUri(string subscriptionId, string resourceGroupName, string serverName) + { + 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.DBforMySQL/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/resetQueryPerformanceInsightData", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateResetQueryPerformanceInsightDataRequest(string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,24 @@ public Response ResetQueryPerforman } } + internal RequestUriBuilder CreateCreateRecommendedActionSessionRequestUri(string subscriptionId, string resourceGroupName, string serverName, string advisorName, string databaseName) + { + 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.DBforMySQL/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/advisors/", false); + uri.AppendPath(advisorName, true); + uri.AppendPath("/createRecommendedActionSession", false); + uri.AppendQuery("api-version", _apiVersion, true); + uri.AppendQuery("databaseName", databaseName, true); + return uri; + } + internal HttpMessage CreateCreateRecommendedActionSessionRequest(string subscriptionId, string resourceGroupName, string serverName, string advisorName, string databaseName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/RestOperations/MySqlServersRestOperations.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/RestOperations/MySqlServersRestOperations.cs index 2715704895dd..6c94945c1bab 100644 --- a/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/RestOperations/MySqlServersRestOperations.cs +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/RestOperations/MySqlServersRestOperations.cs @@ -36,6 +36,21 @@ public MySqlServersRestOperations(HttpPipeline pipeline, string applicationId, U _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateStartRequestUri(string subscriptionId, string resourceGroupName, string serverName) + { + 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.DBforMySQL/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/start", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStartRequest(string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); @@ -107,6 +122,21 @@ public Response Start(string subscriptionId, string resourceGroupName, string se } } + internal RequestUriBuilder CreateStopRequestUri(string subscriptionId, string resourceGroupName, string serverName) + { + 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.DBforMySQL/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/stop", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStopRequest(string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); @@ -178,6 +208,21 @@ public Response Stop(string subscriptionId, string resourceGroupName, string ser } } + internal RequestUriBuilder CreateUpgradeRequestUri(string subscriptionId, string resourceGroupName, string serverName, MySqlServerUpgradeContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DBforMySQL/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/upgrade", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpgradeRequest(string subscriptionId, string resourceGroupName, string serverName, MySqlServerUpgradeContent content) { var message = _pipeline.CreateMessage(); diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs index ab131de137a3..1e3f45ab6cb9 100644 --- a/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs @@ -37,6 +37,22 @@ public PrivateEndpointConnectionsRestOperations(HttpPipeline pipeline, string ap _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serverName, string privateEndpointConnectionName) + { + 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.DBforMySQL/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serverName, string privateEndpointConnectionName) { var message = _pipeline.CreateMessage(); @@ -125,6 +141,22 @@ public Response Get(string subscriptionId, s } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serverName, string privateEndpointConnectionName, MySqlPrivateEndpointConnectionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DBforMySQL/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serverName, string privateEndpointConnectionName, MySqlPrivateEndpointConnectionData data) { var message = _pipeline.CreateMessage(); @@ -209,6 +241,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string serverName, string privateEndpointConnectionName) + { + 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.DBforMySQL/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string serverName, string privateEndpointConnectionName) { var message = _pipeline.CreateMessage(); @@ -287,6 +335,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateUpdateTagsRequestUri(string subscriptionId, string resourceGroupName, string serverName, string privateEndpointConnectionName, MySqlPrivateEndpointConnectionPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DBforMySQL/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateTagsRequest(string subscriptionId, string resourceGroupName, string serverName, string privateEndpointConnectionName, MySqlPrivateEndpointConnectionPatch patch) { var message = _pipeline.CreateMessage(); @@ -369,6 +433,21 @@ public Response UpdateTags(string subscriptionId, string resourceGroupName, stri } } + internal RequestUriBuilder CreateListByServerRequestUri(string subscriptionId, string resourceGroupName, string serverName) + { + 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.DBforMySQL/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/privateEndpointConnections", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByServerRequest(string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); @@ -448,6 +527,14 @@ public Response ListByServer(string su } } + internal RequestUriBuilder CreateListByServerNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serverName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByServerNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs index e1156c3bf20d..d18c72daea42 100644 --- a/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs @@ -37,6 +37,21 @@ public PrivateLinkResourcesRestOperations(HttpPipeline pipeline, string applicat _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByServerRequestUri(string subscriptionId, string resourceGroupName, string serverName) + { + 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.DBforMySQL/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/privateLinkResources", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByServerRequest(string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByServer(string subscrip } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serverName, string groupName) + { + 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.DBforMySQL/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/privateLinkResources/", false); + uri.AppendPath(groupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serverName, string groupName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,14 @@ public Response Get(string subscriptionId, string } } + internal RequestUriBuilder CreateListByServerNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serverName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByServerNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/RestOperations/QueryTextsRestOperations.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/RestOperations/QueryTextsRestOperations.cs index d095c6706e8c..f5b22b4569cc 100644 --- a/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/RestOperations/QueryTextsRestOperations.cs +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/RestOperations/QueryTextsRestOperations.cs @@ -38,6 +38,22 @@ public QueryTextsRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serverName, string queryId) + { + 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.DBforMySQL/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/queryTexts/", false); + uri.AppendPath(queryId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serverName, string queryId) { var message = _pipeline.CreateMessage(); @@ -126,6 +142,28 @@ public Response Get(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateListByServerRequestUri(string subscriptionId, string resourceGroupName, string serverName, IEnumerable queryIds) + { + 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.DBforMySQL/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/queryTexts", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (queryIds != null && Optional.IsCollectionDefined(queryIds)) + { + foreach (var param in queryIds) + { + uri.AppendQuery("queryIds", param, true); + } + } + return uri; + } + internal HttpMessage CreateListByServerRequest(string subscriptionId, string resourceGroupName, string serverName, IEnumerable queryIds) { var message = _pipeline.CreateMessage(); @@ -216,6 +254,14 @@ public Response ListByServer(string subscriptionId, st } } + internal RequestUriBuilder CreateListByServerNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serverName, IEnumerable queryIds) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByServerNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serverName, IEnumerable queryIds) { var message = _pipeline.CreateMessage(); diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/RestOperations/RecommendedActionsRestOperations.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/RestOperations/RecommendedActionsRestOperations.cs index 1761d52aac41..29b6ad01b309 100644 --- a/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/RestOperations/RecommendedActionsRestOperations.cs +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/RestOperations/RecommendedActionsRestOperations.cs @@ -37,6 +37,24 @@ public RecommendedActionsRestOperations(HttpPipeline pipeline, string applicatio _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serverName, string advisorName, string recommendedActionName) + { + 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.DBforMySQL/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/advisors/", false); + uri.AppendPath(advisorName, true); + uri.AppendPath("/recommendedActions/", false); + uri.AppendPath(recommendedActionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serverName, string advisorName, string recommendedActionName) { var message = _pipeline.CreateMessage(); @@ -131,6 +149,27 @@ public Response Get(string subscriptionId, string } } + internal RequestUriBuilder CreateListByServerRequestUri(string subscriptionId, string resourceGroupName, string serverName, string advisorName, string sessionId) + { + 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.DBforMySQL/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/advisors/", false); + uri.AppendPath(advisorName, true); + uri.AppendPath("/recommendedActions", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (sessionId != null) + { + uri.AppendQuery("sessionId", sessionId, true); + } + return uri; + } + internal HttpMessage CreateListByServerRequest(string subscriptionId, string resourceGroupName, string serverName, string advisorName, string sessionId) { var message = _pipeline.CreateMessage(); @@ -222,6 +261,14 @@ public Response ListByServer(string subscri } } + internal RequestUriBuilder CreateListByServerNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serverName, string advisorName, string sessionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByServerNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serverName, string advisorName, string sessionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/RestOperations/RecoverableServersRestOperations.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/RestOperations/RecoverableServersRestOperations.cs index 76166a5cd8b2..7863cbee90ce 100644 --- a/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/RestOperations/RecoverableServersRestOperations.cs +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/RestOperations/RecoverableServersRestOperations.cs @@ -37,6 +37,21 @@ public RecoverableServersRestOperations(HttpPipeline pipeline, string applicatio _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serverName) + { + 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.DBforMySQL/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/recoverableServers", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/RestOperations/ReplicasRestOperations.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/RestOperations/ReplicasRestOperations.cs index 2126261d8365..10d27638341e 100644 --- a/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/RestOperations/ReplicasRestOperations.cs +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/RestOperations/ReplicasRestOperations.cs @@ -37,6 +37,21 @@ public ReplicasRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByServerRequestUri(string subscriptionId, string resourceGroupName, string serverName) + { + 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.DBforMySQL/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/replicas", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByServerRequest(string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/RestOperations/ServerAdministratorsRestOperations.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/RestOperations/ServerAdministratorsRestOperations.cs index 04ce1c92f0f7..edebf77dfb16 100644 --- a/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/RestOperations/ServerAdministratorsRestOperations.cs +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/RestOperations/ServerAdministratorsRestOperations.cs @@ -37,6 +37,21 @@ public ServerAdministratorsRestOperations(HttpPipeline pipeline, string applicat _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serverName) + { + 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.DBforMySQL/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/administrators/activeDirectory", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); @@ -120,6 +135,21 @@ public Response Get(string subscriptionId, string } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serverName, MySqlServerAdministratorData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DBforMySQL/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/administrators/activeDirectory", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serverName, MySqlServerAdministratorData data) { var message = _pipeline.CreateMessage(); @@ -199,6 +229,21 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string serverName) + { + 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.DBforMySQL/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/administrators/activeDirectory", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); @@ -272,6 +317,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string serverName) + { + 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.DBforMySQL/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/administrators", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/RestOperations/ServerBasedPerformanceTierRestOperations.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/RestOperations/ServerBasedPerformanceTierRestOperations.cs index 22035888ff31..6609e1386cb3 100644 --- a/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/RestOperations/ServerBasedPerformanceTierRestOperations.cs +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/RestOperations/ServerBasedPerformanceTierRestOperations.cs @@ -37,6 +37,21 @@ public ServerBasedPerformanceTierRestOperations(HttpPipeline pipeline, string ap _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string serverName) + { + 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.DBforMySQL/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/performanceTiers", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/RestOperations/ServerKeysRestOperations.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/RestOperations/ServerKeysRestOperations.cs index 553424dfa977..a1473c6b3ba5 100644 --- a/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/RestOperations/ServerKeysRestOperations.cs +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/RestOperations/ServerKeysRestOperations.cs @@ -37,6 +37,21 @@ public ServerKeysRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string serverName) + { + 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.DBforMySQL/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/keys", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response List(string subscriptionId, string res } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serverName, string keyName) + { + 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.DBforMySQL/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/keys/", false); + uri.AppendPath(keyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serverName, string keyName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serverName, string keyName, MySqlServerKeyData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DBforMySQL/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/keys/", false); + uri.AppendPath(keyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serverName, string keyName, MySqlServerKeyData data) { var message = _pipeline.CreateMessage(); @@ -288,6 +335,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string serverName, string keyName) + { + 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.DBforMySQL/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/keys/", false); + uri.AppendPath(keyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string serverName, string keyName) { var message = _pipeline.CreateMessage(); @@ -366,6 +429,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serverName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/RestOperations/ServerParametersRestOperations.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/RestOperations/ServerParametersRestOperations.cs index cfdaf7a13b97..27ea6333db33 100644 --- a/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/RestOperations/ServerParametersRestOperations.cs +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/RestOperations/ServerParametersRestOperations.cs @@ -36,6 +36,21 @@ public ServerParametersRestOperations(HttpPipeline pipeline, string applicationI _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListUpdateConfigurationsRequestUri(string subscriptionId, string resourceGroupName, string serverName, MySqlConfigurations value) + { + 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.DBforMySQL/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/updateConfigurations", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListUpdateConfigurationsRequest(string subscriptionId, string resourceGroupName, string serverName, MySqlConfigurations value) { var message = _pipeline.CreateMessage(); diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/RestOperations/ServerSecurityAlertPoliciesRestOperations.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/RestOperations/ServerSecurityAlertPoliciesRestOperations.cs index 357566aa4bbe..d1d45c3a6ef7 100644 --- a/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/RestOperations/ServerSecurityAlertPoliciesRestOperations.cs +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/RestOperations/ServerSecurityAlertPoliciesRestOperations.cs @@ -37,6 +37,22 @@ public ServerSecurityAlertPoliciesRestOperations(HttpPipeline pipeline, string a _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serverName, MySqlSecurityAlertPolicyName securityAlertPolicyName) + { + 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.DBforMySQL/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/securityAlertPolicies/", false); + uri.AppendPath(securityAlertPolicyName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serverName, MySqlSecurityAlertPolicyName securityAlertPolicyName) { var message = _pipeline.CreateMessage(); @@ -123,6 +139,22 @@ public Response Get(string subscriptionId, s } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serverName, MySqlSecurityAlertPolicyName securityAlertPolicyName, MySqlServerSecurityAlertPolicyData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DBforMySQL/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/securityAlertPolicies/", false); + uri.AppendPath(securityAlertPolicyName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serverName, MySqlSecurityAlertPolicyName securityAlertPolicyName, MySqlServerSecurityAlertPolicyData data) { var message = _pipeline.CreateMessage(); @@ -205,6 +237,21 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateListByServerRequestUri(string subscriptionId, string resourceGroupName, string serverName) + { + 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.DBforMySQL/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/securityAlertPolicies", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByServerRequest(string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); @@ -284,6 +331,14 @@ public Response ListByServer(string su } } + internal RequestUriBuilder CreateListByServerNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serverName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByServerNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/RestOperations/ServersRestOperations.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/RestOperations/ServersRestOperations.cs index 518dfcf926a6..d3243a518b2a 100644 --- a/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/RestOperations/ServersRestOperations.cs +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/RestOperations/ServersRestOperations.cs @@ -37,6 +37,20 @@ public ServersRestOperations(HttpPipeline pipeline, string applicationId, Uri en _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string serverName, MySqlServerCreateOrUpdateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DBforMySQL/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string serverName, MySqlServerCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); @@ -117,6 +131,20 @@ public Response Create(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string serverName, MySqlServerPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DBforMySQL/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string serverName, MySqlServerPatch patch) { var message = _pipeline.CreateMessage(); @@ -195,6 +223,20 @@ public Response Update(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string serverName) + { + 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.DBforMySQL/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); @@ -267,6 +309,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serverName) + { + 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.DBforMySQL/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); @@ -349,6 +405,19 @@ public Response Get(string subscriptionId, string resourceGroup } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.DBforMySQL/servers", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -422,6 +491,17 @@ public Response ListByResourceGroup(string subscriptionId } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.DBforMySQL/servers", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -489,6 +569,21 @@ public Response List(string subscriptionId, CancellationT } } + internal RequestUriBuilder CreateRestartRequestUri(string subscriptionId, string resourceGroupName, string serverName) + { + 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.DBforMySQL/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/restart", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRestartRequest(string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/RestOperations/TopQueryStatisticsRestOperations.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/RestOperations/TopQueryStatisticsRestOperations.cs index 5f6bf1786a05..ff6a38037d9c 100644 --- a/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/RestOperations/TopQueryStatisticsRestOperations.cs +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/RestOperations/TopQueryStatisticsRestOperations.cs @@ -37,6 +37,22 @@ public TopQueryStatisticsRestOperations(HttpPipeline pipeline, string applicatio _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serverName, string queryStatisticId) + { + 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.DBforMySQL/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/topQueryStatistics/", false); + uri.AppendPath(queryStatisticId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serverName, string queryStatisticId) { var message = _pipeline.CreateMessage(); @@ -125,6 +141,21 @@ public Response Get(string subscriptionId, string resou } } + internal RequestUriBuilder CreateListByServerRequestUri(string subscriptionId, string resourceGroupName, string serverName, MySqlTopQueryStatisticsInput input) + { + 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.DBforMySQL/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/topQueryStatistics", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByServerRequest(string subscriptionId, string resourceGroupName, string serverName, MySqlTopQueryStatisticsInput input) { var message = _pipeline.CreateMessage(); @@ -212,6 +243,14 @@ public Response ListByServer(string subscript } } + internal RequestUriBuilder CreateListByServerNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serverName, MySqlTopQueryStatisticsInput input) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByServerNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serverName, MySqlTopQueryStatisticsInput input) { var message = _pipeline.CreateMessage(); diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/RestOperations/VirtualNetworkRulesRestOperations.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/RestOperations/VirtualNetworkRulesRestOperations.cs index 9e1a059ffad6..8c4d01f81530 100644 --- a/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/RestOperations/VirtualNetworkRulesRestOperations.cs +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/RestOperations/VirtualNetworkRulesRestOperations.cs @@ -37,6 +37,22 @@ public VirtualNetworkRulesRestOperations(HttpPipeline pipeline, string applicati _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serverName, string virtualNetworkRuleName) + { + 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.DBforMySQL/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/virtualNetworkRules/", false); + uri.AppendPath(virtualNetworkRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serverName, string virtualNetworkRuleName) { var message = _pipeline.CreateMessage(); @@ -125,6 +141,22 @@ public Response Get(string subscriptionId, string r } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serverName, string virtualNetworkRuleName, MySqlVirtualNetworkRuleData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DBforMySQL/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/virtualNetworkRules/", false); + uri.AppendPath(virtualNetworkRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serverName, string virtualNetworkRuleName, MySqlVirtualNetworkRuleData data) { var message = _pipeline.CreateMessage(); @@ -211,6 +243,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string serverName, string virtualNetworkRuleName) + { + 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.DBforMySQL/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/virtualNetworkRules/", false); + uri.AppendPath(virtualNetworkRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string serverName, string virtualNetworkRuleName) { var message = _pipeline.CreateMessage(); @@ -288,6 +336,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListByServerRequestUri(string subscriptionId, string resourceGroupName, string serverName) + { + 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.DBforMySQL/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/virtualNetworkRules", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByServerRequest(string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); @@ -367,6 +430,14 @@ public Response ListByServer(string subscript } } + internal RequestUriBuilder CreateListByServerNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serverName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByServerNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/RestOperations/WaitStatisticsRestOperations.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/RestOperations/WaitStatisticsRestOperations.cs index 4b922ac1a3d2..93cad89566c6 100644 --- a/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/RestOperations/WaitStatisticsRestOperations.cs +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/RestOperations/WaitStatisticsRestOperations.cs @@ -37,6 +37,22 @@ public WaitStatisticsRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serverName, string waitStatisticsId) + { + 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.DBforMySQL/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/waitStatistics/", false); + uri.AppendPath(waitStatisticsId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serverName, string waitStatisticsId) { var message = _pipeline.CreateMessage(); @@ -125,6 +141,21 @@ public Response Get(string subscriptionId, string resour } } + internal RequestUriBuilder CreateListByServerRequestUri(string subscriptionId, string resourceGroupName, string serverName, MySqlWaitStatisticsInput input) + { + 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.DBforMySQL/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/waitStatistics", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByServerRequest(string subscriptionId, string resourceGroupName, string serverName, MySqlWaitStatisticsInput input) { var message = _pipeline.CreateMessage(); @@ -212,6 +243,14 @@ public Response ListByServer(string subscriptionI } } + internal RequestUriBuilder CreateListByServerNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serverName, MySqlWaitStatisticsInput input) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByServerNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serverName, MySqlWaitStatisticsInput input) { var message = _pipeline.CreateMessage(); diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/LongRunningOperation/FlexibleServersArmOperation.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/LongRunningOperation/FlexibleServersArmOperation.cs index 3d8bf2f6ddae..f08368c1767a 100644 --- a/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/LongRunningOperation/FlexibleServersArmOperation.cs +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/LongRunningOperation/FlexibleServersArmOperation.cs @@ -20,21 +20,24 @@ internal class FlexibleServersArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of FlexibleServersArmOperation for mocking. protected FlexibleServersArmOperation() { } - internal FlexibleServersArmOperation(Response response) + internal FlexibleServersArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal FlexibleServersArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "FlexibleServersArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal FlexibleServersArmOperation(ClientDiagnostics clientDiagnostics, HttpPi public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/LongRunningOperation/FlexibleServersArmOperationOfT.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/LongRunningOperation/FlexibleServersArmOperationOfT.cs index fc912a45ea07..52bb44de1bb5 100644 --- a/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/LongRunningOperation/FlexibleServersArmOperationOfT.cs +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/LongRunningOperation/FlexibleServersArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class FlexibleServersArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of FlexibleServersArmOperation for mocking. protected FlexibleServersArmOperation() { } - internal FlexibleServersArmOperation(Response response) + internal FlexibleServersArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal FlexibleServersArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "FlexibleServersArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal FlexibleServersArmOperation(IOperationSource source, ClientDiagnosti public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/Models/MySqlFlexibleServerAadAdministratorResource.Serialization.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/Models/MySqlFlexibleServerAadAdministratorResource.Serialization.cs new file mode 100644 index 000000000000..3be3af5ad53d --- /dev/null +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/Models/MySqlFlexibleServerAadAdministratorResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.MySql.FlexibleServers +{ + public partial class MySqlFlexibleServerAadAdministratorResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MySqlFlexibleServerAadAdministratorData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MySqlFlexibleServerAadAdministratorData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/Models/MySqlFlexibleServerBackupResource.Serialization.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/Models/MySqlFlexibleServerBackupResource.Serialization.cs new file mode 100644 index 000000000000..244b44b3c0dd --- /dev/null +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/Models/MySqlFlexibleServerBackupResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.MySql.FlexibleServers +{ + public partial class MySqlFlexibleServerBackupResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MySqlFlexibleServerBackupData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MySqlFlexibleServerBackupData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/Models/MySqlFlexibleServerConfigurationResource.Serialization.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/Models/MySqlFlexibleServerConfigurationResource.Serialization.cs new file mode 100644 index 000000000000..98366ddc1381 --- /dev/null +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/Models/MySqlFlexibleServerConfigurationResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.MySql.FlexibleServers +{ + public partial class MySqlFlexibleServerConfigurationResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MySqlFlexibleServerConfigurationData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MySqlFlexibleServerConfigurationData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/Models/MySqlFlexibleServerDatabaseResource.Serialization.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/Models/MySqlFlexibleServerDatabaseResource.Serialization.cs new file mode 100644 index 000000000000..3ef112ac70a1 --- /dev/null +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/Models/MySqlFlexibleServerDatabaseResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.MySql.FlexibleServers +{ + public partial class MySqlFlexibleServerDatabaseResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MySqlFlexibleServerDatabaseData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MySqlFlexibleServerDatabaseData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/Models/MySqlFlexibleServerFirewallRuleResource.Serialization.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/Models/MySqlFlexibleServerFirewallRuleResource.Serialization.cs new file mode 100644 index 000000000000..b03922086bab --- /dev/null +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/Models/MySqlFlexibleServerFirewallRuleResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.MySql.FlexibleServers +{ + public partial class MySqlFlexibleServerFirewallRuleResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MySqlFlexibleServerFirewallRuleData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MySqlFlexibleServerFirewallRuleData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/Models/MySqlFlexibleServerResource.Serialization.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/Models/MySqlFlexibleServerResource.Serialization.cs new file mode 100644 index 000000000000..0ea33569f2e3 --- /dev/null +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/Models/MySqlFlexibleServerResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.MySql.FlexibleServers +{ + public partial class MySqlFlexibleServerResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MySqlFlexibleServerData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MySqlFlexibleServerData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/Models/MySqlFlexibleServersCapabilityResource.Serialization.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/Models/MySqlFlexibleServersCapabilityResource.Serialization.cs new file mode 100644 index 000000000000..3d48580da541 --- /dev/null +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/Models/MySqlFlexibleServersCapabilityResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.MySql.FlexibleServers +{ + public partial class MySqlFlexibleServersCapabilityResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MySqlFlexibleServersCapabilityData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MySqlFlexibleServersCapabilityData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/MySqlFlexibleServerBackupCollection.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/MySqlFlexibleServerBackupCollection.cs index c9bd1be689c4..212edc0cbb81 100644 --- a/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/MySqlFlexibleServerBackupCollection.cs +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/MySqlFlexibleServerBackupCollection.cs @@ -88,7 +88,9 @@ public virtual async Task> Creat try { var response = await _mySqlFlexibleServerBackupBackupsRestClient.PutAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, backupName, cancellationToken).ConfigureAwait(false); - var operation = new FlexibleServersArmOperation(Response.FromValue(new MySqlFlexibleServerBackupResource(Client, response), response.GetRawResponse())); + var uri = _mySqlFlexibleServerBackupBackupsRestClient.CreatePutRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, backupName); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new FlexibleServersArmOperation(Response.FromValue(new MySqlFlexibleServerBackupResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -135,7 +137,9 @@ public virtual ArmOperation CreateOrUpdate(Wa try { var response = _mySqlFlexibleServerBackupBackupsRestClient.Put(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, backupName, cancellationToken); - var operation = new FlexibleServersArmOperation(Response.FromValue(new MySqlFlexibleServerBackupResource(Client, response), response.GetRawResponse())); + var uri = _mySqlFlexibleServerBackupBackupsRestClient.CreatePutRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, backupName); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new FlexibleServersArmOperation(Response.FromValue(new MySqlFlexibleServerBackupResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/MySqlFlexibleServerBackupResource.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/MySqlFlexibleServerBackupResource.cs index c1a444bdd244..6afffa542589 100644 --- a/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/MySqlFlexibleServerBackupResource.cs +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/MySqlFlexibleServerBackupResource.cs @@ -200,7 +200,9 @@ public virtual async Task> Updat try { var response = await _mySqlFlexibleServerBackupBackupsRestClient.PutAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new FlexibleServersArmOperation(Response.FromValue(new MySqlFlexibleServerBackupResource(Client, response), response.GetRawResponse())); + var uri = _mySqlFlexibleServerBackupBackupsRestClient.CreatePutRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new FlexibleServersArmOperation(Response.FromValue(new MySqlFlexibleServerBackupResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -242,7 +244,9 @@ public virtual ArmOperation Update(WaitUntil try { var response = _mySqlFlexibleServerBackupBackupsRestClient.Put(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new FlexibleServersArmOperation(Response.FromValue(new MySqlFlexibleServerBackupResource(Client, response), response.GetRawResponse())); + var uri = _mySqlFlexibleServerBackupBackupsRestClient.CreatePutRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new FlexibleServersArmOperation(Response.FromValue(new MySqlFlexibleServerBackupResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/RestOperations/AzureADAdministratorsRestOperations.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/RestOperations/AzureADAdministratorsRestOperations.cs index 20deb9120c40..ca3c5bf6c06d 100644 --- a/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/RestOperations/AzureADAdministratorsRestOperations.cs +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/RestOperations/AzureADAdministratorsRestOperations.cs @@ -37,6 +37,22 @@ public AzureADAdministratorsRestOperations(HttpPipeline pipeline, string applica _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serverName, MySqlFlexibleServerAdministratorName administratorName, MySqlFlexibleServerAadAdministratorData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DBforMySQL/flexibleServers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/administrators/", false); + uri.AppendPath(administratorName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serverName, MySqlFlexibleServerAdministratorName administratorName, MySqlFlexibleServerAadAdministratorData data) { var message = _pipeline.CreateMessage(); @@ -121,6 +137,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string serverName, MySqlFlexibleServerAdministratorName administratorName) + { + 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.DBforMySQL/flexibleServers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/administrators/", false); + uri.AppendPath(administratorName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string serverName, MySqlFlexibleServerAdministratorName administratorName) { var message = _pipeline.CreateMessage(); @@ -197,6 +229,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serverName, MySqlFlexibleServerAdministratorName administratorName) + { + 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.DBforMySQL/flexibleServers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/administrators/", false); + uri.AppendPath(administratorName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serverName, MySqlFlexibleServerAdministratorName administratorName) { var message = _pipeline.CreateMessage(); @@ -283,6 +331,21 @@ public Response Get(string subscription } } + internal RequestUriBuilder CreateListByServerRequestUri(string subscriptionId, string resourceGroupName, string serverName) + { + 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.DBforMySQL/flexibleServers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/administrators", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByServerRequest(string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); @@ -362,6 +425,14 @@ public Response ListByServer(stri } } + internal RequestUriBuilder CreateListByServerNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serverName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByServerNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/RestOperations/BackupAndExportRestOperations.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/RestOperations/BackupAndExportRestOperations.cs index eda819449f38..fb198bc3868f 100644 --- a/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/RestOperations/BackupAndExportRestOperations.cs +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/RestOperations/BackupAndExportRestOperations.cs @@ -37,6 +37,21 @@ public BackupAndExportRestOperations(HttpPipeline pipeline, string applicationId _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string serverName, MySqlFlexibleServerBackupAndExportContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DBforMySQL/flexibleServers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/backupAndExport", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string serverName, MySqlFlexibleServerBackupAndExportContent content) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,21 @@ public Response Create(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateValidateBackupRequestUri(string subscriptionId, string resourceGroupName, string serverName) + { + 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.DBforMySQL/flexibleServers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/validateBackup", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateValidateBackupRequest(string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/RestOperations/BackupsRestOperations.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/RestOperations/BackupsRestOperations.cs index 774d5556587a..a91d6337438e 100644 --- a/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/RestOperations/BackupsRestOperations.cs +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/RestOperations/BackupsRestOperations.cs @@ -37,6 +37,22 @@ public BackupsRestOperations(HttpPipeline pipeline, string applicationId, Uri en _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreatePutRequestUri(string subscriptionId, string resourceGroupName, string serverName, string backupName) + { + 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.DBforMySQL/flexibleServers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/backups/", false); + uri.AppendPath(backupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreatePutRequest(string subscriptionId, string resourceGroupName, string serverName, string backupName) { var message = _pipeline.CreateMessage(); @@ -121,6 +137,22 @@ public Response Put(string subscriptionId, string } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serverName, string backupName) + { + 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.DBforMySQL/flexibleServers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/backups/", false); + uri.AppendPath(backupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serverName, string backupName) { var message = _pipeline.CreateMessage(); @@ -209,6 +241,21 @@ public Response Get(string subscriptionId, string } } + internal RequestUriBuilder CreateListByServerRequestUri(string subscriptionId, string resourceGroupName, string serverName) + { + 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.DBforMySQL/flexibleServers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/backups", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByServerRequest(string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); @@ -288,6 +335,14 @@ public Response ListByServer(string subscri } } + internal RequestUriBuilder CreateListByServerNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serverName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByServerNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/RestOperations/CheckNameAvailabilityRestOperations.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/RestOperations/CheckNameAvailabilityRestOperations.cs index cc997fa2e8e7..ee80e66b8c79 100644 --- a/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/RestOperations/CheckNameAvailabilityRestOperations.cs +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/RestOperations/CheckNameAvailabilityRestOperations.cs @@ -37,6 +37,19 @@ public CheckNameAvailabilityRestOperations(HttpPipeline pipeline, string applica _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateExecuteRequestUri(string subscriptionId, AzureLocation locationName, MySqlFlexibleServerNameAvailabilityContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.DBforMySQL/locations/", false); + uri.AppendPath(locationName, true); + uri.AppendPath("/checkNameAvailability", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateExecuteRequest(string subscriptionId, AzureLocation locationName, MySqlFlexibleServerNameAvailabilityContent content) { var message = _pipeline.CreateMessage(); diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/RestOperations/CheckNameAvailabilityWithoutLocationRestOperations.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/RestOperations/CheckNameAvailabilityWithoutLocationRestOperations.cs index 471994994163..775080cda2da 100644 --- a/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/RestOperations/CheckNameAvailabilityWithoutLocationRestOperations.cs +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/RestOperations/CheckNameAvailabilityWithoutLocationRestOperations.cs @@ -37,6 +37,17 @@ public CheckNameAvailabilityWithoutLocationRestOperations(HttpPipeline pipeline, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateExecuteRequestUri(string subscriptionId, MySqlFlexibleServerNameAvailabilityContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.DBforMySQL/checkNameAvailability", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateExecuteRequest(string subscriptionId, MySqlFlexibleServerNameAvailabilityContent content) { var message = _pipeline.CreateMessage(); diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/RestOperations/CheckVirtualNetworkSubnetUsageRestOperations.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/RestOperations/CheckVirtualNetworkSubnetUsageRestOperations.cs index e9f84313a0ce..5b11c0269569 100644 --- a/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/RestOperations/CheckVirtualNetworkSubnetUsageRestOperations.cs +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/RestOperations/CheckVirtualNetworkSubnetUsageRestOperations.cs @@ -37,6 +37,19 @@ public CheckVirtualNetworkSubnetUsageRestOperations(HttpPipeline pipeline, strin _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateExecuteRequestUri(string subscriptionId, AzureLocation locationName, MySqlFlexibleServerVirtualNetworkSubnetUsageParameter mySqlFlexibleServerVirtualNetworkSubnetUsageParameter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.DBforMySQL/locations/", false); + uri.AppendPath(locationName, true); + uri.AppendPath("/checkVirtualNetworkSubnetUsage", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateExecuteRequest(string subscriptionId, AzureLocation locationName, MySqlFlexibleServerVirtualNetworkSubnetUsageParameter mySqlFlexibleServerVirtualNetworkSubnetUsageParameter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/RestOperations/ConfigurationsRestOperations.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/RestOperations/ConfigurationsRestOperations.cs index d6c326fdaae1..6223da1af8e1 100644 --- a/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/RestOperations/ConfigurationsRestOperations.cs +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/RestOperations/ConfigurationsRestOperations.cs @@ -37,6 +37,22 @@ public ConfigurationsRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serverName, string configurationName, MySqlFlexibleServerConfigurationData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DBforMySQL/flexibleServers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/configurations/", false); + uri.AppendPath(configurationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serverName, string configurationName, MySqlFlexibleServerConfigurationData data) { var message = _pipeline.CreateMessage(); @@ -121,6 +137,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string serverName, string configurationName, MySqlFlexibleServerConfigurationData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DBforMySQL/flexibleServers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/configurations/", false); + uri.AppendPath(configurationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string serverName, string configurationName, MySqlFlexibleServerConfigurationData data) { var message = _pipeline.CreateMessage(); @@ -205,6 +237,22 @@ public Response Update(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serverName, string configurationName) + { + 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.DBforMySQL/flexibleServers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/configurations/", false); + uri.AppendPath(configurationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serverName, string configurationName) { var message = _pipeline.CreateMessage(); @@ -293,6 +341,21 @@ public Response Get(string subscriptionId, } } + internal RequestUriBuilder CreateBatchUpdateRequestUri(string subscriptionId, string resourceGroupName, string serverName, MySqlFlexibleServerConfigurationListForBatchUpdate mySqlFlexibleServerConfigurationListForBatchUpdate) + { + 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.DBforMySQL/flexibleServers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/updateConfigurations", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateBatchUpdateRequest(string subscriptionId, string resourceGroupName, string serverName, MySqlFlexibleServerConfigurationListForBatchUpdate mySqlFlexibleServerConfigurationListForBatchUpdate) { var message = _pipeline.CreateMessage(); @@ -372,6 +435,37 @@ public Response BatchUpdate(string subscriptionId, string resourceGroupName, str } } + internal RequestUriBuilder CreateListByServerRequestUri(string subscriptionId, string resourceGroupName, string serverName, string tags, string keyword, int? page, int? pageSize) + { + 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.DBforMySQL/flexibleServers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/configurations", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (tags != null) + { + uri.AppendQuery("tags", tags, true); + } + if (keyword != null) + { + uri.AppendQuery("keyword", keyword, true); + } + if (page != null) + { + uri.AppendQuery("page", page.Value, true); + } + if (pageSize != null) + { + uri.AppendQuery("pageSize", pageSize.Value, true); + } + return uri; + } + internal HttpMessage CreateListByServerRequest(string subscriptionId, string resourceGroupName, string serverName, string tags, string keyword, int? page, int? pageSize) { var message = _pipeline.CreateMessage(); @@ -475,6 +569,14 @@ public Response ListByServer(string } } + internal RequestUriBuilder CreateListByServerNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serverName, string tags, string keyword, int? page, int? pageSize) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByServerNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serverName, string tags, string keyword, int? page, int? pageSize) { var message = _pipeline.CreateMessage(); diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/RestOperations/DatabasesRestOperations.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/RestOperations/DatabasesRestOperations.cs index 0131cc8f5a34..2a316c87735e 100644 --- a/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/RestOperations/DatabasesRestOperations.cs +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/RestOperations/DatabasesRestOperations.cs @@ -37,6 +37,22 @@ public DatabasesRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName, MySqlFlexibleServerDatabaseData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DBforMySQL/flexibleServers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName, MySqlFlexibleServerDatabaseData data) { var message = _pipeline.CreateMessage(); @@ -123,6 +139,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName) + { + 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.DBforMySQL/flexibleServers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName) { var message = _pipeline.CreateMessage(); @@ -201,6 +233,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName) + { + 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.DBforMySQL/flexibleServers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName) { var message = _pipeline.CreateMessage(); @@ -289,6 +337,21 @@ public Response Get(string subscriptionId, stri } } + internal RequestUriBuilder CreateListByServerRequestUri(string subscriptionId, string resourceGroupName, string serverName) + { + 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.DBforMySQL/flexibleServers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByServerRequest(string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); @@ -368,6 +431,14 @@ public Response ListByServer(string subsc } } + internal RequestUriBuilder CreateListByServerNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serverName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByServerNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/RestOperations/FirewallRulesRestOperations.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/RestOperations/FirewallRulesRestOperations.cs index 5e8419f28dd8..f0343f1b964b 100644 --- a/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/RestOperations/FirewallRulesRestOperations.cs +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/RestOperations/FirewallRulesRestOperations.cs @@ -37,6 +37,22 @@ public FirewallRulesRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serverName, string firewallRuleName, MySqlFlexibleServerFirewallRuleData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DBforMySQL/flexibleServers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/firewallRules/", false); + uri.AppendPath(firewallRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serverName, string firewallRuleName, MySqlFlexibleServerFirewallRuleData data) { var message = _pipeline.CreateMessage(); @@ -123,6 +139,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string serverName, string firewallRuleName) + { + 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.DBforMySQL/flexibleServers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/firewallRules/", false); + uri.AppendPath(firewallRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string serverName, string firewallRuleName) { var message = _pipeline.CreateMessage(); @@ -201,6 +233,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serverName, string firewallRuleName) + { + 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.DBforMySQL/flexibleServers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/firewallRules/", false); + uri.AppendPath(firewallRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serverName, string firewallRuleName) { var message = _pipeline.CreateMessage(); @@ -289,6 +337,21 @@ public Response Get(string subscriptionId, } } + internal RequestUriBuilder CreateListByServerRequestUri(string subscriptionId, string resourceGroupName, string serverName) + { + 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.DBforMySQL/flexibleServers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/firewallRules", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByServerRequest(string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); @@ -368,6 +431,14 @@ public Response ListByServer(string s } } + internal RequestUriBuilder CreateListByServerNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serverName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByServerNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/RestOperations/GetPrivateDnsZoneSuffixRestOperations.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/RestOperations/GetPrivateDnsZoneSuffixRestOperations.cs index 6c71f0a2a7a4..f9a7522a0a24 100644 --- a/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/RestOperations/GetPrivateDnsZoneSuffixRestOperations.cs +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/RestOperations/GetPrivateDnsZoneSuffixRestOperations.cs @@ -37,6 +37,15 @@ public GetPrivateDnsZoneSuffixRestOperations(HttpPipeline pipeline, string appli _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateExecuteRequestUri() + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.DBforMySQL/getPrivateDnsZoneSuffix", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateExecuteRequest() { var message = _pipeline.CreateMessage(); diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/RestOperations/LocationBasedCapabilitiesRestOperations.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/RestOperations/LocationBasedCapabilitiesRestOperations.cs index eb9e8599a25d..b1d30c8a80a9 100644 --- a/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/RestOperations/LocationBasedCapabilitiesRestOperations.cs +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/RestOperations/LocationBasedCapabilitiesRestOperations.cs @@ -37,6 +37,19 @@ public LocationBasedCapabilitiesRestOperations(HttpPipeline pipeline, string app _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, AzureLocation locationName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.DBforMySQL/locations/", false); + uri.AppendPath(locationName, true); + uri.AppendPath("/capabilities", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, AzureLocation locationName) { var message = _pipeline.CreateMessage(); @@ -108,6 +121,14 @@ public Response List(string subscript } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, AzureLocation locationName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, AzureLocation locationName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/RestOperations/LocationBasedCapabilitySetRestOperations.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/RestOperations/LocationBasedCapabilitySetRestOperations.cs index acdd9afdb016..bd4907a5aa3f 100644 --- a/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/RestOperations/LocationBasedCapabilitySetRestOperations.cs +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/RestOperations/LocationBasedCapabilitySetRestOperations.cs @@ -37,6 +37,19 @@ public LocationBasedCapabilitySetRestOperations(HttpPipeline pipeline, string ap _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, AzureLocation locationName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.DBforMySQL/locations/", false); + uri.AppendPath(locationName, true); + uri.AppendPath("/capabilitySets", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, AzureLocation locationName) { var message = _pipeline.CreateMessage(); @@ -108,6 +121,20 @@ public Response List(string subscriptionId, AzureLocation lo } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, AzureLocation locationName, string capabilitySetName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.DBforMySQL/locations/", false); + uri.AppendPath(locationName, true); + uri.AppendPath("/capabilitySets/", false); + uri.AppendPath(capabilitySetName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, AzureLocation locationName, string capabilitySetName) { var message = _pipeline.CreateMessage(); @@ -188,6 +215,14 @@ public Response Get(string subscriptionId, A } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, AzureLocation locationName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, AzureLocation locationName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/RestOperations/LogFilesRestOperations.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/RestOperations/LogFilesRestOperations.cs index c99379757cbe..ca604d6f18c3 100644 --- a/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/RestOperations/LogFilesRestOperations.cs +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/RestOperations/LogFilesRestOperations.cs @@ -37,6 +37,21 @@ public LogFilesRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByServerRequestUri(string subscriptionId, string resourceGroupName, string serverName) + { + 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.DBforMySQL/flexibleServers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/logFiles", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByServerRequest(string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,14 @@ public Response ListByServer(string subscr } } + internal RequestUriBuilder CreateListByServerNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serverName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByServerNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/RestOperations/OperationResultsRestOperations.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/RestOperations/OperationResultsRestOperations.cs index 2c2da0e98d89..6640474ecbb0 100644 --- a/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/RestOperations/OperationResultsRestOperations.cs +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/RestOperations/OperationResultsRestOperations.cs @@ -37,6 +37,20 @@ public OperationResultsRestOperations(HttpPipeline pipeline, string applicationI _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, AzureLocation locationName, string operationId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.DBforMySQL/locations/", false); + uri.AppendPath(locationName, true); + uri.AppendPath("/operationResults/", false); + uri.AppendPath(operationId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, AzureLocation locationName, string operationId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/RestOperations/ReplicasRestOperations.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/RestOperations/ReplicasRestOperations.cs index 2dcf5c043145..f6383efb9874 100644 --- a/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/RestOperations/ReplicasRestOperations.cs +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/RestOperations/ReplicasRestOperations.cs @@ -37,6 +37,21 @@ public ReplicasRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByServerRequestUri(string subscriptionId, string resourceGroupName, string serverName) + { + 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.DBforMySQL/flexibleServers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/replicas", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByServerRequest(string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,14 @@ public Response ListByServer(string subscriptionI } } + internal RequestUriBuilder CreateListByServerNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serverName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByServerNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/RestOperations/ServersMigrationRestOperations.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/RestOperations/ServersMigrationRestOperations.cs index 7ca6cf1e8f43..99e9a2e77db2 100644 --- a/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/RestOperations/ServersMigrationRestOperations.cs +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/RestOperations/ServersMigrationRestOperations.cs @@ -35,6 +35,21 @@ public ServersMigrationRestOperations(HttpPipeline pipeline, string applicationI _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCutoverMigrationRequestUri(string subscriptionId, string resourceGroupName, string serverName) + { + 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.DBforMySQL/flexibleServers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/cutoverMigration", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCutoverMigrationRequest(string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/RestOperations/ServersRestOperations.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/RestOperations/ServersRestOperations.cs index d08d160b1d60..709d5e590569 100644 --- a/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/RestOperations/ServersRestOperations.cs +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/RestOperations/ServersRestOperations.cs @@ -37,6 +37,20 @@ public ServersRestOperations(HttpPipeline pipeline, string applicationId, Uri en _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string serverName, MySqlFlexibleServerData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DBforMySQL/flexibleServers/", false); + uri.AppendPath(serverName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string serverName, MySqlFlexibleServerData data) { var message = _pipeline.CreateMessage(); @@ -117,6 +131,20 @@ public Response Create(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string serverName, MySqlFlexibleServerPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DBforMySQL/flexibleServers/", false); + uri.AppendPath(serverName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string serverName, MySqlFlexibleServerPatch patch) { var message = _pipeline.CreateMessage(); @@ -195,6 +223,20 @@ public Response Update(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string serverName) + { + 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.DBforMySQL/flexibleServers/", false); + uri.AppendPath(serverName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); @@ -267,6 +309,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serverName) + { + 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.DBforMySQL/flexibleServers/", false); + uri.AppendPath(serverName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); @@ -349,6 +405,19 @@ public Response Get(string subscriptionId, string resou } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.DBforMySQL/flexibleServers", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -422,6 +491,17 @@ public Response ListByResourceGroup(string subscr } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.DBforMySQL/flexibleServers", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -489,6 +569,21 @@ public Response List(string subscriptionId, Cance } } + internal RequestUriBuilder CreateFailoverRequestUri(string subscriptionId, string resourceGroupName, string serverName) + { + 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.DBforMySQL/flexibleServers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/failover", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateFailoverRequest(string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); @@ -560,6 +655,21 @@ public Response Failover(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreateRestartRequestUri(string subscriptionId, string resourceGroupName, string serverName, MySqlFlexibleServerRestartParameter mySqlFlexibleServerRestartParameter) + { + 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.DBforMySQL/flexibleServers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/restart", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRestartRequest(string subscriptionId, string resourceGroupName, string serverName, MySqlFlexibleServerRestartParameter mySqlFlexibleServerRestartParameter) { var message = _pipeline.CreateMessage(); @@ -639,6 +749,21 @@ public Response Restart(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreateStartRequestUri(string subscriptionId, string resourceGroupName, string serverName) + { + 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.DBforMySQL/flexibleServers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/start", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStartRequest(string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); @@ -710,6 +835,21 @@ public Response Start(string subscriptionId, string resourceGroupName, string se } } + internal RequestUriBuilder CreateStopRequestUri(string subscriptionId, string resourceGroupName, string serverName) + { + 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.DBforMySQL/flexibleServers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/stop", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStopRequest(string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); @@ -781,6 +921,21 @@ public Response Stop(string subscriptionId, string resourceGroupName, string ser } } + internal RequestUriBuilder CreateResetGtidRequestUri(string subscriptionId, string resourceGroupName, string serverName, MySqlFlexibleServerGtidSetContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DBforMySQL/flexibleServers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/resetGtid", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateResetGtidRequest(string subscriptionId, string resourceGroupName, string serverName, MySqlFlexibleServerGtidSetContent content) { var message = _pipeline.CreateMessage(); @@ -860,6 +1015,14 @@ public Response ResetGtid(string subscriptionId, string resourceGroupName, strin } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -932,6 +1095,14 @@ public Response ListByResourceGroupNextPage(strin } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/LongRunningOperation/NetAppArmOperation.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/LongRunningOperation/NetAppArmOperation.cs index 6d4197783353..9e51b3b35958 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/LongRunningOperation/NetAppArmOperation.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/LongRunningOperation/NetAppArmOperation.cs @@ -20,21 +20,24 @@ internal class NetAppArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of NetAppArmOperation for mocking. protected NetAppArmOperation() { } - internal NetAppArmOperation(Response response) + internal NetAppArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal NetAppArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "NetAppArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal NetAppArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pi public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/LongRunningOperation/NetAppArmOperationOfT.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/LongRunningOperation/NetAppArmOperationOfT.cs index b802a575f2bc..1d97ad7ba767 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/LongRunningOperation/NetAppArmOperationOfT.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/LongRunningOperation/NetAppArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class NetAppArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of NetAppArmOperation for mocking. protected NetAppArmOperation() { } - internal NetAppArmOperation(Response response) + internal NetAppArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal NetAppArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "NetAppArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal NetAppArmOperation(IOperationSource source, ClientDiagnostics client public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/CapacityPoolResource.Serialization.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/CapacityPoolResource.Serialization.cs new file mode 100644 index 000000000000..57a283907411 --- /dev/null +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/CapacityPoolResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.NetApp +{ + public partial class CapacityPoolResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + CapacityPoolData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + CapacityPoolData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppAccountResource.Serialization.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppAccountResource.Serialization.cs new file mode 100644 index 000000000000..433b42a19887 --- /dev/null +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppAccountResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.NetApp +{ + public partial class NetAppAccountResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + NetAppAccountData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + NetAppAccountData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppBackupPolicyResource.Serialization.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppBackupPolicyResource.Serialization.cs new file mode 100644 index 000000000000..2b237d47ef5c --- /dev/null +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppBackupPolicyResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.NetApp +{ + public partial class NetAppBackupPolicyResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + NetAppBackupPolicyData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + NetAppBackupPolicyData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppSubvolumeInfoResource.Serialization.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppSubvolumeInfoResource.Serialization.cs new file mode 100644 index 000000000000..8d39404d25fb --- /dev/null +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppSubvolumeInfoResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.NetApp +{ + public partial class NetAppSubvolumeInfoResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + NetAppSubvolumeInfoData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + NetAppSubvolumeInfoData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeGroupResource.Serialization.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeGroupResource.Serialization.cs new file mode 100644 index 000000000000..3b9a3716fa4e --- /dev/null +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeGroupResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.NetApp +{ + public partial class NetAppVolumeGroupResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + NetAppVolumeGroupData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + NetAppVolumeGroupData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeQuotaRuleResource.Serialization.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeQuotaRuleResource.Serialization.cs new file mode 100644 index 000000000000..cd35b08f4c3b --- /dev/null +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeQuotaRuleResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.NetApp +{ + public partial class NetAppVolumeQuotaRuleResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + NetAppVolumeQuotaRuleData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + NetAppVolumeQuotaRuleData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeResource.Serialization.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeResource.Serialization.cs new file mode 100644 index 000000000000..564e00657f05 --- /dev/null +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.NetApp +{ + public partial class NetAppVolumeResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + NetAppVolumeData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + NetAppVolumeData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeSnapshotResource.Serialization.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeSnapshotResource.Serialization.cs new file mode 100644 index 000000000000..077a603ab38f --- /dev/null +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeSnapshotResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.NetApp +{ + public partial class NetAppVolumeSnapshotResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + NetAppVolumeSnapshotData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + NetAppVolumeSnapshotData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/SnapshotPolicyResource.Serialization.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/SnapshotPolicyResource.Serialization.cs new file mode 100644 index 000000000000..33b9e394af85 --- /dev/null +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/SnapshotPolicyResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.NetApp +{ + public partial class SnapshotPolicyResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SnapshotPolicyData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SnapshotPolicyData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/AccountsRestOperations.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/AccountsRestOperations.cs index 3a73df9d0e66..42fa58f4561c 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/AccountsRestOperations.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/AccountsRestOperations.cs @@ -37,6 +37,17 @@ public AccountsRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.NetApp/netAppAccounts", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,19 @@ public Response ListBySubscription(string subscriptionId, Can } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName) + { + 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.NetApp/netAppAccounts", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -177,6 +201,20 @@ public Response List(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string accountName) + { + 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.NetApp/netAppAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); @@ -259,6 +297,20 @@ public Response Get(string subscriptionId, string resourceGro } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string accountName, NetAppAccountData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.NetApp/netAppAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string accountName, NetAppAccountData data) { var message = _pipeline.CreateMessage(); @@ -337,6 +389,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string accountName) + { + 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.NetApp/netAppAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); @@ -406,6 +472,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string accountName, NetAppAccountPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.NetApp/netAppAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string accountName, NetAppAccountPatch patch) { var message = _pipeline.CreateMessage(); @@ -484,6 +564,21 @@ public Response Update(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateRenewCredentialsRequestUri(string subscriptionId, string resourceGroupName, string accountName) + { + 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.NetApp/netAppAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/renewCredentials", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRenewCredentialsRequest(string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); @@ -554,6 +649,14 @@ public Response RenewCredentials(string subscriptionId, string resourceGroupName } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -622,6 +725,14 @@ public Response ListBySubscriptionNextPage(string nextLink, s } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/BackupPoliciesRestOperations.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/BackupPoliciesRestOperations.cs index 19f9add289be..6e5eaa6f3703 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/BackupPoliciesRestOperations.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/BackupPoliciesRestOperations.cs @@ -37,6 +37,21 @@ public BackupPoliciesRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string accountName) + { + 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.NetApp/netAppAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/backupPolicies", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response List(string subscriptionId, string resourceG } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string accountName, string backupPolicyName) + { + 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.NetApp/netAppAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/backupPolicies/", false); + uri.AppendPath(backupPolicyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string accountName, string backupPolicyName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscriptionId, string resour } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string accountName, string backupPolicyName, NetAppBackupPolicyData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.NetApp/netAppAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/backupPolicies/", false); + uri.AppendPath(backupPolicyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string accountName, string backupPolicyName, NetAppBackupPolicyData data) { var message = _pipeline.CreateMessage(); @@ -290,6 +337,22 @@ public Response Create(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string accountName, string backupPolicyName, NetAppBackupPolicyPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.NetApp/netAppAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/backupPolicies/", false); + uri.AppendPath(backupPolicyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string accountName, string backupPolicyName, NetAppBackupPolicyPatch patch) { var message = _pipeline.CreateMessage(); @@ -374,6 +437,22 @@ public Response Update(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string accountName, string backupPolicyName) + { + 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.NetApp/netAppAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/backupPolicies/", false); + uri.AppendPath(backupPolicyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string accountName, string backupPolicyName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/BackupsRestOperations.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/BackupsRestOperations.cs index 024b16bb1a59..d2dd8f69ee82 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/BackupsRestOperations.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/BackupsRestOperations.cs @@ -37,6 +37,25 @@ public BackupsRestOperations(HttpPipeline pipeline, string applicationId, Uri en _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetVolumeRestoreStatusRequestUri(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName) + { + 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.NetApp/netAppAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/capacityPools/", false); + uri.AppendPath(poolName, true); + uri.AppendPath("/volumes/", false); + uri.AppendPath(volumeName, true); + uri.AppendPath("/restoreStatus", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetVolumeRestoreStatusRequest(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/NetAppResourceQuotaLimitsRestOperations.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/NetAppResourceQuotaLimitsRestOperations.cs index 5f07327b4fdb..5e5f69335a7c 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/NetAppResourceQuotaLimitsRestOperations.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/NetAppResourceQuotaLimitsRestOperations.cs @@ -37,6 +37,19 @@ public NetAppResourceQuotaLimitsRestOperations(HttpPipeline pipeline, string app _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, AzureLocation location) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.NetApp/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/quotaLimits", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, AzureLocation location) { var message = _pipeline.CreateMessage(); @@ -108,6 +121,20 @@ public Response List(string subscriptionId, AzureLoca } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, AzureLocation location, string quotaLimitName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.NetApp/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/quotaLimits/", false); + uri.AppendPath(quotaLimitName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, AzureLocation location, string quotaLimitName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/NetAppResourceRestOperations.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/NetAppResourceRestOperations.cs index bfd6b0daf13d..0c3a99287728 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/NetAppResourceRestOperations.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/NetAppResourceRestOperations.cs @@ -37,6 +37,19 @@ public NetAppResourceRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCheckNameAvailabilityRequestUri(string subscriptionId, AzureLocation location, NetAppNameAvailabilityContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.NetApp/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/checkNameAvailability", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCheckNameAvailabilityRequest(string subscriptionId, AzureLocation location, NetAppNameAvailabilityContent content) { var message = _pipeline.CreateMessage(); @@ -116,6 +129,19 @@ public Response CheckNameAvailability(string subs } } + internal RequestUriBuilder CreateCheckFilePathAvailabilityRequestUri(string subscriptionId, AzureLocation location, NetAppFilePathAvailabilityContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.NetApp/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/checkFilePathAvailability", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCheckFilePathAvailabilityRequest(string subscriptionId, AzureLocation location, NetAppFilePathAvailabilityContent content) { var message = _pipeline.CreateMessage(); @@ -195,6 +221,19 @@ public Response CheckFilePathAvailability(string } } + internal RequestUriBuilder CreateCheckQuotaAvailabilityRequestUri(string subscriptionId, AzureLocation location, NetAppQuotaAvailabilityContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.NetApp/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/checkQuotaAvailability", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCheckQuotaAvailabilityRequest(string subscriptionId, AzureLocation location, NetAppQuotaAvailabilityContent content) { var message = _pipeline.CreateMessage(); @@ -274,6 +313,19 @@ public Response CheckQuotaAvailability(string sub } } + internal RequestUriBuilder CreateQueryRegionInfoRequestUri(string subscriptionId, AzureLocation location) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.NetApp/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/regionInfo", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateQueryRegionInfoRequest(string subscriptionId, AzureLocation location) { var message = _pipeline.CreateMessage(); @@ -345,6 +397,19 @@ public Response QueryRegionInfo(string subscriptionId, AzureLo } } + internal RequestUriBuilder CreateQueryNetworkSiblingSetRequestUri(string subscriptionId, AzureLocation location, QueryNetworkSiblingSetContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.NetApp/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/queryNetworkSiblingSet", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateQueryNetworkSiblingSetRequest(string subscriptionId, AzureLocation location, QueryNetworkSiblingSetContent content) { var message = _pipeline.CreateMessage(); @@ -424,6 +489,19 @@ public Response QueryNetworkSiblingSet(string subscriptionId, } } + internal RequestUriBuilder CreateUpdateNetworkSiblingSetRequestUri(string subscriptionId, AzureLocation location, UpdateNetworkSiblingSetContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.NetApp/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/updateNetworkSiblingSet", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateNetworkSiblingSetRequest(string subscriptionId, AzureLocation location, UpdateNetworkSiblingSetContent content) { var message = _pipeline.CreateMessage(); diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/PoolsRestOperations.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/PoolsRestOperations.cs index d7cfbfd0e442..863ffa94aa8c 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/PoolsRestOperations.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/PoolsRestOperations.cs @@ -37,6 +37,21 @@ public PoolsRestOperations(HttpPipeline pipeline, string applicationId, Uri endp _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string accountName) + { + 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.NetApp/netAppAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/capacityPools", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response List(string subscriptionId, string resourceGro } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string accountName, string poolName) + { + 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.NetApp/netAppAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/capacityPools/", false); + uri.AppendPath(poolName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string accountName, string poolName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscriptionId, string resourceGrou } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string accountName, string poolName, CapacityPoolData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.NetApp/netAppAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/capacityPools/", false); + uri.AppendPath(poolName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string accountName, string poolName, CapacityPoolData data) { var message = _pipeline.CreateMessage(); @@ -288,6 +335,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string accountName, string poolName, CapacityPoolPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.NetApp/netAppAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/capacityPools/", false); + uri.AppendPath(poolName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string accountName, string poolName, CapacityPoolPatch patch) { var message = _pipeline.CreateMessage(); @@ -372,6 +435,22 @@ public Response Update(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string accountName, string poolName) + { + 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.NetApp/netAppAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/capacityPools/", false); + uri.AppendPath(poolName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string accountName, string poolName) { var message = _pipeline.CreateMessage(); @@ -447,6 +526,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string accountName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/SnapshotPoliciesRestOperations.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/SnapshotPoliciesRestOperations.cs index bd74f7c4d884..38121efbaf6a 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/SnapshotPoliciesRestOperations.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/SnapshotPoliciesRestOperations.cs @@ -37,6 +37,21 @@ public SnapshotPoliciesRestOperations(HttpPipeline pipeline, string applicationI _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string accountName) + { + 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.NetApp/netAppAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/snapshotPolicies", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response List(string subscriptionId, string resourc } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string accountName, string snapshotPolicyName) + { + 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.NetApp/netAppAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/snapshotPolicies/", false); + uri.AppendPath(snapshotPolicyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string accountName, string snapshotPolicyName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string accountName, string snapshotPolicyName, SnapshotPolicyData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.NetApp/netAppAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/snapshotPolicies/", false); + uri.AppendPath(snapshotPolicyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string accountName, string snapshotPolicyName, SnapshotPolicyData data) { var message = _pipeline.CreateMessage(); @@ -298,6 +345,22 @@ public Response Create(string subscriptionId, string resourc } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string accountName, string snapshotPolicyName, SnapshotPolicyPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.NetApp/netAppAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/snapshotPolicies/", false); + uri.AppendPath(snapshotPolicyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string accountName, string snapshotPolicyName, SnapshotPolicyPatch patch) { var message = _pipeline.CreateMessage(); @@ -382,6 +445,22 @@ public Response Update(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string accountName, string snapshotPolicyName) + { + 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.NetApp/netAppAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/snapshotPolicies/", false); + uri.AppendPath(snapshotPolicyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string accountName, string snapshotPolicyName) { var message = _pipeline.CreateMessage(); @@ -459,6 +538,23 @@ public Response Delete(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateListVolumesRequestUri(string subscriptionId, string resourceGroupName, string accountName, string snapshotPolicyName) + { + 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.NetApp/netAppAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/snapshotPolicies/", false); + uri.AppendPath(snapshotPolicyName, true); + uri.AppendPath("/volumes", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListVolumesRequest(string subscriptionId, string resourceGroupName, string accountName, string snapshotPolicyName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/SnapshotsRestOperations.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/SnapshotsRestOperations.cs index f5f3289aee06..52a9dea343be 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/SnapshotsRestOperations.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/SnapshotsRestOperations.cs @@ -37,6 +37,25 @@ public SnapshotsRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName) + { + 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.NetApp/netAppAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/capacityPools/", false); + uri.AppendPath(poolName, true); + uri.AppendPath("/volumes/", false); + uri.AppendPath(volumeName, true); + uri.AppendPath("/snapshots", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName) { var message = _pipeline.CreateMessage(); @@ -128,6 +147,26 @@ public Response List(string subscriptionId, string resourceGroupN } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, string snapshotName) + { + 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.NetApp/netAppAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/capacityPools/", false); + uri.AppendPath(poolName, true); + uri.AppendPath("/volumes/", false); + uri.AppendPath(volumeName, true); + uri.AppendPath("/snapshots/", false); + uri.AppendPath(snapshotName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, string snapshotName) { var message = _pipeline.CreateMessage(); @@ -228,6 +267,26 @@ public Response Get(string subscriptionId, string reso } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, string snapshotName, NetAppVolumeSnapshotData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.NetApp/netAppAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/capacityPools/", false); + uri.AppendPath(poolName, true); + uri.AppendPath("/volumes/", false); + uri.AppendPath(volumeName, true); + uri.AppendPath("/snapshots/", false); + uri.AppendPath(snapshotName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, string snapshotName, NetAppVolumeSnapshotData data) { var message = _pipeline.CreateMessage(); @@ -324,6 +383,26 @@ public Response Create(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, string snapshotName) + { + 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.NetApp/netAppAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/capacityPools/", false); + uri.AppendPath(poolName, true); + uri.AppendPath("/volumes/", false); + uri.AppendPath(volumeName, true); + uri.AppendPath("/snapshots/", false); + uri.AppendPath(snapshotName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, string snapshotName) { var message = _pipeline.CreateMessage(); @@ -413,6 +492,27 @@ public Response Delete(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateRestoreFilesRequestUri(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, string snapshotName, NetAppVolumeSnapshotRestoreFilesContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.NetApp/netAppAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/capacityPools/", false); + uri.AppendPath(poolName, true); + uri.AppendPath("/volumes/", false); + uri.AppendPath(volumeName, true); + uri.AppendPath("/snapshots/", false); + uri.AppendPath(snapshotName, true); + uri.AppendPath("/restoreFiles", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRestoreFilesRequest(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, string snapshotName, NetAppVolumeSnapshotRestoreFilesContent content) { var message = _pipeline.CreateMessage(); diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/SubvolumesRestOperations.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/SubvolumesRestOperations.cs index 226bf984b3a5..ca458ef3d9c6 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/SubvolumesRestOperations.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/SubvolumesRestOperations.cs @@ -37,6 +37,25 @@ public SubvolumesRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByVolumeRequestUri(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName) + { + 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.NetApp/netAppAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/capacityPools/", false); + uri.AppendPath(poolName, true); + uri.AppendPath("/volumes/", false); + uri.AppendPath(volumeName, true); + uri.AppendPath("/subvolumes", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByVolumeRequest(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName) { var message = _pipeline.CreateMessage(); @@ -128,6 +147,26 @@ public Response ListByVolume(string subscriptionId, string resou } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, string subvolumeName) + { + 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.NetApp/netAppAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/capacityPools/", false); + uri.AppendPath(poolName, true); + uri.AppendPath("/volumes/", false); + uri.AppendPath(volumeName, true); + uri.AppendPath("/subvolumes/", false); + uri.AppendPath(subvolumeName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, string subvolumeName) { var message = _pipeline.CreateMessage(); @@ -228,6 +267,26 @@ public Response Get(string subscriptionId, string resou } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, string subvolumeName, NetAppSubvolumeInfoData info) + { + 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.NetApp/netAppAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/capacityPools/", false); + uri.AppendPath(poolName, true); + uri.AppendPath("/volumes/", false); + uri.AppendPath(volumeName, true); + uri.AppendPath("/subvolumes/", false); + uri.AppendPath(subvolumeName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, string subvolumeName, NetAppSubvolumeInfoData info) { var message = _pipeline.CreateMessage(); @@ -326,6 +385,26 @@ public Response Create(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, string subvolumeName, NetAppSubvolumeInfoPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.NetApp/netAppAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/capacityPools/", false); + uri.AppendPath(poolName, true); + uri.AppendPath("/volumes/", false); + uri.AppendPath(volumeName, true); + uri.AppendPath("/subvolumes/", false); + uri.AppendPath(subvolumeName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, string subvolumeName, NetAppSubvolumeInfoPatch patch) { var message = _pipeline.CreateMessage(); @@ -422,6 +501,26 @@ public Response Update(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, string subvolumeName) + { + 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.NetApp/netAppAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/capacityPools/", false); + uri.AppendPath(poolName, true); + uri.AppendPath("/volumes/", false); + uri.AppendPath(volumeName, true); + uri.AppendPath("/subvolumes/", false); + uri.AppendPath(subvolumeName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, string subvolumeName) { var message = _pipeline.CreateMessage(); @@ -511,6 +610,27 @@ public Response Delete(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateGetMetadataRequestUri(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, string subvolumeName) + { + 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.NetApp/netAppAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/capacityPools/", false); + uri.AppendPath(poolName, true); + uri.AppendPath("/volumes/", false); + uri.AppendPath(volumeName, true); + uri.AppendPath("/subvolumes/", false); + uri.AppendPath(subvolumeName, true); + uri.AppendPath("/getMetadata", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetMetadataRequest(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, string subvolumeName) { var message = _pipeline.CreateMessage(); @@ -600,6 +720,14 @@ public Response GetMetadata(string subscriptionId, string resourceGroupName, str } } + internal RequestUriBuilder CreateListByVolumeNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByVolumeNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/VolumeGroupsRestOperations.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/VolumeGroupsRestOperations.cs index 585f6ae9bb88..55546835682b 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/VolumeGroupsRestOperations.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/VolumeGroupsRestOperations.cs @@ -37,6 +37,21 @@ public VolumeGroupsRestOperations(HttpPipeline pipeline, string applicationId, U _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByNetAppAccountRequestUri(string subscriptionId, string resourceGroupName, string accountName) + { + 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.NetApp/netAppAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/volumeGroups", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByNetAppAccountRequest(string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByNetAppAccount(string subscriptionId, stri } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string accountName, string volumeGroupName) + { + 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.NetApp/netAppAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/volumeGroups/", false); + uri.AppendPath(volumeGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string accountName, string volumeGroupName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscriptionId, string resourc } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string accountName, string volumeGroupName, NetAppVolumeGroupData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.NetApp/netAppAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/volumeGroups/", false); + uri.AppendPath(volumeGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string accountName, string volumeGroupName, NetAppVolumeGroupData data) { var message = _pipeline.CreateMessage(); @@ -286,6 +333,22 @@ public Response Create(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string accountName, string volumeGroupName) + { + 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.NetApp/netAppAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/volumeGroups/", false); + uri.AppendPath(volumeGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string accountName, string volumeGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/VolumeQuotaRulesRestOperations.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/VolumeQuotaRulesRestOperations.cs index 6b6ef30be06e..f9899afea365 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/VolumeQuotaRulesRestOperations.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/VolumeQuotaRulesRestOperations.cs @@ -37,6 +37,25 @@ public VolumeQuotaRulesRestOperations(HttpPipeline pipeline, string applicationI _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByVolumeRequestUri(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName) + { + 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.NetApp/netAppAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/capacityPools/", false); + uri.AppendPath(poolName, true); + uri.AppendPath("/volumes/", false); + uri.AppendPath(volumeName, true); + uri.AppendPath("/volumeQuotaRules", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByVolumeRequest(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName) { var message = _pipeline.CreateMessage(); @@ -128,6 +147,26 @@ public Response ListByVolume(string subscriptionId, string } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, string volumeQuotaRuleName) + { + 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.NetApp/netAppAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/capacityPools/", false); + uri.AppendPath(poolName, true); + uri.AppendPath("/volumes/", false); + uri.AppendPath(volumeName, true); + uri.AppendPath("/volumeQuotaRules/", false); + uri.AppendPath(volumeQuotaRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, string volumeQuotaRuleName) { var message = _pipeline.CreateMessage(); @@ -228,6 +267,26 @@ public Response Get(string subscriptionId, string res } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, string volumeQuotaRuleName, NetAppVolumeQuotaRuleData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.NetApp/netAppAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/capacityPools/", false); + uri.AppendPath(poolName, true); + uri.AppendPath("/volumes/", false); + uri.AppendPath(volumeName, true); + uri.AppendPath("/volumeQuotaRules/", false); + uri.AppendPath(volumeQuotaRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, string volumeQuotaRuleName, NetAppVolumeQuotaRuleData data) { var message = _pipeline.CreateMessage(); @@ -324,6 +383,26 @@ public Response Create(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, string volumeQuotaRuleName, NetAppVolumeQuotaRulePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.NetApp/netAppAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/capacityPools/", false); + uri.AppendPath(poolName, true); + uri.AppendPath("/volumes/", false); + uri.AppendPath(volumeName, true); + uri.AppendPath("/volumeQuotaRules/", false); + uri.AppendPath(volumeQuotaRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, string volumeQuotaRuleName, NetAppVolumeQuotaRulePatch patch) { var message = _pipeline.CreateMessage(); @@ -420,6 +499,26 @@ public Response Update(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, string volumeQuotaRuleName) + { + 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.NetApp/netAppAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/capacityPools/", false); + uri.AppendPath(poolName, true); + uri.AppendPath("/volumes/", false); + uri.AppendPath(volumeName, true); + uri.AppendPath("/volumeQuotaRules/", false); + uri.AppendPath(volumeQuotaRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, string volumeQuotaRuleName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/VolumesRestOperations.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/VolumesRestOperations.cs index 4935a9b01e97..776f8267746f 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/VolumesRestOperations.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/RestOperations/VolumesRestOperations.cs @@ -37,6 +37,23 @@ public VolumesRestOperations(HttpPipeline pipeline, string applicationId, Uri en _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string accountName, string poolName) + { + 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.NetApp/netAppAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/capacityPools/", false); + uri.AppendPath(poolName, true); + uri.AppendPath("/volumes", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string accountName, string poolName) { var message = _pipeline.CreateMessage(); @@ -122,6 +139,24 @@ public Response List(string subscriptionId, string resourceGroupName } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName) + { + 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.NetApp/netAppAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/capacityPools/", false); + uri.AppendPath(poolName, true); + uri.AppendPath("/volumes/", false); + uri.AppendPath(volumeName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName) { var message = _pipeline.CreateMessage(); @@ -216,6 +251,24 @@ public Response Get(string subscriptionId, string resourceGrou } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, NetAppVolumeData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.NetApp/netAppAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/capacityPools/", false); + uri.AppendPath(poolName, true); + uri.AppendPath("/volumes/", false); + uri.AppendPath(volumeName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, NetAppVolumeData data) { var message = _pipeline.CreateMessage(); @@ -308,6 +361,24 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, NetAppVolumePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.NetApp/netAppAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/capacityPools/", false); + uri.AppendPath(poolName, true); + uri.AppendPath("/volumes/", false); + uri.AppendPath(volumeName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, NetAppVolumePatch patch) { var message = _pipeline.CreateMessage(); @@ -398,6 +469,28 @@ public Response Update(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, bool? forceDelete) + { + 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.NetApp/netAppAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/capacityPools/", false); + uri.AppendPath(poolName, true); + uri.AppendPath("/volumes/", false); + uri.AppendPath(volumeName, true); + if (forceDelete != null) + { + uri.AppendQuery("forceDelete", forceDelete.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, bool? forceDelete) { var message = _pipeline.CreateMessage(); @@ -485,6 +578,25 @@ public Response Delete(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreatePopulateAvailabilityZoneRequestUri(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName) + { + 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.NetApp/netAppAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/capacityPools/", false); + uri.AppendPath(poolName, true); + uri.AppendPath("/volumes/", false); + uri.AppendPath(volumeName, true); + uri.AppendPath("/populateAvailabilityZone", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreatePopulateAvailabilityZoneRequest(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName) { var message = _pipeline.CreateMessage(); @@ -568,6 +680,25 @@ public Response PopulateAvailabilityZone(string subscriptionId, string resourceG } } + internal RequestUriBuilder CreateRevertRequestUri(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, NetAppVolumeRevertContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.NetApp/netAppAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/capacityPools/", false); + uri.AppendPath(poolName, true); + uri.AppendPath("/volumes/", false); + uri.AppendPath(volumeName, true); + uri.AppendPath("/revert", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRevertRequest(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, NetAppVolumeRevertContent content) { var message = _pipeline.CreateMessage(); @@ -658,6 +789,25 @@ public Response Revert(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateResetCifsPasswordRequestUri(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName) + { + 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.NetApp/netAppAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/capacityPools/", false); + uri.AppendPath(poolName, true); + uri.AppendPath("/volumes/", false); + uri.AppendPath(volumeName, true); + uri.AppendPath("/resetCifsPassword", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateResetCifsPasswordRequest(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName) { var message = _pipeline.CreateMessage(); @@ -740,6 +890,25 @@ public Response ResetCifsPassword(string subscriptionId, string resourceGroupNam } } + internal RequestUriBuilder CreateBreakFileLocksRequestUri(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, NetAppVolumeBreakFileLocksContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.NetApp/netAppAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/capacityPools/", false); + uri.AppendPath(poolName, true); + uri.AppendPath("/volumes/", false); + uri.AppendPath(volumeName, true); + uri.AppendPath("/breakFileLocks", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateBreakFileLocksRequest(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, NetAppVolumeBreakFileLocksContent content) { var message = _pipeline.CreateMessage(); @@ -831,6 +1000,25 @@ public Response BreakFileLocks(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateListGetGroupIdListForLdapUserRequestUri(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, GetGroupIdListForLdapUserContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.NetApp/netAppAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/capacityPools/", false); + uri.AppendPath(poolName, true); + uri.AppendPath("/volumes/", false); + uri.AppendPath(volumeName, true); + uri.AppendPath("/getGroupIdListForLdapUser", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListGetGroupIdListForLdapUserRequest(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, GetGroupIdListForLdapUserContent content) { var message = _pipeline.CreateMessage(); @@ -922,6 +1110,25 @@ public Response ListGetGroupIdListForLdapUser(string subscriptionId, string reso } } + internal RequestUriBuilder CreateBreakReplicationRequestUri(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, NetAppVolumeBreakReplicationContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.NetApp/netAppAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/capacityPools/", false); + uri.AppendPath(poolName, true); + uri.AppendPath("/volumes/", false); + uri.AppendPath(volumeName, true); + uri.AppendPath("/breakReplication", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateBreakReplicationRequest(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, NetAppVolumeBreakReplicationContent content) { var message = _pipeline.CreateMessage(); @@ -1013,6 +1220,25 @@ public Response BreakReplication(string subscriptionId, string resourceGroupName } } + internal RequestUriBuilder CreateReestablishReplicationRequestUri(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, NetAppVolumeReestablishReplicationContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.NetApp/netAppAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/capacityPools/", false); + uri.AppendPath(poolName, true); + uri.AppendPath("/volumes/", false); + uri.AppendPath(volumeName, true); + uri.AppendPath("/reestablishReplication", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateReestablishReplicationRequest(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, NetAppVolumeReestablishReplicationContent content) { var message = _pipeline.CreateMessage(); @@ -1101,6 +1327,25 @@ public Response ReestablishReplication(string subscriptionId, string resourceGro } } + internal RequestUriBuilder CreateReplicationStatusRequestUri(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName) + { + 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.NetApp/netAppAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/capacityPools/", false); + uri.AppendPath(poolName, true); + uri.AppendPath("/volumes/", false); + uri.AppendPath(volumeName, true); + uri.AppendPath("/replicationStatus", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateReplicationStatusRequest(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName) { var message = _pipeline.CreateMessage(); @@ -1192,6 +1437,25 @@ public Response ReplicationStatus(string subscrip } } + internal RequestUriBuilder CreateListReplicationsRequestUri(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName) + { + 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.NetApp/netAppAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/capacityPools/", false); + uri.AppendPath(poolName, true); + uri.AppendPath("/volumes/", false); + uri.AppendPath(volumeName, true); + uri.AppendPath("/listReplications", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListReplicationsRequest(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName) { var message = _pipeline.CreateMessage(); @@ -1283,6 +1547,25 @@ public Response ListReplications(string subscriptionId, string } } + internal RequestUriBuilder CreateResyncReplicationRequestUri(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName) + { + 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.NetApp/netAppAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/capacityPools/", false); + uri.AppendPath(poolName, true); + uri.AppendPath("/volumes/", false); + uri.AppendPath(volumeName, true); + uri.AppendPath("/resyncReplication", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateResyncReplicationRequest(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName) { var message = _pipeline.CreateMessage(); @@ -1365,6 +1648,25 @@ public Response ResyncReplication(string subscriptionId, string resourceGroupNam } } + internal RequestUriBuilder CreateDeleteReplicationRequestUri(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName) + { + 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.NetApp/netAppAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/capacityPools/", false); + uri.AppendPath(poolName, true); + uri.AppendPath("/volumes/", false); + uri.AppendPath(volumeName, true); + uri.AppendPath("/deleteReplication", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteReplicationRequest(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName) { var message = _pipeline.CreateMessage(); @@ -1447,6 +1749,25 @@ public Response DeleteReplication(string subscriptionId, string resourceGroupNam } } + internal RequestUriBuilder CreateAuthorizeReplicationRequestUri(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, NetAppVolumeAuthorizeReplicationContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.NetApp/netAppAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/capacityPools/", false); + uri.AppendPath(poolName, true); + uri.AppendPath("/volumes/", false); + uri.AppendPath(volumeName, true); + uri.AppendPath("/authorizeReplication", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateAuthorizeReplicationRequest(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, NetAppVolumeAuthorizeReplicationContent content) { var message = _pipeline.CreateMessage(); @@ -1537,6 +1858,25 @@ public Response AuthorizeReplication(string subscriptionId, string resourceGroup } } + internal RequestUriBuilder CreateReInitializeReplicationRequestUri(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName) + { + 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.NetApp/netAppAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/capacityPools/", false); + uri.AppendPath(poolName, true); + uri.AppendPath("/volumes/", false); + uri.AppendPath(volumeName, true); + uri.AppendPath("/reinitializeReplication", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateReInitializeReplicationRequest(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName) { var message = _pipeline.CreateMessage(); @@ -1619,6 +1959,25 @@ public Response ReInitializeReplication(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreatePoolChangeRequestUri(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, NetAppVolumePoolChangeContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.NetApp/netAppAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/capacityPools/", false); + uri.AppendPath(poolName, true); + uri.AppendPath("/volumes/", false); + uri.AppendPath(volumeName, true); + uri.AppendPath("/poolChange", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreatePoolChangeRequest(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, NetAppVolumePoolChangeContent content) { var message = _pipeline.CreateMessage(); @@ -1709,6 +2068,25 @@ public Response PoolChange(string subscriptionId, string resourceGroupName, stri } } + internal RequestUriBuilder CreateRelocateRequestUri(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, RelocateVolumeContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.NetApp/netAppAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/capacityPools/", false); + uri.AppendPath(poolName, true); + uri.AppendPath("/volumes/", false); + uri.AppendPath(volumeName, true); + uri.AppendPath("/relocate", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRelocateRequest(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName, RelocateVolumeContent content) { var message = _pipeline.CreateMessage(); @@ -1800,6 +2178,25 @@ public Response Relocate(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreateFinalizeRelocationRequestUri(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName) + { + 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.NetApp/netAppAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/capacityPools/", false); + uri.AppendPath(poolName, true); + uri.AppendPath("/volumes/", false); + uri.AppendPath(volumeName, true); + uri.AppendPath("/finalizeRelocation", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateFinalizeRelocationRequest(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName) { var message = _pipeline.CreateMessage(); @@ -1882,6 +2279,25 @@ public Response FinalizeRelocation(string subscriptionId, string resourceGroupNa } } + internal RequestUriBuilder CreateRevertRelocationRequestUri(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName) + { + 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.NetApp/netAppAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/capacityPools/", false); + uri.AppendPath(poolName, true); + uri.AppendPath("/volumes/", false); + uri.AppendPath(volumeName, true); + uri.AppendPath("/revertRelocation", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRevertRelocationRequest(string subscriptionId, string resourceGroupName, string accountName, string poolName, string volumeName) { var message = _pipeline.CreateMessage(); @@ -1964,6 +2380,14 @@ public Response RevertRelocation(string subscriptionId, string resourceGroupName } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string accountName, string poolName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string accountName, string poolName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/SnapshotPolicyCollection.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/SnapshotPolicyCollection.cs index 5286405f4790..3522e1ac545b 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/SnapshotPolicyCollection.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/SnapshotPolicyCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> CreateOrUpdateAs try { var response = await _snapshotPolicyRestClient.CreateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, snapshotPolicyName, data, cancellationToken).ConfigureAwait(false); - var operation = new NetAppArmOperation(Response.FromValue(new SnapshotPolicyResource(Client, response), response.GetRawResponse())); + var uri = _snapshotPolicyRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, snapshotPolicyName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new NetAppArmOperation(Response.FromValue(new SnapshotPolicyResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wai try { var response = _snapshotPolicyRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, snapshotPolicyName, data, cancellationToken); - var operation = new NetAppArmOperation(Response.FromValue(new SnapshotPolicyResource(Client, response), response.GetRawResponse())); + var uri = _snapshotPolicyRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, snapshotPolicyName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new NetAppArmOperation(Response.FromValue(new SnapshotPolicyResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/AdminRuleGroupCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/AdminRuleGroupCollection.cs index 2880f927d550..aa097578342c 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/AdminRuleGroupCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/AdminRuleGroupCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> CreateOrUpdateAs try { var response = await _adminRuleGroupAdminRuleCollectionsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ruleCollectionName, data, cancellationToken).ConfigureAwait(false); - var operation = new NetworkArmOperation(Response.FromValue(new AdminRuleGroupResource(Client, response), response.GetRawResponse())); + var uri = _adminRuleGroupAdminRuleCollectionsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ruleCollectionName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new NetworkArmOperation(Response.FromValue(new AdminRuleGroupResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wai try { var response = _adminRuleGroupAdminRuleCollectionsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ruleCollectionName, data, cancellationToken); - var operation = new NetworkArmOperation(Response.FromValue(new AdminRuleGroupResource(Client, response), response.GetRawResponse())); + var uri = _adminRuleGroupAdminRuleCollectionsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ruleCollectionName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new NetworkArmOperation(Response.FromValue(new AdminRuleGroupResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/AdminRuleGroupResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/AdminRuleGroupResource.cs index db4ef3f0f811..b733dd12600b 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/AdminRuleGroupResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/AdminRuleGroupResource.cs @@ -360,7 +360,9 @@ public virtual async Task> UpdateAsync(Wait try { var response = await _adminRuleGroupAdminRuleCollectionsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new NetworkArmOperation(Response.FromValue(new AdminRuleGroupResource(Client, response), response.GetRawResponse())); + var uri = _adminRuleGroupAdminRuleCollectionsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new NetworkArmOperation(Response.FromValue(new AdminRuleGroupResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -406,7 +408,9 @@ public virtual ArmOperation Update(WaitUntil waitUntil, try { var response = _adminRuleGroupAdminRuleCollectionsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new NetworkArmOperation(Response.FromValue(new AdminRuleGroupResource(Client, response), response.GetRawResponse())); + var uri = _adminRuleGroupAdminRuleCollectionsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new NetworkArmOperation(Response.FromValue(new AdminRuleGroupResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/BaseAdminRuleCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/BaseAdminRuleCollection.cs index 13a15280fea8..5b3f39c14e43 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/BaseAdminRuleCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/BaseAdminRuleCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> CreateOrUpdateAsy try { var response = await _baseAdminRuleAdminRulesRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, ruleName, data, cancellationToken).ConfigureAwait(false); - var operation = new NetworkArmOperation(Response.FromValue(new BaseAdminRuleResource(Client, response), response.GetRawResponse())); + var uri = _baseAdminRuleAdminRulesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, ruleName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new NetworkArmOperation(Response.FromValue(new BaseAdminRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wait try { var response = _baseAdminRuleAdminRulesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, ruleName, data, cancellationToken); - var operation = new NetworkArmOperation(Response.FromValue(new BaseAdminRuleResource(Client, response), response.GetRawResponse())); + var uri = _baseAdminRuleAdminRulesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, ruleName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new NetworkArmOperation(Response.FromValue(new BaseAdminRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/BaseAdminRuleResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/BaseAdminRuleResource.cs index 317bcf03f23b..2e496f0a8d32 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/BaseAdminRuleResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/BaseAdminRuleResource.cs @@ -292,7 +292,9 @@ public virtual async Task> UpdateAsync(WaitU try { var response = await _baseAdminRuleAdminRulesRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new NetworkArmOperation(Response.FromValue(new BaseAdminRuleResource(Client, response), response.GetRawResponse())); + var uri = _baseAdminRuleAdminRulesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new NetworkArmOperation(Response.FromValue(new BaseAdminRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -338,7 +340,9 @@ public virtual ArmOperation Update(WaitUntil waitUntil, B try { var response = _baseAdminRuleAdminRulesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new NetworkArmOperation(Response.FromValue(new BaseAdminRuleResource(Client, response), response.GetRawResponse())); + var uri = _baseAdminRuleAdminRulesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new NetworkArmOperation(Response.FromValue(new BaseAdminRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ConnectivityConfigurationCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ConnectivityConfigurationCollection.cs index 4f9d52c6c671..9f0d1b420614 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ConnectivityConfigurationCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ConnectivityConfigurationCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> Creat try { var response = await _connectivityConfigurationRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, configurationName, data, cancellationToken).ConfigureAwait(false); - var operation = new NetworkArmOperation(Response.FromValue(new ConnectivityConfigurationResource(Client, response), response.GetRawResponse())); + var uri = _connectivityConfigurationRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, configurationName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new NetworkArmOperation(Response.FromValue(new ConnectivityConfigurationResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(Wa try { var response = _connectivityConfigurationRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, configurationName, data, cancellationToken); - var operation = new NetworkArmOperation(Response.FromValue(new ConnectivityConfigurationResource(Client, response), response.GetRawResponse())); + var uri = _connectivityConfigurationRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, configurationName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new NetworkArmOperation(Response.FromValue(new ConnectivityConfigurationResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ConnectivityConfigurationResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ConnectivityConfigurationResource.cs index 8b89604ab276..5d13df3cfcc4 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ConnectivityConfigurationResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ConnectivityConfigurationResource.cs @@ -290,7 +290,9 @@ public virtual async Task> Updat try { var response = await _connectivityConfigurationRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new NetworkArmOperation(Response.FromValue(new ConnectivityConfigurationResource(Client, response), response.GetRawResponse())); + var uri = _connectivityConfigurationRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new NetworkArmOperation(Response.FromValue(new ConnectivityConfigurationResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -336,7 +338,9 @@ public virtual ArmOperation Update(WaitUntil try { var response = _connectivityConfigurationRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new NetworkArmOperation(Response.FromValue(new ConnectivityConfigurationResource(Client, response), response.GetRawResponse())); + var uri = _connectivityConfigurationRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new NetworkArmOperation(Response.FromValue(new ConnectivityConfigurationResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/LongRunningOperation/NetworkArmOperation.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/LongRunningOperation/NetworkArmOperation.cs index 6bd7b44bbb8b..ceb23f44f8af 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/LongRunningOperation/NetworkArmOperation.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/LongRunningOperation/NetworkArmOperation.cs @@ -20,21 +20,24 @@ internal class NetworkArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of NetworkArmOperation for mocking. protected NetworkArmOperation() { } - internal NetworkArmOperation(Response response) + internal NetworkArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal NetworkArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "NetworkArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal NetworkArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline p public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/LongRunningOperation/NetworkArmOperationOfT.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/LongRunningOperation/NetworkArmOperationOfT.cs index d090d578679d..9cfa3f93d12d 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/LongRunningOperation/NetworkArmOperationOfT.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/LongRunningOperation/NetworkArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class NetworkArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of NetworkArmOperation for mocking. protected NetworkArmOperation() { } - internal NetworkArmOperation(Response response) + internal NetworkArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal NetworkArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "NetworkArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal NetworkArmOperation(IOperationSource source, ClientDiagnostics clien public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ManagementGroupNetworkManagerConnectionCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ManagementGroupNetworkManagerConnectionCollection.cs index 7d929a2c9960..dcaccaf98a08 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ManagementGroupNetworkManagerConnectionCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ManagementGroupNetworkManagerConnectionCollection.cs @@ -91,7 +91,9 @@ public virtual async Task(Response.FromValue(new ManagementGroupNetworkManagerConnectionResource(Client, response), response.GetRawResponse())); + var uri = _managementGroupNetworkManagerConnectionRestClient.CreateCreateOrUpdateRequestUri(Id.Name, networkManagerConnectionName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new NetworkArmOperation(Response.FromValue(new ManagementGroupNetworkManagerConnectionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -140,7 +142,9 @@ public virtual ArmOperation Cre try { var response = _managementGroupNetworkManagerConnectionRestClient.CreateOrUpdate(Id.Name, networkManagerConnectionName, data, cancellationToken); - var operation = new NetworkArmOperation(Response.FromValue(new ManagementGroupNetworkManagerConnectionResource(Client, response), response.GetRawResponse())); + var uri = _managementGroupNetworkManagerConnectionRestClient.CreateCreateOrUpdateRequestUri(Id.Name, networkManagerConnectionName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new NetworkArmOperation(Response.FromValue(new ManagementGroupNetworkManagerConnectionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ManagementGroupNetworkManagerConnectionResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ManagementGroupNetworkManagerConnectionResource.cs index ee3ed0bde6b8..ff8d5f5d7b91 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ManagementGroupNetworkManagerConnectionResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ManagementGroupNetworkManagerConnectionResource.cs @@ -199,7 +199,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _managementGroupNetworkManagerConnectionRestClient.DeleteAsync(Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new NetworkArmOperation(response); + var uri = _managementGroupNetworkManagerConnectionRestClient.CreateDeleteRequestUri(Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new NetworkArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -241,7 +243,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _managementGroupNetworkManagerConnectionRestClient.Delete(Id.Parent.Name, Id.Name, cancellationToken); - var operation = new NetworkArmOperation(response); + var uri = _managementGroupNetworkManagerConnectionRestClient.CreateDeleteRequestUri(Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new NetworkArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -287,7 +291,9 @@ public virtual async Task(Response.FromValue(new ManagementGroupNetworkManagerConnectionResource(Client, response), response.GetRawResponse())); + var uri = _managementGroupNetworkManagerConnectionRestClient.CreateCreateOrUpdateRequestUri(Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new NetworkArmOperation(Response.FromValue(new ManagementGroupNetworkManagerConnectionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -333,7 +339,9 @@ public virtual ArmOperation Upd try { var response = _managementGroupNetworkManagerConnectionRestClient.CreateOrUpdate(Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new NetworkArmOperation(Response.FromValue(new ManagementGroupNetworkManagerConnectionResource(Client, response), response.GetRawResponse())); + var uri = _managementGroupNetworkManagerConnectionRestClient.CreateCreateOrUpdateRequestUri(Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new NetworkArmOperation(Response.FromValue(new ManagementGroupNetworkManagerConnectionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AdminRuleGroupResource.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AdminRuleGroupResource.Serialization.cs new file mode 100644 index 000000000000..4a41a9ce3009 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AdminRuleGroupResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Network +{ + public partial class AdminRuleGroupResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + AdminRuleGroupData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + AdminRuleGroupData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayPrivateEndpointConnectionResource.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayPrivateEndpointConnectionResource.Serialization.cs new file mode 100644 index 000000000000..3066a3e1cba6 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayPrivateEndpointConnectionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Network +{ + public partial class ApplicationGatewayPrivateEndpointConnectionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ApplicationGatewayPrivateEndpointConnectionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ApplicationGatewayPrivateEndpointConnectionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayResource.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayResource.Serialization.cs new file mode 100644 index 000000000000..425cd08b39ac --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Network +{ + public partial class ApplicationGatewayResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ApplicationGatewayData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ApplicationGatewayData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayWafDynamicManifestResource.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayWafDynamicManifestResource.Serialization.cs new file mode 100644 index 000000000000..ec74302f21f0 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayWafDynamicManifestResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Network +{ + public partial class ApplicationGatewayWafDynamicManifestResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ApplicationGatewayWafDynamicManifestData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ApplicationGatewayWafDynamicManifestData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationSecurityGroupResource.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationSecurityGroupResource.Serialization.cs new file mode 100644 index 000000000000..190073fa267c --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationSecurityGroupResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Network +{ + public partial class ApplicationSecurityGroupResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ApplicationSecurityGroupData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ApplicationSecurityGroupData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AzureFirewallResource.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AzureFirewallResource.Serialization.cs new file mode 100644 index 000000000000..eb4575125d1e --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AzureFirewallResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Network +{ + public partial class AzureFirewallResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + AzureFirewallData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + AzureFirewallData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AzureWebCategoryResource.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AzureWebCategoryResource.Serialization.cs new file mode 100644 index 000000000000..5be00fa48fe9 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AzureWebCategoryResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Network +{ + public partial class AzureWebCategoryResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + AzureWebCategoryData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + AzureWebCategoryData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/BackendAddressPoolResource.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/BackendAddressPoolResource.Serialization.cs new file mode 100644 index 000000000000..f8422a7fdf22 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/BackendAddressPoolResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Network +{ + public partial class BackendAddressPoolResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + BackendAddressPoolData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + BackendAddressPoolData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/BaseAdminRuleResource.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/BaseAdminRuleResource.Serialization.cs new file mode 100644 index 000000000000..3e47d32193af --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/BaseAdminRuleResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Network +{ + public partial class BaseAdminRuleResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + BaseAdminRuleData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + BaseAdminRuleData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/BastionHostResource.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/BastionHostResource.Serialization.cs new file mode 100644 index 000000000000..aba80b5200c8 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/BastionHostResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Network +{ + public partial class BastionHostResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + BastionHostData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + BastionHostData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/BgpConnectionResource.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/BgpConnectionResource.Serialization.cs new file mode 100644 index 000000000000..42540e9879b0 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/BgpConnectionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Network +{ + public partial class BgpConnectionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + BgpConnectionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + BgpConnectionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/CloudServiceSwapResource.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/CloudServiceSwapResource.Serialization.cs new file mode 100644 index 000000000000..0f44b95a1417 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/CloudServiceSwapResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Network +{ + public partial class CloudServiceSwapResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + CloudServiceSwapData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + CloudServiceSwapData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ConnectionMonitorResource.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ConnectionMonitorResource.Serialization.cs new file mode 100644 index 000000000000..22495934be42 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ConnectionMonitorResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Network +{ + public partial class ConnectionMonitorResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ConnectionMonitorData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ConnectionMonitorData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ConnectivityConfigurationResource.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ConnectivityConfigurationResource.Serialization.cs new file mode 100644 index 000000000000..48e4092b0859 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ConnectivityConfigurationResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Network +{ + public partial class ConnectivityConfigurationResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ConnectivityConfigurationData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ConnectivityConfigurationData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/CustomIPPrefixResource.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/CustomIPPrefixResource.Serialization.cs new file mode 100644 index 000000000000..c5d1f43d4e76 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/CustomIPPrefixResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Network +{ + public partial class CustomIPPrefixResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + CustomIPPrefixData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + CustomIPPrefixData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/DdosCustomPolicyResource.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/DdosCustomPolicyResource.Serialization.cs new file mode 100644 index 000000000000..57e6e10093f4 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/DdosCustomPolicyResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Network +{ + public partial class DdosCustomPolicyResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DdosCustomPolicyData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DdosCustomPolicyData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/DdosProtectionPlanResource.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/DdosProtectionPlanResource.Serialization.cs new file mode 100644 index 000000000000..1b5bf9470a27 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/DdosProtectionPlanResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Network +{ + public partial class DdosProtectionPlanResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DdosProtectionPlanData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DdosProtectionPlanData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/DefaultSecurityRuleResource.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/DefaultSecurityRuleResource.Serialization.cs new file mode 100644 index 000000000000..41fb25329b76 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/DefaultSecurityRuleResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Network +{ + public partial class DefaultSecurityRuleResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SecurityRuleData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SecurityRuleData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/DscpConfigurationResource.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/DscpConfigurationResource.Serialization.cs new file mode 100644 index 000000000000..46f78744ff25 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/DscpConfigurationResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Network +{ + public partial class DscpConfigurationResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DscpConfigurationData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DscpConfigurationData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteCircuitAuthorizationResource.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteCircuitAuthorizationResource.Serialization.cs new file mode 100644 index 000000000000..3348486505e6 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteCircuitAuthorizationResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Network +{ + public partial class ExpressRouteCircuitAuthorizationResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ExpressRouteCircuitAuthorizationData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ExpressRouteCircuitAuthorizationData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteCircuitConnectionResource.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteCircuitConnectionResource.Serialization.cs new file mode 100644 index 000000000000..23f579c133e2 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteCircuitConnectionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Network +{ + public partial class ExpressRouteCircuitConnectionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ExpressRouteCircuitConnectionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ExpressRouteCircuitConnectionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteCircuitPeeringResource.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteCircuitPeeringResource.Serialization.cs new file mode 100644 index 000000000000..a796ea816923 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteCircuitPeeringResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Network +{ + public partial class ExpressRouteCircuitPeeringResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ExpressRouteCircuitPeeringData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ExpressRouteCircuitPeeringData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteCircuitResource.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteCircuitResource.Serialization.cs new file mode 100644 index 000000000000..2431bdf2c765 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteCircuitResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Network +{ + public partial class ExpressRouteCircuitResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ExpressRouteCircuitData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ExpressRouteCircuitData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteConnectionResource.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteConnectionResource.Serialization.cs new file mode 100644 index 000000000000..e304e43a4a09 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteConnectionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Network +{ + public partial class ExpressRouteConnectionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ExpressRouteConnectionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ExpressRouteConnectionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteCrossConnectionPeeringResource.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteCrossConnectionPeeringResource.Serialization.cs new file mode 100644 index 000000000000..3b9d3bd5dfe5 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteCrossConnectionPeeringResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Network +{ + public partial class ExpressRouteCrossConnectionPeeringResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ExpressRouteCrossConnectionPeeringData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ExpressRouteCrossConnectionPeeringData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteCrossConnectionResource.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteCrossConnectionResource.Serialization.cs new file mode 100644 index 000000000000..901db413b283 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteCrossConnectionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Network +{ + public partial class ExpressRouteCrossConnectionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ExpressRouteCrossConnectionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ExpressRouteCrossConnectionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteGatewayResource.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteGatewayResource.Serialization.cs new file mode 100644 index 000000000000..a028d0610e78 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteGatewayResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Network +{ + public partial class ExpressRouteGatewayResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ExpressRouteGatewayData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ExpressRouteGatewayData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteLinkResource.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteLinkResource.Serialization.cs new file mode 100644 index 000000000000..5be62a01610c --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteLinkResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Network +{ + public partial class ExpressRouteLinkResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ExpressRouteLinkData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ExpressRouteLinkData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRoutePortAuthorizationResource.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRoutePortAuthorizationResource.Serialization.cs new file mode 100644 index 000000000000..d0cbeabcbc0e --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRoutePortAuthorizationResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Network +{ + public partial class ExpressRoutePortAuthorizationResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ExpressRoutePortAuthorizationData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ExpressRoutePortAuthorizationData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRoutePortResource.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRoutePortResource.Serialization.cs new file mode 100644 index 000000000000..33dbe971b2ab --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRoutePortResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Network +{ + public partial class ExpressRoutePortResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ExpressRoutePortData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ExpressRoutePortData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRoutePortsLocationResource.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRoutePortsLocationResource.Serialization.cs new file mode 100644 index 000000000000..6a1f675fb1f9 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRoutePortsLocationResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Network +{ + public partial class ExpressRoutePortsLocationResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ExpressRoutePortsLocationData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ExpressRoutePortsLocationData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteProviderPortResource.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteProviderPortResource.Serialization.cs new file mode 100644 index 000000000000..30448ad570ce --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteProviderPortResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Network +{ + public partial class ExpressRouteProviderPortResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ExpressRouteProviderPortData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ExpressRouteProviderPortData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/FirewallPolicyResource.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/FirewallPolicyResource.Serialization.cs new file mode 100644 index 000000000000..6b4c6a1f9c86 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/FirewallPolicyResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Network +{ + public partial class FirewallPolicyResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + FirewallPolicyData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + FirewallPolicyData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/FirewallPolicyRuleCollectionGroupResource.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/FirewallPolicyRuleCollectionGroupResource.Serialization.cs new file mode 100644 index 000000000000..2c7b372b4c33 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/FirewallPolicyRuleCollectionGroupResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Network +{ + public partial class FirewallPolicyRuleCollectionGroupResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + FirewallPolicyRuleCollectionGroupData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + FirewallPolicyRuleCollectionGroupData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/FlowLogResource.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/FlowLogResource.Serialization.cs new file mode 100644 index 000000000000..ff671cb89d70 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/FlowLogResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Network +{ + public partial class FlowLogResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + FlowLogData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + FlowLogData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/FrontendIPConfigurationResource.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/FrontendIPConfigurationResource.Serialization.cs new file mode 100644 index 000000000000..a9a28d70f1c5 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/FrontendIPConfigurationResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Network +{ + public partial class FrontendIPConfigurationResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + FrontendIPConfigurationData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + FrontendIPConfigurationData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/HubIPConfigurationResource.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/HubIPConfigurationResource.Serialization.cs new file mode 100644 index 000000000000..1568d86380fc --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/HubIPConfigurationResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Network +{ + public partial class HubIPConfigurationResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + HubIPConfigurationData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + HubIPConfigurationData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/HubRouteTableResource.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/HubRouteTableResource.Serialization.cs new file mode 100644 index 000000000000..0ada1a679dae --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/HubRouteTableResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Network +{ + public partial class HubRouteTableResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + HubRouteTableData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + HubRouteTableData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/HubVirtualNetworkConnectionResource.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/HubVirtualNetworkConnectionResource.Serialization.cs new file mode 100644 index 000000000000..205bef3bd8c5 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/HubVirtualNetworkConnectionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Network +{ + public partial class HubVirtualNetworkConnectionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + HubVirtualNetworkConnectionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + HubVirtualNetworkConnectionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/IPAllocationResource.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/IPAllocationResource.Serialization.cs new file mode 100644 index 000000000000..564022b2db14 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/IPAllocationResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Network +{ + public partial class IPAllocationResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + IPAllocationData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + IPAllocationData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/IPGroupResource.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/IPGroupResource.Serialization.cs new file mode 100644 index 000000000000..5da3470feb89 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/IPGroupResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Network +{ + public partial class IPGroupResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + IPGroupData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + IPGroupData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/InboundNatRuleResource.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/InboundNatRuleResource.Serialization.cs new file mode 100644 index 000000000000..269f8be44389 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/InboundNatRuleResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Network +{ + public partial class InboundNatRuleResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + InboundNatRuleData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + InboundNatRuleData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/LoadBalancerResource.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/LoadBalancerResource.Serialization.cs new file mode 100644 index 000000000000..8e4a6abe9846 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/LoadBalancerResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Network +{ + public partial class LoadBalancerResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + LoadBalancerData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + LoadBalancerData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/LoadBalancingRuleResource.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/LoadBalancingRuleResource.Serialization.cs new file mode 100644 index 000000000000..ae9bf86d1500 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/LoadBalancingRuleResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Network +{ + public partial class LoadBalancingRuleResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + LoadBalancingRuleData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + LoadBalancingRuleData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/LocalNetworkGatewayResource.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/LocalNetworkGatewayResource.Serialization.cs new file mode 100644 index 000000000000..487695acbd31 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/LocalNetworkGatewayResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Network +{ + public partial class LocalNetworkGatewayResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + LocalNetworkGatewayData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + LocalNetworkGatewayData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ManagementGroupNetworkManagerConnectionResource.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ManagementGroupNetworkManagerConnectionResource.Serialization.cs new file mode 100644 index 000000000000..8858bf63a990 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ManagementGroupNetworkManagerConnectionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Network +{ + public partial class ManagementGroupNetworkManagerConnectionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + NetworkManagerConnectionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + NetworkManagerConnectionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NatGatewayResource.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NatGatewayResource.Serialization.cs new file mode 100644 index 000000000000..6e62f220afd6 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NatGatewayResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Network +{ + public partial class NatGatewayResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + NatGatewayData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + NatGatewayData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkGroupResource.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkGroupResource.Serialization.cs new file mode 100644 index 000000000000..4fa61d3bcc79 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkGroupResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Network +{ + public partial class NetworkGroupResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + NetworkGroupData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + NetworkGroupData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkGroupStaticMemberResource.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkGroupStaticMemberResource.Serialization.cs new file mode 100644 index 000000000000..6900d08d029e --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkGroupStaticMemberResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Network +{ + public partial class NetworkGroupStaticMemberResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + NetworkGroupStaticMemberData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + NetworkGroupStaticMemberData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkInterfaceIPConfigurationResource.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkInterfaceIPConfigurationResource.Serialization.cs new file mode 100644 index 000000000000..941854a29f78 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkInterfaceIPConfigurationResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Network +{ + public partial class NetworkInterfaceIPConfigurationResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + NetworkInterfaceIPConfigurationData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + NetworkInterfaceIPConfigurationData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkInterfaceResource.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkInterfaceResource.Serialization.cs new file mode 100644 index 000000000000..789f2a9f977a --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkInterfaceResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Network +{ + public partial class NetworkInterfaceResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + NetworkInterfaceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + NetworkInterfaceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkInterfaceTapConfigurationResource.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkInterfaceTapConfigurationResource.Serialization.cs new file mode 100644 index 000000000000..09c7a7183027 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkInterfaceTapConfigurationResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Network +{ + public partial class NetworkInterfaceTapConfigurationResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + NetworkInterfaceTapConfigurationData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + NetworkInterfaceTapConfigurationData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkManagerResource.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkManagerResource.Serialization.cs new file mode 100644 index 000000000000..5fa5c4c1229a --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkManagerResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Network +{ + public partial class NetworkManagerResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + NetworkManagerData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + NetworkManagerData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkPrivateEndpointConnectionResource.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkPrivateEndpointConnectionResource.Serialization.cs new file mode 100644 index 000000000000..1bcb3a98ebd8 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkPrivateEndpointConnectionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Network +{ + public partial class NetworkPrivateEndpointConnectionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + NetworkPrivateEndpointConnectionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + NetworkPrivateEndpointConnectionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkProfileResource.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkProfileResource.Serialization.cs new file mode 100644 index 000000000000..315fe987225f --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkProfileResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Network +{ + public partial class NetworkProfileResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + NetworkProfileData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + NetworkProfileData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkSecurityGroupResource.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkSecurityGroupResource.Serialization.cs new file mode 100644 index 000000000000..e6dc8c7c8781 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkSecurityGroupResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Network +{ + public partial class NetworkSecurityGroupResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + NetworkSecurityGroupData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + NetworkSecurityGroupData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkVirtualApplianceConnectionResource.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkVirtualApplianceConnectionResource.Serialization.cs new file mode 100644 index 000000000000..153e6b37541f --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkVirtualApplianceConnectionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Network +{ + public partial class NetworkVirtualApplianceConnectionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + NetworkVirtualApplianceConnectionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + NetworkVirtualApplianceConnectionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkVirtualApplianceResource.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkVirtualApplianceResource.Serialization.cs new file mode 100644 index 000000000000..0e4318519765 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkVirtualApplianceResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Network +{ + public partial class NetworkVirtualApplianceResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + NetworkVirtualApplianceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + NetworkVirtualApplianceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkVirtualApplianceSkuResource.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkVirtualApplianceSkuResource.Serialization.cs new file mode 100644 index 000000000000..01790c435b30 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkVirtualApplianceSkuResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Network +{ + public partial class NetworkVirtualApplianceSkuResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + NetworkVirtualApplianceSkuData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + NetworkVirtualApplianceSkuData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkWatcherResource.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkWatcherResource.Serialization.cs new file mode 100644 index 000000000000..af9df0921e40 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkWatcherResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Network +{ + public partial class NetworkWatcherResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + NetworkWatcherData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + NetworkWatcherData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/OutboundRuleResource.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/OutboundRuleResource.Serialization.cs new file mode 100644 index 000000000000..b22d8648db1e --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/OutboundRuleResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Network +{ + public partial class OutboundRuleResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + OutboundRuleData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + OutboundRuleData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/P2SVpnGatewayResource.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/P2SVpnGatewayResource.Serialization.cs new file mode 100644 index 000000000000..fd790d35650a --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/P2SVpnGatewayResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Network +{ + public partial class P2SVpnGatewayResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + P2SVpnGatewayData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + P2SVpnGatewayData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PacketCaptureResource.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PacketCaptureResource.Serialization.cs new file mode 100644 index 000000000000..018e054e6d93 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PacketCaptureResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Network +{ + public partial class PacketCaptureResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + PacketCaptureData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + PacketCaptureData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PeerExpressRouteCircuitConnectionResource.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PeerExpressRouteCircuitConnectionResource.Serialization.cs new file mode 100644 index 000000000000..6f07a4bb4b23 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PeerExpressRouteCircuitConnectionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Network +{ + public partial class PeerExpressRouteCircuitConnectionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + PeerExpressRouteCircuitConnectionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + PeerExpressRouteCircuitConnectionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PolicySignaturesOverridesForIdpsResource.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PolicySignaturesOverridesForIdpsResource.Serialization.cs new file mode 100644 index 000000000000..c563d1d0959e --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PolicySignaturesOverridesForIdpsResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Network +{ + public partial class PolicySignaturesOverridesForIdpsResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + PolicySignaturesOverridesForIdpsData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + PolicySignaturesOverridesForIdpsData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PrivateDnsZoneGroupResource.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PrivateDnsZoneGroupResource.Serialization.cs new file mode 100644 index 000000000000..14b32da56f01 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PrivateDnsZoneGroupResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Network +{ + public partial class PrivateDnsZoneGroupResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + PrivateDnsZoneGroupData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + PrivateDnsZoneGroupData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PrivateEndpointResource.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PrivateEndpointResource.Serialization.cs new file mode 100644 index 000000000000..37a66c768571 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PrivateEndpointResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Network +{ + public partial class PrivateEndpointResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + PrivateEndpointData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + PrivateEndpointData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PrivateLinkServiceResource.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PrivateLinkServiceResource.Serialization.cs new file mode 100644 index 000000000000..3f2b051f6b6d --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PrivateLinkServiceResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Network +{ + public partial class PrivateLinkServiceResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + PrivateLinkServiceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + PrivateLinkServiceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ProbeResource.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ProbeResource.Serialization.cs new file mode 100644 index 000000000000..bda8d95e3832 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ProbeResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Network +{ + public partial class ProbeResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ProbeData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ProbeData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PublicIPAddressResource.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PublicIPAddressResource.Serialization.cs new file mode 100644 index 000000000000..fa582b8267a6 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PublicIPAddressResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Network +{ + public partial class PublicIPAddressResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + PublicIPAddressData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + PublicIPAddressData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PublicIPPrefixResource.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PublicIPPrefixResource.Serialization.cs new file mode 100644 index 000000000000..96a996725a54 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PublicIPPrefixResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Network +{ + public partial class PublicIPPrefixResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + PublicIPPrefixData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + PublicIPPrefixData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/RouteFilterResource.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/RouteFilterResource.Serialization.cs new file mode 100644 index 000000000000..fb88dcd4a5a7 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/RouteFilterResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Network +{ + public partial class RouteFilterResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + RouteFilterData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + RouteFilterData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/RouteFilterRuleResource.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/RouteFilterRuleResource.Serialization.cs new file mode 100644 index 000000000000..86135f116bb8 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/RouteFilterRuleResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Network +{ + public partial class RouteFilterRuleResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + RouteFilterRuleData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + RouteFilterRuleData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/RouteMapResource.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/RouteMapResource.Serialization.cs new file mode 100644 index 000000000000..f05bddd6df2b --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/RouteMapResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Network +{ + public partial class RouteMapResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + RouteMapData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + RouteMapData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/RouteResource.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/RouteResource.Serialization.cs new file mode 100644 index 000000000000..a0cd310abfa9 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/RouteResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Network +{ + public partial class RouteResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + RouteData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + RouteData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/RouteTableResource.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/RouteTableResource.Serialization.cs new file mode 100644 index 000000000000..f0f61358ff88 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/RouteTableResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Network +{ + public partial class RouteTableResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + RouteTableData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + RouteTableData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/RoutingIntentResource.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/RoutingIntentResource.Serialization.cs new file mode 100644 index 000000000000..71c87ee840a5 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/RoutingIntentResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Network +{ + public partial class RoutingIntentResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + RoutingIntentData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + RoutingIntentData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ScopeConnectionResource.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ScopeConnectionResource.Serialization.cs new file mode 100644 index 000000000000..1898163f9aa8 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ScopeConnectionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Network +{ + public partial class ScopeConnectionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ScopeConnectionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ScopeConnectionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/SecurityAdminConfigurationResource.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/SecurityAdminConfigurationResource.Serialization.cs new file mode 100644 index 000000000000..6f2daba0d846 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/SecurityAdminConfigurationResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Network +{ + public partial class SecurityAdminConfigurationResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SecurityAdminConfigurationData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SecurityAdminConfigurationData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/SecurityPartnerProviderResource.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/SecurityPartnerProviderResource.Serialization.cs new file mode 100644 index 000000000000..1af1ca813256 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/SecurityPartnerProviderResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Network +{ + public partial class SecurityPartnerProviderResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SecurityPartnerProviderData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SecurityPartnerProviderData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/SecurityRuleResource.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/SecurityRuleResource.Serialization.cs new file mode 100644 index 000000000000..504a453f2ff9 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/SecurityRuleResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Network +{ + public partial class SecurityRuleResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SecurityRuleData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SecurityRuleData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ServiceEndpointPolicyDefinitionResource.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ServiceEndpointPolicyDefinitionResource.Serialization.cs new file mode 100644 index 000000000000..77247e496b26 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ServiceEndpointPolicyDefinitionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Network +{ + public partial class ServiceEndpointPolicyDefinitionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ServiceEndpointPolicyDefinitionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ServiceEndpointPolicyDefinitionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ServiceEndpointPolicyResource.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ServiceEndpointPolicyResource.Serialization.cs new file mode 100644 index 000000000000..c4340e0d769d --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ServiceEndpointPolicyResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Network +{ + public partial class ServiceEndpointPolicyResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ServiceEndpointPolicyData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ServiceEndpointPolicyData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/SubnetResource.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/SubnetResource.Serialization.cs new file mode 100644 index 000000000000..9ea189033c8e --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/SubnetResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Network +{ + public partial class SubnetResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SubnetData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SubnetData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/SubscriptionNetworkManagerConnectionResource.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/SubscriptionNetworkManagerConnectionResource.Serialization.cs new file mode 100644 index 000000000000..9d4fcd499bc7 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/SubscriptionNetworkManagerConnectionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Network +{ + public partial class SubscriptionNetworkManagerConnectionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + NetworkManagerConnectionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + NetworkManagerConnectionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualApplianceSiteResource.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualApplianceSiteResource.Serialization.cs new file mode 100644 index 000000000000..7659a117f405 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualApplianceSiteResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Network +{ + public partial class VirtualApplianceSiteResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + VirtualApplianceSiteData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + VirtualApplianceSiteData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualHubResource.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualHubResource.Serialization.cs new file mode 100644 index 000000000000..c9e21564cdec --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualHubResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Network +{ + public partial class VirtualHubResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + VirtualHubData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + VirtualHubData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualHubRouteTableV2Resource.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualHubRouteTableV2Resource.Serialization.cs new file mode 100644 index 000000000000..ed2c1e106e17 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualHubRouteTableV2Resource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Network +{ + public partial class VirtualHubRouteTableV2Resource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + VirtualHubRouteTableV2Data IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + VirtualHubRouteTableV2Data IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualNetworkGatewayConnectionResource.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualNetworkGatewayConnectionResource.Serialization.cs new file mode 100644 index 000000000000..b212f36ff55c --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualNetworkGatewayConnectionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Network +{ + public partial class VirtualNetworkGatewayConnectionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + VirtualNetworkGatewayConnectionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + VirtualNetworkGatewayConnectionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualNetworkGatewayNatRuleResource.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualNetworkGatewayNatRuleResource.Serialization.cs new file mode 100644 index 000000000000..9cc088cbe100 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualNetworkGatewayNatRuleResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Network +{ + public partial class VirtualNetworkGatewayNatRuleResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + VirtualNetworkGatewayNatRuleData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + VirtualNetworkGatewayNatRuleData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualNetworkGatewayResource.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualNetworkGatewayResource.Serialization.cs new file mode 100644 index 000000000000..2d1246886781 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualNetworkGatewayResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Network +{ + public partial class VirtualNetworkGatewayResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + VirtualNetworkGatewayData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + VirtualNetworkGatewayData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualNetworkPeeringResource.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualNetworkPeeringResource.Serialization.cs new file mode 100644 index 000000000000..1057d84b86aa --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualNetworkPeeringResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Network +{ + public partial class VirtualNetworkPeeringResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + VirtualNetworkPeeringData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + VirtualNetworkPeeringData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualNetworkResource.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualNetworkResource.Serialization.cs new file mode 100644 index 000000000000..ba3cf94f7104 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualNetworkResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Network +{ + public partial class VirtualNetworkResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + VirtualNetworkData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + VirtualNetworkData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualNetworkTapResource.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualNetworkTapResource.Serialization.cs new file mode 100644 index 000000000000..6b0a4d199c9e --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualNetworkTapResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Network +{ + public partial class VirtualNetworkTapResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + VirtualNetworkTapData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + VirtualNetworkTapData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualRouterPeeringResource.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualRouterPeeringResource.Serialization.cs new file mode 100644 index 000000000000..1e680faa7ade --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualRouterPeeringResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Network +{ + public partial class VirtualRouterPeeringResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + VirtualRouterPeeringData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + VirtualRouterPeeringData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualRouterResource.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualRouterResource.Serialization.cs new file mode 100644 index 000000000000..2e84d18d454a --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualRouterResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Network +{ + public partial class VirtualRouterResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + VirtualRouterData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + VirtualRouterData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualWanResource.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualWanResource.Serialization.cs new file mode 100644 index 000000000000..273ed64443c9 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualWanResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Network +{ + public partial class VirtualWanResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + VirtualWanData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + VirtualWanData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VpnConnectionResource.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VpnConnectionResource.Serialization.cs new file mode 100644 index 000000000000..527c3ae96072 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VpnConnectionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Network +{ + public partial class VpnConnectionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + VpnConnectionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + VpnConnectionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VpnGatewayNatRuleResource.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VpnGatewayNatRuleResource.Serialization.cs new file mode 100644 index 000000000000..834d8606e416 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VpnGatewayNatRuleResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Network +{ + public partial class VpnGatewayNatRuleResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + VpnGatewayNatRuleData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + VpnGatewayNatRuleData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VpnGatewayResource.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VpnGatewayResource.Serialization.cs new file mode 100644 index 000000000000..8ece4ee16d09 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VpnGatewayResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Network +{ + public partial class VpnGatewayResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + VpnGatewayData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + VpnGatewayData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VpnServerConfigurationPolicyGroupResource.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VpnServerConfigurationPolicyGroupResource.Serialization.cs new file mode 100644 index 000000000000..3acba20b95f2 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VpnServerConfigurationPolicyGroupResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Network +{ + public partial class VpnServerConfigurationPolicyGroupResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + VpnServerConfigurationPolicyGroupData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + VpnServerConfigurationPolicyGroupData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VpnServerConfigurationResource.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VpnServerConfigurationResource.Serialization.cs new file mode 100644 index 000000000000..9a041395b6bc --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VpnServerConfigurationResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Network +{ + public partial class VpnServerConfigurationResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + VpnServerConfigurationData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + VpnServerConfigurationData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VpnSiteLinkConnectionResource.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VpnSiteLinkConnectionResource.Serialization.cs new file mode 100644 index 000000000000..1e6db21cb105 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VpnSiteLinkConnectionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Network +{ + public partial class VpnSiteLinkConnectionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + VpnSiteLinkConnectionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + VpnSiteLinkConnectionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VpnSiteLinkResource.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VpnSiteLinkResource.Serialization.cs new file mode 100644 index 000000000000..93c3106e5e81 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VpnSiteLinkResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Network +{ + public partial class VpnSiteLinkResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + VpnSiteLinkData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + VpnSiteLinkData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VpnSiteResource.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VpnSiteResource.Serialization.cs new file mode 100644 index 000000000000..ea33332e3e0f --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VpnSiteResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Network +{ + public partial class VpnSiteResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + VpnSiteData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + VpnSiteData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/WebApplicationFirewallPolicyResource.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/WebApplicationFirewallPolicyResource.Serialization.cs new file mode 100644 index 000000000000..886cc8e05f6c --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/WebApplicationFirewallPolicyResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Network +{ + public partial class WebApplicationFirewallPolicyResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + WebApplicationFirewallPolicyData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + WebApplicationFirewallPolicyData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkGroupCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkGroupCollection.cs index b80dd116decf..0dab2e81c459 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkGroupCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkGroupCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> CreateOrUpdateAsyn try { var response = await _networkGroupRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, networkGroupName, data, ifMatch, cancellationToken).ConfigureAwait(false); - var operation = new NetworkArmOperation(Response.FromValue(new NetworkGroupResource(Client, response), response.GetRawResponse())); + var uri = _networkGroupRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, networkGroupName, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new NetworkArmOperation(Response.FromValue(new NetworkGroupResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -141,7 +143,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitU try { var response = _networkGroupRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, networkGroupName, data, ifMatch, cancellationToken); - var operation = new NetworkArmOperation(Response.FromValue(new NetworkGroupResource(Client, response), response.GetRawResponse())); + var uri = _networkGroupRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, networkGroupName, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new NetworkArmOperation(Response.FromValue(new NetworkGroupResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkGroupResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkGroupResource.cs index 341bbcbdbbb2..3f61df9d0d03 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkGroupResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkGroupResource.cs @@ -360,7 +360,9 @@ public virtual async Task> UpdateAsync(WaitUn try { var response = await _networkGroupRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, ifMatch, cancellationToken).ConfigureAwait(false); - var operation = new NetworkArmOperation(Response.FromValue(new NetworkGroupResource(Client, response), response.GetRawResponse())); + var uri = _networkGroupRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new NetworkArmOperation(Response.FromValue(new NetworkGroupResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -407,7 +409,9 @@ public virtual ArmOperation Update(WaitUntil waitUntil, Ne try { var response = _networkGroupRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, ifMatch, cancellationToken); - var operation = new NetworkArmOperation(Response.FromValue(new NetworkGroupResource(Client, response), response.GetRawResponse())); + var uri = _networkGroupRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new NetworkArmOperation(Response.FromValue(new NetworkGroupResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkGroupStaticMemberCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkGroupStaticMemberCollection.cs index 799bcbb6eb12..effaa7b77dc7 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkGroupStaticMemberCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkGroupStaticMemberCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> Create try { var response = await _networkGroupStaticMemberStaticMembersRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, staticMemberName, data, cancellationToken).ConfigureAwait(false); - var operation = new NetworkArmOperation(Response.FromValue(new NetworkGroupStaticMemberResource(Client, response), response.GetRawResponse())); + var uri = _networkGroupStaticMemberStaticMembersRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, staticMemberName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new NetworkArmOperation(Response.FromValue(new NetworkGroupStaticMemberResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(Wai try { var response = _networkGroupStaticMemberStaticMembersRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, staticMemberName, data, cancellationToken); - var operation = new NetworkArmOperation(Response.FromValue(new NetworkGroupStaticMemberResource(Client, response), response.GetRawResponse())); + var uri = _networkGroupStaticMemberStaticMembersRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, staticMemberName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new NetworkArmOperation(Response.FromValue(new NetworkGroupStaticMemberResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkGroupStaticMemberResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkGroupStaticMemberResource.cs index ed2698ba77c9..c0b6615221f2 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkGroupStaticMemberResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkGroupStaticMemberResource.cs @@ -201,7 +201,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _networkGroupStaticMemberStaticMembersRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new NetworkArmOperation(response); + var uri = _networkGroupStaticMemberStaticMembersRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new NetworkArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -243,7 +245,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _networkGroupStaticMemberStaticMembersRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new NetworkArmOperation(response); + var uri = _networkGroupStaticMemberStaticMembersRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new NetworkArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -289,7 +293,9 @@ public virtual async Task> Update try { var response = await _networkGroupStaticMemberStaticMembersRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new NetworkArmOperation(Response.FromValue(new NetworkGroupStaticMemberResource(Client, response), response.GetRawResponse())); + var uri = _networkGroupStaticMemberStaticMembersRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new NetworkArmOperation(Response.FromValue(new NetworkGroupStaticMemberResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -335,7 +341,9 @@ public virtual ArmOperation Update(WaitUntil w try { var response = _networkGroupStaticMemberStaticMembersRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new NetworkArmOperation(Response.FromValue(new NetworkGroupStaticMemberResource(Client, response), response.GetRawResponse())); + var uri = _networkGroupStaticMemberStaticMembersRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new NetworkArmOperation(Response.FromValue(new NetworkGroupStaticMemberResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkManagerCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkManagerCollection.cs index 2ff103764f97..74ff57627cd3 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkManagerCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkManagerCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> CreateOrUpdateAs try { var response = await _networkManagerRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, networkManagerName, data, cancellationToken).ConfigureAwait(false); - var operation = new NetworkArmOperation(Response.FromValue(new NetworkManagerResource(Client, response), response.GetRawResponse())); + var uri = _networkManagerRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, networkManagerName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new NetworkArmOperation(Response.FromValue(new NetworkManagerResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -140,7 +142,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wai try { var response = _networkManagerRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, networkManagerName, data, cancellationToken); - var operation = new NetworkArmOperation(Response.FromValue(new NetworkManagerResource(Client, response), response.GetRawResponse())); + var uri = _networkManagerRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, networkManagerName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new NetworkArmOperation(Response.FromValue(new NetworkManagerResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkPrivateEndpointConnectionCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkPrivateEndpointConnectionCollection.cs index 024e0e686b9b..bda2d7eb1b05 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkPrivateEndpointConnectionCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkPrivateEndpointConnectionCollection.cs @@ -90,7 +90,9 @@ public virtual async Task try { var response = await _networkPrivateEndpointConnectionPrivateLinkServicesRestClient.UpdatePrivateEndpointConnectionAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, peConnectionName, data, cancellationToken).ConfigureAwait(false); - var operation = new NetworkArmOperation(Response.FromValue(new NetworkPrivateEndpointConnectionResource(Client, response), response.GetRawResponse())); + var uri = _networkPrivateEndpointConnectionPrivateLinkServicesRestClient.CreateUpdatePrivateEndpointConnectionRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, peConnectionName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new NetworkArmOperation(Response.FromValue(new NetworkPrivateEndpointConnectionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUp try { var response = _networkPrivateEndpointConnectionPrivateLinkServicesRestClient.UpdatePrivateEndpointConnection(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, peConnectionName, data, cancellationToken); - var operation = new NetworkArmOperation(Response.FromValue(new NetworkPrivateEndpointConnectionResource(Client, response), response.GetRawResponse())); + var uri = _networkPrivateEndpointConnectionPrivateLinkServicesRestClient.CreateUpdatePrivateEndpointConnectionRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, peConnectionName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new NetworkArmOperation(Response.FromValue(new NetworkPrivateEndpointConnectionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkPrivateEndpointConnectionResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkPrivateEndpointConnectionResource.cs index aefe9379098f..d026d5288a76 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkPrivateEndpointConnectionResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkPrivateEndpointConnectionResource.cs @@ -290,7 +290,9 @@ public virtual async Task try { var response = await _networkPrivateEndpointConnectionPrivateLinkServicesRestClient.UpdatePrivateEndpointConnectionAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new NetworkArmOperation(Response.FromValue(new NetworkPrivateEndpointConnectionResource(Client, response), response.GetRawResponse())); + var uri = _networkPrivateEndpointConnectionPrivateLinkServicesRestClient.CreateUpdatePrivateEndpointConnectionRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new NetworkArmOperation(Response.FromValue(new NetworkPrivateEndpointConnectionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -336,7 +338,9 @@ public virtual ArmOperation Update(Wai try { var response = _networkPrivateEndpointConnectionPrivateLinkServicesRestClient.UpdatePrivateEndpointConnection(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new NetworkArmOperation(Response.FromValue(new NetworkPrivateEndpointConnectionResource(Client, response), response.GetRawResponse())); + var uri = _networkPrivateEndpointConnectionPrivateLinkServicesRestClient.CreateUpdatePrivateEndpointConnectionRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new NetworkArmOperation(Response.FromValue(new NetworkPrivateEndpointConnectionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkProfileCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkProfileCollection.cs index 6535d0a49a8e..f2d49cce552f 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkProfileCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkProfileCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> CreateOrUpdateAs try { var response = await _networkProfileRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, networkProfileName, data, cancellationToken).ConfigureAwait(false); - var operation = new NetworkArmOperation(Response.FromValue(new NetworkProfileResource(Client, response), response.GetRawResponse())); + var uri = _networkProfileRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, networkProfileName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new NetworkArmOperation(Response.FromValue(new NetworkProfileResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -140,7 +142,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wai try { var response = _networkProfileRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, networkProfileName, data, cancellationToken); - var operation = new NetworkArmOperation(Response.FromValue(new NetworkProfileResource(Client, response), response.GetRawResponse())); + var uri = _networkProfileRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, networkProfileName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new NetworkArmOperation(Response.FromValue(new NetworkProfileResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkWatcherCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkWatcherCollection.cs index a507b03109c2..97dd66eed3bf 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkWatcherCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkWatcherCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> CreateOrUpdateAs try { var response = await _networkWatcherRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, networkWatcherName, data, cancellationToken).ConfigureAwait(false); - var operation = new NetworkArmOperation(Response.FromValue(new NetworkWatcherResource(Client, response), response.GetRawResponse())); + var uri = _networkWatcherRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, networkWatcherName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new NetworkArmOperation(Response.FromValue(new NetworkWatcherResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -140,7 +142,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wai try { var response = _networkWatcherRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, networkWatcherName, data, cancellationToken); - var operation = new NetworkArmOperation(Response.FromValue(new NetworkWatcherResource(Client, response), response.GetRawResponse())); + var uri = _networkWatcherRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, networkWatcherName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new NetworkArmOperation(Response.FromValue(new NetworkWatcherResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/PolicySignaturesOverridesForIdpsResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/PolicySignaturesOverridesForIdpsResource.cs index 5fffd1f1e252..872cd944c1c5 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/PolicySignaturesOverridesForIdpsResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/PolicySignaturesOverridesForIdpsResource.cs @@ -287,7 +287,9 @@ public virtual async Task try { var response = await _policySignaturesOverridesForIdpsFirewallPolicyIdpsSignaturesOverridesRestClient.PutAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new NetworkArmOperation(Response.FromValue(new PolicySignaturesOverridesForIdpsResource(Client, response), response.GetRawResponse())); + var uri = _policySignaturesOverridesForIdpsFirewallPolicyIdpsSignaturesOverridesRestClient.CreatePutRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new NetworkArmOperation(Response.FromValue(new PolicySignaturesOverridesForIdpsResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -333,7 +335,9 @@ public virtual ArmOperation CreateOrUp try { var response = _policySignaturesOverridesForIdpsFirewallPolicyIdpsSignaturesOverridesRestClient.Put(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, data, cancellationToken); - var operation = new NetworkArmOperation(Response.FromValue(new PolicySignaturesOverridesForIdpsResource(Client, response), response.GetRawResponse())); + var uri = _policySignaturesOverridesForIdpsFirewallPolicyIdpsSignaturesOverridesRestClient.CreatePutRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new NetworkArmOperation(Response.FromValue(new PolicySignaturesOverridesForIdpsResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AdminRuleCollectionsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AdminRuleCollectionsRestOperations.cs index 4d32d1a44626..6b5187bc36e0 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AdminRuleCollectionsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AdminRuleCollectionsRestOperations.cs @@ -37,6 +37,31 @@ public AdminRuleCollectionsRestOperations(HttpPipeline pipeline, string applicat _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, int? top, string skipToken) + { + 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.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/securityAdminConfigurations/", false); + uri.AppendPath(configurationName, true); + uri.AppendPath("/ruleCollections", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, int? top, string skipToken) { var message = _pipeline.CreateMessage(); @@ -134,6 +159,24 @@ public Response List(string subscriptionId, string res } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, string ruleCollectionName) + { + 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.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/securityAdminConfigurations/", false); + uri.AppendPath(configurationName, true); + uri.AppendPath("/ruleCollections/", false); + uri.AppendPath(ruleCollectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, string ruleCollectionName) { var message = _pipeline.CreateMessage(); @@ -228,6 +271,24 @@ public Response Get(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, string ruleCollectionName, AdminRuleGroupData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/securityAdminConfigurations/", false); + uri.AppendPath(configurationName, true); + uri.AppendPath("/ruleCollections/", false); + uri.AppendPath(ruleCollectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, string ruleCollectionName, AdminRuleGroupData data) { var message = _pipeline.CreateMessage(); @@ -328,6 +389,28 @@ public Response CreateOrUpdate(string subscriptionId, string } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, string ruleCollectionName, bool? force) + { + 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.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/securityAdminConfigurations/", false); + uri.AppendPath(configurationName, true); + uri.AppendPath("/ruleCollections/", false); + uri.AppendPath(ruleCollectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + if (force != null) + { + uri.AppendQuery("force", force.Value, true); + } + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, string ruleCollectionName, bool? force) { var message = _pipeline.CreateMessage(); @@ -418,6 +501,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string n } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, int? top, string skipToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, int? top, string skipToken) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AdminRulesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AdminRulesRestOperations.cs index 1a99ba615a64..00ec656cd805 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AdminRulesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AdminRulesRestOperations.cs @@ -37,6 +37,33 @@ public AdminRulesRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, string ruleCollectionName, int? top, string skipToken) + { + 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.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/securityAdminConfigurations/", false); + uri.AppendPath(configurationName, true); + uri.AppendPath("/ruleCollections/", false); + uri.AppendPath(ruleCollectionName, true); + uri.AppendPath("/rules", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, string ruleCollectionName, int? top, string skipToken) { var message = _pipeline.CreateMessage(); @@ -140,6 +167,26 @@ public Response List(string subscriptionId, string resource } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, string ruleCollectionName, string ruleName) + { + 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.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/securityAdminConfigurations/", false); + uri.AppendPath(configurationName, true); + uri.AppendPath("/ruleCollections/", false); + uri.AppendPath(ruleCollectionName, true); + uri.AppendPath("/rules/", false); + uri.AppendPath(ruleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, string ruleCollectionName, string ruleName) { var message = _pipeline.CreateMessage(); @@ -240,6 +287,26 @@ public Response Get(string subscriptionId, string resourceGro } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, string ruleCollectionName, string ruleName, BaseAdminRuleData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/securityAdminConfigurations/", false); + uri.AppendPath(configurationName, true); + uri.AppendPath("/ruleCollections/", false); + uri.AppendPath(ruleCollectionName, true); + uri.AppendPath("/rules/", false); + uri.AppendPath(ruleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, string ruleCollectionName, string ruleName, BaseAdminRuleData data) { var message = _pipeline.CreateMessage(); @@ -346,6 +413,30 @@ public Response CreateOrUpdate(string subscriptionId, string } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, string ruleCollectionName, string ruleName, bool? force) + { + 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.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/securityAdminConfigurations/", false); + uri.AppendPath(configurationName, true); + uri.AppendPath("/ruleCollections/", false); + uri.AppendPath(ruleCollectionName, true); + uri.AppendPath("/rules/", false); + uri.AppendPath(ruleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + if (force != null) + { + uri.AppendQuery("force", force.Value, true); + } + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, string ruleCollectionName, string ruleName, bool? force) { var message = _pipeline.CreateMessage(); @@ -442,6 +533,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string n } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, string ruleCollectionName, int? top, string skipToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, string ruleCollectionName, int? top, string skipToken) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ApplicationGatewayPrivateEndpointConnectionsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ApplicationGatewayPrivateEndpointConnectionsRestOperations.cs index 33dda91987b6..7f2ef7c10ac4 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ApplicationGatewayPrivateEndpointConnectionsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ApplicationGatewayPrivateEndpointConnectionsRestOperations.cs @@ -37,6 +37,22 @@ public ApplicationGatewayPrivateEndpointConnectionsRestOperations(HttpPipeline p _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string applicationGatewayName, string connectionName) + { + 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.Network/applicationGateways/", false); + uri.AppendPath(applicationGatewayName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(connectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string applicationGatewayName, string connectionName) { var message = _pipeline.CreateMessage(); @@ -115,6 +131,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string applicationGatewayName, string connectionName, ApplicationGatewayPrivateEndpointConnectionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/applicationGateways/", false); + uri.AppendPath(applicationGatewayName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(connectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string applicationGatewayName, string connectionName, ApplicationGatewayPrivateEndpointConnectionData data) { var message = _pipeline.CreateMessage(); @@ -199,6 +231,22 @@ public Response Update(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string applicationGatewayName, string connectionName) + { + 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.Network/applicationGateways/", false); + uri.AppendPath(applicationGatewayName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(connectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string applicationGatewayName, string connectionName) { var message = _pipeline.CreateMessage(); @@ -287,6 +335,21 @@ public Response Get(string subs } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string applicationGatewayName) + { + 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.Network/applicationGateways/", false); + uri.AppendPath(applicationGatewayName, true); + uri.AppendPath("/privateEndpointConnections", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string applicationGatewayName) { var message = _pipeline.CreateMessage(); @@ -366,6 +429,14 @@ public Response List(stri } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string applicationGatewayName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string applicationGatewayName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ApplicationGatewayPrivateLinkResourcesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ApplicationGatewayPrivateLinkResourcesRestOperations.cs index 258a521c6587..ca76003375b5 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ApplicationGatewayPrivateLinkResourcesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ApplicationGatewayPrivateLinkResourcesRestOperations.cs @@ -37,6 +37,21 @@ public ApplicationGatewayPrivateLinkResourcesRestOperations(HttpPipeline pipelin _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string applicationGatewayName) + { + 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.Network/applicationGateways/", false); + uri.AppendPath(applicationGatewayName, true); + uri.AppendPath("/privateLinkResources", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string applicationGatewayName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,14 @@ public Response List(string sub } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string applicationGatewayName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string applicationGatewayName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ApplicationGatewayWafDynamicManifestsDefaultRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ApplicationGatewayWafDynamicManifestsDefaultRestOperations.cs index aecec800b02e..6fa15d284574 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ApplicationGatewayWafDynamicManifestsDefaultRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ApplicationGatewayWafDynamicManifestsDefaultRestOperations.cs @@ -36,6 +36,19 @@ public ApplicationGatewayWafDynamicManifestsDefaultRestOperations(HttpPipeline p _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, AzureLocation location) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Network/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/applicationGatewayWafDynamicManifests/dafault", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, AzureLocation location) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ApplicationGatewayWafDynamicManifestsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ApplicationGatewayWafDynamicManifestsRestOperations.cs index e7b8bb9d80cb..e2e6c2955ed4 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ApplicationGatewayWafDynamicManifestsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ApplicationGatewayWafDynamicManifestsRestOperations.cs @@ -37,6 +37,19 @@ public ApplicationGatewayWafDynamicManifestsRestOperations(HttpPipeline pipeline _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, AzureLocation location) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Network/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/applicationGatewayWafDynamicManifests", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, AzureLocation location) { var message = _pipeline.CreateMessage(); @@ -108,6 +121,14 @@ public Response Get(string subsc } } + internal RequestUriBuilder CreateGetNextPageRequestUri(string nextLink, string subscriptionId, AzureLocation location) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateGetNextPageRequest(string nextLink, string subscriptionId, AzureLocation location) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ApplicationGatewaysRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ApplicationGatewaysRestOperations.cs index 3a38b05bf216..fc667624020e 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ApplicationGatewaysRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ApplicationGatewaysRestOperations.cs @@ -38,6 +38,20 @@ public ApplicationGatewaysRestOperations(HttpPipeline pipeline, string applicati _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string applicationGatewayName) + { + 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.Network/applicationGateways/", false); + uri.AppendPath(applicationGatewayName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string applicationGatewayName) { var message = _pipeline.CreateMessage(); @@ -110,6 +124,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string applicationGatewayName) + { + 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.Network/applicationGateways/", false); + uri.AppendPath(applicationGatewayName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string applicationGatewayName) { var message = _pipeline.CreateMessage(); @@ -192,6 +220,20 @@ public Response Get(string subscriptionId, string resour } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string applicationGatewayName, ApplicationGatewayData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/applicationGateways/", false); + uri.AppendPath(applicationGatewayName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string applicationGatewayName, ApplicationGatewayData data) { var message = _pipeline.CreateMessage(); @@ -270,6 +312,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateTagsRequestUri(string subscriptionId, string resourceGroupName, string applicationGatewayName, NetworkTagsObject networkTagsObject) + { + 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.Network/applicationGateways/", false); + uri.AppendPath(applicationGatewayName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateTagsRequest(string subscriptionId, string resourceGroupName, string applicationGatewayName, NetworkTagsObject networkTagsObject) { var message = _pipeline.CreateMessage(); @@ -356,6 +412,19 @@ public Response UpdateTags(string subscriptionId, string } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName) + { + 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.Network/applicationGateways", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -429,6 +498,17 @@ public Response List(string subscriptionId, string } } + internal RequestUriBuilder CreateListAllRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Network/applicationGateways", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListAllRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -496,6 +576,21 @@ public Response ListAll(string subscriptionId, Can } } + internal RequestUriBuilder CreateStartRequestUri(string subscriptionId, string resourceGroupName, string applicationGatewayName) + { + 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.Network/applicationGateways/", false); + uri.AppendPath(applicationGatewayName, true); + uri.AppendPath("/start", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStartRequest(string subscriptionId, string resourceGroupName, string applicationGatewayName) { var message = _pipeline.CreateMessage(); @@ -567,6 +662,21 @@ public Response Start(string subscriptionId, string resourceGroupName, string ap } } + internal RequestUriBuilder CreateStopRequestUri(string subscriptionId, string resourceGroupName, string applicationGatewayName) + { + 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.Network/applicationGateways/", false); + uri.AppendPath(applicationGatewayName, true); + uri.AppendPath("/stop", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStopRequest(string subscriptionId, string resourceGroupName, string applicationGatewayName) { var message = _pipeline.CreateMessage(); @@ -638,6 +748,25 @@ public Response Stop(string subscriptionId, string resourceGroupName, string app } } + internal RequestUriBuilder CreateBackendHealthRequestUri(string subscriptionId, string resourceGroupName, string applicationGatewayName, string expand) + { + 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.Network/applicationGateways/", false); + uri.AppendPath(applicationGatewayName, true); + uri.AppendPath("/backendhealth", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + return uri; + } + internal HttpMessage CreateBackendHealthRequest(string subscriptionId, string resourceGroupName, string applicationGatewayName, string expand) { var message = _pipeline.CreateMessage(); @@ -715,6 +844,25 @@ public Response BackendHealth(string subscriptionId, string resourceGroupName, s } } + internal RequestUriBuilder CreateBackendHealthOnDemandRequestUri(string subscriptionId, string resourceGroupName, string applicationGatewayName, ApplicationGatewayOnDemandProbe probeRequest, string expand) + { + 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.Network/applicationGateways/", false); + uri.AppendPath(applicationGatewayName, true); + uri.AppendPath("/getBackendHealthOnDemand", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + return uri; + } + internal HttpMessage CreateBackendHealthOnDemandRequest(string subscriptionId, string resourceGroupName, string applicationGatewayName, ApplicationGatewayOnDemandProbe probeRequest, string expand) { var message = _pipeline.CreateMessage(); @@ -800,6 +948,17 @@ public Response BackendHealthOnDemand(string subscriptionId, string resourceGrou } } + internal RequestUriBuilder CreateListAvailableServerVariablesRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Network/applicationGatewayAvailableServerVariables", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListAvailableServerVariablesRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -877,6 +1036,17 @@ public Response> ListAvailableServerVariables(string subsc } } + internal RequestUriBuilder CreateListAvailableRequestHeadersRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Network/applicationGatewayAvailableRequestHeaders", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListAvailableRequestHeadersRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -954,6 +1124,17 @@ public Response> ListAvailableRequestHeaders(string subscr } } + internal RequestUriBuilder CreateListAvailableResponseHeadersRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Network/applicationGatewayAvailableResponseHeaders", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListAvailableResponseHeadersRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -1031,6 +1212,17 @@ public Response> ListAvailableResponseHeaders(string subsc } } + internal RequestUriBuilder CreateListAvailableWafRuleSetsRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Network/applicationGatewayAvailableWafRuleSets", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListAvailableWafRuleSetsRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -1098,6 +1290,17 @@ public Response ListAvailableWafRu } } + internal RequestUriBuilder CreateListAvailableSslOptionsRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Network/applicationGatewayAvailableSslOptions/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListAvailableSslOptionsRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -1165,6 +1368,17 @@ public Response ListAvailableSslOptio } } + internal RequestUriBuilder CreateListAvailableSslPredefinedPoliciesRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Network/applicationGatewayAvailableSslOptions/default/predefinedPolicies", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListAvailableSslPredefinedPoliciesRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -1232,6 +1446,18 @@ public Response ListAvailableS } } + internal RequestUriBuilder CreateGetSslPredefinedPolicyRequestUri(string subscriptionId, string predefinedPolicyName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Network/applicationGatewayAvailableSslOptions/default/predefinedPolicies/", false); + uri.AppendPath(predefinedPolicyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetSslPredefinedPolicyRequest(string subscriptionId, string predefinedPolicyName) { var message = _pipeline.CreateMessage(); @@ -1304,6 +1530,14 @@ public Response GetSslPredefinedPolicy(st } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -1376,6 +1610,14 @@ public Response ListNextPage(string nextLink, stri } } + internal RequestUriBuilder CreateListAllNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListAllNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -1444,6 +1686,14 @@ public Response ListAllNextPage(string nextLink, s } } + internal RequestUriBuilder CreateListAvailableSslPredefinedPoliciesNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListAvailableSslPredefinedPoliciesNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ApplicationSecurityGroupsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ApplicationSecurityGroupsRestOperations.cs index b2c9e8a34d11..c6600e1ada41 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ApplicationSecurityGroupsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ApplicationSecurityGroupsRestOperations.cs @@ -37,6 +37,20 @@ public ApplicationSecurityGroupsRestOperations(HttpPipeline pipeline, string app _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string applicationSecurityGroupName) + { + 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.Network/applicationSecurityGroups/", false); + uri.AppendPath(applicationSecurityGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string applicationSecurityGroupName) { var message = _pipeline.CreateMessage(); @@ -109,6 +123,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string applicationSecurityGroupName) + { + 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.Network/applicationSecurityGroups/", false); + uri.AppendPath(applicationSecurityGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string applicationSecurityGroupName) { var message = _pipeline.CreateMessage(); @@ -191,6 +219,20 @@ public Response Get(string subscriptionId, string } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string applicationSecurityGroupName, ApplicationSecurityGroupData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/applicationSecurityGroups/", false); + uri.AppendPath(applicationSecurityGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string applicationSecurityGroupName, ApplicationSecurityGroupData data) { var message = _pipeline.CreateMessage(); @@ -269,6 +311,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateTagsRequestUri(string subscriptionId, string resourceGroupName, string applicationSecurityGroupName, NetworkTagsObject networkTagsObject) + { + 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.Network/applicationSecurityGroups/", false); + uri.AppendPath(applicationSecurityGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateTagsRequest(string subscriptionId, string resourceGroupName, string applicationSecurityGroupName, NetworkTagsObject networkTagsObject) { var message = _pipeline.CreateMessage(); @@ -355,6 +411,17 @@ public Response UpdateTags(string subscriptionId, } } + internal RequestUriBuilder CreateListAllRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Network/applicationSecurityGroups", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListAllRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -422,6 +489,19 @@ public Response ListAll(string subscriptionI } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName) + { + 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.Network/applicationSecurityGroups", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -495,6 +575,14 @@ public Response List(string subscriptionId, } } + internal RequestUriBuilder CreateListAllNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListAllNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -563,6 +651,14 @@ public Response ListAllNextPage(string nextL } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AvailableDelegationsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AvailableDelegationsRestOperations.cs index 276a4cf73319..8ebae011960d 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AvailableDelegationsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AvailableDelegationsRestOperations.cs @@ -37,6 +37,19 @@ public AvailableDelegationsRestOperations(HttpPipeline pipeline, string applicat _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, AzureLocation location) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Network/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/availableDelegations", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, AzureLocation location) { var message = _pipeline.CreateMessage(); @@ -108,6 +121,14 @@ public Response List(string subscriptionId, AzureLoc } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, AzureLocation location) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, AzureLocation location) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AvailableEndpointServicesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AvailableEndpointServicesRestOperations.cs index 5f43ee44d539..7c07ed4d36e6 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AvailableEndpointServicesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AvailableEndpointServicesRestOperations.cs @@ -37,6 +37,19 @@ public AvailableEndpointServicesRestOperations(HttpPipeline pipeline, string app _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, AzureLocation location) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Network/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/virtualNetworkAvailableEndpointServices", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, AzureLocation location) { var message = _pipeline.CreateMessage(); @@ -108,6 +121,14 @@ public Response List(string subscriptionId, AzureLoc } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, AzureLocation location) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, AzureLocation location) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AvailablePrivateEndpointTypesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AvailablePrivateEndpointTypesRestOperations.cs index db9e7aa26c7d..7b3e9b6cbc9b 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AvailablePrivateEndpointTypesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AvailablePrivateEndpointTypesRestOperations.cs @@ -37,6 +37,19 @@ public AvailablePrivateEndpointTypesRestOperations(HttpPipeline pipeline, string _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, AzureLocation location) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Network/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/availablePrivateEndpointTypes", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, AzureLocation location) { var message = _pipeline.CreateMessage(); @@ -108,6 +121,21 @@ public Response List(string subscriptionId, } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName, AzureLocation location) + { + 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.Network/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/availablePrivateEndpointTypes", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName, AzureLocation location) { var message = _pipeline.CreateMessage(); @@ -185,6 +213,14 @@ public Response ListByResourceGroup(string } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, AzureLocation location) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, AzureLocation location) { var message = _pipeline.CreateMessage(); @@ -255,6 +291,14 @@ public Response ListNextPage(string nextLin } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, AzureLocation location) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, AzureLocation location) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AvailableResourceGroupDelegationsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AvailableResourceGroupDelegationsRestOperations.cs index fbc1bf27a102..5453a8e71fcc 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AvailableResourceGroupDelegationsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AvailableResourceGroupDelegationsRestOperations.cs @@ -37,6 +37,21 @@ public AvailableResourceGroupDelegationsRestOperations(HttpPipeline pipeline, st _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, AzureLocation location) + { + 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.Network/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/availableDelegations", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, AzureLocation location) { var message = _pipeline.CreateMessage(); @@ -114,6 +129,14 @@ public Response List(string subscriptionId, string r } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, AzureLocation location) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, AzureLocation location) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AvailableServiceAliasesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AvailableServiceAliasesRestOperations.cs index 3f02af627dd7..d577b8ae47cf 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AvailableServiceAliasesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AvailableServiceAliasesRestOperations.cs @@ -37,6 +37,19 @@ public AvailableServiceAliasesRestOperations(HttpPipeline pipeline, string appli _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, AzureLocation location) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Network/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/availableServiceAliases", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, AzureLocation location) { var message = _pipeline.CreateMessage(); @@ -108,6 +121,21 @@ public Response List(string subscriptionId, Azure } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName, AzureLocation location) + { + 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.Network/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/availableServiceAliases", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName, AzureLocation location) { var message = _pipeline.CreateMessage(); @@ -185,6 +213,14 @@ public Response ListByResourceGroup(string subscr } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, AzureLocation location) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, AzureLocation location) { var message = _pipeline.CreateMessage(); @@ -255,6 +291,14 @@ public Response ListNextPage(string nextLink, str } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, AzureLocation location) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, AzureLocation location) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AzureFirewallFqdnTagsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AzureFirewallFqdnTagsRestOperations.cs index 66dce3bfc2f1..7a7fe5146100 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AzureFirewallFqdnTagsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AzureFirewallFqdnTagsRestOperations.cs @@ -37,6 +37,17 @@ public AzureFirewallFqdnTagsRestOperations(HttpPipeline pipeline, string applica _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListAllRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Network/azureFirewallFqdnTags", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListAllRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,14 @@ public Response ListAll(string subscriptionId, C } } + internal RequestUriBuilder CreateListAllNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListAllNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AzureFirewallsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AzureFirewallsRestOperations.cs index ee6e25a78d07..e1da20b59a27 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AzureFirewallsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AzureFirewallsRestOperations.cs @@ -37,6 +37,20 @@ public AzureFirewallsRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string azureFirewallName) + { + 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.Network/azureFirewalls/", false); + uri.AppendPath(azureFirewallName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string azureFirewallName) { var message = _pipeline.CreateMessage(); @@ -109,6 +123,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string azureFirewallName) + { + 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.Network/azureFirewalls/", false); + uri.AppendPath(azureFirewallName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string azureFirewallName) { var message = _pipeline.CreateMessage(); @@ -191,6 +219,20 @@ public Response Get(string subscriptionId, string resourceGro } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string azureFirewallName, AzureFirewallData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/azureFirewalls/", false); + uri.AppendPath(azureFirewallName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string azureFirewallName, AzureFirewallData data) { var message = _pipeline.CreateMessage(); @@ -269,6 +311,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateTagsRequestUri(string subscriptionId, string resourceGroupName, string azureFirewallName, NetworkTagsObject networkTagsObject) + { + 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.Network/azureFirewalls/", false); + uri.AppendPath(azureFirewallName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateTagsRequest(string subscriptionId, string resourceGroupName, string azureFirewallName, NetworkTagsObject networkTagsObject) { var message = _pipeline.CreateMessage(); @@ -347,6 +403,19 @@ public Response UpdateTags(string subscriptionId, string resourceGroupName, stri } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName) + { + 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.Network/azureFirewalls", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -420,6 +489,17 @@ public Response List(string subscriptionId, string reso } } + internal RequestUriBuilder CreateListAllRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Network/azureFirewalls", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListAllRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -487,6 +567,21 @@ public Response ListAll(string subscriptionId, Cancella } } + internal RequestUriBuilder CreateListLearnedPrefixesRequestUri(string subscriptionId, string resourceGroupName, string azureFirewallName) + { + 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.Network/azureFirewalls/", false); + uri.AppendPath(azureFirewallName, true); + uri.AppendPath("/learnedIPPrefixes", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListLearnedPrefixesRequest(string subscriptionId, string resourceGroupName, string azureFirewallName) { var message = _pipeline.CreateMessage(); @@ -558,6 +653,21 @@ public Response ListLearnedPrefixes(string subscriptionId, string resourceGroupN } } + internal RequestUriBuilder CreatePacketCaptureRequestUri(string subscriptionId, string resourceGroupName, string azureFirewallName, FirewallPacketCaptureContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/azureFirewalls/", false); + uri.AppendPath(azureFirewallName, true); + uri.AppendPath("/packetCapture", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreatePacketCaptureRequest(string subscriptionId, string resourceGroupName, string azureFirewallName, FirewallPacketCaptureContent content) { var message = _pipeline.CreateMessage(); @@ -635,6 +745,14 @@ public Response PacketCapture(string subscriptionId, string resourceGroupName, s } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -707,6 +825,14 @@ public Response ListNextPage(string nextLink, string su } } + internal RequestUriBuilder CreateListAllNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListAllNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/BastionHostsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/BastionHostsRestOperations.cs index 2129f4e5faf6..c08c3cccd3dd 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/BastionHostsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/BastionHostsRestOperations.cs @@ -37,6 +37,20 @@ public BastionHostsRestOperations(HttpPipeline pipeline, string applicationId, U _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string bastionHostName) + { + 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.Network/bastionHosts/", false); + uri.AppendPath(bastionHostName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string bastionHostName) { var message = _pipeline.CreateMessage(); @@ -109,6 +123,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string b } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string bastionHostName) + { + 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.Network/bastionHosts/", false); + uri.AppendPath(bastionHostName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string bastionHostName) { var message = _pipeline.CreateMessage(); @@ -191,6 +219,20 @@ public Response Get(string subscriptionId, string resourceGroup } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string bastionHostName, BastionHostData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/bastionHosts/", false); + uri.AppendPath(bastionHostName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string bastionHostName, BastionHostData data) { var message = _pipeline.CreateMessage(); @@ -269,6 +311,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateTagsRequestUri(string subscriptionId, string resourceGroupName, string bastionHostName, NetworkTagsObject networkTagsObject) + { + 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.Network/bastionHosts/", false); + uri.AppendPath(bastionHostName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateTagsRequest(string subscriptionId, string resourceGroupName, string bastionHostName, NetworkTagsObject networkTagsObject) { var message = _pipeline.CreateMessage(); @@ -347,6 +403,17 @@ public Response UpdateTags(string subscriptionId, string resourceGroupName, stri } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Network/bastionHosts", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -414,6 +481,19 @@ public Response List(string subscriptionId, CancellationT } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.Network/bastionHosts", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -487,6 +567,14 @@ public Response ListByResourceGroup(string subscriptionId } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -555,6 +643,14 @@ public Response ListNextPage(string nextLink, string subs } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/BgpServiceCommunitiesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/BgpServiceCommunitiesRestOperations.cs index ff84a5dae887..23b0353d1ebc 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/BgpServiceCommunitiesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/BgpServiceCommunitiesRestOperations.cs @@ -37,6 +37,17 @@ public BgpServiceCommunitiesRestOperations(HttpPipeline pipeline, string applica _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Network/bgpServiceCommunities", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,14 @@ public Response List(string subscriptionId, Cance } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ConfigurationPolicyGroupsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ConfigurationPolicyGroupsRestOperations.cs index 4045025af45b..7a443bbb75e3 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ConfigurationPolicyGroupsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ConfigurationPolicyGroupsRestOperations.cs @@ -37,6 +37,22 @@ public ConfigurationPolicyGroupsRestOperations(HttpPipeline pipeline, string app _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string vpnServerConfigurationName, string configurationPolicyGroupName, VpnServerConfigurationPolicyGroupData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/vpnServerConfigurations/", false); + uri.AppendPath(vpnServerConfigurationName, true); + uri.AppendPath("/configurationPolicyGroups/", false); + uri.AppendPath(configurationPolicyGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string vpnServerConfigurationName, string configurationPolicyGroupName, VpnServerConfigurationPolicyGroupData data) { var message = _pipeline.CreateMessage(); @@ -121,6 +137,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string vpnServerConfigurationName, string configurationPolicyGroupName) + { + 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.Network/vpnServerConfigurations/", false); + uri.AppendPath(vpnServerConfigurationName, true); + uri.AppendPath("/configurationPolicyGroups/", false); + uri.AppendPath(configurationPolicyGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string vpnServerConfigurationName, string configurationPolicyGroupName) { var message = _pipeline.CreateMessage(); @@ -199,6 +231,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string v } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string vpnServerConfigurationName, string configurationPolicyGroupName) + { + 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.Network/vpnServerConfigurations/", false); + uri.AppendPath(vpnServerConfigurationName, true); + uri.AppendPath("/configurationPolicyGroups/", false); + uri.AppendPath(configurationPolicyGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string vpnServerConfigurationName, string configurationPolicyGroupName) { var message = _pipeline.CreateMessage(); @@ -287,6 +335,21 @@ public Response Get(string subscriptionId } } + internal RequestUriBuilder CreateListByVpnServerConfigurationRequestUri(string subscriptionId, string resourceGroupName, string vpnServerConfigurationName) + { + 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.Network/vpnServerConfigurations/", false); + uri.AppendPath(vpnServerConfigurationName, true); + uri.AppendPath("/configurationPolicyGroups", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByVpnServerConfigurationRequest(string subscriptionId, string resourceGroupName, string vpnServerConfigurationName) { var message = _pipeline.CreateMessage(); @@ -366,6 +429,14 @@ public Response ListByVpnServerCon } } + internal RequestUriBuilder CreateListByVpnServerConfigurationNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string vpnServerConfigurationName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByVpnServerConfigurationNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string vpnServerConfigurationName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ConnectionMonitorsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ConnectionMonitorsRestOperations.cs index efd54b3a15b2..1011921782f8 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ConnectionMonitorsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ConnectionMonitorsRestOperations.cs @@ -37,6 +37,26 @@ public ConnectionMonitorsRestOperations(HttpPipeline pipeline, string applicatio _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string networkWatcherName, string connectionMonitorName, ConnectionMonitorCreateOrUpdateContent content, string migrate) + { + 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.Network/networkWatchers/", false); + uri.AppendPath(networkWatcherName, true); + uri.AppendPath("/connectionMonitors/", false); + uri.AppendPath(connectionMonitorName, true); + uri.AppendQuery("api-version", _apiVersion, true); + if (migrate != null) + { + uri.AppendQuery("migrate", migrate, true); + } + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string networkWatcherName, string connectionMonitorName, ConnectionMonitorCreateOrUpdateContent content, string migrate) { var message = _pipeline.CreateMessage(); @@ -127,6 +147,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string networkWatcherName, string connectionMonitorName) + { + 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.Network/networkWatchers/", false); + uri.AppendPath(networkWatcherName, true); + uri.AppendPath("/connectionMonitors/", false); + uri.AppendPath(connectionMonitorName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string networkWatcherName, string connectionMonitorName) { var message = _pipeline.CreateMessage(); @@ -215,6 +251,22 @@ public Response Get(string subscriptionId, string resourc } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string networkWatcherName, string connectionMonitorName) + { + 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.Network/networkWatchers/", false); + uri.AppendPath(networkWatcherName, true); + uri.AppendPath("/connectionMonitors/", false); + uri.AppendPath(connectionMonitorName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string networkWatcherName, string connectionMonitorName) { var message = _pipeline.CreateMessage(); @@ -291,6 +343,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string n } } + internal RequestUriBuilder CreateUpdateTagsRequestUri(string subscriptionId, string resourceGroupName, string networkWatcherName, string connectionMonitorName, NetworkTagsObject networkTagsObject) + { + 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.Network/networkWatchers/", false); + uri.AppendPath(networkWatcherName, true); + uri.AppendPath("/connectionMonitors/", false); + uri.AppendPath(connectionMonitorName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateTagsRequest(string subscriptionId, string resourceGroupName, string networkWatcherName, string connectionMonitorName, NetworkTagsObject networkTagsObject) { var message = _pipeline.CreateMessage(); @@ -383,6 +451,23 @@ public Response UpdateTags(string subscriptionId, string } } + internal RequestUriBuilder CreateStopRequestUri(string subscriptionId, string resourceGroupName, string networkWatcherName, string connectionMonitorName) + { + 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.Network/networkWatchers/", false); + uri.AppendPath(networkWatcherName, true); + uri.AppendPath("/connectionMonitors/", false); + uri.AppendPath(connectionMonitorName, true); + uri.AppendPath("/stop", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStopRequest(string subscriptionId, string resourceGroupName, string networkWatcherName, string connectionMonitorName) { var message = _pipeline.CreateMessage(); @@ -460,6 +545,23 @@ public Response Stop(string subscriptionId, string resourceGroupName, string net } } + internal RequestUriBuilder CreateStartRequestUri(string subscriptionId, string resourceGroupName, string networkWatcherName, string connectionMonitorName) + { + 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.Network/networkWatchers/", false); + uri.AppendPath(networkWatcherName, true); + uri.AppendPath("/connectionMonitors/", false); + uri.AppendPath(connectionMonitorName, true); + uri.AppendPath("/start", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStartRequest(string subscriptionId, string resourceGroupName, string networkWatcherName, string connectionMonitorName) { var message = _pipeline.CreateMessage(); @@ -537,6 +639,23 @@ public Response Start(string subscriptionId, string resourceGroupName, string ne } } + internal RequestUriBuilder CreateQueryRequestUri(string subscriptionId, string resourceGroupName, string networkWatcherName, string connectionMonitorName) + { + 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.Network/networkWatchers/", false); + uri.AppendPath(networkWatcherName, true); + uri.AppendPath("/connectionMonitors/", false); + uri.AppendPath(connectionMonitorName, true); + uri.AppendPath("/query", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateQueryRequest(string subscriptionId, string resourceGroupName, string networkWatcherName, string connectionMonitorName) { var message = _pipeline.CreateMessage(); @@ -614,6 +733,21 @@ public Response Query(string subscriptionId, string resourceGroupName, string ne } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string networkWatcherName) + { + 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.Network/networkWatchers/", false); + uri.AppendPath(networkWatcherName, true); + uri.AppendPath("/connectionMonitors", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string networkWatcherName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ConnectivityConfigurationsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ConnectivityConfigurationsRestOperations.cs index 92d640d57a5e..4868031d22f0 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ConnectivityConfigurationsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ConnectivityConfigurationsRestOperations.cs @@ -37,6 +37,22 @@ public ConnectivityConfigurationsRestOperations(HttpPipeline pipeline, string ap _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName) + { + 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.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/connectivityConfigurations/", false); + uri.AppendPath(configurationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName) { var message = _pipeline.CreateMessage(); @@ -125,6 +141,22 @@ public Response Get(string subscriptionId, string } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, ConnectivityConfigurationData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/connectivityConfigurations/", false); + uri.AppendPath(configurationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, ConnectivityConfigurationData data) { var message = _pipeline.CreateMessage(); @@ -219,6 +251,26 @@ public Response CreateOrUpdate(string subscriptio } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, bool? force) + { + 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.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/connectivityConfigurations/", false); + uri.AppendPath(configurationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + if (force != null) + { + uri.AppendQuery("force", force.Value, true); + } + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, bool? force) { var message = _pipeline.CreateMessage(); @@ -303,6 +355,29 @@ public Response Delete(string subscriptionId, string resourceGroupName, string n } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string networkManagerName, int? top, string skipToken) + { + 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.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/connectivityConfigurations", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string networkManagerName, int? top, string skipToken) { var message = _pipeline.CreateMessage(); @@ -394,6 +469,14 @@ public Response List(string subscriptionId, } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string networkManagerName, int? top, string skipToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string networkManagerName, int? top, string skipToken) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/CustomIPPrefixesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/CustomIPPrefixesRestOperations.cs index c882b6ffee42..a95f2e0c3d30 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/CustomIPPrefixesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/CustomIPPrefixesRestOperations.cs @@ -37,6 +37,20 @@ public CustomIPPrefixesRestOperations(HttpPipeline pipeline, string applicationI _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string customIPPrefixName) + { + 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.Network/customIpPrefixes/", false); + uri.AppendPath(customIPPrefixName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string customIPPrefixName) { var message = _pipeline.CreateMessage(); @@ -109,6 +123,24 @@ public Response Delete(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string customIPPrefixName, string expand) + { + 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.Network/customIpPrefixes/", false); + uri.AppendPath(customIPPrefixName, true); + uri.AppendQuery("api-version", _apiVersion, true); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string customIPPrefixName, string expand) { var message = _pipeline.CreateMessage(); @@ -197,6 +229,20 @@ public Response Get(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string customIPPrefixName, CustomIPPrefixData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/customIpPrefixes/", false); + uri.AppendPath(customIPPrefixName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string customIPPrefixName, CustomIPPrefixData data) { var message = _pipeline.CreateMessage(); @@ -275,6 +321,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateTagsRequestUri(string subscriptionId, string resourceGroupName, string customIPPrefixName, NetworkTagsObject networkTagsObject) + { + 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.Network/customIpPrefixes/", false); + uri.AppendPath(customIPPrefixName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateTagsRequest(string subscriptionId, string resourceGroupName, string customIPPrefixName, NetworkTagsObject networkTagsObject) { var message = _pipeline.CreateMessage(); @@ -361,6 +421,17 @@ public Response UpdateTags(string subscriptionId, string res } } + internal RequestUriBuilder CreateListAllRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Network/customIpPrefixes", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListAllRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -428,6 +499,19 @@ public Response ListAll(string subscriptionId, Cancell } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName) + { + 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.Network/customIpPrefixes", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -501,6 +585,14 @@ public Response List(string subscriptionId, string res } } + internal RequestUriBuilder CreateListAllNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListAllNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -569,6 +661,14 @@ public Response ListAllNextPage(string nextLink, strin } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/DdosCustomPoliciesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/DdosCustomPoliciesRestOperations.cs index 702078fa0799..c38a9f3c3d75 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/DdosCustomPoliciesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/DdosCustomPoliciesRestOperations.cs @@ -37,6 +37,20 @@ public DdosCustomPoliciesRestOperations(HttpPipeline pipeline, string applicatio _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string ddosCustomPolicyName) + { + 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.Network/ddosCustomPolicies/", false); + uri.AppendPath(ddosCustomPolicyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string ddosCustomPolicyName) { var message = _pipeline.CreateMessage(); @@ -109,6 +123,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string d } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string ddosCustomPolicyName) + { + 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.Network/ddosCustomPolicies/", false); + uri.AppendPath(ddosCustomPolicyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string ddosCustomPolicyName) { var message = _pipeline.CreateMessage(); @@ -191,6 +219,20 @@ public Response Get(string subscriptionId, string resource } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string ddosCustomPolicyName, DdosCustomPolicyData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/ddosCustomPolicies/", false); + uri.AppendPath(ddosCustomPolicyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string ddosCustomPolicyName, DdosCustomPolicyData data) { var message = _pipeline.CreateMessage(); @@ -269,6 +311,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateTagsRequestUri(string subscriptionId, string resourceGroupName, string ddosCustomPolicyName, NetworkTagsObject networkTagsObject) + { + 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.Network/ddosCustomPolicies/", false); + uri.AppendPath(ddosCustomPolicyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateTagsRequest(string subscriptionId, string resourceGroupName, string ddosCustomPolicyName, NetworkTagsObject networkTagsObject) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/DdosProtectionPlansRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/DdosProtectionPlansRestOperations.cs index 24816ccdfb74..1e62b2d8ed80 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/DdosProtectionPlansRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/DdosProtectionPlansRestOperations.cs @@ -37,6 +37,20 @@ public DdosProtectionPlansRestOperations(HttpPipeline pipeline, string applicati _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string ddosProtectionPlanName) + { + 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.Network/ddosProtectionPlans/", false); + uri.AppendPath(ddosProtectionPlanName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string ddosProtectionPlanName) { var message = _pipeline.CreateMessage(); @@ -109,6 +123,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string d } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string ddosProtectionPlanName) + { + 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.Network/ddosProtectionPlans/", false); + uri.AppendPath(ddosProtectionPlanName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string ddosProtectionPlanName) { var message = _pipeline.CreateMessage(); @@ -191,6 +219,20 @@ public Response Get(string subscriptionId, string resour } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string ddosProtectionPlanName, DdosProtectionPlanData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/ddosProtectionPlans/", false); + uri.AppendPath(ddosProtectionPlanName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string ddosProtectionPlanName, DdosProtectionPlanData data) { var message = _pipeline.CreateMessage(); @@ -269,6 +311,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateTagsRequestUri(string subscriptionId, string resourceGroupName, string ddosProtectionPlanName, NetworkTagsObject networkTagsObject) + { + 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.Network/ddosProtectionPlans/", false); + uri.AppendPath(ddosProtectionPlanName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateTagsRequest(string subscriptionId, string resourceGroupName, string ddosProtectionPlanName, NetworkTagsObject networkTagsObject) { var message = _pipeline.CreateMessage(); @@ -355,6 +411,17 @@ public Response UpdateTags(string subscriptionId, string } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Network/ddosProtectionPlans", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -422,6 +489,19 @@ public Response List(string subscriptionId, Cancel } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.Network/ddosProtectionPlans", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -495,6 +575,14 @@ public Response ListByResourceGroup(string subscri } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -563,6 +651,14 @@ public Response ListNextPage(string nextLink, stri } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/DefaultSecurityRulesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/DefaultSecurityRulesRestOperations.cs index c40a1d24e88b..a0e8737a5fd6 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/DefaultSecurityRulesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/DefaultSecurityRulesRestOperations.cs @@ -37,6 +37,21 @@ public DefaultSecurityRulesRestOperations(HttpPipeline pipeline, string applicat _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string networkSecurityGroupName) + { + 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.Network/networkSecurityGroups/", false); + uri.AppendPath(networkSecurityGroupName, true); + uri.AppendPath("/defaultSecurityRules", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string networkSecurityGroupName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response List(string subscriptionId, string resou } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string networkSecurityGroupName, string defaultSecurityRuleName) + { + 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.Network/networkSecurityGroups/", false); + uri.AppendPath(networkSecurityGroupName, true); + uri.AppendPath("/defaultSecurityRules/", false); + uri.AppendPath(defaultSecurityRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string networkSecurityGroupName, string defaultSecurityRuleName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,14 @@ public Response Get(string subscriptionId, string resourceGrou } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string networkSecurityGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string networkSecurityGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/DscpConfigurationRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/DscpConfigurationRestOperations.cs index 357541039a24..29bc7495fe6c 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/DscpConfigurationRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/DscpConfigurationRestOperations.cs @@ -37,6 +37,20 @@ public DscpConfigurationRestOperations(HttpPipeline pipeline, string application _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string dscpConfigurationName, DscpConfigurationData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/dscpConfigurations/", false); + uri.AppendPath(dscpConfigurationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string dscpConfigurationName, DscpConfigurationData data) { var message = _pipeline.CreateMessage(); @@ -115,6 +129,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string dscpConfigurationName) + { + 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.Network/dscpConfigurations/", false); + uri.AppendPath(dscpConfigurationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string dscpConfigurationName) { var message = _pipeline.CreateMessage(); @@ -187,6 +215,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string d } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string dscpConfigurationName) + { + 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.Network/dscpConfigurations/", false); + uri.AppendPath(dscpConfigurationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string dscpConfigurationName) { var message = _pipeline.CreateMessage(); @@ -269,6 +311,19 @@ public Response Get(string subscriptionId, string resourc } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName) + { + 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.Network/dscpConfigurations", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -342,6 +397,17 @@ public Response List(string subscriptionId, string } } + internal RequestUriBuilder CreateListAllRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Network/dscpConfigurations", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListAllRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -409,6 +475,14 @@ public Response ListAll(string subscriptionId, Canc } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -481,6 +555,14 @@ public Response ListNextPage(string nextLink, strin } } + internal RequestUriBuilder CreateListAllNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListAllNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCircuitAuthorizationsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCircuitAuthorizationsRestOperations.cs index e673102f4c66..395eb80b4c18 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCircuitAuthorizationsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCircuitAuthorizationsRestOperations.cs @@ -37,6 +37,22 @@ public ExpressRouteCircuitAuthorizationsRestOperations(HttpPipeline pipeline, st _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string circuitName, string authorizationName) + { + 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.Network/expressRouteCircuits/", false); + uri.AppendPath(circuitName, true); + uri.AppendPath("/authorizations/", false); + uri.AppendPath(authorizationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string circuitName, string authorizationName) { var message = _pipeline.CreateMessage(); @@ -115,6 +131,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string circuitName, string authorizationName) + { + 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.Network/expressRouteCircuits/", false); + uri.AppendPath(circuitName, true); + uri.AppendPath("/authorizations/", false); + uri.AppendPath(authorizationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string circuitName, string authorizationName) { var message = _pipeline.CreateMessage(); @@ -203,6 +235,22 @@ public Response Get(string subscriptionId, } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string circuitName, string authorizationName, ExpressRouteCircuitAuthorizationData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/expressRouteCircuits/", false); + uri.AppendPath(circuitName, true); + uri.AppendPath("/authorizations/", false); + uri.AppendPath(authorizationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string circuitName, string authorizationName, ExpressRouteCircuitAuthorizationData data) { var message = _pipeline.CreateMessage(); @@ -287,6 +335,21 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string circuitName) + { + 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.Network/expressRouteCircuits/", false); + uri.AppendPath(circuitName, true); + uri.AppendPath("/authorizations", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string circuitName) { var message = _pipeline.CreateMessage(); @@ -366,6 +429,14 @@ public Response List(string subscriptionId, string reso } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string circuitName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string circuitName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCircuitConnectionsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCircuitConnectionsRestOperations.cs index 3633b8506080..4f5cd45bc2c5 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCircuitConnectionsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCircuitConnectionsRestOperations.cs @@ -37,6 +37,24 @@ public ExpressRouteCircuitConnectionsRestOperations(HttpPipeline pipeline, strin _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string circuitName, string peeringName, string connectionName) + { + 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.Network/expressRouteCircuits/", false); + uri.AppendPath(circuitName, true); + uri.AppendPath("/peerings/", false); + uri.AppendPath(peeringName, true); + uri.AppendPath("/connections/", false); + uri.AppendPath(connectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string circuitName, string peeringName, string connectionName) { var message = _pipeline.CreateMessage(); @@ -121,6 +139,24 @@ public Response Delete(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string circuitName, string peeringName, string connectionName) + { + 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.Network/expressRouteCircuits/", false); + uri.AppendPath(circuitName, true); + uri.AppendPath("/peerings/", false); + uri.AppendPath(peeringName, true); + uri.AppendPath("/connections/", false); + uri.AppendPath(connectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string circuitName, string peeringName, string connectionName) { var message = _pipeline.CreateMessage(); @@ -215,6 +251,24 @@ public Response Get(string subscriptionId, st } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string circuitName, string peeringName, string connectionName, ExpressRouteCircuitConnectionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/expressRouteCircuits/", false); + uri.AppendPath(circuitName, true); + uri.AppendPath("/peerings/", false); + uri.AppendPath(peeringName, true); + uri.AppendPath("/connections/", false); + uri.AppendPath(connectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string circuitName, string peeringName, string connectionName, ExpressRouteCircuitConnectionData data) { var message = _pipeline.CreateMessage(); @@ -305,6 +359,23 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string circuitName, string peeringName) + { + 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.Network/expressRouteCircuits/", false); + uri.AppendPath(circuitName, true); + uri.AppendPath("/peerings/", false); + uri.AppendPath(peeringName, true); + uri.AppendPath("/connections", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string circuitName, string peeringName) { var message = _pipeline.CreateMessage(); @@ -390,6 +461,14 @@ public Response List(string subscriptio } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string circuitName, string peeringName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string circuitName, string peeringName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCircuitPeeringsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCircuitPeeringsRestOperations.cs index 486357352d81..c77dc8994196 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCircuitPeeringsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCircuitPeeringsRestOperations.cs @@ -37,6 +37,22 @@ public ExpressRouteCircuitPeeringsRestOperations(HttpPipeline pipeline, string a _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string circuitName, string peeringName) + { + 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.Network/expressRouteCircuits/", false); + uri.AppendPath(circuitName, true); + uri.AppendPath("/peerings/", false); + uri.AppendPath(peeringName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string circuitName, string peeringName) { var message = _pipeline.CreateMessage(); @@ -115,6 +131,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string circuitName, string peeringName) + { + 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.Network/expressRouteCircuits/", false); + uri.AppendPath(circuitName, true); + uri.AppendPath("/peerings/", false); + uri.AppendPath(peeringName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string circuitName, string peeringName) { var message = _pipeline.CreateMessage(); @@ -203,6 +235,22 @@ public Response Get(string subscriptionId, strin } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string circuitName, string peeringName, ExpressRouteCircuitPeeringData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/expressRouteCircuits/", false); + uri.AppendPath(circuitName, true); + uri.AppendPath("/peerings/", false); + uri.AppendPath(peeringName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string circuitName, string peeringName, ExpressRouteCircuitPeeringData data) { var message = _pipeline.CreateMessage(); @@ -287,6 +335,21 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string circuitName) + { + 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.Network/expressRouteCircuits/", false); + uri.AppendPath(circuitName, true); + uri.AppendPath("/peerings", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string circuitName) { var message = _pipeline.CreateMessage(); @@ -366,6 +429,14 @@ public Response List(string subscriptionId } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string circuitName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string circuitName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCircuitsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCircuitsRestOperations.cs index fae2761a50c7..e6181bd0c845 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCircuitsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCircuitsRestOperations.cs @@ -37,6 +37,20 @@ public ExpressRouteCircuitsRestOperations(HttpPipeline pipeline, string applicat _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string circuitName) + { + 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.Network/expressRouteCircuits/", false); + uri.AppendPath(circuitName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string circuitName) { var message = _pipeline.CreateMessage(); @@ -109,6 +123,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string circuitName) + { + 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.Network/expressRouteCircuits/", false); + uri.AppendPath(circuitName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string circuitName) { var message = _pipeline.CreateMessage(); @@ -191,6 +219,20 @@ public Response Get(string subscriptionId, string resou } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string circuitName, ExpressRouteCircuitData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/expressRouteCircuits/", false); + uri.AppendPath(circuitName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string circuitName, ExpressRouteCircuitData data) { var message = _pipeline.CreateMessage(); @@ -269,6 +311,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateTagsRequestUri(string subscriptionId, string resourceGroupName, string circuitName, NetworkTagsObject networkTagsObject) + { + 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.Network/expressRouteCircuits/", false); + uri.AppendPath(circuitName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateTagsRequest(string subscriptionId, string resourceGroupName, string circuitName, NetworkTagsObject networkTagsObject) { var message = _pipeline.CreateMessage(); @@ -355,6 +411,24 @@ public Response UpdateTags(string subscriptionId, strin } } + internal RequestUriBuilder CreateListArpTableRequestUri(string subscriptionId, string resourceGroupName, string circuitName, string peeringName, string devicePath) + { + 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.Network/expressRouteCircuits/", false); + uri.AppendPath(circuitName, true); + uri.AppendPath("/peerings/", false); + uri.AppendPath(peeringName, true); + uri.AppendPath("/arpTables/", false); + uri.AppendPath(devicePath, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListArpTableRequest(string subscriptionId, string resourceGroupName, string circuitName, string peeringName, string devicePath) { var message = _pipeline.CreateMessage(); @@ -437,6 +511,24 @@ public Response ListArpTable(string subscriptionId, string resourceGroupName, st } } + internal RequestUriBuilder CreateListRoutesTableRequestUri(string subscriptionId, string resourceGroupName, string circuitName, string peeringName, string devicePath) + { + 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.Network/expressRouteCircuits/", false); + uri.AppendPath(circuitName, true); + uri.AppendPath("/peerings/", false); + uri.AppendPath(peeringName, true); + uri.AppendPath("/routeTables/", false); + uri.AppendPath(devicePath, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRoutesTableRequest(string subscriptionId, string resourceGroupName, string circuitName, string peeringName, string devicePath) { var message = _pipeline.CreateMessage(); @@ -519,6 +611,24 @@ public Response ListRoutesTable(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateListRoutesTableSummaryRequestUri(string subscriptionId, string resourceGroupName, string circuitName, string peeringName, string devicePath) + { + 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.Network/expressRouteCircuits/", false); + uri.AppendPath(circuitName, true); + uri.AppendPath("/peerings/", false); + uri.AppendPath(peeringName, true); + uri.AppendPath("/routeTablesSummary/", false); + uri.AppendPath(devicePath, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRoutesTableSummaryRequest(string subscriptionId, string resourceGroupName, string circuitName, string peeringName, string devicePath) { var message = _pipeline.CreateMessage(); @@ -601,6 +711,21 @@ public Response ListRoutesTableSummary(string subscriptionId, string resourceGro } } + internal RequestUriBuilder CreateGetStatsRequestUri(string subscriptionId, string resourceGroupName, string circuitName) + { + 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.Network/expressRouteCircuits/", false); + uri.AppendPath(circuitName, true); + uri.AppendPath("/stats", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetStatsRequest(string subscriptionId, string resourceGroupName, string circuitName) { var message = _pipeline.CreateMessage(); @@ -680,6 +805,23 @@ public Response GetStats(string subscriptionId, string } } + internal RequestUriBuilder CreateGetPeeringStatsRequestUri(string subscriptionId, string resourceGroupName, string circuitName, string peeringName) + { + 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.Network/expressRouteCircuits/", false); + uri.AppendPath(circuitName, true); + uri.AppendPath("/peerings/", false); + uri.AppendPath(peeringName, true); + uri.AppendPath("/stats", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetPeeringStatsRequest(string subscriptionId, string resourceGroupName, string circuitName, string peeringName) { var message = _pipeline.CreateMessage(); @@ -765,6 +907,19 @@ public Response GetPeeringStats(string subscriptionId, } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName) + { + 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.Network/expressRouteCircuits", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -838,6 +993,17 @@ public Response List(string subscriptionId, strin } } + internal RequestUriBuilder CreateListAllRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Network/expressRouteCircuits", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListAllRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -905,6 +1071,14 @@ public Response ListAll(string subscriptionId, Ca } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -977,6 +1151,14 @@ public Response ListNextPage(string nextLink, str } } + internal RequestUriBuilder CreateListAllNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListAllNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteConnectionsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteConnectionsRestOperations.cs index 6fcac6ab2305..3f68c522f437 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteConnectionsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteConnectionsRestOperations.cs @@ -37,6 +37,22 @@ public ExpressRouteConnectionsRestOperations(HttpPipeline pipeline, string appli _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string expressRouteGatewayName, string connectionName, ExpressRouteConnectionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/expressRouteGateways/", false); + uri.AppendPath(expressRouteGatewayName, true); + uri.AppendPath("/expressRouteConnections/", false); + uri.AppendPath(connectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string expressRouteGatewayName, string connectionName, ExpressRouteConnectionData data) { var message = _pipeline.CreateMessage(); @@ -121,6 +137,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string expressRouteGatewayName, string connectionName) + { + 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.Network/expressRouteGateways/", false); + uri.AppendPath(expressRouteGatewayName, true); + uri.AppendPath("/expressRouteConnections/", false); + uri.AppendPath(connectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string expressRouteGatewayName, string connectionName) { var message = _pipeline.CreateMessage(); @@ -209,6 +241,22 @@ public Response Get(string subscriptionId, string re } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string expressRouteGatewayName, string connectionName) + { + 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.Network/expressRouteGateways/", false); + uri.AppendPath(expressRouteGatewayName, true); + uri.AppendPath("/expressRouteConnections/", false); + uri.AppendPath(connectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string expressRouteGatewayName, string connectionName) { var message = _pipeline.CreateMessage(); @@ -287,6 +335,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string e } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string expressRouteGatewayName) + { + 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.Network/expressRouteGateways/", false); + uri.AppendPath(expressRouteGatewayName, true); + uri.AppendPath("/expressRouteConnections", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string expressRouteGatewayName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCrossConnectionPeeringsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCrossConnectionPeeringsRestOperations.cs index 7fd625867965..8edc4b3252d4 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCrossConnectionPeeringsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCrossConnectionPeeringsRestOperations.cs @@ -37,6 +37,21 @@ public ExpressRouteCrossConnectionPeeringsRestOperations(HttpPipeline pipeline, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string crossConnectionName) + { + 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.Network/expressRouteCrossConnections/", false); + uri.AppendPath(crossConnectionName, true); + uri.AppendPath("/peerings", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string crossConnectionName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response List(string subscription } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string crossConnectionName, string peeringName) + { + 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.Network/expressRouteCrossConnections/", false); + uri.AppendPath(crossConnectionName, true); + uri.AppendPath("/peerings/", false); + uri.AppendPath(peeringName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string crossConnectionName, string peeringName) { var message = _pipeline.CreateMessage(); @@ -194,6 +225,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string crossConnectionName, string peeringName) + { + 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.Network/expressRouteCrossConnections/", false); + uri.AppendPath(crossConnectionName, true); + uri.AppendPath("/peerings/", false); + uri.AppendPath(peeringName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string crossConnectionName, string peeringName) { var message = _pipeline.CreateMessage(); @@ -282,6 +329,22 @@ public Response Get(string subscriptionI } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string crossConnectionName, string peeringName, ExpressRouteCrossConnectionPeeringData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/expressRouteCrossConnections/", false); + uri.AppendPath(crossConnectionName, true); + uri.AppendPath("/peerings/", false); + uri.AppendPath(peeringName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string crossConnectionName, string peeringName, ExpressRouteCrossConnectionPeeringData data) { var message = _pipeline.CreateMessage(); @@ -366,6 +429,14 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string crossConnectionName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string crossConnectionName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCrossConnectionsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCrossConnectionsRestOperations.cs index cd38042825f5..cb5dc6322ecc 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCrossConnectionsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCrossConnectionsRestOperations.cs @@ -37,6 +37,17 @@ public ExpressRouteCrossConnectionsRestOperations(HttpPipeline pipeline, string _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Network/expressRouteCrossConnections", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,19 @@ public Response List(string subscriptionI } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.Network/expressRouteCrossConnections", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -177,6 +201,20 @@ public Response ListByResourceGroup(strin } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string crossConnectionName) + { + 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.Network/expressRouteCrossConnections/", false); + uri.AppendPath(crossConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string crossConnectionName) { var message = _pipeline.CreateMessage(); @@ -259,6 +297,20 @@ public Response Get(string subscriptionId, stri } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string crossConnectionName, ExpressRouteCrossConnectionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/expressRouteCrossConnections/", false); + uri.AppendPath(crossConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string crossConnectionName, ExpressRouteCrossConnectionData data) { var message = _pipeline.CreateMessage(); @@ -335,6 +387,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateTagsRequestUri(string subscriptionId, string resourceGroupName, string crossConnectionName, NetworkTagsObject crossConnectionParameters) + { + 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.Network/expressRouteCrossConnections/", false); + uri.AppendPath(crossConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateTagsRequest(string subscriptionId, string resourceGroupName, string crossConnectionName, NetworkTagsObject crossConnectionParameters) { var message = _pipeline.CreateMessage(); @@ -421,6 +487,24 @@ public Response UpdateTags(string subscriptionI } } + internal RequestUriBuilder CreateListArpTableRequestUri(string subscriptionId, string resourceGroupName, string crossConnectionName, string peeringName, string devicePath) + { + 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.Network/expressRouteCrossConnections/", false); + uri.AppendPath(crossConnectionName, true); + uri.AppendPath("/peerings/", false); + uri.AppendPath(peeringName, true); + uri.AppendPath("/arpTables/", false); + uri.AppendPath(devicePath, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListArpTableRequest(string subscriptionId, string resourceGroupName, string crossConnectionName, string peeringName, string devicePath) { var message = _pipeline.CreateMessage(); @@ -503,6 +587,24 @@ public Response ListArpTable(string subscriptionId, string resourceGroupName, st } } + internal RequestUriBuilder CreateListRoutesTableSummaryRequestUri(string subscriptionId, string resourceGroupName, string crossConnectionName, string peeringName, string devicePath) + { + 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.Network/expressRouteCrossConnections/", false); + uri.AppendPath(crossConnectionName, true); + uri.AppendPath("/peerings/", false); + uri.AppendPath(peeringName, true); + uri.AppendPath("/routeTablesSummary/", false); + uri.AppendPath(devicePath, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRoutesTableSummaryRequest(string subscriptionId, string resourceGroupName, string crossConnectionName, string peeringName, string devicePath) { var message = _pipeline.CreateMessage(); @@ -585,6 +687,24 @@ public Response ListRoutesTableSummary(string subscriptionId, string resourceGro } } + internal RequestUriBuilder CreateListRoutesTableRequestUri(string subscriptionId, string resourceGroupName, string crossConnectionName, string peeringName, string devicePath) + { + 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.Network/expressRouteCrossConnections/", false); + uri.AppendPath(crossConnectionName, true); + uri.AppendPath("/peerings/", false); + uri.AppendPath(peeringName, true); + uri.AppendPath("/routeTables/", false); + uri.AppendPath(devicePath, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRoutesTableRequest(string subscriptionId, string resourceGroupName, string crossConnectionName, string peeringName, string devicePath) { var message = _pipeline.CreateMessage(); @@ -667,6 +787,14 @@ public Response ListRoutesTable(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -735,6 +863,14 @@ public Response ListNextPage(string nextL } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteGatewaysRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteGatewaysRestOperations.cs index 39c0425b1e35..6ee083a419da 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteGatewaysRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteGatewaysRestOperations.cs @@ -37,6 +37,17 @@ public ExpressRouteGatewaysRestOperations(HttpPipeline pipeline, string applicat _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Network/expressRouteGateways", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,19 @@ public Response ListBySubscription(string subscriptionI } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.Network/expressRouteGateways", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -177,6 +201,20 @@ public Response ListByResourceGroup(string subscription } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string expressRouteGatewayName, ExpressRouteGatewayData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/expressRouteGateways/", false); + uri.AppendPath(expressRouteGatewayName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string expressRouteGatewayName, ExpressRouteGatewayData data) { var message = _pipeline.CreateMessage(); @@ -255,6 +293,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateTagsRequestUri(string subscriptionId, string resourceGroupName, string expressRouteGatewayName, NetworkTagsObject expressRouteGatewayParameters) + { + 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.Network/expressRouteGateways/", false); + uri.AppendPath(expressRouteGatewayName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateTagsRequest(string subscriptionId, string resourceGroupName, string expressRouteGatewayName, NetworkTagsObject expressRouteGatewayParameters) { var message = _pipeline.CreateMessage(); @@ -333,6 +385,20 @@ public Response UpdateTags(string subscriptionId, string resourceGroupName, stri } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string expressRouteGatewayName) + { + 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.Network/expressRouteGateways/", false); + uri.AppendPath(expressRouteGatewayName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string expressRouteGatewayName) { var message = _pipeline.CreateMessage(); @@ -415,6 +481,20 @@ public Response Get(string subscriptionId, string resou } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string expressRouteGatewayName) + { + 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.Network/expressRouteGateways/", false); + uri.AppendPath(expressRouteGatewayName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string expressRouteGatewayName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteLinksRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteLinksRestOperations.cs index d7cf09348f64..f722d6e0b13b 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteLinksRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteLinksRestOperations.cs @@ -37,6 +37,22 @@ public ExpressRouteLinksRestOperations(HttpPipeline pipeline, string application _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string expressRoutePortName, string linkName) + { + 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.Network/ExpressRoutePorts/", false); + uri.AppendPath(expressRoutePortName, true); + uri.AppendPath("/links/", false); + uri.AppendPath(linkName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string expressRoutePortName, string linkName) { var message = _pipeline.CreateMessage(); @@ -125,6 +141,21 @@ public Response Get(string subscriptionId, string resource } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string expressRoutePortName) + { + 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.Network/ExpressRoutePorts/", false); + uri.AppendPath(expressRoutePortName, true); + uri.AppendPath("/links", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string expressRoutePortName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,14 @@ public Response List(string subscriptionId, string r } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string expressRoutePortName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string expressRoutePortName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRoutePortAuthorizationsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRoutePortAuthorizationsRestOperations.cs index 53c93bab22cc..eefdfb1b440a 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRoutePortAuthorizationsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRoutePortAuthorizationsRestOperations.cs @@ -37,6 +37,22 @@ public ExpressRoutePortAuthorizationsRestOperations(HttpPipeline pipeline, strin _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string expressRoutePortName, string authorizationName) + { + 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.Network/expressRoutePorts/", false); + uri.AppendPath(expressRoutePortName, true); + uri.AppendPath("/authorizations/", false); + uri.AppendPath(authorizationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string expressRoutePortName, string authorizationName) { var message = _pipeline.CreateMessage(); @@ -115,6 +131,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string e } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string expressRoutePortName, string authorizationName) + { + 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.Network/expressRoutePorts/", false); + uri.AppendPath(expressRoutePortName, true); + uri.AppendPath("/authorizations/", false); + uri.AppendPath(authorizationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string expressRoutePortName, string authorizationName) { var message = _pipeline.CreateMessage(); @@ -203,6 +235,22 @@ public Response Get(string subscriptionId, st } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string expressRoutePortName, string authorizationName, ExpressRoutePortAuthorizationData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/expressRoutePorts/", false); + uri.AppendPath(expressRoutePortName, true); + uri.AppendPath("/authorizations/", false); + uri.AppendPath(authorizationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string expressRoutePortName, string authorizationName, ExpressRoutePortAuthorizationData data) { var message = _pipeline.CreateMessage(); @@ -287,6 +335,21 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string expressRoutePortName) + { + 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.Network/expressRoutePorts/", false); + uri.AppendPath(expressRoutePortName, true); + uri.AppendPath("/authorizations", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string expressRoutePortName) { var message = _pipeline.CreateMessage(); @@ -366,6 +429,14 @@ public Response List(string subscriptio } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string expressRoutePortName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string expressRoutePortName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRoutePortsLocationsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRoutePortsLocationsRestOperations.cs index da5000c487be..42844c2eab37 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRoutePortsLocationsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRoutePortsLocationsRestOperations.cs @@ -37,6 +37,17 @@ public ExpressRoutePortsLocationsRestOperations(HttpPipeline pipeline, string ap _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Network/ExpressRoutePortsLocations", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,18 @@ public Response List(string subscriptionId, } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string locationName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Network/ExpressRoutePortsLocations/", false); + uri.AppendPath(locationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string locationName) { var message = _pipeline.CreateMessage(); @@ -180,6 +203,14 @@ public Response Get(string subscriptionId, string } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRoutePortsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRoutePortsRestOperations.cs index aed683b616b8..f1b1829b2a8d 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRoutePortsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRoutePortsRestOperations.cs @@ -37,6 +37,20 @@ public ExpressRoutePortsRestOperations(HttpPipeline pipeline, string application _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string expressRoutePortName) + { + 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.Network/ExpressRoutePorts/", false); + uri.AppendPath(expressRoutePortName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string expressRoutePortName) { var message = _pipeline.CreateMessage(); @@ -109,6 +123,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string e } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string expressRoutePortName) + { + 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.Network/ExpressRoutePorts/", false); + uri.AppendPath(expressRoutePortName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string expressRoutePortName) { var message = _pipeline.CreateMessage(); @@ -191,6 +219,20 @@ public Response Get(string subscriptionId, string resource } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string expressRoutePortName, ExpressRoutePortData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/ExpressRoutePorts/", false); + uri.AppendPath(expressRoutePortName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string expressRoutePortName, ExpressRoutePortData data) { var message = _pipeline.CreateMessage(); @@ -269,6 +311,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateTagsRequestUri(string subscriptionId, string resourceGroupName, string expressRoutePortName, NetworkTagsObject networkTagsObject) + { + 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.Network/ExpressRoutePorts/", false); + uri.AppendPath(expressRoutePortName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateTagsRequest(string subscriptionId, string resourceGroupName, string expressRoutePortName, NetworkTagsObject networkTagsObject) { var message = _pipeline.CreateMessage(); @@ -355,6 +411,19 @@ public Response UpdateTags(string subscriptionId, string r } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.Network/ExpressRoutePorts", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -428,6 +497,17 @@ public Response ListByResourceGroup(string subscript } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Network/ExpressRoutePorts", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -495,6 +575,21 @@ public Response List(string subscriptionId, Cancella } } + internal RequestUriBuilder CreateGenerateLoaRequestUri(string subscriptionId, string resourceGroupName, string expressRoutePortName, GenerateExpressRoutePortsLoaContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/expressRoutePorts/", false); + uri.AppendPath(expressRoutePortName, true); + uri.AppendPath("/generateLoa", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGenerateLoaRequest(string subscriptionId, string resourceGroupName, string expressRoutePortName, GenerateExpressRoutePortsLoaContent content) { var message = _pipeline.CreateMessage(); @@ -582,6 +677,14 @@ public Response GenerateLoa(string subscript } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -654,6 +757,14 @@ public Response ListByResourceGroupNextPage(string n } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteProviderPortsLocationRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteProviderPortsLocationRestOperations.cs index 0a8adc8dbe04..3985ae0c632e 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteProviderPortsLocationRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteProviderPortsLocationRestOperations.cs @@ -37,6 +37,21 @@ public ExpressRouteProviderPortsLocationRestOperations(HttpPipeline pipeline, st _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Network/expressRouteProviderPorts", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string filter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteServiceProvidersRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteServiceProvidersRestOperations.cs index 374f84b56d92..225c5d486626 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteServiceProvidersRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteServiceProvidersRestOperations.cs @@ -37,6 +37,17 @@ public ExpressRouteServiceProvidersRestOperations(HttpPipeline pipeline, string _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Network/expressRouteServiceProviders", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,14 @@ public Response List(string subscriptionI } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPoliciesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPoliciesRestOperations.cs index 17af4befa85a..aeb4b1c25254 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPoliciesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPoliciesRestOperations.cs @@ -37,6 +37,20 @@ public FirewallPoliciesRestOperations(HttpPipeline pipeline, string applicationI _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string firewallPolicyName) + { + 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.Network/firewallPolicies/", false); + uri.AppendPath(firewallPolicyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string firewallPolicyName) { var message = _pipeline.CreateMessage(); @@ -109,6 +123,24 @@ public Response Delete(string subscriptionId, string resourceGroupName, string f } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string firewallPolicyName, string expand) + { + 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.Network/firewallPolicies/", false); + uri.AppendPath(firewallPolicyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string firewallPolicyName, string expand) { var message = _pipeline.CreateMessage(); @@ -197,6 +229,20 @@ public Response Get(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string firewallPolicyName, FirewallPolicyData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/firewallPolicies/", false); + uri.AppendPath(firewallPolicyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string firewallPolicyName, FirewallPolicyData data) { var message = _pipeline.CreateMessage(); @@ -275,6 +321,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateTagsRequestUri(string subscriptionId, string resourceGroupName, string firewallPolicyName, NetworkTagsObject networkTagsObject) + { + 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.Network/firewallPolicies/", false); + uri.AppendPath(firewallPolicyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateTagsRequest(string subscriptionId, string resourceGroupName, string firewallPolicyName, NetworkTagsObject networkTagsObject) { var message = _pipeline.CreateMessage(); @@ -361,6 +421,19 @@ public Response UpdateTags(string subscriptionId, string res } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName) + { + 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.Network/firewallPolicies", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -434,6 +507,17 @@ public Response List(string subscriptionId, string res } } + internal RequestUriBuilder CreateListAllRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Network/firewallPolicies", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListAllRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -501,6 +585,14 @@ public Response ListAll(string subscriptionId, Cancell } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -573,6 +665,14 @@ public Response ListNextPage(string nextLink, string s } } + internal RequestUriBuilder CreateListAllNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListAllNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPolicyIdpsSignaturesFilterValuesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPolicyIdpsSignaturesFilterValuesRestOperations.cs index 17d7f276d1cb..3e44a376eca9 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPolicyIdpsSignaturesFilterValuesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPolicyIdpsSignaturesFilterValuesRestOperations.cs @@ -37,6 +37,21 @@ public FirewallPolicyIdpsSignaturesFilterValuesRestOperations(HttpPipeline pipel _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string firewallPolicyName, SignatureOverridesFilterValuesQueryContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/firewallPolicies/", false); + uri.AppendPath(firewallPolicyName, true); + uri.AppendPath("/listIdpsFilterOptions", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string firewallPolicyName, SignatureOverridesFilterValuesQueryContent content) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPolicyIdpsSignaturesOverridesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPolicyIdpsSignaturesOverridesRestOperations.cs index 870774712143..95345573a391 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPolicyIdpsSignaturesOverridesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPolicyIdpsSignaturesOverridesRestOperations.cs @@ -37,6 +37,21 @@ public FirewallPolicyIdpsSignaturesOverridesRestOperations(HttpPipeline pipeline _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreatePatchRequestUri(string subscriptionId, string resourceGroupName, string firewallPolicyName, PolicySignaturesOverridesForIdpsData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/firewallPolicies/", false); + uri.AppendPath(firewallPolicyName, true); + uri.AppendPath("/signatureOverrides/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreatePatchRequest(string subscriptionId, string resourceGroupName, string firewallPolicyName, PolicySignaturesOverridesForIdpsData data) { var message = _pipeline.CreateMessage(); @@ -124,6 +139,21 @@ public Response Patch(string subscriptionI } } + internal RequestUriBuilder CreatePutRequestUri(string subscriptionId, string resourceGroupName, string firewallPolicyName, PolicySignaturesOverridesForIdpsData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/firewallPolicies/", false); + uri.AppendPath(firewallPolicyName, true); + uri.AppendPath("/signatureOverrides/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreatePutRequest(string subscriptionId, string resourceGroupName, string firewallPolicyName, PolicySignaturesOverridesForIdpsData data) { var message = _pipeline.CreateMessage(); @@ -211,6 +241,21 @@ public Response Put(string subscriptionId, } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string firewallPolicyName) + { + 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.Network/firewallPolicies/", false); + uri.AppendPath(firewallPolicyName, true); + uri.AppendPath("/signatureOverrides/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string firewallPolicyName) { var message = _pipeline.CreateMessage(); @@ -294,6 +339,21 @@ public Response Get(string subscriptionId, } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string firewallPolicyName) + { + 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.Network/firewallPolicies/", false); + uri.AppendPath(firewallPolicyName, true); + uri.AppendPath("/signatureOverrides", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string firewallPolicyName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPolicyIdpsSignaturesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPolicyIdpsSignaturesRestOperations.cs index 7f04a875a922..bb6c37202c37 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPolicyIdpsSignaturesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPolicyIdpsSignaturesRestOperations.cs @@ -37,6 +37,21 @@ public FirewallPolicyIdpsSignaturesRestOperations(HttpPipeline pipeline, string _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string firewallPolicyName, IdpsQueryContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/firewallPolicies/", false); + uri.AppendPath(firewallPolicyName, true); + uri.AppendPath("/listIdpsSignatures", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string firewallPolicyName, IdpsQueryContent content) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPolicyRuleCollectionGroupsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPolicyRuleCollectionGroupsRestOperations.cs index b27ae3f18ca5..9da1743c21cc 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPolicyRuleCollectionGroupsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPolicyRuleCollectionGroupsRestOperations.cs @@ -37,6 +37,22 @@ public FirewallPolicyRuleCollectionGroupsRestOperations(HttpPipeline pipeline, s _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string firewallPolicyName, string ruleCollectionGroupName) + { + 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.Network/firewallPolicies/", false); + uri.AppendPath(firewallPolicyName, true); + uri.AppendPath("/ruleCollectionGroups/", false); + uri.AppendPath(ruleCollectionGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string firewallPolicyName, string ruleCollectionGroupName) { var message = _pipeline.CreateMessage(); @@ -115,6 +131,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string f } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string firewallPolicyName, string ruleCollectionGroupName) + { + 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.Network/firewallPolicies/", false); + uri.AppendPath(firewallPolicyName, true); + uri.AppendPath("/ruleCollectionGroups/", false); + uri.AppendPath(ruleCollectionGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string firewallPolicyName, string ruleCollectionGroupName) { var message = _pipeline.CreateMessage(); @@ -203,6 +235,22 @@ public Response Get(string subscriptionId } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string firewallPolicyName, string ruleCollectionGroupName, FirewallPolicyRuleCollectionGroupData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/firewallPolicies/", false); + uri.AppendPath(firewallPolicyName, true); + uri.AppendPath("/ruleCollectionGroups/", false); + uri.AppendPath(ruleCollectionGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string firewallPolicyName, string ruleCollectionGroupName, FirewallPolicyRuleCollectionGroupData data) { var message = _pipeline.CreateMessage(); @@ -287,6 +335,21 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string firewallPolicyName) + { + 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.Network/firewallPolicies/", false); + uri.AppendPath(firewallPolicyName, true); + uri.AppendPath("/ruleCollectionGroups", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string firewallPolicyName) { var message = _pipeline.CreateMessage(); @@ -366,6 +429,14 @@ public Response List(string subscri } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string firewallPolicyName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string firewallPolicyName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FlowLogsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FlowLogsRestOperations.cs index 3c56ed7f51dd..85c55c91e7ee 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FlowLogsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FlowLogsRestOperations.cs @@ -37,6 +37,22 @@ public FlowLogsRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string networkWatcherName, string flowLogName, FlowLogData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkWatchers/", false); + uri.AppendPath(networkWatcherName, true); + uri.AppendPath("/flowLogs/", false); + uri.AppendPath(flowLogName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string networkWatcherName, string flowLogName, FlowLogData data) { var message = _pipeline.CreateMessage(); @@ -121,6 +137,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateTagsRequestUri(string subscriptionId, string resourceGroupName, string networkWatcherName, string flowLogName, NetworkTagsObject networkTagsObject) + { + 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.Network/networkWatchers/", false); + uri.AppendPath(networkWatcherName, true); + uri.AppendPath("/flowLogs/", false); + uri.AppendPath(flowLogName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateTagsRequest(string subscriptionId, string resourceGroupName, string networkWatcherName, string flowLogName, NetworkTagsObject networkTagsObject) { var message = _pipeline.CreateMessage(); @@ -213,6 +245,22 @@ public Response UpdateTags(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string networkWatcherName, string flowLogName) + { + 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.Network/networkWatchers/", false); + uri.AppendPath(networkWatcherName, true); + uri.AppendPath("/flowLogs/", false); + uri.AppendPath(flowLogName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string networkWatcherName, string flowLogName) { var message = _pipeline.CreateMessage(); @@ -301,6 +349,22 @@ public Response Get(string subscriptionId, string resourceGroupName } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string networkWatcherName, string flowLogName) + { + 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.Network/networkWatchers/", false); + uri.AppendPath(networkWatcherName, true); + uri.AppendPath("/flowLogs/", false); + uri.AppendPath(flowLogName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string networkWatcherName, string flowLogName) { var message = _pipeline.CreateMessage(); @@ -377,6 +441,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string n } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string networkWatcherName) + { + 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.Network/networkWatchers/", false); + uri.AppendPath(networkWatcherName, true); + uri.AppendPath("/flowLogs", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string networkWatcherName) { var message = _pipeline.CreateMessage(); @@ -456,6 +535,14 @@ public Response List(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string networkWatcherName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string networkWatcherName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/HubRouteTablesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/HubRouteTablesRestOperations.cs index bfc37c35e5d3..62dc77f5af61 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/HubRouteTablesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/HubRouteTablesRestOperations.cs @@ -37,6 +37,22 @@ public HubRouteTablesRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string virtualHubName, string routeTableName, HubRouteTableData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/virtualHubs/", false); + uri.AppendPath(virtualHubName, true); + uri.AppendPath("/hubRouteTables/", false); + uri.AppendPath(routeTableName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string virtualHubName, string routeTableName, HubRouteTableData data) { var message = _pipeline.CreateMessage(); @@ -121,6 +137,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string virtualHubName, string routeTableName) + { + 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.Network/virtualHubs/", false); + uri.AppendPath(virtualHubName, true); + uri.AppendPath("/hubRouteTables/", false); + uri.AppendPath(routeTableName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string virtualHubName, string routeTableName) { var message = _pipeline.CreateMessage(); @@ -209,6 +241,22 @@ public Response Get(string subscriptionId, string resourceGro } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string virtualHubName, string routeTableName) + { + 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.Network/virtualHubs/", false); + uri.AppendPath(virtualHubName, true); + uri.AppendPath("/hubRouteTables/", false); + uri.AppendPath(routeTableName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string virtualHubName, string routeTableName) { var message = _pipeline.CreateMessage(); @@ -287,6 +335,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string v } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string virtualHubName) + { + 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.Network/virtualHubs/", false); + uri.AppendPath(virtualHubName, true); + uri.AppendPath("/hubRouteTables", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string virtualHubName) { var message = _pipeline.CreateMessage(); @@ -366,6 +429,14 @@ public Response List(string subscriptionId, string res } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string virtualHubName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string virtualHubName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/HubVirtualNetworkConnectionsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/HubVirtualNetworkConnectionsRestOperations.cs index 0171787b3597..f6f24e8b3edf 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/HubVirtualNetworkConnectionsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/HubVirtualNetworkConnectionsRestOperations.cs @@ -37,6 +37,22 @@ public HubVirtualNetworkConnectionsRestOperations(HttpPipeline pipeline, string _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string virtualHubName, string connectionName, HubVirtualNetworkConnectionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/virtualHubs/", false); + uri.AppendPath(virtualHubName, true); + uri.AppendPath("/hubVirtualNetworkConnections/", false); + uri.AppendPath(connectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string virtualHubName, string connectionName, HubVirtualNetworkConnectionData data) { var message = _pipeline.CreateMessage(); @@ -121,6 +137,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string virtualHubName, string connectionName) + { + 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.Network/virtualHubs/", false); + uri.AppendPath(virtualHubName, true); + uri.AppendPath("/hubVirtualNetworkConnections/", false); + uri.AppendPath(connectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string virtualHubName, string connectionName) { var message = _pipeline.CreateMessage(); @@ -199,6 +231,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string v } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string virtualHubName, string connectionName) + { + 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.Network/virtualHubs/", false); + uri.AppendPath(virtualHubName, true); + uri.AppendPath("/hubVirtualNetworkConnections/", false); + uri.AppendPath(connectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string virtualHubName, string connectionName) { var message = _pipeline.CreateMessage(); @@ -287,6 +335,21 @@ public Response Get(string subscriptionId, stri } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string virtualHubName) + { + 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.Network/virtualHubs/", false); + uri.AppendPath(virtualHubName, true); + uri.AppendPath("/hubVirtualNetworkConnections", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string virtualHubName) { var message = _pipeline.CreateMessage(); @@ -366,6 +429,14 @@ public Response List(string subscription } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string virtualHubName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string virtualHubName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/InboundNatRulesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/InboundNatRulesRestOperations.cs index 52aa47058daa..b9e71b29eb77 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/InboundNatRulesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/InboundNatRulesRestOperations.cs @@ -37,6 +37,21 @@ public InboundNatRulesRestOperations(HttpPipeline pipeline, string applicationId _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string loadBalancerName) + { + 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.Network/loadBalancers/", false); + uri.AppendPath(loadBalancerName, true); + uri.AppendPath("/inboundNatRules", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string loadBalancerName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response List(string subscriptionId, string res } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string loadBalancerName, string inboundNatRuleName) + { + 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.Network/loadBalancers/", false); + uri.AppendPath(loadBalancerName, true); + uri.AppendPath("/inboundNatRules/", false); + uri.AppendPath(inboundNatRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string loadBalancerName, string inboundNatRuleName) { var message = _pipeline.CreateMessage(); @@ -194,6 +225,26 @@ public Response Delete(string subscriptionId, string resourceGroupName, string l } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string loadBalancerName, string inboundNatRuleName, string expand) + { + 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.Network/loadBalancers/", false); + uri.AppendPath(loadBalancerName, true); + uri.AppendPath("/inboundNatRules/", false); + uri.AppendPath(inboundNatRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string loadBalancerName, string inboundNatRuleName, string expand) { var message = _pipeline.CreateMessage(); @@ -288,6 +339,22 @@ public Response Get(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string loadBalancerName, string inboundNatRuleName, InboundNatRuleData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/loadBalancers/", false); + uri.AppendPath(loadBalancerName, true); + uri.AppendPath("/inboundNatRules/", false); + uri.AppendPath(inboundNatRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string loadBalancerName, string inboundNatRuleName, InboundNatRuleData data) { var message = _pipeline.CreateMessage(); @@ -372,6 +439,14 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string loadBalancerName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string loadBalancerName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/InboundSecurityRuleRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/InboundSecurityRuleRestOperations.cs index 5dc51867e5b7..e938075b3b54 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/InboundSecurityRuleRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/InboundSecurityRuleRestOperations.cs @@ -36,6 +36,22 @@ public InboundSecurityRuleRestOperations(HttpPipeline pipeline, string applicati _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string networkVirtualApplianceName, string ruleCollectionName, InboundSecurityRule inboundSecurityRule) + { + 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.Network/networkVirtualAppliances/", false); + uri.AppendPath(networkVirtualApplianceName, true); + uri.AppendPath("/inboundSecurityRules/", false); + uri.AppendPath(ruleCollectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string networkVirtualApplianceName, string ruleCollectionName, InboundSecurityRule inboundSecurityRule) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/IpAllocationsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/IpAllocationsRestOperations.cs index 3d941ffc6488..36215827fee5 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/IpAllocationsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/IpAllocationsRestOperations.cs @@ -37,6 +37,20 @@ public IpAllocationsRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string ipAllocationName) + { + 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.Network/IpAllocations/", false); + uri.AppendPath(ipAllocationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string ipAllocationName) { var message = _pipeline.CreateMessage(); @@ -109,6 +123,24 @@ public Response Delete(string subscriptionId, string resourceGroupName, string i } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string ipAllocationName, string expand) + { + 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.Network/IpAllocations/", false); + uri.AppendPath(ipAllocationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string ipAllocationName, string expand) { var message = _pipeline.CreateMessage(); @@ -197,6 +229,20 @@ public Response Get(string subscriptionId, string resourceGrou } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string ipAllocationName, IPAllocationData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/IpAllocations/", false); + uri.AppendPath(ipAllocationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string ipAllocationName, IPAllocationData data) { var message = _pipeline.CreateMessage(); @@ -275,6 +321,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateTagsRequestUri(string subscriptionId, string resourceGroupName, string ipAllocationName, NetworkTagsObject networkTagsObject) + { + 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.Network/IpAllocations/", false); + uri.AppendPath(ipAllocationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateTagsRequest(string subscriptionId, string resourceGroupName, string ipAllocationName, NetworkTagsObject networkTagsObject) { var message = _pipeline.CreateMessage(); @@ -361,6 +421,17 @@ public Response UpdateTags(string subscriptionId, string resou } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Network/IpAllocations", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -428,6 +499,19 @@ public Response List(string subscriptionId, Cance } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.Network/IpAllocations", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -501,6 +585,14 @@ public Response ListByResourceGroup(string subscr } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -569,6 +661,14 @@ public Response ListNextPage(string nextLink, str } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/IpGroupsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/IpGroupsRestOperations.cs index b7d04bd49b93..51115442d15a 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/IpGroupsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/IpGroupsRestOperations.cs @@ -37,6 +37,24 @@ public IpGroupsRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string ipGroupsName, string expand) + { + 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.Network/ipGroups/", false); + uri.AppendPath(ipGroupsName, true); + uri.AppendQuery("api-version", _apiVersion, true); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string ipGroupsName, string expand) { var message = _pipeline.CreateMessage(); @@ -125,6 +143,20 @@ public Response Get(string subscriptionId, string resourceGroupName } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string ipGroupsName, IPGroupData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/ipGroups/", false); + uri.AppendPath(ipGroupsName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string ipGroupsName, IPGroupData data) { var message = _pipeline.CreateMessage(); @@ -203,6 +235,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateGroupsRequestUri(string subscriptionId, string resourceGroupName, string ipGroupsName, NetworkTagsObject networkTagsObject) + { + 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.Network/ipGroups/", false); + uri.AppendPath(ipGroupsName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateGroupsRequest(string subscriptionId, string resourceGroupName, string ipGroupsName, NetworkTagsObject networkTagsObject) { var message = _pipeline.CreateMessage(); @@ -289,6 +335,20 @@ public Response UpdateGroups(string subscriptionId, string resource } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string ipGroupsName) + { + 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.Network/ipGroups/", false); + uri.AppendPath(ipGroupsName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string ipGroupsName) { var message = _pipeline.CreateMessage(); @@ -361,6 +421,19 @@ public Response Delete(string subscriptionId, string resourceGroupName, string i } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.Network/ipGroups", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -434,6 +507,17 @@ public Response ListByResourceGroup(string subscriptionId, st } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Network/ipGroups", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -501,6 +585,14 @@ public Response List(string subscriptionId, CancellationToken } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -573,6 +665,14 @@ public Response ListByResourceGroupNextPage(string nextLink, } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancerBackendAddressPoolsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancerBackendAddressPoolsRestOperations.cs index bcc4c2cdaae2..149a7bd26beb 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancerBackendAddressPoolsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancerBackendAddressPoolsRestOperations.cs @@ -37,6 +37,21 @@ public LoadBalancerBackendAddressPoolsRestOperations(HttpPipeline pipeline, stri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string loadBalancerName) + { + 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.Network/loadBalancers/", false); + uri.AppendPath(loadBalancerName, true); + uri.AppendPath("/backendAddressPools", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string loadBalancerName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response List(string subscripti } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string loadBalancerName, string backendAddressPoolName) + { + 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.Network/loadBalancers/", false); + uri.AppendPath(loadBalancerName, true); + uri.AppendPath("/backendAddressPools/", false); + uri.AppendPath(backendAddressPoolName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string loadBalancerName, string backendAddressPoolName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscriptionId, string resour } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string loadBalancerName, string backendAddressPoolName, BackendAddressPoolData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/loadBalancers/", false); + uri.AppendPath(loadBalancerName, true); + uri.AppendPath("/backendAddressPools/", false); + uri.AppendPath(backendAddressPoolName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string loadBalancerName, string backendAddressPoolName, BackendAddressPoolData data) { var message = _pipeline.CreateMessage(); @@ -288,6 +335,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string loadBalancerName, string backendAddressPoolName) + { + 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.Network/loadBalancers/", false); + uri.AppendPath(loadBalancerName, true); + uri.AppendPath("/backendAddressPools/", false); + uri.AppendPath(backendAddressPoolName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string loadBalancerName, string backendAddressPoolName) { var message = _pipeline.CreateMessage(); @@ -366,6 +429,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string l } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string loadBalancerName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string loadBalancerName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancerFrontendIPConfigurationsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancerFrontendIPConfigurationsRestOperations.cs index c49dba3e2aa9..35860feeb5fe 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancerFrontendIPConfigurationsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancerFrontendIPConfigurationsRestOperations.cs @@ -37,6 +37,21 @@ public LoadBalancerFrontendIPConfigurationsRestOperations(HttpPipeline pipeline, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string loadBalancerName) + { + 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.Network/loadBalancers/", false); + uri.AppendPath(loadBalancerName, true); + uri.AppendPath("/frontendIPConfigurations", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string loadBalancerName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response List(string subsc } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string loadBalancerName, string frontendIPConfigurationName) + { + 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.Network/loadBalancers/", false); + uri.AppendPath(loadBalancerName, true); + uri.AppendPath("/frontendIPConfigurations/", false); + uri.AppendPath(frontendIPConfigurationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string loadBalancerName, string frontendIPConfigurationName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,14 @@ public Response Get(string subscriptionId, string r } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string loadBalancerName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string loadBalancerName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancerLoadBalancingRulesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancerLoadBalancingRulesRestOperations.cs index 7529d9a281b0..3b34c5e4191a 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancerLoadBalancingRulesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancerLoadBalancingRulesRestOperations.cs @@ -37,6 +37,21 @@ public LoadBalancerLoadBalancingRulesRestOperations(HttpPipeline pipeline, strin _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string loadBalancerName) + { + 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.Network/loadBalancers/", false); + uri.AppendPath(loadBalancerName, true); + uri.AppendPath("/loadBalancingRules", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string loadBalancerName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response List(string subscriptio } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string loadBalancerName, string loadBalancingRuleName) + { + 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.Network/loadBalancers/", false); + uri.AppendPath(loadBalancerName, true); + uri.AppendPath("/loadBalancingRules/", false); + uri.AppendPath(loadBalancingRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string loadBalancerName, string loadBalancingRuleName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,14 @@ public Response Get(string subscriptionId, string resourc } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string loadBalancerName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string loadBalancerName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancerNetworkInterfacesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancerNetworkInterfacesRestOperations.cs index 0977d5039af3..3f4a52707bb1 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancerNetworkInterfacesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancerNetworkInterfacesRestOperations.cs @@ -37,6 +37,21 @@ public LoadBalancerNetworkInterfacesRestOperations(HttpPipeline pipeline, string _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string loadBalancerName) + { + 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.Network/loadBalancers/", false); + uri.AppendPath(loadBalancerName, true); + uri.AppendPath("/networkInterfaces", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string loadBalancerName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,14 @@ public Response List(string subscriptionId, string r } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string loadBalancerName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string loadBalancerName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancerOutboundRulesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancerOutboundRulesRestOperations.cs index b33a1a25ba74..503cc1b6fd6d 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancerOutboundRulesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancerOutboundRulesRestOperations.cs @@ -37,6 +37,21 @@ public LoadBalancerOutboundRulesRestOperations(HttpPipeline pipeline, string app _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string loadBalancerName) + { + 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.Network/loadBalancers/", false); + uri.AppendPath(loadBalancerName, true); + uri.AppendPath("/outboundRules", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string loadBalancerName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response List(string subscriptionId, } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string loadBalancerName, string outboundRuleName) + { + 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.Network/loadBalancers/", false); + uri.AppendPath(loadBalancerName, true); + uri.AppendPath("/outboundRules/", false); + uri.AppendPath(outboundRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string loadBalancerName, string outboundRuleName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,14 @@ public Response Get(string subscriptionId, string resourceGrou } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string loadBalancerName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string loadBalancerName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancerProbesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancerProbesRestOperations.cs index 9c5245932336..9511813f31f8 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancerProbesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancerProbesRestOperations.cs @@ -37,6 +37,21 @@ public LoadBalancerProbesRestOperations(HttpPipeline pipeline, string applicatio _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string loadBalancerName) + { + 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.Network/loadBalancers/", false); + uri.AppendPath(loadBalancerName, true); + uri.AppendPath("/probes", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string loadBalancerName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response List(string subscriptionId, string } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string loadBalancerName, string probeName) + { + 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.Network/loadBalancers/", false); + uri.AppendPath(loadBalancerName, true); + uri.AppendPath("/probes/", false); + uri.AppendPath(probeName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string loadBalancerName, string probeName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,14 @@ public Response Get(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string loadBalancerName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string loadBalancerName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancersRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancersRestOperations.cs index 160bb16befe9..4e25edb6e537 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancersRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancersRestOperations.cs @@ -37,6 +37,20 @@ public LoadBalancersRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string loadBalancerName) + { + 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.Network/loadBalancers/", false); + uri.AppendPath(loadBalancerName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string loadBalancerName) { var message = _pipeline.CreateMessage(); @@ -109,6 +123,24 @@ public Response Delete(string subscriptionId, string resourceGroupName, string l } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string loadBalancerName, string expand) + { + 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.Network/loadBalancers/", false); + uri.AppendPath(loadBalancerName, true); + uri.AppendQuery("api-version", _apiVersion, true); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string loadBalancerName, string expand) { var message = _pipeline.CreateMessage(); @@ -197,6 +229,20 @@ public Response Get(string subscriptionId, string resourceGrou } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string loadBalancerName, LoadBalancerData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/loadBalancers/", false); + uri.AppendPath(loadBalancerName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string loadBalancerName, LoadBalancerData data) { var message = _pipeline.CreateMessage(); @@ -275,6 +321,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateTagsRequestUri(string subscriptionId, string resourceGroupName, string loadBalancerName, NetworkTagsObject networkTagsObject) + { + 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.Network/loadBalancers/", false); + uri.AppendPath(loadBalancerName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateTagsRequest(string subscriptionId, string resourceGroupName, string loadBalancerName, NetworkTagsObject networkTagsObject) { var message = _pipeline.CreateMessage(); @@ -361,6 +421,17 @@ public Response UpdateTags(string subscriptionId, string resou } } + internal RequestUriBuilder CreateListAllRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Network/loadBalancers", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListAllRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -428,6 +499,19 @@ public Response ListAll(string subscriptionId, Cancellat } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName) + { + 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.Network/loadBalancers", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -501,6 +585,19 @@ public Response List(string subscriptionId, string resou } } + internal RequestUriBuilder CreateSwapPublicIPAddressesRequestUri(string subscriptionId, AzureLocation location, LoadBalancerVipSwapContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Network/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/setLoadBalancerFrontendPublicIpAddresses", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateSwapPublicIPAddressesRequest(string subscriptionId, AzureLocation location, LoadBalancerVipSwapContent content) { var message = _pipeline.CreateMessage(); @@ -572,6 +669,23 @@ public Response SwapPublicIPAddresses(string subscriptionId, AzureLocation locat } } + internal RequestUriBuilder CreateListInboundNatRulePortMappingsRequestUri(string subscriptionId, string groupName, string loadBalancerName, string backendPoolName, QueryInboundNatRulePortMappingContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(groupName, true); + uri.AppendPath("/providers/Microsoft.Network/loadBalancers/", false); + uri.AppendPath(loadBalancerName, true); + uri.AppendPath("/backendAddressPools/", false); + uri.AppendPath(backendPoolName, true); + uri.AppendPath("/queryInboundNatRulePortMapping", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListInboundNatRulePortMappingsRequest(string subscriptionId, string groupName, string loadBalancerName, string backendPoolName, QueryInboundNatRulePortMappingContent content) { var message = _pipeline.CreateMessage(); @@ -657,6 +771,21 @@ public Response ListInboundNatRulePortMappings(string subscriptionId, string gro } } + internal RequestUriBuilder CreateMigrateToIPBasedRequestUri(string subscriptionId, string groupName, string loadBalancerName, MigrateLoadBalancerToIPBasedContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(groupName, true); + uri.AppendPath("/providers/Microsoft.Network/loadBalancers/", false); + uri.AppendPath(loadBalancerName, true); + uri.AppendPath("/migrateToIpBased", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateMigrateToIPBasedRequest(string subscriptionId, string groupName, string loadBalancerName, MigrateLoadBalancerToIPBasedContent content) { var message = _pipeline.CreateMessage(); @@ -745,6 +874,14 @@ public Response MigrateToIPBased(string subs } } + internal RequestUriBuilder CreateListAllNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListAllNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -813,6 +950,14 @@ public Response ListAllNextPage(string nextLink, string } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LocalNetworkGatewaysRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LocalNetworkGatewaysRestOperations.cs index 1c74db5d818a..626e398a4e7e 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LocalNetworkGatewaysRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LocalNetworkGatewaysRestOperations.cs @@ -37,6 +37,20 @@ public LocalNetworkGatewaysRestOperations(HttpPipeline pipeline, string applicat _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string localNetworkGatewayName, LocalNetworkGatewayData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/localNetworkGateways/", false); + uri.AppendPath(localNetworkGatewayName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string localNetworkGatewayName, LocalNetworkGatewayData data) { var message = _pipeline.CreateMessage(); @@ -115,6 +129,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string localNetworkGatewayName) + { + 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.Network/localNetworkGateways/", false); + uri.AppendPath(localNetworkGatewayName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string localNetworkGatewayName) { var message = _pipeline.CreateMessage(); @@ -197,6 +225,20 @@ public Response Get(string subscriptionId, string resou } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string localNetworkGatewayName) + { + 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.Network/localNetworkGateways/", false); + uri.AppendPath(localNetworkGatewayName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string localNetworkGatewayName) { var message = _pipeline.CreateMessage(); @@ -269,6 +311,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string l } } + internal RequestUriBuilder CreateUpdateTagsRequestUri(string subscriptionId, string resourceGroupName, string localNetworkGatewayName, NetworkTagsObject networkTagsObject) + { + 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.Network/localNetworkGateways/", false); + uri.AppendPath(localNetworkGatewayName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateTagsRequest(string subscriptionId, string resourceGroupName, string localNetworkGatewayName, NetworkTagsObject networkTagsObject) { var message = _pipeline.CreateMessage(); @@ -355,6 +411,19 @@ public Response UpdateTags(string subscriptionId, strin } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName) + { + 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.Network/localNetworkGateways", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -428,6 +497,14 @@ public Response List(string subscriptionId, strin } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ManagementGroupNetworkManagerConnectionsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ManagementGroupNetworkManagerConnectionsRestOperations.cs index 3d1d270f5e4b..cf1054107e3b 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ManagementGroupNetworkManagerConnectionsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ManagementGroupNetworkManagerConnectionsRestOperations.cs @@ -37,6 +37,18 @@ public ManagementGroupNetworkManagerConnectionsRestOperations(HttpPipeline pipel _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string managementGroupId, string networkManagerConnectionName, NetworkManagerConnectionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Management/managementGroups/", false); + uri.AppendPath(managementGroupId, true); + uri.AppendPath("/providers/Microsoft.Network/networkManagerConnections/", false); + uri.AppendPath(networkManagerConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string managementGroupId, string networkManagerConnectionName, NetworkManagerConnectionData data) { var message = _pipeline.CreateMessage(); @@ -119,6 +131,18 @@ public Response CreateOrUpdate(string managementGr } } + internal RequestUriBuilder CreateGetRequestUri(string managementGroupId, string networkManagerConnectionName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Management/managementGroups/", false); + uri.AppendPath(managementGroupId, true); + uri.AppendPath("/providers/Microsoft.Network/networkManagerConnections/", false); + uri.AppendPath(networkManagerConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string managementGroupId, string networkManagerConnectionName) { var message = _pipeline.CreateMessage(); @@ -195,6 +219,18 @@ public Response Get(string managementGroupId, stri } } + internal RequestUriBuilder CreateDeleteRequestUri(string managementGroupId, string networkManagerConnectionName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Management/managementGroups/", false); + uri.AppendPath(managementGroupId, true); + uri.AppendPath("/providers/Microsoft.Network/networkManagerConnections/", false); + uri.AppendPath(networkManagerConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string managementGroupId, string networkManagerConnectionName) { var message = _pipeline.CreateMessage(); @@ -259,6 +295,25 @@ public Response Delete(string managementGroupId, string networkManagerConnection } } + internal RequestUriBuilder CreateListRequestUri(string managementGroupId, int? top, string skipToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Management/managementGroups/", false); + uri.AppendPath(managementGroupId, true); + uri.AppendPath("/providers/Microsoft.Network/networkManagerConnections", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string managementGroupId, int? top, string skipToken) { var message = _pipeline.CreateMessage(); @@ -338,6 +393,14 @@ public Response List(string managementGroupI } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string managementGroupId, int? top, string skipToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string managementGroupId, int? top, string skipToken) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NatGatewaysRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NatGatewaysRestOperations.cs index f5e8cfea713e..428339b72601 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NatGatewaysRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NatGatewaysRestOperations.cs @@ -37,6 +37,20 @@ public NatGatewaysRestOperations(HttpPipeline pipeline, string applicationId, Ur _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string natGatewayName) + { + 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.Network/natGateways/", false); + uri.AppendPath(natGatewayName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string natGatewayName) { var message = _pipeline.CreateMessage(); @@ -109,6 +123,24 @@ public Response Delete(string subscriptionId, string resourceGroupName, string n } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string natGatewayName, string expand) + { + 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.Network/natGateways/", false); + uri.AppendPath(natGatewayName, true); + uri.AppendQuery("api-version", _apiVersion, true); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string natGatewayName, string expand) { var message = _pipeline.CreateMessage(); @@ -197,6 +229,20 @@ public Response Get(string subscriptionId, string resourceGroupN } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string natGatewayName, NatGatewayData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/natGateways/", false); + uri.AppendPath(natGatewayName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string natGatewayName, NatGatewayData data) { var message = _pipeline.CreateMessage(); @@ -277,6 +323,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateTagsRequestUri(string subscriptionId, string resourceGroupName, string natGatewayName, NetworkTagsObject networkTagsObject) + { + 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.Network/natGateways/", false); + uri.AppendPath(natGatewayName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateTagsRequest(string subscriptionId, string resourceGroupName, string natGatewayName, NetworkTagsObject networkTagsObject) { var message = _pipeline.CreateMessage(); @@ -363,6 +423,17 @@ public Response UpdateTags(string subscriptionId, string resourc } } + internal RequestUriBuilder CreateListAllRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Network/natGateways", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListAllRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -430,6 +501,19 @@ public Response ListAll(string subscriptionId, Cancellatio } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName) + { + 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.Network/natGateways", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -503,6 +587,14 @@ public Response List(string subscriptionId, string resourc } } + internal RequestUriBuilder CreateListAllNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListAllNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -571,6 +663,14 @@ public Response ListAllNextPage(string nextLink, string su } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NatRulesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NatRulesRestOperations.cs index c1f70cd598b1..eb2efb27a48f 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NatRulesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NatRulesRestOperations.cs @@ -37,6 +37,22 @@ public NatRulesRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string gatewayName, string natRuleName) + { + 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.Network/vpnGateways/", false); + uri.AppendPath(gatewayName, true); + uri.AppendPath("/natRules/", false); + uri.AppendPath(natRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string gatewayName, string natRuleName) { var message = _pipeline.CreateMessage(); @@ -125,6 +141,22 @@ public Response Get(string subscriptionId, string resourc } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string gatewayName, string natRuleName, VpnGatewayNatRuleData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/vpnGateways/", false); + uri.AppendPath(gatewayName, true); + uri.AppendPath("/natRules/", false); + uri.AppendPath(natRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string gatewayName, string natRuleName, VpnGatewayNatRuleData data) { var message = _pipeline.CreateMessage(); @@ -209,6 +241,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string gatewayName, string natRuleName) + { + 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.Network/vpnGateways/", false); + uri.AppendPath(gatewayName, true); + uri.AppendPath("/natRules/", false); + uri.AppendPath(natRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string gatewayName, string natRuleName) { var message = _pipeline.CreateMessage(); @@ -287,6 +335,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string g } } + internal RequestUriBuilder CreateListByVpnGatewayRequestUri(string subscriptionId, string resourceGroupName, string gatewayName) + { + 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.Network/vpnGateways/", false); + uri.AppendPath(gatewayName, true); + uri.AppendPath("/natRules", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByVpnGatewayRequest(string subscriptionId, string resourceGroupName, string gatewayName) { var message = _pipeline.CreateMessage(); @@ -366,6 +429,14 @@ public Response ListByVpnGateway(string subscripti } } + internal RequestUriBuilder CreateListByVpnGatewayNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string gatewayName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByVpnGatewayNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string gatewayName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkGroupsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkGroupsRestOperations.cs index 031fee5498e7..00b81b1fd581 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkGroupsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkGroupsRestOperations.cs @@ -37,6 +37,22 @@ public NetworkGroupsRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string networkManagerName, string networkGroupName) + { + 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.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/networkGroups/", false); + uri.AppendPath(networkGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string networkManagerName, string networkGroupName) { var message = _pipeline.CreateMessage(); @@ -125,6 +141,22 @@ public Response Get(string subscriptionId, string resourceGrou } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string networkManagerName, string networkGroupName, NetworkGroupData data, string ifMatch) + { + 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.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/networkGroups/", false); + uri.AppendPath(networkGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string networkManagerName, string networkGroupName, NetworkGroupData data, string ifMatch) { var message = _pipeline.CreateMessage(); @@ -225,6 +257,26 @@ public Response CreateOrUpdate(string subscriptionId, string r } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string networkManagerName, string networkGroupName, bool? force) + { + 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.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/networkGroups/", false); + uri.AppendPath(networkGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + if (force != null) + { + uri.AppendQuery("force", force.Value, true); + } + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string networkManagerName, string networkGroupName, bool? force) { var message = _pipeline.CreateMessage(); @@ -309,6 +361,29 @@ public Response Delete(string subscriptionId, string resourceGroupName, string n } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string networkManagerName, int? top, string skipToken) + { + 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.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/networkGroups", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string networkManagerName, int? top, string skipToken) { var message = _pipeline.CreateMessage(); @@ -400,6 +475,14 @@ public Response List(string subscriptionId, string resou } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string networkManagerName, int? top, string skipToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string networkManagerName, int? top, string skipToken) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkInterfaceIPConfigurationsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkInterfaceIPConfigurationsRestOperations.cs index 9c44fbefeac6..9385effb701c 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkInterfaceIPConfigurationsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkInterfaceIPConfigurationsRestOperations.cs @@ -37,6 +37,21 @@ public NetworkInterfaceIPConfigurationsRestOperations(HttpPipeline pipeline, str _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string networkInterfaceName) + { + 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.Network/networkInterfaces/", false); + uri.AppendPath(networkInterfaceName, true); + uri.AppendPath("/ipConfigurations", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string networkInterfaceName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response List(string subscript } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string networkInterfaceName, string ipConfigurationName) + { + 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.Network/networkInterfaces/", false); + uri.AppendPath(networkInterfaceName, true); + uri.AppendPath("/ipConfigurations/", false); + uri.AppendPath(ipConfigurationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string networkInterfaceName, string ipConfigurationName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,14 @@ public Response Get(string subscriptionId, } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string networkInterfaceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string networkInterfaceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkInterfaceLoadBalancersRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkInterfaceLoadBalancersRestOperations.cs index ec3464e551bc..bb633e86d2ce 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkInterfaceLoadBalancersRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkInterfaceLoadBalancersRestOperations.cs @@ -37,6 +37,21 @@ public NetworkInterfaceLoadBalancersRestOperations(HttpPipeline pipeline, string _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string networkInterfaceName) + { + 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.Network/networkInterfaces/", false); + uri.AppendPath(networkInterfaceName, true); + uri.AppendPath("/loadBalancers", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string networkInterfaceName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,14 @@ public Response List(string subscription } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string networkInterfaceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string networkInterfaceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkInterfaceTapConfigurationsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkInterfaceTapConfigurationsRestOperations.cs index d02c9799a706..8993858516b5 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkInterfaceTapConfigurationsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkInterfaceTapConfigurationsRestOperations.cs @@ -37,6 +37,22 @@ public NetworkInterfaceTapConfigurationsRestOperations(HttpPipeline pipeline, st _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string networkInterfaceName, string tapConfigurationName) + { + 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.Network/networkInterfaces/", false); + uri.AppendPath(networkInterfaceName, true); + uri.AppendPath("/tapConfigurations/", false); + uri.AppendPath(tapConfigurationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string networkInterfaceName, string tapConfigurationName) { var message = _pipeline.CreateMessage(); @@ -115,6 +131,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string n } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string networkInterfaceName, string tapConfigurationName) + { + 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.Network/networkInterfaces/", false); + uri.AppendPath(networkInterfaceName, true); + uri.AppendPath("/tapConfigurations/", false); + uri.AppendPath(tapConfigurationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string networkInterfaceName, string tapConfigurationName) { var message = _pipeline.CreateMessage(); @@ -203,6 +235,22 @@ public Response Get(string subscriptionId, } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string networkInterfaceName, string tapConfigurationName, NetworkInterfaceTapConfigurationData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkInterfaces/", false); + uri.AppendPath(networkInterfaceName, true); + uri.AppendPath("/tapConfigurations/", false); + uri.AppendPath(tapConfigurationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string networkInterfaceName, string tapConfigurationName, NetworkInterfaceTapConfigurationData data) { var message = _pipeline.CreateMessage(); @@ -287,6 +335,21 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string networkInterfaceName) + { + 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.Network/networkInterfaces/", false); + uri.AppendPath(networkInterfaceName, true); + uri.AppendPath("/tapConfigurations", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string networkInterfaceName) { var message = _pipeline.CreateMessage(); @@ -366,6 +429,14 @@ public Response List(string subscrip } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string networkInterfaceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string networkInterfaceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkInterfacesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkInterfacesRestOperations.cs index cf83256ded85..99ddd3f41fab 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkInterfacesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkInterfacesRestOperations.cs @@ -37,6 +37,20 @@ public NetworkInterfacesRestOperations(HttpPipeline pipeline, string application _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string networkInterfaceName) + { + 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.Network/networkInterfaces/", false); + uri.AppendPath(networkInterfaceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string networkInterfaceName) { var message = _pipeline.CreateMessage(); @@ -109,6 +123,24 @@ public Response Delete(string subscriptionId, string resourceGroupName, string n } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string networkInterfaceName, string expand) + { + 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.Network/networkInterfaces/", false); + uri.AppendPath(networkInterfaceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string networkInterfaceName, string expand) { var message = _pipeline.CreateMessage(); @@ -197,6 +229,20 @@ public Response Get(string subscriptionId, string resource } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string networkInterfaceName, NetworkInterfaceData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkInterfaces/", false); + uri.AppendPath(networkInterfaceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string networkInterfaceName, NetworkInterfaceData data) { var message = _pipeline.CreateMessage(); @@ -275,6 +321,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateTagsRequestUri(string subscriptionId, string resourceGroupName, string networkInterfaceName, NetworkTagsObject networkTagsObject) + { + 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.Network/networkInterfaces/", false); + uri.AppendPath(networkInterfaceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateTagsRequest(string subscriptionId, string resourceGroupName, string networkInterfaceName, NetworkTagsObject networkTagsObject) { var message = _pipeline.CreateMessage(); @@ -361,6 +421,17 @@ public Response UpdateTags(string subscriptionId, string r } } + internal RequestUriBuilder CreateListAllRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Network/networkInterfaces", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListAllRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -428,6 +499,19 @@ public Response ListAll(string subscriptionId, Cance } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName) + { + 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.Network/networkInterfaces", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -501,6 +585,21 @@ public Response List(string subscriptionId, string r } } + internal RequestUriBuilder CreateGetEffectiveRouteTableRequestUri(string subscriptionId, string resourceGroupName, string networkInterfaceName) + { + 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.Network/networkInterfaces/", false); + uri.AppendPath(networkInterfaceName, true); + uri.AppendPath("/effectiveRouteTable", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetEffectiveRouteTableRequest(string subscriptionId, string resourceGroupName, string networkInterfaceName) { var message = _pipeline.CreateMessage(); @@ -572,6 +671,21 @@ public Response GetEffectiveRouteTable(string subscriptionId, string resourceGro } } + internal RequestUriBuilder CreateListEffectiveNetworkSecurityGroupsRequestUri(string subscriptionId, string resourceGroupName, string networkInterfaceName) + { + 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.Network/networkInterfaces/", false); + uri.AppendPath(networkInterfaceName, true); + uri.AppendPath("/effectiveNetworkSecurityGroups", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListEffectiveNetworkSecurityGroupsRequest(string subscriptionId, string resourceGroupName, string networkInterfaceName) { var message = _pipeline.CreateMessage(); @@ -643,6 +757,14 @@ public Response ListEffectiveNetworkSecurityGroups(string subscriptionId, string } } + internal RequestUriBuilder CreateListAllNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListAllNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -711,6 +833,14 @@ public Response ListAllNextPage(string nextLink, str } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkManagementRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkManagementRestOperations.cs index 1b3bc0b2ae7c..2fe7f389aaac 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkManagementRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkManagementRestOperations.cs @@ -37,6 +37,21 @@ public NetworkManagementRestOperations(HttpPipeline pipeline, string application _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateDeleteBastionShareableLinkByTokenRequestUri(string subscriptionId, string resourceGroupName, string bastionHostName, BastionShareableLinkTokenListContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/bastionHosts/", false); + uri.AppendPath(bastionHostName, true); + uri.AppendPath("/deleteShareableLinksByToken", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteBastionShareableLinkByTokenRequest(string subscriptionId, string resourceGroupName, string bastionHostName, BastionShareableLinkTokenListContent content) { var message = _pipeline.CreateMessage(); @@ -114,6 +129,20 @@ public Response DeleteBastionShareableLinkByToken(string subscriptionId, string } } + internal RequestUriBuilder CreateCheckDnsNameAvailabilityRequestUri(string subscriptionId, AzureLocation location, string domainNameLabel) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Network/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/CheckDnsNameAvailability", false); + uri.AppendQuery("domainNameLabel", domainNameLabel, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCheckDnsNameAvailabilityRequest(string subscriptionId, AzureLocation location, string domainNameLabel) { var message = _pipeline.CreateMessage(); @@ -190,6 +219,18 @@ public Response CheckDnsNameAvailability(string subsc } } + internal RequestUriBuilder CreateExpressRouteProviderPortRequestUri(string subscriptionId, string providerport) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Network/expressRouteProviderPorts/", false); + uri.AppendPath(providerport, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateExpressRouteProviderPortRequest(string subscriptionId, string providerport) { var message = _pipeline.CreateMessage(); @@ -266,6 +307,25 @@ public Response ExpressRouteProviderPort(string su } } + internal RequestUriBuilder CreateListActiveConnectivityConfigurationsRequestUri(string subscriptionId, string resourceGroupName, string networkManagerName, ActiveConfigurationContent content, int? top) + { + 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.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/listActiveConnectivityConfigurations", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + return uri; + } + internal HttpMessage CreateListActiveConnectivityConfigurationsRequest(string subscriptionId, string resourceGroupName, string networkManagerName, ActiveConfigurationContent content, int? top) { var message = _pipeline.CreateMessage(); @@ -359,6 +419,25 @@ public Response ListActiveConnectivi } } + internal RequestUriBuilder CreateListActiveSecurityAdminRulesRequestUri(string subscriptionId, string resourceGroupName, string networkManagerName, ActiveConfigurationContent content, int? top) + { + 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.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/listActiveSecurityAdminRules", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + return uri; + } + internal HttpMessage CreateListActiveSecurityAdminRulesRequest(string subscriptionId, string resourceGroupName, string networkManagerName, ActiveConfigurationContent content, int? top) { var message = _pipeline.CreateMessage(); @@ -452,6 +531,25 @@ public Response ListActiveSecurityAdminRules } } + internal RequestUriBuilder CreateListNetworkManagerEffectiveConnectivityConfigurationsRequestUri(string subscriptionId, string resourceGroupName, string virtualNetworkName, NetworkManagementQueryContent content, int? top) + { + 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.Network/virtualNetworks/", false); + uri.AppendPath(virtualNetworkName, true); + uri.AppendPath("/listNetworkManagerEffectiveConnectivityConfigurations", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + return uri; + } + internal HttpMessage CreateListNetworkManagerEffectiveConnectivityConfigurationsRequest(string subscriptionId, string resourceGroupName, string virtualNetworkName, NetworkManagementQueryContent content, int? top) { var message = _pipeline.CreateMessage(); @@ -545,6 +643,25 @@ public Response List } } + internal RequestUriBuilder CreateListNetworkManagerEffectiveSecurityAdminRulesRequestUri(string subscriptionId, string resourceGroupName, string virtualNetworkName, NetworkManagementQueryContent content, int? top) + { + 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.Network/virtualNetworks/", false); + uri.AppendPath(virtualNetworkName, true); + uri.AppendPath("/listNetworkManagerEffectiveSecurityAdminRules", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + return uri; + } + internal HttpMessage CreateListNetworkManagerEffectiveSecurityAdminRulesRequest(string subscriptionId, string resourceGroupName, string virtualNetworkName, NetworkManagementQueryContent content, int? top) { var message = _pipeline.CreateMessage(); @@ -638,6 +755,21 @@ public Response ListNetwork } } + internal RequestUriBuilder CreateSupportedSecurityProvidersRequestUri(string subscriptionId, string resourceGroupName, string virtualWanName) + { + 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.Network/virtualWans/", false); + uri.AppendPath(virtualWanName, true); + uri.AppendPath("/supportedSecurityProviders", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateSupportedSecurityProvidersRequest(string subscriptionId, string resourceGroupName, string virtualWanName) { var message = _pipeline.CreateMessage(); @@ -717,6 +849,21 @@ public Response SupportedSecurityProviders(string s } } + internal RequestUriBuilder CreateGeneratevirtualwanvpnserverconfigurationvpnprofileRequestUri(string subscriptionId, string resourceGroupName, string virtualWanName, VirtualWanVpnProfileContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/virtualWans/", false); + uri.AppendPath(virtualWanName, true); + uri.AppendPath("/GenerateVpnProfile", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGeneratevirtualwanvpnserverconfigurationvpnprofileRequest(string subscriptionId, string resourceGroupName, string virtualWanName, VirtualWanVpnProfileContent content) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkManagerCommitsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkManagerCommitsRestOperations.cs index 1544533de656..7d3c50950340 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkManagerCommitsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkManagerCommitsRestOperations.cs @@ -36,6 +36,21 @@ public NetworkManagerCommitsRestOperations(HttpPipeline pipeline, string applica _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreatePostRequestUri(string subscriptionId, string resourceGroupName, string networkManagerName, NetworkManagerCommit networkManagerCommit) + { + 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.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/commit", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreatePostRequest(string subscriptionId, string resourceGroupName, string networkManagerName, NetworkManagerCommit networkManagerCommit) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkManagerDeploymentStatusRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkManagerDeploymentStatusRestOperations.cs index 94ad61f14737..9ffdd5941645 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkManagerDeploymentStatusRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkManagerDeploymentStatusRestOperations.cs @@ -37,6 +37,25 @@ public NetworkManagerDeploymentStatusRestOperations(HttpPipeline pipeline, strin _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string networkManagerName, NetworkManagerDeploymentStatusContent content, int? top) + { + 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.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/listDeploymentStatus", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string networkManagerName, NetworkManagerDeploymentStatusContent content, int? top) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkManagersRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkManagersRestOperations.cs index 0f4a05088a5a..c462939249f1 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkManagersRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkManagersRestOperations.cs @@ -37,6 +37,20 @@ public NetworkManagersRestOperations(HttpPipeline pipeline, string applicationId _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string networkManagerName) + { + 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.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string networkManagerName) { var message = _pipeline.CreateMessage(); @@ -119,6 +133,20 @@ public Response Get(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string networkManagerName, NetworkManagerData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string networkManagerName, NetworkManagerData data) { var message = _pipeline.CreateMessage(); @@ -207,6 +235,24 @@ public Response CreateOrUpdate(string subscriptionId, string } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string networkManagerName, bool? force) + { + 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.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendQuery("api-version", _apiVersion, true); + if (force != null) + { + uri.AppendQuery("force", force.Value, true); + } + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string networkManagerName, bool? force) { var message = _pipeline.CreateMessage(); @@ -285,6 +331,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string n } } + internal RequestUriBuilder CreatePatchRequestUri(string subscriptionId, string resourceGroupName, string networkManagerName, NetworkManagerPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreatePatchRequest(string subscriptionId, string resourceGroupName, string networkManagerName, NetworkManagerPatch patch) { var message = _pipeline.CreateMessage(); @@ -371,6 +431,25 @@ public Response Patch(string subscriptionId, string resource } } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId, int? top, string skipToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Network/networkManagers", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId, int? top, string skipToken) { var message = _pipeline.CreateMessage(); @@ -450,6 +529,27 @@ public Response ListBySubscription(string subscription } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, int? top, string skipToken) + { + 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.Network/networkManagers", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, int? top, string skipToken) { var message = _pipeline.CreateMessage(); @@ -535,6 +635,14 @@ public Response List(string subscriptionId, string res } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId, int? top, string skipToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId, int? top, string skipToken) { var message = _pipeline.CreateMessage(); @@ -607,6 +715,14 @@ public Response ListBySubscriptionNextPage(string next } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, int? top, string skipToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, int? top, string skipToken) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkProfilesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkProfilesRestOperations.cs index 18661ce74138..976357def854 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkProfilesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkProfilesRestOperations.cs @@ -37,6 +37,20 @@ public NetworkProfilesRestOperations(HttpPipeline pipeline, string applicationId _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string networkProfileName) + { + 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.Network/networkProfiles/", false); + uri.AppendPath(networkProfileName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string networkProfileName) { var message = _pipeline.CreateMessage(); @@ -109,6 +123,24 @@ public Response Delete(string subscriptionId, string resourceGroupName, string n } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string networkProfileName, string expand) + { + 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.Network/networkProfiles/", false); + uri.AppendPath(networkProfileName, true); + uri.AppendQuery("api-version", _apiVersion, true); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string networkProfileName, string expand) { var message = _pipeline.CreateMessage(); @@ -197,6 +229,20 @@ public Response Get(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string networkProfileName, NetworkProfileData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkProfiles/", false); + uri.AppendPath(networkProfileName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string networkProfileName, NetworkProfileData data) { var message = _pipeline.CreateMessage(); @@ -285,6 +331,20 @@ public Response CreateOrUpdate(string subscriptionId, string } } + internal RequestUriBuilder CreateUpdateTagsRequestUri(string subscriptionId, string resourceGroupName, string networkProfileName, NetworkTagsObject networkTagsObject) + { + 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.Network/networkProfiles/", false); + uri.AppendPath(networkProfileName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateTagsRequest(string subscriptionId, string resourceGroupName, string networkProfileName, NetworkTagsObject networkTagsObject) { var message = _pipeline.CreateMessage(); @@ -371,6 +431,17 @@ public Response UpdateTags(string subscriptionId, string res } } + internal RequestUriBuilder CreateListAllRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Network/networkProfiles", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListAllRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -438,6 +509,19 @@ public Response ListAll(string subscriptionId, Cancell } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName) + { + 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.Network/networkProfiles", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -511,6 +595,14 @@ public Response List(string subscriptionId, string res } } + internal RequestUriBuilder CreateListAllNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListAllNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -579,6 +671,14 @@ public Response ListAllNextPage(string nextLink, strin } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkSecurityGroupsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkSecurityGroupsRestOperations.cs index 0de07235dc51..2ceac5bdda6f 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkSecurityGroupsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkSecurityGroupsRestOperations.cs @@ -37,6 +37,20 @@ public NetworkSecurityGroupsRestOperations(HttpPipeline pipeline, string applica _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string networkSecurityGroupName) + { + 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.Network/networkSecurityGroups/", false); + uri.AppendPath(networkSecurityGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string networkSecurityGroupName) { var message = _pipeline.CreateMessage(); @@ -109,6 +123,24 @@ public Response Delete(string subscriptionId, string resourceGroupName, string n } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string networkSecurityGroupName, string expand) + { + 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.Network/networkSecurityGroups/", false); + uri.AppendPath(networkSecurityGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string networkSecurityGroupName, string expand) { var message = _pipeline.CreateMessage(); @@ -197,6 +229,20 @@ public Response Get(string subscriptionId, string reso } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string networkSecurityGroupName, NetworkSecurityGroupData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkSecurityGroups/", false); + uri.AppendPath(networkSecurityGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string networkSecurityGroupName, NetworkSecurityGroupData data) { var message = _pipeline.CreateMessage(); @@ -275,6 +321,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateTagsRequestUri(string subscriptionId, string resourceGroupName, string networkSecurityGroupName, NetworkTagsObject networkTagsObject) + { + 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.Network/networkSecurityGroups/", false); + uri.AppendPath(networkSecurityGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateTagsRequest(string subscriptionId, string resourceGroupName, string networkSecurityGroupName, NetworkTagsObject networkTagsObject) { var message = _pipeline.CreateMessage(); @@ -361,6 +421,17 @@ public Response UpdateTags(string subscriptionId, stri } } + internal RequestUriBuilder CreateListAllRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Network/networkSecurityGroups", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListAllRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -428,6 +499,19 @@ public Response ListAll(string subscriptionId, C } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName) + { + 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.Network/networkSecurityGroups", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -501,6 +585,14 @@ public Response List(string subscriptionId, stri } } + internal RequestUriBuilder CreateListAllNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListAllNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -569,6 +661,14 @@ public Response ListAllNextPage(string nextLink, } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkVirtualApplianceConnectionsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkVirtualApplianceConnectionsRestOperations.cs index a412beba1439..ee30fcd0d3e7 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkVirtualApplianceConnectionsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkVirtualApplianceConnectionsRestOperations.cs @@ -37,6 +37,22 @@ public NetworkVirtualApplianceConnectionsRestOperations(HttpPipeline pipeline, s _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string networkVirtualApplianceName, string connectionName, NetworkVirtualApplianceConnectionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkVirtualAppliances/", false); + uri.AppendPath(networkVirtualApplianceName, true); + uri.AppendPath("/networkVirtualApplianceConnections/", false); + uri.AppendPath(connectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string networkVirtualApplianceName, string connectionName, NetworkVirtualApplianceConnectionData data) { var message = _pipeline.CreateMessage(); @@ -121,6 +137,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string networkVirtualApplianceName, string connectionName) + { + 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.Network/networkVirtualAppliances/", false); + uri.AppendPath(networkVirtualApplianceName, true); + uri.AppendPath("/networkVirtualApplianceConnections/", false); + uri.AppendPath(connectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string networkVirtualApplianceName, string connectionName) { var message = _pipeline.CreateMessage(); @@ -209,6 +241,22 @@ public Response Get(string subscriptionId } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string networkVirtualApplianceName, string connectionName) + { + 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.Network/networkVirtualAppliances/", false); + uri.AppendPath(networkVirtualApplianceName, true); + uri.AppendPath("/networkVirtualApplianceConnections/", false); + uri.AppendPath(connectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string networkVirtualApplianceName, string connectionName) { var message = _pipeline.CreateMessage(); @@ -287,6 +335,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string n } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string networkVirtualApplianceName) + { + 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.Network/networkVirtualAppliances/", false); + uri.AppendPath(networkVirtualApplianceName, true); + uri.AppendPath("/networkVirtualApplianceConnections", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string networkVirtualApplianceName) { var message = _pipeline.CreateMessage(); @@ -366,6 +429,14 @@ public Response List(string subscriptionI } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string networkVirtualApplianceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string networkVirtualApplianceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkVirtualAppliancesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkVirtualAppliancesRestOperations.cs index a43b3bebdb58..344c25f60a75 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkVirtualAppliancesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkVirtualAppliancesRestOperations.cs @@ -37,6 +37,20 @@ public NetworkVirtualAppliancesRestOperations(HttpPipeline pipeline, string appl _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string networkVirtualApplianceName) + { + 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.Network/networkVirtualAppliances/", false); + uri.AppendPath(networkVirtualApplianceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string networkVirtualApplianceName) { var message = _pipeline.CreateMessage(); @@ -109,6 +123,24 @@ public Response Delete(string subscriptionId, string resourceGroupName, string n } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string networkVirtualApplianceName, string expand) + { + 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.Network/networkVirtualAppliances/", false); + uri.AppendPath(networkVirtualApplianceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string networkVirtualApplianceName, string expand) { var message = _pipeline.CreateMessage(); @@ -197,6 +229,20 @@ public Response Get(string subscriptionId, string r } } + internal RequestUriBuilder CreateUpdateTagsRequestUri(string subscriptionId, string resourceGroupName, string networkVirtualApplianceName, NetworkTagsObject networkTagsObject) + { + 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.Network/networkVirtualAppliances/", false); + uri.AppendPath(networkVirtualApplianceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateTagsRequest(string subscriptionId, string resourceGroupName, string networkVirtualApplianceName, NetworkTagsObject networkTagsObject) { var message = _pipeline.CreateMessage(); @@ -283,6 +329,20 @@ public Response UpdateTags(string subscriptionId, s } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string networkVirtualApplianceName, NetworkVirtualApplianceData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkVirtualAppliances/", false); + uri.AppendPath(networkVirtualApplianceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string networkVirtualApplianceName, NetworkVirtualApplianceData data) { var message = _pipeline.CreateMessage(); @@ -361,6 +421,19 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.Network/networkVirtualAppliances", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -434,6 +507,17 @@ public Response ListByResourceGroup(string su } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Network/networkVirtualAppliances", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -501,6 +585,14 @@ public Response List(string subscriptionId, C } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -573,6 +665,14 @@ public Response ListByResourceGroupNextPage(s } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkWatchersRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkWatchersRestOperations.cs index 5a329cfd4ae4..60adc596ca86 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkWatchersRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkWatchersRestOperations.cs @@ -37,6 +37,20 @@ public NetworkWatchersRestOperations(HttpPipeline pipeline, string applicationId _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string networkWatcherName, NetworkWatcherData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkWatchers/", false); + uri.AppendPath(networkWatcherName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string networkWatcherName, NetworkWatcherData data) { var message = _pipeline.CreateMessage(); @@ -125,6 +139,20 @@ public Response CreateOrUpdate(string subscriptionId, string } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string networkWatcherName) + { + 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.Network/networkWatchers/", false); + uri.AppendPath(networkWatcherName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string networkWatcherName) { var message = _pipeline.CreateMessage(); @@ -207,6 +235,20 @@ public Response Get(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string networkWatcherName) + { + 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.Network/networkWatchers/", false); + uri.AppendPath(networkWatcherName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string networkWatcherName) { var message = _pipeline.CreateMessage(); @@ -277,6 +319,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string n } } + internal RequestUriBuilder CreateUpdateTagsRequestUri(string subscriptionId, string resourceGroupName, string networkWatcherName, NetworkTagsObject networkTagsObject) + { + 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.Network/networkWatchers/", false); + uri.AppendPath(networkWatcherName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateTagsRequest(string subscriptionId, string resourceGroupName, string networkWatcherName, NetworkTagsObject networkTagsObject) { var message = _pipeline.CreateMessage(); @@ -363,6 +419,19 @@ public Response UpdateTags(string subscriptionId, string res } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName) + { + 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.Network/networkWatchers", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -436,6 +505,17 @@ public Response List(string subscriptionId, string res } } + internal RequestUriBuilder CreateListAllRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Network/networkWatchers", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListAllRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -503,6 +583,21 @@ public Response ListAll(string subscriptionId, Cancell } } + internal RequestUriBuilder CreateGetTopologyRequestUri(string subscriptionId, string resourceGroupName, string networkWatcherName, TopologyContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkWatchers/", false); + uri.AppendPath(networkWatcherName, true); + uri.AppendPath("/topology", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetTopologyRequest(string subscriptionId, string resourceGroupName, string networkWatcherName, TopologyContent content) { var message = _pipeline.CreateMessage(); @@ -590,6 +685,21 @@ public Response GetTopology(string subscriptionId, string resou } } + internal RequestUriBuilder CreateVerifyIPFlowRequestUri(string subscriptionId, string resourceGroupName, string networkWatcherName, VerificationIPFlowContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkWatchers/", false); + uri.AppendPath(networkWatcherName, true); + uri.AppendPath("/ipFlowVerify", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateVerifyIPFlowRequest(string subscriptionId, string resourceGroupName, string networkWatcherName, VerificationIPFlowContent content) { var message = _pipeline.CreateMessage(); @@ -669,6 +779,21 @@ public Response VerifyIPFlow(string subscriptionId, string resourceGroupName, st } } + internal RequestUriBuilder CreateGetNextHopRequestUri(string subscriptionId, string resourceGroupName, string networkWatcherName, NextHopContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkWatchers/", false); + uri.AppendPath(networkWatcherName, true); + uri.AppendPath("/nextHop", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetNextHopRequest(string subscriptionId, string resourceGroupName, string networkWatcherName, NextHopContent content) { var message = _pipeline.CreateMessage(); @@ -748,6 +873,21 @@ public Response GetNextHop(string subscriptionId, string resourceGroupName, stri } } + internal RequestUriBuilder CreateGetVmSecurityRulesRequestUri(string subscriptionId, string resourceGroupName, string networkWatcherName, SecurityGroupViewContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkWatchers/", false); + uri.AppendPath(networkWatcherName, true); + uri.AppendPath("/securityGroupView", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetVmSecurityRulesRequest(string subscriptionId, string resourceGroupName, string networkWatcherName, SecurityGroupViewContent content) { var message = _pipeline.CreateMessage(); @@ -827,6 +967,21 @@ public Response GetVmSecurityRules(string subscriptionId, string resourceGroupNa } } + internal RequestUriBuilder CreateGetTroubleshootingRequestUri(string subscriptionId, string resourceGroupName, string networkWatcherName, TroubleshootingContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkWatchers/", false); + uri.AppendPath(networkWatcherName, true); + uri.AppendPath("/troubleshoot", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetTroubleshootingRequest(string subscriptionId, string resourceGroupName, string networkWatcherName, TroubleshootingContent content) { var message = _pipeline.CreateMessage(); @@ -906,6 +1061,21 @@ public Response GetTroubleshooting(string subscriptionId, string resourceGroupNa } } + internal RequestUriBuilder CreateGetTroubleshootingResultRequestUri(string subscriptionId, string resourceGroupName, string networkWatcherName, QueryTroubleshootingContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkWatchers/", false); + uri.AppendPath(networkWatcherName, true); + uri.AppendPath("/queryTroubleshootResult", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetTroubleshootingResultRequest(string subscriptionId, string resourceGroupName, string networkWatcherName, QueryTroubleshootingContent content) { var message = _pipeline.CreateMessage(); @@ -985,6 +1155,21 @@ public Response GetTroubleshootingResult(string subscriptionId, string resourceG } } + internal RequestUriBuilder CreateSetFlowLogConfigurationRequestUri(string subscriptionId, string resourceGroupName, string networkWatcherName, FlowLogInformation flowLogInformation) + { + 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.Network/networkWatchers/", false); + uri.AppendPath(networkWatcherName, true); + uri.AppendPath("/configureFlowLog", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateSetFlowLogConfigurationRequest(string subscriptionId, string resourceGroupName, string networkWatcherName, FlowLogInformation flowLogInformation) { var message = _pipeline.CreateMessage(); @@ -1064,6 +1249,21 @@ public Response SetFlowLogConfiguration(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateGetFlowLogStatusRequestUri(string subscriptionId, string resourceGroupName, string networkWatcherName, FlowLogStatusContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkWatchers/", false); + uri.AppendPath(networkWatcherName, true); + uri.AppendPath("/queryFlowLogStatus", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetFlowLogStatusRequest(string subscriptionId, string resourceGroupName, string networkWatcherName, FlowLogStatusContent content) { var message = _pipeline.CreateMessage(); @@ -1143,6 +1343,21 @@ public Response GetFlowLogStatus(string subscriptionId, string resourceGroupName } } + internal RequestUriBuilder CreateCheckConnectivityRequestUri(string subscriptionId, string resourceGroupName, string networkWatcherName, ConnectivityContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkWatchers/", false); + uri.AppendPath(networkWatcherName, true); + uri.AppendPath("/connectivityCheck", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCheckConnectivityRequest(string subscriptionId, string resourceGroupName, string networkWatcherName, ConnectivityContent content) { var message = _pipeline.CreateMessage(); @@ -1222,6 +1437,21 @@ public Response CheckConnectivity(string subscriptionId, string resourceGroupNam } } + internal RequestUriBuilder CreateGetAzureReachabilityReportRequestUri(string subscriptionId, string resourceGroupName, string networkWatcherName, AzureReachabilityReportContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkWatchers/", false); + uri.AppendPath(networkWatcherName, true); + uri.AppendPath("/azureReachabilityReport", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetAzureReachabilityReportRequest(string subscriptionId, string resourceGroupName, string networkWatcherName, AzureReachabilityReportContent content) { var message = _pipeline.CreateMessage(); @@ -1301,6 +1531,21 @@ public Response GetAzureReachabilityReport(string subscriptionId, string resourc } } + internal RequestUriBuilder CreateListAvailableProvidersRequestUri(string subscriptionId, string resourceGroupName, string networkWatcherName, AvailableProvidersListContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkWatchers/", false); + uri.AppendPath(networkWatcherName, true); + uri.AppendPath("/availableProvidersList", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListAvailableProvidersRequest(string subscriptionId, string resourceGroupName, string networkWatcherName, AvailableProvidersListContent content) { var message = _pipeline.CreateMessage(); @@ -1380,6 +1625,21 @@ public Response ListAvailableProviders(string subscriptionId, string resourceGro } } + internal RequestUriBuilder CreateGetNetworkConfigurationDiagnosticRequestUri(string subscriptionId, string resourceGroupName, string networkWatcherName, NetworkConfigurationDiagnosticContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkWatchers/", false); + uri.AppendPath(networkWatcherName, true); + uri.AppendPath("/networkConfigurationDiagnostic", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetNetworkConfigurationDiagnosticRequest(string subscriptionId, string resourceGroupName, string networkWatcherName, NetworkConfigurationDiagnosticContent content) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/P2SVpnGatewaysRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/P2SVpnGatewaysRestOperations.cs index ac6404df1410..f2c507cc28d4 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/P2SVpnGatewaysRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/P2SVpnGatewaysRestOperations.cs @@ -37,6 +37,20 @@ public P2SVpnGatewaysRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string gatewayName) + { + 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.Network/p2svpnGateways/", false); + uri.AppendPath(gatewayName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string gatewayName) { var message = _pipeline.CreateMessage(); @@ -119,6 +133,20 @@ public Response Get(string subscriptionId, string resourceGro } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string gatewayName, P2SVpnGatewayData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/p2svpnGateways/", false); + uri.AppendPath(gatewayName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string gatewayName, P2SVpnGatewayData data) { var message = _pipeline.CreateMessage(); @@ -197,6 +225,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateTagsRequestUri(string subscriptionId, string resourceGroupName, string gatewayName, NetworkTagsObject p2sVpnGatewayParameters) + { + 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.Network/p2svpnGateways/", false); + uri.AppendPath(gatewayName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateTagsRequest(string subscriptionId, string resourceGroupName, string gatewayName, NetworkTagsObject p2sVpnGatewayParameters) { var message = _pipeline.CreateMessage(); @@ -275,6 +317,20 @@ public Response UpdateTags(string subscriptionId, string resourceGroupName, stri } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string gatewayName) + { + 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.Network/p2svpnGateways/", false); + uri.AppendPath(gatewayName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string gatewayName) { var message = _pipeline.CreateMessage(); @@ -347,6 +403,19 @@ public Response Delete(string subscriptionId, string resourceGroupName, string g } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.Network/p2svpnGateways", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -420,6 +489,17 @@ public Response ListByResourceGroup(string subscriptio } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Network/p2svpnGateways", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -487,6 +567,21 @@ public Response List(string subscriptionId, Cancellati } } + internal RequestUriBuilder CreateResetRequestUri(string subscriptionId, string resourceGroupName, string gatewayName) + { + 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.Network/p2svpnGateways/", false); + uri.AppendPath(gatewayName, true); + uri.AppendPath("/reset", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateResetRequest(string subscriptionId, string resourceGroupName, string gatewayName) { var message = _pipeline.CreateMessage(); @@ -558,6 +653,21 @@ public Response Reset(string subscriptionId, string resourceGroupName, string ga } } + internal RequestUriBuilder CreateGenerateVpnProfileRequestUri(string subscriptionId, string resourceGroupName, string gatewayName, P2SVpnProfileContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/p2svpnGateways/", false); + uri.AppendPath(gatewayName, true); + uri.AppendPath("/generatevpnprofile", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGenerateVpnProfileRequest(string subscriptionId, string resourceGroupName, string gatewayName, P2SVpnProfileContent content) { var message = _pipeline.CreateMessage(); @@ -637,6 +747,21 @@ public Response GenerateVpnProfile(string subscriptionId, string resourceGroupNa } } + internal RequestUriBuilder CreateGetP2SVpnConnectionHealthRequestUri(string subscriptionId, string resourceGroupName, string gatewayName) + { + 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.Network/p2svpnGateways/", false); + uri.AppendPath(gatewayName, true); + uri.AppendPath("/getP2sVpnConnectionHealth", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetP2SVpnConnectionHealthRequest(string subscriptionId, string resourceGroupName, string gatewayName) { var message = _pipeline.CreateMessage(); @@ -708,6 +833,21 @@ public Response GetP2SVpnConnectionHealth(string subscriptionId, string resource } } + internal RequestUriBuilder CreateGetP2SVpnConnectionHealthDetailedRequestUri(string subscriptionId, string resourceGroupName, string gatewayName, P2SVpnConnectionHealthContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/p2svpnGateways/", false); + uri.AppendPath(gatewayName, true); + uri.AppendPath("/getP2sVpnConnectionHealthDetailed", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetP2SVpnConnectionHealthDetailedRequest(string subscriptionId, string resourceGroupName, string gatewayName, P2SVpnConnectionHealthContent content) { var message = _pipeline.CreateMessage(); @@ -787,6 +927,21 @@ public Response GetP2SVpnConnectionHealthDetailed(string subscriptionId, string } } + internal RequestUriBuilder CreateDisconnectP2SVpnConnectionsRequestUri(string subscriptionId, string resourceGroupName, string p2sVpnGatewayName, P2SVpnConnectionRequest request) + { + 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.Network/p2svpnGateways/", false); + uri.AppendPath(p2sVpnGatewayName, true); + uri.AppendPath("/disconnectP2sVpnConnections", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDisconnectP2SVpnConnectionsRequest(string subscriptionId, string resourceGroupName, string p2sVpnGatewayName, P2SVpnConnectionRequest request) { var message = _pipeline.CreateMessage(); @@ -866,6 +1021,14 @@ public Response DisconnectP2SVpnConnections(string subscriptionId, string resour } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -938,6 +1101,14 @@ public Response ListByResourceGroupNextPage(string nex } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PacketCapturesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PacketCapturesRestOperations.cs index c316ff533fd9..0038e7ac1849 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PacketCapturesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PacketCapturesRestOperations.cs @@ -37,6 +37,22 @@ public PacketCapturesRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string networkWatcherName, string packetCaptureName, PacketCaptureCreateOrUpdateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkWatchers/", false); + uri.AppendPath(networkWatcherName, true); + uri.AppendPath("/packetCaptures/", false); + uri.AppendPath(packetCaptureName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string networkWatcherName, string packetCaptureName, PacketCaptureCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); @@ -119,6 +135,22 @@ public Response Create(string subscriptionId, string resourceGroupName, string n } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string networkWatcherName, string packetCaptureName) + { + 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.Network/networkWatchers/", false); + uri.AppendPath(networkWatcherName, true); + uri.AppendPath("/packetCaptures/", false); + uri.AppendPath(packetCaptureName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string networkWatcherName, string packetCaptureName) { var message = _pipeline.CreateMessage(); @@ -207,6 +239,22 @@ public Response Get(string subscriptionId, string resourceGro } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string networkWatcherName, string packetCaptureName) + { + 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.Network/networkWatchers/", false); + uri.AppendPath(networkWatcherName, true); + uri.AppendPath("/packetCaptures/", false); + uri.AppendPath(packetCaptureName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string networkWatcherName, string packetCaptureName) { var message = _pipeline.CreateMessage(); @@ -283,6 +331,23 @@ public Response Delete(string subscriptionId, string resourceGroupName, string n } } + internal RequestUriBuilder CreateStopRequestUri(string subscriptionId, string resourceGroupName, string networkWatcherName, string packetCaptureName) + { + 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.Network/networkWatchers/", false); + uri.AppendPath(networkWatcherName, true); + uri.AppendPath("/packetCaptures/", false); + uri.AppendPath(packetCaptureName, true); + uri.AppendPath("/stop", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStopRequest(string subscriptionId, string resourceGroupName, string networkWatcherName, string packetCaptureName) { var message = _pipeline.CreateMessage(); @@ -360,6 +425,23 @@ public Response Stop(string subscriptionId, string resourceGroupName, string net } } + internal RequestUriBuilder CreateGetStatusRequestUri(string subscriptionId, string resourceGroupName, string networkWatcherName, string packetCaptureName) + { + 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.Network/networkWatchers/", false); + uri.AppendPath(networkWatcherName, true); + uri.AppendPath("/packetCaptures/", false); + uri.AppendPath(packetCaptureName, true); + uri.AppendPath("/queryStatus", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetStatusRequest(string subscriptionId, string resourceGroupName, string networkWatcherName, string packetCaptureName) { var message = _pipeline.CreateMessage(); @@ -437,6 +519,21 @@ public Response GetStatus(string subscriptionId, string resourceGroupName, strin } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string networkWatcherName) + { + 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.Network/networkWatchers/", false); + uri.AppendPath(networkWatcherName, true); + uri.AppendPath("/packetCaptures", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string networkWatcherName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PeerExpressRouteCircuitConnectionsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PeerExpressRouteCircuitConnectionsRestOperations.cs index b449154cbcc7..50f4342e7ed2 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PeerExpressRouteCircuitConnectionsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PeerExpressRouteCircuitConnectionsRestOperations.cs @@ -37,6 +37,24 @@ public PeerExpressRouteCircuitConnectionsRestOperations(HttpPipeline pipeline, s _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string circuitName, string peeringName, string connectionName) + { + 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.Network/expressRouteCircuits/", false); + uri.AppendPath(circuitName, true); + uri.AppendPath("/peerings/", false); + uri.AppendPath(peeringName, true); + uri.AppendPath("/peerConnections/", false); + uri.AppendPath(connectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string circuitName, string peeringName, string connectionName) { var message = _pipeline.CreateMessage(); @@ -131,6 +149,23 @@ public Response Get(string subscriptionId } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string circuitName, string peeringName) + { + 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.Network/expressRouteCircuits/", false); + uri.AppendPath(circuitName, true); + uri.AppendPath("/peerings/", false); + uri.AppendPath(peeringName, true); + uri.AppendPath("/peerConnections", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string circuitName, string peeringName) { var message = _pipeline.CreateMessage(); @@ -216,6 +251,14 @@ public Response List(string subscri } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string circuitName, string peeringName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string circuitName, string peeringName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PrivateDnsZoneGroupsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PrivateDnsZoneGroupsRestOperations.cs index ceb6c7f15cc8..1bcd10496ece 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PrivateDnsZoneGroupsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PrivateDnsZoneGroupsRestOperations.cs @@ -37,6 +37,22 @@ public PrivateDnsZoneGroupsRestOperations(HttpPipeline pipeline, string applicat _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string privateEndpointName, string privateDnsZoneGroupName) + { + 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.Network/privateEndpoints/", false); + uri.AppendPath(privateEndpointName, true); + uri.AppendPath("/privateDnsZoneGroups/", false); + uri.AppendPath(privateDnsZoneGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string privateEndpointName, string privateDnsZoneGroupName) { var message = _pipeline.CreateMessage(); @@ -115,6 +131,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string p } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string privateEndpointName, string privateDnsZoneGroupName) + { + 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.Network/privateEndpoints/", false); + uri.AppendPath(privateEndpointName, true); + uri.AppendPath("/privateDnsZoneGroups/", false); + uri.AppendPath(privateDnsZoneGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string privateEndpointName, string privateDnsZoneGroupName) { var message = _pipeline.CreateMessage(); @@ -203,6 +235,22 @@ public Response Get(string subscriptionId, string resou } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string privateEndpointName, string privateDnsZoneGroupName, PrivateDnsZoneGroupData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/privateEndpoints/", false); + uri.AppendPath(privateEndpointName, true); + uri.AppendPath("/privateDnsZoneGroups/", false); + uri.AppendPath(privateDnsZoneGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string privateEndpointName, string privateDnsZoneGroupName, PrivateDnsZoneGroupData data) { var message = _pipeline.CreateMessage(); @@ -287,6 +335,21 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string privateEndpointName) + { + 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.Network/privateEndpoints/", false); + uri.AppendPath(privateEndpointName, true); + uri.AppendPath("/privateDnsZoneGroups", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string privateEndpointName) { var message = _pipeline.CreateMessage(); @@ -366,6 +429,14 @@ public Response List(string subscriptionId, strin } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string privateEndpointName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string privateEndpointName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PrivateEndpointsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PrivateEndpointsRestOperations.cs index eb668abb867e..14292616fc44 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PrivateEndpointsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PrivateEndpointsRestOperations.cs @@ -37,6 +37,20 @@ public PrivateEndpointsRestOperations(HttpPipeline pipeline, string applicationI _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string privateEndpointName) + { + 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.Network/privateEndpoints/", false); + uri.AppendPath(privateEndpointName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string privateEndpointName) { var message = _pipeline.CreateMessage(); @@ -109,6 +123,24 @@ public Response Delete(string subscriptionId, string resourceGroupName, string p } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string privateEndpointName, string expand) + { + 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.Network/privateEndpoints/", false); + uri.AppendPath(privateEndpointName, true); + uri.AppendQuery("api-version", _apiVersion, true); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string privateEndpointName, string expand) { var message = _pipeline.CreateMessage(); @@ -197,6 +229,20 @@ public Response Get(string subscriptionId, string resourceG } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string privateEndpointName, PrivateEndpointData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/privateEndpoints/", false); + uri.AppendPath(privateEndpointName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string privateEndpointName, PrivateEndpointData data) { var message = _pipeline.CreateMessage(); @@ -275,6 +321,19 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName) + { + 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.Network/privateEndpoints", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -348,6 +407,17 @@ public Response List(string subscriptionId, string re } } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Network/privateEndpoints", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -415,6 +485,14 @@ public Response ListBySubscription(string subscriptio } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -487,6 +565,14 @@ public Response ListNextPage(string nextLink, string } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PrivateLinkServicesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PrivateLinkServicesRestOperations.cs index 9e546f98ea1f..b687999ae32a 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PrivateLinkServicesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PrivateLinkServicesRestOperations.cs @@ -37,6 +37,20 @@ public PrivateLinkServicesRestOperations(HttpPipeline pipeline, string applicati _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string serviceName) + { + 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.Network/privateLinkServices/", false); + uri.AppendPath(serviceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string serviceName) { var message = _pipeline.CreateMessage(); @@ -109,6 +123,24 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string expand) + { + 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.Network/privateLinkServices/", false); + uri.AppendPath(serviceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serviceName, string expand) { var message = _pipeline.CreateMessage(); @@ -197,6 +229,20 @@ public Response Get(string subscriptionId, string resour } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serviceName, PrivateLinkServiceData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/privateLinkServices/", false); + uri.AppendPath(serviceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serviceName, PrivateLinkServiceData data) { var message = _pipeline.CreateMessage(); @@ -275,6 +321,19 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName) + { + 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.Network/privateLinkServices", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -348,6 +407,17 @@ public Response List(string subscriptionId, string } } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Network/privateLinkServices", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -415,6 +485,26 @@ public Response ListBySubscription(string subscrip } } + internal RequestUriBuilder CreateGetPrivateEndpointConnectionRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string peConnectionName, string expand) + { + 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.Network/privateLinkServices/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(peConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + return uri; + } + internal HttpMessage CreateGetPrivateEndpointConnectionRequest(string subscriptionId, string resourceGroupName, string serviceName, string peConnectionName, string expand) { var message = _pipeline.CreateMessage(); @@ -509,6 +599,22 @@ public Response GetPrivateEndpointConnecti } } + internal RequestUriBuilder CreateUpdatePrivateEndpointConnectionRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string peConnectionName, NetworkPrivateEndpointConnectionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/privateLinkServices/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(peConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdatePrivateEndpointConnectionRequest(string subscriptionId, string resourceGroupName, string serviceName, string peConnectionName, NetworkPrivateEndpointConnectionData data) { var message = _pipeline.CreateMessage(); @@ -601,6 +707,22 @@ public Response UpdatePrivateEndpointConne } } + internal RequestUriBuilder CreateDeletePrivateEndpointConnectionRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string peConnectionName) + { + 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.Network/privateLinkServices/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(peConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeletePrivateEndpointConnectionRequest(string subscriptionId, string resourceGroupName, string serviceName, string peConnectionName) { var message = _pipeline.CreateMessage(); @@ -679,6 +801,21 @@ public Response DeletePrivateEndpointConnection(string subscriptionId, string re } } + internal RequestUriBuilder CreateListPrivateEndpointConnectionsRequestUri(string subscriptionId, string resourceGroupName, string serviceName) + { + 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.Network/privateLinkServices/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/privateEndpointConnections", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListPrivateEndpointConnectionsRequest(string subscriptionId, string resourceGroupName, string serviceName) { var message = _pipeline.CreateMessage(); @@ -758,6 +895,19 @@ public Response ListPrivateEndpointC } } + internal RequestUriBuilder CreateCheckPrivateLinkServiceVisibilityRequestUri(string subscriptionId, AzureLocation location, CheckPrivateLinkServiceVisibilityRequest checkPrivateLinkServiceVisibilityRequest) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Network/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/checkPrivateLinkServiceVisibility", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCheckPrivateLinkServiceVisibilityRequest(string subscriptionId, AzureLocation location, CheckPrivateLinkServiceVisibilityRequest checkPrivateLinkServiceVisibilityRequest) { var message = _pipeline.CreateMessage(); @@ -829,6 +979,21 @@ public Response CheckPrivateLinkServiceVisibility(string subscriptionId, AzureLo } } + internal RequestUriBuilder CreateCheckPrivateLinkServiceVisibilityByResourceGroupRequestUri(string subscriptionId, string resourceGroupName, AzureLocation location, CheckPrivateLinkServiceVisibilityRequest checkPrivateLinkServiceVisibilityRequest) + { + 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.Network/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/checkPrivateLinkServiceVisibility", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCheckPrivateLinkServiceVisibilityByResourceGroupRequest(string subscriptionId, string resourceGroupName, AzureLocation location, CheckPrivateLinkServiceVisibilityRequest checkPrivateLinkServiceVisibilityRequest) { var message = _pipeline.CreateMessage(); @@ -906,6 +1071,19 @@ public Response CheckPrivateLinkServiceVisibilityByResourceGroup(string subscrip } } + internal RequestUriBuilder CreateListAutoApprovedPrivateLinkServicesRequestUri(string subscriptionId, AzureLocation location) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Network/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/autoApprovedPrivateLinkServices", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListAutoApprovedPrivateLinkServicesRequest(string subscriptionId, AzureLocation location) { var message = _pipeline.CreateMessage(); @@ -977,6 +1155,21 @@ public Response ListAutoApprovedPrivateLi } } + internal RequestUriBuilder CreateListAutoApprovedPrivateLinkServicesByResourceGroupRequestUri(string subscriptionId, string resourceGroupName, AzureLocation location) + { + 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.Network/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/autoApprovedPrivateLinkServices", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListAutoApprovedPrivateLinkServicesByResourceGroupRequest(string subscriptionId, string resourceGroupName, AzureLocation location) { var message = _pipeline.CreateMessage(); @@ -1054,6 +1247,14 @@ public Response ListAutoApprovedPrivateLi } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -1126,6 +1327,14 @@ public Response ListNextPage(string nextLink, stri } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -1194,6 +1403,14 @@ public Response ListBySubscriptionNextPage(string } } + internal RequestUriBuilder CreateListPrivateEndpointConnectionsNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serviceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListPrivateEndpointConnectionsNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serviceName) { var message = _pipeline.CreateMessage(); @@ -1270,6 +1487,14 @@ public Response ListPrivateEndpointC } } + internal RequestUriBuilder CreateListAutoApprovedPrivateLinkServicesNextPageRequestUri(string nextLink, string subscriptionId, AzureLocation location) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListAutoApprovedPrivateLinkServicesNextPageRequest(string nextLink, string subscriptionId, AzureLocation location) { var message = _pipeline.CreateMessage(); @@ -1340,6 +1565,14 @@ public Response ListAutoApprovedPrivateLi } } + internal RequestUriBuilder CreateListAutoApprovedPrivateLinkServicesByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, AzureLocation location) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListAutoApprovedPrivateLinkServicesByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, AzureLocation location) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PublicIPAddressesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PublicIPAddressesRestOperations.cs index 682e9057a645..0450f817e640 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PublicIPAddressesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PublicIPAddressesRestOperations.cs @@ -37,6 +37,20 @@ public PublicIPAddressesRestOperations(HttpPipeline pipeline, string application _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string publicIPAddressName) + { + 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.Network/publicIPAddresses/", false); + uri.AppendPath(publicIPAddressName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string publicIPAddressName) { var message = _pipeline.CreateMessage(); @@ -109,6 +123,24 @@ public Response Delete(string subscriptionId, string resourceGroupName, string p } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string publicIPAddressName, string expand) + { + 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.Network/publicIPAddresses/", false); + uri.AppendPath(publicIPAddressName, true); + uri.AppendQuery("api-version", _apiVersion, true); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string publicIPAddressName, string expand) { var message = _pipeline.CreateMessage(); @@ -197,6 +229,20 @@ public Response Get(string subscriptionId, string resourceG } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string publicIPAddressName, PublicIPAddressData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/publicIPAddresses/", false); + uri.AppendPath(publicIPAddressName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string publicIPAddressName, PublicIPAddressData data) { var message = _pipeline.CreateMessage(); @@ -275,6 +321,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateTagsRequestUri(string subscriptionId, string resourceGroupName, string publicIPAddressName, NetworkTagsObject networkTagsObject) + { + 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.Network/publicIPAddresses/", false); + uri.AppendPath(publicIPAddressName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateTagsRequest(string subscriptionId, string resourceGroupName, string publicIPAddressName, NetworkTagsObject networkTagsObject) { var message = _pipeline.CreateMessage(); @@ -361,6 +421,17 @@ public Response UpdateTags(string subscriptionId, string re } } + internal RequestUriBuilder CreateListAllRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Network/publicIPAddresses", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListAllRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -428,6 +499,19 @@ public Response ListAll(string subscriptionId, Cancel } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName) + { + 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.Network/publicIPAddresses", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -501,6 +585,21 @@ public Response List(string subscriptionId, string re } } + internal RequestUriBuilder CreateDdosProtectionStatusRequestUri(string subscriptionId, string resourceGroupName, string publicIPAddressName) + { + 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.Network/publicIPAddresses/", false); + uri.AppendPath(publicIPAddressName, true); + uri.AppendPath("/ddosProtectionStatus", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDdosProtectionStatusRequest(string subscriptionId, string resourceGroupName, string publicIPAddressName) { var message = _pipeline.CreateMessage(); @@ -572,6 +671,14 @@ public Response DdosProtectionStatus(string subscriptionId, string resourceGroup } } + internal RequestUriBuilder CreateListAllNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListAllNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -640,6 +747,14 @@ public Response ListAllNextPage(string nextLink, stri } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PublicIPPrefixesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PublicIPPrefixesRestOperations.cs index 6be646e92c2a..bf97d4ede7b9 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PublicIPPrefixesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PublicIPPrefixesRestOperations.cs @@ -37,6 +37,20 @@ public PublicIPPrefixesRestOperations(HttpPipeline pipeline, string applicationI _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string publicIPPrefixName) + { + 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.Network/publicIPPrefixes/", false); + uri.AppendPath(publicIPPrefixName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string publicIPPrefixName) { var message = _pipeline.CreateMessage(); @@ -109,6 +123,24 @@ public Response Delete(string subscriptionId, string resourceGroupName, string p } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string publicIPPrefixName, string expand) + { + 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.Network/publicIPPrefixes/", false); + uri.AppendPath(publicIPPrefixName, true); + uri.AppendQuery("api-version", _apiVersion, true); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string publicIPPrefixName, string expand) { var message = _pipeline.CreateMessage(); @@ -197,6 +229,20 @@ public Response Get(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string publicIPPrefixName, PublicIPPrefixData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/publicIPPrefixes/", false); + uri.AppendPath(publicIPPrefixName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string publicIPPrefixName, PublicIPPrefixData data) { var message = _pipeline.CreateMessage(); @@ -275,6 +321,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateTagsRequestUri(string subscriptionId, string resourceGroupName, string publicIPPrefixName, NetworkTagsObject networkTagsObject) + { + 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.Network/publicIPPrefixes/", false); + uri.AppendPath(publicIPPrefixName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateTagsRequest(string subscriptionId, string resourceGroupName, string publicIPPrefixName, NetworkTagsObject networkTagsObject) { var message = _pipeline.CreateMessage(); @@ -361,6 +421,17 @@ public Response UpdateTags(string subscriptionId, string res } } + internal RequestUriBuilder CreateListAllRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Network/publicIPPrefixes", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListAllRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -428,6 +499,19 @@ public Response ListAll(string subscriptionId, Cancell } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName) + { + 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.Network/publicIPPrefixes", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -501,6 +585,14 @@ public Response List(string subscriptionId, string res } } + internal RequestUriBuilder CreateListAllNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListAllNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -569,6 +661,14 @@ public Response ListAllNextPage(string nextLink, strin } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ResourceNavigationLinksRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ResourceNavigationLinksRestOperations.cs index 92950530b8ce..0bd1557a582f 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ResourceNavigationLinksRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ResourceNavigationLinksRestOperations.cs @@ -37,6 +37,23 @@ public ResourceNavigationLinksRestOperations(HttpPipeline pipeline, string appli _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string virtualNetworkName, string subnetName) + { + 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.Network/virtualNetworks/", false); + uri.AppendPath(virtualNetworkName, true); + uri.AppendPath("/subnets/", false); + uri.AppendPath(subnetName, true); + uri.AppendPath("/ResourceNavigationLinks", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string virtualNetworkName, string subnetName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RouteFilterRulesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RouteFilterRulesRestOperations.cs index df5575b25c7c..d8f8ba82987d 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RouteFilterRulesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RouteFilterRulesRestOperations.cs @@ -37,6 +37,22 @@ public RouteFilterRulesRestOperations(HttpPipeline pipeline, string applicationI _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string routeFilterName, string ruleName) + { + 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.Network/routeFilters/", false); + uri.AppendPath(routeFilterName, true); + uri.AppendPath("/routeFilterRules/", false); + uri.AppendPath(ruleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string routeFilterName, string ruleName) { var message = _pipeline.CreateMessage(); @@ -115,6 +131,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string routeFilterName, string ruleName) + { + 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.Network/routeFilters/", false); + uri.AppendPath(routeFilterName, true); + uri.AppendPath("/routeFilterRules/", false); + uri.AppendPath(ruleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string routeFilterName, string ruleName) { var message = _pipeline.CreateMessage(); @@ -203,6 +235,22 @@ public Response Get(string subscriptionId, string resourceG } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string routeFilterName, string ruleName, RouteFilterRuleData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/routeFilters/", false); + uri.AppendPath(routeFilterName, true); + uri.AppendPath("/routeFilterRules/", false); + uri.AppendPath(ruleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string routeFilterName, string ruleName, RouteFilterRuleData data) { var message = _pipeline.CreateMessage(); @@ -287,6 +335,21 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateListByRouteFilterRequestUri(string subscriptionId, string resourceGroupName, string routeFilterName) + { + 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.Network/routeFilters/", false); + uri.AppendPath(routeFilterName, true); + uri.AppendPath("/routeFilterRules", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByRouteFilterRequest(string subscriptionId, string resourceGroupName, string routeFilterName) { var message = _pipeline.CreateMessage(); @@ -366,6 +429,14 @@ public Response ListByRouteFilter(string subscription } } + internal RequestUriBuilder CreateListByRouteFilterNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string routeFilterName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByRouteFilterNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string routeFilterName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RouteFiltersRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RouteFiltersRestOperations.cs index 2954985c8ec4..5f61f81e4f6f 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RouteFiltersRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RouteFiltersRestOperations.cs @@ -37,6 +37,20 @@ public RouteFiltersRestOperations(HttpPipeline pipeline, string applicationId, U _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string routeFilterName) + { + 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.Network/routeFilters/", false); + uri.AppendPath(routeFilterName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string routeFilterName) { var message = _pipeline.CreateMessage(); @@ -109,6 +123,24 @@ public Response Delete(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string routeFilterName, string expand) + { + 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.Network/routeFilters/", false); + uri.AppendPath(routeFilterName, true); + uri.AppendQuery("api-version", _apiVersion, true); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string routeFilterName, string expand) { var message = _pipeline.CreateMessage(); @@ -197,6 +229,20 @@ public Response Get(string subscriptionId, string resourceGroup } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string routeFilterName, RouteFilterData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/routeFilters/", false); + uri.AppendPath(routeFilterName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string routeFilterName, RouteFilterData data) { var message = _pipeline.CreateMessage(); @@ -275,6 +321,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateTagsRequestUri(string subscriptionId, string resourceGroupName, string routeFilterName, NetworkTagsObject networkTagsObject) + { + 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.Network/routeFilters/", false); + uri.AppendPath(routeFilterName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateTagsRequest(string subscriptionId, string resourceGroupName, string routeFilterName, NetworkTagsObject networkTagsObject) { var message = _pipeline.CreateMessage(); @@ -361,6 +421,19 @@ public Response UpdateTags(string subscriptionId, string resour } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.Network/routeFilters", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -434,6 +507,17 @@ public Response ListByResourceGroup(string subscriptionId } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Network/routeFilters", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -501,6 +585,14 @@ public Response List(string subscriptionId, CancellationT } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -573,6 +665,14 @@ public Response ListByResourceGroupNextPage(string nextLi } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RouteMapsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RouteMapsRestOperations.cs index 1aff7f988d1f..87314008103c 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RouteMapsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RouteMapsRestOperations.cs @@ -37,6 +37,22 @@ public RouteMapsRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string virtualHubName, string routeMapName) + { + 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.Network/virtualHubs/", false); + uri.AppendPath(virtualHubName, true); + uri.AppendPath("/routeMaps/", false); + uri.AppendPath(routeMapName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string virtualHubName, string routeMapName) { var message = _pipeline.CreateMessage(); @@ -125,6 +141,22 @@ public Response Get(string subscriptionId, string resourceGroupNam } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string virtualHubName, string routeMapName, RouteMapData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/virtualHubs/", false); + uri.AppendPath(virtualHubName, true); + uri.AppendPath("/routeMaps/", false); + uri.AppendPath(routeMapName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string virtualHubName, string routeMapName, RouteMapData data) { var message = _pipeline.CreateMessage(); @@ -209,6 +241,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string virtualHubName, string routeMapName) + { + 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.Network/virtualHubs/", false); + uri.AppendPath(virtualHubName, true); + uri.AppendPath("/routeMaps/", false); + uri.AppendPath(routeMapName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string virtualHubName, string routeMapName) { var message = _pipeline.CreateMessage(); @@ -287,6 +335,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string v } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string virtualHubName) + { + 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.Network/virtualHubs/", false); + uri.AppendPath(virtualHubName, true); + uri.AppendPath("/routeMaps", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string virtualHubName) { var message = _pipeline.CreateMessage(); @@ -366,6 +429,14 @@ public Response List(string subscriptionId, string resource } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string virtualHubName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string virtualHubName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RouteTablesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RouteTablesRestOperations.cs index d3e2bc8ef77a..ababc4f2fa5b 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RouteTablesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RouteTablesRestOperations.cs @@ -37,6 +37,20 @@ public RouteTablesRestOperations(HttpPipeline pipeline, string applicationId, Ur _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string routeTableName) + { + 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.Network/routeTables/", false); + uri.AppendPath(routeTableName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string routeTableName) { var message = _pipeline.CreateMessage(); @@ -109,6 +123,24 @@ public Response Delete(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string routeTableName, string expand) + { + 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.Network/routeTables/", false); + uri.AppendPath(routeTableName, true); + uri.AppendQuery("api-version", _apiVersion, true); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string routeTableName, string expand) { var message = _pipeline.CreateMessage(); @@ -197,6 +229,20 @@ public Response Get(string subscriptionId, string resourceGroupN } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string routeTableName, RouteTableData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/routeTables/", false); + uri.AppendPath(routeTableName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string routeTableName, RouteTableData data) { var message = _pipeline.CreateMessage(); @@ -275,6 +321,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateTagsRequestUri(string subscriptionId, string resourceGroupName, string routeTableName, NetworkTagsObject networkTagsObject) + { + 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.Network/routeTables/", false); + uri.AppendPath(routeTableName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateTagsRequest(string subscriptionId, string resourceGroupName, string routeTableName, NetworkTagsObject networkTagsObject) { var message = _pipeline.CreateMessage(); @@ -361,6 +421,19 @@ public Response UpdateTags(string subscriptionId, string resourc } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName) + { + 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.Network/routeTables", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -434,6 +507,17 @@ public Response List(string subscriptionId, string resourc } } + internal RequestUriBuilder CreateListAllRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Network/routeTables", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListAllRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -501,6 +585,14 @@ public Response ListAll(string subscriptionId, Cancellatio } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -573,6 +665,14 @@ public Response ListNextPage(string nextLink, string subsc } } + internal RequestUriBuilder CreateListAllNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListAllNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RoutesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RoutesRestOperations.cs index 6ce385aaa21c..1d8a820940e7 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RoutesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RoutesRestOperations.cs @@ -37,6 +37,22 @@ public RoutesRestOperations(HttpPipeline pipeline, string applicationId, Uri end _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string routeTableName, string routeName) + { + 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.Network/routeTables/", false); + uri.AppendPath(routeTableName, true); + uri.AppendPath("/routes/", false); + uri.AppendPath(routeName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string routeTableName, string routeName) { var message = _pipeline.CreateMessage(); @@ -115,6 +131,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string routeTableName, string routeName) + { + 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.Network/routeTables/", false); + uri.AppendPath(routeTableName, true); + uri.AppendPath("/routes/", false); + uri.AppendPath(routeName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string routeTableName, string routeName) { var message = _pipeline.CreateMessage(); @@ -203,6 +235,22 @@ public Response Get(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string routeTableName, string routeName, RouteData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/routeTables/", false); + uri.AppendPath(routeTableName, true); + uri.AppendPath("/routes/", false); + uri.AppendPath(routeName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string routeTableName, string routeName, RouteData data) { var message = _pipeline.CreateMessage(); @@ -287,6 +335,21 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string routeTableName) + { + 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.Network/routeTables/", false); + uri.AppendPath(routeTableName, true); + uri.AppendPath("/routes", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string routeTableName) { var message = _pipeline.CreateMessage(); @@ -366,6 +429,14 @@ public Response List(string subscriptionId, string resourceGrou } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string routeTableName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string routeTableName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RoutingIntentRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RoutingIntentRestOperations.cs index b4a6824cf903..c6486726ce90 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RoutingIntentRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RoutingIntentRestOperations.cs @@ -37,6 +37,22 @@ public RoutingIntentRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string virtualHubName, string routingIntentName, RoutingIntentData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/virtualHubs/", false); + uri.AppendPath(virtualHubName, true); + uri.AppendPath("/routingIntent/", false); + uri.AppendPath(routingIntentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string virtualHubName, string routingIntentName, RoutingIntentData data) { var message = _pipeline.CreateMessage(); @@ -121,6 +137,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string virtualHubName, string routingIntentName) + { + 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.Network/virtualHubs/", false); + uri.AppendPath(virtualHubName, true); + uri.AppendPath("/routingIntent/", false); + uri.AppendPath(routingIntentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string virtualHubName, string routingIntentName) { var message = _pipeline.CreateMessage(); @@ -209,6 +241,22 @@ public Response Get(string subscriptionId, string resourceGro } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string virtualHubName, string routingIntentName) + { + 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.Network/virtualHubs/", false); + uri.AppendPath(virtualHubName, true); + uri.AppendPath("/routingIntent/", false); + uri.AppendPath(routingIntentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string virtualHubName, string routingIntentName) { var message = _pipeline.CreateMessage(); @@ -287,6 +335,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string v } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string virtualHubName) + { + 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.Network/virtualHubs/", false); + uri.AppendPath(virtualHubName, true); + uri.AppendPath("/routingIntent", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string virtualHubName) { var message = _pipeline.CreateMessage(); @@ -366,6 +429,14 @@ public Response List(string subscriptionId, string reso } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string virtualHubName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string virtualHubName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ScopeConnectionsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ScopeConnectionsRestOperations.cs index 807f2485d7a3..327dc9e8777b 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ScopeConnectionsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ScopeConnectionsRestOperations.cs @@ -37,6 +37,22 @@ public ScopeConnectionsRestOperations(HttpPipeline pipeline, string applicationI _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string networkManagerName, string scopeConnectionName, ScopeConnectionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/scopeConnections/", false); + uri.AppendPath(scopeConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string networkManagerName, string scopeConnectionName, ScopeConnectionData data) { var message = _pipeline.CreateMessage(); @@ -131,6 +147,22 @@ public Response CreateOrUpdate(string subscriptionId, strin } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string networkManagerName, string scopeConnectionName) + { + 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.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/scopeConnections/", false); + uri.AppendPath(scopeConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string networkManagerName, string scopeConnectionName) { var message = _pipeline.CreateMessage(); @@ -219,6 +251,22 @@ public Response Get(string subscriptionId, string resourceG } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string networkManagerName, string scopeConnectionName) + { + 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.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/scopeConnections/", false); + uri.AppendPath(scopeConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string networkManagerName, string scopeConnectionName) { var message = _pipeline.CreateMessage(); @@ -295,6 +343,29 @@ public Response Delete(string subscriptionId, string resourceGroupName, string n } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string networkManagerName, int? top, string skipToken) + { + 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.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/scopeConnections", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string networkManagerName, int? top, string skipToken) { var message = _pipeline.CreateMessage(); @@ -386,6 +457,14 @@ public Response List(string subscriptionId, string re } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string networkManagerName, int? top, string skipToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string networkManagerName, int? top, string skipToken) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SecurityAdminConfigurationsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SecurityAdminConfigurationsRestOperations.cs index 4cf6493dda95..adefd3986926 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SecurityAdminConfigurationsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SecurityAdminConfigurationsRestOperations.cs @@ -37,6 +37,29 @@ public SecurityAdminConfigurationsRestOperations(HttpPipeline pipeline, string a _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string networkManagerName, int? top, string skipToken) + { + 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.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/securityAdminConfigurations", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string networkManagerName, int? top, string skipToken) { var message = _pipeline.CreateMessage(); @@ -128,6 +151,22 @@ public Response List(string subscriptionId } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName) + { + 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.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/securityAdminConfigurations/", false); + uri.AppendPath(configurationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName) { var message = _pipeline.CreateMessage(); @@ -216,6 +255,22 @@ public Response Get(string subscriptionId, strin } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, SecurityAdminConfigurationData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/securityAdminConfigurations/", false); + uri.AppendPath(configurationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, SecurityAdminConfigurationData data) { var message = _pipeline.CreateMessage(); @@ -310,6 +365,26 @@ public Response CreateOrUpdate(string subscripti } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, bool? force) + { + 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.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/securityAdminConfigurations/", false); + uri.AppendPath(configurationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + if (force != null) + { + uri.AppendQuery("force", force.Value, true); + } + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string networkManagerName, string configurationName, bool? force) { var message = _pipeline.CreateMessage(); @@ -394,6 +469,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string n } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string networkManagerName, int? top, string skipToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string networkManagerName, int? top, string skipToken) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SecurityPartnerProvidersRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SecurityPartnerProvidersRestOperations.cs index 928af381a622..d4e7e6cc672b 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SecurityPartnerProvidersRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SecurityPartnerProvidersRestOperations.cs @@ -37,6 +37,20 @@ public SecurityPartnerProvidersRestOperations(HttpPipeline pipeline, string appl _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string securityPartnerProviderName) + { + 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.Network/securityPartnerProviders/", false); + uri.AppendPath(securityPartnerProviderName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string securityPartnerProviderName) { var message = _pipeline.CreateMessage(); @@ -109,6 +123,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string securityPartnerProviderName) + { + 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.Network/securityPartnerProviders/", false); + uri.AppendPath(securityPartnerProviderName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string securityPartnerProviderName) { var message = _pipeline.CreateMessage(); @@ -191,6 +219,20 @@ public Response Get(string subscriptionId, string r } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string securityPartnerProviderName, SecurityPartnerProviderData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/securityPartnerProviders/", false); + uri.AppendPath(securityPartnerProviderName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string securityPartnerProviderName, SecurityPartnerProviderData data) { var message = _pipeline.CreateMessage(); @@ -269,6 +311,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateTagsRequestUri(string subscriptionId, string resourceGroupName, string securityPartnerProviderName, NetworkTagsObject networkTagsObject) + { + 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.Network/securityPartnerProviders/", false); + uri.AppendPath(securityPartnerProviderName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateTagsRequest(string subscriptionId, string resourceGroupName, string securityPartnerProviderName, NetworkTagsObject networkTagsObject) { var message = _pipeline.CreateMessage(); @@ -355,6 +411,19 @@ public Response UpdateTags(string subscriptionId, s } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.Network/securityPartnerProviders", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -428,6 +497,17 @@ public Response ListByResourceGroup(string su } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Network/securityPartnerProviders", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -495,6 +575,14 @@ public Response List(string subscriptionId, C } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -567,6 +655,14 @@ public Response ListByResourceGroupNextPage(s } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SecurityRulesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SecurityRulesRestOperations.cs index c6cc8ca09aea..189b9e7396f3 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SecurityRulesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SecurityRulesRestOperations.cs @@ -37,6 +37,22 @@ public SecurityRulesRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string networkSecurityGroupName, string securityRuleName) + { + 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.Network/networkSecurityGroups/", false); + uri.AppendPath(networkSecurityGroupName, true); + uri.AppendPath("/securityRules/", false); + uri.AppendPath(securityRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string networkSecurityGroupName, string securityRuleName) { var message = _pipeline.CreateMessage(); @@ -115,6 +131,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string n } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string networkSecurityGroupName, string securityRuleName) + { + 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.Network/networkSecurityGroups/", false); + uri.AppendPath(networkSecurityGroupName, true); + uri.AppendPath("/securityRules/", false); + uri.AppendPath(securityRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string networkSecurityGroupName, string securityRuleName) { var message = _pipeline.CreateMessage(); @@ -203,6 +235,22 @@ public Response Get(string subscriptionId, string resourceGrou } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string networkSecurityGroupName, string securityRuleName, SecurityRuleData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkSecurityGroups/", false); + uri.AppendPath(networkSecurityGroupName, true); + uri.AppendPath("/securityRules/", false); + uri.AppendPath(securityRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string networkSecurityGroupName, string securityRuleName, SecurityRuleData data) { var message = _pipeline.CreateMessage(); @@ -287,6 +335,21 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string networkSecurityGroupName) + { + 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.Network/networkSecurityGroups/", false); + uri.AppendPath(networkSecurityGroupName, true); + uri.AppendPath("/securityRules", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string networkSecurityGroupName) { var message = _pipeline.CreateMessage(); @@ -366,6 +429,14 @@ public Response List(string subscriptionId, string resou } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string networkSecurityGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string networkSecurityGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ServiceAssociationLinksRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ServiceAssociationLinksRestOperations.cs index b1427c9287ba..f7e556fb8213 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ServiceAssociationLinksRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ServiceAssociationLinksRestOperations.cs @@ -37,6 +37,23 @@ public ServiceAssociationLinksRestOperations(HttpPipeline pipeline, string appli _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string virtualNetworkName, string subnetName) + { + 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.Network/virtualNetworks/", false); + uri.AppendPath(virtualNetworkName, true); + uri.AppendPath("/subnets/", false); + uri.AppendPath(subnetName, true); + uri.AppendPath("/ServiceAssociationLinks", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string virtualNetworkName, string subnetName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ServiceEndpointPoliciesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ServiceEndpointPoliciesRestOperations.cs index 0787c0313248..d3ec9d53ee8c 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ServiceEndpointPoliciesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ServiceEndpointPoliciesRestOperations.cs @@ -37,6 +37,20 @@ public ServiceEndpointPoliciesRestOperations(HttpPipeline pipeline, string appli _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string serviceEndpointPolicyName) + { + 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.Network/serviceEndpointPolicies/", false); + uri.AppendPath(serviceEndpointPolicyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string serviceEndpointPolicyName) { var message = _pipeline.CreateMessage(); @@ -109,6 +123,24 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serviceEndpointPolicyName, string expand) + { + 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.Network/serviceEndpointPolicies/", false); + uri.AppendPath(serviceEndpointPolicyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serviceEndpointPolicyName, string expand) { var message = _pipeline.CreateMessage(); @@ -197,6 +229,20 @@ public Response Get(string subscriptionId, string res } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serviceEndpointPolicyName, ServiceEndpointPolicyData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/serviceEndpointPolicies/", false); + uri.AppendPath(serviceEndpointPolicyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serviceEndpointPolicyName, ServiceEndpointPolicyData data) { var message = _pipeline.CreateMessage(); @@ -275,6 +321,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateTagsRequestUri(string subscriptionId, string resourceGroupName, string serviceEndpointPolicyName, NetworkTagsObject networkTagsObject) + { + 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.Network/serviceEndpointPolicies/", false); + uri.AppendPath(serviceEndpointPolicyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateTagsRequest(string subscriptionId, string resourceGroupName, string serviceEndpointPolicyName, NetworkTagsObject networkTagsObject) { var message = _pipeline.CreateMessage(); @@ -361,6 +421,17 @@ public Response UpdateTags(string subscriptionId, str } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Network/ServiceEndpointPolicies", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -428,6 +499,19 @@ public Response List(string subscriptionId, Can } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.Network/serviceEndpointPolicies", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -501,6 +585,14 @@ public Response ListByResourceGroup(string subs } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -569,6 +661,14 @@ public Response ListNextPage(string nextLink, s } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ServiceEndpointPolicyDefinitionsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ServiceEndpointPolicyDefinitionsRestOperations.cs index dc0dc06e923e..6e8bc3142877 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ServiceEndpointPolicyDefinitionsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ServiceEndpointPolicyDefinitionsRestOperations.cs @@ -37,6 +37,22 @@ public ServiceEndpointPolicyDefinitionsRestOperations(HttpPipeline pipeline, str _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string serviceEndpointPolicyName, string serviceEndpointPolicyDefinitionName) + { + 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.Network/serviceEndpointPolicies/", false); + uri.AppendPath(serviceEndpointPolicyName, true); + uri.AppendPath("/serviceEndpointPolicyDefinitions/", false); + uri.AppendPath(serviceEndpointPolicyDefinitionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string serviceEndpointPolicyName, string serviceEndpointPolicyDefinitionName) { var message = _pipeline.CreateMessage(); @@ -115,6 +131,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serviceEndpointPolicyName, string serviceEndpointPolicyDefinitionName) + { + 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.Network/serviceEndpointPolicies/", false); + uri.AppendPath(serviceEndpointPolicyName, true); + uri.AppendPath("/serviceEndpointPolicyDefinitions/", false); + uri.AppendPath(serviceEndpointPolicyDefinitionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serviceEndpointPolicyName, string serviceEndpointPolicyDefinitionName) { var message = _pipeline.CreateMessage(); @@ -203,6 +235,22 @@ public Response Get(string subscriptionId, } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serviceEndpointPolicyName, string serviceEndpointPolicyDefinitionName, ServiceEndpointPolicyDefinitionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/serviceEndpointPolicies/", false); + uri.AppendPath(serviceEndpointPolicyName, true); + uri.AppendPath("/serviceEndpointPolicyDefinitions/", false); + uri.AppendPath(serviceEndpointPolicyDefinitionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serviceEndpointPolicyName, string serviceEndpointPolicyDefinitionName, ServiceEndpointPolicyDefinitionData data) { var message = _pipeline.CreateMessage(); @@ -287,6 +335,21 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName, string serviceEndpointPolicyName) + { + 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.Network/serviceEndpointPolicies/", false); + uri.AppendPath(serviceEndpointPolicyName, true); + uri.AppendPath("/serviceEndpointPolicyDefinitions", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName, string serviceEndpointPolicyName) { var message = _pipeline.CreateMessage(); @@ -366,6 +429,14 @@ public Response ListByResourceGroup(s } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serviceEndpointPolicyName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serviceEndpointPolicyName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ServiceTagInformationRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ServiceTagInformationRestOperations.cs index 9caa027c4025..25463064d5fe 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ServiceTagInformationRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ServiceTagInformationRestOperations.cs @@ -37,6 +37,27 @@ public ServiceTagInformationRestOperations(HttpPipeline pipeline, string applica _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, AzureLocation location, bool? noAddressPrefixes, string tagName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Network/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/serviceTagDetails", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (noAddressPrefixes != null) + { + uri.AppendQuery("noAddressPrefixes", noAddressPrefixes.Value, true); + } + if (tagName != null) + { + uri.AppendQuery("tagName", tagName, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, AzureLocation location, bool? noAddressPrefixes, string tagName) { var message = _pipeline.CreateMessage(); @@ -120,6 +141,14 @@ public Response List(string subscriptionId, Azu } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, AzureLocation location, bool? noAddressPrefixes, string tagName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, AzureLocation location, bool? noAddressPrefixes, string tagName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ServiceTagsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ServiceTagsRestOperations.cs index 35bdf87b9f17..9a792ed9feff 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ServiceTagsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ServiceTagsRestOperations.cs @@ -37,6 +37,19 @@ public ServiceTagsRestOperations(HttpPipeline pipeline, string applicationId, Ur _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, AzureLocation location) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Network/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/serviceTags", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, AzureLocation location) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/StaticMembersRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/StaticMembersRestOperations.cs index d31041121ef8..8706feef10b6 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/StaticMembersRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/StaticMembersRestOperations.cs @@ -37,6 +37,24 @@ public StaticMembersRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string networkManagerName, string networkGroupName, string staticMemberName) + { + 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.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/networkGroups/", false); + uri.AppendPath(networkGroupName, true); + uri.AppendPath("/staticMembers/", false); + uri.AppendPath(staticMemberName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string networkManagerName, string networkGroupName, string staticMemberName) { var message = _pipeline.CreateMessage(); @@ -131,6 +149,24 @@ public Response Get(string subscriptionId, string } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string networkManagerName, string networkGroupName, string staticMemberName, NetworkGroupStaticMemberData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/networkGroups/", false); + uri.AppendPath(networkGroupName, true); + uri.AppendPath("/staticMembers/", false); + uri.AppendPath(staticMemberName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string networkManagerName, string networkGroupName, string staticMemberName, NetworkGroupStaticMemberData data) { var message = _pipeline.CreateMessage(); @@ -231,6 +267,24 @@ public Response CreateOrUpdate(string subscription } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string networkManagerName, string networkGroupName, string staticMemberName) + { + 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.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/networkGroups/", false); + uri.AppendPath(networkGroupName, true); + uri.AppendPath("/staticMembers/", false); + uri.AppendPath(staticMemberName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string networkManagerName, string networkGroupName, string staticMemberName) { var message = _pipeline.CreateMessage(); @@ -313,6 +367,31 @@ public Response Delete(string subscriptionId, string resourceGroupName, string n } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string networkManagerName, string networkGroupName, int? top, string skipToken) + { + 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.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/networkGroups/", false); + uri.AppendPath(networkGroupName, true); + uri.AppendPath("/staticMembers", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string networkManagerName, string networkGroupName, int? top, string skipToken) { var message = _pipeline.CreateMessage(); @@ -410,6 +489,14 @@ public Response List(string subscriptionId, } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string networkManagerName, string networkGroupName, int? top, string skipToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string networkManagerName, string networkGroupName, int? top, string skipToken) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SubnetsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SubnetsRestOperations.cs index 55c82c1c7890..75b2a8c1bbdf 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SubnetsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SubnetsRestOperations.cs @@ -37,6 +37,22 @@ public SubnetsRestOperations(HttpPipeline pipeline, string applicationId, Uri en _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string virtualNetworkName, string subnetName) + { + 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.Network/virtualNetworks/", false); + uri.AppendPath(virtualNetworkName, true); + uri.AppendPath("/subnets/", false); + uri.AppendPath(subnetName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string virtualNetworkName, string subnetName) { var message = _pipeline.CreateMessage(); @@ -115,6 +131,26 @@ public Response Delete(string subscriptionId, string resourceGroupName, string v } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string virtualNetworkName, string subnetName, string expand) + { + 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.Network/virtualNetworks/", false); + uri.AppendPath(virtualNetworkName, true); + uri.AppendPath("/subnets/", false); + uri.AppendPath(subnetName, true); + uri.AppendQuery("api-version", _apiVersion, true); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string virtualNetworkName, string subnetName, string expand) { var message = _pipeline.CreateMessage(); @@ -209,6 +245,22 @@ public Response Get(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string virtualNetworkName, string subnetName, SubnetData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/virtualNetworks/", false); + uri.AppendPath(virtualNetworkName, true); + uri.AppendPath("/subnets/", false); + uri.AppendPath(subnetName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string virtualNetworkName, string subnetName, SubnetData data) { var message = _pipeline.CreateMessage(); @@ -293,6 +345,23 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreatePrepareNetworkPoliciesRequestUri(string subscriptionId, string resourceGroupName, string virtualNetworkName, string subnetName, PrepareNetworkPoliciesContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/virtualNetworks/", false); + uri.AppendPath(virtualNetworkName, true); + uri.AppendPath("/subnets/", false); + uri.AppendPath(subnetName, true); + uri.AppendPath("/PrepareNetworkPolicies", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreatePrepareNetworkPoliciesRequest(string subscriptionId, string resourceGroupName, string virtualNetworkName, string subnetName, PrepareNetworkPoliciesContent content) { var message = _pipeline.CreateMessage(); @@ -378,6 +447,23 @@ public Response PrepareNetworkPolicies(string subscriptionId, string resourceGro } } + internal RequestUriBuilder CreateUnprepareNetworkPoliciesRequestUri(string subscriptionId, string resourceGroupName, string virtualNetworkName, string subnetName, UnprepareNetworkPoliciesContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/virtualNetworks/", false); + uri.AppendPath(virtualNetworkName, true); + uri.AppendPath("/subnets/", false); + uri.AppendPath(subnetName, true); + uri.AppendPath("/UnprepareNetworkPolicies", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUnprepareNetworkPoliciesRequest(string subscriptionId, string resourceGroupName, string virtualNetworkName, string subnetName, UnprepareNetworkPoliciesContent content) { var message = _pipeline.CreateMessage(); @@ -463,6 +549,21 @@ public Response UnprepareNetworkPolicies(string subscriptionId, string resourceG } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string virtualNetworkName) + { + 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.Network/virtualNetworks/", false); + uri.AppendPath(virtualNetworkName, true); + uri.AppendPath("/subnets", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string virtualNetworkName) { var message = _pipeline.CreateMessage(); @@ -542,6 +643,14 @@ public Response List(string subscriptionId, string resourceGro } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string virtualNetworkName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string virtualNetworkName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SubscriptionNetworkManagerConnectionsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SubscriptionNetworkManagerConnectionsRestOperations.cs index 7e8e95124847..90b6c4d76afe 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SubscriptionNetworkManagerConnectionsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SubscriptionNetworkManagerConnectionsRestOperations.cs @@ -37,6 +37,18 @@ public SubscriptionNetworkManagerConnectionsRestOperations(HttpPipeline pipeline _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string networkManagerConnectionName, NetworkManagerConnectionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Network/networkManagerConnections/", false); + uri.AppendPath(networkManagerConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string networkManagerConnectionName, NetworkManagerConnectionData data) { var message = _pipeline.CreateMessage(); @@ -119,6 +131,18 @@ public Response CreateOrUpdate(string subscription } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string networkManagerConnectionName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Network/networkManagerConnections/", false); + uri.AppendPath(networkManagerConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string networkManagerConnectionName) { var message = _pipeline.CreateMessage(); @@ -195,6 +219,18 @@ public Response Get(string subscriptionId, string } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string networkManagerConnectionName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Network/networkManagerConnections/", false); + uri.AppendPath(networkManagerConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string networkManagerConnectionName) { var message = _pipeline.CreateMessage(); @@ -259,6 +295,25 @@ public Response Delete(string subscriptionId, string networkManagerConnectionNam } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, int? top, string skipToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Network/networkManagerConnections", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, int? top, string skipToken) { var message = _pipeline.CreateMessage(); @@ -338,6 +393,14 @@ public Response List(string subscriptionId, } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, int? top, string skipToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, int? top, string skipToken) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/UsagesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/UsagesRestOperations.cs index 44442b04539b..2fe810ee24c3 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/UsagesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/UsagesRestOperations.cs @@ -37,6 +37,19 @@ public UsagesRestOperations(HttpPipeline pipeline, string applicationId, Uri end _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, AzureLocation location) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Network/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/usages", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, AzureLocation location) { var message = _pipeline.CreateMessage(); @@ -108,6 +121,14 @@ public Response List(string subscriptionId, AzureLocati } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, AzureLocation location) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, AzureLocation location) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VipSwapRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VipSwapRestOperations.cs index aa47d988f183..c5fbba8ade1d 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VipSwapRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VipSwapRestOperations.cs @@ -37,6 +37,22 @@ public VipSwapRestOperations(HttpPipeline pipeline, string applicationId, Uri en _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string groupName, string resourceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(groupName, true); + uri.AppendPath("/providers/Microsoft.Compute/cloudServices/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/providers/Microsoft.Network/cloudServiceSlots/", false); + uri.AppendPath("swap", true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string groupName, string resourceName) { var message = _pipeline.CreateMessage(); @@ -121,6 +137,22 @@ public Response Get(string subscriptionId, string groupNam } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string groupName, string resourceName, CloudServiceSwapData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(groupName, true); + uri.AppendPath("/providers/Microsoft.Compute/cloudServices/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/providers/Microsoft.Network/cloudServiceSlots/", false); + uri.AppendPath("swap", true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string groupName, string resourceName, CloudServiceSwapData data) { var message = _pipeline.CreateMessage(); @@ -201,6 +233,21 @@ public Response Create(string subscriptionId, string groupName, string resourceN } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string groupName, string resourceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(groupName, true); + uri.AppendPath("/providers/Microsoft.Compute/cloudServices/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/providers/Microsoft.Network/cloudServiceSlots", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string groupName, string resourceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualApplianceSitesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualApplianceSitesRestOperations.cs index bc4305635e10..003276787f3e 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualApplianceSitesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualApplianceSitesRestOperations.cs @@ -37,6 +37,22 @@ public VirtualApplianceSitesRestOperations(HttpPipeline pipeline, string applica _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string networkVirtualApplianceName, string siteName) + { + 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.Network/networkVirtualAppliances/", false); + uri.AppendPath(networkVirtualApplianceName, true); + uri.AppendPath("/virtualApplianceSites/", false); + uri.AppendPath(siteName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string networkVirtualApplianceName, string siteName) { var message = _pipeline.CreateMessage(); @@ -115,6 +131,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string n } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string networkVirtualApplianceName, string siteName) + { + 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.Network/networkVirtualAppliances/", false); + uri.AppendPath(networkVirtualApplianceName, true); + uri.AppendPath("/virtualApplianceSites/", false); + uri.AppendPath(siteName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string networkVirtualApplianceName, string siteName) { var message = _pipeline.CreateMessage(); @@ -203,6 +235,22 @@ public Response Get(string subscriptionId, string reso } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string networkVirtualApplianceName, string siteName, VirtualApplianceSiteData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkVirtualAppliances/", false); + uri.AppendPath(networkVirtualApplianceName, true); + uri.AppendPath("/virtualApplianceSites/", false); + uri.AppendPath(siteName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string networkVirtualApplianceName, string siteName, VirtualApplianceSiteData data) { var message = _pipeline.CreateMessage(); @@ -287,6 +335,21 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string networkVirtualApplianceName) + { + 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.Network/networkVirtualAppliances/", false); + uri.AppendPath(networkVirtualApplianceName, true); + uri.AppendPath("/virtualApplianceSites", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string networkVirtualApplianceName) { var message = _pipeline.CreateMessage(); @@ -366,6 +429,14 @@ public Response List(string subscriptionI } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string networkVirtualApplianceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string networkVirtualApplianceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualApplianceSkusRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualApplianceSkusRestOperations.cs index d01fe609735d..8e4de3be92c2 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualApplianceSkusRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualApplianceSkusRestOperations.cs @@ -37,6 +37,17 @@ public VirtualApplianceSkusRestOperations(HttpPipeline pipeline, string applicat _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Network/networkVirtualApplianceSkus", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,18 @@ public Response List(string subscriptionId } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string skuName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Network/networkVirtualApplianceSkus/", false); + uri.AppendPath(skuName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string skuName) { var message = _pipeline.CreateMessage(); @@ -180,6 +203,14 @@ public Response Get(string subscriptionId, strin } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualHubBgpConnectionRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualHubBgpConnectionRestOperations.cs index b47a1d2c6c11..79162e58e10f 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualHubBgpConnectionRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualHubBgpConnectionRestOperations.cs @@ -36,6 +36,22 @@ public VirtualHubBgpConnectionRestOperations(HttpPipeline pipeline, string appli _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string virtualHubName, string connectionName) + { + 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.Network/virtualHubs/", false); + uri.AppendPath(virtualHubName, true); + uri.AppendPath("/bgpConnections/", false); + uri.AppendPath(connectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string virtualHubName, string connectionName) { var message = _pipeline.CreateMessage(); @@ -124,6 +140,22 @@ public Response Get(string subscriptionId, string resourceGro } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string virtualHubName, string connectionName, BgpConnectionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/virtualHubs/", false); + uri.AppendPath(virtualHubName, true); + uri.AppendPath("/bgpConnections/", false); + uri.AppendPath(connectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string virtualHubName, string connectionName, BgpConnectionData data) { var message = _pipeline.CreateMessage(); @@ -208,6 +240,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string virtualHubName, string connectionName) + { + 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.Network/virtualHubs/", false); + uri.AppendPath(virtualHubName, true); + uri.AppendPath("/bgpConnections/", false); + uri.AppendPath(connectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string virtualHubName, string connectionName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualHubBgpConnectionsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualHubBgpConnectionsRestOperations.cs index 9bc16277058c..e7a6a01ecb0d 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualHubBgpConnectionsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualHubBgpConnectionsRestOperations.cs @@ -37,6 +37,21 @@ public VirtualHubBgpConnectionsRestOperations(HttpPipeline pipeline, string appl _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string virtualHubName) + { + 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.Network/virtualHubs/", false); + uri.AppendPath(virtualHubName, true); + uri.AppendPath("/bgpConnections", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string virtualHubName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,23 @@ public Response List(string subscriptionId, } } + internal RequestUriBuilder CreateListLearnedRoutesRequestUri(string subscriptionId, string resourceGroupName, string hubName, string connectionName) + { + 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.Network/virtualHubs/", false); + uri.AppendPath(hubName, true); + uri.AppendPath("/bgpConnections/", false); + uri.AppendPath(connectionName, true); + uri.AppendPath("/learnedRoutes", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListLearnedRoutesRequest(string subscriptionId, string resourceGroupName, string hubName, string connectionName) { var message = _pipeline.CreateMessage(); @@ -193,6 +225,23 @@ public Response ListLearnedRoutes(string subscriptionId, string resourceGroupNam } } + internal RequestUriBuilder CreateListAdvertisedRoutesRequestUri(string subscriptionId, string resourceGroupName, string hubName, string connectionName) + { + 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.Network/virtualHubs/", false); + uri.AppendPath(hubName, true); + uri.AppendPath("/bgpConnections/", false); + uri.AppendPath(connectionName, true); + uri.AppendPath("/advertisedRoutes", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListAdvertisedRoutesRequest(string subscriptionId, string resourceGroupName, string hubName, string connectionName) { var message = _pipeline.CreateMessage(); @@ -270,6 +319,14 @@ public Response ListAdvertisedRoutes(string subscriptionId, string resourceGroup } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string virtualHubName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string virtualHubName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualHubIpConfigurationRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualHubIpConfigurationRestOperations.cs index 95882a3d86ca..ba42d48bcfb5 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualHubIpConfigurationRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualHubIpConfigurationRestOperations.cs @@ -37,6 +37,22 @@ public VirtualHubIpConfigurationRestOperations(HttpPipeline pipeline, string app _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string virtualHubName, string ipConfigName) + { + 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.Network/virtualHubs/", false); + uri.AppendPath(virtualHubName, true); + uri.AppendPath("/ipConfigurations/", false); + uri.AppendPath(ipConfigName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string virtualHubName, string ipConfigName) { var message = _pipeline.CreateMessage(); @@ -125,6 +141,22 @@ public Response Get(string subscriptionId, string resour } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string virtualHubName, string ipConfigName, HubIPConfigurationData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/virtualHubs/", false); + uri.AppendPath(virtualHubName, true); + uri.AppendPath("/ipConfigurations/", false); + uri.AppendPath(ipConfigName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string virtualHubName, string ipConfigName, HubIPConfigurationData data) { var message = _pipeline.CreateMessage(); @@ -209,6 +241,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string virtualHubName, string ipConfigName) + { + 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.Network/virtualHubs/", false); + uri.AppendPath(virtualHubName, true); + uri.AppendPath("/ipConfigurations/", false); + uri.AppendPath(ipConfigName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string virtualHubName, string ipConfigName) { var message = _pipeline.CreateMessage(); @@ -287,6 +335,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string v } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string virtualHubName) + { + 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.Network/virtualHubs/", false); + uri.AppendPath(virtualHubName, true); + uri.AppendPath("/ipConfigurations", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string virtualHubName) { var message = _pipeline.CreateMessage(); @@ -366,6 +429,14 @@ public Response List(string subscriptionId } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string virtualHubName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string virtualHubName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualHubRouteTableV2SRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualHubRouteTableV2SRestOperations.cs index 9dc63104043f..4677cd2a2c30 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualHubRouteTableV2SRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualHubRouteTableV2SRestOperations.cs @@ -37,6 +37,22 @@ public VirtualHubRouteTableV2SRestOperations(HttpPipeline pipeline, string appli _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string virtualHubName, string routeTableName) + { + 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.Network/virtualHubs/", false); + uri.AppendPath(virtualHubName, true); + uri.AppendPath("/routeTables/", false); + uri.AppendPath(routeTableName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string virtualHubName, string routeTableName) { var message = _pipeline.CreateMessage(); @@ -125,6 +141,22 @@ public Response Get(string subscriptionId, string re } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string virtualHubName, string routeTableName, VirtualHubRouteTableV2Data data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/virtualHubs/", false); + uri.AppendPath(virtualHubName, true); + uri.AppendPath("/routeTables/", false); + uri.AppendPath(routeTableName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string virtualHubName, string routeTableName, VirtualHubRouteTableV2Data data) { var message = _pipeline.CreateMessage(); @@ -209,6 +241,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string virtualHubName, string routeTableName) + { + 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.Network/virtualHubs/", false); + uri.AppendPath(virtualHubName, true); + uri.AppendPath("/routeTables/", false); + uri.AppendPath(routeTableName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string virtualHubName, string routeTableName) { var message = _pipeline.CreateMessage(); @@ -287,6 +335,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string v } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string virtualHubName) + { + 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.Network/virtualHubs/", false); + uri.AppendPath(virtualHubName, true); + uri.AppendPath("/routeTables", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string virtualHubName) { var message = _pipeline.CreateMessage(); @@ -366,6 +429,14 @@ public Response List(string subscriptionId, s } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string virtualHubName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string virtualHubName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualHubsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualHubsRestOperations.cs index 36eae0c73511..fa982c847e8e 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualHubsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualHubsRestOperations.cs @@ -37,6 +37,20 @@ public VirtualHubsRestOperations(HttpPipeline pipeline, string applicationId, Ur _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string virtualHubName) + { + 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.Network/virtualHubs/", false); + uri.AppendPath(virtualHubName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string virtualHubName) { var message = _pipeline.CreateMessage(); @@ -119,6 +133,20 @@ public Response Get(string subscriptionId, string resourceGroupN } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string virtualHubName, VirtualHubData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/virtualHubs/", false); + uri.AppendPath(virtualHubName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string virtualHubName, VirtualHubData data) { var message = _pipeline.CreateMessage(); @@ -197,6 +225,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateTagsRequestUri(string subscriptionId, string resourceGroupName, string virtualHubName, NetworkTagsObject virtualHubParameters) + { + 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.Network/virtualHubs/", false); + uri.AppendPath(virtualHubName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateTagsRequest(string subscriptionId, string resourceGroupName, string virtualHubName, NetworkTagsObject virtualHubParameters) { var message = _pipeline.CreateMessage(); @@ -283,6 +325,20 @@ public Response UpdateTags(string subscriptionId, string resourc } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string virtualHubName) + { + 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.Network/virtualHubs/", false); + uri.AppendPath(virtualHubName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string virtualHubName) { var message = _pipeline.CreateMessage(); @@ -355,6 +411,19 @@ public Response Delete(string subscriptionId, string resourceGroupName, string v } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.Network/virtualHubs", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -428,6 +497,17 @@ public Response ListByResourceGroup(string subscriptionId } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Network/virtualHubs", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -495,6 +575,21 @@ public Response List(string subscriptionId, CancellationT } } + internal RequestUriBuilder CreateGetEffectiveVirtualHubRoutesRequestUri(string subscriptionId, string resourceGroupName, string virtualHubName, EffectiveRoutesContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/virtualHubs/", false); + uri.AppendPath(virtualHubName, true); + uri.AppendPath("/effectiveRoutes", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetEffectiveVirtualHubRoutesRequest(string subscriptionId, string resourceGroupName, string virtualHubName, EffectiveRoutesContent content) { var message = _pipeline.CreateMessage(); @@ -575,6 +670,21 @@ public Response GetEffectiveVirtualHubRoutes(string subscriptionId, string resou } } + internal RequestUriBuilder CreateGetInboundRoutesRequestUri(string subscriptionId, string resourceGroupName, string virtualHubName, VirtualHubInboundRoutesContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/virtualHubs/", false); + uri.AppendPath(virtualHubName, true); + uri.AppendPath("/inboundRoutes", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetInboundRoutesRequest(string subscriptionId, string resourceGroupName, string virtualHubName, VirtualHubInboundRoutesContent content) { var message = _pipeline.CreateMessage(); @@ -654,6 +764,21 @@ public Response GetInboundRoutes(string subscriptionId, string resourceGroupName } } + internal RequestUriBuilder CreateGetOutboundRoutesRequestUri(string subscriptionId, string resourceGroupName, string virtualHubName, VirtualHubOutboundRoutesContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/virtualHubs/", false); + uri.AppendPath(virtualHubName, true); + uri.AppendPath("/outboundRoutes", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetOutboundRoutesRequest(string subscriptionId, string resourceGroupName, string virtualHubName, VirtualHubOutboundRoutesContent content) { var message = _pipeline.CreateMessage(); @@ -733,6 +858,14 @@ public Response GetOutboundRoutes(string subscriptionId, string resourceGroupNam } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -805,6 +938,14 @@ public Response ListByResourceGroupNextPage(string nextLi } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualMachineScaleSetVMsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualMachineScaleSetVMsRestOperations.cs index 6eb20e8d7422..04d33e9fce56 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualMachineScaleSetVMsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualMachineScaleSetVMsRestOperations.cs @@ -37,6 +37,23 @@ public VirtualMachineScaleSetVMsRestOperations(HttpPipeline pipeline, string app _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListNetworkInterfacesRequestUri(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, string virtualmachineIndex) + { + 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.Compute/virtualMachineScaleSets/", false); + uri.AppendPath(virtualMachineScaleSetName, true); + uri.AppendPath("/virtualMachines/", false); + uri.AppendPath(virtualmachineIndex, true); + uri.AppendPath("/networkInterfaces", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListNetworkInterfacesRequest(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, string virtualmachineIndex) { var message = _pipeline.CreateMessage(); @@ -122,6 +139,27 @@ public Response ListNetworkInterfaces(string subscri } } + internal RequestUriBuilder CreateListPublicIPAddressesRequestUri(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, string virtualmachineIndex, string networkInterfaceName, string ipConfigurationName) + { + 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.Compute/virtualMachineScaleSets/", false); + uri.AppendPath(virtualMachineScaleSetName, true); + uri.AppendPath("/virtualMachines/", false); + uri.AppendPath(virtualmachineIndex, true); + uri.AppendPath("/networkInterfaces/", false); + uri.AppendPath(networkInterfaceName, true); + uri.AppendPath("/ipconfigurations/", false); + uri.AppendPath(ipConfigurationName, true); + uri.AppendPath("/publicipaddresses", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListPublicIPAddressesRequest(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, string virtualmachineIndex, string networkInterfaceName, string ipConfigurationName) { var message = _pipeline.CreateMessage(); @@ -219,6 +257,14 @@ public Response ListPublicIPAddresses(string subscrip } } + internal RequestUriBuilder CreateListNetworkInterfacesNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, string virtualmachineIndex) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNetworkInterfacesNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, string virtualmachineIndex) { var message = _pipeline.CreateMessage(); @@ -299,6 +345,14 @@ public Response ListNetworkInterfacesNextPage(string } } + internal RequestUriBuilder CreateListPublicIPAddressesNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, string virtualmachineIndex, string networkInterfaceName, string ipConfigurationName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListPublicIPAddressesNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, string virtualmachineIndex, string networkInterfaceName, string ipConfigurationName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualMachineScaleSetsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualMachineScaleSetsRestOperations.cs index 557594978607..539e5d06cdd3 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualMachineScaleSetsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualMachineScaleSetsRestOperations.cs @@ -37,6 +37,21 @@ public VirtualMachineScaleSetsRestOperations(HttpPipeline pipeline, string appli _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListNetworkInterfacesRequestUri(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName) + { + 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.Compute/virtualMachineScaleSets/", false); + uri.AppendPath(virtualMachineScaleSetName, true); + uri.AppendPath("/networkInterfaces", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListNetworkInterfacesRequest(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,28 @@ public Response ListNetworkInterfaces(string subscri } } + internal RequestUriBuilder CreateGetNetworkInterfaceRequestUri(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, string virtualmachineIndex, string networkInterfaceName, string expand) + { + 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.Compute/virtualMachineScaleSets/", false); + uri.AppendPath(virtualMachineScaleSetName, true); + uri.AppendPath("/virtualMachines/", false); + uri.AppendPath(virtualmachineIndex, true); + uri.AppendPath("/networkInterfaces/", false); + uri.AppendPath(networkInterfaceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + return uri; + } + internal HttpMessage CreateGetNetworkInterfaceRequest(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, string virtualmachineIndex, string networkInterfaceName, string expand) { var message = _pipeline.CreateMessage(); @@ -212,6 +249,29 @@ public Response GetNetworkInterface(string subscriptionId, } } + internal RequestUriBuilder CreateListIPConfigurationsRequestUri(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, string virtualmachineIndex, string networkInterfaceName, string expand) + { + 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.Compute/virtualMachineScaleSets/", false); + uri.AppendPath(virtualMachineScaleSetName, true); + uri.AppendPath("/virtualMachines/", false); + uri.AppendPath(virtualmachineIndex, true); + uri.AppendPath("/networkInterfaces/", false); + uri.AppendPath(networkInterfaceName, true); + uri.AppendPath("/ipConfigurations", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + return uri; + } + internal HttpMessage CreateListIPConfigurationsRequest(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, string virtualmachineIndex, string networkInterfaceName, string expand) { var message = _pipeline.CreateMessage(); @@ -309,6 +369,30 @@ public Response ListIPConfigurations( } } + internal RequestUriBuilder CreateGetIPConfigurationRequestUri(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, string virtualmachineIndex, string networkInterfaceName, string ipConfigurationName, string expand) + { + 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.Compute/virtualMachineScaleSets/", false); + uri.AppendPath(virtualMachineScaleSetName, true); + uri.AppendPath("/virtualMachines/", false); + uri.AppendPath(virtualmachineIndex, true); + uri.AppendPath("/networkInterfaces/", false); + uri.AppendPath(networkInterfaceName, true); + uri.AppendPath("/ipConfigurations/", false); + uri.AppendPath(ipConfigurationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + return uri; + } + internal HttpMessage CreateGetIPConfigurationRequest(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, string virtualmachineIndex, string networkInterfaceName, string ipConfigurationName, string expand) { var message = _pipeline.CreateMessage(); @@ -411,6 +495,21 @@ public Response GetIPConfiguration(string s } } + internal RequestUriBuilder CreateListPublicIPAddressesRequestUri(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName) + { + 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.Compute/virtualMachineScaleSets/", false); + uri.AppendPath(virtualMachineScaleSetName, true); + uri.AppendPath("/publicipaddresses", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListPublicIPAddressesRequest(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName) { var message = _pipeline.CreateMessage(); @@ -490,6 +589,32 @@ public Response ListPublicIPAddresses(string subscrip } } + internal RequestUriBuilder CreateGetPublicIPAddressRequestUri(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, string virtualmachineIndex, string networkInterfaceName, string ipConfigurationName, string publicIPAddressName, string expand) + { + 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.Compute/virtualMachineScaleSets/", false); + uri.AppendPath(virtualMachineScaleSetName, true); + uri.AppendPath("/virtualMachines/", false); + uri.AppendPath(virtualmachineIndex, true); + uri.AppendPath("/networkInterfaces/", false); + uri.AppendPath(networkInterfaceName, true); + uri.AppendPath("/ipconfigurations/", false); + uri.AppendPath(ipConfigurationName, true); + uri.AppendPath("/publicipaddresses/", false); + uri.AppendPath(publicIPAddressName, true); + uri.AppendQuery("api-version", _apiVersion, true); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + return uri; + } + internal HttpMessage CreateGetPublicIPAddressRequest(string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, string virtualmachineIndex, string networkInterfaceName, string ipConfigurationName, string publicIPAddressName, string expand) { var message = _pipeline.CreateMessage(); @@ -598,6 +723,14 @@ public Response GetPublicIPAddress(string subscriptionId, s } } + internal RequestUriBuilder CreateListNetworkInterfacesNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNetworkInterfacesNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName) { var message = _pipeline.CreateMessage(); @@ -674,6 +807,14 @@ public Response ListNetworkInterfacesNextPage(string } } + internal RequestUriBuilder CreateListIPConfigurationsNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, string virtualmachineIndex, string networkInterfaceName, string expand) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListIPConfigurationsNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName, string virtualmachineIndex, string networkInterfaceName, string expand) { var message = _pipeline.CreateMessage(); @@ -760,6 +901,14 @@ public Response ListIPConfigurationsN } } + internal RequestUriBuilder CreateListPublicIPAddressesNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListPublicIPAddressesNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string virtualMachineScaleSetName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworkGatewayConnectionsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworkGatewayConnectionsRestOperations.cs index 3ff0bf66be4f..d66de6b5401a 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworkGatewayConnectionsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworkGatewayConnectionsRestOperations.cs @@ -37,6 +37,20 @@ public VirtualNetworkGatewayConnectionsRestOperations(HttpPipeline pipeline, str _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string virtualNetworkGatewayConnectionName, VirtualNetworkGatewayConnectionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/connections/", false); + uri.AppendPath(virtualNetworkGatewayConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string virtualNetworkGatewayConnectionName, VirtualNetworkGatewayConnectionData data) { var message = _pipeline.CreateMessage(); @@ -115,6 +129,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string virtualNetworkGatewayConnectionName) + { + 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.Network/connections/", false); + uri.AppendPath(virtualNetworkGatewayConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string virtualNetworkGatewayConnectionName) { var message = _pipeline.CreateMessage(); @@ -197,6 +225,20 @@ public Response Get(string subscriptionId, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string virtualNetworkGatewayConnectionName) + { + 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.Network/connections/", false); + uri.AppendPath(virtualNetworkGatewayConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string virtualNetworkGatewayConnectionName) { var message = _pipeline.CreateMessage(); @@ -269,6 +311,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string v } } + internal RequestUriBuilder CreateUpdateTagsRequestUri(string subscriptionId, string resourceGroupName, string virtualNetworkGatewayConnectionName, NetworkTagsObject networkTagsObject) + { + 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.Network/connections/", false); + uri.AppendPath(virtualNetworkGatewayConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateTagsRequest(string subscriptionId, string resourceGroupName, string virtualNetworkGatewayConnectionName, NetworkTagsObject networkTagsObject) { var message = _pipeline.CreateMessage(); @@ -347,6 +403,21 @@ public Response UpdateTags(string subscriptionId, string resourceGroupName, stri } } + internal RequestUriBuilder CreateSetSharedKeyRequestUri(string subscriptionId, string resourceGroupName, string virtualNetworkGatewayConnectionName, ConnectionSharedKey connectionSharedKey) + { + 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.Network/connections/", false); + uri.AppendPath(virtualNetworkGatewayConnectionName, true); + uri.AppendPath("/sharedkey", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateSetSharedKeyRequest(string subscriptionId, string resourceGroupName, string virtualNetworkGatewayConnectionName, ConnectionSharedKey connectionSharedKey) { var message = _pipeline.CreateMessage(); @@ -426,6 +497,21 @@ public Response SetSharedKey(string subscriptionId, string resourceGroupName, st } } + internal RequestUriBuilder CreateGetSharedKeyRequestUri(string subscriptionId, string resourceGroupName, string virtualNetworkGatewayConnectionName) + { + 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.Network/connections/", false); + uri.AppendPath(virtualNetworkGatewayConnectionName, true); + uri.AppendPath("/sharedkey", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetSharedKeyRequest(string subscriptionId, string resourceGroupName, string virtualNetworkGatewayConnectionName) { var message = _pipeline.CreateMessage(); @@ -505,6 +591,19 @@ public Response GetSharedKey(string subscriptionId, string } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName) + { + 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.Network/connections", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -578,6 +677,21 @@ public Response List(string subscript } } + internal RequestUriBuilder CreateResetSharedKeyRequestUri(string subscriptionId, string resourceGroupName, string virtualNetworkGatewayConnectionName, ConnectionResetSharedKey connectionResetSharedKey) + { + 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.Network/connections/", false); + uri.AppendPath(virtualNetworkGatewayConnectionName, true); + uri.AppendPath("/sharedkey/reset", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateResetSharedKeyRequest(string subscriptionId, string resourceGroupName, string virtualNetworkGatewayConnectionName, ConnectionResetSharedKey connectionResetSharedKey) { var message = _pipeline.CreateMessage(); @@ -657,6 +771,21 @@ public Response ResetSharedKey(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateStartPacketCaptureRequestUri(string subscriptionId, string resourceGroupName, string virtualNetworkGatewayConnectionName, VpnPacketCaptureStartContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/connections/", false); + uri.AppendPath(virtualNetworkGatewayConnectionName, true); + uri.AppendPath("/startPacketCapture", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStartPacketCaptureRequest(string subscriptionId, string resourceGroupName, string virtualNetworkGatewayConnectionName, VpnPacketCaptureStartContent content) { var message = _pipeline.CreateMessage(); @@ -737,6 +866,21 @@ public Response StartPacketCapture(string subscriptionId, string resourceGroupNa } } + internal RequestUriBuilder CreateStopPacketCaptureRequestUri(string subscriptionId, string resourceGroupName, string virtualNetworkGatewayConnectionName, VpnPacketCaptureStopContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/connections/", false); + uri.AppendPath(virtualNetworkGatewayConnectionName, true); + uri.AppendPath("/stopPacketCapture", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStopPacketCaptureRequest(string subscriptionId, string resourceGroupName, string virtualNetworkGatewayConnectionName, VpnPacketCaptureStopContent content) { var message = _pipeline.CreateMessage(); @@ -816,6 +960,21 @@ public Response StopPacketCapture(string subscriptionId, string resourceGroupNam } } + internal RequestUriBuilder CreateGetIkeSasRequestUri(string subscriptionId, string resourceGroupName, string virtualNetworkGatewayConnectionName) + { + 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.Network/connections/", false); + uri.AppendPath(virtualNetworkGatewayConnectionName, true); + uri.AppendPath("/getikesas", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetIkeSasRequest(string subscriptionId, string resourceGroupName, string virtualNetworkGatewayConnectionName) { var message = _pipeline.CreateMessage(); @@ -887,6 +1046,21 @@ public Response GetIkeSas(string subscriptionId, string resourceGroupName, strin } } + internal RequestUriBuilder CreateResetConnectionRequestUri(string subscriptionId, string resourceGroupName, string virtualNetworkGatewayConnectionName) + { + 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.Network/connections/", false); + uri.AppendPath(virtualNetworkGatewayConnectionName, true); + uri.AppendPath("/resetconnection", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateResetConnectionRequest(string subscriptionId, string resourceGroupName, string virtualNetworkGatewayConnectionName) { var message = _pipeline.CreateMessage(); @@ -956,6 +1130,14 @@ public Response ResetConnection(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworkGatewayNatRulesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworkGatewayNatRulesRestOperations.cs index 4873d992a3ad..b5bc509ead4c 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworkGatewayNatRulesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworkGatewayNatRulesRestOperations.cs @@ -37,6 +37,22 @@ public VirtualNetworkGatewayNatRulesRestOperations(HttpPipeline pipeline, string _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string virtualNetworkGatewayName, string natRuleName) + { + 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.Network/virtualNetworkGateways/", false); + uri.AppendPath(virtualNetworkGatewayName, true); + uri.AppendPath("/natRules/", false); + uri.AppendPath(natRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string virtualNetworkGatewayName, string natRuleName) { var message = _pipeline.CreateMessage(); @@ -125,6 +141,22 @@ public Response Get(string subscriptionId, str } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string virtualNetworkGatewayName, string natRuleName, VirtualNetworkGatewayNatRuleData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/virtualNetworkGateways/", false); + uri.AppendPath(virtualNetworkGatewayName, true); + uri.AppendPath("/natRules/", false); + uri.AppendPath(natRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string virtualNetworkGatewayName, string natRuleName, VirtualNetworkGatewayNatRuleData data) { var message = _pipeline.CreateMessage(); @@ -209,6 +241,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string virtualNetworkGatewayName, string natRuleName) + { + 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.Network/virtualNetworkGateways/", false); + uri.AppendPath(virtualNetworkGatewayName, true); + uri.AppendPath("/natRules/", false); + uri.AppendPath(natRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string virtualNetworkGatewayName, string natRuleName) { var message = _pipeline.CreateMessage(); @@ -287,6 +335,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string v } } + internal RequestUriBuilder CreateListByVirtualNetworkGatewayRequestUri(string subscriptionId, string resourceGroupName, string virtualNetworkGatewayName) + { + 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.Network/virtualNetworkGateways/", false); + uri.AppendPath(virtualNetworkGatewayName, true); + uri.AppendPath("/natRules", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByVirtualNetworkGatewayRequest(string subscriptionId, string resourceGroupName, string virtualNetworkGatewayName) { var message = _pipeline.CreateMessage(); @@ -366,6 +429,14 @@ public Response ListByVirtualNetworkGat } } + internal RequestUriBuilder CreateListByVirtualNetworkGatewayNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string virtualNetworkGatewayName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByVirtualNetworkGatewayNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string virtualNetworkGatewayName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworkGatewaysRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworkGatewaysRestOperations.cs index 8ba14b129901..5a7e4c6b1218 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworkGatewaysRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworkGatewaysRestOperations.cs @@ -37,6 +37,20 @@ public VirtualNetworkGatewaysRestOperations(HttpPipeline pipeline, string applic _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string virtualNetworkGatewayName, VirtualNetworkGatewayData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/virtualNetworkGateways/", false); + uri.AppendPath(virtualNetworkGatewayName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string virtualNetworkGatewayName, VirtualNetworkGatewayData data) { var message = _pipeline.CreateMessage(); @@ -115,6 +129,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string virtualNetworkGatewayName) + { + 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.Network/virtualNetworkGateways/", false); + uri.AppendPath(virtualNetworkGatewayName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string virtualNetworkGatewayName) { var message = _pipeline.CreateMessage(); @@ -197,6 +225,20 @@ public Response Get(string subscriptionId, string res } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string virtualNetworkGatewayName) + { + 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.Network/virtualNetworkGateways/", false); + uri.AppendPath(virtualNetworkGatewayName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string virtualNetworkGatewayName) { var message = _pipeline.CreateMessage(); @@ -269,6 +311,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string v } } + internal RequestUriBuilder CreateUpdateTagsRequestUri(string subscriptionId, string resourceGroupName, string virtualNetworkGatewayName, NetworkTagsObject networkTagsObject) + { + 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.Network/virtualNetworkGateways/", false); + uri.AppendPath(virtualNetworkGatewayName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateTagsRequest(string subscriptionId, string resourceGroupName, string virtualNetworkGatewayName, NetworkTagsObject networkTagsObject) { var message = _pipeline.CreateMessage(); @@ -347,6 +403,19 @@ public Response UpdateTags(string subscriptionId, string resourceGroupName, stri } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName) + { + 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.Network/virtualNetworkGateways", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -420,6 +489,21 @@ public Response List(string subscriptionId, str } } + internal RequestUriBuilder CreateListConnectionsRequestUri(string subscriptionId, string resourceGroupName, string virtualNetworkGatewayName) + { + 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.Network/virtualNetworkGateways/", false); + uri.AppendPath(virtualNetworkGatewayName, true); + uri.AppendPath("/connections", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListConnectionsRequest(string subscriptionId, string resourceGroupName, string virtualNetworkGatewayName) { var message = _pipeline.CreateMessage(); @@ -499,6 +583,25 @@ public Response ListConnections(stri } } + internal RequestUriBuilder CreateResetRequestUri(string subscriptionId, string resourceGroupName, string virtualNetworkGatewayName, string gatewayVip) + { + 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.Network/virtualNetworkGateways/", false); + uri.AppendPath(virtualNetworkGatewayName, true); + uri.AppendPath("/reset", false); + if (gatewayVip != null) + { + uri.AppendQuery("gatewayVip", gatewayVip, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateResetRequest(string subscriptionId, string resourceGroupName, string virtualNetworkGatewayName, string gatewayVip) { var message = _pipeline.CreateMessage(); @@ -576,6 +679,21 @@ public Response Reset(string subscriptionId, string resourceGroupName, string vi } } + internal RequestUriBuilder CreateResetVpnClientSharedKeyRequestUri(string subscriptionId, string resourceGroupName, string virtualNetworkGatewayName) + { + 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.Network/virtualNetworkGateways/", false); + uri.AppendPath(virtualNetworkGatewayName, true); + uri.AppendPath("/resetvpnclientsharedkey", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateResetVpnClientSharedKeyRequest(string subscriptionId, string resourceGroupName, string virtualNetworkGatewayName) { var message = _pipeline.CreateMessage(); @@ -647,6 +765,21 @@ public Response ResetVpnClientSharedKey(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateGeneratevpnclientpackageRequestUri(string subscriptionId, string resourceGroupName, string virtualNetworkGatewayName, VpnClientContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/virtualNetworkGateways/", false); + uri.AppendPath(virtualNetworkGatewayName, true); + uri.AppendPath("/generatevpnclientpackage", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGeneratevpnclientpackageRequest(string subscriptionId, string resourceGroupName, string virtualNetworkGatewayName, VpnClientContent content) { var message = _pipeline.CreateMessage(); @@ -726,6 +859,21 @@ public Response Generatevpnclientpackage(string subscriptionId, string resourceG } } + internal RequestUriBuilder CreateGenerateVpnProfileRequestUri(string subscriptionId, string resourceGroupName, string virtualNetworkGatewayName, VpnClientContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/virtualNetworkGateways/", false); + uri.AppendPath(virtualNetworkGatewayName, true); + uri.AppendPath("/generatevpnprofile", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGenerateVpnProfileRequest(string subscriptionId, string resourceGroupName, string virtualNetworkGatewayName, VpnClientContent content) { var message = _pipeline.CreateMessage(); @@ -805,6 +953,21 @@ public Response GenerateVpnProfile(string subscriptionId, string resourceGroupNa } } + internal RequestUriBuilder CreateGetVpnProfilePackageUrlRequestUri(string subscriptionId, string resourceGroupName, string virtualNetworkGatewayName) + { + 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.Network/virtualNetworkGateways/", false); + uri.AppendPath(virtualNetworkGatewayName, true); + uri.AppendPath("/getvpnprofilepackageurl", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetVpnProfilePackageUrlRequest(string subscriptionId, string resourceGroupName, string virtualNetworkGatewayName) { var message = _pipeline.CreateMessage(); @@ -876,6 +1039,25 @@ public Response GetVpnProfilePackageUrl(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateGetBgpPeerStatusRequestUri(string subscriptionId, string resourceGroupName, string virtualNetworkGatewayName, string peer) + { + 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.Network/virtualNetworkGateways/", false); + uri.AppendPath(virtualNetworkGatewayName, true); + uri.AppendPath("/getBgpPeerStatus", false); + if (peer != null) + { + uri.AppendQuery("peer", peer, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetBgpPeerStatusRequest(string subscriptionId, string resourceGroupName, string virtualNetworkGatewayName, string peer) { var message = _pipeline.CreateMessage(); @@ -953,6 +1135,21 @@ public Response GetBgpPeerStatus(string subscriptionId, string resourceGroupName } } + internal RequestUriBuilder CreateSupportedVpnDevicesRequestUri(string subscriptionId, string resourceGroupName, string virtualNetworkGatewayName) + { + 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.Network/virtualNetworkGateways/", false); + uri.AppendPath(virtualNetworkGatewayName, true); + uri.AppendPath("/supportedvpndevices", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateSupportedVpnDevicesRequest(string subscriptionId, string resourceGroupName, string virtualNetworkGatewayName) { var message = _pipeline.CreateMessage(); @@ -1032,6 +1229,21 @@ public Response SupportedVpnDevices(string subscriptionId, string resour } } + internal RequestUriBuilder CreateGetLearnedRoutesRequestUri(string subscriptionId, string resourceGroupName, string virtualNetworkGatewayName) + { + 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.Network/virtualNetworkGateways/", false); + uri.AppendPath(virtualNetworkGatewayName, true); + uri.AppendPath("/getLearnedRoutes", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetLearnedRoutesRequest(string subscriptionId, string resourceGroupName, string virtualNetworkGatewayName) { var message = _pipeline.CreateMessage(); @@ -1103,6 +1315,22 @@ public Response GetLearnedRoutes(string subscriptionId, string resourceGroupName } } + internal RequestUriBuilder CreateGetAdvertisedRoutesRequestUri(string subscriptionId, string resourceGroupName, string virtualNetworkGatewayName, string peer) + { + 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.Network/virtualNetworkGateways/", false); + uri.AppendPath(virtualNetworkGatewayName, true); + uri.AppendPath("/getAdvertisedRoutes", false); + uri.AppendQuery("peer", peer, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetAdvertisedRoutesRequest(string subscriptionId, string resourceGroupName, string virtualNetworkGatewayName, string peer) { var message = _pipeline.CreateMessage(); @@ -1179,6 +1407,21 @@ public Response GetAdvertisedRoutes(string subscriptionId, string resourceGroupN } } + internal RequestUriBuilder CreateSetVpnclientIPsecParametersRequestUri(string subscriptionId, string resourceGroupName, string virtualNetworkGatewayName, VpnClientIPsecParameters vpnclientIPsecParams) + { + 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.Network/virtualNetworkGateways/", false); + uri.AppendPath(virtualNetworkGatewayName, true); + uri.AppendPath("/setvpnclientipsecparameters", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateSetVpnclientIPsecParametersRequest(string subscriptionId, string resourceGroupName, string virtualNetworkGatewayName, VpnClientIPsecParameters vpnclientIPsecParams) { var message = _pipeline.CreateMessage(); @@ -1258,6 +1501,21 @@ public Response SetVpnclientIPsecParameters(string subscriptionId, string resour } } + internal RequestUriBuilder CreateGetVpnclientIPsecParametersRequestUri(string subscriptionId, string resourceGroupName, string virtualNetworkGatewayName) + { + 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.Network/virtualNetworkGateways/", false); + uri.AppendPath(virtualNetworkGatewayName, true); + uri.AppendPath("/getvpnclientipsecparameters", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetVpnclientIPsecParametersRequest(string subscriptionId, string resourceGroupName, string virtualNetworkGatewayName) { var message = _pipeline.CreateMessage(); @@ -1327,6 +1585,21 @@ public Response GetVpnclientIPsecParameters(string subscriptionId, string resour } } + internal RequestUriBuilder CreateVpnDeviceConfigurationScriptRequestUri(string subscriptionId, string resourceGroupName, string virtualNetworkGatewayConnectionName, VpnDeviceScriptContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/connections/", false); + uri.AppendPath(virtualNetworkGatewayConnectionName, true); + uri.AppendPath("/vpndeviceconfigurationscript", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateVpnDeviceConfigurationScriptRequest(string subscriptionId, string resourceGroupName, string virtualNetworkGatewayConnectionName, VpnDeviceScriptContent content) { var message = _pipeline.CreateMessage(); @@ -1414,6 +1687,21 @@ public Response VpnDeviceConfigurationScript(string subscriptionId, stri } } + internal RequestUriBuilder CreateStartPacketCaptureRequestUri(string subscriptionId, string resourceGroupName, string virtualNetworkGatewayName, VpnPacketCaptureStartContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/virtualNetworkGateways/", false); + uri.AppendPath(virtualNetworkGatewayName, true); + uri.AppendPath("/startPacketCapture", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStartPacketCaptureRequest(string subscriptionId, string resourceGroupName, string virtualNetworkGatewayName, VpnPacketCaptureStartContent content) { var message = _pipeline.CreateMessage(); @@ -1494,6 +1782,21 @@ public Response StartPacketCapture(string subscriptionId, string resourceGroupNa } } + internal RequestUriBuilder CreateStopPacketCaptureRequestUri(string subscriptionId, string resourceGroupName, string virtualNetworkGatewayName, VpnPacketCaptureStopContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/virtualNetworkGateways/", false); + uri.AppendPath(virtualNetworkGatewayName, true); + uri.AppendPath("/stopPacketCapture", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStopPacketCaptureRequest(string subscriptionId, string resourceGroupName, string virtualNetworkGatewayName, VpnPacketCaptureStopContent content) { var message = _pipeline.CreateMessage(); @@ -1573,6 +1876,21 @@ public Response StopPacketCapture(string subscriptionId, string resourceGroupNam } } + internal RequestUriBuilder CreateGetVpnclientConnectionHealthRequestUri(string subscriptionId, string resourceGroupName, string virtualNetworkGatewayName) + { + 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.Network/virtualNetworkGateways/", false); + uri.AppendPath(virtualNetworkGatewayName, true); + uri.AppendPath("/getVpnClientConnectionHealth", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetVpnclientConnectionHealthRequest(string subscriptionId, string resourceGroupName, string virtualNetworkGatewayName) { var message = _pipeline.CreateMessage(); @@ -1644,6 +1962,21 @@ public Response GetVpnclientConnectionHealth(string subscriptionId, string resou } } + internal RequestUriBuilder CreateDisconnectVirtualNetworkGatewayVpnConnectionsRequestUri(string subscriptionId, string resourceGroupName, string virtualNetworkGatewayName, P2SVpnConnectionRequest request) + { + 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.Network/virtualNetworkGateways/", false); + uri.AppendPath(virtualNetworkGatewayName, true); + uri.AppendPath("/disconnectVirtualNetworkGatewayVpnConnections", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDisconnectVirtualNetworkGatewayVpnConnectionsRequest(string subscriptionId, string resourceGroupName, string virtualNetworkGatewayName, P2SVpnConnectionRequest request) { var message = _pipeline.CreateMessage(); @@ -1723,6 +2056,14 @@ public Response DisconnectVirtualNetworkGatewayVpnConnections(string subscriptio } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -1795,6 +2136,14 @@ public Response ListNextPage(string nextLink, s } } + internal RequestUriBuilder CreateListConnectionsNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string virtualNetworkGatewayName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListConnectionsNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string virtualNetworkGatewayName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworkPeeringsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworkPeeringsRestOperations.cs index ab71d1dca676..5f4269b7b0b1 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworkPeeringsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworkPeeringsRestOperations.cs @@ -37,6 +37,22 @@ public VirtualNetworkPeeringsRestOperations(HttpPipeline pipeline, string applic _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string virtualNetworkName, string virtualNetworkPeeringName) + { + 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.Network/virtualNetworks/", false); + uri.AppendPath(virtualNetworkName, true); + uri.AppendPath("/virtualNetworkPeerings/", false); + uri.AppendPath(virtualNetworkPeeringName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string virtualNetworkName, string virtualNetworkPeeringName) { var message = _pipeline.CreateMessage(); @@ -115,6 +131,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string v } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string virtualNetworkName, string virtualNetworkPeeringName) + { + 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.Network/virtualNetworks/", false); + uri.AppendPath(virtualNetworkName, true); + uri.AppendPath("/virtualNetworkPeerings/", false); + uri.AppendPath(virtualNetworkPeeringName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string virtualNetworkName, string virtualNetworkPeeringName) { var message = _pipeline.CreateMessage(); @@ -203,6 +235,26 @@ public Response Get(string subscriptionId, string res } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string virtualNetworkName, string virtualNetworkPeeringName, VirtualNetworkPeeringData data, SyncRemoteAddressSpace? syncRemoteAddressSpace) + { + 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.Network/virtualNetworks/", false); + uri.AppendPath(virtualNetworkName, true); + uri.AppendPath("/virtualNetworkPeerings/", false); + uri.AppendPath(virtualNetworkPeeringName, true); + if (syncRemoteAddressSpace != null) + { + uri.AppendQuery("syncRemoteAddressSpace", syncRemoteAddressSpace.Value.ToString(), true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string virtualNetworkName, string virtualNetworkPeeringName, VirtualNetworkPeeringData data, SyncRemoteAddressSpace? syncRemoteAddressSpace) { var message = _pipeline.CreateMessage(); @@ -293,6 +345,21 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string virtualNetworkName) + { + 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.Network/virtualNetworks/", false); + uri.AppendPath(virtualNetworkName, true); + uri.AppendPath("/virtualNetworkPeerings", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string virtualNetworkName) { var message = _pipeline.CreateMessage(); @@ -372,6 +439,14 @@ public Response List(string subscriptionId, str } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string virtualNetworkName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string virtualNetworkName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworkTapsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworkTapsRestOperations.cs index 5282fc83183b..6b26f6c575bd 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworkTapsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworkTapsRestOperations.cs @@ -37,6 +37,20 @@ public VirtualNetworkTapsRestOperations(HttpPipeline pipeline, string applicatio _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string tapName) + { + 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.Network/virtualNetworkTaps/", false); + uri.AppendPath(tapName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string tapName) { var message = _pipeline.CreateMessage(); @@ -109,6 +123,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string t } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string tapName) + { + 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.Network/virtualNetworkTaps/", false); + uri.AppendPath(tapName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string tapName) { var message = _pipeline.CreateMessage(); @@ -191,6 +219,20 @@ public Response Get(string subscriptionId, string resourc } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string tapName, VirtualNetworkTapData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/virtualNetworkTaps/", false); + uri.AppendPath(tapName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string tapName, VirtualNetworkTapData data) { var message = _pipeline.CreateMessage(); @@ -269,6 +311,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateTagsRequestUri(string subscriptionId, string resourceGroupName, string tapName, NetworkTagsObject tapParameters) + { + 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.Network/virtualNetworkTaps/", false); + uri.AppendPath(tapName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateTagsRequest(string subscriptionId, string resourceGroupName, string tapName, NetworkTagsObject tapParameters) { var message = _pipeline.CreateMessage(); @@ -355,6 +411,17 @@ public Response UpdateTags(string subscriptionId, string } } + internal RequestUriBuilder CreateListAllRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Network/virtualNetworkTaps", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListAllRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -422,6 +489,19 @@ public Response ListAll(string subscriptionId, Canc } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.Network/virtualNetworkTaps", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -495,6 +575,14 @@ public Response ListByResourceGroup(string subscrip } } + internal RequestUriBuilder CreateListAllNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListAllNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -563,6 +651,14 @@ public Response ListAllNextPage(string nextLink, st } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworksRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworksRestOperations.cs index 9401419ddd4a..a99c4fc82016 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworksRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworksRestOperations.cs @@ -37,6 +37,20 @@ public VirtualNetworksRestOperations(HttpPipeline pipeline, string applicationId _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string virtualNetworkName) + { + 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.Network/virtualNetworks/", false); + uri.AppendPath(virtualNetworkName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string virtualNetworkName) { var message = _pipeline.CreateMessage(); @@ -109,6 +123,24 @@ public Response Delete(string subscriptionId, string resourceGroupName, string v } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string virtualNetworkName, string expand) + { + 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.Network/virtualNetworks/", false); + uri.AppendPath(virtualNetworkName, true); + uri.AppendQuery("api-version", _apiVersion, true); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string virtualNetworkName, string expand) { var message = _pipeline.CreateMessage(); @@ -197,6 +229,20 @@ public Response Get(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string virtualNetworkName, VirtualNetworkData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/virtualNetworks/", false); + uri.AppendPath(virtualNetworkName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string virtualNetworkName, VirtualNetworkData data) { var message = _pipeline.CreateMessage(); @@ -275,6 +321,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateTagsRequestUri(string subscriptionId, string resourceGroupName, string virtualNetworkName, NetworkTagsObject networkTagsObject) + { + 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.Network/virtualNetworks/", false); + uri.AppendPath(virtualNetworkName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateTagsRequest(string subscriptionId, string resourceGroupName, string virtualNetworkName, NetworkTagsObject networkTagsObject) { var message = _pipeline.CreateMessage(); @@ -361,6 +421,17 @@ public Response UpdateTags(string subscriptionId, string res } } + internal RequestUriBuilder CreateListAllRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Network/virtualNetworks", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListAllRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -428,6 +499,19 @@ public Response ListAll(string subscriptionId, Cancell } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName) + { + 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.Network/virtualNetworks", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -501,6 +585,22 @@ public Response List(string subscriptionId, string res } } + internal RequestUriBuilder CreateCheckIPAddressAvailabilityRequestUri(string subscriptionId, string resourceGroupName, string virtualNetworkName, string ipAddress) + { + 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.Network/virtualNetworks/", false); + uri.AppendPath(virtualNetworkName, true); + uri.AppendPath("/CheckIPAddressAvailability", false); + uri.AppendQuery("ipAddress", ipAddress, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCheckIPAddressAvailabilityRequest(string subscriptionId, string resourceGroupName, string virtualNetworkName, string ipAddress) { var message = _pipeline.CreateMessage(); @@ -585,6 +685,21 @@ public Response CheckIPAddressAvailability(string s } } + internal RequestUriBuilder CreateListUsageRequestUri(string subscriptionId, string resourceGroupName, string virtualNetworkName) + { + 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.Network/virtualNetworks/", false); + uri.AppendPath(virtualNetworkName, true); + uri.AppendPath("/usages", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListUsageRequest(string subscriptionId, string resourceGroupName, string virtualNetworkName) { var message = _pipeline.CreateMessage(); @@ -664,6 +779,14 @@ public Response ListUsage(string subscriptionId, } } + internal RequestUriBuilder CreateListAllNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListAllNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -732,6 +855,14 @@ public Response ListAllNextPage(string nextLink, strin } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -804,6 +935,14 @@ public Response ListNextPage(string nextLink, string s } } + internal RequestUriBuilder CreateListUsageNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string virtualNetworkName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListUsageNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string virtualNetworkName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualRouterPeeringsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualRouterPeeringsRestOperations.cs index ce3151c774a7..6ad2aa672801 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualRouterPeeringsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualRouterPeeringsRestOperations.cs @@ -37,6 +37,22 @@ public VirtualRouterPeeringsRestOperations(HttpPipeline pipeline, string applica _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string virtualRouterName, string peeringName) + { + 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.Network/virtualRouters/", false); + uri.AppendPath(virtualRouterName, true); + uri.AppendPath("/peerings/", false); + uri.AppendPath(peeringName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string virtualRouterName, string peeringName) { var message = _pipeline.CreateMessage(); @@ -115,6 +131,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string v } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string virtualRouterName, string peeringName) + { + 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.Network/virtualRouters/", false); + uri.AppendPath(virtualRouterName, true); + uri.AppendPath("/peerings/", false); + uri.AppendPath(peeringName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string virtualRouterName, string peeringName) { var message = _pipeline.CreateMessage(); @@ -203,6 +235,22 @@ public Response Get(string subscriptionId, string reso } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string virtualRouterName, string peeringName, VirtualRouterPeeringData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/virtualRouters/", false); + uri.AppendPath(virtualRouterName, true); + uri.AppendPath("/peerings/", false); + uri.AppendPath(peeringName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string virtualRouterName, string peeringName, VirtualRouterPeeringData data) { var message = _pipeline.CreateMessage(); @@ -287,6 +335,21 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string virtualRouterName) + { + 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.Network/virtualRouters/", false); + uri.AppendPath(virtualRouterName, true); + uri.AppendPath("/peerings", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string virtualRouterName) { var message = _pipeline.CreateMessage(); @@ -366,6 +429,14 @@ public Response List(string subscriptionId, stri } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string virtualRouterName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string virtualRouterName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualRoutersRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualRoutersRestOperations.cs index 120088252cdb..30f82f1f3c77 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualRoutersRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualRoutersRestOperations.cs @@ -37,6 +37,20 @@ public VirtualRoutersRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string virtualRouterName) + { + 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.Network/virtualRouters/", false); + uri.AppendPath(virtualRouterName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string virtualRouterName) { var message = _pipeline.CreateMessage(); @@ -109,6 +123,24 @@ public Response Delete(string subscriptionId, string resourceGroupName, string v } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string virtualRouterName, string expand) + { + 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.Network/virtualRouters/", false); + uri.AppendPath(virtualRouterName, true); + uri.AppendQuery("api-version", _apiVersion, true); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string virtualRouterName, string expand) { var message = _pipeline.CreateMessage(); @@ -197,6 +229,20 @@ public Response Get(string subscriptionId, string resourceGro } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string virtualRouterName, VirtualRouterData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/virtualRouters/", false); + uri.AppendPath(virtualRouterName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string virtualRouterName, VirtualRouterData data) { var message = _pipeline.CreateMessage(); @@ -275,6 +321,19 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.Network/virtualRouters", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -348,6 +407,17 @@ public Response ListByResourceGroup(string subscription } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Network/virtualRouters", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -415,6 +485,14 @@ public Response List(string subscriptionId, Cancellatio } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -487,6 +565,14 @@ public Response ListByResourceGroupNextPage(string next } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualWansRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualWansRestOperations.cs index fcf2bfe9ef38..b0440a717ba5 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualWansRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualWansRestOperations.cs @@ -37,6 +37,20 @@ public VirtualWansRestOperations(HttpPipeline pipeline, string applicationId, Ur _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string virtualWanName) + { + 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.Network/virtualWans/", false); + uri.AppendPath(virtualWanName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string virtualWanName) { var message = _pipeline.CreateMessage(); @@ -119,6 +133,20 @@ public Response Get(string subscriptionId, string resourceGroupN } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string virtualWanName, VirtualWanData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/virtualWans/", false); + uri.AppendPath(virtualWanName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string virtualWanName, VirtualWanData data) { var message = _pipeline.CreateMessage(); @@ -197,6 +225,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateTagsRequestUri(string subscriptionId, string resourceGroupName, string virtualWanName, NetworkTagsObject wanParameters) + { + 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.Network/virtualWans/", false); + uri.AppendPath(virtualWanName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateTagsRequest(string subscriptionId, string resourceGroupName, string virtualWanName, NetworkTagsObject wanParameters) { var message = _pipeline.CreateMessage(); @@ -283,6 +325,20 @@ public Response UpdateTags(string subscriptionId, string resourc } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string virtualWanName) + { + 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.Network/virtualWans/", false); + uri.AppendPath(virtualWanName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string virtualWanName) { var message = _pipeline.CreateMessage(); @@ -355,6 +411,19 @@ public Response Delete(string subscriptionId, string resourceGroupName, string v } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.Network/virtualWans", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -428,6 +497,17 @@ public Response ListByResourceGroup(string subscriptionId } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Network/virtualWans", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -495,6 +575,14 @@ public Response List(string subscriptionId, CancellationT } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -567,6 +655,14 @@ public Response ListByResourceGroupNextPage(string nextLi } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnConnectionsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnConnectionsRestOperations.cs index 22868f6a6eb8..efda4fefe501 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnConnectionsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnConnectionsRestOperations.cs @@ -37,6 +37,22 @@ public VpnConnectionsRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string gatewayName, string connectionName) + { + 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.Network/vpnGateways/", false); + uri.AppendPath(gatewayName, true); + uri.AppendPath("/vpnConnections/", false); + uri.AppendPath(connectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string gatewayName, string connectionName) { var message = _pipeline.CreateMessage(); @@ -125,6 +141,22 @@ public Response Get(string subscriptionId, string resourceGro } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string gatewayName, string connectionName, VpnConnectionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/vpnGateways/", false); + uri.AppendPath(gatewayName, true); + uri.AppendPath("/vpnConnections/", false); + uri.AppendPath(connectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string gatewayName, string connectionName, VpnConnectionData data) { var message = _pipeline.CreateMessage(); @@ -209,6 +241,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string gatewayName, string connectionName) + { + 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.Network/vpnGateways/", false); + uri.AppendPath(gatewayName, true); + uri.AppendPath("/vpnConnections/", false); + uri.AppendPath(connectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string gatewayName, string connectionName) { var message = _pipeline.CreateMessage(); @@ -287,6 +335,23 @@ public Response Delete(string subscriptionId, string resourceGroupName, string g } } + internal RequestUriBuilder CreateStartPacketCaptureRequestUri(string subscriptionId, string resourceGroupName, string gatewayName, string vpnConnectionName, VpnConnectionPacketCaptureStartContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/vpnGateways/", false); + uri.AppendPath(gatewayName, true); + uri.AppendPath("/vpnConnections/", false); + uri.AppendPath(vpnConnectionName, true); + uri.AppendPath("/startpacketcapture", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStartPacketCaptureRequest(string subscriptionId, string resourceGroupName, string gatewayName, string vpnConnectionName, VpnConnectionPacketCaptureStartContent content) { var message = _pipeline.CreateMessage(); @@ -373,6 +438,23 @@ public Response StartPacketCapture(string subscriptionId, string resourceGroupNa } } + internal RequestUriBuilder CreateStopPacketCaptureRequestUri(string subscriptionId, string resourceGroupName, string gatewayName, string vpnConnectionName, VpnConnectionPacketCaptureStopContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/vpnGateways/", false); + uri.AppendPath(gatewayName, true); + uri.AppendPath("/vpnConnections/", false); + uri.AppendPath(vpnConnectionName, true); + uri.AppendPath("/stoppacketcapture", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStopPacketCaptureRequest(string subscriptionId, string resourceGroupName, string gatewayName, string vpnConnectionName, VpnConnectionPacketCaptureStopContent content) { var message = _pipeline.CreateMessage(); @@ -459,6 +541,21 @@ public Response StopPacketCapture(string subscriptionId, string resourceGroupNam } } + internal RequestUriBuilder CreateListByVpnGatewayRequestUri(string subscriptionId, string resourceGroupName, string gatewayName) + { + 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.Network/vpnGateways/", false); + uri.AppendPath(gatewayName, true); + uri.AppendPath("/vpnConnections", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByVpnGatewayRequest(string subscriptionId, string resourceGroupName, string gatewayName) { var message = _pipeline.CreateMessage(); @@ -538,6 +635,14 @@ public Response ListByVpnGateway(string subscriptionId } } + internal RequestUriBuilder CreateListByVpnGatewayNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string gatewayName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByVpnGatewayNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string gatewayName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnGatewaysRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnGatewaysRestOperations.cs index 551c35e7d7ea..8ddd1e39876c 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnGatewaysRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnGatewaysRestOperations.cs @@ -37,6 +37,20 @@ public VpnGatewaysRestOperations(HttpPipeline pipeline, string applicationId, Ur _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string gatewayName) + { + 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.Network/vpnGateways/", false); + uri.AppendPath(gatewayName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string gatewayName) { var message = _pipeline.CreateMessage(); @@ -119,6 +133,20 @@ public Response Get(string subscriptionId, string resourceGroupN } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string gatewayName, VpnGatewayData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/vpnGateways/", false); + uri.AppendPath(gatewayName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string gatewayName, VpnGatewayData data) { var message = _pipeline.CreateMessage(); @@ -197,6 +225,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateTagsRequestUri(string subscriptionId, string resourceGroupName, string gatewayName, NetworkTagsObject vpnGatewayParameters) + { + 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.Network/vpnGateways/", false); + uri.AppendPath(gatewayName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateTagsRequest(string subscriptionId, string resourceGroupName, string gatewayName, NetworkTagsObject vpnGatewayParameters) { var message = _pipeline.CreateMessage(); @@ -275,6 +317,20 @@ public Response UpdateTags(string subscriptionId, string resourceGroupName, stri } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string gatewayName) + { + 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.Network/vpnGateways/", false); + uri.AppendPath(gatewayName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string gatewayName) { var message = _pipeline.CreateMessage(); @@ -347,6 +403,25 @@ public Response Delete(string subscriptionId, string resourceGroupName, string g } } + internal RequestUriBuilder CreateResetRequestUri(string subscriptionId, string resourceGroupName, string gatewayName, string ipConfigurationId) + { + 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.Network/vpnGateways/", false); + uri.AppendPath(gatewayName, true); + uri.AppendPath("/reset", false); + if (ipConfigurationId != null) + { + uri.AppendQuery("ipConfigurationId", ipConfigurationId, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateResetRequest(string subscriptionId, string resourceGroupName, string gatewayName, string ipConfigurationId) { var message = _pipeline.CreateMessage(); @@ -424,6 +499,21 @@ public Response Reset(string subscriptionId, string resourceGroupName, string ga } } + internal RequestUriBuilder CreateStartPacketCaptureRequestUri(string subscriptionId, string resourceGroupName, string gatewayName, VpnGatewayPacketCaptureStartContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/vpnGateways/", false); + uri.AppendPath(gatewayName, true); + uri.AppendPath("/startpacketcapture", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStartPacketCaptureRequest(string subscriptionId, string resourceGroupName, string gatewayName, VpnGatewayPacketCaptureStartContent content) { var message = _pipeline.CreateMessage(); @@ -504,6 +594,21 @@ public Response StartPacketCapture(string subscriptionId, string resourceGroupNa } } + internal RequestUriBuilder CreateStopPacketCaptureRequestUri(string subscriptionId, string resourceGroupName, string gatewayName, VpnGatewayPacketCaptureStopContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/vpnGateways/", false); + uri.AppendPath(gatewayName, true); + uri.AppendPath("/stoppacketcapture", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStopPacketCaptureRequest(string subscriptionId, string resourceGroupName, string gatewayName, VpnGatewayPacketCaptureStopContent content) { var message = _pipeline.CreateMessage(); @@ -584,6 +689,19 @@ public Response StopPacketCapture(string subscriptionId, string resourceGroupNam } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.Network/vpnGateways", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -657,6 +775,17 @@ public Response ListByResourceGroup(string subscriptionId } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Network/vpnGateways", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -724,6 +853,14 @@ public Response List(string subscriptionId, CancellationT } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -796,6 +933,14 @@ public Response ListByResourceGroupNextPage(string nextLi } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnLinkConnectionsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnLinkConnectionsRestOperations.cs index ccb8fdf97044..a87670b1cdd6 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnLinkConnectionsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnLinkConnectionsRestOperations.cs @@ -37,6 +37,25 @@ public VpnLinkConnectionsRestOperations(HttpPipeline pipeline, string applicatio _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateResetConnectionRequestUri(string subscriptionId, string resourceGroupName, string gatewayName, string connectionName, string linkConnectionName) + { + 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.Network/vpnGateways/", false); + uri.AppendPath(gatewayName, true); + uri.AppendPath("/vpnConnections/", false); + uri.AppendPath(connectionName, true); + uri.AppendPath("/vpnLinkConnections/", false); + uri.AppendPath(linkConnectionName, true); + uri.AppendPath("/resetconnection", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateResetConnectionRequest(string subscriptionId, string resourceGroupName, string gatewayName, string connectionName, string linkConnectionName) { var message = _pipeline.CreateMessage(); @@ -118,6 +137,25 @@ public Response ResetConnection(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateGetIkeSasRequestUri(string subscriptionId, string resourceGroupName, string gatewayName, string connectionName, string linkConnectionName) + { + 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.Network/vpnGateways/", false); + uri.AppendPath(gatewayName, true); + uri.AppendPath("/vpnConnections/", false); + uri.AppendPath(connectionName, true); + uri.AppendPath("/vpnLinkConnections/", false); + uri.AppendPath(linkConnectionName, true); + uri.AppendPath("/getikesas", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetIkeSasRequest(string subscriptionId, string resourceGroupName, string gatewayName, string connectionName, string linkConnectionName) { var message = _pipeline.CreateMessage(); @@ -201,6 +239,23 @@ public Response GetIkeSas(string subscriptionId, string resourceGroupName, strin } } + internal RequestUriBuilder CreateListByVpnConnectionRequestUri(string subscriptionId, string resourceGroupName, string gatewayName, string connectionName) + { + 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.Network/vpnGateways/", false); + uri.AppendPath(gatewayName, true); + uri.AppendPath("/vpnConnections/", false); + uri.AppendPath(connectionName, true); + uri.AppendPath("/vpnLinkConnections", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByVpnConnectionRequest(string subscriptionId, string resourceGroupName, string gatewayName, string connectionName) { var message = _pipeline.CreateMessage(); @@ -286,6 +341,14 @@ public Response ListByVpnConnection(string sub } } + internal RequestUriBuilder CreateListByVpnConnectionNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string gatewayName, string connectionName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByVpnConnectionNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string gatewayName, string connectionName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnServerConfigurationsAssociatedWithVirtualWanRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnServerConfigurationsAssociatedWithVirtualWanRestOperations.cs index f5ba645d986d..dc1fa4b15bd4 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnServerConfigurationsAssociatedWithVirtualWanRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnServerConfigurationsAssociatedWithVirtualWanRestOperations.cs @@ -35,6 +35,21 @@ public VpnServerConfigurationsAssociatedWithVirtualWanRestOperations(HttpPipelin _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string virtualWanName) + { + 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.Network/virtualWans/", false); + uri.AppendPath(virtualWanName, true); + uri.AppendPath("/vpnServerConfigurations", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string virtualWanName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnServerConfigurationsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnServerConfigurationsRestOperations.cs index 4ac89bec44ed..f8ae0639d246 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnServerConfigurationsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnServerConfigurationsRestOperations.cs @@ -37,6 +37,20 @@ public VpnServerConfigurationsRestOperations(HttpPipeline pipeline, string appli _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string vpnServerConfigurationName) + { + 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.Network/vpnServerConfigurations/", false); + uri.AppendPath(vpnServerConfigurationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string vpnServerConfigurationName) { var message = _pipeline.CreateMessage(); @@ -119,6 +133,20 @@ public Response Get(string subscriptionId, string re } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string vpnServerConfigurationName, VpnServerConfigurationData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/vpnServerConfigurations/", false); + uri.AppendPath(vpnServerConfigurationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string vpnServerConfigurationName, VpnServerConfigurationData data) { var message = _pipeline.CreateMessage(); @@ -197,6 +225,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateTagsRequestUri(string subscriptionId, string resourceGroupName, string vpnServerConfigurationName, NetworkTagsObject vpnServerConfigurationParameters) + { + 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.Network/vpnServerConfigurations/", false); + uri.AppendPath(vpnServerConfigurationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateTagsRequest(string subscriptionId, string resourceGroupName, string vpnServerConfigurationName, NetworkTagsObject vpnServerConfigurationParameters) { var message = _pipeline.CreateMessage(); @@ -283,6 +325,20 @@ public Response UpdateTags(string subscriptionId, st } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string vpnServerConfigurationName) + { + 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.Network/vpnServerConfigurations/", false); + uri.AppendPath(vpnServerConfigurationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string vpnServerConfigurationName) { var message = _pipeline.CreateMessage(); @@ -355,6 +411,19 @@ public Response Delete(string subscriptionId, string resourceGroupName, string v } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.Network/vpnServerConfigurations", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -428,6 +497,17 @@ public Response ListByResourceGroup(string su } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Network/vpnServerConfigurations", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -495,6 +575,14 @@ public Response List(string subscriptionId, C } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -567,6 +655,14 @@ public Response ListByResourceGroupNextPage(s } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnSiteLinkConnectionsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnSiteLinkConnectionsRestOperations.cs index 89eabfd4dae5..ec3f480cf317 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnSiteLinkConnectionsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnSiteLinkConnectionsRestOperations.cs @@ -36,6 +36,24 @@ public VpnSiteLinkConnectionsRestOperations(HttpPipeline pipeline, string applic _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string gatewayName, string connectionName, string linkConnectionName) + { + 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.Network/vpnGateways/", false); + uri.AppendPath(gatewayName, true); + uri.AppendPath("/vpnConnections/", false); + uri.AppendPath(connectionName, true); + uri.AppendPath("/vpnLinkConnections/", false); + uri.AppendPath(linkConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string gatewayName, string connectionName, string linkConnectionName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnSiteLinksRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnSiteLinksRestOperations.cs index aa15b127b88a..35af913dec9e 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnSiteLinksRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnSiteLinksRestOperations.cs @@ -37,6 +37,22 @@ public VpnSiteLinksRestOperations(HttpPipeline pipeline, string applicationId, U _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string vpnSiteName, string vpnSiteLinkName) + { + 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.Network/vpnSites/", false); + uri.AppendPath(vpnSiteName, true); + uri.AppendPath("/vpnSiteLinks/", false); + uri.AppendPath(vpnSiteLinkName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string vpnSiteName, string vpnSiteLinkName) { var message = _pipeline.CreateMessage(); @@ -125,6 +141,21 @@ public Response Get(string subscriptionId, string resourceGroup } } + internal RequestUriBuilder CreateListByVpnSiteRequestUri(string subscriptionId, string resourceGroupName, string vpnSiteName) + { + 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.Network/vpnSites/", false); + uri.AppendPath(vpnSiteName, true); + uri.AppendPath("/vpnSiteLinks", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByVpnSiteRequest(string subscriptionId, string resourceGroupName, string vpnSiteName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,14 @@ public Response ListByVpnSite(string subscriptionId, str } } + internal RequestUriBuilder CreateListByVpnSiteNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string vpnSiteName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByVpnSiteNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string vpnSiteName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnSitesConfigurationRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnSitesConfigurationRestOperations.cs index 7f6b0285e7fa..25cb35e289b0 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnSitesConfigurationRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnSitesConfigurationRestOperations.cs @@ -36,6 +36,21 @@ public VpnSitesConfigurationRestOperations(HttpPipeline pipeline, string applica _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateDownloadRequestUri(string subscriptionId, string resourceGroupName, string virtualWanName, GetVpnSitesConfigurationContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/virtualWans/", false); + uri.AppendPath(virtualWanName, true); + uri.AppendPath("/vpnConfiguration", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDownloadRequest(string subscriptionId, string resourceGroupName, string virtualWanName, GetVpnSitesConfigurationContent content) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnSitesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnSitesRestOperations.cs index c60f85f31534..5641e007aac5 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnSitesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnSitesRestOperations.cs @@ -37,6 +37,20 @@ public VpnSitesRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string vpnSiteName) + { + 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.Network/vpnSites/", false); + uri.AppendPath(vpnSiteName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string vpnSiteName) { var message = _pipeline.CreateMessage(); @@ -119,6 +133,20 @@ public Response Get(string subscriptionId, string resourceGroupName } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string vpnSiteName, VpnSiteData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/vpnSites/", false); + uri.AppendPath(vpnSiteName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string vpnSiteName, VpnSiteData data) { var message = _pipeline.CreateMessage(); @@ -197,6 +225,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateTagsRequestUri(string subscriptionId, string resourceGroupName, string vpnSiteName, NetworkTagsObject vpnSiteParameters) + { + 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.Network/vpnSites/", false); + uri.AppendPath(vpnSiteName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateTagsRequest(string subscriptionId, string resourceGroupName, string vpnSiteName, NetworkTagsObject vpnSiteParameters) { var message = _pipeline.CreateMessage(); @@ -283,6 +325,20 @@ public Response UpdateTags(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string vpnSiteName) + { + 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.Network/vpnSites/", false); + uri.AppendPath(vpnSiteName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string vpnSiteName) { var message = _pipeline.CreateMessage(); @@ -355,6 +411,19 @@ public Response Delete(string subscriptionId, string resourceGroupName, string v } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.Network/vpnSites", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -428,6 +497,17 @@ public Response ListByResourceGroup(string subscriptionId, s } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Network/vpnSites", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -495,6 +575,14 @@ public Response List(string subscriptionId, CancellationToke } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -567,6 +655,14 @@ public Response ListByResourceGroupNextPage(string nextLink, } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/WebApplicationFirewallPoliciesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/WebApplicationFirewallPoliciesRestOperations.cs index 619be3da2484..1ac7fe056883 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/WebApplicationFirewallPoliciesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/WebApplicationFirewallPoliciesRestOperations.cs @@ -37,6 +37,19 @@ public WebApplicationFirewallPoliciesRestOperations(HttpPipeline pipeline, strin _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName) + { + 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.Network/ApplicationGatewayWebApplicationFirewallPolicies", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -110,6 +123,17 @@ public Response List(string subscription } } + internal RequestUriBuilder CreateListAllRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListAllRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -177,6 +201,20 @@ public Response ListAll(string subscript } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string policyName) + { + 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.Network/ApplicationGatewayWebApplicationFirewallPolicies/", false); + uri.AppendPath(policyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string policyName) { var message = _pipeline.CreateMessage(); @@ -259,6 +297,20 @@ public Response Get(string subscriptionId, str } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string policyName, WebApplicationFirewallPolicyData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies/", false); + uri.AppendPath(policyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string policyName, WebApplicationFirewallPolicyData data) { var message = _pipeline.CreateMessage(); @@ -347,6 +399,20 @@ public Response CreateOrUpdate(string subscrip } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string policyName) + { + 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.Network/ApplicationGatewayWebApplicationFirewallPolicies/", false); + uri.AppendPath(policyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string policyName) { var message = _pipeline.CreateMessage(); @@ -419,6 +485,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string p } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -491,6 +565,14 @@ public Response ListNextPage(string next } } + internal RequestUriBuilder CreateListAllNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListAllNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/WebCategoriesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/WebCategoriesRestOperations.cs index 85e278a2a4cb..ace1b5f3f712 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/WebCategoriesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/WebCategoriesRestOperations.cs @@ -37,6 +37,22 @@ public WebCategoriesRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string name, string expand) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Network/azureWebCategories/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string name, string expand) { var message = _pipeline.CreateMessage(); @@ -119,6 +135,17 @@ public Response Get(string subscriptionId, string name, st } } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Network/azureWebCategories", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -186,6 +213,14 @@ public Response ListBySubscription(string subscripti } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ScopeConnectionCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ScopeConnectionCollection.cs index a4d5053d0e61..d06bccd737fc 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ScopeConnectionCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ScopeConnectionCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> CreateOrUpdateA try { var response = await _scopeConnectionRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, scopeConnectionName, data, cancellationToken).ConfigureAwait(false); - var operation = new NetworkArmOperation(Response.FromValue(new ScopeConnectionResource(Client, response), response.GetRawResponse())); + var uri = _scopeConnectionRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, scopeConnectionName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new NetworkArmOperation(Response.FromValue(new ScopeConnectionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wa try { var response = _scopeConnectionRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, scopeConnectionName, data, cancellationToken); - var operation = new NetworkArmOperation(Response.FromValue(new ScopeConnectionResource(Client, response), response.GetRawResponse())); + var uri = _scopeConnectionRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, scopeConnectionName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new NetworkArmOperation(Response.FromValue(new ScopeConnectionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ScopeConnectionResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ScopeConnectionResource.cs index dfc1612df6c4..8e490d757ba3 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ScopeConnectionResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ScopeConnectionResource.cs @@ -200,7 +200,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _scopeConnectionRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new NetworkArmOperation(response); + var uri = _scopeConnectionRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new NetworkArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -242,7 +244,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _scopeConnectionRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new NetworkArmOperation(response); + var uri = _scopeConnectionRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new NetworkArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -288,7 +292,9 @@ public virtual async Task> UpdateAsync(Wai try { var response = await _scopeConnectionRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new NetworkArmOperation(Response.FromValue(new ScopeConnectionResource(Client, response), response.GetRawResponse())); + var uri = _scopeConnectionRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new NetworkArmOperation(Response.FromValue(new ScopeConnectionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -334,7 +340,9 @@ public virtual ArmOperation Update(WaitUntil waitUntil, try { var response = _scopeConnectionRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new NetworkArmOperation(Response.FromValue(new ScopeConnectionResource(Client, response), response.GetRawResponse())); + var uri = _scopeConnectionRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new NetworkArmOperation(Response.FromValue(new ScopeConnectionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityAdminConfigurationCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityAdminConfigurationCollection.cs index b8a8baf18b67..ba98b4f993fa 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityAdminConfigurationCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityAdminConfigurationCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> Crea try { var response = await _securityAdminConfigurationRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, configurationName, data, cancellationToken).ConfigureAwait(false); - var operation = new NetworkArmOperation(Response.FromValue(new SecurityAdminConfigurationResource(Client, response), response.GetRawResponse())); + var uri = _securityAdminConfigurationRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, configurationName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new NetworkArmOperation(Response.FromValue(new SecurityAdminConfigurationResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(W try { var response = _securityAdminConfigurationRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, configurationName, data, cancellationToken); - var operation = new NetworkArmOperation(Response.FromValue(new SecurityAdminConfigurationResource(Client, response), response.GetRawResponse())); + var uri = _securityAdminConfigurationRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, configurationName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new NetworkArmOperation(Response.FromValue(new SecurityAdminConfigurationResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityAdminConfigurationResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityAdminConfigurationResource.cs index e99ff5ce0404..3b13026fec65 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityAdminConfigurationResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityAdminConfigurationResource.cs @@ -359,7 +359,9 @@ public virtual async Task> Upda try { var response = await _securityAdminConfigurationRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new NetworkArmOperation(Response.FromValue(new SecurityAdminConfigurationResource(Client, response), response.GetRawResponse())); + var uri = _securityAdminConfigurationRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new NetworkArmOperation(Response.FromValue(new SecurityAdminConfigurationResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -405,7 +407,9 @@ public virtual ArmOperation Update(WaitUntil try { var response = _securityAdminConfigurationRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new NetworkArmOperation(Response.FromValue(new SecurityAdminConfigurationResource(Client, response), response.GetRawResponse())); + var uri = _securityAdminConfigurationRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new NetworkArmOperation(Response.FromValue(new SecurityAdminConfigurationResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/SubscriptionNetworkManagerConnectionCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/SubscriptionNetworkManagerConnectionCollection.cs index 5b7fa40680a8..7dc909b434bf 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/SubscriptionNetworkManagerConnectionCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/SubscriptionNetworkManagerConnectionCollection.cs @@ -91,7 +91,9 @@ public virtual async Task(Response.FromValue(new SubscriptionNetworkManagerConnectionResource(Client, response), response.GetRawResponse())); + var uri = _subscriptionNetworkManagerConnectionRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, networkManagerConnectionName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new NetworkArmOperation(Response.FromValue(new SubscriptionNetworkManagerConnectionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -140,7 +142,9 @@ public virtual ArmOperation Create try { var response = _subscriptionNetworkManagerConnectionRestClient.CreateOrUpdate(Id.SubscriptionId, networkManagerConnectionName, data, cancellationToken); - var operation = new NetworkArmOperation(Response.FromValue(new SubscriptionNetworkManagerConnectionResource(Client, response), response.GetRawResponse())); + var uri = _subscriptionNetworkManagerConnectionRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, networkManagerConnectionName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new NetworkArmOperation(Response.FromValue(new SubscriptionNetworkManagerConnectionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/SubscriptionNetworkManagerConnectionResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/SubscriptionNetworkManagerConnectionResource.cs index 291af96b44a2..6428021b273a 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/SubscriptionNetworkManagerConnectionResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/SubscriptionNetworkManagerConnectionResource.cs @@ -199,7 +199,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _subscriptionNetworkManagerConnectionRestClient.DeleteAsync(Id.SubscriptionId, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new NetworkArmOperation(response); + var uri = _subscriptionNetworkManagerConnectionRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new NetworkArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -241,7 +243,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _subscriptionNetworkManagerConnectionRestClient.Delete(Id.SubscriptionId, Id.Name, cancellationToken); - var operation = new NetworkArmOperation(response); + var uri = _subscriptionNetworkManagerConnectionRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new NetworkArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -287,7 +291,9 @@ public virtual async Task(Response.FromValue(new SubscriptionNetworkManagerConnectionResource(Client, response), response.GetRawResponse())); + var uri = _subscriptionNetworkManagerConnectionRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new NetworkArmOperation(Response.FromValue(new SubscriptionNetworkManagerConnectionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -333,7 +339,9 @@ public virtual ArmOperation Update try { var response = _subscriptionNetworkManagerConnectionRestClient.CreateOrUpdate(Id.SubscriptionId, Id.Name, data, cancellationToken); - var operation = new NetworkArmOperation(Response.FromValue(new SubscriptionNetworkManagerConnectionResource(Client, response), response.GetRawResponse())); + var uri = _subscriptionNetworkManagerConnectionRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new NetworkArmOperation(Response.FromValue(new SubscriptionNetworkManagerConnectionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/WebApplicationFirewallPolicyCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/WebApplicationFirewallPolicyCollection.cs index 2e21fc8a52a5..7598c7735925 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/WebApplicationFirewallPolicyCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/WebApplicationFirewallPolicyCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> Cr try { var response = await _webApplicationFirewallPolicyRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, policyName, data, cancellationToken).ConfigureAwait(false); - var operation = new NetworkArmOperation(Response.FromValue(new WebApplicationFirewallPolicyResource(Client, response), response.GetRawResponse())); + var uri = _webApplicationFirewallPolicyRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, policyName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new NetworkArmOperation(Response.FromValue(new WebApplicationFirewallPolicyResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -140,7 +142,9 @@ public virtual ArmOperation CreateOrUpdate try { var response = _webApplicationFirewallPolicyRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, policyName, data, cancellationToken); - var operation = new NetworkArmOperation(Response.FromValue(new WebApplicationFirewallPolicyResource(Client, response), response.GetRawResponse())); + var uri = _webApplicationFirewallPolicyRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, policyName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new NetworkArmOperation(Response.FromValue(new WebApplicationFirewallPolicyResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/WebApplicationFirewallPolicyResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/WebApplicationFirewallPolicyResource.cs index 33cef1e946b2..2b7246477436 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/WebApplicationFirewallPolicyResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/WebApplicationFirewallPolicyResource.cs @@ -289,7 +289,9 @@ public virtual async Task> Up try { var response = await _webApplicationFirewallPolicyRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new NetworkArmOperation(Response.FromValue(new WebApplicationFirewallPolicyResource(Client, response), response.GetRawResponse())); + var uri = _webApplicationFirewallPolicyRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new NetworkArmOperation(Response.FromValue(new WebApplicationFirewallPolicyResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -335,7 +337,9 @@ public virtual ArmOperation Update(WaitUnt try { var response = _webApplicationFirewallPolicyRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, data, cancellationToken); - var operation = new NetworkArmOperation(Response.FromValue(new WebApplicationFirewallPolicyResource(Client, response), response.GetRawResponse())); + var uri = _webApplicationFirewallPolicyRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new NetworkArmOperation(Response.FromValue(new WebApplicationFirewallPolicyResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Generated/LongRunningOperation/NetworkAnalyticsArmOperation.cs b/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Generated/LongRunningOperation/NetworkAnalyticsArmOperation.cs index f41fd3951ae6..6a677d149ab1 100644 --- a/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Generated/LongRunningOperation/NetworkAnalyticsArmOperation.cs +++ b/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Generated/LongRunningOperation/NetworkAnalyticsArmOperation.cs @@ -20,21 +20,24 @@ internal class NetworkAnalyticsArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of NetworkAnalyticsArmOperation for mocking. protected NetworkAnalyticsArmOperation() { } - internal NetworkAnalyticsArmOperation(Response response) + internal NetworkAnalyticsArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal NetworkAnalyticsArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "NetworkAnalyticsArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal NetworkAnalyticsArmOperation(ClientDiagnostics clientDiagnostics, HttpP public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Generated/LongRunningOperation/NetworkAnalyticsArmOperationOfT.cs b/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Generated/LongRunningOperation/NetworkAnalyticsArmOperationOfT.cs index 38b9ee8cb11b..aa7fe0c1811f 100644 --- a/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Generated/LongRunningOperation/NetworkAnalyticsArmOperationOfT.cs +++ b/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Generated/LongRunningOperation/NetworkAnalyticsArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class NetworkAnalyticsArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of NetworkAnalyticsArmOperation for mocking. protected NetworkAnalyticsArmOperation() { } - internal NetworkAnalyticsArmOperation(Response response) + internal NetworkAnalyticsArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal NetworkAnalyticsArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "NetworkAnalyticsArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal NetworkAnalyticsArmOperation(IOperationSource source, ClientDiagnost public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Generated/Models/DataProductResource.Serialization.cs b/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Generated/Models/DataProductResource.Serialization.cs new file mode 100644 index 000000000000..87452846c2f9 --- /dev/null +++ b/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Generated/Models/DataProductResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.NetworkAnalytics +{ + public partial class DataProductResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DataProductData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DataProductData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Generated/Models/DataProductsCatalogResource.Serialization.cs b/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Generated/Models/DataProductsCatalogResource.Serialization.cs new file mode 100644 index 000000000000..3a299fadf8be --- /dev/null +++ b/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Generated/Models/DataProductsCatalogResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.NetworkAnalytics +{ + public partial class DataProductsCatalogResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DataProductsCatalogData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DataProductsCatalogData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Generated/RestOperations/DataProductsCatalogsRestOperations.cs b/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Generated/RestOperations/DataProductsCatalogsRestOperations.cs index 46d790857a0b..33bf5df94c3a 100644 --- a/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Generated/RestOperations/DataProductsCatalogsRestOperations.cs +++ b/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Generated/RestOperations/DataProductsCatalogsRestOperations.cs @@ -37,6 +37,17 @@ public DataProductsCatalogsRestOperations(HttpPipeline pipeline, string applicat _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.NetworkAnalytics/dataProductsCatalogs", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,19 @@ public Response ListBySubscription(string subscri } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.NetworkAnalytics/dataProductsCatalogs", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -177,6 +201,19 @@ public Response ListByResourceGroup(string subscr } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName) + { + 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.NetworkAnalytics/dataProductsCatalogs/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -254,6 +291,14 @@ public Response Get(string subscriptionId, string resou } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -322,6 +367,14 @@ public Response ListBySubscriptionNextPage(string } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Generated/RestOperations/DataProductsRestOperations.cs b/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Generated/RestOperations/DataProductsRestOperations.cs index 253c967bdc94..19da1ca551a5 100644 --- a/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Generated/RestOperations/DataProductsRestOperations.cs +++ b/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Generated/RestOperations/DataProductsRestOperations.cs @@ -37,6 +37,17 @@ public DataProductsRestOperations(HttpPipeline pipeline, string applicationId, U _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.NetworkAnalytics/dataProducts", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,19 @@ public Response ListBySubscription(string subscriptionId, } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.NetworkAnalytics/dataProducts", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -177,6 +201,20 @@ public Response ListByResourceGroup(string subscriptionId } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string dataProductName) + { + 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.NetworkAnalytics/dataProducts/", false); + uri.AppendPath(dataProductName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string dataProductName) { var message = _pipeline.CreateMessage(); @@ -259,6 +297,20 @@ public Response Get(string subscriptionId, string resourceGroup } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string dataProductName, DataProductData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.NetworkAnalytics/dataProducts/", false); + uri.AppendPath(dataProductName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string dataProductName, DataProductData data) { var message = _pipeline.CreateMessage(); @@ -337,6 +389,20 @@ public Response Create(string subscriptionId, string resourceGroupName, string d } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string dataProductName, DataProductPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.NetworkAnalytics/dataProducts/", false); + uri.AppendPath(dataProductName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string dataProductName, DataProductPatch patch) { var message = _pipeline.CreateMessage(); @@ -415,6 +481,20 @@ public Response Update(string subscriptionId, string resourceGroupName, string d } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string dataProductName) + { + 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.NetworkAnalytics/dataProducts/", false); + uri.AppendPath(dataProductName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string dataProductName) { var message = _pipeline.CreateMessage(); @@ -485,6 +565,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string d } } + internal RequestUriBuilder CreateAddUserRoleRequestUri(string subscriptionId, string resourceGroupName, string dataProductName, RoleAssignmentCommonProperties body) + { + 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.NetworkAnalytics/dataProducts/", false); + uri.AppendPath(dataProductName, true); + uri.AppendPath("/addUserRole", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateAddUserRoleRequest(string subscriptionId, string resourceGroupName, string dataProductName, RoleAssignmentCommonProperties body) { var message = _pipeline.CreateMessage(); @@ -572,6 +667,21 @@ public Response AddUserRole(string subscriptionId, string } } + internal RequestUriBuilder CreateGenerateStorageAccountSasTokenRequestUri(string subscriptionId, string resourceGroupName, string dataProductName, AccountSasContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.NetworkAnalytics/dataProducts/", false); + uri.AppendPath(dataProductName, true); + uri.AppendPath("/generateStorageAccountSasToken", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGenerateStorageAccountSasTokenRequest(string subscriptionId, string resourceGroupName, string dataProductName, AccountSasContent content) { var message = _pipeline.CreateMessage(); @@ -659,6 +769,21 @@ public Response GenerateStorageAccountSasToken(string subscript } } + internal RequestUriBuilder CreateListRolesAssignmentsRequestUri(string subscriptionId, string resourceGroupName, string dataProductName, BinaryData body) + { + 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.NetworkAnalytics/dataProducts/", false); + uri.AppendPath(dataProductName, true); + uri.AppendPath("/listRolesAssignments", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRolesAssignmentsRequest(string subscriptionId, string resourceGroupName, string dataProductName, BinaryData body) { var message = _pipeline.CreateMessage(); @@ -753,6 +878,21 @@ public Response ListRolesAssignments(string subscripti } } + internal RequestUriBuilder CreateRemoveUserRoleRequestUri(string subscriptionId, string resourceGroupName, string dataProductName, RoleAssignmentDetail body) + { + 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.NetworkAnalytics/dataProducts/", false); + uri.AppendPath(dataProductName, true); + uri.AppendPath("/removeUserRole", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRemoveUserRoleRequest(string subscriptionId, string resourceGroupName, string dataProductName, RoleAssignmentDetail body) { var message = _pipeline.CreateMessage(); @@ -830,6 +970,21 @@ public Response RemoveUserRole(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateRotateKeyRequestUri(string subscriptionId, string resourceGroupName, string dataProductName, NetworkAnalyticsKeyVaultContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.NetworkAnalytics/dataProducts/", false); + uri.AppendPath(dataProductName, true); + uri.AppendPath("/rotateKey", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRotateKeyRequest(string subscriptionId, string resourceGroupName, string dataProductName, NetworkAnalyticsKeyVaultContent content) { var message = _pipeline.CreateMessage(); @@ -907,6 +1062,14 @@ public Response RotateKey(string subscriptionId, string resourceGroupName, strin } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -975,6 +1138,14 @@ public Response ListBySubscriptionNextPage(string nextLin } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Generated/RestOperations/DataTypesRestOperations.cs b/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Generated/RestOperations/DataTypesRestOperations.cs index d381d7ca4d94..3b72c2220816 100644 --- a/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Generated/RestOperations/DataTypesRestOperations.cs +++ b/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Generated/RestOperations/DataTypesRestOperations.cs @@ -37,6 +37,21 @@ public DataTypesRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByDataProductRequestUri(string subscriptionId, string resourceGroupName, string dataProductName) + { + 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.NetworkAnalytics/dataProducts/", false); + uri.AppendPath(dataProductName, true); + uri.AppendPath("/dataTypes", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByDataProductRequest(string subscriptionId, string resourceGroupName, string dataProductName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,14 @@ public Response ListByDataProduct(string subscriptionId, str } } + internal RequestUriBuilder CreateListByDataProductNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string dataProductName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByDataProductNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string dataProductName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/LongRunningOperation/NetworkCloudArmOperation.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/LongRunningOperation/NetworkCloudArmOperation.cs index a66aa7bcd1c3..a1312a353da1 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/LongRunningOperation/NetworkCloudArmOperation.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/LongRunningOperation/NetworkCloudArmOperation.cs @@ -20,21 +20,24 @@ internal class NetworkCloudArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of NetworkCloudArmOperation for mocking. protected NetworkCloudArmOperation() { } - internal NetworkCloudArmOperation(Response response) + internal NetworkCloudArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal NetworkCloudArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "NetworkCloudArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal NetworkCloudArmOperation(ClientDiagnostics clientDiagnostics, HttpPipel public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/LongRunningOperation/NetworkCloudArmOperationOfT.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/LongRunningOperation/NetworkCloudArmOperationOfT.cs index cd946c1f1b41..eac09fe167bb 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/LongRunningOperation/NetworkCloudArmOperationOfT.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/LongRunningOperation/NetworkCloudArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class NetworkCloudArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of NetworkCloudArmOperation for mocking. protected NetworkCloudArmOperation() { } - internal NetworkCloudArmOperation(Response response) + internal NetworkCloudArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal NetworkCloudArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "NetworkCloudArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal NetworkCloudArmOperation(IOperationSource source, ClientDiagnostics public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudAgentPoolResource.Serialization.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudAgentPoolResource.Serialization.cs new file mode 100644 index 000000000000..91d329c145d3 --- /dev/null +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudAgentPoolResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.NetworkCloud +{ + public partial class NetworkCloudAgentPoolResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + NetworkCloudAgentPoolData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + NetworkCloudAgentPoolData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudBareMetalMachineKeySetResource.Serialization.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudBareMetalMachineKeySetResource.Serialization.cs new file mode 100644 index 000000000000..f7d937c3c228 --- /dev/null +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudBareMetalMachineKeySetResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.NetworkCloud +{ + public partial class NetworkCloudBareMetalMachineKeySetResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + NetworkCloudBareMetalMachineKeySetData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + NetworkCloudBareMetalMachineKeySetData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudBareMetalMachineResource.Serialization.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudBareMetalMachineResource.Serialization.cs new file mode 100644 index 000000000000..5276e8020dca --- /dev/null +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudBareMetalMachineResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.NetworkCloud +{ + public partial class NetworkCloudBareMetalMachineResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + NetworkCloudBareMetalMachineData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + NetworkCloudBareMetalMachineData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudBmcKeySetResource.Serialization.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudBmcKeySetResource.Serialization.cs new file mode 100644 index 000000000000..ea14dd3afcdb --- /dev/null +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudBmcKeySetResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.NetworkCloud +{ + public partial class NetworkCloudBmcKeySetResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + NetworkCloudBmcKeySetData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + NetworkCloudBmcKeySetData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudCloudServicesNetworkResource.Serialization.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudCloudServicesNetworkResource.Serialization.cs new file mode 100644 index 000000000000..0779829c5341 --- /dev/null +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudCloudServicesNetworkResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.NetworkCloud +{ + public partial class NetworkCloudCloudServicesNetworkResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + NetworkCloudCloudServicesNetworkData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + NetworkCloudCloudServicesNetworkData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudClusterManagerResource.Serialization.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudClusterManagerResource.Serialization.cs new file mode 100644 index 000000000000..7808e81692e9 --- /dev/null +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudClusterManagerResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.NetworkCloud +{ + public partial class NetworkCloudClusterManagerResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + NetworkCloudClusterManagerData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + NetworkCloudClusterManagerData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudClusterMetricsConfigurationResource.Serialization.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudClusterMetricsConfigurationResource.Serialization.cs new file mode 100644 index 000000000000..139453d03f7c --- /dev/null +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudClusterMetricsConfigurationResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.NetworkCloud +{ + public partial class NetworkCloudClusterMetricsConfigurationResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + NetworkCloudClusterMetricsConfigurationData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + NetworkCloudClusterMetricsConfigurationData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudClusterResource.Serialization.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudClusterResource.Serialization.cs new file mode 100644 index 000000000000..f7383718b1b9 --- /dev/null +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudClusterResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.NetworkCloud +{ + public partial class NetworkCloudClusterResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + NetworkCloudClusterData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + NetworkCloudClusterData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudKubernetesClusterResource.Serialization.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudKubernetesClusterResource.Serialization.cs new file mode 100644 index 000000000000..3389b710afc0 --- /dev/null +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudKubernetesClusterResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.NetworkCloud +{ + public partial class NetworkCloudKubernetesClusterResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + NetworkCloudKubernetesClusterData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + NetworkCloudKubernetesClusterData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudL2NetworkResource.Serialization.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudL2NetworkResource.Serialization.cs new file mode 100644 index 000000000000..320287707612 --- /dev/null +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudL2NetworkResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.NetworkCloud +{ + public partial class NetworkCloudL2NetworkResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + NetworkCloudL2NetworkData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + NetworkCloudL2NetworkData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudL3NetworkResource.Serialization.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudL3NetworkResource.Serialization.cs new file mode 100644 index 000000000000..f78f986ec1ac --- /dev/null +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudL3NetworkResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.NetworkCloud +{ + public partial class NetworkCloudL3NetworkResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + NetworkCloudL3NetworkData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + NetworkCloudL3NetworkData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudRackResource.Serialization.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudRackResource.Serialization.cs new file mode 100644 index 000000000000..459bb5fe6efe --- /dev/null +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudRackResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.NetworkCloud +{ + public partial class NetworkCloudRackResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + NetworkCloudRackData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + NetworkCloudRackData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudRackSkuResource.Serialization.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudRackSkuResource.Serialization.cs new file mode 100644 index 000000000000..e58f8a1deb96 --- /dev/null +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudRackSkuResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.NetworkCloud +{ + public partial class NetworkCloudRackSkuResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + NetworkCloudRackSkuData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + NetworkCloudRackSkuData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudStorageApplianceResource.Serialization.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudStorageApplianceResource.Serialization.cs new file mode 100644 index 000000000000..42d27f4774e6 --- /dev/null +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudStorageApplianceResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.NetworkCloud +{ + public partial class NetworkCloudStorageApplianceResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + NetworkCloudStorageApplianceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + NetworkCloudStorageApplianceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudTrunkedNetworkResource.Serialization.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudTrunkedNetworkResource.Serialization.cs new file mode 100644 index 000000000000..b89b0345dec4 --- /dev/null +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudTrunkedNetworkResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.NetworkCloud +{ + public partial class NetworkCloudTrunkedNetworkResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + NetworkCloudTrunkedNetworkData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + NetworkCloudTrunkedNetworkData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudVirtualMachineConsoleResource.Serialization.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudVirtualMachineConsoleResource.Serialization.cs new file mode 100644 index 000000000000..4a15b5700060 --- /dev/null +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudVirtualMachineConsoleResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.NetworkCloud +{ + public partial class NetworkCloudVirtualMachineConsoleResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + NetworkCloudVirtualMachineConsoleData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + NetworkCloudVirtualMachineConsoleData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudVirtualMachineResource.Serialization.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudVirtualMachineResource.Serialization.cs new file mode 100644 index 000000000000..7cfd94e626ab --- /dev/null +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudVirtualMachineResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.NetworkCloud +{ + public partial class NetworkCloudVirtualMachineResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + NetworkCloudVirtualMachineData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + NetworkCloudVirtualMachineData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudVolumeResource.Serialization.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudVolumeResource.Serialization.cs new file mode 100644 index 000000000000..c88198c4b1f5 --- /dev/null +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudVolumeResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.NetworkCloud +{ + public partial class NetworkCloudVolumeResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + NetworkCloudVolumeData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + NetworkCloudVolumeData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/AgentPoolsRestOperations.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/AgentPoolsRestOperations.cs index 561b85ff5843..14774d627e1e 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/AgentPoolsRestOperations.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/AgentPoolsRestOperations.cs @@ -37,6 +37,21 @@ public AgentPoolsRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByKubernetesClusterRequestUri(string subscriptionId, string resourceGroupName, string kubernetesClusterName) + { + 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.NetworkCloud/kubernetesClusters/", false); + uri.AppendPath(kubernetesClusterName, true); + uri.AppendPath("/agentPools", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByKubernetesClusterRequest(string subscriptionId, string resourceGroupName, string kubernetesClusterName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByKubernetesCluster(string subscriptionId, st } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string kubernetesClusterName, string agentPoolName) + { + 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.NetworkCloud/kubernetesClusters/", false); + uri.AppendPath(kubernetesClusterName, true); + uri.AppendPath("/agentPools/", false); + uri.AppendPath(agentPoolName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string kubernetesClusterName, string agentPoolName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscriptionId, string res } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string kubernetesClusterName, string agentPoolName, NetworkCloudAgentPoolData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.NetworkCloud/kubernetesClusters/", false); + uri.AppendPath(kubernetesClusterName, true); + uri.AppendPath("/agentPools/", false); + uri.AppendPath(agentPoolName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string kubernetesClusterName, string agentPoolName, NetworkCloudAgentPoolData data) { var message = _pipeline.CreateMessage(); @@ -288,6 +335,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string kubernetesClusterName, string agentPoolName) + { + 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.NetworkCloud/kubernetesClusters/", false); + uri.AppendPath(kubernetesClusterName, true); + uri.AppendPath("/agentPools/", false); + uri.AppendPath(agentPoolName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string kubernetesClusterName, string agentPoolName) { var message = _pipeline.CreateMessage(); @@ -366,6 +429,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string k } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string kubernetesClusterName, string agentPoolName, NetworkCloudAgentPoolPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.NetworkCloud/kubernetesClusters/", false); + uri.AppendPath(kubernetesClusterName, true); + uri.AppendPath("/agentPools/", false); + uri.AppendPath(agentPoolName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string kubernetesClusterName, string agentPoolName, NetworkCloudAgentPoolPatch patch) { var message = _pipeline.CreateMessage(); @@ -450,6 +529,14 @@ public Response Update(string subscriptionId, string resourceGroupName, string k } } + internal RequestUriBuilder CreateListByKubernetesClusterNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string kubernetesClusterName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByKubernetesClusterNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string kubernetesClusterName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/BareMetalMachineKeySetsRestOperations.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/BareMetalMachineKeySetsRestOperations.cs index 5b3a0d372c1d..7c118efe71cf 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/BareMetalMachineKeySetsRestOperations.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/BareMetalMachineKeySetsRestOperations.cs @@ -37,6 +37,21 @@ public BareMetalMachineKeySetsRestOperations(HttpPipeline pipeline, string appli _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByClusterRequestUri(string subscriptionId, string resourceGroupName, string clusterName) + { + 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.NetworkCloud/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/bareMetalMachineKeySets", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByClusterRequest(string subscriptionId, string resourceGroupName, string clusterName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByCluster(string subscriptionId, } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string bareMetalMachineKeySetName) + { + 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.NetworkCloud/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/bareMetalMachineKeySets/", false); + uri.AppendPath(bareMetalMachineKeySetName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string clusterName, string bareMetalMachineKeySetName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscriptionI } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string bareMetalMachineKeySetName, NetworkCloudBareMetalMachineKeySetData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.NetworkCloud/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/bareMetalMachineKeySets/", false); + uri.AppendPath(bareMetalMachineKeySetName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string clusterName, string bareMetalMachineKeySetName, NetworkCloudBareMetalMachineKeySetData data) { var message = _pipeline.CreateMessage(); @@ -288,6 +335,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string bareMetalMachineKeySetName) + { + 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.NetworkCloud/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/bareMetalMachineKeySets/", false); + uri.AppendPath(bareMetalMachineKeySetName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string clusterName, string bareMetalMachineKeySetName) { var message = _pipeline.CreateMessage(); @@ -366,6 +429,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string bareMetalMachineKeySetName, NetworkCloudBareMetalMachineKeySetPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.NetworkCloud/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/bareMetalMachineKeySets/", false); + uri.AppendPath(bareMetalMachineKeySetName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string clusterName, string bareMetalMachineKeySetName, NetworkCloudBareMetalMachineKeySetPatch patch) { var message = _pipeline.CreateMessage(); @@ -450,6 +529,14 @@ public Response Update(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateListByClusterNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string clusterName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByClusterNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string clusterName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/BareMetalMachinesRestOperations.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/BareMetalMachinesRestOperations.cs index 9f3ff52538c8..f63199ea6f4b 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/BareMetalMachinesRestOperations.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/BareMetalMachinesRestOperations.cs @@ -37,6 +37,17 @@ public BareMetalMachinesRestOperations(HttpPipeline pipeline, string application _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.NetworkCloud/bareMetalMachines", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,19 @@ public Response ListBySubscription(string subscriptionId, } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.NetworkCloud/bareMetalMachines", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -177,6 +201,20 @@ public Response ListByResourceGroup(string subscriptionId, } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string bareMetalMachineName) + { + 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.NetworkCloud/bareMetalMachines/", false); + uri.AppendPath(bareMetalMachineName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string bareMetalMachineName) { var message = _pipeline.CreateMessage(); @@ -259,6 +297,20 @@ public Response Get(string subscriptionId, str } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string bareMetalMachineName, NetworkCloudBareMetalMachinePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.NetworkCloud/bareMetalMachines/", false); + uri.AppendPath(bareMetalMachineName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string bareMetalMachineName, NetworkCloudBareMetalMachinePatch patch) { var message = _pipeline.CreateMessage(); @@ -337,6 +389,21 @@ public Response Update(string subscriptionId, string resourceGroupName, string b } } + internal RequestUriBuilder CreateCordonRequestUri(string subscriptionId, string resourceGroupName, string bareMetalMachineName, BareMetalMachineCordonContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.NetworkCloud/bareMetalMachines/", false); + uri.AppendPath(bareMetalMachineName, true); + uri.AppendPath("/cordon", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCordonRequest(string subscriptionId, string resourceGroupName, string bareMetalMachineName, BareMetalMachineCordonContent content) { var message = _pipeline.CreateMessage(); @@ -419,6 +486,21 @@ public Response Cordon(string subscriptionId, string resourceGroupName, string b } } + internal RequestUriBuilder CreatePowerOffRequestUri(string subscriptionId, string resourceGroupName, string bareMetalMachineName, BareMetalMachinePowerOffContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.NetworkCloud/bareMetalMachines/", false); + uri.AppendPath(bareMetalMachineName, true); + uri.AppendPath("/powerOff", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreatePowerOffRequest(string subscriptionId, string resourceGroupName, string bareMetalMachineName, BareMetalMachinePowerOffContent content) { var message = _pipeline.CreateMessage(); @@ -501,6 +583,21 @@ public Response PowerOff(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreateReimageRequestUri(string subscriptionId, string resourceGroupName, string bareMetalMachineName) + { + 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.NetworkCloud/bareMetalMachines/", false); + uri.AppendPath(bareMetalMachineName, true); + uri.AppendPath("/reimage", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateReimageRequest(string subscriptionId, string resourceGroupName, string bareMetalMachineName) { var message = _pipeline.CreateMessage(); @@ -574,6 +671,21 @@ public Response Reimage(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreateReplaceRequestUri(string subscriptionId, string resourceGroupName, string bareMetalMachineName, BareMetalMachineReplaceContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.NetworkCloud/bareMetalMachines/", false); + uri.AppendPath(bareMetalMachineName, true); + uri.AppendPath("/replace", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateReplaceRequest(string subscriptionId, string resourceGroupName, string bareMetalMachineName, BareMetalMachineReplaceContent content) { var message = _pipeline.CreateMessage(); @@ -656,6 +768,21 @@ public Response Replace(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreateRestartRequestUri(string subscriptionId, string resourceGroupName, string bareMetalMachineName) + { + 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.NetworkCloud/bareMetalMachines/", false); + uri.AppendPath(bareMetalMachineName, true); + uri.AppendPath("/restart", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRestartRequest(string subscriptionId, string resourceGroupName, string bareMetalMachineName) { var message = _pipeline.CreateMessage(); @@ -729,6 +856,21 @@ public Response Restart(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreateRunCommandRequestUri(string subscriptionId, string resourceGroupName, string bareMetalMachineName, BareMetalMachineRunCommandContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.NetworkCloud/bareMetalMachines/", false); + uri.AppendPath(bareMetalMachineName, true); + uri.AppendPath("/runCommand", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRunCommandRequest(string subscriptionId, string resourceGroupName, string bareMetalMachineName, BareMetalMachineRunCommandContent content) { var message = _pipeline.CreateMessage(); @@ -810,6 +952,21 @@ public Response RunCommand(string subscriptionId, string resourceGroupName, stri } } + internal RequestUriBuilder CreateRunDataExtractsRequestUri(string subscriptionId, string resourceGroupName, string bareMetalMachineName, BareMetalMachineRunDataExtractsContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.NetworkCloud/bareMetalMachines/", false); + uri.AppendPath(bareMetalMachineName, true); + uri.AppendPath("/runDataExtracts", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRunDataExtractsRequest(string subscriptionId, string resourceGroupName, string bareMetalMachineName, BareMetalMachineRunDataExtractsContent content) { var message = _pipeline.CreateMessage(); @@ -891,6 +1048,21 @@ public Response RunDataExtracts(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateRunReadCommandsRequestUri(string subscriptionId, string resourceGroupName, string bareMetalMachineName, BareMetalMachineRunReadCommandsContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.NetworkCloud/bareMetalMachines/", false); + uri.AppendPath(bareMetalMachineName, true); + uri.AppendPath("/runReadCommands", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRunReadCommandsRequest(string subscriptionId, string resourceGroupName, string bareMetalMachineName, BareMetalMachineRunReadCommandsContent content) { var message = _pipeline.CreateMessage(); @@ -972,6 +1144,21 @@ public Response RunReadCommands(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateStartRequestUri(string subscriptionId, string resourceGroupName, string bareMetalMachineName) + { + 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.NetworkCloud/bareMetalMachines/", false); + uri.AppendPath(bareMetalMachineName, true); + uri.AppendPath("/start", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStartRequest(string subscriptionId, string resourceGroupName, string bareMetalMachineName) { var message = _pipeline.CreateMessage(); @@ -1045,6 +1232,21 @@ public Response Start(string subscriptionId, string resourceGroupName, string ba } } + internal RequestUriBuilder CreateUncordonRequestUri(string subscriptionId, string resourceGroupName, string bareMetalMachineName) + { + 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.NetworkCloud/bareMetalMachines/", false); + uri.AppendPath(bareMetalMachineName, true); + uri.AppendPath("/uncordon", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUncordonRequest(string subscriptionId, string resourceGroupName, string bareMetalMachineName) { var message = _pipeline.CreateMessage(); @@ -1118,6 +1320,14 @@ public Response Uncordon(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -1186,6 +1396,14 @@ public Response ListBySubscriptionNextPage(string nextLink } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/BmcKeySetsRestOperations.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/BmcKeySetsRestOperations.cs index b2616255caf8..b2aa56f92405 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/BmcKeySetsRestOperations.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/BmcKeySetsRestOperations.cs @@ -37,6 +37,21 @@ public BmcKeySetsRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByClusterRequestUri(string subscriptionId, string resourceGroupName, string clusterName) + { + 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.NetworkCloud/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/bmcKeySets", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByClusterRequest(string subscriptionId, string resourceGroupName, string clusterName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByCluster(string subscriptionId, string resou } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string bmcKeySetName) + { + 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.NetworkCloud/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/bmcKeySets/", false); + uri.AppendPath(bmcKeySetName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string clusterName, string bmcKeySetName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscriptionId, string res } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string bmcKeySetName, NetworkCloudBmcKeySetData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.NetworkCloud/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/bmcKeySets/", false); + uri.AppendPath(bmcKeySetName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string clusterName, string bmcKeySetName, NetworkCloudBmcKeySetData data) { var message = _pipeline.CreateMessage(); @@ -288,6 +335,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string bmcKeySetName) + { + 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.NetworkCloud/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/bmcKeySets/", false); + uri.AppendPath(bmcKeySetName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string clusterName, string bmcKeySetName) { var message = _pipeline.CreateMessage(); @@ -366,6 +429,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string bmcKeySetName, NetworkCloudBmcKeySetPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.NetworkCloud/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/bmcKeySets/", false); + uri.AppendPath(bmcKeySetName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string clusterName, string bmcKeySetName, NetworkCloudBmcKeySetPatch patch) { var message = _pipeline.CreateMessage(); @@ -450,6 +529,14 @@ public Response Update(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateListByClusterNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string clusterName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByClusterNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string clusterName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/CloudServicesNetworksRestOperations.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/CloudServicesNetworksRestOperations.cs index 7e540a0985f4..84d4a4d204b8 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/CloudServicesNetworksRestOperations.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/CloudServicesNetworksRestOperations.cs @@ -37,6 +37,17 @@ public CloudServicesNetworksRestOperations(HttpPipeline pipeline, string applica _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.NetworkCloud/cloudServicesNetworks", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,19 @@ public Response ListBySubscription(string subscription } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.NetworkCloud/cloudServicesNetworks", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -177,6 +201,20 @@ public Response ListByResourceGroup(string subscriptio } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string cloudServicesNetworkName) + { + 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.NetworkCloud/cloudServicesNetworks/", false); + uri.AppendPath(cloudServicesNetworkName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string cloudServicesNetworkName) { var message = _pipeline.CreateMessage(); @@ -259,6 +297,20 @@ public Response Get(string subscriptionId, } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string cloudServicesNetworkName, NetworkCloudCloudServicesNetworkData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.NetworkCloud/cloudServicesNetworks/", false); + uri.AppendPath(cloudServicesNetworkName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string cloudServicesNetworkName, NetworkCloudCloudServicesNetworkData data) { var message = _pipeline.CreateMessage(); @@ -337,6 +389,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string cloudServicesNetworkName) + { + 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.NetworkCloud/cloudServicesNetworks/", false); + uri.AppendPath(cloudServicesNetworkName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string cloudServicesNetworkName) { var message = _pipeline.CreateMessage(); @@ -409,6 +475,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string cloudServicesNetworkName, NetworkCloudCloudServicesNetworkPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.NetworkCloud/cloudServicesNetworks/", false); + uri.AppendPath(cloudServicesNetworkName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string cloudServicesNetworkName, NetworkCloudCloudServicesNetworkPatch patch) { var message = _pipeline.CreateMessage(); @@ -487,6 +567,14 @@ public Response Update(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -555,6 +643,14 @@ public Response ListBySubscriptionNextPage(string next } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/ClusterManagersRestOperations.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/ClusterManagersRestOperations.cs index 180432701379..89c996c720b1 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/ClusterManagersRestOperations.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/ClusterManagersRestOperations.cs @@ -37,6 +37,17 @@ public ClusterManagersRestOperations(HttpPipeline pipeline, string applicationId _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.NetworkCloud/clusterManagers", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,19 @@ public Response ListBySubscription(string subscriptionId, Ca } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.NetworkCloud/clusterManagers", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -177,6 +201,20 @@ public Response ListByResourceGroup(string subscriptionId, s } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string clusterManagerName) + { + 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.NetworkCloud/clusterManagers/", false); + uri.AppendPath(clusterManagerName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string clusterManagerName) { var message = _pipeline.CreateMessage(); @@ -259,6 +297,20 @@ public Response Get(string subscriptionId, strin } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string clusterManagerName, NetworkCloudClusterManagerData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.NetworkCloud/clusterManagers/", false); + uri.AppendPath(clusterManagerName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string clusterManagerName, NetworkCloudClusterManagerData data) { var message = _pipeline.CreateMessage(); @@ -337,6 +389,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string clusterManagerName) + { + 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.NetworkCloud/clusterManagers/", false); + uri.AppendPath(clusterManagerName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string clusterManagerName) { var message = _pipeline.CreateMessage(); @@ -409,6 +475,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string clusterManagerName, NetworkCloudClusterManagerPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.NetworkCloud/clusterManagers/", false); + uri.AppendPath(clusterManagerName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string clusterManagerName, NetworkCloudClusterManagerPatch patch) { var message = _pipeline.CreateMessage(); @@ -495,6 +575,14 @@ public Response Update(string subscriptionId, st } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -563,6 +651,14 @@ public Response ListBySubscriptionNextPage(string nextLink, } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/ClustersRestOperations.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/ClustersRestOperations.cs index b0fc397b769e..f552faae7502 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/ClustersRestOperations.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/ClustersRestOperations.cs @@ -37,6 +37,17 @@ public ClustersRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.NetworkCloud/clusters", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,19 @@ public Response ListBySubscription(string subscriptionId, Cancellat } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.NetworkCloud/clusters", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -177,6 +201,20 @@ public Response ListByResourceGroup(string subscriptionId, string r } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string clusterName) + { + 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.NetworkCloud/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string clusterName) { var message = _pipeline.CreateMessage(); @@ -259,6 +297,20 @@ public Response Get(string subscriptionId, string resou } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string clusterName, NetworkCloudClusterData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.NetworkCloud/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string clusterName, NetworkCloudClusterData data) { var message = _pipeline.CreateMessage(); @@ -337,6 +389,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string clusterName) + { + 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.NetworkCloud/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string clusterName) { var message = _pipeline.CreateMessage(); @@ -409,6 +475,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string clusterName, NetworkCloudClusterPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.NetworkCloud/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string clusterName, NetworkCloudClusterPatch patch) { var message = _pipeline.CreateMessage(); @@ -487,6 +567,21 @@ public Response Update(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateDeployRequestUri(string subscriptionId, string resourceGroupName, string clusterName, ClusterDeployContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.NetworkCloud/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/deploy", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeployRequest(string subscriptionId, string resourceGroupName, string clusterName, ClusterDeployContent content) { var message = _pipeline.CreateMessage(); @@ -569,6 +664,21 @@ public Response Deploy(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateUpdateVersionRequestUri(string subscriptionId, string resourceGroupName, string clusterName, ClusterUpdateVersionContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.NetworkCloud/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/updateVersion", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateVersionRequest(string subscriptionId, string resourceGroupName, string clusterName, ClusterUpdateVersionContent content) { var message = _pipeline.CreateMessage(); @@ -650,6 +760,14 @@ public Response UpdateVersion(string subscriptionId, string resourceGroupName, s } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -718,6 +836,14 @@ public Response ListBySubscriptionNextPage(string nextLink, string } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/ConsolesRestOperations.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/ConsolesRestOperations.cs index 916e59f6c617..03566f4a2c7b 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/ConsolesRestOperations.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/ConsolesRestOperations.cs @@ -37,6 +37,21 @@ public ConsolesRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByVirtualMachineRequestUri(string subscriptionId, string resourceGroupName, string virtualMachineName) + { + 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.NetworkCloud/virtualMachines/", false); + uri.AppendPath(virtualMachineName, true); + uri.AppendPath("/consoles", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByVirtualMachineRequest(string subscriptionId, string resourceGroupName, string virtualMachineName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByVirtualMachine(string subscriptionId, string } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string virtualMachineName, string consoleName) + { + 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.NetworkCloud/virtualMachines/", false); + uri.AppendPath(virtualMachineName, true); + uri.AppendPath("/consoles/", false); + uri.AppendPath(consoleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string virtualMachineName, string consoleName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscriptionId } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string virtualMachineName, string consoleName, NetworkCloudVirtualMachineConsoleData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.NetworkCloud/virtualMachines/", false); + uri.AppendPath(virtualMachineName, true); + uri.AppendPath("/consoles/", false); + uri.AppendPath(consoleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string virtualMachineName, string consoleName, NetworkCloudVirtualMachineConsoleData data) { var message = _pipeline.CreateMessage(); @@ -288,6 +335,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string virtualMachineName, string consoleName) + { + 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.NetworkCloud/virtualMachines/", false); + uri.AppendPath(virtualMachineName, true); + uri.AppendPath("/consoles/", false); + uri.AppendPath(consoleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string virtualMachineName, string consoleName) { var message = _pipeline.CreateMessage(); @@ -366,6 +429,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string v } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string virtualMachineName, string consoleName, NetworkCloudVirtualMachineConsolePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.NetworkCloud/virtualMachines/", false); + uri.AppendPath(virtualMachineName, true); + uri.AppendPath("/consoles/", false); + uri.AppendPath(consoleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string virtualMachineName, string consoleName, NetworkCloudVirtualMachineConsolePatch patch) { var message = _pipeline.CreateMessage(); @@ -450,6 +529,14 @@ public Response Update(string subscriptionId, string resourceGroupName, string v } } + internal RequestUriBuilder CreateListByVirtualMachineNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string virtualMachineName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByVirtualMachineNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string virtualMachineName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/KubernetesClustersRestOperations.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/KubernetesClustersRestOperations.cs index c9221f8fc351..7aecc124bf93 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/KubernetesClustersRestOperations.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/KubernetesClustersRestOperations.cs @@ -37,6 +37,17 @@ public KubernetesClustersRestOperations(HttpPipeline pipeline, string applicatio _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.NetworkCloud/kubernetesClusters", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,19 @@ public Response ListBySubscription(string subscriptionId, } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.NetworkCloud/kubernetesClusters", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -177,6 +201,20 @@ public Response ListByResourceGroup(string subscriptionId } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string kubernetesClusterName) + { + 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.NetworkCloud/kubernetesClusters/", false); + uri.AppendPath(kubernetesClusterName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string kubernetesClusterName) { var message = _pipeline.CreateMessage(); @@ -259,6 +297,20 @@ public Response Get(string subscriptionId, st } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string kubernetesClusterName, NetworkCloudKubernetesClusterData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.NetworkCloud/kubernetesClusters/", false); + uri.AppendPath(kubernetesClusterName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string kubernetesClusterName, NetworkCloudKubernetesClusterData data) { var message = _pipeline.CreateMessage(); @@ -337,6 +389,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string kubernetesClusterName) + { + 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.NetworkCloud/kubernetesClusters/", false); + uri.AppendPath(kubernetesClusterName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string kubernetesClusterName) { var message = _pipeline.CreateMessage(); @@ -409,6 +475,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string k } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string kubernetesClusterName, NetworkCloudKubernetesClusterPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.NetworkCloud/kubernetesClusters/", false); + uri.AppendPath(kubernetesClusterName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string kubernetesClusterName, NetworkCloudKubernetesClusterPatch patch) { var message = _pipeline.CreateMessage(); @@ -487,6 +567,21 @@ public Response Update(string subscriptionId, string resourceGroupName, string k } } + internal RequestUriBuilder CreateRestartNodeRequestUri(string subscriptionId, string resourceGroupName, string kubernetesClusterName, KubernetesClusterRestartNodeContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.NetworkCloud/kubernetesClusters/", false); + uri.AppendPath(kubernetesClusterName, true); + uri.AppendPath("/restartNode", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRestartNodeRequest(string subscriptionId, string resourceGroupName, string kubernetesClusterName, KubernetesClusterRestartNodeContent content) { var message = _pipeline.CreateMessage(); @@ -568,6 +663,14 @@ public Response RestartNode(string subscriptionId, string resourceGroupName, str } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -636,6 +739,14 @@ public Response ListBySubscriptionNextPage(string nextLin } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/L2NetworksRestOperations.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/L2NetworksRestOperations.cs index c0ef1f09b2c1..0001d7496c46 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/L2NetworksRestOperations.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/L2NetworksRestOperations.cs @@ -37,6 +37,17 @@ public L2NetworksRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.NetworkCloud/l2Networks", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,19 @@ public Response ListBySubscription(string subscriptionId, Cancell } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.NetworkCloud/l2Networks", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -177,6 +201,20 @@ public Response ListByResourceGroup(string subscriptionId, string } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string l2NetworkName) + { + 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.NetworkCloud/l2Networks/", false); + uri.AppendPath(l2NetworkName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string l2NetworkName) { var message = _pipeline.CreateMessage(); @@ -259,6 +297,20 @@ public Response Get(string subscriptionId, string res } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string l2NetworkName, NetworkCloudL2NetworkData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.NetworkCloud/l2Networks/", false); + uri.AppendPath(l2NetworkName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string l2NetworkName, NetworkCloudL2NetworkData data) { var message = _pipeline.CreateMessage(); @@ -337,6 +389,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string l2NetworkName) + { + 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.NetworkCloud/l2Networks/", false); + uri.AppendPath(l2NetworkName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string l2NetworkName) { var message = _pipeline.CreateMessage(); @@ -409,6 +475,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string l } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string l2NetworkName, NetworkCloudL2NetworkPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.NetworkCloud/l2Networks/", false); + uri.AppendPath(l2NetworkName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string l2NetworkName, NetworkCloudL2NetworkPatch patch) { var message = _pipeline.CreateMessage(); @@ -495,6 +575,14 @@ public Response Update(string subscriptionId, string } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -563,6 +651,14 @@ public Response ListBySubscriptionNextPage(string nextLink, strin } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/L3NetworksRestOperations.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/L3NetworksRestOperations.cs index 8de377ec28ee..a4c227ecb42f 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/L3NetworksRestOperations.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/L3NetworksRestOperations.cs @@ -37,6 +37,17 @@ public L3NetworksRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.NetworkCloud/l3Networks", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,19 @@ public Response ListBySubscription(string subscriptionId, Cancell } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.NetworkCloud/l3Networks", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -177,6 +201,20 @@ public Response ListByResourceGroup(string subscriptionId, string } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string l3NetworkName) + { + 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.NetworkCloud/l3Networks/", false); + uri.AppendPath(l3NetworkName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string l3NetworkName) { var message = _pipeline.CreateMessage(); @@ -259,6 +297,20 @@ public Response Get(string subscriptionId, string res } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string l3NetworkName, NetworkCloudL3NetworkData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.NetworkCloud/l3Networks/", false); + uri.AppendPath(l3NetworkName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string l3NetworkName, NetworkCloudL3NetworkData data) { var message = _pipeline.CreateMessage(); @@ -337,6 +389,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string l3NetworkName) + { + 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.NetworkCloud/l3Networks/", false); + uri.AppendPath(l3NetworkName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string l3NetworkName) { var message = _pipeline.CreateMessage(); @@ -409,6 +475,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string l } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string l3NetworkName, NetworkCloudL3NetworkPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.NetworkCloud/l3Networks/", false); + uri.AppendPath(l3NetworkName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string l3NetworkName, NetworkCloudL3NetworkPatch patch) { var message = _pipeline.CreateMessage(); @@ -495,6 +575,14 @@ public Response Update(string subscriptionId, string } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -563,6 +651,14 @@ public Response ListBySubscriptionNextPage(string nextLink, strin } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/MetricsConfigurationsRestOperations.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/MetricsConfigurationsRestOperations.cs index a432950b8409..931d7984d4e3 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/MetricsConfigurationsRestOperations.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/MetricsConfigurationsRestOperations.cs @@ -37,6 +37,21 @@ public MetricsConfigurationsRestOperations(HttpPipeline pipeline, string applica _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByClusterRequestUri(string subscriptionId, string resourceGroupName, string clusterName) + { + 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.NetworkCloud/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/metricsConfigurations", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByClusterRequest(string subscriptionId, string resourceGroupName, string clusterName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByCluster(string subscripti } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string metricsConfigurationName) + { + 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.NetworkCloud/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/metricsConfigurations/", false); + uri.AppendPath(metricsConfigurationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string clusterName, string metricsConfigurationName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscrip } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string metricsConfigurationName, NetworkCloudClusterMetricsConfigurationData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.NetworkCloud/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/metricsConfigurations/", false); + uri.AppendPath(metricsConfigurationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string clusterName, string metricsConfigurationName, NetworkCloudClusterMetricsConfigurationData data) { var message = _pipeline.CreateMessage(); @@ -288,6 +335,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string metricsConfigurationName) + { + 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.NetworkCloud/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/metricsConfigurations/", false); + uri.AppendPath(metricsConfigurationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string clusterName, string metricsConfigurationName) { var message = _pipeline.CreateMessage(); @@ -366,6 +429,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string metricsConfigurationName, NetworkCloudClusterMetricsConfigurationPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.NetworkCloud/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/metricsConfigurations/", false); + uri.AppendPath(metricsConfigurationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string clusterName, string metricsConfigurationName, NetworkCloudClusterMetricsConfigurationPatch patch) { var message = _pipeline.CreateMessage(); @@ -450,6 +529,14 @@ public Response Update(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateListByClusterNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string clusterName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByClusterNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string clusterName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/RackSkusRestOperations.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/RackSkusRestOperations.cs index 51ba9f11ed95..bab2a6d76d06 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/RackSkusRestOperations.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/RackSkusRestOperations.cs @@ -37,6 +37,17 @@ public RackSkusRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.NetworkCloud/rackSkus", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,18 @@ public Response ListBySubscription(string subscriptionId, Cancellat } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string rackSkuName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.NetworkCloud/rackSkus/", false); + uri.AppendPath(rackSkuName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string rackSkuName) { var message = _pipeline.CreateMessage(); @@ -180,6 +203,14 @@ public Response Get(string subscriptionId, string rackS } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/RacksRestOperations.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/RacksRestOperations.cs index 193aa5010d72..763cf888826f 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/RacksRestOperations.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/RacksRestOperations.cs @@ -37,6 +37,17 @@ public RacksRestOperations(HttpPipeline pipeline, string applicationId, Uri endp _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.NetworkCloud/racks", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,19 @@ public Response ListBySubscription(string subscriptionId, Cancellation } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.NetworkCloud/racks", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -177,6 +201,20 @@ public Response ListByResourceGroup(string subscriptionId, string reso } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string rackName) + { + 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.NetworkCloud/racks/", false); + uri.AppendPath(rackName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string rackName) { var message = _pipeline.CreateMessage(); @@ -259,6 +297,20 @@ public Response Get(string subscriptionId, string resource } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string rackName, NetworkCloudRackPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.NetworkCloud/racks/", false); + uri.AppendPath(rackName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string rackName, NetworkCloudRackPatch patch) { var message = _pipeline.CreateMessage(); @@ -337,6 +389,14 @@ public Response Update(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -405,6 +465,14 @@ public Response ListBySubscriptionNextPage(string nextLink, string sub } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/StorageAppliancesRestOperations.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/StorageAppliancesRestOperations.cs index 4eab29060254..08f4c4adbe97 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/StorageAppliancesRestOperations.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/StorageAppliancesRestOperations.cs @@ -37,6 +37,17 @@ public StorageAppliancesRestOperations(HttpPipeline pipeline, string application _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.NetworkCloud/storageAppliances", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,19 @@ public Response ListBySubscription(string subscriptionId, } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.NetworkCloud/storageAppliances", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -177,6 +201,20 @@ public Response ListByResourceGroup(string subscriptionId, } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string storageApplianceName) + { + 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.NetworkCloud/storageAppliances/", false); + uri.AppendPath(storageApplianceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string storageApplianceName) { var message = _pipeline.CreateMessage(); @@ -259,6 +297,20 @@ public Response Get(string subscriptionId, str } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string storageApplianceName, NetworkCloudStorageAppliancePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.NetworkCloud/storageAppliances/", false); + uri.AppendPath(storageApplianceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string storageApplianceName, NetworkCloudStorageAppliancePatch patch) { var message = _pipeline.CreateMessage(); @@ -337,6 +389,21 @@ public Response Update(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateDisableRemoteVendorManagementRequestUri(string subscriptionId, string resourceGroupName, string storageApplianceName) + { + 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.NetworkCloud/storageAppliances/", false); + uri.AppendPath(storageApplianceName, true); + uri.AppendPath("/disableRemoteVendorManagement", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDisableRemoteVendorManagementRequest(string subscriptionId, string resourceGroupName, string storageApplianceName) { var message = _pipeline.CreateMessage(); @@ -410,6 +477,21 @@ public Response DisableRemoteVendorManagement(string subscriptionId, string reso } } + internal RequestUriBuilder CreateEnableRemoteVendorManagementRequestUri(string subscriptionId, string resourceGroupName, string storageApplianceName, StorageApplianceEnableRemoteVendorManagementContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.NetworkCloud/storageAppliances/", false); + uri.AppendPath(storageApplianceName, true); + uri.AppendPath("/enableRemoteVendorManagement", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateEnableRemoteVendorManagementRequest(string subscriptionId, string resourceGroupName, string storageApplianceName, StorageApplianceEnableRemoteVendorManagementContent content) { var message = _pipeline.CreateMessage(); @@ -492,6 +574,14 @@ public Response EnableRemoteVendorManagement(string subscriptionId, string resou } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -560,6 +650,14 @@ public Response ListBySubscriptionNextPage(string nextLink } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/TrunkedNetworksRestOperations.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/TrunkedNetworksRestOperations.cs index 3ec5397df199..ec67aece92b9 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/TrunkedNetworksRestOperations.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/TrunkedNetworksRestOperations.cs @@ -37,6 +37,17 @@ public TrunkedNetworksRestOperations(HttpPipeline pipeline, string applicationId _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.NetworkCloud/trunkedNetworks", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,19 @@ public Response ListBySubscription(string subscriptionId, Ca } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.NetworkCloud/trunkedNetworks", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -177,6 +201,20 @@ public Response ListByResourceGroup(string subscriptionId, s } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string trunkedNetworkName) + { + 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.NetworkCloud/trunkedNetworks/", false); + uri.AppendPath(trunkedNetworkName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string trunkedNetworkName) { var message = _pipeline.CreateMessage(); @@ -259,6 +297,20 @@ public Response Get(string subscriptionId, strin } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string trunkedNetworkName, NetworkCloudTrunkedNetworkData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.NetworkCloud/trunkedNetworks/", false); + uri.AppendPath(trunkedNetworkName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string trunkedNetworkName, NetworkCloudTrunkedNetworkData data) { var message = _pipeline.CreateMessage(); @@ -337,6 +389,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string trunkedNetworkName) + { + 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.NetworkCloud/trunkedNetworks/", false); + uri.AppendPath(trunkedNetworkName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string trunkedNetworkName) { var message = _pipeline.CreateMessage(); @@ -409,6 +475,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string t } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string trunkedNetworkName, NetworkCloudTrunkedNetworkPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.NetworkCloud/trunkedNetworks/", false); + uri.AppendPath(trunkedNetworkName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string trunkedNetworkName, NetworkCloudTrunkedNetworkPatch patch) { var message = _pipeline.CreateMessage(); @@ -495,6 +575,14 @@ public Response Update(string subscriptionId, st } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -563,6 +651,14 @@ public Response ListBySubscriptionNextPage(string nextLink, } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/VirtualMachinesRestOperations.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/VirtualMachinesRestOperations.cs index a24b014901a9..3df60a40cb2b 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/VirtualMachinesRestOperations.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/VirtualMachinesRestOperations.cs @@ -37,6 +37,17 @@ public VirtualMachinesRestOperations(HttpPipeline pipeline, string applicationId _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.NetworkCloud/virtualMachines", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,19 @@ public Response ListBySubscription(string subscriptionId, Ca } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.NetworkCloud/virtualMachines", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -177,6 +201,20 @@ public Response ListByResourceGroup(string subscriptionId, s } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string virtualMachineName) + { + 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.NetworkCloud/virtualMachines/", false); + uri.AppendPath(virtualMachineName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string virtualMachineName) { var message = _pipeline.CreateMessage(); @@ -259,6 +297,20 @@ public Response Get(string subscriptionId, strin } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string virtualMachineName, NetworkCloudVirtualMachineData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.NetworkCloud/virtualMachines/", false); + uri.AppendPath(virtualMachineName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string virtualMachineName, NetworkCloudVirtualMachineData data) { var message = _pipeline.CreateMessage(); @@ -337,6 +389,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string virtualMachineName) + { + 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.NetworkCloud/virtualMachines/", false); + uri.AppendPath(virtualMachineName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string virtualMachineName) { var message = _pipeline.CreateMessage(); @@ -409,6 +475,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string v } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string virtualMachineName, NetworkCloudVirtualMachinePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.NetworkCloud/virtualMachines/", false); + uri.AppendPath(virtualMachineName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string virtualMachineName, NetworkCloudVirtualMachinePatch patch) { var message = _pipeline.CreateMessage(); @@ -487,6 +567,21 @@ public Response Update(string subscriptionId, string resourceGroupName, string v } } + internal RequestUriBuilder CreatePowerOffRequestUri(string subscriptionId, string resourceGroupName, string virtualMachineName, VirtualMachinePowerOffContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.NetworkCloud/virtualMachines/", false); + uri.AppendPath(virtualMachineName, true); + uri.AppendPath("/powerOff", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreatePowerOffRequest(string subscriptionId, string resourceGroupName, string virtualMachineName, VirtualMachinePowerOffContent content) { var message = _pipeline.CreateMessage(); @@ -569,6 +664,21 @@ public Response PowerOff(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreateReimageRequestUri(string subscriptionId, string resourceGroupName, string virtualMachineName) + { + 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.NetworkCloud/virtualMachines/", false); + uri.AppendPath(virtualMachineName, true); + uri.AppendPath("/reimage", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateReimageRequest(string subscriptionId, string resourceGroupName, string virtualMachineName) { var message = _pipeline.CreateMessage(); @@ -642,6 +752,21 @@ public Response Reimage(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreateRestartRequestUri(string subscriptionId, string resourceGroupName, string virtualMachineName) + { + 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.NetworkCloud/virtualMachines/", false); + uri.AppendPath(virtualMachineName, true); + uri.AppendPath("/restart", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRestartRequest(string subscriptionId, string resourceGroupName, string virtualMachineName) { var message = _pipeline.CreateMessage(); @@ -715,6 +840,21 @@ public Response Restart(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreateStartRequestUri(string subscriptionId, string resourceGroupName, string virtualMachineName) + { + 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.NetworkCloud/virtualMachines/", false); + uri.AppendPath(virtualMachineName, true); + uri.AppendPath("/start", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStartRequest(string subscriptionId, string resourceGroupName, string virtualMachineName) { var message = _pipeline.CreateMessage(); @@ -788,6 +928,14 @@ public Response Start(string subscriptionId, string resourceGroupName, string vi } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -856,6 +1004,14 @@ public Response ListBySubscriptionNextPage(string nextLink, } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/VolumesRestOperations.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/VolumesRestOperations.cs index 10112314ccac..50e1fccad153 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/VolumesRestOperations.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/VolumesRestOperations.cs @@ -37,6 +37,17 @@ public VolumesRestOperations(HttpPipeline pipeline, string applicationId, Uri en _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.NetworkCloud/volumes", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,19 @@ public Response ListBySubscription(string subscriptionId, Cancellati } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.NetworkCloud/volumes", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -177,6 +201,20 @@ public Response ListByResourceGroup(string subscriptionId, string re } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string volumeName) + { + 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.NetworkCloud/volumes/", false); + uri.AppendPath(volumeName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string volumeName) { var message = _pipeline.CreateMessage(); @@ -259,6 +297,20 @@ public Response Get(string subscriptionId, string resour } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string volumeName, NetworkCloudVolumeData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.NetworkCloud/volumes/", false); + uri.AppendPath(volumeName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string volumeName, NetworkCloudVolumeData data) { var message = _pipeline.CreateMessage(); @@ -337,6 +389,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string volumeName) + { + 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.NetworkCloud/volumes/", false); + uri.AppendPath(volumeName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string volumeName) { var message = _pipeline.CreateMessage(); @@ -409,6 +475,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string v } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string volumeName, NetworkCloudVolumePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.NetworkCloud/volumes/", false); + uri.AppendPath(volumeName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string volumeName, NetworkCloudVolumePatch patch) { var message = _pipeline.CreateMessage(); @@ -495,6 +575,14 @@ public Response Update(string subscriptionId, string res } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -563,6 +651,14 @@ public Response ListBySubscriptionNextPage(string nextLink, string s } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/networkfunction/Azure.ResourceManager.NetworkFunction/src/Generated/LongRunningOperation/NetworkFunctionArmOperation.cs b/sdk/networkfunction/Azure.ResourceManager.NetworkFunction/src/Generated/LongRunningOperation/NetworkFunctionArmOperation.cs index 166e547b56e1..215115698911 100644 --- a/sdk/networkfunction/Azure.ResourceManager.NetworkFunction/src/Generated/LongRunningOperation/NetworkFunctionArmOperation.cs +++ b/sdk/networkfunction/Azure.ResourceManager.NetworkFunction/src/Generated/LongRunningOperation/NetworkFunctionArmOperation.cs @@ -20,21 +20,24 @@ internal class NetworkFunctionArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of NetworkFunctionArmOperation for mocking. protected NetworkFunctionArmOperation() { } - internal NetworkFunctionArmOperation(Response response) + internal NetworkFunctionArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal NetworkFunctionArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "NetworkFunctionArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal NetworkFunctionArmOperation(ClientDiagnostics clientDiagnostics, HttpPi public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/networkfunction/Azure.ResourceManager.NetworkFunction/src/Generated/LongRunningOperation/NetworkFunctionArmOperationOfT.cs b/sdk/networkfunction/Azure.ResourceManager.NetworkFunction/src/Generated/LongRunningOperation/NetworkFunctionArmOperationOfT.cs index 4e468a83bbaa..b669e117ae0e 100644 --- a/sdk/networkfunction/Azure.ResourceManager.NetworkFunction/src/Generated/LongRunningOperation/NetworkFunctionArmOperationOfT.cs +++ b/sdk/networkfunction/Azure.ResourceManager.NetworkFunction/src/Generated/LongRunningOperation/NetworkFunctionArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class NetworkFunctionArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of NetworkFunctionArmOperation for mocking. protected NetworkFunctionArmOperation() { } - internal NetworkFunctionArmOperation(Response response) + internal NetworkFunctionArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal NetworkFunctionArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "NetworkFunctionArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal NetworkFunctionArmOperation(IOperationSource source, ClientDiagnosti public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/networkfunction/Azure.ResourceManager.NetworkFunction/src/Generated/Models/AzureTrafficCollectorResource.Serialization.cs b/sdk/networkfunction/Azure.ResourceManager.NetworkFunction/src/Generated/Models/AzureTrafficCollectorResource.Serialization.cs new file mode 100644 index 000000000000..e460ba0129c4 --- /dev/null +++ b/sdk/networkfunction/Azure.ResourceManager.NetworkFunction/src/Generated/Models/AzureTrafficCollectorResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.NetworkFunction +{ + public partial class AzureTrafficCollectorResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + AzureTrafficCollectorData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + AzureTrafficCollectorData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/networkfunction/Azure.ResourceManager.NetworkFunction/src/Generated/Models/CollectorPolicyResource.Serialization.cs b/sdk/networkfunction/Azure.ResourceManager.NetworkFunction/src/Generated/Models/CollectorPolicyResource.Serialization.cs new file mode 100644 index 000000000000..ef95594b5d44 --- /dev/null +++ b/sdk/networkfunction/Azure.ResourceManager.NetworkFunction/src/Generated/Models/CollectorPolicyResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.NetworkFunction +{ + public partial class CollectorPolicyResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + CollectorPolicyData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + CollectorPolicyData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/networkfunction/Azure.ResourceManager.NetworkFunction/src/Generated/RestOperations/AzureTrafficCollectorsByResourceGroupRestOperations.cs b/sdk/networkfunction/Azure.ResourceManager.NetworkFunction/src/Generated/RestOperations/AzureTrafficCollectorsByResourceGroupRestOperations.cs index 437ce7bbd852..9b391d01d28c 100644 --- a/sdk/networkfunction/Azure.ResourceManager.NetworkFunction/src/Generated/RestOperations/AzureTrafficCollectorsByResourceGroupRestOperations.cs +++ b/sdk/networkfunction/Azure.ResourceManager.NetworkFunction/src/Generated/RestOperations/AzureTrafficCollectorsByResourceGroupRestOperations.cs @@ -37,6 +37,19 @@ public AzureTrafficCollectorsByResourceGroupRestOperations(HttpPipeline pipeline _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName) + { + 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.NetworkFunction/azureTrafficCollectors", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -110,6 +123,14 @@ public Response List(string subscriptionId, str } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/networkfunction/Azure.ResourceManager.NetworkFunction/src/Generated/RestOperations/AzureTrafficCollectorsBySubscriptionRestOperations.cs b/sdk/networkfunction/Azure.ResourceManager.NetworkFunction/src/Generated/RestOperations/AzureTrafficCollectorsBySubscriptionRestOperations.cs index c3ca670eb30c..326a2cb19a06 100644 --- a/sdk/networkfunction/Azure.ResourceManager.NetworkFunction/src/Generated/RestOperations/AzureTrafficCollectorsBySubscriptionRestOperations.cs +++ b/sdk/networkfunction/Azure.ResourceManager.NetworkFunction/src/Generated/RestOperations/AzureTrafficCollectorsBySubscriptionRestOperations.cs @@ -37,6 +37,17 @@ public AzureTrafficCollectorsBySubscriptionRestOperations(HttpPipeline pipeline, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.NetworkFunction/azureTrafficCollectors", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,14 @@ public Response List(string subscriptionId, Can } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/networkfunction/Azure.ResourceManager.NetworkFunction/src/Generated/RestOperations/AzureTrafficCollectorsRestOperations.cs b/sdk/networkfunction/Azure.ResourceManager.NetworkFunction/src/Generated/RestOperations/AzureTrafficCollectorsRestOperations.cs index f0dda1e09a8b..598a81673803 100644 --- a/sdk/networkfunction/Azure.ResourceManager.NetworkFunction/src/Generated/RestOperations/AzureTrafficCollectorsRestOperations.cs +++ b/sdk/networkfunction/Azure.ResourceManager.NetworkFunction/src/Generated/RestOperations/AzureTrafficCollectorsRestOperations.cs @@ -37,6 +37,20 @@ public AzureTrafficCollectorsRestOperations(HttpPipeline pipeline, string applic _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string azureTrafficCollectorName) + { + 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.NetworkFunction/azureTrafficCollectors/", false); + uri.AppendPath(azureTrafficCollectorName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string azureTrafficCollectorName) { var message = _pipeline.CreateMessage(); @@ -119,6 +133,20 @@ public Response Get(string subscriptionId, string res } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string azureTrafficCollectorName, AzureTrafficCollectorData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.NetworkFunction/azureTrafficCollectors/", false); + uri.AppendPath(azureTrafficCollectorName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string azureTrafficCollectorName, AzureTrafficCollectorData data) { var message = _pipeline.CreateMessage(); @@ -197,6 +225,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string azureTrafficCollectorName) + { + 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.NetworkFunction/azureTrafficCollectors/", false); + uri.AppendPath(azureTrafficCollectorName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string azureTrafficCollectorName) { var message = _pipeline.CreateMessage(); @@ -269,6 +311,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateUpdateTagsRequestUri(string subscriptionId, string resourceGroupName, string azureTrafficCollectorName, TagsObject tagsObject) + { + 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.NetworkFunction/azureTrafficCollectors/", false); + uri.AppendPath(azureTrafficCollectorName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateTagsRequest(string subscriptionId, string resourceGroupName, string azureTrafficCollectorName, TagsObject tagsObject) { var message = _pipeline.CreateMessage(); diff --git a/sdk/networkfunction/Azure.ResourceManager.NetworkFunction/src/Generated/RestOperations/CollectorPoliciesRestOperations.cs b/sdk/networkfunction/Azure.ResourceManager.NetworkFunction/src/Generated/RestOperations/CollectorPoliciesRestOperations.cs index 3c0724dd0f00..ad5b789b1fe5 100644 --- a/sdk/networkfunction/Azure.ResourceManager.NetworkFunction/src/Generated/RestOperations/CollectorPoliciesRestOperations.cs +++ b/sdk/networkfunction/Azure.ResourceManager.NetworkFunction/src/Generated/RestOperations/CollectorPoliciesRestOperations.cs @@ -37,6 +37,21 @@ public CollectorPoliciesRestOperations(HttpPipeline pipeline, string application _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string azureTrafficCollectorName) + { + 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.NetworkFunction/azureTrafficCollectors/", false); + uri.AppendPath(azureTrafficCollectorName, true); + uri.AppendPath("/collectorPolicies", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string azureTrafficCollectorName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response List(string subscriptionId, string re } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string azureTrafficCollectorName, string collectorPolicyName) + { + 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.NetworkFunction/azureTrafficCollectors/", false); + uri.AppendPath(azureTrafficCollectorName, true); + uri.AppendPath("/collectorPolicies/", false); + uri.AppendPath(collectorPolicyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string azureTrafficCollectorName, string collectorPolicyName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscriptionId, string resourceG } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string azureTrafficCollectorName, string collectorPolicyName, CollectorPolicyData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.NetworkFunction/azureTrafficCollectors/", false); + uri.AppendPath(azureTrafficCollectorName, true); + uri.AppendPath("/collectorPolicies/", false); + uri.AppendPath(collectorPolicyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string azureTrafficCollectorName, string collectorPolicyName, CollectorPolicyData data) { var message = _pipeline.CreateMessage(); @@ -288,6 +335,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string azureTrafficCollectorName, string collectorPolicyName) + { + 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.NetworkFunction/azureTrafficCollectors/", false); + uri.AppendPath(azureTrafficCollectorName, true); + uri.AppendPath("/collectorPolicies/", false); + uri.AppendPath(collectorPolicyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string azureTrafficCollectorName, string collectorPolicyName) { var message = _pipeline.CreateMessage(); @@ -366,6 +429,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateUpdateTagsRequestUri(string subscriptionId, string resourceGroupName, string azureTrafficCollectorName, string collectorPolicyName, TagsObject tagsObject) + { + 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.NetworkFunction/azureTrafficCollectors/", false); + uri.AppendPath(azureTrafficCollectorName, true); + uri.AppendPath("/collectorPolicies/", false); + uri.AppendPath(collectorPolicyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateTagsRequest(string subscriptionId, string resourceGroupName, string azureTrafficCollectorName, string collectorPolicyName, TagsObject tagsObject) { var message = _pipeline.CreateMessage(); @@ -458,6 +537,14 @@ public Response UpdateTags(string subscriptionId, string re } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string azureTrafficCollectorName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string azureTrafficCollectorName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/LongRunningOperation/NewRelicObservabilityArmOperation.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/LongRunningOperation/NewRelicObservabilityArmOperation.cs index 7e87b769e296..88b223d41507 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/LongRunningOperation/NewRelicObservabilityArmOperation.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/LongRunningOperation/NewRelicObservabilityArmOperation.cs @@ -20,21 +20,24 @@ internal class NewRelicObservabilityArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of NewRelicObservabilityArmOperation for mocking. protected NewRelicObservabilityArmOperation() { } - internal NewRelicObservabilityArmOperation(Response response) + internal NewRelicObservabilityArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal NewRelicObservabilityArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "NewRelicObservabilityArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal NewRelicObservabilityArmOperation(ClientDiagnostics clientDiagnostics, public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/LongRunningOperation/NewRelicObservabilityArmOperationOfT.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/LongRunningOperation/NewRelicObservabilityArmOperationOfT.cs index a52003b140e7..b05cf7f335c4 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/LongRunningOperation/NewRelicObservabilityArmOperationOfT.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/LongRunningOperation/NewRelicObservabilityArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class NewRelicObservabilityArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of NewRelicObservabilityArmOperation for mocking. protected NewRelicObservabilityArmOperation() { } - internal NewRelicObservabilityArmOperation(Response response) + internal NewRelicObservabilityArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal NewRelicObservabilityArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "NewRelicObservabilityArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal NewRelicObservabilityArmOperation(IOperationSource source, ClientDia public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicMonitorResource.Serialization.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicMonitorResource.Serialization.cs new file mode 100644 index 000000000000..ee9d69a832de --- /dev/null +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicMonitorResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.NewRelicObservability +{ + public partial class NewRelicMonitorResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + NewRelicMonitorResourceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + NewRelicMonitorResourceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityTagRuleResource.Serialization.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityTagRuleResource.Serialization.cs new file mode 100644 index 000000000000..02ef6ac842f5 --- /dev/null +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityTagRuleResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.NewRelicObservability +{ + public partial class NewRelicObservabilityTagRuleResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + NewRelicObservabilityTagRuleData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + NewRelicObservabilityTagRuleData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/RestOperations/AccountsRestOperations.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/RestOperations/AccountsRestOperations.cs index f8d21c973fd9..f88b616fac1b 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/RestOperations/AccountsRestOperations.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/RestOperations/AccountsRestOperations.cs @@ -37,6 +37,19 @@ public AccountsRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string userEmail, AzureLocation location) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/NewRelic.Observability/accounts", false); + uri.AppendQuery("api-version", _apiVersion, true); + uri.AppendQuery("userEmail", userEmail, true); + uri.AppendQuery("location", location, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string userEmail, AzureLocation location) { var message = _pipeline.CreateMessage(); @@ -112,6 +125,14 @@ public Response List(string subscriptionId, string u } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string userEmail, AzureLocation location) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string userEmail, AzureLocation location) { var message = _pipeline.CreateMessage(); diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/RestOperations/MonitorsRestOperations.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/RestOperations/MonitorsRestOperations.cs index 9c5f9b2cf42a..49b23158df62 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/RestOperations/MonitorsRestOperations.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/RestOperations/MonitorsRestOperations.cs @@ -37,6 +37,17 @@ public MonitorsRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/NewRelic.Observability/monitors", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,19 @@ public Response ListBySubscription(string sub } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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/NewRelic.Observability/monitors", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -177,6 +201,20 @@ public Response ListByResourceGroup(string su } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string monitorName) + { + 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/NewRelic.Observability/monitors/", false); + uri.AppendPath(monitorName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string monitorName) { var message = _pipeline.CreateMessage(); @@ -259,6 +297,20 @@ public Response Get(string subscriptionId, string r } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string monitorName, NewRelicMonitorResourceData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/NewRelic.Observability/monitors/", false); + uri.AppendPath(monitorName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string monitorName, NewRelicMonitorResourceData data) { var message = _pipeline.CreateMessage(); @@ -337,6 +389,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string monitorName, NewRelicMonitorResourcePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/NewRelic.Observability/monitors/", false); + uri.AppendPath(monitorName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string monitorName, NewRelicMonitorResourcePatch patch) { var message = _pipeline.CreateMessage(); @@ -423,6 +489,21 @@ public Response Update(string subscriptionId, strin } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string monitorName, string userEmail) + { + 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/NewRelic.Observability/monitors/", false); + uri.AppendPath(monitorName, true); + uri.AppendQuery("api-version", _apiVersion, true); + uri.AppendQuery("userEmail", userEmail, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string monitorName, string userEmail) { var message = _pipeline.CreateMessage(); @@ -500,6 +581,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string m } } + internal RequestUriBuilder CreateGetMetricRulesRequestUri(string subscriptionId, string resourceGroupName, string monitorName, NewRelicMetricsContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/NewRelic.Observability/monitors/", false); + uri.AppendPath(monitorName, true); + uri.AppendPath("/getMetricRules", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetMetricRulesRequest(string subscriptionId, string resourceGroupName, string monitorName, NewRelicMetricsContent content) { var message = _pipeline.CreateMessage(); @@ -587,6 +683,21 @@ public Response GetMetricRules(string subscrip } } + internal RequestUriBuilder CreateGetMetricStatusRequestUri(string subscriptionId, string resourceGroupName, string monitorName, NewRelicMetricsStatusContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/NewRelic.Observability/monitors/", false); + uri.AppendPath(monitorName, true); + uri.AppendPath("/getMetricStatus", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetMetricStatusRequest(string subscriptionId, string resourceGroupName, string monitorName, NewRelicMetricsStatusContent content) { var message = _pipeline.CreateMessage(); @@ -674,6 +785,21 @@ public Response GetMetricStatus(string subscription } } + internal RequestUriBuilder CreateListAppServicesRequestUri(string subscriptionId, string resourceGroupName, string monitorName, NewRelicAppServicesGetContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/NewRelic.Observability/monitors/", false); + uri.AppendPath(monitorName, true); + uri.AppendPath("/listAppServices", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListAppServicesRequest(string subscriptionId, string resourceGroupName, string monitorName, NewRelicAppServicesGetContent content) { var message = _pipeline.CreateMessage(); @@ -761,6 +887,21 @@ public Response ListAppServices(string subscripti } } + internal RequestUriBuilder CreateSwitchBillingRequestUri(string subscriptionId, string resourceGroupName, string monitorName, NewRelicSwitchBillingContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/NewRelic.Observability/monitors/", false); + uri.AppendPath(monitorName, true); + uri.AppendPath("/switchBilling", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateSwitchBillingRequest(string subscriptionId, string resourceGroupName, string monitorName, NewRelicSwitchBillingContent content) { var message = _pipeline.CreateMessage(); @@ -854,6 +995,21 @@ public Response SwitchBilling(string subscriptionId } } + internal RequestUriBuilder CreateListHostsRequestUri(string subscriptionId, string resourceGroupName, string monitorName, NewRelicHostsGetContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/NewRelic.Observability/monitors/", false); + uri.AppendPath(monitorName, true); + uri.AppendPath("/listHosts", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListHostsRequest(string subscriptionId, string resourceGroupName, string monitorName, NewRelicHostsGetContent content) { var message = _pipeline.CreateMessage(); @@ -941,6 +1097,21 @@ public Response ListHosts(string subsc } } + internal RequestUriBuilder CreateListMonitoredResourcesRequestUri(string subscriptionId, string resourceGroupName, string monitorName) + { + 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/NewRelic.Observability/monitors/", false); + uri.AppendPath(monitorName, true); + uri.AppendPath("/monitoredResources", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListMonitoredResourcesRequest(string subscriptionId, string resourceGroupName, string monitorName) { var message = _pipeline.CreateMessage(); @@ -1020,6 +1191,21 @@ public Response ListMonitoredR } } + internal RequestUriBuilder CreateVmHostPayloadRequestUri(string subscriptionId, string resourceGroupName, string monitorName) + { + 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/NewRelic.Observability/monitors/", false); + uri.AppendPath(monitorName, true); + uri.AppendPath("/vmHostPayloads", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateVmHostPayloadRequest(string subscriptionId, string resourceGroupName, string monitorName) { var message = _pipeline.CreateMessage(); @@ -1099,6 +1285,14 @@ public Response VmHostPayload(string su } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -1167,6 +1361,14 @@ public Response ListBySubscriptionNextPage(st } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -1239,6 +1441,14 @@ public Response ListByResourceGroupNextPage(s } } + internal RequestUriBuilder CreateListAppServicesNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string monitorName, NewRelicAppServicesGetContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListAppServicesNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string monitorName, NewRelicAppServicesGetContent content) { var message = _pipeline.CreateMessage(); @@ -1319,6 +1529,14 @@ public Response ListAppServicesNextPage(string ne } } + internal RequestUriBuilder CreateListHostsNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string monitorName, NewRelicHostsGetContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListHostsNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string monitorName, NewRelicHostsGetContent content) { var message = _pipeline.CreateMessage(); @@ -1399,6 +1617,14 @@ public Response ListHostsNextPage(stri } } + internal RequestUriBuilder CreateListMonitoredResourcesNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string monitorName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListMonitoredResourcesNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string monitorName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/RestOperations/OrganizationsRestOperations.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/RestOperations/OrganizationsRestOperations.cs index d11d822b392d..cb01f8441098 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/RestOperations/OrganizationsRestOperations.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/RestOperations/OrganizationsRestOperations.cs @@ -37,6 +37,19 @@ public OrganizationsRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string userEmail, AzureLocation location) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/NewRelic.Observability/organizations", false); + uri.AppendQuery("api-version", _apiVersion, true); + uri.AppendQuery("userEmail", userEmail, true); + uri.AppendQuery("location", location, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string userEmail, AzureLocation location) { var message = _pipeline.CreateMessage(); @@ -112,6 +125,14 @@ public Response List(string subscriptionId, str } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string userEmail, AzureLocation location) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string userEmail, AzureLocation location) { var message = _pipeline.CreateMessage(); diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/RestOperations/PlansRestOperations.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/RestOperations/PlansRestOperations.cs index 230e0b03642d..afc3e9df841d 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/RestOperations/PlansRestOperations.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/RestOperations/PlansRestOperations.cs @@ -37,6 +37,25 @@ public PlansRestOperations(HttpPipeline pipeline, string applicationId, Uri endp _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string accountId, string organizationId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/NewRelic.Observability/plans", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (accountId != null) + { + uri.AppendQuery("accountId", accountId, true); + } + if (organizationId != null) + { + uri.AppendQuery("organizationId", organizationId, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string accountId, string organizationId) { var message = _pipeline.CreateMessage(); @@ -116,6 +135,14 @@ public Response List(string subscriptionId, string a } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string accountId, string organizationId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string accountId, string organizationId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/RestOperations/TagRulesRestOperations.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/RestOperations/TagRulesRestOperations.cs index fd26af7f2276..c4516fc043e7 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/RestOperations/TagRulesRestOperations.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/RestOperations/TagRulesRestOperations.cs @@ -37,6 +37,21 @@ public TagRulesRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByNewRelicMonitorResourceRequestUri(string subscriptionId, string resourceGroupName, string monitorName) + { + 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/NewRelic.Observability/monitors/", false); + uri.AppendPath(monitorName, true); + uri.AppendPath("/tagRules", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByNewRelicMonitorResourceRequest(string subscriptionId, string resourceGroupName, string monitorName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByNewRelicMonitorRes } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string monitorName, string ruleSetName) + { + 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/NewRelic.Observability/monitors/", false); + uri.AppendPath(monitorName, true); + uri.AppendPath("/tagRules/", false); + uri.AppendPath(ruleSetName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string monitorName, string ruleSetName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscriptionId, str } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string monitorName, string ruleSetName, NewRelicObservabilityTagRuleData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/NewRelic.Observability/monitors/", false); + uri.AppendPath(monitorName, true); + uri.AppendPath("/tagRules/", false); + uri.AppendPath(ruleSetName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string monitorName, string ruleSetName, NewRelicObservabilityTagRuleData data) { var message = _pipeline.CreateMessage(); @@ -288,6 +335,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string monitorName, string ruleSetName) + { + 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/NewRelic.Observability/monitors/", false); + uri.AppendPath(monitorName, true); + uri.AppendPath("/tagRules/", false); + uri.AppendPath(ruleSetName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string monitorName, string ruleSetName) { var message = _pipeline.CreateMessage(); @@ -366,6 +429,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string m } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string monitorName, string ruleSetName, NewRelicObservabilityTagRulePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/NewRelic.Observability/monitors/", false); + uri.AppendPath(monitorName, true); + uri.AppendPath("/tagRules/", false); + uri.AppendPath(ruleSetName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string monitorName, string ruleSetName, NewRelicObservabilityTagRulePatch patch) { var message = _pipeline.CreateMessage(); @@ -458,6 +537,14 @@ public Response Update(string subscriptionId, } } + internal RequestUriBuilder CreateListByNewRelicMonitorResourceNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string monitorName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByNewRelicMonitorResourceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string monitorName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/nginx/Azure.ResourceManager.Nginx/src/Generated/LongRunningOperation/NginxArmOperation.cs b/sdk/nginx/Azure.ResourceManager.Nginx/src/Generated/LongRunningOperation/NginxArmOperation.cs index be74e745ec15..7d5f57f380c3 100644 --- a/sdk/nginx/Azure.ResourceManager.Nginx/src/Generated/LongRunningOperation/NginxArmOperation.cs +++ b/sdk/nginx/Azure.ResourceManager.Nginx/src/Generated/LongRunningOperation/NginxArmOperation.cs @@ -20,21 +20,24 @@ internal class NginxArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of NginxArmOperation for mocking. protected NginxArmOperation() { } - internal NginxArmOperation(Response response) + internal NginxArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal NginxArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "NginxArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal NginxArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pip public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/nginx/Azure.ResourceManager.Nginx/src/Generated/LongRunningOperation/NginxArmOperationOfT.cs b/sdk/nginx/Azure.ResourceManager.Nginx/src/Generated/LongRunningOperation/NginxArmOperationOfT.cs index 9443b5225246..8800b025f0a2 100644 --- a/sdk/nginx/Azure.ResourceManager.Nginx/src/Generated/LongRunningOperation/NginxArmOperationOfT.cs +++ b/sdk/nginx/Azure.ResourceManager.Nginx/src/Generated/LongRunningOperation/NginxArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class NginxArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of NginxArmOperation for mocking. protected NginxArmOperation() { } - internal NginxArmOperation(Response response) + internal NginxArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal NginxArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "NginxArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal NginxArmOperation(IOperationSource source, ClientDiagnostics clientD public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/nginx/Azure.ResourceManager.Nginx/src/Generated/Models/NginxCertificateResource.Serialization.cs b/sdk/nginx/Azure.ResourceManager.Nginx/src/Generated/Models/NginxCertificateResource.Serialization.cs new file mode 100644 index 000000000000..44bed910ada2 --- /dev/null +++ b/sdk/nginx/Azure.ResourceManager.Nginx/src/Generated/Models/NginxCertificateResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Nginx +{ + public partial class NginxCertificateResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + NginxCertificateData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + NginxCertificateData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/nginx/Azure.ResourceManager.Nginx/src/Generated/Models/NginxConfigurationResource.Serialization.cs b/sdk/nginx/Azure.ResourceManager.Nginx/src/Generated/Models/NginxConfigurationResource.Serialization.cs new file mode 100644 index 000000000000..9deb183e40bb --- /dev/null +++ b/sdk/nginx/Azure.ResourceManager.Nginx/src/Generated/Models/NginxConfigurationResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Nginx +{ + public partial class NginxConfigurationResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + NginxConfigurationData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + NginxConfigurationData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/nginx/Azure.ResourceManager.Nginx/src/Generated/Models/NginxDeploymentResource.Serialization.cs b/sdk/nginx/Azure.ResourceManager.Nginx/src/Generated/Models/NginxDeploymentResource.Serialization.cs new file mode 100644 index 000000000000..88231889d640 --- /dev/null +++ b/sdk/nginx/Azure.ResourceManager.Nginx/src/Generated/Models/NginxDeploymentResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Nginx +{ + public partial class NginxDeploymentResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + NginxDeploymentData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + NginxDeploymentData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/nginx/Azure.ResourceManager.Nginx/src/Generated/RestOperations/CertificatesRestOperations.cs b/sdk/nginx/Azure.ResourceManager.Nginx/src/Generated/RestOperations/CertificatesRestOperations.cs index caa0298263c4..b78bdd7b182d 100644 --- a/sdk/nginx/Azure.ResourceManager.Nginx/src/Generated/RestOperations/CertificatesRestOperations.cs +++ b/sdk/nginx/Azure.ResourceManager.Nginx/src/Generated/RestOperations/CertificatesRestOperations.cs @@ -37,6 +37,22 @@ public CertificatesRestOperations(HttpPipeline pipeline, string applicationId, U _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string deploymentName, string certificateName) + { + 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/Nginx.NginxPlus/nginxDeployments/", false); + uri.AppendPath(deploymentName, true); + uri.AppendPath("/certificates/", false); + uri.AppendPath(certificateName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string deploymentName, string certificateName) { var message = _pipeline.CreateMessage(); @@ -125,6 +141,22 @@ public Response Get(string subscriptionId, string resource } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string deploymentName, string certificateName, NginxCertificateData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Nginx.NginxPlus/nginxDeployments/", false); + uri.AppendPath(deploymentName, true); + uri.AppendPath("/certificates/", false); + uri.AppendPath(certificateName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string deploymentName, string certificateName, NginxCertificateData data) { var message = _pipeline.CreateMessage(); @@ -209,6 +241,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string deploymentName, string certificateName) + { + 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/Nginx.NginxPlus/nginxDeployments/", false); + uri.AppendPath(deploymentName, true); + uri.AppendPath("/certificates/", false); + uri.AppendPath(certificateName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string deploymentName, string certificateName) { var message = _pipeline.CreateMessage(); @@ -287,6 +335,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string d } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string deploymentName) + { + 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/Nginx.NginxPlus/nginxDeployments/", false); + uri.AppendPath(deploymentName, true); + uri.AppendPath("/certificates", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string deploymentName) { var message = _pipeline.CreateMessage(); @@ -366,6 +429,14 @@ public Response List(string subscriptionId, string } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string deploymentName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string deploymentName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/nginx/Azure.ResourceManager.Nginx/src/Generated/RestOperations/ConfigurationsRestOperations.cs b/sdk/nginx/Azure.ResourceManager.Nginx/src/Generated/RestOperations/ConfigurationsRestOperations.cs index 176733313e3f..93095c2259a3 100644 --- a/sdk/nginx/Azure.ResourceManager.Nginx/src/Generated/RestOperations/ConfigurationsRestOperations.cs +++ b/sdk/nginx/Azure.ResourceManager.Nginx/src/Generated/RestOperations/ConfigurationsRestOperations.cs @@ -37,6 +37,21 @@ public ConfigurationsRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string deploymentName) + { + 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/Nginx.NginxPlus/nginxDeployments/", false); + uri.AppendPath(deploymentName, true); + uri.AppendPath("/configurations", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string deploymentName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response List(string subscriptionId, stri } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string deploymentName, string configurationName) + { + 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/Nginx.NginxPlus/nginxDeployments/", false); + uri.AppendPath(deploymentName, true); + uri.AppendPath("/configurations/", false); + uri.AppendPath(configurationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string deploymentName, string configurationName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscriptionId, string resour } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string deploymentName, string configurationName, NginxConfigurationData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Nginx.NginxPlus/nginxDeployments/", false); + uri.AppendPath(deploymentName, true); + uri.AppendPath("/configurations/", false); + uri.AppendPath(configurationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string deploymentName, string configurationName, NginxConfigurationData data) { var message = _pipeline.CreateMessage(); @@ -288,6 +335,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string deploymentName, string configurationName) + { + 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/Nginx.NginxPlus/nginxDeployments/", false); + uri.AppendPath(deploymentName, true); + uri.AppendPath("/configurations/", false); + uri.AppendPath(configurationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string deploymentName, string configurationName) { var message = _pipeline.CreateMessage(); @@ -366,6 +429,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string d } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string deploymentName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string deploymentName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/nginx/Azure.ResourceManager.Nginx/src/Generated/RestOperations/DeploymentsRestOperations.cs b/sdk/nginx/Azure.ResourceManager.Nginx/src/Generated/RestOperations/DeploymentsRestOperations.cs index 808fdcdc3ad4..1306674bc66e 100644 --- a/sdk/nginx/Azure.ResourceManager.Nginx/src/Generated/RestOperations/DeploymentsRestOperations.cs +++ b/sdk/nginx/Azure.ResourceManager.Nginx/src/Generated/RestOperations/DeploymentsRestOperations.cs @@ -37,6 +37,20 @@ public DeploymentsRestOperations(HttpPipeline pipeline, string applicationId, Ur _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string deploymentName) + { + 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/Nginx.NginxPlus/nginxDeployments/", false); + uri.AppendPath(deploymentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string deploymentName) { var message = _pipeline.CreateMessage(); @@ -119,6 +133,20 @@ public Response Get(string subscriptionId, string resourceG } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string deploymentName, NginxDeploymentData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Nginx.NginxPlus/nginxDeployments/", false); + uri.AppendPath(deploymentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string deploymentName, NginxDeploymentData data) { var message = _pipeline.CreateMessage(); @@ -197,6 +225,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string deploymentName, NginxDeploymentPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Nginx.NginxPlus/nginxDeployments/", false); + uri.AppendPath(deploymentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string deploymentName, NginxDeploymentPatch patch) { var message = _pipeline.CreateMessage(); @@ -275,6 +317,20 @@ public Response Update(string subscriptionId, string resourceGroupName, string d } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string deploymentName) + { + 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/Nginx.NginxPlus/nginxDeployments/", false); + uri.AppendPath(deploymentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string deploymentName) { var message = _pipeline.CreateMessage(); @@ -347,6 +403,17 @@ public Response Delete(string subscriptionId, string resourceGroupName, string d } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Nginx.NginxPlus/nginxDeployments", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -414,6 +481,19 @@ public Response List(string subscriptionId, Cancell } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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/Nginx.NginxPlus/nginxDeployments", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -487,6 +567,14 @@ public Response ListByResourceGroup(string subscrip } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -555,6 +643,14 @@ public Response ListNextPage(string nextLink, strin } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/notificationhubs/Azure.ResourceManager.NotificationHubs/src/Generated/LongRunningOperation/NotificationHubsArmOperation.cs b/sdk/notificationhubs/Azure.ResourceManager.NotificationHubs/src/Generated/LongRunningOperation/NotificationHubsArmOperation.cs index 99399a2780a3..af55e5a7938e 100644 --- a/sdk/notificationhubs/Azure.ResourceManager.NotificationHubs/src/Generated/LongRunningOperation/NotificationHubsArmOperation.cs +++ b/sdk/notificationhubs/Azure.ResourceManager.NotificationHubs/src/Generated/LongRunningOperation/NotificationHubsArmOperation.cs @@ -20,21 +20,24 @@ internal class NotificationHubsArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of NotificationHubsArmOperation for mocking. protected NotificationHubsArmOperation() { } - internal NotificationHubsArmOperation(Response response) + internal NotificationHubsArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal NotificationHubsArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "NotificationHubsArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal NotificationHubsArmOperation(ClientDiagnostics clientDiagnostics, HttpP public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/notificationhubs/Azure.ResourceManager.NotificationHubs/src/Generated/LongRunningOperation/NotificationHubsArmOperationOfT.cs b/sdk/notificationhubs/Azure.ResourceManager.NotificationHubs/src/Generated/LongRunningOperation/NotificationHubsArmOperationOfT.cs index c4d90f40a698..7592e5fcbefb 100644 --- a/sdk/notificationhubs/Azure.ResourceManager.NotificationHubs/src/Generated/LongRunningOperation/NotificationHubsArmOperationOfT.cs +++ b/sdk/notificationhubs/Azure.ResourceManager.NotificationHubs/src/Generated/LongRunningOperation/NotificationHubsArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class NotificationHubsArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of NotificationHubsArmOperation for mocking. protected NotificationHubsArmOperation() { } - internal NotificationHubsArmOperation(Response response) + internal NotificationHubsArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal NotificationHubsArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "NotificationHubsArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal NotificationHubsArmOperation(IOperationSource source, ClientDiagnost public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/notificationhubs/Azure.ResourceManager.NotificationHubs/src/Generated/Models/NotificationHubAuthorizationRuleResource.Serialization.cs b/sdk/notificationhubs/Azure.ResourceManager.NotificationHubs/src/Generated/Models/NotificationHubAuthorizationRuleResource.Serialization.cs new file mode 100644 index 000000000000..89df4981cf90 --- /dev/null +++ b/sdk/notificationhubs/Azure.ResourceManager.NotificationHubs/src/Generated/Models/NotificationHubAuthorizationRuleResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.NotificationHubs +{ + public partial class NotificationHubAuthorizationRuleResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + NotificationHubAuthorizationRuleData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + NotificationHubAuthorizationRuleData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/notificationhubs/Azure.ResourceManager.NotificationHubs/src/Generated/Models/NotificationHubNamespaceAuthorizationRuleResource.Serialization.cs b/sdk/notificationhubs/Azure.ResourceManager.NotificationHubs/src/Generated/Models/NotificationHubNamespaceAuthorizationRuleResource.Serialization.cs new file mode 100644 index 000000000000..fff53437bb92 --- /dev/null +++ b/sdk/notificationhubs/Azure.ResourceManager.NotificationHubs/src/Generated/Models/NotificationHubNamespaceAuthorizationRuleResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.NotificationHubs +{ + public partial class NotificationHubNamespaceAuthorizationRuleResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + NotificationHubAuthorizationRuleData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + NotificationHubAuthorizationRuleData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/notificationhubs/Azure.ResourceManager.NotificationHubs/src/Generated/Models/NotificationHubNamespaceResource.Serialization.cs b/sdk/notificationhubs/Azure.ResourceManager.NotificationHubs/src/Generated/Models/NotificationHubNamespaceResource.Serialization.cs new file mode 100644 index 000000000000..ebbfa987559c --- /dev/null +++ b/sdk/notificationhubs/Azure.ResourceManager.NotificationHubs/src/Generated/Models/NotificationHubNamespaceResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.NotificationHubs +{ + public partial class NotificationHubNamespaceResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + NotificationHubNamespaceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + NotificationHubNamespaceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/notificationhubs/Azure.ResourceManager.NotificationHubs/src/Generated/Models/NotificationHubResource.Serialization.cs b/sdk/notificationhubs/Azure.ResourceManager.NotificationHubs/src/Generated/Models/NotificationHubResource.Serialization.cs new file mode 100644 index 000000000000..a90021b7cb04 --- /dev/null +++ b/sdk/notificationhubs/Azure.ResourceManager.NotificationHubs/src/Generated/Models/NotificationHubResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.NotificationHubs +{ + public partial class NotificationHubResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + NotificationHubData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + NotificationHubData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/notificationhubs/Azure.ResourceManager.NotificationHubs/src/Generated/NotificationHubAuthorizationRuleCollection.cs b/sdk/notificationhubs/Azure.ResourceManager.NotificationHubs/src/Generated/NotificationHubAuthorizationRuleCollection.cs index fc1330ec0ae5..cfc34a12d44f 100644 --- a/sdk/notificationhubs/Azure.ResourceManager.NotificationHubs/src/Generated/NotificationHubAuthorizationRuleCollection.cs +++ b/sdk/notificationhubs/Azure.ResourceManager.NotificationHubs/src/Generated/NotificationHubAuthorizationRuleCollection.cs @@ -91,7 +91,9 @@ public virtual async Task try { var response = await _notificationHubAuthorizationRuleNotificationHubsRestClient.CreateOrUpdateAuthorizationRuleAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, authorizationRuleName, content, cancellationToken).ConfigureAwait(false); - var operation = new NotificationHubsArmOperation(Response.FromValue(new NotificationHubAuthorizationRuleResource(Client, response), response.GetRawResponse())); + var uri = _notificationHubAuthorizationRuleNotificationHubsRestClient.CreateCreateOrUpdateAuthorizationRuleRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, authorizationRuleName, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new NotificationHubsArmOperation(Response.FromValue(new NotificationHubAuthorizationRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -140,7 +142,9 @@ public virtual ArmOperation CreateOrUp try { var response = _notificationHubAuthorizationRuleNotificationHubsRestClient.CreateOrUpdateAuthorizationRule(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, authorizationRuleName, content, cancellationToken); - var operation = new NotificationHubsArmOperation(Response.FromValue(new NotificationHubAuthorizationRuleResource(Client, response), response.GetRawResponse())); + var uri = _notificationHubAuthorizationRuleNotificationHubsRestClient.CreateCreateOrUpdateAuthorizationRuleRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, authorizationRuleName, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new NotificationHubsArmOperation(Response.FromValue(new NotificationHubAuthorizationRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/notificationhubs/Azure.ResourceManager.NotificationHubs/src/Generated/NotificationHubAuthorizationRuleResource.cs b/sdk/notificationhubs/Azure.ResourceManager.NotificationHubs/src/Generated/NotificationHubAuthorizationRuleResource.cs index 848d75a200bd..f25a25bd3bc3 100644 --- a/sdk/notificationhubs/Azure.ResourceManager.NotificationHubs/src/Generated/NotificationHubAuthorizationRuleResource.cs +++ b/sdk/notificationhubs/Azure.ResourceManager.NotificationHubs/src/Generated/NotificationHubAuthorizationRuleResource.cs @@ -202,7 +202,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _notificationHubAuthorizationRuleNotificationHubsRestClient.DeleteAuthorizationRuleAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new NotificationHubsArmOperation(response); + var uri = _notificationHubAuthorizationRuleNotificationHubsRestClient.CreateDeleteAuthorizationRuleRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new NotificationHubsArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -244,7 +246,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _notificationHubAuthorizationRuleNotificationHubsRestClient.DeleteAuthorizationRule(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new NotificationHubsArmOperation(response); + var uri = _notificationHubAuthorizationRuleNotificationHubsRestClient.CreateDeleteAuthorizationRuleRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new NotificationHubsArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -290,7 +294,9 @@ public virtual async Task try { var response = await _notificationHubAuthorizationRuleNotificationHubsRestClient.CreateOrUpdateAuthorizationRuleAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content, cancellationToken).ConfigureAwait(false); - var operation = new NotificationHubsArmOperation(Response.FromValue(new NotificationHubAuthorizationRuleResource(Client, response), response.GetRawResponse())); + var uri = _notificationHubAuthorizationRuleNotificationHubsRestClient.CreateCreateOrUpdateAuthorizationRuleRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new NotificationHubsArmOperation(Response.FromValue(new NotificationHubAuthorizationRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -336,7 +342,9 @@ public virtual ArmOperation Update(Wai try { var response = _notificationHubAuthorizationRuleNotificationHubsRestClient.CreateOrUpdateAuthorizationRule(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content, cancellationToken); - var operation = new NotificationHubsArmOperation(Response.FromValue(new NotificationHubAuthorizationRuleResource(Client, response), response.GetRawResponse())); + var uri = _notificationHubAuthorizationRuleNotificationHubsRestClient.CreateCreateOrUpdateAuthorizationRuleRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new NotificationHubsArmOperation(Response.FromValue(new NotificationHubAuthorizationRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/notificationhubs/Azure.ResourceManager.NotificationHubs/src/Generated/NotificationHubCollection.cs b/sdk/notificationhubs/Azure.ResourceManager.NotificationHubs/src/Generated/NotificationHubCollection.cs index b40a49ea4835..feecc1a8da1c 100644 --- a/sdk/notificationhubs/Azure.ResourceManager.NotificationHubs/src/Generated/NotificationHubCollection.cs +++ b/sdk/notificationhubs/Azure.ResourceManager.NotificationHubs/src/Generated/NotificationHubCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> CreateOrUpdateA try { var response = await _notificationHubRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, notificationHubName, content, cancellationToken).ConfigureAwait(false); - var operation = new NotificationHubsArmOperation(Response.FromValue(new NotificationHubResource(Client, response), response.GetRawResponse())); + var uri = _notificationHubRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, notificationHubName, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new NotificationHubsArmOperation(Response.FromValue(new NotificationHubResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -140,7 +142,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wa try { var response = _notificationHubRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, notificationHubName, content, cancellationToken); - var operation = new NotificationHubsArmOperation(Response.FromValue(new NotificationHubResource(Client, response), response.GetRawResponse())); + var uri = _notificationHubRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, notificationHubName, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new NotificationHubsArmOperation(Response.FromValue(new NotificationHubResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/notificationhubs/Azure.ResourceManager.NotificationHubs/src/Generated/NotificationHubNamespaceAuthorizationRuleCollection.cs b/sdk/notificationhubs/Azure.ResourceManager.NotificationHubs/src/Generated/NotificationHubNamespaceAuthorizationRuleCollection.cs index 3f38941ab873..8bdefeb3948d 100644 --- a/sdk/notificationhubs/Azure.ResourceManager.NotificationHubs/src/Generated/NotificationHubNamespaceAuthorizationRuleCollection.cs +++ b/sdk/notificationhubs/Azure.ResourceManager.NotificationHubs/src/Generated/NotificationHubNamespaceAuthorizationRuleCollection.cs @@ -91,7 +91,9 @@ public virtual async Task(Response.FromValue(new NotificationHubNamespaceAuthorizationRuleResource(Client, response), response.GetRawResponse())); + var uri = _notificationHubNamespaceAuthorizationRuleNamespacesRestClient.CreateCreateOrUpdateAuthorizationRuleRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, authorizationRuleName, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new NotificationHubsArmOperation(Response.FromValue(new NotificationHubNamespaceAuthorizationRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -140,7 +142,9 @@ public virtual ArmOperation C try { var response = _notificationHubNamespaceAuthorizationRuleNamespacesRestClient.CreateOrUpdateAuthorizationRule(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, authorizationRuleName, content, cancellationToken); - var operation = new NotificationHubsArmOperation(Response.FromValue(new NotificationHubNamespaceAuthorizationRuleResource(Client, response), response.GetRawResponse())); + var uri = _notificationHubNamespaceAuthorizationRuleNamespacesRestClient.CreateCreateOrUpdateAuthorizationRuleRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, authorizationRuleName, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new NotificationHubsArmOperation(Response.FromValue(new NotificationHubNamespaceAuthorizationRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/notificationhubs/Azure.ResourceManager.NotificationHubs/src/Generated/NotificationHubNamespaceAuthorizationRuleResource.cs b/sdk/notificationhubs/Azure.ResourceManager.NotificationHubs/src/Generated/NotificationHubNamespaceAuthorizationRuleResource.cs index 08c768849310..5824a3eab422 100644 --- a/sdk/notificationhubs/Azure.ResourceManager.NotificationHubs/src/Generated/NotificationHubNamespaceAuthorizationRuleResource.cs +++ b/sdk/notificationhubs/Azure.ResourceManager.NotificationHubs/src/Generated/NotificationHubNamespaceAuthorizationRuleResource.cs @@ -201,7 +201,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _notificationHubNamespaceAuthorizationRuleNamespacesRestClient.DeleteAuthorizationRuleAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new NotificationHubsArmOperation(response); + var uri = _notificationHubNamespaceAuthorizationRuleNamespacesRestClient.CreateDeleteAuthorizationRuleRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new NotificationHubsArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -243,7 +245,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _notificationHubNamespaceAuthorizationRuleNamespacesRestClient.DeleteAuthorizationRule(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new NotificationHubsArmOperation(response); + var uri = _notificationHubNamespaceAuthorizationRuleNamespacesRestClient.CreateDeleteAuthorizationRuleRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new NotificationHubsArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -289,7 +293,9 @@ public virtual async Task(Response.FromValue(new NotificationHubNamespaceAuthorizationRuleResource(Client, response), response.GetRawResponse())); + var uri = _notificationHubNamespaceAuthorizationRuleNamespacesRestClient.CreateCreateOrUpdateAuthorizationRuleRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new NotificationHubsArmOperation(Response.FromValue(new NotificationHubNamespaceAuthorizationRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -335,7 +341,9 @@ public virtual ArmOperation U try { var response = _notificationHubNamespaceAuthorizationRuleNamespacesRestClient.CreateOrUpdateAuthorizationRule(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, content, cancellationToken); - var operation = new NotificationHubsArmOperation(Response.FromValue(new NotificationHubNamespaceAuthorizationRuleResource(Client, response), response.GetRawResponse())); + var uri = _notificationHubNamespaceAuthorizationRuleNamespacesRestClient.CreateCreateOrUpdateAuthorizationRuleRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new NotificationHubsArmOperation(Response.FromValue(new NotificationHubNamespaceAuthorizationRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/notificationhubs/Azure.ResourceManager.NotificationHubs/src/Generated/NotificationHubNamespaceCollection.cs b/sdk/notificationhubs/Azure.ResourceManager.NotificationHubs/src/Generated/NotificationHubNamespaceCollection.cs index 2608dce033ba..0b922a201ae0 100644 --- a/sdk/notificationhubs/Azure.ResourceManager.NotificationHubs/src/Generated/NotificationHubNamespaceCollection.cs +++ b/sdk/notificationhubs/Azure.ResourceManager.NotificationHubs/src/Generated/NotificationHubNamespaceCollection.cs @@ -92,7 +92,9 @@ public virtual async Task> Create try { var response = await _notificationHubNamespaceNamespacesRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, namespaceName, content, cancellationToken).ConfigureAwait(false); - var operation = new NotificationHubsArmOperation(Response.FromValue(new NotificationHubNamespaceResource(Client, response), response.GetRawResponse())); + var uri = _notificationHubNamespaceNamespacesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, namespaceName, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new NotificationHubsArmOperation(Response.FromValue(new NotificationHubNamespaceResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -141,7 +143,9 @@ public virtual ArmOperation CreateOrUpdate(Wai try { var response = _notificationHubNamespaceNamespacesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, namespaceName, content, cancellationToken); - var operation = new NotificationHubsArmOperation(Response.FromValue(new NotificationHubNamespaceResource(Client, response), response.GetRawResponse())); + var uri = _notificationHubNamespaceNamespacesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, namespaceName, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new NotificationHubsArmOperation(Response.FromValue(new NotificationHubNamespaceResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/notificationhubs/Azure.ResourceManager.NotificationHubs/src/Generated/NotificationHubResource.cs b/sdk/notificationhubs/Azure.ResourceManager.NotificationHubs/src/Generated/NotificationHubResource.cs index ad71602ad168..d62347f4c20f 100644 --- a/sdk/notificationhubs/Azure.ResourceManager.NotificationHubs/src/Generated/NotificationHubResource.cs +++ b/sdk/notificationhubs/Azure.ResourceManager.NotificationHubs/src/Generated/NotificationHubResource.cs @@ -271,7 +271,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _notificationHubRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new NotificationHubsArmOperation(response); + var uri = _notificationHubRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new NotificationHubsArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -313,7 +315,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _notificationHubRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new NotificationHubsArmOperation(response); + var uri = _notificationHubRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new NotificationHubsArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/notificationhubs/Azure.ResourceManager.NotificationHubs/src/Generated/RestOperations/NamespacesRestOperations.cs b/sdk/notificationhubs/Azure.ResourceManager.NotificationHubs/src/Generated/RestOperations/NamespacesRestOperations.cs index 798a14411c5c..8e93ec8f0a44 100644 --- a/sdk/notificationhubs/Azure.ResourceManager.NotificationHubs/src/Generated/RestOperations/NamespacesRestOperations.cs +++ b/sdk/notificationhubs/Azure.ResourceManager.NotificationHubs/src/Generated/RestOperations/NamespacesRestOperations.cs @@ -37,6 +37,17 @@ public NamespacesRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCheckAvailabilityRequestUri(string subscriptionId, NotificationHubAvailabilityContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.NotificationHubs/checkNamespaceAvailability", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCheckAvailabilityRequest(string subscriptionId, NotificationHubAvailabilityContent content) { var message = _pipeline.CreateMessage(); @@ -112,6 +123,20 @@ public Response CheckAvailability(string subs } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, NotificationHubNamespaceCreateOrUpdateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.NotificationHubs/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string namespaceName, NotificationHubNamespaceCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); @@ -200,6 +225,20 @@ public Response CreateOrUpdate(string subscription } } + internal RequestUriBuilder CreatePatchRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, NotificationHubNamespacePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.NotificationHubs/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreatePatchRequest(string subscriptionId, string resourceGroupName, string namespaceName, NotificationHubNamespacePatch patch) { var message = _pipeline.CreateMessage(); @@ -286,6 +325,20 @@ public Response Patch(string subscriptionId, strin } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string namespaceName) + { + 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.NotificationHubs/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string namespaceName) { var message = _pipeline.CreateMessage(); @@ -357,6 +410,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string n } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string namespaceName) + { + 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.NotificationHubs/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string namespaceName) { var message = _pipeline.CreateMessage(); @@ -439,6 +506,22 @@ public Response Get(string subscriptionId, string } } + internal RequestUriBuilder CreateCreateOrUpdateAuthorizationRuleRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string authorizationRuleName, SharedAccessAuthorizationRuleCreateOrUpdateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.NotificationHubs/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/AuthorizationRules/", false); + uri.AppendPath(authorizationRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateAuthorizationRuleRequest(string subscriptionId, string resourceGroupName, string namespaceName, string authorizationRuleName, SharedAccessAuthorizationRuleCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); @@ -531,6 +614,22 @@ public Response CreateOrUpdateAuthorizatio } } + internal RequestUriBuilder CreateDeleteAuthorizationRuleRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string authorizationRuleName) + { + 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.NotificationHubs/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/AuthorizationRules/", false); + uri.AppendPath(authorizationRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteAuthorizationRuleRequest(string subscriptionId, string resourceGroupName, string namespaceName, string authorizationRuleName) { var message = _pipeline.CreateMessage(); @@ -606,6 +705,22 @@ public Response DeleteAuthorizationRule(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateGetAuthorizationRuleRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string authorizationRuleName) + { + 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.NotificationHubs/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/AuthorizationRules/", false); + uri.AppendPath(authorizationRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetAuthorizationRuleRequest(string subscriptionId, string resourceGroupName, string namespaceName, string authorizationRuleName) { var message = _pipeline.CreateMessage(); @@ -694,6 +809,19 @@ public Response GetAuthorizationRule(strin } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName) + { + 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.NotificationHubs/namespaces", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -767,6 +895,17 @@ public Response List(string subscriptionId, } } + internal RequestUriBuilder CreateListAllRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.NotificationHubs/namespaces", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListAllRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -834,6 +973,21 @@ public Response ListAll(string subscriptionI } } + internal RequestUriBuilder CreateListAuthorizationRulesRequestUri(string subscriptionId, string resourceGroupName, string namespaceName) + { + 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.NotificationHubs/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/AuthorizationRules", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListAuthorizationRulesRequest(string subscriptionId, string resourceGroupName, string namespaceName) { var message = _pipeline.CreateMessage(); @@ -913,6 +1067,23 @@ public Response ListAuthorizationRules( } } + internal RequestUriBuilder CreateListKeysRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string authorizationRuleName) + { + 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.NotificationHubs/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/AuthorizationRules/", false); + uri.AppendPath(authorizationRuleName, true); + uri.AppendPath("/listKeys", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListKeysRequest(string subscriptionId, string resourceGroupName, string namespaceName, string authorizationRuleName) { var message = _pipeline.CreateMessage(); @@ -998,6 +1169,23 @@ public Response ListKeys(string subscriptionId, str } } + internal RequestUriBuilder CreateRegenerateKeysRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string authorizationRuleName, NotificationHubPolicyKey notificationHubPolicyKey) + { + 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.NotificationHubs/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/AuthorizationRules/", false); + uri.AppendPath(authorizationRuleName, true); + uri.AppendPath("/regenerateKeys", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRegenerateKeysRequest(string subscriptionId, string resourceGroupName, string namespaceName, string authorizationRuleName, NotificationHubPolicyKey notificationHubPolicyKey) { var message = _pipeline.CreateMessage(); @@ -1091,6 +1279,14 @@ public Response RegenerateKeys(string subscriptionI } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -1163,6 +1359,14 @@ public Response ListNextPage(string nextLink } } + internal RequestUriBuilder CreateListAllNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListAllNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -1231,6 +1435,14 @@ public Response ListAllNextPage(string nextL } } + internal RequestUriBuilder CreateListAuthorizationRulesNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string namespaceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListAuthorizationRulesNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string namespaceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/notificationhubs/Azure.ResourceManager.NotificationHubs/src/Generated/RestOperations/NotificationHubsRestOperations.cs b/sdk/notificationhubs/Azure.ResourceManager.NotificationHubs/src/Generated/RestOperations/NotificationHubsRestOperations.cs index 33bcc1e9ab10..075b1c66a399 100644 --- a/sdk/notificationhubs/Azure.ResourceManager.NotificationHubs/src/Generated/RestOperations/NotificationHubsRestOperations.cs +++ b/sdk/notificationhubs/Azure.ResourceManager.NotificationHubs/src/Generated/RestOperations/NotificationHubsRestOperations.cs @@ -37,6 +37,21 @@ public NotificationHubsRestOperations(HttpPipeline pipeline, string applicationI _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCheckNotificationHubAvailabilityRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, NotificationHubAvailabilityContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.NotificationHubs/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/checkNotificationHubAvailability", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCheckNotificationHubAvailabilityRequest(string subscriptionId, string resourceGroupName, string namespaceName, NotificationHubAvailabilityContent content) { var message = _pipeline.CreateMessage(); @@ -124,6 +139,22 @@ public Response CheckNotificationHubAvailabil } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string notificationHubName, NotificationHubCreateOrUpdateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.NotificationHubs/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/notificationHubs/", false); + uri.AppendPath(notificationHubName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string namespaceName, string notificationHubName, NotificationHubCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); @@ -218,6 +249,22 @@ public Response CreateOrUpdate(string subscriptionId, strin } } + internal RequestUriBuilder CreatePatchRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string notificationHubName, NotificationHubPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.NotificationHubs/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/notificationHubs/", false); + uri.AppendPath(notificationHubName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreatePatchRequest(string subscriptionId, string resourceGroupName, string namespaceName, string notificationHubName, NotificationHubPatch patch) { var message = _pipeline.CreateMessage(); @@ -310,6 +357,22 @@ public Response Patch(string subscriptionId, string resourc } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string notificationHubName) + { + 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.NotificationHubs/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/notificationHubs/", false); + uri.AppendPath(notificationHubName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string namespaceName, string notificationHubName) { var message = _pipeline.CreateMessage(); @@ -383,6 +446,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string n } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string notificationHubName) + { + 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.NotificationHubs/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/notificationHubs/", false); + uri.AppendPath(notificationHubName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string namespaceName, string notificationHubName) { var message = _pipeline.CreateMessage(); @@ -471,6 +550,23 @@ public Response Get(string subscriptionId, string resourceG } } + internal RequestUriBuilder CreateDebugSendRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string notificationHubName, BinaryData anyObject) + { + 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.NotificationHubs/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/notificationHubs/", false); + uri.AppendPath(notificationHubName, true); + uri.AppendPath("/debugsend", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDebugSendRequest(string subscriptionId, string resourceGroupName, string namespaceName, string notificationHubName, BinaryData anyObject) { var message = _pipeline.CreateMessage(); @@ -572,6 +668,24 @@ public Response DebugSend(string subscriptionId, } } + internal RequestUriBuilder CreateCreateOrUpdateAuthorizationRuleRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string notificationHubName, string authorizationRuleName, SharedAccessAuthorizationRuleCreateOrUpdateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.NotificationHubs/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/notificationHubs/", false); + uri.AppendPath(notificationHubName, true); + uri.AppendPath("/AuthorizationRules/", false); + uri.AppendPath(authorizationRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateAuthorizationRuleRequest(string subscriptionId, string resourceGroupName, string namespaceName, string notificationHubName, string authorizationRuleName, SharedAccessAuthorizationRuleCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); @@ -670,6 +784,24 @@ public Response CreateOrUpdateAuthorizatio } } + internal RequestUriBuilder CreateDeleteAuthorizationRuleRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string notificationHubName, string authorizationRuleName) + { + 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.NotificationHubs/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/notificationHubs/", false); + uri.AppendPath(notificationHubName, true); + uri.AppendPath("/AuthorizationRules/", false); + uri.AppendPath(authorizationRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteAuthorizationRuleRequest(string subscriptionId, string resourceGroupName, string namespaceName, string notificationHubName, string authorizationRuleName) { var message = _pipeline.CreateMessage(); @@ -751,6 +883,24 @@ public Response DeleteAuthorizationRule(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateGetAuthorizationRuleRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string notificationHubName, string authorizationRuleName) + { + 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.NotificationHubs/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/notificationHubs/", false); + uri.AppendPath(notificationHubName, true); + uri.AppendPath("/AuthorizationRules/", false); + uri.AppendPath(authorizationRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetAuthorizationRuleRequest(string subscriptionId, string resourceGroupName, string namespaceName, string notificationHubName, string authorizationRuleName) { var message = _pipeline.CreateMessage(); @@ -845,6 +995,21 @@ public Response GetAuthorizationRule(strin } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string namespaceName) + { + 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.NotificationHubs/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/notificationHubs", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string namespaceName) { var message = _pipeline.CreateMessage(); @@ -924,6 +1089,23 @@ public Response List(string subscriptionId, string re } } + internal RequestUriBuilder CreateListAuthorizationRulesRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string notificationHubName) + { + 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.NotificationHubs/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/notificationHubs/", false); + uri.AppendPath(notificationHubName, true); + uri.AppendPath("/AuthorizationRules", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListAuthorizationRulesRequest(string subscriptionId, string resourceGroupName, string namespaceName, string notificationHubName) { var message = _pipeline.CreateMessage(); @@ -1009,6 +1191,25 @@ public Response ListAuthorizationRules( } } + internal RequestUriBuilder CreateListKeysRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string notificationHubName, string authorizationRuleName) + { + 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.NotificationHubs/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/notificationHubs/", false); + uri.AppendPath(notificationHubName, true); + uri.AppendPath("/AuthorizationRules/", false); + uri.AppendPath(authorizationRuleName, true); + uri.AppendPath("/listKeys", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListKeysRequest(string subscriptionId, string resourceGroupName, string namespaceName, string notificationHubName, string authorizationRuleName) { var message = _pipeline.CreateMessage(); @@ -1100,6 +1301,25 @@ public Response ListKeys(string subscriptionId, str } } + internal RequestUriBuilder CreateRegenerateKeysRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string notificationHubName, string authorizationRuleName, NotificationHubPolicyKey notificationHubPolicyKey) + { + 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.NotificationHubs/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/notificationHubs/", false); + uri.AppendPath(notificationHubName, true); + uri.AppendPath("/AuthorizationRules/", false); + uri.AppendPath(authorizationRuleName, true); + uri.AppendPath("/regenerateKeys", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRegenerateKeysRequest(string subscriptionId, string resourceGroupName, string namespaceName, string notificationHubName, string authorizationRuleName, NotificationHubPolicyKey notificationHubPolicyKey) { var message = _pipeline.CreateMessage(); @@ -1199,6 +1419,23 @@ public Response RegenerateKeys(string subscriptionI } } + internal RequestUriBuilder CreateGetPnsCredentialsRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string notificationHubName) + { + 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.NotificationHubs/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/notificationHubs/", false); + uri.AppendPath(notificationHubName, true); + uri.AppendPath("/pnsCredentials", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetPnsCredentialsRequest(string subscriptionId, string resourceGroupName, string namespaceName, string notificationHubName) { var message = _pipeline.CreateMessage(); @@ -1284,6 +1521,14 @@ public Response GetPnsCredentials(string subscrip } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string namespaceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string namespaceName) { var message = _pipeline.CreateMessage(); @@ -1360,6 +1605,14 @@ public Response ListNextPage(string nextLink, string } } + internal RequestUriBuilder CreateListAuthorizationRulesNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string namespaceName, string notificationHubName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListAuthorizationRulesNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string namespaceName, string notificationHubName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/openenergyplatform/Azure.ResourceManager.EnergyServices/src/Generated/LongRunningOperation/EnergyServicesArmOperation.cs b/sdk/openenergyplatform/Azure.ResourceManager.EnergyServices/src/Generated/LongRunningOperation/EnergyServicesArmOperation.cs index cc4592f15e49..032f31ff8a38 100644 --- a/sdk/openenergyplatform/Azure.ResourceManager.EnergyServices/src/Generated/LongRunningOperation/EnergyServicesArmOperation.cs +++ b/sdk/openenergyplatform/Azure.ResourceManager.EnergyServices/src/Generated/LongRunningOperation/EnergyServicesArmOperation.cs @@ -20,21 +20,24 @@ internal class EnergyServicesArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of EnergyServicesArmOperation for mocking. protected EnergyServicesArmOperation() { } - internal EnergyServicesArmOperation(Response response) + internal EnergyServicesArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal EnergyServicesArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "EnergyServicesArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal EnergyServicesArmOperation(ClientDiagnostics clientDiagnostics, HttpPip public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/openenergyplatform/Azure.ResourceManager.EnergyServices/src/Generated/LongRunningOperation/EnergyServicesArmOperationOfT.cs b/sdk/openenergyplatform/Azure.ResourceManager.EnergyServices/src/Generated/LongRunningOperation/EnergyServicesArmOperationOfT.cs index 9979bc85ce9e..74db3b28b5fb 100644 --- a/sdk/openenergyplatform/Azure.ResourceManager.EnergyServices/src/Generated/LongRunningOperation/EnergyServicesArmOperationOfT.cs +++ b/sdk/openenergyplatform/Azure.ResourceManager.EnergyServices/src/Generated/LongRunningOperation/EnergyServicesArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class EnergyServicesArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of EnergyServicesArmOperation for mocking. protected EnergyServicesArmOperation() { } - internal EnergyServicesArmOperation(Response response) + internal EnergyServicesArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal EnergyServicesArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "EnergyServicesArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal EnergyServicesArmOperation(IOperationSource source, ClientDiagnostic public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/openenergyplatform/Azure.ResourceManager.EnergyServices/src/Generated/Models/EnergyServiceResource.Serialization.cs b/sdk/openenergyplatform/Azure.ResourceManager.EnergyServices/src/Generated/Models/EnergyServiceResource.Serialization.cs new file mode 100644 index 000000000000..6592d50e63e3 --- /dev/null +++ b/sdk/openenergyplatform/Azure.ResourceManager.EnergyServices/src/Generated/Models/EnergyServiceResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.EnergyServices +{ + public partial class EnergyServiceResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + EnergyServiceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + EnergyServiceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/openenergyplatform/Azure.ResourceManager.EnergyServices/src/Generated/RestOperations/EnergyServicesRestOperations.cs b/sdk/openenergyplatform/Azure.ResourceManager.EnergyServices/src/Generated/RestOperations/EnergyServicesRestOperations.cs index d2208352b9e4..572734e9b2be 100644 --- a/sdk/openenergyplatform/Azure.ResourceManager.EnergyServices/src/Generated/RestOperations/EnergyServicesRestOperations.cs +++ b/sdk/openenergyplatform/Azure.ResourceManager.EnergyServices/src/Generated/RestOperations/EnergyServicesRestOperations.cs @@ -37,6 +37,19 @@ public EnergyServicesRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.OpenEnergyPlatform/energyServices", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -110,6 +123,17 @@ public Response ListByResourceGroup(string subscriptionId, st } } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.OpenEnergyPlatform/energyServices", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -177,6 +201,20 @@ public Response ListBySubscription(string subscriptionId, Can } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string resourceName) + { + 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.OpenEnergyPlatform/energyServices/", false); + uri.AppendPath(resourceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); @@ -259,6 +297,19 @@ public Response Get(string subscriptionId, string resourceGro } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string resourceName, EnergyServiceData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.OpenEnergyPlatform/energyServices/", false); + uri.AppendPath(resourceName, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string resourceName, EnergyServiceData data) { var message = _pipeline.CreateMessage(); @@ -336,6 +387,20 @@ public Response Create(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string resourceName, EnergyServicePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.OpenEnergyPlatform/energyServices/", false); + uri.AppendPath(resourceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string resourceName, EnergyServicePatch patch) { var message = _pipeline.CreateMessage(); @@ -420,6 +485,20 @@ public Response Update(string subscriptionId, string resource } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string resourceName) + { + 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.OpenEnergyPlatform/energyServices/", false); + uri.AppendPath(resourceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); @@ -492,6 +571,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateAddPartitionRequestUri(string subscriptionId, string resourceGroupName, string resourceName, DataPartitionAddOrRemoveContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.OpenEnergyPlatform/energyServices/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/addPartition", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateAddPartitionRequest(string subscriptionId, string resourceGroupName, string resourceName, DataPartitionAddOrRemoveContent content) { var message = _pipeline.CreateMessage(); @@ -570,6 +664,21 @@ public Response AddPartition(string subscriptionId, string resourceGroupName, st } } + internal RequestUriBuilder CreateRemovePartitionRequestUri(string subscriptionId, string resourceGroupName, string resourceName, DataPartitionAddOrRemoveContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.OpenEnergyPlatform/energyServices/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/removePartition", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRemovePartitionRequest(string subscriptionId, string resourceGroupName, string resourceName, DataPartitionAddOrRemoveContent content) { var message = _pipeline.CreateMessage(); @@ -648,6 +757,21 @@ public Response RemovePartition(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateListPartitionsRequestUri(string subscriptionId, string resourceGroupName, string resourceName) + { + 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.OpenEnergyPlatform/energyServices/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/listPartitions", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListPartitionsRequest(string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); @@ -727,6 +851,14 @@ public Response ListPartitions(string subscriptionId, } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -799,6 +931,14 @@ public Response ListByResourceGroupNextPage(string nextLink, } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/openenergyplatform/Azure.ResourceManager.EnergyServices/src/Generated/RestOperations/LocationsRestOperations.cs b/sdk/openenergyplatform/Azure.ResourceManager.EnergyServices/src/Generated/RestOperations/LocationsRestOperations.cs index ef4d3a28db4c..bb4f3ba50c67 100644 --- a/sdk/openenergyplatform/Azure.ResourceManager.EnergyServices/src/Generated/RestOperations/LocationsRestOperations.cs +++ b/sdk/openenergyplatform/Azure.ResourceManager.EnergyServices/src/Generated/RestOperations/LocationsRestOperations.cs @@ -34,6 +34,16 @@ public LocationsRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCheckNameAvailabilityRequestUri(string subscriptionId, EnergyServiceNameAvailabilityContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.OpenEnergyPlatform/checkNameAvailability", false); + return uri; + } + internal HttpMessage CreateCheckNameAvailabilityRequest(string subscriptionId, EnergyServiceNameAvailabilityContent content) { var message = _pipeline.CreateMessage(); diff --git a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/LogAnalyticsQueryCollection.cs b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/LogAnalyticsQueryCollection.cs index 28bcaf115c69..6d46b8fc1b97 100644 --- a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/LogAnalyticsQueryCollection.cs +++ b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/LogAnalyticsQueryCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> CreateOrUpdat try { var response = await _logAnalyticsQueryQueriesRestClient.PutAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, id, data, cancellationToken).ConfigureAwait(false); - var operation = new OperationalInsightsArmOperation(Response.FromValue(new LogAnalyticsQueryResource(Client, response), response.GetRawResponse())); + var uri = _logAnalyticsQueryQueriesRestClient.CreatePutRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, id, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new OperationalInsightsArmOperation(Response.FromValue(new LogAnalyticsQueryResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil try { var response = _logAnalyticsQueryQueriesRestClient.Put(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, id, data, cancellationToken); - var operation = new OperationalInsightsArmOperation(Response.FromValue(new LogAnalyticsQueryResource(Client, response), response.GetRawResponse())); + var uri = _logAnalyticsQueryQueriesRestClient.CreatePutRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, id, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new OperationalInsightsArmOperation(Response.FromValue(new LogAnalyticsQueryResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/LogAnalyticsQueryPackCollection.cs b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/LogAnalyticsQueryPackCollection.cs index 109a42796fdd..1738a82b6449 100644 --- a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/LogAnalyticsQueryPackCollection.cs +++ b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/LogAnalyticsQueryPackCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> CreateOrU try { var response = await _logAnalyticsQueryPackQueryPacksRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, queryPackName, data, cancellationToken).ConfigureAwait(false); - var operation = new OperationalInsightsArmOperation(Response.FromValue(new LogAnalyticsQueryPackResource(Client, response), response.GetRawResponse())); + var uri = _logAnalyticsQueryPackQueryPacksRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, queryPackName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new OperationalInsightsArmOperation(Response.FromValue(new LogAnalyticsQueryPackResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -140,7 +142,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUn try { var response = _logAnalyticsQueryPackQueryPacksRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, queryPackName, data, cancellationToken); - var operation = new OperationalInsightsArmOperation(Response.FromValue(new LogAnalyticsQueryPackResource(Client, response), response.GetRawResponse())); + var uri = _logAnalyticsQueryPackQueryPacksRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, queryPackName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new OperationalInsightsArmOperation(Response.FromValue(new LogAnalyticsQueryPackResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/LogAnalyticsQueryPackResource.cs b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/LogAnalyticsQueryPackResource.cs index e309ac4e89b7..eeb0c07b144d 100644 --- a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/LogAnalyticsQueryPackResource.cs +++ b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/LogAnalyticsQueryPackResource.cs @@ -277,7 +277,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _logAnalyticsQueryPackQueryPacksRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new OperationalInsightsArmOperation(response); + var uri = _logAnalyticsQueryPackQueryPacksRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new OperationalInsightsArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -319,7 +321,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _logAnalyticsQueryPackQueryPacksRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); - var operation = new OperationalInsightsArmOperation(response); + var uri = _logAnalyticsQueryPackQueryPacksRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new OperationalInsightsArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/LogAnalyticsQueryResource.cs b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/LogAnalyticsQueryResource.cs index c4ae14684761..504e5de31a07 100644 --- a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/LogAnalyticsQueryResource.cs +++ b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/LogAnalyticsQueryResource.cs @@ -200,7 +200,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _logAnalyticsQueryQueriesRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new OperationalInsightsArmOperation(response); + var uri = _logAnalyticsQueryQueriesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new OperationalInsightsArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -242,7 +244,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _logAnalyticsQueryQueriesRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new OperationalInsightsArmOperation(response); + var uri = _logAnalyticsQueryQueriesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new OperationalInsightsArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/LongRunningOperation/OperationalInsightsArmOperation.cs b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/LongRunningOperation/OperationalInsightsArmOperation.cs index ef8d0a050224..5eca92cb1216 100644 --- a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/LongRunningOperation/OperationalInsightsArmOperation.cs +++ b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/LongRunningOperation/OperationalInsightsArmOperation.cs @@ -20,21 +20,24 @@ internal class OperationalInsightsArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of OperationalInsightsArmOperation for mocking. protected OperationalInsightsArmOperation() { } - internal OperationalInsightsArmOperation(Response response) + internal OperationalInsightsArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal OperationalInsightsArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "OperationalInsightsArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal OperationalInsightsArmOperation(ClientDiagnostics clientDiagnostics, Ht public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/LongRunningOperation/OperationalInsightsArmOperationOfT.cs b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/LongRunningOperation/OperationalInsightsArmOperationOfT.cs index 4ff442632f2f..6ef78d114c8a 100644 --- a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/LongRunningOperation/OperationalInsightsArmOperationOfT.cs +++ b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/LongRunningOperation/OperationalInsightsArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class OperationalInsightsArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of OperationalInsightsArmOperation for mocking. protected OperationalInsightsArmOperation() { } - internal OperationalInsightsArmOperation(Response response) + internal OperationalInsightsArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal OperationalInsightsArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "OperationalInsightsArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal OperationalInsightsArmOperation(IOperationSource source, ClientDiagn public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/Models/LogAnalyticsQueryPackResource.Serialization.cs b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/Models/LogAnalyticsQueryPackResource.Serialization.cs new file mode 100644 index 000000000000..a0e8f47d573f --- /dev/null +++ b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/Models/LogAnalyticsQueryPackResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.OperationalInsights +{ + public partial class LogAnalyticsQueryPackResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + LogAnalyticsQueryPackData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + LogAnalyticsQueryPackData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/Models/LogAnalyticsQueryResource.Serialization.cs b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/Models/LogAnalyticsQueryResource.Serialization.cs new file mode 100644 index 000000000000..47874c2d1cad --- /dev/null +++ b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/Models/LogAnalyticsQueryResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.OperationalInsights +{ + public partial class LogAnalyticsQueryResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + LogAnalyticsQueryData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + LogAnalyticsQueryData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/Models/OperationalInsightsClusterResource.Serialization.cs b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/Models/OperationalInsightsClusterResource.Serialization.cs new file mode 100644 index 000000000000..b6b95d4dfc0b --- /dev/null +++ b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/Models/OperationalInsightsClusterResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.OperationalInsights +{ + public partial class OperationalInsightsClusterResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + OperationalInsightsClusterData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + OperationalInsightsClusterData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/Models/OperationalInsightsDataExportResource.Serialization.cs b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/Models/OperationalInsightsDataExportResource.Serialization.cs new file mode 100644 index 000000000000..8169bd148de5 --- /dev/null +++ b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/Models/OperationalInsightsDataExportResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.OperationalInsights +{ + public partial class OperationalInsightsDataExportResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + OperationalInsightsDataExportData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + OperationalInsightsDataExportData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/Models/OperationalInsightsDataSourceResource.Serialization.cs b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/Models/OperationalInsightsDataSourceResource.Serialization.cs new file mode 100644 index 000000000000..880647af35f3 --- /dev/null +++ b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/Models/OperationalInsightsDataSourceResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.OperationalInsights +{ + public partial class OperationalInsightsDataSourceResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + OperationalInsightsDataSourceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + OperationalInsightsDataSourceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/Models/OperationalInsightsLinkedServiceResource.Serialization.cs b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/Models/OperationalInsightsLinkedServiceResource.Serialization.cs new file mode 100644 index 000000000000..9f39383f3b4d --- /dev/null +++ b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/Models/OperationalInsightsLinkedServiceResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.OperationalInsights +{ + public partial class OperationalInsightsLinkedServiceResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + OperationalInsightsLinkedServiceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + OperationalInsightsLinkedServiceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/Models/OperationalInsightsLinkedStorageAccountsResource.Serialization.cs b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/Models/OperationalInsightsLinkedStorageAccountsResource.Serialization.cs new file mode 100644 index 000000000000..f500c988c0d1 --- /dev/null +++ b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/Models/OperationalInsightsLinkedStorageAccountsResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.OperationalInsights +{ + public partial class OperationalInsightsLinkedStorageAccountsResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + OperationalInsightsLinkedStorageAccountsData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + OperationalInsightsLinkedStorageAccountsData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/Models/OperationalInsightsSavedSearchResource.Serialization.cs b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/Models/OperationalInsightsSavedSearchResource.Serialization.cs new file mode 100644 index 000000000000..8cff1693eca0 --- /dev/null +++ b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/Models/OperationalInsightsSavedSearchResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.OperationalInsights +{ + public partial class OperationalInsightsSavedSearchResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + OperationalInsightsSavedSearchData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + OperationalInsightsSavedSearchData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/Models/OperationalInsightsTableResource.Serialization.cs b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/Models/OperationalInsightsTableResource.Serialization.cs new file mode 100644 index 000000000000..08346ab52e76 --- /dev/null +++ b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/Models/OperationalInsightsTableResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.OperationalInsights +{ + public partial class OperationalInsightsTableResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + OperationalInsightsTableData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + OperationalInsightsTableData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/Models/OperationalInsightsWorkspaceResource.Serialization.cs b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/Models/OperationalInsightsWorkspaceResource.Serialization.cs new file mode 100644 index 000000000000..a29d66609df1 --- /dev/null +++ b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/Models/OperationalInsightsWorkspaceResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.OperationalInsights +{ + public partial class OperationalInsightsWorkspaceResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + OperationalInsightsWorkspaceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + OperationalInsightsWorkspaceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/Models/StorageInsightResource.Serialization.cs b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/Models/StorageInsightResource.Serialization.cs new file mode 100644 index 000000000000..0fb8936b6a27 --- /dev/null +++ b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/Models/StorageInsightResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.OperationalInsights +{ + public partial class StorageInsightResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + StorageInsightData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + StorageInsightData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/OperationalInsightsDataExportCollection.cs b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/OperationalInsightsDataExportCollection.cs index 14be6c022f82..eb97eff30262 100644 --- a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/OperationalInsightsDataExportCollection.cs +++ b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/OperationalInsightsDataExportCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> C try { var response = await _operationalInsightsDataExportDataExportsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, dataExportName, data, cancellationToken).ConfigureAwait(false); - var operation = new OperationalInsightsArmOperation(Response.FromValue(new OperationalInsightsDataExportResource(Client, response), response.GetRawResponse())); + var uri = _operationalInsightsDataExportDataExportsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, dataExportName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new OperationalInsightsArmOperation(Response.FromValue(new OperationalInsightsDataExportResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdat try { var response = _operationalInsightsDataExportDataExportsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, dataExportName, data, cancellationToken); - var operation = new OperationalInsightsArmOperation(Response.FromValue(new OperationalInsightsDataExportResource(Client, response), response.GetRawResponse())); + var uri = _operationalInsightsDataExportDataExportsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, dataExportName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new OperationalInsightsArmOperation(Response.FromValue(new OperationalInsightsDataExportResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/OperationalInsightsDataExportResource.cs b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/OperationalInsightsDataExportResource.cs index c3d8aad1b633..30c3a2e485e1 100644 --- a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/OperationalInsightsDataExportResource.cs +++ b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/OperationalInsightsDataExportResource.cs @@ -200,7 +200,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _operationalInsightsDataExportDataExportsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new OperationalInsightsArmOperation(response); + var uri = _operationalInsightsDataExportDataExportsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new OperationalInsightsArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -242,7 +244,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _operationalInsightsDataExportDataExportsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new OperationalInsightsArmOperation(response); + var uri = _operationalInsightsDataExportDataExportsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new OperationalInsightsArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -288,7 +292,9 @@ public virtual async Task> U try { var response = await _operationalInsightsDataExportDataExportsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new OperationalInsightsArmOperation(Response.FromValue(new OperationalInsightsDataExportResource(Client, response), response.GetRawResponse())); + var uri = _operationalInsightsDataExportDataExportsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new OperationalInsightsArmOperation(Response.FromValue(new OperationalInsightsDataExportResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -334,7 +340,9 @@ public virtual ArmOperation Update(WaitUn try { var response = _operationalInsightsDataExportDataExportsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new OperationalInsightsArmOperation(Response.FromValue(new OperationalInsightsDataExportResource(Client, response), response.GetRawResponse())); + var uri = _operationalInsightsDataExportDataExportsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new OperationalInsightsArmOperation(Response.FromValue(new OperationalInsightsDataExportResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/OperationalInsightsDataSourceCollection.cs b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/OperationalInsightsDataSourceCollection.cs index b2f792ac23ef..ecf27b20da1a 100644 --- a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/OperationalInsightsDataSourceCollection.cs +++ b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/OperationalInsightsDataSourceCollection.cs @@ -88,7 +88,9 @@ public virtual async Task> C try { var response = await _operationalInsightsDataSourceDataSourcesRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, dataSourceName, data, cancellationToken).ConfigureAwait(false); - var operation = new OperationalInsightsArmOperation(Response.FromValue(new OperationalInsightsDataSourceResource(Client, response), response.GetRawResponse())); + var uri = _operationalInsightsDataSourceDataSourcesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, dataSourceName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new OperationalInsightsArmOperation(Response.FromValue(new OperationalInsightsDataSourceResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -137,7 +139,9 @@ public virtual ArmOperation CreateOrUpdat try { var response = _operationalInsightsDataSourceDataSourcesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, dataSourceName, data, cancellationToken); - var operation = new OperationalInsightsArmOperation(Response.FromValue(new OperationalInsightsDataSourceResource(Client, response), response.GetRawResponse())); + var uri = _operationalInsightsDataSourceDataSourcesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, dataSourceName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new OperationalInsightsArmOperation(Response.FromValue(new OperationalInsightsDataSourceResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/OperationalInsightsDataSourceResource.cs b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/OperationalInsightsDataSourceResource.cs index 6d2f212e646f..f9a1c8108b58 100644 --- a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/OperationalInsightsDataSourceResource.cs +++ b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/OperationalInsightsDataSourceResource.cs @@ -201,7 +201,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _operationalInsightsDataSourceDataSourcesRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new OperationalInsightsArmOperation(response); + var uri = _operationalInsightsDataSourceDataSourcesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new OperationalInsightsArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -243,7 +245,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _operationalInsightsDataSourceDataSourcesRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new OperationalInsightsArmOperation(response); + var uri = _operationalInsightsDataSourceDataSourcesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new OperationalInsightsArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -289,7 +293,9 @@ public virtual async Task> U try { var response = await _operationalInsightsDataSourceDataSourcesRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new OperationalInsightsArmOperation(Response.FromValue(new OperationalInsightsDataSourceResource(Client, response), response.GetRawResponse())); + var uri = _operationalInsightsDataSourceDataSourcesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new OperationalInsightsArmOperation(Response.FromValue(new OperationalInsightsDataSourceResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -335,7 +341,9 @@ public virtual ArmOperation Update(WaitUn try { var response = _operationalInsightsDataSourceDataSourcesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new OperationalInsightsArmOperation(Response.FromValue(new OperationalInsightsDataSourceResource(Client, response), response.GetRawResponse())); + var uri = _operationalInsightsDataSourceDataSourcesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new OperationalInsightsArmOperation(Response.FromValue(new OperationalInsightsDataSourceResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/OperationalInsightsLinkedStorageAccountsCollection.cs b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/OperationalInsightsLinkedStorageAccountsCollection.cs index a0b688ec47d8..f322ec288b9e 100644 --- a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/OperationalInsightsLinkedStorageAccountsCollection.cs +++ b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/OperationalInsightsLinkedStorageAccountsCollection.cs @@ -89,7 +89,9 @@ public virtual async Task(Response.FromValue(new OperationalInsightsLinkedStorageAccountsResource(Client, response), response.GetRawResponse())); + var uri = _operationalInsightsLinkedStorageAccountsLinkedStorageAccountsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, dataSourceType, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new OperationalInsightsArmOperation(Response.FromValue(new OperationalInsightsLinkedStorageAccountsResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -136,7 +138,9 @@ public virtual ArmOperation Cr try { var response = _operationalInsightsLinkedStorageAccountsLinkedStorageAccountsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, dataSourceType, data, cancellationToken); - var operation = new OperationalInsightsArmOperation(Response.FromValue(new OperationalInsightsLinkedStorageAccountsResource(Client, response), response.GetRawResponse())); + var uri = _operationalInsightsLinkedStorageAccountsLinkedStorageAccountsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, dataSourceType, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new OperationalInsightsArmOperation(Response.FromValue(new OperationalInsightsLinkedStorageAccountsResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/OperationalInsightsLinkedStorageAccountsResource.cs b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/OperationalInsightsLinkedStorageAccountsResource.cs index 261d388c154a..219ccfcdffdf 100644 --- a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/OperationalInsightsLinkedStorageAccountsResource.cs +++ b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/OperationalInsightsLinkedStorageAccountsResource.cs @@ -201,7 +201,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _operationalInsightsLinkedStorageAccountsLinkedStorageAccountsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name.ToOperationalInsightsDataSourceType(), cancellationToken).ConfigureAwait(false); - var operation = new OperationalInsightsArmOperation(response); + var uri = _operationalInsightsLinkedStorageAccountsLinkedStorageAccountsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name.ToOperationalInsightsDataSourceType()); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new OperationalInsightsArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -243,7 +245,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _operationalInsightsLinkedStorageAccountsLinkedStorageAccountsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name.ToOperationalInsightsDataSourceType(), cancellationToken); - var operation = new OperationalInsightsArmOperation(response); + var uri = _operationalInsightsLinkedStorageAccountsLinkedStorageAccountsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name.ToOperationalInsightsDataSourceType()); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new OperationalInsightsArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -289,7 +293,9 @@ public virtual async Task(Response.FromValue(new OperationalInsightsLinkedStorageAccountsResource(Client, response), response.GetRawResponse())); + var uri = _operationalInsightsLinkedStorageAccountsLinkedStorageAccountsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name.ToOperationalInsightsDataSourceType(), data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new OperationalInsightsArmOperation(Response.FromValue(new OperationalInsightsLinkedStorageAccountsResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -335,7 +341,9 @@ public virtual ArmOperation Up try { var response = _operationalInsightsLinkedStorageAccountsLinkedStorageAccountsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name.ToOperationalInsightsDataSourceType(), data, cancellationToken); - var operation = new OperationalInsightsArmOperation(Response.FromValue(new OperationalInsightsLinkedStorageAccountsResource(Client, response), response.GetRawResponse())); + var uri = _operationalInsightsLinkedStorageAccountsLinkedStorageAccountsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name.ToOperationalInsightsDataSourceType(), data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new OperationalInsightsArmOperation(Response.FromValue(new OperationalInsightsLinkedStorageAccountsResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/OperationalInsightsSavedSearchCollection.cs b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/OperationalInsightsSavedSearchCollection.cs index 20cd0c4c750c..f04984d63be0 100644 --- a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/OperationalInsightsSavedSearchCollection.cs +++ b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/OperationalInsightsSavedSearchCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> try { var response = await _operationalInsightsSavedSearchSavedSearchesRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, savedSearchId, data, cancellationToken).ConfigureAwait(false); - var operation = new OperationalInsightsArmOperation(Response.FromValue(new OperationalInsightsSavedSearchResource(Client, response), response.GetRawResponse())); + var uri = _operationalInsightsSavedSearchSavedSearchesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, savedSearchId, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new OperationalInsightsArmOperation(Response.FromValue(new OperationalInsightsSavedSearchResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpda try { var response = _operationalInsightsSavedSearchSavedSearchesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, savedSearchId, data, cancellationToken); - var operation = new OperationalInsightsArmOperation(Response.FromValue(new OperationalInsightsSavedSearchResource(Client, response), response.GetRawResponse())); + var uri = _operationalInsightsSavedSearchSavedSearchesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, savedSearchId, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new OperationalInsightsArmOperation(Response.FromValue(new OperationalInsightsSavedSearchResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/OperationalInsightsSavedSearchResource.cs b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/OperationalInsightsSavedSearchResource.cs index ad347233fef1..6ed218f47e9f 100644 --- a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/OperationalInsightsSavedSearchResource.cs +++ b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/OperationalInsightsSavedSearchResource.cs @@ -200,7 +200,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _operationalInsightsSavedSearchSavedSearchesRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new OperationalInsightsArmOperation(response); + var uri = _operationalInsightsSavedSearchSavedSearchesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new OperationalInsightsArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -242,7 +244,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _operationalInsightsSavedSearchSavedSearchesRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new OperationalInsightsArmOperation(response); + var uri = _operationalInsightsSavedSearchSavedSearchesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new OperationalInsightsArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -288,7 +292,9 @@ public virtual async Task> try { var response = await _operationalInsightsSavedSearchSavedSearchesRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new OperationalInsightsArmOperation(Response.FromValue(new OperationalInsightsSavedSearchResource(Client, response), response.GetRawResponse())); + var uri = _operationalInsightsSavedSearchSavedSearchesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new OperationalInsightsArmOperation(Response.FromValue(new OperationalInsightsSavedSearchResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -334,7 +340,9 @@ public virtual ArmOperation Update(WaitU try { var response = _operationalInsightsSavedSearchSavedSearchesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new OperationalInsightsArmOperation(Response.FromValue(new OperationalInsightsSavedSearchResource(Client, response), response.GetRawResponse())); + var uri = _operationalInsightsSavedSearchSavedSearchesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new OperationalInsightsArmOperation(Response.FromValue(new OperationalInsightsSavedSearchResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/RestOperations/AvailableServiceTiersRestOperations.cs b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/RestOperations/AvailableServiceTiersRestOperations.cs index 67e09ff7dcc1..e8870e212424 100644 --- a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/RestOperations/AvailableServiceTiersRestOperations.cs +++ b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/RestOperations/AvailableServiceTiersRestOperations.cs @@ -38,6 +38,21 @@ public AvailableServiceTiersRestOperations(HttpPipeline pipeline, string applica _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByWorkspaceRequestUri(string subscriptionId, string resourceGroupName, string workspaceName) + { + 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.OperationalInsights/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/availableServiceTiers", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByWorkspaceRequest(string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/RestOperations/ClustersRestOperations.cs b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/RestOperations/ClustersRestOperations.cs index de0824c35d96..c1d6c8462910 100644 --- a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/RestOperations/ClustersRestOperations.cs +++ b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/RestOperations/ClustersRestOperations.cs @@ -37,6 +37,19 @@ public ClustersRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.OperationalInsights/clusters", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -110,6 +123,17 @@ public Response ListByResourceGroup(string subscriptionId, st } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.OperationalInsights/clusters", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -177,6 +201,20 @@ public Response List(string subscriptionId, CancellationToken } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string clusterName, OperationalInsightsClusterData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourcegroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.OperationalInsights/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string clusterName, OperationalInsightsClusterData data) { var message = _pipeline.CreateMessage(); @@ -257,6 +295,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string clusterName) + { + 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.OperationalInsights/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string clusterName) { var message = _pipeline.CreateMessage(); @@ -329,6 +381,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string clusterName) + { + 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.OperationalInsights/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string clusterName) { var message = _pipeline.CreateMessage(); @@ -411,6 +477,20 @@ public Response Get(string subscriptionId, strin } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string clusterName, OperationalInsightsClusterPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourcegroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.OperationalInsights/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string clusterName, OperationalInsightsClusterPatch patch) { var message = _pipeline.CreateMessage(); @@ -487,6 +567,14 @@ public Response Update(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -559,6 +647,14 @@ public Response ListByResourceGroupNextPage(string nextLink, } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/RestOperations/DataExportsRestOperations.cs b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/RestOperations/DataExportsRestOperations.cs index a134480cf329..e570845c26ad 100644 --- a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/RestOperations/DataExportsRestOperations.cs +++ b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/RestOperations/DataExportsRestOperations.cs @@ -37,6 +37,21 @@ public DataExportsRestOperations(HttpPipeline pipeline, string applicationId, Ur _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByWorkspaceRequestUri(string subscriptionId, string resourceGroupName, string workspaceName) + { + 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.OperationalInsights/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/dataExports", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByWorkspaceRequest(string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByWorkspace(string subscriptionId, str } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string dataExportName, OperationalInsightsDataExportData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourcegroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.OperationalInsights/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/dataExports/", false); + uri.AppendPath(dataExportName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string dataExportName, OperationalInsightsDataExportData data) { var message = _pipeline.CreateMessage(); @@ -210,6 +241,22 @@ public Response CreateOrUpdate(string subscri } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string dataExportName) + { + 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.OperationalInsights/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/dataExports/", false); + uri.AppendPath(dataExportName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName, string dataExportName) { var message = _pipeline.CreateMessage(); @@ -298,6 +345,22 @@ public Response Get(string subscriptionId, st } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string dataExportName) + { + 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.OperationalInsights/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/dataExports/", false); + uri.AppendPath(dataExportName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string workspaceName, string dataExportName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/RestOperations/DataSourcesRestOperations.cs b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/RestOperations/DataSourcesRestOperations.cs index db7dd7dc0ef9..3daaaf8c141f 100644 --- a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/RestOperations/DataSourcesRestOperations.cs +++ b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/RestOperations/DataSourcesRestOperations.cs @@ -37,6 +37,22 @@ public DataSourcesRestOperations(HttpPipeline pipeline, string applicationId, Ur _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string dataSourceName, OperationalInsightsDataSourceData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourcegroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.OperationalInsights/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/dataSources/", false); + uri.AppendPath(dataSourceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string dataSourceName, OperationalInsightsDataSourceData data) { var message = _pipeline.CreateMessage(); @@ -131,6 +147,22 @@ public Response CreateOrUpdate(string subscri } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string dataSourceName) + { + 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.OperationalInsights/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/dataSources/", false); + uri.AppendPath(dataSourceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string workspaceName, string dataSourceName) { var message = _pipeline.CreateMessage(); @@ -206,6 +238,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string w } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string dataSourceName) + { + 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.OperationalInsights/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/dataSources/", false); + uri.AppendPath(dataSourceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName, string dataSourceName) { var message = _pipeline.CreateMessage(); @@ -294,6 +342,26 @@ public Response Get(string subscriptionId, st } } + internal RequestUriBuilder CreateListByWorkspaceRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string filter, string skipToken) + { + 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.OperationalInsights/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/dataSources", false); + uri.AppendQuery("$filter", filter, true); + if (skipToken != null) + { + uri.AppendQuery("$skiptoken", skipToken, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByWorkspaceRequest(string subscriptionId, string resourceGroupName, string workspaceName, string filter, string skipToken) { var message = _pipeline.CreateMessage(); @@ -384,6 +452,14 @@ public Response ListByWorkspace(string subscriptionId, str } } + internal RequestUriBuilder CreateListByWorkspaceNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string filter, string skipToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByWorkspaceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string filter, string skipToken) { var message = _pipeline.CreateMessage(); diff --git a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/RestOperations/DeletedWorkspacesRestOperations.cs b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/RestOperations/DeletedWorkspacesRestOperations.cs index 9dcfe7bc2e07..6613fdbb9fdd 100644 --- a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/RestOperations/DeletedWorkspacesRestOperations.cs +++ b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/RestOperations/DeletedWorkspacesRestOperations.cs @@ -37,6 +37,17 @@ public DeletedWorkspacesRestOperations(HttpPipeline pipeline, string application _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.OperationalInsights/deletedWorkspaces", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,19 @@ public Response List(string subscriptionId, CancellationTok } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.OperationalInsights/deletedWorkspaces", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/RestOperations/GatewaysRestOperations.cs b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/RestOperations/GatewaysRestOperations.cs index 4e38a6893b89..e015ed776fa9 100644 --- a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/RestOperations/GatewaysRestOperations.cs +++ b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/RestOperations/GatewaysRestOperations.cs @@ -35,6 +35,22 @@ public GatewaysRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, Guid gatewayId) + { + 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.OperationalInsights/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/gateways/", false); + uri.AppendPath(gatewayId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string workspaceName, Guid gatewayId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/RestOperations/IntelligencePacksRestOperations.cs b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/RestOperations/IntelligencePacksRestOperations.cs index aa46536771d4..bca4a3f4ca9b 100644 --- a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/RestOperations/IntelligencePacksRestOperations.cs +++ b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/RestOperations/IntelligencePacksRestOperations.cs @@ -38,6 +38,23 @@ public IntelligencePacksRestOperations(HttpPipeline pipeline, string application _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateDisableRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string intelligencePackName) + { + 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.OperationalInsights/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/intelligencePacks/", false); + uri.AppendPath(intelligencePackName, true); + uri.AppendPath("/Disable", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDisableRequest(string subscriptionId, string resourceGroupName, string workspaceName, string intelligencePackName) { var message = _pipeline.CreateMessage(); @@ -112,6 +129,23 @@ public Response Disable(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreateEnableRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string intelligencePackName) + { + 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.OperationalInsights/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/intelligencePacks/", false); + uri.AppendPath(intelligencePackName, true); + uri.AppendPath("/Enable", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateEnableRequest(string subscriptionId, string resourceGroupName, string workspaceName, string intelligencePackName) { var message = _pipeline.CreateMessage(); @@ -186,6 +220,21 @@ public Response Enable(string subscriptionId, string resourceGroupName, string w } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string workspaceName) + { + 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.OperationalInsights/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/intelligencePacks", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/RestOperations/LinkedServicesRestOperations.cs b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/RestOperations/LinkedServicesRestOperations.cs index 875537fb338c..2c461c5dbcf2 100644 --- a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/RestOperations/LinkedServicesRestOperations.cs +++ b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/RestOperations/LinkedServicesRestOperations.cs @@ -37,6 +37,22 @@ public LinkedServicesRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string linkedServiceName, OperationalInsightsLinkedServiceData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourcegroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.OperationalInsights/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/linkedServices/", false); + uri.AppendPath(linkedServiceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string linkedServiceName, OperationalInsightsLinkedServiceData data) { var message = _pipeline.CreateMessage(); @@ -123,6 +139,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string linkedServiceName) + { + 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.OperationalInsights/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/linkedServices/", false); + uri.AppendPath(linkedServiceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string workspaceName, string linkedServiceName) { var message = _pipeline.CreateMessage(); @@ -201,6 +233,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string w } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string linkedServiceName) + { + 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.OperationalInsights/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/linkedServices/", false); + uri.AppendPath(linkedServiceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName, string linkedServiceName) { var message = _pipeline.CreateMessage(); @@ -289,6 +337,21 @@ public Response Get(string subscriptionId, } } + internal RequestUriBuilder CreateListByWorkspaceRequestUri(string subscriptionId, string resourceGroupName, string workspaceName) + { + 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.OperationalInsights/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/linkedServices", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByWorkspaceRequest(string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/RestOperations/LinkedStorageAccountsRestOperations.cs b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/RestOperations/LinkedStorageAccountsRestOperations.cs index f92fb3dfd68b..5b4d93ecfa8a 100644 --- a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/RestOperations/LinkedStorageAccountsRestOperations.cs +++ b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/RestOperations/LinkedStorageAccountsRestOperations.cs @@ -37,6 +37,22 @@ public LinkedStorageAccountsRestOperations(HttpPipeline pipeline, string applica _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, OperationalInsightsDataSourceType dataSourceType, OperationalInsightsLinkedStorageAccountsData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourcegroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.OperationalInsights/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/linkedStorageAccounts/", false); + uri.AppendPath(dataSourceType.ToSerialString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, OperationalInsightsDataSourceType dataSourceType, OperationalInsightsLinkedStorageAccountsData data) { var message = _pipeline.CreateMessage(); @@ -127,6 +143,22 @@ public Response CreateOrUpdate(str } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, OperationalInsightsDataSourceType dataSourceType) + { + 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.OperationalInsights/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/linkedStorageAccounts/", false); + uri.AppendPath(dataSourceType.ToSerialString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string workspaceName, OperationalInsightsDataSourceType dataSourceType) { var message = _pipeline.CreateMessage(); @@ -198,6 +230,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string w } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, OperationalInsightsDataSourceType dataSourceType) + { + 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.OperationalInsights/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/linkedStorageAccounts/", false); + uri.AppendPath(dataSourceType.ToSerialString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName, OperationalInsightsDataSourceType dataSourceType) { var message = _pipeline.CreateMessage(); @@ -284,6 +332,21 @@ public Response Get(string subscri } } + internal RequestUriBuilder CreateListByWorkspaceRequestUri(string subscriptionId, string resourceGroupName, string workspaceName) + { + 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.OperationalInsights/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/linkedStorageAccounts", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByWorkspaceRequest(string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/RestOperations/ManagementGroupsRestOperations.cs b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/RestOperations/ManagementGroupsRestOperations.cs index aa02f6a9e57a..46cd0b26666a 100644 --- a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/RestOperations/ManagementGroupsRestOperations.cs +++ b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/RestOperations/ManagementGroupsRestOperations.cs @@ -37,6 +37,21 @@ public ManagementGroupsRestOperations(HttpPipeline pipeline, string applicationI _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string workspaceName) + { + 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.OperationalInsights/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/managementGroups", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/RestOperations/QueriesRestOperations.cs b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/RestOperations/QueriesRestOperations.cs index ebf6034c00c1..cc877275dc7e 100644 --- a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/RestOperations/QueriesRestOperations.cs +++ b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/RestOperations/QueriesRestOperations.cs @@ -37,6 +37,33 @@ public QueriesRestOperations(HttpPipeline pipeline, string applicationId, Uri en _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string queryPackName, long? top, bool? includeBody, string skipToken) + { + 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.OperationalInsights/queryPacks/", false); + uri.AppendPath(queryPackName, true); + uri.AppendPath("/queries", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (includeBody != null) + { + uri.AppendQuery("includeBody", includeBody.Value, true); + } + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string queryPackName, long? top, bool? includeBody, string skipToken) { var message = _pipeline.CreateMessage(); @@ -134,6 +161,33 @@ public Response List(string subscriptionId } } + internal RequestUriBuilder CreateSearchRequestUri(string subscriptionId, string resourceGroupName, string queryPackName, LogAnalyticsQuerySearchProperties querySearchProperties, long? top, bool? includeBody, string skipToken) + { + 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.OperationalInsights/queryPacks/", false); + uri.AppendPath(queryPackName, true); + uri.AppendPath("/queries/search", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (includeBody != null) + { + uri.AppendQuery("includeBody", includeBody.Value, true); + } + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } + return uri; + } + internal HttpMessage CreateSearchRequest(string subscriptionId, string resourceGroupName, string queryPackName, LogAnalyticsQuerySearchProperties querySearchProperties, long? top, bool? includeBody, string skipToken) { var message = _pipeline.CreateMessage(); @@ -239,6 +293,22 @@ public Response Search(string subscription } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string queryPackName, string id) + { + 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.OperationalInsights/queryPacks/", false); + uri.AppendPath(queryPackName, true); + uri.AppendPath("/queries/", false); + uri.AppendPath(id, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string queryPackName, string id) { var message = _pipeline.CreateMessage(); @@ -327,6 +397,22 @@ public Response Get(string subscriptionId, string resourc } } + internal RequestUriBuilder CreatePutRequestUri(string subscriptionId, string resourceGroupName, string queryPackName, string id, LogAnalyticsQueryData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.OperationalInsights/queryPacks/", false); + uri.AppendPath(queryPackName, true); + uri.AppendPath("/queries/", false); + uri.AppendPath(id, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreatePutRequest(string subscriptionId, string resourceGroupName, string queryPackName, string id, LogAnalyticsQueryData data) { var message = _pipeline.CreateMessage(); @@ -419,6 +505,22 @@ public Response Put(string subscriptionId, string resourc } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string queryPackName, string id, LogAnalyticsQueryData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.OperationalInsights/queryPacks/", false); + uri.AppendPath(queryPackName, true); + uri.AppendPath("/queries/", false); + uri.AppendPath(id, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string queryPackName, string id, LogAnalyticsQueryData data) { var message = _pipeline.CreateMessage(); @@ -511,6 +613,22 @@ public Response Update(string subscriptionId, string reso } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string queryPackName, string id) + { + 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.OperationalInsights/queryPacks/", false); + uri.AppendPath(queryPackName, true); + uri.AppendPath("/queries/", false); + uri.AppendPath(id, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string queryPackName, string id) { var message = _pipeline.CreateMessage(); @@ -587,6 +705,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string q } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string queryPackName, long? top, bool? includeBody, string skipToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string queryPackName, long? top, bool? includeBody, string skipToken) { var message = _pipeline.CreateMessage(); @@ -669,6 +795,14 @@ public Response ListNextPage(string nextLi } } + internal RequestUriBuilder CreateSearchNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string queryPackName, LogAnalyticsQuerySearchProperties querySearchProperties, long? top, bool? includeBody, string skipToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateSearchNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string queryPackName, LogAnalyticsQuerySearchProperties querySearchProperties, long? top, bool? includeBody, string skipToken) { var message = _pipeline.CreateMessage(); diff --git a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/RestOperations/QueryPacksRestOperations.cs b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/RestOperations/QueryPacksRestOperations.cs index 064fb849d6a8..3382b9e9d51e 100644 --- a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/RestOperations/QueryPacksRestOperations.cs +++ b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/RestOperations/QueryPacksRestOperations.cs @@ -37,6 +37,17 @@ public QueryPacksRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.OperationalInsights/queryPacks", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,19 @@ public Response List(string subscriptionId, Can } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.OperationalInsights/queryPacks", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -177,6 +201,19 @@ public Response ListByResourceGroup(string subs } } + internal RequestUriBuilder CreateCreateOrUpdateWithoutNameRequestUri(string subscriptionId, string resourceGroupName, LogAnalyticsQueryPackData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.OperationalInsights/queryPacks", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateWithoutNameRequest(string subscriptionId, string resourceGroupName, LogAnalyticsQueryPackData data) { var message = _pipeline.CreateMessage(); @@ -258,6 +295,20 @@ public Response CreateOrUpdateWithoutName(string subs } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string queryPackName) + { + 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.OperationalInsights/queryPacks/", false); + uri.AppendPath(queryPackName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string queryPackName) { var message = _pipeline.CreateMessage(); @@ -328,6 +379,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string q } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string queryPackName) + { + 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.OperationalInsights/queryPacks/", false); + uri.AppendPath(queryPackName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string queryPackName) { var message = _pipeline.CreateMessage(); @@ -410,6 +475,20 @@ public Response Get(string subscriptionId, string res } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string queryPackName, LogAnalyticsQueryPackData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.OperationalInsights/queryPacks/", false); + uri.AppendPath(queryPackName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string queryPackName, LogAnalyticsQueryPackData data) { var message = _pipeline.CreateMessage(); @@ -496,6 +575,20 @@ public Response CreateOrUpdate(string subscriptionId, } } + internal RequestUriBuilder CreateUpdateTagsRequestUri(string subscriptionId, string resourceGroupName, string queryPackName, LogAnalyticsQueryPackPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.OperationalInsights/queryPacks/", false); + uri.AppendPath(queryPackName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateTagsRequest(string subscriptionId, string resourceGroupName, string queryPackName, LogAnalyticsQueryPackPatch patch) { var message = _pipeline.CreateMessage(); @@ -582,6 +675,14 @@ public Response UpdateTags(string subscriptionId, str } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -650,6 +751,14 @@ public Response ListNextPage(string nextLink, s } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/RestOperations/SavedSearchesRestOperations.cs b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/RestOperations/SavedSearchesRestOperations.cs index 411984834ab9..d587ecfa7080 100644 --- a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/RestOperations/SavedSearchesRestOperations.cs +++ b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/RestOperations/SavedSearchesRestOperations.cs @@ -37,6 +37,22 @@ public SavedSearchesRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string savedSearchId) + { + 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.OperationalInsights/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/savedSearches/", false); + uri.AppendPath(savedSearchId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string workspaceName, string savedSearchId) { var message = _pipeline.CreateMessage(); @@ -110,6 +126,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string w } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string savedSearchId, OperationalInsightsSavedSearchData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourcegroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.OperationalInsights/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/savedSearches/", false); + uri.AppendPath(savedSearchId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string savedSearchId, OperationalInsightsSavedSearchData data) { var message = _pipeline.CreateMessage(); @@ -202,6 +234,22 @@ public Response CreateOrUpdate(string subscr } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string savedSearchId) + { + 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.OperationalInsights/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/savedSearches/", false); + uri.AppendPath(savedSearchId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName, string savedSearchId) { var message = _pipeline.CreateMessage(); @@ -290,6 +338,21 @@ public Response Get(string subscriptionId, s } } + internal RequestUriBuilder CreateListByWorkspaceRequestUri(string subscriptionId, string resourceGroupName, string workspaceName) + { + 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.OperationalInsights/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/savedSearches", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByWorkspaceRequest(string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/RestOperations/SchemaRestOperations.cs b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/RestOperations/SchemaRestOperations.cs index 4e4c9e6458e8..a326f4d850c3 100644 --- a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/RestOperations/SchemaRestOperations.cs +++ b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/RestOperations/SchemaRestOperations.cs @@ -37,6 +37,21 @@ public SchemaRestOperations(HttpPipeline pipeline, string applicationId, Uri end _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workspaceName) + { + 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.OperationalInsights/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/schema", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/RestOperations/SharedKeysRestOperations.cs b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/RestOperations/SharedKeysRestOperations.cs index 0b358b80dcac..395aec636104 100644 --- a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/RestOperations/SharedKeysRestOperations.cs +++ b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/RestOperations/SharedKeysRestOperations.cs @@ -37,6 +37,21 @@ public SharedKeysRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetSharedKeysRequestUri(string subscriptionId, string resourceGroupName, string workspaceName) + { + 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.OperationalInsights/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/sharedKeys", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetSharedKeysRequest(string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,21 @@ public Response GetSharedKeys(string sub } } + internal RequestUriBuilder CreateRegenerateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName) + { + 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.OperationalInsights/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/regenerateSharedKey", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRegenerateRequest(string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/RestOperations/StorageInsightConfigsRestOperations.cs b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/RestOperations/StorageInsightConfigsRestOperations.cs index e4b486cef689..1858f23bc121 100644 --- a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/RestOperations/StorageInsightConfigsRestOperations.cs +++ b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/RestOperations/StorageInsightConfigsRestOperations.cs @@ -37,6 +37,22 @@ public StorageInsightConfigsRestOperations(HttpPipeline pipeline, string applica _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string storageInsightName, StorageInsightData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourcegroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.OperationalInsights/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/storageInsightConfigs/", false); + uri.AppendPath(storageInsightName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string storageInsightName, StorageInsightData data) { var message = _pipeline.CreateMessage(); @@ -131,6 +147,22 @@ public Response CreateOrUpdate(string subscriptionId, string } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string storageInsightName) + { + 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.OperationalInsights/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/storageInsightConfigs/", false); + uri.AppendPath(storageInsightName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName, string storageInsightName) { var message = _pipeline.CreateMessage(); @@ -219,6 +251,22 @@ public Response Get(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string storageInsightName) + { + 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.OperationalInsights/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/storageInsightConfigs/", false); + uri.AppendPath(storageInsightName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string workspaceName, string storageInsightName) { var message = _pipeline.CreateMessage(); @@ -294,6 +342,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string w } } + internal RequestUriBuilder CreateListByWorkspaceRequestUri(string subscriptionId, string resourceGroupName, string workspaceName) + { + 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.OperationalInsights/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/storageInsightConfigs", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByWorkspaceRequest(string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); @@ -373,6 +436,14 @@ public Response ListByWorkspace(string subscriptionId, } } + internal RequestUriBuilder CreateListByWorkspaceNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByWorkspaceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/RestOperations/TablesRestOperations.cs b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/RestOperations/TablesRestOperations.cs index cd3f13982b2d..8e2eb481118d 100644 --- a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/RestOperations/TablesRestOperations.cs +++ b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/RestOperations/TablesRestOperations.cs @@ -37,6 +37,21 @@ public TablesRestOperations(HttpPipeline pipeline, string applicationId, Uri end _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByWorkspaceRequestUri(string subscriptionId, string resourceGroupName, string workspaceName) + { + 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.OperationalInsights/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/tables", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByWorkspaceRequest(string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByWorkspace(string subscriptionId, string } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string tableName, OperationalInsightsTableData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.OperationalInsights/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/tables/", false); + uri.AppendPath(tableName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string tableName, OperationalInsightsTableData data) { var message = _pipeline.CreateMessage(); @@ -200,6 +231,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string tableName, OperationalInsightsTableData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.OperationalInsights/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/tables/", false); + uri.AppendPath(tableName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string tableName, OperationalInsightsTableData data) { var message = _pipeline.CreateMessage(); @@ -284,6 +331,22 @@ public Response Update(string subscriptionId, string resourceGroupName, string w } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string tableName) + { + 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.OperationalInsights/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/tables/", false); + uri.AppendPath(tableName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName, string tableName) { var message = _pipeline.CreateMessage(); @@ -372,6 +435,22 @@ public Response Get(string subscriptionId, string } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string tableName) + { + 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.OperationalInsights/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/tables/", false); + uri.AppendPath(tableName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string workspaceName, string tableName) { var message = _pipeline.CreateMessage(); @@ -450,6 +529,23 @@ public Response Delete(string subscriptionId, string resourceGroupName, string w } } + internal RequestUriBuilder CreateMigrateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string tableName) + { + 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.OperationalInsights/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/tables/", false); + uri.AppendPath(tableName, true); + uri.AppendPath("/migrate", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateMigrateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string tableName) { var message = _pipeline.CreateMessage(); @@ -525,6 +621,23 @@ public Response Migrate(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreateCancelSearchRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string tableName) + { + 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.OperationalInsights/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/tables/", false); + uri.AppendPath(tableName, true); + uri.AppendPath("/cancelSearch", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCancelSearchRequest(string subscriptionId, string resourceGroupName, string workspaceName, string tableName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/RestOperations/UsagesRestOperations.cs b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/RestOperations/UsagesRestOperations.cs index edba22ad55f3..a5dcf7dec75c 100644 --- a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/RestOperations/UsagesRestOperations.cs +++ b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/RestOperations/UsagesRestOperations.cs @@ -37,6 +37,21 @@ public UsagesRestOperations(HttpPipeline pipeline, string applicationId, Uri end _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string workspaceName) + { + 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.OperationalInsights/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/usages", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/RestOperations/WorkspacePurgeRestOperations.cs b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/RestOperations/WorkspacePurgeRestOperations.cs index 895507a4a9ff..0f94729e76dd 100644 --- a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/RestOperations/WorkspacePurgeRestOperations.cs +++ b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/RestOperations/WorkspacePurgeRestOperations.cs @@ -37,6 +37,21 @@ public WorkspacePurgeRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreatePurgeRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, OperationalInsightsWorkspacePurgeContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.OperationalInsights/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/purge", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreatePurgeRequest(string subscriptionId, string resourceGroupName, string workspaceName, OperationalInsightsWorkspacePurgeContent content) { var message = _pipeline.CreateMessage(); @@ -134,6 +149,22 @@ public Response Purge(string subscripti } } + internal RequestUriBuilder CreateGetPurgeStatusRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string purgeId) + { + 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.OperationalInsights/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/operations/", false); + uri.AppendPath(purgeId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetPurgeStatusRequest(string subscriptionId, string resourceGroupName, string workspaceName, string purgeId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/RestOperations/WorkspacesRestOperations.cs b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/RestOperations/WorkspacesRestOperations.cs index e53355a4d511..4774ac4ca42e 100644 --- a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/RestOperations/WorkspacesRestOperations.cs +++ b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/RestOperations/WorkspacesRestOperations.cs @@ -37,6 +37,17 @@ public WorkspacesRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.OperationalInsights/workspaces", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,19 @@ public Response List(string subscriptionId, CancellationTok } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.OperationalInsights/workspaces", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -177,6 +201,20 @@ public Response ListByResourceGroup(string subscriptionId, } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, OperationalInsightsWorkspaceData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourcegroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.OperationalInsights/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, OperationalInsightsWorkspaceData data) { var message = _pipeline.CreateMessage(); @@ -257,6 +295,24 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, bool? force) + { + 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.OperationalInsights/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + if (force != null) + { + uri.AppendQuery("force", force.Value, true); + } + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string workspaceName, bool? force) { var message = _pipeline.CreateMessage(); @@ -335,6 +391,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string w } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workspaceName) + { + 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.OperationalInsights/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); @@ -417,6 +487,20 @@ public Response Get(string subscriptionId, str } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, OperationalInsightsWorkspacePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourcegroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.OperationalInsights/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, OperationalInsightsWorkspacePatch patch) { var message = _pipeline.CreateMessage(); diff --git a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/StorageInsightCollection.cs b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/StorageInsightCollection.cs index f2b80ad63ff6..d74ccb4bb174 100644 --- a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/StorageInsightCollection.cs +++ b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/StorageInsightCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> CreateOrUpdateAs try { var response = await _storageInsightStorageInsightConfigsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, storageInsightName, data, cancellationToken).ConfigureAwait(false); - var operation = new OperationalInsightsArmOperation(Response.FromValue(new StorageInsightResource(Client, response), response.GetRawResponse())); + var uri = _storageInsightStorageInsightConfigsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, storageInsightName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new OperationalInsightsArmOperation(Response.FromValue(new StorageInsightResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wai try { var response = _storageInsightStorageInsightConfigsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, storageInsightName, data, cancellationToken); - var operation = new OperationalInsightsArmOperation(Response.FromValue(new StorageInsightResource(Client, response), response.GetRawResponse())); + var uri = _storageInsightStorageInsightConfigsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, storageInsightName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new OperationalInsightsArmOperation(Response.FromValue(new StorageInsightResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/StorageInsightResource.cs b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/StorageInsightResource.cs index 4a600891f54c..67d64ef77231 100644 --- a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/StorageInsightResource.cs +++ b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/StorageInsightResource.cs @@ -201,7 +201,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _storageInsightStorageInsightConfigsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new OperationalInsightsArmOperation(response); + var uri = _storageInsightStorageInsightConfigsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new OperationalInsightsArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -243,7 +245,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _storageInsightStorageInsightConfigsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new OperationalInsightsArmOperation(response); + var uri = _storageInsightStorageInsightConfigsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new OperationalInsightsArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -289,7 +293,9 @@ public virtual async Task> UpdateAsync(Wait try { var response = await _storageInsightStorageInsightConfigsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new OperationalInsightsArmOperation(Response.FromValue(new StorageInsightResource(Client, response), response.GetRawResponse())); + var uri = _storageInsightStorageInsightConfigsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new OperationalInsightsArmOperation(Response.FromValue(new StorageInsightResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -335,7 +341,9 @@ public virtual ArmOperation Update(WaitUntil waitUntil, try { var response = _storageInsightStorageInsightConfigsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new OperationalInsightsArmOperation(Response.FromValue(new StorageInsightResource(Client, response), response.GetRawResponse())); + var uri = _storageInsightStorageInsightConfigsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new OperationalInsightsArmOperation(Response.FromValue(new StorageInsightResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/orbital/Azure.ResourceManager.Orbital/src/Generated/LongRunningOperation/OrbitalArmOperation.cs b/sdk/orbital/Azure.ResourceManager.Orbital/src/Generated/LongRunningOperation/OrbitalArmOperation.cs index 661dbb088085..6670f31a6234 100644 --- a/sdk/orbital/Azure.ResourceManager.Orbital/src/Generated/LongRunningOperation/OrbitalArmOperation.cs +++ b/sdk/orbital/Azure.ResourceManager.Orbital/src/Generated/LongRunningOperation/OrbitalArmOperation.cs @@ -20,21 +20,24 @@ internal class OrbitalArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of OrbitalArmOperation for mocking. protected OrbitalArmOperation() { } - internal OrbitalArmOperation(Response response) + internal OrbitalArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal OrbitalArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "OrbitalArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal OrbitalArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline p public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/orbital/Azure.ResourceManager.Orbital/src/Generated/LongRunningOperation/OrbitalArmOperationOfT.cs b/sdk/orbital/Azure.ResourceManager.Orbital/src/Generated/LongRunningOperation/OrbitalArmOperationOfT.cs index de88190bf6f7..0aea092b6610 100644 --- a/sdk/orbital/Azure.ResourceManager.Orbital/src/Generated/LongRunningOperation/OrbitalArmOperationOfT.cs +++ b/sdk/orbital/Azure.ResourceManager.Orbital/src/Generated/LongRunningOperation/OrbitalArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class OrbitalArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of OrbitalArmOperation for mocking. protected OrbitalArmOperation() { } - internal OrbitalArmOperation(Response response) + internal OrbitalArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal OrbitalArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "OrbitalArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal OrbitalArmOperation(IOperationSource source, ClientDiagnostics clien public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/orbital/Azure.ResourceManager.Orbital/src/Generated/Models/AvailableGroundStationResource.Serialization.cs b/sdk/orbital/Azure.ResourceManager.Orbital/src/Generated/Models/AvailableGroundStationResource.Serialization.cs new file mode 100644 index 000000000000..e2bd84c38578 --- /dev/null +++ b/sdk/orbital/Azure.ResourceManager.Orbital/src/Generated/Models/AvailableGroundStationResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Orbital +{ + public partial class AvailableGroundStationResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + AvailableGroundStationData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + AvailableGroundStationData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/orbital/Azure.ResourceManager.Orbital/src/Generated/Models/OrbitalContactProfileResource.Serialization.cs b/sdk/orbital/Azure.ResourceManager.Orbital/src/Generated/Models/OrbitalContactProfileResource.Serialization.cs new file mode 100644 index 000000000000..d80ac4bc32f5 --- /dev/null +++ b/sdk/orbital/Azure.ResourceManager.Orbital/src/Generated/Models/OrbitalContactProfileResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Orbital +{ + public partial class OrbitalContactProfileResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + OrbitalContactProfileData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + OrbitalContactProfileData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/orbital/Azure.ResourceManager.Orbital/src/Generated/Models/OrbitalContactResource.Serialization.cs b/sdk/orbital/Azure.ResourceManager.Orbital/src/Generated/Models/OrbitalContactResource.Serialization.cs new file mode 100644 index 000000000000..ff81a0f985f6 --- /dev/null +++ b/sdk/orbital/Azure.ResourceManager.Orbital/src/Generated/Models/OrbitalContactResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Orbital +{ + public partial class OrbitalContactResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + OrbitalContactData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + OrbitalContactData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/orbital/Azure.ResourceManager.Orbital/src/Generated/Models/OrbitalSpacecraftResource.Serialization.cs b/sdk/orbital/Azure.ResourceManager.Orbital/src/Generated/Models/OrbitalSpacecraftResource.Serialization.cs new file mode 100644 index 000000000000..a8ecf80a4da7 --- /dev/null +++ b/sdk/orbital/Azure.ResourceManager.Orbital/src/Generated/Models/OrbitalSpacecraftResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Orbital +{ + public partial class OrbitalSpacecraftResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + OrbitalSpacecraftData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + OrbitalSpacecraftData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/orbital/Azure.ResourceManager.Orbital/src/Generated/RestOperations/AvailableGroundStationsRestOperations.cs b/sdk/orbital/Azure.ResourceManager.Orbital/src/Generated/RestOperations/AvailableGroundStationsRestOperations.cs index 670db74bac68..5916bbfaadb1 100644 --- a/sdk/orbital/Azure.ResourceManager.Orbital/src/Generated/RestOperations/AvailableGroundStationsRestOperations.cs +++ b/sdk/orbital/Azure.ResourceManager.Orbital/src/Generated/RestOperations/AvailableGroundStationsRestOperations.cs @@ -37,6 +37,18 @@ public AvailableGroundStationsRestOperations(HttpPipeline pipeline, string appli _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByCapabilityRequestUri(string subscriptionId, GroundStationCapability capability) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Orbital/availableGroundStations", false); + uri.AppendQuery("api-version", _apiVersion, true); + uri.AppendQuery("capability", capability.ToString(), true); + return uri; + } + internal HttpMessage CreateListByCapabilityRequest(string subscriptionId, GroundStationCapability capability) { var message = _pipeline.CreateMessage(); @@ -107,6 +119,18 @@ public Response ListByCapability(string subscr } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string groundStationName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Orbital/availableGroundStations/", false); + uri.AppendPath(groundStationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string groundStationName) { var message = _pipeline.CreateMessage(); @@ -183,6 +207,14 @@ public Response Get(string subscriptionId, string gr } } + internal RequestUriBuilder CreateListByCapabilityNextPageRequestUri(string nextLink, string subscriptionId, GroundStationCapability capability) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByCapabilityNextPageRequest(string nextLink, string subscriptionId, GroundStationCapability capability) { var message = _pipeline.CreateMessage(); diff --git a/sdk/orbital/Azure.ResourceManager.Orbital/src/Generated/RestOperations/ContactProfilesRestOperations.cs b/sdk/orbital/Azure.ResourceManager.Orbital/src/Generated/RestOperations/ContactProfilesRestOperations.cs index 03a180a017c6..96e0b43ed45a 100644 --- a/sdk/orbital/Azure.ResourceManager.Orbital/src/Generated/RestOperations/ContactProfilesRestOperations.cs +++ b/sdk/orbital/Azure.ResourceManager.Orbital/src/Generated/RestOperations/ContactProfilesRestOperations.cs @@ -37,6 +37,20 @@ public ContactProfilesRestOperations(HttpPipeline pipeline, string applicationId _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string contactProfileName) + { + 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.Orbital/contactProfiles/", false); + uri.AppendPath(contactProfileName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string contactProfileName) { var message = _pipeline.CreateMessage(); @@ -119,6 +133,20 @@ public Response Get(string subscriptionId, string res } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string contactProfileName, OrbitalContactProfileData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Orbital/contactProfiles/", false); + uri.AppendPath(contactProfileName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string contactProfileName, OrbitalContactProfileData data) { var message = _pipeline.CreateMessage(); @@ -197,6 +225,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string contactProfileName) + { + 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.Orbital/contactProfiles/", false); + uri.AppendPath(contactProfileName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string contactProfileName) { var message = _pipeline.CreateMessage(); @@ -269,6 +311,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateUpdateTagsRequestUri(string subscriptionId, string resourceGroupName, string contactProfileName, OrbitalSpacecraftTags orbitalSpacecraftTags) + { + 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.Orbital/contactProfiles/", false); + uri.AppendPath(contactProfileName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateTagsRequest(string subscriptionId, string resourceGroupName, string contactProfileName, OrbitalSpacecraftTags orbitalSpacecraftTags) { var message = _pipeline.CreateMessage(); @@ -347,6 +403,21 @@ public Response UpdateTags(string subscriptionId, string resourceGroupName, stri } } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId, string skiptoken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Orbital/contactProfiles", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (skiptoken != null) + { + uri.AppendQuery("$skiptoken", skiptoken, true); + } + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId, string skiptoken) { var message = _pipeline.CreateMessage(); @@ -420,6 +491,23 @@ public Response ListBySubscription(string subscription } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string skiptoken) + { + 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.Orbital/contactProfiles", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (skiptoken != null) + { + uri.AppendQuery("$skiptoken", skiptoken, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string skiptoken) { var message = _pipeline.CreateMessage(); @@ -499,6 +587,14 @@ public Response List(string subscriptionId, string res } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId, string skiptoken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId, string skiptoken) { var message = _pipeline.CreateMessage(); @@ -569,6 +665,14 @@ public Response ListBySubscriptionNextPage(string next } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string skiptoken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string skiptoken) { var message = _pipeline.CreateMessage(); diff --git a/sdk/orbital/Azure.ResourceManager.Orbital/src/Generated/RestOperations/ContactsRestOperations.cs b/sdk/orbital/Azure.ResourceManager.Orbital/src/Generated/RestOperations/ContactsRestOperations.cs index e143801b7b8e..ae7e5efb0b55 100644 --- a/sdk/orbital/Azure.ResourceManager.Orbital/src/Generated/RestOperations/ContactsRestOperations.cs +++ b/sdk/orbital/Azure.ResourceManager.Orbital/src/Generated/RestOperations/ContactsRestOperations.cs @@ -37,6 +37,25 @@ public ContactsRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string spacecraftName, string skiptoken) + { + 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.Orbital/spacecrafts/", false); + uri.AppendPath(spacecraftName, true); + uri.AppendPath("/contacts", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (skiptoken != null) + { + uri.AppendQuery("$skiptoken", skiptoken, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string spacecraftName, string skiptoken) { var message = _pipeline.CreateMessage(); @@ -122,6 +141,22 @@ public Response List(string subscriptionId, string res } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string spacecraftName, string contactName) + { + 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.Orbital/spacecrafts/", false); + uri.AppendPath(spacecraftName, true); + uri.AppendPath("/contacts/", false); + uri.AppendPath(contactName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string spacecraftName, string contactName) { var message = _pipeline.CreateMessage(); @@ -210,6 +245,22 @@ public Response Get(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string spacecraftName, string contactName, OrbitalContactData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Orbital/spacecrafts/", false); + uri.AppendPath(spacecraftName, true); + uri.AppendPath("/contacts/", false); + uri.AppendPath(contactName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string spacecraftName, string contactName, OrbitalContactData data) { var message = _pipeline.CreateMessage(); @@ -294,6 +345,22 @@ public Response Create(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string spacecraftName, string contactName) + { + 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.Orbital/spacecrafts/", false); + uri.AppendPath(spacecraftName, true); + uri.AppendPath("/contacts/", false); + uri.AppendPath(contactName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string spacecraftName, string contactName) { var message = _pipeline.CreateMessage(); @@ -372,6 +439,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string spacecraftName, string skiptoken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string spacecraftName, string skiptoken) { var message = _pipeline.CreateMessage(); diff --git a/sdk/orbital/Azure.ResourceManager.Orbital/src/Generated/RestOperations/SpacecraftsRestOperations.cs b/sdk/orbital/Azure.ResourceManager.Orbital/src/Generated/RestOperations/SpacecraftsRestOperations.cs index 93dcd676488d..22533fd20772 100644 --- a/sdk/orbital/Azure.ResourceManager.Orbital/src/Generated/RestOperations/SpacecraftsRestOperations.cs +++ b/sdk/orbital/Azure.ResourceManager.Orbital/src/Generated/RestOperations/SpacecraftsRestOperations.cs @@ -37,6 +37,21 @@ public SpacecraftsRestOperations(HttpPipeline pipeline, string applicationId, Ur _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId, string skiptoken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Orbital/spacecrafts", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (skiptoken != null) + { + uri.AppendQuery("$skiptoken", skiptoken, true); + } + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId, string skiptoken) { var message = _pipeline.CreateMessage(); @@ -110,6 +125,23 @@ public Response ListBySubscription(string subscript } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string skiptoken) + { + 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.Orbital/spacecrafts", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (skiptoken != null) + { + uri.AppendQuery("$skiptoken", skiptoken, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string skiptoken) { var message = _pipeline.CreateMessage(); @@ -189,6 +221,20 @@ public Response List(string subscriptionId, string } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string spacecraftName) + { + 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.Orbital/spacecrafts/", false); + uri.AppendPath(spacecraftName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string spacecraftName) { var message = _pipeline.CreateMessage(); @@ -271,6 +317,20 @@ public Response Get(string subscriptionId, string resourc } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string spacecraftName, OrbitalSpacecraftData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Orbital/spacecrafts/", false); + uri.AppendPath(spacecraftName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string spacecraftName, OrbitalSpacecraftData data) { var message = _pipeline.CreateMessage(); @@ -349,6 +409,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string spacecraftName) + { + 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.Orbital/spacecrafts/", false); + uri.AppendPath(spacecraftName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string spacecraftName) { var message = _pipeline.CreateMessage(); @@ -421,6 +495,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateUpdateTagsRequestUri(string subscriptionId, string resourceGroupName, string spacecraftName, OrbitalSpacecraftTags orbitalSpacecraftTags) + { + 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.Orbital/spacecrafts/", false); + uri.AppendPath(spacecraftName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateTagsRequest(string subscriptionId, string resourceGroupName, string spacecraftName, OrbitalSpacecraftTags orbitalSpacecraftTags) { var message = _pipeline.CreateMessage(); @@ -499,6 +587,21 @@ public Response UpdateTags(string subscriptionId, string resourceGroupName, stri } } + internal RequestUriBuilder CreateListAvailableContactsRequestUri(string subscriptionId, string resourceGroupName, string spacecraftName, OrbitalAvailableContactsContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Orbital/spacecrafts/", false); + uri.AppendPath(spacecraftName, true); + uri.AppendPath("/listAvailableContacts", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListAvailableContactsRequest(string subscriptionId, string resourceGroupName, string spacecraftName, OrbitalAvailableContactsContent content) { var message = _pipeline.CreateMessage(); @@ -578,6 +681,14 @@ public Response ListAvailableContacts(string subscriptionId, string resourceGrou } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId, string skiptoken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId, string skiptoken) { var message = _pipeline.CreateMessage(); @@ -648,6 +759,14 @@ public Response ListBySubscriptionNextPage(string n } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string skiptoken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string skiptoken) { var message = _pipeline.CreateMessage(); diff --git a/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/LongRunningOperation/NgfwArmOperation.cs b/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/LongRunningOperation/NgfwArmOperation.cs index bf2a1945881c..b17aadad910c 100644 --- a/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/LongRunningOperation/NgfwArmOperation.cs +++ b/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/LongRunningOperation/NgfwArmOperation.cs @@ -20,21 +20,24 @@ internal class NgfwArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of NgfwArmOperation for mocking. protected NgfwArmOperation() { } - internal NgfwArmOperation(Response response) + internal NgfwArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal NgfwArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "NgfwArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal NgfwArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipe public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/LongRunningOperation/NgfwArmOperationOfT.cs b/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/LongRunningOperation/NgfwArmOperationOfT.cs index a752304f6cc7..1ed48ade20fe 100644 --- a/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/LongRunningOperation/NgfwArmOperationOfT.cs +++ b/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/LongRunningOperation/NgfwArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class NgfwArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of NgfwArmOperation for mocking. protected NgfwArmOperation() { } - internal NgfwArmOperation(Response response) + internal NgfwArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal NgfwArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "NgfwArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal NgfwArmOperation(IOperationSource source, ClientDiagnostics clientDi public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/Models/GlobalRulestackCertificateObjectResource.Serialization.cs b/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/Models/GlobalRulestackCertificateObjectResource.Serialization.cs new file mode 100644 index 000000000000..492402c44916 --- /dev/null +++ b/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/Models/GlobalRulestackCertificateObjectResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.PaloAltoNetworks.Ngfw +{ + public partial class GlobalRulestackCertificateObjectResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + GlobalRulestackCertificateObjectData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + GlobalRulestackCertificateObjectData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/Models/GlobalRulestackFqdnResource.Serialization.cs b/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/Models/GlobalRulestackFqdnResource.Serialization.cs new file mode 100644 index 000000000000..3cd95e139981 --- /dev/null +++ b/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/Models/GlobalRulestackFqdnResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.PaloAltoNetworks.Ngfw +{ + public partial class GlobalRulestackFqdnResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + GlobalRulestackFqdnData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + GlobalRulestackFqdnData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/Models/GlobalRulestackPrefixResource.Serialization.cs b/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/Models/GlobalRulestackPrefixResource.Serialization.cs new file mode 100644 index 000000000000..1d8a2ff07409 --- /dev/null +++ b/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/Models/GlobalRulestackPrefixResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.PaloAltoNetworks.Ngfw +{ + public partial class GlobalRulestackPrefixResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + GlobalRulestackPrefixData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + GlobalRulestackPrefixData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/Models/GlobalRulestackResource.Serialization.cs b/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/Models/GlobalRulestackResource.Serialization.cs new file mode 100644 index 000000000000..e112ac269a28 --- /dev/null +++ b/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/Models/GlobalRulestackResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.PaloAltoNetworks.Ngfw +{ + public partial class GlobalRulestackResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + GlobalRulestackData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + GlobalRulestackData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/Models/LocalRulestackCertificateObjectResource.Serialization.cs b/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/Models/LocalRulestackCertificateObjectResource.Serialization.cs new file mode 100644 index 000000000000..064f8e7270bb --- /dev/null +++ b/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/Models/LocalRulestackCertificateObjectResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.PaloAltoNetworks.Ngfw +{ + public partial class LocalRulestackCertificateObjectResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + LocalRulestackCertificateObjectData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + LocalRulestackCertificateObjectData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/Models/LocalRulestackFqdnResource.Serialization.cs b/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/Models/LocalRulestackFqdnResource.Serialization.cs new file mode 100644 index 000000000000..3ea602d9c67c --- /dev/null +++ b/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/Models/LocalRulestackFqdnResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.PaloAltoNetworks.Ngfw +{ + public partial class LocalRulestackFqdnResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + LocalRulestackFqdnData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + LocalRulestackFqdnData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/Models/LocalRulestackPrefixResource.Serialization.cs b/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/Models/LocalRulestackPrefixResource.Serialization.cs new file mode 100644 index 000000000000..67a80c8feb95 --- /dev/null +++ b/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/Models/LocalRulestackPrefixResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.PaloAltoNetworks.Ngfw +{ + public partial class LocalRulestackPrefixResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + LocalRulestackPrefixData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + LocalRulestackPrefixData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/Models/LocalRulestackResource.Serialization.cs b/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/Models/LocalRulestackResource.Serialization.cs new file mode 100644 index 000000000000..96feb2cb0d34 --- /dev/null +++ b/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/Models/LocalRulestackResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.PaloAltoNetworks.Ngfw +{ + public partial class LocalRulestackResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + LocalRulestackData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + LocalRulestackData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/Models/LocalRulestackRuleResource.Serialization.cs b/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/Models/LocalRulestackRuleResource.Serialization.cs new file mode 100644 index 000000000000..bb00eb1d508a --- /dev/null +++ b/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/Models/LocalRulestackRuleResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.PaloAltoNetworks.Ngfw +{ + public partial class LocalRulestackRuleResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + LocalRulestackRuleData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + LocalRulestackRuleData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/Models/PaloAltoNetworksFirewallResource.Serialization.cs b/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/Models/PaloAltoNetworksFirewallResource.Serialization.cs new file mode 100644 index 000000000000..48400fc12852 --- /dev/null +++ b/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/Models/PaloAltoNetworksFirewallResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.PaloAltoNetworks.Ngfw +{ + public partial class PaloAltoNetworksFirewallResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + PaloAltoNetworksFirewallData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + PaloAltoNetworksFirewallData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/Models/PaloAltoNetworksFirewallStatusResource.Serialization.cs b/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/Models/PaloAltoNetworksFirewallStatusResource.Serialization.cs new file mode 100644 index 000000000000..07c26d9e55d4 --- /dev/null +++ b/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/Models/PaloAltoNetworksFirewallStatusResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.PaloAltoNetworks.Ngfw +{ + public partial class PaloAltoNetworksFirewallStatusResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + PaloAltoNetworksFirewallStatusData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + PaloAltoNetworksFirewallStatusData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/Models/PostRulestackRuleResource.Serialization.cs b/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/Models/PostRulestackRuleResource.Serialization.cs new file mode 100644 index 000000000000..a85e6ab014af --- /dev/null +++ b/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/Models/PostRulestackRuleResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.PaloAltoNetworks.Ngfw +{ + public partial class PostRulestackRuleResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + PostRulestackRuleData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + PostRulestackRuleData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/Models/PreRulestackRuleResource.Serialization.cs b/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/Models/PreRulestackRuleResource.Serialization.cs new file mode 100644 index 000000000000..54d1546f9b64 --- /dev/null +++ b/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/Models/PreRulestackRuleResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.PaloAltoNetworks.Ngfw +{ + public partial class PreRulestackRuleResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + PreRulestackRuleData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + PreRulestackRuleData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/RestOperations/CertificateObjectGlobalRulestackRestOperations.cs b/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/RestOperations/CertificateObjectGlobalRulestackRestOperations.cs index 9fdeb7875a01..b5fe9f8ba0de 100644 --- a/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/RestOperations/CertificateObjectGlobalRulestackRestOperations.cs +++ b/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/RestOperations/CertificateObjectGlobalRulestackRestOperations.cs @@ -37,6 +37,17 @@ public CertificateObjectGlobalRulestackRestOperations(HttpPipeline pipeline, str _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string globalRulestackName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/", false); + uri.AppendPath(globalRulestackName, true); + uri.AppendPath("/certificates", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string globalRulestackName) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,18 @@ public Response List(string globalRu } } + internal RequestUriBuilder CreateGetRequestUri(string globalRulestackName, string name) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/", false); + uri.AppendPath(globalRulestackName, true); + uri.AppendPath("/certificates/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string globalRulestackName, string name) { var message = _pipeline.CreateMessage(); @@ -180,6 +203,18 @@ public Response Get(string globalRulestack } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string globalRulestackName, string name, GlobalRulestackCertificateObjectData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/", false); + uri.AppendPath(globalRulestackName, true); + uri.AppendPath("/certificates/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string globalRulestackName, string name, GlobalRulestackCertificateObjectData data) { var message = _pipeline.CreateMessage(); @@ -252,6 +287,18 @@ public Response CreateOrUpdate(string globalRulestackName, string name, GlobalRu } } + internal RequestUriBuilder CreateDeleteRequestUri(string globalRulestackName, string name) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/", false); + uri.AppendPath(globalRulestackName, true); + uri.AppendPath("/certificates/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string globalRulestackName, string name) { var message = _pipeline.CreateMessage(); @@ -318,6 +365,14 @@ public Response Delete(string globalRulestackName, string name, CancellationToke } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string globalRulestackName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string globalRulestackName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/RestOperations/CertificateObjectLocalRulestackRestOperations.cs b/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/RestOperations/CertificateObjectLocalRulestackRestOperations.cs index 0425c2e2026b..20838cd36441 100644 --- a/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/RestOperations/CertificateObjectLocalRulestackRestOperations.cs +++ b/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/RestOperations/CertificateObjectLocalRulestackRestOperations.cs @@ -37,6 +37,21 @@ public CertificateObjectLocalRulestackRestOperations(HttpPipeline pipeline, stri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByLocalRulestacksRequestUri(string subscriptionId, string resourceGroupName, string localRulestackName) + { + 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/PaloAltoNetworks.Cloudngfw/localRulestacks/", false); + uri.AppendPath(localRulestackName, true); + uri.AppendPath("/certificates", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByLocalRulestacksRequest(string subscriptionId, string resourceGroupName, string localRulestackName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByLocalRulestacks } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string localRulestackName, string name) + { + 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/PaloAltoNetworks.Cloudngfw/localRulestacks/", false); + uri.AppendPath(localRulestackName, true); + uri.AppendPath("/certificates/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string localRulestackName, string name) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscriptionId, } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string localRulestackName, string name, LocalRulestackCertificateObjectData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/", false); + uri.AppendPath(localRulestackName, true); + uri.AppendPath("/certificates/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string localRulestackName, string name, LocalRulestackCertificateObjectData data) { var message = _pipeline.CreateMessage(); @@ -288,6 +335,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string localRulestackName, string name) + { + 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/PaloAltoNetworks.Cloudngfw/localRulestacks/", false); + uri.AppendPath(localRulestackName, true); + uri.AppendPath("/certificates/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string localRulestackName, string name) { var message = _pipeline.CreateMessage(); @@ -366,6 +429,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string l } } + internal RequestUriBuilder CreateListByLocalRulestacksNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string localRulestackName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByLocalRulestacksNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string localRulestackName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/RestOperations/FirewallStatusRestOperations.cs b/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/RestOperations/FirewallStatusRestOperations.cs index 307a03c14adc..addcbfe86c02 100644 --- a/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/RestOperations/FirewallStatusRestOperations.cs +++ b/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/RestOperations/FirewallStatusRestOperations.cs @@ -37,6 +37,21 @@ public FirewallStatusRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByFirewallsRequestUri(string subscriptionId, string resourceGroupName, string firewallName) + { + 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/PaloAltoNetworks.Cloudngfw/firewalls/", false); + uri.AppendPath(firewallName, true); + uri.AppendPath("/statuses", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByFirewallsRequest(string subscriptionId, string resourceGroupName, string firewallName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,21 @@ public Response ListByFirewalls(string } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string firewallName) + { + 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/PaloAltoNetworks.Cloudngfw/firewalls/", false); + uri.AppendPath(firewallName, true); + uri.AppendPath("/statuses/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string firewallName) { var message = _pipeline.CreateMessage(); @@ -199,6 +229,14 @@ public Response Get(string subscriptionId, s } } + internal RequestUriBuilder CreateListByFirewallsNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string firewallName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByFirewallsNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string firewallName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/RestOperations/FirewallsRestOperations.cs b/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/RestOperations/FirewallsRestOperations.cs index 65f7ee6f0a5b..e3ddb6332c32 100644 --- a/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/RestOperations/FirewallsRestOperations.cs +++ b/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/RestOperations/FirewallsRestOperations.cs @@ -37,6 +37,17 @@ public FirewallsRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/PaloAltoNetworks.Cloudngfw/firewalls", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,19 @@ public Response ListBySubscription(string su } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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/PaloAltoNetworks.Cloudngfw/firewalls", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -177,6 +201,20 @@ public Response ListByResourceGroup(string s } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string firewallName) + { + 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/PaloAltoNetworks.Cloudngfw/firewalls/", false); + uri.AppendPath(firewallName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string firewallName) { var message = _pipeline.CreateMessage(); @@ -259,6 +297,20 @@ public Response Get(string subscriptionId, string } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string firewallName, PaloAltoNetworksFirewallData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/PaloAltoNetworks.Cloudngfw/firewalls/", false); + uri.AppendPath(firewallName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string firewallName, PaloAltoNetworksFirewallData data) { var message = _pipeline.CreateMessage(); @@ -337,6 +389,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string firewallName, PaloAltoNetworksFirewallPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/PaloAltoNetworks.Cloudngfw/firewalls/", false); + uri.AppendPath(firewallName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string firewallName, PaloAltoNetworksFirewallPatch patch) { var message = _pipeline.CreateMessage(); @@ -423,6 +489,20 @@ public Response Update(string subscriptionId, stri } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string firewallName) + { + 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/PaloAltoNetworks.Cloudngfw/firewalls/", false); + uri.AppendPath(firewallName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string firewallName) { var message = _pipeline.CreateMessage(); @@ -495,6 +575,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string f } } + internal RequestUriBuilder CreateGetGlobalRulestackRequestUri(string subscriptionId, string resourceGroupName, string firewallName) + { + 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/PaloAltoNetworks.Cloudngfw/firewalls/", false); + uri.AppendPath(firewallName, true); + uri.AppendPath("/getGlobalRulestack", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetGlobalRulestackRequest(string subscriptionId, string resourceGroupName, string firewallName) { var message = _pipeline.CreateMessage(); @@ -574,6 +669,21 @@ public Response GetGlobalRulestack(string subscriptionId, s } } + internal RequestUriBuilder CreateGetLogProfileRequestUri(string subscriptionId, string resourceGroupName, string firewallName) + { + 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/PaloAltoNetworks.Cloudngfw/firewalls/", false); + uri.AppendPath(firewallName, true); + uri.AppendPath("/getLogProfile", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetLogProfileRequest(string subscriptionId, string resourceGroupName, string firewallName) { var message = _pipeline.CreateMessage(); @@ -653,6 +763,25 @@ public Response GetLogProfile(string subscriptionId, string } } + internal RequestUriBuilder CreateGetSupportInfoRequestUri(string subscriptionId, string resourceGroupName, string firewallName, string email) + { + 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/PaloAltoNetworks.Cloudngfw/firewalls/", false); + uri.AppendPath(firewallName, true); + uri.AppendPath("/getSupportInfo", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (email != null) + { + uri.AppendQuery("email", email, true); + } + return uri; + } + internal HttpMessage CreateGetSupportInfoRequest(string subscriptionId, string resourceGroupName, string firewallName, string email) { var message = _pipeline.CreateMessage(); @@ -738,6 +867,21 @@ public Response GetSupportInfo(string subscriptionId, strin } } + internal RequestUriBuilder CreateSaveLogProfileRequestUri(string subscriptionId, string resourceGroupName, string firewallName, FirewallLogSettings logSettings) + { + 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/PaloAltoNetworks.Cloudngfw/firewalls/", false); + uri.AppendPath(firewallName, true); + uri.AppendPath("/saveLogProfile", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateSaveLogProfileRequest(string subscriptionId, string resourceGroupName, string firewallName, FirewallLogSettings logSettings) { var message = _pipeline.CreateMessage(); @@ -816,6 +960,14 @@ public Response SaveLogProfile(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -884,6 +1036,14 @@ public Response ListBySubscriptionNextPage(s } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/RestOperations/FqdnListGlobalRulestackRestOperations.cs b/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/RestOperations/FqdnListGlobalRulestackRestOperations.cs index ff73ce7fcd44..c7ef6ea573cb 100644 --- a/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/RestOperations/FqdnListGlobalRulestackRestOperations.cs +++ b/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/RestOperations/FqdnListGlobalRulestackRestOperations.cs @@ -37,6 +37,17 @@ public FqdnListGlobalRulestackRestOperations(HttpPipeline pipeline, string appli _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string globalRulestackName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/", false); + uri.AppendPath(globalRulestackName, true); + uri.AppendPath("/fqdnlists", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string globalRulestackName) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,18 @@ public Response List(string globalRulestackName, } } + internal RequestUriBuilder CreateGetRequestUri(string globalRulestackName, string name) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/", false); + uri.AppendPath(globalRulestackName, true); + uri.AppendPath("/fqdnlists/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string globalRulestackName, string name) { var message = _pipeline.CreateMessage(); @@ -180,6 +203,18 @@ public Response Get(string globalRulestackName, string } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string globalRulestackName, string name, GlobalRulestackFqdnData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/", false); + uri.AppendPath(globalRulestackName, true); + uri.AppendPath("/fqdnlists/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string globalRulestackName, string name, GlobalRulestackFqdnData data) { var message = _pipeline.CreateMessage(); @@ -252,6 +287,18 @@ public Response CreateOrUpdate(string globalRulestackName, string name, GlobalRu } } + internal RequestUriBuilder CreateDeleteRequestUri(string globalRulestackName, string name) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/", false); + uri.AppendPath(globalRulestackName, true); + uri.AppendPath("/fqdnlists/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string globalRulestackName, string name) { var message = _pipeline.CreateMessage(); @@ -318,6 +365,14 @@ public Response Delete(string globalRulestackName, string name, CancellationToke } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string globalRulestackName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string globalRulestackName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/RestOperations/FqdnListLocalRulestackRestOperations.cs b/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/RestOperations/FqdnListLocalRulestackRestOperations.cs index d706f71307c0..ae747c8cb48d 100644 --- a/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/RestOperations/FqdnListLocalRulestackRestOperations.cs +++ b/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/RestOperations/FqdnListLocalRulestackRestOperations.cs @@ -37,6 +37,21 @@ public FqdnListLocalRulestackRestOperations(HttpPipeline pipeline, string applic _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByLocalRulestacksRequestUri(string subscriptionId, string resourceGroupName, string localRulestackName) + { + 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/PaloAltoNetworks.Cloudngfw/localRulestacks/", false); + uri.AppendPath(localRulestackName, true); + uri.AppendPath("/fqdnlists", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByLocalRulestacksRequest(string subscriptionId, string resourceGroupName, string localRulestackName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByLocalRulestacks(string subsc } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string localRulestackName, string name) + { + 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/PaloAltoNetworks.Cloudngfw/localRulestacks/", false); + uri.AppendPath(localRulestackName, true); + uri.AppendPath("/fqdnlists/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string localRulestackName, string name) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscriptionId, string resour } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string localRulestackName, string name, LocalRulestackFqdnData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/", false); + uri.AppendPath(localRulestackName, true); + uri.AppendPath("/fqdnlists/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string localRulestackName, string name, LocalRulestackFqdnData data) { var message = _pipeline.CreateMessage(); @@ -288,6 +335,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string localRulestackName, string name) + { + 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/PaloAltoNetworks.Cloudngfw/localRulestacks/", false); + uri.AppendPath(localRulestackName, true); + uri.AppendPath("/fqdnlists/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string localRulestackName, string name) { var message = _pipeline.CreateMessage(); @@ -366,6 +429,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string l } } + internal RequestUriBuilder CreateListByLocalRulestacksNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string localRulestackName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByLocalRulestacksNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string localRulestackName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/RestOperations/GlobalRulestackRestOperations.cs b/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/RestOperations/GlobalRulestackRestOperations.cs index df3a725c796f..e458334be9e4 100644 --- a/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/RestOperations/GlobalRulestackRestOperations.cs +++ b/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/RestOperations/GlobalRulestackRestOperations.cs @@ -37,6 +37,15 @@ public GlobalRulestackRestOperations(HttpPipeline pipeline, string applicationId _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri() + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest() { var message = _pipeline.CreateMessage(); @@ -92,6 +101,16 @@ public Response List(CancellationToken cancellationTo } } + internal RequestUriBuilder CreateGetRequestUri(string globalRulestackName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/", false); + uri.AppendPath(globalRulestackName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string globalRulestackName) { var message = _pipeline.CreateMessage(); @@ -162,6 +181,16 @@ public Response Get(string globalRulestackName, Cancellatio } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string globalRulestackName, GlobalRulestackData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/", false); + uri.AppendPath(globalRulestackName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string globalRulestackName, GlobalRulestackData data) { var message = _pipeline.CreateMessage(); @@ -228,6 +257,16 @@ public Response CreateOrUpdate(string globalRulestackName, GlobalRulestackData d } } + internal RequestUriBuilder CreateUpdateRequestUri(string globalRulestackName, GlobalRulestackPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/", false); + uri.AppendPath(globalRulestackName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string globalRulestackName, GlobalRulestackPatch patch) { var message = _pipeline.CreateMessage(); @@ -302,6 +341,16 @@ public Response Update(string globalRulestackName, GlobalRu } } + internal RequestUriBuilder CreateDeleteRequestUri(string globalRulestackName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/", false); + uri.AppendPath(globalRulestackName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string globalRulestackName) { var message = _pipeline.CreateMessage(); @@ -362,6 +411,17 @@ public Response Delete(string globalRulestackName, CancellationToken cancellatio } } + internal RequestUriBuilder CreateCommitRequestUri(string globalRulestackName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/", false); + uri.AppendPath(globalRulestackName, true); + uri.AppendPath("/commit", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCommitRequest(string globalRulestackName) { var message = _pipeline.CreateMessage(); @@ -419,6 +479,17 @@ public Response Commit(string globalRulestackName, CancellationToken cancellatio } } + internal RequestUriBuilder CreateGetChangeLogRequestUri(string globalRulestackName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/", false); + uri.AppendPath(globalRulestackName, true); + uri.AppendPath("/getChangeLog", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetChangeLogRequest(string globalRulestackName) { var message = _pipeline.CreateMessage(); @@ -486,6 +557,26 @@ public Response GetChangeLog(string globalRulestackName, Can } } + internal RequestUriBuilder CreateListAdvancedSecurityObjectsRequestUri(string globalRulestackName, AdvancedSecurityObjectType type, string skip, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/", false); + uri.AppendPath(globalRulestackName, true); + uri.AppendPath("/listAdvancedSecurityObjects", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (skip != null) + { + uri.AppendQuery("skip", skip, true); + } + if (top != null) + { + uri.AppendQuery("top", top.Value, true); + } + uri.AppendQuery("type", type.ToString(), true); + return uri; + } + internal HttpMessage CreateListAdvancedSecurityObjectsRequest(string globalRulestackName, AdvancedSecurityObjectType type, string skip, int? top) { var message = _pipeline.CreateMessage(); @@ -568,6 +659,33 @@ public Response ListAdvancedSecurityObjects(st } } + internal RequestUriBuilder CreateListAppIdsRequestUri(string globalRulestackName, string appIdVersion, string appPrefix, string skip, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/", false); + uri.AppendPath(globalRulestackName, true); + uri.AppendPath("/listAppIds", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (appIdVersion != null) + { + uri.AppendQuery("appIdVersion", appIdVersion, true); + } + if (appPrefix != null) + { + uri.AppendQuery("appPrefix", appPrefix, true); + } + if (skip != null) + { + uri.AppendQuery("skip", skip, true); + } + if (top != null) + { + uri.AppendQuery("top", top.Value, true); + } + return uri; + } + internal HttpMessage CreateListAppIdsRequest(string globalRulestackName, string appIdVersion, string appPrefix, string skip, int? top) { var message = _pipeline.CreateMessage(); @@ -659,6 +777,25 @@ public Response ListAppIds(string globalRulestackName, } } + internal RequestUriBuilder CreateListCountriesRequestUri(string globalRulestackName, string skip, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/", false); + uri.AppendPath(globalRulestackName, true); + uri.AppendPath("/listCountries", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (skip != null) + { + uri.AppendQuery("skip", skip, true); + } + if (top != null) + { + uri.AppendQuery("top", top.Value, true); + } + return uri; + } + internal HttpMessage CreateListCountriesRequest(string globalRulestackName, string skip, int? top) { var message = _pipeline.CreateMessage(); @@ -738,6 +875,17 @@ public Response ListCountries(string globalRulestack } } + internal RequestUriBuilder CreateListFirewallsRequestUri(string globalRulestackName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/", false); + uri.AppendPath(globalRulestackName, true); + uri.AppendPath("/listFirewalls", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListFirewallsRequest(string globalRulestackName) { var message = _pipeline.CreateMessage(); @@ -805,6 +953,25 @@ public Response ListFirewalls(string globalRulestac } } + internal RequestUriBuilder CreateListPredefinedUrlCategoriesRequestUri(string globalRulestackName, string skip, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/", false); + uri.AppendPath(globalRulestackName, true); + uri.AppendPath("/listPredefinedUrlCategories", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (skip != null) + { + uri.AppendQuery("skip", skip, true); + } + if (top != null) + { + uri.AppendQuery("top", top.Value, true); + } + return uri; + } + internal HttpMessage CreateListPredefinedUrlCategoriesRequest(string globalRulestackName, string skip, int? top) { var message = _pipeline.CreateMessage(); @@ -884,6 +1051,26 @@ public Response ListPredefinedUrlCategories(str } } + internal RequestUriBuilder CreateListSecurityServicesRequestUri(string globalRulestackName, RulestackSecurityServiceType type, string skip, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/", false); + uri.AppendPath(globalRulestackName, true); + uri.AppendPath("/listSecurityServices", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (skip != null) + { + uri.AppendQuery("skip", skip, true); + } + if (top != null) + { + uri.AppendQuery("top", top.Value, true); + } + uri.AppendQuery("type", type.ToString(), true); + return uri; + } + internal HttpMessage CreateListSecurityServicesRequest(string globalRulestackName, RulestackSecurityServiceType type, string skip, int? top) { var message = _pipeline.CreateMessage(); @@ -966,6 +1153,17 @@ public Response ListSecurityServices(string } } + internal RequestUriBuilder CreateRevertRequestUri(string globalRulestackName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/", false); + uri.AppendPath(globalRulestackName, true); + uri.AppendPath("/revert", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRevertRequest(string globalRulestackName) { var message = _pipeline.CreateMessage(); @@ -1023,6 +1221,14 @@ public Response Revert(string globalRulestackName, CancellationToken cancellatio } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink) { var message = _pipeline.CreateMessage(); diff --git a/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/RestOperations/LocalRulesRestOperations.cs b/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/RestOperations/LocalRulesRestOperations.cs index 124051de4fae..a58b9db93448 100644 --- a/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/RestOperations/LocalRulesRestOperations.cs +++ b/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/RestOperations/LocalRulesRestOperations.cs @@ -37,6 +37,21 @@ public LocalRulesRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByLocalRulestacksRequestUri(string subscriptionId, string resourceGroupName, string localRulestackName) + { + 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/PaloAltoNetworks.Cloudngfw/localRulestacks/", false); + uri.AppendPath(localRulestackName, true); + uri.AppendPath("/localRules", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByLocalRulestacksRequest(string subscriptionId, string resourceGroupName, string localRulestackName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByLocalRulestacks(string subsc } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string localRulestackName, string priority) + { + 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/PaloAltoNetworks.Cloudngfw/localRulestacks/", false); + uri.AppendPath(localRulestackName, true); + uri.AppendPath("/localRules/", false); + uri.AppendPath(priority, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string localRulestackName, string priority) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscriptionId, string resour } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string localRulestackName, string priority, LocalRulestackRuleData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/", false); + uri.AppendPath(localRulestackName, true); + uri.AppendPath("/localRules/", false); + uri.AppendPath(priority, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string localRulestackName, string priority, LocalRulestackRuleData data) { var message = _pipeline.CreateMessage(); @@ -288,6 +335,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string localRulestackName, string priority) + { + 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/PaloAltoNetworks.Cloudngfw/localRulestacks/", false); + uri.AppendPath(localRulestackName, true); + uri.AppendPath("/localRules/", false); + uri.AppendPath(priority, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string localRulestackName, string priority) { var message = _pipeline.CreateMessage(); @@ -366,6 +429,27 @@ public Response Delete(string subscriptionId, string resourceGroupName, string l } } + internal RequestUriBuilder CreateGetCountersRequestUri(string subscriptionId, string resourceGroupName, string localRulestackName, string priority, string firewallName) + { + 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/PaloAltoNetworks.Cloudngfw/localRulestacks/", false); + uri.AppendPath(localRulestackName, true); + uri.AppendPath("/localRules/", false); + uri.AppendPath(priority, true); + uri.AppendPath("/getCounters", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (firewallName != null) + { + uri.AppendQuery("firewallName", firewallName, true); + } + return uri; + } + internal HttpMessage CreateGetCountersRequest(string subscriptionId, string resourceGroupName, string localRulestackName, string priority, string firewallName) { var message = _pipeline.CreateMessage(); @@ -457,6 +541,27 @@ public Response GetCounters(string subscriptionId, string r } } + internal RequestUriBuilder CreateRefreshCountersRequestUri(string subscriptionId, string resourceGroupName, string localRulestackName, string priority, string firewallName) + { + 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/PaloAltoNetworks.Cloudngfw/localRulestacks/", false); + uri.AppendPath(localRulestackName, true); + uri.AppendPath("/localRules/", false); + uri.AppendPath(priority, true); + uri.AppendPath("/refreshCounters", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (firewallName != null) + { + uri.AppendQuery("firewallName", firewallName, true); + } + return uri; + } + internal HttpMessage CreateRefreshCountersRequest(string subscriptionId, string resourceGroupName, string localRulestackName, string priority, string firewallName) { var message = _pipeline.CreateMessage(); @@ -538,6 +643,27 @@ public Response RefreshCounters(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateResetCountersRequestUri(string subscriptionId, string resourceGroupName, string localRulestackName, string priority, string firewallName) + { + 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/PaloAltoNetworks.Cloudngfw/localRulestacks/", false); + uri.AppendPath(localRulestackName, true); + uri.AppendPath("/localRules/", false); + uri.AppendPath(priority, true); + uri.AppendPath("/resetCounters", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (firewallName != null) + { + uri.AppendQuery("firewallName", firewallName, true); + } + return uri; + } + internal HttpMessage CreateResetCountersRequest(string subscriptionId, string resourceGroupName, string localRulestackName, string priority, string firewallName) { var message = _pipeline.CreateMessage(); @@ -629,6 +755,14 @@ public Response ResetCounters(string subscriptionId, st } } + internal RequestUriBuilder CreateListByLocalRulestacksNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string localRulestackName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByLocalRulestacksNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string localRulestackName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/RestOperations/LocalRulestacksRestOperations.cs b/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/RestOperations/LocalRulestacksRestOperations.cs index a9a5bccd0deb..8ac608d66eea 100644 --- a/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/RestOperations/LocalRulestacksRestOperations.cs +++ b/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/RestOperations/LocalRulestacksRestOperations.cs @@ -37,6 +37,17 @@ public LocalRulestacksRestOperations(HttpPipeline pipeline, string applicationId _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/PaloAltoNetworks.Cloudngfw/localRulestacks", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,19 @@ public Response ListBySubscription(string subscription } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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/PaloAltoNetworks.Cloudngfw/localRulestacks", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -177,6 +201,20 @@ public Response ListByResourceGroup(string subscriptio } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string localRulestackName) + { + 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/PaloAltoNetworks.Cloudngfw/localRulestacks/", false); + uri.AppendPath(localRulestackName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string localRulestackName) { var message = _pipeline.CreateMessage(); @@ -259,6 +297,20 @@ public Response Get(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string localRulestackName, LocalRulestackData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/", false); + uri.AppendPath(localRulestackName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string localRulestackName, LocalRulestackData data) { var message = _pipeline.CreateMessage(); @@ -337,6 +389,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string localRulestackName, LocalRulestackPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/", false); + uri.AppendPath(localRulestackName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string localRulestackName, LocalRulestackPatch patch) { var message = _pipeline.CreateMessage(); @@ -423,6 +489,20 @@ public Response Update(string subscriptionId, string resourc } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string localRulestackName) + { + 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/PaloAltoNetworks.Cloudngfw/localRulestacks/", false); + uri.AppendPath(localRulestackName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string localRulestackName) { var message = _pipeline.CreateMessage(); @@ -495,6 +575,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string l } } + internal RequestUriBuilder CreateCommitRequestUri(string subscriptionId, string resourceGroupName, string localRulestackName) + { + 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/PaloAltoNetworks.Cloudngfw/localRulestacks/", false); + uri.AppendPath(localRulestackName, true); + uri.AppendPath("/commit", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCommitRequest(string subscriptionId, string resourceGroupName, string localRulestackName) { var message = _pipeline.CreateMessage(); @@ -564,6 +659,21 @@ public Response Commit(string subscriptionId, string resourceGroupName, string l } } + internal RequestUriBuilder CreateGetChangeLogRequestUri(string subscriptionId, string resourceGroupName, string localRulestackName) + { + 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/PaloAltoNetworks.Cloudngfw/localRulestacks/", false); + uri.AppendPath(localRulestackName, true); + uri.AppendPath("/getChangeLog", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetChangeLogRequest(string subscriptionId, string resourceGroupName, string localRulestackName) { var message = _pipeline.CreateMessage(); @@ -643,6 +753,25 @@ public Response GetChangeLog(string subscriptionId, string r } } + internal RequestUriBuilder CreateGetSupportInfoRequestUri(string subscriptionId, string resourceGroupName, string localRulestackName, string email) + { + 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/PaloAltoNetworks.Cloudngfw/localRulestacks/", false); + uri.AppendPath(localRulestackName, true); + uri.AppendPath("/getSupportInfo", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (email != null) + { + uri.AppendQuery("email", email, true); + } + return uri; + } + internal HttpMessage CreateGetSupportInfoRequest(string subscriptionId, string resourceGroupName, string localRulestackName, string email) { var message = _pipeline.CreateMessage(); @@ -728,6 +857,30 @@ public Response GetSupportInfo(string subscriptionId, strin } } + internal RequestUriBuilder CreateListAdvancedSecurityObjectsRequestUri(string subscriptionId, string resourceGroupName, string localRulestackName, AdvancedSecurityObjectType type, string skip, int? top) + { + 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/PaloAltoNetworks.Cloudngfw/localRulestacks/", false); + uri.AppendPath(localRulestackName, true); + uri.AppendPath("/listAdvancedSecurityObjects", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (skip != null) + { + uri.AppendQuery("skip", skip, true); + } + if (top != null) + { + uri.AppendQuery("top", top.Value, true); + } + uri.AppendQuery("type", type.ToString(), true); + return uri; + } + internal HttpMessage CreateListAdvancedSecurityObjectsRequest(string subscriptionId, string resourceGroupName, string localRulestackName, AdvancedSecurityObjectType type, string skip, int? top) { var message = _pipeline.CreateMessage(); @@ -822,6 +975,37 @@ public Response ListAdvancedSecurityObjects(st } } + internal RequestUriBuilder CreateListAppIdsRequestUri(string subscriptionId, string resourceGroupName, string localRulestackName, string appIdVersion, string appPrefix, string skip, int? top) + { + 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/PaloAltoNetworks.Cloudngfw/localRulestacks/", false); + uri.AppendPath(localRulestackName, true); + uri.AppendPath("/listAppIds", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (appIdVersion != null) + { + uri.AppendQuery("appIdVersion", appIdVersion, true); + } + if (appPrefix != null) + { + uri.AppendQuery("appPrefix", appPrefix, true); + } + if (skip != null) + { + uri.AppendQuery("skip", skip, true); + } + if (top != null) + { + uri.AppendQuery("top", top.Value, true); + } + return uri; + } + internal HttpMessage CreateListAppIdsRequest(string subscriptionId, string resourceGroupName, string localRulestackName, string appIdVersion, string appPrefix, string skip, int? top) { var message = _pipeline.CreateMessage(); @@ -925,6 +1109,29 @@ public Response ListAppIds(string subscriptionId, stri } } + internal RequestUriBuilder CreateListCountriesRequestUri(string subscriptionId, string resourceGroupName, string localRulestackName, string skip, int? top) + { + 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/PaloAltoNetworks.Cloudngfw/localRulestacks/", false); + uri.AppendPath(localRulestackName, true); + uri.AppendPath("/listCountries", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (skip != null) + { + uri.AppendQuery("skip", skip, true); + } + if (top != null) + { + uri.AppendQuery("top", top.Value, true); + } + return uri; + } + internal HttpMessage CreateListCountriesRequest(string subscriptionId, string resourceGroupName, string localRulestackName, string skip, int? top) { var message = _pipeline.CreateMessage(); @@ -1016,6 +1223,21 @@ public Response ListCountries(string subscriptionId, } } + internal RequestUriBuilder CreateListFirewallsRequestUri(string subscriptionId, string resourceGroupName, string localRulestackName) + { + 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/PaloAltoNetworks.Cloudngfw/localRulestacks/", false); + uri.AppendPath(localRulestackName, true); + uri.AppendPath("/listFirewalls", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListFirewallsRequest(string subscriptionId, string resourceGroupName, string localRulestackName) { var message = _pipeline.CreateMessage(); @@ -1095,6 +1317,29 @@ public Response ListFirewalls(string subscriptionId } } + internal RequestUriBuilder CreateListPredefinedUrlCategoriesRequestUri(string subscriptionId, string resourceGroupName, string localRulestackName, string skip, int? top) + { + 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/PaloAltoNetworks.Cloudngfw/localRulestacks/", false); + uri.AppendPath(localRulestackName, true); + uri.AppendPath("/listPredefinedUrlCategories", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (skip != null) + { + uri.AppendQuery("skip", skip, true); + } + if (top != null) + { + uri.AppendQuery("top", top.Value, true); + } + return uri; + } + internal HttpMessage CreateListPredefinedUrlCategoriesRequest(string subscriptionId, string resourceGroupName, string localRulestackName, string skip, int? top) { var message = _pipeline.CreateMessage(); @@ -1186,6 +1431,30 @@ public Response ListPredefinedUrlCategories(str } } + internal RequestUriBuilder CreateListSecurityServicesRequestUri(string subscriptionId, string resourceGroupName, string localRulestackName, RulestackSecurityServiceType type, string skip, int? top) + { + 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/PaloAltoNetworks.Cloudngfw/localRulestacks/", false); + uri.AppendPath(localRulestackName, true); + uri.AppendPath("/listSecurityServices", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (skip != null) + { + uri.AppendQuery("skip", skip, true); + } + if (top != null) + { + uri.AppendQuery("top", top.Value, true); + } + uri.AppendQuery("type", type.ToString(), true); + return uri; + } + internal HttpMessage CreateListSecurityServicesRequest(string subscriptionId, string resourceGroupName, string localRulestackName, RulestackSecurityServiceType type, string skip, int? top) { var message = _pipeline.CreateMessage(); @@ -1280,6 +1549,21 @@ public Response ListSecurityServices(string } } + internal RequestUriBuilder CreateRevertRequestUri(string subscriptionId, string resourceGroupName, string localRulestackName) + { + 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/PaloAltoNetworks.Cloudngfw/localRulestacks/", false); + uri.AppendPath(localRulestackName, true); + uri.AppendPath("/revert", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRevertRequest(string subscriptionId, string resourceGroupName, string localRulestackName) { var message = _pipeline.CreateMessage(); @@ -1349,6 +1633,14 @@ public Response Revert(string subscriptionId, string resourceGroupName, string l } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -1417,6 +1709,14 @@ public Response ListBySubscriptionNextPage(string next } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/RestOperations/PostRulesRestOperations.cs b/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/RestOperations/PostRulesRestOperations.cs index ff85bc5717d1..d700e2f158e7 100644 --- a/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/RestOperations/PostRulesRestOperations.cs +++ b/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/RestOperations/PostRulesRestOperations.cs @@ -37,6 +37,17 @@ public PostRulesRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string globalRulestackName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/", false); + uri.AppendPath(globalRulestackName, true); + uri.AppendPath("/postRules", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string globalRulestackName) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,18 @@ public Response List(string globalRulestackName, Ca } } + internal RequestUriBuilder CreateGetRequestUri(string globalRulestackName, string priority) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/", false); + uri.AppendPath(globalRulestackName, true); + uri.AppendPath("/postRules/", false); + uri.AppendPath(priority, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string globalRulestackName, string priority) { var message = _pipeline.CreateMessage(); @@ -180,6 +203,18 @@ public Response Get(string globalRulestackName, string pr } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string globalRulestackName, string priority, PostRulestackRuleData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/", false); + uri.AppendPath(globalRulestackName, true); + uri.AppendPath("/postRules/", false); + uri.AppendPath(priority, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string globalRulestackName, string priority, PostRulestackRuleData data) { var message = _pipeline.CreateMessage(); @@ -252,6 +287,18 @@ public Response CreateOrUpdate(string globalRulestackName, string priority, Post } } + internal RequestUriBuilder CreateDeleteRequestUri(string globalRulestackName, string priority) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/", false); + uri.AppendPath(globalRulestackName, true); + uri.AppendPath("/postRules/", false); + uri.AppendPath(priority, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string globalRulestackName, string priority) { var message = _pipeline.CreateMessage(); @@ -318,6 +365,23 @@ public Response Delete(string globalRulestackName, string priority, Cancellation } } + internal RequestUriBuilder CreateGetCountersRequestUri(string globalRulestackName, string priority, string firewallName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/", false); + uri.AppendPath(globalRulestackName, true); + uri.AppendPath("/postRules/", false); + uri.AppendPath(priority, true); + uri.AppendPath("/getCounters", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (firewallName != null) + { + uri.AppendQuery("firewallName", firewallName, true); + } + return uri; + } + internal HttpMessage CreateGetCountersRequest(string globalRulestackName, string priority, string firewallName) { var message = _pipeline.CreateMessage(); @@ -397,6 +461,23 @@ public Response GetCounters(string globalRulestackName, str } } + internal RequestUriBuilder CreateRefreshCountersRequestUri(string globalRulestackName, string priority, string firewallName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/", false); + uri.AppendPath(globalRulestackName, true); + uri.AppendPath("/postRules/", false); + uri.AppendPath(priority, true); + uri.AppendPath("/refreshCounters", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (firewallName != null) + { + uri.AppendQuery("firewallName", firewallName, true); + } + return uri; + } + internal HttpMessage CreateRefreshCountersRequest(string globalRulestackName, string priority, string firewallName) { var message = _pipeline.CreateMessage(); @@ -466,6 +547,23 @@ public Response RefreshCounters(string globalRulestackName, string priority, str } } + internal RequestUriBuilder CreateResetCountersRequestUri(string globalRulestackName, string priority, string firewallName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/", false); + uri.AppendPath(globalRulestackName, true); + uri.AppendPath("/postRules/", false); + uri.AppendPath(priority, true); + uri.AppendPath("/resetCounters", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (firewallName != null) + { + uri.AppendQuery("firewallName", firewallName, true); + } + return uri; + } + internal HttpMessage CreateResetCountersRequest(string globalRulestackName, string priority, string firewallName) { var message = _pipeline.CreateMessage(); @@ -545,6 +643,14 @@ public Response ResetCounters(string globalRulestackNam } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string globalRulestackName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string globalRulestackName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/RestOperations/PreRulesRestOperations.cs b/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/RestOperations/PreRulesRestOperations.cs index de2218700edd..cd633ff8c36b 100644 --- a/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/RestOperations/PreRulesRestOperations.cs +++ b/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/RestOperations/PreRulesRestOperations.cs @@ -37,6 +37,17 @@ public PreRulesRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string globalRulestackName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/", false); + uri.AppendPath(globalRulestackName, true); + uri.AppendPath("/preRules", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string globalRulestackName) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,18 @@ public Response List(string globalRulestackName, Can } } + internal RequestUriBuilder CreateGetRequestUri(string globalRulestackName, string priority) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/", false); + uri.AppendPath(globalRulestackName, true); + uri.AppendPath("/preRules/", false); + uri.AppendPath(priority, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string globalRulestackName, string priority) { var message = _pipeline.CreateMessage(); @@ -180,6 +203,18 @@ public Response Get(string globalRulestackName, string pri } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string globalRulestackName, string priority, PreRulestackRuleData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/", false); + uri.AppendPath(globalRulestackName, true); + uri.AppendPath("/preRules/", false); + uri.AppendPath(priority, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string globalRulestackName, string priority, PreRulestackRuleData data) { var message = _pipeline.CreateMessage(); @@ -252,6 +287,18 @@ public Response CreateOrUpdate(string globalRulestackName, string priority, PreR } } + internal RequestUriBuilder CreateDeleteRequestUri(string globalRulestackName, string priority) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/", false); + uri.AppendPath(globalRulestackName, true); + uri.AppendPath("/preRules/", false); + uri.AppendPath(priority, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string globalRulestackName, string priority) { var message = _pipeline.CreateMessage(); @@ -318,6 +365,23 @@ public Response Delete(string globalRulestackName, string priority, Cancellation } } + internal RequestUriBuilder CreateGetCountersRequestUri(string globalRulestackName, string priority, string firewallName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/", false); + uri.AppendPath(globalRulestackName, true); + uri.AppendPath("/preRules/", false); + uri.AppendPath(priority, true); + uri.AppendPath("/getCounters", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (firewallName != null) + { + uri.AppendQuery("firewallName", firewallName, true); + } + return uri; + } + internal HttpMessage CreateGetCountersRequest(string globalRulestackName, string priority, string firewallName) { var message = _pipeline.CreateMessage(); @@ -397,6 +461,23 @@ public Response GetCounters(string globalRulestackName, str } } + internal RequestUriBuilder CreateRefreshCountersRequestUri(string globalRulestackName, string priority, string firewallName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/", false); + uri.AppendPath(globalRulestackName, true); + uri.AppendPath("/preRules/", false); + uri.AppendPath(priority, true); + uri.AppendPath("/refreshCounters", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (firewallName != null) + { + uri.AppendQuery("firewallName", firewallName, true); + } + return uri; + } + internal HttpMessage CreateRefreshCountersRequest(string globalRulestackName, string priority, string firewallName) { var message = _pipeline.CreateMessage(); @@ -466,6 +547,23 @@ public Response RefreshCounters(string globalRulestackName, string priority, str } } + internal RequestUriBuilder CreateResetCountersRequestUri(string globalRulestackName, string priority, string firewallName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/", false); + uri.AppendPath(globalRulestackName, true); + uri.AppendPath("/preRules/", false); + uri.AppendPath(priority, true); + uri.AppendPath("/resetCounters", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (firewallName != null) + { + uri.AppendQuery("firewallName", firewallName, true); + } + return uri; + } + internal HttpMessage CreateResetCountersRequest(string globalRulestackName, string priority, string firewallName) { var message = _pipeline.CreateMessage(); @@ -545,6 +643,14 @@ public Response ResetCounters(string globalRulestackNam } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string globalRulestackName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string globalRulestackName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/RestOperations/PrefixListGlobalRulestackRestOperations.cs b/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/RestOperations/PrefixListGlobalRulestackRestOperations.cs index f8bb6d1c601a..f36051b8896c 100644 --- a/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/RestOperations/PrefixListGlobalRulestackRestOperations.cs +++ b/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/RestOperations/PrefixListGlobalRulestackRestOperations.cs @@ -37,6 +37,17 @@ public PrefixListGlobalRulestackRestOperations(HttpPipeline pipeline, string app _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string globalRulestackName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/", false); + uri.AppendPath(globalRulestackName, true); + uri.AppendPath("/prefixlists", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string globalRulestackName) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,18 @@ public Response List(string globalR } } + internal RequestUriBuilder CreateGetRequestUri(string globalRulestackName, string name) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/", false); + uri.AppendPath(globalRulestackName, true); + uri.AppendPath("/prefixlists/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string globalRulestackName, string name) { var message = _pipeline.CreateMessage(); @@ -180,6 +203,18 @@ public Response Get(string globalRulestackName, strin } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string globalRulestackName, string name, GlobalRulestackPrefixData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/", false); + uri.AppendPath(globalRulestackName, true); + uri.AppendPath("/prefixlists/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string globalRulestackName, string name, GlobalRulestackPrefixData data) { var message = _pipeline.CreateMessage(); @@ -252,6 +287,18 @@ public Response CreateOrUpdate(string globalRulestackName, string name, GlobalRu } } + internal RequestUriBuilder CreateDeleteRequestUri(string globalRulestackName, string name) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/", false); + uri.AppendPath(globalRulestackName, true); + uri.AppendPath("/prefixlists/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string globalRulestackName, string name) { var message = _pipeline.CreateMessage(); @@ -318,6 +365,14 @@ public Response Delete(string globalRulestackName, string name, CancellationToke } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string globalRulestackName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string globalRulestackName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/RestOperations/PrefixListLocalRulestackRestOperations.cs b/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/RestOperations/PrefixListLocalRulestackRestOperations.cs index 9ed26c94b6b6..08e594ce02e4 100644 --- a/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/RestOperations/PrefixListLocalRulestackRestOperations.cs +++ b/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/RestOperations/PrefixListLocalRulestackRestOperations.cs @@ -37,6 +37,21 @@ public PrefixListLocalRulestackRestOperations(HttpPipeline pipeline, string appl _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByLocalRulestacksRequestUri(string subscriptionId, string resourceGroupName, string localRulestackName) + { + 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/PaloAltoNetworks.Cloudngfw/localRulestacks/", false); + uri.AppendPath(localRulestackName, true); + uri.AppendPath("/prefixlists", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByLocalRulestacksRequest(string subscriptionId, string resourceGroupName, string localRulestackName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByLocalRulestacks(string subsc } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string localRulestackName, string name) + { + 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/PaloAltoNetworks.Cloudngfw/localRulestacks/", false); + uri.AppendPath(localRulestackName, true); + uri.AppendPath("/prefixlists/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string localRulestackName, string name) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscriptionId, string reso } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string localRulestackName, string name, LocalRulestackPrefixData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/", false); + uri.AppendPath(localRulestackName, true); + uri.AppendPath("/prefixlists/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string localRulestackName, string name, LocalRulestackPrefixData data) { var message = _pipeline.CreateMessage(); @@ -288,6 +335,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string localRulestackName, string name) + { + 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/PaloAltoNetworks.Cloudngfw/localRulestacks/", false); + uri.AppendPath(localRulestackName, true); + uri.AppendPath("/prefixlists/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string localRulestackName, string name) { var message = _pipeline.CreateMessage(); @@ -366,6 +429,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string l } } + internal RequestUriBuilder CreateListByLocalRulestacksNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string localRulestackName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByLocalRulestacksNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string localRulestackName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/peering/Azure.ResourceManager.Peering/src/Generated/ConnectionMonitorTestCollection.cs b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/ConnectionMonitorTestCollection.cs index 6128405df114..d6d34eea2f9f 100644 --- a/sdk/peering/Azure.ResourceManager.Peering/src/Generated/ConnectionMonitorTestCollection.cs +++ b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/ConnectionMonitorTestCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> CreateOrU try { var response = await _connectionMonitorTestRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, connectionMonitorTestName, data, cancellationToken).ConfigureAwait(false); - var operation = new PeeringArmOperation(Response.FromValue(new ConnectionMonitorTestResource(Client, response), response.GetRawResponse())); + var uri = _connectionMonitorTestRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, connectionMonitorTestName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new PeeringArmOperation(Response.FromValue(new ConnectionMonitorTestResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUn try { var response = _connectionMonitorTestRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, connectionMonitorTestName, data, cancellationToken); - var operation = new PeeringArmOperation(Response.FromValue(new ConnectionMonitorTestResource(Client, response), response.GetRawResponse())); + var uri = _connectionMonitorTestRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, connectionMonitorTestName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new PeeringArmOperation(Response.FromValue(new ConnectionMonitorTestResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/peering/Azure.ResourceManager.Peering/src/Generated/ConnectionMonitorTestResource.cs b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/ConnectionMonitorTestResource.cs index 14851ad55f02..a139dc6b514c 100644 --- a/sdk/peering/Azure.ResourceManager.Peering/src/Generated/ConnectionMonitorTestResource.cs +++ b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/ConnectionMonitorTestResource.cs @@ -200,7 +200,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _connectionMonitorTestRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new PeeringArmOperation(response); + var uri = _connectionMonitorTestRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new PeeringArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -242,7 +244,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _connectionMonitorTestRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new PeeringArmOperation(response); + var uri = _connectionMonitorTestRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new PeeringArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -288,7 +292,9 @@ public virtual async Task> UpdateAsy try { var response = await _connectionMonitorTestRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new PeeringArmOperation(Response.FromValue(new ConnectionMonitorTestResource(Client, response), response.GetRawResponse())); + var uri = _connectionMonitorTestRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new PeeringArmOperation(Response.FromValue(new ConnectionMonitorTestResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -334,7 +340,9 @@ public virtual ArmOperation Update(WaitUntil wait try { var response = _connectionMonitorTestRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new PeeringArmOperation(Response.FromValue(new ConnectionMonitorTestResource(Client, response), response.GetRawResponse())); + var uri = _connectionMonitorTestRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new PeeringArmOperation(Response.FromValue(new ConnectionMonitorTestResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/peering/Azure.ResourceManager.Peering/src/Generated/LongRunningOperation/PeeringArmOperation.cs b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/LongRunningOperation/PeeringArmOperation.cs index 1b55abf17a7f..1bb8db5d0541 100644 --- a/sdk/peering/Azure.ResourceManager.Peering/src/Generated/LongRunningOperation/PeeringArmOperation.cs +++ b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/LongRunningOperation/PeeringArmOperation.cs @@ -20,21 +20,24 @@ internal class PeeringArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of PeeringArmOperation for mocking. protected PeeringArmOperation() { } - internal PeeringArmOperation(Response response) + internal PeeringArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal PeeringArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "PeeringArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal PeeringArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline p public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/peering/Azure.ResourceManager.Peering/src/Generated/LongRunningOperation/PeeringArmOperationOfT.cs b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/LongRunningOperation/PeeringArmOperationOfT.cs index d898d9f0ce30..08ded4feffa0 100644 --- a/sdk/peering/Azure.ResourceManager.Peering/src/Generated/LongRunningOperation/PeeringArmOperationOfT.cs +++ b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/LongRunningOperation/PeeringArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class PeeringArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of PeeringArmOperation for mocking. protected PeeringArmOperation() { } - internal PeeringArmOperation(Response response) + internal PeeringArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal PeeringArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "PeeringArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal PeeringArmOperation(IOperationSource source, ClientDiagnostics clien public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/peering/Azure.ResourceManager.Peering/src/Generated/Models/ConnectionMonitorTestResource.Serialization.cs b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/Models/ConnectionMonitorTestResource.Serialization.cs new file mode 100644 index 000000000000..3c483c50e7fc --- /dev/null +++ b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/Models/ConnectionMonitorTestResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Peering +{ + public partial class ConnectionMonitorTestResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ConnectionMonitorTestData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ConnectionMonitorTestData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/peering/Azure.ResourceManager.Peering/src/Generated/Models/PeerAsnResource.Serialization.cs b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/Models/PeerAsnResource.Serialization.cs new file mode 100644 index 000000000000..09a98aca1f39 --- /dev/null +++ b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/Models/PeerAsnResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Peering +{ + public partial class PeerAsnResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + PeerAsnData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + PeerAsnData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/peering/Azure.ResourceManager.Peering/src/Generated/Models/PeeringRegisteredAsnResource.Serialization.cs b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/Models/PeeringRegisteredAsnResource.Serialization.cs new file mode 100644 index 000000000000..33cc7489982d --- /dev/null +++ b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/Models/PeeringRegisteredAsnResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Peering +{ + public partial class PeeringRegisteredAsnResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + PeeringRegisteredAsnData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + PeeringRegisteredAsnData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/peering/Azure.ResourceManager.Peering/src/Generated/Models/PeeringRegisteredPrefixResource.Serialization.cs b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/Models/PeeringRegisteredPrefixResource.Serialization.cs new file mode 100644 index 000000000000..271f19be4276 --- /dev/null +++ b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/Models/PeeringRegisteredPrefixResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Peering +{ + public partial class PeeringRegisteredPrefixResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + PeeringRegisteredPrefixData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + PeeringRegisteredPrefixData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/peering/Azure.ResourceManager.Peering/src/Generated/Models/PeeringResource.Serialization.cs b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/Models/PeeringResource.Serialization.cs new file mode 100644 index 000000000000..6b963b18d68d --- /dev/null +++ b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/Models/PeeringResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Peering +{ + public partial class PeeringResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + PeeringData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + PeeringData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/peering/Azure.ResourceManager.Peering/src/Generated/Models/PeeringServicePrefixResource.Serialization.cs b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/Models/PeeringServicePrefixResource.Serialization.cs new file mode 100644 index 000000000000..36700a8c00ec --- /dev/null +++ b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/Models/PeeringServicePrefixResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Peering +{ + public partial class PeeringServicePrefixResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + PeeringServicePrefixData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + PeeringServicePrefixData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/peering/Azure.ResourceManager.Peering/src/Generated/Models/PeeringServiceResource.Serialization.cs b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/Models/PeeringServiceResource.Serialization.cs new file mode 100644 index 000000000000..61c5e1ccaf44 --- /dev/null +++ b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/Models/PeeringServiceResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Peering +{ + public partial class PeeringServiceResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + PeeringServiceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + PeeringServiceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/peering/Azure.ResourceManager.Peering/src/Generated/PeerAsnCollection.cs b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/PeerAsnCollection.cs index 80615c34ca5d..80c879db5732 100644 --- a/sdk/peering/Azure.ResourceManager.Peering/src/Generated/PeerAsnCollection.cs +++ b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/PeerAsnCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> CreateOrUpdateAsync(Wai try { var response = await _peerAsnRestClient.CreateOrUpdateAsync(Id.SubscriptionId, peerAsnName, data, cancellationToken).ConfigureAwait(false); - var operation = new PeeringArmOperation(Response.FromValue(new PeerAsnResource(Client, response), response.GetRawResponse())); + var uri = _peerAsnRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, peerAsnName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new PeeringArmOperation(Response.FromValue(new PeerAsnResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -140,7 +142,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, try { var response = _peerAsnRestClient.CreateOrUpdate(Id.SubscriptionId, peerAsnName, data, cancellationToken); - var operation = new PeeringArmOperation(Response.FromValue(new PeerAsnResource(Client, response), response.GetRawResponse())); + var uri = _peerAsnRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, peerAsnName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new PeeringArmOperation(Response.FromValue(new PeerAsnResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/peering/Azure.ResourceManager.Peering/src/Generated/PeerAsnResource.cs b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/PeerAsnResource.cs index f9a43be25f9d..041f845dffff 100644 --- a/sdk/peering/Azure.ResourceManager.Peering/src/Generated/PeerAsnResource.cs +++ b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/PeerAsnResource.cs @@ -199,7 +199,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _peerAsnRestClient.DeleteAsync(Id.SubscriptionId, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new PeeringArmOperation(response); + var uri = _peerAsnRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new PeeringArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -241,7 +243,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _peerAsnRestClient.Delete(Id.SubscriptionId, Id.Name, cancellationToken); - var operation = new PeeringArmOperation(response); + var uri = _peerAsnRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new PeeringArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -287,7 +291,9 @@ public virtual async Task> UpdateAsync(WaitUntil w try { var response = await _peerAsnRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new PeeringArmOperation(Response.FromValue(new PeerAsnResource(Client, response), response.GetRawResponse())); + var uri = _peerAsnRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new PeeringArmOperation(Response.FromValue(new PeerAsnResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -333,7 +339,9 @@ public virtual ArmOperation Update(WaitUntil waitUntil, PeerAsn try { var response = _peerAsnRestClient.CreateOrUpdate(Id.SubscriptionId, Id.Name, data, cancellationToken); - var operation = new PeeringArmOperation(Response.FromValue(new PeerAsnResource(Client, response), response.GetRawResponse())); + var uri = _peerAsnRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new PeeringArmOperation(Response.FromValue(new PeerAsnResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/peering/Azure.ResourceManager.Peering/src/Generated/PeeringCollection.cs b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/PeeringCollection.cs index 3a729a20dc3c..6cd9d641d218 100644 --- a/sdk/peering/Azure.ResourceManager.Peering/src/Generated/PeeringCollection.cs +++ b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/PeeringCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> CreateOrUpdateAsync(Wai try { var response = await _peeringRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, peeringName, data, cancellationToken).ConfigureAwait(false); - var operation = new PeeringArmOperation(Response.FromValue(new PeeringResource(Client, response), response.GetRawResponse())); + var uri = _peeringRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, peeringName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new PeeringArmOperation(Response.FromValue(new PeeringResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -140,7 +142,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, try { var response = _peeringRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, peeringName, data, cancellationToken); - var operation = new PeeringArmOperation(Response.FromValue(new PeeringResource(Client, response), response.GetRawResponse())); + var uri = _peeringRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, peeringName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new PeeringArmOperation(Response.FromValue(new PeeringResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/peering/Azure.ResourceManager.Peering/src/Generated/PeeringRegisteredAsnCollection.cs b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/PeeringRegisteredAsnCollection.cs index ec0f8ac47cf4..603c02bbde1b 100644 --- a/sdk/peering/Azure.ResourceManager.Peering/src/Generated/PeeringRegisteredAsnCollection.cs +++ b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/PeeringRegisteredAsnCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> CreateOrUp try { var response = await _peeringRegisteredAsnRegisteredAsnsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, registeredAsnName, data, cancellationToken).ConfigureAwait(false); - var operation = new PeeringArmOperation(Response.FromValue(new PeeringRegisteredAsnResource(Client, response), response.GetRawResponse())); + var uri = _peeringRegisteredAsnRegisteredAsnsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, registeredAsnName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new PeeringArmOperation(Response.FromValue(new PeeringRegisteredAsnResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUnt try { var response = _peeringRegisteredAsnRegisteredAsnsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, registeredAsnName, data, cancellationToken); - var operation = new PeeringArmOperation(Response.FromValue(new PeeringRegisteredAsnResource(Client, response), response.GetRawResponse())); + var uri = _peeringRegisteredAsnRegisteredAsnsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, registeredAsnName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new PeeringArmOperation(Response.FromValue(new PeeringRegisteredAsnResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/peering/Azure.ResourceManager.Peering/src/Generated/PeeringRegisteredAsnResource.cs b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/PeeringRegisteredAsnResource.cs index 73b5296acb91..3343aa7f3a64 100644 --- a/sdk/peering/Azure.ResourceManager.Peering/src/Generated/PeeringRegisteredAsnResource.cs +++ b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/PeeringRegisteredAsnResource.cs @@ -200,7 +200,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _peeringRegisteredAsnRegisteredAsnsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new PeeringArmOperation(response); + var uri = _peeringRegisteredAsnRegisteredAsnsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new PeeringArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -242,7 +244,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _peeringRegisteredAsnRegisteredAsnsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new PeeringArmOperation(response); + var uri = _peeringRegisteredAsnRegisteredAsnsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new PeeringArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -288,7 +292,9 @@ public virtual async Task> UpdateAsyn try { var response = await _peeringRegisteredAsnRegisteredAsnsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new PeeringArmOperation(Response.FromValue(new PeeringRegisteredAsnResource(Client, response), response.GetRawResponse())); + var uri = _peeringRegisteredAsnRegisteredAsnsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new PeeringArmOperation(Response.FromValue(new PeeringRegisteredAsnResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -334,7 +340,9 @@ public virtual ArmOperation Update(WaitUntil waitU try { var response = _peeringRegisteredAsnRegisteredAsnsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new PeeringArmOperation(Response.FromValue(new PeeringRegisteredAsnResource(Client, response), response.GetRawResponse())); + var uri = _peeringRegisteredAsnRegisteredAsnsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new PeeringArmOperation(Response.FromValue(new PeeringRegisteredAsnResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/peering/Azure.ResourceManager.Peering/src/Generated/PeeringRegisteredPrefixCollection.cs b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/PeeringRegisteredPrefixCollection.cs index a014bb92456e..2b31e660cc15 100644 --- a/sdk/peering/Azure.ResourceManager.Peering/src/Generated/PeeringRegisteredPrefixCollection.cs +++ b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/PeeringRegisteredPrefixCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> CreateO try { var response = await _peeringRegisteredPrefixRegisteredPrefixesRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, registeredPrefixName, data, cancellationToken).ConfigureAwait(false); - var operation = new PeeringArmOperation(Response.FromValue(new PeeringRegisteredPrefixResource(Client, response), response.GetRawResponse())); + var uri = _peeringRegisteredPrefixRegisteredPrefixesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, registeredPrefixName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new PeeringArmOperation(Response.FromValue(new PeeringRegisteredPrefixResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(Wait try { var response = _peeringRegisteredPrefixRegisteredPrefixesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, registeredPrefixName, data, cancellationToken); - var operation = new PeeringArmOperation(Response.FromValue(new PeeringRegisteredPrefixResource(Client, response), response.GetRawResponse())); + var uri = _peeringRegisteredPrefixRegisteredPrefixesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, registeredPrefixName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new PeeringArmOperation(Response.FromValue(new PeeringRegisteredPrefixResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/peering/Azure.ResourceManager.Peering/src/Generated/PeeringRegisteredPrefixResource.cs b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/PeeringRegisteredPrefixResource.cs index aafb54ee4c88..f6726426cbc9 100644 --- a/sdk/peering/Azure.ResourceManager.Peering/src/Generated/PeeringRegisteredPrefixResource.cs +++ b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/PeeringRegisteredPrefixResource.cs @@ -200,7 +200,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _peeringRegisteredPrefixRegisteredPrefixesRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new PeeringArmOperation(response); + var uri = _peeringRegisteredPrefixRegisteredPrefixesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new PeeringArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -242,7 +244,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _peeringRegisteredPrefixRegisteredPrefixesRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new PeeringArmOperation(response); + var uri = _peeringRegisteredPrefixRegisteredPrefixesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new PeeringArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -288,7 +292,9 @@ public virtual async Task> UpdateA try { var response = await _peeringRegisteredPrefixRegisteredPrefixesRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new PeeringArmOperation(Response.FromValue(new PeeringRegisteredPrefixResource(Client, response), response.GetRawResponse())); + var uri = _peeringRegisteredPrefixRegisteredPrefixesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new PeeringArmOperation(Response.FromValue(new PeeringRegisteredPrefixResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -334,7 +340,9 @@ public virtual ArmOperation Update(WaitUntil wa try { var response = _peeringRegisteredPrefixRegisteredPrefixesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new PeeringArmOperation(Response.FromValue(new PeeringRegisteredPrefixResource(Client, response), response.GetRawResponse())); + var uri = _peeringRegisteredPrefixRegisteredPrefixesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new PeeringArmOperation(Response.FromValue(new PeeringRegisteredPrefixResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/peering/Azure.ResourceManager.Peering/src/Generated/PeeringResource.cs b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/PeeringResource.cs index 0b1722e79e46..3c6e09d69a75 100644 --- a/sdk/peering/Azure.ResourceManager.Peering/src/Generated/PeeringResource.cs +++ b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/PeeringResource.cs @@ -349,7 +349,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _peeringRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new PeeringArmOperation(response); + var uri = _peeringRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new PeeringArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -391,7 +393,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _peeringRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); - var operation = new PeeringArmOperation(response); + var uri = _peeringRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new PeeringArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/peering/Azure.ResourceManager.Peering/src/Generated/PeeringServiceCollection.cs b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/PeeringServiceCollection.cs index 5443f585c2c8..d1ae4d8f69dd 100644 --- a/sdk/peering/Azure.ResourceManager.Peering/src/Generated/PeeringServiceCollection.cs +++ b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/PeeringServiceCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> CreateOrUpdateAs try { var response = await _peeringServiceRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, peeringServiceName, data, cancellationToken).ConfigureAwait(false); - var operation = new PeeringArmOperation(Response.FromValue(new PeeringServiceResource(Client, response), response.GetRawResponse())); + var uri = _peeringServiceRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, peeringServiceName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new PeeringArmOperation(Response.FromValue(new PeeringServiceResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -140,7 +142,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wai try { var response = _peeringServiceRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, peeringServiceName, data, cancellationToken); - var operation = new PeeringArmOperation(Response.FromValue(new PeeringServiceResource(Client, response), response.GetRawResponse())); + var uri = _peeringServiceRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, peeringServiceName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new PeeringArmOperation(Response.FromValue(new PeeringServiceResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/peering/Azure.ResourceManager.Peering/src/Generated/PeeringServicePrefixCollection.cs b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/PeeringServicePrefixCollection.cs index 195dd0679106..0d2e67be7f92 100644 --- a/sdk/peering/Azure.ResourceManager.Peering/src/Generated/PeeringServicePrefixCollection.cs +++ b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/PeeringServicePrefixCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> CreateOrUp try { var response = await _peeringServicePrefixPrefixesRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, prefixName, data, cancellationToken).ConfigureAwait(false); - var operation = new PeeringArmOperation(Response.FromValue(new PeeringServicePrefixResource(Client, response), response.GetRawResponse())); + var uri = _peeringServicePrefixPrefixesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, prefixName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new PeeringArmOperation(Response.FromValue(new PeeringServicePrefixResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUnt try { var response = _peeringServicePrefixPrefixesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, prefixName, data, cancellationToken); - var operation = new PeeringArmOperation(Response.FromValue(new PeeringServicePrefixResource(Client, response), response.GetRawResponse())); + var uri = _peeringServicePrefixPrefixesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, prefixName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new PeeringArmOperation(Response.FromValue(new PeeringServicePrefixResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/peering/Azure.ResourceManager.Peering/src/Generated/PeeringServicePrefixResource.cs b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/PeeringServicePrefixResource.cs index 580512adf364..bf60e46fb4cf 100644 --- a/sdk/peering/Azure.ResourceManager.Peering/src/Generated/PeeringServicePrefixResource.cs +++ b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/PeeringServicePrefixResource.cs @@ -202,7 +202,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _peeringServicePrefixPrefixesRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new PeeringArmOperation(response); + var uri = _peeringServicePrefixPrefixesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new PeeringArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -244,7 +246,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _peeringServicePrefixPrefixesRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new PeeringArmOperation(response); + var uri = _peeringServicePrefixPrefixesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new PeeringArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -290,7 +294,9 @@ public virtual async Task> UpdateAsyn try { var response = await _peeringServicePrefixPrefixesRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new PeeringArmOperation(Response.FromValue(new PeeringServicePrefixResource(Client, response), response.GetRawResponse())); + var uri = _peeringServicePrefixPrefixesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new PeeringArmOperation(Response.FromValue(new PeeringServicePrefixResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -336,7 +342,9 @@ public virtual ArmOperation Update(WaitUntil waitU try { var response = _peeringServicePrefixPrefixesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new PeeringArmOperation(Response.FromValue(new PeeringServicePrefixResource(Client, response), response.GetRawResponse())); + var uri = _peeringServicePrefixPrefixesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new PeeringArmOperation(Response.FromValue(new PeeringServicePrefixResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/peering/Azure.ResourceManager.Peering/src/Generated/PeeringServiceResource.cs b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/PeeringServiceResource.cs index 05bf846139ed..8086e1d98c50 100644 --- a/sdk/peering/Azure.ResourceManager.Peering/src/Generated/PeeringServiceResource.cs +++ b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/PeeringServiceResource.cs @@ -342,7 +342,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _peeringServiceRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new PeeringArmOperation(response); + var uri = _peeringServiceRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new PeeringArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -384,7 +386,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _peeringServiceRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); - var operation = new PeeringArmOperation(response); + var uri = _peeringServiceRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new PeeringArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/peering/Azure.ResourceManager.Peering/src/Generated/RestOperations/CdnPeeringPrefixesRestOperations.cs b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/RestOperations/CdnPeeringPrefixesRestOperations.cs index 5596f3484825..cb710e134b7a 100644 --- a/sdk/peering/Azure.ResourceManager.Peering/src/Generated/RestOperations/CdnPeeringPrefixesRestOperations.cs +++ b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/RestOperations/CdnPeeringPrefixesRestOperations.cs @@ -37,6 +37,18 @@ public CdnPeeringPrefixesRestOperations(HttpPipeline pipeline, string applicatio _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string peeringLocation) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Peering/cdnPeeringPrefixes", false); + uri.AppendQuery("peeringLocation", peeringLocation, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string peeringLocation) { var message = _pipeline.CreateMessage(); @@ -109,6 +121,14 @@ public Response List(string subscriptionId, string p } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string peeringLocation) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string peeringLocation) { var message = _pipeline.CreateMessage(); diff --git a/sdk/peering/Azure.ResourceManager.Peering/src/Generated/RestOperations/ConnectionMonitorTestsRestOperations.cs b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/RestOperations/ConnectionMonitorTestsRestOperations.cs index 8a39786d9e8d..ef3ec6f6ffd3 100644 --- a/sdk/peering/Azure.ResourceManager.Peering/src/Generated/RestOperations/ConnectionMonitorTestsRestOperations.cs +++ b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/RestOperations/ConnectionMonitorTestsRestOperations.cs @@ -37,6 +37,22 @@ public ConnectionMonitorTestsRestOperations(HttpPipeline pipeline, string applic _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string peeringServiceName, string connectionMonitorTestName) + { + 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.Peering/peeringServices/", false); + uri.AppendPath(peeringServiceName, true); + uri.AppendPath("/connectionMonitorTests/", false); + uri.AppendPath(connectionMonitorTestName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string peeringServiceName, string connectionMonitorTestName) { var message = _pipeline.CreateMessage(); @@ -125,6 +141,22 @@ public Response Get(string subscriptionId, string res } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string peeringServiceName, string connectionMonitorTestName, ConnectionMonitorTestData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Peering/peeringServices/", false); + uri.AppendPath(peeringServiceName, true); + uri.AppendPath("/connectionMonitorTests/", false); + uri.AppendPath(connectionMonitorTestName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string peeringServiceName, string connectionMonitorTestName, ConnectionMonitorTestData data) { var message = _pipeline.CreateMessage(); @@ -219,6 +251,22 @@ public Response CreateOrUpdate(string subscriptionId, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string peeringServiceName, string connectionMonitorTestName) + { + 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.Peering/peeringServices/", false); + uri.AppendPath(peeringServiceName, true); + uri.AppendPath("/connectionMonitorTests/", false); + uri.AppendPath(connectionMonitorTestName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string peeringServiceName, string connectionMonitorTestName) { var message = _pipeline.CreateMessage(); @@ -295,6 +343,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string p } } + internal RequestUriBuilder CreateListByPeeringServiceRequestUri(string subscriptionId, string resourceGroupName, string peeringServiceName) + { + 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.Peering/peeringServices/", false); + uri.AppendPath(peeringServiceName, true); + uri.AppendPath("/connectionMonitorTests", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByPeeringServiceRequest(string subscriptionId, string resourceGroupName, string peeringServiceName) { var message = _pipeline.CreateMessage(); @@ -374,6 +437,14 @@ public Response ListByPeeringService(string sub } } + internal RequestUriBuilder CreateListByPeeringServiceNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string peeringServiceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByPeeringServiceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string peeringServiceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/peering/Azure.ResourceManager.Peering/src/Generated/RestOperations/LegacyPeeringsRestOperations.cs b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/RestOperations/LegacyPeeringsRestOperations.cs index 9f459f082088..461e29d5051e 100644 --- a/sdk/peering/Azure.ResourceManager.Peering/src/Generated/RestOperations/LegacyPeeringsRestOperations.cs +++ b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/RestOperations/LegacyPeeringsRestOperations.cs @@ -37,6 +37,27 @@ public LegacyPeeringsRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string peeringLocation, LegacyPeeringsKind kind, int? asn, DirectPeeringType? directPeeringType) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Peering/legacyPeerings", false); + uri.AppendQuery("peeringLocation", peeringLocation, true); + uri.AppendQuery("kind", kind.ToString(), true); + if (asn != null) + { + uri.AppendQuery("asn", asn.Value, true); + } + if (directPeeringType != null) + { + uri.AppendQuery("directPeeringType", directPeeringType.Value.ToString(), true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string peeringLocation, LegacyPeeringsKind kind, int? asn, DirectPeeringType? directPeeringType) { var message = _pipeline.CreateMessage(); @@ -124,6 +145,14 @@ public Response List(string subscriptionId, string peeringLoc } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string peeringLocation, LegacyPeeringsKind kind, int? asn, DirectPeeringType? directPeeringType) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string peeringLocation, LegacyPeeringsKind kind, int? asn, DirectPeeringType? directPeeringType) { var message = _pipeline.CreateMessage(); diff --git a/sdk/peering/Azure.ResourceManager.Peering/src/Generated/RestOperations/LookingGlassRestOperations.cs b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/RestOperations/LookingGlassRestOperations.cs index b2b5bd0f7e28..93bc3c2f95de 100644 --- a/sdk/peering/Azure.ResourceManager.Peering/src/Generated/RestOperations/LookingGlassRestOperations.cs +++ b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/RestOperations/LookingGlassRestOperations.cs @@ -37,6 +37,21 @@ public LookingGlassRestOperations(HttpPipeline pipeline, string applicationId, U _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateInvokeRequestUri(string subscriptionId, LookingGlassCommand command, LookingGlassSourceType sourceType, string sourceLocation, string destinationIP) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Peering/lookingGlass", false); + uri.AppendQuery("command", command.ToString(), true); + uri.AppendQuery("sourceType", sourceType.ToString(), true); + uri.AppendQuery("sourceLocation", sourceLocation, true); + uri.AppendQuery("destinationIP", destinationIP, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateInvokeRequest(string subscriptionId, LookingGlassCommand command, LookingGlassSourceType sourceType, string sourceLocation, string destinationIP) { var message = _pipeline.CreateMessage(); diff --git a/sdk/peering/Azure.ResourceManager.Peering/src/Generated/RestOperations/PeerAsnsRestOperations.cs b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/RestOperations/PeerAsnsRestOperations.cs index f6722177e170..21cbf09f351d 100644 --- a/sdk/peering/Azure.ResourceManager.Peering/src/Generated/RestOperations/PeerAsnsRestOperations.cs +++ b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/RestOperations/PeerAsnsRestOperations.cs @@ -37,6 +37,18 @@ public PeerAsnsRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string peerAsnName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Peering/peerAsns/", false); + uri.AppendPath(peerAsnName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string peerAsnName) { var message = _pipeline.CreateMessage(); @@ -113,6 +125,18 @@ public Response Get(string subscriptionId, string peerAsnName, Canc } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string peerAsnName, PeerAsnData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Peering/peerAsns/", false); + uri.AppendPath(peerAsnName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string peerAsnName, PeerAsnData data) { var message = _pipeline.CreateMessage(); @@ -195,6 +219,18 @@ public Response CreateOrUpdate(string subscriptionId, string peerAs } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string peerAsnName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Peering/peerAsns/", false); + uri.AppendPath(peerAsnName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string peerAsnName) { var message = _pipeline.CreateMessage(); @@ -259,6 +295,17 @@ public Response Delete(string subscriptionId, string peerAsnName, CancellationTo } } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Peering/peerAsns", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -326,6 +373,14 @@ public Response ListBySubscription(string subscriptionId, Can } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/peering/Azure.ResourceManager.Peering/src/Generated/RestOperations/PeeringLocationsRestOperations.cs b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/RestOperations/PeeringLocationsRestOperations.cs index 80e7c5cd59e0..9fac3006662f 100644 --- a/sdk/peering/Azure.ResourceManager.Peering/src/Generated/RestOperations/PeeringLocationsRestOperations.cs +++ b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/RestOperations/PeeringLocationsRestOperations.cs @@ -37,6 +37,22 @@ public PeeringLocationsRestOperations(HttpPipeline pipeline, string applicationI _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, PeeringLocationsKind kind, PeeringLocationsDirectPeeringType? directPeeringType) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Peering/peeringLocations", false); + uri.AppendQuery("kind", kind.ToString(), true); + if (directPeeringType != null) + { + uri.AppendQuery("directPeeringType", directPeeringType.Value.ToString(), true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, PeeringLocationsKind kind, PeeringLocationsDirectPeeringType? directPeeringType) { var message = _pipeline.CreateMessage(); @@ -113,6 +129,14 @@ public Response List(string subscriptionId, PeeringLo } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, PeeringLocationsKind kind, PeeringLocationsDirectPeeringType? directPeeringType) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, PeeringLocationsKind kind, PeeringLocationsDirectPeeringType? directPeeringType) { var message = _pipeline.CreateMessage(); diff --git a/sdk/peering/Azure.ResourceManager.Peering/src/Generated/RestOperations/PeeringManagementRestOperations.cs b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/RestOperations/PeeringManagementRestOperations.cs index 6b99e2fafada..e5459dfcdf1f 100644 --- a/sdk/peering/Azure.ResourceManager.Peering/src/Generated/RestOperations/PeeringManagementRestOperations.cs +++ b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/RestOperations/PeeringManagementRestOperations.cs @@ -37,6 +37,17 @@ public PeeringManagementRestOperations(HttpPipeline pipeline, string application _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCheckServiceProviderAvailabilityRequestUri(string subscriptionId, CheckPeeringServiceProviderAvailabilityContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Peering/checkServiceProviderAvailability", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCheckServiceProviderAvailabilityRequest(string subscriptionId, CheckPeeringServiceProviderAvailabilityContent content) { var message = _pipeline.CreateMessage(); diff --git a/sdk/peering/Azure.ResourceManager.Peering/src/Generated/RestOperations/PeeringServiceCountriesRestOperations.cs b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/RestOperations/PeeringServiceCountriesRestOperations.cs index 8f31c2ca7b3e..64aa358e456a 100644 --- a/sdk/peering/Azure.ResourceManager.Peering/src/Generated/RestOperations/PeeringServiceCountriesRestOperations.cs +++ b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/RestOperations/PeeringServiceCountriesRestOperations.cs @@ -37,6 +37,17 @@ public PeeringServiceCountriesRestOperations(HttpPipeline pipeline, string appli _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Peering/peeringServiceCountries", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,14 @@ public Response List(string subscriptionId, Can } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/peering/Azure.ResourceManager.Peering/src/Generated/RestOperations/PeeringServiceLocationsRestOperations.cs b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/RestOperations/PeeringServiceLocationsRestOperations.cs index 597af901bc84..f106f4ecbee7 100644 --- a/sdk/peering/Azure.ResourceManager.Peering/src/Generated/RestOperations/PeeringServiceLocationsRestOperations.cs +++ b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/RestOperations/PeeringServiceLocationsRestOperations.cs @@ -37,6 +37,21 @@ public PeeringServiceLocationsRestOperations(HttpPipeline pipeline, string appli _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string country) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Peering/peeringServiceLocations", false); + if (country != null) + { + uri.AppendQuery("country", country, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string country) { var message = _pipeline.CreateMessage(); @@ -110,6 +125,14 @@ public Response List(string subscriptionId, st } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string country) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string country) { var message = _pipeline.CreateMessage(); diff --git a/sdk/peering/Azure.ResourceManager.Peering/src/Generated/RestOperations/PeeringServiceProvidersRestOperations.cs b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/RestOperations/PeeringServiceProvidersRestOperations.cs index 49e6b046fced..14f082d56fe8 100644 --- a/sdk/peering/Azure.ResourceManager.Peering/src/Generated/RestOperations/PeeringServiceProvidersRestOperations.cs +++ b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/RestOperations/PeeringServiceProvidersRestOperations.cs @@ -37,6 +37,17 @@ public PeeringServiceProvidersRestOperations(HttpPipeline pipeline, string appli _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Peering/peeringServiceProviders", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,14 @@ public Response List(string subscriptionId, Ca } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/peering/Azure.ResourceManager.Peering/src/Generated/RestOperations/PeeringServicesRestOperations.cs b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/RestOperations/PeeringServicesRestOperations.cs index 47bc18182589..bc7ebb9f4f2d 100644 --- a/sdk/peering/Azure.ResourceManager.Peering/src/Generated/RestOperations/PeeringServicesRestOperations.cs +++ b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/RestOperations/PeeringServicesRestOperations.cs @@ -37,6 +37,20 @@ public PeeringServicesRestOperations(HttpPipeline pipeline, string applicationId _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string peeringServiceName) + { + 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.Peering/peeringServices/", false); + uri.AppendPath(peeringServiceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string peeringServiceName) { var message = _pipeline.CreateMessage(); @@ -119,6 +133,20 @@ public Response Get(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string peeringServiceName, PeeringServiceData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Peering/peeringServices/", false); + uri.AppendPath(peeringServiceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string peeringServiceName, PeeringServiceData data) { var message = _pipeline.CreateMessage(); @@ -207,6 +235,20 @@ public Response CreateOrUpdate(string subscriptionId, string } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string peeringServiceName) + { + 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.Peering/peeringServices/", false); + uri.AppendPath(peeringServiceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string peeringServiceName) { var message = _pipeline.CreateMessage(); @@ -277,6 +319,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string p } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string peeringServiceName, PeeringServicePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Peering/peeringServices/", false); + uri.AppendPath(peeringServiceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string peeringServiceName, PeeringServicePatch patch) { var message = _pipeline.CreateMessage(); @@ -363,6 +419,19 @@ public Response Update(string subscriptionId, string resourc } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.Peering/peeringServices", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -436,6 +505,17 @@ public Response ListByResourceGroup(string subscriptio } } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Peering/peeringServices", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -503,6 +583,17 @@ public Response ListBySubscription(string subscription } } + internal RequestUriBuilder CreateInitializeConnectionMonitorRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Peering/initializeConnectionMonitor", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateInitializeConnectionMonitorRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -560,6 +651,14 @@ public Response InitializeConnectionMonitor(string subscriptionId, CancellationT } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -632,6 +731,14 @@ public Response ListByResourceGroupNextPage(string nex } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/peering/Azure.ResourceManager.Peering/src/Generated/RestOperations/PeeringsRestOperations.cs b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/RestOperations/PeeringsRestOperations.cs index c0e34bfcc6bf..7ea9864869e2 100644 --- a/sdk/peering/Azure.ResourceManager.Peering/src/Generated/RestOperations/PeeringsRestOperations.cs +++ b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/RestOperations/PeeringsRestOperations.cs @@ -37,6 +37,20 @@ public PeeringsRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string peeringName) + { + 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.Peering/peerings/", false); + uri.AppendPath(peeringName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string peeringName) { var message = _pipeline.CreateMessage(); @@ -119,6 +133,20 @@ public Response Get(string subscriptionId, string resourceGroupName } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string peeringName, PeeringData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Peering/peerings/", false); + uri.AppendPath(peeringName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string peeringName, PeeringData data) { var message = _pipeline.CreateMessage(); @@ -207,6 +235,20 @@ public Response CreateOrUpdate(string subscriptionId, string resour } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string peeringName) + { + 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.Peering/peerings/", false); + uri.AppendPath(peeringName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string peeringName) { var message = _pipeline.CreateMessage(); @@ -277,6 +319,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string p } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string peeringName, PeeringPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Peering/peerings/", false); + uri.AppendPath(peeringName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string peeringName, PeeringPatch patch) { var message = _pipeline.CreateMessage(); @@ -363,6 +419,19 @@ public Response Update(string subscriptionId, string resourceGroupN } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.Peering/peerings", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -436,6 +505,17 @@ public Response ListByResourceGroup(string subscriptionId, st } } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Peering/peerings", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -503,6 +583,14 @@ public Response ListBySubscription(string subscriptionId, Can } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -575,6 +663,14 @@ public Response ListByResourceGroupNextPage(string nextLink, } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/peering/Azure.ResourceManager.Peering/src/Generated/RestOperations/PrefixesRestOperations.cs b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/RestOperations/PrefixesRestOperations.cs index 08d86c83af4e..bbef157510d2 100644 --- a/sdk/peering/Azure.ResourceManager.Peering/src/Generated/RestOperations/PrefixesRestOperations.cs +++ b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/RestOperations/PrefixesRestOperations.cs @@ -37,6 +37,26 @@ public PrefixesRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string peeringServiceName, string prefixName, string expand) + { + 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.Peering/peeringServices/", false); + uri.AppendPath(peeringServiceName, true); + uri.AppendPath("/prefixes/", false); + uri.AppendPath(prefixName, true); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string peeringServiceName, string prefixName, string expand) { var message = _pipeline.CreateMessage(); @@ -131,6 +151,22 @@ public Response Get(string subscriptionId, string reso } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string peeringServiceName, string prefixName, PeeringServicePrefixData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Peering/peeringServices/", false); + uri.AppendPath(peeringServiceName, true); + uri.AppendPath("/prefixes/", false); + uri.AppendPath(prefixName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string peeringServiceName, string prefixName, PeeringServicePrefixData data) { var message = _pipeline.CreateMessage(); @@ -225,6 +261,22 @@ public Response CreateOrUpdate(string subscriptionId, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string peeringServiceName, string prefixName) + { + 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.Peering/peeringServices/", false); + uri.AppendPath(peeringServiceName, true); + uri.AppendPath("/prefixes/", false); + uri.AppendPath(prefixName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string peeringServiceName, string prefixName) { var message = _pipeline.CreateMessage(); @@ -301,6 +353,25 @@ public Response Delete(string subscriptionId, string resourceGroupName, string p } } + internal RequestUriBuilder CreateListByPeeringServiceRequestUri(string subscriptionId, string resourceGroupName, string peeringServiceName, string expand) + { + 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.Peering/peeringServices/", false); + uri.AppendPath(peeringServiceName, true); + uri.AppendPath("/prefixes", false); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByPeeringServiceRequest(string subscriptionId, string resourceGroupName, string peeringServiceName, string expand) { var message = _pipeline.CreateMessage(); @@ -386,6 +457,14 @@ public Response ListByPeeringService(string subs } } + internal RequestUriBuilder CreateListByPeeringServiceNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string peeringServiceName, string expand) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByPeeringServiceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string peeringServiceName, string expand) { var message = _pipeline.CreateMessage(); diff --git a/sdk/peering/Azure.ResourceManager.Peering/src/Generated/RestOperations/ReceivedRoutesRestOperations.cs b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/RestOperations/ReceivedRoutesRestOperations.cs index 3d97d0d48f95..604ea115e6ee 100644 --- a/sdk/peering/Azure.ResourceManager.Peering/src/Generated/RestOperations/ReceivedRoutesRestOperations.cs +++ b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/RestOperations/ReceivedRoutesRestOperations.cs @@ -37,6 +37,41 @@ public ReceivedRoutesRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByPeeringRequestUri(string subscriptionId, string resourceGroupName, string peeringName, string prefix, string asPath, string originAsValidationState, string rpkiValidationState, string skipToken) + { + 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.Peering/peerings/", false); + uri.AppendPath(peeringName, true); + uri.AppendPath("/receivedRoutes", false); + if (prefix != null) + { + uri.AppendQuery("prefix", prefix, true); + } + if (asPath != null) + { + uri.AppendQuery("asPath", asPath, true); + } + if (originAsValidationState != null) + { + uri.AppendQuery("originAsValidationState", originAsValidationState, true); + } + if (rpkiValidationState != null) + { + uri.AppendQuery("rpkiValidationState", rpkiValidationState, true); + } + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByPeeringRequest(string subscriptionId, string resourceGroupName, string peeringName, string prefix, string asPath, string originAsValidationState, string rpkiValidationState, string skipToken) { var message = _pipeline.CreateMessage(); @@ -146,6 +181,14 @@ public Response ListByPeering(string subscriptio } } + internal RequestUriBuilder CreateListByPeeringNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string peeringName, string prefix, string asPath, string originAsValidationState, string rpkiValidationState, string skipToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByPeeringNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string peeringName, string prefix, string asPath, string originAsValidationState, string rpkiValidationState, string skipToken) { var message = _pipeline.CreateMessage(); diff --git a/sdk/peering/Azure.ResourceManager.Peering/src/Generated/RestOperations/RegisteredAsnsRestOperations.cs b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/RestOperations/RegisteredAsnsRestOperations.cs index 1bc51439299d..f89211af9e5a 100644 --- a/sdk/peering/Azure.ResourceManager.Peering/src/Generated/RestOperations/RegisteredAsnsRestOperations.cs +++ b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/RestOperations/RegisteredAsnsRestOperations.cs @@ -37,6 +37,22 @@ public RegisteredAsnsRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string peeringName, string registeredAsnName) + { + 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.Peering/peerings/", false); + uri.AppendPath(peeringName, true); + uri.AppendPath("/registeredAsns/", false); + uri.AppendPath(registeredAsnName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string peeringName, string registeredAsnName) { var message = _pipeline.CreateMessage(); @@ -125,6 +141,22 @@ public Response Get(string subscriptionId, string reso } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string peeringName, string registeredAsnName, PeeringRegisteredAsnData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Peering/peerings/", false); + uri.AppendPath(peeringName, true); + uri.AppendPath("/registeredAsns/", false); + uri.AppendPath(registeredAsnName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string peeringName, string registeredAsnName, PeeringRegisteredAsnData data) { var message = _pipeline.CreateMessage(); @@ -219,6 +251,22 @@ public Response CreateOrUpdate(string subscriptionId, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string peeringName, string registeredAsnName) + { + 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.Peering/peerings/", false); + uri.AppendPath(peeringName, true); + uri.AppendPath("/registeredAsns/", false); + uri.AppendPath(registeredAsnName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string peeringName, string registeredAsnName) { var message = _pipeline.CreateMessage(); @@ -295,6 +343,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string p } } + internal RequestUriBuilder CreateListByPeeringRequestUri(string subscriptionId, string resourceGroupName, string peeringName) + { + 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.Peering/peerings/", false); + uri.AppendPath(peeringName, true); + uri.AppendPath("/registeredAsns", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByPeeringRequest(string subscriptionId, string resourceGroupName, string peeringName) { var message = _pipeline.CreateMessage(); @@ -374,6 +437,14 @@ public Response ListByPeering(string subscriptio } } + internal RequestUriBuilder CreateListByPeeringNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string peeringName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByPeeringNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string peeringName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/peering/Azure.ResourceManager.Peering/src/Generated/RestOperations/RegisteredPrefixesRestOperations.cs b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/RestOperations/RegisteredPrefixesRestOperations.cs index 51b862b9e563..c9dc8251186f 100644 --- a/sdk/peering/Azure.ResourceManager.Peering/src/Generated/RestOperations/RegisteredPrefixesRestOperations.cs +++ b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/RestOperations/RegisteredPrefixesRestOperations.cs @@ -37,6 +37,22 @@ public RegisteredPrefixesRestOperations(HttpPipeline pipeline, string applicatio _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string peeringName, string registeredPrefixName) + { + 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.Peering/peerings/", false); + uri.AppendPath(peeringName, true); + uri.AppendPath("/registeredPrefixes/", false); + uri.AppendPath(registeredPrefixName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string peeringName, string registeredPrefixName) { var message = _pipeline.CreateMessage(); @@ -125,6 +141,22 @@ public Response Get(string subscriptionId, string r } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string peeringName, string registeredPrefixName, PeeringRegisteredPrefixData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Peering/peerings/", false); + uri.AppendPath(peeringName, true); + uri.AppendPath("/registeredPrefixes/", false); + uri.AppendPath(registeredPrefixName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string peeringName, string registeredPrefixName, PeeringRegisteredPrefixData data) { var message = _pipeline.CreateMessage(); @@ -219,6 +251,22 @@ public Response CreateOrUpdate(string subscriptionI } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string peeringName, string registeredPrefixName) + { + 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.Peering/peerings/", false); + uri.AppendPath(peeringName, true); + uri.AppendPath("/registeredPrefixes/", false); + uri.AppendPath(registeredPrefixName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string peeringName, string registeredPrefixName) { var message = _pipeline.CreateMessage(); @@ -295,6 +343,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string p } } + internal RequestUriBuilder CreateListByPeeringRequestUri(string subscriptionId, string resourceGroupName, string peeringName) + { + 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.Peering/peerings/", false); + uri.AppendPath(peeringName, true); + uri.AppendPath("/registeredPrefixes", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByPeeringRequest(string subscriptionId, string resourceGroupName, string peeringName) { var message = _pipeline.CreateMessage(); @@ -374,6 +437,23 @@ public Response ListByPeering(string subscrip } } + internal RequestUriBuilder CreateValidateRequestUri(string subscriptionId, string resourceGroupName, string peeringName, string registeredPrefixName) + { + 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.Peering/peerings/", false); + uri.AppendPath(peeringName, true); + uri.AppendPath("/registeredPrefixes/", false); + uri.AppendPath(registeredPrefixName, true); + uri.AppendPath("/validate", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateValidateRequest(string subscriptionId, string resourceGroupName, string peeringName, string registeredPrefixName) { var message = _pipeline.CreateMessage(); @@ -459,6 +539,14 @@ public Response Validate(string subscriptionId, str } } + internal RequestUriBuilder CreateListByPeeringNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string peeringName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByPeeringNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string peeringName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/peering/Azure.ResourceManager.Peering/src/Generated/RestOperations/RpUnbilledPrefixesRestOperations.cs b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/RestOperations/RpUnbilledPrefixesRestOperations.cs index f729cf828750..9d59bcc5f2f1 100644 --- a/sdk/peering/Azure.ResourceManager.Peering/src/Generated/RestOperations/RpUnbilledPrefixesRestOperations.cs +++ b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/RestOperations/RpUnbilledPrefixesRestOperations.cs @@ -37,6 +37,25 @@ public RpUnbilledPrefixesRestOperations(HttpPipeline pipeline, string applicatio _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string peeringName, bool? consolidate) + { + 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.Peering/peerings/", false); + uri.AppendPath(peeringName, true); + uri.AppendPath("/rpUnbilledPrefixes", false); + if (consolidate != null) + { + uri.AppendQuery("consolidate", consolidate.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string peeringName, bool? consolidate) { var message = _pipeline.CreateMessage(); @@ -122,6 +141,14 @@ public Response List(string subscriptionId, string r } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string peeringName, bool? consolidate) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string peeringName, bool? consolidate) { var message = _pipeline.CreateMessage(); diff --git a/sdk/playwrighttesting/Azure.ResourceManager.PlaywrightTesting/src/Generated/LongRunningOperation/PlaywrightTestingArmOperation.cs b/sdk/playwrighttesting/Azure.ResourceManager.PlaywrightTesting/src/Generated/LongRunningOperation/PlaywrightTestingArmOperation.cs index fe0efb3e3af6..52f2a210ef5f 100644 --- a/sdk/playwrighttesting/Azure.ResourceManager.PlaywrightTesting/src/Generated/LongRunningOperation/PlaywrightTestingArmOperation.cs +++ b/sdk/playwrighttesting/Azure.ResourceManager.PlaywrightTesting/src/Generated/LongRunningOperation/PlaywrightTestingArmOperation.cs @@ -20,21 +20,24 @@ internal class PlaywrightTestingArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of PlaywrightTestingArmOperation for mocking. protected PlaywrightTestingArmOperation() { } - internal PlaywrightTestingArmOperation(Response response) + internal PlaywrightTestingArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal PlaywrightTestingArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "PlaywrightTestingArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal PlaywrightTestingArmOperation(ClientDiagnostics clientDiagnostics, Http public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/playwrighttesting/Azure.ResourceManager.PlaywrightTesting/src/Generated/LongRunningOperation/PlaywrightTestingArmOperationOfT.cs b/sdk/playwrighttesting/Azure.ResourceManager.PlaywrightTesting/src/Generated/LongRunningOperation/PlaywrightTestingArmOperationOfT.cs index 153205fe9eed..8a81fb14a0f3 100644 --- a/sdk/playwrighttesting/Azure.ResourceManager.PlaywrightTesting/src/Generated/LongRunningOperation/PlaywrightTestingArmOperationOfT.cs +++ b/sdk/playwrighttesting/Azure.ResourceManager.PlaywrightTesting/src/Generated/LongRunningOperation/PlaywrightTestingArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class PlaywrightTestingArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of PlaywrightTestingArmOperation for mocking. protected PlaywrightTestingArmOperation() { } - internal PlaywrightTestingArmOperation(Response response) + internal PlaywrightTestingArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal PlaywrightTestingArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "PlaywrightTestingArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal PlaywrightTestingArmOperation(IOperationSource source, ClientDiagnos public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/playwrighttesting/Azure.ResourceManager.PlaywrightTesting/src/Generated/Models/PlaywrightTestingAccountResource.Serialization.cs b/sdk/playwrighttesting/Azure.ResourceManager.PlaywrightTesting/src/Generated/Models/PlaywrightTestingAccountResource.Serialization.cs new file mode 100644 index 000000000000..399ad25ca279 --- /dev/null +++ b/sdk/playwrighttesting/Azure.ResourceManager.PlaywrightTesting/src/Generated/Models/PlaywrightTestingAccountResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.PlaywrightTesting +{ + public partial class PlaywrightTestingAccountResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + PlaywrightTestingAccountData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + PlaywrightTestingAccountData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/playwrighttesting/Azure.ResourceManager.PlaywrightTesting/src/Generated/Models/PlaywrightTestingQuotaResource.Serialization.cs b/sdk/playwrighttesting/Azure.ResourceManager.PlaywrightTesting/src/Generated/Models/PlaywrightTestingQuotaResource.Serialization.cs new file mode 100644 index 000000000000..6b31aac27592 --- /dev/null +++ b/sdk/playwrighttesting/Azure.ResourceManager.PlaywrightTesting/src/Generated/Models/PlaywrightTestingQuotaResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.PlaywrightTesting +{ + public partial class PlaywrightTestingQuotaResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + PlaywrightTestingQuotaData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + PlaywrightTestingQuotaData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/playwrighttesting/Azure.ResourceManager.PlaywrightTesting/src/Generated/RestOperations/AccountsRestOperations.cs b/sdk/playwrighttesting/Azure.ResourceManager.PlaywrightTesting/src/Generated/RestOperations/AccountsRestOperations.cs index dbe3e448b676..b16610b245eb 100644 --- a/sdk/playwrighttesting/Azure.ResourceManager.PlaywrightTesting/src/Generated/RestOperations/AccountsRestOperations.cs +++ b/sdk/playwrighttesting/Azure.ResourceManager.PlaywrightTesting/src/Generated/RestOperations/AccountsRestOperations.cs @@ -37,6 +37,17 @@ public AccountsRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.AzurePlaywrightService/accounts", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,19 @@ public Response ListBySubscription(string subscriptionId, Can } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.AzurePlaywrightService/accounts", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -177,6 +201,20 @@ public Response ListByResourceGroup(string subscriptionId, st } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.AzurePlaywrightService/accounts/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -259,6 +297,20 @@ public Response Get(string subscriptionId, string } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string name, PlaywrightTestingAccountData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AzurePlaywrightService/accounts/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string name, PlaywrightTestingAccountData data) { var message = _pipeline.CreateMessage(); @@ -337,6 +389,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string name, PlaywrightTestingAccountPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AzurePlaywrightService/accounts/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string name, PlaywrightTestingAccountPatch patch) { var message = _pipeline.CreateMessage(); @@ -423,6 +489,20 @@ public Response Update(string subscriptionId, stri } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.AzurePlaywrightService/accounts/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -495,6 +575,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string n } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -563,6 +651,14 @@ public Response ListBySubscriptionNextPage(string nextLink, s } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/playwrighttesting/Azure.ResourceManager.PlaywrightTesting/src/Generated/RestOperations/QuotasRestOperations.cs b/sdk/playwrighttesting/Azure.ResourceManager.PlaywrightTesting/src/Generated/RestOperations/QuotasRestOperations.cs index 9a285b2040a9..263d3493acaa 100644 --- a/sdk/playwrighttesting/Azure.ResourceManager.PlaywrightTesting/src/Generated/RestOperations/QuotasRestOperations.cs +++ b/sdk/playwrighttesting/Azure.ResourceManager.PlaywrightTesting/src/Generated/RestOperations/QuotasRestOperations.cs @@ -37,6 +37,19 @@ public QuotasRestOperations(HttpPipeline pipeline, string applicationId, Uri end _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId, AzureLocation location) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.AzurePlaywrightService/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/quotas", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId, AzureLocation location) { var message = _pipeline.CreateMessage(); @@ -108,6 +121,20 @@ public Response ListBySubscription(string subscriptionId, Azure } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, AzureLocation location, PlaywrightTestingQuotaName name) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.AzurePlaywrightService/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/quotas/", false); + uri.AppendPath(name.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, AzureLocation location, PlaywrightTestingQuotaName name) { var message = _pipeline.CreateMessage(); @@ -186,6 +213,14 @@ public Response Get(string subscriptionId, AzureLoca } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId, AzureLocation location) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId, AzureLocation location) { var message = _pipeline.CreateMessage(); diff --git a/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/LongRunningOperation/PolicyInsightsArmOperation.cs b/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/LongRunningOperation/PolicyInsightsArmOperation.cs index 404c6874d30c..7a239ba51a5e 100644 --- a/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/LongRunningOperation/PolicyInsightsArmOperation.cs +++ b/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/LongRunningOperation/PolicyInsightsArmOperation.cs @@ -20,21 +20,24 @@ internal class PolicyInsightsArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of PolicyInsightsArmOperation for mocking. protected PolicyInsightsArmOperation() { } - internal PolicyInsightsArmOperation(Response response) + internal PolicyInsightsArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal PolicyInsightsArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "PolicyInsightsArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal PolicyInsightsArmOperation(ClientDiagnostics clientDiagnostics, HttpPip public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/LongRunningOperation/PolicyInsightsArmOperationOfT.cs b/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/LongRunningOperation/PolicyInsightsArmOperationOfT.cs index 18e63a8effa3..bf87e7710800 100644 --- a/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/LongRunningOperation/PolicyInsightsArmOperationOfT.cs +++ b/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/LongRunningOperation/PolicyInsightsArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class PolicyInsightsArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of PolicyInsightsArmOperation for mocking. protected PolicyInsightsArmOperation() { } - internal PolicyInsightsArmOperation(Response response) + internal PolicyInsightsArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal PolicyInsightsArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "PolicyInsightsArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal PolicyInsightsArmOperation(IOperationSource source, ClientDiagnostic public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/Models/PolicyAttestationResource.Serialization.cs b/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/Models/PolicyAttestationResource.Serialization.cs new file mode 100644 index 000000000000..02095f84b11d --- /dev/null +++ b/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/Models/PolicyAttestationResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.PolicyInsights +{ + public partial class PolicyAttestationResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + PolicyAttestationData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + PolicyAttestationData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/Models/PolicyMetadataResource.Serialization.cs b/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/Models/PolicyMetadataResource.Serialization.cs new file mode 100644 index 000000000000..c9fc61ffe012 --- /dev/null +++ b/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/Models/PolicyMetadataResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.PolicyInsights +{ + public partial class PolicyMetadataResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + PolicyMetadataData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + PolicyMetadataData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/Models/PolicyRemediationResource.Serialization.cs b/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/Models/PolicyRemediationResource.Serialization.cs new file mode 100644 index 000000000000..63b7f43dc6e8 --- /dev/null +++ b/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/Models/PolicyRemediationResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.PolicyInsights +{ + public partial class PolicyRemediationResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + PolicyRemediationData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + PolicyRemediationData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/PolicyAttestationResource.cs b/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/PolicyAttestationResource.cs index 6671854aeb77..b1223ae525c7 100644 --- a/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/PolicyAttestationResource.cs +++ b/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/PolicyAttestationResource.cs @@ -198,7 +198,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _policyAttestationAttestationsRestClient.DeleteAtResourceAsync(Id.Parent, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new PolicyInsightsArmOperation(response); + var uri = _policyAttestationAttestationsRestClient.CreateDeleteAtResourceRequestUri(Id.Parent, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new PolicyInsightsArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -240,7 +242,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _policyAttestationAttestationsRestClient.DeleteAtResource(Id.Parent, Id.Name, cancellationToken); - var operation = new PolicyInsightsArmOperation(response); + var uri = _policyAttestationAttestationsRestClient.CreateDeleteAtResourceRequestUri(Id.Parent, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new PolicyInsightsArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/PolicyRemediationCollection.cs b/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/PolicyRemediationCollection.cs index 26800c58eb29..fae6bb161888 100644 --- a/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/PolicyRemediationCollection.cs +++ b/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/PolicyRemediationCollection.cs @@ -81,7 +81,9 @@ public virtual async Task> CreateOrUpdat try { var response = await _policyRemediationRemediationsRestClient.CreateOrUpdateAtResourceAsync(Id, remediationName, data, cancellationToken).ConfigureAwait(false); - var operation = new PolicyInsightsArmOperation(Response.FromValue(new PolicyRemediationResource(Client, response), response.GetRawResponse())); + var uri = _policyRemediationRemediationsRestClient.CreateCreateOrUpdateAtResourceRequestUri(Id, remediationName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new PolicyInsightsArmOperation(Response.FromValue(new PolicyRemediationResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -130,7 +132,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil try { var response = _policyRemediationRemediationsRestClient.CreateOrUpdateAtResource(Id, remediationName, data, cancellationToken); - var operation = new PolicyInsightsArmOperation(Response.FromValue(new PolicyRemediationResource(Client, response), response.GetRawResponse())); + var uri = _policyRemediationRemediationsRestClient.CreateCreateOrUpdateAtResourceRequestUri(Id, remediationName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new PolicyInsightsArmOperation(Response.FromValue(new PolicyRemediationResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/PolicyRemediationResource.cs b/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/PolicyRemediationResource.cs index ea54c52b5fa7..876e67c5cda0 100644 --- a/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/PolicyRemediationResource.cs +++ b/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/PolicyRemediationResource.cs @@ -200,7 +200,9 @@ public virtual async Task> DeleteAsync(W try { var response = await _policyRemediationRemediationsRestClient.DeleteAtResourceAsync(Id.Parent, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new PolicyInsightsArmOperation(Response.FromValue(new PolicyRemediationResource(Client, response), response.GetRawResponse())); + var uri = _policyRemediationRemediationsRestClient.CreateDeleteAtResourceRequestUri(Id.Parent, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new PolicyInsightsArmOperation(Response.FromValue(new PolicyRemediationResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -242,7 +244,9 @@ public virtual ArmOperation Delete(WaitUntil waitUnti try { var response = _policyRemediationRemediationsRestClient.DeleteAtResource(Id.Parent, Id.Name, cancellationToken); - var operation = new PolicyInsightsArmOperation(Response.FromValue(new PolicyRemediationResource(Client, response), response.GetRawResponse())); + var uri = _policyRemediationRemediationsRestClient.CreateDeleteAtResourceRequestUri(Id.Parent, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new PolicyInsightsArmOperation(Response.FromValue(new PolicyRemediationResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -288,7 +292,9 @@ public virtual async Task> UpdateAsync(W try { var response = await _policyRemediationRemediationsRestClient.CreateOrUpdateAtResourceAsync(Id.Parent, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new PolicyInsightsArmOperation(Response.FromValue(new PolicyRemediationResource(Client, response), response.GetRawResponse())); + var uri = _policyRemediationRemediationsRestClient.CreateCreateOrUpdateAtResourceRequestUri(Id.Parent, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new PolicyInsightsArmOperation(Response.FromValue(new PolicyRemediationResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -334,7 +340,9 @@ public virtual ArmOperation Update(WaitUntil waitUnti try { var response = _policyRemediationRemediationsRestClient.CreateOrUpdateAtResource(Id.Parent, Id.Name, data, cancellationToken); - var operation = new PolicyInsightsArmOperation(Response.FromValue(new PolicyRemediationResource(Client, response), response.GetRawResponse())); + var uri = _policyRemediationRemediationsRestClient.CreateCreateOrUpdateAtResourceRequestUri(Id.Parent, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new PolicyInsightsArmOperation(Response.FromValue(new PolicyRemediationResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/RestOperations/AttestationsRestOperations.cs b/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/RestOperations/AttestationsRestOperations.cs index 67bc5bbcee05..8132f545333c 100644 --- a/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/RestOperations/AttestationsRestOperations.cs +++ b/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/RestOperations/AttestationsRestOperations.cs @@ -37,6 +37,25 @@ public AttestationsRestOperations(HttpPipeline pipeline, string applicationId, U _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListForResourceRequestUri(string resourceId, PolicyQuerySettings policyQuerySettings) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceId, false); + uri.AppendPath("/providers/Microsoft.PolicyInsights/attestations", false); + if (policyQuerySettings?.Top != null) + { + uri.AppendQuery("$top", policyQuerySettings.Top.Value, true); + } + if (policyQuerySettings?.Filter != null) + { + uri.AppendQuery("$filter", policyQuerySettings.Filter, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListForResourceRequest(string resourceId, PolicyQuerySettings policyQuerySettings) { var message = _pipeline.CreateMessage(); @@ -112,6 +131,18 @@ public Response ListForResource(string resourceId, Policy } } + internal RequestUriBuilder CreateCreateOrUpdateAtResourceRequestUri(string resourceId, string attestationName, PolicyAttestationData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceId, false); + uri.AppendPath("/providers/Microsoft.PolicyInsights/attestations/", false); + uri.AppendPath(attestationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateAtResourceRequest(string resourceId, string attestationName, PolicyAttestationData data) { var message = _pipeline.CreateMessage(); @@ -184,6 +215,18 @@ public Response CreateOrUpdateAtResource(string resourceId, string attestationNa } } + internal RequestUriBuilder CreateGetAtResourceRequestUri(string resourceId, string attestationName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceId, false); + uri.AppendPath("/providers/Microsoft.PolicyInsights/attestations/", false); + uri.AppendPath(attestationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetAtResourceRequest(string resourceId, string attestationName) { var message = _pipeline.CreateMessage(); @@ -260,6 +303,18 @@ public Response GetAtResource(string resourceId, string a } } + internal RequestUriBuilder CreateDeleteAtResourceRequestUri(string resourceId, string attestationName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceId, false); + uri.AppendPath("/providers/Microsoft.PolicyInsights/attestations/", false); + uri.AppendPath(attestationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteAtResourceRequest(string resourceId, string attestationName) { var message = _pipeline.CreateMessage(); @@ -324,6 +379,14 @@ public Response DeleteAtResource(string resourceId, string attestationName, Canc } } + internal RequestUriBuilder CreateListForResourceNextPageRequestUri(string nextLink, string resourceId, PolicyQuerySettings policyQuerySettings) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListForResourceNextPageRequest(string nextLink, string resourceId, PolicyQuerySettings policyQuerySettings) { var message = _pipeline.CreateMessage(); diff --git a/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/RestOperations/PolicyEventsRestOperations.cs b/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/RestOperations/PolicyEventsRestOperations.cs index 2a57092a274c..10f731b1d96f 100644 --- a/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/RestOperations/PolicyEventsRestOperations.cs +++ b/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/RestOperations/PolicyEventsRestOperations.cs @@ -37,6 +37,53 @@ public PolicyEventsRestOperations(HttpPipeline pipeline, string applicationId, U _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListQueryResultsForManagementGroupRequestUri(string managementGroupName, PolicyEventType policyEventType, PolicyQuerySettings policyQuerySettings) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/", false); + uri.AppendPath("Microsoft.Management", true); + uri.AppendPath("/managementGroups/", false); + uri.AppendPath(managementGroupName, true); + uri.AppendPath("/providers/Microsoft.PolicyInsights/policyEvents/", false); + uri.AppendPath(policyEventType.ToString(), true); + uri.AppendPath("/queryResults", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (policyQuerySettings?.Top != null) + { + uri.AppendQuery("$top", policyQuerySettings.Top.Value, true); + } + if (policyQuerySettings?.OrderBy != null) + { + uri.AppendQuery("$orderby", policyQuerySettings.OrderBy, true); + } + if (policyQuerySettings?.Select != null) + { + uri.AppendQuery("$select", policyQuerySettings.Select, true); + } + if (policyQuerySettings?.From != null) + { + uri.AppendQuery("$from", policyQuerySettings.From.Value, "O", true); + } + if (policyQuerySettings?.To != null) + { + uri.AppendQuery("$to", policyQuerySettings.To.Value, "O", true); + } + if (policyQuerySettings?.Filter != null) + { + uri.AppendQuery("$filter", policyQuerySettings.Filter, true); + } + if (policyQuerySettings?.Apply != null) + { + uri.AppendQuery("$apply", policyQuerySettings.Apply, true); + } + if (policyQuerySettings?.SkipToken != null) + { + uri.AppendQuery("$skiptoken", policyQuerySettings.SkipToken, true); + } + return uri; + } + internal HttpMessage CreateListQueryResultsForManagementGroupRequest(string managementGroupName, PolicyEventType policyEventType, PolicyQuerySettings policyQuerySettings) { var message = _pipeline.CreateMessage(); @@ -144,6 +191,51 @@ public Response ListQueryResultsForManagementGroup(str } } + internal RequestUriBuilder CreateListQueryResultsForSubscriptionRequestUri(string subscriptionId, PolicyEventType policyEventType, PolicyQuerySettings policyQuerySettings) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.PolicyInsights/policyEvents/", false); + uri.AppendPath(policyEventType.ToString(), true); + uri.AppendPath("/queryResults", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (policyQuerySettings?.Top != null) + { + uri.AppendQuery("$top", policyQuerySettings.Top.Value, true); + } + if (policyQuerySettings?.OrderBy != null) + { + uri.AppendQuery("$orderby", policyQuerySettings.OrderBy, true); + } + if (policyQuerySettings?.Select != null) + { + uri.AppendQuery("$select", policyQuerySettings.Select, true); + } + if (policyQuerySettings?.From != null) + { + uri.AppendQuery("$from", policyQuerySettings.From.Value, "O", true); + } + if (policyQuerySettings?.To != null) + { + uri.AppendQuery("$to", policyQuerySettings.To.Value, "O", true); + } + if (policyQuerySettings?.Filter != null) + { + uri.AppendQuery("$filter", policyQuerySettings.Filter, true); + } + if (policyQuerySettings?.Apply != null) + { + uri.AppendQuery("$apply", policyQuerySettings.Apply, true); + } + if (policyQuerySettings?.SkipToken != null) + { + uri.AppendQuery("$skiptoken", policyQuerySettings.SkipToken, true); + } + return uri; + } + internal HttpMessage CreateListQueryResultsForSubscriptionRequest(string subscriptionId, PolicyEventType policyEventType, PolicyQuerySettings policyQuerySettings) { var message = _pipeline.CreateMessage(); @@ -249,6 +341,53 @@ public Response ListQueryResultsForSubscription(string } } + internal RequestUriBuilder CreateListQueryResultsForResourceGroupRequestUri(string subscriptionId, string resourceGroupName, PolicyEventType policyEventType, PolicyQuerySettings policyQuerySettings) + { + 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.PolicyInsights/policyEvents/", false); + uri.AppendPath(policyEventType.ToString(), true); + uri.AppendPath("/queryResults", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (policyQuerySettings?.Top != null) + { + uri.AppendQuery("$top", policyQuerySettings.Top.Value, true); + } + if (policyQuerySettings?.OrderBy != null) + { + uri.AppendQuery("$orderby", policyQuerySettings.OrderBy, true); + } + if (policyQuerySettings?.Select != null) + { + uri.AppendQuery("$select", policyQuerySettings.Select, true); + } + if (policyQuerySettings?.From != null) + { + uri.AppendQuery("$from", policyQuerySettings.From.Value, "O", true); + } + if (policyQuerySettings?.To != null) + { + uri.AppendQuery("$to", policyQuerySettings.To.Value, "O", true); + } + if (policyQuerySettings?.Filter != null) + { + uri.AppendQuery("$filter", policyQuerySettings.Filter, true); + } + if (policyQuerySettings?.Apply != null) + { + uri.AppendQuery("$apply", policyQuerySettings.Apply, true); + } + if (policyQuerySettings?.SkipToken != null) + { + uri.AppendQuery("$skiptoken", policyQuerySettings.SkipToken, true); + } + return uri; + } + internal HttpMessage CreateListQueryResultsForResourceGroupRequest(string subscriptionId, string resourceGroupName, PolicyEventType policyEventType, PolicyQuerySettings policyQuerySettings) { var message = _pipeline.CreateMessage(); @@ -360,6 +499,55 @@ public Response ListQueryResultsForResourceGroup(strin } } + internal RequestUriBuilder CreateListQueryResultsForResourceRequestUri(string resourceId, PolicyEventType policyEventType, PolicyQuerySettings policyQuerySettings) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceId, false); + uri.AppendPath("/providers/Microsoft.PolicyInsights/policyEvents/", false); + uri.AppendPath(policyEventType.ToString(), true); + uri.AppendPath("/queryResults", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (policyQuerySettings?.Top != null) + { + uri.AppendQuery("$top", policyQuerySettings.Top.Value, true); + } + if (policyQuerySettings?.OrderBy != null) + { + uri.AppendQuery("$orderby", policyQuerySettings.OrderBy, true); + } + if (policyQuerySettings?.Select != null) + { + uri.AppendQuery("$select", policyQuerySettings.Select, true); + } + if (policyQuerySettings?.From != null) + { + uri.AppendQuery("$from", policyQuerySettings.From.Value, "O", true); + } + if (policyQuerySettings?.To != null) + { + uri.AppendQuery("$to", policyQuerySettings.To.Value, "O", true); + } + if (policyQuerySettings?.Filter != null) + { + uri.AppendQuery("$filter", policyQuerySettings.Filter, true); + } + if (policyQuerySettings?.Apply != null) + { + uri.AppendQuery("$apply", policyQuerySettings.Apply, true); + } + if (policyQuerySettings?.Expand != null) + { + uri.AppendQuery("$expand", policyQuerySettings.Expand, true); + } + if (policyQuerySettings?.SkipToken != null) + { + uri.AppendQuery("$skiptoken", policyQuerySettings.SkipToken, true); + } + return uri; + } + internal HttpMessage CreateListQueryResultsForResourceRequest(string resourceId, PolicyEventType policyEventType, PolicyQuerySettings policyQuerySettings) { var message = _pipeline.CreateMessage(); @@ -467,6 +655,55 @@ public Response ListQueryResultsForResource(string res } } + internal RequestUriBuilder CreateListQueryResultsForPolicySetDefinitionRequestUri(string subscriptionId, string policySetDefinitionName, PolicyEventType policyEventType, PolicyQuerySettings policyQuerySettings) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/", false); + uri.AppendPath("Microsoft.Authorization", true); + uri.AppendPath("/policySetDefinitions/", false); + uri.AppendPath(policySetDefinitionName, true); + uri.AppendPath("/providers/Microsoft.PolicyInsights/policyEvents/", false); + uri.AppendPath(policyEventType.ToString(), true); + uri.AppendPath("/queryResults", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (policyQuerySettings?.Top != null) + { + uri.AppendQuery("$top", policyQuerySettings.Top.Value, true); + } + if (policyQuerySettings?.OrderBy != null) + { + uri.AppendQuery("$orderby", policyQuerySettings.OrderBy, true); + } + if (policyQuerySettings?.Select != null) + { + uri.AppendQuery("$select", policyQuerySettings.Select, true); + } + if (policyQuerySettings?.From != null) + { + uri.AppendQuery("$from", policyQuerySettings.From.Value, "O", true); + } + if (policyQuerySettings?.To != null) + { + uri.AppendQuery("$to", policyQuerySettings.To.Value, "O", true); + } + if (policyQuerySettings?.Filter != null) + { + uri.AppendQuery("$filter", policyQuerySettings.Filter, true); + } + if (policyQuerySettings?.Apply != null) + { + uri.AppendQuery("$apply", policyQuerySettings.Apply, true); + } + if (policyQuerySettings?.SkipToken != null) + { + uri.AppendQuery("$skiptoken", policyQuerySettings.SkipToken, true); + } + return uri; + } + internal HttpMessage CreateListQueryResultsForPolicySetDefinitionRequest(string subscriptionId, string policySetDefinitionName, PolicyEventType policyEventType, PolicyQuerySettings policyQuerySettings) { var message = _pipeline.CreateMessage(); @@ -580,6 +817,55 @@ public Response ListQueryResultsForPolicySetDefinition } } + internal RequestUriBuilder CreateListQueryResultsForPolicyDefinitionRequestUri(string subscriptionId, string policyDefinitionName, PolicyEventType policyEventType, PolicyQuerySettings policyQuerySettings) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/", false); + uri.AppendPath("Microsoft.Authorization", true); + uri.AppendPath("/policyDefinitions/", false); + uri.AppendPath(policyDefinitionName, true); + uri.AppendPath("/providers/Microsoft.PolicyInsights/policyEvents/", false); + uri.AppendPath(policyEventType.ToString(), true); + uri.AppendPath("/queryResults", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (policyQuerySettings?.Top != null) + { + uri.AppendQuery("$top", policyQuerySettings.Top.Value, true); + } + if (policyQuerySettings?.OrderBy != null) + { + uri.AppendQuery("$orderby", policyQuerySettings.OrderBy, true); + } + if (policyQuerySettings?.Select != null) + { + uri.AppendQuery("$select", policyQuerySettings.Select, true); + } + if (policyQuerySettings?.From != null) + { + uri.AppendQuery("$from", policyQuerySettings.From.Value, "O", true); + } + if (policyQuerySettings?.To != null) + { + uri.AppendQuery("$to", policyQuerySettings.To.Value, "O", true); + } + if (policyQuerySettings?.Filter != null) + { + uri.AppendQuery("$filter", policyQuerySettings.Filter, true); + } + if (policyQuerySettings?.Apply != null) + { + uri.AppendQuery("$apply", policyQuerySettings.Apply, true); + } + if (policyQuerySettings?.SkipToken != null) + { + uri.AppendQuery("$skiptoken", policyQuerySettings.SkipToken, true); + } + return uri; + } + internal HttpMessage CreateListQueryResultsForPolicyDefinitionRequest(string subscriptionId, string policyDefinitionName, PolicyEventType policyEventType, PolicyQuerySettings policyQuerySettings) { var message = _pipeline.CreateMessage(); @@ -693,6 +979,55 @@ public Response ListQueryResultsForPolicyDefinition(st } } + internal RequestUriBuilder CreateListQueryResultsForSubscriptionLevelPolicyAssignmentRequestUri(string subscriptionId, string policyAssignmentName, PolicyEventType policyEventType, PolicyQuerySettings policyQuerySettings) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/", false); + uri.AppendPath("Microsoft.Authorization", true); + uri.AppendPath("/policyAssignments/", false); + uri.AppendPath(policyAssignmentName, true); + uri.AppendPath("/providers/Microsoft.PolicyInsights/policyEvents/", false); + uri.AppendPath(policyEventType.ToString(), true); + uri.AppendPath("/queryResults", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (policyQuerySettings?.Top != null) + { + uri.AppendQuery("$top", policyQuerySettings.Top.Value, true); + } + if (policyQuerySettings?.OrderBy != null) + { + uri.AppendQuery("$orderby", policyQuerySettings.OrderBy, true); + } + if (policyQuerySettings?.Select != null) + { + uri.AppendQuery("$select", policyQuerySettings.Select, true); + } + if (policyQuerySettings?.From != null) + { + uri.AppendQuery("$from", policyQuerySettings.From.Value, "O", true); + } + if (policyQuerySettings?.To != null) + { + uri.AppendQuery("$to", policyQuerySettings.To.Value, "O", true); + } + if (policyQuerySettings?.Filter != null) + { + uri.AppendQuery("$filter", policyQuerySettings.Filter, true); + } + if (policyQuerySettings?.Apply != null) + { + uri.AppendQuery("$apply", policyQuerySettings.Apply, true); + } + if (policyQuerySettings?.SkipToken != null) + { + uri.AppendQuery("$skiptoken", policyQuerySettings.SkipToken, true); + } + return uri; + } + internal HttpMessage CreateListQueryResultsForSubscriptionLevelPolicyAssignmentRequest(string subscriptionId, string policyAssignmentName, PolicyEventType policyEventType, PolicyQuerySettings policyQuerySettings) { var message = _pipeline.CreateMessage(); @@ -806,6 +1141,57 @@ public Response ListQueryResultsForSubscriptionLevelPo } } + internal RequestUriBuilder CreateListQueryResultsForResourceGroupLevelPolicyAssignmentRequestUri(string subscriptionId, string resourceGroupName, string policyAssignmentName, PolicyEventType policyEventType, PolicyQuerySettings policyQuerySettings) + { + 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/", false); + uri.AppendPath("Microsoft.Authorization", true); + uri.AppendPath("/policyAssignments/", false); + uri.AppendPath(policyAssignmentName, true); + uri.AppendPath("/providers/Microsoft.PolicyInsights/policyEvents/", false); + uri.AppendPath(policyEventType.ToString(), true); + uri.AppendPath("/queryResults", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (policyQuerySettings?.Top != null) + { + uri.AppendQuery("$top", policyQuerySettings.Top.Value, true); + } + if (policyQuerySettings?.OrderBy != null) + { + uri.AppendQuery("$orderby", policyQuerySettings.OrderBy, true); + } + if (policyQuerySettings?.Select != null) + { + uri.AppendQuery("$select", policyQuerySettings.Select, true); + } + if (policyQuerySettings?.From != null) + { + uri.AppendQuery("$from", policyQuerySettings.From.Value, "O", true); + } + if (policyQuerySettings?.To != null) + { + uri.AppendQuery("$to", policyQuerySettings.To.Value, "O", true); + } + if (policyQuerySettings?.Filter != null) + { + uri.AppendQuery("$filter", policyQuerySettings.Filter, true); + } + if (policyQuerySettings?.Apply != null) + { + uri.AppendQuery("$apply", policyQuerySettings.Apply, true); + } + if (policyQuerySettings?.SkipToken != null) + { + uri.AppendQuery("$skiptoken", policyQuerySettings.SkipToken, true); + } + return uri; + } + internal HttpMessage CreateListQueryResultsForResourceGroupLevelPolicyAssignmentRequest(string subscriptionId, string resourceGroupName, string policyAssignmentName, PolicyEventType policyEventType, PolicyQuerySettings policyQuerySettings) { var message = _pipeline.CreateMessage(); @@ -925,6 +1311,14 @@ public Response ListQueryResultsForResourceGroupLevelP } } + internal RequestUriBuilder CreateListQueryResultsForManagementGroupNextPageRequestUri(string nextLink, string managementGroupName, PolicyEventType policyEventType, PolicyQuerySettings policyQuerySettings) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListQueryResultsForManagementGroupNextPageRequest(string nextLink, string managementGroupName, PolicyEventType policyEventType, PolicyQuerySettings policyQuerySettings) { var message = _pipeline.CreateMessage(); @@ -997,6 +1391,14 @@ public Response ListQueryResultsForManagementGroupNext } } + internal RequestUriBuilder CreateListQueryResultsForSubscriptionNextPageRequestUri(string nextLink, string subscriptionId, PolicyEventType policyEventType, PolicyQuerySettings policyQuerySettings) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListQueryResultsForSubscriptionNextPageRequest(string nextLink, string subscriptionId, PolicyEventType policyEventType, PolicyQuerySettings policyQuerySettings) { var message = _pipeline.CreateMessage(); @@ -1069,6 +1471,14 @@ public Response ListQueryResultsForSubscriptionNextPag } } + internal RequestUriBuilder CreateListQueryResultsForResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, PolicyEventType policyEventType, PolicyQuerySettings policyQuerySettings) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListQueryResultsForResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, PolicyEventType policyEventType, PolicyQuerySettings policyQuerySettings) { var message = _pipeline.CreateMessage(); @@ -1145,6 +1555,14 @@ public Response ListQueryResultsForResourceGroupNextPa } } + internal RequestUriBuilder CreateListQueryResultsForResourceNextPageRequestUri(string nextLink, string resourceId, PolicyEventType policyEventType, PolicyQuerySettings policyQuerySettings) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListQueryResultsForResourceNextPageRequest(string nextLink, string resourceId, PolicyEventType policyEventType, PolicyQuerySettings policyQuerySettings) { var message = _pipeline.CreateMessage(); @@ -1215,6 +1633,14 @@ public Response ListQueryResultsForResourceNextPage(st } } + internal RequestUriBuilder CreateListQueryResultsForPolicySetDefinitionNextPageRequestUri(string nextLink, string subscriptionId, string policySetDefinitionName, PolicyEventType policyEventType, PolicyQuerySettings policyQuerySettings) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListQueryResultsForPolicySetDefinitionNextPageRequest(string nextLink, string subscriptionId, string policySetDefinitionName, PolicyEventType policyEventType, PolicyQuerySettings policyQuerySettings) { var message = _pipeline.CreateMessage(); @@ -1291,6 +1717,14 @@ public Response ListQueryResultsForPolicySetDefinition } } + internal RequestUriBuilder CreateListQueryResultsForPolicyDefinitionNextPageRequestUri(string nextLink, string subscriptionId, string policyDefinitionName, PolicyEventType policyEventType, PolicyQuerySettings policyQuerySettings) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListQueryResultsForPolicyDefinitionNextPageRequest(string nextLink, string subscriptionId, string policyDefinitionName, PolicyEventType policyEventType, PolicyQuerySettings policyQuerySettings) { var message = _pipeline.CreateMessage(); @@ -1367,6 +1801,14 @@ public Response ListQueryResultsForPolicyDefinitionNex } } + internal RequestUriBuilder CreateListQueryResultsForSubscriptionLevelPolicyAssignmentNextPageRequestUri(string nextLink, string subscriptionId, string policyAssignmentName, PolicyEventType policyEventType, PolicyQuerySettings policyQuerySettings) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListQueryResultsForSubscriptionLevelPolicyAssignmentNextPageRequest(string nextLink, string subscriptionId, string policyAssignmentName, PolicyEventType policyEventType, PolicyQuerySettings policyQuerySettings) { var message = _pipeline.CreateMessage(); @@ -1443,6 +1885,14 @@ public Response ListQueryResultsForSubscriptionLevelPo } } + internal RequestUriBuilder CreateListQueryResultsForResourceGroupLevelPolicyAssignmentNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string policyAssignmentName, PolicyEventType policyEventType, PolicyQuerySettings policyQuerySettings) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListQueryResultsForResourceGroupLevelPolicyAssignmentNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string policyAssignmentName, PolicyEventType policyEventType, PolicyQuerySettings policyQuerySettings) { var message = _pipeline.CreateMessage(); diff --git a/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/RestOperations/PolicyMetadataRestOperations.cs b/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/RestOperations/PolicyMetadataRestOperations.cs index 1d81944360e7..846b132e1ac9 100644 --- a/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/RestOperations/PolicyMetadataRestOperations.cs +++ b/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/RestOperations/PolicyMetadataRestOperations.cs @@ -37,6 +37,16 @@ public PolicyMetadataRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetResourceRequestUri(string resourceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.PolicyInsights/policyMetadata/", false); + uri.AppendPath(resourceName, false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetResourceRequest(string resourceName) { var message = _pipeline.CreateMessage(); @@ -105,6 +115,19 @@ public Response GetResource(string resourceName, Cancellatio } } + internal RequestUriBuilder CreateListRequestUri(PolicyQuerySettings policyQuerySettings) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.PolicyInsights/policyMetadata", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (policyQuerySettings?.Top != null) + { + uri.AppendQuery("$top", policyQuerySettings.Top.Value, true); + } + return uri; + } + internal HttpMessage CreateListRequest(PolicyQuerySettings policyQuerySettings) { var message = _pipeline.CreateMessage(); @@ -166,6 +189,14 @@ internal HttpMessage CreateListRequest(PolicyQuerySettings policyQuerySettings) } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, PolicyQuerySettings policyQuerySettings) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, PolicyQuerySettings policyQuerySettings) { var message = _pipeline.CreateMessage(); diff --git a/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/RestOperations/PolicyRestrictionsRestOperations.cs b/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/RestOperations/PolicyRestrictionsRestOperations.cs index 9a7ccee0da2b..215971af0d2f 100644 --- a/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/RestOperations/PolicyRestrictionsRestOperations.cs +++ b/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/RestOperations/PolicyRestrictionsRestOperations.cs @@ -37,6 +37,17 @@ public PolicyRestrictionsRestOperations(HttpPipeline pipeline, string applicatio _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCheckAtSubscriptionScopeRequestUri(string subscriptionId, CheckPolicyRestrictionsContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.PolicyInsights/checkPolicyRestrictions", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCheckAtSubscriptionScopeRequest(string subscriptionId, CheckPolicyRestrictionsContent content) { var message = _pipeline.CreateMessage(); @@ -112,6 +123,19 @@ public Response CheckAtSubscriptionScope(string s } } + internal RequestUriBuilder CreateCheckAtResourceGroupScopeRequestUri(string subscriptionId, string resourceGroupName, CheckPolicyRestrictionsContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.PolicyInsights/checkPolicyRestrictions", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCheckAtResourceGroupScopeRequest(string subscriptionId, string resourceGroupName, CheckPolicyRestrictionsContent content) { var message = _pipeline.CreateMessage(); @@ -193,6 +217,19 @@ public Response CheckAtResourceGroupScope(string } } + internal RequestUriBuilder CreateCheckAtManagementGroupScopeRequestUri(string managementGroupId, CheckManagementGroupPolicyRestrictionsContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/", false); + uri.AppendPath("Microsoft.Management", true); + uri.AppendPath("/managementGroups/", false); + uri.AppendPath(managementGroupId, true); + uri.AppendPath("/providers/Microsoft.PolicyInsights/checkPolicyRestrictions", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCheckAtManagementGroupScopeRequest(string managementGroupId, CheckManagementGroupPolicyRestrictionsContent content) { var message = _pipeline.CreateMessage(); diff --git a/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/RestOperations/PolicyStatesRestOperations.cs b/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/RestOperations/PolicyStatesRestOperations.cs index bab2e8fe9685..b63df46f84f0 100644 --- a/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/RestOperations/PolicyStatesRestOperations.cs +++ b/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/RestOperations/PolicyStatesRestOperations.cs @@ -37,6 +37,53 @@ public PolicyStatesRestOperations(HttpPipeline pipeline, string applicationId, U _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListQueryResultsForManagementGroupRequestUri(string managementGroupName, PolicyStateType policyStateType, PolicyQuerySettings policyQuerySettings) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/", false); + uri.AppendPath("Microsoft.Management", true); + uri.AppendPath("/managementGroups/", false); + uri.AppendPath(managementGroupName, true); + uri.AppendPath("/providers/Microsoft.PolicyInsights/policyStates/", false); + uri.AppendPath(policyStateType.ToString(), true); + uri.AppendPath("/queryResults", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (policyQuerySettings?.Top != null) + { + uri.AppendQuery("$top", policyQuerySettings.Top.Value, true); + } + if (policyQuerySettings?.OrderBy != null) + { + uri.AppendQuery("$orderby", policyQuerySettings.OrderBy, true); + } + if (policyQuerySettings?.Select != null) + { + uri.AppendQuery("$select", policyQuerySettings.Select, true); + } + if (policyQuerySettings?.From != null) + { + uri.AppendQuery("$from", policyQuerySettings.From.Value, "O", true); + } + if (policyQuerySettings?.To != null) + { + uri.AppendQuery("$to", policyQuerySettings.To.Value, "O", true); + } + if (policyQuerySettings?.Filter != null) + { + uri.AppendQuery("$filter", policyQuerySettings.Filter, true); + } + if (policyQuerySettings?.Apply != null) + { + uri.AppendQuery("$apply", policyQuerySettings.Apply, true); + } + if (policyQuerySettings?.SkipToken != null) + { + uri.AppendQuery("$skiptoken", policyQuerySettings.SkipToken, true); + } + return uri; + } + internal HttpMessage CreateListQueryResultsForManagementGroupRequest(string managementGroupName, PolicyStateType policyStateType, PolicyQuerySettings policyQuerySettings) { var message = _pipeline.CreateMessage(); @@ -144,6 +191,37 @@ public Response ListQueryResultsForManagementGroup(str } } + internal RequestUriBuilder CreateSummarizeForManagementGroupRequestUri(string managementGroupName, PolicyStateSummaryType policyStateSummaryType, PolicyQuerySettings policyQuerySettings) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/", false); + uri.AppendPath("Microsoft.Management", true); + uri.AppendPath("/managementGroups/", false); + uri.AppendPath(managementGroupName, true); + uri.AppendPath("/providers/Microsoft.PolicyInsights/policyStates/", false); + uri.AppendPath(policyStateSummaryType.ToString(), true); + uri.AppendPath("/summarize", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (policyQuerySettings?.Top != null) + { + uri.AppendQuery("$top", policyQuerySettings.Top.Value, true); + } + if (policyQuerySettings?.From != null) + { + uri.AppendQuery("$from", policyQuerySettings.From.Value, "O", true); + } + if (policyQuerySettings?.To != null) + { + uri.AppendQuery("$to", policyQuerySettings.To.Value, "O", true); + } + if (policyQuerySettings?.Filter != null) + { + uri.AppendQuery("$filter", policyQuerySettings.Filter, true); + } + return uri; + } + internal HttpMessage CreateSummarizeForManagementGroupRequest(string managementGroupName, PolicyStateSummaryType policyStateSummaryType, PolicyQuerySettings policyQuerySettings) { var message = _pipeline.CreateMessage(); @@ -235,6 +313,51 @@ public Response SummarizeForManagementGroup(string managementG } } + internal RequestUriBuilder CreateListQueryResultsForSubscriptionRequestUri(string subscriptionId, PolicyStateType policyStateType, PolicyQuerySettings policyQuerySettings) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.PolicyInsights/policyStates/", false); + uri.AppendPath(policyStateType.ToString(), true); + uri.AppendPath("/queryResults", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (policyQuerySettings?.Top != null) + { + uri.AppendQuery("$top", policyQuerySettings.Top.Value, true); + } + if (policyQuerySettings?.OrderBy != null) + { + uri.AppendQuery("$orderby", policyQuerySettings.OrderBy, true); + } + if (policyQuerySettings?.Select != null) + { + uri.AppendQuery("$select", policyQuerySettings.Select, true); + } + if (policyQuerySettings?.From != null) + { + uri.AppendQuery("$from", policyQuerySettings.From.Value, "O", true); + } + if (policyQuerySettings?.To != null) + { + uri.AppendQuery("$to", policyQuerySettings.To.Value, "O", true); + } + if (policyQuerySettings?.Filter != null) + { + uri.AppendQuery("$filter", policyQuerySettings.Filter, true); + } + if (policyQuerySettings?.Apply != null) + { + uri.AppendQuery("$apply", policyQuerySettings.Apply, true); + } + if (policyQuerySettings?.SkipToken != null) + { + uri.AppendQuery("$skiptoken", policyQuerySettings.SkipToken, true); + } + return uri; + } + internal HttpMessage CreateListQueryResultsForSubscriptionRequest(string subscriptionId, PolicyStateType policyStateType, PolicyQuerySettings policyQuerySettings) { var message = _pipeline.CreateMessage(); @@ -340,6 +463,35 @@ public Response ListQueryResultsForSubscription(string } } + internal RequestUriBuilder CreateSummarizeForSubscriptionRequestUri(string subscriptionId, PolicyStateSummaryType policyStateSummaryType, PolicyQuerySettings policyQuerySettings) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.PolicyInsights/policyStates/", false); + uri.AppendPath(policyStateSummaryType.ToString(), true); + uri.AppendPath("/summarize", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (policyQuerySettings?.Top != null) + { + uri.AppendQuery("$top", policyQuerySettings.Top.Value, true); + } + if (policyQuerySettings?.From != null) + { + uri.AppendQuery("$from", policyQuerySettings.From.Value, "O", true); + } + if (policyQuerySettings?.To != null) + { + uri.AppendQuery("$to", policyQuerySettings.To.Value, "O", true); + } + if (policyQuerySettings?.Filter != null) + { + uri.AppendQuery("$filter", policyQuerySettings.Filter, true); + } + return uri; + } + internal HttpMessage CreateSummarizeForSubscriptionRequest(string subscriptionId, PolicyStateSummaryType policyStateSummaryType, PolicyQuerySettings policyQuerySettings) { var message = _pipeline.CreateMessage(); @@ -429,6 +581,53 @@ public Response SummarizeForSubscription(string subscriptionId } } + internal RequestUriBuilder CreateListQueryResultsForResourceGroupRequestUri(string subscriptionId, string resourceGroupName, PolicyStateType policyStateType, PolicyQuerySettings policyQuerySettings) + { + 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.PolicyInsights/policyStates/", false); + uri.AppendPath(policyStateType.ToString(), true); + uri.AppendPath("/queryResults", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (policyQuerySettings?.Top != null) + { + uri.AppendQuery("$top", policyQuerySettings.Top.Value, true); + } + if (policyQuerySettings?.OrderBy != null) + { + uri.AppendQuery("$orderby", policyQuerySettings.OrderBy, true); + } + if (policyQuerySettings?.Select != null) + { + uri.AppendQuery("$select", policyQuerySettings.Select, true); + } + if (policyQuerySettings?.From != null) + { + uri.AppendQuery("$from", policyQuerySettings.From.Value, "O", true); + } + if (policyQuerySettings?.To != null) + { + uri.AppendQuery("$to", policyQuerySettings.To.Value, "O", true); + } + if (policyQuerySettings?.Filter != null) + { + uri.AppendQuery("$filter", policyQuerySettings.Filter, true); + } + if (policyQuerySettings?.Apply != null) + { + uri.AppendQuery("$apply", policyQuerySettings.Apply, true); + } + if (policyQuerySettings?.SkipToken != null) + { + uri.AppendQuery("$skiptoken", policyQuerySettings.SkipToken, true); + } + return uri; + } + internal HttpMessage CreateListQueryResultsForResourceGroupRequest(string subscriptionId, string resourceGroupName, PolicyStateType policyStateType, PolicyQuerySettings policyQuerySettings) { var message = _pipeline.CreateMessage(); @@ -540,6 +739,37 @@ public Response ListQueryResultsForResourceGroup(strin } } + internal RequestUriBuilder CreateSummarizeForResourceGroupRequestUri(string subscriptionId, string resourceGroupName, PolicyStateSummaryType policyStateSummaryType, PolicyQuerySettings policyQuerySettings) + { + 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.PolicyInsights/policyStates/", false); + uri.AppendPath(policyStateSummaryType.ToString(), true); + uri.AppendPath("/summarize", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (policyQuerySettings?.Top != null) + { + uri.AppendQuery("$top", policyQuerySettings.Top.Value, true); + } + if (policyQuerySettings?.From != null) + { + uri.AppendQuery("$from", policyQuerySettings.From.Value, "O", true); + } + if (policyQuerySettings?.To != null) + { + uri.AppendQuery("$to", policyQuerySettings.To.Value, "O", true); + } + if (policyQuerySettings?.Filter != null) + { + uri.AppendQuery("$filter", policyQuerySettings.Filter, true); + } + return uri; + } + internal HttpMessage CreateSummarizeForResourceGroupRequest(string subscriptionId, string resourceGroupName, PolicyStateSummaryType policyStateSummaryType, PolicyQuerySettings policyQuerySettings) { var message = _pipeline.CreateMessage(); @@ -635,6 +865,55 @@ public Response SummarizeForResourceGroup(string subscriptionI } } + internal RequestUriBuilder CreateListQueryResultsForResourceRequestUri(string resourceId, PolicyStateType policyStateType, PolicyQuerySettings policyQuerySettings) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceId, false); + uri.AppendPath("/providers/Microsoft.PolicyInsights/policyStates/", false); + uri.AppendPath(policyStateType.ToString(), true); + uri.AppendPath("/queryResults", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (policyQuerySettings?.Top != null) + { + uri.AppendQuery("$top", policyQuerySettings.Top.Value, true); + } + if (policyQuerySettings?.OrderBy != null) + { + uri.AppendQuery("$orderby", policyQuerySettings.OrderBy, true); + } + if (policyQuerySettings?.Select != null) + { + uri.AppendQuery("$select", policyQuerySettings.Select, true); + } + if (policyQuerySettings?.From != null) + { + uri.AppendQuery("$from", policyQuerySettings.From.Value, "O", true); + } + if (policyQuerySettings?.To != null) + { + uri.AppendQuery("$to", policyQuerySettings.To.Value, "O", true); + } + if (policyQuerySettings?.Filter != null) + { + uri.AppendQuery("$filter", policyQuerySettings.Filter, true); + } + if (policyQuerySettings?.Apply != null) + { + uri.AppendQuery("$apply", policyQuerySettings.Apply, true); + } + if (policyQuerySettings?.Expand != null) + { + uri.AppendQuery("$expand", policyQuerySettings.Expand, true); + } + if (policyQuerySettings?.SkipToken != null) + { + uri.AppendQuery("$skiptoken", policyQuerySettings.SkipToken, true); + } + return uri; + } + internal HttpMessage CreateListQueryResultsForResourceRequest(string resourceId, PolicyStateType policyStateType, PolicyQuerySettings policyQuerySettings) { var message = _pipeline.CreateMessage(); @@ -742,6 +1021,35 @@ public Response ListQueryResultsForResource(string res } } + internal RequestUriBuilder CreateSummarizeForResourceRequestUri(string resourceId, PolicyStateSummaryType policyStateSummaryType, PolicyQuerySettings policyQuerySettings) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceId, false); + uri.AppendPath("/providers/Microsoft.PolicyInsights/policyStates/", false); + uri.AppendPath(policyStateSummaryType.ToString(), true); + uri.AppendPath("/summarize", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (policyQuerySettings?.Top != null) + { + uri.AppendQuery("$top", policyQuerySettings.Top.Value, true); + } + if (policyQuerySettings?.From != null) + { + uri.AppendQuery("$from", policyQuerySettings.From.Value, "O", true); + } + if (policyQuerySettings?.To != null) + { + uri.AppendQuery("$to", policyQuerySettings.To.Value, "O", true); + } + if (policyQuerySettings?.Filter != null) + { + uri.AppendQuery("$filter", policyQuerySettings.Filter, true); + } + return uri; + } + internal HttpMessage CreateSummarizeForResourceRequest(string resourceId, PolicyStateSummaryType policyStateSummaryType, PolicyQuerySettings policyQuerySettings) { var message = _pipeline.CreateMessage(); @@ -829,6 +1137,17 @@ public Response SummarizeForResource(string resourceId, Policy } } + internal RequestUriBuilder CreateTriggerSubscriptionEvaluationRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.PolicyInsights/policyStates/latest/triggerEvaluation", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateTriggerSubscriptionEvaluationRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -888,6 +1207,19 @@ public Response TriggerSubscriptionEvaluation(string subscriptionId, Cancellatio } } + internal RequestUriBuilder CreateTriggerResourceGroupEvaluationRequestUri(string subscriptionId, string resourceGroupName) + { + 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.PolicyInsights/policyStates/latest/triggerEvaluation", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateTriggerResourceGroupEvaluationRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -953,6 +1285,55 @@ public Response TriggerResourceGroupEvaluation(string subscriptionId, string res } } + internal RequestUriBuilder CreateListQueryResultsForPolicySetDefinitionRequestUri(string subscriptionId, string policySetDefinitionName, PolicyStateType policyStateType, PolicyQuerySettings policyQuerySettings) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/", false); + uri.AppendPath("Microsoft.Authorization", true); + uri.AppendPath("/policySetDefinitions/", false); + uri.AppendPath(policySetDefinitionName, true); + uri.AppendPath("/providers/Microsoft.PolicyInsights/policyStates/", false); + uri.AppendPath(policyStateType.ToString(), true); + uri.AppendPath("/queryResults", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (policyQuerySettings?.Top != null) + { + uri.AppendQuery("$top", policyQuerySettings.Top.Value, true); + } + if (policyQuerySettings?.OrderBy != null) + { + uri.AppendQuery("$orderby", policyQuerySettings.OrderBy, true); + } + if (policyQuerySettings?.Select != null) + { + uri.AppendQuery("$select", policyQuerySettings.Select, true); + } + if (policyQuerySettings?.From != null) + { + uri.AppendQuery("$from", policyQuerySettings.From.Value, "O", true); + } + if (policyQuerySettings?.To != null) + { + uri.AppendQuery("$to", policyQuerySettings.To.Value, "O", true); + } + if (policyQuerySettings?.Filter != null) + { + uri.AppendQuery("$filter", policyQuerySettings.Filter, true); + } + if (policyQuerySettings?.Apply != null) + { + uri.AppendQuery("$apply", policyQuerySettings.Apply, true); + } + if (policyQuerySettings?.SkipToken != null) + { + uri.AppendQuery("$skiptoken", policyQuerySettings.SkipToken, true); + } + return uri; + } + internal HttpMessage CreateListQueryResultsForPolicySetDefinitionRequest(string subscriptionId, string policySetDefinitionName, PolicyStateType policyStateType, PolicyQuerySettings policyQuerySettings) { var message = _pipeline.CreateMessage(); @@ -1066,6 +1447,39 @@ public Response ListQueryResultsForPolicySetDefinition } } + internal RequestUriBuilder CreateSummarizeForPolicySetDefinitionRequestUri(string subscriptionId, string policySetDefinitionName, PolicyStateSummaryType policyStateSummaryType, PolicyQuerySettings policyQuerySettings) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/", false); + uri.AppendPath("Microsoft.Authorization", true); + uri.AppendPath("/policySetDefinitions/", false); + uri.AppendPath(policySetDefinitionName, true); + uri.AppendPath("/providers/Microsoft.PolicyInsights/policyStates/", false); + uri.AppendPath(policyStateSummaryType.ToString(), true); + uri.AppendPath("/summarize", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (policyQuerySettings?.Top != null) + { + uri.AppendQuery("$top", policyQuerySettings.Top.Value, true); + } + if (policyQuerySettings?.From != null) + { + uri.AppendQuery("$from", policyQuerySettings.From.Value, "O", true); + } + if (policyQuerySettings?.To != null) + { + uri.AppendQuery("$to", policyQuerySettings.To.Value, "O", true); + } + if (policyQuerySettings?.Filter != null) + { + uri.AppendQuery("$filter", policyQuerySettings.Filter, true); + } + return uri; + } + internal HttpMessage CreateSummarizeForPolicySetDefinitionRequest(string subscriptionId, string policySetDefinitionName, PolicyStateSummaryType policyStateSummaryType, PolicyQuerySettings policyQuerySettings) { var message = _pipeline.CreateMessage(); @@ -1151,16 +1565,65 @@ public Response SummarizeForPolicySetDefinition(string subscri _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { - case 200: - { - SummarizeResults value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream); - value = SummarizeResults.DeserializeSummarizeResults(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); + case 200: + { + SummarizeResults value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = SummarizeResults.DeserializeSummarizeResults(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal RequestUriBuilder CreateListQueryResultsForPolicyDefinitionRequestUri(string subscriptionId, string policyDefinitionName, PolicyStateType policyStateType, PolicyQuerySettings policyQuerySettings) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/", false); + uri.AppendPath("Microsoft.Authorization", true); + uri.AppendPath("/policyDefinitions/", false); + uri.AppendPath(policyDefinitionName, true); + uri.AppendPath("/providers/Microsoft.PolicyInsights/policyStates/", false); + uri.AppendPath(policyStateType.ToString(), true); + uri.AppendPath("/queryResults", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (policyQuerySettings?.Top != null) + { + uri.AppendQuery("$top", policyQuerySettings.Top.Value, true); + } + if (policyQuerySettings?.OrderBy != null) + { + uri.AppendQuery("$orderby", policyQuerySettings.OrderBy, true); + } + if (policyQuerySettings?.Select != null) + { + uri.AppendQuery("$select", policyQuerySettings.Select, true); + } + if (policyQuerySettings?.From != null) + { + uri.AppendQuery("$from", policyQuerySettings.From.Value, "O", true); + } + if (policyQuerySettings?.To != null) + { + uri.AppendQuery("$to", policyQuerySettings.To.Value, "O", true); + } + if (policyQuerySettings?.Filter != null) + { + uri.AppendQuery("$filter", policyQuerySettings.Filter, true); + } + if (policyQuerySettings?.Apply != null) + { + uri.AppendQuery("$apply", policyQuerySettings.Apply, true); + } + if (policyQuerySettings?.SkipToken != null) + { + uri.AppendQuery("$skiptoken", policyQuerySettings.SkipToken, true); } + return uri; } internal HttpMessage CreateListQueryResultsForPolicyDefinitionRequest(string subscriptionId, string policyDefinitionName, PolicyStateType policyStateType, PolicyQuerySettings policyQuerySettings) @@ -1276,6 +1739,39 @@ public Response ListQueryResultsForPolicyDefinition(st } } + internal RequestUriBuilder CreateSummarizeForPolicyDefinitionRequestUri(string subscriptionId, string policyDefinitionName, PolicyStateSummaryType policyStateSummaryType, PolicyQuerySettings policyQuerySettings) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/", false); + uri.AppendPath("Microsoft.Authorization", true); + uri.AppendPath("/policyDefinitions/", false); + uri.AppendPath(policyDefinitionName, true); + uri.AppendPath("/providers/Microsoft.PolicyInsights/policyStates/", false); + uri.AppendPath(policyStateSummaryType.ToString(), true); + uri.AppendPath("/summarize", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (policyQuerySettings?.Top != null) + { + uri.AppendQuery("$top", policyQuerySettings.Top.Value, true); + } + if (policyQuerySettings?.From != null) + { + uri.AppendQuery("$from", policyQuerySettings.From.Value, "O", true); + } + if (policyQuerySettings?.To != null) + { + uri.AppendQuery("$to", policyQuerySettings.To.Value, "O", true); + } + if (policyQuerySettings?.Filter != null) + { + uri.AppendQuery("$filter", policyQuerySettings.Filter, true); + } + return uri; + } + internal HttpMessage CreateSummarizeForPolicyDefinitionRequest(string subscriptionId, string policyDefinitionName, PolicyStateSummaryType policyStateSummaryType, PolicyQuerySettings policyQuerySettings) { var message = _pipeline.CreateMessage(); @@ -1373,6 +1869,55 @@ public Response SummarizeForPolicyDefinition(string subscripti } } + internal RequestUriBuilder CreateListQueryResultsForSubscriptionLevelPolicyAssignmentRequestUri(string subscriptionId, string policyAssignmentName, PolicyStateType policyStateType, PolicyQuerySettings policyQuerySettings) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/", false); + uri.AppendPath("Microsoft.Authorization", true); + uri.AppendPath("/policyAssignments/", false); + uri.AppendPath(policyAssignmentName, true); + uri.AppendPath("/providers/Microsoft.PolicyInsights/policyStates/", false); + uri.AppendPath(policyStateType.ToString(), true); + uri.AppendPath("/queryResults", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (policyQuerySettings?.Top != null) + { + uri.AppendQuery("$top", policyQuerySettings.Top.Value, true); + } + if (policyQuerySettings?.OrderBy != null) + { + uri.AppendQuery("$orderby", policyQuerySettings.OrderBy, true); + } + if (policyQuerySettings?.Select != null) + { + uri.AppendQuery("$select", policyQuerySettings.Select, true); + } + if (policyQuerySettings?.From != null) + { + uri.AppendQuery("$from", policyQuerySettings.From.Value, "O", true); + } + if (policyQuerySettings?.To != null) + { + uri.AppendQuery("$to", policyQuerySettings.To.Value, "O", true); + } + if (policyQuerySettings?.Filter != null) + { + uri.AppendQuery("$filter", policyQuerySettings.Filter, true); + } + if (policyQuerySettings?.Apply != null) + { + uri.AppendQuery("$apply", policyQuerySettings.Apply, true); + } + if (policyQuerySettings?.SkipToken != null) + { + uri.AppendQuery("$skiptoken", policyQuerySettings.SkipToken, true); + } + return uri; + } + internal HttpMessage CreateListQueryResultsForSubscriptionLevelPolicyAssignmentRequest(string subscriptionId, string policyAssignmentName, PolicyStateType policyStateType, PolicyQuerySettings policyQuerySettings) { var message = _pipeline.CreateMessage(); @@ -1486,6 +2031,39 @@ public Response ListQueryResultsForSubscriptionLevelPo } } + internal RequestUriBuilder CreateSummarizeForSubscriptionLevelPolicyAssignmentRequestUri(string subscriptionId, string policyAssignmentName, PolicyStateSummaryType policyStateSummaryType, PolicyQuerySettings policyQuerySettings) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/", false); + uri.AppendPath("Microsoft.Authorization", true); + uri.AppendPath("/policyAssignments/", false); + uri.AppendPath(policyAssignmentName, true); + uri.AppendPath("/providers/Microsoft.PolicyInsights/policyStates/", false); + uri.AppendPath(policyStateSummaryType.ToString(), true); + uri.AppendPath("/summarize", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (policyQuerySettings?.Top != null) + { + uri.AppendQuery("$top", policyQuerySettings.Top.Value, true); + } + if (policyQuerySettings?.From != null) + { + uri.AppendQuery("$from", policyQuerySettings.From.Value, "O", true); + } + if (policyQuerySettings?.To != null) + { + uri.AppendQuery("$to", policyQuerySettings.To.Value, "O", true); + } + if (policyQuerySettings?.Filter != null) + { + uri.AppendQuery("$filter", policyQuerySettings.Filter, true); + } + return uri; + } + internal HttpMessage CreateSummarizeForSubscriptionLevelPolicyAssignmentRequest(string subscriptionId, string policyAssignmentName, PolicyStateSummaryType policyStateSummaryType, PolicyQuerySettings policyQuerySettings) { var message = _pipeline.CreateMessage(); @@ -1583,6 +2161,57 @@ public Response SummarizeForSubscriptionLevelPolicyAssignment( } } + internal RequestUriBuilder CreateListQueryResultsForResourceGroupLevelPolicyAssignmentRequestUri(string subscriptionId, string resourceGroupName, string policyAssignmentName, PolicyStateType policyStateType, PolicyQuerySettings policyQuerySettings) + { + 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/", false); + uri.AppendPath("Microsoft.Authorization", true); + uri.AppendPath("/policyAssignments/", false); + uri.AppendPath(policyAssignmentName, true); + uri.AppendPath("/providers/Microsoft.PolicyInsights/policyStates/", false); + uri.AppendPath(policyStateType.ToString(), true); + uri.AppendPath("/queryResults", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (policyQuerySettings?.Top != null) + { + uri.AppendQuery("$top", policyQuerySettings.Top.Value, true); + } + if (policyQuerySettings?.OrderBy != null) + { + uri.AppendQuery("$orderby", policyQuerySettings.OrderBy, true); + } + if (policyQuerySettings?.Select != null) + { + uri.AppendQuery("$select", policyQuerySettings.Select, true); + } + if (policyQuerySettings?.From != null) + { + uri.AppendQuery("$from", policyQuerySettings.From.Value, "O", true); + } + if (policyQuerySettings?.To != null) + { + uri.AppendQuery("$to", policyQuerySettings.To.Value, "O", true); + } + if (policyQuerySettings?.Filter != null) + { + uri.AppendQuery("$filter", policyQuerySettings.Filter, true); + } + if (policyQuerySettings?.Apply != null) + { + uri.AppendQuery("$apply", policyQuerySettings.Apply, true); + } + if (policyQuerySettings?.SkipToken != null) + { + uri.AppendQuery("$skiptoken", policyQuerySettings.SkipToken, true); + } + return uri; + } + internal HttpMessage CreateListQueryResultsForResourceGroupLevelPolicyAssignmentRequest(string subscriptionId, string resourceGroupName, string policyAssignmentName, PolicyStateType policyStateType, PolicyQuerySettings policyQuerySettings) { var message = _pipeline.CreateMessage(); @@ -1702,6 +2331,41 @@ public Response ListQueryResultsForResourceGroupLevelP } } + internal RequestUriBuilder CreateSummarizeForResourceGroupLevelPolicyAssignmentRequestUri(string subscriptionId, string resourceGroupName, string policyAssignmentName, PolicyStateSummaryType policyStateSummaryType, PolicyQuerySettings policyQuerySettings) + { + 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/", false); + uri.AppendPath("Microsoft.Authorization", true); + uri.AppendPath("/policyAssignments/", false); + uri.AppendPath(policyAssignmentName, true); + uri.AppendPath("/providers/Microsoft.PolicyInsights/policyStates/", false); + uri.AppendPath(policyStateSummaryType.ToString(), true); + uri.AppendPath("/summarize", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (policyQuerySettings?.Top != null) + { + uri.AppendQuery("$top", policyQuerySettings.Top.Value, true); + } + if (policyQuerySettings?.From != null) + { + uri.AppendQuery("$from", policyQuerySettings.From.Value, "O", true); + } + if (policyQuerySettings?.To != null) + { + uri.AppendQuery("$to", policyQuerySettings.To.Value, "O", true); + } + if (policyQuerySettings?.Filter != null) + { + uri.AppendQuery("$filter", policyQuerySettings.Filter, true); + } + return uri; + } + internal HttpMessage CreateSummarizeForResourceGroupLevelPolicyAssignmentRequest(string subscriptionId, string resourceGroupName, string policyAssignmentName, PolicyStateSummaryType policyStateSummaryType, PolicyQuerySettings policyQuerySettings) { var message = _pipeline.CreateMessage(); @@ -1805,6 +2469,14 @@ public Response SummarizeForResourceGroupLevelPolicyAssignment } } + internal RequestUriBuilder CreateListQueryResultsForManagementGroupNextPageRequestUri(string nextLink, string managementGroupName, PolicyStateType policyStateType, PolicyQuerySettings policyQuerySettings) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListQueryResultsForManagementGroupNextPageRequest(string nextLink, string managementGroupName, PolicyStateType policyStateType, PolicyQuerySettings policyQuerySettings) { var message = _pipeline.CreateMessage(); @@ -1877,6 +2549,14 @@ public Response ListQueryResultsForManagementGroupNext } } + internal RequestUriBuilder CreateListQueryResultsForSubscriptionNextPageRequestUri(string nextLink, string subscriptionId, PolicyStateType policyStateType, PolicyQuerySettings policyQuerySettings) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListQueryResultsForSubscriptionNextPageRequest(string nextLink, string subscriptionId, PolicyStateType policyStateType, PolicyQuerySettings policyQuerySettings) { var message = _pipeline.CreateMessage(); @@ -1949,6 +2629,14 @@ public Response ListQueryResultsForSubscriptionNextPag } } + internal RequestUriBuilder CreateListQueryResultsForResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, PolicyStateType policyStateType, PolicyQuerySettings policyQuerySettings) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListQueryResultsForResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, PolicyStateType policyStateType, PolicyQuerySettings policyQuerySettings) { var message = _pipeline.CreateMessage(); @@ -2025,6 +2713,14 @@ public Response ListQueryResultsForResourceGroupNextPa } } + internal RequestUriBuilder CreateListQueryResultsForResourceNextPageRequestUri(string nextLink, string resourceId, PolicyStateType policyStateType, PolicyQuerySettings policyQuerySettings) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListQueryResultsForResourceNextPageRequest(string nextLink, string resourceId, PolicyStateType policyStateType, PolicyQuerySettings policyQuerySettings) { var message = _pipeline.CreateMessage(); @@ -2095,6 +2791,14 @@ public Response ListQueryResultsForResourceNextPage(st } } + internal RequestUriBuilder CreateListQueryResultsForPolicySetDefinitionNextPageRequestUri(string nextLink, string subscriptionId, string policySetDefinitionName, PolicyStateType policyStateType, PolicyQuerySettings policyQuerySettings) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListQueryResultsForPolicySetDefinitionNextPageRequest(string nextLink, string subscriptionId, string policySetDefinitionName, PolicyStateType policyStateType, PolicyQuerySettings policyQuerySettings) { var message = _pipeline.CreateMessage(); @@ -2171,6 +2875,14 @@ public Response ListQueryResultsForPolicySetDefinition } } + internal RequestUriBuilder CreateListQueryResultsForPolicyDefinitionNextPageRequestUri(string nextLink, string subscriptionId, string policyDefinitionName, PolicyStateType policyStateType, PolicyQuerySettings policyQuerySettings) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListQueryResultsForPolicyDefinitionNextPageRequest(string nextLink, string subscriptionId, string policyDefinitionName, PolicyStateType policyStateType, PolicyQuerySettings policyQuerySettings) { var message = _pipeline.CreateMessage(); @@ -2247,6 +2959,14 @@ public Response ListQueryResultsForPolicyDefinitionNex } } + internal RequestUriBuilder CreateListQueryResultsForSubscriptionLevelPolicyAssignmentNextPageRequestUri(string nextLink, string subscriptionId, string policyAssignmentName, PolicyStateType policyStateType, PolicyQuerySettings policyQuerySettings) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListQueryResultsForSubscriptionLevelPolicyAssignmentNextPageRequest(string nextLink, string subscriptionId, string policyAssignmentName, PolicyStateType policyStateType, PolicyQuerySettings policyQuerySettings) { var message = _pipeline.CreateMessage(); @@ -2323,6 +3043,14 @@ public Response ListQueryResultsForSubscriptionLevelPo } } + internal RequestUriBuilder CreateListQueryResultsForResourceGroupLevelPolicyAssignmentNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string policyAssignmentName, PolicyStateType policyStateType, PolicyQuerySettings policyQuerySettings) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListQueryResultsForResourceGroupLevelPolicyAssignmentNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string policyAssignmentName, PolicyStateType policyStateType, PolicyQuerySettings policyQuerySettings) { var message = _pipeline.CreateMessage(); diff --git a/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/RestOperations/PolicyTrackedResourcesRestOperations.cs b/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/RestOperations/PolicyTrackedResourcesRestOperations.cs index 7b3578b56db8..93e265e557f1 100644 --- a/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/RestOperations/PolicyTrackedResourcesRestOperations.cs +++ b/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/RestOperations/PolicyTrackedResourcesRestOperations.cs @@ -37,6 +37,29 @@ public PolicyTrackedResourcesRestOperations(HttpPipeline pipeline, string applic _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListQueryResultsForManagementGroupRequestUri(string managementGroupName, PolicyTrackedResourceType policyTrackedResourceType, PolicyQuerySettings policyQuerySettings) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/", false); + uri.AppendPath("Microsoft.Management", true); + uri.AppendPath("/managementGroups/", false); + uri.AppendPath(managementGroupName, true); + uri.AppendPath("/providers/Microsoft.PolicyInsights/policyTrackedResources/", false); + uri.AppendPath(policyTrackedResourceType.ToString(), true); + uri.AppendPath("/queryResults", false); + if (policyQuerySettings?.Top != null) + { + uri.AppendQuery("$top", policyQuerySettings.Top.Value, true); + } + if (policyQuerySettings?.Filter != null) + { + uri.AppendQuery("$filter", policyQuerySettings.Filter, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListQueryResultsForManagementGroupRequest(string managementGroupName, PolicyTrackedResourceType policyTrackedResourceType, PolicyQuerySettings policyQuerySettings) { var message = _pipeline.CreateMessage(); @@ -120,6 +143,27 @@ public Response ListQueryResultsForManagemen } } + internal RequestUriBuilder CreateListQueryResultsForSubscriptionRequestUri(string subscriptionId, PolicyTrackedResourceType policyTrackedResourceType, PolicyQuerySettings policyQuerySettings) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.PolicyInsights/policyTrackedResources/", false); + uri.AppendPath(policyTrackedResourceType.ToString(), true); + uri.AppendPath("/queryResults", false); + if (policyQuerySettings?.Top != null) + { + uri.AppendQuery("$top", policyQuerySettings.Top.Value, true); + } + if (policyQuerySettings?.Filter != null) + { + uri.AppendQuery("$filter", policyQuerySettings.Filter, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListQueryResultsForSubscriptionRequest(string subscriptionId, PolicyTrackedResourceType policyTrackedResourceType, PolicyQuerySettings policyQuerySettings) { var message = _pipeline.CreateMessage(); @@ -201,6 +245,29 @@ public Response ListQueryResultsForSubscript } } + internal RequestUriBuilder CreateListQueryResultsForResourceGroupRequestUri(string subscriptionId, string resourceGroupName, PolicyTrackedResourceType policyTrackedResourceType, PolicyQuerySettings policyQuerySettings) + { + 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.PolicyInsights/policyTrackedResources/", false); + uri.AppendPath(policyTrackedResourceType.ToString(), true); + uri.AppendPath("/queryResults", false); + if (policyQuerySettings?.Top != null) + { + uri.AppendQuery("$top", policyQuerySettings.Top.Value, true); + } + if (policyQuerySettings?.Filter != null) + { + uri.AppendQuery("$filter", policyQuerySettings.Filter, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListQueryResultsForResourceGroupRequest(string subscriptionId, string resourceGroupName, PolicyTrackedResourceType policyTrackedResourceType, PolicyQuerySettings policyQuerySettings) { var message = _pipeline.CreateMessage(); @@ -288,6 +355,27 @@ public Response ListQueryResultsForResourceG } } + internal RequestUriBuilder CreateListQueryResultsForResourceRequestUri(string resourceId, PolicyTrackedResourceType policyTrackedResourceType, PolicyQuerySettings policyQuerySettings) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceId, false); + uri.AppendPath("/providers/Microsoft.PolicyInsights/policyTrackedResources/", false); + uri.AppendPath(policyTrackedResourceType.ToString(), true); + uri.AppendPath("/queryResults", false); + if (policyQuerySettings?.Top != null) + { + uri.AppendQuery("$top", policyQuerySettings.Top.Value, true); + } + if (policyQuerySettings?.Filter != null) + { + uri.AppendQuery("$filter", policyQuerySettings.Filter, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListQueryResultsForResourceRequest(string resourceId, PolicyTrackedResourceType policyTrackedResourceType, PolicyQuerySettings policyQuerySettings) { var message = _pipeline.CreateMessage(); @@ -367,6 +455,14 @@ public Response ListQueryResultsForResource( } } + internal RequestUriBuilder CreateListQueryResultsForManagementGroupNextPageRequestUri(string nextLink, string managementGroupName, PolicyTrackedResourceType policyTrackedResourceType, PolicyQuerySettings policyQuerySettings) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListQueryResultsForManagementGroupNextPageRequest(string nextLink, string managementGroupName, PolicyTrackedResourceType policyTrackedResourceType, PolicyQuerySettings policyQuerySettings) { var message = _pipeline.CreateMessage(); @@ -439,6 +535,14 @@ public Response ListQueryResultsForManagemen } } + internal RequestUriBuilder CreateListQueryResultsForSubscriptionNextPageRequestUri(string nextLink, string subscriptionId, PolicyTrackedResourceType policyTrackedResourceType, PolicyQuerySettings policyQuerySettings) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListQueryResultsForSubscriptionNextPageRequest(string nextLink, string subscriptionId, PolicyTrackedResourceType policyTrackedResourceType, PolicyQuerySettings policyQuerySettings) { var message = _pipeline.CreateMessage(); @@ -511,6 +615,14 @@ public Response ListQueryResultsForSubscript } } + internal RequestUriBuilder CreateListQueryResultsForResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, PolicyTrackedResourceType policyTrackedResourceType, PolicyQuerySettings policyQuerySettings) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListQueryResultsForResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, PolicyTrackedResourceType policyTrackedResourceType, PolicyQuerySettings policyQuerySettings) { var message = _pipeline.CreateMessage(); @@ -587,6 +699,14 @@ public Response ListQueryResultsForResourceG } } + internal RequestUriBuilder CreateListQueryResultsForResourceNextPageRequestUri(string nextLink, string resourceId, PolicyTrackedResourceType policyTrackedResourceType, PolicyQuerySettings policyQuerySettings) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListQueryResultsForResourceNextPageRequest(string nextLink, string resourceId, PolicyTrackedResourceType policyTrackedResourceType, PolicyQuerySettings policyQuerySettings) { var message = _pipeline.CreateMessage(); diff --git a/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/RestOperations/RemediationsRestOperations.cs b/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/RestOperations/RemediationsRestOperations.cs index 5e3e29edf22b..e0ea50a49f1f 100644 --- a/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/RestOperations/RemediationsRestOperations.cs +++ b/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/RestOperations/RemediationsRestOperations.cs @@ -37,6 +37,23 @@ public RemediationsRestOperations(HttpPipeline pipeline, string applicationId, U _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListDeploymentsAtResourceRequestUri(string resourceId, string remediationName, PolicyQuerySettings policyQuerySettings) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceId, false); + uri.AppendPath("/providers/Microsoft.PolicyInsights/remediations/", false); + uri.AppendPath(remediationName, true); + uri.AppendPath("/listDeployments", false); + if (policyQuerySettings?.Top != null) + { + uri.AppendQuery("$top", policyQuerySettings.Top.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListDeploymentsAtResourceRequest(string resourceId, string remediationName, PolicyQuerySettings policyQuerySettings) { var message = _pipeline.CreateMessage(); @@ -116,6 +133,19 @@ public Response ListDeploymentsAtResource(stri } } + internal RequestUriBuilder CreateCancelAtResourceRequestUri(string resourceId, string remediationName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceId, false); + uri.AppendPath("/providers/Microsoft.PolicyInsights/remediations/", false); + uri.AppendPath(remediationName, true); + uri.AppendPath("/cancel", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCancelAtResourceRequest(string resourceId, string remediationName) { var message = _pipeline.CreateMessage(); @@ -189,6 +219,25 @@ public Response CancelAtResource(string resourceId, strin } } + internal RequestUriBuilder CreateListForResourceRequestUri(string resourceId, PolicyQuerySettings policyQuerySettings) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceId, false); + uri.AppendPath("/providers/Microsoft.PolicyInsights/remediations", false); + if (policyQuerySettings?.Top != null) + { + uri.AppendQuery("$top", policyQuerySettings.Top.Value, true); + } + if (policyQuerySettings?.Filter != null) + { + uri.AppendQuery("$filter", policyQuerySettings.Filter, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListForResourceRequest(string resourceId, PolicyQuerySettings policyQuerySettings) { var message = _pipeline.CreateMessage(); @@ -264,6 +313,18 @@ public Response ListForResource(string resourceId, Policy } } + internal RequestUriBuilder CreateCreateOrUpdateAtResourceRequestUri(string resourceId, string remediationName, PolicyRemediationData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceId, false); + uri.AppendPath("/providers/Microsoft.PolicyInsights/remediations/", false); + uri.AppendPath(remediationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateAtResourceRequest(string resourceId, string remediationName, PolicyRemediationData data) { var message = _pipeline.CreateMessage(); @@ -346,6 +407,18 @@ public Response CreateOrUpdateAtResource(string resourceI } } + internal RequestUriBuilder CreateGetAtResourceRequestUri(string resourceId, string remediationName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceId, false); + uri.AppendPath("/providers/Microsoft.PolicyInsights/remediations/", false); + uri.AppendPath(remediationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetAtResourceRequest(string resourceId, string remediationName) { var message = _pipeline.CreateMessage(); @@ -422,6 +495,18 @@ public Response GetAtResource(string resourceId, string r } } + internal RequestUriBuilder CreateDeleteAtResourceRequestUri(string resourceId, string remediationName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceId, false); + uri.AppendPath("/providers/Microsoft.PolicyInsights/remediations/", false); + uri.AppendPath(remediationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteAtResourceRequest(string resourceId, string remediationName) { var message = _pipeline.CreateMessage(); @@ -498,6 +583,14 @@ public Response DeleteAtResource(string resourceId, strin } } + internal RequestUriBuilder CreateListDeploymentsAtResourceNextPageRequestUri(string nextLink, string resourceId, string remediationName, PolicyQuerySettings policyQuerySettings) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListDeploymentsAtResourceNextPageRequest(string nextLink, string resourceId, string remediationName, PolicyQuerySettings policyQuerySettings) { var message = _pipeline.CreateMessage(); @@ -572,6 +665,14 @@ public Response ListDeploymentsAtResourceNextP } } + internal RequestUriBuilder CreateListForResourceNextPageRequestUri(string nextLink, string resourceId, PolicyQuerySettings policyQuerySettings) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListForResourceNextPageRequest(string nextLink, string resourceId, PolicyQuerySettings policyQuerySettings) { var message = _pipeline.CreateMessage(); diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/LongRunningOperation/PostgreSqlArmOperation.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/LongRunningOperation/PostgreSqlArmOperation.cs index 85f1bb6f4fd8..7b2875da01c8 100644 --- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/LongRunningOperation/PostgreSqlArmOperation.cs +++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/LongRunningOperation/PostgreSqlArmOperation.cs @@ -20,21 +20,24 @@ internal class PostgreSqlArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of PostgreSqlArmOperation for mocking. protected PostgreSqlArmOperation() { } - internal PostgreSqlArmOperation(Response response) + internal PostgreSqlArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal PostgreSqlArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "PostgreSqlArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal PostgreSqlArmOperation(ClientDiagnostics clientDiagnostics, HttpPipelin public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/LongRunningOperation/PostgreSqlArmOperationOfT.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/LongRunningOperation/PostgreSqlArmOperationOfT.cs index 70bf4f4d5af4..eea502e8cf99 100644 --- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/LongRunningOperation/PostgreSqlArmOperationOfT.cs +++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/LongRunningOperation/PostgreSqlArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class PostgreSqlArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of PostgreSqlArmOperation for mocking. protected PostgreSqlArmOperation() { } - internal PostgreSqlArmOperation(Response response) + internal PostgreSqlArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal PostgreSqlArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "PostgreSqlArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal PostgreSqlArmOperation(IOperationSource source, ClientDiagnostics cl public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/Models/PostgreSqlConfigurationResource.Serialization.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/Models/PostgreSqlConfigurationResource.Serialization.cs new file mode 100644 index 000000000000..39413c3fc250 --- /dev/null +++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/Models/PostgreSqlConfigurationResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.PostgreSql +{ + public partial class PostgreSqlConfigurationResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + PostgreSqlConfigurationData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + PostgreSqlConfigurationData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/Models/PostgreSqlDatabaseResource.Serialization.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/Models/PostgreSqlDatabaseResource.Serialization.cs new file mode 100644 index 000000000000..15595787ee6f --- /dev/null +++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/Models/PostgreSqlDatabaseResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.PostgreSql +{ + public partial class PostgreSqlDatabaseResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + PostgreSqlDatabaseData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + PostgreSqlDatabaseData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/Models/PostgreSqlFirewallRuleResource.Serialization.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/Models/PostgreSqlFirewallRuleResource.Serialization.cs new file mode 100644 index 000000000000..b15d6e700e2d --- /dev/null +++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/Models/PostgreSqlFirewallRuleResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.PostgreSql +{ + public partial class PostgreSqlFirewallRuleResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + PostgreSqlFirewallRuleData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + PostgreSqlFirewallRuleData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/Models/PostgreSqlPrivateEndpointConnectionResource.Serialization.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/Models/PostgreSqlPrivateEndpointConnectionResource.Serialization.cs new file mode 100644 index 000000000000..94514332b049 --- /dev/null +++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/Models/PostgreSqlPrivateEndpointConnectionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.PostgreSql +{ + public partial class PostgreSqlPrivateEndpointConnectionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + PostgreSqlPrivateEndpointConnectionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + PostgreSqlPrivateEndpointConnectionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/Models/PostgreSqlPrivateLinkResource.Serialization.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/Models/PostgreSqlPrivateLinkResource.Serialization.cs new file mode 100644 index 000000000000..c48c2960451c --- /dev/null +++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/Models/PostgreSqlPrivateLinkResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.PostgreSql +{ + public partial class PostgreSqlPrivateLinkResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + PostgreSqlPrivateLinkResourceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + PostgreSqlPrivateLinkResourceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/Models/PostgreSqlServerAdministratorResource.Serialization.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/Models/PostgreSqlServerAdministratorResource.Serialization.cs new file mode 100644 index 000000000000..16c1c802e2f4 --- /dev/null +++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/Models/PostgreSqlServerAdministratorResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.PostgreSql +{ + public partial class PostgreSqlServerAdministratorResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + PostgreSqlServerAdministratorData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + PostgreSqlServerAdministratorData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/Models/PostgreSqlServerKeyResource.Serialization.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/Models/PostgreSqlServerKeyResource.Serialization.cs new file mode 100644 index 000000000000..233efc5c18ae --- /dev/null +++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/Models/PostgreSqlServerKeyResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.PostgreSql +{ + public partial class PostgreSqlServerKeyResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + PostgreSqlServerKeyData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + PostgreSqlServerKeyData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/Models/PostgreSqlServerResource.Serialization.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/Models/PostgreSqlServerResource.Serialization.cs new file mode 100644 index 000000000000..3d77f90ce4bb --- /dev/null +++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/Models/PostgreSqlServerResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.PostgreSql +{ + public partial class PostgreSqlServerResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + PostgreSqlServerData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + PostgreSqlServerData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/Models/PostgreSqlServerSecurityAlertPolicyResource.Serialization.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/Models/PostgreSqlServerSecurityAlertPolicyResource.Serialization.cs new file mode 100644 index 000000000000..e956cd7eec12 --- /dev/null +++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/Models/PostgreSqlServerSecurityAlertPolicyResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.PostgreSql +{ + public partial class PostgreSqlServerSecurityAlertPolicyResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + PostgreSqlServerSecurityAlertPolicyData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + PostgreSqlServerSecurityAlertPolicyData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/Models/PostgreSqlVirtualNetworkRuleResource.Serialization.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/Models/PostgreSqlVirtualNetworkRuleResource.Serialization.cs new file mode 100644 index 000000000000..278246d0259b --- /dev/null +++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/Models/PostgreSqlVirtualNetworkRuleResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.PostgreSql +{ + public partial class PostgreSqlVirtualNetworkRuleResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + PostgreSqlVirtualNetworkRuleData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + PostgreSqlVirtualNetworkRuleData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/RestOperations/CheckNameAvailabilityRestOperations.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/RestOperations/CheckNameAvailabilityRestOperations.cs index ca575e92d6c4..e9ff24e6ecd3 100644 --- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/RestOperations/CheckNameAvailabilityRestOperations.cs +++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/RestOperations/CheckNameAvailabilityRestOperations.cs @@ -37,6 +37,17 @@ public CheckNameAvailabilityRestOperations(HttpPipeline pipeline, string applica _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateExecuteRequestUri(string subscriptionId, PostgreSqlNameAvailabilityContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.DBforPostgreSQL/checkNameAvailability", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateExecuteRequest(string subscriptionId, PostgreSqlNameAvailabilityContent content) { var message = _pipeline.CreateMessage(); diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/RestOperations/ConfigurationsRestOperations.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/RestOperations/ConfigurationsRestOperations.cs index 44b6be3df1e6..8519826740ce 100644 --- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/RestOperations/ConfigurationsRestOperations.cs +++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/RestOperations/ConfigurationsRestOperations.cs @@ -37,6 +37,22 @@ public ConfigurationsRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serverName, string configurationName, PostgreSqlConfigurationData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DBforPostgreSQL/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/configurations/", false); + uri.AppendPath(configurationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serverName, string configurationName, PostgreSqlConfigurationData data) { var message = _pipeline.CreateMessage(); @@ -121,6 +137,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serverName, string configurationName) + { + 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.DBforPostgreSQL/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/configurations/", false); + uri.AppendPath(configurationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serverName, string configurationName) { var message = _pipeline.CreateMessage(); @@ -209,6 +241,21 @@ public Response Get(string subscriptionId, string r } } + internal RequestUriBuilder CreateListByServerRequestUri(string subscriptionId, string resourceGroupName, string serverName) + { + 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.DBforPostgreSQL/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/configurations", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByServerRequest(string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/RestOperations/DatabasesRestOperations.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/RestOperations/DatabasesRestOperations.cs index 3f3dd5a1f89a..9ba956810ee2 100644 --- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/RestOperations/DatabasesRestOperations.cs +++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/RestOperations/DatabasesRestOperations.cs @@ -37,6 +37,22 @@ public DatabasesRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName, PostgreSqlDatabaseData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DBforPostgreSQL/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName, PostgreSqlDatabaseData data) { var message = _pipeline.CreateMessage(); @@ -123,6 +139,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName) + { + 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.DBforPostgreSQL/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName) { var message = _pipeline.CreateMessage(); @@ -201,6 +233,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName) + { + 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.DBforPostgreSQL/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName) { var message = _pipeline.CreateMessage(); @@ -289,6 +337,21 @@ public Response Get(string subscriptionId, string resour } } + internal RequestUriBuilder CreateListByServerRequestUri(string subscriptionId, string resourceGroupName, string serverName) + { + 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.DBforPostgreSQL/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByServerRequest(string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/RestOperations/FirewallRulesRestOperations.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/RestOperations/FirewallRulesRestOperations.cs index 1b2323f01cdf..53657224e0a6 100644 --- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/RestOperations/FirewallRulesRestOperations.cs +++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/RestOperations/FirewallRulesRestOperations.cs @@ -37,6 +37,22 @@ public FirewallRulesRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serverName, string firewallRuleName, PostgreSqlFirewallRuleData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DBforPostgreSQL/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/firewallRules/", false); + uri.AppendPath(firewallRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serverName, string firewallRuleName, PostgreSqlFirewallRuleData data) { var message = _pipeline.CreateMessage(); @@ -123,6 +139,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string serverName, string firewallRuleName) + { + 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.DBforPostgreSQL/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/firewallRules/", false); + uri.AppendPath(firewallRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string serverName, string firewallRuleName) { var message = _pipeline.CreateMessage(); @@ -201,6 +233,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serverName, string firewallRuleName) + { + 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.DBforPostgreSQL/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/firewallRules/", false); + uri.AppendPath(firewallRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serverName, string firewallRuleName) { var message = _pipeline.CreateMessage(); @@ -289,6 +337,21 @@ public Response Get(string subscriptionId, string re } } + internal RequestUriBuilder CreateListByServerRequestUri(string subscriptionId, string resourceGroupName, string serverName) + { + 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.DBforPostgreSQL/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/firewallRules", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByServerRequest(string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/RestOperations/LocationBasedPerformanceTierRestOperations.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/RestOperations/LocationBasedPerformanceTierRestOperations.cs index 82b57ad14636..ac09d15a791e 100644 --- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/RestOperations/LocationBasedPerformanceTierRestOperations.cs +++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/RestOperations/LocationBasedPerformanceTierRestOperations.cs @@ -37,6 +37,19 @@ public LocationBasedPerformanceTierRestOperations(HttpPipeline pipeline, string _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, AzureLocation locationName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.DBforPostgreSQL/locations/", false); + uri.AppendPath(locationName, true); + uri.AppendPath("/performanceTiers", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, AzureLocation locationName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/RestOperations/LogFilesRestOperations.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/RestOperations/LogFilesRestOperations.cs index b0abf963eb43..24413214a499 100644 --- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/RestOperations/LogFilesRestOperations.cs +++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/RestOperations/LogFilesRestOperations.cs @@ -37,6 +37,21 @@ public LogFilesRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByServerRequestUri(string subscriptionId, string resourceGroupName, string serverName) + { + 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.DBforPostgreSQL/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/logFiles", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByServerRequest(string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs index 7a736cbb123c..c64257bcd468 100644 --- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs +++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs @@ -37,6 +37,22 @@ public PrivateEndpointConnectionsRestOperations(HttpPipeline pipeline, string ap _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serverName, string privateEndpointConnectionName) + { + 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.DBforPostgreSQL/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serverName, string privateEndpointConnectionName) { var message = _pipeline.CreateMessage(); @@ -125,6 +141,22 @@ public Response Get(string subscription } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serverName, string privateEndpointConnectionName, PostgreSqlPrivateEndpointConnectionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DBforPostgreSQL/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serverName, string privateEndpointConnectionName, PostgreSqlPrivateEndpointConnectionData data) { var message = _pipeline.CreateMessage(); @@ -209,6 +241,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string serverName, string privateEndpointConnectionName) + { + 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.DBforPostgreSQL/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string serverName, string privateEndpointConnectionName) { var message = _pipeline.CreateMessage(); @@ -287,6 +335,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateUpdateTagsRequestUri(string subscriptionId, string resourceGroupName, string serverName, string privateEndpointConnectionName, PostgreSqlPrivateEndpointConnectionPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DBforPostgreSQL/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateTagsRequest(string subscriptionId, string resourceGroupName, string serverName, string privateEndpointConnectionName, PostgreSqlPrivateEndpointConnectionPatch patch) { var message = _pipeline.CreateMessage(); @@ -369,6 +433,21 @@ public Response UpdateTags(string subscriptionId, string resourceGroupName, stri } } + internal RequestUriBuilder CreateListByServerRequestUri(string subscriptionId, string resourceGroupName, string serverName) + { + 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.DBforPostgreSQL/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/privateEndpointConnections", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByServerRequest(string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); @@ -448,6 +527,14 @@ public Response ListByServer(stri } } + internal RequestUriBuilder CreateListByServerNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serverName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByServerNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs index 832ad6f3c14c..f03e216dca88 100644 --- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs +++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs @@ -37,6 +37,21 @@ public PrivateLinkResourcesRestOperations(HttpPipeline pipeline, string applicat _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByServerRequestUri(string subscriptionId, string resourceGroupName, string serverName) + { + 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.DBforPostgreSQL/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/privateLinkResources", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByServerRequest(string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByServer(string sub } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serverName, string groupName) + { + 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.DBforPostgreSQL/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/privateLinkResources/", false); + uri.AppendPath(groupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serverName, string groupName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,14 @@ public Response Get(string subscriptionId, st } } + internal RequestUriBuilder CreateListByServerNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serverName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByServerNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/RestOperations/RecoverableServersRestOperations.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/RestOperations/RecoverableServersRestOperations.cs index 147cc92f282c..f2a7324e477d 100644 --- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/RestOperations/RecoverableServersRestOperations.cs +++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/RestOperations/RecoverableServersRestOperations.cs @@ -37,6 +37,21 @@ public RecoverableServersRestOperations(HttpPipeline pipeline, string applicatio _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serverName) + { + 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.DBforPostgreSQL/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/recoverableServers", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/RestOperations/ReplicasRestOperations.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/RestOperations/ReplicasRestOperations.cs index 40c7e983b5ba..0849df3bbbf2 100644 --- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/RestOperations/ReplicasRestOperations.cs +++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/RestOperations/ReplicasRestOperations.cs @@ -37,6 +37,21 @@ public ReplicasRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByServerRequestUri(string subscriptionId, string resourceGroupName, string serverName) + { + 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.DBforPostgreSQL/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/replicas", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByServerRequest(string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/RestOperations/ServerAdministratorsRestOperations.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/RestOperations/ServerAdministratorsRestOperations.cs index 35889bbfc500..09b79e65a242 100644 --- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/RestOperations/ServerAdministratorsRestOperations.cs +++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/RestOperations/ServerAdministratorsRestOperations.cs @@ -37,6 +37,21 @@ public ServerAdministratorsRestOperations(HttpPipeline pipeline, string applicat _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serverName) + { + 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.DBforPostgreSQL/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/administrators/activeDirectory", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); @@ -120,6 +135,21 @@ public Response Get(string subscriptionId, st } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serverName, PostgreSqlServerAdministratorData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DBforPostgreSQL/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/administrators/activeDirectory", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serverName, PostgreSqlServerAdministratorData data) { var message = _pipeline.CreateMessage(); @@ -199,6 +229,21 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string serverName) + { + 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.DBforPostgreSQL/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/administrators/activeDirectory", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); @@ -272,6 +317,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string serverName) + { + 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.DBforPostgreSQL/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/administrators", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/RestOperations/ServerBasedPerformanceTierRestOperations.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/RestOperations/ServerBasedPerformanceTierRestOperations.cs index cac6805349d1..e4caa1e1788b 100644 --- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/RestOperations/ServerBasedPerformanceTierRestOperations.cs +++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/RestOperations/ServerBasedPerformanceTierRestOperations.cs @@ -37,6 +37,21 @@ public ServerBasedPerformanceTierRestOperations(HttpPipeline pipeline, string ap _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string serverName) + { + 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.DBforPostgreSQL/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/performanceTiers", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/RestOperations/ServerKeysRestOperations.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/RestOperations/ServerKeysRestOperations.cs index 091650ec45b2..afec9101c304 100644 --- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/RestOperations/ServerKeysRestOperations.cs +++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/RestOperations/ServerKeysRestOperations.cs @@ -37,6 +37,21 @@ public ServerKeysRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string serverName) + { + 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.DBforPostgreSQL/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/keys", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response List(string subscriptionId, strin } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serverName, string keyName) + { + 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.DBforPostgreSQL/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/keys/", false); + uri.AppendPath(keyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serverName, string keyName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscriptionId, string resou } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serverName, string keyName, PostgreSqlServerKeyData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DBforPostgreSQL/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/keys/", false); + uri.AppendPath(keyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serverName, string keyName, PostgreSqlServerKeyData data) { var message = _pipeline.CreateMessage(); @@ -288,6 +335,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string serverName, string keyName) + { + 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.DBforPostgreSQL/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/keys/", false); + uri.AppendPath(keyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string serverName, string keyName) { var message = _pipeline.CreateMessage(); @@ -366,6 +429,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serverName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/RestOperations/ServerParametersRestOperations.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/RestOperations/ServerParametersRestOperations.cs index 8915733af1ee..eaed3fceaae7 100644 --- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/RestOperations/ServerParametersRestOperations.cs +++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/RestOperations/ServerParametersRestOperations.cs @@ -36,6 +36,21 @@ public ServerParametersRestOperations(HttpPipeline pipeline, string applicationI _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListUpdateConfigurationsRequestUri(string subscriptionId, string resourceGroupName, string serverName, PostgreSqlConfigurationList value) + { + 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.DBforPostgreSQL/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/updateConfigurations", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListUpdateConfigurationsRequest(string subscriptionId, string resourceGroupName, string serverName, PostgreSqlConfigurationList value) { var message = _pipeline.CreateMessage(); diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/RestOperations/ServerSecurityAlertPoliciesRestOperations.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/RestOperations/ServerSecurityAlertPoliciesRestOperations.cs index 54997ee35a9f..f78aa02d4e13 100644 --- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/RestOperations/ServerSecurityAlertPoliciesRestOperations.cs +++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/RestOperations/ServerSecurityAlertPoliciesRestOperations.cs @@ -37,6 +37,22 @@ public ServerSecurityAlertPoliciesRestOperations(HttpPipeline pipeline, string a _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serverName, PostgreSqlSecurityAlertPolicyName securityAlertPolicyName) + { + 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.DBforPostgreSQL/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/securityAlertPolicies/", false); + uri.AppendPath(securityAlertPolicyName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serverName, PostgreSqlSecurityAlertPolicyName securityAlertPolicyName) { var message = _pipeline.CreateMessage(); @@ -123,6 +139,22 @@ public Response Get(string subscription } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serverName, PostgreSqlSecurityAlertPolicyName securityAlertPolicyName, PostgreSqlServerSecurityAlertPolicyData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DBforPostgreSQL/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/securityAlertPolicies/", false); + uri.AppendPath(securityAlertPolicyName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serverName, PostgreSqlSecurityAlertPolicyName securityAlertPolicyName, PostgreSqlServerSecurityAlertPolicyData data) { var message = _pipeline.CreateMessage(); @@ -205,6 +237,21 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateListByServerRequestUri(string subscriptionId, string resourceGroupName, string serverName) + { + 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.DBforPostgreSQL/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/securityAlertPolicies", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByServerRequest(string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); @@ -284,6 +331,14 @@ public Response ListByServer(stri } } + internal RequestUriBuilder CreateListByServerNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serverName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByServerNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/RestOperations/ServersRestOperations.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/RestOperations/ServersRestOperations.cs index 29ed6807cfbb..5c5073cc3930 100644 --- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/RestOperations/ServersRestOperations.cs +++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/RestOperations/ServersRestOperations.cs @@ -37,6 +37,20 @@ public ServersRestOperations(HttpPipeline pipeline, string applicationId, Uri en _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string serverName, PostgreSqlServerCreateOrUpdateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DBforPostgreSQL/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string serverName, PostgreSqlServerCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); @@ -117,6 +131,20 @@ public Response Create(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string serverName, PostgreSqlServerPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DBforPostgreSQL/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string serverName, PostgreSqlServerPatch patch) { var message = _pipeline.CreateMessage(); @@ -195,6 +223,20 @@ public Response Update(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string serverName) + { + 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.DBforPostgreSQL/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); @@ -267,6 +309,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serverName) + { + 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.DBforPostgreSQL/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); @@ -349,6 +405,19 @@ public Response Get(string subscriptionId, string resource } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.DBforPostgreSQL/servers", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -422,6 +491,17 @@ public Response ListByResourceGroup(string subscript } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.DBforPostgreSQL/servers", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -489,6 +569,21 @@ public Response List(string subscriptionId, Cancella } } + internal RequestUriBuilder CreateRestartRequestUri(string subscriptionId, string resourceGroupName, string serverName) + { + 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.DBforPostgreSQL/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/restart", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRestartRequest(string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/RestOperations/VirtualNetworkRulesRestOperations.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/RestOperations/VirtualNetworkRulesRestOperations.cs index 97f83ed22843..d837448a1437 100644 --- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/RestOperations/VirtualNetworkRulesRestOperations.cs +++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/RestOperations/VirtualNetworkRulesRestOperations.cs @@ -37,6 +37,22 @@ public VirtualNetworkRulesRestOperations(HttpPipeline pipeline, string applicati _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serverName, string virtualNetworkRuleName) + { + 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.DBforPostgreSQL/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/virtualNetworkRules/", false); + uri.AppendPath(virtualNetworkRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serverName, string virtualNetworkRuleName) { var message = _pipeline.CreateMessage(); @@ -125,6 +141,22 @@ public Response Get(string subscriptionId, str } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serverName, string virtualNetworkRuleName, PostgreSqlVirtualNetworkRuleData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DBforPostgreSQL/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/virtualNetworkRules/", false); + uri.AppendPath(virtualNetworkRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serverName, string virtualNetworkRuleName, PostgreSqlVirtualNetworkRuleData data) { var message = _pipeline.CreateMessage(); @@ -211,6 +243,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string serverName, string virtualNetworkRuleName) + { + 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.DBforPostgreSQL/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/virtualNetworkRules/", false); + uri.AppendPath(virtualNetworkRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string serverName, string virtualNetworkRuleName) { var message = _pipeline.CreateMessage(); @@ -288,6 +336,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListByServerRequestUri(string subscriptionId, string resourceGroupName, string serverName) + { + 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.DBforPostgreSQL/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/virtualNetworkRules", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByServerRequest(string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); @@ -367,6 +430,14 @@ public Response ListByServer(string subs } } + internal RequestUriBuilder CreateListByServerNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serverName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByServerNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/LongRunningOperation/FlexibleServersArmOperation.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/LongRunningOperation/FlexibleServersArmOperation.cs index 762b6e03aa78..851821906f4a 100644 --- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/LongRunningOperation/FlexibleServersArmOperation.cs +++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/LongRunningOperation/FlexibleServersArmOperation.cs @@ -20,21 +20,24 @@ internal class FlexibleServersArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of FlexibleServersArmOperation for mocking. protected FlexibleServersArmOperation() { } - internal FlexibleServersArmOperation(Response response) + internal FlexibleServersArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal FlexibleServersArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "FlexibleServersArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal FlexibleServersArmOperation(ClientDiagnostics clientDiagnostics, HttpPi public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/LongRunningOperation/FlexibleServersArmOperationOfT.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/LongRunningOperation/FlexibleServersArmOperationOfT.cs index 57d2e59721e3..7c38e3095a68 100644 --- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/LongRunningOperation/FlexibleServersArmOperationOfT.cs +++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/LongRunningOperation/FlexibleServersArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class FlexibleServersArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of FlexibleServersArmOperation for mocking. protected FlexibleServersArmOperation() { } - internal FlexibleServersArmOperation(Response response) + internal FlexibleServersArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal FlexibleServersArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "FlexibleServersArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal FlexibleServersArmOperation(IOperationSource source, ClientDiagnosti public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerActiveDirectoryAdministratorResource.Serialization.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerActiveDirectoryAdministratorResource.Serialization.cs new file mode 100644 index 000000000000..7859d0c9e552 --- /dev/null +++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerActiveDirectoryAdministratorResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.PostgreSql.FlexibleServers +{ + public partial class PostgreSqlFlexibleServerActiveDirectoryAdministratorResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + PostgreSqlFlexibleServerActiveDirectoryAdministratorData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + PostgreSqlFlexibleServerActiveDirectoryAdministratorData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerBackupResource.Serialization.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerBackupResource.Serialization.cs new file mode 100644 index 000000000000..e707a8712c15 --- /dev/null +++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerBackupResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.PostgreSql.FlexibleServers +{ + public partial class PostgreSqlFlexibleServerBackupResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + PostgreSqlFlexibleServerBackupData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + PostgreSqlFlexibleServerBackupData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerConfigurationResource.Serialization.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerConfigurationResource.Serialization.cs new file mode 100644 index 000000000000..ad47d9d2117f --- /dev/null +++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerConfigurationResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.PostgreSql.FlexibleServers +{ + public partial class PostgreSqlFlexibleServerConfigurationResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + PostgreSqlFlexibleServerConfigurationData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + PostgreSqlFlexibleServerConfigurationData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerDatabaseResource.Serialization.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerDatabaseResource.Serialization.cs new file mode 100644 index 000000000000..070afbfc4edf --- /dev/null +++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerDatabaseResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.PostgreSql.FlexibleServers +{ + public partial class PostgreSqlFlexibleServerDatabaseResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + PostgreSqlFlexibleServerDatabaseData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + PostgreSqlFlexibleServerDatabaseData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerFirewallRuleResource.Serialization.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerFirewallRuleResource.Serialization.cs new file mode 100644 index 000000000000..50b9b7b59f1f --- /dev/null +++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerFirewallRuleResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.PostgreSql.FlexibleServers +{ + public partial class PostgreSqlFlexibleServerFirewallRuleResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + PostgreSqlFlexibleServerFirewallRuleData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + PostgreSqlFlexibleServerFirewallRuleData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerResource.Serialization.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerResource.Serialization.cs new file mode 100644 index 000000000000..2d53607917cf --- /dev/null +++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.PostgreSql.FlexibleServers +{ + public partial class PostgreSqlFlexibleServerResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + PostgreSqlFlexibleServerData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + PostgreSqlFlexibleServerData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlLtrServerBackupOperationResource.Serialization.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlLtrServerBackupOperationResource.Serialization.cs new file mode 100644 index 000000000000..0689d2472894 --- /dev/null +++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlLtrServerBackupOperationResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.PostgreSql.FlexibleServers +{ + public partial class PostgreSqlLtrServerBackupOperationResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + PostgreSqlLtrServerBackupOperationData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + PostgreSqlLtrServerBackupOperationData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlMigrationResource.Serialization.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlMigrationResource.Serialization.cs new file mode 100644 index 000000000000..f9ad3e75446e --- /dev/null +++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlMigrationResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.PostgreSql.FlexibleServers +{ + public partial class PostgreSqlMigrationResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + PostgreSqlMigrationData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + PostgreSqlMigrationData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/PostgreSqlMigrationCollection.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/PostgreSqlMigrationCollection.cs index aae496167f6a..f13a785e0156 100644 --- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/PostgreSqlMigrationCollection.cs +++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/PostgreSqlMigrationCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> CreateOrUpd try { var response = await _postgreSqlMigrationMigrationsRestClient.CreateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, migrationName, data, cancellationToken).ConfigureAwait(false); - var operation = new FlexibleServersArmOperation(Response.FromValue(new PostgreSqlMigrationResource(Client, response), response.GetRawResponse())); + var uri = _postgreSqlMigrationMigrationsRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, migrationName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new FlexibleServersArmOperation(Response.FromValue(new PostgreSqlMigrationResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -140,7 +142,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUnti try { var response = _postgreSqlMigrationMigrationsRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, migrationName, data, cancellationToken); - var operation = new FlexibleServersArmOperation(Response.FromValue(new PostgreSqlMigrationResource(Client, response), response.GetRawResponse())); + var uri = _postgreSqlMigrationMigrationsRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, migrationName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new FlexibleServersArmOperation(Response.FromValue(new PostgreSqlMigrationResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/PostgreSqlMigrationResource.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/PostgreSqlMigrationResource.cs index d40921a7e9b0..818a4ae75178 100644 --- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/PostgreSqlMigrationResource.cs +++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/PostgreSqlMigrationResource.cs @@ -202,7 +202,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _postgreSqlMigrationMigrationsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new FlexibleServersArmOperation(response); + var uri = _postgreSqlMigrationMigrationsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new FlexibleServersArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -244,7 +246,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _postgreSqlMigrationMigrationsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new FlexibleServersArmOperation(response); + var uri = _postgreSqlMigrationMigrationsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new FlexibleServersArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/RestOperations/AdministratorsRestOperations.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/RestOperations/AdministratorsRestOperations.cs index b60c21870734..247184f3e4e2 100644 --- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/RestOperations/AdministratorsRestOperations.cs +++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/RestOperations/AdministratorsRestOperations.cs @@ -37,6 +37,22 @@ public AdministratorsRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string serverName, string objectId, PostgreSqlFlexibleServerActiveDirectoryAdministratorCreateOrUpdateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DBforPostgreSQL/flexibleServers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/administrators/", false); + uri.AppendPath(objectId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string serverName, string objectId, PostgreSqlFlexibleServerActiveDirectoryAdministratorCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); @@ -123,6 +139,22 @@ public Response Create(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string serverName, string objectId) + { + 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.DBforPostgreSQL/flexibleServers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/administrators/", false); + uri.AppendPath(objectId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string serverName, string objectId) { var message = _pipeline.CreateMessage(); @@ -201,6 +233,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serverName, string objectId) + { + 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.DBforPostgreSQL/flexibleServers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/administrators/", false); + uri.AppendPath(objectId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serverName, string objectId) { var message = _pipeline.CreateMessage(); @@ -289,6 +337,21 @@ public Response Get(st } } + internal RequestUriBuilder CreateListByServerRequestUri(string subscriptionId, string resourceGroupName, string serverName) + { + 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.DBforPostgreSQL/flexibleServers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/administrators", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByServerRequest(string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); @@ -368,6 +431,14 @@ public Response ListByServer(st } } + internal RequestUriBuilder CreateListByServerNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serverName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByServerNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/RestOperations/BackupsRestOperations.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/RestOperations/BackupsRestOperations.cs index 24c97d109613..6cee1e6cbc1f 100644 --- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/RestOperations/BackupsRestOperations.cs +++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/RestOperations/BackupsRestOperations.cs @@ -37,6 +37,22 @@ public BackupsRestOperations(HttpPipeline pipeline, string applicationId, Uri en _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serverName, string backupName) + { + 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.DBforPostgreSQL/flexibleServers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/backups/", false); + uri.AppendPath(backupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serverName, string backupName) { var message = _pipeline.CreateMessage(); @@ -125,6 +141,21 @@ public Response Get(string subscriptionId, s } } + internal RequestUriBuilder CreateListByServerRequestUri(string subscriptionId, string resourceGroupName, string serverName) + { + 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.DBforPostgreSQL/flexibleServers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/backups", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByServerRequest(string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,14 @@ public Response ListByServer(string su } } + internal RequestUriBuilder CreateListByServerNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serverName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByServerNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/RestOperations/CheckNameAvailabilityRestOperations.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/RestOperations/CheckNameAvailabilityRestOperations.cs index 56e3b08fb217..019e0ddcd09c 100644 --- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/RestOperations/CheckNameAvailabilityRestOperations.cs +++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/RestOperations/CheckNameAvailabilityRestOperations.cs @@ -37,6 +37,17 @@ public CheckNameAvailabilityRestOperations(HttpPipeline pipeline, string applica _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateExecuteRequestUri(string subscriptionId, PostgreSqlFlexibleServerNameAvailabilityContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.DBforPostgreSQL/checkNameAvailability", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateExecuteRequest(string subscriptionId, PostgreSqlFlexibleServerNameAvailabilityContent content) { var message = _pipeline.CreateMessage(); diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/RestOperations/CheckNameAvailabilityWithLocationRestOperations.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/RestOperations/CheckNameAvailabilityWithLocationRestOperations.cs index 4557d1628a9d..cbfbd53539dc 100644 --- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/RestOperations/CheckNameAvailabilityWithLocationRestOperations.cs +++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/RestOperations/CheckNameAvailabilityWithLocationRestOperations.cs @@ -37,6 +37,19 @@ public CheckNameAvailabilityWithLocationRestOperations(HttpPipeline pipeline, st _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateExecuteRequestUri(string subscriptionId, AzureLocation locationName, PostgreSqlFlexibleServerNameAvailabilityContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.DBforPostgreSQL/locations/", false); + uri.AppendPath(locationName, true); + uri.AppendPath("/checkNameAvailability", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateExecuteRequest(string subscriptionId, AzureLocation locationName, PostgreSqlFlexibleServerNameAvailabilityContent content) { var message = _pipeline.CreateMessage(); diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/RestOperations/ConfigurationsRestOperations.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/RestOperations/ConfigurationsRestOperations.cs index 7e9f0526f238..b4caf02f18c1 100644 --- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/RestOperations/ConfigurationsRestOperations.cs +++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/RestOperations/ConfigurationsRestOperations.cs @@ -37,6 +37,21 @@ public ConfigurationsRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByServerRequestUri(string subscriptionId, string resourceGroupName, string serverName) + { + 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.DBforPostgreSQL/flexibleServers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/configurations", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByServerRequest(string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByServer(st } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serverName, string configurationName) + { + 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.DBforPostgreSQL/flexibleServers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/configurations/", false); + uri.AppendPath(configurationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serverName, string configurationName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscripti } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string serverName, string configurationName, PostgreSqlFlexibleServerConfigurationData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DBforPostgreSQL/flexibleServers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/configurations/", false); + uri.AppendPath(configurationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string serverName, string configurationName, PostgreSqlFlexibleServerConfigurationData data) { var message = _pipeline.CreateMessage(); @@ -290,6 +337,22 @@ public Response Update(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreatePutRequestUri(string subscriptionId, string resourceGroupName, string serverName, string configurationName, PostgreSqlFlexibleServerConfigurationData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DBforPostgreSQL/flexibleServers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/configurations/", false); + uri.AppendPath(configurationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreatePutRequest(string subscriptionId, string resourceGroupName, string serverName, string configurationName, PostgreSqlFlexibleServerConfigurationData data) { var message = _pipeline.CreateMessage(); @@ -376,6 +439,14 @@ public Response Put(string subscriptionId, string resourceGroupName, string serv } } + internal RequestUriBuilder CreateListByServerNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serverName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByServerNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/RestOperations/DatabasesRestOperations.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/RestOperations/DatabasesRestOperations.cs index 07d19db093c5..f062f22c6cbd 100644 --- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/RestOperations/DatabasesRestOperations.cs +++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/RestOperations/DatabasesRestOperations.cs @@ -37,6 +37,22 @@ public DatabasesRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName, PostgreSqlFlexibleServerDatabaseData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DBforPostgreSQL/flexibleServers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName, PostgreSqlFlexibleServerDatabaseData data) { var message = _pipeline.CreateMessage(); @@ -123,6 +139,22 @@ public Response Create(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName) + { + 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.DBforPostgreSQL/flexibleServers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName) { var message = _pipeline.CreateMessage(); @@ -201,6 +233,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName) + { + 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.DBforPostgreSQL/flexibleServers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName) { var message = _pipeline.CreateMessage(); @@ -289,6 +337,21 @@ public Response Get(string subscriptionId, } } + internal RequestUriBuilder CreateListByServerRequestUri(string subscriptionId, string resourceGroupName, string serverName) + { + 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.DBforPostgreSQL/flexibleServers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByServerRequest(string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); @@ -368,6 +431,14 @@ public Response ListByServer(string } } + internal RequestUriBuilder CreateListByServerNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serverName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByServerNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/RestOperations/FirewallRulesRestOperations.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/RestOperations/FirewallRulesRestOperations.cs index f26065330d3c..2b074a3a447d 100644 --- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/RestOperations/FirewallRulesRestOperations.cs +++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/RestOperations/FirewallRulesRestOperations.cs @@ -37,6 +37,22 @@ public FirewallRulesRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serverName, string firewallRuleName, PostgreSqlFlexibleServerFirewallRuleData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DBforPostgreSQL/flexibleServers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/firewallRules/", false); + uri.AppendPath(firewallRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serverName, string firewallRuleName, PostgreSqlFlexibleServerFirewallRuleData data) { var message = _pipeline.CreateMessage(); @@ -123,6 +139,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string serverName, string firewallRuleName) + { + 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.DBforPostgreSQL/flexibleServers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/firewallRules/", false); + uri.AppendPath(firewallRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string serverName, string firewallRuleName) { var message = _pipeline.CreateMessage(); @@ -201,6 +233,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serverName, string firewallRuleName) + { + 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.DBforPostgreSQL/flexibleServers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/firewallRules/", false); + uri.AppendPath(firewallRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serverName, string firewallRuleName) { var message = _pipeline.CreateMessage(); @@ -289,6 +337,21 @@ public Response Get(string subscriptio } } + internal RequestUriBuilder CreateListByServerRequestUri(string subscriptionId, string resourceGroupName, string serverName) + { + 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.DBforPostgreSQL/flexibleServers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/firewallRules", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByServerRequest(string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); @@ -368,6 +431,14 @@ public Response ListByServer(str } } + internal RequestUriBuilder CreateListByServerNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serverName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByServerNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/RestOperations/FlexibleServerRestOperations.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/RestOperations/FlexibleServerRestOperations.cs index f5961f00015b..adb2155ca9d4 100644 --- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/RestOperations/FlexibleServerRestOperations.cs +++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/RestOperations/FlexibleServerRestOperations.cs @@ -37,6 +37,21 @@ public FlexibleServerRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateTriggerLtrPreBackupRequestUri(string subscriptionId, string resourceGroupName, string serverName, PostgreSqlFlexibleServerLtrPreBackupContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DBforPostgreSQL/flexibleServers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/ltrPreBackup", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateTriggerLtrPreBackupRequest(string subscriptionId, string resourceGroupName, string serverName, PostgreSqlFlexibleServerLtrPreBackupContent content) { var message = _pipeline.CreateMessage(); @@ -124,6 +139,21 @@ public Response TriggerLtrPreBackup( } } + internal RequestUriBuilder CreateStartLtrBackupRequestUri(string subscriptionId, string resourceGroupName, string serverName, PostgreSqlFlexibleServerLtrBackupContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DBforPostgreSQL/flexibleServers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/startLtrBackup", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStartLtrBackupRequest(string subscriptionId, string resourceGroupName, string serverName, PostgreSqlFlexibleServerLtrBackupContent content) { var message = _pipeline.CreateMessage(); diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/RestOperations/GetPrivateDnsZoneSuffixRestOperations.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/RestOperations/GetPrivateDnsZoneSuffixRestOperations.cs index 0e2433423951..e86154cd9dbf 100644 --- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/RestOperations/GetPrivateDnsZoneSuffixRestOperations.cs +++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/RestOperations/GetPrivateDnsZoneSuffixRestOperations.cs @@ -36,6 +36,15 @@ public GetPrivateDnsZoneSuffixRestOperations(HttpPipeline pipeline, string appli _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateExecuteRequestUri() + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.DBforPostgreSQL/getPrivateDnsZoneSuffix", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateExecuteRequest() { var message = _pipeline.CreateMessage(); diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/RestOperations/LocationBasedCapabilitiesRestOperations.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/RestOperations/LocationBasedCapabilitiesRestOperations.cs index 7b7a215fac03..1eb107af46e1 100644 --- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/RestOperations/LocationBasedCapabilitiesRestOperations.cs +++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/RestOperations/LocationBasedCapabilitiesRestOperations.cs @@ -37,6 +37,19 @@ public LocationBasedCapabilitiesRestOperations(HttpPipeline pipeline, string app _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateExecuteRequestUri(string subscriptionId, AzureLocation locationName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.DBforPostgreSQL/locations/", false); + uri.AppendPath(locationName, true); + uri.AppendPath("/capabilities", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateExecuteRequest(string subscriptionId, AzureLocation locationName) { var message = _pipeline.CreateMessage(); @@ -108,6 +121,14 @@ public Response Execute(string s } } + internal RequestUriBuilder CreateExecuteNextPageRequestUri(string nextLink, string subscriptionId, AzureLocation locationName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateExecuteNextPageRequest(string nextLink, string subscriptionId, AzureLocation locationName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/RestOperations/LogFilesRestOperations.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/RestOperations/LogFilesRestOperations.cs index 8be09a1077d8..6fc540719995 100644 --- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/RestOperations/LogFilesRestOperations.cs +++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/RestOperations/LogFilesRestOperations.cs @@ -37,6 +37,21 @@ public LogFilesRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByServerRequestUri(string subscriptionId, string resourceGroupName, string serverName) + { + 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.DBforPostgreSQL/flexibleServers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/logFiles", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByServerRequest(string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,14 @@ public Response ListByServer(string s } } + internal RequestUriBuilder CreateListByServerNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serverName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByServerNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/RestOperations/LtrBackupRestOperations.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/RestOperations/LtrBackupRestOperations.cs index 46e68320192c..18bf87614e16 100644 --- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/RestOperations/LtrBackupRestOperations.cs +++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/RestOperations/LtrBackupRestOperations.cs @@ -37,6 +37,22 @@ public LtrBackupRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serverName, string backupName) + { + 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.DBforPostgreSQL/flexibleServers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/ltrBackupOperations/", false); + uri.AppendPath(backupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serverName, string backupName) { var message = _pipeline.CreateMessage(); @@ -125,6 +141,21 @@ public Response Get(string subscriptionI } } + internal RequestUriBuilder CreateListByServerRequestUri(string subscriptionId, string resourceGroupName, string serverName) + { + 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.DBforPostgreSQL/flexibleServers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/ltrBackupOperations", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByServerRequest(string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,14 @@ public Response ListByServer(string subs } } + internal RequestUriBuilder CreateListByServerNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serverName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByServerNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/RestOperations/MigrationsRestOperations.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/RestOperations/MigrationsRestOperations.cs index 7c2f12af9598..cb4035b9045f 100644 --- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/RestOperations/MigrationsRestOperations.cs +++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/RestOperations/MigrationsRestOperations.cs @@ -37,6 +37,22 @@ public MigrationsRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string targetDbServerName, string migrationName, PostgreSqlMigrationData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DBforPostgreSQL/flexibleServers/", false); + uri.AppendPath(targetDbServerName, true); + uri.AppendPath("/migrations/", false); + uri.AppendPath(migrationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string targetDbServerName, string migrationName, PostgreSqlMigrationData data) { var message = _pipeline.CreateMessage(); @@ -131,6 +147,22 @@ public Response Create(string subscriptionId, string re } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string targetDbServerName, string migrationName) + { + 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.DBforPostgreSQL/flexibleServers/", false); + uri.AppendPath(targetDbServerName, true); + uri.AppendPath("/migrations/", false); + uri.AppendPath(migrationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string targetDbServerName, string migrationName) { var message = _pipeline.CreateMessage(); @@ -219,6 +251,22 @@ public Response Get(string subscriptionId, string resou } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string targetDbServerName, string migrationName, PostgreSqlMigrationPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DBforPostgreSQL/flexibleServers/", false); + uri.AppendPath(targetDbServerName, true); + uri.AppendPath("/migrations/", false); + uri.AppendPath(migrationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string targetDbServerName, string migrationName, PostgreSqlMigrationPatch patch) { var message = _pipeline.CreateMessage(); @@ -311,6 +359,22 @@ public Response Update(string subscriptionId, string re } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string targetDbServerName, string migrationName) + { + 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.DBforPostgreSQL/flexibleServers/", false); + uri.AppendPath(targetDbServerName, true); + uri.AppendPath("/migrations/", false); + uri.AppendPath(migrationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string targetDbServerName, string migrationName) { var message = _pipeline.CreateMessage(); @@ -387,6 +451,25 @@ public Response Delete(string subscriptionId, string resourceGroupName, string t } } + internal RequestUriBuilder CreateListByTargetServerRequestUri(string subscriptionId, string resourceGroupName, string targetDbServerName, PostgreSqlMigrationListFilter? migrationListFilter) + { + 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.DBforPostgreSQL/flexibleServers/", false); + uri.AppendPath(targetDbServerName, true); + uri.AppendPath("/migrations", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (migrationListFilter != null) + { + uri.AppendQuery("migrationListFilter", migrationListFilter.Value.ToString(), true); + } + return uri; + } + internal HttpMessage CreateListByTargetServerRequest(string subscriptionId, string resourceGroupName, string targetDbServerName, PostgreSqlMigrationListFilter? migrationListFilter) { var message = _pipeline.CreateMessage(); @@ -472,6 +555,14 @@ public Response ListByTargetServer(string } } + internal RequestUriBuilder CreateListByTargetServerNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string targetDbServerName, PostgreSqlMigrationListFilter? migrationListFilter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByTargetServerNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string targetDbServerName, PostgreSqlMigrationListFilter? migrationListFilter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/RestOperations/PostgreSQLManagementRestOperations.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/RestOperations/PostgreSQLManagementRestOperations.cs index 0b8ee5a600aa..0da628e54325 100644 --- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/RestOperations/PostgreSQLManagementRestOperations.cs +++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/RestOperations/PostgreSQLManagementRestOperations.cs @@ -37,6 +37,21 @@ public PostgreSQLManagementRestOperations(HttpPipeline pipeline, string applicat _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCheckMigrationNameAvailabilityRequestUri(string subscriptionId, string resourceGroupName, string targetDbServerName, PostgreSqlCheckMigrationNameAvailabilityContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DBforPostgreSQL/flexibleServers/", false); + uri.AppendPath(targetDbServerName, true); + uri.AppendPath("/checkMigrationNameAvailability", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCheckMigrationNameAvailabilityRequest(string subscriptionId, string resourceGroupName, string targetDbServerName, PostgreSqlCheckMigrationNameAvailabilityContent content) { var message = _pipeline.CreateMessage(); diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/RestOperations/ReplicasRestOperations.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/RestOperations/ReplicasRestOperations.cs index 0ed1a1ef9e05..59c10cf08f53 100644 --- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/RestOperations/ReplicasRestOperations.cs +++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/RestOperations/ReplicasRestOperations.cs @@ -37,6 +37,21 @@ public ReplicasRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByServerRequestUri(string subscriptionId, string resourceGroupName, string serverName) + { + 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.DBforPostgreSQL/flexibleServers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/replicas", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByServerRequest(string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/RestOperations/ServerCapabilitiesRestOperations.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/RestOperations/ServerCapabilitiesRestOperations.cs index bd7edd4e61fa..04c4b2611246 100644 --- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/RestOperations/ServerCapabilitiesRestOperations.cs +++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/RestOperations/ServerCapabilitiesRestOperations.cs @@ -37,6 +37,21 @@ public ServerCapabilitiesRestOperations(HttpPipeline pipeline, string applicatio _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string serverName) + { + 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.DBforPostgreSQL/flexibleServers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/capabilities", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,14 @@ public Response List(string subs } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serverName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/RestOperations/ServersRestOperations.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/RestOperations/ServersRestOperations.cs index 3165875dce95..bfa45db8f516 100644 --- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/RestOperations/ServersRestOperations.cs +++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/RestOperations/ServersRestOperations.cs @@ -37,6 +37,20 @@ public ServersRestOperations(HttpPipeline pipeline, string applicationId, Uri en _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string serverName, PostgreSqlFlexibleServerData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DBforPostgreSQL/flexibleServers/", false); + uri.AppendPath(serverName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string serverName, PostgreSqlFlexibleServerData data) { var message = _pipeline.CreateMessage(); @@ -117,6 +131,20 @@ public Response Create(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string serverName, PostgreSqlFlexibleServerPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DBforPostgreSQL/flexibleServers/", false); + uri.AppendPath(serverName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string serverName, PostgreSqlFlexibleServerPatch patch) { var message = _pipeline.CreateMessage(); @@ -195,6 +223,20 @@ public Response Update(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string serverName) + { + 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.DBforPostgreSQL/flexibleServers/", false); + uri.AppendPath(serverName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); @@ -267,6 +309,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serverName) + { + 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.DBforPostgreSQL/flexibleServers/", false); + uri.AppendPath(serverName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); @@ -349,6 +405,19 @@ public Response Get(string subscriptionId, string } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.DBforPostgreSQL/flexibleServers", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -422,6 +491,17 @@ public Response ListByResourceGroup(string s } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.DBforPostgreSQL/flexibleServers", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -489,6 +569,21 @@ public Response List(string subscriptionId, } } + internal RequestUriBuilder CreateRestartRequestUri(string subscriptionId, string resourceGroupName, string serverName, PostgreSqlFlexibleServerRestartParameter postgreSqlFlexibleServerRestartParameter) + { + 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.DBforPostgreSQL/flexibleServers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/restart", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRestartRequest(string subscriptionId, string resourceGroupName, string serverName, PostgreSqlFlexibleServerRestartParameter postgreSqlFlexibleServerRestartParameter) { var message = _pipeline.CreateMessage(); @@ -569,6 +664,21 @@ public Response Restart(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreateStartRequestUri(string subscriptionId, string resourceGroupName, string serverName) + { + 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.DBforPostgreSQL/flexibleServers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/start", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStartRequest(string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); @@ -640,6 +750,21 @@ public Response Start(string subscriptionId, string resourceGroupName, string se } } + internal RequestUriBuilder CreateStopRequestUri(string subscriptionId, string resourceGroupName, string serverName) + { + 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.DBforPostgreSQL/flexibleServers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/stop", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStopRequest(string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); @@ -711,6 +836,14 @@ public Response Stop(string subscriptionId, string resourceGroupName, string ser } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -783,6 +916,14 @@ public Response ListByResourceGroupNextPage( } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/RestOperations/VirtualNetworkSubnetUsageRestOperations.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/RestOperations/VirtualNetworkSubnetUsageRestOperations.cs index 78d0eab9e95f..ebbb34e3ea22 100644 --- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/RestOperations/VirtualNetworkSubnetUsageRestOperations.cs +++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/RestOperations/VirtualNetworkSubnetUsageRestOperations.cs @@ -37,6 +37,19 @@ public VirtualNetworkSubnetUsageRestOperations(HttpPipeline pipeline, string app _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateExecuteRequestUri(string subscriptionId, AzureLocation locationName, PostgreSqlFlexibleServerVirtualNetworkSubnetUsageParameter postgreSqlFlexibleServerVirtualNetworkSubnetUsageParameter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.DBforPostgreSQL/locations/", false); + uri.AppendPath(locationName, true); + uri.AppendPath("/checkVirtualNetworkSubnetUsage", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateExecuteRequest(string subscriptionId, AzureLocation locationName, PostgreSqlFlexibleServerVirtualNetworkSubnetUsageParameter postgreSqlFlexibleServerVirtualNetworkSubnetUsageParameter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/powerbidedicated/Azure.ResourceManager.PowerBIDedicated/src/Generated/AutoScaleVCoreCollection.cs b/sdk/powerbidedicated/Azure.ResourceManager.PowerBIDedicated/src/Generated/AutoScaleVCoreCollection.cs index bba3f9ff0f1a..98350d204aae 100644 --- a/sdk/powerbidedicated/Azure.ResourceManager.PowerBIDedicated/src/Generated/AutoScaleVCoreCollection.cs +++ b/sdk/powerbidedicated/Azure.ResourceManager.PowerBIDedicated/src/Generated/AutoScaleVCoreCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> CreateOrUpdateAs try { var response = await _autoScaleVCoreRestClient.CreateAsync(Id.SubscriptionId, Id.ResourceGroupName, vcoreName, data, cancellationToken).ConfigureAwait(false); - var operation = new PowerBIDedicatedArmOperation(Response.FromValue(new AutoScaleVCoreResource(Client, response), response.GetRawResponse())); + var uri = _autoScaleVCoreRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, vcoreName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new PowerBIDedicatedArmOperation(Response.FromValue(new AutoScaleVCoreResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -140,7 +142,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wai try { var response = _autoScaleVCoreRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, vcoreName, data, cancellationToken); - var operation = new PowerBIDedicatedArmOperation(Response.FromValue(new AutoScaleVCoreResource(Client, response), response.GetRawResponse())); + var uri = _autoScaleVCoreRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, vcoreName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new PowerBIDedicatedArmOperation(Response.FromValue(new AutoScaleVCoreResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/powerbidedicated/Azure.ResourceManager.PowerBIDedicated/src/Generated/AutoScaleVCoreResource.cs b/sdk/powerbidedicated/Azure.ResourceManager.PowerBIDedicated/src/Generated/AutoScaleVCoreResource.cs index 8e959f214fa6..c82978579941 100644 --- a/sdk/powerbidedicated/Azure.ResourceManager.PowerBIDedicated/src/Generated/AutoScaleVCoreResource.cs +++ b/sdk/powerbidedicated/Azure.ResourceManager.PowerBIDedicated/src/Generated/AutoScaleVCoreResource.cs @@ -202,7 +202,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _autoScaleVCoreRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new PowerBIDedicatedArmOperation(response); + var uri = _autoScaleVCoreRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new PowerBIDedicatedArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -244,7 +246,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _autoScaleVCoreRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); - var operation = new PowerBIDedicatedArmOperation(response); + var uri = _autoScaleVCoreRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new PowerBIDedicatedArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/powerbidedicated/Azure.ResourceManager.PowerBIDedicated/src/Generated/LongRunningOperation/PowerBIDedicatedArmOperation.cs b/sdk/powerbidedicated/Azure.ResourceManager.PowerBIDedicated/src/Generated/LongRunningOperation/PowerBIDedicatedArmOperation.cs index 0f3974a5c39b..ffaac3c58ded 100644 --- a/sdk/powerbidedicated/Azure.ResourceManager.PowerBIDedicated/src/Generated/LongRunningOperation/PowerBIDedicatedArmOperation.cs +++ b/sdk/powerbidedicated/Azure.ResourceManager.PowerBIDedicated/src/Generated/LongRunningOperation/PowerBIDedicatedArmOperation.cs @@ -20,21 +20,24 @@ internal class PowerBIDedicatedArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of PowerBIDedicatedArmOperation for mocking. protected PowerBIDedicatedArmOperation() { } - internal PowerBIDedicatedArmOperation(Response response) + internal PowerBIDedicatedArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal PowerBIDedicatedArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "PowerBIDedicatedArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal PowerBIDedicatedArmOperation(ClientDiagnostics clientDiagnostics, HttpP public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/powerbidedicated/Azure.ResourceManager.PowerBIDedicated/src/Generated/LongRunningOperation/PowerBIDedicatedArmOperationOfT.cs b/sdk/powerbidedicated/Azure.ResourceManager.PowerBIDedicated/src/Generated/LongRunningOperation/PowerBIDedicatedArmOperationOfT.cs index 59bea2442009..a60f197f1065 100644 --- a/sdk/powerbidedicated/Azure.ResourceManager.PowerBIDedicated/src/Generated/LongRunningOperation/PowerBIDedicatedArmOperationOfT.cs +++ b/sdk/powerbidedicated/Azure.ResourceManager.PowerBIDedicated/src/Generated/LongRunningOperation/PowerBIDedicatedArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class PowerBIDedicatedArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of PowerBIDedicatedArmOperation for mocking. protected PowerBIDedicatedArmOperation() { } - internal PowerBIDedicatedArmOperation(Response response) + internal PowerBIDedicatedArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal PowerBIDedicatedArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "PowerBIDedicatedArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal PowerBIDedicatedArmOperation(IOperationSource source, ClientDiagnost public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/powerbidedicated/Azure.ResourceManager.PowerBIDedicated/src/Generated/Models/AutoScaleVCoreResource.Serialization.cs b/sdk/powerbidedicated/Azure.ResourceManager.PowerBIDedicated/src/Generated/Models/AutoScaleVCoreResource.Serialization.cs new file mode 100644 index 000000000000..055e0647fca8 --- /dev/null +++ b/sdk/powerbidedicated/Azure.ResourceManager.PowerBIDedicated/src/Generated/Models/AutoScaleVCoreResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.PowerBIDedicated +{ + public partial class AutoScaleVCoreResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + AutoScaleVCoreData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + AutoScaleVCoreData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/powerbidedicated/Azure.ResourceManager.PowerBIDedicated/src/Generated/Models/DedicatedCapacityResource.Serialization.cs b/sdk/powerbidedicated/Azure.ResourceManager.PowerBIDedicated/src/Generated/Models/DedicatedCapacityResource.Serialization.cs new file mode 100644 index 000000000000..74da111f60e7 --- /dev/null +++ b/sdk/powerbidedicated/Azure.ResourceManager.PowerBIDedicated/src/Generated/Models/DedicatedCapacityResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.PowerBIDedicated +{ + public partial class DedicatedCapacityResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DedicatedCapacityData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DedicatedCapacityData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/powerbidedicated/Azure.ResourceManager.PowerBIDedicated/src/Generated/RestOperations/AutoScaleVCoresRestOperations.cs b/sdk/powerbidedicated/Azure.ResourceManager.PowerBIDedicated/src/Generated/RestOperations/AutoScaleVCoresRestOperations.cs index 006f3178c0ea..56bde1f370b1 100644 --- a/sdk/powerbidedicated/Azure.ResourceManager.PowerBIDedicated/src/Generated/RestOperations/AutoScaleVCoresRestOperations.cs +++ b/sdk/powerbidedicated/Azure.ResourceManager.PowerBIDedicated/src/Generated/RestOperations/AutoScaleVCoresRestOperations.cs @@ -37,6 +37,20 @@ public AutoScaleVCoresRestOperations(HttpPipeline pipeline, string applicationId _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string vcoreName) + { + 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.PowerBIDedicated/autoScaleVCores/", false); + uri.AppendPath(vcoreName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string vcoreName) { var message = _pipeline.CreateMessage(); @@ -119,6 +133,20 @@ public Response Get(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string vcoreName, AutoScaleVCoreData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.PowerBIDedicated/autoScaleVCores/", false); + uri.AppendPath(vcoreName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string vcoreName, AutoScaleVCoreData data) { var message = _pipeline.CreateMessage(); @@ -205,6 +233,20 @@ public Response Create(string subscriptionId, string resourc } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string vcoreName) + { + 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.PowerBIDedicated/autoScaleVCores/", false); + uri.AppendPath(vcoreName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string vcoreName) { var message = _pipeline.CreateMessage(); @@ -275,6 +317,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string v } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string vcoreName, AutoScaleVCorePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.PowerBIDedicated/autoScaleVCores/", false); + uri.AppendPath(vcoreName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string vcoreName, AutoScaleVCorePatch patch) { var message = _pipeline.CreateMessage(); @@ -361,6 +417,19 @@ public Response Update(string subscriptionId, string resourc } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.PowerBIDedicated/autoScaleVCores", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -434,6 +503,17 @@ public Response ListByResourceGroup(string subscriptio } } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.PowerBIDedicated/autoScaleVCores", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/powerbidedicated/Azure.ResourceManager.PowerBIDedicated/src/Generated/RestOperations/CapacitiesRestOperations.cs b/sdk/powerbidedicated/Azure.ResourceManager.PowerBIDedicated/src/Generated/RestOperations/CapacitiesRestOperations.cs index 61efb45a2f79..aaeaf6dc121b 100644 --- a/sdk/powerbidedicated/Azure.ResourceManager.PowerBIDedicated/src/Generated/RestOperations/CapacitiesRestOperations.cs +++ b/sdk/powerbidedicated/Azure.ResourceManager.PowerBIDedicated/src/Generated/RestOperations/CapacitiesRestOperations.cs @@ -37,6 +37,20 @@ public CapacitiesRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetDetailsRequestUri(string subscriptionId, string resourceGroupName, string dedicatedCapacityName) + { + 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.PowerBIDedicated/capacities/", false); + uri.AppendPath(dedicatedCapacityName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetDetailsRequest(string subscriptionId, string resourceGroupName, string dedicatedCapacityName) { var message = _pipeline.CreateMessage(); @@ -119,6 +133,20 @@ public Response GetDetails(string subscriptionId, string } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string dedicatedCapacityName, DedicatedCapacityData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.PowerBIDedicated/capacities/", false); + uri.AppendPath(dedicatedCapacityName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string dedicatedCapacityName, DedicatedCapacityData data) { var message = _pipeline.CreateMessage(); @@ -197,6 +225,20 @@ public Response Create(string subscriptionId, string resourceGroupName, string d } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string dedicatedCapacityName) + { + 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.PowerBIDedicated/capacities/", false); + uri.AppendPath(dedicatedCapacityName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string dedicatedCapacityName) { var message = _pipeline.CreateMessage(); @@ -269,6 +311,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string d } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string dedicatedCapacityName, DedicatedCapacityPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.PowerBIDedicated/capacities/", false); + uri.AppendPath(dedicatedCapacityName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string dedicatedCapacityName, DedicatedCapacityPatch patch) { var message = _pipeline.CreateMessage(); @@ -347,6 +403,21 @@ public Response Update(string subscriptionId, string resourceGroupName, string d } } + internal RequestUriBuilder CreateSuspendRequestUri(string subscriptionId, string resourceGroupName, string dedicatedCapacityName) + { + 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.PowerBIDedicated/capacities/", false); + uri.AppendPath(dedicatedCapacityName, true); + uri.AppendPath("/suspend", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateSuspendRequest(string subscriptionId, string resourceGroupName, string dedicatedCapacityName) { var message = _pipeline.CreateMessage(); @@ -418,6 +489,21 @@ public Response Suspend(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreateResumeRequestUri(string subscriptionId, string resourceGroupName, string dedicatedCapacityName) + { + 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.PowerBIDedicated/capacities/", false); + uri.AppendPath(dedicatedCapacityName, true); + uri.AppendPath("/resume", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateResumeRequest(string subscriptionId, string resourceGroupName, string dedicatedCapacityName) { var message = _pipeline.CreateMessage(); @@ -489,6 +575,19 @@ public Response Resume(string subscriptionId, string resourceGroupName, string d } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.PowerBIDedicated/capacities", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -562,6 +661,17 @@ public Response ListByResourceGroup(string subscriptionId, } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.PowerBIDedicated/capacities", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -629,6 +739,17 @@ public Response List(string subscriptionId, CancellationTok } } + internal RequestUriBuilder CreateListSkusRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.PowerBIDedicated/skus", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListSkusRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -696,6 +817,21 @@ public Response ListSkus(string subscription } } + internal RequestUriBuilder CreateListSkusForCapacityRequestUri(string subscriptionId, string resourceGroupName, string dedicatedCapacityName) + { + 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.PowerBIDedicated/capacities/", false); + uri.AppendPath(dedicatedCapacityName, true); + uri.AppendPath("/skus", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListSkusForCapacityRequest(string subscriptionId, string resourceGroupName, string dedicatedCapacityName) { var message = _pipeline.CreateMessage(); @@ -775,6 +911,19 @@ public Response ListSkusForCapacity(str } } + internal RequestUriBuilder CreateCheckNameAvailabilityRequestUri(string subscriptionId, AzureLocation location, CheckCapacityNameAvailabilityContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.PowerBIDedicated/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/checkNameAvailability", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCheckNameAvailabilityRequest(string subscriptionId, AzureLocation location, CheckCapacityNameAvailabilityContent content) { var message = _pipeline.CreateMessage(); diff --git a/sdk/privatedns/Azure.ResourceManager.PrivateDns/src/Generated/LongRunningOperation/PrivateDnsArmOperation.cs b/sdk/privatedns/Azure.ResourceManager.PrivateDns/src/Generated/LongRunningOperation/PrivateDnsArmOperation.cs index 2b6282265516..073407a303e2 100644 --- a/sdk/privatedns/Azure.ResourceManager.PrivateDns/src/Generated/LongRunningOperation/PrivateDnsArmOperation.cs +++ b/sdk/privatedns/Azure.ResourceManager.PrivateDns/src/Generated/LongRunningOperation/PrivateDnsArmOperation.cs @@ -20,21 +20,24 @@ internal class PrivateDnsArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of PrivateDnsArmOperation for mocking. protected PrivateDnsArmOperation() { } - internal PrivateDnsArmOperation(Response response) + internal PrivateDnsArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal PrivateDnsArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "PrivateDnsArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal PrivateDnsArmOperation(ClientDiagnostics clientDiagnostics, HttpPipelin public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/privatedns/Azure.ResourceManager.PrivateDns/src/Generated/LongRunningOperation/PrivateDnsArmOperationOfT.cs b/sdk/privatedns/Azure.ResourceManager.PrivateDns/src/Generated/LongRunningOperation/PrivateDnsArmOperationOfT.cs index 6a290d102319..ace95d30c6f7 100644 --- a/sdk/privatedns/Azure.ResourceManager.PrivateDns/src/Generated/LongRunningOperation/PrivateDnsArmOperationOfT.cs +++ b/sdk/privatedns/Azure.ResourceManager.PrivateDns/src/Generated/LongRunningOperation/PrivateDnsArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class PrivateDnsArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of PrivateDnsArmOperation for mocking. protected PrivateDnsArmOperation() { } - internal PrivateDnsArmOperation(Response response) + internal PrivateDnsArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal PrivateDnsArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "PrivateDnsArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal PrivateDnsArmOperation(IOperationSource source, ClientDiagnostics cl public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/privatedns/Azure.ResourceManager.PrivateDns/src/Generated/Models/VirtualNetworkLinkResource.Serialization.cs b/sdk/privatedns/Azure.ResourceManager.PrivateDns/src/Generated/Models/VirtualNetworkLinkResource.Serialization.cs new file mode 100644 index 000000000000..1a22cfc316ec --- /dev/null +++ b/sdk/privatedns/Azure.ResourceManager.PrivateDns/src/Generated/Models/VirtualNetworkLinkResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.PrivateDns +{ + public partial class VirtualNetworkLinkResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + VirtualNetworkLinkData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + VirtualNetworkLinkData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/privatedns/Azure.ResourceManager.PrivateDns/src/Generated/RestOperations/PrivateZonesRestOperations.cs b/sdk/privatedns/Azure.ResourceManager.PrivateDns/src/Generated/RestOperations/PrivateZonesRestOperations.cs index 5dba2f0df2ee..96e69ee7f004 100644 --- a/sdk/privatedns/Azure.ResourceManager.PrivateDns/src/Generated/RestOperations/PrivateZonesRestOperations.cs +++ b/sdk/privatedns/Azure.ResourceManager.PrivateDns/src/Generated/RestOperations/PrivateZonesRestOperations.cs @@ -37,6 +37,20 @@ public PrivateZonesRestOperations(HttpPipeline pipeline, string applicationId, U _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string privateZoneName, PrivateDnsZoneData data, ETag? ifMatch, string ifNoneMatch) + { + 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.Network/privateDnsZones/", false); + uri.AppendPath(privateZoneName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string privateZoneName, PrivateDnsZoneData data, ETag? ifMatch, string ifNoneMatch) { var message = _pipeline.CreateMessage(); @@ -129,6 +143,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string privateZoneName, PrivateDnsZoneData data, ETag? ifMatch) + { + 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.Network/privateDnsZones/", false); + uri.AppendPath(privateZoneName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string privateZoneName, PrivateDnsZoneData data, ETag? ifMatch) { var message = _pipeline.CreateMessage(); @@ -213,6 +241,20 @@ public Response Update(string subscriptionId, string resourceGroupName, string p } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string privateZoneName, ETag? ifMatch) + { + 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.Network/privateDnsZones/", false); + uri.AppendPath(privateZoneName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string privateZoneName, ETag? ifMatch) { var message = _pipeline.CreateMessage(); @@ -291,6 +333,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string p } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string privateZoneName) + { + 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.Network/privateDnsZones/", false); + uri.AppendPath(privateZoneName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string privateZoneName) { var message = _pipeline.CreateMessage(); @@ -373,6 +429,21 @@ public Response Get(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Network/privateDnsZones", false); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, int? top) { var message = _pipeline.CreateMessage(); @@ -446,6 +517,23 @@ public Response List(string subscriptionId, int? top = nu } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName, int? top) + { + 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.Network/privateDnsZones", false); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName, int? top) { var message = _pipeline.CreateMessage(); @@ -525,6 +613,14 @@ public Response ListByResourceGroup(string subscriptionId } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, int? top) { var message = _pipeline.CreateMessage(); @@ -595,6 +691,14 @@ public Response ListNextPage(string nextLink, string subs } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, int? top) { var message = _pipeline.CreateMessage(); diff --git a/sdk/privatedns/Azure.ResourceManager.PrivateDns/src/Generated/RestOperations/RecordSetsRestOperations.cs b/sdk/privatedns/Azure.ResourceManager.PrivateDns/src/Generated/RestOperations/RecordSetsRestOperations.cs index 86d36c5b0fd1..aeef4d6a101f 100644 --- a/sdk/privatedns/Azure.ResourceManager.PrivateDns/src/Generated/RestOperations/RecordSetsRestOperations.cs +++ b/sdk/privatedns/Azure.ResourceManager.PrivateDns/src/Generated/RestOperations/RecordSetsRestOperations.cs @@ -37,6 +37,24 @@ public RecordSetsRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string privateZoneName, RecordType recordType, string relativeRecordSetName, PrivateDnsRecordData data, ETag? ifMatch, string ifNoneMatch) + { + 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.Network/privateDnsZones/", false); + uri.AppendPath(privateZoneName, true); + uri.AppendPath("/", false); + uri.AppendPath(recordType.ToSerialString(), true); + uri.AppendPath("/", false); + uri.AppendPath(relativeRecordSetName, false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string privateZoneName, RecordType recordType, string relativeRecordSetName, PrivateDnsRecordData data, ETag? ifMatch, string ifNoneMatch) { var message = _pipeline.CreateMessage(); @@ -147,6 +165,24 @@ public Response CreateOrUpdate(string subscriptionId, stri } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string privateZoneName, RecordType recordType, string relativeRecordSetName, PrivateDnsRecordData data, ETag? ifMatch) + { + 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.Network/privateDnsZones/", false); + uri.AppendPath(privateZoneName, true); + uri.AppendPath("/", false); + uri.AppendPath(recordType.ToSerialString(), true); + uri.AppendPath("/", false); + uri.AppendPath(relativeRecordSetName, false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string privateZoneName, RecordType recordType, string relativeRecordSetName, PrivateDnsRecordData data, ETag? ifMatch) { var message = _pipeline.CreateMessage(); @@ -249,6 +285,24 @@ public Response Update(string subscriptionId, string resou } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string privateZoneName, RecordType recordType, string relativeRecordSetName, ETag? ifMatch) + { + 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.Network/privateDnsZones/", false); + uri.AppendPath(privateZoneName, true); + uri.AppendPath("/", false); + uri.AppendPath(recordType.ToSerialString(), true); + uri.AppendPath("/", false); + uri.AppendPath(relativeRecordSetName, false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string privateZoneName, RecordType recordType, string relativeRecordSetName, ETag? ifMatch) { var message = _pipeline.CreateMessage(); @@ -335,6 +389,24 @@ public Response Delete(string subscriptionId, string resourceGroupName, string p } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string privateZoneName, RecordType recordType, string relativeRecordSetName) + { + 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.Network/privateDnsZones/", false); + uri.AppendPath(privateZoneName, true); + uri.AppendPath("/", false); + uri.AppendPath(recordType.ToSerialString(), true); + uri.AppendPath("/", false); + uri.AppendPath(relativeRecordSetName, false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string privateZoneName, RecordType recordType, string relativeRecordSetName) { var message = _pipeline.CreateMessage(); @@ -427,6 +499,30 @@ public Response Get(string subscriptionId, string resource } } + internal RequestUriBuilder CreateListByTypeRequestUri(string subscriptionId, string resourceGroupName, string privateZoneName, RecordType recordType, int? top, string recordsetnamesuffix) + { + 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.Network/privateDnsZones/", false); + uri.AppendPath(privateZoneName, true); + uri.AppendPath("/", false); + uri.AppendPath(recordType.ToSerialString(), true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (recordsetnamesuffix != null) + { + uri.AppendQuery("$recordsetnamesuffix", recordsetnamesuffix, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByTypeRequest(string subscriptionId, string resourceGroupName, string privateZoneName, RecordType recordType, int? top, string recordsetnamesuffix) { var message = _pipeline.CreateMessage(); @@ -521,6 +617,29 @@ public Response ListByType(string subscriptionId, st } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string privateZoneName, int? top, string recordsetnamesuffix) + { + 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.Network/privateDnsZones/", false); + uri.AppendPath(privateZoneName, true); + uri.AppendPath("/ALL", false); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (recordsetnamesuffix != null) + { + uri.AppendQuery("$recordsetnamesuffix", recordsetnamesuffix, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string privateZoneName, int? top, string recordsetnamesuffix) { var message = _pipeline.CreateMessage(); @@ -612,6 +731,14 @@ public Response List(string subscriptionId, string r } } + internal RequestUriBuilder CreateListByTypeNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string privateZoneName, RecordType recordType, int? top, string recordsetnamesuffix) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByTypeNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string privateZoneName, RecordType recordType, int? top, string recordsetnamesuffix) { var message = _pipeline.CreateMessage(); @@ -694,6 +821,14 @@ public Response ListByTypeNextPage(string nextLink, } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string privateZoneName, int? top, string recordsetnamesuffix) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string privateZoneName, int? top, string recordsetnamesuffix) { var message = _pipeline.CreateMessage(); diff --git a/sdk/privatedns/Azure.ResourceManager.PrivateDns/src/Generated/RestOperations/VirtualNetworkLinksRestOperations.cs b/sdk/privatedns/Azure.ResourceManager.PrivateDns/src/Generated/RestOperations/VirtualNetworkLinksRestOperations.cs index b78f573cc866..e0037c0a3466 100644 --- a/sdk/privatedns/Azure.ResourceManager.PrivateDns/src/Generated/RestOperations/VirtualNetworkLinksRestOperations.cs +++ b/sdk/privatedns/Azure.ResourceManager.PrivateDns/src/Generated/RestOperations/VirtualNetworkLinksRestOperations.cs @@ -37,6 +37,22 @@ public VirtualNetworkLinksRestOperations(HttpPipeline pipeline, string applicati _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string privateZoneName, string virtualNetworkLinkName, VirtualNetworkLinkData data, ETag? ifMatch, string ifNoneMatch) + { + 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.Network/privateDnsZones/", false); + uri.AppendPath(privateZoneName, true); + uri.AppendPath("/virtualNetworkLinks/", false); + uri.AppendPath(virtualNetworkLinkName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string privateZoneName, string virtualNetworkLinkName, VirtualNetworkLinkData data, ETag? ifMatch, string ifNoneMatch) { var message = _pipeline.CreateMessage(); @@ -135,6 +151,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string privateZoneName, string virtualNetworkLinkName, VirtualNetworkLinkData data, ETag? ifMatch) + { + 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.Network/privateDnsZones/", false); + uri.AppendPath(privateZoneName, true); + uri.AppendPath("/virtualNetworkLinks/", false); + uri.AppendPath(virtualNetworkLinkName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string privateZoneName, string virtualNetworkLinkName, VirtualNetworkLinkData data, ETag? ifMatch) { var message = _pipeline.CreateMessage(); @@ -225,6 +257,22 @@ public Response Update(string subscriptionId, string resourceGroupName, string p } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string privateZoneName, string virtualNetworkLinkName, ETag? ifMatch) + { + 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.Network/privateDnsZones/", false); + uri.AppendPath(privateZoneName, true); + uri.AppendPath("/virtualNetworkLinks/", false); + uri.AppendPath(virtualNetworkLinkName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string privateZoneName, string virtualNetworkLinkName, ETag? ifMatch) { var message = _pipeline.CreateMessage(); @@ -309,6 +357,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string p } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string privateZoneName, string virtualNetworkLinkName) + { + 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.Network/privateDnsZones/", false); + uri.AppendPath(privateZoneName, true); + uri.AppendPath("/virtualNetworkLinks/", false); + uri.AppendPath(virtualNetworkLinkName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string privateZoneName, string virtualNetworkLinkName) { var message = _pipeline.CreateMessage(); @@ -397,6 +461,25 @@ public Response Get(string subscriptionId, string resour } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string privateZoneName, int? top) + { + 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.Network/privateDnsZones/", false); + uri.AppendPath(privateZoneName, true); + uri.AppendPath("/virtualNetworkLinks", false); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string privateZoneName, int? top) { var message = _pipeline.CreateMessage(); @@ -482,6 +565,14 @@ public Response List(string subscriptionId, string } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string privateZoneName, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string privateZoneName, int? top) { var message = _pipeline.CreateMessage(); diff --git a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/CustomRolloutCollection.cs b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/CustomRolloutCollection.cs index f76a10e07b02..5ef4d94e2b90 100644 --- a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/CustomRolloutCollection.cs +++ b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/CustomRolloutCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> CreateOrUpdateAsy try { var response = await _customRolloutRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.Name, rolloutName, data, cancellationToken).ConfigureAwait(false); - var operation = new ProviderHubArmOperation(Response.FromValue(new CustomRolloutResource(Client, response), response.GetRawResponse())); + var uri = _customRolloutRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.Name, rolloutName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ProviderHubArmOperation(Response.FromValue(new CustomRolloutResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wait try { var response = _customRolloutRestClient.CreateOrUpdate(Id.SubscriptionId, Id.Name, rolloutName, data, cancellationToken); - var operation = new ProviderHubArmOperation(Response.FromValue(new CustomRolloutResource(Client, response), response.GetRawResponse())); + var uri = _customRolloutRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.Name, rolloutName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ProviderHubArmOperation(Response.FromValue(new CustomRolloutResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/CustomRolloutResource.cs b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/CustomRolloutResource.cs index 05e2f7ce4354..d19809970fdd 100644 --- a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/CustomRolloutResource.cs +++ b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/CustomRolloutResource.cs @@ -203,7 +203,9 @@ public virtual async Task> UpdateAsync(WaitU try { var response = await _customRolloutRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new ProviderHubArmOperation(Response.FromValue(new CustomRolloutResource(Client, response), response.GetRawResponse())); + var uri = _customRolloutRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ProviderHubArmOperation(Response.FromValue(new CustomRolloutResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -249,7 +251,9 @@ public virtual ArmOperation Update(WaitUntil waitUntil, C try { var response = _customRolloutRestClient.CreateOrUpdate(Id.SubscriptionId, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new ProviderHubArmOperation(Response.FromValue(new CustomRolloutResource(Client, response), response.GetRawResponse())); + var uri = _customRolloutRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ProviderHubArmOperation(Response.FromValue(new CustomRolloutResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/DefaultRolloutResource.cs b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/DefaultRolloutResource.cs index cde6a96e2ac8..85f3d84bdb94 100644 --- a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/DefaultRolloutResource.cs +++ b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/DefaultRolloutResource.cs @@ -199,7 +199,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _defaultRolloutRestClient.DeleteAsync(Id.SubscriptionId, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new ProviderHubArmOperation(response); + var uri = _defaultRolloutRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ProviderHubArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -241,7 +243,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _defaultRolloutRestClient.Delete(Id.SubscriptionId, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new ProviderHubArmOperation(response); + var uri = _defaultRolloutRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ProviderHubArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/LongRunningOperation/ProviderHubArmOperation.cs b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/LongRunningOperation/ProviderHubArmOperation.cs index caccf50e0ede..5cdc2454626e 100644 --- a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/LongRunningOperation/ProviderHubArmOperation.cs +++ b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/LongRunningOperation/ProviderHubArmOperation.cs @@ -20,21 +20,24 @@ internal class ProviderHubArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of ProviderHubArmOperation for mocking. protected ProviderHubArmOperation() { } - internal ProviderHubArmOperation(Response response) + internal ProviderHubArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal ProviderHubArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "ProviderHubArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal ProviderHubArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeli public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/LongRunningOperation/ProviderHubArmOperationOfT.cs b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/LongRunningOperation/ProviderHubArmOperationOfT.cs index 67212659effd..b45fe8aeedde 100644 --- a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/LongRunningOperation/ProviderHubArmOperationOfT.cs +++ b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/LongRunningOperation/ProviderHubArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class ProviderHubArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of ProviderHubArmOperation for mocking. protected ProviderHubArmOperation() { } - internal ProviderHubArmOperation(Response response) + internal ProviderHubArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal ProviderHubArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "ProviderHubArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal ProviderHubArmOperation(IOperationSource source, ClientDiagnostics c public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/CustomRolloutResource.Serialization.cs b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/CustomRolloutResource.Serialization.cs new file mode 100644 index 000000000000..1c28560ad6a4 --- /dev/null +++ b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/CustomRolloutResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ProviderHub +{ + public partial class CustomRolloutResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + CustomRolloutData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + CustomRolloutData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/DefaultRolloutResource.Serialization.cs b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/DefaultRolloutResource.Serialization.cs new file mode 100644 index 000000000000..b16679338ae6 --- /dev/null +++ b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/DefaultRolloutResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ProviderHub +{ + public partial class DefaultRolloutResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DefaultRolloutData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DefaultRolloutData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/NestedResourceTypeFirstSkuResource.Serialization.cs b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/NestedResourceTypeFirstSkuResource.Serialization.cs new file mode 100644 index 000000000000..ec9fb5d4f73f --- /dev/null +++ b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/NestedResourceTypeFirstSkuResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ProviderHub +{ + public partial class NestedResourceTypeFirstSkuResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ResourceTypeSkuData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ResourceTypeSkuData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/NestedResourceTypeSecondSkuResource.Serialization.cs b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/NestedResourceTypeSecondSkuResource.Serialization.cs new file mode 100644 index 000000000000..54d5edee1a6d --- /dev/null +++ b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/NestedResourceTypeSecondSkuResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ProviderHub +{ + public partial class NestedResourceTypeSecondSkuResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ResourceTypeSkuData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ResourceTypeSkuData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/NestedResourceTypeThirdSkuResource.Serialization.cs b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/NestedResourceTypeThirdSkuResource.Serialization.cs new file mode 100644 index 000000000000..e71dbe5d1d0e --- /dev/null +++ b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/NestedResourceTypeThirdSkuResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ProviderHub +{ + public partial class NestedResourceTypeThirdSkuResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ResourceTypeSkuData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ResourceTypeSkuData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/NotificationRegistrationResource.Serialization.cs b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/NotificationRegistrationResource.Serialization.cs new file mode 100644 index 000000000000..51edf361f5da --- /dev/null +++ b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/NotificationRegistrationResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ProviderHub +{ + public partial class NotificationRegistrationResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + NotificationRegistrationData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + NotificationRegistrationData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/ProviderRegistrationResource.Serialization.cs b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/ProviderRegistrationResource.Serialization.cs new file mode 100644 index 000000000000..0b3f50e2f6b9 --- /dev/null +++ b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/ProviderRegistrationResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ProviderHub +{ + public partial class ProviderRegistrationResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ProviderRegistrationData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ProviderRegistrationData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/ResourceTypeRegistrationResource.Serialization.cs b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/ResourceTypeRegistrationResource.Serialization.cs new file mode 100644 index 000000000000..0ce0a213f11d --- /dev/null +++ b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/ResourceTypeRegistrationResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ProviderHub +{ + public partial class ResourceTypeRegistrationResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ResourceTypeRegistrationData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ResourceTypeRegistrationData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/ResourceTypeSkuResource.Serialization.cs b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/ResourceTypeSkuResource.Serialization.cs new file mode 100644 index 000000000000..df748175a72e --- /dev/null +++ b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/ResourceTypeSkuResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ProviderHub +{ + public partial class ResourceTypeSkuResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ResourceTypeSkuData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ResourceTypeSkuData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/NestedResourceTypeFirstSkuCollection.cs b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/NestedResourceTypeFirstSkuCollection.cs index 323bc9d0fadc..3a6776b6fdf7 100644 --- a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/NestedResourceTypeFirstSkuCollection.cs +++ b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/NestedResourceTypeFirstSkuCollection.cs @@ -95,7 +95,9 @@ public virtual async Task> Crea try { var response = await _nestedResourceTypeFirstSkuSkusRestClient.CreateOrUpdateNestedResourceTypeFirstAsync(Id.SubscriptionId, Id.Parent.Name, Id.Name, _nestedResourceTypeFirst, sku, data, cancellationToken).ConfigureAwait(false); - var operation = new ProviderHubArmOperation(Response.FromValue(new NestedResourceTypeFirstSkuResource(Client, response), response.GetRawResponse())); + var uri = _nestedResourceTypeFirstSkuSkusRestClient.CreateCreateOrUpdateNestedResourceTypeFirstRequestUri(Id.SubscriptionId, Id.Parent.Name, Id.Name, _nestedResourceTypeFirst, sku, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ProviderHubArmOperation(Response.FromValue(new NestedResourceTypeFirstSkuResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -144,7 +146,9 @@ public virtual ArmOperation CreateOrUpdate(W try { var response = _nestedResourceTypeFirstSkuSkusRestClient.CreateOrUpdateNestedResourceTypeFirst(Id.SubscriptionId, Id.Parent.Name, Id.Name, _nestedResourceTypeFirst, sku, data, cancellationToken); - var operation = new ProviderHubArmOperation(Response.FromValue(new NestedResourceTypeFirstSkuResource(Client, response), response.GetRawResponse())); + var uri = _nestedResourceTypeFirstSkuSkusRestClient.CreateCreateOrUpdateNestedResourceTypeFirstRequestUri(Id.SubscriptionId, Id.Parent.Name, Id.Name, _nestedResourceTypeFirst, sku, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ProviderHubArmOperation(Response.FromValue(new NestedResourceTypeFirstSkuResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/NestedResourceTypeFirstSkuResource.cs b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/NestedResourceTypeFirstSkuResource.cs index 86583b131d2b..1f8aa7b880f4 100644 --- a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/NestedResourceTypeFirstSkuResource.cs +++ b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/NestedResourceTypeFirstSkuResource.cs @@ -201,7 +201,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _nestedResourceTypeFirstSkuSkusRestClient.DeleteNestedResourceTypeFirstAsync(Id.SubscriptionId, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new ProviderHubArmOperation(response); + var uri = _nestedResourceTypeFirstSkuSkusRestClient.CreateDeleteNestedResourceTypeFirstRequestUri(Id.SubscriptionId, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ProviderHubArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -243,7 +245,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _nestedResourceTypeFirstSkuSkusRestClient.DeleteNestedResourceTypeFirst(Id.SubscriptionId, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new ProviderHubArmOperation(response); + var uri = _nestedResourceTypeFirstSkuSkusRestClient.CreateDeleteNestedResourceTypeFirstRequestUri(Id.SubscriptionId, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ProviderHubArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -289,7 +293,9 @@ public virtual async Task> Upda try { var response = await _nestedResourceTypeFirstSkuSkusRestClient.CreateOrUpdateNestedResourceTypeFirstAsync(Id.SubscriptionId, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new ProviderHubArmOperation(Response.FromValue(new NestedResourceTypeFirstSkuResource(Client, response), response.GetRawResponse())); + var uri = _nestedResourceTypeFirstSkuSkusRestClient.CreateCreateOrUpdateNestedResourceTypeFirstRequestUri(Id.SubscriptionId, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ProviderHubArmOperation(Response.FromValue(new NestedResourceTypeFirstSkuResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -335,7 +341,9 @@ public virtual ArmOperation Update(WaitUntil try { var response = _nestedResourceTypeFirstSkuSkusRestClient.CreateOrUpdateNestedResourceTypeFirst(Id.SubscriptionId, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new ProviderHubArmOperation(Response.FromValue(new NestedResourceTypeFirstSkuResource(Client, response), response.GetRawResponse())); + var uri = _nestedResourceTypeFirstSkuSkusRestClient.CreateCreateOrUpdateNestedResourceTypeFirstRequestUri(Id.SubscriptionId, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ProviderHubArmOperation(Response.FromValue(new NestedResourceTypeFirstSkuResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/NestedResourceTypeSecondSkuCollection.cs b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/NestedResourceTypeSecondSkuCollection.cs index 6ce011789326..3f7d860bb04b 100644 --- a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/NestedResourceTypeSecondSkuCollection.cs +++ b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/NestedResourceTypeSecondSkuCollection.cs @@ -98,7 +98,9 @@ public virtual async Task> Cre try { var response = await _nestedResourceTypeSecondSkuSkusRestClient.CreateOrUpdateNestedResourceTypeSecondAsync(Id.SubscriptionId, Id.Parent.Name, Id.Name, _nestedResourceTypeFirst, _nestedResourceTypeSecond, sku, data, cancellationToken).ConfigureAwait(false); - var operation = new ProviderHubArmOperation(Response.FromValue(new NestedResourceTypeSecondSkuResource(Client, response), response.GetRawResponse())); + var uri = _nestedResourceTypeSecondSkuSkusRestClient.CreateCreateOrUpdateNestedResourceTypeSecondRequestUri(Id.SubscriptionId, Id.Parent.Name, Id.Name, _nestedResourceTypeFirst, _nestedResourceTypeSecond, sku, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ProviderHubArmOperation(Response.FromValue(new NestedResourceTypeSecondSkuResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -147,7 +149,9 @@ public virtual ArmOperation CreateOrUpdate( try { var response = _nestedResourceTypeSecondSkuSkusRestClient.CreateOrUpdateNestedResourceTypeSecond(Id.SubscriptionId, Id.Parent.Name, Id.Name, _nestedResourceTypeFirst, _nestedResourceTypeSecond, sku, data, cancellationToken); - var operation = new ProviderHubArmOperation(Response.FromValue(new NestedResourceTypeSecondSkuResource(Client, response), response.GetRawResponse())); + var uri = _nestedResourceTypeSecondSkuSkusRestClient.CreateCreateOrUpdateNestedResourceTypeSecondRequestUri(Id.SubscriptionId, Id.Parent.Name, Id.Name, _nestedResourceTypeFirst, _nestedResourceTypeSecond, sku, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ProviderHubArmOperation(Response.FromValue(new NestedResourceTypeSecondSkuResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/NestedResourceTypeSecondSkuResource.cs b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/NestedResourceTypeSecondSkuResource.cs index 45dc0482c6cc..ab4762508d60 100644 --- a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/NestedResourceTypeSecondSkuResource.cs +++ b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/NestedResourceTypeSecondSkuResource.cs @@ -202,7 +202,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _nestedResourceTypeSecondSkuSkusRestClient.DeleteNestedResourceTypeSecondAsync(Id.SubscriptionId, Id.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new ProviderHubArmOperation(response); + var uri = _nestedResourceTypeSecondSkuSkusRestClient.CreateDeleteNestedResourceTypeSecondRequestUri(Id.SubscriptionId, Id.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ProviderHubArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -244,7 +246,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _nestedResourceTypeSecondSkuSkusRestClient.DeleteNestedResourceTypeSecond(Id.SubscriptionId, Id.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new ProviderHubArmOperation(response); + var uri = _nestedResourceTypeSecondSkuSkusRestClient.CreateDeleteNestedResourceTypeSecondRequestUri(Id.SubscriptionId, Id.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ProviderHubArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -290,7 +294,9 @@ public virtual async Task> Upd try { var response = await _nestedResourceTypeSecondSkuSkusRestClient.CreateOrUpdateNestedResourceTypeSecondAsync(Id.SubscriptionId, Id.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new ProviderHubArmOperation(Response.FromValue(new NestedResourceTypeSecondSkuResource(Client, response), response.GetRawResponse())); + var uri = _nestedResourceTypeSecondSkuSkusRestClient.CreateCreateOrUpdateNestedResourceTypeSecondRequestUri(Id.SubscriptionId, Id.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ProviderHubArmOperation(Response.FromValue(new NestedResourceTypeSecondSkuResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -336,7 +342,9 @@ public virtual ArmOperation Update(WaitUnti try { var response = _nestedResourceTypeSecondSkuSkusRestClient.CreateOrUpdateNestedResourceTypeSecond(Id.SubscriptionId, Id.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new ProviderHubArmOperation(Response.FromValue(new NestedResourceTypeSecondSkuResource(Client, response), response.GetRawResponse())); + var uri = _nestedResourceTypeSecondSkuSkusRestClient.CreateCreateOrUpdateNestedResourceTypeSecondRequestUri(Id.SubscriptionId, Id.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ProviderHubArmOperation(Response.FromValue(new NestedResourceTypeSecondSkuResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/NestedResourceTypeThirdSkuCollection.cs b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/NestedResourceTypeThirdSkuCollection.cs index 6ed9d10df831..6456ec04c6d8 100644 --- a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/NestedResourceTypeThirdSkuCollection.cs +++ b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/NestedResourceTypeThirdSkuCollection.cs @@ -101,7 +101,9 @@ public virtual async Task> Crea try { var response = await _nestedResourceTypeThirdSkuSkusRestClient.CreateOrUpdateNestedResourceTypeThirdAsync(Id.SubscriptionId, Id.Parent.Name, Id.Name, _nestedResourceTypeFirst, _nestedResourceTypeSecond, _nestedResourceTypeThird, sku, data, cancellationToken).ConfigureAwait(false); - var operation = new ProviderHubArmOperation(Response.FromValue(new NestedResourceTypeThirdSkuResource(Client, response), response.GetRawResponse())); + var uri = _nestedResourceTypeThirdSkuSkusRestClient.CreateCreateOrUpdateNestedResourceTypeThirdRequestUri(Id.SubscriptionId, Id.Parent.Name, Id.Name, _nestedResourceTypeFirst, _nestedResourceTypeSecond, _nestedResourceTypeThird, sku, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ProviderHubArmOperation(Response.FromValue(new NestedResourceTypeThirdSkuResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -150,7 +152,9 @@ public virtual ArmOperation CreateOrUpdate(W try { var response = _nestedResourceTypeThirdSkuSkusRestClient.CreateOrUpdateNestedResourceTypeThird(Id.SubscriptionId, Id.Parent.Name, Id.Name, _nestedResourceTypeFirst, _nestedResourceTypeSecond, _nestedResourceTypeThird, sku, data, cancellationToken); - var operation = new ProviderHubArmOperation(Response.FromValue(new NestedResourceTypeThirdSkuResource(Client, response), response.GetRawResponse())); + var uri = _nestedResourceTypeThirdSkuSkusRestClient.CreateCreateOrUpdateNestedResourceTypeThirdRequestUri(Id.SubscriptionId, Id.Parent.Name, Id.Name, _nestedResourceTypeFirst, _nestedResourceTypeSecond, _nestedResourceTypeThird, sku, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ProviderHubArmOperation(Response.FromValue(new NestedResourceTypeThirdSkuResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/NestedResourceTypeThirdSkuResource.cs b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/NestedResourceTypeThirdSkuResource.cs index 9b937a686084..6b4e8859a410 100644 --- a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/NestedResourceTypeThirdSkuResource.cs +++ b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/NestedResourceTypeThirdSkuResource.cs @@ -203,7 +203,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _nestedResourceTypeThirdSkuSkusRestClient.DeleteNestedResourceTypeThirdAsync(Id.SubscriptionId, Id.Parent.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new ProviderHubArmOperation(response); + var uri = _nestedResourceTypeThirdSkuSkusRestClient.CreateDeleteNestedResourceTypeThirdRequestUri(Id.SubscriptionId, Id.Parent.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ProviderHubArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -245,7 +247,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _nestedResourceTypeThirdSkuSkusRestClient.DeleteNestedResourceTypeThird(Id.SubscriptionId, Id.Parent.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new ProviderHubArmOperation(response); + var uri = _nestedResourceTypeThirdSkuSkusRestClient.CreateDeleteNestedResourceTypeThirdRequestUri(Id.SubscriptionId, Id.Parent.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ProviderHubArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -291,7 +295,9 @@ public virtual async Task> Upda try { var response = await _nestedResourceTypeThirdSkuSkusRestClient.CreateOrUpdateNestedResourceTypeThirdAsync(Id.SubscriptionId, Id.Parent.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new ProviderHubArmOperation(Response.FromValue(new NestedResourceTypeThirdSkuResource(Client, response), response.GetRawResponse())); + var uri = _nestedResourceTypeThirdSkuSkusRestClient.CreateCreateOrUpdateNestedResourceTypeThirdRequestUri(Id.SubscriptionId, Id.Parent.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ProviderHubArmOperation(Response.FromValue(new NestedResourceTypeThirdSkuResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -337,7 +343,9 @@ public virtual ArmOperation Update(WaitUntil try { var response = _nestedResourceTypeThirdSkuSkusRestClient.CreateOrUpdateNestedResourceTypeThird(Id.SubscriptionId, Id.Parent.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new ProviderHubArmOperation(Response.FromValue(new NestedResourceTypeThirdSkuResource(Client, response), response.GetRawResponse())); + var uri = _nestedResourceTypeThirdSkuSkusRestClient.CreateCreateOrUpdateNestedResourceTypeThirdRequestUri(Id.SubscriptionId, Id.Parent.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ProviderHubArmOperation(Response.FromValue(new NestedResourceTypeThirdSkuResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/NotificationRegistrationCollection.cs b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/NotificationRegistrationCollection.cs index bd1dca53a310..4b63e235f94a 100644 --- a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/NotificationRegistrationCollection.cs +++ b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/NotificationRegistrationCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> Create try { var response = await _notificationRegistrationRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.Name, notificationRegistrationName, data, cancellationToken).ConfigureAwait(false); - var operation = new ProviderHubArmOperation(Response.FromValue(new NotificationRegistrationResource(Client, response), response.GetRawResponse())); + var uri = _notificationRegistrationRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.Name, notificationRegistrationName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ProviderHubArmOperation(Response.FromValue(new NotificationRegistrationResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(Wai try { var response = _notificationRegistrationRestClient.CreateOrUpdate(Id.SubscriptionId, Id.Name, notificationRegistrationName, data, cancellationToken); - var operation = new ProviderHubArmOperation(Response.FromValue(new NotificationRegistrationResource(Client, response), response.GetRawResponse())); + var uri = _notificationRegistrationRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.Name, notificationRegistrationName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ProviderHubArmOperation(Response.FromValue(new NotificationRegistrationResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/NotificationRegistrationResource.cs b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/NotificationRegistrationResource.cs index 77d9b220c8e0..cea56ecbd1c8 100644 --- a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/NotificationRegistrationResource.cs +++ b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/NotificationRegistrationResource.cs @@ -199,7 +199,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _notificationRegistrationRestClient.DeleteAsync(Id.SubscriptionId, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new ProviderHubArmOperation(response); + var uri = _notificationRegistrationRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ProviderHubArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -241,7 +243,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _notificationRegistrationRestClient.Delete(Id.SubscriptionId, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new ProviderHubArmOperation(response); + var uri = _notificationRegistrationRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ProviderHubArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -287,7 +291,9 @@ public virtual async Task> Update try { var response = await _notificationRegistrationRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new ProviderHubArmOperation(Response.FromValue(new NotificationRegistrationResource(Client, response), response.GetRawResponse())); + var uri = _notificationRegistrationRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ProviderHubArmOperation(Response.FromValue(new NotificationRegistrationResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -333,7 +339,9 @@ public virtual ArmOperation Update(WaitUntil w try { var response = _notificationRegistrationRestClient.CreateOrUpdate(Id.SubscriptionId, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new ProviderHubArmOperation(Response.FromValue(new NotificationRegistrationResource(Client, response), response.GetRawResponse())); + var uri = _notificationRegistrationRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ProviderHubArmOperation(Response.FromValue(new NotificationRegistrationResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/ProviderRegistrationResource.cs b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/ProviderRegistrationResource.cs index eca583d37043..ac5210fd78e4 100644 --- a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/ProviderRegistrationResource.cs +++ b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/ProviderRegistrationResource.cs @@ -480,7 +480,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _providerRegistrationRestClient.DeleteAsync(Id.SubscriptionId, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new ProviderHubArmOperation(response); + var uri = _providerRegistrationRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ProviderHubArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -522,7 +524,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _providerRegistrationRestClient.Delete(Id.SubscriptionId, Id.Name, cancellationToken); - var operation = new ProviderHubArmOperation(response); + var uri = _providerRegistrationRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ProviderHubArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/ResourceTypeRegistrationResource.cs b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/ResourceTypeRegistrationResource.cs index 97a6c726f793..6050eb06ec5b 100644 --- a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/ResourceTypeRegistrationResource.cs +++ b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/ResourceTypeRegistrationResource.cs @@ -499,7 +499,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _resourceTypeRegistrationRestClient.DeleteAsync(Id.SubscriptionId, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new ProviderHubArmOperation(response); + var uri = _resourceTypeRegistrationRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ProviderHubArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -541,7 +543,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _resourceTypeRegistrationRestClient.Delete(Id.SubscriptionId, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new ProviderHubArmOperation(response); + var uri = _resourceTypeRegistrationRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ProviderHubArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/ResourceTypeSkuCollection.cs b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/ResourceTypeSkuCollection.cs index f5c384f09456..cd5968e55d00 100644 --- a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/ResourceTypeSkuCollection.cs +++ b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/ResourceTypeSkuCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> CreateOrUpdateA try { var response = await _resourceTypeSkuSkusRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.Parent.Name, Id.Name, sku, data, cancellationToken).ConfigureAwait(false); - var operation = new ProviderHubArmOperation(Response.FromValue(new ResourceTypeSkuResource(Client, response), response.GetRawResponse())); + var uri = _resourceTypeSkuSkusRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.Parent.Name, Id.Name, sku, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ProviderHubArmOperation(Response.FromValue(new ResourceTypeSkuResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wa try { var response = _resourceTypeSkuSkusRestClient.CreateOrUpdate(Id.SubscriptionId, Id.Parent.Name, Id.Name, sku, data, cancellationToken); - var operation = new ProviderHubArmOperation(Response.FromValue(new ResourceTypeSkuResource(Client, response), response.GetRawResponse())); + var uri = _resourceTypeSkuSkusRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.Parent.Name, Id.Name, sku, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ProviderHubArmOperation(Response.FromValue(new ResourceTypeSkuResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/ResourceTypeSkuResource.cs b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/ResourceTypeSkuResource.cs index 82fb32e9286f..6893c7fa72d1 100644 --- a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/ResourceTypeSkuResource.cs +++ b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/ResourceTypeSkuResource.cs @@ -200,7 +200,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _resourceTypeSkuSkusRestClient.DeleteAsync(Id.SubscriptionId, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new ProviderHubArmOperation(response); + var uri = _resourceTypeSkuSkusRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ProviderHubArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -242,7 +244,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _resourceTypeSkuSkusRestClient.Delete(Id.SubscriptionId, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new ProviderHubArmOperation(response); + var uri = _resourceTypeSkuSkusRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ProviderHubArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -288,7 +292,9 @@ public virtual async Task> UpdateAsync(Wai try { var response = await _resourceTypeSkuSkusRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new ProviderHubArmOperation(Response.FromValue(new ResourceTypeSkuResource(Client, response), response.GetRawResponse())); + var uri = _resourceTypeSkuSkusRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ProviderHubArmOperation(Response.FromValue(new ResourceTypeSkuResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -334,7 +340,9 @@ public virtual ArmOperation Update(WaitUntil waitUntil, try { var response = _resourceTypeSkuSkusRestClient.CreateOrUpdate(Id.SubscriptionId, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new ProviderHubArmOperation(Response.FromValue(new ResourceTypeSkuResource(Client, response), response.GetRawResponse())); + var uri = _resourceTypeSkuSkusRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ProviderHubArmOperation(Response.FromValue(new ResourceTypeSkuResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/RestOperations/CustomRolloutsRestOperations.cs b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/RestOperations/CustomRolloutsRestOperations.cs index b3d3f8b8bea4..33343a238834 100644 --- a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/RestOperations/CustomRolloutsRestOperations.cs +++ b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/RestOperations/CustomRolloutsRestOperations.cs @@ -37,6 +37,20 @@ public CustomRolloutsRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string providerNamespace, string rolloutName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ProviderHub/providerRegistrations/", false); + uri.AppendPath(providerNamespace, true); + uri.AppendPath("/customRollouts/", false); + uri.AppendPath(rolloutName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string providerNamespace, string rolloutName) { var message = _pipeline.CreateMessage(); @@ -119,6 +133,20 @@ public Response Get(string subscriptionId, string providerNam } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string providerNamespace, string rolloutName, CustomRolloutData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ProviderHub/providerRegistrations/", false); + uri.AppendPath(providerNamespace, true); + uri.AppendPath("/customRollouts/", false); + uri.AppendPath(rolloutName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string providerNamespace, string rolloutName, CustomRolloutData data) { var message = _pipeline.CreateMessage(); @@ -205,6 +233,19 @@ public Response CreateOrUpdate(string subscriptionId, string } } + internal RequestUriBuilder CreateListByProviderRegistrationRequestUri(string subscriptionId, string providerNamespace) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ProviderHub/providerRegistrations/", false); + uri.AppendPath(providerNamespace, true); + uri.AppendPath("/customRollouts", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByProviderRegistrationRequest(string subscriptionId, string providerNamespace) { var message = _pipeline.CreateMessage(); @@ -278,6 +319,14 @@ public Response ListByProviderRegistration(string subsc } } + internal RequestUriBuilder CreateListByProviderRegistrationNextPageRequestUri(string nextLink, string subscriptionId, string providerNamespace) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByProviderRegistrationNextPageRequest(string nextLink, string subscriptionId, string providerNamespace) { var message = _pipeline.CreateMessage(); diff --git a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/RestOperations/DefaultRolloutsRestOperations.cs b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/RestOperations/DefaultRolloutsRestOperations.cs index 615a6ba98dc1..ab2777bb553a 100644 --- a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/RestOperations/DefaultRolloutsRestOperations.cs +++ b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/RestOperations/DefaultRolloutsRestOperations.cs @@ -37,6 +37,20 @@ public DefaultRolloutsRestOperations(HttpPipeline pipeline, string applicationId _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string providerNamespace, string rolloutName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ProviderHub/providerRegistrations/", false); + uri.AppendPath(providerNamespace, true); + uri.AppendPath("/defaultRollouts/", false); + uri.AppendPath(rolloutName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string providerNamespace, string rolloutName) { var message = _pipeline.CreateMessage(); @@ -119,6 +133,20 @@ public Response Get(string subscriptionId, string providerNa } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string providerNamespace, string rolloutName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ProviderHub/providerRegistrations/", false); + uri.AppendPath(providerNamespace, true); + uri.AppendPath("/defaultRollouts/", false); + uri.AppendPath(rolloutName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string providerNamespace, string rolloutName) { var message = _pipeline.CreateMessage(); @@ -189,6 +217,20 @@ public Response Delete(string subscriptionId, string providerNamespace, string r } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string providerNamespace, string rolloutName, DefaultRolloutData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ProviderHub/providerRegistrations/", false); + uri.AppendPath(providerNamespace, true); + uri.AppendPath("/defaultRollouts/", false); + uri.AppendPath(rolloutName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string providerNamespace, string rolloutName, DefaultRolloutData data) { var message = _pipeline.CreateMessage(); @@ -267,6 +309,19 @@ public Response CreateOrUpdate(string subscriptionId, string providerNamespace, } } + internal RequestUriBuilder CreateListByProviderRegistrationRequestUri(string subscriptionId, string providerNamespace) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ProviderHub/providerRegistrations/", false); + uri.AppendPath(providerNamespace, true); + uri.AppendPath("/defaultRollouts", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByProviderRegistrationRequest(string subscriptionId, string providerNamespace) { var message = _pipeline.CreateMessage(); @@ -340,6 +395,21 @@ public Response ListByProviderRegistration(string subs } } + internal RequestUriBuilder CreateStopRequestUri(string subscriptionId, string providerNamespace, string rolloutName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ProviderHub/providerRegistrations/", false); + uri.AppendPath(providerNamespace, true); + uri.AppendPath("/defaultRollouts/", false); + uri.AppendPath(rolloutName, true); + uri.AppendPath("/stop", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStopRequest(string subscriptionId, string providerNamespace, string rolloutName) { var message = _pipeline.CreateMessage(); @@ -409,6 +479,14 @@ public Response Stop(string subscriptionId, string providerNamespace, string rol } } + internal RequestUriBuilder CreateListByProviderRegistrationNextPageRequestUri(string nextLink, string subscriptionId, string providerNamespace) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByProviderRegistrationNextPageRequest(string nextLink, string subscriptionId, string providerNamespace) { var message = _pipeline.CreateMessage(); diff --git a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/RestOperations/NotificationRegistrationsRestOperations.cs b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/RestOperations/NotificationRegistrationsRestOperations.cs index a3f58ce6e9db..e8606b1e4f4c 100644 --- a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/RestOperations/NotificationRegistrationsRestOperations.cs +++ b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/RestOperations/NotificationRegistrationsRestOperations.cs @@ -37,6 +37,20 @@ public NotificationRegistrationsRestOperations(HttpPipeline pipeline, string app _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string providerNamespace, string notificationRegistrationName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ProviderHub/providerRegistrations/", false); + uri.AppendPath(providerNamespace, true); + uri.AppendPath("/notificationRegistrations/", false); + uri.AppendPath(notificationRegistrationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string providerNamespace, string notificationRegistrationName) { var message = _pipeline.CreateMessage(); @@ -119,6 +133,20 @@ public Response Get(string subscriptionId, string } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string providerNamespace, string notificationRegistrationName, NotificationRegistrationData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ProviderHub/providerRegistrations/", false); + uri.AppendPath(providerNamespace, true); + uri.AppendPath("/notificationRegistrations/", false); + uri.AppendPath(notificationRegistrationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string providerNamespace, string notificationRegistrationName, NotificationRegistrationData data) { var message = _pipeline.CreateMessage(); @@ -205,6 +233,20 @@ public Response CreateOrUpdate(string subscription } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string providerNamespace, string notificationRegistrationName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ProviderHub/providerRegistrations/", false); + uri.AppendPath(providerNamespace, true); + uri.AppendPath("/notificationRegistrations/", false); + uri.AppendPath(notificationRegistrationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string providerNamespace, string notificationRegistrationName) { var message = _pipeline.CreateMessage(); @@ -275,6 +317,19 @@ public Response Delete(string subscriptionId, string providerNamespace, string n } } + internal RequestUriBuilder CreateListByProviderRegistrationRequestUri(string subscriptionId, string providerNamespace) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ProviderHub/providerRegistrations/", false); + uri.AppendPath(providerNamespace, true); + uri.AppendPath("/notificationRegistrations", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByProviderRegistrationRequest(string subscriptionId, string providerNamespace) { var message = _pipeline.CreateMessage(); @@ -348,6 +403,14 @@ public Response ListByProviderRegistration(s } } + internal RequestUriBuilder CreateListByProviderRegistrationNextPageRequestUri(string nextLink, string subscriptionId, string providerNamespace) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByProviderRegistrationNextPageRequest(string nextLink, string subscriptionId, string providerNamespace) { var message = _pipeline.CreateMessage(); diff --git a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/RestOperations/ProviderHubRestOperations.cs b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/RestOperations/ProviderHubRestOperations.cs index d619aac76fd7..2010c3a8b540 100644 --- a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/RestOperations/ProviderHubRestOperations.cs +++ b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/RestOperations/ProviderHubRestOperations.cs @@ -37,6 +37,19 @@ public ProviderHubRestOperations(HttpPipeline pipeline, string applicationId, Ur _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGenerateManifestRequestUri(string subscriptionId, string providerNamespace) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ProviderHub/providerRegistrations/", false); + uri.AppendPath(providerNamespace, true); + uri.AppendPath("/generateManifest", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGenerateManifestRequest(string subscriptionId, string providerNamespace) { var message = _pipeline.CreateMessage(); @@ -110,6 +123,19 @@ public Response GenerateManifest(string subscriptionId } } + internal RequestUriBuilder CreateCheckinManifestRequestUri(string subscriptionId, string providerNamespace, CheckinManifestContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ProviderHub/providerRegistrations/", false); + uri.AppendPath(providerNamespace, true); + uri.AppendPath("/checkinManifest", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCheckinManifestRequest(string subscriptionId, string providerNamespace, CheckinManifestContent content) { var message = _pipeline.CreateMessage(); diff --git a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/RestOperations/ProviderRegistrationsRestOperations.cs b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/RestOperations/ProviderRegistrationsRestOperations.cs index 620ee70d1bfa..fc4b59490894 100644 --- a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/RestOperations/ProviderRegistrationsRestOperations.cs +++ b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/RestOperations/ProviderRegistrationsRestOperations.cs @@ -37,6 +37,18 @@ public ProviderRegistrationsRestOperations(HttpPipeline pipeline, string applica _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string providerNamespace) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ProviderHub/providerRegistrations/", false); + uri.AppendPath(providerNamespace, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string providerNamespace) { var message = _pipeline.CreateMessage(); @@ -113,6 +125,18 @@ public Response Get(string subscriptionId, string prov } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string providerNamespace, ProviderRegistrationData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ProviderHub/providerRegistrations/", false); + uri.AppendPath(providerNamespace, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string providerNamespace, ProviderRegistrationData data) { var message = _pipeline.CreateMessage(); @@ -185,6 +209,18 @@ public Response CreateOrUpdate(string subscriptionId, string providerNamespace, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string providerNamespace) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ProviderHub/providerRegistrations/", false); + uri.AppendPath(providerNamespace, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string providerNamespace) { var message = _pipeline.CreateMessage(); @@ -249,6 +285,17 @@ public Response Delete(string subscriptionId, string providerNamespace, Cancella } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ProviderHub/providerRegistrations", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -316,6 +363,14 @@ public Response List(string subscriptionId, Canc } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/RestOperations/ResourceTypeRegistrationsRestOperations.cs b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/RestOperations/ResourceTypeRegistrationsRestOperations.cs index 21fc37f0ffed..b236d1954b43 100644 --- a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/RestOperations/ResourceTypeRegistrationsRestOperations.cs +++ b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/RestOperations/ResourceTypeRegistrationsRestOperations.cs @@ -37,6 +37,20 @@ public ResourceTypeRegistrationsRestOperations(HttpPipeline pipeline, string app _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string providerNamespace, string resourceType) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ProviderHub/providerRegistrations/", false); + uri.AppendPath(providerNamespace, true); + uri.AppendPath("/resourcetypeRegistrations/", false); + uri.AppendPath(resourceType, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string providerNamespace, string resourceType) { var message = _pipeline.CreateMessage(); @@ -119,6 +133,20 @@ public Response Get(string subscriptionId, string } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string providerNamespace, string resourceType, ResourceTypeRegistrationData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ProviderHub/providerRegistrations/", false); + uri.AppendPath(providerNamespace, true); + uri.AppendPath("/resourcetypeRegistrations/", false); + uri.AppendPath(resourceType, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string providerNamespace, string resourceType, ResourceTypeRegistrationData data) { var message = _pipeline.CreateMessage(); @@ -197,6 +225,20 @@ public Response CreateOrUpdate(string subscriptionId, string providerNamespace, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string providerNamespace, string resourceType) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ProviderHub/providerRegistrations/", false); + uri.AppendPath(providerNamespace, true); + uri.AppendPath("/resourcetypeRegistrations/", false); + uri.AppendPath(resourceType, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string providerNamespace, string resourceType) { var message = _pipeline.CreateMessage(); @@ -267,6 +309,19 @@ public Response Delete(string subscriptionId, string providerNamespace, string r } } + internal RequestUriBuilder CreateListByProviderRegistrationRequestUri(string subscriptionId, string providerNamespace) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ProviderHub/providerRegistrations/", false); + uri.AppendPath(providerNamespace, true); + uri.AppendPath("/resourcetypeRegistrations", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByProviderRegistrationRequest(string subscriptionId, string providerNamespace) { var message = _pipeline.CreateMessage(); @@ -340,6 +395,14 @@ public Response ListByProviderRegistration(s } } + internal RequestUriBuilder CreateListByProviderRegistrationNextPageRequestUri(string nextLink, string subscriptionId, string providerNamespace) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByProviderRegistrationNextPageRequest(string nextLink, string subscriptionId, string providerNamespace) { var message = _pipeline.CreateMessage(); diff --git a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/RestOperations/SkusRestOperations.cs b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/RestOperations/SkusRestOperations.cs index 544d7b8d9628..d65be9390f2e 100644 --- a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/RestOperations/SkusRestOperations.cs +++ b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/RestOperations/SkusRestOperations.cs @@ -37,6 +37,22 @@ public SkusRestOperations(HttpPipeline pipeline, string applicationId, Uri endpo _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string providerNamespace, string resourceType, string sku) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ProviderHub/providerRegistrations/", false); + uri.AppendPath(providerNamespace, true); + uri.AppendPath("/resourcetypeRegistrations/", false); + uri.AppendPath(resourceType, true); + uri.AppendPath("/skus/", false); + uri.AppendPath(sku, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string providerNamespace, string resourceType, string sku) { var message = _pipeline.CreateMessage(); @@ -125,6 +141,22 @@ public Response Get(string subscriptionId, string providerN } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string providerNamespace, string resourceType, string sku, ResourceTypeSkuData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ProviderHub/providerRegistrations/", false); + uri.AppendPath(providerNamespace, true); + uri.AppendPath("/resourcetypeRegistrations/", false); + uri.AppendPath(resourceType, true); + uri.AppendPath("/skus/", false); + uri.AppendPath(sku, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string providerNamespace, string resourceType, string sku, ResourceTypeSkuData data) { var message = _pipeline.CreateMessage(); @@ -217,6 +249,22 @@ public Response CreateOrUpdate(string subscriptionId, strin } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string providerNamespace, string resourceType, string sku) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ProviderHub/providerRegistrations/", false); + uri.AppendPath(providerNamespace, true); + uri.AppendPath("/resourcetypeRegistrations/", false); + uri.AppendPath(resourceType, true); + uri.AppendPath("/skus/", false); + uri.AppendPath(sku, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string providerNamespace, string resourceType, string sku) { var message = _pipeline.CreateMessage(); @@ -293,6 +341,24 @@ public Response Delete(string subscriptionId, string providerNamespace, string r } } + internal RequestUriBuilder CreateGetNestedResourceTypeFirstRequestUri(string subscriptionId, string providerNamespace, string resourceType, string nestedResourceTypeFirst, string sku) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ProviderHub/providerRegistrations/", false); + uri.AppendPath(providerNamespace, true); + uri.AppendPath("/resourcetypeRegistrations/", false); + uri.AppendPath(resourceType, true); + uri.AppendPath("/resourcetypeRegistrations/", false); + uri.AppendPath(nestedResourceTypeFirst, true); + uri.AppendPath("/skus/", false); + uri.AppendPath(sku, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetNestedResourceTypeFirstRequest(string subscriptionId, string providerNamespace, string resourceType, string nestedResourceTypeFirst, string sku) { var message = _pipeline.CreateMessage(); @@ -387,6 +453,24 @@ public Response GetNestedResourceTypeFirst(string subscript } } + internal RequestUriBuilder CreateCreateOrUpdateNestedResourceTypeFirstRequestUri(string subscriptionId, string providerNamespace, string resourceType, string nestedResourceTypeFirst, string sku, ResourceTypeSkuData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ProviderHub/providerRegistrations/", false); + uri.AppendPath(providerNamespace, true); + uri.AppendPath("/resourcetypeRegistrations/", false); + uri.AppendPath(resourceType, true); + uri.AppendPath("/resourcetypeRegistrations/", false); + uri.AppendPath(nestedResourceTypeFirst, true); + uri.AppendPath("/skus/", false); + uri.AppendPath(sku, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateNestedResourceTypeFirstRequest(string subscriptionId, string providerNamespace, string resourceType, string nestedResourceTypeFirst, string sku, ResourceTypeSkuData data) { var message = _pipeline.CreateMessage(); @@ -485,6 +569,24 @@ public Response CreateOrUpdateNestedResourceTypeFirst(strin } } + internal RequestUriBuilder CreateDeleteNestedResourceTypeFirstRequestUri(string subscriptionId, string providerNamespace, string resourceType, string nestedResourceTypeFirst, string sku) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ProviderHub/providerRegistrations/", false); + uri.AppendPath(providerNamespace, true); + uri.AppendPath("/resourcetypeRegistrations/", false); + uri.AppendPath(resourceType, true); + uri.AppendPath("/resourcetypeRegistrations/", false); + uri.AppendPath(nestedResourceTypeFirst, true); + uri.AppendPath("/skus/", false); + uri.AppendPath(sku, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteNestedResourceTypeFirstRequest(string subscriptionId, string providerNamespace, string resourceType, string nestedResourceTypeFirst, string sku) { var message = _pipeline.CreateMessage(); @@ -567,6 +669,26 @@ public Response DeleteNestedResourceTypeFirst(string subscriptionId, string prov } } + internal RequestUriBuilder CreateGetNestedResourceTypeSecondRequestUri(string subscriptionId, string providerNamespace, string resourceType, string nestedResourceTypeFirst, string nestedResourceTypeSecond, string sku) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ProviderHub/providerRegistrations/", false); + uri.AppendPath(providerNamespace, true); + uri.AppendPath("/resourcetypeRegistrations/", false); + uri.AppendPath(resourceType, true); + uri.AppendPath("/resourcetypeRegistrations/", false); + uri.AppendPath(nestedResourceTypeFirst, true); + uri.AppendPath("/resourcetypeRegistrations/", false); + uri.AppendPath(nestedResourceTypeSecond, true); + uri.AppendPath("/skus/", false); + uri.AppendPath(sku, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetNestedResourceTypeSecondRequest(string subscriptionId, string providerNamespace, string resourceType, string nestedResourceTypeFirst, string nestedResourceTypeSecond, string sku) { var message = _pipeline.CreateMessage(); @@ -667,6 +789,26 @@ public Response GetNestedResourceTypeSecond(string subscrip } } + internal RequestUriBuilder CreateCreateOrUpdateNestedResourceTypeSecondRequestUri(string subscriptionId, string providerNamespace, string resourceType, string nestedResourceTypeFirst, string nestedResourceTypeSecond, string sku, ResourceTypeSkuData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ProviderHub/providerRegistrations/", false); + uri.AppendPath(providerNamespace, true); + uri.AppendPath("/resourcetypeRegistrations/", false); + uri.AppendPath(resourceType, true); + uri.AppendPath("/resourcetypeRegistrations/", false); + uri.AppendPath(nestedResourceTypeFirst, true); + uri.AppendPath("/resourcetypeRegistrations/", false); + uri.AppendPath(nestedResourceTypeSecond, true); + uri.AppendPath("/skus/", false); + uri.AppendPath(sku, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateNestedResourceTypeSecondRequest(string subscriptionId, string providerNamespace, string resourceType, string nestedResourceTypeFirst, string nestedResourceTypeSecond, string sku, ResourceTypeSkuData data) { var message = _pipeline.CreateMessage(); @@ -771,6 +913,26 @@ public Response CreateOrUpdateNestedResourceTypeSecond(stri } } + internal RequestUriBuilder CreateDeleteNestedResourceTypeSecondRequestUri(string subscriptionId, string providerNamespace, string resourceType, string nestedResourceTypeFirst, string nestedResourceTypeSecond, string sku) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ProviderHub/providerRegistrations/", false); + uri.AppendPath(providerNamespace, true); + uri.AppendPath("/resourcetypeRegistrations/", false); + uri.AppendPath(resourceType, true); + uri.AppendPath("/resourcetypeRegistrations/", false); + uri.AppendPath(nestedResourceTypeFirst, true); + uri.AppendPath("/resourcetypeRegistrations/", false); + uri.AppendPath(nestedResourceTypeSecond, true); + uri.AppendPath("/skus/", false); + uri.AppendPath(sku, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteNestedResourceTypeSecondRequest(string subscriptionId, string providerNamespace, string resourceType, string nestedResourceTypeFirst, string nestedResourceTypeSecond, string sku) { var message = _pipeline.CreateMessage(); @@ -859,6 +1021,28 @@ public Response DeleteNestedResourceTypeSecond(string subscriptionId, string pro } } + internal RequestUriBuilder CreateGetNestedResourceTypeThirdRequestUri(string subscriptionId, string providerNamespace, string resourceType, string nestedResourceTypeFirst, string nestedResourceTypeSecond, string nestedResourceTypeThird, string sku) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ProviderHub/providerRegistrations/", false); + uri.AppendPath(providerNamespace, true); + uri.AppendPath("/resourcetypeRegistrations/", false); + uri.AppendPath(resourceType, true); + uri.AppendPath("/resourcetypeRegistrations/", false); + uri.AppendPath(nestedResourceTypeFirst, true); + uri.AppendPath("/resourcetypeRegistrations/", false); + uri.AppendPath(nestedResourceTypeSecond, true); + uri.AppendPath("/resourcetypeRegistrations/", false); + uri.AppendPath(nestedResourceTypeThird, true); + uri.AppendPath("/skus/", false); + uri.AppendPath(sku, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetNestedResourceTypeThirdRequest(string subscriptionId, string providerNamespace, string resourceType, string nestedResourceTypeFirst, string nestedResourceTypeSecond, string nestedResourceTypeThird, string sku) { var message = _pipeline.CreateMessage(); @@ -965,6 +1149,28 @@ public Response GetNestedResourceTypeThird(string subscript } } + internal RequestUriBuilder CreateCreateOrUpdateNestedResourceTypeThirdRequestUri(string subscriptionId, string providerNamespace, string resourceType, string nestedResourceTypeFirst, string nestedResourceTypeSecond, string nestedResourceTypeThird, string sku, ResourceTypeSkuData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ProviderHub/providerRegistrations/", false); + uri.AppendPath(providerNamespace, true); + uri.AppendPath("/resourcetypeRegistrations/", false); + uri.AppendPath(resourceType, true); + uri.AppendPath("/resourcetypeRegistrations/", false); + uri.AppendPath(nestedResourceTypeFirst, true); + uri.AppendPath("/resourcetypeRegistrations/", false); + uri.AppendPath(nestedResourceTypeSecond, true); + uri.AppendPath("/resourcetypeRegistrations/", false); + uri.AppendPath(nestedResourceTypeThird, true); + uri.AppendPath("/skus/", false); + uri.AppendPath(sku, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateNestedResourceTypeThirdRequest(string subscriptionId, string providerNamespace, string resourceType, string nestedResourceTypeFirst, string nestedResourceTypeSecond, string nestedResourceTypeThird, string sku, ResourceTypeSkuData data) { var message = _pipeline.CreateMessage(); @@ -1075,6 +1281,28 @@ public Response CreateOrUpdateNestedResourceTypeThird(strin } } + internal RequestUriBuilder CreateDeleteNestedResourceTypeThirdRequestUri(string subscriptionId, string providerNamespace, string resourceType, string nestedResourceTypeFirst, string nestedResourceTypeSecond, string nestedResourceTypeThird, string sku) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ProviderHub/providerRegistrations/", false); + uri.AppendPath(providerNamespace, true); + uri.AppendPath("/resourcetypeRegistrations/", false); + uri.AppendPath(resourceType, true); + uri.AppendPath("/resourcetypeRegistrations/", false); + uri.AppendPath(nestedResourceTypeFirst, true); + uri.AppendPath("/resourcetypeRegistrations/", false); + uri.AppendPath(nestedResourceTypeSecond, true); + uri.AppendPath("/resourcetypeRegistrations/", false); + uri.AppendPath(nestedResourceTypeThird, true); + uri.AppendPath("/skus/", false); + uri.AppendPath(sku, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteNestedResourceTypeThirdRequest(string subscriptionId, string providerNamespace, string resourceType, string nestedResourceTypeFirst, string nestedResourceTypeSecond, string nestedResourceTypeThird, string sku) { var message = _pipeline.CreateMessage(); @@ -1169,6 +1397,21 @@ public Response DeleteNestedResourceTypeThird(string subscriptionId, string prov } } + internal RequestUriBuilder CreateListByResourceTypeRegistrationsRequestUri(string subscriptionId, string providerNamespace, string resourceType) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ProviderHub/providerRegistrations/", false); + uri.AppendPath(providerNamespace, true); + uri.AppendPath("/resourcetypeRegistrations/", false); + uri.AppendPath(resourceType, true); + uri.AppendPath("/skus", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceTypeRegistrationsRequest(string subscriptionId, string providerNamespace, string resourceType) { var message = _pipeline.CreateMessage(); @@ -1248,6 +1491,23 @@ public Response ListByResourceTypeRegistrations(strin } } + internal RequestUriBuilder CreateListByResourceTypeRegistrationsNestedResourceTypeFirstRequestUri(string subscriptionId, string providerNamespace, string resourceType, string nestedResourceTypeFirst) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ProviderHub/providerRegistrations/", false); + uri.AppendPath(providerNamespace, true); + uri.AppendPath("/resourcetypeRegistrations/", false); + uri.AppendPath(resourceType, true); + uri.AppendPath("/resourcetypeRegistrations/", false); + uri.AppendPath(nestedResourceTypeFirst, true); + uri.AppendPath("/skus", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceTypeRegistrationsNestedResourceTypeFirstRequest(string subscriptionId, string providerNamespace, string resourceType, string nestedResourceTypeFirst) { var message = _pipeline.CreateMessage(); @@ -1333,6 +1593,25 @@ public Response ListByResourceTypeRegistrationsNested } } + internal RequestUriBuilder CreateListByResourceTypeRegistrationsNestedResourceTypeSecondRequestUri(string subscriptionId, string providerNamespace, string resourceType, string nestedResourceTypeFirst, string nestedResourceTypeSecond) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ProviderHub/providerRegistrations/", false); + uri.AppendPath(providerNamespace, true); + uri.AppendPath("/resourcetypeRegistrations/", false); + uri.AppendPath(resourceType, true); + uri.AppendPath("/resourcetypeRegistrations/", false); + uri.AppendPath(nestedResourceTypeFirst, true); + uri.AppendPath("/resourcetypeRegistrations/", false); + uri.AppendPath(nestedResourceTypeSecond, true); + uri.AppendPath("/skus", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceTypeRegistrationsNestedResourceTypeSecondRequest(string subscriptionId, string providerNamespace, string resourceType, string nestedResourceTypeFirst, string nestedResourceTypeSecond) { var message = _pipeline.CreateMessage(); @@ -1424,6 +1703,27 @@ public Response ListByResourceTypeRegistrationsNested } } + internal RequestUriBuilder CreateListByResourceTypeRegistrationsNestedResourceTypeThirdRequestUri(string subscriptionId, string providerNamespace, string resourceType, string nestedResourceTypeFirst, string nestedResourceTypeSecond, string nestedResourceTypeThird) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ProviderHub/providerRegistrations/", false); + uri.AppendPath(providerNamespace, true); + uri.AppendPath("/resourcetypeRegistrations/", false); + uri.AppendPath(resourceType, true); + uri.AppendPath("/resourcetypeRegistrations/", false); + uri.AppendPath(nestedResourceTypeFirst, true); + uri.AppendPath("/resourcetypeRegistrations/", false); + uri.AppendPath(nestedResourceTypeSecond, true); + uri.AppendPath("/resourcetypeRegistrations/", false); + uri.AppendPath(nestedResourceTypeThird, true); + uri.AppendPath("/skus", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceTypeRegistrationsNestedResourceTypeThirdRequest(string subscriptionId, string providerNamespace, string resourceType, string nestedResourceTypeFirst, string nestedResourceTypeSecond, string nestedResourceTypeThird) { var message = _pipeline.CreateMessage(); @@ -1521,6 +1821,14 @@ public Response ListByResourceTypeRegistrationsNested } } + internal RequestUriBuilder CreateListByResourceTypeRegistrationsNextPageRequestUri(string nextLink, string subscriptionId, string providerNamespace, string resourceType) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceTypeRegistrationsNextPageRequest(string nextLink, string subscriptionId, string providerNamespace, string resourceType) { var message = _pipeline.CreateMessage(); @@ -1597,6 +1905,14 @@ public Response ListByResourceTypeRegistrationsNextPa } } + internal RequestUriBuilder CreateListByResourceTypeRegistrationsNestedResourceTypeFirstNextPageRequestUri(string nextLink, string subscriptionId, string providerNamespace, string resourceType, string nestedResourceTypeFirst) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceTypeRegistrationsNestedResourceTypeFirstNextPageRequest(string nextLink, string subscriptionId, string providerNamespace, string resourceType, string nestedResourceTypeFirst) { var message = _pipeline.CreateMessage(); @@ -1677,6 +1993,14 @@ public Response ListByResourceTypeRegistrationsNested } } + internal RequestUriBuilder CreateListByResourceTypeRegistrationsNestedResourceTypeSecondNextPageRequestUri(string nextLink, string subscriptionId, string providerNamespace, string resourceType, string nestedResourceTypeFirst, string nestedResourceTypeSecond) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceTypeRegistrationsNestedResourceTypeSecondNextPageRequest(string nextLink, string subscriptionId, string providerNamespace, string resourceType, string nestedResourceTypeFirst, string nestedResourceTypeSecond) { var message = _pipeline.CreateMessage(); @@ -1761,6 +2085,14 @@ public Response ListByResourceTypeRegistrationsNested } } + internal RequestUriBuilder CreateListByResourceTypeRegistrationsNestedResourceTypeThirdNextPageRequestUri(string nextLink, string subscriptionId, string providerNamespace, string resourceType, string nestedResourceTypeFirst, string nestedResourceTypeSecond, string nestedResourceTypeThird) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceTypeRegistrationsNestedResourceTypeThirdNextPageRequest(string nextLink, string subscriptionId, string providerNamespace, string resourceType, string nestedResourceTypeFirst, string nestedResourceTypeSecond, string nestedResourceTypeThird) { var message = _pipeline.CreateMessage(); diff --git a/sdk/purview/Azure.ResourceManager.Purview/src/Generated/LongRunningOperation/PurviewArmOperation.cs b/sdk/purview/Azure.ResourceManager.Purview/src/Generated/LongRunningOperation/PurviewArmOperation.cs index 710a0039e89d..b3ecfcee7093 100644 --- a/sdk/purview/Azure.ResourceManager.Purview/src/Generated/LongRunningOperation/PurviewArmOperation.cs +++ b/sdk/purview/Azure.ResourceManager.Purview/src/Generated/LongRunningOperation/PurviewArmOperation.cs @@ -20,21 +20,24 @@ internal class PurviewArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of PurviewArmOperation for mocking. protected PurviewArmOperation() { } - internal PurviewArmOperation(Response response) + internal PurviewArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal PurviewArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "PurviewArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal PurviewArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline p public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/purview/Azure.ResourceManager.Purview/src/Generated/LongRunningOperation/PurviewArmOperationOfT.cs b/sdk/purview/Azure.ResourceManager.Purview/src/Generated/LongRunningOperation/PurviewArmOperationOfT.cs index 249f633e1c19..429acce7112d 100644 --- a/sdk/purview/Azure.ResourceManager.Purview/src/Generated/LongRunningOperation/PurviewArmOperationOfT.cs +++ b/sdk/purview/Azure.ResourceManager.Purview/src/Generated/LongRunningOperation/PurviewArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class PurviewArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of PurviewArmOperation for mocking. protected PurviewArmOperation() { } - internal PurviewArmOperation(Response response) + internal PurviewArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal PurviewArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "PurviewArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal PurviewArmOperation(IOperationSource source, ClientDiagnostics clien public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/purview/Azure.ResourceManager.Purview/src/Generated/Models/PurviewAccountResource.Serialization.cs b/sdk/purview/Azure.ResourceManager.Purview/src/Generated/Models/PurviewAccountResource.Serialization.cs new file mode 100644 index 000000000000..47d6e950fba8 --- /dev/null +++ b/sdk/purview/Azure.ResourceManager.Purview/src/Generated/Models/PurviewAccountResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Purview +{ + public partial class PurviewAccountResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + PurviewAccountData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + PurviewAccountData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/purview/Azure.ResourceManager.Purview/src/Generated/Models/PurviewKafkaConfigurationResource.Serialization.cs b/sdk/purview/Azure.ResourceManager.Purview/src/Generated/Models/PurviewKafkaConfigurationResource.Serialization.cs new file mode 100644 index 000000000000..d3cf856f9b28 --- /dev/null +++ b/sdk/purview/Azure.ResourceManager.Purview/src/Generated/Models/PurviewKafkaConfigurationResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Purview +{ + public partial class PurviewKafkaConfigurationResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + PurviewKafkaConfigurationData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + PurviewKafkaConfigurationData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/purview/Azure.ResourceManager.Purview/src/Generated/Models/PurviewPrivateEndpointConnectionResource.Serialization.cs b/sdk/purview/Azure.ResourceManager.Purview/src/Generated/Models/PurviewPrivateEndpointConnectionResource.Serialization.cs new file mode 100644 index 000000000000..8358fdafb0fe --- /dev/null +++ b/sdk/purview/Azure.ResourceManager.Purview/src/Generated/Models/PurviewPrivateEndpointConnectionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Purview +{ + public partial class PurviewPrivateEndpointConnectionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + PurviewPrivateEndpointConnectionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + PurviewPrivateEndpointConnectionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/purview/Azure.ResourceManager.Purview/src/Generated/Models/PurviewPrivateLinkResource.Serialization.cs b/sdk/purview/Azure.ResourceManager.Purview/src/Generated/Models/PurviewPrivateLinkResource.Serialization.cs new file mode 100644 index 000000000000..a0dbdee3f659 --- /dev/null +++ b/sdk/purview/Azure.ResourceManager.Purview/src/Generated/Models/PurviewPrivateLinkResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Purview +{ + public partial class PurviewPrivateLinkResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + PurviewPrivateLinkResourceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + PurviewPrivateLinkResourceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/purview/Azure.ResourceManager.Purview/src/Generated/PurviewKafkaConfigurationCollection.cs b/sdk/purview/Azure.ResourceManager.Purview/src/Generated/PurviewKafkaConfigurationCollection.cs index 63bda8bb08fd..eeabb3f83c8c 100644 --- a/sdk/purview/Azure.ResourceManager.Purview/src/Generated/PurviewKafkaConfigurationCollection.cs +++ b/sdk/purview/Azure.ResourceManager.Purview/src/Generated/PurviewKafkaConfigurationCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> Creat try { var response = await _purviewKafkaConfigurationKafkaConfigurationsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, kafkaConfigurationName, data, cancellationToken).ConfigureAwait(false); - var operation = new PurviewArmOperation(Response.FromValue(new PurviewKafkaConfigurationResource(Client, response), response.GetRawResponse())); + var uri = _purviewKafkaConfigurationKafkaConfigurationsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, kafkaConfigurationName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new PurviewArmOperation(Response.FromValue(new PurviewKafkaConfigurationResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(Wa try { var response = _purviewKafkaConfigurationKafkaConfigurationsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, kafkaConfigurationName, data, cancellationToken); - var operation = new PurviewArmOperation(Response.FromValue(new PurviewKafkaConfigurationResource(Client, response), response.GetRawResponse())); + var uri = _purviewKafkaConfigurationKafkaConfigurationsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, kafkaConfigurationName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new PurviewArmOperation(Response.FromValue(new PurviewKafkaConfigurationResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/purview/Azure.ResourceManager.Purview/src/Generated/PurviewKafkaConfigurationResource.cs b/sdk/purview/Azure.ResourceManager.Purview/src/Generated/PurviewKafkaConfigurationResource.cs index 69227e43d474..0e601db04886 100644 --- a/sdk/purview/Azure.ResourceManager.Purview/src/Generated/PurviewKafkaConfigurationResource.cs +++ b/sdk/purview/Azure.ResourceManager.Purview/src/Generated/PurviewKafkaConfigurationResource.cs @@ -200,7 +200,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _purviewKafkaConfigurationKafkaConfigurationsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new PurviewArmOperation(response); + var uri = _purviewKafkaConfigurationKafkaConfigurationsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new PurviewArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -242,7 +244,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _purviewKafkaConfigurationKafkaConfigurationsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new PurviewArmOperation(response); + var uri = _purviewKafkaConfigurationKafkaConfigurationsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new PurviewArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -288,7 +292,9 @@ public virtual async Task> Updat try { var response = await _purviewKafkaConfigurationKafkaConfigurationsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new PurviewArmOperation(Response.FromValue(new PurviewKafkaConfigurationResource(Client, response), response.GetRawResponse())); + var uri = _purviewKafkaConfigurationKafkaConfigurationsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new PurviewArmOperation(Response.FromValue(new PurviewKafkaConfigurationResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -334,7 +340,9 @@ public virtual ArmOperation Update(WaitUntil try { var response = _purviewKafkaConfigurationKafkaConfigurationsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new PurviewArmOperation(Response.FromValue(new PurviewKafkaConfigurationResource(Client, response), response.GetRawResponse())); + var uri = _purviewKafkaConfigurationKafkaConfigurationsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new PurviewArmOperation(Response.FromValue(new PurviewKafkaConfigurationResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/purview/Azure.ResourceManager.Purview/src/Generated/RestOperations/AccountsRestOperations.cs b/sdk/purview/Azure.ResourceManager.Purview/src/Generated/RestOperations/AccountsRestOperations.cs index c4352e3a64bd..64904085356b 100644 --- a/sdk/purview/Azure.ResourceManager.Purview/src/Generated/RestOperations/AccountsRestOperations.cs +++ b/sdk/purview/Azure.ResourceManager.Purview/src/Generated/RestOperations/AccountsRestOperations.cs @@ -37,6 +37,21 @@ public AccountsRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId, string skipToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Purview/accounts", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId, string skipToken) { var message = _pipeline.CreateMessage(); @@ -110,6 +125,23 @@ public Response ListBySubscription(string subscriptionId, string sk } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName, string skipToken) + { + 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.Purview/accounts", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName, string skipToken) { var message = _pipeline.CreateMessage(); @@ -189,6 +221,20 @@ public Response ListByResourceGroup(string subscriptionId, string r } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string accountName) + { + 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.Purview/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); @@ -271,6 +317,20 @@ public Response Get(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string accountName, PurviewAccountData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Purview/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string accountName, PurviewAccountData data) { var message = _pipeline.CreateMessage(); @@ -349,6 +409,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string accountName) + { + 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.Purview/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); @@ -421,6 +495,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string accountName, PurviewAccountPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Purview/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string accountName, PurviewAccountPatch patch) { var message = _pipeline.CreateMessage(); @@ -499,6 +587,21 @@ public Response Update(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateAddRootCollectionAdminRequestUri(string subscriptionId, string resourceGroupName, string accountName, CollectionAdminUpdateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Purview/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/addRootCollectionAdmin", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateAddRootCollectionAdminRequest(string subscriptionId, string resourceGroupName, string accountName, CollectionAdminUpdateContent content) { var message = _pipeline.CreateMessage(); @@ -576,6 +679,21 @@ public Response AddRootCollectionAdmin(string subscriptionId, string resourceGro } } + internal RequestUriBuilder CreateListKeysRequestUri(string subscriptionId, string resourceGroupName, string accountName) + { + 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.Purview/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/listkeys", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListKeysRequest(string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); @@ -655,6 +773,17 @@ public Response ListKeys(string subscriptionId, string } } + internal RequestUriBuilder CreateCheckNameAvailabilityRequestUri(string subscriptionId, PurviewAccountNameAvailabilityContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Purview/checkNameAvailability", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCheckNameAvailabilityRequest(string subscriptionId, PurviewAccountNameAvailabilityContent content) { var message = _pipeline.CreateMessage(); @@ -730,6 +859,14 @@ public Response CheckNameAvailability(stri } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId, string skipToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId, string skipToken) { var message = _pipeline.CreateMessage(); @@ -800,6 +937,14 @@ public Response ListBySubscriptionNextPage(string nextLink, string } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string skipToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string skipToken) { var message = _pipeline.CreateMessage(); diff --git a/sdk/purview/Azure.ResourceManager.Purview/src/Generated/RestOperations/DefaultAccountsRestOperations.cs b/sdk/purview/Azure.ResourceManager.Purview/src/Generated/RestOperations/DefaultAccountsRestOperations.cs index 9dc1e8b2cef4..94bb2cef5420 100644 --- a/sdk/purview/Azure.ResourceManager.Purview/src/Generated/RestOperations/DefaultAccountsRestOperations.cs +++ b/sdk/purview/Azure.ResourceManager.Purview/src/Generated/RestOperations/DefaultAccountsRestOperations.cs @@ -37,6 +37,21 @@ public DefaultAccountsRestOperations(HttpPipeline pipeline, string applicationId _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(Guid scopeTenantId, PurviewAccountScopeType scopeType, string scope) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Purview/getDefaultAccount", false); + uri.AppendQuery("scopeTenantId", scopeTenantId, true); + uri.AppendQuery("scopeType", scopeType.ToString(), true); + if (scope != null) + { + uri.AppendQuery("scope", scope, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(Guid scopeTenantId, PurviewAccountScopeType scopeType, string scope) { var message = _pipeline.CreateMessage(); @@ -104,6 +119,21 @@ public Response Get(Guid scopeTenantId, PurviewAcc } } + internal RequestUriBuilder CreateRemoveRequestUri(Guid scopeTenantId, PurviewAccountScopeType scopeType, string scope) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Purview/removeDefaultAccount", false); + uri.AppendQuery("scopeTenantId", scopeTenantId, true); + uri.AppendQuery("scopeType", scopeType.ToString(), true); + if (scope != null) + { + uri.AppendQuery("scope", scope, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRemoveRequest(Guid scopeTenantId, PurviewAccountScopeType scopeType, string scope) { var message = _pipeline.CreateMessage(); @@ -163,6 +193,15 @@ public Response Remove(Guid scopeTenantId, PurviewAccountScopeType scopeType, st } } + internal RequestUriBuilder CreateSetRequestUri(DefaultPurviewAccountPayload defaultAccountPayload) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Purview/setDefaultAccount", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateSetRequest(DefaultPurviewAccountPayload defaultAccountPayload) { var message = _pipeline.CreateMessage(); diff --git a/sdk/purview/Azure.ResourceManager.Purview/src/Generated/RestOperations/FeaturesRestOperations.cs b/sdk/purview/Azure.ResourceManager.Purview/src/Generated/RestOperations/FeaturesRestOperations.cs index 7fa14eca1670..4c20007f5aa0 100644 --- a/sdk/purview/Azure.ResourceManager.Purview/src/Generated/RestOperations/FeaturesRestOperations.cs +++ b/sdk/purview/Azure.ResourceManager.Purview/src/Generated/RestOperations/FeaturesRestOperations.cs @@ -37,6 +37,19 @@ public FeaturesRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateSubscriptionGetRequestUri(string subscriptionId, string locations, PurviewBatchFeatureContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Purview/locations/", false); + uri.AppendPath(locations, true); + uri.AppendPath("/listFeatures", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateSubscriptionGetRequest(string subscriptionId, string locations, PurviewBatchFeatureContent content) { var message = _pipeline.CreateMessage(); @@ -118,6 +131,21 @@ public Response SubscriptionGet(string subscriptionId } } + internal RequestUriBuilder CreateAccountGetRequestUri(string subscriptionId, string resourceGroupName, string accountName, PurviewBatchFeatureContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Purview/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/listFeatures", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateAccountGetRequest(string subscriptionId, string resourceGroupName, string accountName, PurviewBatchFeatureContent content) { var message = _pipeline.CreateMessage(); diff --git a/sdk/purview/Azure.ResourceManager.Purview/src/Generated/RestOperations/IngestionPrivateEndpointConnectionsRestOperations.cs b/sdk/purview/Azure.ResourceManager.Purview/src/Generated/RestOperations/IngestionPrivateEndpointConnectionsRestOperations.cs index e707d8e47404..d0f500f0cb55 100644 --- a/sdk/purview/Azure.ResourceManager.Purview/src/Generated/RestOperations/IngestionPrivateEndpointConnectionsRestOperations.cs +++ b/sdk/purview/Azure.ResourceManager.Purview/src/Generated/RestOperations/IngestionPrivateEndpointConnectionsRestOperations.cs @@ -37,6 +37,21 @@ public IngestionPrivateEndpointConnectionsRestOperations(HttpPipeline pipeline, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string accountName) + { + 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.Purview/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/ingestionPrivateEndpointConnections", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,21 @@ public Response List(string subscriptionId, strin } } + internal RequestUriBuilder CreateUpdateStatusRequestUri(string subscriptionId, string resourceGroupName, string accountName, PrivateEndpointConnectionStatusUpdateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Purview/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/ingestionPrivateEndpointConnectionStatus", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateStatusRequest(string subscriptionId, string resourceGroupName, string accountName, PrivateEndpointConnectionStatusUpdateContent content) { var message = _pipeline.CreateMessage(); @@ -203,6 +233,14 @@ public Response UpdateStatus(string } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string accountName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/purview/Azure.ResourceManager.Purview/src/Generated/RestOperations/KafkaConfigurationsRestOperations.cs b/sdk/purview/Azure.ResourceManager.Purview/src/Generated/RestOperations/KafkaConfigurationsRestOperations.cs index 739433ea2901..2db27350da9d 100644 --- a/sdk/purview/Azure.ResourceManager.Purview/src/Generated/RestOperations/KafkaConfigurationsRestOperations.cs +++ b/sdk/purview/Azure.ResourceManager.Purview/src/Generated/RestOperations/KafkaConfigurationsRestOperations.cs @@ -37,6 +37,25 @@ public KafkaConfigurationsRestOperations(HttpPipeline pipeline, string applicati _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByAccountRequestUri(string subscriptionId, string resourceGroupName, string accountName, string skipToken) + { + 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.Purview/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/kafkaConfigurations", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } + return uri; + } + internal HttpMessage CreateListByAccountRequest(string subscriptionId, string resourceGroupName, string accountName, string skipToken) { var message = _pipeline.CreateMessage(); @@ -122,6 +141,22 @@ public Response ListByAccount(string subscriptionId, str } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string accountName, string kafkaConfigurationName) + { + 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.Purview/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/kafkaConfigurations/", false); + uri.AppendPath(kafkaConfigurationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string accountName, string kafkaConfigurationName) { var message = _pipeline.CreateMessage(); @@ -210,6 +245,22 @@ public Response Get(string subscriptionId, string } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string accountName, string kafkaConfigurationName, PurviewKafkaConfigurationData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Purview/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/kafkaConfigurations/", false); + uri.AppendPath(kafkaConfigurationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string accountName, string kafkaConfigurationName, PurviewKafkaConfigurationData data) { var message = _pipeline.CreateMessage(); @@ -304,6 +355,22 @@ public Response CreateOrUpdate(string subscriptio } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string accountName, string kafkaConfigurationName) + { + 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.Purview/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/kafkaConfigurations/", false); + uri.AppendPath(kafkaConfigurationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string accountName, string kafkaConfigurationName) { var message = _pipeline.CreateMessage(); @@ -380,6 +447,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateListByAccountNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string accountName, string skipToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByAccountNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string accountName, string skipToken) { var message = _pipeline.CreateMessage(); diff --git a/sdk/purview/Azure.ResourceManager.Purview/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs b/sdk/purview/Azure.ResourceManager.Purview/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs index 4645ef7944c6..455d621b631b 100644 --- a/sdk/purview/Azure.ResourceManager.Purview/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs +++ b/sdk/purview/Azure.ResourceManager.Purview/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs @@ -37,6 +37,25 @@ public PrivateEndpointConnectionsRestOperations(HttpPipeline pipeline, string ap _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByAccountRequestUri(string subscriptionId, string resourceGroupName, string accountName, string skipToken) + { + 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.Purview/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/privateEndpointConnections", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } + return uri; + } + internal HttpMessage CreateListByAccountRequest(string subscriptionId, string resourceGroupName, string accountName, string skipToken) { var message = _pipeline.CreateMessage(); @@ -122,6 +141,22 @@ public Response ListByAccount(string subscription } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string accountName, string privateEndpointConnectionName) + { + 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.Purview/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string accountName, string privateEndpointConnectionName) { var message = _pipeline.CreateMessage(); @@ -210,6 +245,22 @@ public Response Get(string subscriptionId, } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string accountName, string privateEndpointConnectionName, PurviewPrivateEndpointConnectionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Purview/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string accountName, string privateEndpointConnectionName, PurviewPrivateEndpointConnectionData data) { var message = _pipeline.CreateMessage(); @@ -294,6 +345,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string accountName, string privateEndpointConnectionName) + { + 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.Purview/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string accountName, string privateEndpointConnectionName) { var message = _pipeline.CreateMessage(); @@ -372,6 +439,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateListByAccountNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string accountName, string skipToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByAccountNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string accountName, string skipToken) { var message = _pipeline.CreateMessage(); diff --git a/sdk/purview/Azure.ResourceManager.Purview/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs b/sdk/purview/Azure.ResourceManager.Purview/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs index ab87a33705de..81c11bcb8e19 100644 --- a/sdk/purview/Azure.ResourceManager.Purview/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs +++ b/sdk/purview/Azure.ResourceManager.Purview/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs @@ -37,6 +37,21 @@ public PrivateLinkResourcesRestOperations(HttpPipeline pipeline, string applicat _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByAccountRequestUri(string subscriptionId, string resourceGroupName, string accountName) + { + 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.Purview/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/privateLinkResources", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByAccountRequest(string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByAccount(string subscriptionId, st } } + internal RequestUriBuilder CreateGetByGroupIdRequestUri(string subscriptionId, string resourceGroupName, string accountName, string groupId) + { + 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.Purview/accounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/privateLinkResources/", false); + uri.AppendPath(groupId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetByGroupIdRequest(string subscriptionId, string resourceGroupName, string accountName, string groupId) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,14 @@ public Response GetByGroupId(string subscription } } + internal RequestUriBuilder CreateListByAccountNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string accountName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByAccountNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/purview/Azure.ResourceManager.Purview/src/Generated/RestOperations/UsagesRestOperations.cs b/sdk/purview/Azure.ResourceManager.Purview/src/Generated/RestOperations/UsagesRestOperations.cs index 5c381e1b8660..d19b1fb9e7a7 100644 --- a/sdk/purview/Azure.ResourceManager.Purview/src/Generated/RestOperations/UsagesRestOperations.cs +++ b/sdk/purview/Azure.ResourceManager.Purview/src/Generated/RestOperations/UsagesRestOperations.cs @@ -37,6 +37,23 @@ public UsagesRestOperations(HttpPipeline pipeline, string applicationId, Uri end _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, AzureLocation location, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Purview/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/usages", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, AzureLocation location, string filter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/quantum/Azure.ResourceManager.Quantum/src/Generated/LongRunningOperation/QuantumArmOperation.cs b/sdk/quantum/Azure.ResourceManager.Quantum/src/Generated/LongRunningOperation/QuantumArmOperation.cs index d7c7f2bacde5..c7e99cb83004 100644 --- a/sdk/quantum/Azure.ResourceManager.Quantum/src/Generated/LongRunningOperation/QuantumArmOperation.cs +++ b/sdk/quantum/Azure.ResourceManager.Quantum/src/Generated/LongRunningOperation/QuantumArmOperation.cs @@ -20,21 +20,24 @@ internal class QuantumArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of QuantumArmOperation for mocking. protected QuantumArmOperation() { } - internal QuantumArmOperation(Response response) + internal QuantumArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal QuantumArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "QuantumArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal QuantumArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline p public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/quantum/Azure.ResourceManager.Quantum/src/Generated/LongRunningOperation/QuantumArmOperationOfT.cs b/sdk/quantum/Azure.ResourceManager.Quantum/src/Generated/LongRunningOperation/QuantumArmOperationOfT.cs index e79f01087b5a..7fcbe283b2d6 100644 --- a/sdk/quantum/Azure.ResourceManager.Quantum/src/Generated/LongRunningOperation/QuantumArmOperationOfT.cs +++ b/sdk/quantum/Azure.ResourceManager.Quantum/src/Generated/LongRunningOperation/QuantumArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class QuantumArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of QuantumArmOperation for mocking. protected QuantumArmOperation() { } - internal QuantumArmOperation(Response response) + internal QuantumArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal QuantumArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "QuantumArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal QuantumArmOperation(IOperationSource source, ClientDiagnostics clien public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/quantum/Azure.ResourceManager.Quantum/src/Generated/Models/QuantumWorkspaceResource.Serialization.cs b/sdk/quantum/Azure.ResourceManager.Quantum/src/Generated/Models/QuantumWorkspaceResource.Serialization.cs new file mode 100644 index 000000000000..42a61beaf128 --- /dev/null +++ b/sdk/quantum/Azure.ResourceManager.Quantum/src/Generated/Models/QuantumWorkspaceResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Quantum +{ + public partial class QuantumWorkspaceResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + QuantumWorkspaceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + QuantumWorkspaceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/quantum/Azure.ResourceManager.Quantum/src/Generated/RestOperations/OfferingsRestOperations.cs b/sdk/quantum/Azure.ResourceManager.Quantum/src/Generated/RestOperations/OfferingsRestOperations.cs index da6fd53501c0..dbf5ad1055fb 100644 --- a/sdk/quantum/Azure.ResourceManager.Quantum/src/Generated/RestOperations/OfferingsRestOperations.cs +++ b/sdk/quantum/Azure.ResourceManager.Quantum/src/Generated/RestOperations/OfferingsRestOperations.cs @@ -37,6 +37,19 @@ public OfferingsRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string locationName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Quantum/locations/", false); + uri.AppendPath(locationName, true); + uri.AppendPath("/offerings", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string locationName) { var message = _pipeline.CreateMessage(); @@ -110,6 +123,14 @@ public Response List(string subscriptionId, string location } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string locationName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string locationName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/quantum/Azure.ResourceManager.Quantum/src/Generated/RestOperations/WorkspaceRestOperations.cs b/sdk/quantum/Azure.ResourceManager.Quantum/src/Generated/RestOperations/WorkspaceRestOperations.cs index 761e4ac9b0a7..4b8714d1190f 100644 --- a/sdk/quantum/Azure.ResourceManager.Quantum/src/Generated/RestOperations/WorkspaceRestOperations.cs +++ b/sdk/quantum/Azure.ResourceManager.Quantum/src/Generated/RestOperations/WorkspaceRestOperations.cs @@ -37,6 +37,19 @@ public WorkspaceRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCheckNameAvailabilityRequestUri(string subscriptionId, string locationName, CheckNameAvailabilityContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Quantum/locations/", false); + uri.AppendPath(locationName, true); + uri.AppendPath("/checkNameAvailability", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCheckNameAvailabilityRequest(string subscriptionId, string locationName, CheckNameAvailabilityContent content) { var message = _pipeline.CreateMessage(); diff --git a/sdk/quantum/Azure.ResourceManager.Quantum/src/Generated/RestOperations/WorkspacesRestOperations.cs b/sdk/quantum/Azure.ResourceManager.Quantum/src/Generated/RestOperations/WorkspacesRestOperations.cs index 800beaabee42..2c60e4a38044 100644 --- a/sdk/quantum/Azure.ResourceManager.Quantum/src/Generated/RestOperations/WorkspacesRestOperations.cs +++ b/sdk/quantum/Azure.ResourceManager.Quantum/src/Generated/RestOperations/WorkspacesRestOperations.cs @@ -37,6 +37,20 @@ public WorkspacesRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workspaceName) + { + 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.Quantum/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); @@ -119,6 +133,20 @@ public Response Get(string subscriptionId, string resource } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, QuantumWorkspaceData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Quantum/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, QuantumWorkspaceData data) { var message = _pipeline.CreateMessage(); @@ -197,6 +225,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateTagsRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, QuantumWorkspacePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Quantum/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateTagsRequest(string subscriptionId, string resourceGroupName, string workspaceName, QuantumWorkspacePatch patch) { var message = _pipeline.CreateMessage(); @@ -283,6 +325,20 @@ public Response UpdateTags(string subscriptionId, string r } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string workspaceName) + { + 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.Quantum/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); @@ -355,6 +411,17 @@ public Response Delete(string subscriptionId, string resourceGroupName, string w } } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Quantum/workspaces", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -422,6 +489,19 @@ public Response ListBySubscription(string subscriptionId, C } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.Quantum/workspaces", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -495,6 +575,14 @@ public Response ListByResourceGroup(string subscriptionId, } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -563,6 +651,14 @@ public Response ListBySubscriptionNextPage(string nextLink, } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/qumulo/Azure.ResourceManager.Qumulo/src/Generated/LongRunningOperation/QumuloArmOperation.cs b/sdk/qumulo/Azure.ResourceManager.Qumulo/src/Generated/LongRunningOperation/QumuloArmOperation.cs index 524bf8e23a3c..e5690bd0c9e5 100644 --- a/sdk/qumulo/Azure.ResourceManager.Qumulo/src/Generated/LongRunningOperation/QumuloArmOperation.cs +++ b/sdk/qumulo/Azure.ResourceManager.Qumulo/src/Generated/LongRunningOperation/QumuloArmOperation.cs @@ -20,21 +20,24 @@ internal class QumuloArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of QumuloArmOperation for mocking. protected QumuloArmOperation() { } - internal QumuloArmOperation(Response response) + internal QumuloArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal QumuloArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "QumuloArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal QumuloArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pi public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/qumulo/Azure.ResourceManager.Qumulo/src/Generated/LongRunningOperation/QumuloArmOperationOfT.cs b/sdk/qumulo/Azure.ResourceManager.Qumulo/src/Generated/LongRunningOperation/QumuloArmOperationOfT.cs index fab4272fc1d9..e8e868d59121 100644 --- a/sdk/qumulo/Azure.ResourceManager.Qumulo/src/Generated/LongRunningOperation/QumuloArmOperationOfT.cs +++ b/sdk/qumulo/Azure.ResourceManager.Qumulo/src/Generated/LongRunningOperation/QumuloArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class QumuloArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of QumuloArmOperation for mocking. protected QumuloArmOperation() { } - internal QumuloArmOperation(Response response) + internal QumuloArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal QumuloArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "QumuloArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal QumuloArmOperation(IOperationSource source, ClientDiagnostics client public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/qumulo/Azure.ResourceManager.Qumulo/src/Generated/Models/QumuloFileSystemResource.Serialization.cs b/sdk/qumulo/Azure.ResourceManager.Qumulo/src/Generated/Models/QumuloFileSystemResource.Serialization.cs new file mode 100644 index 000000000000..e2ab4a93ed80 --- /dev/null +++ b/sdk/qumulo/Azure.ResourceManager.Qumulo/src/Generated/Models/QumuloFileSystemResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Qumulo +{ + public partial class QumuloFileSystemResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + QumuloFileSystemResourceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + QumuloFileSystemResourceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/qumulo/Azure.ResourceManager.Qumulo/src/Generated/RestOperations/FileSystemsRestOperations.cs b/sdk/qumulo/Azure.ResourceManager.Qumulo/src/Generated/RestOperations/FileSystemsRestOperations.cs index af746d600027..3d62847e5e8c 100644 --- a/sdk/qumulo/Azure.ResourceManager.Qumulo/src/Generated/RestOperations/FileSystemsRestOperations.cs +++ b/sdk/qumulo/Azure.ResourceManager.Qumulo/src/Generated/RestOperations/FileSystemsRestOperations.cs @@ -37,6 +37,17 @@ public FileSystemsRestOperations(HttpPipeline pipeline, string applicationId, Ur _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Qumulo.Storage/fileSystems", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,19 @@ public Response ListBySubscription(string su } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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/Qumulo.Storage/fileSystems", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -177,6 +201,20 @@ public Response ListByResourceGroup(string s } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string fileSystemName) + { + 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/Qumulo.Storage/fileSystems/", false); + uri.AppendPath(fileSystemName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string fileSystemName) { var message = _pipeline.CreateMessage(); @@ -259,6 +297,20 @@ public Response Get(string subscriptionId, string } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string fileSystemName, QumuloFileSystemResourceData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Qumulo.Storage/fileSystems/", false); + uri.AppendPath(fileSystemName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string fileSystemName, QumuloFileSystemResourceData data) { var message = _pipeline.CreateMessage(); @@ -337,6 +389,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string fileSystemName, QumuloFileSystemResourcePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Qumulo.Storage/fileSystems/", false); + uri.AppendPath(fileSystemName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string fileSystemName, QumuloFileSystemResourcePatch patch) { var message = _pipeline.CreateMessage(); @@ -423,6 +489,20 @@ public Response Update(string subscriptionId, stri } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string fileSystemName) + { + 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/Qumulo.Storage/fileSystems/", false); + uri.AppendPath(fileSystemName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string fileSystemName) { var message = _pipeline.CreateMessage(); @@ -495,6 +575,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string f } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -563,6 +651,14 @@ public Response ListBySubscriptionNextPage(s } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/LongRunningOperation/QuotaArmOperationOfT.cs b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/LongRunningOperation/QuotaArmOperationOfT.cs index 43468ada65b5..e4e57f69d754 100644 --- a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/LongRunningOperation/QuotaArmOperationOfT.cs +++ b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/LongRunningOperation/QuotaArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class QuotaArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of QuotaArmOperation for mocking. protected QuotaArmOperation() { } - internal QuotaArmOperation(Response response) + internal QuotaArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal QuotaArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "QuotaArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal QuotaArmOperation(IOperationSource source, ClientDiagnostics clientD public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/CurrentQuotaLimitBaseResource.Serialization.cs b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/CurrentQuotaLimitBaseResource.Serialization.cs new file mode 100644 index 000000000000..1df93659c8ed --- /dev/null +++ b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/CurrentQuotaLimitBaseResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Quota +{ + public partial class CurrentQuotaLimitBaseResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + CurrentQuotaLimitBaseData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + CurrentQuotaLimitBaseData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/CurrentUsagesBaseResource.Serialization.cs b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/CurrentUsagesBaseResource.Serialization.cs new file mode 100644 index 000000000000..5dc8606f07a9 --- /dev/null +++ b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/CurrentUsagesBaseResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Quota +{ + public partial class CurrentUsagesBaseResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + CurrentUsagesBaseData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + CurrentUsagesBaseData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/QuotaRequestDetailResource.Serialization.cs b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/QuotaRequestDetailResource.Serialization.cs new file mode 100644 index 000000000000..95da358e4370 --- /dev/null +++ b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/QuotaRequestDetailResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Quota +{ + public partial class QuotaRequestDetailResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + QuotaRequestDetailData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + QuotaRequestDetailData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/RestOperations/QuotaOperationRestOperations.cs b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/RestOperations/QuotaOperationRestOperations.cs index 5ee659210f8e..13615cd97c5e 100644 --- a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/RestOperations/QuotaOperationRestOperations.cs +++ b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/RestOperations/QuotaOperationRestOperations.cs @@ -37,6 +37,15 @@ public QuotaOperationRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri() + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Quota/operations", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest() { var message = _pipeline.CreateMessage(); @@ -92,6 +101,14 @@ public Response List(CancellationToken cancellationTok } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink) { var message = _pipeline.CreateMessage(); diff --git a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/RestOperations/QuotaRequestStatusRestOperations.cs b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/RestOperations/QuotaRequestStatusRestOperations.cs index 2235a9040fa8..1c8c7711dc90 100644 --- a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/RestOperations/QuotaRequestStatusRestOperations.cs +++ b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/RestOperations/QuotaRequestStatusRestOperations.cs @@ -37,6 +37,18 @@ public QuotaRequestStatusRestOperations(HttpPipeline pipeline, string applicatio _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string scope, string id) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.Quota/quotaRequests/", false); + uri.AppendPath(id, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string scope, string id) { var message = _pipeline.CreateMessage(); @@ -113,6 +125,29 @@ public Response Get(string scope, string id, Cancellatio } } + internal RequestUriBuilder CreateListRequestUri(string scope, string filter, int? top, string skiptoken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.Quota/quotaRequests", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skiptoken != null) + { + uri.AppendQuery("$skiptoken", skiptoken, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string scope, string filter, int? top, string skiptoken) { var message = _pipeline.CreateMessage(); @@ -212,6 +247,14 @@ public Response List(string scope, string filter = null } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string scope, string filter, int? top, string skiptoken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string scope, string filter, int? top, string skiptoken) { var message = _pipeline.CreateMessage(); diff --git a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/RestOperations/QuotaRestOperations.cs b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/RestOperations/QuotaRestOperations.cs index 246959eeb3ce..77a81df3ab6b 100644 --- a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/RestOperations/QuotaRestOperations.cs +++ b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/RestOperations/QuotaRestOperations.cs @@ -37,6 +37,18 @@ public QuotaRestOperations(HttpPipeline pipeline, string applicationId, Uri endp _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string scope, string resourceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.Quota/quotas/", false); + uri.AppendPath(resourceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string scope, string resourceName) { var message = _pipeline.CreateMessage(); @@ -123,6 +135,18 @@ public Response Get(string scope, string resourceName } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string scope, string resourceName, CurrentQuotaLimitBaseData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.Quota/quotas/", false); + uri.AppendPath(resourceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string scope, string resourceName, CurrentQuotaLimitBaseData data) { var message = _pipeline.CreateMessage(); @@ -213,6 +237,18 @@ public Response CreateOrUpdate(string scope, string resourceName, CurrentQuotaLi } } + internal RequestUriBuilder CreateUpdateRequestUri(string scope, string resourceName, CurrentQuotaLimitBaseData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.Quota/quotas/", false); + uri.AppendPath(resourceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string scope, string resourceName, CurrentQuotaLimitBaseData data) { var message = _pipeline.CreateMessage(); @@ -303,6 +339,17 @@ public Response Update(string scope, string resourceName, CurrentQuotaLimitBaseD } } + internal RequestUriBuilder CreateListRequestUri(string scope) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.Quota/quotas", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string scope) { var message = _pipeline.CreateMessage(); @@ -368,6 +415,14 @@ public Response List(string scope, CancellationToken cancellationTo } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string scope) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string scope) { var message = _pipeline.CreateMessage(); diff --git a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/RestOperations/UsagesRestOperations.cs b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/RestOperations/UsagesRestOperations.cs index b1fbe27d20a8..b63bee095106 100644 --- a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/RestOperations/UsagesRestOperations.cs +++ b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/RestOperations/UsagesRestOperations.cs @@ -37,6 +37,18 @@ public UsagesRestOperations(HttpPipeline pipeline, string applicationId, Uri end _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string scope, string resourceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.Quota/usages/", false); + uri.AppendPath(resourceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string scope, string resourceName) { var message = _pipeline.CreateMessage(); @@ -123,6 +135,17 @@ public Response Get(string scope, string resourceName, Ca } } + internal RequestUriBuilder CreateListRequestUri(string scope) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.Quota/usages", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string scope) { var message = _pipeline.CreateMessage(); @@ -188,6 +211,14 @@ public Response List(string scope, CancellationToken cancellationT } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string scope) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string scope) { var message = _pipeline.CreateMessage(); diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupProtectedItemResource.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupProtectedItemResource.cs index 265a57b98454..c183134c5f5f 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupProtectedItemResource.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupProtectedItemResource.cs @@ -289,7 +289,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _backupProtectedItemProtectedItemsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new RecoveryServicesBackupArmOperation(response); + var uri = _backupProtectedItemProtectedItemsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new RecoveryServicesBackupArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -332,7 +334,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _backupProtectedItemProtectedItemsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new RecoveryServicesBackupArmOperation(response); + var uri = _backupProtectedItemProtectedItemsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new RecoveryServicesBackupArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupProtectionContainerResource.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupProtectionContainerResource.cs index a6a94f544720..09391092433b 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupProtectionContainerResource.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupProtectionContainerResource.cs @@ -283,7 +283,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _backupProtectionContainerProtectionContainersRestClient.UnregisterAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new RecoveryServicesBackupArmOperation(response); + var uri = _backupProtectionContainerProtectionContainersRestClient.CreateUnregisterRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new RecoveryServicesBackupArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -326,7 +328,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _backupProtectionContainerProtectionContainersRestClient.Unregister(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new RecoveryServicesBackupArmOperation(response); + var uri = _backupProtectionContainerProtectionContainersRestClient.CreateUnregisterRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new RecoveryServicesBackupArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupProtectionIntentCollection.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupProtectionIntentCollection.cs index 81b62e8fbaa6..8102773b3333 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupProtectionIntentCollection.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupProtectionIntentCollection.cs @@ -92,7 +92,9 @@ public virtual async Task> CreateOr try { var response = await _backupProtectionIntentProtectionIntentRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, vaultName, fabricName, intentObjectName, data, cancellationToken).ConfigureAwait(false); - var operation = new RecoveryServicesBackupArmOperation(Response.FromValue(new BackupProtectionIntentResource(Client, response), response.GetRawResponse())); + var uri = _backupProtectionIntentProtectionIntentRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, vaultName, fabricName, intentObjectName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new RecoveryServicesBackupArmOperation(Response.FromValue(new BackupProtectionIntentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -145,7 +147,9 @@ public virtual ArmOperation CreateOrUpdate(WaitU try { var response = _backupProtectionIntentProtectionIntentRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, vaultName, fabricName, intentObjectName, data, cancellationToken); - var operation = new RecoveryServicesBackupArmOperation(Response.FromValue(new BackupProtectionIntentResource(Client, response), response.GetRawResponse())); + var uri = _backupProtectionIntentProtectionIntentRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, vaultName, fabricName, intentObjectName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new RecoveryServicesBackupArmOperation(Response.FromValue(new BackupProtectionIntentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupProtectionIntentResource.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupProtectionIntentResource.cs index 772528376bfb..ae0a473fa5f8 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupProtectionIntentResource.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupProtectionIntentResource.cs @@ -205,7 +205,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _backupProtectionIntentProtectionIntentRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new RecoveryServicesBackupArmOperation(response); + var uri = _backupProtectionIntentProtectionIntentRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new RecoveryServicesBackupArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -247,7 +249,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _backupProtectionIntentProtectionIntentRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new RecoveryServicesBackupArmOperation(response); + var uri = _backupProtectionIntentProtectionIntentRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new RecoveryServicesBackupArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -293,7 +297,9 @@ public virtual async Task> UpdateAs try { var response = await _backupProtectionIntentProtectionIntentRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new RecoveryServicesBackupArmOperation(Response.FromValue(new BackupProtectionIntentResource(Client, response), response.GetRawResponse())); + var uri = _backupProtectionIntentProtectionIntentRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new RecoveryServicesBackupArmOperation(Response.FromValue(new BackupProtectionIntentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -339,7 +345,9 @@ public virtual ArmOperation Update(WaitUntil wai try { var response = _backupProtectionIntentProtectionIntentRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new RecoveryServicesBackupArmOperation(Response.FromValue(new BackupProtectionIntentResource(Client, response), response.GetRawResponse())); + var uri = _backupProtectionIntentProtectionIntentRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new RecoveryServicesBackupArmOperation(Response.FromValue(new BackupProtectionIntentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupProtectionPolicyCollection.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupProtectionPolicyCollection.cs index 1165e92a6263..cb15880a8fc7 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupProtectionPolicyCollection.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupProtectionPolicyCollection.cs @@ -102,7 +102,9 @@ public virtual async Task> CreateOr try { var response = await _backupProtectionPolicyProtectionPoliciesRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, _vaultName, policyName, data, cancellationToken).ConfigureAwait(false); - var operation = new RecoveryServicesBackupArmOperation(Response.FromValue(new BackupProtectionPolicyResource(Client, response), response.GetRawResponse())); + var uri = _backupProtectionPolicyProtectionPoliciesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, _vaultName, policyName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new RecoveryServicesBackupArmOperation(Response.FromValue(new BackupProtectionPolicyResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -152,7 +154,9 @@ public virtual ArmOperation CreateOrUpdate(WaitU try { var response = _backupProtectionPolicyProtectionPoliciesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, _vaultName, policyName, data, cancellationToken); - var operation = new RecoveryServicesBackupArmOperation(Response.FromValue(new BackupProtectionPolicyResource(Client, response), response.GetRawResponse())); + var uri = _backupProtectionPolicyProtectionPoliciesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, _vaultName, policyName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new RecoveryServicesBackupArmOperation(Response.FromValue(new BackupProtectionPolicyResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupProtectionPolicyResource.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupProtectionPolicyResource.cs index 5c583c87ba91..f20457830e18 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupProtectionPolicyResource.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupProtectionPolicyResource.cs @@ -295,7 +295,9 @@ public virtual async Task> UpdateAs try { var response = await _backupProtectionPolicyProtectionPoliciesRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new RecoveryServicesBackupArmOperation(Response.FromValue(new BackupProtectionPolicyResource(Client, response), response.GetRawResponse())); + var uri = _backupProtectionPolicyProtectionPoliciesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new RecoveryServicesBackupArmOperation(Response.FromValue(new BackupProtectionPolicyResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -342,7 +344,9 @@ public virtual ArmOperation Update(WaitUntil wai try { var response = _backupProtectionPolicyProtectionPoliciesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new RecoveryServicesBackupArmOperation(Response.FromValue(new BackupProtectionPolicyResource(Client, response), response.GetRawResponse())); + var uri = _backupProtectionPolicyProtectionPoliciesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new RecoveryServicesBackupArmOperation(Response.FromValue(new BackupProtectionPolicyResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupResourceConfigCollection.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupResourceConfigCollection.cs index 8123fa38783d..26bd44d8bcc6 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupResourceConfigCollection.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupResourceConfigCollection.cs @@ -88,7 +88,9 @@ public virtual async Task> CreateOrUp try { var response = await _backupResourceConfigBackupResourceStorageConfigsNonCRRRestClient.UpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, vaultName, data, cancellationToken).ConfigureAwait(false); - var operation = new RecoveryServicesBackupArmOperation(Response.FromValue(new BackupResourceConfigResource(Client, response), response.GetRawResponse())); + var uri = _backupResourceConfigBackupResourceStorageConfigsNonCRRRestClient.CreateUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, vaultName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new RecoveryServicesBackupArmOperation(Response.FromValue(new BackupResourceConfigResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -137,7 +139,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUnt try { var response = _backupResourceConfigBackupResourceStorageConfigsNonCRRRestClient.Update(Id.SubscriptionId, Id.ResourceGroupName, vaultName, data, cancellationToken); - var operation = new RecoveryServicesBackupArmOperation(Response.FromValue(new BackupResourceConfigResource(Client, response), response.GetRawResponse())); + var uri = _backupResourceConfigBackupResourceStorageConfigsNonCRRRestClient.CreateUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, vaultName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new RecoveryServicesBackupArmOperation(Response.FromValue(new BackupResourceConfigResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupResourceEncryptionConfigExtendedCollection.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupResourceEncryptionConfigExtendedCollection.cs index e3feae04e5be..e8d164ae7b4f 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupResourceEncryptionConfigExtendedCollection.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupResourceEncryptionConfigExtendedCollection.cs @@ -89,7 +89,9 @@ public virtual async Task CreateOrUpdateAsync(WaitUntil waitUntil, try { var response = await _backupResourceEncryptionConfigExtendedBackupResourceEncryptionConfigsRestClient.UpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, vaultName, content, cancellationToken).ConfigureAwait(false); - var operation = new RecoveryServicesBackupArmOperation(response); + var uri = _backupResourceEncryptionConfigExtendedBackupResourceEncryptionConfigsRestClient.CreateUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, vaultName, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new RecoveryServicesBackupArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -138,7 +140,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string vaultName try { var response = _backupResourceEncryptionConfigExtendedBackupResourceEncryptionConfigsRestClient.Update(Id.SubscriptionId, Id.ResourceGroupName, vaultName, content, cancellationToken); - var operation = new RecoveryServicesBackupArmOperation(response); + var uri = _backupResourceEncryptionConfigExtendedBackupResourceEncryptionConfigsRestClient.CreateUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, vaultName, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new RecoveryServicesBackupArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupResourceEncryptionConfigExtendedResource.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupResourceEncryptionConfigExtendedResource.cs index ae224646eb9e..a85b554c2fcb 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupResourceEncryptionConfigExtendedResource.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupResourceEncryptionConfigExtendedResource.cs @@ -206,7 +206,9 @@ public virtual async Task UpdateAsync(WaitUntil waitUntil, BackupR try { var response = await _backupResourceEncryptionConfigExtendedBackupResourceEncryptionConfigsRestClient.UpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, content, cancellationToken).ConfigureAwait(false); - var operation = new RecoveryServicesBackupArmOperation(response); + var uri = _backupResourceEncryptionConfigExtendedBackupResourceEncryptionConfigsRestClient.CreateUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new RecoveryServicesBackupArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -252,7 +254,9 @@ public virtual ArmOperation Update(WaitUntil waitUntil, BackupResourceEncryption try { var response = _backupResourceEncryptionConfigExtendedBackupResourceEncryptionConfigsRestClient.Update(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, content, cancellationToken); - var operation = new RecoveryServicesBackupArmOperation(response); + var uri = _backupResourceEncryptionConfigExtendedBackupResourceEncryptionConfigsRestClient.CreateUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new RecoveryServicesBackupArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupResourceVaultConfigCollection.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupResourceVaultConfigCollection.cs index c8cd705788ce..9c2cef368550 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupResourceVaultConfigCollection.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupResourceVaultConfigCollection.cs @@ -88,7 +88,9 @@ public virtual async Task> Creat try { var response = await _backupResourceVaultConfigRestClient.PutAsync(Id.SubscriptionId, Id.ResourceGroupName, vaultName, data, cancellationToken).ConfigureAwait(false); - var operation = new RecoveryServicesBackupArmOperation(Response.FromValue(new BackupResourceVaultConfigResource(Client, response), response.GetRawResponse())); + var uri = _backupResourceVaultConfigRestClient.CreatePutRequestUri(Id.SubscriptionId, Id.ResourceGroupName, vaultName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new RecoveryServicesBackupArmOperation(Response.FromValue(new BackupResourceVaultConfigResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -137,7 +139,9 @@ public virtual ArmOperation CreateOrUpdate(Wa try { var response = _backupResourceVaultConfigRestClient.Put(Id.SubscriptionId, Id.ResourceGroupName, vaultName, data, cancellationToken); - var operation = new RecoveryServicesBackupArmOperation(Response.FromValue(new BackupResourceVaultConfigResource(Client, response), response.GetRawResponse())); + var uri = _backupResourceVaultConfigRestClient.CreatePutRequestUri(Id.SubscriptionId, Id.ResourceGroupName, vaultName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new RecoveryServicesBackupArmOperation(Response.FromValue(new BackupResourceVaultConfigResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/LongRunningOperation/RecoveryServicesBackupArmOperation.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/LongRunningOperation/RecoveryServicesBackupArmOperation.cs index d6328e4cc0b3..f0c9678dbfee 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/LongRunningOperation/RecoveryServicesBackupArmOperation.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/LongRunningOperation/RecoveryServicesBackupArmOperation.cs @@ -20,21 +20,24 @@ internal class RecoveryServicesBackupArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of RecoveryServicesBackupArmOperation for mocking. protected RecoveryServicesBackupArmOperation() { } - internal RecoveryServicesBackupArmOperation(Response response) + internal RecoveryServicesBackupArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal RecoveryServicesBackupArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "RecoveryServicesBackupArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal RecoveryServicesBackupArmOperation(ClientDiagnostics clientDiagnostics, public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/LongRunningOperation/RecoveryServicesBackupArmOperationOfT.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/LongRunningOperation/RecoveryServicesBackupArmOperationOfT.cs index a21449445019..f81190d89a13 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/LongRunningOperation/RecoveryServicesBackupArmOperationOfT.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/LongRunningOperation/RecoveryServicesBackupArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class RecoveryServicesBackupArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of RecoveryServicesBackupArmOperation for mocking. protected RecoveryServicesBackupArmOperation() { } - internal RecoveryServicesBackupArmOperation(Response response) + internal RecoveryServicesBackupArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal RecoveryServicesBackupArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "RecoveryServicesBackupArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal RecoveryServicesBackupArmOperation(IOperationSource source, ClientDi public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupEngineResource.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupEngineResource.Serialization.cs new file mode 100644 index 000000000000..3f07830cc2d7 --- /dev/null +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupEngineResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.RecoveryServicesBackup +{ + public partial class BackupEngineResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + BackupEngineData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + BackupEngineData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupJobResource.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupJobResource.Serialization.cs new file mode 100644 index 000000000000..12c236a8b239 --- /dev/null +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupJobResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.RecoveryServicesBackup +{ + public partial class BackupJobResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + BackupJobData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + BackupJobData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupPrivateEndpointConnectionResource.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupPrivateEndpointConnectionResource.Serialization.cs new file mode 100644 index 000000000000..849de4f73097 --- /dev/null +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupPrivateEndpointConnectionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.RecoveryServicesBackup +{ + public partial class BackupPrivateEndpointConnectionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + BackupPrivateEndpointConnectionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + BackupPrivateEndpointConnectionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupProtectedItemResource.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupProtectedItemResource.Serialization.cs new file mode 100644 index 000000000000..249981a36ee4 --- /dev/null +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupProtectedItemResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.RecoveryServicesBackup +{ + public partial class BackupProtectedItemResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + BackupProtectedItemData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + BackupProtectedItemData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupProtectionContainerResource.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupProtectionContainerResource.Serialization.cs new file mode 100644 index 000000000000..51701b556b0a --- /dev/null +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupProtectionContainerResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.RecoveryServicesBackup +{ + public partial class BackupProtectionContainerResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + BackupProtectionContainerData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + BackupProtectionContainerData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupProtectionIntentResource.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupProtectionIntentResource.Serialization.cs new file mode 100644 index 000000000000..d3f93d75192d --- /dev/null +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupProtectionIntentResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.RecoveryServicesBackup +{ + public partial class BackupProtectionIntentResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + BackupProtectionIntentData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + BackupProtectionIntentData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupProtectionPolicyResource.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupProtectionPolicyResource.Serialization.cs new file mode 100644 index 000000000000..c4105a8dc6d2 --- /dev/null +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupProtectionPolicyResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.RecoveryServicesBackup +{ + public partial class BackupProtectionPolicyResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + BackupProtectionPolicyData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + BackupProtectionPolicyData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupRecoveryPointResource.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupRecoveryPointResource.Serialization.cs new file mode 100644 index 000000000000..10ef80f9b862 --- /dev/null +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupRecoveryPointResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.RecoveryServicesBackup +{ + public partial class BackupRecoveryPointResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + BackupRecoveryPointData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + BackupRecoveryPointData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupResourceConfigResource.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupResourceConfigResource.Serialization.cs new file mode 100644 index 000000000000..7dd4c869de93 --- /dev/null +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupResourceConfigResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.RecoveryServicesBackup +{ + public partial class BackupResourceConfigResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + BackupResourceConfigData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + BackupResourceConfigData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupResourceEncryptionConfigExtendedResource.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupResourceEncryptionConfigExtendedResource.Serialization.cs new file mode 100644 index 000000000000..918d514809ef --- /dev/null +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupResourceEncryptionConfigExtendedResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.RecoveryServicesBackup +{ + public partial class BackupResourceEncryptionConfigExtendedResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + BackupResourceEncryptionConfigExtendedData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + BackupResourceEncryptionConfigExtendedData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupResourceVaultConfigResource.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupResourceVaultConfigResource.Serialization.cs new file mode 100644 index 000000000000..fe537e876612 --- /dev/null +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupResourceVaultConfigResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.RecoveryServicesBackup +{ + public partial class BackupResourceVaultConfigResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + BackupResourceVaultConfigData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + BackupResourceVaultConfigData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ResourceGuardProxyResource.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ResourceGuardProxyResource.Serialization.cs new file mode 100644 index 000000000000..d46443955a49 --- /dev/null +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ResourceGuardProxyResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.RecoveryServicesBackup +{ + public partial class ResourceGuardProxyResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ResourceGuardProxyData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ResourceGuardProxyData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/ResourceGuardProxyCollection.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/ResourceGuardProxyCollection.cs index 015b4edc7fa7..1359d5be62b3 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/ResourceGuardProxyCollection.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/ResourceGuardProxyCollection.cs @@ -97,7 +97,9 @@ public virtual async Task> CreateOrUpda try { var response = await _resourceGuardProxyRestClient.PutAsync(Id.SubscriptionId, Id.ResourceGroupName, _vaultName, resourceGuardProxyName, data, cancellationToken).ConfigureAwait(false); - var operation = new RecoveryServicesBackupArmOperation(Response.FromValue(new ResourceGuardProxyResource(Client, response), response.GetRawResponse())); + var uri = _resourceGuardProxyRestClient.CreatePutRequestUri(Id.SubscriptionId, Id.ResourceGroupName, _vaultName, resourceGuardProxyName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new RecoveryServicesBackupArmOperation(Response.FromValue(new ResourceGuardProxyResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -147,7 +149,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil try { var response = _resourceGuardProxyRestClient.Put(Id.SubscriptionId, Id.ResourceGroupName, _vaultName, resourceGuardProxyName, data, cancellationToken); - var operation = new RecoveryServicesBackupArmOperation(Response.FromValue(new ResourceGuardProxyResource(Client, response), response.GetRawResponse())); + var uri = _resourceGuardProxyRestClient.CreatePutRequestUri(Id.SubscriptionId, Id.ResourceGroupName, _vaultName, resourceGuardProxyName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new RecoveryServicesBackupArmOperation(Response.FromValue(new ResourceGuardProxyResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/ResourceGuardProxyResource.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/ResourceGuardProxyResource.cs index 67cf4a9d4f68..e953a8170e82 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/ResourceGuardProxyResource.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/ResourceGuardProxyResource.cs @@ -203,7 +203,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _resourceGuardProxyRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new RecoveryServicesBackupArmOperation(response); + var uri = _resourceGuardProxyRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new RecoveryServicesBackupArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -245,7 +247,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _resourceGuardProxyRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new RecoveryServicesBackupArmOperation(response); + var uri = _resourceGuardProxyRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new RecoveryServicesBackupArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -292,7 +296,9 @@ public virtual async Task> UpdateAsync( try { var response = await _resourceGuardProxyRestClient.PutAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new RecoveryServicesBackupArmOperation(Response.FromValue(new ResourceGuardProxyResource(Client, response), response.GetRawResponse())); + var uri = _resourceGuardProxyRestClient.CreatePutRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new RecoveryServicesBackupArmOperation(Response.FromValue(new ResourceGuardProxyResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -339,7 +345,9 @@ public virtual ArmOperation Update(WaitUntil waitUnt try { var response = _resourceGuardProxyRestClient.Put(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new RecoveryServicesBackupArmOperation(Response.FromValue(new ResourceGuardProxyResource(Client, response), response.GetRawResponse())); + var uri = _resourceGuardProxyRestClient.CreatePutRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new RecoveryServicesBackupArmOperation(Response.FromValue(new ResourceGuardProxyResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupEnginesRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupEnginesRestOperations.cs index 57cae0f7b3ae..1ad823ba2999 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupEnginesRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupEnginesRestOperations.cs @@ -37,6 +37,29 @@ public BackupEnginesRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string vaultName, string filter, string skipToken) + { + 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.RecoveryServices/vaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/backupEngines", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string vaultName, string filter, string skipToken) { var message = _pipeline.CreateMessage(); @@ -128,6 +151,30 @@ public Response List(string subscriptionId, string } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string vaultName, string backupEngineName, string filter, string skipToken) + { + 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.RecoveryServices/vaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/backupEngines/", false); + uri.AppendPath(backupEngineName, true); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string vaultName, string backupEngineName, string filter, string skipToken) { var message = _pipeline.CreateMessage(); @@ -228,6 +275,14 @@ public Response Get(string subscriptionId, string resourceGrou } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string vaultName, string filter, string skipToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string vaultName, string filter, string skipToken) { var message = _pipeline.CreateMessage(); diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupJobsRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupJobsRestOperations.cs index ee8b658bbff2..ba036e3dee60 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupJobsRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupJobsRestOperations.cs @@ -37,6 +37,29 @@ public BackupJobsRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string vaultName, string filter, string skipToken) + { + 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.RecoveryServices/vaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/backupJobs", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string vaultName, string filter, string skipToken) { var message = _pipeline.CreateMessage(); @@ -128,6 +151,14 @@ public Response List(string subscriptionId, string resource } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string vaultName, string filter, string skipToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string vaultName, string filter, string skipToken) { var message = _pipeline.CreateMessage(); diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupPoliciesRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupPoliciesRestOperations.cs index 6da496ef33c4..756f88b18d08 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupPoliciesRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupPoliciesRestOperations.cs @@ -37,6 +37,25 @@ public BackupPoliciesRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string vaultName, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.RecoveryServices/vaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/backupPolicies", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string vaultName, string filter) { var message = _pipeline.CreateMessage(); @@ -128,6 +147,14 @@ public Response List(string subscriptionId, string } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string vaultName, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string vaultName, string filter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupProtectableItemsRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupProtectableItemsRestOperations.cs index d8edc335d2b3..7d503e29cff8 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupProtectableItemsRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupProtectableItemsRestOperations.cs @@ -37,6 +37,29 @@ public BackupProtectableItemsRestOperations(HttpPipeline pipeline, string applic _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string vaultName, string filter, string skipToken) + { + 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.RecoveryServices/vaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/backupProtectableItems", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string vaultName, string filter, string skipToken) { var message = _pipeline.CreateMessage(); @@ -134,6 +157,14 @@ public Response List(string subscriptionId, } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string vaultName, string filter, string skipToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string vaultName, string filter, string skipToken) { var message = _pipeline.CreateMessage(); diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupProtectedItemsRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupProtectedItemsRestOperations.cs index 80bac05f2d14..b2723a237af3 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupProtectedItemsRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupProtectedItemsRestOperations.cs @@ -37,6 +37,29 @@ public BackupProtectedItemsRestOperations(HttpPipeline pipeline, string applicat _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string vaultName, string filter, string skipToken) + { + 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.RecoveryServices/vaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/backupProtectedItems", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string vaultName, string filter, string skipToken) { var message = _pipeline.CreateMessage(); @@ -128,6 +151,14 @@ public Response List(string subscriptionId, string re } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string vaultName, string filter, string skipToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string vaultName, string filter, string skipToken) { var message = _pipeline.CreateMessage(); diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupProtectionContainersRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupProtectionContainersRestOperations.cs index 455b7d8eb171..8023e967b97e 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupProtectionContainersRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupProtectionContainersRestOperations.cs @@ -37,6 +37,25 @@ public BackupProtectionContainersRestOperations(HttpPipeline pipeline, string ap _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string vaultName, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.RecoveryServices/vaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/backupProtectionContainers", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string vaultName, string filter) { var message = _pipeline.CreateMessage(); @@ -122,6 +141,14 @@ public Response List(string subscriptionId, str } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string vaultName, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string vaultName, string filter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupProtectionIntentRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupProtectionIntentRestOperations.cs index ca37dc190bda..7cf6bb63c160 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupProtectionIntentRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupProtectionIntentRestOperations.cs @@ -37,6 +37,29 @@ public BackupProtectionIntentRestOperations(HttpPipeline pipeline, string applic _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string vaultName, string filter, string skipToken) + { + 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.RecoveryServices/vaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/backupProtectionIntents", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string vaultName, string filter, string skipToken) { var message = _pipeline.CreateMessage(); @@ -128,6 +151,14 @@ public Response List(string subscriptionId, string } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string vaultName, string filter, string skipToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string vaultName, string filter, string skipToken) { var message = _pipeline.CreateMessage(); diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupResourceEncryptionConfigsRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupResourceEncryptionConfigsRestOperations.cs index d2eb4a0555e6..447d27458239 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupResourceEncryptionConfigsRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupResourceEncryptionConfigsRestOperations.cs @@ -37,6 +37,21 @@ public BackupResourceEncryptionConfigsRestOperations(HttpPipeline pipeline, stri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string vaultName) + { + 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.RecoveryServices/vaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/backupEncryptionConfigs/backupResourceEncryptionConfig", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string vaultName) { var message = _pipeline.CreateMessage(); @@ -120,6 +135,21 @@ public Response Get(string subscript } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string vaultName, BackupResourceEncryptionConfigExtendedCreateOrUpdateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.RecoveryServices/vaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/backupEncryptionConfigs/backupResourceEncryptionConfig", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string vaultName, BackupResourceEncryptionConfigExtendedCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupResourceStorageConfigsNonCRRRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupResourceStorageConfigsNonCRRRestOperations.cs index 4683277732d5..8f1cee811292 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupResourceStorageConfigsNonCRRRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupResourceStorageConfigsNonCRRRestOperations.cs @@ -36,6 +36,21 @@ public BackupResourceStorageConfigsNonCRRRestOperations(HttpPipeline pipeline, s _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string vaultName) + { + 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.RecoveryServices/vaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/backupstorageconfig/vaultstorageconfig", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string vaultName) { var message = _pipeline.CreateMessage(); @@ -119,6 +134,21 @@ public Response Get(string subscriptionId, string reso } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string vaultName, BackupResourceConfigData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/Subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.RecoveryServices/vaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/backupstorageconfig/vaultstorageconfig", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string vaultName, BackupResourceConfigData data) { var message = _pipeline.CreateMessage(); @@ -206,6 +236,21 @@ public Response Update(string subscriptionId, string r } } + internal RequestUriBuilder CreatePatchRequestUri(string subscriptionId, string resourceGroupName, string vaultName, BackupResourceConfigData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/Subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.RecoveryServices/vaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/backupstorageconfig/vaultstorageconfig", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreatePatchRequest(string subscriptionId, string resourceGroupName, string vaultName, BackupResourceConfigData data) { var message = _pipeline.CreateMessage(); diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupResourceVaultConfigsRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupResourceVaultConfigsRestOperations.cs index 915fba418857..0aa088382d88 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupResourceVaultConfigsRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupResourceVaultConfigsRestOperations.cs @@ -36,6 +36,21 @@ public BackupResourceVaultConfigsRestOperations(HttpPipeline pipeline, string ap _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string vaultName) + { + 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.RecoveryServices/vaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/backupconfig/vaultconfig", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string vaultName) { var message = _pipeline.CreateMessage(); @@ -119,6 +134,21 @@ public Response Get(string subscriptionId, string } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string vaultName, BackupResourceVaultConfigData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.RecoveryServices/vaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/backupconfig/vaultconfig", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string vaultName, BackupResourceVaultConfigData data) { var message = _pipeline.CreateMessage(); @@ -206,6 +236,21 @@ public Response Update(string subscriptionId, str } } + internal RequestUriBuilder CreatePutRequestUri(string subscriptionId, string resourceGroupName, string vaultName, BackupResourceVaultConfigData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.RecoveryServices/vaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/backupconfig/vaultconfig", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreatePutRequest(string subscriptionId, string resourceGroupName, string vaultName, BackupResourceVaultConfigData data) { var message = _pipeline.CreateMessage(); diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupStatusRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupStatusRestOperations.cs index 5cac9983c1dd..d9cc1292756b 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupStatusRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupStatusRestOperations.cs @@ -37,6 +37,19 @@ public BackupStatusRestOperations(HttpPipeline pipeline, string applicationId, U _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, AzureLocation location, BackupStatusContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/Subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.RecoveryServices/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/backupStatus", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, AzureLocation location, BackupStatusContent content) { var message = _pipeline.CreateMessage(); diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupUsageSummariesRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupUsageSummariesRestOperations.cs index e322c7ad8482..08d50a50602c 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupUsageSummariesRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupUsageSummariesRestOperations.cs @@ -37,6 +37,29 @@ public BackupUsageSummariesRestOperations(HttpPipeline pipeline, string applicat _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string vaultName, string filter, string skipToken) + { + 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.RecoveryServices/vaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/backupUsageSummaries", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string vaultName, string filter, string skipToken) { var message = _pipeline.CreateMessage(); diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupWorkloadItemsRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupWorkloadItemsRestOperations.cs index 74e8d7b592fc..6b4b8d5976a7 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupWorkloadItemsRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupWorkloadItemsRestOperations.cs @@ -37,6 +37,33 @@ public BackupWorkloadItemsRestOperations(HttpPipeline pipeline, string applicati _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string containerName, string filter, string skipToken) + { + 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.RecoveryServices/vaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/backupFabrics/", false); + uri.AppendPath(fabricName, true); + uri.AppendPath("/protectionContainers/", false); + uri.AppendPath(containerName, true); + uri.AppendPath("/items", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string containerName, string filter, string skipToken) { var message = _pipeline.CreateMessage(); @@ -146,6 +173,14 @@ public Response List(string subscriptionId, string res } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string containerName, string filter, string skipToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string containerName, string filter, string skipToken) { var message = _pipeline.CreateMessage(); diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupsRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupsRestOperations.cs index 85f8d0595892..a34424ae18da 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupsRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupsRestOperations.cs @@ -36,6 +36,27 @@ public BackupsRestOperations(HttpPipeline pipeline, string applicationId, Uri en _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateTriggerRequestUri(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string containerName, string protectedItemName, TriggerBackupContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.RecoveryServices/vaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/backupFabrics/", false); + uri.AppendPath(fabricName, true); + uri.AppendPath("/protectionContainers/", false); + uri.AppendPath(containerName, true); + uri.AppendPath("/protectedItems/", false); + uri.AppendPath(protectedItemName, true); + uri.AppendPath("/backup", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateTriggerRequest(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string containerName, string protectedItemName, TriggerBackupContent content) { var message = _pipeline.CreateMessage(); diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/DeletedProtectionContainersRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/DeletedProtectionContainersRestOperations.cs index 8455eb01c036..2d57bf7e5694 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/DeletedProtectionContainersRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/DeletedProtectionContainersRestOperations.cs @@ -37,6 +37,25 @@ public DeletedProtectionContainersRestOperations(HttpPipeline pipeline, string a _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string vaultName, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.RecoveryServices/vaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/backupDeletedProtectionContainers", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string vaultName, string filter) { var message = _pipeline.CreateMessage(); @@ -122,6 +141,14 @@ public Response List(string subscriptionId, str } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string vaultName, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string vaultName, string filter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/FeatureSupportRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/FeatureSupportRestOperations.cs index c52a61052fdf..860d158c9082 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/FeatureSupportRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/FeatureSupportRestOperations.cs @@ -37,6 +37,19 @@ public FeatureSupportRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateValidateRequestUri(string subscriptionId, AzureLocation location, FeatureSupportContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/Subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.RecoveryServices/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/backupValidateFeatures", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateValidateRequest(string subscriptionId, AzureLocation location, FeatureSupportContent content) { var message = _pipeline.CreateMessage(); diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/FetchTieringCostRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/FetchTieringCostRestOperations.cs index 3bc52fa207dc..33269ecb1fd8 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/FetchTieringCostRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/FetchTieringCostRestOperations.cs @@ -36,6 +36,21 @@ public FetchTieringCostRestOperations(HttpPipeline pipeline, string applicationI _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreatePostRequestUri(string subscriptionId, string resourceGroupName, string vaultName, FetchTieringCostInfoContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.RecoveryServices/vaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/backupTieringCost/default/fetchTieringCost", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreatePostRequest(string subscriptionId, string resourceGroupName, string vaultName, FetchTieringCostInfoContent content) { var message = _pipeline.CreateMessage(); diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/GetTieringCostOperationResultRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/GetTieringCostOperationResultRestOperations.cs index ab62d5ae8e40..df1ac34fb260 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/GetTieringCostOperationResultRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/GetTieringCostOperationResultRestOperations.cs @@ -37,6 +37,22 @@ public GetTieringCostOperationResultRestOperations(HttpPipeline pipeline, string _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string vaultName, string operationId) + { + 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.RecoveryServices/vaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/backupTieringCost/default/operationResults/", false); + uri.AppendPath(operationId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string vaultName, string operationId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ItemLevelRecoveryConnectionsRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ItemLevelRecoveryConnectionsRestOperations.cs index 98536b6de14a..4e56613cfb1a 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ItemLevelRecoveryConnectionsRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ItemLevelRecoveryConnectionsRestOperations.cs @@ -36,6 +36,29 @@ public ItemLevelRecoveryConnectionsRestOperations(HttpPipeline pipeline, string _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateProvisionRequestUri(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string containerName, string protectedItemName, string recoveryPointId, ProvisionIlrConnectionContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.RecoveryServices/vaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/backupFabrics/", false); + uri.AppendPath(fabricName, true); + uri.AppendPath("/protectionContainers/", false); + uri.AppendPath(containerName, true); + uri.AppendPath("/protectedItems/", false); + uri.AppendPath(protectedItemName, true); + uri.AppendPath("/recoveryPoints/", false); + uri.AppendPath(recoveryPointId, true); + uri.AppendPath("/provisionInstantItemRecovery", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateProvisionRequest(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string containerName, string protectedItemName, string recoveryPointId, ProvisionIlrConnectionContent content) { var message = _pipeline.CreateMessage(); @@ -151,6 +174,29 @@ public Response Provision(string subscriptionId, string resourceGroupName, strin } } + internal RequestUriBuilder CreateRevokeRequestUri(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string containerName, string protectedItemName, string recoveryPointId) + { + 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.RecoveryServices/vaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/backupFabrics/", false); + uri.AppendPath(fabricName, true); + uri.AppendPath("/protectionContainers/", false); + uri.AppendPath(containerName, true); + uri.AppendPath("/protectedItems/", false); + uri.AppendPath(protectedItemName, true); + uri.AppendPath("/recoveryPoints/", false); + uri.AppendPath(recoveryPointId, true); + uri.AppendPath("/revokeInstantItemRecovery", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRevokeRequest(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string containerName, string protectedItemName, string recoveryPointId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/JobCancellationsRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/JobCancellationsRestOperations.cs index 75ce2c8be486..e0ee62d296b6 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/JobCancellationsRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/JobCancellationsRestOperations.cs @@ -35,6 +35,23 @@ public JobCancellationsRestOperations(HttpPipeline pipeline, string applicationI _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateTriggerRequestUri(string subscriptionId, string resourceGroupName, string vaultName, string jobName) + { + 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.RecoveryServices/vaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/backupJobs/", false); + uri.AppendPath(jobName, true); + uri.AppendPath("/cancel", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateTriggerRequest(string subscriptionId, string resourceGroupName, string vaultName, string jobName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/JobDetailsRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/JobDetailsRestOperations.cs index dace09f75788..65549feb073a 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/JobDetailsRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/JobDetailsRestOperations.cs @@ -36,6 +36,22 @@ public JobDetailsRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string vaultName, string jobName) + { + 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.RecoveryServices/vaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/backupJobs/", false); + uri.AppendPath(jobName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string vaultName, string jobName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/JobsRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/JobsRestOperations.cs index 0008478a3c87..fbe93d243a0e 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/JobsRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/JobsRestOperations.cs @@ -35,6 +35,25 @@ public JobsRestOperations(HttpPipeline pipeline, string applicationId, Uri endpo _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateExportRequestUri(string subscriptionId, string resourceGroupName, string vaultName, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.RecoveryServices/vaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/backupJobsExport", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + return uri; + } + internal HttpMessage CreateExportRequest(string subscriptionId, string resourceGroupName, string vaultName, string filter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/PrivateEndpointConnectionRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/PrivateEndpointConnectionRestOperations.cs index 65d254491c7f..af920aa4e256 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/PrivateEndpointConnectionRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/PrivateEndpointConnectionRestOperations.cs @@ -36,6 +36,22 @@ public PrivateEndpointConnectionRestOperations(HttpPipeline pipeline, string app _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string vaultName, string privateEndpointConnectionName) + { + 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.RecoveryServices/vaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string vaultName, string privateEndpointConnectionName) { var message = _pipeline.CreateMessage(); @@ -124,6 +140,22 @@ public Response Get(string subscriptionId, } } + internal RequestUriBuilder CreatePutRequestUri(string subscriptionId, string resourceGroupName, string vaultName, string privateEndpointConnectionName, BackupPrivateEndpointConnectionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.RecoveryServices/vaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreatePutRequest(string subscriptionId, string resourceGroupName, string vaultName, string privateEndpointConnectionName, BackupPrivateEndpointConnectionData data) { var message = _pipeline.CreateMessage(); @@ -208,6 +240,22 @@ public Response Put(string subscriptionId, string resourceGroupName, string vaul } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string vaultName, string privateEndpointConnectionName) + { + 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.RecoveryServices/vaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string vaultName, string privateEndpointConnectionName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ProtectableContainersRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ProtectableContainersRestOperations.cs index 9ab96a45315a..f2680df7100b 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ProtectableContainersRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ProtectableContainersRestOperations.cs @@ -37,6 +37,27 @@ public ProtectableContainersRestOperations(HttpPipeline pipeline, string applica _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.RecoveryServices/vaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/backupFabrics/", false); + uri.AppendPath(fabricName, true); + uri.AppendPath("/protectableContainers", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string filter) { var message = _pipeline.CreateMessage(); @@ -128,6 +149,14 @@ public Response List(string subscriptionId, st } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string filter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ProtectedItemsRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ProtectedItemsRestOperations.cs index 97bda5a01047..713f0780aadb 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ProtectedItemsRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ProtectedItemsRestOperations.cs @@ -36,6 +36,30 @@ public ProtectedItemsRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string containerName, string protectedItemName, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.RecoveryServices/vaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/backupFabrics/", false); + uri.AppendPath(fabricName, true); + uri.AppendPath("/protectionContainers/", false); + uri.AppendPath(containerName, true); + uri.AppendPath("/protectedItems/", false); + uri.AppendPath(protectedItemName, true); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string containerName, string protectedItemName, string filter) { var message = _pipeline.CreateMessage(); @@ -148,6 +172,26 @@ public Response Get(string subscriptionId, string resou } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string containerName, string protectedItemName, BackupProtectedItemData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.RecoveryServices/vaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/backupFabrics/", false); + uri.AppendPath(fabricName, true); + uri.AppendPath("/protectionContainers/", false); + uri.AppendPath(containerName, true); + uri.AppendPath("/protectedItems/", false); + uri.AppendPath(protectedItemName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string containerName, string protectedItemName, BackupProtectedItemData data) { var message = _pipeline.CreateMessage(); @@ -250,6 +294,26 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string containerName, string protectedItemName) + { + 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.RecoveryServices/vaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/backupFabrics/", false); + uri.AppendPath(fabricName, true); + uri.AppendPath("/protectionContainers/", false); + uri.AppendPath(containerName, true); + uri.AppendPath("/protectedItems/", false); + uri.AppendPath(protectedItemName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string containerName, string protectedItemName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ProtectionContainersRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ProtectionContainersRestOperations.cs index b0a922f78c4d..d5f0723d1e5a 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ProtectionContainersRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ProtectionContainersRestOperations.cs @@ -36,6 +36,24 @@ public ProtectionContainersRestOperations(HttpPipeline pipeline, string applicat _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string containerName) + { + 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.RecoveryServices/vaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/backupFabrics/", false); + uri.AppendPath(fabricName, true); + uri.AppendPath("/protectionContainers/", false); + uri.AppendPath(containerName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string containerName) { var message = _pipeline.CreateMessage(); @@ -130,6 +148,24 @@ public Response Get(string subscriptionId, string } } + internal RequestUriBuilder CreateRegisterRequestUri(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string containerName, BackupProtectionContainerData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.RecoveryServices/vaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/backupFabrics/", false); + uri.AppendPath(fabricName, true); + uri.AppendPath("/protectionContainers/", false); + uri.AppendPath(containerName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRegisterRequest(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string containerName, BackupProtectionContainerData data) { var message = _pipeline.CreateMessage(); @@ -228,6 +264,24 @@ public Response Register(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreateUnregisterRequestUri(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string containerName) + { + 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.RecoveryServices/vaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/backupFabrics/", false); + uri.AppendPath(fabricName, true); + uri.AppendPath("/protectionContainers/", false); + uri.AppendPath(containerName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUnregisterRequest(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string containerName) { var message = _pipeline.CreateMessage(); @@ -318,6 +372,29 @@ public Response Unregister(string subscriptionId, string resourceGroupName, stri } } + internal RequestUriBuilder CreateInquireRequestUri(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string containerName, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.RecoveryServices/vaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/backupFabrics/", false); + uri.AppendPath(fabricName, true); + uri.AppendPath("/protectionContainers/", false); + uri.AppendPath(containerName, true); + uri.AppendPath("/inquire", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + return uri; + } + internal HttpMessage CreateInquireRequest(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string containerName, string filter) { var message = _pipeline.CreateMessage(); @@ -405,6 +482,27 @@ public Response Inquire(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreateRefreshRequestUri(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.RecoveryServices/vaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/backupFabrics/", false); + uri.AppendPath(fabricName, true); + uri.AppendPath("/refreshContainers", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + return uri; + } + internal HttpMessage CreateRefreshRequest(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string filter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ProtectionIntentRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ProtectionIntentRestOperations.cs index 1075e086b945..f330be73a654 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ProtectionIntentRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ProtectionIntentRestOperations.cs @@ -37,6 +37,19 @@ public ProtectionIntentRestOperations(HttpPipeline pipeline, string applicationI _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateValidateRequestUri(string subscriptionId, AzureLocation location, PreValidateEnableBackupContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/Subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.RecoveryServices/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/backupPreValidateProtection", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateValidateRequest(string subscriptionId, AzureLocation location, PreValidateEnableBackupContent content) { var message = _pipeline.CreateMessage(); @@ -126,6 +139,24 @@ public Response Validate(string subscriptionId, A } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string intentObjectName) + { + 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.RecoveryServices/vaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/backupFabrics/", false); + uri.AppendPath(fabricName, true); + uri.AppendPath("/backupProtectionIntent/", false); + uri.AppendPath(intentObjectName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string intentObjectName) { var message = _pipeline.CreateMessage(); @@ -226,6 +257,24 @@ public Response Get(string subscriptionId, string re } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string intentObjectName, BackupProtectionIntentData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/Subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.RecoveryServices/vaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/backupFabrics/", false); + uri.AppendPath(fabricName, true); + uri.AppendPath("/backupProtectionIntent/", false); + uri.AppendPath(intentObjectName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string intentObjectName, BackupProtectionIntentData data) { var message = _pipeline.CreateMessage(); @@ -324,6 +373,24 @@ public Response CreateOrUpdate(string subscriptionId } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string intentObjectName) + { + 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.RecoveryServices/vaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/backupFabrics/", false); + uri.AppendPath(fabricName, true); + uri.AppendPath("/backupProtectionIntent/", false); + uri.AppendPath(intentObjectName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string intentObjectName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ProtectionPoliciesRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ProtectionPoliciesRestOperations.cs index d347cfb31133..7559d06148ef 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ProtectionPoliciesRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ProtectionPoliciesRestOperations.cs @@ -36,6 +36,22 @@ public ProtectionPoliciesRestOperations(HttpPipeline pipeline, string applicatio _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string vaultName, string policyName) + { + 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.RecoveryServices/vaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/backupPolicies/", false); + uri.AppendPath(policyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string vaultName, string policyName) { var message = _pipeline.CreateMessage(); @@ -130,6 +146,22 @@ public Response Get(string subscriptionId, string re } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string vaultName, string policyName, BackupProtectionPolicyData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.RecoveryServices/vaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/backupPolicies/", false); + uri.AppendPath(policyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string vaultName, string policyName, BackupProtectionPolicyData data) { var message = _pipeline.CreateMessage(); @@ -232,6 +264,22 @@ public Response CreateOrUpdate(string subscriptionId } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string vaultName, string policyName) + { + 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.RecoveryServices/vaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/backupPolicies/", false); + uri.AppendPath(policyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string vaultName, string policyName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/RecoveryPointsRecommendedForMoveRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/RecoveryPointsRecommendedForMoveRestOperations.cs index 6d26132dc755..7ac9470816e3 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/RecoveryPointsRecommendedForMoveRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/RecoveryPointsRecommendedForMoveRestOperations.cs @@ -37,6 +37,27 @@ public RecoveryPointsRecommendedForMoveRestOperations(HttpPipeline pipeline, str _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string containerName, string protectedItemName, RecoveryPointsRecommendedForMoveContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.RecoveryServices/vaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/backupFabrics/", false); + uri.AppendPath(fabricName, true); + uri.AppendPath("/protectionContainers/", false); + uri.AppendPath(containerName, true); + uri.AppendPath("/protectedItems/", false); + uri.AppendPath(protectedItemName, true); + uri.AppendPath("/recoveryPointsRecommendedForMove", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string containerName, string protectedItemName, RecoveryPointsRecommendedForMoveContent content) { var message = _pipeline.CreateMessage(); @@ -142,6 +163,14 @@ public Response List(string subscriptionId, string re } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string containerName, string protectedItemName, RecoveryPointsRecommendedForMoveContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string containerName, string protectedItemName, RecoveryPointsRecommendedForMoveContent content) { var message = _pipeline.CreateMessage(); diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/RecoveryPointsRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/RecoveryPointsRestOperations.cs index 0e07e292901d..aaaf9b90fd6b 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/RecoveryPointsRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/RecoveryPointsRestOperations.cs @@ -37,6 +37,31 @@ public RecoveryPointsRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string containerName, string protectedItemName, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.RecoveryServices/vaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/backupFabrics/", false); + uri.AppendPath(fabricName, true); + uri.AppendPath("/protectionContainers/", false); + uri.AppendPath(containerName, true); + uri.AppendPath("/protectedItems/", false); + uri.AppendPath(protectedItemName, true); + uri.AppendPath("/recoveryPoints", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string containerName, string protectedItemName, string filter) { var message = _pipeline.CreateMessage(); @@ -140,6 +165,28 @@ public Response List(string subscriptionId, string re } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string containerName, string protectedItemName, string recoveryPointId) + { + 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.RecoveryServices/vaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/backupFabrics/", false); + uri.AppendPath(fabricName, true); + uri.AppendPath("/protectionContainers/", false); + uri.AppendPath(containerName, true); + uri.AppendPath("/protectedItems/", false); + uri.AppendPath(protectedItemName, true); + uri.AppendPath("/recoveryPoints/", false); + uri.AppendPath(recoveryPointId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string containerName, string protectedItemName, string recoveryPointId) { var message = _pipeline.CreateMessage(); @@ -252,6 +299,14 @@ public Response Get(string subscriptionId, string resou } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string containerName, string protectedItemName, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string containerName, string protectedItemName, string filter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/RecoveryServicesBackupRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/RecoveryServicesBackupRestOperations.cs index 75581d303974..0c825b4f4c4a 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/RecoveryServicesBackupRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/RecoveryServicesBackupRestOperations.cs @@ -36,6 +36,21 @@ public RecoveryServicesBackupRestOperations(HttpPipeline pipeline, string applic _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateBMSPrepareDataMoveRequestUri(string subscriptionId, string resourceGroupName, string vaultName, PrepareDataMoveContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.RecoveryServices/vaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/backupstorageconfig/vaultstorageconfig/prepareDataMove", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateBMSPrepareDataMoveRequest(string subscriptionId, string resourceGroupName, string vaultName, PrepareDataMoveContent content) { var message = _pipeline.CreateMessage(); @@ -115,6 +130,21 @@ public Response BMSPrepareDataMove(string subscriptionId, string resourceGroupNa } } + internal RequestUriBuilder CreateBMSTriggerDataMoveRequestUri(string subscriptionId, string resourceGroupName, string vaultName, TriggerDataMoveContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.RecoveryServices/vaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/backupstorageconfig/vaultstorageconfig/triggerDataMove", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateBMSTriggerDataMoveRequest(string subscriptionId, string resourceGroupName, string vaultName, TriggerDataMoveContent content) { var message = _pipeline.CreateMessage(); @@ -194,6 +224,29 @@ public Response BMSTriggerDataMove(string subscriptionId, string resourceGroupNa } } + internal RequestUriBuilder CreateMoveRecoveryPointRequestUri(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string containerName, string protectedItemName, string recoveryPointId, MoveRPAcrossTiersContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.RecoveryServices/vaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/backupFabrics/", false); + uri.AppendPath(fabricName, true); + uri.AppendPath("/protectionContainers/", false); + uri.AppendPath(containerName, true); + uri.AppendPath("/protectedItems/", false); + uri.AppendPath(protectedItemName, true); + uri.AppendPath("/recoveryPoints/", false); + uri.AppendPath(recoveryPointId, true); + uri.AppendPath("/move", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateMoveRecoveryPointRequest(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string containerName, string protectedItemName, string recoveryPointId, MoveRPAcrossTiersContent content) { var message = _pipeline.CreateMessage(); diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ResourceGuardProxyRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ResourceGuardProxyRestOperations.cs index a4193130e72d..ff5d3a15d350 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ResourceGuardProxyRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ResourceGuardProxyRestOperations.cs @@ -37,6 +37,21 @@ public ResourceGuardProxyRestOperations(HttpPipeline pipeline, string applicatio _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string vaultName) + { + 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.RecoveryServices/vaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/backupResourceGuardProxies", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string vaultName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response List(string subscriptionId, } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string vaultName, string resourceGuardProxyName) + { + 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.RecoveryServices/vaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/backupResourceGuardProxies/", false); + uri.AppendPath(resourceGuardProxyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string vaultName, string resourceGuardProxyName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscriptionId, string resour } } + internal RequestUriBuilder CreatePutRequestUri(string subscriptionId, string resourceGroupName, string vaultName, string resourceGuardProxyName, ResourceGuardProxyData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.RecoveryServices/vaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/backupResourceGuardProxies/", false); + uri.AppendPath(resourceGuardProxyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreatePutRequest(string subscriptionId, string resourceGroupName, string vaultName, string resourceGuardProxyName, ResourceGuardProxyData data) { var message = _pipeline.CreateMessage(); @@ -302,6 +349,22 @@ public Response Put(string subscriptionId, string resour } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string vaultName, string resourceGuardProxyName) + { + 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.RecoveryServices/vaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/backupResourceGuardProxies/", false); + uri.AppendPath(resourceGuardProxyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string vaultName, string resourceGuardProxyName) { var message = _pipeline.CreateMessage(); @@ -378,6 +441,23 @@ public Response Delete(string subscriptionId, string resourceGroupName, string v } } + internal RequestUriBuilder CreateUnlockDeleteRequestUri(string subscriptionId, string resourceGroupName, string vaultName, string resourceGuardProxyName, UnlockDeleteContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.RecoveryServices/vaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/backupResourceGuardProxies/", false); + uri.AppendPath(resourceGuardProxyName, true); + uri.AppendPath("/unlockDelete", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUnlockDeleteRequest(string subscriptionId, string resourceGroupName, string vaultName, string resourceGuardProxyName, UnlockDeleteContent content) { var message = _pipeline.CreateMessage(); @@ -471,6 +551,14 @@ public Response UnlockDelete(string subscriptionId, string r } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string vaultName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string vaultName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/RestoresRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/RestoresRestOperations.cs index 514a919ac4c9..ef72e734eb3a 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/RestoresRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/RestoresRestOperations.cs @@ -36,6 +36,29 @@ public RestoresRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateTriggerRequestUri(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string containerName, string protectedItemName, string recoveryPointId, TriggerRestoreContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.RecoveryServices/vaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/backupFabrics/", false); + uri.AppendPath(fabricName, true); + uri.AppendPath("/protectionContainers/", false); + uri.AppendPath(containerName, true); + uri.AppendPath("/protectedItems/", false); + uri.AppendPath(protectedItemName, true); + uri.AppendPath("/recoveryPoints/", false); + uri.AppendPath(recoveryPointId, true); + uri.AppendPath("/restore", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateTriggerRequest(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string containerName, string protectedItemName, string recoveryPointId, TriggerRestoreContent content) { var message = _pipeline.CreateMessage(); diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/SecurityPINsRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/SecurityPINsRestOperations.cs index 1afa215baf60..159c4d8174de 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/SecurityPINsRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/SecurityPINsRestOperations.cs @@ -37,6 +37,21 @@ public SecurityPINsRestOperations(HttpPipeline pipeline, string applicationId, U _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string vaultName, SecurityPinContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.RecoveryServices/vaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/backupSecurityPIN", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string vaultName, SecurityPinContent content) { var message = _pipeline.CreateMessage(); diff --git a/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/DataReplicationEmailConfigurationCollection.cs b/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/DataReplicationEmailConfigurationCollection.cs index 9fe6c69bd365..fb0dd894350d 100644 --- a/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/DataReplicationEmailConfigurationCollection.cs +++ b/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/DataReplicationEmailConfigurationCollection.cs @@ -90,7 +90,9 @@ public virtual async Task(Response.FromValue(new DataReplicationEmailConfigurationResource(Client, response), response.GetRawResponse())); + var uri = _dataReplicationEmailConfigurationEmailConfigurationRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, emailConfigurationName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new RecoveryServicesDataReplicationArmOperation(Response.FromValue(new DataReplicationEmailConfigurationResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrU try { var response = _dataReplicationEmailConfigurationEmailConfigurationRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, emailConfigurationName, data, cancellationToken); - var operation = new RecoveryServicesDataReplicationArmOperation(Response.FromValue(new DataReplicationEmailConfigurationResource(Client, response), response.GetRawResponse())); + var uri = _dataReplicationEmailConfigurationEmailConfigurationRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, emailConfigurationName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new RecoveryServicesDataReplicationArmOperation(Response.FromValue(new DataReplicationEmailConfigurationResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/DataReplicationEmailConfigurationResource.cs b/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/DataReplicationEmailConfigurationResource.cs index 2b5064571211..1a6e015e6c7a 100644 --- a/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/DataReplicationEmailConfigurationResource.cs +++ b/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/DataReplicationEmailConfigurationResource.cs @@ -204,7 +204,9 @@ public virtual async Task(Response.FromValue(new DataReplicationEmailConfigurationResource(Client, response), response.GetRawResponse())); + var uri = _dataReplicationEmailConfigurationEmailConfigurationRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new RecoveryServicesDataReplicationArmOperation(Response.FromValue(new DataReplicationEmailConfigurationResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -250,7 +252,9 @@ public virtual ArmOperation Update(Wa try { var response = _dataReplicationEmailConfigurationEmailConfigurationRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new RecoveryServicesDataReplicationArmOperation(Response.FromValue(new DataReplicationEmailConfigurationResource(Client, response), response.GetRawResponse())); + var uri = _dataReplicationEmailConfigurationEmailConfigurationRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new RecoveryServicesDataReplicationArmOperation(Response.FromValue(new DataReplicationEmailConfigurationResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/LongRunningOperation/RecoveryServicesDataReplicationArmOperation.cs b/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/LongRunningOperation/RecoveryServicesDataReplicationArmOperation.cs index 6c9ea67cac22..42dd3b15c41c 100644 --- a/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/LongRunningOperation/RecoveryServicesDataReplicationArmOperation.cs +++ b/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/LongRunningOperation/RecoveryServicesDataReplicationArmOperation.cs @@ -20,21 +20,24 @@ internal class RecoveryServicesDataReplicationArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of RecoveryServicesDataReplicationArmOperation for mocking. protected RecoveryServicesDataReplicationArmOperation() { } - internal RecoveryServicesDataReplicationArmOperation(Response response) + internal RecoveryServicesDataReplicationArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal RecoveryServicesDataReplicationArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "RecoveryServicesDataReplicationArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal RecoveryServicesDataReplicationArmOperation(ClientDiagnostics clientDia public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/LongRunningOperation/RecoveryServicesDataReplicationArmOperationOfT.cs b/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/LongRunningOperation/RecoveryServicesDataReplicationArmOperationOfT.cs index 7912bde0baea..ca9d1d411839 100644 --- a/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/LongRunningOperation/RecoveryServicesDataReplicationArmOperationOfT.cs +++ b/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/LongRunningOperation/RecoveryServicesDataReplicationArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class RecoveryServicesDataReplicationArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of RecoveryServicesDataReplicationArmOperation for mocking. protected RecoveryServicesDataReplicationArmOperation() { } - internal RecoveryServicesDataReplicationArmOperation(Response response) + internal RecoveryServicesDataReplicationArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal RecoveryServicesDataReplicationArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "RecoveryServicesDataReplicationArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal RecoveryServicesDataReplicationArmOperation(IOperationSource source, public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/DataReplicationDraResource.Serialization.cs b/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/DataReplicationDraResource.Serialization.cs new file mode 100644 index 000000000000..adc05b072d04 --- /dev/null +++ b/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/DataReplicationDraResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.RecoveryServicesDataReplication +{ + public partial class DataReplicationDraResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DataReplicationDraData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DataReplicationDraData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/DataReplicationEmailConfigurationResource.Serialization.cs b/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/DataReplicationEmailConfigurationResource.Serialization.cs new file mode 100644 index 000000000000..87bbb2f5ec89 --- /dev/null +++ b/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/DataReplicationEmailConfigurationResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.RecoveryServicesDataReplication +{ + public partial class DataReplicationEmailConfigurationResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DataReplicationEmailConfigurationData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DataReplicationEmailConfigurationData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/DataReplicationEventResource.Serialization.cs b/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/DataReplicationEventResource.Serialization.cs new file mode 100644 index 000000000000..383406b3cb04 --- /dev/null +++ b/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/DataReplicationEventResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.RecoveryServicesDataReplication +{ + public partial class DataReplicationEventResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DataReplicationEventData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DataReplicationEventData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/DataReplicationFabricResource.Serialization.cs b/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/DataReplicationFabricResource.Serialization.cs new file mode 100644 index 000000000000..b2a7d41220f8 --- /dev/null +++ b/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/DataReplicationFabricResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.RecoveryServicesDataReplication +{ + public partial class DataReplicationFabricResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DataReplicationFabricData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DataReplicationFabricData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/DataReplicationPolicyResource.Serialization.cs b/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/DataReplicationPolicyResource.Serialization.cs new file mode 100644 index 000000000000..5ff4f0c9af2c --- /dev/null +++ b/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/DataReplicationPolicyResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.RecoveryServicesDataReplication +{ + public partial class DataReplicationPolicyResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DataReplicationPolicyData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DataReplicationPolicyData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/DataReplicationProtectedItemResource.Serialization.cs b/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/DataReplicationProtectedItemResource.Serialization.cs new file mode 100644 index 000000000000..54046a2d9b44 --- /dev/null +++ b/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/DataReplicationProtectedItemResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.RecoveryServicesDataReplication +{ + public partial class DataReplicationProtectedItemResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DataReplicationProtectedItemData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DataReplicationProtectedItemData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/DataReplicationRecoveryPointResource.Serialization.cs b/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/DataReplicationRecoveryPointResource.Serialization.cs new file mode 100644 index 000000000000..35267c597779 --- /dev/null +++ b/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/DataReplicationRecoveryPointResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.RecoveryServicesDataReplication +{ + public partial class DataReplicationRecoveryPointResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DataReplicationRecoveryPointData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DataReplicationRecoveryPointData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/DataReplicationReplicationExtensionResource.Serialization.cs b/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/DataReplicationReplicationExtensionResource.Serialization.cs new file mode 100644 index 000000000000..e2deec9bd74d --- /dev/null +++ b/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/DataReplicationReplicationExtensionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.RecoveryServicesDataReplication +{ + public partial class DataReplicationReplicationExtensionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DataReplicationReplicationExtensionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DataReplicationReplicationExtensionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/DataReplicationVaultResource.Serialization.cs b/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/DataReplicationVaultResource.Serialization.cs new file mode 100644 index 000000000000..d3cc6f1452ab --- /dev/null +++ b/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/DataReplicationVaultResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.RecoveryServicesDataReplication +{ + public partial class DataReplicationVaultResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DataReplicationVaultData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DataReplicationVaultData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/DataReplicationWorkflowResource.Serialization.cs b/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/DataReplicationWorkflowResource.Serialization.cs new file mode 100644 index 000000000000..c117a1b9a966 --- /dev/null +++ b/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/DataReplicationWorkflowResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.RecoveryServicesDataReplication +{ + public partial class DataReplicationWorkflowResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DataReplicationWorkflowData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DataReplicationWorkflowData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/RestOperations/AzureSiteRecoveryManagementServiceAPIRestOperations.cs b/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/RestOperations/AzureSiteRecoveryManagementServiceAPIRestOperations.cs index 89efcab0ff2f..812d31d1dc0e 100644 --- a/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/RestOperations/AzureSiteRecoveryManagementServiceAPIRestOperations.cs +++ b/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/RestOperations/AzureSiteRecoveryManagementServiceAPIRestOperations.cs @@ -37,6 +37,19 @@ public AzureSiteRecoveryManagementServiceAPIRestOperations(HttpPipeline pipeline _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCheckNameAvailabilityRequestUri(string subscriptionId, AzureLocation location, DataReplicationNameAvailabilityContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.DataReplication/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/checkNameAvailability", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCheckNameAvailabilityRequest(string subscriptionId, AzureLocation location, DataReplicationNameAvailabilityContent content) { var message = _pipeline.CreateMessage(); @@ -117,6 +130,21 @@ public Response CheckNameAvailability(str } } + internal RequestUriBuilder CreateDeploymentPreflightRequestUri(string subscriptionId, string resourceGroupName, string deploymentId, DeploymentPreflightModel body) + { + 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.DataReplication/deployments/", false); + uri.AppendPath(deploymentId, true); + uri.AppendPath("/preflight", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeploymentPreflightRequest(string subscriptionId, string resourceGroupName, string deploymentId, DeploymentPreflightModel body) { var message = _pipeline.CreateMessage(); diff --git a/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/RestOperations/DraRestOperations.cs b/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/RestOperations/DraRestOperations.cs index f061ec779464..d9cc1d514601 100644 --- a/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/RestOperations/DraRestOperations.cs +++ b/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/RestOperations/DraRestOperations.cs @@ -37,6 +37,22 @@ public DraRestOperations(HttpPipeline pipeline, string applicationId, Uri endpoi _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string fabricName, string fabricAgentName) + { + 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.DataReplication/replicationFabrics/", false); + uri.AppendPath(fabricName, true); + uri.AppendPath("/fabricAgents/", false); + uri.AppendPath(fabricAgentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string fabricName, string fabricAgentName) { var message = _pipeline.CreateMessage(); @@ -125,6 +141,22 @@ public Response Get(string subscriptionId, string resour } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string fabricName, string fabricAgentName, DataReplicationDraData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DataReplication/replicationFabrics/", false); + uri.AppendPath(fabricName, true); + uri.AppendPath("/fabricAgents/", false); + uri.AppendPath(fabricAgentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string fabricName, string fabricAgentName, DataReplicationDraData data) { var message = _pipeline.CreateMessage(); @@ -209,6 +241,22 @@ public Response Create(string subscriptionId, string resourceGroupName, string f } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string fabricName, string fabricAgentName) + { + 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.DataReplication/replicationFabrics/", false); + uri.AppendPath(fabricName, true); + uri.AppendPath("/fabricAgents/", false); + uri.AppendPath(fabricAgentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string fabricName, string fabricAgentName) { var message = _pipeline.CreateMessage(); @@ -285,6 +333,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string f } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string fabricName) + { + 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.DataReplication/replicationFabrics/", false); + uri.AppendPath(fabricName, true); + uri.AppendPath("/fabricAgents", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string fabricName) { var message = _pipeline.CreateMessage(); @@ -364,6 +427,14 @@ public Response List(string subscriptionId, string } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string fabricName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string fabricName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/RestOperations/EmailConfigurationRestOperations.cs b/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/RestOperations/EmailConfigurationRestOperations.cs index c9a7fd9bbae9..480e73d81be9 100644 --- a/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/RestOperations/EmailConfigurationRestOperations.cs +++ b/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/RestOperations/EmailConfigurationRestOperations.cs @@ -37,6 +37,22 @@ public EmailConfigurationRestOperations(HttpPipeline pipeline, string applicatio _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string vaultName, string emailConfigurationName) + { + 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.DataReplication/replicationVaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/alertSettings/", false); + uri.AppendPath(emailConfigurationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string vaultName, string emailConfigurationName) { var message = _pipeline.CreateMessage(); @@ -125,6 +141,22 @@ public Response Get(string subscriptionId } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string vaultName, string emailConfigurationName, DataReplicationEmailConfigurationData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DataReplication/replicationVaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/alertSettings/", false); + uri.AppendPath(emailConfigurationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string vaultName, string emailConfigurationName, DataReplicationEmailConfigurationData data) { var message = _pipeline.CreateMessage(); @@ -219,6 +251,21 @@ public Response Create(string subscriptio } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string vaultName) + { + 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.DataReplication/replicationVaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/alertSettings", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string vaultName) { var message = _pipeline.CreateMessage(); @@ -298,6 +345,14 @@ public Response List(string subscri } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string vaultName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string vaultName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/RestOperations/EventRestOperations.cs b/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/RestOperations/EventRestOperations.cs index 0e5f027ca9c5..4a9448ffe310 100644 --- a/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/RestOperations/EventRestOperations.cs +++ b/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/RestOperations/EventRestOperations.cs @@ -37,6 +37,22 @@ public EventRestOperations(HttpPipeline pipeline, string applicationId, Uri endp _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string vaultName, string eventName) + { + 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.DataReplication/replicationVaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/events/", false); + uri.AppendPath(eventName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string vaultName, string eventName) { var message = _pipeline.CreateMessage(); @@ -125,6 +141,29 @@ public Response Get(string subscriptionId, string reso } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string vaultName, string filter, string continuationToken) + { + 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.DataReplication/replicationVaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/events", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (continuationToken != null) + { + uri.AppendQuery("continuationToken", continuationToken, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string vaultName, string filter, string continuationToken) { var message = _pipeline.CreateMessage(); @@ -216,6 +255,14 @@ public Response List(string subscriptionId, stri } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string vaultName, string filter, string continuationToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string vaultName, string filter, string continuationToken) { var message = _pipeline.CreateMessage(); diff --git a/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/RestOperations/FabricRestOperations.cs b/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/RestOperations/FabricRestOperations.cs index 35814b5088d4..b2f330475477 100644 --- a/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/RestOperations/FabricRestOperations.cs +++ b/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/RestOperations/FabricRestOperations.cs @@ -37,6 +37,20 @@ public FabricRestOperations(HttpPipeline pipeline, string applicationId, Uri end _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string fabricName) + { + 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.DataReplication/replicationFabrics/", false); + uri.AppendPath(fabricName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string fabricName) { var message = _pipeline.CreateMessage(); @@ -119,6 +133,20 @@ public Response Get(string subscriptionId, string res } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string fabricName, DataReplicationFabricData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DataReplication/replicationFabrics/", false); + uri.AppendPath(fabricName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string fabricName, DataReplicationFabricData data) { var message = _pipeline.CreateMessage(); @@ -197,6 +225,20 @@ public Response Create(string subscriptionId, string resourceGroupName, string f } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string fabricName, DataReplicationFabricPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DataReplication/replicationFabrics/", false); + uri.AppendPath(fabricName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string fabricName, DataReplicationFabricPatch patch) { var message = _pipeline.CreateMessage(); @@ -275,6 +317,20 @@ public Response Update(string subscriptionId, string resourceGroupName, string f } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string fabricName) + { + 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.DataReplication/replicationFabrics/", false); + uri.AppendPath(fabricName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string fabricName) { var message = _pipeline.CreateMessage(); @@ -345,6 +401,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string f } } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId, string continuationToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.DataReplication/replicationFabrics", false); + if (continuationToken != null) + { + uri.AppendQuery("continuationToken", continuationToken, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId, string continuationToken) { var message = _pipeline.CreateMessage(); @@ -418,6 +489,23 @@ public Response ListBySubscription(string subsc } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string continuationToken) + { + 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.DataReplication/replicationFabrics", false); + if (continuationToken != null) + { + uri.AppendQuery("continuationToken", continuationToken, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string continuationToken) { var message = _pipeline.CreateMessage(); @@ -497,6 +585,14 @@ public Response List(string subscriptionId, str } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId, string continuationToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId, string continuationToken) { var message = _pipeline.CreateMessage(); @@ -567,6 +663,14 @@ public Response ListBySubscriptionNextPage(stri } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string continuationToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string continuationToken) { var message = _pipeline.CreateMessage(); diff --git a/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/RestOperations/PolicyRestOperations.cs b/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/RestOperations/PolicyRestOperations.cs index 72677c0dffa0..484d6fb61115 100644 --- a/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/RestOperations/PolicyRestOperations.cs +++ b/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/RestOperations/PolicyRestOperations.cs @@ -37,6 +37,22 @@ public PolicyRestOperations(HttpPipeline pipeline, string applicationId, Uri end _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string vaultName, string policyName) + { + 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.DataReplication/replicationVaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/replicationPolicies/", false); + uri.AppendPath(policyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string vaultName, string policyName) { var message = _pipeline.CreateMessage(); @@ -125,6 +141,22 @@ public Response Get(string subscriptionId, string res } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string vaultName, string policyName, DataReplicationPolicyData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DataReplication/replicationVaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/replicationPolicies/", false); + uri.AppendPath(policyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string vaultName, string policyName, DataReplicationPolicyData data) { var message = _pipeline.CreateMessage(); @@ -209,6 +241,22 @@ public Response Create(string subscriptionId, string resourceGroupName, string v } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string vaultName, string policyName) + { + 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.DataReplication/replicationVaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/replicationPolicies/", false); + uri.AppendPath(policyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string vaultName, string policyName) { var message = _pipeline.CreateMessage(); @@ -285,6 +333,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string v } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string vaultName) + { + 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.DataReplication/replicationVaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/replicationPolicies", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string vaultName) { var message = _pipeline.CreateMessage(); @@ -364,6 +427,14 @@ public Response List(string subscriptionId, str } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string vaultName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string vaultName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/RestOperations/ProtectedItemRestOperations.cs b/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/RestOperations/ProtectedItemRestOperations.cs index 71cb225f1ba3..a928c506b917 100644 --- a/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/RestOperations/ProtectedItemRestOperations.cs +++ b/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/RestOperations/ProtectedItemRestOperations.cs @@ -37,6 +37,22 @@ public ProtectedItemRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string vaultName, string protectedItemName) + { + 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.DataReplication/replicationVaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/protectedItems/", false); + uri.AppendPath(protectedItemName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string vaultName, string protectedItemName) { var message = _pipeline.CreateMessage(); @@ -125,6 +141,22 @@ public Response Get(string subscriptionId, str } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string vaultName, string protectedItemName, DataReplicationProtectedItemData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DataReplication/replicationVaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/protectedItems/", false); + uri.AppendPath(protectedItemName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string vaultName, string protectedItemName, DataReplicationProtectedItemData data) { var message = _pipeline.CreateMessage(); @@ -209,6 +241,26 @@ public Response Create(string subscriptionId, string resourceGroupName, string v } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string vaultName, string protectedItemName, bool? forceDelete) + { + 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.DataReplication/replicationVaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/protectedItems/", false); + uri.AppendPath(protectedItemName, true); + if (forceDelete != null) + { + uri.AppendQuery("forceDelete", forceDelete.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string vaultName, string protectedItemName, bool? forceDelete) { var message = _pipeline.CreateMessage(); @@ -291,6 +343,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string v } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string vaultName) + { + 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.DataReplication/replicationVaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/protectedItems", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string vaultName) { var message = _pipeline.CreateMessage(); @@ -370,6 +437,23 @@ public Response List(string subscription } } + internal RequestUriBuilder CreatePlannedFailoverRequestUri(string subscriptionId, string resourceGroupName, string vaultName, string protectedItemName, PlannedFailoverModel body) + { + 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.DataReplication/replicationVaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/protectedItems/", false); + uri.AppendPath(protectedItemName, true); + uri.AppendPath("/plannedFailover", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreatePlannedFailoverRequest(string subscriptionId, string resourceGroupName, string vaultName, string protectedItemName, PlannedFailoverModel body) { var message = _pipeline.CreateMessage(); @@ -456,6 +540,14 @@ public Response PlannedFailover(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string vaultName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string vaultName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/RestOperations/RecoveryPointsRestOperations.cs b/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/RestOperations/RecoveryPointsRestOperations.cs index e98e467bfd39..11230df3a616 100644 --- a/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/RestOperations/RecoveryPointsRestOperations.cs +++ b/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/RestOperations/RecoveryPointsRestOperations.cs @@ -37,6 +37,24 @@ public RecoveryPointsRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string vaultName, string protectedItemName, string recoveryPointName) + { + 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.DataReplication/replicationVaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/protectedItems/", false); + uri.AppendPath(protectedItemName, true); + uri.AppendPath("/recoveryPoints/", false); + uri.AppendPath(recoveryPointName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string vaultName, string protectedItemName, string recoveryPointName) { var message = _pipeline.CreateMessage(); @@ -131,6 +149,23 @@ public Response Get(string subscriptionId, str } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string vaultName, string protectedItemName) + { + 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.DataReplication/replicationVaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/protectedItems/", false); + uri.AppendPath(protectedItemName, true); + uri.AppendPath("/recoveryPoints", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string vaultName, string protectedItemName) { var message = _pipeline.CreateMessage(); @@ -216,6 +251,14 @@ public Response List(string subscription } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string vaultName, string protectedItemName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string vaultName, string protectedItemName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/RestOperations/ReplicationExtensionRestOperations.cs b/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/RestOperations/ReplicationExtensionRestOperations.cs index 932c049ae076..f56dfaeba341 100644 --- a/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/RestOperations/ReplicationExtensionRestOperations.cs +++ b/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/RestOperations/ReplicationExtensionRestOperations.cs @@ -37,6 +37,22 @@ public ReplicationExtensionRestOperations(HttpPipeline pipeline, string applicat _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string vaultName, string replicationExtensionName) + { + 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.DataReplication/replicationVaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/replicationExtensions/", false); + uri.AppendPath(replicationExtensionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string vaultName, string replicationExtensionName) { var message = _pipeline.CreateMessage(); @@ -125,6 +141,22 @@ public Response Get(string subscription } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string vaultName, string replicationExtensionName, DataReplicationReplicationExtensionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DataReplication/replicationVaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/replicationExtensions/", false); + uri.AppendPath(replicationExtensionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string vaultName, string replicationExtensionName, DataReplicationReplicationExtensionData data) { var message = _pipeline.CreateMessage(); @@ -209,6 +241,22 @@ public Response Create(string subscriptionId, string resourceGroupName, string v } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string vaultName, string replicationExtensionName) + { + 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.DataReplication/replicationVaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/replicationExtensions/", false); + uri.AppendPath(replicationExtensionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string vaultName, string replicationExtensionName) { var message = _pipeline.CreateMessage(); @@ -285,6 +333,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string v } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string vaultName) + { + 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.DataReplication/replicationVaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/replicationExtensions", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string vaultName) { var message = _pipeline.CreateMessage(); @@ -364,6 +427,14 @@ public Response List(string subsc } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string vaultName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string vaultName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/RestOperations/VaultRestOperations.cs b/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/RestOperations/VaultRestOperations.cs index 3fb964073ea3..2168fc0848d2 100644 --- a/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/RestOperations/VaultRestOperations.cs +++ b/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/RestOperations/VaultRestOperations.cs @@ -37,6 +37,20 @@ public VaultRestOperations(HttpPipeline pipeline, string applicationId, Uri endp _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string vaultName) + { + 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.DataReplication/replicationVaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string vaultName) { var message = _pipeline.CreateMessage(); @@ -119,6 +133,20 @@ public Response Get(string subscriptionId, string reso } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string vaultName, DataReplicationVaultData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DataReplication/replicationVaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string vaultName, DataReplicationVaultData data) { var message = _pipeline.CreateMessage(); @@ -197,6 +225,20 @@ public Response Create(string subscriptionId, string resourceGroupName, string v } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string vaultName, DataReplicationVaultPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DataReplication/replicationVaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string vaultName, DataReplicationVaultPatch patch) { var message = _pipeline.CreateMessage(); @@ -275,6 +317,20 @@ public Response Update(string subscriptionId, string resourceGroupName, string v } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string vaultName) + { + 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.DataReplication/replicationVaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string vaultName) { var message = _pipeline.CreateMessage(); @@ -345,6 +401,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string v } } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId, string continuationToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.DataReplication/replicationVaults", false); + if (continuationToken != null) + { + uri.AppendQuery("continuationToken", continuationToken, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId, string continuationToken) { var message = _pipeline.CreateMessage(); @@ -418,6 +489,23 @@ public Response ListBySubscription(string subscr } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string continuationToken) + { + 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.DataReplication/replicationVaults", false); + if (continuationToken != null) + { + uri.AppendQuery("continuationToken", continuationToken, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string continuationToken) { var message = _pipeline.CreateMessage(); @@ -497,6 +585,14 @@ public Response List(string subscriptionId, stri } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId, string continuationToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId, string continuationToken) { var message = _pipeline.CreateMessage(); @@ -567,6 +663,14 @@ public Response ListBySubscriptionNextPage(strin } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string continuationToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string continuationToken) { var message = _pipeline.CreateMessage(); diff --git a/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/RestOperations/WorkflowRestOperations.cs b/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/RestOperations/WorkflowRestOperations.cs index 68aed0f22a7a..ca41d0254ef9 100644 --- a/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/RestOperations/WorkflowRestOperations.cs +++ b/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/RestOperations/WorkflowRestOperations.cs @@ -37,6 +37,22 @@ public WorkflowRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string vaultName, string jobName) + { + 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.DataReplication/replicationVaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/jobs/", false); + uri.AppendPath(jobName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string vaultName, string jobName) { var message = _pipeline.CreateMessage(); @@ -125,6 +141,29 @@ public Response Get(string subscriptionId, string r } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string vaultName, string filter, string continuationToken) + { + 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.DataReplication/replicationVaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/jobs", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (continuationToken != null) + { + uri.AppendQuery("continuationToken", continuationToken, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string vaultName, string filter, string continuationToken) { var message = _pipeline.CreateMessage(); @@ -216,6 +255,14 @@ public Response List(string subscriptionId, s } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string vaultName, string filter, string continuationToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string vaultName, string filter, string continuationToken) { var message = _pipeline.CreateMessage(); diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/LongRunningOperation/RecoveryServicesSiteRecoveryArmOperation.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/LongRunningOperation/RecoveryServicesSiteRecoveryArmOperation.cs index ea8d942404f1..1781716d5f60 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/LongRunningOperation/RecoveryServicesSiteRecoveryArmOperation.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/LongRunningOperation/RecoveryServicesSiteRecoveryArmOperation.cs @@ -20,21 +20,24 @@ internal class RecoveryServicesSiteRecoveryArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of RecoveryServicesSiteRecoveryArmOperation for mocking. protected RecoveryServicesSiteRecoveryArmOperation() { } - internal RecoveryServicesSiteRecoveryArmOperation(Response response) + internal RecoveryServicesSiteRecoveryArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal RecoveryServicesSiteRecoveryArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "RecoveryServicesSiteRecoveryArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal RecoveryServicesSiteRecoveryArmOperation(ClientDiagnostics clientDiagno public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/LongRunningOperation/RecoveryServicesSiteRecoveryArmOperationOfT.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/LongRunningOperation/RecoveryServicesSiteRecoveryArmOperationOfT.cs index d9a9b98b0622..52d53bfe6af1 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/LongRunningOperation/RecoveryServicesSiteRecoveryArmOperationOfT.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/LongRunningOperation/RecoveryServicesSiteRecoveryArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class RecoveryServicesSiteRecoveryArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of RecoveryServicesSiteRecoveryArmOperation for mocking. protected RecoveryServicesSiteRecoveryArmOperation() { } - internal RecoveryServicesSiteRecoveryArmOperation(Response response) + internal RecoveryServicesSiteRecoveryArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal RecoveryServicesSiteRecoveryArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "RecoveryServicesSiteRecoveryArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal RecoveryServicesSiteRecoveryArmOperation(IOperationSource source, Cl public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/MigrationRecoveryPointResource.Serialization.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/MigrationRecoveryPointResource.Serialization.cs new file mode 100644 index 000000000000..e91709d9f362 --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/MigrationRecoveryPointResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.RecoveryServicesSiteRecovery +{ + public partial class MigrationRecoveryPointResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MigrationRecoveryPointData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MigrationRecoveryPointData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/ProtectionContainerMappingResource.Serialization.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/ProtectionContainerMappingResource.Serialization.cs new file mode 100644 index 000000000000..230561751c8e --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/ProtectionContainerMappingResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.RecoveryServicesSiteRecovery +{ + public partial class ProtectionContainerMappingResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ProtectionContainerMappingData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ProtectionContainerMappingData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/ReplicationEligibilityResultResource.Serialization.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/ReplicationEligibilityResultResource.Serialization.cs new file mode 100644 index 000000000000..a75710fb1433 --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/ReplicationEligibilityResultResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.RecoveryServicesSiteRecovery +{ + public partial class ReplicationEligibilityResultResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ReplicationEligibilityResultData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ReplicationEligibilityResultData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/ReplicationProtectedItemResource.Serialization.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/ReplicationProtectedItemResource.Serialization.cs new file mode 100644 index 000000000000..f1093dc85399 --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/ReplicationProtectedItemResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.RecoveryServicesSiteRecovery +{ + public partial class ReplicationProtectedItemResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ReplicationProtectedItemData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ReplicationProtectedItemData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/ReplicationProtectionIntentResource.Serialization.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/ReplicationProtectionIntentResource.Serialization.cs new file mode 100644 index 000000000000..1f3908fcd887 --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/ReplicationProtectionIntentResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.RecoveryServicesSiteRecovery +{ + public partial class ReplicationProtectionIntentResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ReplicationProtectionIntentData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ReplicationProtectionIntentData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryAlertResource.Serialization.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryAlertResource.Serialization.cs new file mode 100644 index 000000000000..2596d5a0d80d --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryAlertResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.RecoveryServicesSiteRecovery +{ + public partial class SiteRecoveryAlertResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SiteRecoveryAlertData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SiteRecoveryAlertData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryEventResource.Serialization.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryEventResource.Serialization.cs new file mode 100644 index 000000000000..98fdefdefefa --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryEventResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.RecoveryServicesSiteRecovery +{ + public partial class SiteRecoveryEventResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SiteRecoveryEventData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SiteRecoveryEventData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryFabricResource.Serialization.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryFabricResource.Serialization.cs new file mode 100644 index 000000000000..85870111e6cc --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryFabricResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.RecoveryServicesSiteRecovery +{ + public partial class SiteRecoveryFabricResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SiteRecoveryFabricData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SiteRecoveryFabricData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryJobResource.Serialization.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryJobResource.Serialization.cs new file mode 100644 index 000000000000..3dc5a8288be6 --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryJobResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.RecoveryServicesSiteRecovery +{ + public partial class SiteRecoveryJobResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SiteRecoveryJobData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SiteRecoveryJobData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryLogicalNetworkResource.Serialization.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryLogicalNetworkResource.Serialization.cs new file mode 100644 index 000000000000..e38b37ffede1 --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryLogicalNetworkResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.RecoveryServicesSiteRecovery +{ + public partial class SiteRecoveryLogicalNetworkResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SiteRecoveryLogicalNetworkData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SiteRecoveryLogicalNetworkData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryMigrationItemResource.Serialization.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryMigrationItemResource.Serialization.cs new file mode 100644 index 000000000000..5252b4912c33 --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryMigrationItemResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.RecoveryServicesSiteRecovery +{ + public partial class SiteRecoveryMigrationItemResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SiteRecoveryMigrationItemData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SiteRecoveryMigrationItemData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryNetworkMappingResource.Serialization.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryNetworkMappingResource.Serialization.cs new file mode 100644 index 000000000000..5a6b784e4799 --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryNetworkMappingResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.RecoveryServicesSiteRecovery +{ + public partial class SiteRecoveryNetworkMappingResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SiteRecoveryNetworkMappingData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SiteRecoveryNetworkMappingData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryNetworkResource.Serialization.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryNetworkResource.Serialization.cs new file mode 100644 index 000000000000..a30c3c35e754 --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryNetworkResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.RecoveryServicesSiteRecovery +{ + public partial class SiteRecoveryNetworkResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SiteRecoveryNetworkData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SiteRecoveryNetworkData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryPointResource.Serialization.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryPointResource.Serialization.cs new file mode 100644 index 000000000000..e30cfafae1af --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryPointResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.RecoveryServicesSiteRecovery +{ + public partial class SiteRecoveryPointResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SiteRecoveryPointData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SiteRecoveryPointData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryPolicyResource.Serialization.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryPolicyResource.Serialization.cs new file mode 100644 index 000000000000..9d050e25ec08 --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryPolicyResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.RecoveryServicesSiteRecovery +{ + public partial class SiteRecoveryPolicyResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SiteRecoveryPolicyData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SiteRecoveryPolicyData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryProtectableItemResource.Serialization.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryProtectableItemResource.Serialization.cs new file mode 100644 index 000000000000..7a1e18d732b3 --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryProtectableItemResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.RecoveryServicesSiteRecovery +{ + public partial class SiteRecoveryProtectableItemResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SiteRecoveryProtectableItemData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SiteRecoveryProtectableItemData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryProtectionContainerResource.Serialization.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryProtectionContainerResource.Serialization.cs new file mode 100644 index 000000000000..265c797aafd9 --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryProtectionContainerResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.RecoveryServicesSiteRecovery +{ + public partial class SiteRecoveryProtectionContainerResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SiteRecoveryProtectionContainerData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SiteRecoveryProtectionContainerData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryRecoveryPlanResource.Serialization.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryRecoveryPlanResource.Serialization.cs new file mode 100644 index 000000000000..01af1f39bf27 --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryRecoveryPlanResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.RecoveryServicesSiteRecovery +{ + public partial class SiteRecoveryRecoveryPlanResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SiteRecoveryRecoveryPlanData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SiteRecoveryRecoveryPlanData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryServicesProviderResource.Serialization.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryServicesProviderResource.Serialization.cs new file mode 100644 index 000000000000..93866481270e --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryServicesProviderResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.RecoveryServicesSiteRecovery +{ + public partial class SiteRecoveryServicesProviderResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SiteRecoveryServicesProviderData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SiteRecoveryServicesProviderData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryVCenterResource.Serialization.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryVCenterResource.Serialization.cs new file mode 100644 index 000000000000..3b68d4e049e7 --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryVCenterResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.RecoveryServicesSiteRecovery +{ + public partial class SiteRecoveryVCenterResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SiteRecoveryVCenterData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SiteRecoveryVCenterData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryVaultSettingResource.Serialization.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryVaultSettingResource.Serialization.cs new file mode 100644 index 000000000000..cd932b825556 --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryVaultSettingResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.RecoveryServicesSiteRecovery +{ + public partial class SiteRecoveryVaultSettingResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SiteRecoveryVaultSettingData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SiteRecoveryVaultSettingData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/StorageClassificationMappingResource.Serialization.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/StorageClassificationMappingResource.Serialization.cs new file mode 100644 index 000000000000..73632cbff987 --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/StorageClassificationMappingResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.RecoveryServicesSiteRecovery +{ + public partial class StorageClassificationMappingResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + StorageClassificationMappingData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + StorageClassificationMappingData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/StorageClassificationResource.Serialization.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/StorageClassificationResource.Serialization.cs new file mode 100644 index 000000000000..aa735181f1aa --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/StorageClassificationResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.RecoveryServicesSiteRecovery +{ + public partial class StorageClassificationResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + StorageClassificationData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + StorageClassificationData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/ReplicationProtectionIntentCollection.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/ReplicationProtectionIntentCollection.cs index a2354dd6dd20..90ea0b8d2226 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/ReplicationProtectionIntentCollection.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/ReplicationProtectionIntentCollection.cs @@ -97,7 +97,9 @@ public virtual async Task> Cre try { var response = await _replicationProtectionIntentRestClient.CreateAsync(Id.SubscriptionId, Id.ResourceGroupName, _resourceName, intentObjectName, content, cancellationToken).ConfigureAwait(false); - var operation = new RecoveryServicesSiteRecoveryArmOperation(Response.FromValue(new ReplicationProtectionIntentResource(Client, response), response.GetRawResponse())); + var uri = _replicationProtectionIntentRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, _resourceName, intentObjectName, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new RecoveryServicesSiteRecoveryArmOperation(Response.FromValue(new ReplicationProtectionIntentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -146,7 +148,9 @@ public virtual ArmOperation CreateOrUpdate( try { var response = _replicationProtectionIntentRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, _resourceName, intentObjectName, content, cancellationToken); - var operation = new RecoveryServicesSiteRecoveryArmOperation(Response.FromValue(new ReplicationProtectionIntentResource(Client, response), response.GetRawResponse())); + var uri = _replicationProtectionIntentRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, _resourceName, intentObjectName, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new RecoveryServicesSiteRecoveryArmOperation(Response.FromValue(new ReplicationProtectionIntentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/ReplicationProtectionIntentResource.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/ReplicationProtectionIntentResource.cs index a5cfb4676299..6938598413f5 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/ReplicationProtectionIntentResource.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/ReplicationProtectionIntentResource.cs @@ -206,7 +206,9 @@ public virtual async Task> Upd try { var response = await _replicationProtectionIntentRestClient.CreateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, content, cancellationToken).ConfigureAwait(false); - var operation = new RecoveryServicesSiteRecoveryArmOperation(Response.FromValue(new ReplicationProtectionIntentResource(Client, response), response.GetRawResponse())); + var uri = _replicationProtectionIntentRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new RecoveryServicesSiteRecoveryArmOperation(Response.FromValue(new ReplicationProtectionIntentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -252,7 +254,9 @@ public virtual ArmOperation Update(WaitUnti try { var response = _replicationProtectionIntentRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, content, cancellationToken); - var operation = new RecoveryServicesSiteRecoveryArmOperation(Response.FromValue(new ReplicationProtectionIntentResource(Client, response), response.GetRawResponse())); + var uri = _replicationProtectionIntentRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new RecoveryServicesSiteRecoveryArmOperation(Response.FromValue(new ReplicationProtectionIntentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/RestOperations/MigrationRecoveryPointsRestOperations.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/RestOperations/MigrationRecoveryPointsRestOperations.cs index 30367e611fa9..f2c57e3bdc09 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/RestOperations/MigrationRecoveryPointsRestOperations.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/RestOperations/MigrationRecoveryPointsRestOperations.cs @@ -37,6 +37,27 @@ public MigrationRecoveryPointsRestOperations(HttpPipeline pipeline, string appli _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByReplicationMigrationItemsRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string protectionContainerName, string migrationItemName) + { + 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.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationFabrics/", false); + uri.AppendPath(fabricName, true); + uri.AppendPath("/replicationProtectionContainers/", false); + uri.AppendPath(protectionContainerName, true); + uri.AppendPath("/replicationMigrationItems/", false); + uri.AppendPath(migrationItemName, true); + uri.AppendPath("/migrationRecoveryPoints", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByReplicationMigrationItemsRequest(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string protectionContainerName, string migrationItemName) { var message = _pipeline.CreateMessage(); @@ -134,6 +155,28 @@ public Response ListByReplicationMigrationItem } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string protectionContainerName, string migrationItemName, string migrationRecoveryPointName) + { + 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.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationFabrics/", false); + uri.AppendPath(fabricName, true); + uri.AppendPath("/replicationProtectionContainers/", false); + uri.AppendPath(protectionContainerName, true); + uri.AppendPath("/replicationMigrationItems/", false); + uri.AppendPath(migrationItemName, true); + uri.AppendPath("/migrationRecoveryPoints/", false); + uri.AppendPath(migrationRecoveryPointName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string protectionContainerName, string migrationItemName, string migrationRecoveryPointName) { var message = _pipeline.CreateMessage(); @@ -240,6 +283,14 @@ public Response Get(string subscriptionId, string re } } + internal RequestUriBuilder CreateListByReplicationMigrationItemsNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string protectionContainerName, string migrationItemName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByReplicationMigrationItemsNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string protectionContainerName, string migrationItemName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/RestOperations/RecoveryPointsRestOperations.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/RestOperations/RecoveryPointsRestOperations.cs index 7a23bc1a87c4..43bed5f3774d 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/RestOperations/RecoveryPointsRestOperations.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/RestOperations/RecoveryPointsRestOperations.cs @@ -37,6 +37,27 @@ public RecoveryPointsRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByReplicationProtectedItemsRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string protectionContainerName, string replicatedProtectedItemName) + { + 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.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationFabrics/", false); + uri.AppendPath(fabricName, true); + uri.AppendPath("/replicationProtectionContainers/", false); + uri.AppendPath(protectionContainerName, true); + uri.AppendPath("/replicationProtectedItems/", false); + uri.AppendPath(replicatedProtectedItemName, true); + uri.AppendPath("/recoveryPoints", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByReplicationProtectedItemsRequest(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string protectionContainerName, string replicatedProtectedItemName) { var message = _pipeline.CreateMessage(); @@ -134,6 +155,28 @@ public Response ListByReplicationProtectedItems(str } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string protectionContainerName, string replicatedProtectedItemName, string recoveryPointName) + { + 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.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationFabrics/", false); + uri.AppendPath(fabricName, true); + uri.AppendPath("/replicationProtectionContainers/", false); + uri.AppendPath(protectionContainerName, true); + uri.AppendPath("/replicationProtectedItems/", false); + uri.AppendPath(replicatedProtectedItemName, true); + uri.AppendPath("/recoveryPoints/", false); + uri.AppendPath(recoveryPointName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string protectionContainerName, string replicatedProtectedItemName, string recoveryPointName) { var message = _pipeline.CreateMessage(); @@ -240,6 +283,14 @@ public Response Get(string subscriptionId, string resourc } } + internal RequestUriBuilder CreateListByReplicationProtectedItemsNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string protectionContainerName, string replicatedProtectedItemName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByReplicationProtectedItemsNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string protectionContainerName, string replicatedProtectedItemName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/RestOperations/ReplicationAlertSettingsRestOperations.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/RestOperations/ReplicationAlertSettingsRestOperations.cs index 015490ae0f56..f608cb115d9b 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/RestOperations/ReplicationAlertSettingsRestOperations.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/RestOperations/ReplicationAlertSettingsRestOperations.cs @@ -37,6 +37,21 @@ public ReplicationAlertSettingsRestOperations(HttpPipeline pipeline, string appl _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string resourceName) + { + 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.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationAlertSettings", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response List(string subscriptionId, string } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string alertSettingName) + { + 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.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationAlertSettings/", false); + uri.AppendPath(alertSettingName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string resourceName, string alertSettingName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscriptionId, string resourc } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string alertSettingName, SiteRecoveryAlertCreateOrUpdateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationAlertSettings/", false); + uri.AppendPath(alertSettingName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string resourceName, string alertSettingName, SiteRecoveryAlertCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); @@ -296,6 +343,14 @@ public Response Create(string subscriptionId, string reso } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string resourceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/RestOperations/ReplicationAppliancesRestOperations.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/RestOperations/ReplicationAppliancesRestOperations.cs index c97f74556ca4..00804e0bcafd 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/RestOperations/ReplicationAppliancesRestOperations.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/RestOperations/ReplicationAppliancesRestOperations.cs @@ -37,6 +37,25 @@ public ReplicationAppliancesRestOperations(HttpPipeline pipeline, string applica _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationAppliances", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string resourceName, string filter) { var message = _pipeline.CreateMessage(); @@ -122,6 +141,14 @@ public Response List(string subscriptionId, str } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string resourceName, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string resourceName, string filter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/RestOperations/ReplicationEligibilityResultsRestOperations.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/RestOperations/ReplicationEligibilityResultsRestOperations.cs index 0962d2698f06..0c8fed18b8be 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/RestOperations/ReplicationEligibilityResultsRestOperations.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/RestOperations/ReplicationEligibilityResultsRestOperations.cs @@ -37,6 +37,21 @@ public ReplicationEligibilityResultsRestOperations(HttpPipeline pipeline, string _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string virtualMachineName) + { + 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.Compute/virtualMachines/", false); + uri.AppendPath(virtualMachineName, true); + uri.AppendPath("/providers/Microsoft.RecoveryServices/replicationEligibilityResults", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string virtualMachineName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,21 @@ public Response List(string subscription } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string virtualMachineName) + { + 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.Compute/virtualMachines/", false); + uri.AppendPath(virtualMachineName, true); + uri.AppendPath("/providers/Microsoft.RecoveryServices/replicationEligibilityResults/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string virtualMachineName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/RestOperations/ReplicationEventsRestOperations.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/RestOperations/ReplicationEventsRestOperations.cs index 9f5ae83cfded..6bf1e00fe948 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/RestOperations/ReplicationEventsRestOperations.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/RestOperations/ReplicationEventsRestOperations.cs @@ -37,6 +37,25 @@ public ReplicationEventsRestOperations(HttpPipeline pipeline, string application _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationEvents", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string resourceName, string filter) { var message = _pipeline.CreateMessage(); @@ -122,6 +141,22 @@ public Response List(string subscriptionId, string resou } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string eventName) + { + 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.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationEvents/", false); + uri.AppendPath(eventName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string resourceName, string eventName) { var message = _pipeline.CreateMessage(); @@ -210,6 +245,14 @@ public Response Get(string subscriptionId, string resourc } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string resourceName, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string resourceName, string filter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/RestOperations/ReplicationFabricsRestOperations.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/RestOperations/ReplicationFabricsRestOperations.cs index c14cd4d3b739..1f26719c4921 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/RestOperations/ReplicationFabricsRestOperations.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/RestOperations/ReplicationFabricsRestOperations.cs @@ -37,6 +37,21 @@ public ReplicationFabricsRestOperations(HttpPipeline pipeline, string applicatio _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string resourceName) + { + 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.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationFabrics", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,26 @@ public Response List(string subscriptionId, string } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationFabrics/", false); + uri.AppendPath(fabricName, true); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string filter) { var message = _pipeline.CreateMessage(); @@ -210,6 +245,22 @@ public Response Get(string subscriptionId, string resour } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, SiteRecoveryFabricCreateOrUpdateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationFabrics/", false); + uri.AppendPath(fabricName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, SiteRecoveryFabricCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); @@ -294,6 +345,23 @@ public Response Create(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateCheckConsistencyRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string fabricName) + { + 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.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationFabrics/", false); + uri.AppendPath(fabricName, true); + uri.AppendPath("/checkConsistency", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCheckConsistencyRequest(string subscriptionId, string resourceGroupName, string resourceName, string fabricName) { var message = _pipeline.CreateMessage(); @@ -371,6 +439,23 @@ public Response CheckConsistency(string subscriptionId, string resourceGroupName } } + internal RequestUriBuilder CreateMigrateToAadRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string fabricName) + { + 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.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationFabrics/", false); + uri.AppendPath(fabricName, true); + uri.AppendPath("/migratetoaad", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateMigrateToAadRequest(string subscriptionId, string resourceGroupName, string resourceName, string fabricName) { var message = _pipeline.CreateMessage(); @@ -447,6 +532,23 @@ public Response MigrateToAad(string subscriptionId, string resourceGroupName, st } } + internal RequestUriBuilder CreateReassociateGatewayRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, FailoverProcessServerContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationFabrics/", false); + uri.AppendPath(fabricName, true); + uri.AppendPath("/reassociateGateway", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateReassociateGatewayRequest(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, FailoverProcessServerContent content) { var message = _pipeline.CreateMessage(); @@ -532,6 +634,23 @@ public Response ReassociateGateway(string subscriptionId, string resourceGroupNa } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string fabricName) + { + 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.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationFabrics/", false); + uri.AppendPath(fabricName, true); + uri.AppendPath("/remove", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string resourceName, string fabricName) { var message = _pipeline.CreateMessage(); @@ -608,6 +727,23 @@ public Response Delete(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateRenewCertificateRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, RenewCertificateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationFabrics/", false); + uri.AppendPath(fabricName, true); + uri.AppendPath("/renewCertificate", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRenewCertificateRequest(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, RenewCertificateContent content) { var message = _pipeline.CreateMessage(); @@ -693,6 +829,14 @@ public Response RenewCertificate(string subscriptionId, string resourceGroupName } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string resourceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/RestOperations/ReplicationJobsRestOperations.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/RestOperations/ReplicationJobsRestOperations.cs index 9d9a0e94837a..a492baa43ca5 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/RestOperations/ReplicationJobsRestOperations.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/RestOperations/ReplicationJobsRestOperations.cs @@ -37,6 +37,25 @@ public ReplicationJobsRestOperations(HttpPipeline pipeline, string applicationId _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationJobs", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string resourceName, string filter) { var message = _pipeline.CreateMessage(); @@ -122,6 +141,22 @@ public Response List(string subscriptionId, string re } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string jobName) + { + 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.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationJobs/", false); + uri.AppendPath(jobName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string resourceName, string jobName) { var message = _pipeline.CreateMessage(); @@ -210,6 +245,23 @@ public Response Get(string subscriptionId, string resourceG } } + internal RequestUriBuilder CreateCancelRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string jobName) + { + 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.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationJobs/", false); + uri.AppendPath(jobName, true); + uri.AppendPath("/cancel", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCancelRequest(string subscriptionId, string resourceGroupName, string resourceName, string jobName) { var message = _pipeline.CreateMessage(); @@ -287,6 +339,23 @@ public Response Cancel(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateRestartRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string jobName) + { + 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.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationJobs/", false); + uri.AppendPath(jobName, true); + uri.AppendPath("/restart", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRestartRequest(string subscriptionId, string resourceGroupName, string resourceName, string jobName) { var message = _pipeline.CreateMessage(); @@ -364,6 +433,23 @@ public Response Restart(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreateResumeRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string jobName, ReplicationResumeJobContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationJobs/", false); + uri.AppendPath(jobName, true); + uri.AppendPath("/resume", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateResumeRequest(string subscriptionId, string resourceGroupName, string resourceName, string jobName, ReplicationResumeJobContent content) { var message = _pipeline.CreateMessage(); @@ -449,6 +535,21 @@ public Response Resume(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateExportRequestUri(string subscriptionId, string resourceGroupName, string resourceName, SiteRecoveryJobQueryContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationJobs/export", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateExportRequest(string subscriptionId, string resourceGroupName, string resourceName, SiteRecoveryJobQueryContent content) { var message = _pipeline.CreateMessage(); @@ -528,6 +629,14 @@ public Response Export(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string resourceName, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string resourceName, string filter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/RestOperations/ReplicationLogicalNetworksRestOperations.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/RestOperations/ReplicationLogicalNetworksRestOperations.cs index 50775934686b..3a5e7c0d73f3 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/RestOperations/ReplicationLogicalNetworksRestOperations.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/RestOperations/ReplicationLogicalNetworksRestOperations.cs @@ -37,6 +37,23 @@ public ReplicationLogicalNetworksRestOperations(HttpPipeline pipeline, string ap _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByReplicationFabricsRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string fabricName) + { + 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.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationFabrics/", false); + uri.AppendPath(fabricName, true); + uri.AppendPath("/replicationLogicalNetworks", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByReplicationFabricsRequest(string subscriptionId, string resourceGroupName, string resourceName, string fabricName) { var message = _pipeline.CreateMessage(); @@ -122,6 +139,24 @@ public Response ListByReplicationFabrics(s } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string logicalNetworkName) + { + 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.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationFabrics/", false); + uri.AppendPath(fabricName, true); + uri.AppendPath("/replicationLogicalNetworks/", false); + uri.AppendPath(logicalNetworkName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string logicalNetworkName) { var message = _pipeline.CreateMessage(); @@ -216,6 +251,14 @@ public Response Get(string subscriptionId, strin } } + internal RequestUriBuilder CreateListByReplicationFabricsNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string resourceName, string fabricName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByReplicationFabricsNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string resourceName, string fabricName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/RestOperations/ReplicationMigrationItemsRestOperations.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/RestOperations/ReplicationMigrationItemsRestOperations.cs index ebd4f2b85dc5..ec08279774d6 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/RestOperations/ReplicationMigrationItemsRestOperations.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/RestOperations/ReplicationMigrationItemsRestOperations.cs @@ -37,6 +37,37 @@ public ReplicationMigrationItemsRestOperations(HttpPipeline pipeline, string app _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByReplicationProtectionContainersRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string protectionContainerName, string skipToken, string takeToken, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationFabrics/", false); + uri.AppendPath(fabricName, true); + uri.AppendPath("/replicationProtectionContainers/", false); + uri.AppendPath(protectionContainerName, true); + uri.AppendPath("/replicationMigrationItems", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (skipToken != null) + { + uri.AppendQuery("skipToken", skipToken, true); + } + if (takeToken != null) + { + uri.AppendQuery("takeToken", takeToken, true); + } + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + return uri; + } + internal HttpMessage CreateListByReplicationProtectionContainersRequest(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string protectionContainerName, string skipToken, string takeToken, string filter) { var message = _pipeline.CreateMessage(); @@ -146,6 +177,26 @@ public Response ListByReplicationProtection } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string protectionContainerName, string migrationItemName) + { + 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.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationFabrics/", false); + uri.AppendPath(fabricName, true); + uri.AppendPath("/replicationProtectionContainers/", false); + uri.AppendPath(protectionContainerName, true); + uri.AppendPath("/replicationMigrationItems/", false); + uri.AppendPath(migrationItemName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string protectionContainerName, string migrationItemName) { var message = _pipeline.CreateMessage(); @@ -246,6 +297,26 @@ public Response Get(string subscriptionId, string } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string protectionContainerName, string migrationItemName, SiteRecoveryMigrationItemCreateOrUpdateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationFabrics/", false); + uri.AppendPath(fabricName, true); + uri.AppendPath("/replicationProtectionContainers/", false); + uri.AppendPath(protectionContainerName, true); + uri.AppendPath("/replicationMigrationItems/", false); + uri.AppendPath(migrationItemName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string protectionContainerName, string migrationItemName, SiteRecoveryMigrationItemCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); @@ -342,6 +413,30 @@ public Response Create(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string protectionContainerName, string migrationItemName, string deleteOption) + { + 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.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationFabrics/", false); + uri.AppendPath(fabricName, true); + uri.AppendPath("/replicationProtectionContainers/", false); + uri.AppendPath(protectionContainerName, true); + uri.AppendPath("/replicationMigrationItems/", false); + uri.AppendPath(migrationItemName, true); + uri.AppendQuery("api-version", _apiVersion, true); + if (deleteOption != null) + { + uri.AppendQuery("deleteOption", deleteOption, true); + } + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string protectionContainerName, string migrationItemName, string deleteOption) { var message = _pipeline.CreateMessage(); @@ -435,6 +530,26 @@ public Response Delete(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string protectionContainerName, string migrationItemName, SiteRecoveryMigrationItemPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationFabrics/", false); + uri.AppendPath(fabricName, true); + uri.AppendPath("/replicationProtectionContainers/", false); + uri.AppendPath(protectionContainerName, true); + uri.AppendPath("/replicationMigrationItems/", false); + uri.AppendPath(migrationItemName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string protectionContainerName, string migrationItemName, SiteRecoveryMigrationItemPatch patch) { var message = _pipeline.CreateMessage(); @@ -531,6 +646,27 @@ public Response Update(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateMigrateRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string protectionContainerName, string migrationItemName, SiteRecoveryMigrateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationFabrics/", false); + uri.AppendPath(fabricName, true); + uri.AppendPath("/replicationProtectionContainers/", false); + uri.AppendPath(protectionContainerName, true); + uri.AppendPath("/replicationMigrationItems/", false); + uri.AppendPath(migrationItemName, true); + uri.AppendPath("/migrate", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateMigrateRequest(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string protectionContainerName, string migrationItemName, SiteRecoveryMigrateContent content) { var message = _pipeline.CreateMessage(); @@ -628,6 +764,27 @@ public Response Migrate(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreatePauseReplicationRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string protectionContainerName, string migrationItemName, PauseReplicationContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationFabrics/", false); + uri.AppendPath(fabricName, true); + uri.AppendPath("/replicationProtectionContainers/", false); + uri.AppendPath(protectionContainerName, true); + uri.AppendPath("/replicationMigrationItems/", false); + uri.AppendPath(migrationItemName, true); + uri.AppendPath("/pauseReplication", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreatePauseReplicationRequest(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string protectionContainerName, string migrationItemName, PauseReplicationContent content) { var message = _pipeline.CreateMessage(); @@ -725,6 +882,27 @@ public Response PauseReplication(string subscriptionId, string resourceGroupName } } + internal RequestUriBuilder CreateResumeReplicationRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string protectionContainerName, string migrationItemName, ResumeReplicationContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationFabrics/", false); + uri.AppendPath(fabricName, true); + uri.AppendPath("/replicationProtectionContainers/", false); + uri.AppendPath(protectionContainerName, true); + uri.AppendPath("/replicationMigrationItems/", false); + uri.AppendPath(migrationItemName, true); + uri.AppendPath("/resumeReplication", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateResumeReplicationRequest(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string protectionContainerName, string migrationItemName, ResumeReplicationContent content) { var message = _pipeline.CreateMessage(); @@ -822,6 +1000,27 @@ public Response ResumeReplication(string subscriptionId, string resourceGroupNam } } + internal RequestUriBuilder CreateResyncRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string protectionContainerName, string migrationItemName, MigrationItemResyncContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationFabrics/", false); + uri.AppendPath(fabricName, true); + uri.AppendPath("/replicationProtectionContainers/", false); + uri.AppendPath(protectionContainerName, true); + uri.AppendPath("/replicationMigrationItems/", false); + uri.AppendPath(migrationItemName, true); + uri.AppendPath("/resync", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateResyncRequest(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string protectionContainerName, string migrationItemName, MigrationItemResyncContent content) { var message = _pipeline.CreateMessage(); @@ -919,6 +1118,27 @@ public Response Resync(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateTestMigrateRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string protectionContainerName, string migrationItemName, TestMigrateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationFabrics/", false); + uri.AppendPath(fabricName, true); + uri.AppendPath("/replicationProtectionContainers/", false); + uri.AppendPath(protectionContainerName, true); + uri.AppendPath("/replicationMigrationItems/", false); + uri.AppendPath(migrationItemName, true); + uri.AppendPath("/testMigrate", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateTestMigrateRequest(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string protectionContainerName, string migrationItemName, TestMigrateContent content) { var message = _pipeline.CreateMessage(); @@ -1016,6 +1236,27 @@ public Response TestMigrate(string subscriptionId, string resourceGroupName, str } } + internal RequestUriBuilder CreateTestMigrateCleanupRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string protectionContainerName, string migrationItemName, TestMigrateCleanupContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationFabrics/", false); + uri.AppendPath(fabricName, true); + uri.AppendPath("/replicationProtectionContainers/", false); + uri.AppendPath(protectionContainerName, true); + uri.AppendPath("/replicationMigrationItems/", false); + uri.AppendPath(migrationItemName, true); + uri.AppendPath("/testMigrateCleanup", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateTestMigrateCleanupRequest(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string protectionContainerName, string migrationItemName, TestMigrateCleanupContent content) { var message = _pipeline.CreateMessage(); @@ -1113,6 +1354,33 @@ public Response TestMigrateCleanup(string subscriptionId, string resourceGroupNa } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string skipToken, string takeToken, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationMigrationItems", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (skipToken != null) + { + uri.AppendQuery("skipToken", skipToken, true); + } + if (takeToken != null) + { + uri.AppendQuery("takeToken", takeToken, true); + } + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string resourceName, string skipToken, string takeToken, string filter) { var message = _pipeline.CreateMessage(); @@ -1210,6 +1478,14 @@ public Response List(string subscriptionId, } } + internal RequestUriBuilder CreateListByReplicationProtectionContainersNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string protectionContainerName, string skipToken, string takeToken, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByReplicationProtectionContainersNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string protectionContainerName, string skipToken, string takeToken, string filter) { var message = _pipeline.CreateMessage(); @@ -1300,6 +1576,14 @@ public Response ListByReplicationProtection } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string resourceName, string skipToken, string takeToken, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string resourceName, string skipToken, string takeToken, string filter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/RestOperations/ReplicationNetworkMappingsRestOperations.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/RestOperations/ReplicationNetworkMappingsRestOperations.cs index 4ce44657da66..6b24495663f7 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/RestOperations/ReplicationNetworkMappingsRestOperations.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/RestOperations/ReplicationNetworkMappingsRestOperations.cs @@ -37,6 +37,25 @@ public ReplicationNetworkMappingsRestOperations(HttpPipeline pipeline, string ap _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByReplicationNetworksRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string networkName) + { + 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.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationFabrics/", false); + uri.AppendPath(fabricName, true); + uri.AppendPath("/replicationNetworks/", false); + uri.AppendPath(networkName, true); + uri.AppendPath("/replicationNetworkMappings", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByReplicationNetworksRequest(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string networkName) { var message = _pipeline.CreateMessage(); @@ -128,6 +147,26 @@ public Response ListByReplicationNetworks( } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string networkName, string networkMappingName) + { + 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.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationFabrics/", false); + uri.AppendPath(fabricName, true); + uri.AppendPath("/replicationNetworks/", false); + uri.AppendPath(networkName, true); + uri.AppendPath("/replicationNetworkMappings/", false); + uri.AppendPath(networkMappingName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string networkName, string networkMappingName) { var message = _pipeline.CreateMessage(); @@ -228,6 +267,26 @@ public Response Get(string subscriptionId, strin } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string networkName, string networkMappingName, SiteRecoveryNetworkMappingCreateOrUpdateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationFabrics/", false); + uri.AppendPath(fabricName, true); + uri.AppendPath("/replicationNetworks/", false); + uri.AppendPath(networkName, true); + uri.AppendPath("/replicationNetworkMappings/", false); + uri.AppendPath(networkMappingName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string networkName, string networkMappingName, SiteRecoveryNetworkMappingCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); @@ -324,6 +383,26 @@ public Response Create(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string networkName, string networkMappingName) + { + 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.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationFabrics/", false); + uri.AppendPath(fabricName, true); + uri.AppendPath("/replicationNetworks/", false); + uri.AppendPath(networkName, true); + uri.AppendPath("/replicationNetworkMappings/", false); + uri.AppendPath(networkMappingName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string networkName, string networkMappingName) { var message = _pipeline.CreateMessage(); @@ -411,6 +490,26 @@ public Response Delete(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string networkName, string networkMappingName, SiteRecoveryNetworkMappingPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationFabrics/", false); + uri.AppendPath(fabricName, true); + uri.AppendPath("/replicationNetworks/", false); + uri.AppendPath(networkName, true); + uri.AppendPath("/replicationNetworkMappings/", false); + uri.AppendPath(networkMappingName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string networkName, string networkMappingName, SiteRecoveryNetworkMappingPatch patch) { var message = _pipeline.CreateMessage(); @@ -507,6 +606,21 @@ public Response Update(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string resourceName) + { + 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.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationNetworkMappings", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); @@ -586,6 +700,14 @@ public Response List(string subscriptionId } } + internal RequestUriBuilder CreateListByReplicationNetworksNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string networkName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByReplicationNetworksNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string networkName) { var message = _pipeline.CreateMessage(); @@ -670,6 +792,14 @@ public Response ListByReplicationNetworksN } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string resourceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/RestOperations/ReplicationNetworksRestOperations.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/RestOperations/ReplicationNetworksRestOperations.cs index b811af7b8265..f3cb0bd81caf 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/RestOperations/ReplicationNetworksRestOperations.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/RestOperations/ReplicationNetworksRestOperations.cs @@ -37,6 +37,23 @@ public ReplicationNetworksRestOperations(HttpPipeline pipeline, string applicati _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByReplicationFabricsRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string fabricName) + { + 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.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationFabrics/", false); + uri.AppendPath(fabricName, true); + uri.AppendPath("/replicationNetworks", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByReplicationFabricsRequest(string subscriptionId, string resourceGroupName, string resourceName, string fabricName) { var message = _pipeline.CreateMessage(); @@ -122,6 +139,24 @@ public Response ListByReplicationFabrics(string s } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string networkName) + { + 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.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationFabrics/", false); + uri.AppendPath(fabricName, true); + uri.AppendPath("/replicationNetworks/", false); + uri.AppendPath(networkName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string networkName) { var message = _pipeline.CreateMessage(); @@ -216,6 +251,21 @@ public Response Get(string subscriptionId, string resou } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string resourceName) + { + 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.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationNetworks", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); @@ -295,6 +345,14 @@ public Response List(string subscriptionId, strin } } + internal RequestUriBuilder CreateListByReplicationFabricsNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string resourceName, string fabricName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByReplicationFabricsNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string resourceName, string fabricName) { var message = _pipeline.CreateMessage(); @@ -375,6 +433,14 @@ public Response ListByReplicationFabricsNextPage( } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string resourceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/RestOperations/ReplicationPoliciesRestOperations.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/RestOperations/ReplicationPoliciesRestOperations.cs index e3434f4b8a35..34c638f611fa 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/RestOperations/ReplicationPoliciesRestOperations.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/RestOperations/ReplicationPoliciesRestOperations.cs @@ -37,6 +37,21 @@ public ReplicationPoliciesRestOperations(HttpPipeline pipeline, string applicati _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string resourceName) + { + 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.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationPolicies", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response List(string subscriptionId, string } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string policyName) + { + 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.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationPolicies/", false); + uri.AppendPath(policyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string resourceName, string policyName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscriptionId, string resour } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string policyName, SiteRecoveryPolicyCreateOrUpdateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationPolicies/", false); + uri.AppendPath(policyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string resourceName, string policyName, SiteRecoveryPolicyCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); @@ -288,6 +335,22 @@ public Response Create(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string policyName) + { + 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.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationPolicies/", false); + uri.AppendPath(policyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string resourceName, string policyName) { var message = _pipeline.CreateMessage(); @@ -363,6 +426,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string policyName, SiteRecoveryPolicyPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationPolicies/", false); + uri.AppendPath(policyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string resourceName, string policyName, SiteRecoveryPolicyPatch patch) { var message = _pipeline.CreateMessage(); @@ -447,6 +526,14 @@ public Response Update(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string resourceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/RestOperations/ReplicationProtectableItemsRestOperations.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/RestOperations/ReplicationProtectableItemsRestOperations.cs index b63751be343d..e5ee0fe859f9 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/RestOperations/ReplicationProtectableItemsRestOperations.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/RestOperations/ReplicationProtectableItemsRestOperations.cs @@ -37,6 +37,37 @@ public ReplicationProtectableItemsRestOperations(HttpPipeline pipeline, string a _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByReplicationProtectionContainersRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string protectionContainerName, string filter, string take, string skipToken) + { + 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.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationFabrics/", false); + uri.AppendPath(fabricName, true); + uri.AppendPath("/replicationProtectionContainers/", false); + uri.AppendPath(protectionContainerName, true); + uri.AppendPath("/replicationProtectableItems", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (take != null) + { + uri.AppendQuery("$take", take, true); + } + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } + return uri; + } + internal HttpMessage CreateListByReplicationProtectionContainersRequest(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string protectionContainerName, string filter, string take, string skipToken) { var message = _pipeline.CreateMessage(); @@ -146,6 +177,26 @@ public Response ListByReplicationProtecti } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string protectionContainerName, string protectableItemName) + { + 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.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationFabrics/", false); + uri.AppendPath(fabricName, true); + uri.AppendPath("/replicationProtectionContainers/", false); + uri.AppendPath(protectionContainerName, true); + uri.AppendPath("/replicationProtectableItems/", false); + uri.AppendPath(protectableItemName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string protectionContainerName, string protectableItemName) { var message = _pipeline.CreateMessage(); @@ -246,6 +297,14 @@ public Response Get(string subscriptionId, stri } } + internal RequestUriBuilder CreateListByReplicationProtectionContainersNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string protectionContainerName, string filter, string take, string skipToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByReplicationProtectionContainersNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string protectionContainerName, string filter, string take, string skipToken) { var message = _pipeline.CreateMessage(); diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/RestOperations/ReplicationProtectedItemsRestOperations.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/RestOperations/ReplicationProtectedItemsRestOperations.cs index cd32ce6b0ac0..d4b085c850c6 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/RestOperations/ReplicationProtectedItemsRestOperations.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/RestOperations/ReplicationProtectedItemsRestOperations.cs @@ -37,6 +37,25 @@ public ReplicationProtectedItemsRestOperations(HttpPipeline pipeline, string app _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByReplicationProtectionContainersRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string protectionContainerName) + { + 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.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationFabrics/", false); + uri.AppendPath(fabricName, true); + uri.AppendPath("/replicationProtectionContainers/", false); + uri.AppendPath(protectionContainerName, true); + uri.AppendPath("/replicationProtectedItems", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByReplicationProtectionContainersRequest(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string protectionContainerName) { var message = _pipeline.CreateMessage(); @@ -128,6 +147,26 @@ public Response ListByReplicationProtectionC } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string protectionContainerName, string replicatedProtectedItemName) + { + 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.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationFabrics/", false); + uri.AppendPath(fabricName, true); + uri.AppendPath("/replicationProtectionContainers/", false); + uri.AppendPath(protectionContainerName, true); + uri.AppendPath("/replicationProtectedItems/", false); + uri.AppendPath(replicatedProtectedItemName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string protectionContainerName, string replicatedProtectedItemName) { var message = _pipeline.CreateMessage(); @@ -228,6 +267,26 @@ public Response Get(string subscriptionId, string } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string protectionContainerName, string replicatedProtectedItemName, ReplicationProtectedItemCreateOrUpdateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationFabrics/", false); + uri.AppendPath(fabricName, true); + uri.AppendPath("/replicationProtectionContainers/", false); + uri.AppendPath(protectionContainerName, true); + uri.AppendPath("/replicationProtectedItems/", false); + uri.AppendPath(replicatedProtectedItemName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string protectionContainerName, string replicatedProtectedItemName, ReplicationProtectedItemCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); @@ -324,6 +383,26 @@ public Response Create(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreatePurgeRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string protectionContainerName, string replicatedProtectedItemName) + { + 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.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationFabrics/", false); + uri.AppendPath(fabricName, true); + uri.AppendPath("/replicationProtectionContainers/", false); + uri.AppendPath(protectionContainerName, true); + uri.AppendPath("/replicationProtectedItems/", false); + uri.AppendPath(replicatedProtectedItemName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreatePurgeRequest(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string protectionContainerName, string replicatedProtectedItemName) { var message = _pipeline.CreateMessage(); @@ -411,6 +490,26 @@ public Response Purge(string subscriptionId, string resourceGroupName, string re } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string protectionContainerName, string replicatedProtectedItemName, ReplicationProtectedItemPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationFabrics/", false); + uri.AppendPath(fabricName, true); + uri.AppendPath("/replicationProtectionContainers/", false); + uri.AppendPath(protectionContainerName, true); + uri.AppendPath("/replicationProtectedItems/", false); + uri.AppendPath(replicatedProtectedItemName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string protectionContainerName, string replicatedProtectedItemName, ReplicationProtectedItemPatch patch) { var message = _pipeline.CreateMessage(); @@ -507,6 +606,27 @@ public Response Update(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateAddDisksRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string protectionContainerName, string replicatedProtectedItemName, SiteRecoveryAddDisksContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationFabrics/", false); + uri.AppendPath(fabricName, true); + uri.AppendPath("/replicationProtectionContainers/", false); + uri.AppendPath(protectionContainerName, true); + uri.AppendPath("/replicationProtectedItems/", false); + uri.AppendPath(replicatedProtectedItemName, true); + uri.AppendPath("/addDisks", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateAddDisksRequest(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string protectionContainerName, string replicatedProtectedItemName, SiteRecoveryAddDisksContent content) { var message = _pipeline.CreateMessage(); @@ -604,6 +724,27 @@ public Response AddDisks(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreateApplyRecoveryPointRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string protectionContainerName, string replicatedProtectedItemName, SiteRecoveryApplyRecoveryPointContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationFabrics/", false); + uri.AppendPath(fabricName, true); + uri.AppendPath("/replicationProtectionContainers/", false); + uri.AppendPath(protectionContainerName, true); + uri.AppendPath("/replicationProtectedItems/", false); + uri.AppendPath(replicatedProtectedItemName, true); + uri.AppendPath("/applyRecoveryPoint", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateApplyRecoveryPointRequest(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string protectionContainerName, string replicatedProtectedItemName, SiteRecoveryApplyRecoveryPointContent content) { var message = _pipeline.CreateMessage(); @@ -701,6 +842,27 @@ public Response ApplyRecoveryPoint(string subscriptionId, string resourceGroupNa } } + internal RequestUriBuilder CreateFailoverCancelRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string protectionContainerName, string replicatedProtectedItemName) + { + 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.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationFabrics/", false); + uri.AppendPath(fabricName, true); + uri.AppendPath("/replicationProtectionContainers/", false); + uri.AppendPath(protectionContainerName, true); + uri.AppendPath("/replicationProtectedItems/", false); + uri.AppendPath(replicatedProtectedItemName, true); + uri.AppendPath("/failoverCancel", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateFailoverCancelRequest(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string protectionContainerName, string replicatedProtectedItemName) { var message = _pipeline.CreateMessage(); @@ -790,6 +952,27 @@ public Response FailoverCancel(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateFailoverCommitRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string protectionContainerName, string replicatedProtectedItemName) + { + 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.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationFabrics/", false); + uri.AppendPath(fabricName, true); + uri.AppendPath("/replicationProtectionContainers/", false); + uri.AppendPath(protectionContainerName, true); + uri.AppendPath("/replicationProtectedItems/", false); + uri.AppendPath(replicatedProtectedItemName, true); + uri.AppendPath("/failoverCommit", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateFailoverCommitRequest(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string protectionContainerName, string replicatedProtectedItemName) { var message = _pipeline.CreateMessage(); @@ -879,6 +1062,27 @@ public Response FailoverCommit(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreatePlannedFailoverRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string protectionContainerName, string replicatedProtectedItemName, PlannedFailoverContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationFabrics/", false); + uri.AppendPath(fabricName, true); + uri.AppendPath("/replicationProtectionContainers/", false); + uri.AppendPath(protectionContainerName, true); + uri.AppendPath("/replicationProtectedItems/", false); + uri.AppendPath(replicatedProtectedItemName, true); + uri.AppendPath("/plannedFailover", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreatePlannedFailoverRequest(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string protectionContainerName, string replicatedProtectedItemName, PlannedFailoverContent content) { var message = _pipeline.CreateMessage(); @@ -976,6 +1180,27 @@ public Response PlannedFailover(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string protectionContainerName, string replicatedProtectedItemName, DisableProtectionContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationFabrics/", false); + uri.AppendPath(fabricName, true); + uri.AppendPath("/replicationProtectionContainers/", false); + uri.AppendPath(protectionContainerName, true); + uri.AppendPath("/replicationProtectedItems/", false); + uri.AppendPath(replicatedProtectedItemName, true); + uri.AppendPath("/remove", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string protectionContainerName, string replicatedProtectedItemName, DisableProtectionContent content) { var message = _pipeline.CreateMessage(); @@ -1072,6 +1297,27 @@ public Response Delete(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateRemoveDisksRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string protectionContainerName, string replicatedProtectedItemName, RemoveDisksContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationFabrics/", false); + uri.AppendPath(fabricName, true); + uri.AppendPath("/replicationProtectionContainers/", false); + uri.AppendPath(protectionContainerName, true); + uri.AppendPath("/replicationProtectedItems/", false); + uri.AppendPath(replicatedProtectedItemName, true); + uri.AppendPath("/removeDisks", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRemoveDisksRequest(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string protectionContainerName, string replicatedProtectedItemName, RemoveDisksContent content) { var message = _pipeline.CreateMessage(); @@ -1169,6 +1415,27 @@ public Response RemoveDisks(string subscriptionId, string resourceGroupName, str } } + internal RequestUriBuilder CreateRepairReplicationRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string protectionContainerName, string replicatedProtectedItemName) + { + 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.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationFabrics/", false); + uri.AppendPath(fabricName, true); + uri.AppendPath("/replicationProtectionContainers/", false); + uri.AppendPath(protectionContainerName, true); + uri.AppendPath("/replicationProtectedItems/", false); + uri.AppendPath(replicatedProtectedItemName, true); + uri.AppendPath("/repairReplication", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRepairReplicationRequest(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string protectionContainerName, string replicatedProtectedItemName) { var message = _pipeline.CreateMessage(); @@ -1258,6 +1525,27 @@ public Response RepairReplication(string subscriptionId, string resourceGroupNam } } + internal RequestUriBuilder CreateReprotectRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string protectionContainerName, string replicatedProtectedItemName, ReverseReplicationContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationFabrics/", false); + uri.AppendPath(fabricName, true); + uri.AppendPath("/replicationProtectionContainers/", false); + uri.AppendPath(protectionContainerName, true); + uri.AppendPath("/replicationProtectedItems/", false); + uri.AppendPath(replicatedProtectedItemName, true); + uri.AppendPath("/reProtect", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateReprotectRequest(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string protectionContainerName, string replicatedProtectedItemName, ReverseReplicationContent content) { var message = _pipeline.CreateMessage(); @@ -1355,6 +1643,27 @@ public Response Reprotect(string subscriptionId, string resourceGroupName, strin } } + internal RequestUriBuilder CreateResolveHealthErrorsRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string protectionContainerName, string replicatedProtectedItemName, ResolveHealthContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationFabrics/", false); + uri.AppendPath(fabricName, true); + uri.AppendPath("/replicationProtectionContainers/", false); + uri.AppendPath(protectionContainerName, true); + uri.AppendPath("/replicationProtectedItems/", false); + uri.AppendPath(replicatedProtectedItemName, true); + uri.AppendPath("/resolveHealthErrors", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateResolveHealthErrorsRequest(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string protectionContainerName, string replicatedProtectedItemName, ResolveHealthContent content) { var message = _pipeline.CreateMessage(); @@ -1452,6 +1761,27 @@ public Response ResolveHealthErrors(string subscriptionId, string resourceGroupN } } + internal RequestUriBuilder CreateSwitchProviderRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string protectionContainerName, string replicatedProtectedItemName, SwitchProviderContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationFabrics/", false); + uri.AppendPath(fabricName, true); + uri.AppendPath("/replicationProtectionContainers/", false); + uri.AppendPath(protectionContainerName, true); + uri.AppendPath("/replicationProtectedItems/", false); + uri.AppendPath(replicatedProtectedItemName, true); + uri.AppendPath("/switchProvider", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateSwitchProviderRequest(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string protectionContainerName, string replicatedProtectedItemName, SwitchProviderContent content) { var message = _pipeline.CreateMessage(); @@ -1549,6 +1879,27 @@ public Response SwitchProvider(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateTestFailoverRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string protectionContainerName, string replicatedProtectedItemName, TestFailoverContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationFabrics/", false); + uri.AppendPath(fabricName, true); + uri.AppendPath("/replicationProtectionContainers/", false); + uri.AppendPath(protectionContainerName, true); + uri.AppendPath("/replicationProtectedItems/", false); + uri.AppendPath(replicatedProtectedItemName, true); + uri.AppendPath("/testFailover", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateTestFailoverRequest(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string protectionContainerName, string replicatedProtectedItemName, TestFailoverContent content) { var message = _pipeline.CreateMessage(); @@ -1646,6 +1997,27 @@ public Response TestFailover(string subscriptionId, string resourceGroupName, st } } + internal RequestUriBuilder CreateTestFailoverCleanupRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string protectionContainerName, string replicatedProtectedItemName, TestFailoverCleanupContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationFabrics/", false); + uri.AppendPath(fabricName, true); + uri.AppendPath("/replicationProtectionContainers/", false); + uri.AppendPath(protectionContainerName, true); + uri.AppendPath("/replicationProtectedItems/", false); + uri.AppendPath(replicatedProtectedItemName, true); + uri.AppendPath("/testFailoverCleanup", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateTestFailoverCleanupRequest(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string protectionContainerName, string replicatedProtectedItemName, TestFailoverCleanupContent content) { var message = _pipeline.CreateMessage(); @@ -1743,6 +2115,27 @@ public Response TestFailoverCleanup(string subscriptionId, string resourceGroupN } } + internal RequestUriBuilder CreateUnplannedFailoverRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string protectionContainerName, string replicatedProtectedItemName, UnplannedFailoverContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationFabrics/", false); + uri.AppendPath(fabricName, true); + uri.AppendPath("/replicationProtectionContainers/", false); + uri.AppendPath(protectionContainerName, true); + uri.AppendPath("/replicationProtectedItems/", false); + uri.AppendPath(replicatedProtectedItemName, true); + uri.AppendPath("/unplannedFailover", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUnplannedFailoverRequest(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string protectionContainerName, string replicatedProtectedItemName, UnplannedFailoverContent content) { var message = _pipeline.CreateMessage(); @@ -1840,6 +2233,27 @@ public Response UnplannedFailover(string subscriptionId, string resourceGroupNam } } + internal RequestUriBuilder CreateUpdateApplianceRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string protectionContainerName, string replicatedProtectedItemName, UpdateApplianceForReplicationProtectedItemContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationFabrics/", false); + uri.AppendPath(fabricName, true); + uri.AppendPath("/replicationProtectionContainers/", false); + uri.AppendPath(protectionContainerName, true); + uri.AppendPath("/replicationProtectedItems/", false); + uri.AppendPath(replicatedProtectedItemName, true); + uri.AppendPath("/updateAppliance", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateApplianceRequest(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string protectionContainerName, string replicatedProtectedItemName, UpdateApplianceForReplicationProtectedItemContent content) { var message = _pipeline.CreateMessage(); @@ -1937,6 +2351,27 @@ public Response UpdateAppliance(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateMobilityServiceRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string protectionContainerName, string replicatedProtectedItemName, UpdateMobilityServiceContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationFabrics/", false); + uri.AppendPath(fabricName, true); + uri.AppendPath("/replicationProtectionContainers/", false); + uri.AppendPath(protectionContainerName, true); + uri.AppendPath("/replicationProtectedItems/", false); + uri.AppendPath(replicatedProtectedItemName, true); + uri.AppendPath("/updateMobilityService", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateMobilityServiceRequest(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string protectionContainerName, string replicatedProtectedItemName, UpdateMobilityServiceContent content) { var message = _pipeline.CreateMessage(); @@ -2034,6 +2469,29 @@ public Response UpdateMobilityService(string subscriptionId, string resourceGrou } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string skipToken, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationProtectedItems", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (skipToken != null) + { + uri.AppendQuery("skipToken", skipToken, true); + } + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string resourceName, string skipToken, string filter) { var message = _pipeline.CreateMessage(); @@ -2125,6 +2583,14 @@ public Response List(string subscriptionId, } } + internal RequestUriBuilder CreateListByReplicationProtectionContainersNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string protectionContainerName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByReplicationProtectionContainersNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string protectionContainerName) { var message = _pipeline.CreateMessage(); @@ -2209,6 +2675,14 @@ public Response ListByReplicationProtectionC } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string resourceName, string skipToken, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string resourceName, string skipToken, string filter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/RestOperations/ReplicationProtectionContainerMappingsRestOperations.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/RestOperations/ReplicationProtectionContainerMappingsRestOperations.cs index 8684c45dc8e0..4dca230e1d51 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/RestOperations/ReplicationProtectionContainerMappingsRestOperations.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/RestOperations/ReplicationProtectionContainerMappingsRestOperations.cs @@ -37,6 +37,25 @@ public ReplicationProtectionContainerMappingsRestOperations(HttpPipeline pipelin _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByReplicationProtectionContainersRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string protectionContainerName) + { + 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.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationFabrics/", false); + uri.AppendPath(fabricName, true); + uri.AppendPath("/replicationProtectionContainers/", false); + uri.AppendPath(protectionContainerName, true); + uri.AppendPath("/replicationProtectionContainerMappings", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByReplicationProtectionContainersRequest(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string protectionContainerName) { var message = _pipeline.CreateMessage(); @@ -128,6 +147,26 @@ public Response ListByReplicationProtectio } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string protectionContainerName, string mappingName) + { + 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.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationFabrics/", false); + uri.AppendPath(fabricName, true); + uri.AppendPath("/replicationProtectionContainers/", false); + uri.AppendPath(protectionContainerName, true); + uri.AppendPath("/replicationProtectionContainerMappings/", false); + uri.AppendPath(mappingName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string protectionContainerName, string mappingName) { var message = _pipeline.CreateMessage(); @@ -228,6 +267,26 @@ public Response Get(string subscriptionId, strin } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string protectionContainerName, string mappingName, ProtectionContainerMappingCreateOrUpdateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationFabrics/", false); + uri.AppendPath(fabricName, true); + uri.AppendPath("/replicationProtectionContainers/", false); + uri.AppendPath(protectionContainerName, true); + uri.AppendPath("/replicationProtectionContainerMappings/", false); + uri.AppendPath(mappingName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string protectionContainerName, string mappingName, ProtectionContainerMappingCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); @@ -324,6 +383,26 @@ public Response Create(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreatePurgeRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string protectionContainerName, string mappingName) + { + 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.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationFabrics/", false); + uri.AppendPath(fabricName, true); + uri.AppendPath("/replicationProtectionContainers/", false); + uri.AppendPath(protectionContainerName, true); + uri.AppendPath("/replicationProtectionContainerMappings/", false); + uri.AppendPath(mappingName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreatePurgeRequest(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string protectionContainerName, string mappingName) { var message = _pipeline.CreateMessage(); @@ -411,6 +490,26 @@ public Response Purge(string subscriptionId, string resourceGroupName, string re } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string protectionContainerName, string mappingName, ProtectionContainerMappingPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationFabrics/", false); + uri.AppendPath(fabricName, true); + uri.AppendPath("/replicationProtectionContainers/", false); + uri.AppendPath(protectionContainerName, true); + uri.AppendPath("/replicationProtectionContainerMappings/", false); + uri.AppendPath(mappingName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string protectionContainerName, string mappingName, ProtectionContainerMappingPatch patch) { var message = _pipeline.CreateMessage(); @@ -507,6 +606,27 @@ public Response Update(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string protectionContainerName, string mappingName, RemoveProtectionContainerMappingContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationFabrics/", false); + uri.AppendPath(fabricName, true); + uri.AppendPath("/replicationProtectionContainers/", false); + uri.AppendPath(protectionContainerName, true); + uri.AppendPath("/replicationProtectionContainerMappings/", false); + uri.AppendPath(mappingName, true); + uri.AppendPath("/remove", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string protectionContainerName, string mappingName, RemoveProtectionContainerMappingContent content) { var message = _pipeline.CreateMessage(); @@ -603,6 +723,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string resourceName) + { + 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.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationProtectionContainerMappings", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); @@ -682,6 +817,14 @@ public Response List(string subscriptionId } } + internal RequestUriBuilder CreateListByReplicationProtectionContainersNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string protectionContainerName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByReplicationProtectionContainersNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string protectionContainerName) { var message = _pipeline.CreateMessage(); @@ -766,6 +909,14 @@ public Response ListByReplicationProtectio } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string resourceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/RestOperations/ReplicationProtectionContainersRestOperations.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/RestOperations/ReplicationProtectionContainersRestOperations.cs index 8599c613f77c..b7114fd1deff 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/RestOperations/ReplicationProtectionContainersRestOperations.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/RestOperations/ReplicationProtectionContainersRestOperations.cs @@ -37,6 +37,23 @@ public ReplicationProtectionContainersRestOperations(HttpPipeline pipeline, stri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByReplicationFabricsRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string fabricName) + { + 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.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationFabrics/", false); + uri.AppendPath(fabricName, true); + uri.AppendPath("/replicationProtectionContainers", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByReplicationFabricsRequest(string subscriptionId, string resourceGroupName, string resourceName, string fabricName) { var message = _pipeline.CreateMessage(); @@ -122,6 +139,24 @@ public Response ListByReplicationFabr } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string protectionContainerName) + { + 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.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationFabrics/", false); + uri.AppendPath(fabricName, true); + uri.AppendPath("/replicationProtectionContainers/", false); + uri.AppendPath(protectionContainerName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string protectionContainerName) { var message = _pipeline.CreateMessage(); @@ -216,6 +251,24 @@ public Response Get(string subscriptionId, } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string protectionContainerName, SiteRecoveryProtectionContainerCreateOrUpdateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationFabrics/", false); + uri.AppendPath(fabricName, true); + uri.AppendPath("/replicationProtectionContainers/", false); + uri.AppendPath(protectionContainerName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string protectionContainerName, SiteRecoveryProtectionContainerCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); @@ -306,6 +359,25 @@ public Response Create(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateDiscoverProtectableItemRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string protectionContainerName, DiscoverProtectableItemContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationFabrics/", false); + uri.AppendPath(fabricName, true); + uri.AppendPath("/replicationProtectionContainers/", false); + uri.AppendPath(protectionContainerName, true); + uri.AppendPath("/discoverProtectableItem", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDiscoverProtectableItemRequest(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string protectionContainerName, DiscoverProtectableItemContent content) { var message = _pipeline.CreateMessage(); @@ -397,6 +469,25 @@ public Response DiscoverProtectableItem(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string protectionContainerName) + { + 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.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationFabrics/", false); + uri.AppendPath(fabricName, true); + uri.AppendPath("/replicationProtectionContainers/", false); + uri.AppendPath(protectionContainerName, true); + uri.AppendPath("/remove", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string protectionContainerName) { var message = _pipeline.CreateMessage(); @@ -479,6 +570,25 @@ public Response Delete(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateSwitchProtectionRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string protectionContainerName, SwitchProtectionContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationFabrics/", false); + uri.AppendPath(fabricName, true); + uri.AppendPath("/replicationProtectionContainers/", false); + uri.AppendPath(protectionContainerName, true); + uri.AppendPath("/switchprotection", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateSwitchProtectionRequest(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string protectionContainerName, SwitchProtectionContent content) { var message = _pipeline.CreateMessage(); @@ -570,6 +680,21 @@ public Response SwitchProtection(string subscriptionId, string resourceGroupName } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string resourceName) + { + 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.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationProtectionContainers", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); @@ -649,6 +774,14 @@ public Response List(string subscript } } + internal RequestUriBuilder CreateListByReplicationFabricsNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string resourceName, string fabricName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByReplicationFabricsNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string resourceName, string fabricName) { var message = _pipeline.CreateMessage(); @@ -729,6 +862,14 @@ public Response ListByReplicationFabr } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string resourceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/RestOperations/ReplicationProtectionIntentsRestOperations.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/RestOperations/ReplicationProtectionIntentsRestOperations.cs index dee83d0ea21f..1411a21a5734 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/RestOperations/ReplicationProtectionIntentsRestOperations.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/RestOperations/ReplicationProtectionIntentsRestOperations.cs @@ -37,6 +37,29 @@ public ReplicationProtectionIntentsRestOperations(HttpPipeline pipeline, string _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string skipToken, string takeToken) + { + 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.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationProtectionIntents", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (skipToken != null) + { + uri.AppendQuery("skipToken", skipToken, true); + } + if (takeToken != null) + { + uri.AppendQuery("takeToken", takeToken, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string resourceName, string skipToken, string takeToken) { var message = _pipeline.CreateMessage(); @@ -128,6 +151,22 @@ public Response List(string subscriptionI } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string intentObjectName) + { + 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.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationProtectionIntents/", false); + uri.AppendPath(intentObjectName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string resourceName, string intentObjectName) { var message = _pipeline.CreateMessage(); @@ -216,6 +255,22 @@ public Response Get(string subscriptionId, stri } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string intentObjectName, ReplicationProtectionIntentCreateOrUpdateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationProtectionIntents/", false); + uri.AppendPath(intentObjectName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string resourceName, string intentObjectName, ReplicationProtectionIntentCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); @@ -308,6 +363,14 @@ public Response Create(string subscriptionId, s } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string resourceName, string skipToken, string takeToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string resourceName, string skipToken, string takeToken) { var message = _pipeline.CreateMessage(); diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/RestOperations/ReplicationRecoveryPlansRestOperations.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/RestOperations/ReplicationRecoveryPlansRestOperations.cs index 5529c232119c..126c14546dfa 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/RestOperations/ReplicationRecoveryPlansRestOperations.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/RestOperations/ReplicationRecoveryPlansRestOperations.cs @@ -37,6 +37,21 @@ public ReplicationRecoveryPlansRestOperations(HttpPipeline pipeline, string appl _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string resourceName) + { + 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.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationRecoveryPlans", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response List(string subscriptionId, } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string recoveryPlanName) + { + 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.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationRecoveryPlans/", false); + uri.AppendPath(recoveryPlanName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string resourceName, string recoveryPlanName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscriptionId, string } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string recoveryPlanName, SiteRecoveryRecoveryPlanCreateOrUpdateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationRecoveryPlans/", false); + uri.AppendPath(recoveryPlanName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string resourceName, string recoveryPlanName, SiteRecoveryRecoveryPlanCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); @@ -288,6 +335,22 @@ public Response Create(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string recoveryPlanName) + { + 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.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationRecoveryPlans/", false); + uri.AppendPath(recoveryPlanName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string resourceName, string recoveryPlanName) { var message = _pipeline.CreateMessage(); @@ -363,6 +426,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string recoveryPlanName, SiteRecoveryRecoveryPlanPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationRecoveryPlans/", false); + uri.AppendPath(recoveryPlanName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string resourceName, string recoveryPlanName, SiteRecoveryRecoveryPlanPatch patch) { var message = _pipeline.CreateMessage(); @@ -447,6 +526,23 @@ public Response Update(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateFailoverCancelRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string recoveryPlanName) + { + 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.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationRecoveryPlans/", false); + uri.AppendPath(recoveryPlanName, true); + uri.AppendPath("/failoverCancel", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateFailoverCancelRequest(string subscriptionId, string resourceGroupName, string resourceName, string recoveryPlanName) { var message = _pipeline.CreateMessage(); @@ -524,6 +620,23 @@ public Response FailoverCancel(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateFailoverCommitRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string recoveryPlanName) + { + 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.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationRecoveryPlans/", false); + uri.AppendPath(recoveryPlanName, true); + uri.AppendPath("/failoverCommit", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateFailoverCommitRequest(string subscriptionId, string resourceGroupName, string resourceName, string recoveryPlanName) { var message = _pipeline.CreateMessage(); @@ -601,6 +714,23 @@ public Response FailoverCommit(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreatePlannedFailoverRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string recoveryPlanName, RecoveryPlanPlannedFailoverContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationRecoveryPlans/", false); + uri.AppendPath(recoveryPlanName, true); + uri.AppendPath("/plannedFailover", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreatePlannedFailoverRequest(string subscriptionId, string resourceGroupName, string resourceName, string recoveryPlanName, RecoveryPlanPlannedFailoverContent content) { var message = _pipeline.CreateMessage(); @@ -686,6 +816,23 @@ public Response PlannedFailover(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateReprotectRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string recoveryPlanName) + { + 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.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationRecoveryPlans/", false); + uri.AppendPath(recoveryPlanName, true); + uri.AppendPath("/reProtect", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateReprotectRequest(string subscriptionId, string resourceGroupName, string resourceName, string recoveryPlanName) { var message = _pipeline.CreateMessage(); @@ -763,6 +910,23 @@ public Response Reprotect(string subscriptionId, string resourceGroupName, strin } } + internal RequestUriBuilder CreateTestFailoverRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string recoveryPlanName, RecoveryPlanTestFailoverContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationRecoveryPlans/", false); + uri.AppendPath(recoveryPlanName, true); + uri.AppendPath("/testFailover", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateTestFailoverRequest(string subscriptionId, string resourceGroupName, string resourceName, string recoveryPlanName, RecoveryPlanTestFailoverContent content) { var message = _pipeline.CreateMessage(); @@ -848,6 +1012,23 @@ public Response TestFailover(string subscriptionId, string resourceGroupName, st } } + internal RequestUriBuilder CreateTestFailoverCleanupRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string recoveryPlanName, RecoveryPlanTestFailoverCleanupContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationRecoveryPlans/", false); + uri.AppendPath(recoveryPlanName, true); + uri.AppendPath("/testFailoverCleanup", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateTestFailoverCleanupRequest(string subscriptionId, string resourceGroupName, string resourceName, string recoveryPlanName, RecoveryPlanTestFailoverCleanupContent content) { var message = _pipeline.CreateMessage(); @@ -933,6 +1114,23 @@ public Response TestFailoverCleanup(string subscriptionId, string resourceGroupN } } + internal RequestUriBuilder CreateUnplannedFailoverRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string recoveryPlanName, RecoveryPlanUnplannedFailoverContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationRecoveryPlans/", false); + uri.AppendPath(recoveryPlanName, true); + uri.AppendPath("/unplannedFailover", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUnplannedFailoverRequest(string subscriptionId, string resourceGroupName, string resourceName, string recoveryPlanName, RecoveryPlanUnplannedFailoverContent content) { var message = _pipeline.CreateMessage(); @@ -1018,6 +1216,14 @@ public Response UnplannedFailover(string subscriptionId, string resourceGroupNam } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string resourceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/RestOperations/ReplicationRecoveryServicesProvidersRestOperations.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/RestOperations/ReplicationRecoveryServicesProvidersRestOperations.cs index 138a732bab4b..a1b100ea7dda 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/RestOperations/ReplicationRecoveryServicesProvidersRestOperations.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/RestOperations/ReplicationRecoveryServicesProvidersRestOperations.cs @@ -37,6 +37,23 @@ public ReplicationRecoveryServicesProvidersRestOperations(HttpPipeline pipeline, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByReplicationFabricsRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string fabricName) + { + 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.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationFabrics/", false); + uri.AppendPath(fabricName, true); + uri.AppendPath("/replicationRecoveryServicesProviders", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByReplicationFabricsRequest(string subscriptionId, string resourceGroupName, string resourceName, string fabricName) { var message = _pipeline.CreateMessage(); @@ -122,6 +139,24 @@ public Response ListByReplicationFabrics } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string providerName) + { + 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.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationFabrics/", false); + uri.AppendPath(fabricName, true); + uri.AppendPath("/replicationRecoveryServicesProviders/", false); + uri.AppendPath(providerName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string providerName) { var message = _pipeline.CreateMessage(); @@ -216,6 +251,24 @@ public Response Get(string subscriptionId, str } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string providerName, SiteRecoveryServicesProviderCreateOrUpdateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationFabrics/", false); + uri.AppendPath(fabricName, true); + uri.AppendPath("/replicationRecoveryServicesProviders/", false); + uri.AppendPath(providerName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string providerName, SiteRecoveryServicesProviderCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); @@ -306,6 +359,25 @@ public Response Create(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateRefreshProviderRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string providerName) + { + 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.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationFabrics/", false); + uri.AppendPath(fabricName, true); + uri.AppendPath("/replicationRecoveryServicesProviders/", false); + uri.AppendPath(providerName, true); + uri.AppendPath("/refreshProvider", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRefreshProviderRequest(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string providerName) { var message = _pipeline.CreateMessage(); @@ -389,6 +461,25 @@ public Response RefreshProvider(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string providerName) + { + 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.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationFabrics/", false); + uri.AppendPath(fabricName, true); + uri.AppendPath("/replicationRecoveryServicesProviders/", false); + uri.AppendPath(providerName, true); + uri.AppendPath("/remove", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string providerName) { var message = _pipeline.CreateMessage(); @@ -471,6 +562,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string resourceName) + { + 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.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationRecoveryServicesProviders", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); @@ -550,6 +656,14 @@ public Response List(string subscription } } + internal RequestUriBuilder CreateListByReplicationFabricsNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string resourceName, string fabricName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByReplicationFabricsNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string resourceName, string fabricName) { var message = _pipeline.CreateMessage(); @@ -630,6 +744,14 @@ public Response ListByReplicationFabrics } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string resourceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/RestOperations/ReplicationStorageClassificationMappingsRestOperations.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/RestOperations/ReplicationStorageClassificationMappingsRestOperations.cs index 9dffe8c64156..a441e771f87b 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/RestOperations/ReplicationStorageClassificationMappingsRestOperations.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/RestOperations/ReplicationStorageClassificationMappingsRestOperations.cs @@ -37,6 +37,25 @@ public ReplicationStorageClassificationMappingsRestOperations(HttpPipeline pipel _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByReplicationStorageClassificationsRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string storageClassificationName) + { + 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.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationFabrics/", false); + uri.AppendPath(fabricName, true); + uri.AppendPath("/replicationStorageClassifications/", false); + uri.AppendPath(storageClassificationName, true); + uri.AppendPath("/replicationStorageClassificationMappings", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByReplicationStorageClassificationsRequest(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string storageClassificationName) { var message = _pipeline.CreateMessage(); @@ -128,6 +147,26 @@ public Response ListByReplicationStorage } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string storageClassificationName, string storageClassificationMappingName) + { + 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.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationFabrics/", false); + uri.AppendPath(fabricName, true); + uri.AppendPath("/replicationStorageClassifications/", false); + uri.AppendPath(storageClassificationName, true); + uri.AppendPath("/replicationStorageClassificationMappings/", false); + uri.AppendPath(storageClassificationMappingName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string storageClassificationName, string storageClassificationMappingName) { var message = _pipeline.CreateMessage(); @@ -228,6 +267,26 @@ public Response Get(string subscriptionId, str } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string storageClassificationName, string storageClassificationMappingName, StorageClassificationMappingCreateOrUpdateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationFabrics/", false); + uri.AppendPath(fabricName, true); + uri.AppendPath("/replicationStorageClassifications/", false); + uri.AppendPath(storageClassificationName, true); + uri.AppendPath("/replicationStorageClassificationMappings/", false); + uri.AppendPath(storageClassificationMappingName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string storageClassificationName, string storageClassificationMappingName, StorageClassificationMappingCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); @@ -324,6 +383,26 @@ public Response Create(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string storageClassificationName, string storageClassificationMappingName) + { + 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.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationFabrics/", false); + uri.AppendPath(fabricName, true); + uri.AppendPath("/replicationStorageClassifications/", false); + uri.AppendPath(storageClassificationName, true); + uri.AppendPath("/replicationStorageClassificationMappings/", false); + uri.AppendPath(storageClassificationMappingName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string storageClassificationName, string storageClassificationMappingName) { var message = _pipeline.CreateMessage(); @@ -411,6 +490,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string resourceName) + { + 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.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationStorageClassificationMappings", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); @@ -490,6 +584,14 @@ public Response List(string subscription } } + internal RequestUriBuilder CreateListByReplicationStorageClassificationsNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string storageClassificationName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByReplicationStorageClassificationsNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string storageClassificationName) { var message = _pipeline.CreateMessage(); @@ -574,6 +676,14 @@ public Response ListByReplicationStorage } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string resourceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/RestOperations/ReplicationStorageClassificationsRestOperations.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/RestOperations/ReplicationStorageClassificationsRestOperations.cs index 63fe96a61945..994c410555f3 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/RestOperations/ReplicationStorageClassificationsRestOperations.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/RestOperations/ReplicationStorageClassificationsRestOperations.cs @@ -37,6 +37,23 @@ public ReplicationStorageClassificationsRestOperations(HttpPipeline pipeline, st _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByReplicationFabricsRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string fabricName) + { + 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.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationFabrics/", false); + uri.AppendPath(fabricName, true); + uri.AppendPath("/replicationStorageClassifications", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByReplicationFabricsRequest(string subscriptionId, string resourceGroupName, string resourceName, string fabricName) { var message = _pipeline.CreateMessage(); @@ -122,6 +139,24 @@ public Response ListByReplicationFabrics(string } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string storageClassificationName) + { + 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.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationFabrics/", false); + uri.AppendPath(fabricName, true); + uri.AppendPath("/replicationStorageClassifications/", false); + uri.AppendPath(storageClassificationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string storageClassificationName) { var message = _pipeline.CreateMessage(); @@ -216,6 +251,21 @@ public Response Get(string subscriptionId, string res } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string resourceName) + { + 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.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationStorageClassifications", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); @@ -295,6 +345,14 @@ public Response List(string subscriptionId, str } } + internal RequestUriBuilder CreateListByReplicationFabricsNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string resourceName, string fabricName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByReplicationFabricsNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string resourceName, string fabricName) { var message = _pipeline.CreateMessage(); @@ -375,6 +433,14 @@ public Response ListByReplicationFabricsNextPag } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string resourceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/RestOperations/ReplicationVaultHealthRestOperations.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/RestOperations/ReplicationVaultHealthRestOperations.cs index 21260376d7d6..ae84ebc88ac7 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/RestOperations/ReplicationVaultHealthRestOperations.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/RestOperations/ReplicationVaultHealthRestOperations.cs @@ -37,6 +37,21 @@ public ReplicationVaultHealthRestOperations(HttpPipeline pipeline, string applic _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string resourceName) + { + 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.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationVaultHealth", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,21 @@ public Response Get(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateRefreshRequestUri(string subscriptionId, string resourceGroupName, string resourceName) + { + 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.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationVaultHealth/default/refresh", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRefreshRequest(string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/RestOperations/ReplicationVaultSettingRestOperations.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/RestOperations/ReplicationVaultSettingRestOperations.cs index a858e0ebfd40..62ab4f202bad 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/RestOperations/ReplicationVaultSettingRestOperations.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/RestOperations/ReplicationVaultSettingRestOperations.cs @@ -37,6 +37,21 @@ public ReplicationVaultSettingRestOperations(HttpPipeline pipeline, string appli _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string resourceName) + { + 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.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationVaultSettings", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response List(string subscriptionId, } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string vaultSettingName) + { + 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.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationVaultSettings/", false); + uri.AppendPath(vaultSettingName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string resourceName, string vaultSettingName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscriptionId, string } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string vaultSettingName, SiteRecoveryVaultSettingCreateOrUpdateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationVaultSettings/", false); + uri.AppendPath(vaultSettingName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string resourceName, string vaultSettingName, SiteRecoveryVaultSettingCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); @@ -286,6 +333,14 @@ public Response Create(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string resourceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/RestOperations/ReplicationvCentersRestOperations.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/RestOperations/ReplicationvCentersRestOperations.cs index efaec3b9c249..4b61cba64e3a 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/RestOperations/ReplicationvCentersRestOperations.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/RestOperations/ReplicationvCentersRestOperations.cs @@ -37,6 +37,23 @@ public ReplicationvCentersRestOperations(HttpPipeline pipeline, string applicati _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByReplicationFabricsRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string fabricName) + { + 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.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationFabrics/", false); + uri.AppendPath(fabricName, true); + uri.AppendPath("/replicationvCenters", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByReplicationFabricsRequest(string subscriptionId, string resourceGroupName, string resourceName, string fabricName) { var message = _pipeline.CreateMessage(); @@ -122,6 +139,24 @@ public Response ListByReplicationFabrics(string s } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string vCenterName) + { + 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.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationFabrics/", false); + uri.AppendPath(fabricName, true); + uri.AppendPath("/replicationvCenters/", false); + uri.AppendPath(vCenterName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string vCenterName) { var message = _pipeline.CreateMessage(); @@ -216,6 +251,24 @@ public Response Get(string subscriptionId, string resou } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string vCenterName, SiteRecoveryVCenterCreateOrUpdateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationFabrics/", false); + uri.AppendPath(fabricName, true); + uri.AppendPath("/replicationvCenters/", false); + uri.AppendPath(vCenterName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string vCenterName, SiteRecoveryVCenterCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); @@ -306,6 +359,24 @@ public Response Create(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string vCenterName) + { + 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.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationFabrics/", false); + uri.AppendPath(fabricName, true); + uri.AppendPath("/replicationvCenters/", false); + uri.AppendPath(vCenterName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string vCenterName) { var message = _pipeline.CreateMessage(); @@ -387,6 +458,24 @@ public Response Delete(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string vCenterName, SiteRecoveryVCenterPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationFabrics/", false); + uri.AppendPath(fabricName, true); + uri.AppendPath("/replicationvCenters/", false); + uri.AppendPath(vCenterName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string vCenterName, SiteRecoveryVCenterPatch patch) { var message = _pipeline.CreateMessage(); @@ -477,6 +566,21 @@ public Response Update(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string resourceName) + { + 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.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationvCenters", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); @@ -556,6 +660,14 @@ public Response List(string subscriptionId, strin } } + internal RequestUriBuilder CreateListByReplicationFabricsNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string resourceName, string fabricName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByReplicationFabricsNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string resourceName, string fabricName) { var message = _pipeline.CreateMessage(); @@ -636,6 +748,14 @@ public Response ListByReplicationFabricsNextPage( } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string resourceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/RestOperations/SupportedOperatingSystemsRestOperations.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/RestOperations/SupportedOperatingSystemsRestOperations.cs index 94ba1397bab7..823d114ae655 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/RestOperations/SupportedOperatingSystemsRestOperations.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/RestOperations/SupportedOperatingSystemsRestOperations.cs @@ -37,6 +37,25 @@ public SupportedOperatingSystemsRestOperations(HttpPipeline pipeline, string app _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string instanceType) + { + 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.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationSupportedOperatingSystems", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (instanceType != null) + { + uri.AppendQuery("instanceType", instanceType, true); + } + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string resourceName, string instanceType) { var message = _pipeline.CreateMessage(); diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/RestOperations/TargetComputeSizesRestOperations.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/RestOperations/TargetComputeSizesRestOperations.cs index fa11717bfe69..5b0626ced2bc 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/RestOperations/TargetComputeSizesRestOperations.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/RestOperations/TargetComputeSizesRestOperations.cs @@ -37,6 +37,27 @@ public TargetComputeSizesRestOperations(HttpPipeline pipeline, string applicatio _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByReplicationProtectedItemsRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string protectionContainerName, string replicatedProtectedItemName) + { + 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.RecoveryServices/vaults/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/replicationFabrics/", false); + uri.AppendPath(fabricName, true); + uri.AppendPath("/replicationProtectionContainers/", false); + uri.AppendPath(protectionContainerName, true); + uri.AppendPath("/replicationProtectedItems/", false); + uri.AppendPath(replicatedProtectedItemName, true); + uri.AppendPath("/targetComputeSizes", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByReplicationProtectedItemsRequest(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string protectionContainerName, string replicatedProtectedItemName) { var message = _pipeline.CreateMessage(); @@ -134,6 +155,14 @@ public Response ListByReplicationProtectedItems(str } } + internal RequestUriBuilder CreateListByReplicationProtectedItemsNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string protectionContainerName, string replicatedProtectedItemName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByReplicationProtectedItemsNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string protectionContainerName, string replicatedProtectedItemName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/SiteRecoveryAlertCollection.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/SiteRecoveryAlertCollection.cs index 195625de9939..104daad1d92e 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/SiteRecoveryAlertCollection.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/SiteRecoveryAlertCollection.cs @@ -97,7 +97,9 @@ public virtual async Task> CreateOrUpdat try { var response = await _siteRecoveryAlertReplicationAlertSettingsRestClient.CreateAsync(Id.SubscriptionId, Id.ResourceGroupName, _resourceName, alertSettingName, content, cancellationToken).ConfigureAwait(false); - var operation = new RecoveryServicesSiteRecoveryArmOperation(Response.FromValue(new SiteRecoveryAlertResource(Client, response), response.GetRawResponse())); + var uri = _siteRecoveryAlertReplicationAlertSettingsRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, _resourceName, alertSettingName, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new RecoveryServicesSiteRecoveryArmOperation(Response.FromValue(new SiteRecoveryAlertResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -146,7 +148,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil try { var response = _siteRecoveryAlertReplicationAlertSettingsRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, _resourceName, alertSettingName, content, cancellationToken); - var operation = new RecoveryServicesSiteRecoveryArmOperation(Response.FromValue(new SiteRecoveryAlertResource(Client, response), response.GetRawResponse())); + var uri = _siteRecoveryAlertReplicationAlertSettingsRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, _resourceName, alertSettingName, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new RecoveryServicesSiteRecoveryArmOperation(Response.FromValue(new SiteRecoveryAlertResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/SiteRecoveryAlertResource.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/SiteRecoveryAlertResource.cs index d09f19270417..04bfa6759d99 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/SiteRecoveryAlertResource.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/SiteRecoveryAlertResource.cs @@ -206,7 +206,9 @@ public virtual async Task> UpdateAsync(W try { var response = await _siteRecoveryAlertReplicationAlertSettingsRestClient.CreateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, content, cancellationToken).ConfigureAwait(false); - var operation = new RecoveryServicesSiteRecoveryArmOperation(Response.FromValue(new SiteRecoveryAlertResource(Client, response), response.GetRawResponse())); + var uri = _siteRecoveryAlertReplicationAlertSettingsRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new RecoveryServicesSiteRecoveryArmOperation(Response.FromValue(new SiteRecoveryAlertResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -252,7 +254,9 @@ public virtual ArmOperation Update(WaitUntil waitUnti try { var response = _siteRecoveryAlertReplicationAlertSettingsRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, content, cancellationToken); - var operation = new RecoveryServicesSiteRecoveryArmOperation(Response.FromValue(new SiteRecoveryAlertResource(Client, response), response.GetRawResponse())); + var uri = _siteRecoveryAlertReplicationAlertSettingsRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new RecoveryServicesSiteRecoveryArmOperation(Response.FromValue(new SiteRecoveryAlertResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/LongRunningOperation/RecoveryServicesArmOperation.cs b/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/LongRunningOperation/RecoveryServicesArmOperation.cs index bbf8e7d9b9a9..4cb72d4520e9 100644 --- a/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/LongRunningOperation/RecoveryServicesArmOperation.cs +++ b/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/LongRunningOperation/RecoveryServicesArmOperation.cs @@ -20,21 +20,24 @@ internal class RecoveryServicesArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of RecoveryServicesArmOperation for mocking. protected RecoveryServicesArmOperation() { } - internal RecoveryServicesArmOperation(Response response) + internal RecoveryServicesArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal RecoveryServicesArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "RecoveryServicesArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal RecoveryServicesArmOperation(ClientDiagnostics clientDiagnostics, HttpP public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/LongRunningOperation/RecoveryServicesArmOperationOfT.cs b/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/LongRunningOperation/RecoveryServicesArmOperationOfT.cs index fd5209492913..1a2a2472c8cc 100644 --- a/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/LongRunningOperation/RecoveryServicesArmOperationOfT.cs +++ b/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/LongRunningOperation/RecoveryServicesArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class RecoveryServicesArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of RecoveryServicesArmOperation for mocking. protected RecoveryServicesArmOperation() { } - internal RecoveryServicesArmOperation(Response response) + internal RecoveryServicesArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal RecoveryServicesArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "RecoveryServicesArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal RecoveryServicesArmOperation(IOperationSource source, ClientDiagnost public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/Models/RecoveryServicesPrivateLinkResource.Serialization.cs b/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/Models/RecoveryServicesPrivateLinkResource.Serialization.cs new file mode 100644 index 000000000000..2b023dcd0bdc --- /dev/null +++ b/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/Models/RecoveryServicesPrivateLinkResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.RecoveryServices +{ + public partial class RecoveryServicesPrivateLinkResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + RecoveryServicesPrivateLinkResourceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + RecoveryServicesPrivateLinkResourceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/Models/RecoveryServicesVaultExtendedInfoResource.Serialization.cs b/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/Models/RecoveryServicesVaultExtendedInfoResource.Serialization.cs new file mode 100644 index 000000000000..10cdc072a62b --- /dev/null +++ b/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/Models/RecoveryServicesVaultExtendedInfoResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.RecoveryServices +{ + public partial class RecoveryServicesVaultExtendedInfoResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + RecoveryServicesVaultExtendedInfoData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + RecoveryServicesVaultExtendedInfoData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/Models/RecoveryServicesVaultResource.Serialization.cs b/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/Models/RecoveryServicesVaultResource.Serialization.cs new file mode 100644 index 000000000000..b1bef5d492a0 --- /dev/null +++ b/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/Models/RecoveryServicesVaultResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.RecoveryServices +{ + public partial class RecoveryServicesVaultResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + RecoveryServicesVaultData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + RecoveryServicesVaultData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/RecoveryServicesVaultExtendedInfoResource.cs b/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/RecoveryServicesVaultExtendedInfoResource.cs index 87a6567d818d..aee892f4d98c 100644 --- a/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/RecoveryServicesVaultExtendedInfoResource.cs +++ b/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/RecoveryServicesVaultExtendedInfoResource.cs @@ -287,7 +287,9 @@ public virtual async Task(Response.FromValue(new RecoveryServicesVaultExtendedInfoResource(Client, response), response.GetRawResponse())); + var uri = _recoveryServicesVaultExtendedInfoVaultExtendedInfoRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, info); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new RecoveryServicesArmOperation(Response.FromValue(new RecoveryServicesVaultExtendedInfoResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -333,7 +335,9 @@ public virtual ArmOperation CreateOrU try { var response = _recoveryServicesVaultExtendedInfoVaultExtendedInfoRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, info, cancellationToken); - var operation = new RecoveryServicesArmOperation(Response.FromValue(new RecoveryServicesVaultExtendedInfoResource(Client, response), response.GetRawResponse())); + var uri = _recoveryServicesVaultExtendedInfoVaultExtendedInfoRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, info); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new RecoveryServicesArmOperation(Response.FromValue(new RecoveryServicesVaultExtendedInfoResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/RecoveryServicesVaultResource.cs b/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/RecoveryServicesVaultResource.cs index 9bf7af58edba..9ae9cd911516 100644 --- a/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/RecoveryServicesVaultResource.cs +++ b/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/RecoveryServicesVaultResource.cs @@ -295,7 +295,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _recoveryServicesVaultVaultsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new RecoveryServicesArmOperation(response); + var uri = _recoveryServicesVaultVaultsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new RecoveryServicesArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -337,7 +339,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _recoveryServicesVaultVaultsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); - var operation = new RecoveryServicesArmOperation(response); + var uri = _recoveryServicesVaultVaultsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new RecoveryServicesArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs b/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs index 77e73ee42261..5c6f46ba9f24 100644 --- a/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs +++ b/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs @@ -37,6 +37,21 @@ public PrivateLinkResourcesRestOperations(HttpPipeline pipeline, string applicat _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string vaultName) + { + 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.RecoveryServices/vaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/privateLinkResources", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string vaultName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response List(string subscriptionId, string resourc } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string vaultName, string privateLinkResourceName) + { + 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.RecoveryServices/vaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/privateLinkResources/", false); + uri.AppendPath(privateLinkResourceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string vaultName, string privateLinkResourceName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,14 @@ public Response Get(string subscription } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string vaultName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string vaultName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/RestOperations/RecoveryServicesRestOperations.cs b/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/RestOperations/RecoveryServicesRestOperations.cs index 48e4c7d522ec..ba94fda15308 100644 --- a/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/RestOperations/RecoveryServicesRestOperations.cs +++ b/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/RestOperations/RecoveryServicesRestOperations.cs @@ -37,6 +37,21 @@ public RecoveryServicesRestOperations(HttpPipeline pipeline, string applicationI _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCheckNameAvailabilityRequestUri(string subscriptionId, string resourceGroupName, AzureLocation location, RecoveryServicesNameAvailabilityContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.RecoveryServices/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/checkNameAvailability", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCheckNameAvailabilityRequest(string subscriptionId, string resourceGroupName, AzureLocation location, RecoveryServicesNameAvailabilityContent content) { var message = _pipeline.CreateMessage(); @@ -130,6 +145,19 @@ public Response CheckNameAvailability(st } } + internal RequestUriBuilder CreateCapabilitiesRequestUri(string subscriptionId, AzureLocation location, ResourceCapabilities input) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.RecoveryServices/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/capabilities", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCapabilitiesRequest(string subscriptionId, AzureLocation location, ResourceCapabilities input) { var message = _pipeline.CreateMessage(); diff --git a/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/RestOperations/RegisteredIdentitiesRestOperations.cs b/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/RestOperations/RegisteredIdentitiesRestOperations.cs index f1c63b539a86..60a008a83192 100644 --- a/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/RestOperations/RegisteredIdentitiesRestOperations.cs +++ b/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/RestOperations/RegisteredIdentitiesRestOperations.cs @@ -35,6 +35,22 @@ public RegisteredIdentitiesRestOperations(HttpPipeline pipeline, string applicat _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string vaultName, string identityName) + { + 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.RecoveryServices/vaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/registeredIdentities/", false); + uri.AppendPath(identityName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string vaultName, string identityName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/RestOperations/ReplicationUsagesRestOperations.cs b/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/RestOperations/ReplicationUsagesRestOperations.cs index 7d9f8a698b91..3aef1874cc9a 100644 --- a/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/RestOperations/ReplicationUsagesRestOperations.cs +++ b/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/RestOperations/ReplicationUsagesRestOperations.cs @@ -37,6 +37,21 @@ public ReplicationUsagesRestOperations(HttpPipeline pipeline, string application _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string vaultName) + { + 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.RecoveryServices/vaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/replicationUsages", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string vaultName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/RestOperations/UsagesRestOperations.cs b/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/RestOperations/UsagesRestOperations.cs index c31d95025e74..9f6e3782dc41 100644 --- a/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/RestOperations/UsagesRestOperations.cs +++ b/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/RestOperations/UsagesRestOperations.cs @@ -37,6 +37,21 @@ public UsagesRestOperations(HttpPipeline pipeline, string applicationId, Uri end _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByVaultsRequestUri(string subscriptionId, string resourceGroupName, string vaultName) + { + 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.RecoveryServices/vaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/usages", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByVaultsRequest(string subscriptionId, string resourceGroupName, string vaultName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/RestOperations/VaultCertificatesRestOperations.cs b/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/RestOperations/VaultCertificatesRestOperations.cs index 49007f29fdfa..9e2459d54b9f 100644 --- a/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/RestOperations/VaultCertificatesRestOperations.cs +++ b/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/RestOperations/VaultCertificatesRestOperations.cs @@ -37,6 +37,22 @@ public VaultCertificatesRestOperations(HttpPipeline pipeline, string application _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string vaultName, string certificateName, RecoveryServicesCertificateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/Subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.RecoveryServices/vaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/certificates/", false); + uri.AppendPath(certificateName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string vaultName, string certificateName, RecoveryServicesCertificateContent content) { var message = _pipeline.CreateMessage(); diff --git a/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/RestOperations/VaultExtendedInfoRestOperations.cs b/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/RestOperations/VaultExtendedInfoRestOperations.cs index 6597214ba028..375cf2d58468 100644 --- a/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/RestOperations/VaultExtendedInfoRestOperations.cs +++ b/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/RestOperations/VaultExtendedInfoRestOperations.cs @@ -36,6 +36,21 @@ public VaultExtendedInfoRestOperations(HttpPipeline pipeline, string application _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string vaultName) + { + 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.RecoveryServices/vaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/extendedInformation/vaultExtendedInfo", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string vaultName) { var message = _pipeline.CreateMessage(); @@ -119,6 +134,21 @@ public Response Get(string subscriptionId } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string vaultName, RecoveryServicesVaultExtendedInfoData info) + { + 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.RecoveryServices/vaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/extendedInformation/vaultExtendedInfo", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string vaultName, RecoveryServicesVaultExtendedInfoData info) { var message = _pipeline.CreateMessage(); @@ -206,6 +236,21 @@ public Response CreateOrUpdate(string sub } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string vaultName, RecoveryServicesVaultExtendedInfoData info) + { + 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.RecoveryServices/vaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/extendedInformation/vaultExtendedInfo", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string vaultName, RecoveryServicesVaultExtendedInfoData info) { var message = _pipeline.CreateMessage(); diff --git a/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/RestOperations/VaultsRestOperations.cs b/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/RestOperations/VaultsRestOperations.cs index 34c8cab6ecdb..e36a7d37e6f0 100644 --- a/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/RestOperations/VaultsRestOperations.cs +++ b/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/RestOperations/VaultsRestOperations.cs @@ -37,6 +37,17 @@ public VaultsRestOperations(HttpPipeline pipeline, string applicationId, Uri end _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListBySubscriptionIdRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.RecoveryServices/vaults", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionIdRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,19 @@ public Response ListBySubscriptionId(string sub } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.RecoveryServices/vaults", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -177,6 +201,20 @@ public Response ListByResourceGroup(string subs } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string vaultName) + { + 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.RecoveryServices/vaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string vaultName) { var message = _pipeline.CreateMessage(); @@ -259,6 +297,20 @@ public Response Get(string subscriptionId, string res } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string vaultName, RecoveryServicesVaultData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.RecoveryServices/vaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string vaultName, RecoveryServicesVaultData data) { var message = _pipeline.CreateMessage(); @@ -337,6 +389,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string vaultName) + { + 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.RecoveryServices/vaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string vaultName) { var message = _pipeline.CreateMessage(); @@ -405,6 +471,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string v } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string vaultName, RecoveryServicesVaultPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.RecoveryServices/vaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string vaultName, RecoveryServicesVaultPatch patch) { var message = _pipeline.CreateMessage(); @@ -483,6 +563,14 @@ public Response Update(string subscriptionId, string resourceGroupName, string v } } + internal RequestUriBuilder CreateListBySubscriptionIdNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionIdNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -551,6 +639,14 @@ public Response ListBySubscriptionIdNextPage(st } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/redis/Azure.ResourceManager.Redis/src/Generated/LongRunningOperation/RedisArmOperation.cs b/sdk/redis/Azure.ResourceManager.Redis/src/Generated/LongRunningOperation/RedisArmOperation.cs index 606144fd2af5..f0a2a9891744 100644 --- a/sdk/redis/Azure.ResourceManager.Redis/src/Generated/LongRunningOperation/RedisArmOperation.cs +++ b/sdk/redis/Azure.ResourceManager.Redis/src/Generated/LongRunningOperation/RedisArmOperation.cs @@ -20,21 +20,24 @@ internal class RedisArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of RedisArmOperation for mocking. protected RedisArmOperation() { } - internal RedisArmOperation(Response response) + internal RedisArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal RedisArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "RedisArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal RedisArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pip public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/redis/Azure.ResourceManager.Redis/src/Generated/LongRunningOperation/RedisArmOperationOfT.cs b/sdk/redis/Azure.ResourceManager.Redis/src/Generated/LongRunningOperation/RedisArmOperationOfT.cs index 690d73520e35..f35fa21780bb 100644 --- a/sdk/redis/Azure.ResourceManager.Redis/src/Generated/LongRunningOperation/RedisArmOperationOfT.cs +++ b/sdk/redis/Azure.ResourceManager.Redis/src/Generated/LongRunningOperation/RedisArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class RedisArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of RedisArmOperation for mocking. protected RedisArmOperation() { } - internal RedisArmOperation(Response response) + internal RedisArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal RedisArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "RedisArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal RedisArmOperation(IOperationSource source, ClientDiagnostics clientD public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/redis/Azure.ResourceManager.Redis/src/Generated/Models/RedisCacheAccessPolicyAssignmentResource.Serialization.cs b/sdk/redis/Azure.ResourceManager.Redis/src/Generated/Models/RedisCacheAccessPolicyAssignmentResource.Serialization.cs new file mode 100644 index 000000000000..3efa21904ae5 --- /dev/null +++ b/sdk/redis/Azure.ResourceManager.Redis/src/Generated/Models/RedisCacheAccessPolicyAssignmentResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Redis +{ + public partial class RedisCacheAccessPolicyAssignmentResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + RedisCacheAccessPolicyAssignmentData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + RedisCacheAccessPolicyAssignmentData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/redis/Azure.ResourceManager.Redis/src/Generated/Models/RedisCacheAccessPolicyResource.Serialization.cs b/sdk/redis/Azure.ResourceManager.Redis/src/Generated/Models/RedisCacheAccessPolicyResource.Serialization.cs new file mode 100644 index 000000000000..3906b9ac76a1 --- /dev/null +++ b/sdk/redis/Azure.ResourceManager.Redis/src/Generated/Models/RedisCacheAccessPolicyResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Redis +{ + public partial class RedisCacheAccessPolicyResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + RedisCacheAccessPolicyData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + RedisCacheAccessPolicyData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/redis/Azure.ResourceManager.Redis/src/Generated/Models/RedisFirewallRuleResource.Serialization.cs b/sdk/redis/Azure.ResourceManager.Redis/src/Generated/Models/RedisFirewallRuleResource.Serialization.cs new file mode 100644 index 000000000000..6ca7d6efe92f --- /dev/null +++ b/sdk/redis/Azure.ResourceManager.Redis/src/Generated/Models/RedisFirewallRuleResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Redis +{ + public partial class RedisFirewallRuleResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + RedisFirewallRuleData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + RedisFirewallRuleData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/redis/Azure.ResourceManager.Redis/src/Generated/Models/RedisLinkedServerWithPropertyResource.Serialization.cs b/sdk/redis/Azure.ResourceManager.Redis/src/Generated/Models/RedisLinkedServerWithPropertyResource.Serialization.cs new file mode 100644 index 000000000000..ef2fa7f597e2 --- /dev/null +++ b/sdk/redis/Azure.ResourceManager.Redis/src/Generated/Models/RedisLinkedServerWithPropertyResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Redis +{ + public partial class RedisLinkedServerWithPropertyResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + RedisLinkedServerWithPropertyData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + RedisLinkedServerWithPropertyData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/redis/Azure.ResourceManager.Redis/src/Generated/Models/RedisPatchScheduleResource.Serialization.cs b/sdk/redis/Azure.ResourceManager.Redis/src/Generated/Models/RedisPatchScheduleResource.Serialization.cs new file mode 100644 index 000000000000..f3dac4179520 --- /dev/null +++ b/sdk/redis/Azure.ResourceManager.Redis/src/Generated/Models/RedisPatchScheduleResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Redis +{ + public partial class RedisPatchScheduleResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + RedisPatchScheduleData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + RedisPatchScheduleData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/redis/Azure.ResourceManager.Redis/src/Generated/Models/RedisPrivateEndpointConnectionResource.Serialization.cs b/sdk/redis/Azure.ResourceManager.Redis/src/Generated/Models/RedisPrivateEndpointConnectionResource.Serialization.cs new file mode 100644 index 000000000000..caf32f5e1601 --- /dev/null +++ b/sdk/redis/Azure.ResourceManager.Redis/src/Generated/Models/RedisPrivateEndpointConnectionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Redis +{ + public partial class RedisPrivateEndpointConnectionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + RedisPrivateEndpointConnectionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + RedisPrivateEndpointConnectionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/redis/Azure.ResourceManager.Redis/src/Generated/Models/RedisResource.Serialization.cs b/sdk/redis/Azure.ResourceManager.Redis/src/Generated/Models/RedisResource.Serialization.cs new file mode 100644 index 000000000000..469fcd081a53 --- /dev/null +++ b/sdk/redis/Azure.ResourceManager.Redis/src/Generated/Models/RedisResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Redis +{ + public partial class RedisResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + RedisData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + RedisData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/redis/Azure.ResourceManager.Redis/src/Generated/RedisFirewallRuleCollection.cs b/sdk/redis/Azure.ResourceManager.Redis/src/Generated/RedisFirewallRuleCollection.cs index 9879079e4a3c..6e0a0720fb85 100644 --- a/sdk/redis/Azure.ResourceManager.Redis/src/Generated/RedisFirewallRuleCollection.cs +++ b/sdk/redis/Azure.ResourceManager.Redis/src/Generated/RedisFirewallRuleCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> CreateOrUpdat try { var response = await _redisFirewallRuleFirewallRulesRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, ruleName, data, cancellationToken).ConfigureAwait(false); - var operation = new RedisArmOperation(Response.FromValue(new RedisFirewallRuleResource(Client, response), response.GetRawResponse())); + var uri = _redisFirewallRuleFirewallRulesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, ruleName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new RedisArmOperation(Response.FromValue(new RedisFirewallRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil try { var response = _redisFirewallRuleFirewallRulesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, ruleName, data, cancellationToken); - var operation = new RedisArmOperation(Response.FromValue(new RedisFirewallRuleResource(Client, response), response.GetRawResponse())); + var uri = _redisFirewallRuleFirewallRulesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, ruleName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new RedisArmOperation(Response.FromValue(new RedisFirewallRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/redis/Azure.ResourceManager.Redis/src/Generated/RedisFirewallRuleResource.cs b/sdk/redis/Azure.ResourceManager.Redis/src/Generated/RedisFirewallRuleResource.cs index a267c657ad18..bb42604ec2bc 100644 --- a/sdk/redis/Azure.ResourceManager.Redis/src/Generated/RedisFirewallRuleResource.cs +++ b/sdk/redis/Azure.ResourceManager.Redis/src/Generated/RedisFirewallRuleResource.cs @@ -200,7 +200,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _redisFirewallRuleFirewallRulesRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new RedisArmOperation(response); + var uri = _redisFirewallRuleFirewallRulesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new RedisArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -242,7 +244,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _redisFirewallRuleFirewallRulesRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new RedisArmOperation(response); + var uri = _redisFirewallRuleFirewallRulesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new RedisArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -288,7 +292,9 @@ public virtual async Task> UpdateAsync(W try { var response = await _redisFirewallRuleFirewallRulesRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new RedisArmOperation(Response.FromValue(new RedisFirewallRuleResource(Client, response), response.GetRawResponse())); + var uri = _redisFirewallRuleFirewallRulesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new RedisArmOperation(Response.FromValue(new RedisFirewallRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -334,7 +340,9 @@ public virtual ArmOperation Update(WaitUntil waitUnti try { var response = _redisFirewallRuleFirewallRulesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new RedisArmOperation(Response.FromValue(new RedisFirewallRuleResource(Client, response), response.GetRawResponse())); + var uri = _redisFirewallRuleFirewallRulesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new RedisArmOperation(Response.FromValue(new RedisFirewallRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/redis/Azure.ResourceManager.Redis/src/Generated/RedisPatchScheduleCollection.cs b/sdk/redis/Azure.ResourceManager.Redis/src/Generated/RedisPatchScheduleCollection.cs index 5fad2a55429d..0a9144cb6915 100644 --- a/sdk/redis/Azure.ResourceManager.Redis/src/Generated/RedisPatchScheduleCollection.cs +++ b/sdk/redis/Azure.ResourceManager.Redis/src/Generated/RedisPatchScheduleCollection.cs @@ -89,7 +89,9 @@ public virtual async Task> CreateOrUpda try { var response = await _redisPatchSchedulePatchSchedulesRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, defaultName, data, cancellationToken).ConfigureAwait(false); - var operation = new RedisArmOperation(Response.FromValue(new RedisPatchScheduleResource(Client, response), response.GetRawResponse())); + var uri = _redisPatchSchedulePatchSchedulesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, defaultName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new RedisArmOperation(Response.FromValue(new RedisPatchScheduleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -136,7 +138,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil try { var response = _redisPatchSchedulePatchSchedulesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, defaultName, data, cancellationToken); - var operation = new RedisArmOperation(Response.FromValue(new RedisPatchScheduleResource(Client, response), response.GetRawResponse())); + var uri = _redisPatchSchedulePatchSchedulesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, defaultName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new RedisArmOperation(Response.FromValue(new RedisPatchScheduleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/redis/Azure.ResourceManager.Redis/src/Generated/RedisPatchScheduleResource.cs b/sdk/redis/Azure.ResourceManager.Redis/src/Generated/RedisPatchScheduleResource.cs index 6519735a326c..205b36b60ef5 100644 --- a/sdk/redis/Azure.ResourceManager.Redis/src/Generated/RedisPatchScheduleResource.cs +++ b/sdk/redis/Azure.ResourceManager.Redis/src/Generated/RedisPatchScheduleResource.cs @@ -201,7 +201,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _redisPatchSchedulePatchSchedulesRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new RedisArmOperation(response); + var uri = _redisPatchSchedulePatchSchedulesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new RedisArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -243,7 +245,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _redisPatchSchedulePatchSchedulesRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new RedisArmOperation(response); + var uri = _redisPatchSchedulePatchSchedulesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new RedisArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -289,7 +293,9 @@ public virtual async Task> UpdateAsync( try { var response = await _redisPatchSchedulePatchSchedulesRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new RedisArmOperation(Response.FromValue(new RedisPatchScheduleResource(Client, response), response.GetRawResponse())); + var uri = _redisPatchSchedulePatchSchedulesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new RedisArmOperation(Response.FromValue(new RedisPatchScheduleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -335,7 +341,9 @@ public virtual ArmOperation Update(WaitUntil waitUnt try { var response = _redisPatchSchedulePatchSchedulesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new RedisArmOperation(Response.FromValue(new RedisPatchScheduleResource(Client, response), response.GetRawResponse())); + var uri = _redisPatchSchedulePatchSchedulesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new RedisArmOperation(Response.FromValue(new RedisPatchScheduleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/redis/Azure.ResourceManager.Redis/src/Generated/RedisPrivateEndpointConnectionResource.cs b/sdk/redis/Azure.ResourceManager.Redis/src/Generated/RedisPrivateEndpointConnectionResource.cs index b39e2caa8f59..be1687d1ceb7 100644 --- a/sdk/redis/Azure.ResourceManager.Redis/src/Generated/RedisPrivateEndpointConnectionResource.cs +++ b/sdk/redis/Azure.ResourceManager.Redis/src/Generated/RedisPrivateEndpointConnectionResource.cs @@ -200,7 +200,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _redisPrivateEndpointConnectionPrivateEndpointConnectionsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new RedisArmOperation(response); + var uri = _redisPrivateEndpointConnectionPrivateEndpointConnectionsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new RedisArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -242,7 +244,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _redisPrivateEndpointConnectionPrivateEndpointConnectionsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new RedisArmOperation(response); + var uri = _redisPrivateEndpointConnectionPrivateEndpointConnectionsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new RedisArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/redis/Azure.ResourceManager.Redis/src/Generated/RestOperations/AccessPolicyAssignmentRestOperations.cs b/sdk/redis/Azure.ResourceManager.Redis/src/Generated/RestOperations/AccessPolicyAssignmentRestOperations.cs index e57c90444bc1..170b6d640c4a 100644 --- a/sdk/redis/Azure.ResourceManager.Redis/src/Generated/RestOperations/AccessPolicyAssignmentRestOperations.cs +++ b/sdk/redis/Azure.ResourceManager.Redis/src/Generated/RestOperations/AccessPolicyAssignmentRestOperations.cs @@ -37,6 +37,22 @@ public AccessPolicyAssignmentRestOperations(HttpPipeline pipeline, string applic _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string cacheName, string accessPolicyAssignmentName, RedisCacheAccessPolicyAssignmentData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Cache/redis/", false); + uri.AppendPath(cacheName, true); + uri.AppendPath("/accessPolicyAssignments/", false); + uri.AppendPath(accessPolicyAssignmentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateUpdateRequest(string subscriptionId, string resourceGroupName, string cacheName, string accessPolicyAssignmentName, RedisCacheAccessPolicyAssignmentData data) { var message = _pipeline.CreateMessage(); @@ -121,6 +137,22 @@ public Response CreateUpdate(string subscriptionId, string resourceGroupName, st } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string cacheName, string accessPolicyAssignmentName) + { + 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.Cache/redis/", false); + uri.AppendPath(cacheName, true); + uri.AppendPath("/accessPolicyAssignments/", false); + uri.AppendPath(accessPolicyAssignmentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string cacheName, string accessPolicyAssignmentName) { var message = _pipeline.CreateMessage(); @@ -199,6 +231,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string cacheName, string accessPolicyAssignmentName) + { + 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.Cache/redis/", false); + uri.AppendPath(cacheName, true); + uri.AppendPath("/accessPolicyAssignments/", false); + uri.AppendPath(accessPolicyAssignmentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string cacheName, string accessPolicyAssignmentName) { var message = _pipeline.CreateMessage(); @@ -287,6 +335,21 @@ public Response Get(string subscriptionId, } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string cacheName) + { + 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.Cache/redis/", false); + uri.AppendPath(cacheName, true); + uri.AppendPath("/accessPolicyAssignments", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string cacheName) { var message = _pipeline.CreateMessage(); @@ -366,6 +429,14 @@ public Response List(string subscriptionId } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string cacheName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string cacheName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/redis/Azure.ResourceManager.Redis/src/Generated/RestOperations/AccessPolicyRestOperations.cs b/sdk/redis/Azure.ResourceManager.Redis/src/Generated/RestOperations/AccessPolicyRestOperations.cs index 0dfdb280e40d..3d676b198b38 100644 --- a/sdk/redis/Azure.ResourceManager.Redis/src/Generated/RestOperations/AccessPolicyRestOperations.cs +++ b/sdk/redis/Azure.ResourceManager.Redis/src/Generated/RestOperations/AccessPolicyRestOperations.cs @@ -37,6 +37,22 @@ public AccessPolicyRestOperations(HttpPipeline pipeline, string applicationId, U _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string cacheName, string accessPolicyName, RedisCacheAccessPolicyData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Cache/redis/", false); + uri.AppendPath(cacheName, true); + uri.AppendPath("/accessPolicies/", false); + uri.AppendPath(accessPolicyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateUpdateRequest(string subscriptionId, string resourceGroupName, string cacheName, string accessPolicyName, RedisCacheAccessPolicyData data) { var message = _pipeline.CreateMessage(); @@ -121,6 +137,22 @@ public Response CreateUpdate(string subscriptionId, string resourceGroupName, st } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string cacheName, string accessPolicyName) + { + 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.Cache/redis/", false); + uri.AppendPath(cacheName, true); + uri.AppendPath("/accessPolicies/", false); + uri.AppendPath(accessPolicyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string cacheName, string accessPolicyName) { var message = _pipeline.CreateMessage(); @@ -199,6 +231,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string cacheName, string accessPolicyName) + { + 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.Cache/redis/", false); + uri.AppendPath(cacheName, true); + uri.AppendPath("/accessPolicies/", false); + uri.AppendPath(accessPolicyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string cacheName, string accessPolicyName) { var message = _pipeline.CreateMessage(); @@ -287,6 +335,21 @@ public Response Get(string subscriptionId, string re } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string cacheName) + { + 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.Cache/redis/", false); + uri.AppendPath(cacheName, true); + uri.AppendPath("/accessPolicies", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string cacheName) { var message = _pipeline.CreateMessage(); @@ -366,6 +429,14 @@ public Response List(string subscriptionId, string r } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string cacheName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string cacheName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/redis/Azure.ResourceManager.Redis/src/Generated/RestOperations/AsyncOperationStatusRestOperations.cs b/sdk/redis/Azure.ResourceManager.Redis/src/Generated/RestOperations/AsyncOperationStatusRestOperations.cs index 4aacb4e70913..eec8f7a8e8d2 100644 --- a/sdk/redis/Azure.ResourceManager.Redis/src/Generated/RestOperations/AsyncOperationStatusRestOperations.cs +++ b/sdk/redis/Azure.ResourceManager.Redis/src/Generated/RestOperations/AsyncOperationStatusRestOperations.cs @@ -37,6 +37,20 @@ public AsyncOperationStatusRestOperations(HttpPipeline pipeline, string applicat _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, AzureLocation location, string operationId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Cache/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/asyncOperations/", false); + uri.AppendPath(operationId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, AzureLocation location, string operationId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/redis/Azure.ResourceManager.Redis/src/Generated/RestOperations/FirewallRulesRestOperations.cs b/sdk/redis/Azure.ResourceManager.Redis/src/Generated/RestOperations/FirewallRulesRestOperations.cs index 9d2d00d6ce3e..ed814657853f 100644 --- a/sdk/redis/Azure.ResourceManager.Redis/src/Generated/RestOperations/FirewallRulesRestOperations.cs +++ b/sdk/redis/Azure.ResourceManager.Redis/src/Generated/RestOperations/FirewallRulesRestOperations.cs @@ -37,6 +37,21 @@ public FirewallRulesRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string cacheName) + { + 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.Cache/redis/", false); + uri.AppendPath(cacheName, true); + uri.AppendPath("/firewallRules", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string cacheName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response List(string subscriptionId, string } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string cacheName, string ruleName, RedisFirewallRuleData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Cache/redis/", false); + uri.AppendPath(cacheName, true); + uri.AppendPath("/firewallRules/", false); + uri.AppendPath(ruleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string cacheName, string ruleName, RedisFirewallRuleData data) { var message = _pipeline.CreateMessage(); @@ -210,6 +241,22 @@ public Response CreateOrUpdate(string subscriptionId, str } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string cacheName, string ruleName) + { + 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.Cache/redis/", false); + uri.AppendPath(cacheName, true); + uri.AppendPath("/firewallRules/", false); + uri.AppendPath(ruleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string cacheName, string ruleName) { var message = _pipeline.CreateMessage(); @@ -298,6 +345,22 @@ public Response Get(string subscriptionId, string resourc } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string cacheName, string ruleName) + { + 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.Cache/redis/", false); + uri.AppendPath(cacheName, true); + uri.AppendPath("/firewallRules/", false); + uri.AppendPath(ruleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string cacheName, string ruleName) { var message = _pipeline.CreateMessage(); @@ -374,6 +437,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string cacheName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string cacheName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/redis/Azure.ResourceManager.Redis/src/Generated/RestOperations/LinkedServerRestOperations.cs b/sdk/redis/Azure.ResourceManager.Redis/src/Generated/RestOperations/LinkedServerRestOperations.cs index b29a57f7cb21..1425199cfa21 100644 --- a/sdk/redis/Azure.ResourceManager.Redis/src/Generated/RestOperations/LinkedServerRestOperations.cs +++ b/sdk/redis/Azure.ResourceManager.Redis/src/Generated/RestOperations/LinkedServerRestOperations.cs @@ -37,6 +37,22 @@ public LinkedServerRestOperations(HttpPipeline pipeline, string applicationId, U _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string name, string linkedServerName, RedisLinkedServerWithPropertyCreateOrUpdateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Cache/redis/", false); + uri.AppendPath(name, true); + uri.AppendPath("/linkedServers/", false); + uri.AppendPath(linkedServerName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string name, string linkedServerName, RedisLinkedServerWithPropertyCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); @@ -121,6 +137,22 @@ public Response Create(string subscriptionId, string resourceGroupName, string n } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string name, string linkedServerName) + { + 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.Cache/redis/", false); + uri.AppendPath(name, true); + uri.AppendPath("/linkedServers/", false); + uri.AppendPath(linkedServerName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string name, string linkedServerName) { var message = _pipeline.CreateMessage(); @@ -197,6 +229,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string n } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string name, string linkedServerName) + { + 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.Cache/redis/", false); + uri.AppendPath(name, true); + uri.AppendPath("/linkedServers/", false); + uri.AppendPath(linkedServerName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string name, string linkedServerName) { var message = _pipeline.CreateMessage(); @@ -285,6 +333,21 @@ public Response Get(string subscriptionId, st } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.Cache/redis/", false); + uri.AppendPath(name, true); + uri.AppendPath("/linkedServers", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -364,6 +427,14 @@ public Response List(string subscriptionId, } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string name) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); diff --git a/sdk/redis/Azure.ResourceManager.Redis/src/Generated/RestOperations/PatchSchedulesRestOperations.cs b/sdk/redis/Azure.ResourceManager.Redis/src/Generated/RestOperations/PatchSchedulesRestOperations.cs index 0765dbe24ee7..6ffdc99007fa 100644 --- a/sdk/redis/Azure.ResourceManager.Redis/src/Generated/RestOperations/PatchSchedulesRestOperations.cs +++ b/sdk/redis/Azure.ResourceManager.Redis/src/Generated/RestOperations/PatchSchedulesRestOperations.cs @@ -37,6 +37,21 @@ public PatchSchedulesRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByRedisResourceRequestUri(string subscriptionId, string resourceGroupName, string cacheName) + { + 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.Cache/redis/", false); + uri.AppendPath(cacheName, true); + uri.AppendPath("/patchSchedules", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByRedisResourceRequest(string subscriptionId, string resourceGroupName, string cacheName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByRedisResource(string subscri } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string name, RedisPatchScheduleDefaultName defaultName, RedisPatchScheduleData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Cache/redis/", false); + uri.AppendPath(name, true); + uri.AppendPath("/patchSchedules/", false); + uri.AppendPath(defaultName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string name, RedisPatchScheduleDefaultName defaultName, RedisPatchScheduleData data) { var message = _pipeline.CreateMessage(); @@ -208,6 +239,22 @@ public Response CreateOrUpdate(string subscriptionId, st } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string name, RedisPatchScheduleDefaultName defaultName) + { + 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.Cache/redis/", false); + uri.AppendPath(name, true); + uri.AppendPath("/patchSchedules/", false); + uri.AppendPath(defaultName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string name, RedisPatchScheduleDefaultName defaultName) { var message = _pipeline.CreateMessage(); @@ -282,6 +329,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string n } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string name, RedisPatchScheduleDefaultName defaultName) + { + 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.Cache/redis/", false); + uri.AppendPath(name, true); + uri.AppendPath("/patchSchedules/", false); + uri.AppendPath(defaultName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string name, RedisPatchScheduleDefaultName defaultName) { var message = _pipeline.CreateMessage(); @@ -368,6 +431,14 @@ public Response Get(string subscriptionId, string resour } } + internal RequestUriBuilder CreateListByRedisResourceNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string cacheName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByRedisResourceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string cacheName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/redis/Azure.ResourceManager.Redis/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs b/sdk/redis/Azure.ResourceManager.Redis/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs index 71cec92b484e..3dee89cc92e4 100644 --- a/sdk/redis/Azure.ResourceManager.Redis/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs +++ b/sdk/redis/Azure.ResourceManager.Redis/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs @@ -37,6 +37,21 @@ public PrivateEndpointConnectionsRestOperations(HttpPipeline pipeline, string ap _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string cacheName) + { + 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.Cache/redis/", false); + uri.AppendPath(cacheName, true); + uri.AppendPath("/privateEndpointConnections", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string cacheName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response List(string subscripti } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string cacheName, string privateEndpointConnectionName) + { + 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.Cache/redis/", false); + uri.AppendPath(cacheName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string cacheName, string privateEndpointConnectionName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscriptionId, s } } + internal RequestUriBuilder CreatePutRequestUri(string subscriptionId, string resourceGroupName, string cacheName, string privateEndpointConnectionName, RedisPrivateEndpointConnectionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Cache/redis/", false); + uri.AppendPath(cacheName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreatePutRequest(string subscriptionId, string resourceGroupName, string cacheName, string privateEndpointConnectionName, RedisPrivateEndpointConnectionData data) { var message = _pipeline.CreateMessage(); @@ -288,6 +335,22 @@ public Response Put(string subscriptionId, string resourceGroupName, string cach } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string cacheName, string privateEndpointConnectionName) + { + 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.Cache/redis/", false); + uri.AppendPath(cacheName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string cacheName, string privateEndpointConnectionName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/redis/Azure.ResourceManager.Redis/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs b/sdk/redis/Azure.ResourceManager.Redis/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs index 93497f0522e8..8d47aabb68cb 100644 --- a/sdk/redis/Azure.ResourceManager.Redis/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs +++ b/sdk/redis/Azure.ResourceManager.Redis/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs @@ -37,6 +37,21 @@ public PrivateLinkResourcesRestOperations(HttpPipeline pipeline, string applicat _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByRedisCacheRequestUri(string subscriptionId, string resourceGroupName, string cacheName) + { + 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.Cache/redis/", false); + uri.AppendPath(cacheName, true); + uri.AppendPath("/privateLinkResources", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByRedisCacheRequest(string subscriptionId, string resourceGroupName, string cacheName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/redis/Azure.ResourceManager.Redis/src/Generated/RestOperations/RedisRestOperations.cs b/sdk/redis/Azure.ResourceManager.Redis/src/Generated/RestOperations/RedisRestOperations.cs index 1e5ad3ed70f1..a8f02f1b8997 100644 --- a/sdk/redis/Azure.ResourceManager.Redis/src/Generated/RestOperations/RedisRestOperations.cs +++ b/sdk/redis/Azure.ResourceManager.Redis/src/Generated/RestOperations/RedisRestOperations.cs @@ -37,6 +37,17 @@ public RedisRestOperations(HttpPipeline pipeline, string applicationId, Uri endp _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCheckNameAvailabilityRequestUri(string subscriptionId, RedisNameAvailabilityContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Cache/CheckNameAvailability", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCheckNameAvailabilityRequest(string subscriptionId, RedisNameAvailabilityContent content) { var message = _pipeline.CreateMessage(); @@ -102,6 +113,22 @@ public Response CheckNameAvailability(string subscriptionId, RedisNameAvailabili } } + internal RequestUriBuilder CreateListUpgradeNotificationsRequestUri(string subscriptionId, string resourceGroupName, string name, double history) + { + 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.Cache/redis/", false); + uri.AppendPath(name, true); + uri.AppendPath("/listUpgradeNotifications", false); + uri.AppendQuery("api-version", _apiVersion, true); + uri.AppendQuery("history", history, true); + return uri; + } + internal HttpMessage CreateListUpgradeNotificationsRequest(string subscriptionId, string resourceGroupName, string name, double history) { var message = _pipeline.CreateMessage(); @@ -184,6 +211,20 @@ public Response ListUpgradeNotifications(s } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string name, RedisCreateOrUpdateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Cache/redis/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string name, RedisCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); @@ -262,6 +303,20 @@ public Response Create(string subscriptionId, string resourceGroupName, string n } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string name, RedisPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Cache/redis/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string name, RedisPatch patch) { var message = _pipeline.CreateMessage(); @@ -340,6 +395,20 @@ public Response Update(string subscriptionId, string resourceGroupName, string n } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.Cache/redis/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -412,6 +481,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string n } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.Cache/redis/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -494,6 +577,19 @@ public Response Get(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.Cache/redis", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -567,6 +663,17 @@ public Response ListByResourceGroup(string subscriptionId, stri } } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Cache/redis", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -634,6 +741,21 @@ public Response ListBySubscription(string subscriptionId, Cance } } + internal RequestUriBuilder CreateListKeysRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.Cache/redis/", false); + uri.AppendPath(name, true); + uri.AppendPath("/listKeys", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListKeysRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -713,6 +835,21 @@ public Response ListKeys(string subscriptionId, string resource } } + internal RequestUriBuilder CreateRegenerateKeyRequestUri(string subscriptionId, string resourceGroupName, string name, RedisRegenerateKeyContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Cache/redis/", false); + uri.AppendPath(name, true); + uri.AppendPath("/regenerateKey", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRegenerateKeyRequest(string subscriptionId, string resourceGroupName, string name, RedisRegenerateKeyContent content) { var message = _pipeline.CreateMessage(); @@ -800,6 +937,21 @@ public Response RegenerateKey(string subscriptionId, string res } } + internal RequestUriBuilder CreateForceRebootRequestUri(string subscriptionId, string resourceGroupName, string name, RedisRebootContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Cache/redis/", false); + uri.AppendPath(name, true); + uri.AppendPath("/forceReboot", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateForceRebootRequest(string subscriptionId, string resourceGroupName, string name, RedisRebootContent content) { var message = _pipeline.CreateMessage(); @@ -887,6 +1039,21 @@ public Response ForceReboot(string subscriptionId, strin } } + internal RequestUriBuilder CreateImportDataRequestUri(string subscriptionId, string resourceGroupName, string name, ImportRdbContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Cache/redis/", false); + uri.AppendPath(name, true); + uri.AppendPath("/import", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateImportDataRequest(string subscriptionId, string resourceGroupName, string name, ImportRdbContent content) { var message = _pipeline.CreateMessage(); @@ -968,6 +1135,21 @@ public Response ImportData(string subscriptionId, string resourceGroupName, stri } } + internal RequestUriBuilder CreateExportDataRequestUri(string subscriptionId, string resourceGroupName, string name, ExportRdbContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Cache/redis/", false); + uri.AppendPath(name, true); + uri.AppendPath("/export", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateExportDataRequest(string subscriptionId, string resourceGroupName, string name, ExportRdbContent content) { var message = _pipeline.CreateMessage(); @@ -1049,6 +1231,21 @@ public Response ExportData(string subscriptionId, string resourceGroupName, stri } } + internal RequestUriBuilder CreateFlushCacheRequestUri(string subscriptionId, string resourceGroupName, string cacheName) + { + 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.Cache/redis/", false); + uri.AppendPath(cacheName, true); + uri.AppendPath("/flush", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateFlushCacheRequest(string subscriptionId, string resourceGroupName, string cacheName) { var message = _pipeline.CreateMessage(); @@ -1120,6 +1317,14 @@ public Response FlushCache(string subscriptionId, string resourceGroupName, stri } } + internal RequestUriBuilder CreateListUpgradeNotificationsNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string name, double history) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListUpgradeNotificationsNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string name, double history) { var message = _pipeline.CreateMessage(); @@ -1198,6 +1403,14 @@ public Response ListUpgradeNotificationsNe } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -1270,6 +1483,14 @@ public Response ListByResourceGroupNextPage(string nextLink, st } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/LongRunningOperation/RedisEnterpriseArmOperation.cs b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/LongRunningOperation/RedisEnterpriseArmOperation.cs index d9fa6ba7cfb1..03a4144704a5 100644 --- a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/LongRunningOperation/RedisEnterpriseArmOperation.cs +++ b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/LongRunningOperation/RedisEnterpriseArmOperation.cs @@ -20,21 +20,24 @@ internal class RedisEnterpriseArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of RedisEnterpriseArmOperation for mocking. protected RedisEnterpriseArmOperation() { } - internal RedisEnterpriseArmOperation(Response response) + internal RedisEnterpriseArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal RedisEnterpriseArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "RedisEnterpriseArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal RedisEnterpriseArmOperation(ClientDiagnostics clientDiagnostics, HttpPi public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/LongRunningOperation/RedisEnterpriseArmOperationOfT.cs b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/LongRunningOperation/RedisEnterpriseArmOperationOfT.cs index 462ec8005c18..b9e1ade452a3 100644 --- a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/LongRunningOperation/RedisEnterpriseArmOperationOfT.cs +++ b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/LongRunningOperation/RedisEnterpriseArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class RedisEnterpriseArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of RedisEnterpriseArmOperation for mocking. protected RedisEnterpriseArmOperation() { } - internal RedisEnterpriseArmOperation(Response response) + internal RedisEnterpriseArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal RedisEnterpriseArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "RedisEnterpriseArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal RedisEnterpriseArmOperation(IOperationSource source, ClientDiagnosti public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/RedisEnterpriseClusterResource.Serialization.cs b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/RedisEnterpriseClusterResource.Serialization.cs new file mode 100644 index 000000000000..e2fd17e6e59f --- /dev/null +++ b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/RedisEnterpriseClusterResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.RedisEnterprise +{ + public partial class RedisEnterpriseClusterResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + RedisEnterpriseClusterData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + RedisEnterpriseClusterData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/RedisEnterpriseDatabaseResource.Serialization.cs b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/RedisEnterpriseDatabaseResource.Serialization.cs new file mode 100644 index 000000000000..74893f915474 --- /dev/null +++ b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/RedisEnterpriseDatabaseResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.RedisEnterprise +{ + public partial class RedisEnterpriseDatabaseResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + RedisEnterpriseDatabaseData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + RedisEnterpriseDatabaseData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/RedisEnterprisePrivateEndpointConnectionResource.Serialization.cs b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/RedisEnterprisePrivateEndpointConnectionResource.Serialization.cs new file mode 100644 index 000000000000..12c88185ec0b --- /dev/null +++ b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/RedisEnterprisePrivateEndpointConnectionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.RedisEnterprise +{ + public partial class RedisEnterprisePrivateEndpointConnectionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + RedisEnterprisePrivateEndpointConnectionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + RedisEnterprisePrivateEndpointConnectionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/RedisEnterprisePrivateEndpointConnectionResource.cs b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/RedisEnterprisePrivateEndpointConnectionResource.cs index 445238efd1cd..ba90a96cd4b3 100644 --- a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/RedisEnterprisePrivateEndpointConnectionResource.cs +++ b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/RedisEnterprisePrivateEndpointConnectionResource.cs @@ -200,7 +200,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _redisEnterprisePrivateEndpointConnectionPrivateEndpointConnectionsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new RedisEnterpriseArmOperation(response); + var uri = _redisEnterprisePrivateEndpointConnectionPrivateEndpointConnectionsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new RedisEnterpriseArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -242,7 +244,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _redisEnterprisePrivateEndpointConnectionPrivateEndpointConnectionsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new RedisEnterpriseArmOperation(response); + var uri = _redisEnterprisePrivateEndpointConnectionPrivateEndpointConnectionsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new RedisEnterpriseArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/RestOperations/DatabasesRestOperations.cs b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/RestOperations/DatabasesRestOperations.cs index a0462fb9e5f4..670c7f76ba31 100644 --- a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/RestOperations/DatabasesRestOperations.cs +++ b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/RestOperations/DatabasesRestOperations.cs @@ -37,6 +37,21 @@ public DatabasesRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByClusterRequestUri(string subscriptionId, string resourceGroupName, string clusterName) + { + 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.Cache/redisEnterprise/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/databases", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByClusterRequest(string subscriptionId, string resourceGroupName, string clusterName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByCluster(string subscriptionId } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string databaseName, RedisEnterpriseDatabaseData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Cache/redisEnterprise/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string clusterName, string databaseName, RedisEnterpriseDatabaseData data) { var message = _pipeline.CreateMessage(); @@ -200,6 +231,22 @@ public Response Create(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string databaseName, RedisEnterpriseDatabasePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Cache/redisEnterprise/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string clusterName, string databaseName, RedisEnterpriseDatabasePatch patch) { var message = _pipeline.CreateMessage(); @@ -284,6 +331,22 @@ public Response Update(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string databaseName) + { + 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.Cache/redisEnterprise/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string clusterName, string databaseName) { var message = _pipeline.CreateMessage(); @@ -372,6 +435,22 @@ public Response Get(string subscriptionId, string r } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string databaseName) + { + 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.Cache/redisEnterprise/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string clusterName, string databaseName) { var message = _pipeline.CreateMessage(); @@ -450,6 +529,23 @@ public Response Delete(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateListKeysRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string databaseName) + { + 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.Cache/redisEnterprise/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/listKeys", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListKeysRequest(string subscriptionId, string resourceGroupName, string clusterName, string databaseName) { var message = _pipeline.CreateMessage(); @@ -535,6 +631,23 @@ public Response ListKeys(string subscriptionId, s } } + internal RequestUriBuilder CreateRegenerateKeyRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string databaseName, RedisEnterpriseRegenerateKeyContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Cache/redisEnterprise/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/regenerateKey", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRegenerateKeyRequest(string subscriptionId, string resourceGroupName, string clusterName, string databaseName, RedisEnterpriseRegenerateKeyContent content) { var message = _pipeline.CreateMessage(); @@ -620,6 +733,23 @@ public Response RegenerateKey(string subscriptionId, string resourceGroupName, s } } + internal RequestUriBuilder CreateImportRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string databaseName, ImportRedisEnterpriseDatabaseContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Cache/redisEnterprise/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/import", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateImportRequest(string subscriptionId, string resourceGroupName, string clusterName, string databaseName, ImportRedisEnterpriseDatabaseContent content) { var message = _pipeline.CreateMessage(); @@ -705,6 +835,23 @@ public Response Import(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateExportRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string databaseName, ExportRedisEnterpriseDatabaseContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Cache/redisEnterprise/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/export", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateExportRequest(string subscriptionId, string resourceGroupName, string clusterName, string databaseName, ExportRedisEnterpriseDatabaseContent content) { var message = _pipeline.CreateMessage(); @@ -790,6 +937,23 @@ public Response Export(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateForceUnlinkRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string databaseName, ForceUnlinkRedisEnterpriseDatabaseContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Cache/redisEnterprise/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/forceUnlink", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateForceUnlinkRequest(string subscriptionId, string resourceGroupName, string clusterName, string databaseName, ForceUnlinkRedisEnterpriseDatabaseContent content) { var message = _pipeline.CreateMessage(); @@ -875,6 +1039,23 @@ public Response ForceUnlink(string subscriptionId, string resourceGroupName, str } } + internal RequestUriBuilder CreateFlushRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string databaseName, FlushRedisEnterpriseDatabaseContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Cache/redisEnterprise/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/flush", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateFlushRequest(string subscriptionId, string resourceGroupName, string clusterName, string databaseName, FlushRedisEnterpriseDatabaseContent content) { var message = _pipeline.CreateMessage(); @@ -960,6 +1141,14 @@ public Response Flush(string subscriptionId, string resourceGroupName, string cl } } + internal RequestUriBuilder CreateListByClusterNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string clusterName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByClusterNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string clusterName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/RestOperations/OperationsStatusRestOperations.cs b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/RestOperations/OperationsStatusRestOperations.cs index 5ac3f25c34fe..b54fb629a218 100644 --- a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/RestOperations/OperationsStatusRestOperations.cs +++ b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/RestOperations/OperationsStatusRestOperations.cs @@ -37,6 +37,20 @@ public OperationsStatusRestOperations(HttpPipeline pipeline, string applicationI _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, AzureLocation location, string operationId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Cache/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/operationsStatus/", false); + uri.AppendPath(operationId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, AzureLocation location, string operationId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs index 112aff0d22d5..82726e6b352b 100644 --- a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs +++ b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs @@ -37,6 +37,21 @@ public PrivateEndpointConnectionsRestOperations(HttpPipeline pipeline, string ap _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string clusterName) + { + 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.Cache/redisEnterprise/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/privateEndpointConnections", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string clusterName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response List(string } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string privateEndpointConnectionName) + { + 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.Cache/redisEnterprise/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string clusterName, string privateEndpointConnectionName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscri } } + internal RequestUriBuilder CreatePutRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string privateEndpointConnectionName, RedisEnterprisePrivateEndpointConnectionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Cache/redisEnterprise/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreatePutRequest(string subscriptionId, string resourceGroupName, string clusterName, string privateEndpointConnectionName, RedisEnterprisePrivateEndpointConnectionData data) { var message = _pipeline.CreateMessage(); @@ -286,6 +333,22 @@ public Response Put(string subscriptionId, string resourceGroupName, string clus } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string privateEndpointConnectionName) + { + 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.Cache/redisEnterprise/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string clusterName, string privateEndpointConnectionName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs index 5260de88bfca..9b6dc2e4014f 100644 --- a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs +++ b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs @@ -37,6 +37,21 @@ public PrivateLinkResourcesRestOperations(HttpPipeline pipeline, string applicat _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByClusterRequestUri(string subscriptionId, string resourceGroupName, string clusterName) + { + 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.Cache/redisEnterprise/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/privateLinkResources", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByClusterRequest(string subscriptionId, string resourceGroupName, string clusterName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/RestOperations/RedisEnterpriseRestOperations.cs b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/RestOperations/RedisEnterpriseRestOperations.cs index 03d2c4deb529..f96037307156 100644 --- a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/RestOperations/RedisEnterpriseRestOperations.cs +++ b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/RestOperations/RedisEnterpriseRestOperations.cs @@ -37,6 +37,20 @@ public RedisEnterpriseRestOperations(HttpPipeline pipeline, string applicationId _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string clusterName, RedisEnterpriseClusterData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Cache/redisEnterprise/", false); + uri.AppendPath(clusterName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string clusterName, RedisEnterpriseClusterData data) { var message = _pipeline.CreateMessage(); @@ -115,6 +129,20 @@ public Response Create(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string clusterName, RedisEnterpriseClusterPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Cache/redisEnterprise/", false); + uri.AppendPath(clusterName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string clusterName, RedisEnterpriseClusterPatch patch) { var message = _pipeline.CreateMessage(); @@ -193,6 +221,20 @@ public Response Update(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string clusterName) + { + 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.Cache/redisEnterprise/", false); + uri.AppendPath(clusterName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string clusterName) { var message = _pipeline.CreateMessage(); @@ -265,6 +307,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string clusterName) + { + 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.Cache/redisEnterprise/", false); + uri.AppendPath(clusterName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string clusterName) { var message = _pipeline.CreateMessage(); @@ -347,6 +403,19 @@ public Response Get(string subscriptionId, string re } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.Cache/redisEnterprise", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -420,6 +489,17 @@ public Response ListByResourceGroup(string subscript } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Cache/redisEnterprise", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -487,6 +567,14 @@ public Response List(string subscriptionId, Cancella } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -559,6 +647,14 @@ public Response ListByResourceGroupNextPage(string n } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/RestOperations/SkusRestOperations.cs b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/RestOperations/SkusRestOperations.cs index 64b942deac13..575ae4981d79 100644 --- a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/RestOperations/SkusRestOperations.cs +++ b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/RestOperations/SkusRestOperations.cs @@ -37,6 +37,19 @@ public SkusRestOperations(HttpPipeline pipeline, string applicationId, Uri endpo _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, AzureLocation location) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Cache/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/skus", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, AzureLocation location) { var message = _pipeline.CreateMessage(); diff --git a/sdk/relay/Azure.ResourceManager.Relay/src/Generated/LongRunningOperation/RelayArmOperation.cs b/sdk/relay/Azure.ResourceManager.Relay/src/Generated/LongRunningOperation/RelayArmOperation.cs index 51dfa48e097a..a57556b96a0e 100644 --- a/sdk/relay/Azure.ResourceManager.Relay/src/Generated/LongRunningOperation/RelayArmOperation.cs +++ b/sdk/relay/Azure.ResourceManager.Relay/src/Generated/LongRunningOperation/RelayArmOperation.cs @@ -20,21 +20,24 @@ internal class RelayArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of RelayArmOperation for mocking. protected RelayArmOperation() { } - internal RelayArmOperation(Response response) + internal RelayArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal RelayArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "RelayArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal RelayArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pip public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/relay/Azure.ResourceManager.Relay/src/Generated/LongRunningOperation/RelayArmOperationOfT.cs b/sdk/relay/Azure.ResourceManager.Relay/src/Generated/LongRunningOperation/RelayArmOperationOfT.cs index 3f7e06444140..9fa8d3fdc2de 100644 --- a/sdk/relay/Azure.ResourceManager.Relay/src/Generated/LongRunningOperation/RelayArmOperationOfT.cs +++ b/sdk/relay/Azure.ResourceManager.Relay/src/Generated/LongRunningOperation/RelayArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class RelayArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of RelayArmOperation for mocking. protected RelayArmOperation() { } - internal RelayArmOperation(Response response) + internal RelayArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal RelayArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "RelayArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal RelayArmOperation(IOperationSource source, ClientDiagnostics clientD public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/relay/Azure.ResourceManager.Relay/src/Generated/Models/RelayHybridConnectionAuthorizationRuleResource.Serialization.cs b/sdk/relay/Azure.ResourceManager.Relay/src/Generated/Models/RelayHybridConnectionAuthorizationRuleResource.Serialization.cs new file mode 100644 index 000000000000..11f8e29a0cf7 --- /dev/null +++ b/sdk/relay/Azure.ResourceManager.Relay/src/Generated/Models/RelayHybridConnectionAuthorizationRuleResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Relay +{ + public partial class RelayHybridConnectionAuthorizationRuleResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + RelayAuthorizationRuleData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + RelayAuthorizationRuleData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/relay/Azure.ResourceManager.Relay/src/Generated/Models/RelayHybridConnectionResource.Serialization.cs b/sdk/relay/Azure.ResourceManager.Relay/src/Generated/Models/RelayHybridConnectionResource.Serialization.cs new file mode 100644 index 000000000000..fdf9f13bb077 --- /dev/null +++ b/sdk/relay/Azure.ResourceManager.Relay/src/Generated/Models/RelayHybridConnectionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Relay +{ + public partial class RelayHybridConnectionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + RelayHybridConnectionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + RelayHybridConnectionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/relay/Azure.ResourceManager.Relay/src/Generated/Models/RelayNamespaceAuthorizationRuleResource.Serialization.cs b/sdk/relay/Azure.ResourceManager.Relay/src/Generated/Models/RelayNamespaceAuthorizationRuleResource.Serialization.cs new file mode 100644 index 000000000000..6113a25ba37e --- /dev/null +++ b/sdk/relay/Azure.ResourceManager.Relay/src/Generated/Models/RelayNamespaceAuthorizationRuleResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Relay +{ + public partial class RelayNamespaceAuthorizationRuleResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + RelayAuthorizationRuleData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + RelayAuthorizationRuleData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/relay/Azure.ResourceManager.Relay/src/Generated/Models/RelayNamespaceResource.Serialization.cs b/sdk/relay/Azure.ResourceManager.Relay/src/Generated/Models/RelayNamespaceResource.Serialization.cs new file mode 100644 index 000000000000..346b13045205 --- /dev/null +++ b/sdk/relay/Azure.ResourceManager.Relay/src/Generated/Models/RelayNamespaceResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Relay +{ + public partial class RelayNamespaceResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + RelayNamespaceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + RelayNamespaceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/relay/Azure.ResourceManager.Relay/src/Generated/Models/RelayNetworkRuleSetResource.Serialization.cs b/sdk/relay/Azure.ResourceManager.Relay/src/Generated/Models/RelayNetworkRuleSetResource.Serialization.cs new file mode 100644 index 000000000000..817c541ecf9d --- /dev/null +++ b/sdk/relay/Azure.ResourceManager.Relay/src/Generated/Models/RelayNetworkRuleSetResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Relay +{ + public partial class RelayNetworkRuleSetResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + RelayNetworkRuleSetData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + RelayNetworkRuleSetData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/relay/Azure.ResourceManager.Relay/src/Generated/Models/RelayPrivateEndpointConnectionResource.Serialization.cs b/sdk/relay/Azure.ResourceManager.Relay/src/Generated/Models/RelayPrivateEndpointConnectionResource.Serialization.cs new file mode 100644 index 000000000000..f778cc31360d --- /dev/null +++ b/sdk/relay/Azure.ResourceManager.Relay/src/Generated/Models/RelayPrivateEndpointConnectionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Relay +{ + public partial class RelayPrivateEndpointConnectionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + RelayPrivateEndpointConnectionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + RelayPrivateEndpointConnectionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/relay/Azure.ResourceManager.Relay/src/Generated/Models/RelayPrivateLinkResource.Serialization.cs b/sdk/relay/Azure.ResourceManager.Relay/src/Generated/Models/RelayPrivateLinkResource.Serialization.cs new file mode 100644 index 000000000000..7177530b254f --- /dev/null +++ b/sdk/relay/Azure.ResourceManager.Relay/src/Generated/Models/RelayPrivateLinkResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Relay +{ + public partial class RelayPrivateLinkResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + RelayPrivateLinkResourceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + RelayPrivateLinkResourceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/relay/Azure.ResourceManager.Relay/src/Generated/Models/WcfRelayAuthorizationRuleResource.Serialization.cs b/sdk/relay/Azure.ResourceManager.Relay/src/Generated/Models/WcfRelayAuthorizationRuleResource.Serialization.cs new file mode 100644 index 000000000000..a3eb628c3241 --- /dev/null +++ b/sdk/relay/Azure.ResourceManager.Relay/src/Generated/Models/WcfRelayAuthorizationRuleResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Relay +{ + public partial class WcfRelayAuthorizationRuleResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + RelayAuthorizationRuleData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + RelayAuthorizationRuleData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/relay/Azure.ResourceManager.Relay/src/Generated/Models/WcfRelayResource.Serialization.cs b/sdk/relay/Azure.ResourceManager.Relay/src/Generated/Models/WcfRelayResource.Serialization.cs new file mode 100644 index 000000000000..9dd8826bbd0b --- /dev/null +++ b/sdk/relay/Azure.ResourceManager.Relay/src/Generated/Models/WcfRelayResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Relay +{ + public partial class WcfRelayResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + WcfRelayData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + WcfRelayData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/relay/Azure.ResourceManager.Relay/src/Generated/RelayHybridConnectionAuthorizationRuleCollection.cs b/sdk/relay/Azure.ResourceManager.Relay/src/Generated/RelayHybridConnectionAuthorizationRuleCollection.cs index c214a66a224a..f11d0de224e1 100644 --- a/sdk/relay/Azure.ResourceManager.Relay/src/Generated/RelayHybridConnectionAuthorizationRuleCollection.cs +++ b/sdk/relay/Azure.ResourceManager.Relay/src/Generated/RelayHybridConnectionAuthorizationRuleCollection.cs @@ -90,7 +90,9 @@ public virtual async Task(Response.FromValue(new RelayHybridConnectionAuthorizationRuleResource(Client, response), response.GetRawResponse())); + var uri = _relayHybridConnectionAuthorizationRuleHybridConnectionsRestClient.CreateCreateOrUpdateAuthorizationRuleRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, authorizationRuleName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new RelayArmOperation(Response.FromValue(new RelayHybridConnectionAuthorizationRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation Crea try { var response = _relayHybridConnectionAuthorizationRuleHybridConnectionsRestClient.CreateOrUpdateAuthorizationRule(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, authorizationRuleName, data, cancellationToken); - var operation = new RelayArmOperation(Response.FromValue(new RelayHybridConnectionAuthorizationRuleResource(Client, response), response.GetRawResponse())); + var uri = _relayHybridConnectionAuthorizationRuleHybridConnectionsRestClient.CreateCreateOrUpdateAuthorizationRuleRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, authorizationRuleName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new RelayArmOperation(Response.FromValue(new RelayHybridConnectionAuthorizationRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/relay/Azure.ResourceManager.Relay/src/Generated/RelayHybridConnectionAuthorizationRuleResource.cs b/sdk/relay/Azure.ResourceManager.Relay/src/Generated/RelayHybridConnectionAuthorizationRuleResource.cs index 3d534cc4a6cf..30ac1a2078ac 100644 --- a/sdk/relay/Azure.ResourceManager.Relay/src/Generated/RelayHybridConnectionAuthorizationRuleResource.cs +++ b/sdk/relay/Azure.ResourceManager.Relay/src/Generated/RelayHybridConnectionAuthorizationRuleResource.cs @@ -202,7 +202,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _relayHybridConnectionAuthorizationRuleHybridConnectionsRestClient.DeleteAuthorizationRuleAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new RelayArmOperation(response); + var uri = _relayHybridConnectionAuthorizationRuleHybridConnectionsRestClient.CreateDeleteAuthorizationRuleRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new RelayArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -244,7 +246,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _relayHybridConnectionAuthorizationRuleHybridConnectionsRestClient.DeleteAuthorizationRule(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new RelayArmOperation(response); + var uri = _relayHybridConnectionAuthorizationRuleHybridConnectionsRestClient.CreateDeleteAuthorizationRuleRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new RelayArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -290,7 +294,9 @@ public virtual async Task(Response.FromValue(new RelayHybridConnectionAuthorizationRuleResource(Client, response), response.GetRawResponse())); + var uri = _relayHybridConnectionAuthorizationRuleHybridConnectionsRestClient.CreateCreateOrUpdateAuthorizationRuleRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new RelayArmOperation(Response.FromValue(new RelayHybridConnectionAuthorizationRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -336,7 +342,9 @@ public virtual ArmOperation Upda try { var response = _relayHybridConnectionAuthorizationRuleHybridConnectionsRestClient.CreateOrUpdateAuthorizationRule(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new RelayArmOperation(Response.FromValue(new RelayHybridConnectionAuthorizationRuleResource(Client, response), response.GetRawResponse())); + var uri = _relayHybridConnectionAuthorizationRuleHybridConnectionsRestClient.CreateCreateOrUpdateAuthorizationRuleRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new RelayArmOperation(Response.FromValue(new RelayHybridConnectionAuthorizationRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/relay/Azure.ResourceManager.Relay/src/Generated/RelayHybridConnectionCollection.cs b/sdk/relay/Azure.ResourceManager.Relay/src/Generated/RelayHybridConnectionCollection.cs index e742989d3cd8..4935d8e948ae 100644 --- a/sdk/relay/Azure.ResourceManager.Relay/src/Generated/RelayHybridConnectionCollection.cs +++ b/sdk/relay/Azure.ResourceManager.Relay/src/Generated/RelayHybridConnectionCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> CreateOrU try { var response = await _relayHybridConnectionHybridConnectionsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, hybridConnectionName, data, cancellationToken).ConfigureAwait(false); - var operation = new RelayArmOperation(Response.FromValue(new RelayHybridConnectionResource(Client, response), response.GetRawResponse())); + var uri = _relayHybridConnectionHybridConnectionsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, hybridConnectionName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new RelayArmOperation(Response.FromValue(new RelayHybridConnectionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUn try { var response = _relayHybridConnectionHybridConnectionsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, hybridConnectionName, data, cancellationToken); - var operation = new RelayArmOperation(Response.FromValue(new RelayHybridConnectionResource(Client, response), response.GetRawResponse())); + var uri = _relayHybridConnectionHybridConnectionsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, hybridConnectionName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new RelayArmOperation(Response.FromValue(new RelayHybridConnectionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/relay/Azure.ResourceManager.Relay/src/Generated/RelayHybridConnectionResource.cs b/sdk/relay/Azure.ResourceManager.Relay/src/Generated/RelayHybridConnectionResource.cs index 4531d2ccba32..d6712679bc7f 100644 --- a/sdk/relay/Azure.ResourceManager.Relay/src/Generated/RelayHybridConnectionResource.cs +++ b/sdk/relay/Azure.ResourceManager.Relay/src/Generated/RelayHybridConnectionResource.cs @@ -269,7 +269,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _relayHybridConnectionHybridConnectionsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new RelayArmOperation(response); + var uri = _relayHybridConnectionHybridConnectionsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new RelayArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -311,7 +313,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _relayHybridConnectionHybridConnectionsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new RelayArmOperation(response); + var uri = _relayHybridConnectionHybridConnectionsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new RelayArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -357,7 +361,9 @@ public virtual async Task> UpdateAsy try { var response = await _relayHybridConnectionHybridConnectionsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new RelayArmOperation(Response.FromValue(new RelayHybridConnectionResource(Client, response), response.GetRawResponse())); + var uri = _relayHybridConnectionHybridConnectionsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new RelayArmOperation(Response.FromValue(new RelayHybridConnectionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -403,7 +409,9 @@ public virtual ArmOperation Update(WaitUntil wait try { var response = _relayHybridConnectionHybridConnectionsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new RelayArmOperation(Response.FromValue(new RelayHybridConnectionResource(Client, response), response.GetRawResponse())); + var uri = _relayHybridConnectionHybridConnectionsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new RelayArmOperation(Response.FromValue(new RelayHybridConnectionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/relay/Azure.ResourceManager.Relay/src/Generated/RelayNamespaceAuthorizationRuleCollection.cs b/sdk/relay/Azure.ResourceManager.Relay/src/Generated/RelayNamespaceAuthorizationRuleCollection.cs index bb1437c728c2..17f968f7c2b4 100644 --- a/sdk/relay/Azure.ResourceManager.Relay/src/Generated/RelayNamespaceAuthorizationRuleCollection.cs +++ b/sdk/relay/Azure.ResourceManager.Relay/src/Generated/RelayNamespaceAuthorizationRuleCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> try { var response = await _relayNamespaceAuthorizationRuleNamespacesRestClient.CreateOrUpdateAuthorizationRuleAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, authorizationRuleName, data, cancellationToken).ConfigureAwait(false); - var operation = new RelayArmOperation(Response.FromValue(new RelayNamespaceAuthorizationRuleResource(Client, response), response.GetRawResponse())); + var uri = _relayNamespaceAuthorizationRuleNamespacesRestClient.CreateCreateOrUpdateAuthorizationRuleRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, authorizationRuleName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new RelayArmOperation(Response.FromValue(new RelayNamespaceAuthorizationRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpd try { var response = _relayNamespaceAuthorizationRuleNamespacesRestClient.CreateOrUpdateAuthorizationRule(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, authorizationRuleName, data, cancellationToken); - var operation = new RelayArmOperation(Response.FromValue(new RelayNamespaceAuthorizationRuleResource(Client, response), response.GetRawResponse())); + var uri = _relayNamespaceAuthorizationRuleNamespacesRestClient.CreateCreateOrUpdateAuthorizationRuleRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, authorizationRuleName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new RelayArmOperation(Response.FromValue(new RelayNamespaceAuthorizationRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/relay/Azure.ResourceManager.Relay/src/Generated/RelayNamespaceAuthorizationRuleResource.cs b/sdk/relay/Azure.ResourceManager.Relay/src/Generated/RelayNamespaceAuthorizationRuleResource.cs index c2b7f1c41728..2e371c09e00f 100644 --- a/sdk/relay/Azure.ResourceManager.Relay/src/Generated/RelayNamespaceAuthorizationRuleResource.cs +++ b/sdk/relay/Azure.ResourceManager.Relay/src/Generated/RelayNamespaceAuthorizationRuleResource.cs @@ -201,7 +201,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _relayNamespaceAuthorizationRuleNamespacesRestClient.DeleteAuthorizationRuleAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new RelayArmOperation(response); + var uri = _relayNamespaceAuthorizationRuleNamespacesRestClient.CreateDeleteAuthorizationRuleRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new RelayArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -243,7 +245,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _relayNamespaceAuthorizationRuleNamespacesRestClient.DeleteAuthorizationRule(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new RelayArmOperation(response); + var uri = _relayNamespaceAuthorizationRuleNamespacesRestClient.CreateDeleteAuthorizationRuleRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new RelayArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -289,7 +293,9 @@ public virtual async Task> try { var response = await _relayNamespaceAuthorizationRuleNamespacesRestClient.CreateOrUpdateAuthorizationRuleAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new RelayArmOperation(Response.FromValue(new RelayNamespaceAuthorizationRuleResource(Client, response), response.GetRawResponse())); + var uri = _relayNamespaceAuthorizationRuleNamespacesRestClient.CreateCreateOrUpdateAuthorizationRuleRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new RelayArmOperation(Response.FromValue(new RelayNamespaceAuthorizationRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -335,7 +341,9 @@ public virtual ArmOperation Update(Wait try { var response = _relayNamespaceAuthorizationRuleNamespacesRestClient.CreateOrUpdateAuthorizationRule(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new RelayArmOperation(Response.FromValue(new RelayNamespaceAuthorizationRuleResource(Client, response), response.GetRawResponse())); + var uri = _relayNamespaceAuthorizationRuleNamespacesRestClient.CreateCreateOrUpdateAuthorizationRuleRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new RelayArmOperation(Response.FromValue(new RelayNamespaceAuthorizationRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/relay/Azure.ResourceManager.Relay/src/Generated/RelayNetworkRuleSetResource.cs b/sdk/relay/Azure.ResourceManager.Relay/src/Generated/RelayNetworkRuleSetResource.cs index e06e2729a59f..6a68d95a6596 100644 --- a/sdk/relay/Azure.ResourceManager.Relay/src/Generated/RelayNetworkRuleSetResource.cs +++ b/sdk/relay/Azure.ResourceManager.Relay/src/Generated/RelayNetworkRuleSetResource.cs @@ -203,7 +203,9 @@ public virtual async Task> CreateOrUpd try { var response = await _relayNetworkRuleSetNamespacesRestClient.CreateOrUpdateNetworkRuleSetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new RelayArmOperation(Response.FromValue(new RelayNetworkRuleSetResource(Client, response), response.GetRawResponse())); + var uri = _relayNetworkRuleSetNamespacesRestClient.CreateCreateOrUpdateNetworkRuleSetRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new RelayArmOperation(Response.FromValue(new RelayNetworkRuleSetResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -249,7 +251,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUnti try { var response = _relayNetworkRuleSetNamespacesRestClient.CreateOrUpdateNetworkRuleSet(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, data, cancellationToken); - var operation = new RelayArmOperation(Response.FromValue(new RelayNetworkRuleSetResource(Client, response), response.GetRawResponse())); + var uri = _relayNetworkRuleSetNamespacesRestClient.CreateCreateOrUpdateNetworkRuleSetRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new RelayArmOperation(Response.FromValue(new RelayNetworkRuleSetResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/relay/Azure.ResourceManager.Relay/src/Generated/RelayPrivateEndpointConnectionCollection.cs b/sdk/relay/Azure.ResourceManager.Relay/src/Generated/RelayPrivateEndpointConnectionCollection.cs index 42cb68119df1..4c8846bfc0d3 100644 --- a/sdk/relay/Azure.ResourceManager.Relay/src/Generated/RelayPrivateEndpointConnectionCollection.cs +++ b/sdk/relay/Azure.ResourceManager.Relay/src/Generated/RelayPrivateEndpointConnectionCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> try { var response = await _relayPrivateEndpointConnectionPrivateEndpointConnectionsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, privateEndpointConnectionName, data, cancellationToken).ConfigureAwait(false); - var operation = new RelayArmOperation(Response.FromValue(new RelayPrivateEndpointConnectionResource(Client, response), response.GetRawResponse())); + var uri = _relayPrivateEndpointConnectionPrivateEndpointConnectionsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, privateEndpointConnectionName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new RelayArmOperation(Response.FromValue(new RelayPrivateEndpointConnectionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpda try { var response = _relayPrivateEndpointConnectionPrivateEndpointConnectionsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, privateEndpointConnectionName, data, cancellationToken); - var operation = new RelayArmOperation(Response.FromValue(new RelayPrivateEndpointConnectionResource(Client, response), response.GetRawResponse())); + var uri = _relayPrivateEndpointConnectionPrivateEndpointConnectionsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, privateEndpointConnectionName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new RelayArmOperation(Response.FromValue(new RelayPrivateEndpointConnectionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/relay/Azure.ResourceManager.Relay/src/Generated/RelayPrivateEndpointConnectionResource.cs b/sdk/relay/Azure.ResourceManager.Relay/src/Generated/RelayPrivateEndpointConnectionResource.cs index 7096f171e966..78753d4656cd 100644 --- a/sdk/relay/Azure.ResourceManager.Relay/src/Generated/RelayPrivateEndpointConnectionResource.cs +++ b/sdk/relay/Azure.ResourceManager.Relay/src/Generated/RelayPrivateEndpointConnectionResource.cs @@ -288,7 +288,9 @@ public virtual async Task> try { var response = await _relayPrivateEndpointConnectionPrivateEndpointConnectionsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new RelayArmOperation(Response.FromValue(new RelayPrivateEndpointConnectionResource(Client, response), response.GetRawResponse())); + var uri = _relayPrivateEndpointConnectionPrivateEndpointConnectionsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new RelayArmOperation(Response.FromValue(new RelayPrivateEndpointConnectionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -334,7 +336,9 @@ public virtual ArmOperation Update(WaitU try { var response = _relayPrivateEndpointConnectionPrivateEndpointConnectionsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new RelayArmOperation(Response.FromValue(new RelayPrivateEndpointConnectionResource(Client, response), response.GetRawResponse())); + var uri = _relayPrivateEndpointConnectionPrivateEndpointConnectionsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new RelayArmOperation(Response.FromValue(new RelayPrivateEndpointConnectionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/relay/Azure.ResourceManager.Relay/src/Generated/RestOperations/HybridConnectionsRestOperations.cs b/sdk/relay/Azure.ResourceManager.Relay/src/Generated/RestOperations/HybridConnectionsRestOperations.cs index 7ad6a39fa844..5f3f59598d14 100644 --- a/sdk/relay/Azure.ResourceManager.Relay/src/Generated/RestOperations/HybridConnectionsRestOperations.cs +++ b/sdk/relay/Azure.ResourceManager.Relay/src/Generated/RestOperations/HybridConnectionsRestOperations.cs @@ -37,6 +37,23 @@ public HybridConnectionsRestOperations(HttpPipeline pipeline, string application _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListAuthorizationRulesRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string hybridConnectionName) + { + 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.Relay/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/hybridConnections/", false); + uri.AppendPath(hybridConnectionName, true); + uri.AppendPath("/authorizationRules", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListAuthorizationRulesRequest(string subscriptionId, string resourceGroupName, string namespaceName, string hybridConnectionName) { var message = _pipeline.CreateMessage(); @@ -122,6 +139,24 @@ public Response ListAuthorizationRules(string subsc } } + internal RequestUriBuilder CreateCreateOrUpdateAuthorizationRuleRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string hybridConnectionName, string authorizationRuleName, RelayAuthorizationRuleData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Relay/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/hybridConnections/", false); + uri.AppendPath(hybridConnectionName, true); + uri.AppendPath("/authorizationRules/", false); + uri.AppendPath(authorizationRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateAuthorizationRuleRequest(string subscriptionId, string resourceGroupName, string namespaceName, string hybridConnectionName, string authorizationRuleName, RelayAuthorizationRuleData data) { var message = _pipeline.CreateMessage(); @@ -220,6 +255,24 @@ public Response CreateOrUpdateAuthorizationRule(stri } } + internal RequestUriBuilder CreateDeleteAuthorizationRuleRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string hybridConnectionName, string authorizationRuleName) + { + 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.Relay/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/hybridConnections/", false); + uri.AppendPath(hybridConnectionName, true); + uri.AppendPath("/authorizationRules/", false); + uri.AppendPath(authorizationRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteAuthorizationRuleRequest(string subscriptionId, string resourceGroupName, string namespaceName, string hybridConnectionName, string authorizationRuleName) { var message = _pipeline.CreateMessage(); @@ -302,6 +355,24 @@ public Response DeleteAuthorizationRule(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateGetAuthorizationRuleRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string hybridConnectionName, string authorizationRuleName) + { + 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.Relay/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/hybridConnections/", false); + uri.AppendPath(hybridConnectionName, true); + uri.AppendPath("/authorizationRules/", false); + uri.AppendPath(authorizationRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetAuthorizationRuleRequest(string subscriptionId, string resourceGroupName, string namespaceName, string hybridConnectionName, string authorizationRuleName) { var message = _pipeline.CreateMessage(); @@ -396,6 +467,25 @@ public Response GetAuthorizationRule(string subscrip } } + internal RequestUriBuilder CreateListKeysRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string hybridConnectionName, string authorizationRuleName) + { + 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.Relay/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/hybridConnections/", false); + uri.AppendPath(hybridConnectionName, true); + uri.AppendPath("/authorizationRules/", false); + uri.AppendPath(authorizationRuleName, true); + uri.AppendPath("/listKeys", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListKeysRequest(string subscriptionId, string resourceGroupName, string namespaceName, string hybridConnectionName, string authorizationRuleName) { var message = _pipeline.CreateMessage(); @@ -487,6 +577,25 @@ public Response ListKeys(string subscriptionId, string resource } } + internal RequestUriBuilder CreateRegenerateKeysRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string hybridConnectionName, string authorizationRuleName, RelayRegenerateAccessKeyContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Relay/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/hybridConnections/", false); + uri.AppendPath(hybridConnectionName, true); + uri.AppendPath("/authorizationRules/", false); + uri.AppendPath(authorizationRuleName, true); + uri.AppendPath("/regenerateKeys", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRegenerateKeysRequest(string subscriptionId, string resourceGroupName, string namespaceName, string hybridConnectionName, string authorizationRuleName, RelayRegenerateAccessKeyContent content) { var message = _pipeline.CreateMessage(); @@ -586,6 +695,21 @@ public Response RegenerateKeys(string subscriptionId, string re } } + internal RequestUriBuilder CreateListByNamespaceRequestUri(string subscriptionId, string resourceGroupName, string namespaceName) + { + 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.Relay/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/hybridConnections", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByNamespaceRequest(string subscriptionId, string resourceGroupName, string namespaceName) { var message = _pipeline.CreateMessage(); @@ -665,6 +789,22 @@ public Response ListByNamespace(string subscriptionI } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string hybridConnectionName, RelayHybridConnectionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Relay/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/hybridConnections/", false); + uri.AppendPath(hybridConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string namespaceName, string hybridConnectionName, RelayHybridConnectionData data) { var message = _pipeline.CreateMessage(); @@ -757,6 +897,22 @@ public Response CreateOrUpdate(string subscriptionId, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string hybridConnectionName) + { + 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.Relay/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/hybridConnections/", false); + uri.AppendPath(hybridConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string namespaceName, string hybridConnectionName) { var message = _pipeline.CreateMessage(); @@ -833,6 +989,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string n } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string hybridConnectionName) + { + 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.Relay/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/hybridConnections/", false); + uri.AppendPath(hybridConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string namespaceName, string hybridConnectionName) { var message = _pipeline.CreateMessage(); @@ -921,6 +1093,14 @@ public Response Get(string subscriptionId, string res } } + internal RequestUriBuilder CreateListAuthorizationRulesNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string namespaceName, string hybridConnectionName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListAuthorizationRulesNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string namespaceName, string hybridConnectionName) { var message = _pipeline.CreateMessage(); @@ -1001,6 +1181,14 @@ public Response ListAuthorizationRulesNextPage(stri } } + internal RequestUriBuilder CreateListByNamespaceNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string namespaceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByNamespaceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string namespaceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/relay/Azure.ResourceManager.Relay/src/Generated/RestOperations/NamespacesRestOperations.cs b/sdk/relay/Azure.ResourceManager.Relay/src/Generated/RestOperations/NamespacesRestOperations.cs index e3fc3bf6cc25..bb65b2f7f5ab 100644 --- a/sdk/relay/Azure.ResourceManager.Relay/src/Generated/RestOperations/NamespacesRestOperations.cs +++ b/sdk/relay/Azure.ResourceManager.Relay/src/Generated/RestOperations/NamespacesRestOperations.cs @@ -37,6 +37,21 @@ public NamespacesRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListAuthorizationRulesRequestUri(string subscriptionId, string resourceGroupName, string namespaceName) + { + 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.Relay/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/authorizationRules", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListAuthorizationRulesRequest(string subscriptionId, string resourceGroupName, string namespaceName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListAuthorizationRules(string subsc } } + internal RequestUriBuilder CreateCreateOrUpdateAuthorizationRuleRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string authorizationRuleName, RelayAuthorizationRuleData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Relay/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/authorizationRules/", false); + uri.AppendPath(authorizationRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateAuthorizationRuleRequest(string subscriptionId, string resourceGroupName, string namespaceName, string authorizationRuleName, RelayAuthorizationRuleData data) { var message = _pipeline.CreateMessage(); @@ -208,6 +239,22 @@ public Response CreateOrUpdateAuthorizationRule(stri } } + internal RequestUriBuilder CreateDeleteAuthorizationRuleRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string authorizationRuleName) + { + 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.Relay/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/authorizationRules/", false); + uri.AppendPath(authorizationRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteAuthorizationRuleRequest(string subscriptionId, string resourceGroupName, string namespaceName, string authorizationRuleName) { var message = _pipeline.CreateMessage(); @@ -284,6 +331,22 @@ public Response DeleteAuthorizationRule(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateGetAuthorizationRuleRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string authorizationRuleName) + { + 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.Relay/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/authorizationRules/", false); + uri.AppendPath(authorizationRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetAuthorizationRuleRequest(string subscriptionId, string resourceGroupName, string namespaceName, string authorizationRuleName) { var message = _pipeline.CreateMessage(); @@ -372,6 +435,23 @@ public Response GetAuthorizationRule(string subscrip } } + internal RequestUriBuilder CreateListKeysRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string authorizationRuleName) + { + 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.Relay/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/authorizationRules/", false); + uri.AppendPath(authorizationRuleName, true); + uri.AppendPath("/listKeys", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListKeysRequest(string subscriptionId, string resourceGroupName, string namespaceName, string authorizationRuleName) { var message = _pipeline.CreateMessage(); @@ -457,6 +537,23 @@ public Response ListKeys(string subscriptionId, string resource } } + internal RequestUriBuilder CreateRegenerateKeysRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string authorizationRuleName, RelayRegenerateAccessKeyContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Relay/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/authorizationRules/", false); + uri.AppendPath(authorizationRuleName, true); + uri.AppendPath("/regenerateKeys", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRegenerateKeysRequest(string subscriptionId, string resourceGroupName, string namespaceName, string authorizationRuleName, RelayRegenerateAccessKeyContent content) { var message = _pipeline.CreateMessage(); @@ -550,6 +647,17 @@ public Response RegenerateKeys(string subscriptionId, string re } } + internal RequestUriBuilder CreateCheckNameAvailabilityRequestUri(string subscriptionId, RelayNameAvailabilityContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Relay/checkNameAvailability", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCheckNameAvailabilityRequest(string subscriptionId, RelayNameAvailabilityContent content) { var message = _pipeline.CreateMessage(); @@ -625,6 +733,17 @@ public Response CheckNameAvailability(string subscr } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Relay/namespaces", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -692,6 +811,19 @@ public Response List(string subscriptionId, Cancellati } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.Relay/namespaces", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -765,6 +897,20 @@ public Response ListByResourceGroup(string subscriptio } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, RelayNamespaceData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Relay/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string namespaceName, RelayNamespaceData data) { var message = _pipeline.CreateMessage(); @@ -843,6 +989,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string namespaceName) + { + 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.Relay/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string namespaceName) { var message = _pipeline.CreateMessage(); @@ -915,6 +1075,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string n } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string namespaceName) + { + 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.Relay/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string namespaceName) { var message = _pipeline.CreateMessage(); @@ -997,6 +1171,20 @@ public Response Get(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, RelayNamespacePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Relay/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string namespaceName, RelayNamespacePatch patch) { var message = _pipeline.CreateMessage(); @@ -1085,6 +1273,21 @@ public Response Update(string subscriptionId, string resourc } } + internal RequestUriBuilder CreateCreateOrUpdateNetworkRuleSetRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, RelayNetworkRuleSetData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Relay/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/networkRuleSets/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateNetworkRuleSetRequest(string subscriptionId, string resourceGroupName, string namespaceName, RelayNetworkRuleSetData data) { var message = _pipeline.CreateMessage(); @@ -1172,6 +1375,21 @@ public Response CreateOrUpdateNetworkRuleSet(string sub } } + internal RequestUriBuilder CreateGetNetworkRuleSetRequestUri(string subscriptionId, string resourceGroupName, string namespaceName) + { + 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.Relay/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/networkRuleSets/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetNetworkRuleSetRequest(string subscriptionId, string resourceGroupName, string namespaceName) { var message = _pipeline.CreateMessage(); @@ -1255,6 +1473,14 @@ public Response GetNetworkRuleSet(string subscriptionId } } + internal RequestUriBuilder CreateListAuthorizationRulesNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string namespaceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListAuthorizationRulesNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string namespaceName) { var message = _pipeline.CreateMessage(); @@ -1331,6 +1557,14 @@ public Response ListAuthorizationRulesNextPage(stri } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -1399,6 +1633,14 @@ public Response ListNextPage(string nextLink, string s } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/relay/Azure.ResourceManager.Relay/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs b/sdk/relay/Azure.ResourceManager.Relay/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs index 698e21b7e997..c8d59b8f800d 100644 --- a/sdk/relay/Azure.ResourceManager.Relay/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs +++ b/sdk/relay/Azure.ResourceManager.Relay/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs @@ -37,6 +37,21 @@ public PrivateEndpointConnectionsRestOperations(HttpPipeline pipeline, string ap _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string namespaceName) + { + 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.Relay/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/privateEndpointConnections", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string namespaceName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response List(string subscripti } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string privateEndpointConnectionName, RelayPrivateEndpointConnectionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Relay/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string namespaceName, string privateEndpointConnectionName, RelayPrivateEndpointConnectionData data) { var message = _pipeline.CreateMessage(); @@ -212,6 +243,22 @@ public Response CreateOrUpdate(string subscr } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string privateEndpointConnectionName) + { + 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.Relay/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string namespaceName, string privateEndpointConnectionName) { var message = _pipeline.CreateMessage(); @@ -290,6 +337,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string n } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string privateEndpointConnectionName) + { + 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.Relay/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string namespaceName, string privateEndpointConnectionName) { var message = _pipeline.CreateMessage(); @@ -378,6 +441,14 @@ public Response Get(string subscriptionId, s } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string namespaceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string namespaceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/relay/Azure.ResourceManager.Relay/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs b/sdk/relay/Azure.ResourceManager.Relay/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs index 4d94d0b6b15f..a00a3513cceb 100644 --- a/sdk/relay/Azure.ResourceManager.Relay/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs +++ b/sdk/relay/Azure.ResourceManager.Relay/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs @@ -37,6 +37,22 @@ public PrivateLinkResourcesRestOperations(HttpPipeline pipeline, string applicat _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string privateLinkResourceName) + { + 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.Relay/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/privateLinkResources/", false); + uri.AppendPath(privateLinkResourceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string namespaceName, string privateLinkResourceName) { var message = _pipeline.CreateMessage(); @@ -125,6 +141,21 @@ public Response Get(string subscriptionId, string } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string namespaceName) + { + 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.Relay/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/privateLinkResources", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string namespaceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/relay/Azure.ResourceManager.Relay/src/Generated/RestOperations/WCFRelaysRestOperations.cs b/sdk/relay/Azure.ResourceManager.Relay/src/Generated/RestOperations/WCFRelaysRestOperations.cs index d4f2710dd6a3..20b6867e8fdd 100644 --- a/sdk/relay/Azure.ResourceManager.Relay/src/Generated/RestOperations/WCFRelaysRestOperations.cs +++ b/sdk/relay/Azure.ResourceManager.Relay/src/Generated/RestOperations/WCFRelaysRestOperations.cs @@ -37,6 +37,23 @@ public WCFRelaysRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListAuthorizationRulesRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string relayName) + { + 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.Relay/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/wcfRelays/", false); + uri.AppendPath(relayName, true); + uri.AppendPath("/authorizationRules", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListAuthorizationRulesRequest(string subscriptionId, string resourceGroupName, string namespaceName, string relayName) { var message = _pipeline.CreateMessage(); @@ -122,6 +139,24 @@ public Response ListAuthorizationRules(string subsc } } + internal RequestUriBuilder CreateCreateOrUpdateAuthorizationRuleRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string relayName, string authorizationRuleName, RelayAuthorizationRuleData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Relay/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/wcfRelays/", false); + uri.AppendPath(relayName, true); + uri.AppendPath("/authorizationRules/", false); + uri.AppendPath(authorizationRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateAuthorizationRuleRequest(string subscriptionId, string resourceGroupName, string namespaceName, string relayName, string authorizationRuleName, RelayAuthorizationRuleData data) { var message = _pipeline.CreateMessage(); @@ -220,6 +255,24 @@ public Response CreateOrUpdateAuthorizationRule(stri } } + internal RequestUriBuilder CreateDeleteAuthorizationRuleRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string relayName, string authorizationRuleName) + { + 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.Relay/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/wcfRelays/", false); + uri.AppendPath(relayName, true); + uri.AppendPath("/authorizationRules/", false); + uri.AppendPath(authorizationRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteAuthorizationRuleRequest(string subscriptionId, string resourceGroupName, string namespaceName, string relayName, string authorizationRuleName) { var message = _pipeline.CreateMessage(); @@ -302,6 +355,24 @@ public Response DeleteAuthorizationRule(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateGetAuthorizationRuleRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string relayName, string authorizationRuleName) + { + 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.Relay/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/wcfRelays/", false); + uri.AppendPath(relayName, true); + uri.AppendPath("/authorizationRules/", false); + uri.AppendPath(authorizationRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetAuthorizationRuleRequest(string subscriptionId, string resourceGroupName, string namespaceName, string relayName, string authorizationRuleName) { var message = _pipeline.CreateMessage(); @@ -396,6 +467,25 @@ public Response GetAuthorizationRule(string subscrip } } + internal RequestUriBuilder CreateListKeysRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string relayName, string authorizationRuleName) + { + 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.Relay/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/wcfRelays/", false); + uri.AppendPath(relayName, true); + uri.AppendPath("/authorizationRules/", false); + uri.AppendPath(authorizationRuleName, true); + uri.AppendPath("/listKeys", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListKeysRequest(string subscriptionId, string resourceGroupName, string namespaceName, string relayName, string authorizationRuleName) { var message = _pipeline.CreateMessage(); @@ -487,6 +577,25 @@ public Response ListKeys(string subscriptionId, string resource } } + internal RequestUriBuilder CreateRegenerateKeysRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string relayName, string authorizationRuleName, RelayRegenerateAccessKeyContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Relay/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/wcfRelays/", false); + uri.AppendPath(relayName, true); + uri.AppendPath("/authorizationRules/", false); + uri.AppendPath(authorizationRuleName, true); + uri.AppendPath("/regenerateKeys", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRegenerateKeysRequest(string subscriptionId, string resourceGroupName, string namespaceName, string relayName, string authorizationRuleName, RelayRegenerateAccessKeyContent content) { var message = _pipeline.CreateMessage(); @@ -586,6 +695,21 @@ public Response RegenerateKeys(string subscriptionId, string re } } + internal RequestUriBuilder CreateListByNamespaceRequestUri(string subscriptionId, string resourceGroupName, string namespaceName) + { + 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.Relay/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/wcfRelays", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByNamespaceRequest(string subscriptionId, string resourceGroupName, string namespaceName) { var message = _pipeline.CreateMessage(); @@ -665,6 +789,22 @@ public Response ListByNamespace(string subscriptionId, stri } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string relayName, WcfRelayData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Relay/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/wcfRelays/", false); + uri.AppendPath(relayName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string namespaceName, string relayName, WcfRelayData data) { var message = _pipeline.CreateMessage(); @@ -757,6 +897,22 @@ public Response CreateOrUpdate(string subscriptionId, string resou } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string relayName) + { + 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.Relay/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/wcfRelays/", false); + uri.AppendPath(relayName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string namespaceName, string relayName) { var message = _pipeline.CreateMessage(); @@ -833,6 +989,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string n } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string relayName) + { + 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.Relay/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/wcfRelays/", false); + uri.AppendPath(relayName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string namespaceName, string relayName) { var message = _pipeline.CreateMessage(); @@ -923,6 +1095,14 @@ public Response Get(string subscriptionId, string resourceGroupNam } } + internal RequestUriBuilder CreateListAuthorizationRulesNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string namespaceName, string relayName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListAuthorizationRulesNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string namespaceName, string relayName) { var message = _pipeline.CreateMessage(); @@ -1003,6 +1183,14 @@ public Response ListAuthorizationRulesNextPage(stri } } + internal RequestUriBuilder CreateListByNamespaceNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string namespaceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByNamespaceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string namespaceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/relay/Azure.ResourceManager.Relay/src/Generated/WcfRelayAuthorizationRuleCollection.cs b/sdk/relay/Azure.ResourceManager.Relay/src/Generated/WcfRelayAuthorizationRuleCollection.cs index 35d2641e4fbc..4d9715eb81ae 100644 --- a/sdk/relay/Azure.ResourceManager.Relay/src/Generated/WcfRelayAuthorizationRuleCollection.cs +++ b/sdk/relay/Azure.ResourceManager.Relay/src/Generated/WcfRelayAuthorizationRuleCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> Creat try { var response = await _wcfRelayAuthorizationRuleWCFRelaysRestClient.CreateOrUpdateAuthorizationRuleAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, authorizationRuleName, data, cancellationToken).ConfigureAwait(false); - var operation = new RelayArmOperation(Response.FromValue(new WcfRelayAuthorizationRuleResource(Client, response), response.GetRawResponse())); + var uri = _wcfRelayAuthorizationRuleWCFRelaysRestClient.CreateCreateOrUpdateAuthorizationRuleRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, authorizationRuleName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new RelayArmOperation(Response.FromValue(new WcfRelayAuthorizationRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(Wa try { var response = _wcfRelayAuthorizationRuleWCFRelaysRestClient.CreateOrUpdateAuthorizationRule(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, authorizationRuleName, data, cancellationToken); - var operation = new RelayArmOperation(Response.FromValue(new WcfRelayAuthorizationRuleResource(Client, response), response.GetRawResponse())); + var uri = _wcfRelayAuthorizationRuleWCFRelaysRestClient.CreateCreateOrUpdateAuthorizationRuleRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, authorizationRuleName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new RelayArmOperation(Response.FromValue(new WcfRelayAuthorizationRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/relay/Azure.ResourceManager.Relay/src/Generated/WcfRelayAuthorizationRuleResource.cs b/sdk/relay/Azure.ResourceManager.Relay/src/Generated/WcfRelayAuthorizationRuleResource.cs index b5083cb3a0c9..eefb95ef9424 100644 --- a/sdk/relay/Azure.ResourceManager.Relay/src/Generated/WcfRelayAuthorizationRuleResource.cs +++ b/sdk/relay/Azure.ResourceManager.Relay/src/Generated/WcfRelayAuthorizationRuleResource.cs @@ -202,7 +202,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _wcfRelayAuthorizationRuleWCFRelaysRestClient.DeleteAuthorizationRuleAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new RelayArmOperation(response); + var uri = _wcfRelayAuthorizationRuleWCFRelaysRestClient.CreateDeleteAuthorizationRuleRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new RelayArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -244,7 +246,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _wcfRelayAuthorizationRuleWCFRelaysRestClient.DeleteAuthorizationRule(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new RelayArmOperation(response); + var uri = _wcfRelayAuthorizationRuleWCFRelaysRestClient.CreateDeleteAuthorizationRuleRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new RelayArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -290,7 +294,9 @@ public virtual async Task> Updat try { var response = await _wcfRelayAuthorizationRuleWCFRelaysRestClient.CreateOrUpdateAuthorizationRuleAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new RelayArmOperation(Response.FromValue(new WcfRelayAuthorizationRuleResource(Client, response), response.GetRawResponse())); + var uri = _wcfRelayAuthorizationRuleWCFRelaysRestClient.CreateCreateOrUpdateAuthorizationRuleRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new RelayArmOperation(Response.FromValue(new WcfRelayAuthorizationRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -336,7 +342,9 @@ public virtual ArmOperation Update(WaitUntil try { var response = _wcfRelayAuthorizationRuleWCFRelaysRestClient.CreateOrUpdateAuthorizationRule(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new RelayArmOperation(Response.FromValue(new WcfRelayAuthorizationRuleResource(Client, response), response.GetRawResponse())); + var uri = _wcfRelayAuthorizationRuleWCFRelaysRestClient.CreateCreateOrUpdateAuthorizationRuleRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new RelayArmOperation(Response.FromValue(new WcfRelayAuthorizationRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/relay/Azure.ResourceManager.Relay/src/Generated/WcfRelayCollection.cs b/sdk/relay/Azure.ResourceManager.Relay/src/Generated/WcfRelayCollection.cs index c50b2fc27118..a09aa538696c 100644 --- a/sdk/relay/Azure.ResourceManager.Relay/src/Generated/WcfRelayCollection.cs +++ b/sdk/relay/Azure.ResourceManager.Relay/src/Generated/WcfRelayCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> CreateOrUpdateAsync(Wa try { var response = await _wcfRelayWCFRelaysRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, relayName, data, cancellationToken).ConfigureAwait(false); - var operation = new RelayArmOperation(Response.FromValue(new WcfRelayResource(Client, response), response.GetRawResponse())); + var uri = _wcfRelayWCFRelaysRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, relayName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new RelayArmOperation(Response.FromValue(new WcfRelayResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil try { var response = _wcfRelayWCFRelaysRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, relayName, data, cancellationToken); - var operation = new RelayArmOperation(Response.FromValue(new WcfRelayResource(Client, response), response.GetRawResponse())); + var uri = _wcfRelayWCFRelaysRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, relayName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new RelayArmOperation(Response.FromValue(new WcfRelayResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/relay/Azure.ResourceManager.Relay/src/Generated/WcfRelayResource.cs b/sdk/relay/Azure.ResourceManager.Relay/src/Generated/WcfRelayResource.cs index c2fcaa94fd3c..bf7e06e8e04a 100644 --- a/sdk/relay/Azure.ResourceManager.Relay/src/Generated/WcfRelayResource.cs +++ b/sdk/relay/Azure.ResourceManager.Relay/src/Generated/WcfRelayResource.cs @@ -269,7 +269,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _wcfRelayWCFRelaysRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new RelayArmOperation(response); + var uri = _wcfRelayWCFRelaysRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new RelayArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -311,7 +313,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _wcfRelayWCFRelaysRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new RelayArmOperation(response); + var uri = _wcfRelayWCFRelaysRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new RelayArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -357,7 +361,9 @@ public virtual async Task> UpdateAsync(WaitUntil try { var response = await _wcfRelayWCFRelaysRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new RelayArmOperation(Response.FromValue(new WcfRelayResource(Client, response), response.GetRawResponse())); + var uri = _wcfRelayWCFRelaysRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new RelayArmOperation(Response.FromValue(new WcfRelayResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -403,7 +409,9 @@ public virtual ArmOperation Update(WaitUntil waitUntil, WcfRel try { var response = _wcfRelayWCFRelaysRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new RelayArmOperation(Response.FromValue(new WcfRelayResource(Client, response), response.GetRawResponse())); + var uri = _wcfRelayWCFRelaysRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new RelayArmOperation(Response.FromValue(new WcfRelayResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/LongRunningOperation/ReservationsArmOperationOfT.cs b/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/LongRunningOperation/ReservationsArmOperationOfT.cs index d822d71be69e..ac2f77b49f25 100644 --- a/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/LongRunningOperation/ReservationsArmOperationOfT.cs +++ b/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/LongRunningOperation/ReservationsArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class ReservationsArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of ReservationsArmOperation for mocking. protected ReservationsArmOperation() { } - internal ReservationsArmOperation(Response response) + internal ReservationsArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal ReservationsArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "ReservationsArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal ReservationsArmOperation(IOperationSource source, ClientDiagnostics public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Models/QuotaRequestDetailResource.Serialization.cs b/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Models/QuotaRequestDetailResource.Serialization.cs new file mode 100644 index 000000000000..684768afe585 --- /dev/null +++ b/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Models/QuotaRequestDetailResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Reservations +{ + public partial class QuotaRequestDetailResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + QuotaRequestDetailData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + QuotaRequestDetailData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Models/ReservationDetailResource.Serialization.cs b/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Models/ReservationDetailResource.Serialization.cs new file mode 100644 index 000000000000..bbeefb7e963e --- /dev/null +++ b/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Models/ReservationDetailResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Reservations +{ + public partial class ReservationDetailResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ReservationDetailData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ReservationDetailData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Models/ReservationOrderResource.Serialization.cs b/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Models/ReservationOrderResource.Serialization.cs new file mode 100644 index 000000000000..7e8d86ebfd69 --- /dev/null +++ b/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Models/ReservationOrderResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Reservations +{ + public partial class ReservationOrderResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ReservationOrderData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ReservationOrderData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Models/ReservationQuotaResource.Serialization.cs b/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Models/ReservationQuotaResource.Serialization.cs new file mode 100644 index 000000000000..31cd0945305f --- /dev/null +++ b/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Models/ReservationQuotaResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Reservations +{ + public partial class ReservationQuotaResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ReservationQuotaData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ReservationQuotaData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/RestOperations/AzureReservationAPIRestOperations.cs b/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/RestOperations/AzureReservationAPIRestOperations.cs index 57393e5daade..d77765cf2927 100644 --- a/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/RestOperations/AzureReservationAPIRestOperations.cs +++ b/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/RestOperations/AzureReservationAPIRestOperations.cs @@ -37,6 +37,49 @@ public AzureReservationAPIRestOperations(HttpPipeline pipeline, string applicati _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetCatalogRequestUri(string subscriptionId, string reservedResourceType, AzureLocation? location, string publisherId, string offerId, string planId, string filter, float? skip, float? take) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Capacity/catalogs", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (reservedResourceType != null) + { + uri.AppendQuery("reservedResourceType", reservedResourceType, true); + } + if (location != null) + { + uri.AppendQuery("location", location.Value, true); + } + if (publisherId != null) + { + uri.AppendQuery("publisherId", publisherId, true); + } + if (offerId != null) + { + uri.AppendQuery("offerId", offerId, true); + } + if (planId != null) + { + uri.AppendQuery("planId", planId, true); + } + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (skip != null) + { + uri.AppendQuery("$skip", skip.Value, true); + } + if (take != null) + { + uri.AppendQuery("$take", take.Value, true); + } + return uri; + } + internal HttpMessage CreateGetCatalogRequest(string subscriptionId, string reservedResourceType, AzureLocation? location, string publisherId, string offerId, string planId, string filter, float? skip, float? take) { var message = _pipeline.CreateMessage(); @@ -152,6 +195,17 @@ public Response GetCatalog(string subscriptionId, string reserve } } + internal RequestUriBuilder CreateGetAppliedReservationListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Capacity/appliedReservations", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetAppliedReservationListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -219,6 +273,14 @@ public Response GetAppliedReservationList(string subscri } } + internal RequestUriBuilder CreateGetCatalogNextPageRequestUri(string nextLink, string subscriptionId, string reservedResourceType, AzureLocation? location, string publisherId, string offerId, string planId, string filter, float? skip, float? take) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateGetCatalogNextPageRequest(string nextLink, string subscriptionId, string reservedResourceType, AzureLocation? location, string publisherId, string offerId, string planId, string filter, float? skip, float? take) { var message = _pipeline.CreateMessage(); diff --git a/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/RestOperations/CalculateExchangeRestOperations.cs b/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/RestOperations/CalculateExchangeRestOperations.cs index 981eb124ba6b..4cd7999fd3f2 100644 --- a/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/RestOperations/CalculateExchangeRestOperations.cs +++ b/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/RestOperations/CalculateExchangeRestOperations.cs @@ -36,6 +36,15 @@ public CalculateExchangeRestOperations(HttpPipeline pipeline, string application _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreatePostRequestUri(CalculateExchangeContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Capacity/calculateExchange", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreatePostRequest(CalculateExchangeContent content) { var message = _pipeline.CreateMessage(); diff --git a/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/RestOperations/CalculateRefundRestOperations.cs b/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/RestOperations/CalculateRefundRestOperations.cs index 3cb6c0e14cf5..4aade7d3772e 100644 --- a/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/RestOperations/CalculateRefundRestOperations.cs +++ b/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/RestOperations/CalculateRefundRestOperations.cs @@ -37,6 +37,17 @@ public CalculateRefundRestOperations(HttpPipeline pipeline, string applicationId _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreatePostRequestUri(Guid reservationOrderId, ReservationCalculateRefundContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Capacity/reservationOrders/", false); + uri.AppendPath(reservationOrderId, true); + uri.AppendPath("/calculateRefund", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreatePostRequest(Guid reservationOrderId, ReservationCalculateRefundContent content) { var message = _pipeline.CreateMessage(); diff --git a/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/RestOperations/ExchangeRestOperations.cs b/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/RestOperations/ExchangeRestOperations.cs index 9f9f8224f111..1b99bb53306e 100644 --- a/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/RestOperations/ExchangeRestOperations.cs +++ b/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/RestOperations/ExchangeRestOperations.cs @@ -36,6 +36,15 @@ public ExchangeRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreatePostRequestUri(ExchangeContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Capacity/exchange", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreatePostRequest(ExchangeContent content) { var message = _pipeline.CreateMessage(); diff --git a/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/RestOperations/QuotaRequestStatusRestOperations.cs b/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/RestOperations/QuotaRequestStatusRestOperations.cs index 76b08ac115ac..de6ded1a25fc 100644 --- a/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/RestOperations/QuotaRequestStatusRestOperations.cs +++ b/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/RestOperations/QuotaRequestStatusRestOperations.cs @@ -37,6 +37,22 @@ public QuotaRequestStatusRestOperations(HttpPipeline pipeline, string applicatio _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string providerId, AzureLocation location, Guid id) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Capacity/resourceProviders/", false); + uri.AppendPath(providerId, true); + uri.AppendPath("/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/serviceLimitsRequests/", false); + uri.AppendPath(id, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string providerId, AzureLocation location, Guid id) { var message = _pipeline.CreateMessage(); @@ -121,6 +137,33 @@ public Response Get(string subscriptionId, string provid } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string providerId, AzureLocation location, string filter, int? top, string skiptoken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Capacity/resourceProviders/", false); + uri.AppendPath(providerId, true); + uri.AppendPath("/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/serviceLimitsRequests", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skiptoken != null) + { + uri.AppendQuery("$skiptoken", skiptoken, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string providerId, AzureLocation location, string filter, int? top, string skiptoken) { var message = _pipeline.CreateMessage(); @@ -224,6 +267,14 @@ public Response List(string subscriptionId, string prov } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string providerId, AzureLocation location, string filter, int? top, string skiptoken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string providerId, AzureLocation location, string filter, int? top, string skiptoken) { var message = _pipeline.CreateMessage(); diff --git a/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/RestOperations/QuotaRestOperations.cs b/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/RestOperations/QuotaRestOperations.cs index ac5de12ef89c..44774442a343 100644 --- a/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/RestOperations/QuotaRestOperations.cs +++ b/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/RestOperations/QuotaRestOperations.cs @@ -37,6 +37,22 @@ public QuotaRestOperations(HttpPipeline pipeline, string applicationId, Uri endp _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string providerId, AzureLocation location, string resourceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Capacity/resourceProviders/", false); + uri.AppendPath(providerId, true); + uri.AppendPath("/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/serviceLimits/", false); + uri.AppendPath(resourceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string providerId, AzureLocation location, string resourceName) { var message = _pipeline.CreateMessage(); @@ -123,6 +139,22 @@ public Response Get(string subscriptionId, string provider } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string providerId, AzureLocation location, string resourceName, ReservationQuotaData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Capacity/resourceProviders/", false); + uri.AppendPath(providerId, true); + uri.AppendPath("/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/serviceLimits/", false); + uri.AppendPath(resourceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string providerId, AzureLocation location, string resourceName, ReservationQuotaData data) { var message = _pipeline.CreateMessage(); @@ -219,6 +251,22 @@ public Response CreateOrUpdate(string subscriptionId, string providerId, AzureLo } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string providerId, AzureLocation location, string resourceName, ReservationQuotaData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Capacity/resourceProviders/", false); + uri.AppendPath(providerId, true); + uri.AppendPath("/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/serviceLimits/", false); + uri.AppendPath(resourceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string providerId, AzureLocation location, string resourceName, ReservationQuotaData data) { var message = _pipeline.CreateMessage(); @@ -313,6 +361,21 @@ public Response Update(string subscriptionId, string providerId, AzureLocation l } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string providerId, AzureLocation location) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Capacity/resourceProviders/", false); + uri.AppendPath(providerId, true); + uri.AppendPath("/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/serviceLimits", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string providerId, AzureLocation location) { var message = _pipeline.CreateMessage(); @@ -390,6 +453,14 @@ public Response List(string subscriptionId, string providerId, Azur } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string providerId, AzureLocation location) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string providerId, AzureLocation location) { var message = _pipeline.CreateMessage(); diff --git a/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/RestOperations/ReservationOrderRestOperations.cs b/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/RestOperations/ReservationOrderRestOperations.cs index 2069ce13f1e7..4c9c47b83058 100644 --- a/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/RestOperations/ReservationOrderRestOperations.cs +++ b/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/RestOperations/ReservationOrderRestOperations.cs @@ -37,6 +37,15 @@ public ReservationOrderRestOperations(HttpPipeline pipeline, string applicationI _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCalculateRequestUri(ReservationPurchaseContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Capacity/calculatePrice", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCalculateRequest(ReservationPurchaseContent content) { var message = _pipeline.CreateMessage(); @@ -104,6 +113,15 @@ public Response Calculate(ReservationPurchaseContent conte } } + internal RequestUriBuilder CreateListRequestUri() + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Capacity/reservationOrders", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest() { var message = _pipeline.CreateMessage(); @@ -159,6 +177,16 @@ public Response List(CancellationToken cancellationToken = } } + internal RequestUriBuilder CreatePurchaseRequestUri(Guid reservationOrderId, ReservationPurchaseContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Capacity/reservationOrders/", false); + uri.AppendPath(reservationOrderId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreatePurchaseRequest(Guid reservationOrderId, ReservationPurchaseContent content) { var message = _pipeline.CreateMessage(); @@ -221,6 +249,20 @@ public Response Purchase(Guid reservationOrderId, ReservationPurchaseContent con } } + internal RequestUriBuilder CreateGetRequestUri(Guid reservationOrderId, string expand) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Capacity/reservationOrders/", false); + uri.AppendPath(reservationOrderId, true); + uri.AppendQuery("api-version", _apiVersion, true); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + return uri; + } + internal HttpMessage CreateGetRequest(Guid reservationOrderId, string expand) { var message = _pipeline.CreateMessage(); @@ -289,6 +331,17 @@ public Response Get(Guid reservationOrderId, string expand } } + internal RequestUriBuilder CreateChangeDirectoryRequestUri(Guid reservationOrderId, ChangeDirectoryContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Capacity/reservationOrders/", false); + uri.AppendPath(reservationOrderId, true); + uri.AppendPath("/changeDirectory", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateChangeDirectoryRequest(Guid reservationOrderId, ChangeDirectoryContent content) { var message = _pipeline.CreateMessage(); @@ -360,6 +413,14 @@ public Response ChangeDirectory(Guid reservationOrderId, } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink) { var message = _pipeline.CreateMessage(); diff --git a/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/RestOperations/ReservationRestOperations.cs b/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/RestOperations/ReservationRestOperations.cs index 8be4beb76218..0a7c1f371beb 100644 --- a/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/RestOperations/ReservationRestOperations.cs +++ b/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/RestOperations/ReservationRestOperations.cs @@ -37,6 +37,19 @@ public ReservationRestOperations(HttpPipeline pipeline, string applicationId, Ur _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateAvailableScopesRequestUri(Guid reservationOrderId, Guid reservationId, AvailableScopesContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Capacity/reservationOrders/", false); + uri.AppendPath(reservationOrderId, true); + uri.AppendPath("/reservations/", false); + uri.AppendPath(reservationId, true); + uri.AppendPath("/availableScopes", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateAvailableScopesRequest(Guid reservationOrderId, Guid reservationId, AvailableScopesContent content) { var message = _pipeline.CreateMessage(); @@ -108,6 +121,17 @@ public Response AvailableScopes(Guid reservationOrderId, Guid reservationId, Ava } } + internal RequestUriBuilder CreateSplitRequestUri(Guid reservationOrderId, SplitContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Capacity/reservationOrders/", false); + uri.AppendPath(reservationOrderId, true); + uri.AppendPath("/split", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateSplitRequest(Guid reservationOrderId, SplitContent content) { var message = _pipeline.CreateMessage(); @@ -171,6 +195,17 @@ public Response Split(Guid reservationOrderId, SplitContent content, Cancellatio } } + internal RequestUriBuilder CreateMergeRequestUri(Guid reservationOrderId, MergeContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Capacity/reservationOrders/", false); + uri.AppendPath(reservationOrderId, true); + uri.AppendPath("/merge", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateMergeRequest(Guid reservationOrderId, MergeContent content) { var message = _pipeline.CreateMessage(); @@ -234,6 +269,17 @@ public Response Merge(Guid reservationOrderId, MergeContent content, Cancellatio } } + internal RequestUriBuilder CreateListRequestUri(Guid reservationOrderId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Capacity/reservationOrders/", false); + uri.AppendPath(reservationOrderId, true); + uri.AppendPath("/reservations", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(Guid reservationOrderId) { var message = _pipeline.CreateMessage(); @@ -293,6 +339,22 @@ public Response List(Guid reservationOrderId, CancellationToken } } + internal RequestUriBuilder CreateGetRequestUri(Guid reservationOrderId, Guid reservationId, string expand) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Capacity/reservationOrders/", false); + uri.AppendPath(reservationOrderId, true); + uri.AppendPath("/reservations/", false); + uri.AppendPath(reservationId, true); + uri.AppendQuery("api-version", _apiVersion, true); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + return uri; + } + internal HttpMessage CreateGetRequest(Guid reservationOrderId, Guid reservationId, string expand) { var message = _pipeline.CreateMessage(); @@ -365,6 +427,18 @@ public Response Get(Guid reservationOrderId, Guid reserva } } + internal RequestUriBuilder CreateUpdateRequestUri(Guid reservationOrderId, Guid reservationId, ReservationDetailPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Capacity/reservationOrders/", false); + uri.AppendPath(reservationOrderId, true); + uri.AppendPath("/reservations/", false); + uri.AppendPath(reservationId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(Guid reservationOrderId, Guid reservationId, ReservationDetailPatch patch) { var message = _pipeline.CreateMessage(); @@ -431,6 +505,19 @@ public Response Update(Guid reservationOrderId, Guid reservationId, ReservationD } } + internal RequestUriBuilder CreateArchiveRequestUri(Guid reservationOrderId, Guid reservationId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Capacity/reservationOrders/", false); + uri.AppendPath(reservationOrderId, true); + uri.AppendPath("/reservations/", false); + uri.AppendPath(reservationId, true); + uri.AppendPath("/archive", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateArchiveRequest(Guid reservationOrderId, Guid reservationId) { var message = _pipeline.CreateMessage(); @@ -484,6 +571,19 @@ public Response Archive(Guid reservationOrderId, Guid reservationId, Cancellatio } } + internal RequestUriBuilder CreateUnarchiveRequestUri(Guid reservationOrderId, Guid reservationId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Capacity/reservationOrders/", false); + uri.AppendPath(reservationOrderId, true); + uri.AppendPath("/reservations/", false); + uri.AppendPath(reservationId, true); + uri.AppendPath("/unarchive", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUnarchiveRequest(Guid reservationOrderId, Guid reservationId) { var message = _pipeline.CreateMessage(); @@ -543,6 +643,19 @@ public Response Unarchive(Guid reservationOrderId, Guid reservationId, Cancellat } } + internal RequestUriBuilder CreateListRevisionsRequestUri(Guid reservationOrderId, Guid reservationId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Capacity/reservationOrders/", false); + uri.AppendPath(reservationOrderId, true); + uri.AppendPath("/reservations/", false); + uri.AppendPath(reservationId, true); + uri.AppendPath("/revisions", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRevisionsRequest(Guid reservationOrderId, Guid reservationId) { var message = _pipeline.CreateMessage(); @@ -606,6 +719,39 @@ public Response ListRevisions(Guid reservationOrderId, Guid res } } + internal RequestUriBuilder CreateListAllRequestUri(string filter, string orderby, string refreshSummary, float? skiptoken, string selectedState, float? take) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Capacity/reservations", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (orderby != null) + { + uri.AppendQuery("$orderby", orderby, true); + } + if (refreshSummary != null) + { + uri.AppendQuery("refreshSummary", refreshSummary, true); + } + if (skiptoken != null) + { + uri.AppendQuery("$skiptoken", skiptoken.Value, true); + } + if (selectedState != null) + { + uri.AppendQuery("selectedState", selectedState, true); + } + if (take != null) + { + uri.AppendQuery("take", take.Value, true); + } + return uri; + } + internal HttpMessage CreateListAllRequest(string filter, string orderby, string refreshSummary, float? skiptoken, string selectedState, float? take) { var message = _pipeline.CreateMessage(); @@ -697,6 +843,14 @@ public Response ListAll(string filter = null, string ord } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, Guid reservationOrderId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, Guid reservationOrderId) { var message = _pipeline.CreateMessage(); @@ -761,6 +915,14 @@ public Response ListNextPage(string nextLink, Guid reservationO } } + internal RequestUriBuilder CreateListRevisionsNextPageRequestUri(string nextLink, Guid reservationOrderId, Guid reservationId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListRevisionsNextPageRequest(string nextLink, Guid reservationOrderId, Guid reservationId) { var message = _pipeline.CreateMessage(); @@ -827,6 +989,14 @@ public Response ListRevisionsNextPage(string nextLink, Guid res } } + internal RequestUriBuilder CreateListAllNextPageRequestUri(string nextLink, string filter, string orderby, string refreshSummary, float? skiptoken, string selectedState, float? take) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListAllNextPageRequest(string nextLink, string filter, string orderby, string refreshSummary, float? skiptoken, string selectedState, float? take) { var message = _pipeline.CreateMessage(); diff --git a/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/RestOperations/ReturnRestOperations.cs b/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/RestOperations/ReturnRestOperations.cs index 0336f7c0c0fe..c3c8aa7db09f 100644 --- a/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/RestOperations/ReturnRestOperations.cs +++ b/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/RestOperations/ReturnRestOperations.cs @@ -36,6 +36,17 @@ public ReturnRestOperations(HttpPipeline pipeline, string applicationId, Uri end _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreatePostRequestUri(Guid reservationOrderId, ReservationRefundContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Capacity/reservationOrders/", false); + uri.AppendPath(reservationOrderId, true); + uri.AppendPath("/return", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreatePostRequest(Guid reservationOrderId, ReservationRefundContent content) { var message = _pipeline.CreateMessage(); diff --git a/sdk/resourceconnector/Azure.ResourceManager.ResourceConnector/src/Generated/LongRunningOperation/ResourceConnectorArmOperation.cs b/sdk/resourceconnector/Azure.ResourceManager.ResourceConnector/src/Generated/LongRunningOperation/ResourceConnectorArmOperation.cs index 6262226762d0..4ce20abb881d 100644 --- a/sdk/resourceconnector/Azure.ResourceManager.ResourceConnector/src/Generated/LongRunningOperation/ResourceConnectorArmOperation.cs +++ b/sdk/resourceconnector/Azure.ResourceManager.ResourceConnector/src/Generated/LongRunningOperation/ResourceConnectorArmOperation.cs @@ -20,21 +20,24 @@ internal class ResourceConnectorArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of ResourceConnectorArmOperation for mocking. protected ResourceConnectorArmOperation() { } - internal ResourceConnectorArmOperation(Response response) + internal ResourceConnectorArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal ResourceConnectorArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "ResourceConnectorArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal ResourceConnectorArmOperation(ClientDiagnostics clientDiagnostics, Http public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/resourceconnector/Azure.ResourceManager.ResourceConnector/src/Generated/LongRunningOperation/ResourceConnectorArmOperationOfT.cs b/sdk/resourceconnector/Azure.ResourceManager.ResourceConnector/src/Generated/LongRunningOperation/ResourceConnectorArmOperationOfT.cs index 2ffb43497efa..4367143540c9 100644 --- a/sdk/resourceconnector/Azure.ResourceManager.ResourceConnector/src/Generated/LongRunningOperation/ResourceConnectorArmOperationOfT.cs +++ b/sdk/resourceconnector/Azure.ResourceManager.ResourceConnector/src/Generated/LongRunningOperation/ResourceConnectorArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class ResourceConnectorArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of ResourceConnectorArmOperation for mocking. protected ResourceConnectorArmOperation() { } - internal ResourceConnectorArmOperation(Response response) + internal ResourceConnectorArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal ResourceConnectorArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "ResourceConnectorArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal ResourceConnectorArmOperation(IOperationSource source, ClientDiagnos public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/resourceconnector/Azure.ResourceManager.ResourceConnector/src/Generated/Models/ResourceConnectorApplianceResource.Serialization.cs b/sdk/resourceconnector/Azure.ResourceManager.ResourceConnector/src/Generated/Models/ResourceConnectorApplianceResource.Serialization.cs new file mode 100644 index 000000000000..29482ceff3b1 --- /dev/null +++ b/sdk/resourceconnector/Azure.ResourceManager.ResourceConnector/src/Generated/Models/ResourceConnectorApplianceResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ResourceConnector +{ + public partial class ResourceConnectorApplianceResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ResourceConnectorApplianceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ResourceConnectorApplianceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/resourceconnector/Azure.ResourceManager.ResourceConnector/src/Generated/RestOperations/AppliancesRestOperations.cs b/sdk/resourceconnector/Azure.ResourceManager.ResourceConnector/src/Generated/RestOperations/AppliancesRestOperations.cs index 6f2ebc929245..f70922ff9ae5 100644 --- a/sdk/resourceconnector/Azure.ResourceManager.ResourceConnector/src/Generated/RestOperations/AppliancesRestOperations.cs +++ b/sdk/resourceconnector/Azure.ResourceManager.ResourceConnector/src/Generated/RestOperations/AppliancesRestOperations.cs @@ -37,6 +37,17 @@ public AppliancesRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ResourceConnector/appliances", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,17 @@ public Response ListBySubscription(string subscriptionId, C } } + internal RequestUriBuilder CreateGetTelemetryConfigRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ResourceConnector/telemetryconfig", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetTelemetryConfigRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -171,6 +193,19 @@ public Response GetTelemetryConfig(string subscr } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.ResourceConnector/appliances", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -244,6 +279,20 @@ public Response ListByResourceGroup(string subscriptionId, } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string resourceName) + { + 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.ResourceConnector/appliances/", false); + uri.AppendPath(resourceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); @@ -326,6 +375,20 @@ public Response Get(string subscriptionId, strin } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string resourceName, ResourceConnectorApplianceData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ResourceConnector/appliances/", false); + uri.AppendPath(resourceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string resourceName, ResourceConnectorApplianceData data) { var message = _pipeline.CreateMessage(); @@ -404,6 +467,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string resourceName) + { + 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.ResourceConnector/appliances/", false); + uri.AppendPath(resourceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); @@ -474,6 +551,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string resourceName, ResourceConnectorAppliancePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ResourceConnector/appliances/", false); + uri.AppendPath(resourceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string resourceName, ResourceConnectorAppliancePatch patch) { var message = _pipeline.CreateMessage(); @@ -560,6 +651,21 @@ public Response Update(string subscriptionId, st } } + internal RequestUriBuilder CreateListClusterUserCredentialRequestUri(string subscriptionId, string resourceGroupName, string resourceName) + { + 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.ResourceConnector/appliances/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/listClusterUserCredential", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListClusterUserCredentialRequest(string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); @@ -639,6 +745,25 @@ public Response ListClusterUserCredential( } } + internal RequestUriBuilder CreateListKeysRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string artifactType) + { + 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.ResourceConnector/appliances/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/listkeys", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (artifactType != null) + { + uri.AppendQuery("artifactType", artifactType, true); + } + return uri; + } + internal HttpMessage CreateListKeysRequest(string subscriptionId, string resourceGroupName, string resourceName, string artifactType) { var message = _pipeline.CreateMessage(); @@ -724,6 +849,22 @@ public Response ListKeys(string subscriptionId, } } + internal RequestUriBuilder CreateGetUpgradeGraphRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string upgradeGraph) + { + 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.ResourceConnector/appliances/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/upgradeGraphs/", false); + uri.AppendPath(upgradeGraph, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetUpgradeGraphRequest(string subscriptionId, string resourceGroupName, string resourceName, string upgradeGraph) { var message = _pipeline.CreateMessage(); @@ -808,6 +949,14 @@ public Response GetUpgradeGraph(string subscriptionId, st } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -876,6 +1025,14 @@ public Response ListBySubscriptionNextPage(string nextLink, } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/resourcegraph/Azure.ResourceManager.ResourceGraph/src/Generated/RestOperations/ResourceGraphRestOperations.cs b/sdk/resourcegraph/Azure.ResourceManager.ResourceGraph/src/Generated/RestOperations/ResourceGraphRestOperations.cs index 8f49b3b65b83..86b3c20bdbd3 100644 --- a/sdk/resourcegraph/Azure.ResourceManager.ResourceGraph/src/Generated/RestOperations/ResourceGraphRestOperations.cs +++ b/sdk/resourcegraph/Azure.ResourceManager.ResourceGraph/src/Generated/RestOperations/ResourceGraphRestOperations.cs @@ -37,6 +37,15 @@ public ResourceGraphRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateResourcesRequestUri(ResourceQueryContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.ResourceGraph/resources", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateResourcesRequest(ResourceQueryContent content) { var message = _pipeline.CreateMessage(); @@ -104,6 +113,15 @@ public Response Resources(ResourceQueryContent content, Can } } + internal RequestUriBuilder CreateResourcesHistoryRequestUri(ResourcesHistoryContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.ResourceGraph/resourcesHistory", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateResourcesHistoryRequest(ResourcesHistoryContent content) { var message = _pipeline.CreateMessage(); diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/ResourceHealthEventImpactedResource.Serialization.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/ResourceHealthEventImpactedResource.Serialization.cs new file mode 100644 index 000000000000..c27f1568e8cd --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/ResourceHealthEventImpactedResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ResourceHealth +{ + public partial class ResourceHealthEventImpactedResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ResourceHealthEventImpactedResourceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ResourceHealthEventImpactedResourceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/ResourceHealthEventResource.Serialization.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/ResourceHealthEventResource.Serialization.cs new file mode 100644 index 000000000000..128b7e4397c4 --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/ResourceHealthEventResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ResourceHealth +{ + public partial class ResourceHealthEventResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ResourceHealthEventData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ResourceHealthEventData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/ResourceHealthMetadataEntityResource.Serialization.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/ResourceHealthMetadataEntityResource.Serialization.cs new file mode 100644 index 000000000000..fe05f0ec1061 --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/ResourceHealthMetadataEntityResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ResourceHealth +{ + public partial class ResourceHealthMetadataEntityResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ResourceHealthMetadataEntityData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ResourceHealthMetadataEntityData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/ServiceEmergingIssueResource.Serialization.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/ServiceEmergingIssueResource.Serialization.cs new file mode 100644 index 000000000000..909e33ff74c3 --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/ServiceEmergingIssueResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ResourceHealth +{ + public partial class ServiceEmergingIssueResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ServiceEmergingIssueData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ServiceEmergingIssueData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/TenantResourceHealthEventImpactedResource.Serialization.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/TenantResourceHealthEventImpactedResource.Serialization.cs new file mode 100644 index 000000000000..8932bb088726 --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/TenantResourceHealthEventImpactedResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ResourceHealth +{ + public partial class TenantResourceHealthEventImpactedResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ResourceHealthEventImpactedResourceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ResourceHealthEventImpactedResourceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/TenantResourceHealthEventResource.Serialization.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/TenantResourceHealthEventResource.Serialization.cs new file mode 100644 index 000000000000..33b9bc82c639 --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/TenantResourceHealthEventResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ResourceHealth +{ + public partial class TenantResourceHealthEventResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ResourceHealthEventData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ResourceHealthEventData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/RestOperations/AvailabilityStatusesRestOperations.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/RestOperations/AvailabilityStatusesRestOperations.cs index 15fe93f357c8..6d1398afd6bf 100644 --- a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/RestOperations/AvailabilityStatusesRestOperations.cs +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/RestOperations/AvailabilityStatusesRestOperations.cs @@ -37,6 +37,25 @@ public AvailabilityStatusesRestOperations(HttpPipeline pipeline, string applicat _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListBySubscriptionIdRequestUri(string subscriptionId, string filter, string expand) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ResourceHealth/availabilityStatuses", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + return uri; + } + internal HttpMessage CreateListBySubscriptionIdRequest(string subscriptionId, string filter, string expand) { var message = _pipeline.CreateMessage(); @@ -116,6 +135,27 @@ public Response ListBySubscriptionId } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName, string filter, string expand) + { + 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.ResourceHealth/availabilityStatuses", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName, string filter, string expand) { var message = _pipeline.CreateMessage(); @@ -201,6 +241,25 @@ public Response ListByResourceGroup( } } + internal RequestUriBuilder CreateGetByResourceRequestUri(string resourceUri, string filter, string expand) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceUri, false); + uri.AppendPath("/providers/Microsoft.ResourceHealth/availabilityStatuses/current", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + return uri; + } + internal HttpMessage CreateGetByResourceRequest(string resourceUri, string filter, string expand) { var message = _pipeline.CreateMessage(); @@ -278,6 +337,25 @@ public Response GetByResource(string resourceU } } + internal RequestUriBuilder CreateListRequestUri(string resourceUri, string filter, string expand) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceUri, false); + uri.AppendPath("/providers/Microsoft.ResourceHealth/availabilityStatuses", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string resourceUri, string filter, string expand) { var message = _pipeline.CreateMessage(); @@ -355,6 +433,14 @@ public Response List(string resource } } + internal RequestUriBuilder CreateListBySubscriptionIdNextPageRequestUri(string nextLink, string subscriptionId, string filter, string expand) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionIdNextPageRequest(string nextLink, string subscriptionId, string filter, string expand) { var message = _pipeline.CreateMessage(); @@ -427,6 +513,14 @@ public Response ListBySubscriptionId } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string filter, string expand) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string filter, string expand) { var message = _pipeline.CreateMessage(); @@ -503,6 +597,14 @@ public Response ListByResourceGroupN } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string resourceUri, string filter, string expand) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string resourceUri, string filter, string expand) { var message = _pipeline.CreateMessage(); diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/RestOperations/ChildAvailabilityStatusesRestOperations.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/RestOperations/ChildAvailabilityStatusesRestOperations.cs index 4025516c9835..5804a801540b 100644 --- a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/RestOperations/ChildAvailabilityStatusesRestOperations.cs +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/RestOperations/ChildAvailabilityStatusesRestOperations.cs @@ -37,6 +37,25 @@ public ChildAvailabilityStatusesRestOperations(HttpPipeline pipeline, string app _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetByResourceRequestUri(string resourceUri, string filter, string expand) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceUri, false); + uri.AppendPath("/providers/Microsoft.ResourceHealth/childAvailabilityStatuses/current", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + return uri; + } + internal HttpMessage CreateGetByResourceRequest(string resourceUri, string filter, string expand) { var message = _pipeline.CreateMessage(); @@ -114,6 +133,25 @@ public Response GetByResource(string resourceU } } + internal RequestUriBuilder CreateListRequestUri(string resourceUri, string filter, string expand) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceUri, false); + uri.AppendPath("/providers/Microsoft.ResourceHealth/childAvailabilityStatuses", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string resourceUri, string filter, string expand) { var message = _pipeline.CreateMessage(); @@ -191,6 +229,14 @@ public Response List(string resource } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string resourceUri, string filter, string expand) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string resourceUri, string filter, string expand) { var message = _pipeline.CreateMessage(); diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/RestOperations/ChildResourcesRestOperations.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/RestOperations/ChildResourcesRestOperations.cs index 40e69caba2ea..0255616e7616 100644 --- a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/RestOperations/ChildResourcesRestOperations.cs +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/RestOperations/ChildResourcesRestOperations.cs @@ -37,6 +37,25 @@ public ChildResourcesRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string resourceUri, string filter, string expand) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceUri, false); + uri.AppendPath("/providers/Microsoft.ResourceHealth/childResources", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string resourceUri, string filter, string expand) { var message = _pipeline.CreateMessage(); @@ -114,6 +133,14 @@ public Response List(string resource } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string resourceUri, string filter, string expand) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string resourceUri, string filter, string expand) { var message = _pipeline.CreateMessage(); diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/RestOperations/EmergingIssuesRestOperations.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/RestOperations/EmergingIssuesRestOperations.cs index 218b088411ec..e895afb038c6 100644 --- a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/RestOperations/EmergingIssuesRestOperations.cs +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/RestOperations/EmergingIssuesRestOperations.cs @@ -37,6 +37,15 @@ public EmergingIssuesRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri() + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.ResourceHealth/emergingIssues", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest() { var message = _pipeline.CreateMessage(); @@ -92,6 +101,16 @@ public Response List(CancellationToken cancellationToke } } + internal RequestUriBuilder CreateGetRequestUri(EmergingIssueNameContent issueName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.ResourceHealth/emergingIssues/", false); + uri.AppendPath(issueName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(EmergingIssueNameContent issueName) { var message = _pipeline.CreateMessage(); @@ -154,6 +173,14 @@ public Response Get(EmergingIssueNameContent issueName } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink) { var message = _pipeline.CreateMessage(); diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/RestOperations/EventRestOperations.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/RestOperations/EventRestOperations.cs index fb39c828d20c..804132804cbd 100644 --- a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/RestOperations/EventRestOperations.cs +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/RestOperations/EventRestOperations.cs @@ -36,6 +36,26 @@ public EventRestOperations(HttpPipeline pipeline, string applicationId, Uri endp _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetBySubscriptionIdAndTrackingIdRequestUri(string subscriptionId, string eventTrackingId, string filter, string queryStartTime) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ResourceHealth/events/", false); + uri.AppendPath(eventTrackingId, true); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (queryStartTime != null) + { + uri.AppendQuery("queryStartTime", queryStartTime, true); + } + return uri; + } + internal HttpMessage CreateGetBySubscriptionIdAndTrackingIdRequest(string subscriptionId, string eventTrackingId, string filter, string queryStartTime) { var message = _pipeline.CreateMessage(); @@ -124,6 +144,19 @@ public Response GetBySubscriptionIdAndTrackingId(string } } + internal RequestUriBuilder CreateFetchDetailsBySubscriptionIdAndTrackingIdRequestUri(string subscriptionId, string eventTrackingId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ResourceHealth/events/", false); + uri.AppendPath(eventTrackingId, true); + uri.AppendPath("/fetchEventDetails", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateFetchDetailsBySubscriptionIdAndTrackingIdRequest(string subscriptionId, string eventTrackingId) { var message = _pipeline.CreateMessage(); @@ -197,6 +230,24 @@ public Response FetchDetailsBySubscriptionIdAndTracking } } + internal RequestUriBuilder CreateGetByTenantIdAndTrackingIdRequestUri(string eventTrackingId, string filter, string queryStartTime) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.ResourceHealth/events/", false); + uri.AppendPath(eventTrackingId, true); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (queryStartTime != null) + { + uri.AppendQuery("queryStartTime", queryStartTime, true); + } + return uri; + } + internal HttpMessage CreateGetByTenantIdAndTrackingIdRequest(string eventTrackingId, string filter, string queryStartTime) { var message = _pipeline.CreateMessage(); @@ -279,6 +330,17 @@ public Response GetByTenantIdAndTrackingId(string event } } + internal RequestUriBuilder CreateFetchDetailsByTenantIdAndTrackingIdRequestUri(string eventTrackingId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.ResourceHealth/events/", false); + uri.AppendPath(eventTrackingId, true); + uri.AppendPath("/fetchEventDetails", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateFetchDetailsByTenantIdAndTrackingIdRequest(string eventTrackingId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/RestOperations/EventsRestOperations.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/RestOperations/EventsRestOperations.cs index a21d358278b0..2906fcbf3604 100644 --- a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/RestOperations/EventsRestOperations.cs +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/RestOperations/EventsRestOperations.cs @@ -37,6 +37,25 @@ public EventsRestOperations(HttpPipeline pipeline, string applicationId, Uri end _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListBySubscriptionIdRequestUri(string subscriptionId, string filter, string queryStartTime) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ResourceHealth/events", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (queryStartTime != null) + { + uri.AppendQuery("queryStartTime", queryStartTime, true); + } + return uri; + } + internal HttpMessage CreateListBySubscriptionIdRequest(string subscriptionId, string filter, string queryStartTime) { var message = _pipeline.CreateMessage(); @@ -116,6 +135,23 @@ public Response ListBySubscriptionId(string subsc } } + internal RequestUriBuilder CreateListByTenantIdRequestUri(string filter, string queryStartTime) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.ResourceHealth/events", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (queryStartTime != null) + { + uri.AppendQuery("queryStartTime", queryStartTime, true); + } + return uri; + } + internal HttpMessage CreateListByTenantIdRequest(string filter, string queryStartTime) { var message = _pipeline.CreateMessage(); @@ -183,6 +219,21 @@ public Response ListByTenantId(string filter = nu } } + internal RequestUriBuilder CreateListBySingleResourceRequestUri(string resourceUri, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceUri, false); + uri.AppendPath("/providers/Microsoft.ResourceHealth/events", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + return uri; + } + internal HttpMessage CreateListBySingleResourceRequest(string resourceUri, string filter) { var message = _pipeline.CreateMessage(); @@ -254,6 +305,14 @@ public Response ListBySingleResource(string resou } } + internal RequestUriBuilder CreateListBySubscriptionIdNextPageRequestUri(string nextLink, string subscriptionId, string filter, string queryStartTime) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionIdNextPageRequest(string nextLink, string subscriptionId, string filter, string queryStartTime) { var message = _pipeline.CreateMessage(); @@ -326,6 +385,14 @@ public Response ListBySubscriptionIdNextPage(stri } } + internal RequestUriBuilder CreateListByTenantIdNextPageRequestUri(string nextLink, string filter, string queryStartTime) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByTenantIdNextPageRequest(string nextLink, string filter, string queryStartTime) { var message = _pipeline.CreateMessage(); @@ -392,6 +459,14 @@ public Response ListByTenantIdNextPage(string nex } } + internal RequestUriBuilder CreateListBySingleResourceNextPageRequestUri(string nextLink, string resourceUri, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySingleResourceNextPageRequest(string nextLink, string resourceUri, string filter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/RestOperations/ImpactedResourcesRestOperations.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/RestOperations/ImpactedResourcesRestOperations.cs index af689095e862..c4f32da30fcd 100644 --- a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/RestOperations/ImpactedResourcesRestOperations.cs +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/RestOperations/ImpactedResourcesRestOperations.cs @@ -37,6 +37,23 @@ public ImpactedResourcesRestOperations(HttpPipeline pipeline, string application _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListBySubscriptionIdAndEventIdRequestUri(string subscriptionId, string eventTrackingId, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ResourceHealth/events/", false); + uri.AppendPath(eventTrackingId, true); + uri.AppendPath("/impactedResources", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + return uri; + } + internal HttpMessage CreateListBySubscriptionIdAndEventIdRequest(string subscriptionId, string eventTrackingId, string filter) { var message = _pipeline.CreateMessage(); @@ -116,6 +133,20 @@ public Response ListBySubscriptionIdAndEventId( } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string eventTrackingId, string impactedResourceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ResourceHealth/events/", false); + uri.AppendPath(eventTrackingId, true); + uri.AppendPath("/impactedResources/", false); + uri.AppendPath(impactedResourceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string eventTrackingId, string impactedResourceName) { var message = _pipeline.CreateMessage(); @@ -198,6 +229,21 @@ public Response Get(string subscription } } + internal RequestUriBuilder CreateListByTenantIdAndEventIdRequestUri(string eventTrackingId, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.ResourceHealth/events/", false); + uri.AppendPath(eventTrackingId, true); + uri.AppendPath("/impactedResources", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + return uri; + } + internal HttpMessage CreateListByTenantIdAndEventIdRequest(string eventTrackingId, string filter) { var message = _pipeline.CreateMessage(); @@ -271,6 +317,18 @@ public Response ListByTenantIdAndEventId(string } } + internal RequestUriBuilder CreateGetByTenantIdRequestUri(string eventTrackingId, string impactedResourceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.ResourceHealth/events/", false); + uri.AppendPath(eventTrackingId, true); + uri.AppendPath("/impactedResources/", false); + uri.AppendPath(impactedResourceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetByTenantIdRequest(string eventTrackingId, string impactedResourceName) { var message = _pipeline.CreateMessage(); @@ -347,6 +405,14 @@ public Response GetByTenantId(string ev } } + internal RequestUriBuilder CreateListBySubscriptionIdAndEventIdNextPageRequestUri(string nextLink, string subscriptionId, string eventTrackingId, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionIdAndEventIdNextPageRequest(string nextLink, string subscriptionId, string eventTrackingId, string filter) { var message = _pipeline.CreateMessage(); @@ -421,6 +487,14 @@ public Response ListBySubscriptionIdAndEventIdN } } + internal RequestUriBuilder CreateListByTenantIdAndEventIdNextPageRequestUri(string nextLink, string eventTrackingId, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByTenantIdAndEventIdNextPageRequest(string nextLink, string eventTrackingId, string filter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/RestOperations/MetadataRestOperations.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/RestOperations/MetadataRestOperations.cs index b1f45f76fa22..38855969a295 100644 --- a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/RestOperations/MetadataRestOperations.cs +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/RestOperations/MetadataRestOperations.cs @@ -37,6 +37,15 @@ public MetadataRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri() + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.ResourceHealth/metadata", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest() { var message = _pipeline.CreateMessage(); @@ -92,6 +101,16 @@ public Response List(CancellationToken cancellationTok } } + internal RequestUriBuilder CreateGetEntityRequestUri(string name) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.ResourceHealth/metadata/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetEntityRequest(string name) { var message = _pipeline.CreateMessage(); @@ -162,6 +181,14 @@ public Response GetEntity(string name, Cancell } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink) { var message = _pipeline.CreateMessage(); diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/RestOperations/SecurityAdvisoryImpactedResourcesRestOperations.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/RestOperations/SecurityAdvisoryImpactedResourcesRestOperations.cs index e3176d4b0c94..ba9db5e69c9d 100644 --- a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/RestOperations/SecurityAdvisoryImpactedResourcesRestOperations.cs +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/RestOperations/SecurityAdvisoryImpactedResourcesRestOperations.cs @@ -37,6 +37,23 @@ public SecurityAdvisoryImpactedResourcesRestOperations(HttpPipeline pipeline, st _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListBySubscriptionIdAndEventIdRequestUri(string subscriptionId, string eventTrackingId, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ResourceHealth/events/", false); + uri.AppendPath(eventTrackingId, true); + uri.AppendPath("/listSecurityAdvisoryImpactedResources", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + return uri; + } + internal HttpMessage CreateListBySubscriptionIdAndEventIdRequest(string subscriptionId, string eventTrackingId, string filter) { var message = _pipeline.CreateMessage(); @@ -116,6 +133,21 @@ public Response ListBySubscriptionIdAndEventId( } } + internal RequestUriBuilder CreateListByTenantIdAndEventIdRequestUri(string eventTrackingId, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.ResourceHealth/events/", false); + uri.AppendPath(eventTrackingId, true); + uri.AppendPath("/listSecurityAdvisoryImpactedResources", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + return uri; + } + internal HttpMessage CreateListByTenantIdAndEventIdRequest(string eventTrackingId, string filter) { var message = _pipeline.CreateMessage(); @@ -189,6 +221,14 @@ public Response ListByTenantIdAndEventId(string } } + internal RequestUriBuilder CreateListBySubscriptionIdAndEventIdNextPageRequestUri(string nextLink, string subscriptionId, string eventTrackingId, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionIdAndEventIdNextPageRequest(string nextLink, string subscriptionId, string eventTrackingId, string filter) { var message = _pipeline.CreateMessage(); @@ -263,6 +303,14 @@ public Response ListBySubscriptionIdAndEventIdN } } + internal RequestUriBuilder CreateListByTenantIdAndEventIdNextPageRequestUri(string nextLink, string eventTrackingId, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByTenantIdAndEventIdNextPageRequest(string nextLink, string eventTrackingId, string filter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/LongRunningOperation/ManagementGroupsArmOperation.cs b/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/LongRunningOperation/ManagementGroupsArmOperation.cs index 848e3c967d25..5361bd30de2d 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/LongRunningOperation/ManagementGroupsArmOperation.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/LongRunningOperation/ManagementGroupsArmOperation.cs @@ -20,21 +20,24 @@ internal class ManagementGroupsArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of ManagementGroupsArmOperation for mocking. protected ManagementGroupsArmOperation() { } - internal ManagementGroupsArmOperation(Response response) + internal ManagementGroupsArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal ManagementGroupsArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "ManagementGroupsArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal ManagementGroupsArmOperation(ClientDiagnostics clientDiagnostics, HttpP public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/LongRunningOperation/ManagementGroupsArmOperationOfT.cs b/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/LongRunningOperation/ManagementGroupsArmOperationOfT.cs index eecfcbe9d90c..10c41933e3c8 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/LongRunningOperation/ManagementGroupsArmOperationOfT.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/LongRunningOperation/ManagementGroupsArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class ManagementGroupsArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of ManagementGroupsArmOperation for mocking. protected ManagementGroupsArmOperation() { } - internal ManagementGroupsArmOperation(Response response) + internal ManagementGroupsArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal ManagementGroupsArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "ManagementGroupsArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal ManagementGroupsArmOperation(IOperationSource source, ClientDiagnost public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/Models/ManagementGroupResource.Serialization.cs b/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/Models/ManagementGroupResource.Serialization.cs new file mode 100644 index 000000000000..584afa1aa8d0 --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/Models/ManagementGroupResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ManagementGroups +{ + public partial class ManagementGroupResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ManagementGroupData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ManagementGroupData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/RestOperations/EntitiesRestOperations.cs b/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/RestOperations/EntitiesRestOperations.cs index 4bedd887f4aa..b2a3ddf81419 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/RestOperations/EntitiesRestOperations.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/RestOperations/EntitiesRestOperations.cs @@ -37,6 +37,47 @@ public EntitiesRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string skipToken, int? skip, int? top, string select, EntitySearchOption? search, string filter, EntityViewOption? view, string groupName, string cacheControl) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Management/getEntities", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (skipToken != null) + { + uri.AppendQuery("$skiptoken", skipToken, true); + } + if (skip != null) + { + uri.AppendQuery("$skip", skip.Value, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (select != null) + { + uri.AppendQuery("$select", select, true); + } + if (search != null) + { + uri.AppendQuery("$search", search.Value.ToString(), true); + } + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (view != null) + { + uri.AppendQuery("$view", view.Value.ToString(), true); + } + if (groupName != null) + { + uri.AppendQuery("groupName", groupName, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string skipToken, int? skip, int? top, string select, EntitySearchOption? search, string filter, EntityViewOption? view, string groupName, string cacheControl) { var message = _pipeline.CreateMessage(); @@ -174,6 +215,14 @@ public Response List(string skipToken = null, int? skip = null } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string skipToken, int? skip, int? top, string select, EntitySearchOption? search, string filter, EntityViewOption? view, string groupName, string cacheControl) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string skipToken, int? skip, int? top, string select, EntitySearchOption? search, string filter, EntityViewOption? view, string groupName, string cacheControl) { var message = _pipeline.CreateMessage(); diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/RestOperations/ManagementGroupsRestOperations.cs b/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/RestOperations/ManagementGroupsRestOperations.cs index 05828d533e8a..385198a1a9c3 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/RestOperations/ManagementGroupsRestOperations.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/RestOperations/ManagementGroupsRestOperations.cs @@ -37,6 +37,19 @@ public ManagementGroupsRestOperations(HttpPipeline pipeline, string applicationI _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string cacheControl, string skipToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Management/managementGroups", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (skipToken != null) + { + uri.AppendQuery("$skiptoken", skipToken, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string cacheControl, string skipToken) { var message = _pipeline.CreateMessage(); @@ -118,6 +131,28 @@ public Response List(string cacheControl = null, stri } } + internal RequestUriBuilder CreateGetRequestUri(string groupId, ManagementGroupExpandType? expand, bool? recurse, string filter, string cacheControl) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Management/managementGroups/", false); + uri.AppendPath(groupId, true); + uri.AppendQuery("api-version", _apiVersion, true); + if (expand != null) + { + uri.AppendQuery("$expand", expand.Value.ToString(), true); + } + if (recurse != null) + { + uri.AppendQuery("$recurse", recurse.Value, true); + } + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + return uri; + } + internal HttpMessage CreateGetRequest(string groupId, ManagementGroupExpandType? expand, bool? recurse, string filter, string cacheControl) { var message = _pipeline.CreateMessage(); @@ -218,6 +253,16 @@ public Response Get(string groupId, ManagementGroupExpandTy } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string groupId, ManagementGroupCreateOrUpdateContent content, string cacheControl) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Management/managementGroups/", false); + uri.AppendPath(groupId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string groupId, ManagementGroupCreateOrUpdateContent content, string cacheControl) { var message = _pipeline.CreateMessage(); @@ -298,6 +343,16 @@ public Response CreateOrUpdate(string groupId, ManagementGroupCreateOrUpdateCont } } + internal RequestUriBuilder CreateUpdateRequestUri(string groupId, ManagementGroupPatch patch, string cacheControl) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Management/managementGroups/", false); + uri.AppendPath(groupId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string groupId, ManagementGroupPatch patch, string cacheControl) { var message = _pipeline.CreateMessage(); @@ -384,6 +439,16 @@ public Response Update(string groupId, ManagementGroupPatch } } + internal RequestUriBuilder CreateDeleteRequestUri(string groupId, string cacheControl) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Management/managementGroups/", false); + uri.AppendPath(groupId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string groupId, string cacheControl) { var message = _pipeline.CreateMessage(); @@ -456,6 +521,25 @@ public Response Delete(string groupId, string cacheControl = null, CancellationT } } + internal RequestUriBuilder CreateGetDescendantsRequestUri(string groupId, string skipToken, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Management/managementGroups/", false); + uri.AppendPath(groupId, true); + uri.AppendPath("/descendants", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (skipToken != null) + { + uri.AppendQuery("$skiptoken", skipToken, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + return uri; + } + internal HttpMessage CreateGetDescendantsRequest(string groupId, string skipToken, int? top) { var message = _pipeline.CreateMessage(); @@ -549,6 +633,15 @@ public Response GetDescendants(string groupId, string skip } } + internal RequestUriBuilder CreateCheckNameAvailabilityRequestUri(ManagementGroupNameAvailabilityContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Management/checkNameAvailability", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCheckNameAvailabilityRequest(ManagementGroupNameAvailabilityContent content) { var message = _pipeline.CreateMessage(); @@ -616,6 +709,14 @@ public Response CheckNameAvailability(Man } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string cacheControl, string skipToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string cacheControl, string skipToken) { var message = _pipeline.CreateMessage(); @@ -700,6 +801,14 @@ public Response ListNextPage(string nextLink, string } } + internal RequestUriBuilder CreateGetDescendantsNextPageRequestUri(string nextLink, string groupId, string skipToken, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateGetDescendantsNextPageRequest(string nextLink, string groupId, string skipToken, int? top) { var message = _pipeline.CreateMessage(); diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/LongRunningOperation/ResourcesArmOperation.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/LongRunningOperation/ResourcesArmOperation.cs index 58dc4748d64d..c565da0edb18 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/LongRunningOperation/ResourcesArmOperation.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/LongRunningOperation/ResourcesArmOperation.cs @@ -20,21 +20,24 @@ internal class ResourcesArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of ResourcesArmOperation for mocking. protected ResourcesArmOperation() { } - internal ResourcesArmOperation(Response response) + internal ResourcesArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal ResourcesArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "ResourcesArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal ResourcesArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/LongRunningOperation/ResourcesArmOperationOfT.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/LongRunningOperation/ResourcesArmOperationOfT.cs index 998e71e76218..4bcc6ba3e9af 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/LongRunningOperation/ResourcesArmOperationOfT.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/LongRunningOperation/ResourcesArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class ResourcesArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of ResourcesArmOperation for mocking. protected ResourcesArmOperation() { } - internal ResourcesArmOperation(Response response) + internal ResourcesArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal ResourcesArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "ResourcesArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal ResourcesArmOperation(IOperationSource source, ClientDiagnostics cli public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/ManagementGroupPolicyDefinitionCollection.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/ManagementGroupPolicyDefinitionCollection.cs index 0cc6f4a26c9f..7224edab2063 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/ManagementGroupPolicyDefinitionCollection.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/ManagementGroupPolicyDefinitionCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> try { var response = await _managementGroupPolicyDefinitionPolicyDefinitionsRestClient.CreateOrUpdateAtManagementGroupAsync(Id.Name, policyDefinitionName, data, cancellationToken).ConfigureAwait(false); - var operation = new ResourcesArmOperation(Response.FromValue(new ManagementGroupPolicyDefinitionResource(Client, response), response.GetRawResponse())); + var uri = _managementGroupPolicyDefinitionPolicyDefinitionsRestClient.CreateCreateOrUpdateAtManagementGroupRequestUri(Id.Name, policyDefinitionName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ResourcesArmOperation(Response.FromValue(new ManagementGroupPolicyDefinitionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -140,7 +142,9 @@ public virtual ArmOperation CreateOrUpd try { var response = _managementGroupPolicyDefinitionPolicyDefinitionsRestClient.CreateOrUpdateAtManagementGroup(Id.Name, policyDefinitionName, data, cancellationToken); - var operation = new ResourcesArmOperation(Response.FromValue(new ManagementGroupPolicyDefinitionResource(Client, response), response.GetRawResponse())); + var uri = _managementGroupPolicyDefinitionPolicyDefinitionsRestClient.CreateCreateOrUpdateAtManagementGroupRequestUri(Id.Name, policyDefinitionName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ResourcesArmOperation(Response.FromValue(new ManagementGroupPolicyDefinitionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/ManagementGroupPolicyDefinitionResource.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/ManagementGroupPolicyDefinitionResource.cs index 026fdc897ee5..bac8898104bb 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/ManagementGroupPolicyDefinitionResource.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/ManagementGroupPolicyDefinitionResource.cs @@ -199,7 +199,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _managementGroupPolicyDefinitionPolicyDefinitionsRestClient.DeleteAtManagementGroupAsync(Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new ResourcesArmOperation(response); + var uri = _managementGroupPolicyDefinitionPolicyDefinitionsRestClient.CreateDeleteAtManagementGroupRequestUri(Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ResourcesArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -241,7 +243,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _managementGroupPolicyDefinitionPolicyDefinitionsRestClient.DeleteAtManagementGroup(Id.Parent.Name, Id.Name, cancellationToken); - var operation = new ResourcesArmOperation(response); + var uri = _managementGroupPolicyDefinitionPolicyDefinitionsRestClient.CreateDeleteAtManagementGroupRequestUri(Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ResourcesArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -287,7 +291,9 @@ public virtual async Task> try { var response = await _managementGroupPolicyDefinitionPolicyDefinitionsRestClient.CreateOrUpdateAtManagementGroupAsync(Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new ResourcesArmOperation(Response.FromValue(new ManagementGroupPolicyDefinitionResource(Client, response), response.GetRawResponse())); + var uri = _managementGroupPolicyDefinitionPolicyDefinitionsRestClient.CreateCreateOrUpdateAtManagementGroupRequestUri(Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ResourcesArmOperation(Response.FromValue(new ManagementGroupPolicyDefinitionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -333,7 +339,9 @@ public virtual ArmOperation Update(Wait try { var response = _managementGroupPolicyDefinitionPolicyDefinitionsRestClient.CreateOrUpdateAtManagementGroup(Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new ResourcesArmOperation(Response.FromValue(new ManagementGroupPolicyDefinitionResource(Client, response), response.GetRawResponse())); + var uri = _managementGroupPolicyDefinitionPolicyDefinitionsRestClient.CreateCreateOrUpdateAtManagementGroupRequestUri(Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ResourcesArmOperation(Response.FromValue(new ManagementGroupPolicyDefinitionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/ManagementGroupPolicySetDefinitionCollection.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/ManagementGroupPolicySetDefinitionCollection.cs index f3b3e20b63a2..baf09dc43a90 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/ManagementGroupPolicySetDefinitionCollection.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/ManagementGroupPolicySetDefinitionCollection.cs @@ -91,7 +91,9 @@ public virtual async Task(Response.FromValue(new ManagementGroupPolicySetDefinitionResource(Client, response), response.GetRawResponse())); + var uri = _managementGroupPolicySetDefinitionPolicySetDefinitionsRestClient.CreateCreateOrUpdateAtManagementGroupRequestUri(Id.Name, policySetDefinitionName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ResourcesArmOperation(Response.FromValue(new ManagementGroupPolicySetDefinitionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -140,7 +142,9 @@ public virtual ArmOperation CreateOr try { var response = _managementGroupPolicySetDefinitionPolicySetDefinitionsRestClient.CreateOrUpdateAtManagementGroup(Id.Name, policySetDefinitionName, data, cancellationToken); - var operation = new ResourcesArmOperation(Response.FromValue(new ManagementGroupPolicySetDefinitionResource(Client, response), response.GetRawResponse())); + var uri = _managementGroupPolicySetDefinitionPolicySetDefinitionsRestClient.CreateCreateOrUpdateAtManagementGroupRequestUri(Id.Name, policySetDefinitionName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ResourcesArmOperation(Response.FromValue(new ManagementGroupPolicySetDefinitionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/ManagementGroupPolicySetDefinitionResource.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/ManagementGroupPolicySetDefinitionResource.cs index 5a1c1f25d0c9..b0261e291b79 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/ManagementGroupPolicySetDefinitionResource.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/ManagementGroupPolicySetDefinitionResource.cs @@ -199,7 +199,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _managementGroupPolicySetDefinitionPolicySetDefinitionsRestClient.DeleteAtManagementGroupAsync(Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new ResourcesArmOperation(response); + var uri = _managementGroupPolicySetDefinitionPolicySetDefinitionsRestClient.CreateDeleteAtManagementGroupRequestUri(Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ResourcesArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -241,7 +243,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _managementGroupPolicySetDefinitionPolicySetDefinitionsRestClient.DeleteAtManagementGroup(Id.Parent.Name, Id.Name, cancellationToken); - var operation = new ResourcesArmOperation(response); + var uri = _managementGroupPolicySetDefinitionPolicySetDefinitionsRestClient.CreateDeleteAtManagementGroupRequestUri(Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ResourcesArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -287,7 +291,9 @@ public virtual async Task(Response.FromValue(new ManagementGroupPolicySetDefinitionResource(Client, response), response.GetRawResponse())); + var uri = _managementGroupPolicySetDefinitionPolicySetDefinitionsRestClient.CreateCreateOrUpdateAtManagementGroupRequestUri(Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ResourcesArmOperation(Response.FromValue(new ManagementGroupPolicySetDefinitionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -333,7 +339,9 @@ public virtual ArmOperation Update(W try { var response = _managementGroupPolicySetDefinitionPolicySetDefinitionsRestClient.CreateOrUpdateAtManagementGroup(Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new ResourcesArmOperation(Response.FromValue(new ManagementGroupPolicySetDefinitionResource(Client, response), response.GetRawResponse())); + var uri = _managementGroupPolicySetDefinitionPolicySetDefinitionsRestClient.CreateCreateOrUpdateAtManagementGroupRequestUri(Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ResourcesArmOperation(Response.FromValue(new ManagementGroupPolicySetDefinitionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/ManagementLockCollection.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/ManagementLockCollection.cs index c678a56e9f67..5ea69982f0f2 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/ManagementLockCollection.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/ManagementLockCollection.cs @@ -80,7 +80,9 @@ public virtual async Task> CreateOrUpdateAs try { var response = await _managementLockRestClient.CreateOrUpdateByScopeAsync(Id, lockName, data, cancellationToken).ConfigureAwait(false); - var operation = new ResourcesArmOperation(Response.FromValue(new ManagementLockResource(Client, response), response.GetRawResponse())); + var uri = _managementLockRestClient.CreateCreateOrUpdateByScopeRequestUri(Id, lockName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ResourcesArmOperation(Response.FromValue(new ManagementLockResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -129,7 +131,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wai try { var response = _managementLockRestClient.CreateOrUpdateByScope(Id, lockName, data, cancellationToken); - var operation = new ResourcesArmOperation(Response.FromValue(new ManagementLockResource(Client, response), response.GetRawResponse())); + var uri = _managementLockRestClient.CreateCreateOrUpdateByScopeRequestUri(Id, lockName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ResourcesArmOperation(Response.FromValue(new ManagementLockResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/ManagementLockResource.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/ManagementLockResource.cs index 80c32c73b74a..55378b5870df 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/ManagementLockResource.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/ManagementLockResource.cs @@ -198,7 +198,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _managementLockRestClient.DeleteByScopeAsync(Id.Parent, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new ResourcesArmOperation(response); + var uri = _managementLockRestClient.CreateDeleteByScopeRequestUri(Id.Parent, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ResourcesArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -240,7 +242,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _managementLockRestClient.DeleteByScope(Id.Parent, Id.Name, cancellationToken); - var operation = new ResourcesArmOperation(response); + var uri = _managementLockRestClient.CreateDeleteByScopeRequestUri(Id.Parent, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ResourcesArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -286,7 +290,9 @@ public virtual async Task> UpdateAsync(Wait try { var response = await _managementLockRestClient.CreateOrUpdateByScopeAsync(Id.Parent, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new ResourcesArmOperation(Response.FromValue(new ManagementLockResource(Client, response), response.GetRawResponse())); + var uri = _managementLockRestClient.CreateCreateOrUpdateByScopeRequestUri(Id.Parent, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ResourcesArmOperation(Response.FromValue(new ManagementLockResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -332,7 +338,9 @@ public virtual ArmOperation Update(WaitUntil waitUntil, try { var response = _managementLockRestClient.CreateOrUpdateByScope(Id.Parent, Id.Name, data, cancellationToken); - var operation = new ResourcesArmOperation(Response.FromValue(new ManagementLockResource(Client, response), response.GetRawResponse())); + var uri = _managementLockRestClient.CreateCreateOrUpdateByScopeRequestUri(Id.Parent, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ResourcesArmOperation(Response.FromValue(new ManagementLockResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/DataPolicyManifestResource.Serialization.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/DataPolicyManifestResource.Serialization.cs new file mode 100644 index 000000000000..803ee0bf66a1 --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/DataPolicyManifestResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Resources +{ + public partial class DataPolicyManifestResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DataPolicyManifestData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DataPolicyManifestData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/FeatureResource.Serialization.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/FeatureResource.Serialization.cs new file mode 100644 index 000000000000..1ac38f081e9d --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/FeatureResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Resources +{ + public partial class FeatureResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + FeatureData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + FeatureData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ManagementGroupPolicyDefinitionResource.Serialization.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ManagementGroupPolicyDefinitionResource.Serialization.cs new file mode 100644 index 000000000000..5bf48396fc7e --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ManagementGroupPolicyDefinitionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Resources +{ + public partial class ManagementGroupPolicyDefinitionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + PolicyDefinitionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + PolicyDefinitionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ManagementGroupPolicySetDefinitionResource.Serialization.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ManagementGroupPolicySetDefinitionResource.Serialization.cs new file mode 100644 index 000000000000..94d8a86c62ee --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ManagementGroupPolicySetDefinitionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Resources +{ + public partial class ManagementGroupPolicySetDefinitionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + PolicySetDefinitionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + PolicySetDefinitionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ManagementLockResource.Serialization.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ManagementLockResource.Serialization.cs new file mode 100644 index 000000000000..c63c2484f6a5 --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ManagementLockResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Resources +{ + public partial class ManagementLockResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ManagementLockData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ManagementLockData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/PolicyAssignmentResource.Serialization.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/PolicyAssignmentResource.Serialization.cs new file mode 100644 index 000000000000..86b9355207fc --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/PolicyAssignmentResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Resources +{ + public partial class PolicyAssignmentResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + PolicyAssignmentData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + PolicyAssignmentData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ResourceGroupResource.Serialization.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ResourceGroupResource.Serialization.cs new file mode 100644 index 000000000000..9b7f3e8cf8b5 --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ResourceGroupResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Resources +{ + public partial class ResourceGroupResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ResourceGroupData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ResourceGroupData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ResourceProviderResource.Serialization.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ResourceProviderResource.Serialization.cs new file mode 100644 index 000000000000..0a2360c09a92 --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ResourceProviderResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Resources +{ + public partial class ResourceProviderResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ResourceProviderData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ResourceProviderData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/SubscriptionPolicyDefinitionResource.Serialization.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/SubscriptionPolicyDefinitionResource.Serialization.cs new file mode 100644 index 000000000000..45ab36f56215 --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/SubscriptionPolicyDefinitionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Resources +{ + public partial class SubscriptionPolicyDefinitionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + PolicyDefinitionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + PolicyDefinitionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/SubscriptionPolicySetDefinitionResource.Serialization.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/SubscriptionPolicySetDefinitionResource.Serialization.cs new file mode 100644 index 000000000000..3731fc40e5a5 --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/SubscriptionPolicySetDefinitionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Resources +{ + public partial class SubscriptionPolicySetDefinitionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + PolicySetDefinitionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + PolicySetDefinitionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/SubscriptionResource.Serialization.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/SubscriptionResource.Serialization.cs new file mode 100644 index 000000000000..f84c1a5d8f73 --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/SubscriptionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Resources +{ + public partial class SubscriptionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SubscriptionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SubscriptionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/TagResource.Serialization.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/TagResource.Serialization.cs new file mode 100644 index 000000000000..1541e46b411d --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/TagResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Resources +{ + public partial class TagResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + TagResourceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + TagResourceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/TenantPolicyDefinitionResource.Serialization.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/TenantPolicyDefinitionResource.Serialization.cs new file mode 100644 index 000000000000..1e8bdb524e4f --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/TenantPolicyDefinitionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Resources +{ + public partial class TenantPolicyDefinitionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + PolicyDefinitionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + PolicyDefinitionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/TenantPolicySetDefinitionResource.Serialization.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/TenantPolicySetDefinitionResource.Serialization.cs new file mode 100644 index 000000000000..6e137be0f7e0 --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/TenantPolicySetDefinitionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Resources +{ + public partial class TenantPolicySetDefinitionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + PolicySetDefinitionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + PolicySetDefinitionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/TenantResource.Serialization.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/TenantResource.Serialization.cs new file mode 100644 index 000000000000..30478a7cc266 --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/TenantResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Resources +{ + public partial class TenantResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + TenantData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + TenantData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/PolicyAssignmentCollection.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/PolicyAssignmentCollection.cs index 3f1b5528f1ab..e438ce1635a6 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/PolicyAssignmentCollection.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/PolicyAssignmentCollection.cs @@ -82,7 +82,9 @@ public virtual async Task> CreateOrUpdate try { var response = await _policyAssignmentRestClient.CreateAsync(Id, policyAssignmentName, data, cancellationToken).ConfigureAwait(false); - var operation = new ResourcesArmOperation(Response.FromValue(new PolicyAssignmentResource(Client, response), response.GetRawResponse())); + var uri = _policyAssignmentRestClient.CreateCreateRequestUri(Id, policyAssignmentName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ResourcesArmOperation(Response.FromValue(new PolicyAssignmentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -131,7 +133,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil w try { var response = _policyAssignmentRestClient.Create(Id, policyAssignmentName, data, cancellationToken); - var operation = new ResourcesArmOperation(Response.FromValue(new PolicyAssignmentResource(Client, response), response.GetRawResponse())); + var uri = _policyAssignmentRestClient.CreateCreateRequestUri(Id, policyAssignmentName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ResourcesArmOperation(Response.FromValue(new PolicyAssignmentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/PolicyAssignmentResource.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/PolicyAssignmentResource.cs index 8e3cd2a56a75..711f42b9b69e 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/PolicyAssignmentResource.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/PolicyAssignmentResource.cs @@ -199,7 +199,9 @@ public virtual async Task> DeleteAsync(Wa try { var response = await _policyAssignmentRestClient.DeleteAsync(Id.Parent, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new ResourcesArmOperation(Response.FromValue(new PolicyAssignmentResource(Client, response), response.GetRawResponse())); + var uri = _policyAssignmentRestClient.CreateDeleteRequestUri(Id.Parent, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ResourcesArmOperation(Response.FromValue(new PolicyAssignmentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -241,7 +243,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil try { var response = _policyAssignmentRestClient.Delete(Id.Parent, Id.Name, cancellationToken); - var operation = new ResourcesArmOperation(Response.FromValue(new PolicyAssignmentResource(Client, response), response.GetRawResponse())); + var uri = _policyAssignmentRestClient.CreateDeleteRequestUri(Id.Parent, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ResourcesArmOperation(Response.FromValue(new PolicyAssignmentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/ResourceGroupCollection.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/ResourceGroupCollection.cs index fd44ef05be7b..e7bf5ea34cb5 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/ResourceGroupCollection.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/ResourceGroupCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> CreateOrUpdateAsy try { var response = await _resourceGroupRestClient.CreateOrUpdateAsync(Id.SubscriptionId, resourceGroupName, data, cancellationToken).ConfigureAwait(false); - var operation = new ResourcesArmOperation(Response.FromValue(new ResourceGroupResource(Client, response), response.GetRawResponse())); + var uri = _resourceGroupRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, resourceGroupName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ResourcesArmOperation(Response.FromValue(new ResourceGroupResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wait try { var response = _resourceGroupRestClient.CreateOrUpdate(Id.SubscriptionId, resourceGroupName, data, cancellationToken); - var operation = new ResourcesArmOperation(Response.FromValue(new ResourceGroupResource(Client, response), response.GetRawResponse())); + var uri = _resourceGroupRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, resourceGroupName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ResourcesArmOperation(Response.FromValue(new ResourceGroupResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/RestOperations/DataPolicyManifestsRestOperations.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/RestOperations/DataPolicyManifestsRestOperations.cs index ce9d49afb610..1737152e1f49 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/RestOperations/DataPolicyManifestsRestOperations.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/RestOperations/DataPolicyManifestsRestOperations.cs @@ -37,6 +37,16 @@ public DataPolicyManifestsRestOperations(HttpPipeline pipeline, string applicati _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetByPolicyModeRequestUri(string policyMode) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Authorization/dataPolicyManifests/", false); + uri.AppendPath(policyMode, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetByPolicyModeRequest(string policyMode) { var message = _pipeline.CreateMessage(); @@ -107,6 +117,19 @@ public Response GetByPolicyMode(string policyMode, Cance } } + internal RequestUriBuilder CreateListRequestUri(string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Authorization/dataPolicyManifests", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, false); + } + return uri; + } + internal HttpMessage CreateListRequest(string filter) { var message = _pipeline.CreateMessage(); @@ -168,6 +191,14 @@ public Response List(string filter = null, Cancell } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string filter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/RestOperations/FeaturesRestOperations.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/RestOperations/FeaturesRestOperations.cs index 27d60a0aa099..016451b30a7e 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/RestOperations/FeaturesRestOperations.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/RestOperations/FeaturesRestOperations.cs @@ -37,6 +37,17 @@ public FeaturesRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListAllRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Features/features", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListAllRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,19 @@ public Response ListAll(string subscriptionId, Canc } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceProviderNamespace) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Features/providers/", false); + uri.AppendPath(resourceProviderNamespace, true); + uri.AppendPath("/features", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceProviderNamespace) { var message = _pipeline.CreateMessage(); @@ -177,6 +201,20 @@ public Response List(string subscriptionId, string } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceProviderNamespace, string featureName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Features/providers/", false); + uri.AppendPath(resourceProviderNamespace, true); + uri.AppendPath("/features/", false); + uri.AppendPath(featureName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceProviderNamespace, string featureName) { var message = _pipeline.CreateMessage(); @@ -259,6 +297,21 @@ public Response Get(string subscriptionId, string resourceProviderN } } + internal RequestUriBuilder CreateRegisterRequestUri(string subscriptionId, string resourceProviderNamespace, string featureName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Features/providers/", false); + uri.AppendPath(resourceProviderNamespace, true); + uri.AppendPath("/features/", false); + uri.AppendPath(featureName, true); + uri.AppendPath("/register", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRegisterRequest(string subscriptionId, string resourceProviderNamespace, string featureName) { var message = _pipeline.CreateMessage(); @@ -338,6 +391,21 @@ public Response Register(string subscriptionId, string resourceProv } } + internal RequestUriBuilder CreateUnregisterRequestUri(string subscriptionId, string resourceProviderNamespace, string featureName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Features/providers/", false); + uri.AppendPath(resourceProviderNamespace, true); + uri.AppendPath("/features/", false); + uri.AppendPath(featureName, true); + uri.AppendPath("/unregister", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUnregisterRequest(string subscriptionId, string resourceProviderNamespace, string featureName) { var message = _pipeline.CreateMessage(); @@ -417,6 +485,14 @@ public Response Unregister(string subscriptionId, string resourcePr } } + internal RequestUriBuilder CreateListAllNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListAllNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -485,6 +561,14 @@ public Response ListAllNextPage(string nextLink, st } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceProviderNamespace) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceProviderNamespace) { var message = _pipeline.CreateMessage(); diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/RestOperations/ManagementLocksRestOperations.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/RestOperations/ManagementLocksRestOperations.cs index c101ba7e86d1..ba5d518a44a3 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/RestOperations/ManagementLocksRestOperations.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/RestOperations/ManagementLocksRestOperations.cs @@ -37,6 +37,18 @@ public ManagementLocksRestOperations(HttpPipeline pipeline, string applicationId _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateByScopeRequestUri(string scope, string lockName, ManagementLockData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.Authorization/locks/", false); + uri.AppendPath(lockName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateByScopeRequest(string scope, string lockName, ManagementLockData data) { var message = _pipeline.CreateMessage(); @@ -119,6 +131,18 @@ public Response CreateOrUpdateByScope(string scope, string l } } + internal RequestUriBuilder CreateDeleteByScopeRequestUri(string scope, string lockName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.Authorization/locks/", false); + uri.AppendPath(lockName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteByScopeRequest(string scope, string lockName) { var message = _pipeline.CreateMessage(); @@ -183,6 +207,18 @@ public Response DeleteByScope(string scope, string lockName, CancellationToken c } } + internal RequestUriBuilder CreateGetByScopeRequestUri(string scope, string lockName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.Authorization/locks/", false); + uri.AppendPath(lockName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetByScopeRequest(string scope, string lockName) { var message = _pipeline.CreateMessage(); @@ -259,6 +295,21 @@ public Response GetByScope(string scope, string lockName, Ca } } + internal RequestUriBuilder CreateListByScopeRequestUri(string scope, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.Authorization/locks", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByScopeRequest(string scope, string filter) { var message = _pipeline.CreateMessage(); @@ -330,6 +381,14 @@ public Response ListByScope(string scope, string filte } } + internal RequestUriBuilder CreateListByScopeNextPageRequestUri(string nextLink, string scope, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByScopeNextPageRequest(string nextLink, string scope, string filter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/RestOperations/PolicyAssignmentsRestOperations.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/RestOperations/PolicyAssignmentsRestOperations.cs index 74a4c4425e43..861f730747ab 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/RestOperations/PolicyAssignmentsRestOperations.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/RestOperations/PolicyAssignmentsRestOperations.cs @@ -37,6 +37,18 @@ public PolicyAssignmentsRestOperations(HttpPipeline pipeline, string application _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateDeleteRequestUri(string scope, string policyAssignmentName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.Authorization/policyAssignments/", false); + uri.AppendPath(policyAssignmentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string scope, string policyAssignmentName) { var message = _pipeline.CreateMessage(); @@ -113,6 +125,18 @@ public Response Delete(string scope, string policyAssignme } } + internal RequestUriBuilder CreateCreateRequestUri(string scope, string policyAssignmentName, PolicyAssignmentData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.Authorization/policyAssignments/", false); + uri.AppendPath(policyAssignmentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string scope, string policyAssignmentName, PolicyAssignmentData data) { var message = _pipeline.CreateMessage(); @@ -193,6 +217,18 @@ public Response Create(string scope, string policyAssignme } } + internal RequestUriBuilder CreateGetRequestUri(string scope, string policyAssignmentName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.Authorization/policyAssignments/", false); + uri.AppendPath(policyAssignmentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string scope, string policyAssignmentName) { var message = _pipeline.CreateMessage(); @@ -269,6 +305,18 @@ public Response Get(string scope, string policyAssignmentN } } + internal RequestUriBuilder CreateUpdateRequestUri(string scope, string policyAssignmentName, PolicyAssignmentPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.Authorization/policyAssignments/", false); + uri.AppendPath(policyAssignmentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string scope, string policyAssignmentName, PolicyAssignmentPatch patch) { var message = _pipeline.CreateMessage(); @@ -349,6 +397,27 @@ public Response Update(string scope, string policyAssignme } } + internal RequestUriBuilder CreateListForResourceGroupRequestUri(string subscriptionId, string resourceGroupName, string filter, int? top) + { + 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.Authorization/policyAssignments", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, false); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListForResourceGroupRequest(string subscriptionId, string resourceGroupName, string filter, int? top) { var message = _pipeline.CreateMessage(); @@ -434,6 +503,35 @@ public Response ListForResourceGroup(string subscrip } } + internal RequestUriBuilder CreateListForResourceRequestUri(string subscriptionId, string resourceGroupName, string resourceProviderNamespace, string parentResourcePath, string resourceType, string resourceName, string filter, int? top) + { + 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/", false); + uri.AppendPath(resourceProviderNamespace, true); + uri.AppendPath("/", false); + uri.AppendPath(parentResourcePath, false); + uri.AppendPath("/", false); + uri.AppendPath(resourceType, false); + uri.AppendPath("/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/providers/Microsoft.Authorization/policyAssignments", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, false); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListForResourceRequest(string subscriptionId, string resourceGroupName, string resourceProviderNamespace, string parentResourcePath, string resourceType, string resourceName, string filter, int? top) { var message = _pipeline.CreateMessage(); @@ -543,6 +641,25 @@ public Response ListForResource(string subscriptionI } } + internal RequestUriBuilder CreateListForManagementGroupRequestUri(string managementGroupId, string filter, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Management/managementGroups/", false); + uri.AppendPath(managementGroupId, true); + uri.AppendPath("/providers/Microsoft.Authorization/policyAssignments", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, false); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListForManagementGroupRequest(string managementGroupId, string filter, int? top) { var message = _pipeline.CreateMessage(); @@ -622,6 +739,25 @@ public Response ListForManagementGroup(string manage } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string filter, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Authorization/policyAssignments", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, false); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string filter, int? top) { var message = _pipeline.CreateMessage(); @@ -701,6 +837,14 @@ public Response List(string subscriptionId, string f } } + internal RequestUriBuilder CreateListForResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string filter, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListForResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string filter, int? top) { var message = _pipeline.CreateMessage(); @@ -777,6 +921,14 @@ public Response ListForResourceGroupNextPage(string } } + internal RequestUriBuilder CreateListForResourceNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string resourceProviderNamespace, string parentResourcePath, string resourceType, string resourceName, string filter, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListForResourceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string resourceProviderNamespace, string parentResourcePath, string resourceType, string resourceName, string filter, int? top) { var message = _pipeline.CreateMessage(); @@ -869,6 +1021,14 @@ public Response ListForResourceNextPage(string nextL } } + internal RequestUriBuilder CreateListForManagementGroupNextPageRequestUri(string nextLink, string managementGroupId, string filter, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListForManagementGroupNextPageRequest(string nextLink, string managementGroupId, string filter, int? top) { var message = _pipeline.CreateMessage(); @@ -941,6 +1101,14 @@ public Response ListForManagementGroupNextPage(strin } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string filter, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string filter, int? top) { var message = _pipeline.CreateMessage(); diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/RestOperations/PolicyDefinitionsRestOperations.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/RestOperations/PolicyDefinitionsRestOperations.cs index 8736a870b8bd..b0f6c7522c88 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/RestOperations/PolicyDefinitionsRestOperations.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/RestOperations/PolicyDefinitionsRestOperations.cs @@ -37,6 +37,18 @@ public PolicyDefinitionsRestOperations(HttpPipeline pipeline, string application _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string policyDefinitionName, PolicyDefinitionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Authorization/policyDefinitions/", false); + uri.AppendPath(policyDefinitionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string policyDefinitionName, PolicyDefinitionData data) { var message = _pipeline.CreateMessage(); @@ -117,6 +129,18 @@ public Response CreateOrUpdate(string subscriptionId, stri } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string policyDefinitionName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Authorization/policyDefinitions/", false); + uri.AppendPath(policyDefinitionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string policyDefinitionName) { var message = _pipeline.CreateMessage(); @@ -181,6 +205,18 @@ public Response Delete(string subscriptionId, string policyDefinitionName, Cance } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string policyDefinitionName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Authorization/policyDefinitions/", false); + uri.AppendPath(policyDefinitionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string policyDefinitionName) { var message = _pipeline.CreateMessage(); @@ -257,6 +293,16 @@ public Response Get(string subscriptionId, string policyDe } } + internal RequestUriBuilder CreateGetBuiltInRequestUri(string policyDefinitionName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Authorization/policyDefinitions/", false); + uri.AppendPath(policyDefinitionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetBuiltInRequest(string policyDefinitionName) { var message = _pipeline.CreateMessage(); @@ -327,6 +373,18 @@ public Response GetBuiltIn(string policyDefinitionName, Ca } } + internal RequestUriBuilder CreateCreateOrUpdateAtManagementGroupRequestUri(string managementGroupId, string policyDefinitionName, PolicyDefinitionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Management/managementGroups/", false); + uri.AppendPath(managementGroupId, true); + uri.AppendPath("/providers/Microsoft.Authorization/policyDefinitions/", false); + uri.AppendPath(policyDefinitionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateAtManagementGroupRequest(string managementGroupId, string policyDefinitionName, PolicyDefinitionData data) { var message = _pipeline.CreateMessage(); @@ -407,6 +465,18 @@ public Response CreateOrUpdateAtManagementGroup(string man } } + internal RequestUriBuilder CreateDeleteAtManagementGroupRequestUri(string managementGroupId, string policyDefinitionName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Management/managementGroups/", false); + uri.AppendPath(managementGroupId, true); + uri.AppendPath("/providers/Microsoft.Authorization/policyDefinitions/", false); + uri.AppendPath(policyDefinitionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteAtManagementGroupRequest(string managementGroupId, string policyDefinitionName) { var message = _pipeline.CreateMessage(); @@ -471,6 +541,18 @@ public Response DeleteAtManagementGroup(string managementGroupId, string policyD } } + internal RequestUriBuilder CreateGetAtManagementGroupRequestUri(string managementGroupId, string policyDefinitionName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Management/managementGroups/", false); + uri.AppendPath(managementGroupId, true); + uri.AppendPath("/providers/Microsoft.Authorization/policyDefinitions/", false); + uri.AppendPath(policyDefinitionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetAtManagementGroupRequest(string managementGroupId, string policyDefinitionName) { var message = _pipeline.CreateMessage(); @@ -547,6 +629,25 @@ public Response GetAtManagementGroup(string managementGrou } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string filter, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Authorization/policyDefinitions", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, false); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string filter, int? top) { var message = _pipeline.CreateMessage(); @@ -626,6 +727,23 @@ public Response List(string subscriptionId, string f } } + internal RequestUriBuilder CreateListBuiltInRequestUri(string filter, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Authorization/policyDefinitions", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, false); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + return uri; + } + internal HttpMessage CreateListBuiltInRequest(string filter, int? top) { var message = _pipeline.CreateMessage(); @@ -693,6 +811,25 @@ public Response ListBuiltIn(string filter = null, in } } + internal RequestUriBuilder CreateListByManagementGroupRequestUri(string managementGroupId, string filter, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Management/managementGroups/", false); + uri.AppendPath(managementGroupId, true); + uri.AppendPath("/providers/Microsoft.Authorization/policyDefinitions", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, false); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + return uri; + } + internal HttpMessage CreateListByManagementGroupRequest(string managementGroupId, string filter, int? top) { var message = _pipeline.CreateMessage(); @@ -772,6 +909,14 @@ public Response ListByManagementGroup(string managem } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string filter, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string filter, int? top) { var message = _pipeline.CreateMessage(); @@ -844,6 +989,14 @@ public Response ListNextPage(string nextLink, string } } + internal RequestUriBuilder CreateListBuiltInNextPageRequestUri(string nextLink, string filter, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBuiltInNextPageRequest(string nextLink, string filter, int? top) { var message = _pipeline.CreateMessage(); @@ -910,6 +1063,14 @@ public Response ListBuiltInNextPage(string nextLink, } } + internal RequestUriBuilder CreateListByManagementGroupNextPageRequestUri(string nextLink, string managementGroupId, string filter, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByManagementGroupNextPageRequest(string nextLink, string managementGroupId, string filter, int? top) { var message = _pipeline.CreateMessage(); diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/RestOperations/PolicySetDefinitionsRestOperations.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/RestOperations/PolicySetDefinitionsRestOperations.cs index de83a897b6af..d0dd5dbd996d 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/RestOperations/PolicySetDefinitionsRestOperations.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/RestOperations/PolicySetDefinitionsRestOperations.cs @@ -37,6 +37,18 @@ public PolicySetDefinitionsRestOperations(HttpPipeline pipeline, string applicat _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string policySetDefinitionName, PolicySetDefinitionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Authorization/policySetDefinitions/", false); + uri.AppendPath(policySetDefinitionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string policySetDefinitionName, PolicySetDefinitionData data) { var message = _pipeline.CreateMessage(); @@ -119,6 +131,18 @@ public Response CreateOrUpdate(string subscriptionId, s } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string policySetDefinitionName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Authorization/policySetDefinitions/", false); + uri.AppendPath(policySetDefinitionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string policySetDefinitionName) { var message = _pipeline.CreateMessage(); @@ -183,6 +207,18 @@ public Response Delete(string subscriptionId, string policySetDefinitionName, Ca } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string policySetDefinitionName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Authorization/policySetDefinitions/", false); + uri.AppendPath(policySetDefinitionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string policySetDefinitionName) { var message = _pipeline.CreateMessage(); @@ -259,6 +295,16 @@ public Response Get(string subscriptionId, string polic } } + internal RequestUriBuilder CreateGetBuiltInRequestUri(string policySetDefinitionName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Authorization/policySetDefinitions/", false); + uri.AppendPath(policySetDefinitionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetBuiltInRequest(string policySetDefinitionName) { var message = _pipeline.CreateMessage(); @@ -329,6 +375,25 @@ public Response GetBuiltIn(string policySetDefinitionNa } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string filter, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Authorization/policySetDefinitions", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, false); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string filter, int? top) { var message = _pipeline.CreateMessage(); @@ -408,6 +473,23 @@ public Response List(string subscriptionId, strin } } + internal RequestUriBuilder CreateListBuiltInRequestUri(string filter, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Authorization/policySetDefinitions", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, false); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + return uri; + } + internal HttpMessage CreateListBuiltInRequest(string filter, int? top) { var message = _pipeline.CreateMessage(); @@ -475,6 +557,18 @@ public Response ListBuiltIn(string filter = null, } } + internal RequestUriBuilder CreateCreateOrUpdateAtManagementGroupRequestUri(string managementGroupId, string policySetDefinitionName, PolicySetDefinitionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Management/managementGroups/", false); + uri.AppendPath(managementGroupId, true); + uri.AppendPath("/providers/Microsoft.Authorization/policySetDefinitions/", false); + uri.AppendPath(policySetDefinitionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateAtManagementGroupRequest(string managementGroupId, string policySetDefinitionName, PolicySetDefinitionData data) { var message = _pipeline.CreateMessage(); @@ -557,6 +651,18 @@ public Response CreateOrUpdateAtManagementGroup(string } } + internal RequestUriBuilder CreateDeleteAtManagementGroupRequestUri(string managementGroupId, string policySetDefinitionName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Management/managementGroups/", false); + uri.AppendPath(managementGroupId, true); + uri.AppendPath("/providers/Microsoft.Authorization/policySetDefinitions/", false); + uri.AppendPath(policySetDefinitionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteAtManagementGroupRequest(string managementGroupId, string policySetDefinitionName) { var message = _pipeline.CreateMessage(); @@ -621,6 +727,18 @@ public Response DeleteAtManagementGroup(string managementGroupId, string policyS } } + internal RequestUriBuilder CreateGetAtManagementGroupRequestUri(string managementGroupId, string policySetDefinitionName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Management/managementGroups/", false); + uri.AppendPath(managementGroupId, true); + uri.AppendPath("/providers/Microsoft.Authorization/policySetDefinitions/", false); + uri.AppendPath(policySetDefinitionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetAtManagementGroupRequest(string managementGroupId, string policySetDefinitionName) { var message = _pipeline.CreateMessage(); @@ -697,6 +815,25 @@ public Response GetAtManagementGroup(string managementG } } + internal RequestUriBuilder CreateListByManagementGroupRequestUri(string managementGroupId, string filter, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Management/managementGroups/", false); + uri.AppendPath(managementGroupId, true); + uri.AppendPath("/providers/Microsoft.Authorization/policySetDefinitions", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, false); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + return uri; + } + internal HttpMessage CreateListByManagementGroupRequest(string managementGroupId, string filter, int? top) { var message = _pipeline.CreateMessage(); @@ -776,6 +913,14 @@ public Response ListByManagementGroup(string mana } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string filter, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string filter, int? top) { var message = _pipeline.CreateMessage(); @@ -848,6 +993,14 @@ public Response ListNextPage(string nextLink, str } } + internal RequestUriBuilder CreateListBuiltInNextPageRequestUri(string nextLink, string filter, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBuiltInNextPageRequest(string nextLink, string filter, int? top) { var message = _pipeline.CreateMessage(); @@ -914,6 +1067,14 @@ public Response ListBuiltInNextPage(string nextLi } } + internal RequestUriBuilder CreateListByManagementGroupNextPageRequestUri(string nextLink, string managementGroupId, string filter, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByManagementGroupNextPageRequest(string nextLink, string managementGroupId, string filter, int? top) { var message = _pipeline.CreateMessage(); diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/RestOperations/ProviderResourceTypesRestOperations.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/RestOperations/ProviderResourceTypesRestOperations.cs index d3f71c077669..a66e976ff230 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/RestOperations/ProviderResourceTypesRestOperations.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/RestOperations/ProviderResourceTypesRestOperations.cs @@ -37,6 +37,23 @@ public ProviderResourceTypesRestOperations(HttpPipeline pipeline, string applica _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceProviderNamespace, string expand) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/", false); + uri.AppendPath(resourceProviderNamespace, true); + uri.AppendPath("/resourceTypes", false); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceProviderNamespace, string expand) { var message = _pipeline.CreateMessage(); diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/RestOperations/ProvidersRestOperations.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/RestOperations/ProvidersRestOperations.cs index 1d0b2e46c50b..b6a264d33a14 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/RestOperations/ProvidersRestOperations.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/RestOperations/ProvidersRestOperations.cs @@ -37,6 +37,19 @@ public ProvidersRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateUnregisterRequestUri(string subscriptionId, string resourceProviderNamespace) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/", false); + uri.AppendPath(resourceProviderNamespace, true); + uri.AppendPath("/unregister", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUnregisterRequest(string subscriptionId, string resourceProviderNamespace) { var message = _pipeline.CreateMessage(); @@ -110,6 +123,19 @@ public Response Unregister(string subscriptionId, string r } } + internal RequestUriBuilder CreateProviderPermissionsRequestUri(string subscriptionId, string resourceProviderNamespace) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/", false); + uri.AppendPath(resourceProviderNamespace, true); + uri.AppendPath("/providerPermissions", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateProviderPermissionsRequest(string subscriptionId, string resourceProviderNamespace) { var message = _pipeline.CreateMessage(); @@ -183,6 +209,19 @@ public Response ProviderPermissions(string subscri } } + internal RequestUriBuilder CreateRegisterRequestUri(string subscriptionId, string resourceProviderNamespace, ProviderRegistrationContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/", false); + uri.AppendPath(resourceProviderNamespace, true); + uri.AppendPath("/register", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRegisterRequest(string subscriptionId, string resourceProviderNamespace, ProviderRegistrationContent content) { var message = _pipeline.CreateMessage(); @@ -265,6 +304,21 @@ public Response Register(string subscriptionId, string res } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string expand) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers", false); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string expand) { var message = _pipeline.CreateMessage(); @@ -338,6 +392,19 @@ public Response List(string subscriptionId, string e } } + internal RequestUriBuilder CreateListAtTenantScopeRequestUri(string expand) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers", false); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListAtTenantScopeRequest(string expand) { var message = _pipeline.CreateMessage(); @@ -399,6 +466,22 @@ public Response ListAtTenantScope(string expan } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceProviderNamespace, string expand) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/", false); + uri.AppendPath(resourceProviderNamespace, true); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceProviderNamespace, string expand) { var message = _pipeline.CreateMessage(); @@ -481,6 +564,20 @@ public Response Get(string subscriptionId, string resource } } + internal RequestUriBuilder CreateGetAtTenantScopeRequestUri(string resourceProviderNamespace, string expand) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/", false); + uri.AppendPath(resourceProviderNamespace, true); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetAtTenantScopeRequest(string resourceProviderNamespace, string expand) { var message = _pipeline.CreateMessage(); @@ -553,6 +650,14 @@ public Response GetAtTenantScope(string resourceProvider } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string expand) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string expand) { var message = _pipeline.CreateMessage(); @@ -623,6 +728,14 @@ public Response ListNextPage(string nextLink, string } } + internal RequestUriBuilder CreateListAtTenantScopeNextPageRequestUri(string nextLink, string expand) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListAtTenantScopeNextPageRequest(string nextLink, string expand) { var message = _pipeline.CreateMessage(); diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/RestOperations/ResourceGroupsRestOperations.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/RestOperations/ResourceGroupsRestOperations.cs index cb3e7af83850..1869794ff54f 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/RestOperations/ResourceGroupsRestOperations.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/RestOperations/ResourceGroupsRestOperations.cs @@ -37,6 +37,18 @@ public ResourceGroupsRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, ResourceGroupData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourcegroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, ResourceGroupData data) { var message = _pipeline.CreateMessage(); @@ -119,6 +131,22 @@ public Response CreateOrUpdate(string subscriptionId, string } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string forceDeletionTypes) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourcegroups/", false); + uri.AppendPath(resourceGroupName, true); + if (forceDeletionTypes != null) + { + uri.AppendQuery("forceDeletionTypes", forceDeletionTypes, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string forceDeletionTypes) { var message = _pipeline.CreateMessage(); @@ -189,6 +217,18 @@ public Response Delete(string subscriptionId, string resourceGroupName, string f } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourcegroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -265,6 +305,18 @@ public Response Get(string subscriptionId, string resourceGro } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, ResourceGroupPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourcegroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, ResourceGroupPatch patch) { var message = _pipeline.CreateMessage(); @@ -345,6 +397,19 @@ public Response Update(string subscriptionId, string resource } } + internal RequestUriBuilder CreateExportTemplateRequestUri(string subscriptionId, string resourceGroupName, ExportTemplate exportTemplate) + { + 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("/exportTemplate", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateExportTemplateRequest(string subscriptionId, string resourceGroupName, ExportTemplate exportTemplate) { var message = _pipeline.CreateMessage(); @@ -418,6 +483,25 @@ public Response ExportTemplate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string filter, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourcegroups", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string filter, int? top) { var message = _pipeline.CreateMessage(); @@ -497,6 +581,14 @@ public Response List(string subscriptionId, string filt } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string filter, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string filter, int? top) { var message = _pipeline.CreateMessage(); diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/RestOperations/ResourceManagementRestOperations.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/RestOperations/ResourceManagementRestOperations.cs index 261ba58b57df..3a5594d922ad 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/RestOperations/ResourceManagementRestOperations.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/RestOperations/ResourceManagementRestOperations.cs @@ -37,6 +37,15 @@ public ResourceManagementRestOperations(HttpPipeline pipeline, string applicatio _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCheckResourceNameRequestUri(ResourceNameValidationContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Resources/checkResourceName", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCheckResourceNameRequest(ResourceNameValidationContent content) { var message = _pipeline.CreateMessage(); diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/RestOperations/ResourcesRestOperations.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/RestOperations/ResourcesRestOperations.cs index ec3ffae8210d..ebd2e9606d07 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/RestOperations/ResourcesRestOperations.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/RestOperations/ResourcesRestOperations.cs @@ -37,6 +37,31 @@ public ResourcesRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName, string filter, string expand, int? top) + { + 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("/resources", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName, string filter, string expand, int? top) { var message = _pipeline.CreateMessage(); @@ -128,6 +153,19 @@ public Response ListByResourceGroup(string subscriptionId, s } } + internal RequestUriBuilder CreateMoveResourcesRequestUri(string subscriptionId, string sourceResourceGroupName, ResourcesMoveContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(sourceResourceGroupName, true); + uri.AppendPath("/moveResources", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateMoveResourcesRequest(string subscriptionId, string sourceResourceGroupName, ResourcesMoveContent content) { var message = _pipeline.CreateMessage(); @@ -201,6 +239,19 @@ public Response MoveResources(string subscriptionId, string sourceResourceGroupN } } + internal RequestUriBuilder CreateValidateMoveResourcesRequestUri(string subscriptionId, string sourceResourceGroupName, ResourcesMoveContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(sourceResourceGroupName, true); + uri.AppendPath("/validateMoveResources", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateValidateMoveResourcesRequest(string subscriptionId, string sourceResourceGroupName, ResourcesMoveContent content) { var message = _pipeline.CreateMessage(); @@ -274,6 +325,29 @@ public Response ValidateMoveResources(string subscriptionId, string sourceResour } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string filter, string expand, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resources", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string filter, string expand, int? top) { var message = _pipeline.CreateMessage(); @@ -359,6 +433,16 @@ public Response List(string subscriptionId, string filter = } } + internal RequestUriBuilder CreateDeleteByIdRequestUri(string resourceId, string apiVersion) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceId, false); + uri.AppendQuery("api-version", apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteByIdRequest(string resourceId, string apiVersion) { var message = _pipeline.CreateMessage(); @@ -421,6 +505,16 @@ public Response DeleteById(string resourceId, string apiVersion, CancellationTok } } + internal RequestUriBuilder CreateCreateOrUpdateByIdRequestUri(string resourceId, string apiVersion, GenericResourceData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceId, false); + uri.AppendQuery("api-version", apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateByIdRequest(string resourceId, string apiVersion, GenericResourceData data) { var message = _pipeline.CreateMessage(); @@ -491,6 +585,16 @@ public Response CreateOrUpdateById(string resourceId, string apiVersion, Generic } } + internal RequestUriBuilder CreateUpdateByIdRequestUri(string resourceId, string apiVersion, GenericResourceData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceId, false); + uri.AppendQuery("api-version", apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateByIdRequest(string resourceId, string apiVersion, GenericResourceData data) { var message = _pipeline.CreateMessage(); @@ -559,6 +663,16 @@ public Response UpdateById(string resourceId, string apiVersion, GenericResource } } + internal RequestUriBuilder CreateGetByIdRequestUri(string resourceId, string apiVersion) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceId, false); + uri.AppendQuery("api-version", apiVersion, true); + return uri; + } + internal HttpMessage CreateGetByIdRequest(string resourceId, string apiVersion) { var message = _pipeline.CreateMessage(); @@ -631,6 +745,14 @@ public Response GetById(string resourceId, string apiVersio } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string filter, string expand, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string filter, string expand, int? top) { var message = _pipeline.CreateMessage(); @@ -709,6 +831,14 @@ public Response ListByResourceGroupNextPage(string nextLink, } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string filter, string expand, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string filter, string expand, int? top) { var message = _pipeline.CreateMessage(); diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/RestOperations/SubscriptionsRestOperations.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/RestOperations/SubscriptionsRestOperations.cs index 4a0e51ad79af..3490ed7b2a0b 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/RestOperations/SubscriptionsRestOperations.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/RestOperations/SubscriptionsRestOperations.cs @@ -37,6 +37,21 @@ public SubscriptionsRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListLocationsRequestUri(string subscriptionId, bool? includeExtendedLocations) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/locations", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (includeExtendedLocations != null) + { + uri.AppendQuery("includeExtendedLocations", includeExtendedLocations.Value, true); + } + return uri; + } + internal HttpMessage CreateListLocationsRequest(string subscriptionId, bool? includeExtendedLocations) { var message = _pipeline.CreateMessage(); @@ -110,6 +125,16 @@ public Response ListLocations(string subscriptionId, bool? i } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -180,6 +205,15 @@ public Response Get(string subscriptionId, CancellationToken c } } + internal RequestUriBuilder CreateListRequestUri() + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest() { var message = _pipeline.CreateMessage(); @@ -235,6 +269,14 @@ public Response List(CancellationToken cancellationToken } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink) { var message = _pipeline.CreateMessage(); diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/RestOperations/TagsRestOperations.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/RestOperations/TagsRestOperations.cs index c6ce3f1c9a1d..cb3d8128fcdb 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/RestOperations/TagsRestOperations.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/RestOperations/TagsRestOperations.cs @@ -37,6 +37,20 @@ public TagsRestOperations(HttpPipeline pipeline, string applicationId, Uri endpo _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateDeleteValueRequestUri(string subscriptionId, string tagName, string tagValue) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/tagNames/", false); + uri.AppendPath(tagName, true); + uri.AppendPath("/tagValues/", false); + uri.AppendPath(tagValue, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteValueRequest(string subscriptionId, string tagName, string tagValue) { var message = _pipeline.CreateMessage(); @@ -107,6 +121,20 @@ public Response DeleteValue(string subscriptionId, string tagName, string tagVal } } + internal RequestUriBuilder CreateCreateOrUpdateValueRequestUri(string subscriptionId, string tagName, string tagValue) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/tagNames/", false); + uri.AppendPath(tagName, true); + uri.AppendPath("/tagValues/", false); + uri.AppendPath(tagValue, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateValueRequest(string subscriptionId, string tagName, string tagValue) { var message = _pipeline.CreateMessage(); @@ -187,6 +215,18 @@ public Response CreateOrUpdateValue(string subscriptionId, s } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string tagName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/tagNames/", false); + uri.AppendPath(tagName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string tagName) { var message = _pipeline.CreateMessage(); @@ -261,6 +301,18 @@ public Response CreateOrUpdate(string subscriptionId, string tagN } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string tagName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/tagNames/", false); + uri.AppendPath(tagName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string tagName) { var message = _pipeline.CreateMessage(); @@ -325,6 +377,17 @@ public Response Delete(string subscriptionId, string tagName, CancellationToken } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/tagNames", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -392,6 +455,17 @@ public Response List(string subscriptionId, Cancellati } } + internal RequestUriBuilder CreateCreateOrUpdateAtScopeRequestUri(string scope, TagResourceData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.Resources/tags/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateAtScopeRequest(string scope, TagResourceData data) { var message = _pipeline.CreateMessage(); @@ -457,6 +531,17 @@ public Response CreateOrUpdateAtScope(string scope, TagResourceData data, Cancel } } + internal RequestUriBuilder CreateUpdateAtScopeRequestUri(string scope, TagResourcePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.Resources/tags/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateAtScopeRequest(string scope, TagResourcePatch patch) { var message = _pipeline.CreateMessage(); @@ -522,6 +607,17 @@ public Response UpdateAtScope(string scope, TagResourcePatch patch, Cancellation } } + internal RequestUriBuilder CreateGetAtScopeRequestUri(string scope) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.Resources/tags/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetAtScopeRequest(string scope) { var message = _pipeline.CreateMessage(); @@ -591,6 +687,17 @@ public Response GetAtScope(string scope, CancellationToken canc } } + internal RequestUriBuilder CreateDeleteAtScopeRequestUri(string scope) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.Resources/tags/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteAtScopeRequest(string scope) { var message = _pipeline.CreateMessage(); @@ -648,6 +755,14 @@ public Response DeleteAtScope(string scope, CancellationToken cancellationToken } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/RestOperations/TenantsRestOperations.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/RestOperations/TenantsRestOperations.cs index 62249ea94dc1..d67364d05307 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/RestOperations/TenantsRestOperations.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/RestOperations/TenantsRestOperations.cs @@ -37,6 +37,15 @@ public TenantsRestOperations(HttpPipeline pipeline, string applicationId, Uri en _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri() + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/tenants", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest() { var message = _pipeline.CreateMessage(); @@ -92,6 +101,23 @@ public Response List(CancellationToken cancellationToken = def } } + internal RequestUriBuilder CreateGetRequestUri() + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink) { var message = _pipeline.CreateMessage(); diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/SubscriptionPolicyDefinitionCollection.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/SubscriptionPolicyDefinitionCollection.cs index 618c7f3de225..b7d47c111d7f 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/SubscriptionPolicyDefinitionCollection.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/SubscriptionPolicyDefinitionCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> Cr try { var response = await _subscriptionPolicyDefinitionPolicyDefinitionsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, policyDefinitionName, data, cancellationToken).ConfigureAwait(false); - var operation = new ResourcesArmOperation(Response.FromValue(new SubscriptionPolicyDefinitionResource(Client, response), response.GetRawResponse())); + var uri = _subscriptionPolicyDefinitionPolicyDefinitionsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, policyDefinitionName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ResourcesArmOperation(Response.FromValue(new SubscriptionPolicyDefinitionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate try { var response = _subscriptionPolicyDefinitionPolicyDefinitionsRestClient.CreateOrUpdate(Id.SubscriptionId, policyDefinitionName, data, cancellationToken); - var operation = new ResourcesArmOperation(Response.FromValue(new SubscriptionPolicyDefinitionResource(Client, response), response.GetRawResponse())); + var uri = _subscriptionPolicyDefinitionPolicyDefinitionsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, policyDefinitionName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ResourcesArmOperation(Response.FromValue(new SubscriptionPolicyDefinitionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/SubscriptionPolicyDefinitionResource.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/SubscriptionPolicyDefinitionResource.cs index 082277e89e42..1cbc4f77bfec 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/SubscriptionPolicyDefinitionResource.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/SubscriptionPolicyDefinitionResource.cs @@ -198,7 +198,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _subscriptionPolicyDefinitionPolicyDefinitionsRestClient.DeleteAsync(Id.SubscriptionId, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new ResourcesArmOperation(response); + var uri = _subscriptionPolicyDefinitionPolicyDefinitionsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ResourcesArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -240,7 +242,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _subscriptionPolicyDefinitionPolicyDefinitionsRestClient.Delete(Id.SubscriptionId, Id.Name, cancellationToken); - var operation = new ResourcesArmOperation(response); + var uri = _subscriptionPolicyDefinitionPolicyDefinitionsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ResourcesArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -286,7 +290,9 @@ public virtual async Task> Up try { var response = await _subscriptionPolicyDefinitionPolicyDefinitionsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new ResourcesArmOperation(Response.FromValue(new SubscriptionPolicyDefinitionResource(Client, response), response.GetRawResponse())); + var uri = _subscriptionPolicyDefinitionPolicyDefinitionsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ResourcesArmOperation(Response.FromValue(new SubscriptionPolicyDefinitionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -332,7 +338,9 @@ public virtual ArmOperation Update(WaitUnt try { var response = _subscriptionPolicyDefinitionPolicyDefinitionsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.Name, data, cancellationToken); - var operation = new ResourcesArmOperation(Response.FromValue(new SubscriptionPolicyDefinitionResource(Client, response), response.GetRawResponse())); + var uri = _subscriptionPolicyDefinitionPolicyDefinitionsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ResourcesArmOperation(Response.FromValue(new SubscriptionPolicyDefinitionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/SubscriptionPolicySetDefinitionCollection.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/SubscriptionPolicySetDefinitionCollection.cs index c6dae47e27f8..70278dde8bf5 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/SubscriptionPolicySetDefinitionCollection.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/SubscriptionPolicySetDefinitionCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> try { var response = await _subscriptionPolicySetDefinitionPolicySetDefinitionsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, policySetDefinitionName, data, cancellationToken).ConfigureAwait(false); - var operation = new ResourcesArmOperation(Response.FromValue(new SubscriptionPolicySetDefinitionResource(Client, response), response.GetRawResponse())); + var uri = _subscriptionPolicySetDefinitionPolicySetDefinitionsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, policySetDefinitionName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ResourcesArmOperation(Response.FromValue(new SubscriptionPolicySetDefinitionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpd try { var response = _subscriptionPolicySetDefinitionPolicySetDefinitionsRestClient.CreateOrUpdate(Id.SubscriptionId, policySetDefinitionName, data, cancellationToken); - var operation = new ResourcesArmOperation(Response.FromValue(new SubscriptionPolicySetDefinitionResource(Client, response), response.GetRawResponse())); + var uri = _subscriptionPolicySetDefinitionPolicySetDefinitionsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, policySetDefinitionName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ResourcesArmOperation(Response.FromValue(new SubscriptionPolicySetDefinitionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/SubscriptionPolicySetDefinitionResource.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/SubscriptionPolicySetDefinitionResource.cs index 9c1894f490b4..76b9166c9e9a 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/SubscriptionPolicySetDefinitionResource.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/SubscriptionPolicySetDefinitionResource.cs @@ -198,7 +198,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _subscriptionPolicySetDefinitionPolicySetDefinitionsRestClient.DeleteAsync(Id.SubscriptionId, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new ResourcesArmOperation(response); + var uri = _subscriptionPolicySetDefinitionPolicySetDefinitionsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ResourcesArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -240,7 +242,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _subscriptionPolicySetDefinitionPolicySetDefinitionsRestClient.Delete(Id.SubscriptionId, Id.Name, cancellationToken); - var operation = new ResourcesArmOperation(response); + var uri = _subscriptionPolicySetDefinitionPolicySetDefinitionsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ResourcesArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -286,7 +290,9 @@ public virtual async Task> try { var response = await _subscriptionPolicySetDefinitionPolicySetDefinitionsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new ResourcesArmOperation(Response.FromValue(new SubscriptionPolicySetDefinitionResource(Client, response), response.GetRawResponse())); + var uri = _subscriptionPolicySetDefinitionPolicySetDefinitionsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ResourcesArmOperation(Response.FromValue(new SubscriptionPolicySetDefinitionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -332,7 +338,9 @@ public virtual ArmOperation Update(Wait try { var response = _subscriptionPolicySetDefinitionPolicySetDefinitionsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.Name, data, cancellationToken); - var operation = new ResourcesArmOperation(Response.FromValue(new SubscriptionPolicySetDefinitionResource(Client, response), response.GetRawResponse())); + var uri = _subscriptionPolicySetDefinitionPolicySetDefinitionsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ResourcesArmOperation(Response.FromValue(new SubscriptionPolicySetDefinitionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/resourcemover/Azure.ResourceManager.ResourceMover/src/Generated/LongRunningOperation/ResourceMoverArmOperationOfT.cs b/sdk/resourcemover/Azure.ResourceManager.ResourceMover/src/Generated/LongRunningOperation/ResourceMoverArmOperationOfT.cs index 16e465bbf2c8..92ad4f6962f7 100644 --- a/sdk/resourcemover/Azure.ResourceManager.ResourceMover/src/Generated/LongRunningOperation/ResourceMoverArmOperationOfT.cs +++ b/sdk/resourcemover/Azure.ResourceManager.ResourceMover/src/Generated/LongRunningOperation/ResourceMoverArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class ResourceMoverArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of ResourceMoverArmOperation for mocking. protected ResourceMoverArmOperation() { } - internal ResourceMoverArmOperation(Response response) + internal ResourceMoverArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal ResourceMoverArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "ResourceMoverArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal ResourceMoverArmOperation(IOperationSource source, ClientDiagnostics public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/resourcemover/Azure.ResourceManager.ResourceMover/src/Generated/Models/MoverResource.Serialization.cs b/sdk/resourcemover/Azure.ResourceManager.ResourceMover/src/Generated/Models/MoverResource.Serialization.cs new file mode 100644 index 000000000000..c6dea939de7c --- /dev/null +++ b/sdk/resourcemover/Azure.ResourceManager.ResourceMover/src/Generated/Models/MoverResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ResourceMover +{ + public partial class MoverResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MoverResourceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MoverResourceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/resourcemover/Azure.ResourceManager.ResourceMover/src/Generated/Models/MoverResourceSetResource.Serialization.cs b/sdk/resourcemover/Azure.ResourceManager.ResourceMover/src/Generated/Models/MoverResourceSetResource.Serialization.cs new file mode 100644 index 000000000000..415620393717 --- /dev/null +++ b/sdk/resourcemover/Azure.ResourceManager.ResourceMover/src/Generated/Models/MoverResourceSetResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ResourceMover +{ + public partial class MoverResourceSetResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MoverResourceSetData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MoverResourceSetData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/resourcemover/Azure.ResourceManager.ResourceMover/src/Generated/MoverResourceSetCollection.cs b/sdk/resourcemover/Azure.ResourceManager.ResourceMover/src/Generated/MoverResourceSetCollection.cs index 2dde6101aa9b..7ccf4394b02c 100644 --- a/sdk/resourcemover/Azure.ResourceManager.ResourceMover/src/Generated/MoverResourceSetCollection.cs +++ b/sdk/resourcemover/Azure.ResourceManager.ResourceMover/src/Generated/MoverResourceSetCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> CreateOrUpdate try { var response = await _moverResourceSetMoveCollectionsRestClient.CreateAsync(Id.SubscriptionId, Id.ResourceGroupName, moverResourceSetName, data, cancellationToken).ConfigureAwait(false); - var operation = new ResourceMoverArmOperation(Response.FromValue(new MoverResourceSetResource(Client, response), response.GetRawResponse())); + var uri = _moverResourceSetMoveCollectionsRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, moverResourceSetName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ResourceMoverArmOperation(Response.FromValue(new MoverResourceSetResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -140,7 +142,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil w try { var response = _moverResourceSetMoveCollectionsRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, moverResourceSetName, data, cancellationToken); - var operation = new ResourceMoverArmOperation(Response.FromValue(new MoverResourceSetResource(Client, response), response.GetRawResponse())); + var uri = _moverResourceSetMoveCollectionsRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, moverResourceSetName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ResourceMoverArmOperation(Response.FromValue(new MoverResourceSetResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/resourcemover/Azure.ResourceManager.ResourceMover/src/Generated/RestOperations/MoveCollectionsRestOperations.cs b/sdk/resourcemover/Azure.ResourceManager.ResourceMover/src/Generated/RestOperations/MoveCollectionsRestOperations.cs index dfa30731ef6e..a76a072906ec 100644 --- a/sdk/resourcemover/Azure.ResourceManager.ResourceMover/src/Generated/RestOperations/MoveCollectionsRestOperations.cs +++ b/sdk/resourcemover/Azure.ResourceManager.ResourceMover/src/Generated/RestOperations/MoveCollectionsRestOperations.cs @@ -37,6 +37,20 @@ public MoveCollectionsRestOperations(HttpPipeline pipeline, string applicationId _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string moverResourceSetName, MoverResourceSetData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Migrate/moveCollections/", false); + uri.AppendPath(moverResourceSetName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string moverResourceSetName, MoverResourceSetData data) { var message = _pipeline.CreateMessage(); @@ -125,6 +139,20 @@ public Response Create(string subscriptionId, string resou } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string moverResourceSetName, MoverResourceSetPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Migrate/moveCollections/", false); + uri.AppendPath(moverResourceSetName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string moverResourceSetName, MoverResourceSetPatch patch) { var message = _pipeline.CreateMessage(); @@ -211,6 +239,20 @@ public Response Update(string subscriptionId, string resou } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string moverResourceSetName) + { + 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.Migrate/moveCollections/", false); + uri.AppendPath(moverResourceSetName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string moverResourceSetName) { var message = _pipeline.CreateMessage(); @@ -293,6 +335,21 @@ public Response Get(string subscriptionId, string resource } } + internal RequestUriBuilder CreatePrepareRequestUri(string subscriptionId, string resourceGroupName, string moverResourceSetName, MoverPrepareContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Migrate/moveCollections/", false); + uri.AppendPath(moverResourceSetName, true); + uri.AppendPath("/prepare", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreatePrepareRequest(string subscriptionId, string resourceGroupName, string moverResourceSetName, MoverPrepareContent content) { var message = _pipeline.CreateMessage(); @@ -373,6 +430,21 @@ public Response Prepare(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreateInitiateMoveRequestUri(string subscriptionId, string resourceGroupName, string moverResourceSetName, MoverResourceMoveContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Migrate/moveCollections/", false); + uri.AppendPath(moverResourceSetName, true); + uri.AppendPath("/initiateMove", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateInitiateMoveRequest(string subscriptionId, string resourceGroupName, string moverResourceSetName, MoverResourceMoveContent content) { var message = _pipeline.CreateMessage(); @@ -453,6 +525,21 @@ public Response InitiateMove(string subscriptionId, string resourceGroupName, st } } + internal RequestUriBuilder CreateCommitRequestUri(string subscriptionId, string resourceGroupName, string moverResourceSetName, MoverCommitContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Migrate/moveCollections/", false); + uri.AppendPath(moverResourceSetName, true); + uri.AppendPath("/commit", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCommitRequest(string subscriptionId, string resourceGroupName, string moverResourceSetName, MoverCommitContent content) { var message = _pipeline.CreateMessage(); @@ -533,6 +620,21 @@ public Response Commit(string subscriptionId, string resourceGroupName, string m } } + internal RequestUriBuilder CreateDiscardRequestUri(string subscriptionId, string resourceGroupName, string moverResourceSetName, MoverDiscardContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Migrate/moveCollections/", false); + uri.AppendPath(moverResourceSetName, true); + uri.AppendPath("/discard", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDiscardRequest(string subscriptionId, string resourceGroupName, string moverResourceSetName, MoverDiscardContent content) { var message = _pipeline.CreateMessage(); @@ -613,6 +715,21 @@ public Response Discard(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreateResolveDependenciesRequestUri(string subscriptionId, string resourceGroupName, string moverResourceSetName) + { + 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.Migrate/moveCollections/", false); + uri.AppendPath(moverResourceSetName, true); + uri.AppendPath("/resolveDependencies", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateResolveDependenciesRequest(string subscriptionId, string resourceGroupName, string moverResourceSetName) { var message = _pipeline.CreateMessage(); @@ -684,6 +801,21 @@ public Response ResolveDependencies(string subscriptionId, string resourceGroupN } } + internal RequestUriBuilder CreateBulkRemoveRequestUri(string subscriptionId, string resourceGroupName, string moverResourceSetName, MoverBulkRemoveContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Migrate/moveCollections/", false); + uri.AppendPath(moverResourceSetName, true); + uri.AppendPath("/bulkRemove", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateBulkRemoveRequest(string subscriptionId, string resourceGroupName, string moverResourceSetName, MoverBulkRemoveContent content) { var message = _pipeline.CreateMessage(); @@ -764,6 +896,17 @@ public Response BulkRemove(string subscriptionId, string resourceGroupName, stri } } + internal RequestUriBuilder CreateListMoveCollectionsBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Migrate/moveCollections", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListMoveCollectionsBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -831,6 +974,19 @@ public Response ListMoveCollectionsBySubscription(stri } } + internal RequestUriBuilder CreateListMoveCollectionsByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.Migrate/moveCollections", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListMoveCollectionsByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -904,6 +1060,22 @@ public Response ListMoveCollectionsByResourceGroup(str } } + internal RequestUriBuilder CreateListRequiredForRequestUri(string subscriptionId, string resourceGroupName, string moverResourceSetName, ResourceIdentifier sourceId) + { + 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.Migrate/moveCollections/", false); + uri.AppendPath(moverResourceSetName, true); + uri.AppendPath("/requiredFor", false); + uri.AppendQuery("sourceId", sourceId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequiredForRequest(string subscriptionId, string resourceGroupName, string moverResourceSetName, ResourceIdentifier sourceId) { var message = _pipeline.CreateMessage(); @@ -988,6 +1160,14 @@ public Response ListRequiredFor(string subscriptionId, } } + internal RequestUriBuilder CreateListMoveCollectionsBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListMoveCollectionsBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -1056,6 +1236,14 @@ public Response ListMoveCollectionsBySubscriptionNextP } } + internal RequestUriBuilder CreateListMoveCollectionsByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListMoveCollectionsByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/resourcemover/Azure.ResourceManager.ResourceMover/src/Generated/RestOperations/MoveResourcesRestOperations.cs b/sdk/resourcemover/Azure.ResourceManager.ResourceMover/src/Generated/RestOperations/MoveResourcesRestOperations.cs index 70653cc78ab8..0f838830554e 100644 --- a/sdk/resourcemover/Azure.ResourceManager.ResourceMover/src/Generated/RestOperations/MoveResourcesRestOperations.cs +++ b/sdk/resourcemover/Azure.ResourceManager.ResourceMover/src/Generated/RestOperations/MoveResourcesRestOperations.cs @@ -37,6 +37,25 @@ public MoveResourcesRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string moverResourceSetName, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Migrate/moveCollections/", false); + uri.AppendPath(moverResourceSetName, true); + uri.AppendPath("/moveResources", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string moverResourceSetName, string filter) { var message = _pipeline.CreateMessage(); @@ -122,6 +141,22 @@ public Response List(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string moverResourceSetName, string moverResourceName, MoverResourceData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Migrate/moveCollections/", false); + uri.AppendPath(moverResourceSetName, true); + uri.AppendPath("/moveResources/", false); + uri.AppendPath(moverResourceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string moverResourceSetName, string moverResourceName, MoverResourceData data) { var message = _pipeline.CreateMessage(); @@ -206,6 +241,22 @@ public Response Create(string subscriptionId, string resourceGroupName, string m } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string moverResourceSetName, string moverResourceName) + { + 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.Migrate/moveCollections/", false); + uri.AppendPath(moverResourceSetName, true); + uri.AppendPath("/moveResources/", false); + uri.AppendPath(moverResourceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string moverResourceSetName, string moverResourceName) { var message = _pipeline.CreateMessage(); @@ -284,6 +335,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string m } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string moverResourceSetName, string moverResourceName) + { + 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.Migrate/moveCollections/", false); + uri.AppendPath(moverResourceSetName, true); + uri.AppendPath("/moveResources/", false); + uri.AppendPath(moverResourceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string moverResourceSetName, string moverResourceName) { var message = _pipeline.CreateMessage(); @@ -372,6 +439,14 @@ public Response Get(string subscriptionId, string resourceGro } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string moverResourceSetName, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string moverResourceSetName, string filter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/resourcemover/Azure.ResourceManager.ResourceMover/src/Generated/RestOperations/OperationsDiscoveryRestOperations.cs b/sdk/resourcemover/Azure.ResourceManager.ResourceMover/src/Generated/RestOperations/OperationsDiscoveryRestOperations.cs index 9df690b7d7e5..49a78f3b4905 100644 --- a/sdk/resourcemover/Azure.ResourceManager.ResourceMover/src/Generated/RestOperations/OperationsDiscoveryRestOperations.cs +++ b/sdk/resourcemover/Azure.ResourceManager.ResourceMover/src/Generated/RestOperations/OperationsDiscoveryRestOperations.cs @@ -37,6 +37,15 @@ public OperationsDiscoveryRestOperations(HttpPipeline pipeline, string applicati _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri() + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Migrate/operations", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest() { var message = _pipeline.CreateMessage(); diff --git a/sdk/resourcemover/Azure.ResourceManager.ResourceMover/src/Generated/RestOperations/UnresolvedDependenciesRestOperations.cs b/sdk/resourcemover/Azure.ResourceManager.ResourceMover/src/Generated/RestOperations/UnresolvedDependenciesRestOperations.cs index 040d4a4265a9..2eebe803d759 100644 --- a/sdk/resourcemover/Azure.ResourceManager.ResourceMover/src/Generated/RestOperations/UnresolvedDependenciesRestOperations.cs +++ b/sdk/resourcemover/Azure.ResourceManager.ResourceMover/src/Generated/RestOperations/UnresolvedDependenciesRestOperations.cs @@ -37,6 +37,33 @@ public UnresolvedDependenciesRestOperations(HttpPipeline pipeline, string applic _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string moverResourceSetName, MoverDependencyLevel? dependencyLevel, string orderby, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Migrate/moveCollections/", false); + uri.AppendPath(moverResourceSetName, true); + uri.AppendPath("/unresolvedDependencies", false); + if (dependencyLevel != null) + { + uri.AppendQuery("dependencyLevel", dependencyLevel.Value.ToString(), true); + } + if (orderby != null) + { + uri.AppendQuery("$orderby", orderby, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string moverResourceSetName, MoverDependencyLevel? dependencyLevel, string orderby, string filter) { var message = _pipeline.CreateMessage(); @@ -134,6 +161,14 @@ public Response Get(string subscriptionId, string } } + internal RequestUriBuilder CreateGetNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string moverResourceSetName, MoverDependencyLevel? dependencyLevel, string orderby, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateGetNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string moverResourceSetName, MoverDependencyLevel? dependencyLevel, string orderby, string filter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/ArmDeploymentScriptResource.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/ArmDeploymentScriptResource.cs index aba672fb2cc1..86efbed32259 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/ArmDeploymentScriptResource.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/ArmDeploymentScriptResource.cs @@ -214,7 +214,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _armDeploymentScriptDeploymentScriptsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new ResourcesArmOperation(response); + var uri = _armDeploymentScriptDeploymentScriptsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ResourcesArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -256,7 +258,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _armDeploymentScriptDeploymentScriptsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); - var operation = new ResourcesArmOperation(response); + var uri = _armDeploymentScriptDeploymentScriptsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ResourcesArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/JitRequestResource.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/JitRequestResource.cs index cf08772e6891..177a19780ce6 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/JitRequestResource.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/JitRequestResource.cs @@ -201,7 +201,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _jitRequestRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new ResourcesArmOperation(response); + var uri = _jitRequestRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ResourcesArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -243,7 +245,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _jitRequestRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); - var operation = new ResourcesArmOperation(response); + var uri = _jitRequestRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ResourcesArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/LongRunningOperation/ResourcesArmOperation.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/LongRunningOperation/ResourcesArmOperation.cs index 58dc4748d64d..c565da0edb18 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/LongRunningOperation/ResourcesArmOperation.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/LongRunningOperation/ResourcesArmOperation.cs @@ -20,21 +20,24 @@ internal class ResourcesArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of ResourcesArmOperation for mocking. protected ResourcesArmOperation() { } - internal ResourcesArmOperation(Response response) + internal ResourcesArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal ResourcesArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "ResourcesArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal ResourcesArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/LongRunningOperation/ResourcesArmOperationOfT.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/LongRunningOperation/ResourcesArmOperationOfT.cs index 998e71e76218..4bcc6ba3e9af 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/LongRunningOperation/ResourcesArmOperationOfT.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/LongRunningOperation/ResourcesArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class ResourcesArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of ResourcesArmOperation for mocking. protected ResourcesArmOperation() { } - internal ResourcesArmOperation(Response response) + internal ResourcesArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal ResourcesArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "ResourcesArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal ResourcesArmOperation(IOperationSource source, ClientDiagnostics cli public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationDefinitionResource.Serialization.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationDefinitionResource.Serialization.cs new file mode 100644 index 000000000000..61ae167d37ed --- /dev/null +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationDefinitionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Resources +{ + public partial class ArmApplicationDefinitionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ArmApplicationDefinitionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ArmApplicationDefinitionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationResource.Serialization.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationResource.Serialization.cs new file mode 100644 index 000000000000..6d7d65275496 --- /dev/null +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Resources +{ + public partial class ArmApplicationResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ArmApplicationData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ArmApplicationData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentResource.Serialization.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentResource.Serialization.cs new file mode 100644 index 000000000000..73a2c6ae6cf0 --- /dev/null +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Resources +{ + public partial class ArmDeploymentResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ArmDeploymentData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ArmDeploymentData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentScriptResource.Serialization.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentScriptResource.Serialization.cs new file mode 100644 index 000000000000..51498f8a1741 --- /dev/null +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentScriptResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Resources +{ + public partial class ArmDeploymentScriptResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ArmDeploymentScriptData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ArmDeploymentScriptData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/JitRequestResource.Serialization.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/JitRequestResource.Serialization.cs new file mode 100644 index 000000000000..224cd9ccc1c6 --- /dev/null +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/JitRequestResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Resources +{ + public partial class JitRequestResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + JitRequestData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + JitRequestData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ScriptLogResource.Serialization.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ScriptLogResource.Serialization.cs new file mode 100644 index 000000000000..067df99282a3 --- /dev/null +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ScriptLogResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Resources +{ + public partial class ScriptLogResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ScriptLogData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ScriptLogData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/TemplateSpecResource.Serialization.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/TemplateSpecResource.Serialization.cs new file mode 100644 index 000000000000..deddaa02eb95 --- /dev/null +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/TemplateSpecResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Resources +{ + public partial class TemplateSpecResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + TemplateSpecData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + TemplateSpecData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/TemplateSpecVersionResource.Serialization.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/TemplateSpecVersionResource.Serialization.cs new file mode 100644 index 000000000000..4761adf0493c --- /dev/null +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/TemplateSpecVersionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Resources +{ + public partial class TemplateSpecVersionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + TemplateSpecVersionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + TemplateSpecVersionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/RestOperations/ApplicationDefinitionsRestOperations.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/RestOperations/ApplicationDefinitionsRestOperations.cs index 5817da507de3..020867ed04df 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/RestOperations/ApplicationDefinitionsRestOperations.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/RestOperations/ApplicationDefinitionsRestOperations.cs @@ -37,6 +37,20 @@ public ApplicationDefinitionsRestOperations(HttpPipeline pipeline, string applic _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string applicationDefinitionName) + { + 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.Solutions/applicationDefinitions/", false); + uri.AppendPath(applicationDefinitionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal Core.HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string applicationDefinitionName) { var message = _pipeline.CreateMessage(); @@ -119,6 +133,20 @@ public Response Get(string subscriptionId, string } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string applicationDefinitionName) + { + 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.Solutions/applicationDefinitions/", false); + uri.AppendPath(applicationDefinitionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal Core.HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string applicationDefinitionName) { var message = _pipeline.CreateMessage(); @@ -191,6 +219,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string applicationDefinitionName, ArmApplicationDefinitionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Solutions/applicationDefinitions/", false); + uri.AppendPath(applicationDefinitionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal Core.HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string applicationDefinitionName, ArmApplicationDefinitionData data) { var message = _pipeline.CreateMessage(); @@ -269,6 +311,19 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.Solutions/applicationDefinitions", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal Core.HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -342,6 +397,14 @@ public Response ListByResourceGroup(string s } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal Core.HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/RestOperations/ApplicationsRestOperations.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/RestOperations/ApplicationsRestOperations.cs index 411f9f240e32..15229ea84ad5 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/RestOperations/ApplicationsRestOperations.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/RestOperations/ApplicationsRestOperations.cs @@ -37,6 +37,20 @@ public ApplicationsRestOperations(HttpPipeline pipeline, string applicationId, U _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string applicationName) + { + 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.Solutions/applications/", false); + uri.AppendPath(applicationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal Core.HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string applicationName) { var message = _pipeline.CreateMessage(); @@ -119,6 +133,20 @@ public Response Get(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string applicationName) + { + 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.Solutions/applications/", false); + uri.AppendPath(applicationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal Core.HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string applicationName) { var message = _pipeline.CreateMessage(); @@ -189,6 +217,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string applicationName, ArmApplicationData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Solutions/applications/", false); + uri.AppendPath(applicationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal Core.HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string applicationName, ArmApplicationData data) { var message = _pipeline.CreateMessage(); @@ -267,6 +309,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string applicationName, ArmApplicationPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Solutions/applications/", false); + uri.AppendPath(applicationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal Core.HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string applicationName, ArmApplicationPatch patch) { var message = _pipeline.CreateMessage(); @@ -357,6 +413,19 @@ public Response Update(string subscriptionId, string resourc } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.Solutions/applications", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal Core.HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -430,6 +499,17 @@ public Response ListByResourceGroup(string subscriptio } } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Solutions/applications", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal Core.HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -497,6 +577,21 @@ public Response ListBySubscription(string subscription } } + internal RequestUriBuilder CreateRefreshPermissionsRequestUri(string subscriptionId, string resourceGroupName, string applicationName) + { + 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.Solutions/applications/", false); + uri.AppendPath(applicationName, true); + uri.AppendPath("/refreshPermissions", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal Core.HttpMessage CreateRefreshPermissionsRequest(string subscriptionId, string resourceGroupName, string applicationName) { var message = _pipeline.CreateMessage(); @@ -566,6 +661,14 @@ public Response RefreshPermissions(string subscriptionId, string resourceGroupNa } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal Core.HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -638,6 +741,14 @@ public Response ListByResourceGroupNextPage(string nex } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal Core.HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/RestOperations/DeploymentRestOperations.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/RestOperations/DeploymentRestOperations.cs index 143e815aad04..5425beb39ec1 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/RestOperations/DeploymentRestOperations.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/RestOperations/DeploymentRestOperations.cs @@ -37,6 +37,20 @@ public DeploymentRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetAtScopeRequestUri(string scope, string deploymentName, string operationId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.Resources/deployments/", false); + uri.AppendPath(deploymentName, true); + uri.AppendPath("/operations/", false); + uri.AppendPath(operationId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal Core.HttpMessage CreateGetAtScopeRequest(string scope, string deploymentName, string operationId) { var message = _pipeline.CreateMessage(); @@ -115,6 +129,23 @@ public Response GetAtScope(string scope, string deployme } } + internal RequestUriBuilder CreateListAtScopeRequestUri(string scope, string deploymentName, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.Resources/deployments/", false); + uri.AppendPath(deploymentName, true); + uri.AppendPath("/operations", false); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal Core.HttpMessage CreateListAtScopeRequest(string scope, string deploymentName, int? top) { var message = _pipeline.CreateMessage(); @@ -194,6 +225,14 @@ public Response ListAtScope(string scope, str } } + internal RequestUriBuilder CreateListAtScopeNextPageRequestUri(string nextLink, string scope, string deploymentName, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal Core.HttpMessage CreateListAtScopeNextPageRequest(string nextLink, string scope, string deploymentName, int? top) { var message = _pipeline.CreateMessage(); diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/RestOperations/DeploymentScriptsRestOperations.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/RestOperations/DeploymentScriptsRestOperations.cs index aec5d90b99c8..7942fa208e3f 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/RestOperations/DeploymentScriptsRestOperations.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/RestOperations/DeploymentScriptsRestOperations.cs @@ -37,6 +37,20 @@ public DeploymentScriptsRestOperations(HttpPipeline pipeline, string application _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string scriptName, ArmDeploymentScriptData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourcegroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Resources/deploymentScripts/", false); + uri.AppendPath(scriptName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal Core.HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string scriptName, ArmDeploymentScriptData data) { var message = _pipeline.CreateMessage(); @@ -115,6 +129,20 @@ public Response Create(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string scriptName, ArmDeploymentScriptPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourcegroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Resources/deploymentScripts/", false); + uri.AppendPath(scriptName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal Core.HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string scriptName, ArmDeploymentScriptPatch patch) { var message = _pipeline.CreateMessage(); @@ -201,6 +229,20 @@ public Response Update(string subscriptionId, string re } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string scriptName) + { + 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.Resources/deploymentScripts/", false); + uri.AppendPath(scriptName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal Core.HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string scriptName) { var message = _pipeline.CreateMessage(); @@ -283,6 +325,20 @@ public Response Get(string subscriptionId, string resou } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string scriptName) + { + 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.Resources/deploymentScripts/", false); + uri.AppendPath(scriptName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal Core.HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string scriptName) { var message = _pipeline.CreateMessage(); @@ -353,6 +409,17 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Resources/deploymentScripts", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal Core.HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -420,6 +487,21 @@ public Response ListBySubscription(string subscri } } + internal RequestUriBuilder CreateGetLogsRequestUri(string subscriptionId, string resourceGroupName, string scriptName) + { + 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.Resources/deploymentScripts/", false); + uri.AppendPath(scriptName, true); + uri.AppendPath("/logs", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal Core.HttpMessage CreateGetLogsRequest(string subscriptionId, string resourceGroupName, string scriptName) { var message = _pipeline.CreateMessage(); @@ -499,6 +581,25 @@ public Response GetLogs(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateGetLogsDefaultRequestUri(string subscriptionId, string resourceGroupName, string scriptName, int? tail) + { + 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.Resources/deploymentScripts/", false); + uri.AppendPath(scriptName, true); + uri.AppendPath("/logs/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (tail != null) + { + uri.AppendQuery("tail", tail.Value, true); + } + return uri; + } + internal Core.HttpMessage CreateGetLogsDefaultRequest(string subscriptionId, string resourceGroupName, string scriptName, int? tail) { var message = _pipeline.CreateMessage(); @@ -588,6 +689,19 @@ public Response GetLogsDefault(string subscriptionId, string reso } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.Resources/deploymentScripts", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal Core.HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -661,6 +775,14 @@ public Response ListByResourceGroup(string subscr } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal Core.HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -729,6 +851,14 @@ public Response ListBySubscriptionNextPage(string } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal Core.HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/RestOperations/DeploymentsRestOperations.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/RestOperations/DeploymentsRestOperations.cs index d5a1ae51ab3d..888a99e3d061 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/RestOperations/DeploymentsRestOperations.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/RestOperations/DeploymentsRestOperations.cs @@ -37,6 +37,18 @@ public DeploymentsRestOperations(HttpPipeline pipeline, string applicationId, Ur _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateDeleteAtScopeRequestUri(string scope, string deploymentName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.Resources/deployments/", false); + uri.AppendPath(deploymentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal Core.HttpMessage CreateDeleteAtScopeRequest(string scope, string deploymentName) { var message = _pipeline.CreateMessage(); @@ -101,6 +113,18 @@ public Response DeleteAtScope(string scope, string deploymentName, CancellationT } } + internal RequestUriBuilder CreateCheckExistenceAtScopeRequestUri(string scope, string deploymentName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.Resources/deployments/", false); + uri.AppendPath(deploymentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal Core.HttpMessage CreateCheckExistenceAtScopeRequest(string scope, string deploymentName) { var message = _pipeline.CreateMessage(); @@ -165,6 +189,18 @@ public Response CheckExistenceAtScope(string scope, string deploymentName, Cance } } + internal RequestUriBuilder CreateCreateOrUpdateAtScopeRequestUri(string scope, string deploymentName, ArmDeploymentContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.Resources/deployments/", false); + uri.AppendPath(deploymentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal Core.HttpMessage CreateCreateOrUpdateAtScopeRequest(string scope, string deploymentName, ArmDeploymentContent content) { var message = _pipeline.CreateMessage(); @@ -237,6 +273,18 @@ public Response CreateOrUpdateAtScope(string scope, string deploymentName, ArmDe } } + internal RequestUriBuilder CreateGetAtScopeRequestUri(string scope, string deploymentName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.Resources/deployments/", false); + uri.AppendPath(deploymentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal Core.HttpMessage CreateGetAtScopeRequest(string scope, string deploymentName) { var message = _pipeline.CreateMessage(); @@ -313,6 +361,19 @@ public Response GetAtScope(string scope, string deploymentNam } } + internal RequestUriBuilder CreateCancelAtScopeRequestUri(string scope, string deploymentName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.Resources/deployments/", false); + uri.AppendPath(deploymentName, true); + uri.AppendPath("/cancel", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal Core.HttpMessage CreateCancelAtScopeRequest(string scope, string deploymentName) { var message = _pipeline.CreateMessage(); @@ -376,6 +437,19 @@ public Response CancelAtScope(string scope, string deploymentName, CancellationT } } + internal RequestUriBuilder CreateValidateAtScopeRequestUri(string scope, string deploymentName, ArmDeploymentContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.Resources/deployments/", false); + uri.AppendPath(deploymentName, true); + uri.AppendPath("/validate", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal Core.HttpMessage CreateValidateAtScopeRequest(string scope, string deploymentName, ArmDeploymentContent content) { var message = _pipeline.CreateMessage(); @@ -451,6 +525,19 @@ public Response ValidateAtScope(string scope, string deploymentName, ArmDeployme } } + internal RequestUriBuilder CreateExportTemplateAtScopeRequestUri(string scope, string deploymentName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.Resources/deployments/", false); + uri.AppendPath(deploymentName, true); + uri.AppendPath("/exportTemplate", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal Core.HttpMessage CreateExportTemplateAtScopeRequest(string scope, string deploymentName) { var message = _pipeline.CreateMessage(); @@ -524,6 +611,25 @@ public Response ExportTemplateAtScope(string scope, s } } + internal RequestUriBuilder CreateListAtScopeRequestUri(string scope, string filter, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.Resources/deployments/", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal Core.HttpMessage CreateListAtScopeRequest(string scope, string filter, int? top) { var message = _pipeline.CreateMessage(); @@ -601,6 +707,17 @@ public Response ListAtScope(string scope, string filter } } + internal RequestUriBuilder CreateWhatIfAtTenantScopeRequestUri(string deploymentName, ArmDeploymentWhatIfContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Resources/deployments/", false); + uri.AppendPath(deploymentName, true); + uri.AppendPath("/whatIf", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal Core.HttpMessage CreateWhatIfAtTenantScopeRequest(string deploymentName, ArmDeploymentWhatIfContent content) { var message = _pipeline.CreateMessage(); @@ -668,6 +785,19 @@ public Response WhatIfAtTenantScope(string deploymentName, ArmDeploymentWhatIfCo } } + internal RequestUriBuilder CreateWhatIfAtManagementGroupScopeRequestUri(string groupId, string deploymentName, ArmDeploymentWhatIfContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Management/managementGroups/", false); + uri.AppendPath(groupId, true); + uri.AppendPath("/providers/Microsoft.Resources/deployments/", false); + uri.AppendPath(deploymentName, true); + uri.AppendPath("/whatIf", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal Core.HttpMessage CreateWhatIfAtManagementGroupScopeRequest(string groupId, string deploymentName, ArmDeploymentWhatIfContent content) { var message = _pipeline.CreateMessage(); @@ -741,6 +871,19 @@ public Response WhatIfAtManagementGroupScope(string groupId, string deploymentNa } } + internal RequestUriBuilder CreateWhatIfAtSubscriptionScopeRequestUri(string subscriptionId, string deploymentName, ArmDeploymentWhatIfContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Resources/deployments/", false); + uri.AppendPath(deploymentName, true); + uri.AppendPath("/whatIf", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal Core.HttpMessage CreateWhatIfAtSubscriptionScopeRequest(string subscriptionId, string deploymentName, ArmDeploymentWhatIfContent content) { var message = _pipeline.CreateMessage(); @@ -814,6 +957,21 @@ public Response WhatIfAtSubscriptionScope(string subscriptionId, string deployme } } + internal RequestUriBuilder CreateWhatIfRequestUri(string subscriptionId, string resourceGroupName, string deploymentName, ArmDeploymentWhatIfContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourcegroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Resources/deployments/", false); + uri.AppendPath(deploymentName, true); + uri.AppendPath("/whatIf", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal Core.HttpMessage CreateWhatIfRequest(string subscriptionId, string resourceGroupName, string deploymentName, ArmDeploymentWhatIfContent content) { var message = _pipeline.CreateMessage(); @@ -893,6 +1051,15 @@ public Response WhatIf(string subscriptionId, string resourceGroupName, string d } } + internal RequestUriBuilder CreateCalculateTemplateHashRequestUri(BinaryData template) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Resources/calculateTemplateHash", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal Core.HttpMessage CreateCalculateTemplateHashRequest(BinaryData template) { var message = _pipeline.CreateMessage(); @@ -967,6 +1134,14 @@ public Response CalculateTemplateHash(BinaryData template, C } } + internal RequestUriBuilder CreateListAtScopeNextPageRequestUri(string nextLink, string scope, string filter, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal Core.HttpMessage CreateListAtScopeNextPageRequest(string nextLink, string scope, string filter, int? top) { var message = _pipeline.CreateMessage(); diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/RestOperations/JitRequestsRestOperations.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/RestOperations/JitRequestsRestOperations.cs index aca70a4acc66..18b8f97b1c55 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/RestOperations/JitRequestsRestOperations.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/RestOperations/JitRequestsRestOperations.cs @@ -37,6 +37,20 @@ public JitRequestsRestOperations(HttpPipeline pipeline, string applicationId, Ur _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string jitRequestName) + { + 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.Solutions/jitRequests/", false); + uri.AppendPath(jitRequestName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal Core.HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string jitRequestName) { var message = _pipeline.CreateMessage(); @@ -119,6 +133,20 @@ public Response Get(string subscriptionId, string resourceGroupN } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string jitRequestName, JitRequestData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Solutions/jitRequests/", false); + uri.AppendPath(jitRequestName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal Core.HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string jitRequestName, JitRequestData data) { var message = _pipeline.CreateMessage(); @@ -197,6 +225,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string jitRequestName, JitRequestPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Solutions/jitRequests/", false); + uri.AppendPath(jitRequestName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal Core.HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string jitRequestName, JitRequestPatch patch) { var message = _pipeline.CreateMessage(); @@ -283,6 +325,20 @@ public Response Update(string subscriptionId, string resourceGro } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string jitRequestName) + { + 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.Solutions/jitRequests/", false); + uri.AppendPath(jitRequestName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal Core.HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string jitRequestName) { var message = _pipeline.CreateMessage(); @@ -353,6 +409,17 @@ public Response Delete(string subscriptionId, string resourceGroupName, string j } } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Solutions/jitRequests", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal Core.HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -420,6 +487,19 @@ public Response ListBySubscription(string subscriptionId, } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.Solutions/jitRequests", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal Core.HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/RestOperations/TemplateSpecVersionsRestOperations.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/RestOperations/TemplateSpecVersionsRestOperations.cs index d26ed01f57b9..242c60991eda 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/RestOperations/TemplateSpecVersionsRestOperations.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/RestOperations/TemplateSpecVersionsRestOperations.cs @@ -37,6 +37,22 @@ public TemplateSpecVersionsRestOperations(HttpPipeline pipeline, string applicat _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string templateSpecName, string templateSpecVersion, TemplateSpecVersionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Resources/templateSpecs/", false); + uri.AppendPath(templateSpecName, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(templateSpecVersion, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal Core.HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string templateSpecName, string templateSpecVersion, TemplateSpecVersionData data) { var message = _pipeline.CreateMessage(); @@ -131,6 +147,22 @@ public Response CreateOrUpdate(string subscriptionId, s } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string templateSpecName, string templateSpecVersion, TemplateSpecVersionPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Resources/templateSpecs/", false); + uri.AppendPath(templateSpecName, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(templateSpecVersion, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal Core.HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string templateSpecName, string templateSpecVersion, TemplateSpecVersionPatch patch) { var message = _pipeline.CreateMessage(); @@ -223,6 +255,22 @@ public Response Update(string subscriptionId, string re } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string templateSpecName, string templateSpecVersion) + { + 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.Resources/templateSpecs/", false); + uri.AppendPath(templateSpecName, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(templateSpecVersion, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal Core.HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string templateSpecName, string templateSpecVersion) { var message = _pipeline.CreateMessage(); @@ -311,6 +359,22 @@ public Response Get(string subscriptionId, string resou } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string templateSpecName, string templateSpecVersion) + { + 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.Resources/templateSpecs/", false); + uri.AppendPath(templateSpecName, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(templateSpecVersion, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal Core.HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string templateSpecName, string templateSpecVersion) { var message = _pipeline.CreateMessage(); @@ -387,6 +451,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string t } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string templateSpecName) + { + 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.Resources/templateSpecs/", false); + uri.AppendPath(templateSpecName, true); + uri.AppendPath("/versions", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal Core.HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string templateSpecName) { var message = _pipeline.CreateMessage(); @@ -466,6 +545,14 @@ public Response List(string subscriptionId, stri } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string templateSpecName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal Core.HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string templateSpecName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/RestOperations/TemplateSpecsRestOperations.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/RestOperations/TemplateSpecsRestOperations.cs index 5f4d2cc7f047..41d3bdba5385 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/RestOperations/TemplateSpecsRestOperations.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/RestOperations/TemplateSpecsRestOperations.cs @@ -37,6 +37,20 @@ public TemplateSpecsRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string templateSpecName, TemplateSpecData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Resources/templateSpecs/", false); + uri.AppendPath(templateSpecName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal Core.HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string templateSpecName, TemplateSpecData data) { var message = _pipeline.CreateMessage(); @@ -125,6 +139,20 @@ public Response CreateOrUpdate(string subscriptionId, string r } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string templateSpecName, TemplateSpecPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Resources/templateSpecs/", false); + uri.AppendPath(templateSpecName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal Core.HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string templateSpecName, TemplateSpecPatch patch) { var message = _pipeline.CreateMessage(); @@ -211,6 +239,24 @@ public Response Update(string subscriptionId, string resourceG } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string templateSpecName, TemplateSpecExpandKind? expand) + { + 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.Resources/templateSpecs/", false); + uri.AppendPath(templateSpecName, true); + if (expand != null) + { + uri.AppendQuery("$expand", expand.Value.ToString(), true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal Core.HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string templateSpecName, TemplateSpecExpandKind? expand) { var message = _pipeline.CreateMessage(); @@ -299,6 +345,20 @@ public Response Get(string subscriptionId, string resourceGrou } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string templateSpecName) + { + 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.Resources/templateSpecs/", false); + uri.AppendPath(templateSpecName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal Core.HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string templateSpecName) { var message = _pipeline.CreateMessage(); @@ -369,6 +429,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string t } } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId, TemplateSpecExpandKind? expand) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Resources/templateSpecs/", false); + if (expand != null) + { + uri.AppendQuery("$expand", expand.Value.ToString(), true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal Core.HttpMessage CreateListBySubscriptionRequest(string subscriptionId, TemplateSpecExpandKind? expand) { var message = _pipeline.CreateMessage(); @@ -442,6 +517,23 @@ public Response ListBySubscription(string subscriptionI } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName, TemplateSpecExpandKind? expand) + { + 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.Resources/templateSpecs/", false); + if (expand != null) + { + uri.AppendQuery("$expand", expand.Value.ToString(), true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal Core.HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName, TemplateSpecExpandKind? expand) { var message = _pipeline.CreateMessage(); @@ -521,6 +613,14 @@ public Response ListByResourceGroup(string subscription } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId, TemplateSpecExpandKind? expand) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal Core.HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId, TemplateSpecExpandKind? expand) { var message = _pipeline.CreateMessage(); @@ -591,6 +691,14 @@ public Response ListBySubscriptionNextPage(string nextL } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, TemplateSpecExpandKind? expand) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal Core.HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, TemplateSpecExpandKind? expand) { var message = _pipeline.CreateMessage(); diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/TemplateSpecCollection.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/TemplateSpecCollection.cs index 47ff32110bc4..0f2ad8a74283 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/TemplateSpecCollection.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/TemplateSpecCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> CreateOrUpdateAsyn try { var response = await _templateSpecRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, templateSpecName, data, cancellationToken).ConfigureAwait(false); - var operation = new ResourcesArmOperation(Response.FromValue(new TemplateSpecResource(Client, response), response.GetRawResponse())); + var uri = _templateSpecRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, templateSpecName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ResourcesArmOperation(Response.FromValue(new TemplateSpecResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -140,7 +142,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitU try { var response = _templateSpecRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, templateSpecName, data, cancellationToken); - var operation = new ResourcesArmOperation(Response.FromValue(new TemplateSpecResource(Client, response), response.GetRawResponse())); + var uri = _templateSpecRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, templateSpecName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ResourcesArmOperation(Response.FromValue(new TemplateSpecResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/TemplateSpecResource.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/TemplateSpecResource.cs index df436ca70411..47cdc426ca9b 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/TemplateSpecResource.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/TemplateSpecResource.cs @@ -272,7 +272,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _templateSpecRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new ResourcesArmOperation(response); + var uri = _templateSpecRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ResourcesArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -314,7 +316,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _templateSpecRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); - var operation = new ResourcesArmOperation(response); + var uri = _templateSpecRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ResourcesArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/TemplateSpecVersionCollection.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/TemplateSpecVersionCollection.cs index 7c765c61e9b7..7592876a9d4a 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/TemplateSpecVersionCollection.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/TemplateSpecVersionCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> CreateOrUpd try { var response = await _templateSpecVersionRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, templateSpecVersion, data, cancellationToken).ConfigureAwait(false); - var operation = new ResourcesArmOperation(Response.FromValue(new TemplateSpecVersionResource(Client, response), response.GetRawResponse())); + var uri = _templateSpecVersionRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, templateSpecVersion, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ResourcesArmOperation(Response.FromValue(new TemplateSpecVersionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUnti try { var response = _templateSpecVersionRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, templateSpecVersion, data, cancellationToken); - var operation = new ResourcesArmOperation(Response.FromValue(new TemplateSpecVersionResource(Client, response), response.GetRawResponse())); + var uri = _templateSpecVersionRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, templateSpecVersion, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ResourcesArmOperation(Response.FromValue(new TemplateSpecVersionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/TemplateSpecVersionResource.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/TemplateSpecVersionResource.cs index 8ec402fe8b69..42f6ccdef927 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/TemplateSpecVersionResource.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/TemplateSpecVersionResource.cs @@ -202,7 +202,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _templateSpecVersionRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new ResourcesArmOperation(response); + var uri = _templateSpecVersionRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ResourcesArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -244,7 +246,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _templateSpecVersionRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new ResourcesArmOperation(response); + var uri = _templateSpecVersionRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ResourcesArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/search/Azure.ResourceManager.Search/src/Generated/LongRunningOperation/SearchArmOperation.cs b/sdk/search/Azure.ResourceManager.Search/src/Generated/LongRunningOperation/SearchArmOperation.cs index b8cf3520459b..e1b8ce0bf5e8 100644 --- a/sdk/search/Azure.ResourceManager.Search/src/Generated/LongRunningOperation/SearchArmOperation.cs +++ b/sdk/search/Azure.ResourceManager.Search/src/Generated/LongRunningOperation/SearchArmOperation.cs @@ -20,21 +20,24 @@ internal class SearchArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of SearchArmOperation for mocking. protected SearchArmOperation() { } - internal SearchArmOperation(Response response) + internal SearchArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal SearchArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "SearchArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal SearchArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pi public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/search/Azure.ResourceManager.Search/src/Generated/LongRunningOperation/SearchArmOperationOfT.cs b/sdk/search/Azure.ResourceManager.Search/src/Generated/LongRunningOperation/SearchArmOperationOfT.cs index 5e1ef6a1a39c..93bbdb088956 100644 --- a/sdk/search/Azure.ResourceManager.Search/src/Generated/LongRunningOperation/SearchArmOperationOfT.cs +++ b/sdk/search/Azure.ResourceManager.Search/src/Generated/LongRunningOperation/SearchArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class SearchArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of SearchArmOperation for mocking. protected SearchArmOperation() { } - internal SearchArmOperation(Response response) + internal SearchArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal SearchArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "SearchArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal SearchArmOperation(IOperationSource source, ClientDiagnostics client public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchPrivateEndpointConnectionResource.Serialization.cs b/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchPrivateEndpointConnectionResource.Serialization.cs new file mode 100644 index 000000000000..6b918389ba97 --- /dev/null +++ b/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchPrivateEndpointConnectionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Search +{ + public partial class SearchPrivateEndpointConnectionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SearchPrivateEndpointConnectionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SearchPrivateEndpointConnectionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchServiceResource.Serialization.cs b/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchServiceResource.Serialization.cs new file mode 100644 index 000000000000..08014daa4733 --- /dev/null +++ b/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchServiceResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Search +{ + public partial class SearchServiceResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SearchServiceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SearchServiceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SharedSearchServicePrivateLinkResource.Serialization.cs b/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SharedSearchServicePrivateLinkResource.Serialization.cs new file mode 100644 index 000000000000..55ab5f01d76e --- /dev/null +++ b/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SharedSearchServicePrivateLinkResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Search +{ + public partial class SharedSearchServicePrivateLinkResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SharedSearchServicePrivateLinkResourceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SharedSearchServicePrivateLinkResourceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/search/Azure.ResourceManager.Search/src/Generated/RestOperations/AdminKeysRestOperations.cs b/sdk/search/Azure.ResourceManager.Search/src/Generated/RestOperations/AdminKeysRestOperations.cs index 60992c2008c0..49fe46e90b60 100644 --- a/sdk/search/Azure.ResourceManager.Search/src/Generated/RestOperations/AdminKeysRestOperations.cs +++ b/sdk/search/Azure.ResourceManager.Search/src/Generated/RestOperations/AdminKeysRestOperations.cs @@ -37,6 +37,21 @@ public AdminKeysRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string searchServiceName, SearchManagementRequestOptions searchManagementRequestOptions) + { + 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.Search/searchServices/", false); + uri.AppendPath(searchServiceName, true); + uri.AppendPath("/listAdminKeys", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string searchServiceName, SearchManagementRequestOptions searchManagementRequestOptions) { var message = _pipeline.CreateMessage(); @@ -118,6 +133,22 @@ public Response Get(string subscriptionId, string r } } + internal RequestUriBuilder CreateRegenerateRequestUri(string subscriptionId, string resourceGroupName, string searchServiceName, SearchServiceAdminKeyKind keyKind, SearchManagementRequestOptions searchManagementRequestOptions) + { + 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.Search/searchServices/", false); + uri.AppendPath(searchServiceName, true); + uri.AppendPath("/regenerateAdminKey/", false); + uri.AppendPath(keyKind.ToSerialString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRegenerateRequest(string subscriptionId, string resourceGroupName, string searchServiceName, SearchServiceAdminKeyKind keyKind, SearchManagementRequestOptions searchManagementRequestOptions) { var message = _pipeline.CreateMessage(); diff --git a/sdk/search/Azure.ResourceManager.Search/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs b/sdk/search/Azure.ResourceManager.Search/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs index 57fa21ce230f..5e8d66a3b041 100644 --- a/sdk/search/Azure.ResourceManager.Search/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs +++ b/sdk/search/Azure.ResourceManager.Search/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs @@ -37,6 +37,22 @@ public PrivateEndpointConnectionsRestOperations(HttpPipeline pipeline, string ap _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string searchServiceName, string privateEndpointConnectionName, SearchPrivateEndpointConnectionData data, SearchManagementRequestOptions searchManagementRequestOptions) + { + 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.Search/searchServices/", false); + uri.AppendPath(searchServiceName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string searchServiceName, string privateEndpointConnectionName, SearchPrivateEndpointConnectionData data, SearchManagementRequestOptions searchManagementRequestOptions) { var message = _pipeline.CreateMessage(); @@ -131,6 +147,22 @@ public Response Update(string subscriptionI } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string searchServiceName, string privateEndpointConnectionName, SearchManagementRequestOptions searchManagementRequestOptions) + { + 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.Search/searchServices/", false); + uri.AppendPath(searchServiceName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string searchServiceName, string privateEndpointConnectionName, SearchManagementRequestOptions searchManagementRequestOptions) { var message = _pipeline.CreateMessage(); @@ -221,6 +253,22 @@ public Response Get(string subscriptionId, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string searchServiceName, string privateEndpointConnectionName, SearchManagementRequestOptions searchManagementRequestOptions) + { + 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.Search/searchServices/", false); + uri.AppendPath(searchServiceName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string searchServiceName, string privateEndpointConnectionName, SearchManagementRequestOptions searchManagementRequestOptions) { var message = _pipeline.CreateMessage(); @@ -311,6 +359,21 @@ public Response Delete(string subscriptionI } } + internal RequestUriBuilder CreateListByServiceRequestUri(string subscriptionId, string resourceGroupName, string searchServiceName, SearchManagementRequestOptions searchManagementRequestOptions) + { + 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.Search/searchServices/", false); + uri.AppendPath(searchServiceName, true); + uri.AppendPath("/privateEndpointConnections", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByServiceRequest(string subscriptionId, string resourceGroupName, string searchServiceName, SearchManagementRequestOptions searchManagementRequestOptions) { var message = _pipeline.CreateMessage(); @@ -392,6 +455,14 @@ public Response ListByService(string } } + internal RequestUriBuilder CreateListByServiceNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string searchServiceName, SearchManagementRequestOptions searchManagementRequestOptions) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByServiceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string searchServiceName, SearchManagementRequestOptions searchManagementRequestOptions) { var message = _pipeline.CreateMessage(); diff --git a/sdk/search/Azure.ResourceManager.Search/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs b/sdk/search/Azure.ResourceManager.Search/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs index 784ff23d43a5..982ccdfc48af 100644 --- a/sdk/search/Azure.ResourceManager.Search/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs +++ b/sdk/search/Azure.ResourceManager.Search/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs @@ -37,6 +37,21 @@ public PrivateLinkResourcesRestOperations(HttpPipeline pipeline, string applicat _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListSupportedRequestUri(string subscriptionId, string resourceGroupName, string searchServiceName, SearchManagementRequestOptions searchManagementRequestOptions) + { + 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.Search/searchServices/", false); + uri.AppendPath(searchServiceName, true); + uri.AppendPath("/privateLinkResources", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListSupportedRequest(string subscriptionId, string resourceGroupName, string searchServiceName, SearchManagementRequestOptions searchManagementRequestOptions) { var message = _pipeline.CreateMessage(); diff --git a/sdk/search/Azure.ResourceManager.Search/src/Generated/RestOperations/QueryKeysRestOperations.cs b/sdk/search/Azure.ResourceManager.Search/src/Generated/RestOperations/QueryKeysRestOperations.cs index 987e342de6c1..5370964cee43 100644 --- a/sdk/search/Azure.ResourceManager.Search/src/Generated/RestOperations/QueryKeysRestOperations.cs +++ b/sdk/search/Azure.ResourceManager.Search/src/Generated/RestOperations/QueryKeysRestOperations.cs @@ -37,6 +37,22 @@ public QueryKeysRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string searchServiceName, string name, SearchManagementRequestOptions searchManagementRequestOptions) + { + 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.Search/searchServices/", false); + uri.AppendPath(searchServiceName, true); + uri.AppendPath("/createQueryKey/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string searchServiceName, string name, SearchManagementRequestOptions searchManagementRequestOptions) { var message = _pipeline.CreateMessage(); @@ -123,6 +139,21 @@ public Response Create(string subscriptionId, string reso } } + internal RequestUriBuilder CreateListBySearchServiceRequestUri(string subscriptionId, string resourceGroupName, string searchServiceName, SearchManagementRequestOptions searchManagementRequestOptions) + { + 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.Search/searchServices/", false); + uri.AppendPath(searchServiceName, true); + uri.AppendPath("/listQueryKeys", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySearchServiceRequest(string subscriptionId, string resourceGroupName, string searchServiceName, SearchManagementRequestOptions searchManagementRequestOptions) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response ListBySearchService(string subscriptionId, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string searchServiceName, string key, SearchManagementRequestOptions searchManagementRequestOptions) + { + 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.Search/searchServices/", false); + uri.AppendPath(searchServiceName, true); + uri.AppendPath("/deleteQueryKey/", false); + uri.AppendPath(key, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string searchServiceName, string key, SearchManagementRequestOptions searchManagementRequestOptions) { var message = _pipeline.CreateMessage(); @@ -284,6 +331,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListBySearchServiceNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string searchServiceName, SearchManagementRequestOptions searchManagementRequestOptions) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySearchServiceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string searchServiceName, SearchManagementRequestOptions searchManagementRequestOptions) { var message = _pipeline.CreateMessage(); diff --git a/sdk/search/Azure.ResourceManager.Search/src/Generated/RestOperations/SearchManagementRestOperations.cs b/sdk/search/Azure.ResourceManager.Search/src/Generated/RestOperations/SearchManagementRestOperations.cs index 4dc6f88e0198..526aac47e99a 100644 --- a/sdk/search/Azure.ResourceManager.Search/src/Generated/RestOperations/SearchManagementRestOperations.cs +++ b/sdk/search/Azure.ResourceManager.Search/src/Generated/RestOperations/SearchManagementRestOperations.cs @@ -37,6 +37,20 @@ public SearchManagementRestOperations(HttpPipeline pipeline, string applicationI _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateUsageBySubscriptionSkuRequestUri(string subscriptionId, AzureLocation location, string skuName, SearchManagementRequestOptions searchManagementRequestOptions) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Search/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/usages/", false); + uri.AppendPath(skuName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUsageBySubscriptionSkuRequest(string subscriptionId, AzureLocation location, string skuName, SearchManagementRequestOptions searchManagementRequestOptions) { var message = _pipeline.CreateMessage(); diff --git a/sdk/search/Azure.ResourceManager.Search/src/Generated/RestOperations/ServicesRestOperations.cs b/sdk/search/Azure.ResourceManager.Search/src/Generated/RestOperations/ServicesRestOperations.cs index 35e4c64d47cf..9149c7395001 100644 --- a/sdk/search/Azure.ResourceManager.Search/src/Generated/RestOperations/ServicesRestOperations.cs +++ b/sdk/search/Azure.ResourceManager.Search/src/Generated/RestOperations/ServicesRestOperations.cs @@ -37,6 +37,20 @@ public ServicesRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string searchServiceName, SearchServiceData data, SearchManagementRequestOptions searchManagementRequestOptions) + { + 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.Search/searchServices/", false); + uri.AppendPath(searchServiceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string searchServiceName, SearchServiceData data, SearchManagementRequestOptions searchManagementRequestOptions) { var message = _pipeline.CreateMessage(); @@ -117,6 +131,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string searchServiceName, SearchServicePatch patch, SearchManagementRequestOptions searchManagementRequestOptions) + { + 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.Search/searchServices/", false); + uri.AppendPath(searchServiceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string searchServiceName, SearchServicePatch patch, SearchManagementRequestOptions searchManagementRequestOptions) { var message = _pipeline.CreateMessage(); @@ -205,6 +233,20 @@ public Response Update(string subscriptionId, string resource } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string searchServiceName, SearchManagementRequestOptions searchManagementRequestOptions) + { + 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.Search/searchServices/", false); + uri.AppendPath(searchServiceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string searchServiceName, SearchManagementRequestOptions searchManagementRequestOptions) { var message = _pipeline.CreateMessage(); @@ -289,6 +331,20 @@ public Response Get(string subscriptionId, string resourceGro } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string searchServiceName, SearchManagementRequestOptions searchManagementRequestOptions) + { + 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.Search/searchServices/", false); + uri.AppendPath(searchServiceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string searchServiceName, SearchManagementRequestOptions searchManagementRequestOptions) { var message = _pipeline.CreateMessage(); @@ -363,6 +419,19 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName, SearchManagementRequestOptions searchManagementRequestOptions) + { + 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.Search/searchServices", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName, SearchManagementRequestOptions searchManagementRequestOptions) { var message = _pipeline.CreateMessage(); @@ -438,6 +507,17 @@ public Response ListByResourceGroup(string subscription } } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId, SearchManagementRequestOptions searchManagementRequestOptions) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Search/searchServices", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId, SearchManagementRequestOptions searchManagementRequestOptions) { var message = _pipeline.CreateMessage(); @@ -507,6 +587,17 @@ public Response ListBySubscription(string subscriptionI } } + internal RequestUriBuilder CreateCheckNameAvailabilityRequestUri(string subscriptionId, SearchServiceNameAvailabilityContent content, SearchManagementRequestOptions searchManagementRequestOptions) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Search/checkNameAvailability", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCheckNameAvailabilityRequest(string subscriptionId, SearchServiceNameAvailabilityContent content, SearchManagementRequestOptions searchManagementRequestOptions) { var message = _pipeline.CreateMessage(); @@ -584,6 +675,14 @@ public Response CheckNameAvailability(strin } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, SearchManagementRequestOptions searchManagementRequestOptions) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, SearchManagementRequestOptions searchManagementRequestOptions) { var message = _pipeline.CreateMessage(); @@ -658,6 +757,14 @@ public Response ListByResourceGroupNextPage(string next } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId, SearchManagementRequestOptions searchManagementRequestOptions) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId, SearchManagementRequestOptions searchManagementRequestOptions) { var message = _pipeline.CreateMessage(); diff --git a/sdk/search/Azure.ResourceManager.Search/src/Generated/RestOperations/SharedPrivateLinkResourcesRestOperations.cs b/sdk/search/Azure.ResourceManager.Search/src/Generated/RestOperations/SharedPrivateLinkResourcesRestOperations.cs index 510e296fd0e9..30e6e09d54d0 100644 --- a/sdk/search/Azure.ResourceManager.Search/src/Generated/RestOperations/SharedPrivateLinkResourcesRestOperations.cs +++ b/sdk/search/Azure.ResourceManager.Search/src/Generated/RestOperations/SharedPrivateLinkResourcesRestOperations.cs @@ -37,6 +37,22 @@ public SharedPrivateLinkResourcesRestOperations(HttpPipeline pipeline, string ap _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string searchServiceName, string sharedPrivateLinkResourceName, SharedSearchServicePrivateLinkResourceData data, SearchManagementRequestOptions searchManagementRequestOptions) + { + 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.Search/searchServices/", false); + uri.AppendPath(searchServiceName, true); + uri.AppendPath("/sharedPrivateLinkResources/", false); + uri.AppendPath(sharedPrivateLinkResourceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string searchServiceName, string sharedPrivateLinkResourceName, SharedSearchServicePrivateLinkResourceData data, SearchManagementRequestOptions searchManagementRequestOptions) { var message = _pipeline.CreateMessage(); @@ -123,6 +139,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string searchServiceName, string sharedPrivateLinkResourceName, SearchManagementRequestOptions searchManagementRequestOptions) + { + 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.Search/searchServices/", false); + uri.AppendPath(searchServiceName, true); + uri.AppendPath("/sharedPrivateLinkResources/", false); + uri.AppendPath(sharedPrivateLinkResourceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string searchServiceName, string sharedPrivateLinkResourceName, SearchManagementRequestOptions searchManagementRequestOptions) { var message = _pipeline.CreateMessage(); @@ -213,6 +245,22 @@ public Response Get(string subscript } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string searchServiceName, string sharedPrivateLinkResourceName, SearchManagementRequestOptions searchManagementRequestOptions) + { + 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.Search/searchServices/", false); + uri.AppendPath(searchServiceName, true); + uri.AppendPath("/sharedPrivateLinkResources/", false); + uri.AppendPath(sharedPrivateLinkResourceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string searchServiceName, string sharedPrivateLinkResourceName, SearchManagementRequestOptions searchManagementRequestOptions) { var message = _pipeline.CreateMessage(); @@ -293,6 +341,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListByServiceRequestUri(string subscriptionId, string resourceGroupName, string searchServiceName, SearchManagementRequestOptions searchManagementRequestOptions) + { + 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.Search/searchServices/", false); + uri.AppendPath(searchServiceName, true); + uri.AppendPath("/sharedPrivateLinkResources", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByServiceRequest(string subscriptionId, string resourceGroupName, string searchServiceName, SearchManagementRequestOptions searchManagementRequestOptions) { var message = _pipeline.CreateMessage(); @@ -374,6 +437,14 @@ public Response ListByService(string subscr } } + internal RequestUriBuilder CreateListByServiceNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string searchServiceName, SearchManagementRequestOptions searchManagementRequestOptions) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByServiceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string searchServiceName, SearchManagementRequestOptions searchManagementRequestOptions) { var message = _pipeline.CreateMessage(); diff --git a/sdk/search/Azure.ResourceManager.Search/src/Generated/RestOperations/UsagesRestOperations.cs b/sdk/search/Azure.ResourceManager.Search/src/Generated/RestOperations/UsagesRestOperations.cs index 3456138c4964..ea566bff24e9 100644 --- a/sdk/search/Azure.ResourceManager.Search/src/Generated/RestOperations/UsagesRestOperations.cs +++ b/sdk/search/Azure.ResourceManager.Search/src/Generated/RestOperations/UsagesRestOperations.cs @@ -37,6 +37,19 @@ public UsagesRestOperations(HttpPipeline pipeline, string applicationId, Uri end _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId, AzureLocation location, SearchManagementRequestOptions searchManagementRequestOptions) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Search/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/usages", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId, AzureLocation location, SearchManagementRequestOptions searchManagementRequestOptions) { var message = _pipeline.CreateMessage(); @@ -110,6 +123,14 @@ public Response ListBySubscription(string subscriptionId, } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId, AzureLocation location, SearchManagementRequestOptions searchManagementRequestOptions) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId, AzureLocation location, SearchManagementRequestOptions searchManagementRequestOptions) { var message = _pipeline.CreateMessage(); diff --git a/sdk/search/Azure.ResourceManager.Search/src/Generated/SearchPrivateEndpointConnectionCollection.cs b/sdk/search/Azure.ResourceManager.Search/src/Generated/SearchPrivateEndpointConnectionCollection.cs index 57d3fc0ed43e..9aff0b54b4e9 100644 --- a/sdk/search/Azure.ResourceManager.Search/src/Generated/SearchPrivateEndpointConnectionCollection.cs +++ b/sdk/search/Azure.ResourceManager.Search/src/Generated/SearchPrivateEndpointConnectionCollection.cs @@ -92,7 +92,9 @@ public virtual async Task> try { var response = await _searchPrivateEndpointConnectionPrivateEndpointConnectionsRestClient.UpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, privateEndpointConnectionName, data, searchManagementRequestOptions, cancellationToken).ConfigureAwait(false); - var operation = new SearchArmOperation(Response.FromValue(new SearchPrivateEndpointConnectionResource(Client, response), response.GetRawResponse())); + var uri = _searchPrivateEndpointConnectionPrivateEndpointConnectionsRestClient.CreateUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, privateEndpointConnectionName, data, searchManagementRequestOptions); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SearchArmOperation(Response.FromValue(new SearchPrivateEndpointConnectionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -142,7 +144,9 @@ public virtual ArmOperation CreateOrUpd try { var response = _searchPrivateEndpointConnectionPrivateEndpointConnectionsRestClient.Update(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, privateEndpointConnectionName, data, searchManagementRequestOptions, cancellationToken); - var operation = new SearchArmOperation(Response.FromValue(new SearchPrivateEndpointConnectionResource(Client, response), response.GetRawResponse())); + var uri = _searchPrivateEndpointConnectionPrivateEndpointConnectionsRestClient.CreateUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, privateEndpointConnectionName, data, searchManagementRequestOptions); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SearchArmOperation(Response.FromValue(new SearchPrivateEndpointConnectionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/search/Azure.ResourceManager.Search/src/Generated/SearchPrivateEndpointConnectionResource.cs b/sdk/search/Azure.ResourceManager.Search/src/Generated/SearchPrivateEndpointConnectionResource.cs index 806d63dcd6d2..51a93c9ff548 100644 --- a/sdk/search/Azure.ResourceManager.Search/src/Generated/SearchPrivateEndpointConnectionResource.cs +++ b/sdk/search/Azure.ResourceManager.Search/src/Generated/SearchPrivateEndpointConnectionResource.cs @@ -204,7 +204,9 @@ public virtual async Task> try { var response = await _searchPrivateEndpointConnectionPrivateEndpointConnectionsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, searchManagementRequestOptions, cancellationToken).ConfigureAwait(false); - var operation = new SearchArmOperation(Response.FromValue(new SearchPrivateEndpointConnectionResource(Client, response), response.GetRawResponse())); + var uri = _searchPrivateEndpointConnectionPrivateEndpointConnectionsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, searchManagementRequestOptions); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SearchArmOperation(Response.FromValue(new SearchPrivateEndpointConnectionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -247,7 +249,9 @@ public virtual ArmOperation Delete(Wait try { var response = _searchPrivateEndpointConnectionPrivateEndpointConnectionsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, searchManagementRequestOptions, cancellationToken); - var operation = new SearchArmOperation(Response.FromValue(new SearchPrivateEndpointConnectionResource(Client, response), response.GetRawResponse())); + var uri = _searchPrivateEndpointConnectionPrivateEndpointConnectionsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, searchManagementRequestOptions); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SearchArmOperation(Response.FromValue(new SearchPrivateEndpointConnectionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -294,7 +298,9 @@ public virtual async Task> try { var response = await _searchPrivateEndpointConnectionPrivateEndpointConnectionsRestClient.UpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, searchManagementRequestOptions, cancellationToken).ConfigureAwait(false); - var operation = new SearchArmOperation(Response.FromValue(new SearchPrivateEndpointConnectionResource(Client, response), response.GetRawResponse())); + var uri = _searchPrivateEndpointConnectionPrivateEndpointConnectionsRestClient.CreateUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, searchManagementRequestOptions); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SearchArmOperation(Response.FromValue(new SearchPrivateEndpointConnectionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -341,7 +347,9 @@ public virtual ArmOperation Update(Wait try { var response = _searchPrivateEndpointConnectionPrivateEndpointConnectionsRestClient.Update(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, searchManagementRequestOptions, cancellationToken); - var operation = new SearchArmOperation(Response.FromValue(new SearchPrivateEndpointConnectionResource(Client, response), response.GetRawResponse())); + var uri = _searchPrivateEndpointConnectionPrivateEndpointConnectionsRestClient.CreateUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, searchManagementRequestOptions); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SearchArmOperation(Response.FromValue(new SearchPrivateEndpointConnectionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/search/Azure.ResourceManager.Search/src/Generated/SearchServiceResource.cs b/sdk/search/Azure.ResourceManager.Search/src/Generated/SearchServiceResource.cs index b313b8bf7cde..98acc1116e0b 100644 --- a/sdk/search/Azure.ResourceManager.Search/src/Generated/SearchServiceResource.cs +++ b/sdk/search/Azure.ResourceManager.Search/src/Generated/SearchServiceResource.cs @@ -360,7 +360,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, SearchM try { var response = await _searchServiceServicesRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, searchManagementRequestOptions, cancellationToken).ConfigureAwait(false); - var operation = new SearchArmOperation(response); + var uri = _searchServiceServicesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, searchManagementRequestOptions); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SearchArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -403,7 +405,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, SearchManagementRequestO try { var response = _searchServiceServicesRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, searchManagementRequestOptions, cancellationToken); - var operation = new SearchArmOperation(response); + var uri = _searchServiceServicesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, searchManagementRequestOptions); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SearchArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/AdaptiveApplicationControlGroupCollection.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/AdaptiveApplicationControlGroupCollection.cs index b83a4247b31d..847473cc29a0 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/AdaptiveApplicationControlGroupCollection.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/AdaptiveApplicationControlGroupCollection.cs @@ -87,7 +87,9 @@ public virtual async Task> try { var response = await _adaptiveApplicationControlGroupAdaptiveApplicationControlsRestClient.PutAsync(Id.SubscriptionId, new AzureLocation(Id.Name), groupName, data, cancellationToken).ConfigureAwait(false); - var operation = new SecurityCenterArmOperation(Response.FromValue(new AdaptiveApplicationControlGroupResource(Client, response), response.GetRawResponse())); + var uri = _adaptiveApplicationControlGroupAdaptiveApplicationControlsRestClient.CreatePutRequestUri(Id.SubscriptionId, new AzureLocation(Id.Name), groupName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(Response.FromValue(new AdaptiveApplicationControlGroupResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -136,7 +138,9 @@ public virtual ArmOperation CreateOrUpd try { var response = _adaptiveApplicationControlGroupAdaptiveApplicationControlsRestClient.Put(Id.SubscriptionId, new AzureLocation(Id.Name), groupName, data, cancellationToken); - var operation = new SecurityCenterArmOperation(Response.FromValue(new AdaptiveApplicationControlGroupResource(Client, response), response.GetRawResponse())); + var uri = _adaptiveApplicationControlGroupAdaptiveApplicationControlsRestClient.CreatePutRequestUri(Id.SubscriptionId, new AzureLocation(Id.Name), groupName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(Response.FromValue(new AdaptiveApplicationControlGroupResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/AdaptiveApplicationControlGroupResource.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/AdaptiveApplicationControlGroupResource.cs index 8c9e51b38cbc..4b417e48f740 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/AdaptiveApplicationControlGroupResource.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/AdaptiveApplicationControlGroupResource.cs @@ -199,7 +199,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _adaptiveApplicationControlGroupAdaptiveApplicationControlsRestClient.DeleteAsync(Id.SubscriptionId, new AzureLocation(Id.Parent.Name), Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new SecurityCenterArmOperation(response); + var uri = _adaptiveApplicationControlGroupAdaptiveApplicationControlsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, new AzureLocation(Id.Parent.Name), Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -241,7 +243,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _adaptiveApplicationControlGroupAdaptiveApplicationControlsRestClient.Delete(Id.SubscriptionId, new AzureLocation(Id.Parent.Name), Id.Name, cancellationToken); - var operation = new SecurityCenterArmOperation(response); + var uri = _adaptiveApplicationControlGroupAdaptiveApplicationControlsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, new AzureLocation(Id.Parent.Name), Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -287,7 +291,9 @@ public virtual async Task> try { var response = await _adaptiveApplicationControlGroupAdaptiveApplicationControlsRestClient.PutAsync(Id.SubscriptionId, new AzureLocation(Id.Parent.Name), Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new SecurityCenterArmOperation(Response.FromValue(new AdaptiveApplicationControlGroupResource(Client, response), response.GetRawResponse())); + var uri = _adaptiveApplicationControlGroupAdaptiveApplicationControlsRestClient.CreatePutRequestUri(Id.SubscriptionId, new AzureLocation(Id.Parent.Name), Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(Response.FromValue(new AdaptiveApplicationControlGroupResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -333,7 +339,9 @@ public virtual ArmOperation Update(Wait try { var response = _adaptiveApplicationControlGroupAdaptiveApplicationControlsRestClient.Put(Id.SubscriptionId, new AzureLocation(Id.Parent.Name), Id.Name, data, cancellationToken); - var operation = new SecurityCenterArmOperation(Response.FromValue(new AdaptiveApplicationControlGroupResource(Client, response), response.GetRawResponse())); + var uri = _adaptiveApplicationControlGroupAdaptiveApplicationControlsRestClient.CreatePutRequestUri(Id.SubscriptionId, new AzureLocation(Id.Parent.Name), Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(Response.FromValue(new AdaptiveApplicationControlGroupResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/AdvancedThreatProtectionSettingResource.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/AdvancedThreatProtectionSettingResource.cs index 4fa5033641f4..01d833a6bffd 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/AdvancedThreatProtectionSettingResource.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/AdvancedThreatProtectionSettingResource.cs @@ -201,7 +201,9 @@ public virtual async Task> try { var response = await _advancedThreatProtectionSettingAdvancedThreatProtectionRestClient.CreateAsync(Id.Parent, data, cancellationToken).ConfigureAwait(false); - var operation = new SecurityCenterArmOperation(Response.FromValue(new AdvancedThreatProtectionSettingResource(Client, response), response.GetRawResponse())); + var uri = _advancedThreatProtectionSettingAdvancedThreatProtectionRestClient.CreateCreateRequestUri(Id.Parent, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(Response.FromValue(new AdvancedThreatProtectionSettingResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -247,7 +249,9 @@ public virtual ArmOperation CreateOrUpd try { var response = _advancedThreatProtectionSettingAdvancedThreatProtectionRestClient.Create(Id.Parent, data, cancellationToken); - var operation = new SecurityCenterArmOperation(Response.FromValue(new AdvancedThreatProtectionSettingResource(Client, response), response.GetRawResponse())); + var uri = _advancedThreatProtectionSettingAdvancedThreatProtectionRestClient.CreateCreateRequestUri(Id.Parent, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(Response.FromValue(new AdvancedThreatProtectionSettingResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/AutoProvisioningSettingCollection.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/AutoProvisioningSettingCollection.cs index 824e46f2f10c..6b689bf9c985 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/AutoProvisioningSettingCollection.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/AutoProvisioningSettingCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> CreateO try { var response = await _autoProvisioningSettingRestClient.CreateAsync(Id.SubscriptionId, settingName, data, cancellationToken).ConfigureAwait(false); - var operation = new SecurityCenterArmOperation(Response.FromValue(new AutoProvisioningSettingResource(Client, response), response.GetRawResponse())); + var uri = _autoProvisioningSettingRestClient.CreateCreateRequestUri(Id.SubscriptionId, settingName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(Response.FromValue(new AutoProvisioningSettingResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -140,7 +142,9 @@ public virtual ArmOperation CreateOrUpdate(Wait try { var response = _autoProvisioningSettingRestClient.Create(Id.SubscriptionId, settingName, data, cancellationToken); - var operation = new SecurityCenterArmOperation(Response.FromValue(new AutoProvisioningSettingResource(Client, response), response.GetRawResponse())); + var uri = _autoProvisioningSettingRestClient.CreateCreateRequestUri(Id.SubscriptionId, settingName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(Response.FromValue(new AutoProvisioningSettingResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/AutoProvisioningSettingResource.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/AutoProvisioningSettingResource.cs index b0e482e5399d..18551fc4d13f 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/AutoProvisioningSettingResource.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/AutoProvisioningSettingResource.cs @@ -203,7 +203,9 @@ public virtual async Task> UpdateA try { var response = await _autoProvisioningSettingRestClient.CreateAsync(Id.SubscriptionId, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new SecurityCenterArmOperation(Response.FromValue(new AutoProvisioningSettingResource(Client, response), response.GetRawResponse())); + var uri = _autoProvisioningSettingRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(Response.FromValue(new AutoProvisioningSettingResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -249,7 +251,9 @@ public virtual ArmOperation Update(WaitUntil wa try { var response = _autoProvisioningSettingRestClient.Create(Id.SubscriptionId, Id.Name, data, cancellationToken); - var operation = new SecurityCenterArmOperation(Response.FromValue(new AutoProvisioningSettingResource(Client, response), response.GetRawResponse())); + var uri = _autoProvisioningSettingRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(Response.FromValue(new AutoProvisioningSettingResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/CustomAssessmentAutomationCollection.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/CustomAssessmentAutomationCollection.cs index 38c4081979be..fe5cf65149d3 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/CustomAssessmentAutomationCollection.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/CustomAssessmentAutomationCollection.cs @@ -92,7 +92,9 @@ public virtual async Task> Crea try { var response = await _customAssessmentAutomationRestClient.CreateAsync(Id.SubscriptionId, Id.ResourceGroupName, customAssessmentAutomationName, content, cancellationToken).ConfigureAwait(false); - var operation = new SecurityCenterArmOperation(Response.FromValue(new CustomAssessmentAutomationResource(Client, response), response.GetRawResponse())); + var uri = _customAssessmentAutomationRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, customAssessmentAutomationName, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(Response.FromValue(new CustomAssessmentAutomationResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -141,7 +143,9 @@ public virtual ArmOperation CreateOrUpdate(W try { var response = _customAssessmentAutomationRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, customAssessmentAutomationName, content, cancellationToken); - var operation = new SecurityCenterArmOperation(Response.FromValue(new CustomAssessmentAutomationResource(Client, response), response.GetRawResponse())); + var uri = _customAssessmentAutomationRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, customAssessmentAutomationName, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(Response.FromValue(new CustomAssessmentAutomationResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/CustomAssessmentAutomationResource.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/CustomAssessmentAutomationResource.cs index 1cbdea7d03b9..e71c6d5f5074 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/CustomAssessmentAutomationResource.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/CustomAssessmentAutomationResource.cs @@ -201,7 +201,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _customAssessmentAutomationRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new SecurityCenterArmOperation(response); + var uri = _customAssessmentAutomationRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -243,7 +245,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _customAssessmentAutomationRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); - var operation = new SecurityCenterArmOperation(response); + var uri = _customAssessmentAutomationRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -289,7 +293,9 @@ public virtual async Task> Upda try { var response = await _customAssessmentAutomationRestClient.CreateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content, cancellationToken).ConfigureAwait(false); - var operation = new SecurityCenterArmOperation(Response.FromValue(new CustomAssessmentAutomationResource(Client, response), response.GetRawResponse())); + var uri = _customAssessmentAutomationRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(Response.FromValue(new CustomAssessmentAutomationResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -335,7 +341,9 @@ public virtual ArmOperation Update(WaitUntil try { var response = _customAssessmentAutomationRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content, cancellationToken); - var operation = new SecurityCenterArmOperation(Response.FromValue(new CustomAssessmentAutomationResource(Client, response), response.GetRawResponse())); + var uri = _customAssessmentAutomationRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(Response.FromValue(new CustomAssessmentAutomationResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/CustomEntityStoreAssignmentCollection.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/CustomEntityStoreAssignmentCollection.cs index 5a794435f8d9..459412933d46 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/CustomEntityStoreAssignmentCollection.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/CustomEntityStoreAssignmentCollection.cs @@ -92,7 +92,9 @@ public virtual async Task> Cre try { var response = await _customEntityStoreAssignmentRestClient.CreateAsync(Id.SubscriptionId, Id.ResourceGroupName, customEntityStoreAssignmentName, content, cancellationToken).ConfigureAwait(false); - var operation = new SecurityCenterArmOperation(Response.FromValue(new CustomEntityStoreAssignmentResource(Client, response), response.GetRawResponse())); + var uri = _customEntityStoreAssignmentRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, customEntityStoreAssignmentName, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(Response.FromValue(new CustomEntityStoreAssignmentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -141,7 +143,9 @@ public virtual ArmOperation CreateOrUpdate( try { var response = _customEntityStoreAssignmentRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, customEntityStoreAssignmentName, content, cancellationToken); - var operation = new SecurityCenterArmOperation(Response.FromValue(new CustomEntityStoreAssignmentResource(Client, response), response.GetRawResponse())); + var uri = _customEntityStoreAssignmentRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, customEntityStoreAssignmentName, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(Response.FromValue(new CustomEntityStoreAssignmentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/CustomEntityStoreAssignmentResource.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/CustomEntityStoreAssignmentResource.cs index 1a4e8cf6c4e1..bb189437af96 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/CustomEntityStoreAssignmentResource.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/CustomEntityStoreAssignmentResource.cs @@ -201,7 +201,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _customEntityStoreAssignmentRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new SecurityCenterArmOperation(response); + var uri = _customEntityStoreAssignmentRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -243,7 +245,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _customEntityStoreAssignmentRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); - var operation = new SecurityCenterArmOperation(response); + var uri = _customEntityStoreAssignmentRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -289,7 +293,9 @@ public virtual async Task> Upd try { var response = await _customEntityStoreAssignmentRestClient.CreateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content, cancellationToken).ConfigureAwait(false); - var operation = new SecurityCenterArmOperation(Response.FromValue(new CustomEntityStoreAssignmentResource(Client, response), response.GetRawResponse())); + var uri = _customEntityStoreAssignmentRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(Response.FromValue(new CustomEntityStoreAssignmentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -335,7 +341,9 @@ public virtual ArmOperation Update(WaitUnti try { var response = _customEntityStoreAssignmentRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content, cancellationToken); - var operation = new SecurityCenterArmOperation(Response.FromValue(new CustomEntityStoreAssignmentResource(Client, response), response.GetRawResponse())); + var uri = _customEntityStoreAssignmentRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(Response.FromValue(new CustomEntityStoreAssignmentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/DefenderForStorageSettingCollection.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/DefenderForStorageSettingCollection.cs index 9b808beff21e..d8a7f64c26bc 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/DefenderForStorageSettingCollection.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/DefenderForStorageSettingCollection.cs @@ -76,7 +76,9 @@ public virtual async Task> Creat try { var response = await _defenderForStorageSettingDefenderForStorageRestClient.CreateAsync(Id, settingName, data, cancellationToken).ConfigureAwait(false); - var operation = new SecurityCenterArmOperation(Response.FromValue(new DefenderForStorageSettingResource(Client, response), response.GetRawResponse())); + var uri = _defenderForStorageSettingDefenderForStorageRestClient.CreateCreateRequestUri(Id, settingName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(Response.FromValue(new DefenderForStorageSettingResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -123,7 +125,9 @@ public virtual ArmOperation CreateOrUpdate(Wa try { var response = _defenderForStorageSettingDefenderForStorageRestClient.Create(Id, settingName, data, cancellationToken); - var operation = new SecurityCenterArmOperation(Response.FromValue(new DefenderForStorageSettingResource(Client, response), response.GetRawResponse())); + var uri = _defenderForStorageSettingDefenderForStorageRestClient.CreateCreateRequestUri(Id, settingName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(Response.FromValue(new DefenderForStorageSettingResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/DefenderForStorageSettingResource.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/DefenderForStorageSettingResource.cs index f00f646f4197..67b6037b09d3 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/DefenderForStorageSettingResource.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/DefenderForStorageSettingResource.cs @@ -206,7 +206,9 @@ public virtual async Task> Updat try { var response = await _defenderForStorageSettingDefenderForStorageRestClient.CreateAsync(Id.Parent, settingName, data, cancellationToken).ConfigureAwait(false); - var operation = new SecurityCenterArmOperation(Response.FromValue(new DefenderForStorageSettingResource(Client, response), response.GetRawResponse())); + var uri = _defenderForStorageSettingDefenderForStorageRestClient.CreateCreateRequestUri(Id.Parent, settingName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(Response.FromValue(new DefenderForStorageSettingResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -253,7 +255,9 @@ public virtual ArmOperation Update(WaitUntil try { var response = _defenderForStorageSettingDefenderForStorageRestClient.Create(Id.Parent, settingName, data, cancellationToken); - var operation = new SecurityCenterArmOperation(Response.FromValue(new DefenderForStorageSettingResource(Client, response), response.GetRawResponse())); + var uri = _defenderForStorageSettingDefenderForStorageRestClient.CreateCreateRequestUri(Id.Parent, settingName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(Response.FromValue(new DefenderForStorageSettingResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/DeviceSecurityGroupCollection.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/DeviceSecurityGroupCollection.cs index 0096c5dc6f8d..9dcc4576002d 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/DeviceSecurityGroupCollection.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/DeviceSecurityGroupCollection.cs @@ -80,7 +80,9 @@ public virtual async Task> CreateOrUpd try { var response = await _deviceSecurityGroupRestClient.CreateOrUpdateAsync(Id, deviceSecurityGroupName, data, cancellationToken).ConfigureAwait(false); - var operation = new SecurityCenterArmOperation(Response.FromValue(new DeviceSecurityGroupResource(Client, response), response.GetRawResponse())); + var uri = _deviceSecurityGroupRestClient.CreateCreateOrUpdateRequestUri(Id, deviceSecurityGroupName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(Response.FromValue(new DeviceSecurityGroupResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -129,7 +131,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUnti try { var response = _deviceSecurityGroupRestClient.CreateOrUpdate(Id, deviceSecurityGroupName, data, cancellationToken); - var operation = new SecurityCenterArmOperation(Response.FromValue(new DeviceSecurityGroupResource(Client, response), response.GetRawResponse())); + var uri = _deviceSecurityGroupRestClient.CreateCreateOrUpdateRequestUri(Id, deviceSecurityGroupName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(Response.FromValue(new DeviceSecurityGroupResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/DeviceSecurityGroupResource.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/DeviceSecurityGroupResource.cs index 3dc1323a978a..18429491e44c 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/DeviceSecurityGroupResource.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/DeviceSecurityGroupResource.cs @@ -198,7 +198,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _deviceSecurityGroupRestClient.DeleteAsync(Id.Parent, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new SecurityCenterArmOperation(response); + var uri = _deviceSecurityGroupRestClient.CreateDeleteRequestUri(Id.Parent, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -240,7 +242,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _deviceSecurityGroupRestClient.Delete(Id.Parent, Id.Name, cancellationToken); - var operation = new SecurityCenterArmOperation(response); + var uri = _deviceSecurityGroupRestClient.CreateDeleteRequestUri(Id.Parent, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -286,7 +290,9 @@ public virtual async Task> UpdateAsync try { var response = await _deviceSecurityGroupRestClient.CreateOrUpdateAsync(Id.Parent, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new SecurityCenterArmOperation(Response.FromValue(new DeviceSecurityGroupResource(Client, response), response.GetRawResponse())); + var uri = _deviceSecurityGroupRestClient.CreateCreateOrUpdateRequestUri(Id.Parent, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(Response.FromValue(new DeviceSecurityGroupResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -332,7 +338,9 @@ public virtual ArmOperation Update(WaitUntil waitUn try { var response = _deviceSecurityGroupRestClient.CreateOrUpdate(Id.Parent, Id.Name, data, cancellationToken); - var operation = new SecurityCenterArmOperation(Response.FromValue(new DeviceSecurityGroupResource(Client, response), response.GetRawResponse())); + var uri = _deviceSecurityGroupRestClient.CreateCreateOrUpdateRequestUri(Id.Parent, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(Response.FromValue(new DeviceSecurityGroupResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/GovernanceAssignmentCollection.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/GovernanceAssignmentCollection.cs index e7f8846a001e..7d922e50f327 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/GovernanceAssignmentCollection.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/GovernanceAssignmentCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> CreateOrUp try { var response = await _governanceAssignmentRestClient.CreateOrUpdateAsync(Id.Parent, Id.Name, assignmentKey, data, cancellationToken).ConfigureAwait(false); - var operation = new SecurityCenterArmOperation(Response.FromValue(new GovernanceAssignmentResource(Client, response), response.GetRawResponse())); + var uri = _governanceAssignmentRestClient.CreateCreateOrUpdateRequestUri(Id.Parent, Id.Name, assignmentKey, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(Response.FromValue(new GovernanceAssignmentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUnt try { var response = _governanceAssignmentRestClient.CreateOrUpdate(Id.Parent, Id.Name, assignmentKey, data, cancellationToken); - var operation = new SecurityCenterArmOperation(Response.FromValue(new GovernanceAssignmentResource(Client, response), response.GetRawResponse())); + var uri = _governanceAssignmentRestClient.CreateCreateOrUpdateRequestUri(Id.Parent, Id.Name, assignmentKey, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(Response.FromValue(new GovernanceAssignmentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/GovernanceAssignmentResource.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/GovernanceAssignmentResource.cs index 01037f6add10..6d4dfa3f158a 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/GovernanceAssignmentResource.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/GovernanceAssignmentResource.cs @@ -199,7 +199,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _governanceAssignmentRestClient.DeleteAsync(Id.Parent.Parent, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new SecurityCenterArmOperation(response); + var uri = _governanceAssignmentRestClient.CreateDeleteRequestUri(Id.Parent.Parent, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -241,7 +243,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _governanceAssignmentRestClient.Delete(Id.Parent.Parent, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new SecurityCenterArmOperation(response); + var uri = _governanceAssignmentRestClient.CreateDeleteRequestUri(Id.Parent.Parent, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -287,7 +291,9 @@ public virtual async Task> UpdateAsyn try { var response = await _governanceAssignmentRestClient.CreateOrUpdateAsync(Id.Parent.Parent, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new SecurityCenterArmOperation(Response.FromValue(new GovernanceAssignmentResource(Client, response), response.GetRawResponse())); + var uri = _governanceAssignmentRestClient.CreateCreateOrUpdateRequestUri(Id.Parent.Parent, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(Response.FromValue(new GovernanceAssignmentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -333,7 +339,9 @@ public virtual ArmOperation Update(WaitUntil waitU try { var response = _governanceAssignmentRestClient.CreateOrUpdate(Id.Parent.Parent, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new SecurityCenterArmOperation(Response.FromValue(new GovernanceAssignmentResource(Client, response), response.GetRawResponse())); + var uri = _governanceAssignmentRestClient.CreateCreateOrUpdateRequestUri(Id.Parent.Parent, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(Response.FromValue(new GovernanceAssignmentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/GovernanceRuleCollection.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/GovernanceRuleCollection.cs index ffe726bec02b..30646b08763e 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/GovernanceRuleCollection.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/GovernanceRuleCollection.cs @@ -80,7 +80,9 @@ public virtual async Task> CreateOrUpdateAs try { var response = await _governanceRuleRestClient.CreateOrUpdateAsync(Id, ruleId, data, cancellationToken).ConfigureAwait(false); - var operation = new SecurityCenterArmOperation(Response.FromValue(new GovernanceRuleResource(Client, response), response.GetRawResponse())); + var uri = _governanceRuleRestClient.CreateCreateOrUpdateRequestUri(Id, ruleId, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(Response.FromValue(new GovernanceRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -129,7 +131,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wai try { var response = _governanceRuleRestClient.CreateOrUpdate(Id, ruleId, data, cancellationToken); - var operation = new SecurityCenterArmOperation(Response.FromValue(new GovernanceRuleResource(Client, response), response.GetRawResponse())); + var uri = _governanceRuleRestClient.CreateCreateOrUpdateRequestUri(Id, ruleId, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(Response.FromValue(new GovernanceRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/GovernanceRuleResource.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/GovernanceRuleResource.cs index 363c19ed6dd7..bee2a3f14e2c 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/GovernanceRuleResource.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/GovernanceRuleResource.cs @@ -287,7 +287,9 @@ public virtual async Task> UpdateAsync(Wait try { var response = await _governanceRuleRestClient.CreateOrUpdateAsync(Id.Parent, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new SecurityCenterArmOperation(Response.FromValue(new GovernanceRuleResource(Client, response), response.GetRawResponse())); + var uri = _governanceRuleRestClient.CreateCreateOrUpdateRequestUri(Id.Parent, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(Response.FromValue(new GovernanceRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -333,7 +335,9 @@ public virtual ArmOperation Update(WaitUntil waitUntil, try { var response = _governanceRuleRestClient.CreateOrUpdate(Id.Parent, Id.Name, data, cancellationToken); - var operation = new SecurityCenterArmOperation(Response.FromValue(new GovernanceRuleResource(Client, response), response.GetRawResponse())); + var uri = _governanceRuleRestClient.CreateCreateOrUpdateRequestUri(Id.Parent, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(Response.FromValue(new GovernanceRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/IotSecuritySolutionCollection.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/IotSecuritySolutionCollection.cs index 12dc9f95be36..528eb2a37d01 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/IotSecuritySolutionCollection.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/IotSecuritySolutionCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> CreateOrUpd try { var response = await _iotSecuritySolutionRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, solutionName, data, cancellationToken).ConfigureAwait(false); - var operation = new SecurityCenterArmOperation(Response.FromValue(new IotSecuritySolutionResource(Client, response), response.GetRawResponse())); + var uri = _iotSecuritySolutionRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, solutionName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(Response.FromValue(new IotSecuritySolutionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -140,7 +142,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUnti try { var response = _iotSecuritySolutionRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, solutionName, data, cancellationToken); - var operation = new SecurityCenterArmOperation(Response.FromValue(new IotSecuritySolutionResource(Client, response), response.GetRawResponse())); + var uri = _iotSecuritySolutionRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, solutionName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(Response.FromValue(new IotSecuritySolutionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/IotSecuritySolutionResource.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/IotSecuritySolutionResource.cs index 0c3d310c6617..603fc0180355 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/IotSecuritySolutionResource.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/IotSecuritySolutionResource.cs @@ -209,7 +209,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _iotSecuritySolutionRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new SecurityCenterArmOperation(response); + var uri = _iotSecuritySolutionRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -251,7 +253,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _iotSecuritySolutionRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); - var operation = new SecurityCenterArmOperation(response); + var uri = _iotSecuritySolutionRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/JitNetworkAccessPolicyCollection.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/JitNetworkAccessPolicyCollection.cs index 7645df5b389e..7f488284873c 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/JitNetworkAccessPolicyCollection.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/JitNetworkAccessPolicyCollection.cs @@ -94,7 +94,9 @@ public virtual async Task> CreateOr try { var response = await _jitNetworkAccessPolicyRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, new AzureLocation(_ascLocation), jitNetworkAccessPolicyName, data, cancellationToken).ConfigureAwait(false); - var operation = new SecurityCenterArmOperation(Response.FromValue(new JitNetworkAccessPolicyResource(Client, response), response.GetRawResponse())); + var uri = _jitNetworkAccessPolicyRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, new AzureLocation(_ascLocation), jitNetworkAccessPolicyName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(Response.FromValue(new JitNetworkAccessPolicyResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -143,7 +145,9 @@ public virtual ArmOperation CreateOrUpdate(WaitU try { var response = _jitNetworkAccessPolicyRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, new AzureLocation(_ascLocation), jitNetworkAccessPolicyName, data, cancellationToken); - var operation = new SecurityCenterArmOperation(Response.FromValue(new JitNetworkAccessPolicyResource(Client, response), response.GetRawResponse())); + var uri = _jitNetworkAccessPolicyRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, new AzureLocation(_ascLocation), jitNetworkAccessPolicyName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(Response.FromValue(new JitNetworkAccessPolicyResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/JitNetworkAccessPolicyResource.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/JitNetworkAccessPolicyResource.cs index f1abd02336d3..d8d6e4187947 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/JitNetworkAccessPolicyResource.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/JitNetworkAccessPolicyResource.cs @@ -202,7 +202,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _jitNetworkAccessPolicyRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, new AzureLocation(Id.Parent.Name), Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new SecurityCenterArmOperation(response); + var uri = _jitNetworkAccessPolicyRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, new AzureLocation(Id.Parent.Name), Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -244,7 +246,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _jitNetworkAccessPolicyRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, new AzureLocation(Id.Parent.Name), Id.Name, cancellationToken); - var operation = new SecurityCenterArmOperation(response); + var uri = _jitNetworkAccessPolicyRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, new AzureLocation(Id.Parent.Name), Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -290,7 +294,9 @@ public virtual async Task> UpdateAs try { var response = await _jitNetworkAccessPolicyRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, new AzureLocation(Id.Parent.Name), Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new SecurityCenterArmOperation(Response.FromValue(new JitNetworkAccessPolicyResource(Client, response), response.GetRawResponse())); + var uri = _jitNetworkAccessPolicyRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, new AzureLocation(Id.Parent.Name), Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(Response.FromValue(new JitNetworkAccessPolicyResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -336,7 +342,9 @@ public virtual ArmOperation Update(WaitUntil wai try { var response = _jitNetworkAccessPolicyRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, new AzureLocation(Id.Parent.Name), Id.Name, data, cancellationToken); - var operation = new SecurityCenterArmOperation(Response.FromValue(new JitNetworkAccessPolicyResource(Client, response), response.GetRawResponse())); + var uri = _jitNetworkAccessPolicyRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, new AzureLocation(Id.Parent.Name), Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(Response.FromValue(new JitNetworkAccessPolicyResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/LongRunningOperation/SecurityCenterArmOperation.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/LongRunningOperation/SecurityCenterArmOperation.cs index f2d3305cc380..6c0bc452569b 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/LongRunningOperation/SecurityCenterArmOperation.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/LongRunningOperation/SecurityCenterArmOperation.cs @@ -20,21 +20,24 @@ internal class SecurityCenterArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of SecurityCenterArmOperation for mocking. protected SecurityCenterArmOperation() { } - internal SecurityCenterArmOperation(Response response) + internal SecurityCenterArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal SecurityCenterArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "SecurityCenterArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal SecurityCenterArmOperation(ClientDiagnostics clientDiagnostics, HttpPip public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/LongRunningOperation/SecurityCenterArmOperationOfT.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/LongRunningOperation/SecurityCenterArmOperationOfT.cs index 7f5d4b7a054d..bcd472ec3e3b 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/LongRunningOperation/SecurityCenterArmOperationOfT.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/LongRunningOperation/SecurityCenterArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class SecurityCenterArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of SecurityCenterArmOperation for mocking. protected SecurityCenterArmOperation() { } - internal SecurityCenterArmOperation(Response response) + internal SecurityCenterArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal SecurityCenterArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "SecurityCenterArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal SecurityCenterArmOperation(IOperationSource source, ClientDiagnostic public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/AdaptiveApplicationControlGroupResource.Serialization.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/AdaptiveApplicationControlGroupResource.Serialization.cs new file mode 100644 index 000000000000..17c50ce35af0 --- /dev/null +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/AdaptiveApplicationControlGroupResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.SecurityCenter +{ + public partial class AdaptiveApplicationControlGroupResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + AdaptiveApplicationControlGroupData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + AdaptiveApplicationControlGroupData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/AdaptiveNetworkHardeningResource.Serialization.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/AdaptiveNetworkHardeningResource.Serialization.cs new file mode 100644 index 000000000000..b4fd5bb35c50 --- /dev/null +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/AdaptiveNetworkHardeningResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.SecurityCenter +{ + public partial class AdaptiveNetworkHardeningResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + AdaptiveNetworkHardeningData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + AdaptiveNetworkHardeningData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/AdvancedThreatProtectionSettingResource.Serialization.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/AdvancedThreatProtectionSettingResource.Serialization.cs new file mode 100644 index 000000000000..f39b33adb27b --- /dev/null +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/AdvancedThreatProtectionSettingResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.SecurityCenter +{ + public partial class AdvancedThreatProtectionSettingResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + AdvancedThreatProtectionSettingData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + AdvancedThreatProtectionSettingData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/AutoProvisioningSettingResource.Serialization.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/AutoProvisioningSettingResource.Serialization.cs new file mode 100644 index 000000000000..e59260624e31 --- /dev/null +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/AutoProvisioningSettingResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.SecurityCenter +{ + public partial class AutoProvisioningSettingResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + AutoProvisioningSettingData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + AutoProvisioningSettingData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/ComplianceResultResource.Serialization.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/ComplianceResultResource.Serialization.cs new file mode 100644 index 000000000000..1049d2c129b2 --- /dev/null +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/ComplianceResultResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.SecurityCenter +{ + public partial class ComplianceResultResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ComplianceResultData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ComplianceResultData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/CustomAssessmentAutomationResource.Serialization.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/CustomAssessmentAutomationResource.Serialization.cs new file mode 100644 index 000000000000..d33faa7f1a74 --- /dev/null +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/CustomAssessmentAutomationResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.SecurityCenter +{ + public partial class CustomAssessmentAutomationResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + CustomAssessmentAutomationData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + CustomAssessmentAutomationData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/CustomEntityStoreAssignmentResource.Serialization.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/CustomEntityStoreAssignmentResource.Serialization.cs new file mode 100644 index 000000000000..a593ce6e767a --- /dev/null +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/CustomEntityStoreAssignmentResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.SecurityCenter +{ + public partial class CustomEntityStoreAssignmentResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + CustomEntityStoreAssignmentData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + CustomEntityStoreAssignmentData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/DefenderForStorageSettingResource.Serialization.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/DefenderForStorageSettingResource.Serialization.cs new file mode 100644 index 000000000000..b4140f8e12a4 --- /dev/null +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/DefenderForStorageSettingResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.SecurityCenter +{ + public partial class DefenderForStorageSettingResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DefenderForStorageSettingData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DefenderForStorageSettingData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/DevOpsConfigurationResource.Serialization.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/DevOpsConfigurationResource.Serialization.cs new file mode 100644 index 000000000000..fdfd584e7609 --- /dev/null +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/DevOpsConfigurationResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.SecurityCenter +{ + public partial class DevOpsConfigurationResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DevOpsConfigurationData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DevOpsConfigurationData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/DevOpsOrgResource.Serialization.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/DevOpsOrgResource.Serialization.cs new file mode 100644 index 000000000000..6ec09841c809 --- /dev/null +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/DevOpsOrgResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.SecurityCenter +{ + public partial class DevOpsOrgResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DevOpsOrgData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DevOpsOrgData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/DevOpsProjectResource.Serialization.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/DevOpsProjectResource.Serialization.cs new file mode 100644 index 000000000000..98749365ab59 --- /dev/null +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/DevOpsProjectResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.SecurityCenter +{ + public partial class DevOpsProjectResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DevOpsProjectData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DevOpsProjectData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/DevOpsRepositoryResource.Serialization.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/DevOpsRepositoryResource.Serialization.cs new file mode 100644 index 000000000000..c8eea90b5ca2 --- /dev/null +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/DevOpsRepositoryResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.SecurityCenter +{ + public partial class DevOpsRepositoryResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DevOpsRepositoryData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DevOpsRepositoryData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/DeviceSecurityGroupResource.Serialization.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/DeviceSecurityGroupResource.Serialization.cs new file mode 100644 index 000000000000..d54ecbe182de --- /dev/null +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/DeviceSecurityGroupResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.SecurityCenter +{ + public partial class DeviceSecurityGroupResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DeviceSecurityGroupData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DeviceSecurityGroupData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/GovernanceAssignmentResource.Serialization.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/GovernanceAssignmentResource.Serialization.cs new file mode 100644 index 000000000000..81dcaca67544 --- /dev/null +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/GovernanceAssignmentResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.SecurityCenter +{ + public partial class GovernanceAssignmentResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + GovernanceAssignmentData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + GovernanceAssignmentData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/GovernanceRuleResource.Serialization.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/GovernanceRuleResource.Serialization.cs new file mode 100644 index 000000000000..0b500ae3eee5 --- /dev/null +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/GovernanceRuleResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.SecurityCenter +{ + public partial class GovernanceRuleResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + GovernanceRuleData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + GovernanceRuleData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/IotSecurityAggregatedAlertResource.Serialization.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/IotSecurityAggregatedAlertResource.Serialization.cs new file mode 100644 index 000000000000..0383cffe9ffa --- /dev/null +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/IotSecurityAggregatedAlertResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.SecurityCenter +{ + public partial class IotSecurityAggregatedAlertResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + IotSecurityAggregatedAlertData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + IotSecurityAggregatedAlertData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/IotSecurityAggregatedRecommendationResource.Serialization.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/IotSecurityAggregatedRecommendationResource.Serialization.cs new file mode 100644 index 000000000000..8c3a0e1572ca --- /dev/null +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/IotSecurityAggregatedRecommendationResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.SecurityCenter +{ + public partial class IotSecurityAggregatedRecommendationResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + IotSecurityAggregatedRecommendationData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + IotSecurityAggregatedRecommendationData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/IotSecuritySolutionAnalyticsModelResource.Serialization.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/IotSecuritySolutionAnalyticsModelResource.Serialization.cs new file mode 100644 index 000000000000..9f7543d08bfd --- /dev/null +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/IotSecuritySolutionAnalyticsModelResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.SecurityCenter +{ + public partial class IotSecuritySolutionAnalyticsModelResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + IotSecuritySolutionAnalyticsModelData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + IotSecuritySolutionAnalyticsModelData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/IotSecuritySolutionResource.Serialization.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/IotSecuritySolutionResource.Serialization.cs new file mode 100644 index 000000000000..ec8ae2e32a85 --- /dev/null +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/IotSecuritySolutionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.SecurityCenter +{ + public partial class IotSecuritySolutionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + IotSecuritySolutionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + IotSecuritySolutionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/JitNetworkAccessPolicyResource.Serialization.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/JitNetworkAccessPolicyResource.Serialization.cs new file mode 100644 index 000000000000..ade9fb594633 --- /dev/null +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/JitNetworkAccessPolicyResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.SecurityCenter +{ + public partial class JitNetworkAccessPolicyResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + JitNetworkAccessPolicyData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + JitNetworkAccessPolicyData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/RegulatoryComplianceAssessmentResource.Serialization.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/RegulatoryComplianceAssessmentResource.Serialization.cs new file mode 100644 index 000000000000..416a1d200b18 --- /dev/null +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/RegulatoryComplianceAssessmentResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.SecurityCenter +{ + public partial class RegulatoryComplianceAssessmentResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + RegulatoryComplianceAssessmentData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + RegulatoryComplianceAssessmentData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/RegulatoryComplianceControlResource.Serialization.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/RegulatoryComplianceControlResource.Serialization.cs new file mode 100644 index 000000000000..68552ce6e9c7 --- /dev/null +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/RegulatoryComplianceControlResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.SecurityCenter +{ + public partial class RegulatoryComplianceControlResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + RegulatoryComplianceControlData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + RegulatoryComplianceControlData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/RegulatoryComplianceStandardResource.Serialization.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/RegulatoryComplianceStandardResource.Serialization.cs new file mode 100644 index 000000000000..bcacf3650498 --- /dev/null +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/RegulatoryComplianceStandardResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.SecurityCenter +{ + public partial class RegulatoryComplianceStandardResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + RegulatoryComplianceStandardData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + RegulatoryComplianceStandardData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/ResourceGroupSecurityAlertResource.Serialization.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/ResourceGroupSecurityAlertResource.Serialization.cs new file mode 100644 index 000000000000..f6b8ea1fda52 --- /dev/null +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/ResourceGroupSecurityAlertResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.SecurityCenter +{ + public partial class ResourceGroupSecurityAlertResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SecurityAlertData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SecurityAlertData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/ResourceGroupSecurityTaskResource.Serialization.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/ResourceGroupSecurityTaskResource.Serialization.cs new file mode 100644 index 000000000000..c3f863a4ec3e --- /dev/null +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/ResourceGroupSecurityTaskResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.SecurityCenter +{ + public partial class ResourceGroupSecurityTaskResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SecurityTaskData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SecurityTaskData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecureScoreResource.Serialization.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecureScoreResource.Serialization.cs new file mode 100644 index 000000000000..0b20d1781b10 --- /dev/null +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecureScoreResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.SecurityCenter +{ + public partial class SecureScoreResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SecureScoreData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SecureScoreData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecurityAlertsSuppressionRuleResource.Serialization.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecurityAlertsSuppressionRuleResource.Serialization.cs new file mode 100644 index 000000000000..b83f243d6a4c --- /dev/null +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecurityAlertsSuppressionRuleResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.SecurityCenter +{ + public partial class SecurityAlertsSuppressionRuleResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SecurityAlertsSuppressionRuleData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SecurityAlertsSuppressionRuleData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecurityAssessmentResource.Serialization.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecurityAssessmentResource.Serialization.cs new file mode 100644 index 000000000000..7fde938909d4 --- /dev/null +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecurityAssessmentResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.SecurityCenter +{ + public partial class SecurityAssessmentResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SecurityAssessmentData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SecurityAssessmentData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecurityAutomationResource.Serialization.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecurityAutomationResource.Serialization.cs new file mode 100644 index 000000000000..4bf912c54067 --- /dev/null +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecurityAutomationResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.SecurityCenter +{ + public partial class SecurityAutomationResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SecurityAutomationData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SecurityAutomationData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecurityCenterApiCollectionResource.Serialization.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecurityCenterApiCollectionResource.Serialization.cs new file mode 100644 index 000000000000..57e9757f9ed8 --- /dev/null +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecurityCenterApiCollectionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.SecurityCenter +{ + public partial class SecurityCenterApiCollectionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SecurityCenterApiCollectionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SecurityCenterApiCollectionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecurityCenterLocationResource.Serialization.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecurityCenterLocationResource.Serialization.cs new file mode 100644 index 000000000000..d439b88e6c4c --- /dev/null +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecurityCenterLocationResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.SecurityCenter +{ + public partial class SecurityCenterLocationResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SecurityCenterLocationData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SecurityCenterLocationData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecurityCenterPricingResource.Serialization.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecurityCenterPricingResource.Serialization.cs new file mode 100644 index 000000000000..af97d6341b49 --- /dev/null +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecurityCenterPricingResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.SecurityCenter +{ + public partial class SecurityCenterPricingResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SecurityCenterPricingData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SecurityCenterPricingData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecurityCloudConnectorResource.Serialization.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecurityCloudConnectorResource.Serialization.cs new file mode 100644 index 000000000000..494dd6fad9f6 --- /dev/null +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecurityCloudConnectorResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.SecurityCenter +{ + public partial class SecurityCloudConnectorResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SecurityCloudConnectorData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SecurityCloudConnectorData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecurityComplianceResource.Serialization.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecurityComplianceResource.Serialization.cs new file mode 100644 index 000000000000..e713d798e3e1 --- /dev/null +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecurityComplianceResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.SecurityCenter +{ + public partial class SecurityComplianceResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SecurityComplianceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SecurityComplianceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecurityConnectorApplicationResource.Serialization.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecurityConnectorApplicationResource.Serialization.cs new file mode 100644 index 000000000000..ab7ee6e02ffe --- /dev/null +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecurityConnectorApplicationResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.SecurityCenter +{ + public partial class SecurityConnectorApplicationResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SecurityApplicationData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SecurityApplicationData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecurityConnectorGitHubOwnerResource.Serialization.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecurityConnectorGitHubOwnerResource.Serialization.cs new file mode 100644 index 000000000000..5349bfc83bf2 --- /dev/null +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecurityConnectorGitHubOwnerResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.SecurityCenter +{ + public partial class SecurityConnectorGitHubOwnerResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SecurityConnectorGitHubOwnerData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SecurityConnectorGitHubOwnerData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecurityConnectorGitHubRepositoryResource.Serialization.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecurityConnectorGitHubRepositoryResource.Serialization.cs new file mode 100644 index 000000000000..81d3a690d9c0 --- /dev/null +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecurityConnectorGitHubRepositoryResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.SecurityCenter +{ + public partial class SecurityConnectorGitHubRepositoryResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SecurityConnectorGitHubRepositoryData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SecurityConnectorGitHubRepositoryData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecurityConnectorGitLabGroupResource.Serialization.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecurityConnectorGitLabGroupResource.Serialization.cs new file mode 100644 index 000000000000..e55172e7e58c --- /dev/null +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecurityConnectorGitLabGroupResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.SecurityCenter +{ + public partial class SecurityConnectorGitLabGroupResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SecurityConnectorGitLabGroupData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SecurityConnectorGitLabGroupData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecurityConnectorGitLabProjectResource.Serialization.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecurityConnectorGitLabProjectResource.Serialization.cs new file mode 100644 index 000000000000..95ef02c75f80 --- /dev/null +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecurityConnectorGitLabProjectResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.SecurityCenter +{ + public partial class SecurityConnectorGitLabProjectResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SecurityConnectorGitLabProjectData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SecurityConnectorGitLabProjectData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecurityConnectorResource.Serialization.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecurityConnectorResource.Serialization.cs new file mode 100644 index 000000000000..f610aed9f16e --- /dev/null +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecurityConnectorResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.SecurityCenter +{ + public partial class SecurityConnectorResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SecurityConnectorData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SecurityConnectorData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecurityContactResource.Serialization.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecurityContactResource.Serialization.cs new file mode 100644 index 000000000000..4f6fcd1f4807 --- /dev/null +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecurityContactResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.SecurityCenter +{ + public partial class SecurityContactResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SecurityContactData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SecurityContactData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecurityHealthReportResource.Serialization.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecurityHealthReportResource.Serialization.cs new file mode 100644 index 000000000000..eb13f34e6f22 --- /dev/null +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecurityHealthReportResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.SecurityCenter +{ + public partial class SecurityHealthReportResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SecurityHealthReportData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SecurityHealthReportData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecurityOperatorResource.Serialization.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecurityOperatorResource.Serialization.cs new file mode 100644 index 000000000000..01efc130f2f5 --- /dev/null +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecurityOperatorResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.SecurityCenter +{ + public partial class SecurityOperatorResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SecurityOperatorData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SecurityOperatorData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecuritySettingResource.Serialization.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecuritySettingResource.Serialization.cs new file mode 100644 index 000000000000..2ce9961f07eb --- /dev/null +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecuritySettingResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.SecurityCenter +{ + public partial class SecuritySettingResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SecuritySettingData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SecuritySettingData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecuritySubAssessmentResource.Serialization.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecuritySubAssessmentResource.Serialization.cs new file mode 100644 index 000000000000..3099a082e766 --- /dev/null +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecuritySubAssessmentResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.SecurityCenter +{ + public partial class SecuritySubAssessmentResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SecuritySubAssessmentData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SecuritySubAssessmentData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecurityWorkspaceSettingResource.Serialization.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecurityWorkspaceSettingResource.Serialization.cs new file mode 100644 index 000000000000..54ab1107fc85 --- /dev/null +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecurityWorkspaceSettingResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.SecurityCenter +{ + public partial class SecurityWorkspaceSettingResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SecurityWorkspaceSettingData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SecurityWorkspaceSettingData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SensitivitySettingResource.Serialization.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SensitivitySettingResource.Serialization.cs new file mode 100644 index 000000000000..6f718a28dce5 --- /dev/null +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SensitivitySettingResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.SecurityCenter +{ + public partial class SensitivitySettingResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SensitivitySettingData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SensitivitySettingData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/ServerVulnerabilityAssessmentResource.Serialization.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/ServerVulnerabilityAssessmentResource.Serialization.cs new file mode 100644 index 000000000000..5bb14b3b1fa0 --- /dev/null +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/ServerVulnerabilityAssessmentResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.SecurityCenter +{ + public partial class ServerVulnerabilityAssessmentResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ServerVulnerabilityAssessmentData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ServerVulnerabilityAssessmentData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/ServerVulnerabilityAssessmentsSettingResource.Serialization.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/ServerVulnerabilityAssessmentsSettingResource.Serialization.cs new file mode 100644 index 000000000000..5323470b31e7 --- /dev/null +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/ServerVulnerabilityAssessmentsSettingResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.SecurityCenter +{ + public partial class ServerVulnerabilityAssessmentsSettingResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ServerVulnerabilityAssessmentsSettingData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ServerVulnerabilityAssessmentsSettingData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SoftwareInventoryResource.Serialization.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SoftwareInventoryResource.Serialization.cs new file mode 100644 index 000000000000..943d8adf58d5 --- /dev/null +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SoftwareInventoryResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.SecurityCenter +{ + public partial class SoftwareInventoryResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SoftwareInventoryData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SoftwareInventoryData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SqlVulnerabilityAssessmentBaselineRuleResource.Serialization.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SqlVulnerabilityAssessmentBaselineRuleResource.Serialization.cs new file mode 100644 index 000000000000..cad26556c3d9 --- /dev/null +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SqlVulnerabilityAssessmentBaselineRuleResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.SecurityCenter +{ + public partial class SqlVulnerabilityAssessmentBaselineRuleResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SqlVulnerabilityAssessmentBaselineRuleData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SqlVulnerabilityAssessmentBaselineRuleData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SqlVulnerabilityAssessmentScanResource.Serialization.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SqlVulnerabilityAssessmentScanResource.Serialization.cs new file mode 100644 index 000000000000..3c57a9fcba62 --- /dev/null +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SqlVulnerabilityAssessmentScanResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.SecurityCenter +{ + public partial class SqlVulnerabilityAssessmentScanResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SqlVulnerabilityAssessmentScanData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SqlVulnerabilityAssessmentScanData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SubscriptionAssessmentMetadataResource.Serialization.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SubscriptionAssessmentMetadataResource.Serialization.cs new file mode 100644 index 000000000000..4cfed6f137fc --- /dev/null +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SubscriptionAssessmentMetadataResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.SecurityCenter +{ + public partial class SubscriptionAssessmentMetadataResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SecurityAssessmentMetadataData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SecurityAssessmentMetadataData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SubscriptionSecurityAlertResource.Serialization.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SubscriptionSecurityAlertResource.Serialization.cs new file mode 100644 index 000000000000..033655018187 --- /dev/null +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SubscriptionSecurityAlertResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.SecurityCenter +{ + public partial class SubscriptionSecurityAlertResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SecurityAlertData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SecurityAlertData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SubscriptionSecurityApplicationResource.Serialization.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SubscriptionSecurityApplicationResource.Serialization.cs new file mode 100644 index 000000000000..512018a04339 --- /dev/null +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SubscriptionSecurityApplicationResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.SecurityCenter +{ + public partial class SubscriptionSecurityApplicationResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SecurityApplicationData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SecurityApplicationData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SubscriptionSecurityTaskResource.Serialization.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SubscriptionSecurityTaskResource.Serialization.cs new file mode 100644 index 000000000000..b54fd8eaf59a --- /dev/null +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SubscriptionSecurityTaskResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.SecurityCenter +{ + public partial class SubscriptionSecurityTaskResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SecurityTaskData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SecurityTaskData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/TenantAssessmentMetadataResource.Serialization.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/TenantAssessmentMetadataResource.Serialization.cs new file mode 100644 index 000000000000..66a5623c7035 --- /dev/null +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/TenantAssessmentMetadataResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.SecurityCenter +{ + public partial class TenantAssessmentMetadataResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SecurityAssessmentMetadataData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SecurityAssessmentMetadataData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/APICollectionsRestOperations.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/APICollectionsRestOperations.cs index aa46f8a92a2f..c58bd99e345c 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/APICollectionsRestOperations.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/APICollectionsRestOperations.cs @@ -37,6 +37,17 @@ public APICollectionsRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Security/apiCollections", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,19 @@ public Response ListBySubscription(string subscriptionId, Can } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.Security/apiCollections", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -177,6 +201,21 @@ public Response ListByResourceGroup(string subscriptionId, st } } + internal RequestUriBuilder CreateListByAzureApiManagementServiceRequestUri(string subscriptionId, string resourceGroupName, string serviceName) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/providers/Microsoft.Security/apiCollections", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByAzureApiManagementServiceRequest(string subscriptionId, string resourceGroupName, string serviceName) { var message = _pipeline.CreateMessage(); @@ -256,6 +295,22 @@ public Response ListByAzureApiManagementService(string subscr } } + internal RequestUriBuilder CreateGetByAzureApiManagementServiceRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string apiId) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/providers/Microsoft.Security/apiCollections/", false); + uri.AppendPath(apiId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetByAzureApiManagementServiceRequest(string subscriptionId, string resourceGroupName, string serviceName, string apiId) { var message = _pipeline.CreateMessage(); @@ -344,6 +399,22 @@ public Response GetByAzureApiManagementService( } } + internal RequestUriBuilder CreateOnboardAzureApiManagementApiRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string apiId) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/providers/Microsoft.Security/apiCollections/", false); + uri.AppendPath(apiId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateOnboardAzureApiManagementApiRequest(string subscriptionId, string resourceGroupName, string serviceName, string apiId) { var message = _pipeline.CreateMessage(); @@ -420,6 +491,22 @@ public Response OnboardAzureApiManagementApi(string subscriptionId, string resou } } + internal RequestUriBuilder CreateOffboardAzureApiManagementApiRequestUri(string subscriptionId, string resourceGroupName, string serviceName, string apiId) + { + 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.ApiManagement/service/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/providers/Microsoft.Security/apiCollections/", false); + uri.AppendPath(apiId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateOffboardAzureApiManagementApiRequest(string subscriptionId, string resourceGroupName, string serviceName, string apiId) { var message = _pipeline.CreateMessage(); @@ -496,6 +583,14 @@ public Response OffboardAzureApiManagementApi(string subscriptionId, string reso } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -564,6 +659,14 @@ public Response ListBySubscriptionNextPage(string nextLink, s } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -636,6 +739,14 @@ public Response ListByResourceGroupNextPage(string nextLink, } } + internal RequestUriBuilder CreateListByAzureApiManagementServiceNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serviceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByAzureApiManagementServiceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serviceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/AdaptiveApplicationControlsRestOperations.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/AdaptiveApplicationControlsRestOperations.cs index a0ca52f9bdfe..1fb11e9819ad 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/AdaptiveApplicationControlsRestOperations.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/AdaptiveApplicationControlsRestOperations.cs @@ -37,6 +37,25 @@ public AdaptiveApplicationControlsRestOperations(HttpPipeline pipeline, string a _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, bool? includePathRecommendations, bool? summary) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Security/applicationWhitelistings", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (includePathRecommendations != null) + { + uri.AppendQuery("includePathRecommendations", includePathRecommendations.Value, true); + } + if (summary != null) + { + uri.AppendQuery("summary", summary.Value, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, bool? includePathRecommendations, bool? summary) { var message = _pipeline.CreateMessage(); @@ -116,6 +135,20 @@ public Response List(string subscriptionId, bo } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, AzureLocation ascLocation, string groupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Security/locations/", false); + uri.AppendPath(ascLocation, true); + uri.AppendPath("/applicationWhitelistings/", false); + uri.AppendPath(groupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, AzureLocation ascLocation, string groupName) { var message = _pipeline.CreateMessage(); @@ -196,6 +229,20 @@ public Response Get(string subscriptionId, } } + internal RequestUriBuilder CreatePutRequestUri(string subscriptionId, AzureLocation ascLocation, string groupName, AdaptiveApplicationControlGroupData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Security/locations/", false); + uri.AppendPath(ascLocation, true); + uri.AppendPath("/applicationWhitelistings/", false); + uri.AppendPath(groupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreatePutRequest(string subscriptionId, AzureLocation ascLocation, string groupName, AdaptiveApplicationControlGroupData data) { var message = _pipeline.CreateMessage(); @@ -280,6 +327,20 @@ public Response Put(string subscriptionId, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, AzureLocation ascLocation, string groupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Security/locations/", false); + uri.AppendPath(ascLocation, true); + uri.AppendPath("/applicationWhitelistings/", false); + uri.AppendPath(groupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, AzureLocation ascLocation, string groupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/AdaptiveNetworkHardeningsRestOperations.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/AdaptiveNetworkHardeningsRestOperations.cs index c7e4295cbcad..376b1df0e00a 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/AdaptiveNetworkHardeningsRestOperations.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/AdaptiveNetworkHardeningsRestOperations.cs @@ -37,6 +37,25 @@ public AdaptiveNetworkHardeningsRestOperations(HttpPipeline pipeline, string app _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByExtendedResourceRequestUri(string subscriptionId, string resourceGroupName, string resourceNamespace, string resourceType, string resourceName) + { + 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/", false); + uri.AppendPath(resourceNamespace, true); + uri.AppendPath("/", false); + uri.AppendPath(resourceType, true); + uri.AppendPath("/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/providers/Microsoft.Security/adaptiveNetworkHardenings", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByExtendedResourceRequest(string subscriptionId, string resourceGroupName, string resourceNamespace, string resourceType, string resourceName) { var message = _pipeline.CreateMessage(); @@ -128,6 +147,26 @@ public Response ListByExtendedResource(string sub } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string resourceNamespace, string resourceType, string resourceName, string adaptiveNetworkHardeningResourceName) + { + 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/", false); + uri.AppendPath(resourceNamespace, true); + uri.AppendPath("/", false); + uri.AppendPath(resourceType, true); + uri.AppendPath("/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/providers/Microsoft.Security/adaptiveNetworkHardenings/", false); + uri.AppendPath(adaptiveNetworkHardeningResourceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string resourceNamespace, string resourceType, string resourceName, string adaptiveNetworkHardeningResourceName) { var message = _pipeline.CreateMessage(); @@ -228,6 +267,28 @@ public Response Get(string subscriptionId, string } } + internal RequestUriBuilder CreateEnforceRequestUri(string subscriptionId, string resourceGroupName, string resourceNamespace, string resourceType, string resourceName, string adaptiveNetworkHardeningResourceName, AdaptiveNetworkHardeningEnforceContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/", false); + uri.AppendPath(resourceNamespace, true); + uri.AppendPath("/", false); + uri.AppendPath(resourceType, true); + uri.AppendPath("/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/providers/Microsoft.Security/adaptiveNetworkHardenings/", false); + uri.AppendPath(adaptiveNetworkHardeningResourceName, true); + uri.AppendPath("/", false); + uri.AppendPath("enforce", true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateEnforceRequest(string subscriptionId, string resourceGroupName, string resourceNamespace, string resourceType, string resourceName, string adaptiveNetworkHardeningResourceName, AdaptiveNetworkHardeningEnforceContent content) { var message = _pipeline.CreateMessage(); @@ -326,6 +387,14 @@ public Response Enforce(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreateListByExtendedResourceNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string resourceNamespace, string resourceType, string resourceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByExtendedResourceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string resourceNamespace, string resourceType, string resourceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/AdvancedThreatProtectionRestOperations.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/AdvancedThreatProtectionRestOperations.cs index a4f6b3938cc9..69d00bc31194 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/AdvancedThreatProtectionRestOperations.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/AdvancedThreatProtectionRestOperations.cs @@ -36,6 +36,18 @@ public AdvancedThreatProtectionRestOperations(HttpPipeline pipeline, string appl _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string resourceId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceId, false); + uri.AppendPath("/providers/Microsoft.Security/advancedThreatProtectionSettings/", false); + uri.AppendPath("current", true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string resourceId) { var message = _pipeline.CreateMessage(); @@ -106,6 +118,18 @@ public Response Get(string resourceId, Canc } } + internal RequestUriBuilder CreateCreateRequestUri(string resourceId, AdvancedThreatProtectionSettingData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceId, false); + uri.AppendPath("/providers/Microsoft.Security/advancedThreatProtectionSettings/", false); + uri.AppendPath("current", true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string resourceId, AdvancedThreatProtectionSettingData data) { var message = _pipeline.CreateMessage(); diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/AlertsRestOperations.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/AlertsRestOperations.cs index c8f696f3643a..a5fbcfba0095 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/AlertsRestOperations.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/AlertsRestOperations.cs @@ -37,6 +37,17 @@ public AlertsRestOperations(HttpPipeline pipeline, string applicationId, Uri end _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Security/alerts", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,19 @@ public Response List(string subscriptionId, CancellationToken cancell } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.Security/alerts", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -177,6 +201,19 @@ public Response ListByResourceGroup(string subscriptionId, string res } } + internal RequestUriBuilder CreateListSubscriptionLevelByRegionRequestUri(string subscriptionId, AzureLocation ascLocation) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Security/locations/", false); + uri.AppendPath(ascLocation, true); + uri.AppendPath("/alerts", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListSubscriptionLevelByRegionRequest(string subscriptionId, AzureLocation ascLocation) { var message = _pipeline.CreateMessage(); @@ -248,6 +285,21 @@ public Response ListSubscriptionLevelByRegion(string subscriptionId, } } + internal RequestUriBuilder CreateListResourceGroupLevelByRegionRequestUri(string subscriptionId, string resourceGroupName, AzureLocation ascLocation) + { + 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.Security/locations/", false); + uri.AppendPath(ascLocation, true); + uri.AppendPath("/alerts", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListResourceGroupLevelByRegionRequest(string subscriptionId, string resourceGroupName, AzureLocation ascLocation) { var message = _pipeline.CreateMessage(); @@ -325,6 +377,20 @@ public Response ListResourceGroupLevelByRegion(string subscriptionId, } } + internal RequestUriBuilder CreateGetSubscriptionLevelRequestUri(string subscriptionId, AzureLocation ascLocation, string alertName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Security/locations/", false); + uri.AppendPath(ascLocation, true); + uri.AppendPath("/alerts/", false); + uri.AppendPath(alertName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetSubscriptionLevelRequest(string subscriptionId, AzureLocation ascLocation, string alertName) { var message = _pipeline.CreateMessage(); @@ -405,6 +471,22 @@ public Response GetSubscriptionLevel(string subscriptionId, A } } + internal RequestUriBuilder CreateGetResourceGroupLevelRequestUri(string subscriptionId, string resourceGroupName, AzureLocation ascLocation, string alertName) + { + 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.Security/locations/", false); + uri.AppendPath(ascLocation, true); + uri.AppendPath("/alerts/", false); + uri.AppendPath(alertName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetResourceGroupLevelRequest(string subscriptionId, string resourceGroupName, AzureLocation ascLocation, string alertName) { var message = _pipeline.CreateMessage(); @@ -491,6 +573,21 @@ public Response GetResourceGroupLevel(string subscriptionId, } } + internal RequestUriBuilder CreateUpdateSubscriptionLevelStateToDismissRequestUri(string subscriptionId, AzureLocation ascLocation, string alertName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Security/locations/", false); + uri.AppendPath(ascLocation, true); + uri.AppendPath("/alerts/", false); + uri.AppendPath(alertName, true); + uri.AppendPath("/dismiss", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateSubscriptionLevelStateToDismissRequest(string subscriptionId, AzureLocation ascLocation, string alertName) { var message = _pipeline.CreateMessage(); @@ -558,6 +655,21 @@ public Response UpdateSubscriptionLevelStateToDismiss(string subscriptionId, Azu } } + internal RequestUriBuilder CreateUpdateSubscriptionLevelStateToResolveRequestUri(string subscriptionId, AzureLocation ascLocation, string alertName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Security/locations/", false); + uri.AppendPath(ascLocation, true); + uri.AppendPath("/alerts/", false); + uri.AppendPath(alertName, true); + uri.AppendPath("/resolve", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateSubscriptionLevelStateToResolveRequest(string subscriptionId, AzureLocation ascLocation, string alertName) { var message = _pipeline.CreateMessage(); @@ -625,6 +737,21 @@ public Response UpdateSubscriptionLevelStateToResolve(string subscriptionId, Azu } } + internal RequestUriBuilder CreateUpdateSubscriptionLevelStateToActivateRequestUri(string subscriptionId, AzureLocation ascLocation, string alertName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Security/locations/", false); + uri.AppendPath(ascLocation, true); + uri.AppendPath("/alerts/", false); + uri.AppendPath(alertName, true); + uri.AppendPath("/activate", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateSubscriptionLevelStateToActivateRequest(string subscriptionId, AzureLocation ascLocation, string alertName) { var message = _pipeline.CreateMessage(); @@ -692,6 +819,21 @@ public Response UpdateSubscriptionLevelStateToActivate(string subscriptionId, Az } } + internal RequestUriBuilder CreateUpdateSubscriptionLevelStateToInProgressRequestUri(string subscriptionId, AzureLocation ascLocation, string alertName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Security/locations/", false); + uri.AppendPath(ascLocation, true); + uri.AppendPath("/alerts/", false); + uri.AppendPath(alertName, true); + uri.AppendPath("/inProgress", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateSubscriptionLevelStateToInProgressRequest(string subscriptionId, AzureLocation ascLocation, string alertName) { var message = _pipeline.CreateMessage(); @@ -759,6 +901,23 @@ public Response UpdateSubscriptionLevelStateToInProgress(string subscriptionId, } } + internal RequestUriBuilder CreateUpdateResourceGroupLevelStateToResolveRequestUri(string subscriptionId, string resourceGroupName, AzureLocation ascLocation, string alertName) + { + 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.Security/locations/", false); + uri.AppendPath(ascLocation, true); + uri.AppendPath("/alerts/", false); + uri.AppendPath(alertName, true); + uri.AppendPath("/resolve", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateResourceGroupLevelStateToResolveRequest(string subscriptionId, string resourceGroupName, AzureLocation ascLocation, string alertName) { var message = _pipeline.CreateMessage(); @@ -832,6 +991,23 @@ public Response UpdateResourceGroupLevelStateToResolve(string subscriptionId, st } } + internal RequestUriBuilder CreateUpdateResourceGroupLevelStateToDismissRequestUri(string subscriptionId, string resourceGroupName, AzureLocation ascLocation, string alertName) + { + 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.Security/locations/", false); + uri.AppendPath(ascLocation, true); + uri.AppendPath("/alerts/", false); + uri.AppendPath(alertName, true); + uri.AppendPath("/dismiss", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateResourceGroupLevelStateToDismissRequest(string subscriptionId, string resourceGroupName, AzureLocation ascLocation, string alertName) { var message = _pipeline.CreateMessage(); @@ -905,6 +1081,23 @@ public Response UpdateResourceGroupLevelStateToDismiss(string subscriptionId, st } } + internal RequestUriBuilder CreateUpdateResourceGroupLevelStateToActivateRequestUri(string subscriptionId, string resourceGroupName, AzureLocation ascLocation, string alertName) + { + 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.Security/locations/", false); + uri.AppendPath(ascLocation, true); + uri.AppendPath("/alerts/", false); + uri.AppendPath(alertName, true); + uri.AppendPath("/activate", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateResourceGroupLevelStateToActivateRequest(string subscriptionId, string resourceGroupName, AzureLocation ascLocation, string alertName) { var message = _pipeline.CreateMessage(); @@ -978,6 +1171,23 @@ public Response UpdateResourceGroupLevelStateToActivate(string subscriptionId, s } } + internal RequestUriBuilder CreateUpdateResourceGroupLevelStateToInProgressRequestUri(string subscriptionId, string resourceGroupName, AzureLocation ascLocation, string alertName) + { + 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.Security/locations/", false); + uri.AppendPath(ascLocation, true); + uri.AppendPath("/alerts/", false); + uri.AppendPath(alertName, true); + uri.AppendPath("/inProgress", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateResourceGroupLevelStateToInProgressRequest(string subscriptionId, string resourceGroupName, AzureLocation ascLocation, string alertName) { var message = _pipeline.CreateMessage(); @@ -1051,6 +1261,19 @@ public Response UpdateResourceGroupLevelStateToInProgress(string subscriptionId, } } + internal RequestUriBuilder CreateSimulateRequestUri(string subscriptionId, AzureLocation ascLocation, SecurityAlertSimulatorContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Security/locations/", false); + uri.AppendPath(ascLocation, true); + uri.AppendPath("/alerts/default/simulate", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateSimulateRequest(string subscriptionId, AzureLocation ascLocation, SecurityAlertSimulatorContent content) { var message = _pipeline.CreateMessage(); @@ -1120,6 +1343,14 @@ public Response Simulate(string subscriptionId, AzureLocation ascLocation, Secur } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -1188,6 +1419,14 @@ public Response ListNextPage(string nextLink, string subscriptionId, } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -1260,6 +1499,14 @@ public Response ListByResourceGroupNextPage(string nextLink, string s } } + internal RequestUriBuilder CreateListSubscriptionLevelByRegionNextPageRequestUri(string nextLink, string subscriptionId, AzureLocation ascLocation) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListSubscriptionLevelByRegionNextPageRequest(string nextLink, string subscriptionId, AzureLocation ascLocation) { var message = _pipeline.CreateMessage(); @@ -1330,6 +1577,14 @@ public Response ListSubscriptionLevelByRegionNextPage(string nextLink } } + internal RequestUriBuilder CreateListResourceGroupLevelByRegionNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, AzureLocation ascLocation) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListResourceGroupLevelByRegionNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, AzureLocation ascLocation) { var message = _pipeline.CreateMessage(); diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/AlertsSuppressionRulesRestOperations.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/AlertsSuppressionRulesRestOperations.cs index 8b9d4f8d6d49..d5b586940b3c 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/AlertsSuppressionRulesRestOperations.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/AlertsSuppressionRulesRestOperations.cs @@ -37,6 +37,21 @@ public AlertsSuppressionRulesRestOperations(HttpPipeline pipeline, string applic _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string alertType) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Security/alertsSuppressionRules", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (alertType != null) + { + uri.AppendQuery("AlertType", alertType, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string alertType) { var message = _pipeline.CreateMessage(); @@ -110,6 +125,18 @@ public Response List(string subscriptionId, string a } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string alertsSuppressionRuleName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Security/alertsSuppressionRules/", false); + uri.AppendPath(alertsSuppressionRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string alertsSuppressionRuleName) { var message = _pipeline.CreateMessage(); @@ -186,6 +213,18 @@ public Response Get(string subscriptionId, st } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string alertsSuppressionRuleName, SecurityAlertsSuppressionRuleData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Security/alertsSuppressionRules/", false); + uri.AppendPath(alertsSuppressionRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string alertsSuppressionRuleName, SecurityAlertsSuppressionRuleData data) { var message = _pipeline.CreateMessage(); @@ -266,6 +305,18 @@ public Response Update(string subscriptionId, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string alertsSuppressionRuleName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Security/alertsSuppressionRules/", false); + uri.AppendPath(alertsSuppressionRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string alertsSuppressionRuleName) { var message = _pipeline.CreateMessage(); @@ -328,6 +379,14 @@ public Response Delete(string subscriptionId, string alertsSuppressionRuleName, } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string alertType) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string alertType) { var message = _pipeline.CreateMessage(); diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/AllowedConnectionsRestOperations.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/AllowedConnectionsRestOperations.cs index 5efd190b7ff1..c83c1a0fe696 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/AllowedConnectionsRestOperations.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/AllowedConnectionsRestOperations.cs @@ -37,6 +37,17 @@ public AllowedConnectionsRestOperations(HttpPipeline pipeline, string applicatio _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Security/allowedConnections", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,19 @@ public Response List(string subscriptionId, Cancellation } } + internal RequestUriBuilder CreateListByHomeRegionRequestUri(string subscriptionId, AzureLocation ascLocation) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Security/locations/", false); + uri.AppendPath(ascLocation, true); + uri.AppendPath("/allowedConnections", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByHomeRegionRequest(string subscriptionId, AzureLocation ascLocation) { var message = _pipeline.CreateMessage(); @@ -175,6 +199,22 @@ public Response ListByHomeRegion(string subscriptionId, } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, AzureLocation ascLocation, SecurityCenterConnectionType connectionType) + { + 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.Security/locations/", false); + uri.AppendPath(ascLocation, true); + uri.AppendPath("/allowedConnections/", false); + uri.AppendPath(connectionType.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, AzureLocation ascLocation, SecurityCenterConnectionType connectionType) { var message = _pipeline.CreateMessage(); @@ -255,6 +295,14 @@ public Response Get(string subscriptionId, stri } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -323,6 +371,14 @@ public Response ListNextPage(string nextLink, string sub } } + internal RequestUriBuilder CreateListByHomeRegionNextPageRequestUri(string nextLink, string subscriptionId, AzureLocation ascLocation) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByHomeRegionNextPageRequest(string nextLink, string subscriptionId, AzureLocation ascLocation) { var message = _pipeline.CreateMessage(); diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/ApplicationRestOperations.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/ApplicationRestOperations.cs index 7d83eb1a268b..0b8a6b3e0b21 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/ApplicationRestOperations.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/ApplicationRestOperations.cs @@ -36,6 +36,18 @@ public ApplicationRestOperations(HttpPipeline pipeline, string applicationId, Ur _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string applicationId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Security/applications/", false); + uri.AppendPath(applicationId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string applicationId) { var message = _pipeline.CreateMessage(); @@ -112,6 +124,18 @@ public Response Get(string subscriptionId, string appli } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string applicationId, SecurityApplicationData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Security/applications/", false); + uri.AppendPath(applicationId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string applicationId, SecurityApplicationData data) { var message = _pipeline.CreateMessage(); @@ -194,6 +218,18 @@ public Response CreateOrUpdate(string subscriptionId, s } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string applicationId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Security/applications/", false); + uri.AppendPath(applicationId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string applicationId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/ApplicationsRestOperations.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/ApplicationsRestOperations.cs index 3fbb61277fed..cef0e3833598 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/ApplicationsRestOperations.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/ApplicationsRestOperations.cs @@ -37,6 +37,17 @@ public ApplicationsRestOperations(HttpPipeline pipeline, string applicationId, U _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Security/applications", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,14 @@ public Response List(string subscriptionId, CancellationToken } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/AssessmentsMetadataRestOperations.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/AssessmentsMetadataRestOperations.cs index 418f6fc8f3a7..ba5f2b3381a9 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/AssessmentsMetadataRestOperations.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/AssessmentsMetadataRestOperations.cs @@ -37,6 +37,15 @@ public AssessmentsMetadataRestOperations(HttpPipeline pipeline, string applicati _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri() + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Security/assessmentMetadata", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest() { var message = _pipeline.CreateMessage(); @@ -92,6 +101,16 @@ public Response List(CancellationToken c } } + internal RequestUriBuilder CreateGetRequestUri(string assessmentMetadataName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Security/assessmentMetadata/", false); + uri.AppendPath(assessmentMetadataName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string assessmentMetadataName) { var message = _pipeline.CreateMessage(); @@ -162,6 +181,17 @@ public Response Get(string assessmentMetadataNam } } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Security/assessmentMetadata", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -229,6 +259,18 @@ public Response ListBySubscription(strin } } + internal RequestUriBuilder CreateGetInSubscriptionRequestUri(string subscriptionId, string assessmentMetadataName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Security/assessmentMetadata/", false); + uri.AppendPath(assessmentMetadataName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetInSubscriptionRequest(string subscriptionId, string assessmentMetadataName) { var message = _pipeline.CreateMessage(); @@ -305,6 +347,18 @@ public Response GetInSubscription(string subscri } } + internal RequestUriBuilder CreateCreateInSubscriptionRequestUri(string subscriptionId, string assessmentMetadataName, SecurityAssessmentMetadataData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Security/assessmentMetadata/", false); + uri.AppendPath(assessmentMetadataName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateInSubscriptionRequest(string subscriptionId, string assessmentMetadataName, SecurityAssessmentMetadataData data) { var message = _pipeline.CreateMessage(); @@ -385,6 +439,18 @@ public Response CreateInSubscription(string subs } } + internal RequestUriBuilder CreateDeleteInSubscriptionRequestUri(string subscriptionId, string assessmentMetadataName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Security/assessmentMetadata/", false); + uri.AppendPath(assessmentMetadataName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteInSubscriptionRequest(string subscriptionId, string assessmentMetadataName) { var message = _pipeline.CreateMessage(); @@ -447,6 +513,14 @@ public Response DeleteInSubscription(string subscriptionId, string assessmentMet } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink) { var message = _pipeline.CreateMessage(); @@ -509,6 +583,14 @@ public Response ListNextPage(string next } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/AssessmentsRestOperations.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/AssessmentsRestOperations.cs index d9a1d3ee7eba..bba744e070c2 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/AssessmentsRestOperations.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/AssessmentsRestOperations.cs @@ -37,6 +37,17 @@ public AssessmentsRestOperations(HttpPipeline pipeline, string applicationId, Ur _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string scope) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.Security/assessments", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string scope) { var message = _pipeline.CreateMessage(); @@ -102,6 +113,22 @@ public Response List(string scope, CancellationToken can } } + internal RequestUriBuilder CreateGetRequestUri(string resourceId, string assessmentName, SecurityAssessmentODataExpand? expand) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceId, false); + uri.AppendPath("/providers/Microsoft.Security/assessments/", false); + uri.AppendPath(assessmentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + if (expand != null) + { + uri.AppendQuery("$expand", expand.Value.ToString(), true); + } + return uri; + } + internal HttpMessage CreateGetRequest(string resourceId, string assessmentName, SecurityAssessmentODataExpand? expand) { var message = _pipeline.CreateMessage(); @@ -184,6 +211,18 @@ public Response Get(string resourceId, string assessment } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string resourceId, string assessmentName, SecurityAssessmentCreateOrUpdateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceId, false); + uri.AppendPath("/providers/Microsoft.Security/assessments/", false); + uri.AppendPath(assessmentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string resourceId, string assessmentName, SecurityAssessmentCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); @@ -266,6 +305,18 @@ public Response CreateOrUpdate(string resourceId, string } } + internal RequestUriBuilder CreateDeleteRequestUri(string resourceId, string assessmentName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceId, false); + uri.AppendPath("/providers/Microsoft.Security/assessments/", false); + uri.AppendPath(assessmentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string resourceId, string assessmentName) { var message = _pipeline.CreateMessage(); @@ -330,6 +381,14 @@ public Response Delete(string resourceId, string assessmentName, CancellationTok } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string scope) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string scope) { var message = _pipeline.CreateMessage(); diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/AutoProvisioningSettingsRestOperations.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/AutoProvisioningSettingsRestOperations.cs index 1babe5cfdff8..a4eea0abab79 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/AutoProvisioningSettingsRestOperations.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/AutoProvisioningSettingsRestOperations.cs @@ -37,6 +37,17 @@ public AutoProvisioningSettingsRestOperations(HttpPipeline pipeline, string appl _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Security/autoProvisioningSettings", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,18 @@ public Response List(string subscriptionId, Cancell } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string settingName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Security/autoProvisioningSettings/", false); + uri.AppendPath(settingName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string settingName) { var message = _pipeline.CreateMessage(); @@ -180,6 +203,18 @@ public Response Get(string subscriptionId, string s } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string settingName, AutoProvisioningSettingData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Security/autoProvisioningSettings/", false); + uri.AppendPath(settingName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string settingName, AutoProvisioningSettingData data) { var message = _pipeline.CreateMessage(); @@ -260,6 +295,14 @@ public Response Create(string subscriptionId, strin } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/AutomationsRestOperations.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/AutomationsRestOperations.cs index 877759fd517f..5e40ddb2b27f 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/AutomationsRestOperations.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/AutomationsRestOperations.cs @@ -37,6 +37,17 @@ public AutomationsRestOperations(HttpPipeline pipeline, string applicationId, Ur _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Security/automations", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,19 @@ public Response List(string subscriptionId, CancellationToken ca } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.Security/automations", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -177,6 +201,20 @@ public Response ListByResourceGroup(string subscriptionId, strin } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string automationName) + { + 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.Security/automations/", false); + uri.AppendPath(automationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string automationName) { var message = _pipeline.CreateMessage(); @@ -259,6 +297,20 @@ public Response Get(string subscriptionId, string resour } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string automationName, SecurityAutomationData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Security/automations/", false); + uri.AppendPath(automationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string automationName, SecurityAutomationData data) { var message = _pipeline.CreateMessage(); @@ -347,6 +399,20 @@ public Response CreateOrUpdate(string subscriptionId, st } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string automationName) + { + 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.Security/automations/", false); + uri.AppendPath(automationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string automationName) { var message = _pipeline.CreateMessage(); @@ -415,6 +481,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateValidateRequestUri(string subscriptionId, string resourceGroupName, string automationName, SecurityAutomationData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Security/automations/", false); + uri.AppendPath(automationName, true); + uri.AppendPath("/validate", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateValidateRequest(string subscriptionId, string resourceGroupName, string automationName, SecurityAutomationData data) { var message = _pipeline.CreateMessage(); @@ -502,6 +583,14 @@ public Response Validate(string subscription } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -570,6 +659,14 @@ public Response ListNextPage(string nextLink, string subscriptio } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/AzureDevOpsOrgsRestOperations.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/AzureDevOpsOrgsRestOperations.cs index 8bec71884a18..2341db19e779 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/AzureDevOpsOrgsRestOperations.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/AzureDevOpsOrgsRestOperations.cs @@ -37,6 +37,21 @@ public AzureDevOpsOrgsRestOperations(HttpPipeline pipeline, string applicationId _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListAvailableRequestUri(string subscriptionId, string resourceGroupName, string securityConnectorName) + { + 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.Security/securityConnectors/", false); + uri.AppendPath(securityConnectorName, true); + uri.AppendPath("/devops/default/listAvailableAzureDevOpsOrgs", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListAvailableRequest(string subscriptionId, string resourceGroupName, string securityConnectorName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,21 @@ public Response ListAvailable(string subscriptionId, } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string securityConnectorName) + { + 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.Security/securityConnectors/", false); + uri.AppendPath(securityConnectorName, true); + uri.AppendPath("/devops/default/azureDevOpsOrgs", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string securityConnectorName) { var message = _pipeline.CreateMessage(); @@ -195,6 +225,22 @@ public Response List(string subscriptionId, string r } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string securityConnectorName, string orgName) + { + 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.Security/securityConnectors/", false); + uri.AppendPath(securityConnectorName, true); + uri.AppendPath("/devops/default/azureDevOpsOrgs/", false); + uri.AppendPath(orgName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string securityConnectorName, string orgName) { var message = _pipeline.CreateMessage(); @@ -283,6 +329,22 @@ public Response Get(string subscriptionId, string resourceGroupNa } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string securityConnectorName, string orgName, DevOpsOrgData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Security/securityConnectors/", false); + uri.AppendPath(securityConnectorName, true); + uri.AppendPath("/devops/default/azureDevOpsOrgs/", false); + uri.AppendPath(orgName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string securityConnectorName, string orgName, DevOpsOrgData data) { var message = _pipeline.CreateMessage(); @@ -367,6 +429,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string securityConnectorName, string orgName, DevOpsOrgData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Security/securityConnectors/", false); + uri.AppendPath(securityConnectorName, true); + uri.AppendPath("/devops/default/azureDevOpsOrgs/", false); + uri.AppendPath(orgName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string securityConnectorName, string orgName, DevOpsOrgData data) { var message = _pipeline.CreateMessage(); @@ -451,6 +529,14 @@ public Response Update(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string securityConnectorName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string securityConnectorName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/AzureDevOpsProjectsRestOperations.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/AzureDevOpsProjectsRestOperations.cs index 2d523cf951f1..903200f25c2d 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/AzureDevOpsProjectsRestOperations.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/AzureDevOpsProjectsRestOperations.cs @@ -37,6 +37,23 @@ public AzureDevOpsProjectsRestOperations(HttpPipeline pipeline, string applicati _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string securityConnectorName, string orgName) + { + 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.Security/securityConnectors/", false); + uri.AppendPath(securityConnectorName, true); + uri.AppendPath("/devops/default/azureDevOpsOrgs/", false); + uri.AppendPath(orgName, true); + uri.AppendPath("/projects", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string securityConnectorName, string orgName) { var message = _pipeline.CreateMessage(); @@ -122,6 +139,24 @@ public Response List(string subscriptionId, stri } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string securityConnectorName, string orgName, string projectName) + { + 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.Security/securityConnectors/", false); + uri.AppendPath(securityConnectorName, true); + uri.AppendPath("/devops/default/azureDevOpsOrgs/", false); + uri.AppendPath(orgName, true); + uri.AppendPath("/projects/", false); + uri.AppendPath(projectName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string securityConnectorName, string orgName, string projectName) { var message = _pipeline.CreateMessage(); @@ -216,6 +251,24 @@ public Response Get(string subscriptionId, string resourceGro } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string securityConnectorName, string orgName, string projectName, DevOpsProjectData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Security/securityConnectors/", false); + uri.AppendPath(securityConnectorName, true); + uri.AppendPath("/devops/default/azureDevOpsOrgs/", false); + uri.AppendPath(orgName, true); + uri.AppendPath("/projects/", false); + uri.AppendPath(projectName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string securityConnectorName, string orgName, string projectName, DevOpsProjectData data) { var message = _pipeline.CreateMessage(); @@ -306,6 +359,24 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string securityConnectorName, string orgName, string projectName, DevOpsProjectData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Security/securityConnectors/", false); + uri.AppendPath(securityConnectorName, true); + uri.AppendPath("/devops/default/azureDevOpsOrgs/", false); + uri.AppendPath(orgName, true); + uri.AppendPath("/projects/", false); + uri.AppendPath(projectName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string securityConnectorName, string orgName, string projectName, DevOpsProjectData data) { var message = _pipeline.CreateMessage(); @@ -396,6 +467,14 @@ public Response Update(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string securityConnectorName, string orgName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string securityConnectorName, string orgName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/AzureDevOpsReposRestOperations.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/AzureDevOpsReposRestOperations.cs index a533e07ed3a5..dd544cf0f0c4 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/AzureDevOpsReposRestOperations.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/AzureDevOpsReposRestOperations.cs @@ -37,6 +37,25 @@ public AzureDevOpsReposRestOperations(HttpPipeline pipeline, string applicationI _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string securityConnectorName, string orgName, string projectName) + { + 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.Security/securityConnectors/", false); + uri.AppendPath(securityConnectorName, true); + uri.AppendPath("/devops/default/azureDevOpsOrgs/", false); + uri.AppendPath(orgName, true); + uri.AppendPath("/projects/", false); + uri.AppendPath(projectName, true); + uri.AppendPath("/repos", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string securityConnectorName, string orgName, string projectName) { var message = _pipeline.CreateMessage(); @@ -128,6 +147,26 @@ public Response List(string subscriptionId, s } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string securityConnectorName, string orgName, string projectName, string repoName) + { + 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.Security/securityConnectors/", false); + uri.AppendPath(securityConnectorName, true); + uri.AppendPath("/devops/default/azureDevOpsOrgs/", false); + uri.AppendPath(orgName, true); + uri.AppendPath("/projects/", false); + uri.AppendPath(projectName, true); + uri.AppendPath("/repos/", false); + uri.AppendPath(repoName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string securityConnectorName, string orgName, string projectName, string repoName) { var message = _pipeline.CreateMessage(); @@ -228,6 +267,26 @@ public Response Get(string subscriptionId, string resource } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string securityConnectorName, string orgName, string projectName, string repoName, DevOpsRepositoryData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Security/securityConnectors/", false); + uri.AppendPath(securityConnectorName, true); + uri.AppendPath("/devops/default/azureDevOpsOrgs/", false); + uri.AppendPath(orgName, true); + uri.AppendPath("/projects/", false); + uri.AppendPath(projectName, true); + uri.AppendPath("/repos/", false); + uri.AppendPath(repoName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string securityConnectorName, string orgName, string projectName, string repoName, DevOpsRepositoryData data) { var message = _pipeline.CreateMessage(); @@ -324,6 +383,26 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string securityConnectorName, string orgName, string projectName, string repoName, DevOpsRepositoryData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Security/securityConnectors/", false); + uri.AppendPath(securityConnectorName, true); + uri.AppendPath("/devops/default/azureDevOpsOrgs/", false); + uri.AppendPath(orgName, true); + uri.AppendPath("/projects/", false); + uri.AppendPath(projectName, true); + uri.AppendPath("/repos/", false); + uri.AppendPath(repoName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string securityConnectorName, string orgName, string projectName, string repoName, DevOpsRepositoryData data) { var message = _pipeline.CreateMessage(); @@ -420,6 +499,14 @@ public Response Update(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string securityConnectorName, string orgName, string projectName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string securityConnectorName, string orgName, string projectName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/ComplianceResultsRestOperations.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/ComplianceResultsRestOperations.cs index d61fd3957a5c..c3fe041fd92d 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/ComplianceResultsRestOperations.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/ComplianceResultsRestOperations.cs @@ -37,6 +37,17 @@ public ComplianceResultsRestOperations(HttpPipeline pipeline, string application _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string scope) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.Security/complianceResults", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string scope) { var message = _pipeline.CreateMessage(); @@ -102,6 +113,18 @@ public Response List(string scope, CancellationToken cance } } + internal RequestUriBuilder CreateGetRequestUri(string resourceId, string complianceResultName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceId, false); + uri.AppendPath("/providers/Microsoft.Security/complianceResults/", false); + uri.AppendPath(complianceResultName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string resourceId, string complianceResultName) { var message = _pipeline.CreateMessage(); @@ -178,6 +201,14 @@ public Response Get(string resourceId, string complianceRe } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string scope) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string scope) { var message = _pipeline.CreateMessage(); diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/CompliancesRestOperations.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/CompliancesRestOperations.cs index 781faeb4a23f..573b1756c7b2 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/CompliancesRestOperations.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/CompliancesRestOperations.cs @@ -37,6 +37,17 @@ public CompliancesRestOperations(HttpPipeline pipeline, string applicationId, Ur _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string scope) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.Security/compliances", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string scope) { var message = _pipeline.CreateMessage(); @@ -102,6 +113,18 @@ public Response List(string scope, CancellationToken cancellatio } } + internal RequestUriBuilder CreateGetRequestUri(string scope, string complianceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.Security/compliances/", false); + uri.AppendPath(complianceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string scope, string complianceName) { var message = _pipeline.CreateMessage(); @@ -178,6 +201,14 @@ public Response Get(string scope, string complianceName, } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string scope) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string scope) { var message = _pipeline.CreateMessage(); diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/ConnectorsRestOperations.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/ConnectorsRestOperations.cs index 84fa1c325f06..7b4c6a0ba1a1 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/ConnectorsRestOperations.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/ConnectorsRestOperations.cs @@ -37,6 +37,17 @@ public ConnectorsRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Security/connectors", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,18 @@ public Response List(string subscriptionId, CancellationTo } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string connectorName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Security/connectors/", false); + uri.AppendPath(connectorName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string connectorName) { var message = _pipeline.CreateMessage(); @@ -180,6 +203,18 @@ public Response Get(string subscriptionId, string co } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string connectorName, SecurityCloudConnectorData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Security/connectors/", false); + uri.AppendPath(connectorName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string connectorName, SecurityCloudConnectorData data) { var message = _pipeline.CreateMessage(); @@ -260,6 +295,18 @@ public Response CreateOrUpdate(string subscriptionId } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string connectorName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Security/connectors/", false); + uri.AppendPath(connectorName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string connectorName) { var message = _pipeline.CreateMessage(); @@ -324,6 +371,14 @@ public Response Delete(string subscriptionId, string connectorName, Cancellation } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/CustomAssessmentAutomationsRestOperations.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/CustomAssessmentAutomationsRestOperations.cs index 324344935ed1..f62cf6452f8b 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/CustomAssessmentAutomationsRestOperations.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/CustomAssessmentAutomationsRestOperations.cs @@ -37,6 +37,20 @@ public CustomAssessmentAutomationsRestOperations(HttpPipeline pipeline, string a _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string customAssessmentAutomationName) + { + 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.Security/customAssessmentAutomations/", false); + uri.AppendPath(customAssessmentAutomationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string customAssessmentAutomationName) { var message = _pipeline.CreateMessage(); @@ -119,6 +133,20 @@ public Response Get(string subscriptionId, strin } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string customAssessmentAutomationName, CustomAssessmentAutomationCreateOrUpdateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourcegroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Security/customAssessmentAutomations/", false); + uri.AppendPath(customAssessmentAutomationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string customAssessmentAutomationName, CustomAssessmentAutomationCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); @@ -207,6 +235,20 @@ public Response Create(string subscriptionId, st } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string customAssessmentAutomationName) + { + 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.Security/customAssessmentAutomations/", false); + uri.AppendPath(customAssessmentAutomationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string customAssessmentAutomationName) { var message = _pipeline.CreateMessage(); @@ -277,6 +319,19 @@ public Response Delete(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.Security/customAssessmentAutomations", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -350,6 +405,17 @@ public Response ListByResourceGroup(strin } } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Security/customAssessmentAutomations", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -417,6 +483,14 @@ public Response ListBySubscription(string } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -489,6 +563,14 @@ public Response ListByResourceGroupNextPa } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/CustomEntityStoreAssignmentsRestOperations.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/CustomEntityStoreAssignmentsRestOperations.cs index ab80641a357a..7e71a40f096e 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/CustomEntityStoreAssignmentsRestOperations.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/CustomEntityStoreAssignmentsRestOperations.cs @@ -37,6 +37,20 @@ public CustomEntityStoreAssignmentsRestOperations(HttpPipeline pipeline, string _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string customEntityStoreAssignmentName) + { + 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.Security/customEntityStoreAssignments/", false); + uri.AppendPath(customEntityStoreAssignmentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string customEntityStoreAssignmentName) { var message = _pipeline.CreateMessage(); @@ -119,6 +133,20 @@ public Response Get(string subscriptionId, stri } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string customEntityStoreAssignmentName, CustomEntityStoreAssignmentCreateOrUpdateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourcegroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Security/customEntityStoreAssignments/", false); + uri.AppendPath(customEntityStoreAssignmentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string customEntityStoreAssignmentName, CustomEntityStoreAssignmentCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); @@ -207,6 +235,20 @@ public Response Create(string subscriptionId, s } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string customEntityStoreAssignmentName) + { + 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.Security/customEntityStoreAssignments/", false); + uri.AppendPath(customEntityStoreAssignmentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string customEntityStoreAssignmentName) { var message = _pipeline.CreateMessage(); @@ -277,6 +319,19 @@ public Response Delete(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.Security/customEntityStoreAssignments", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -350,6 +405,17 @@ public Response ListByResourceGroup(stri } } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Security/customEntityStoreAssignments", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -417,6 +483,14 @@ public Response ListBySubscription(strin } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -489,6 +563,14 @@ public Response ListByResourceGroupNextP } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/DefenderForStorageRestOperations.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/DefenderForStorageRestOperations.cs index d39dfc526bbc..5826b60a12b3 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/DefenderForStorageRestOperations.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/DefenderForStorageRestOperations.cs @@ -37,6 +37,18 @@ public DefenderForStorageRestOperations(HttpPipeline pipeline, string applicatio _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string resourceId, DefenderForStorageSettingName settingName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceId, false); + uri.AppendPath("/providers/Microsoft.Security/defenderForStorageSettings/", false); + uri.AppendPath(settingName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string resourceId, DefenderForStorageSettingName settingName) { var message = _pipeline.CreateMessage(); @@ -109,6 +121,18 @@ public Response Get(string resourceId, DefenderFo } } + internal RequestUriBuilder CreateCreateRequestUri(string resourceId, DefenderForStorageSettingName settingName, DefenderForStorageSettingData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceId, false); + uri.AppendPath("/providers/Microsoft.Security/defenderForStorageSettings/", false); + uri.AppendPath(settingName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string resourceId, DefenderForStorageSettingName settingName, DefenderForStorageSettingData data) { var message = _pipeline.CreateMessage(); diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/DevOpsConfigurationsRestOperations.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/DevOpsConfigurationsRestOperations.cs index ce8a69ba3fb5..d67a80dd01a7 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/DevOpsConfigurationsRestOperations.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/DevOpsConfigurationsRestOperations.cs @@ -37,6 +37,21 @@ public DevOpsConfigurationsRestOperations(HttpPipeline pipeline, string applicat _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string securityConnectorName) + { + 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.Security/securityConnectors/", false); + uri.AppendPath(securityConnectorName, true); + uri.AppendPath("/devops", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string securityConnectorName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,21 @@ public Response List(string subscriptionId, str } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string securityConnectorName) + { + 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.Security/securityConnectors/", false); + uri.AppendPath(securityConnectorName, true); + uri.AppendPath("/devops/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string securityConnectorName) { var message = _pipeline.CreateMessage(); @@ -199,6 +229,21 @@ public Response Get(string subscriptionId, string resou } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string securityConnectorName, DevOpsConfigurationData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Security/securityConnectors/", false); + uri.AppendPath(securityConnectorName, true); + uri.AppendPath("/devops/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string securityConnectorName, DevOpsConfigurationData data) { var message = _pipeline.CreateMessage(); @@ -280,6 +325,21 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string securityConnectorName, DevOpsConfigurationData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Security/securityConnectors/", false); + uri.AppendPath(securityConnectorName, true); + uri.AppendPath("/devops/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string securityConnectorName, DevOpsConfigurationData data) { var message = _pipeline.CreateMessage(); @@ -359,6 +419,21 @@ public Response Update(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string securityConnectorName) + { + 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.Security/securityConnectors/", false); + uri.AppendPath(securityConnectorName, true); + uri.AppendPath("/devops/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string securityConnectorName) { var message = _pipeline.CreateMessage(); @@ -432,6 +507,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string securityConnectorName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string securityConnectorName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/DevOpsOperationResultsRestOperations.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/DevOpsOperationResultsRestOperations.cs index bdf6c327251b..9e80f52a1c6e 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/DevOpsOperationResultsRestOperations.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/DevOpsOperationResultsRestOperations.cs @@ -37,6 +37,22 @@ public DevOpsOperationResultsRestOperations(HttpPipeline pipeline, string applic _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string securityConnectorName, string operationResultId) + { + 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.Security/securityConnectors/", false); + uri.AppendPath(securityConnectorName, true); + uri.AppendPath("/devops/default/operationResults/", false); + uri.AppendPath(operationResultId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string securityConnectorName, string operationResultId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/DeviceSecurityGroupsRestOperations.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/DeviceSecurityGroupsRestOperations.cs index 522d203fd5e5..135ab06c2f3b 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/DeviceSecurityGroupsRestOperations.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/DeviceSecurityGroupsRestOperations.cs @@ -37,6 +37,17 @@ public DeviceSecurityGroupsRestOperations(HttpPipeline pipeline, string applicat _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string resourceId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceId, false); + uri.AppendPath("/providers/Microsoft.Security/deviceSecurityGroups", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string resourceId) { var message = _pipeline.CreateMessage(); @@ -102,6 +113,18 @@ public Response List(string resourceId, CancellationTok } } + internal RequestUriBuilder CreateGetRequestUri(string resourceId, string deviceSecurityGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceId, false); + uri.AppendPath("/providers/Microsoft.Security/deviceSecurityGroups/", false); + uri.AppendPath(deviceSecurityGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string resourceId, string deviceSecurityGroupName) { var message = _pipeline.CreateMessage(); @@ -178,6 +201,18 @@ public Response Get(string resourceId, string deviceSec } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string resourceId, string deviceSecurityGroupName, DeviceSecurityGroupData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceId, false); + uri.AppendPath("/providers/Microsoft.Security/deviceSecurityGroups/", false); + uri.AppendPath(deviceSecurityGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string resourceId, string deviceSecurityGroupName, DeviceSecurityGroupData data) { var message = _pipeline.CreateMessage(); @@ -260,6 +295,18 @@ public Response CreateOrUpdate(string resourceId, strin } } + internal RequestUriBuilder CreateDeleteRequestUri(string resourceId, string deviceSecurityGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceId, false); + uri.AppendPath("/providers/Microsoft.Security/deviceSecurityGroups/", false); + uri.AppendPath(deviceSecurityGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string resourceId, string deviceSecurityGroupName) { var message = _pipeline.CreateMessage(); @@ -324,6 +371,14 @@ public Response Delete(string resourceId, string deviceSecurityGroupName, Cancel } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string resourceId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string resourceId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/DiscoveredSecuritySolutionsRestOperations.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/DiscoveredSecuritySolutionsRestOperations.cs index 1d7d7eb2806b..0b63c44c4b29 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/DiscoveredSecuritySolutionsRestOperations.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/DiscoveredSecuritySolutionsRestOperations.cs @@ -37,6 +37,17 @@ public DiscoveredSecuritySolutionsRestOperations(HttpPipeline pipeline, string a _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Security/discoveredSecuritySolutions", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,19 @@ public Response List(string subscriptionId, Canc } } + internal RequestUriBuilder CreateListByHomeRegionRequestUri(string subscriptionId, AzureLocation ascLocation) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Security/locations/", false); + uri.AppendPath(ascLocation, true); + uri.AppendPath("/discoveredSecuritySolutions", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByHomeRegionRequest(string subscriptionId, AzureLocation ascLocation) { var message = _pipeline.CreateMessage(); @@ -175,6 +199,22 @@ public Response ListByHomeRegion(string subscrip } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, AzureLocation ascLocation, string discoveredSecuritySolutionName) + { + 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.Security/locations/", false); + uri.AppendPath(ascLocation, true); + uri.AppendPath("/discoveredSecuritySolutions/", false); + uri.AppendPath(discoveredSecuritySolutionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, AzureLocation ascLocation, string discoveredSecuritySolutionName) { var message = _pipeline.CreateMessage(); @@ -257,6 +297,14 @@ public Response Get(string subscriptionId, string re } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -325,6 +373,14 @@ public Response ListNextPage(string nextLink, st } } + internal RequestUriBuilder CreateListByHomeRegionNextPageRequestUri(string nextLink, string subscriptionId, AzureLocation ascLocation) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByHomeRegionNextPageRequest(string nextLink, string subscriptionId, AzureLocation ascLocation) { var message = _pipeline.CreateMessage(); diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/ExternalSecuritySolutionsRestOperations.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/ExternalSecuritySolutionsRestOperations.cs index 63d1e2fe3e46..18dcbed9cdfe 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/ExternalSecuritySolutionsRestOperations.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/ExternalSecuritySolutionsRestOperations.cs @@ -37,6 +37,17 @@ public ExternalSecuritySolutionsRestOperations(HttpPipeline pipeline, string app _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Security/externalSecuritySolutions", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,19 @@ public Response List(string subscriptionId, Cancel } } + internal RequestUriBuilder CreateListByHomeRegionRequestUri(string subscriptionId, AzureLocation ascLocation) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Security/locations/", false); + uri.AppendPath(ascLocation, true); + uri.AppendPath("/ExternalSecuritySolutions", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByHomeRegionRequest(string subscriptionId, AzureLocation ascLocation) { var message = _pipeline.CreateMessage(); @@ -175,6 +199,22 @@ public Response ListByHomeRegion(string subscripti } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, AzureLocation ascLocation, string externalSecuritySolutionsName) + { + 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.Security/locations/", false); + uri.AppendPath(ascLocation, true); + uri.AppendPath("/ExternalSecuritySolutions/", false); + uri.AppendPath(externalSecuritySolutionsName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, AzureLocation ascLocation, string externalSecuritySolutionsName) { var message = _pipeline.CreateMessage(); @@ -257,6 +297,14 @@ public Response Get(string subscriptionId, string reso } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -325,6 +373,14 @@ public Response ListNextPage(string nextLink, stri } } + internal RequestUriBuilder CreateListByHomeRegionNextPageRequestUri(string nextLink, string subscriptionId, AzureLocation ascLocation) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByHomeRegionNextPageRequest(string nextLink, string subscriptionId, AzureLocation ascLocation) { var message = _pipeline.CreateMessage(); diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/GitHubOwnersRestOperations.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/GitHubOwnersRestOperations.cs index 84e1fe943388..a461a3602293 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/GitHubOwnersRestOperations.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/GitHubOwnersRestOperations.cs @@ -37,6 +37,21 @@ public GitHubOwnersRestOperations(HttpPipeline pipeline, string applicationId, U _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListAvailableRequestUri(string subscriptionId, string resourceGroupName, string securityConnectorName) + { + 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.Security/securityConnectors/", false); + uri.AppendPath(securityConnectorName, true); + uri.AppendPath("/devops/default/listAvailableGitHubOwners", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListAvailableRequest(string subscriptionId, string resourceGroupName, string securityConnectorName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,21 @@ public Response ListAvailable(string subscriptionId, st } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string securityConnectorName) + { + 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.Security/securityConnectors/", false); + uri.AppendPath(securityConnectorName, true); + uri.AppendPath("/devops/default/gitHubOwners", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string securityConnectorName) { var message = _pipeline.CreateMessage(); @@ -195,6 +225,22 @@ public Response List(string subscriptionId, string reso } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string securityConnectorName, string ownerName) + { + 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.Security/securityConnectors/", false); + uri.AppendPath(securityConnectorName, true); + uri.AppendPath("/devops/default/gitHubOwners/", false); + uri.AppendPath(ownerName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string securityConnectorName, string ownerName) { var message = _pipeline.CreateMessage(); @@ -283,6 +329,14 @@ public Response Get(string subscriptionId, str } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string securityConnectorName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string securityConnectorName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/GitHubReposRestOperations.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/GitHubReposRestOperations.cs index 1c5bac6ab0dd..9abb1c084ac6 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/GitHubReposRestOperations.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/GitHubReposRestOperations.cs @@ -37,6 +37,23 @@ public GitHubReposRestOperations(HttpPipeline pipeline, string applicationId, Ur _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string securityConnectorName, string ownerName) + { + 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.Security/securityConnectors/", false); + uri.AppendPath(securityConnectorName, true); + uri.AppendPath("/devops/default/gitHubOwners/", false); + uri.AppendPath(ownerName, true); + uri.AppendPath("/repos", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string securityConnectorName, string ownerName) { var message = _pipeline.CreateMessage(); @@ -122,6 +139,24 @@ public Response List(string subscriptionId, string } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string securityConnectorName, string ownerName, string repoName) + { + 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.Security/securityConnectors/", false); + uri.AppendPath(securityConnectorName, true); + uri.AppendPath("/devops/default/gitHubOwners/", false); + uri.AppendPath(ownerName, true); + uri.AppendPath("/repos/", false); + uri.AppendPath(repoName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string securityConnectorName, string ownerName, string repoName) { var message = _pipeline.CreateMessage(); @@ -216,6 +251,14 @@ public Response Get(string subscriptionId } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string securityConnectorName, string ownerName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string securityConnectorName, string ownerName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/GitLabGroupsRestOperations.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/GitLabGroupsRestOperations.cs index 1445ff36f052..8d4557f44061 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/GitLabGroupsRestOperations.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/GitLabGroupsRestOperations.cs @@ -37,6 +37,21 @@ public GitLabGroupsRestOperations(HttpPipeline pipeline, string applicationId, U _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListAvailableRequestUri(string subscriptionId, string resourceGroupName, string securityConnectorName) + { + 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.Security/securityConnectors/", false); + uri.AppendPath(securityConnectorName, true); + uri.AppendPath("/devops/default/listAvailableGitLabGroups", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListAvailableRequest(string subscriptionId, string resourceGroupName, string securityConnectorName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,21 @@ public Response ListAvailable(string subscriptionId, st } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string securityConnectorName) + { + 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.Security/securityConnectors/", false); + uri.AppendPath(securityConnectorName, true); + uri.AppendPath("/devops/default/gitLabGroups", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string securityConnectorName) { var message = _pipeline.CreateMessage(); @@ -195,6 +225,22 @@ public Response List(string subscriptionId, string reso } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string securityConnectorName, string groupFQName) + { + 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.Security/securityConnectors/", false); + uri.AppendPath(securityConnectorName, true); + uri.AppendPath("/devops/default/gitLabGroups/", false); + uri.AppendPath(groupFQName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string securityConnectorName, string groupFQName) { var message = _pipeline.CreateMessage(); @@ -283,6 +329,14 @@ public Response Get(string subscriptionId, str } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string securityConnectorName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string securityConnectorName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/GitLabProjectsRestOperations.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/GitLabProjectsRestOperations.cs index 16808da41e88..f790fee69077 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/GitLabProjectsRestOperations.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/GitLabProjectsRestOperations.cs @@ -37,6 +37,23 @@ public GitLabProjectsRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string securityConnectorName, string groupFQName) + { + 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.Security/securityConnectors/", false); + uri.AppendPath(securityConnectorName, true); + uri.AppendPath("/devops/default/gitLabGroups/", false); + uri.AppendPath(groupFQName, true); + uri.AppendPath("/projects", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string securityConnectorName, string groupFQName) { var message = _pipeline.CreateMessage(); @@ -122,6 +139,24 @@ public Response List(string subscriptionId, string re } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string securityConnectorName, string groupFQName, string projectName) + { + 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.Security/securityConnectors/", false); + uri.AppendPath(securityConnectorName, true); + uri.AppendPath("/devops/default/gitLabGroups/", false); + uri.AppendPath(groupFQName, true); + uri.AppendPath("/projects/", false); + uri.AppendPath(projectName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string securityConnectorName, string groupFQName, string projectName) { var message = _pipeline.CreateMessage(); @@ -216,6 +251,14 @@ public Response Get(string subscriptionId, s } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string securityConnectorName, string groupFQName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string securityConnectorName, string groupFQName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/GitLabSubgroupsRestOperations.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/GitLabSubgroupsRestOperations.cs index 176d99fb68a6..8a08292ffa5f 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/GitLabSubgroupsRestOperations.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/GitLabSubgroupsRestOperations.cs @@ -37,6 +37,23 @@ public GitLabSubgroupsRestOperations(HttpPipeline pipeline, string applicationId _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string securityConnectorName, string groupFQName) + { + 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.Security/securityConnectors/", false); + uri.AppendPath(securityConnectorName, true); + uri.AppendPath("/devops/default/gitLabGroups/", false); + uri.AppendPath(groupFQName, true); + uri.AppendPath("/listSubgroups", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string securityConnectorName, string groupFQName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/GovernanceAssignmentsRestOperations.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/GovernanceAssignmentsRestOperations.cs index 2989ecf3248d..4c0710dabc18 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/GovernanceAssignmentsRestOperations.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/GovernanceAssignmentsRestOperations.cs @@ -37,6 +37,19 @@ public GovernanceAssignmentsRestOperations(HttpPipeline pipeline, string applica _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string scope, string assessmentName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.Security/assessments/", false); + uri.AppendPath(assessmentName, true); + uri.AppendPath("/governanceAssignments", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string scope, string assessmentName) { var message = _pipeline.CreateMessage(); @@ -110,6 +123,20 @@ public Response List(string scope, string assessmentN } } + internal RequestUriBuilder CreateGetRequestUri(string scope, string assessmentName, string assignmentKey) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.Security/assessments/", false); + uri.AppendPath(assessmentName, true); + uri.AppendPath("/governanceAssignments/", false); + uri.AppendPath(assignmentKey, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string scope, string assessmentName, string assignmentKey) { var message = _pipeline.CreateMessage(); @@ -192,6 +219,20 @@ public Response Get(string scope, string assessmentNam } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string scope, string assessmentName, string assignmentKey, GovernanceAssignmentData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.Security/assessments/", false); + uri.AppendPath(assessmentName, true); + uri.AppendPath("/governanceAssignments/", false); + uri.AppendPath(assignmentKey, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string scope, string assessmentName, string assignmentKey, GovernanceAssignmentData data) { var message = _pipeline.CreateMessage(); @@ -280,6 +321,20 @@ public Response CreateOrUpdate(string scope, string as } } + internal RequestUriBuilder CreateDeleteRequestUri(string scope, string assessmentName, string assignmentKey) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.Security/assessments/", false); + uri.AppendPath(assessmentName, true); + uri.AppendPath("/governanceAssignments/", false); + uri.AppendPath(assignmentKey, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string scope, string assessmentName, string assignmentKey) { var message = _pipeline.CreateMessage(); @@ -349,6 +404,14 @@ public Response Delete(string scope, string assessmentName, string assignmentKey } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string scope, string assessmentName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string scope, string assessmentName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/GovernanceRulesRestOperations.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/GovernanceRulesRestOperations.cs index 521fd9b0608c..7c0eea97707c 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/GovernanceRulesRestOperations.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/GovernanceRulesRestOperations.cs @@ -37,6 +37,17 @@ public GovernanceRulesRestOperations(HttpPipeline pipeline, string applicationId _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string scope) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.Security/governanceRules", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string scope) { var message = _pipeline.CreateMessage(); @@ -102,6 +113,18 @@ public Response List(string scope, CancellationToken cancell } } + internal RequestUriBuilder CreateGetRequestUri(string scope, string ruleId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.Security/governanceRules/", false); + uri.AppendPath(ruleId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string scope, string ruleId) { var message = _pipeline.CreateMessage(); @@ -178,6 +201,18 @@ public Response Get(string scope, string ruleId, Cancellatio } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string scope, string ruleId, GovernanceRuleData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.Security/governanceRules/", false); + uri.AppendPath(ruleId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string scope, string ruleId, GovernanceRuleData data) { var message = _pipeline.CreateMessage(); @@ -260,6 +295,18 @@ public Response CreateOrUpdate(string scope, string ruleId, } } + internal RequestUriBuilder CreateDeleteRequestUri(string scope, string ruleId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.Security/governanceRules/", false); + uri.AppendPath(ruleId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string scope, string ruleId) { var message = _pipeline.CreateMessage(); @@ -325,6 +372,19 @@ public Response Delete(string scope, string ruleId, CancellationToken cancellati } } + internal RequestUriBuilder CreateExecuteRequestUri(string scope, string ruleId, ExecuteGovernanceRuleParams executeGovernanceRuleParams) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.Security/governanceRules/", false); + uri.AppendPath(ruleId, true); + uri.AppendPath("/execute", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateExecuteRequest(string scope, string ruleId, ExecuteGovernanceRuleParams executeGovernanceRuleParams) { var message = _pipeline.CreateMessage(); @@ -397,6 +457,14 @@ public Response Execute(string scope, string ruleId, ExecuteGovernanceRuleParams } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string scope) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string scope) { var message = _pipeline.CreateMessage(); diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/HealthReportsRestOperations.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/HealthReportsRestOperations.cs index f43b0ae5f920..96c090d698ef 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/HealthReportsRestOperations.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/HealthReportsRestOperations.cs @@ -37,6 +37,17 @@ public HealthReportsRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string scope) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.Security/healthReports", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string scope) { var message = _pipeline.CreateMessage(); @@ -102,6 +113,18 @@ public Response List(string scope, CancellationToken cancella } } + internal RequestUriBuilder CreateGetRequestUri(string resourceId, string healthReportName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceId, false); + uri.AppendPath("/providers/Microsoft.Security/healthReports/", false); + uri.AppendPath(healthReportName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string resourceId, string healthReportName) { var message = _pipeline.CreateMessage(); @@ -178,6 +201,14 @@ public Response Get(string resourceId, string healthRe } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string scope) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string scope) { var message = _pipeline.CreateMessage(); diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/InformationProtectionPoliciesRestOperations.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/InformationProtectionPoliciesRestOperations.cs index 26064e146f1b..2c368ad7282a 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/InformationProtectionPoliciesRestOperations.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/InformationProtectionPoliciesRestOperations.cs @@ -37,6 +37,18 @@ public InformationProtectionPoliciesRestOperations(HttpPipeline pipeline, string _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string scope, InformationProtectionPolicyName informationProtectionPolicyName, InformationProtectionPolicy informationProtectionPolicy) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.Security/informationProtectionPolicies/", false); + uri.AppendPath(informationProtectionPolicyName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string scope, InformationProtectionPolicyName informationProtectionPolicyName, InformationProtectionPolicy informationProtectionPolicy) { var message = _pipeline.CreateMessage(); @@ -115,6 +127,17 @@ public Response CreateOrUpdate(string scope, Inform } } + internal RequestUriBuilder CreateListRequestUri(string scope) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.Security/informationProtectionPolicies", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string scope) { var message = _pipeline.CreateMessage(); @@ -180,6 +203,14 @@ public Response List(string scope, Cancellation } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string scope) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string scope) { var message = _pipeline.CreateMessage(); diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/IotSecuritySolutionAnalyticsRestOperations.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/IotSecuritySolutionAnalyticsRestOperations.cs index 18d3ff4e1f78..e8ef670ee1d0 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/IotSecuritySolutionAnalyticsRestOperations.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/IotSecuritySolutionAnalyticsRestOperations.cs @@ -37,6 +37,21 @@ public IotSecuritySolutionAnalyticsRestOperations(HttpPipeline pipeline, string _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string solutionName) + { + 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.Security/iotSecuritySolutions/", false); + uri.AppendPath(solutionName, true); + uri.AppendPath("/analyticsModels", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string solutionName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,21 @@ public Response List(string subscriptionI } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string solutionName) + { + 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.Security/iotSecuritySolutions/", false); + uri.AppendPath(solutionName, true); + uri.AppendPath("/analyticsModels/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string solutionName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/IotSecuritySolutionRestOperations.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/IotSecuritySolutionRestOperations.cs index f384e3c8ab0e..f035d7bcf587 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/IotSecuritySolutionRestOperations.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/IotSecuritySolutionRestOperations.cs @@ -37,6 +37,21 @@ public IotSecuritySolutionRestOperations(HttpPipeline pipeline, string applicati _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Security/iotSecuritySolutions", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId, string filter) { var message = _pipeline.CreateMessage(); @@ -110,6 +125,23 @@ public Response ListBySubscription(string subscription } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Security/iotSecuritySolutions", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName, string filter) { var message = _pipeline.CreateMessage(); @@ -189,6 +221,20 @@ public Response ListByResourceGroup(string subscriptio } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string solutionName) + { + 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.Security/iotSecuritySolutions/", false); + uri.AppendPath(solutionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string solutionName) { var message = _pipeline.CreateMessage(); @@ -271,6 +317,20 @@ public Response Get(string subscriptionId, string resou } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string solutionName, IotSecuritySolutionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Security/iotSecuritySolutions/", false); + uri.AppendPath(solutionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string solutionName, IotSecuritySolutionData data) { var message = _pipeline.CreateMessage(); @@ -359,6 +419,20 @@ public Response CreateOrUpdate(string subscriptionId, s } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string solutionName, IotSecuritySolutionPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Security/iotSecuritySolutions/", false); + uri.AppendPath(solutionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string solutionName, IotSecuritySolutionPatch patch) { var message = _pipeline.CreateMessage(); @@ -445,6 +519,20 @@ public Response Update(string subscriptionId, string re } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string solutionName) + { + 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.Security/iotSecuritySolutions/", false); + uri.AppendPath(solutionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string solutionName) { var message = _pipeline.CreateMessage(); @@ -515,6 +603,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId, string filter) { var message = _pipeline.CreateMessage(); @@ -585,6 +681,14 @@ public Response ListBySubscriptionNextPage(string next } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string filter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/IotSecuritySolutionsAnalyticsAggregatedAlertRestOperations.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/IotSecuritySolutionsAnalyticsAggregatedAlertRestOperations.cs index 1ec567c51f71..f31de582bfdd 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/IotSecuritySolutionsAnalyticsAggregatedAlertRestOperations.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/IotSecuritySolutionsAnalyticsAggregatedAlertRestOperations.cs @@ -37,6 +37,25 @@ public IotSecuritySolutionsAnalyticsAggregatedAlertRestOperations(HttpPipeline p _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string solutionName, int? top) + { + 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.Security/iotSecuritySolutions/", false); + uri.AppendPath(solutionName, true); + uri.AppendPath("/analyticsModels/default/aggregatedAlerts", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string solutionName, int? top) { var message = _pipeline.CreateMessage(); @@ -122,6 +141,22 @@ public Response List(string subscriptionId, stri } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string solutionName, string aggregatedAlertName) + { + 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.Security/iotSecuritySolutions/", false); + uri.AppendPath(solutionName, true); + uri.AppendPath("/analyticsModels/default/aggregatedAlerts/", false); + uri.AppendPath(aggregatedAlertName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string solutionName, string aggregatedAlertName) { var message = _pipeline.CreateMessage(); @@ -210,6 +245,23 @@ public Response Get(string subscriptionId, strin } } + internal RequestUriBuilder CreateDismissRequestUri(string subscriptionId, string resourceGroupName, string solutionName, string aggregatedAlertName) + { + 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.Security/iotSecuritySolutions/", false); + uri.AppendPath(solutionName, true); + uri.AppendPath("/analyticsModels/default/aggregatedAlerts/", false); + uri.AppendPath(aggregatedAlertName, true); + uri.AppendPath("/dismiss", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDismissRequest(string subscriptionId, string resourceGroupName, string solutionName, string aggregatedAlertName) { var message = _pipeline.CreateMessage(); @@ -285,6 +337,14 @@ public Response Dismiss(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string solutionName, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string solutionName, int? top) { var message = _pipeline.CreateMessage(); diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/IotSecuritySolutionsAnalyticsRecommendationRestOperations.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/IotSecuritySolutionsAnalyticsRecommendationRestOperations.cs index f6bbe80e1363..c99b9c5d1f38 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/IotSecuritySolutionsAnalyticsRecommendationRestOperations.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/IotSecuritySolutionsAnalyticsRecommendationRestOperations.cs @@ -37,6 +37,22 @@ public IotSecuritySolutionsAnalyticsRecommendationRestOperations(HttpPipeline pi _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string solutionName, string aggregatedRecommendationName) + { + 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.Security/iotSecuritySolutions/", false); + uri.AppendPath(solutionName, true); + uri.AppendPath("/analyticsModels/default/aggregatedRecommendations/", false); + uri.AppendPath(aggregatedRecommendationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string solutionName, string aggregatedRecommendationName) { var message = _pipeline.CreateMessage(); @@ -125,6 +141,25 @@ public Response Get(string subscription } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string solutionName, int? top) + { + 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.Security/iotSecuritySolutions/", false); + uri.AppendPath(solutionName, true); + uri.AppendPath("/analyticsModels/default/aggregatedRecommendations", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string solutionName, int? top) { var message = _pipeline.CreateMessage(); @@ -210,6 +245,14 @@ public Response List(string subscriptio } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string solutionName, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string solutionName, int? top) { var message = _pipeline.CreateMessage(); diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/JitNetworkAccessPoliciesRestOperations.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/JitNetworkAccessPoliciesRestOperations.cs index 4ae9d0b40a11..52c462f7d293 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/JitNetworkAccessPoliciesRestOperations.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/JitNetworkAccessPoliciesRestOperations.cs @@ -37,6 +37,17 @@ public JitNetworkAccessPoliciesRestOperations(HttpPipeline pipeline, string appl _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Security/jitNetworkAccessPolicies", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,19 @@ public Response List(string subscriptionId, Cancel } } + internal RequestUriBuilder CreateListByRegionRequestUri(string subscriptionId, AzureLocation ascLocation) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Security/locations/", false); + uri.AppendPath(ascLocation, true); + uri.AppendPath("/jitNetworkAccessPolicies", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByRegionRequest(string subscriptionId, AzureLocation ascLocation) { var message = _pipeline.CreateMessage(); @@ -175,6 +199,19 @@ public Response ListByRegion(string subscriptionId } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.Security/jitNetworkAccessPolicies", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -248,6 +285,21 @@ public Response ListByResourceGroup(string subscri } } + internal RequestUriBuilder CreateListByResourceGroupAndRegionRequestUri(string subscriptionId, string resourceGroupName, AzureLocation ascLocation) + { + 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.Security/locations/", false); + uri.AppendPath(ascLocation, true); + uri.AppendPath("/jitNetworkAccessPolicies", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupAndRegionRequest(string subscriptionId, string resourceGroupName, AzureLocation ascLocation) { var message = _pipeline.CreateMessage(); @@ -325,6 +377,22 @@ public Response ListByResourceGroupAndRegion(strin } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, AzureLocation ascLocation, string jitNetworkAccessPolicyName) + { + 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.Security/locations/", false); + uri.AppendPath(ascLocation, true); + uri.AppendPath("/jitNetworkAccessPolicies/", false); + uri.AppendPath(jitNetworkAccessPolicyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, AzureLocation ascLocation, string jitNetworkAccessPolicyName) { var message = _pipeline.CreateMessage(); @@ -411,6 +479,22 @@ public Response Get(string subscriptionId, string re } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, AzureLocation ascLocation, string jitNetworkAccessPolicyName, JitNetworkAccessPolicyData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Security/locations/", false); + uri.AppendPath(ascLocation, true); + uri.AppendPath("/jitNetworkAccessPolicies/", false); + uri.AppendPath(jitNetworkAccessPolicyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, AzureLocation ascLocation, string jitNetworkAccessPolicyName, JitNetworkAccessPolicyData data) { var message = _pipeline.CreateMessage(); @@ -501,6 +585,22 @@ public Response CreateOrUpdate(string subscriptionId } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, AzureLocation ascLocation, string jitNetworkAccessPolicyName) + { + 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.Security/locations/", false); + uri.AppendPath(ascLocation, true); + uri.AppendPath("/jitNetworkAccessPolicies/", false); + uri.AppendPath(jitNetworkAccessPolicyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, AzureLocation ascLocation, string jitNetworkAccessPolicyName) { var message = _pipeline.CreateMessage(); @@ -575,6 +675,24 @@ public Response Delete(string subscriptionId, string resourceGroupName, AzureLoc } } + internal RequestUriBuilder CreateInitiateRequestUri(string subscriptionId, string resourceGroupName, AzureLocation ascLocation, string jitNetworkAccessPolicyName, JitNetworkAccessPolicyInitiateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Security/locations/", false); + uri.AppendPath(ascLocation, true); + uri.AppendPath("/jitNetworkAccessPolicies/", false); + uri.AppendPath(jitNetworkAccessPolicyName, true); + uri.AppendPath("/", false); + uri.AppendPath("initiate", true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateInitiateRequest(string subscriptionId, string resourceGroupName, AzureLocation ascLocation, string jitNetworkAccessPolicyName, JitNetworkAccessPolicyInitiateContent content) { var message = _pipeline.CreateMessage(); @@ -667,6 +785,14 @@ public Response Initiate(string subscriptionId, str } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -735,6 +861,14 @@ public Response ListNextPage(string nextLink, stri } } + internal RequestUriBuilder CreateListByRegionNextPageRequestUri(string nextLink, string subscriptionId, AzureLocation ascLocation) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByRegionNextPageRequest(string nextLink, string subscriptionId, AzureLocation ascLocation) { var message = _pipeline.CreateMessage(); @@ -805,6 +939,14 @@ public Response ListByRegionNextPage(string nextLi } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -877,6 +1019,14 @@ public Response ListByResourceGroupNextPage(string } } + internal RequestUriBuilder CreateListByResourceGroupAndRegionNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, AzureLocation ascLocation) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupAndRegionNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, AzureLocation ascLocation) { var message = _pipeline.CreateMessage(); diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/LocationsRestOperations.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/LocationsRestOperations.cs index 0112ab0341e1..4a2300dea66d 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/LocationsRestOperations.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/LocationsRestOperations.cs @@ -37,6 +37,17 @@ public LocationsRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Security/locations", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,18 @@ public Response List(string subscriptionId, CancellationToken c } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, AzureLocation ascLocation) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Security/locations/", false); + uri.AppendPath(ascLocation, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, AzureLocation ascLocation) { var message = _pipeline.CreateMessage(); @@ -178,6 +201,14 @@ public Response Get(string subscriptionId, AzureLoca } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/MdeOnboardingsRestOperations.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/MdeOnboardingsRestOperations.cs index 75bf18d3c361..151fc2284f1d 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/MdeOnboardingsRestOperations.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/MdeOnboardingsRestOperations.cs @@ -37,6 +37,17 @@ public MdeOnboardingsRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Security/mdeOnboardings", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,17 @@ public Response List(string subscriptionId, CancellationT } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Security/mdeOnboardings/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/PricingsRestOperations.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/PricingsRestOperations.cs index 2176a7751bab..14f4d878f6f6 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/PricingsRestOperations.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/PricingsRestOperations.cs @@ -37,6 +37,17 @@ public PricingsRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Security/pricings", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,18 @@ public Response List(string subscriptionId, CancellationToken cance } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string pricingName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Security/pricings/", false); + uri.AppendPath(pricingName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string pricingName) { var message = _pipeline.CreateMessage(); @@ -180,6 +203,18 @@ public Response Get(string subscriptionId, string pri } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string pricingName, SecurityCenterPricingData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Security/pricings/", false); + uri.AppendPath(pricingName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string pricingName, SecurityCenterPricingData data) { var message = _pipeline.CreateMessage(); diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/RegulatoryComplianceAssessmentsRestOperations.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/RegulatoryComplianceAssessmentsRestOperations.cs index 85ddbc7d8b12..e098e8c6e04f 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/RegulatoryComplianceAssessmentsRestOperations.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/RegulatoryComplianceAssessmentsRestOperations.cs @@ -37,6 +37,25 @@ public RegulatoryComplianceAssessmentsRestOperations(HttpPipeline pipeline, stri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string regulatoryComplianceStandardName, string regulatoryComplianceControlName, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Security/regulatoryComplianceStandards/", false); + uri.AppendPath(regulatoryComplianceStandardName, true); + uri.AppendPath("/regulatoryComplianceControls/", false); + uri.AppendPath(regulatoryComplianceControlName, true); + uri.AppendPath("/regulatoryComplianceAssessments", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string regulatoryComplianceStandardName, string regulatoryComplianceControlName, string filter) { var message = _pipeline.CreateMessage(); @@ -122,6 +141,22 @@ public Response List(string subscriptionId, } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string regulatoryComplianceStandardName, string regulatoryComplianceControlName, string regulatoryComplianceAssessmentName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Security/regulatoryComplianceStandards/", false); + uri.AppendPath(regulatoryComplianceStandardName, true); + uri.AppendPath("/regulatoryComplianceControls/", false); + uri.AppendPath(regulatoryComplianceControlName, true); + uri.AppendPath("/regulatoryComplianceAssessments/", false); + uri.AppendPath(regulatoryComplianceAssessmentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string regulatoryComplianceStandardName, string regulatoryComplianceControlName, string regulatoryComplianceAssessmentName) { var message = _pipeline.CreateMessage(); @@ -210,6 +245,14 @@ public Response Get(string subscriptionId, s } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string regulatoryComplianceStandardName, string regulatoryComplianceControlName, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string regulatoryComplianceStandardName, string regulatoryComplianceControlName, string filter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/RegulatoryComplianceControlsRestOperations.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/RegulatoryComplianceControlsRestOperations.cs index 9b8e109ba89c..5c2b7f75b47f 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/RegulatoryComplianceControlsRestOperations.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/RegulatoryComplianceControlsRestOperations.cs @@ -37,6 +37,23 @@ public RegulatoryComplianceControlsRestOperations(HttpPipeline pipeline, string _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string regulatoryComplianceStandardName, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Security/regulatoryComplianceStandards/", false); + uri.AppendPath(regulatoryComplianceStandardName, true); + uri.AppendPath("/regulatoryComplianceControls", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string regulatoryComplianceStandardName, string filter) { var message = _pipeline.CreateMessage(); @@ -116,6 +133,20 @@ public Response List(string subscriptionId, str } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string regulatoryComplianceStandardName, string regulatoryComplianceControlName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Security/regulatoryComplianceStandards/", false); + uri.AppendPath(regulatoryComplianceStandardName, true); + uri.AppendPath("/regulatoryComplianceControls/", false); + uri.AppendPath(regulatoryComplianceControlName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string regulatoryComplianceStandardName, string regulatoryComplianceControlName) { var message = _pipeline.CreateMessage(); @@ -198,6 +229,14 @@ public Response Get(string subscriptionId, stri } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string regulatoryComplianceStandardName, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string regulatoryComplianceStandardName, string filter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/RegulatoryComplianceStandardsRestOperations.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/RegulatoryComplianceStandardsRestOperations.cs index 8a709a4a0fa2..a704e50651cf 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/RegulatoryComplianceStandardsRestOperations.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/RegulatoryComplianceStandardsRestOperations.cs @@ -37,6 +37,21 @@ public RegulatoryComplianceStandardsRestOperations(HttpPipeline pipeline, string _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Security/regulatoryComplianceStandards", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string filter) { var message = _pipeline.CreateMessage(); @@ -110,6 +125,18 @@ public Response List(string subscriptionId, st } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string regulatoryComplianceStandardName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Security/regulatoryComplianceStandards/", false); + uri.AppendPath(regulatoryComplianceStandardName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string regulatoryComplianceStandardName) { var message = _pipeline.CreateMessage(); @@ -186,6 +213,14 @@ public Response Get(string subscriptionId, str } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string filter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/SecureScoreControlDefinitionsRestOperations.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/SecureScoreControlDefinitionsRestOperations.cs index da0885a486c3..e3b25c5cfb58 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/SecureScoreControlDefinitionsRestOperations.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/SecureScoreControlDefinitionsRestOperations.cs @@ -37,6 +37,15 @@ public SecureScoreControlDefinitionsRestOperations(HttpPipeline pipeline, string _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri() + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Security/secureScoreControlDefinitions", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest() { var message = _pipeline.CreateMessage(); @@ -92,6 +101,17 @@ public Response List(CancellationToken cancell } } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Security/secureScoreControlDefinitions", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -159,6 +179,14 @@ public Response ListBySubscription(string subs } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink) { var message = _pipeline.CreateMessage(); @@ -221,6 +249,14 @@ public Response ListNextPage(string nextLink, } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/SecureScoreControlsRestOperations.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/SecureScoreControlsRestOperations.cs index 07049193172e..380a90e2774f 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/SecureScoreControlsRestOperations.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/SecureScoreControlsRestOperations.cs @@ -37,6 +37,23 @@ public SecureScoreControlsRestOperations(HttpPipeline pipeline, string applicati _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListBySecureScoreRequestUri(string subscriptionId, string secureScoreName, SecurityScoreODataExpand? expand) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Security/secureScores/", false); + uri.AppendPath(secureScoreName, true); + uri.AppendPath("/secureScoreControls", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (expand != null) + { + uri.AppendQuery("$expand", expand.Value.ToString(), true); + } + return uri; + } + internal HttpMessage CreateListBySecureScoreRequest(string subscriptionId, string secureScoreName, SecurityScoreODataExpand? expand) { var message = _pipeline.CreateMessage(); @@ -116,6 +133,21 @@ public Response ListBySecureScore(string subscriptionId, } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, SecurityScoreODataExpand? expand) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Security/secureScoreControls", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (expand != null) + { + uri.AppendQuery("$expand", expand.Value.ToString(), true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, SecurityScoreODataExpand? expand) { var message = _pipeline.CreateMessage(); @@ -189,6 +221,14 @@ public Response List(string subscriptionId, SecurityScor } } + internal RequestUriBuilder CreateListBySecureScoreNextPageRequestUri(string nextLink, string subscriptionId, string secureScoreName, SecurityScoreODataExpand? expand) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySecureScoreNextPageRequest(string nextLink, string subscriptionId, string secureScoreName, SecurityScoreODataExpand? expand) { var message = _pipeline.CreateMessage(); @@ -263,6 +303,14 @@ public Response ListBySecureScoreNextPage(string nextLin } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, SecurityScoreODataExpand? expand) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, SecurityScoreODataExpand? expand) { var message = _pipeline.CreateMessage(); diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/SecureScoresRestOperations.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/SecureScoresRestOperations.cs index 9c640977af64..cc45acb3b431 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/SecureScoresRestOperations.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/SecureScoresRestOperations.cs @@ -37,6 +37,17 @@ public SecureScoresRestOperations(HttpPipeline pipeline, string applicationId, U _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Security/secureScores", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,18 @@ public Response List(string subscriptionId, CancellationToken } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string secureScoreName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Security/secureScores/", false); + uri.AppendPath(secureScoreName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string secureScoreName) { var message = _pipeline.CreateMessage(); @@ -180,6 +203,14 @@ public Response Get(string subscriptionId, string secureScoreNa } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/SecurityCenterRestOperations.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/SecurityCenterRestOperations.cs index d4703bfb038a..335ae24432fc 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/SecurityCenterRestOperations.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/SecurityCenterRestOperations.cs @@ -37,6 +37,15 @@ public SecurityCenterRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateUpdateSensitivitySettingsRequestUri(SensitivitySettingCreateOrUpdateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Security/sensitivitySettings/current", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateSensitivitySettingsRequest(SensitivitySettingCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); @@ -104,6 +113,15 @@ public Response UpdateSensitivitySettings(SensitivitySet } } + internal RequestUriBuilder CreateGetSensitivitySettingsRequestUri() + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Security/sensitivitySettings/current", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetSensitivitySettingsRequest() { var message = _pipeline.CreateMessage(); diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/SecurityConnectorApplicationsRestOperations.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/SecurityConnectorApplicationsRestOperations.cs index db7712436951..87630eabf4ca 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/SecurityConnectorApplicationsRestOperations.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/SecurityConnectorApplicationsRestOperations.cs @@ -37,6 +37,21 @@ public SecurityConnectorApplicationsRestOperations(HttpPipeline pipeline, string _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string securityConnectorName) + { + 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.Security/securityConnectors/", false); + uri.AppendPath(securityConnectorName, true); + uri.AppendPath("/providers/Microsoft.Security/applications", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string securityConnectorName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response List(string subscriptionId, string resourceGro } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string securityConnectorName, string applicationId) + { + 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.Security/securityConnectors/", false); + uri.AppendPath(securityConnectorName, true); + uri.AppendPath("/providers/Microsoft.Security/applications/", false); + uri.AppendPath(applicationId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string securityConnectorName, string applicationId) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscriptionId, string resou } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string securityConnectorName, string applicationId, SecurityApplicationData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Security/securityConnectors/", false); + uri.AppendPath(securityConnectorName, true); + uri.AppendPath("/providers/Microsoft.Security/applications/", false); + uri.AppendPath(applicationId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string securityConnectorName, string applicationId, SecurityApplicationData data) { var message = _pipeline.CreateMessage(); @@ -298,6 +345,22 @@ public Response CreateOrUpdate(string subscriptionId, s } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string securityConnectorName, string applicationId) + { + 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.Security/securityConnectors/", false); + uri.AppendPath(securityConnectorName, true); + uri.AppendPath("/providers/Microsoft.Security/applications/", false); + uri.AppendPath(applicationId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string securityConnectorName, string applicationId) { var message = _pipeline.CreateMessage(); @@ -373,6 +436,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string securityConnectorName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string securityConnectorName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/SecurityConnectorsRestOperations.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/SecurityConnectorsRestOperations.cs index 9d313c23fddf..a8781ded9ac2 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/SecurityConnectorsRestOperations.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/SecurityConnectorsRestOperations.cs @@ -37,6 +37,17 @@ public SecurityConnectorsRestOperations(HttpPipeline pipeline, string applicatio _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Security/securityConnectors", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,19 @@ public Response List(string subscriptionId, Cancellation } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.Security/securityConnectors", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -177,6 +201,20 @@ public Response ListByResourceGroup(string subscriptionI } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string securityConnectorName) + { + 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.Security/securityConnectors/", false); + uri.AppendPath(securityConnectorName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string securityConnectorName) { var message = _pipeline.CreateMessage(); @@ -259,6 +297,20 @@ public Response Get(string subscriptionId, string resourc } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string securityConnectorName, SecurityConnectorData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Security/securityConnectors/", false); + uri.AppendPath(securityConnectorName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string securityConnectorName, SecurityConnectorData data) { var message = _pipeline.CreateMessage(); @@ -347,6 +399,20 @@ public Response CreateOrUpdate(string subscriptionId, str } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string securityConnectorName, SecurityConnectorData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Security/securityConnectors/", false); + uri.AppendPath(securityConnectorName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string securityConnectorName, SecurityConnectorData data) { var message = _pipeline.CreateMessage(); @@ -433,6 +499,20 @@ public Response Update(string subscriptionId, string reso } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string securityConnectorName) + { + 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.Security/securityConnectors/", false); + uri.AppendPath(securityConnectorName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string securityConnectorName) { var message = _pipeline.CreateMessage(); @@ -503,6 +583,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -571,6 +659,14 @@ public Response ListNextPage(string nextLink, string sub } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/SecurityContactsRestOperations.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/SecurityContactsRestOperations.cs index 2f46033e6ef7..9710b0b3be5b 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/SecurityContactsRestOperations.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/SecurityContactsRestOperations.cs @@ -37,6 +37,17 @@ public SecurityContactsRestOperations(HttpPipeline pipeline, string applicationI _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Security/securityContacts", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,18 @@ public Response List(string subscriptionId, CancellationTok } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string securityContactName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Security/securityContacts/", false); + uri.AppendPath(securityContactName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string securityContactName) { var message = _pipeline.CreateMessage(); @@ -180,6 +203,18 @@ public Response Get(string subscriptionId, string securityC } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string securityContactName, SecurityContactData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Security/securityContacts/", false); + uri.AppendPath(securityContactName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string securityContactName, SecurityContactData data) { var message = _pipeline.CreateMessage(); @@ -262,6 +297,18 @@ public Response Create(string subscriptionId, string securi } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string securityContactName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Security/securityContacts/", false); + uri.AppendPath(securityContactName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string securityContactName) { var message = _pipeline.CreateMessage(); @@ -326,6 +373,14 @@ public Response Delete(string subscriptionId, string securityContactName, Cancel } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/SecurityOperatorsRestOperations.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/SecurityOperatorsRestOperations.cs index be26cd4294c2..fc861b04d306 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/SecurityOperatorsRestOperations.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/SecurityOperatorsRestOperations.cs @@ -37,6 +37,19 @@ public SecurityOperatorsRestOperations(HttpPipeline pipeline, string application _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string pricingName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Security/pricings/", false); + uri.AppendPath(pricingName, true); + uri.AppendPath("/securityOperators", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string pricingName) { var message = _pipeline.CreateMessage(); @@ -110,6 +123,20 @@ public Response List(string subscriptionId, string pricing } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string pricingName, string securityOperatorName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Security/pricings/", false); + uri.AppendPath(pricingName, true); + uri.AppendPath("/securityOperators/", false); + uri.AppendPath(securityOperatorName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string pricingName, string securityOperatorName) { var message = _pipeline.CreateMessage(); @@ -192,6 +219,20 @@ public Response Get(string subscriptionId, string pricingN } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string pricingName, string securityOperatorName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Security/pricings/", false); + uri.AppendPath(pricingName, true); + uri.AppendPath("/securityOperators/", false); + uri.AppendPath(securityOperatorName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string pricingName, string securityOperatorName) { var message = _pipeline.CreateMessage(); @@ -270,6 +311,20 @@ public Response CreateOrUpdate(string subscriptionId, stri } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string pricingName, string securityOperatorName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Security/pricings/", false); + uri.AppendPath(pricingName, true); + uri.AppendPath("/securityOperators/", false); + uri.AppendPath(securityOperatorName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string pricingName, string securityOperatorName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/SecuritySolutionsReferenceDataRestOperations.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/SecuritySolutionsReferenceDataRestOperations.cs index 6cee58abd735..2c8542e983cb 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/SecuritySolutionsReferenceDataRestOperations.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/SecuritySolutionsReferenceDataRestOperations.cs @@ -37,6 +37,17 @@ public SecuritySolutionsReferenceDataRestOperations(HttpPipeline pipeline, strin _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Security/securitySolutionsReferenceData", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,19 @@ public Response List(string subscriptionId, } } + internal RequestUriBuilder CreateListByHomeRegionRequestUri(string subscriptionId, AzureLocation ascLocation) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Security/locations/", false); + uri.AppendPath(ascLocation, true); + uri.AppendPath("/securitySolutionsReferenceData", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByHomeRegionRequest(string subscriptionId, AzureLocation ascLocation) { var message = _pipeline.CreateMessage(); diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/SecuritySolutionsRestOperations.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/SecuritySolutionsRestOperations.cs index 17715cc25c0f..5e68d22f769e 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/SecuritySolutionsRestOperations.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/SecuritySolutionsRestOperations.cs @@ -37,6 +37,17 @@ public SecuritySolutionsRestOperations(HttpPipeline pipeline, string application _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Security/securitySolutions", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,22 @@ public Response List(string subscriptionId, CancellationTo } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, AzureLocation ascLocation, string securitySolutionName) + { + 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.Security/locations/", false); + uri.AppendPath(ascLocation, true); + uri.AppendPath("/securitySolutions/", false); + uri.AppendPath(securitySolutionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, AzureLocation ascLocation, string securitySolutionName) { var message = _pipeline.CreateMessage(); @@ -186,6 +213,14 @@ public Response Get(string subscriptionId, string resourceGrou } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/ServerVulnerabilityAssessmentRestOperations.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/ServerVulnerabilityAssessmentRestOperations.cs index 23fa147f3ef0..5358f397cff1 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/ServerVulnerabilityAssessmentRestOperations.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/ServerVulnerabilityAssessmentRestOperations.cs @@ -37,6 +37,25 @@ public ServerVulnerabilityAssessmentRestOperations(HttpPipeline pipeline, string _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByExtendedResourceRequestUri(string subscriptionId, string resourceGroupName, string resourceNamespace, string resourceType, string resourceName) + { + 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/", false); + uri.AppendPath(resourceNamespace, true); + uri.AppendPath("/", false); + uri.AppendPath(resourceType, true); + uri.AppendPath("/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/providers/Microsoft.Security/serverVulnerabilityAssessments", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByExtendedResourceRequest(string subscriptionId, string resourceGroupName, string resourceNamespace, string resourceType, string resourceName) { var message = _pipeline.CreateMessage(); @@ -128,6 +147,26 @@ public Response ListByExtendedResource(strin } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string resourceNamespace, string resourceType, string resourceName) + { + 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/", false); + uri.AppendPath(resourceNamespace, true); + uri.AppendPath("/", false); + uri.AppendPath(resourceType, true); + uri.AppendPath("/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/providers/Microsoft.Security/serverVulnerabilityAssessments/", false); + uri.AppendPath("default", true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string resourceNamespace, string resourceType, string resourceName) { var message = _pipeline.CreateMessage(); @@ -224,6 +263,26 @@ public Response Get(string subscriptionId, st } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string resourceNamespace, string resourceType, string resourceName) + { + 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/", false); + uri.AppendPath(resourceNamespace, true); + uri.AppendPath("/", false); + uri.AppendPath(resourceType, true); + uri.AppendPath("/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/providers/Microsoft.Security/serverVulnerabilityAssessments/", false); + uri.AppendPath("default", true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string resourceNamespace, string resourceType, string resourceName) { var message = _pipeline.CreateMessage(); @@ -316,6 +375,26 @@ public Response CreateOrUpdate(string subscri } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string resourceNamespace, string resourceType, string resourceName) + { + 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/", false); + uri.AppendPath(resourceNamespace, true); + uri.AppendPath("/", false); + uri.AppendPath(resourceType, true); + uri.AppendPath("/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/providers/Microsoft.Security/serverVulnerabilityAssessments/", false); + uri.AppendPath("default", true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string resourceNamespace, string resourceType, string resourceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/ServerVulnerabilityAssessmentsSettingsRestOperations.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/ServerVulnerabilityAssessmentsSettingsRestOperations.cs index 29779fcca3ea..ba6a6fe5ff02 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/ServerVulnerabilityAssessmentsSettingsRestOperations.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/ServerVulnerabilityAssessmentsSettingsRestOperations.cs @@ -37,6 +37,17 @@ public ServerVulnerabilityAssessmentsSettingsRestOperations(HttpPipeline pipelin _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Security/serverVulnerabilityAssessmentsSettings", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,18 @@ public Response ListBySubscription(s } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, ServerVulnerabilityAssessmentsSettingKindName settingKind) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Security/serverVulnerabilityAssessmentsSettings/", false); + uri.AppendPath(settingKind.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, ServerVulnerabilityAssessmentsSettingKindName settingKind) { var message = _pipeline.CreateMessage(); @@ -178,6 +201,18 @@ public Response Get(string subscripti } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, ServerVulnerabilityAssessmentsSettingKindName settingKind, ServerVulnerabilityAssessmentsSettingData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Security/serverVulnerabilityAssessmentsSettings/", false); + uri.AppendPath(settingKind.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, ServerVulnerabilityAssessmentsSettingKindName settingKind, ServerVulnerabilityAssessmentsSettingData data) { var message = _pipeline.CreateMessage(); @@ -258,6 +293,18 @@ public Response CreateOrUpdate(string } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, ServerVulnerabilityAssessmentsSettingKindName settingKind) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Security/serverVulnerabilityAssessmentsSettings/", false); + uri.AppendPath(settingKind.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, ServerVulnerabilityAssessmentsSettingKindName settingKind) { var message = _pipeline.CreateMessage(); @@ -320,6 +367,14 @@ public Response Delete(string subscriptionId, ServerVulnerabilityAssessmentsSett } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/SettingsRestOperations.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/SettingsRestOperations.cs index d9f6d1b96386..ba2b56d44dd5 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/SettingsRestOperations.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/SettingsRestOperations.cs @@ -37,6 +37,17 @@ public SettingsRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Security/settings", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,18 @@ public Response List(string subscriptionId, CancellationToken canc } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, SecuritySettingName settingName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Security/settings/", false); + uri.AppendPath(settingName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, SecuritySettingName settingName) { var message = _pipeline.CreateMessage(); @@ -178,6 +201,18 @@ public Response Get(string subscriptionId, SecuritySettingN } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, SecuritySettingName settingName, SecuritySettingData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Security/settings/", false); + uri.AppendPath(settingName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, SecuritySettingName settingName, SecuritySettingData data) { var message = _pipeline.CreateMessage(); @@ -256,6 +291,14 @@ public Response Update(string subscriptionId, SecuritySetti } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/SoftwareInventoriesRestOperations.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/SoftwareInventoriesRestOperations.cs index addec7d29d9e..a2cd41b18bfc 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/SoftwareInventoriesRestOperations.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/SoftwareInventoriesRestOperations.cs @@ -37,6 +37,25 @@ public SoftwareInventoriesRestOperations(HttpPipeline pipeline, string applicati _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByExtendedResourceRequestUri(string subscriptionId, string resourceGroupName, string resourceNamespace, string resourceType, string resourceName) + { + 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/", false); + uri.AppendPath(resourceNamespace, true); + uri.AppendPath("/", false); + uri.AppendPath(resourceType, true); + uri.AppendPath("/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/providers/Microsoft.Security/softwareInventories", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByExtendedResourceRequest(string subscriptionId, string resourceGroupName, string resourceNamespace, string resourceType, string resourceName) { var message = _pipeline.CreateMessage(); @@ -128,6 +147,17 @@ public Response ListByExtendedResource(string subscriptionId, str } } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Security/softwareInventories", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -195,6 +225,26 @@ public Response ListBySubscription(string subscriptionId, Cancell } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string resourceNamespace, string resourceType, string resourceName, string softwareName) + { + 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/", false); + uri.AppendPath(resourceNamespace, true); + uri.AppendPath("/", false); + uri.AppendPath(resourceType, true); + uri.AppendPath("/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/providers/Microsoft.Security/softwareInventories/", false); + uri.AppendPath(softwareName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string resourceNamespace, string resourceType, string resourceName, string softwareName) { var message = _pipeline.CreateMessage(); @@ -295,6 +345,14 @@ public Response Get(string subscriptionId, string resourc } } + internal RequestUriBuilder CreateListByExtendedResourceNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string resourceNamespace, string resourceType, string resourceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByExtendedResourceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string resourceNamespace, string resourceType, string resourceName) { var message = _pipeline.CreateMessage(); @@ -379,6 +437,14 @@ public Response ListByExtendedResourceNextPage(string nextLink, s } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/SqlVulnerabilityAssessmentBaselineRulesRestOperations.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/SqlVulnerabilityAssessmentBaselineRulesRestOperations.cs index 607b9869eb1b..8a331d4229e4 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/SqlVulnerabilityAssessmentBaselineRulesRestOperations.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/SqlVulnerabilityAssessmentBaselineRulesRestOperations.cs @@ -37,6 +37,19 @@ public SqlVulnerabilityAssessmentBaselineRulesRestOperations(HttpPipeline pipeli _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string resourceId, string ruleId, Guid workspaceId, SqlVulnerabilityAssessmentBaselineRuleCreateOrUpdateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceId, false); + uri.AppendPath("/providers/Microsoft.Security/sqlVulnerabilityAssessments/default/baselineRules/", false); + uri.AppendPath(ruleId, true); + uri.AppendQuery("workspaceId", workspaceId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string resourceId, string ruleId, Guid workspaceId, SqlVulnerabilityAssessmentBaselineRuleCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); @@ -120,6 +133,19 @@ public Response CreateOrUpdate(strin } } + internal RequestUriBuilder CreateGetRequestUri(string resourceId, string ruleId, Guid workspaceId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceId, false); + uri.AppendPath("/providers/Microsoft.Security/sqlVulnerabilityAssessments/default/baselineRules/", false); + uri.AppendPath(ruleId, true); + uri.AppendQuery("workspaceId", workspaceId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string resourceId, string ruleId, Guid workspaceId) { var message = _pipeline.CreateMessage(); @@ -199,6 +225,19 @@ public Response Get(string resourceI } } + internal RequestUriBuilder CreateDeleteRequestUri(string resourceId, string ruleId, Guid workspaceId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceId, false); + uri.AppendPath("/providers/Microsoft.Security/sqlVulnerabilityAssessments/default/baselineRules/", false); + uri.AppendPath(ruleId, true); + uri.AppendQuery("workspaceId", workspaceId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string resourceId, string ruleId, Guid workspaceId) { var message = _pipeline.CreateMessage(); @@ -266,6 +305,18 @@ public Response Delete(string resourceId, string ruleId, Guid workspaceId, Cance } } + internal RequestUriBuilder CreateListRequestUri(string resourceId, Guid workspaceId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceId, false); + uri.AppendPath("/providers/Microsoft.Security/sqlVulnerabilityAssessments/default/baselineRules", false); + uri.AppendQuery("workspaceId", workspaceId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string resourceId, Guid workspaceId) { var message = _pipeline.CreateMessage(); @@ -334,6 +385,18 @@ public Response List(string resourceId, Guid workspaceId, Cancella } } + internal RequestUriBuilder CreateAddRequestUri(string resourceId, Guid workspaceId, RulesResultsContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceId, false); + uri.AppendPath("/providers/Microsoft.Security/sqlVulnerabilityAssessments/default/baselineRules", false); + uri.AppendQuery("workspaceId", workspaceId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateAddRequest(string resourceId, Guid workspaceId, RulesResultsContent content) { var message = _pipeline.CreateMessage(); diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/SqlVulnerabilityAssessmentScanResultsRestOperations.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/SqlVulnerabilityAssessmentScanResultsRestOperations.cs index ce0ba6f9574b..701d106f57a1 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/SqlVulnerabilityAssessmentScanResultsRestOperations.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/SqlVulnerabilityAssessmentScanResultsRestOperations.cs @@ -37,6 +37,21 @@ public SqlVulnerabilityAssessmentScanResultsRestOperations(HttpPipeline pipeline _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string resourceId, string scanId, string scanResultId, Guid workspaceId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceId, false); + uri.AppendPath("/providers/Microsoft.Security/sqlVulnerabilityAssessments/default/scans/", false); + uri.AppendPath(scanId, true); + uri.AppendPath("/scanResults/", false); + uri.AppendPath(scanResultId, true); + uri.AppendQuery("workspaceId", workspaceId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string resourceId, string scanId, string scanResultId, Guid workspaceId) { var message = _pipeline.CreateMessage(); @@ -118,6 +133,20 @@ public Response Get(string resourceId, str } } + internal RequestUriBuilder CreateListRequestUri(string resourceId, string scanId, Guid workspaceId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceId, false); + uri.AppendPath("/providers/Microsoft.Security/sqlVulnerabilityAssessments/default/scans/", false); + uri.AppendPath(scanId, true); + uri.AppendPath("/scanResults", false); + uri.AppendQuery("workspaceId", workspaceId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string resourceId, string scanId, Guid workspaceId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/SqlVulnerabilityAssessmentScansRestOperations.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/SqlVulnerabilityAssessmentScansRestOperations.cs index 2c04d487dff6..cd3f57f7e606 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/SqlVulnerabilityAssessmentScansRestOperations.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/SqlVulnerabilityAssessmentScansRestOperations.cs @@ -37,6 +37,19 @@ public SqlVulnerabilityAssessmentScansRestOperations(HttpPipeline pipeline, stri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string resourceId, string scanId, Guid workspaceId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceId, false); + uri.AppendPath("/providers/Microsoft.Security/sqlVulnerabilityAssessments/default/scans/", false); + uri.AppendPath(scanId, true); + uri.AppendQuery("workspaceId", workspaceId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string resourceId, string scanId, Guid workspaceId) { var message = _pipeline.CreateMessage(); @@ -116,6 +129,18 @@ public Response Get(string resourceId, strin } } + internal RequestUriBuilder CreateListRequestUri(string resourceId, Guid workspaceId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceId, false); + uri.AppendPath("/providers/Microsoft.Security/sqlVulnerabilityAssessments/default/scans", false); + uri.AppendQuery("workspaceId", workspaceId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string resourceId, Guid workspaceId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/SubAssessmentsRestOperations.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/SubAssessmentsRestOperations.cs index f1cabebb3f25..7652f981545d 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/SubAssessmentsRestOperations.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/SubAssessmentsRestOperations.cs @@ -37,6 +37,17 @@ public SubAssessmentsRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListAllRequestUri(string scope) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.Security/subAssessments", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListAllRequest(string scope) { var message = _pipeline.CreateMessage(); @@ -102,6 +113,19 @@ public Response ListAll(string scope, CancellationTok } } + internal RequestUriBuilder CreateListRequestUri(string scope, string assessmentName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.Security/assessments/", false); + uri.AppendPath(assessmentName, true); + uri.AppendPath("/subAssessments", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string scope, string assessmentName) { var message = _pipeline.CreateMessage(); @@ -175,6 +199,20 @@ public Response List(string scope, string assessmentN } } + internal RequestUriBuilder CreateGetRequestUri(string scope, string assessmentName, string subAssessmentName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.Security/assessments/", false); + uri.AppendPath(assessmentName, true); + uri.AppendPath("/subAssessments/", false); + uri.AppendPath(subAssessmentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string scope, string assessmentName, string subAssessmentName) { var message = _pipeline.CreateMessage(); @@ -257,6 +295,14 @@ public Response Get(string scope, string assessmentNa } } + internal RequestUriBuilder CreateListAllNextPageRequestUri(string nextLink, string scope) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListAllNextPageRequest(string nextLink, string scope) { var message = _pipeline.CreateMessage(); @@ -323,6 +369,14 @@ public Response ListAllNextPage(string nextLink, stri } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string scope, string assessmentName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string scope, string assessmentName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/TasksRestOperations.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/TasksRestOperations.cs index 5ce159ca57d2..49347cb29de7 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/TasksRestOperations.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/TasksRestOperations.cs @@ -37,6 +37,21 @@ public TasksRestOperations(HttpPipeline pipeline, string applicationId, Uri endp _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Security/tasks", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string filter) { var message = _pipeline.CreateMessage(); @@ -110,6 +125,23 @@ public Response List(string subscriptionId, string filter = nu } } + internal RequestUriBuilder CreateListByHomeRegionRequestUri(string subscriptionId, AzureLocation ascLocation, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Security/locations/", false); + uri.AppendPath(ascLocation, true); + uri.AppendPath("/tasks", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + return uri; + } + internal HttpMessage CreateListByHomeRegionRequest(string subscriptionId, AzureLocation ascLocation, string filter) { var message = _pipeline.CreateMessage(); @@ -187,6 +219,20 @@ public Response ListByHomeRegion(string subscriptionId, AzureL } } + internal RequestUriBuilder CreateGetSubscriptionLevelTaskRequestUri(string subscriptionId, AzureLocation ascLocation, string taskName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Security/locations/", false); + uri.AppendPath(ascLocation, true); + uri.AppendPath("/tasks/", false); + uri.AppendPath(taskName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetSubscriptionLevelTaskRequest(string subscriptionId, AzureLocation ascLocation, string taskName) { var message = _pipeline.CreateMessage(); @@ -267,6 +313,25 @@ public Response GetSubscriptionLevelTask(string subscriptionId } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName, AzureLocation ascLocation, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Security/locations/", false); + uri.AppendPath(ascLocation, true); + uri.AppendPath("/tasks", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName, AzureLocation ascLocation, string filter) { var message = _pipeline.CreateMessage(); @@ -350,6 +415,22 @@ public Response ListByResourceGroup(string subscriptionId, str } } + internal RequestUriBuilder CreateGetResourceGroupLevelTaskRequestUri(string subscriptionId, string resourceGroupName, AzureLocation ascLocation, string taskName) + { + 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.Security/locations/", false); + uri.AppendPath(ascLocation, true); + uri.AppendPath("/tasks/", false); + uri.AppendPath(taskName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetResourceGroupLevelTaskRequest(string subscriptionId, string resourceGroupName, AzureLocation ascLocation, string taskName) { var message = _pipeline.CreateMessage(); @@ -436,6 +517,14 @@ public Response GetResourceGroupLevelTask(string subscriptionI } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string filter) { var message = _pipeline.CreateMessage(); @@ -506,6 +595,14 @@ public Response ListNextPage(string nextLink, string subscript } } + internal RequestUriBuilder CreateListByHomeRegionNextPageRequestUri(string nextLink, string subscriptionId, AzureLocation ascLocation, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByHomeRegionNextPageRequest(string nextLink, string subscriptionId, AzureLocation ascLocation, string filter) { var message = _pipeline.CreateMessage(); @@ -578,6 +675,14 @@ public Response ListByHomeRegionNextPage(string nextLink, stri } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, AzureLocation ascLocation, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, AzureLocation ascLocation, string filter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/TopologyRestOperations.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/TopologyRestOperations.cs index 90cea1bc25b9..362528158f67 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/TopologyRestOperations.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/TopologyRestOperations.cs @@ -37,6 +37,17 @@ public TopologyRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Security/topologies", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,19 @@ public Response List(string subscriptionId, CancellationToken canc } } + internal RequestUriBuilder CreateListByHomeRegionRequestUri(string subscriptionId, AzureLocation ascLocation) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Security/locations/", false); + uri.AppendPath(ascLocation, true); + uri.AppendPath("/topologies", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByHomeRegionRequest(string subscriptionId, AzureLocation ascLocation) { var message = _pipeline.CreateMessage(); @@ -175,6 +199,22 @@ public Response ListByHomeRegion(string subscriptionId, AzureLocat } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, AzureLocation ascLocation, string topologyResourceName) + { + 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.Security/locations/", false); + uri.AppendPath(ascLocation, true); + uri.AppendPath("/topologies/", false); + uri.AppendPath(topologyResourceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, AzureLocation ascLocation, string topologyResourceName) { var message = _pipeline.CreateMessage(); @@ -257,6 +297,14 @@ public Response Get(string subscriptionId, string reso } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -325,6 +373,14 @@ public Response ListNextPage(string nextLink, string subscriptionI } } + internal RequestUriBuilder CreateListByHomeRegionNextPageRequestUri(string nextLink, string subscriptionId, AzureLocation ascLocation) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByHomeRegionNextPageRequest(string nextLink, string subscriptionId, AzureLocation ascLocation) { var message = _pipeline.CreateMessage(); diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/WorkspaceSettingsRestOperations.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/WorkspaceSettingsRestOperations.cs index 4b8e09fee5c4..5610092a44d5 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/WorkspaceSettingsRestOperations.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/WorkspaceSettingsRestOperations.cs @@ -37,6 +37,17 @@ public WorkspaceSettingsRestOperations(HttpPipeline pipeline, string application _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Security/workspaceSettings", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,18 @@ public Response List(string subscriptionId, CancellationTo } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string workspaceSettingName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Security/workspaceSettings/", false); + uri.AppendPath(workspaceSettingName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string workspaceSettingName) { var message = _pipeline.CreateMessage(); @@ -180,6 +203,18 @@ public Response Get(string subscriptionId, string } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string workspaceSettingName, SecurityWorkspaceSettingData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Security/workspaceSettings/", false); + uri.AppendPath(workspaceSettingName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string workspaceSettingName, SecurityWorkspaceSettingData data) { var message = _pipeline.CreateMessage(); @@ -260,6 +295,18 @@ public Response Create(string subscriptionId, stri } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string workspaceSettingName, SecurityWorkspaceSettingData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Security/workspaceSettings/", false); + uri.AppendPath(workspaceSettingName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string workspaceSettingName, SecurityWorkspaceSettingData data) { var message = _pipeline.CreateMessage(); @@ -340,6 +387,18 @@ public Response Update(string subscriptionId, stri } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string workspaceSettingName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Security/workspaceSettings/", false); + uri.AppendPath(workspaceSettingName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string workspaceSettingName) { var message = _pipeline.CreateMessage(); @@ -402,6 +461,14 @@ public Response Delete(string subscriptionId, string workspaceSettingName, Cance } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecurityAlertsSuppressionRuleCollection.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecurityAlertsSuppressionRuleCollection.cs index 62b54688fdb7..405e885095bb 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecurityAlertsSuppressionRuleCollection.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecurityAlertsSuppressionRuleCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> C try { var response = await _securityAlertsSuppressionRuleAlertsSuppressionRulesRestClient.UpdateAsync(Id.SubscriptionId, alertsSuppressionRuleName, data, cancellationToken).ConfigureAwait(false); - var operation = new SecurityCenterArmOperation(Response.FromValue(new SecurityAlertsSuppressionRuleResource(Client, response), response.GetRawResponse())); + var uri = _securityAlertsSuppressionRuleAlertsSuppressionRulesRestClient.CreateUpdateRequestUri(Id.SubscriptionId, alertsSuppressionRuleName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(Response.FromValue(new SecurityAlertsSuppressionRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -140,7 +142,9 @@ public virtual ArmOperation CreateOrUpdat try { var response = _securityAlertsSuppressionRuleAlertsSuppressionRulesRestClient.Update(Id.SubscriptionId, alertsSuppressionRuleName, data, cancellationToken); - var operation = new SecurityCenterArmOperation(Response.FromValue(new SecurityAlertsSuppressionRuleResource(Client, response), response.GetRawResponse())); + var uri = _securityAlertsSuppressionRuleAlertsSuppressionRulesRestClient.CreateUpdateRequestUri(Id.SubscriptionId, alertsSuppressionRuleName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(Response.FromValue(new SecurityAlertsSuppressionRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecurityAlertsSuppressionRuleResource.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecurityAlertsSuppressionRuleResource.cs index 1dd93ea5c0d4..2b7090776c5f 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecurityAlertsSuppressionRuleResource.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecurityAlertsSuppressionRuleResource.cs @@ -199,7 +199,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _securityAlertsSuppressionRuleAlertsSuppressionRulesRestClient.DeleteAsync(Id.SubscriptionId, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new SecurityCenterArmOperation(response); + var uri = _securityAlertsSuppressionRuleAlertsSuppressionRulesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -241,7 +243,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _securityAlertsSuppressionRuleAlertsSuppressionRulesRestClient.Delete(Id.SubscriptionId, Id.Name, cancellationToken); - var operation = new SecurityCenterArmOperation(response); + var uri = _securityAlertsSuppressionRuleAlertsSuppressionRulesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -287,7 +291,9 @@ public virtual async Task> U try { var response = await _securityAlertsSuppressionRuleAlertsSuppressionRulesRestClient.UpdateAsync(Id.SubscriptionId, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new SecurityCenterArmOperation(Response.FromValue(new SecurityAlertsSuppressionRuleResource(Client, response), response.GetRawResponse())); + var uri = _securityAlertsSuppressionRuleAlertsSuppressionRulesRestClient.CreateUpdateRequestUri(Id.SubscriptionId, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(Response.FromValue(new SecurityAlertsSuppressionRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -333,7 +339,9 @@ public virtual ArmOperation Update(WaitUn try { var response = _securityAlertsSuppressionRuleAlertsSuppressionRulesRestClient.Update(Id.SubscriptionId, Id.Name, data, cancellationToken); - var operation = new SecurityCenterArmOperation(Response.FromValue(new SecurityAlertsSuppressionRuleResource(Client, response), response.GetRawResponse())); + var uri = _securityAlertsSuppressionRuleAlertsSuppressionRulesRestClient.CreateUpdateRequestUri(Id.SubscriptionId, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(Response.FromValue(new SecurityAlertsSuppressionRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecurityAssessmentCollection.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecurityAssessmentCollection.cs index 7d02bd48e444..6a8ae21a5216 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecurityAssessmentCollection.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecurityAssessmentCollection.cs @@ -78,7 +78,9 @@ public virtual async Task> CreateOrUpda try { var response = await _securityAssessmentAssessmentsRestClient.CreateOrUpdateAsync(Id, assessmentName, content, cancellationToken).ConfigureAwait(false); - var operation = new SecurityCenterArmOperation(Response.FromValue(new SecurityAssessmentResource(Client, response), response.GetRawResponse())); + var uri = _securityAssessmentAssessmentsRestClient.CreateCreateOrUpdateRequestUri(Id, assessmentName, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(Response.FromValue(new SecurityAssessmentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -127,7 +129,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil try { var response = _securityAssessmentAssessmentsRestClient.CreateOrUpdate(Id, assessmentName, content, cancellationToken); - var operation = new SecurityCenterArmOperation(Response.FromValue(new SecurityAssessmentResource(Client, response), response.GetRawResponse())); + var uri = _securityAssessmentAssessmentsRestClient.CreateCreateOrUpdateRequestUri(Id, assessmentName, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(Response.FromValue(new SecurityAssessmentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecurityAssessmentResource.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecurityAssessmentResource.cs index 6d12ec5f7bb8..67966b55b075 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecurityAssessmentResource.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecurityAssessmentResource.cs @@ -339,7 +339,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _securityAssessmentAssessmentsRestClient.DeleteAsync(Id.Parent, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new SecurityCenterArmOperation(response); + var uri = _securityAssessmentAssessmentsRestClient.CreateDeleteRequestUri(Id.Parent, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -381,7 +383,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _securityAssessmentAssessmentsRestClient.Delete(Id.Parent, Id.Name, cancellationToken); - var operation = new SecurityCenterArmOperation(response); + var uri = _securityAssessmentAssessmentsRestClient.CreateDeleteRequestUri(Id.Parent, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -427,7 +431,9 @@ public virtual async Task> UpdateAsync( try { var response = await _securityAssessmentAssessmentsRestClient.CreateOrUpdateAsync(Id.Parent, Id.Name, content, cancellationToken).ConfigureAwait(false); - var operation = new SecurityCenterArmOperation(Response.FromValue(new SecurityAssessmentResource(Client, response), response.GetRawResponse())); + var uri = _securityAssessmentAssessmentsRestClient.CreateCreateOrUpdateRequestUri(Id.Parent, Id.Name, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(Response.FromValue(new SecurityAssessmentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -473,7 +479,9 @@ public virtual ArmOperation Update(WaitUntil waitUnt try { var response = _securityAssessmentAssessmentsRestClient.CreateOrUpdate(Id.Parent, Id.Name, content, cancellationToken); - var operation = new SecurityCenterArmOperation(Response.FromValue(new SecurityAssessmentResource(Client, response), response.GetRawResponse())); + var uri = _securityAssessmentAssessmentsRestClient.CreateCreateOrUpdateRequestUri(Id.Parent, Id.Name, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(Response.FromValue(new SecurityAssessmentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecurityAutomationCollection.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecurityAutomationCollection.cs index 9967d3dd10b8..c13438255299 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecurityAutomationCollection.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecurityAutomationCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> CreateOrUpda try { var response = await _securityAutomationAutomationsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, automationName, data, cancellationToken).ConfigureAwait(false); - var operation = new SecurityCenterArmOperation(Response.FromValue(new SecurityAutomationResource(Client, response), response.GetRawResponse())); + var uri = _securityAutomationAutomationsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, automationName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(Response.FromValue(new SecurityAutomationResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -140,7 +142,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil try { var response = _securityAutomationAutomationsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, automationName, data, cancellationToken); - var operation = new SecurityCenterArmOperation(Response.FromValue(new SecurityAutomationResource(Client, response), response.GetRawResponse())); + var uri = _securityAutomationAutomationsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, automationName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(Response.FromValue(new SecurityAutomationResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecurityAutomationResource.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecurityAutomationResource.cs index b10f861ca1f3..4c6c1f390702 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecurityAutomationResource.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecurityAutomationResource.cs @@ -202,7 +202,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _securityAutomationAutomationsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new SecurityCenterArmOperation(response); + var uri = _securityAutomationAutomationsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -244,7 +246,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _securityAutomationAutomationsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); - var operation = new SecurityCenterArmOperation(response); + var uri = _securityAutomationAutomationsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -290,7 +294,9 @@ public virtual async Task> UpdateAsync( try { var response = await _securityAutomationAutomationsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new SecurityCenterArmOperation(Response.FromValue(new SecurityAutomationResource(Client, response), response.GetRawResponse())); + var uri = _securityAutomationAutomationsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(Response.FromValue(new SecurityAutomationResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -336,7 +342,9 @@ public virtual ArmOperation Update(WaitUntil waitUnt try { var response = _securityAutomationAutomationsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, data, cancellationToken); - var operation = new SecurityCenterArmOperation(Response.FromValue(new SecurityAutomationResource(Client, response), response.GetRawResponse())); + var uri = _securityAutomationAutomationsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(Response.FromValue(new SecurityAutomationResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecurityCenterApiCollectionResource.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecurityCenterApiCollectionResource.cs index 3219604a1593..fef0062175eb 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecurityCenterApiCollectionResource.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecurityCenterApiCollectionResource.cs @@ -201,7 +201,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _securityCenterApiCollectionAPICollectionsRestClient.OffboardAzureApiManagementApiAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new SecurityCenterArmOperation(response); + var uri = _securityCenterApiCollectionAPICollectionsRestClient.CreateOffboardAzureApiManagementApiRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -243,7 +245,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _securityCenterApiCollectionAPICollectionsRestClient.OffboardAzureApiManagementApi(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new SecurityCenterArmOperation(response); + var uri = _securityCenterApiCollectionAPICollectionsRestClient.CreateOffboardAzureApiManagementApiRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecurityCenterPricingCollection.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecurityCenterPricingCollection.cs index e9f736476333..1d23063fd2e5 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecurityCenterPricingCollection.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecurityCenterPricingCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> CreateOrU try { var response = await _securityCenterPricingPricingsRestClient.UpdateAsync(Id.SubscriptionId, pricingName, data, cancellationToken).ConfigureAwait(false); - var operation = new SecurityCenterArmOperation(Response.FromValue(new SecurityCenterPricingResource(Client, response), response.GetRawResponse())); + var uri = _securityCenterPricingPricingsRestClient.CreateUpdateRequestUri(Id.SubscriptionId, pricingName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(Response.FromValue(new SecurityCenterPricingResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -140,7 +142,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUn try { var response = _securityCenterPricingPricingsRestClient.Update(Id.SubscriptionId, pricingName, data, cancellationToken); - var operation = new SecurityCenterArmOperation(Response.FromValue(new SecurityCenterPricingResource(Client, response), response.GetRawResponse())); + var uri = _securityCenterPricingPricingsRestClient.CreateUpdateRequestUri(Id.SubscriptionId, pricingName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(Response.FromValue(new SecurityCenterPricingResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecurityCenterPricingResource.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecurityCenterPricingResource.cs index a90ffcd6921d..22217781e9e7 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecurityCenterPricingResource.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecurityCenterPricingResource.cs @@ -272,7 +272,9 @@ public virtual async Task> UpdateAsy try { var response = await _securityCenterPricingPricingsRestClient.UpdateAsync(Id.SubscriptionId, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new SecurityCenterArmOperation(Response.FromValue(new SecurityCenterPricingResource(Client, response), response.GetRawResponse())); + var uri = _securityCenterPricingPricingsRestClient.CreateUpdateRequestUri(Id.SubscriptionId, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(Response.FromValue(new SecurityCenterPricingResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -318,7 +320,9 @@ public virtual ArmOperation Update(WaitUntil wait try { var response = _securityCenterPricingPricingsRestClient.Update(Id.SubscriptionId, Id.Name, data, cancellationToken); - var operation = new SecurityCenterArmOperation(Response.FromValue(new SecurityCenterPricingResource(Client, response), response.GetRawResponse())); + var uri = _securityCenterPricingPricingsRestClient.CreateUpdateRequestUri(Id.SubscriptionId, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(Response.FromValue(new SecurityCenterPricingResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecurityCloudConnectorCollection.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecurityCloudConnectorCollection.cs index be02b64fde23..0ddef5892097 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecurityCloudConnectorCollection.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecurityCloudConnectorCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> CreateOr try { var response = await _securityCloudConnectorConnectorsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, connectorName, data, cancellationToken).ConfigureAwait(false); - var operation = new SecurityCenterArmOperation(Response.FromValue(new SecurityCloudConnectorResource(Client, response), response.GetRawResponse())); + var uri = _securityCloudConnectorConnectorsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, connectorName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(Response.FromValue(new SecurityCloudConnectorResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -140,7 +142,9 @@ public virtual ArmOperation CreateOrUpdate(WaitU try { var response = _securityCloudConnectorConnectorsRestClient.CreateOrUpdate(Id.SubscriptionId, connectorName, data, cancellationToken); - var operation = new SecurityCenterArmOperation(Response.FromValue(new SecurityCloudConnectorResource(Client, response), response.GetRawResponse())); + var uri = _securityCloudConnectorConnectorsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, connectorName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(Response.FromValue(new SecurityCloudConnectorResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecurityCloudConnectorResource.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecurityCloudConnectorResource.cs index c51397c1b542..e5e462e17156 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecurityCloudConnectorResource.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecurityCloudConnectorResource.cs @@ -199,7 +199,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _securityCloudConnectorConnectorsRestClient.DeleteAsync(Id.SubscriptionId, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new SecurityCenterArmOperation(response); + var uri = _securityCloudConnectorConnectorsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -241,7 +243,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _securityCloudConnectorConnectorsRestClient.Delete(Id.SubscriptionId, Id.Name, cancellationToken); - var operation = new SecurityCenterArmOperation(response); + var uri = _securityCloudConnectorConnectorsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -287,7 +291,9 @@ public virtual async Task> UpdateAs try { var response = await _securityCloudConnectorConnectorsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new SecurityCenterArmOperation(Response.FromValue(new SecurityCloudConnectorResource(Client, response), response.GetRawResponse())); + var uri = _securityCloudConnectorConnectorsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(Response.FromValue(new SecurityCloudConnectorResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -333,7 +339,9 @@ public virtual ArmOperation Update(WaitUntil wai try { var response = _securityCloudConnectorConnectorsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.Name, data, cancellationToken); - var operation = new SecurityCenterArmOperation(Response.FromValue(new SecurityCloudConnectorResource(Client, response), response.GetRawResponse())); + var uri = _securityCloudConnectorConnectorsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(Response.FromValue(new SecurityCloudConnectorResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecurityConnectorApplicationCollection.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecurityConnectorApplicationCollection.cs index dca246058601..d9266c6cb93e 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecurityConnectorApplicationCollection.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecurityConnectorApplicationCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> Cr try { var response = await _securityConnectorApplicationRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, applicationId, data, cancellationToken).ConfigureAwait(false); - var operation = new SecurityCenterArmOperation(Response.FromValue(new SecurityConnectorApplicationResource(Client, response), response.GetRawResponse())); + var uri = _securityConnectorApplicationRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, applicationId, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(Response.FromValue(new SecurityConnectorApplicationResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate try { var response = _securityConnectorApplicationRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, applicationId, data, cancellationToken); - var operation = new SecurityCenterArmOperation(Response.FromValue(new SecurityConnectorApplicationResource(Client, response), response.GetRawResponse())); + var uri = _securityConnectorApplicationRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, applicationId, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(Response.FromValue(new SecurityConnectorApplicationResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecurityConnectorApplicationResource.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecurityConnectorApplicationResource.cs index 8fa96fc68e5c..7ba4306da2d0 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecurityConnectorApplicationResource.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecurityConnectorApplicationResource.cs @@ -200,7 +200,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _securityConnectorApplicationRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new SecurityCenterArmOperation(response); + var uri = _securityConnectorApplicationRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -242,7 +244,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _securityConnectorApplicationRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new SecurityCenterArmOperation(response); + var uri = _securityConnectorApplicationRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -288,7 +292,9 @@ public virtual async Task> Up try { var response = await _securityConnectorApplicationRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new SecurityCenterArmOperation(Response.FromValue(new SecurityConnectorApplicationResource(Client, response), response.GetRawResponse())); + var uri = _securityConnectorApplicationRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(Response.FromValue(new SecurityConnectorApplicationResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -334,7 +340,9 @@ public virtual ArmOperation Update(WaitUnt try { var response = _securityConnectorApplicationRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new SecurityCenterArmOperation(Response.FromValue(new SecurityConnectorApplicationResource(Client, response), response.GetRawResponse())); + var uri = _securityConnectorApplicationRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(Response.FromValue(new SecurityConnectorApplicationResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecurityConnectorCollection.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecurityConnectorCollection.cs index f4c183963864..2b2f8aa92513 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecurityConnectorCollection.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecurityConnectorCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> CreateOrUpdat try { var response = await _securityConnectorRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, securityConnectorName, data, cancellationToken).ConfigureAwait(false); - var operation = new SecurityCenterArmOperation(Response.FromValue(new SecurityConnectorResource(Client, response), response.GetRawResponse())); + var uri = _securityConnectorRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, securityConnectorName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(Response.FromValue(new SecurityConnectorResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -140,7 +142,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil try { var response = _securityConnectorRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, securityConnectorName, data, cancellationToken); - var operation = new SecurityCenterArmOperation(Response.FromValue(new SecurityConnectorResource(Client, response), response.GetRawResponse())); + var uri = _securityConnectorRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, securityConnectorName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(Response.FromValue(new SecurityConnectorResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecurityConnectorResource.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecurityConnectorResource.cs index c7eeabe47abc..c11c324c0075 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecurityConnectorResource.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecurityConnectorResource.cs @@ -277,7 +277,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _securityConnectorRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new SecurityCenterArmOperation(response); + var uri = _securityConnectorRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -319,7 +321,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _securityConnectorRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); - var operation = new SecurityCenterArmOperation(response); + var uri = _securityConnectorRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecurityContactCollection.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecurityContactCollection.cs index ef54311361bf..70cffa5da241 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecurityContactCollection.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecurityContactCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> CreateOrUpdateA try { var response = await _securityContactRestClient.CreateAsync(Id.SubscriptionId, securityContactName, data, cancellationToken).ConfigureAwait(false); - var operation = new SecurityCenterArmOperation(Response.FromValue(new SecurityContactResource(Client, response), response.GetRawResponse())); + var uri = _securityContactRestClient.CreateCreateRequestUri(Id.SubscriptionId, securityContactName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(Response.FromValue(new SecurityContactResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -140,7 +142,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wa try { var response = _securityContactRestClient.Create(Id.SubscriptionId, securityContactName, data, cancellationToken); - var operation = new SecurityCenterArmOperation(Response.FromValue(new SecurityContactResource(Client, response), response.GetRawResponse())); + var uri = _securityContactRestClient.CreateCreateRequestUri(Id.SubscriptionId, securityContactName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(Response.FromValue(new SecurityContactResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecurityContactResource.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecurityContactResource.cs index 55c9f2df0903..cdd3231f0b13 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecurityContactResource.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecurityContactResource.cs @@ -199,7 +199,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _securityContactRestClient.DeleteAsync(Id.SubscriptionId, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new SecurityCenterArmOperation(response); + var uri = _securityContactRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -241,7 +243,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _securityContactRestClient.Delete(Id.SubscriptionId, Id.Name, cancellationToken); - var operation = new SecurityCenterArmOperation(response); + var uri = _securityContactRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -287,7 +291,9 @@ public virtual async Task> UpdateAsync(Wai try { var response = await _securityContactRestClient.CreateAsync(Id.SubscriptionId, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new SecurityCenterArmOperation(Response.FromValue(new SecurityContactResource(Client, response), response.GetRawResponse())); + var uri = _securityContactRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(Response.FromValue(new SecurityContactResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -333,7 +339,9 @@ public virtual ArmOperation Update(WaitUntil waitUntil, try { var response = _securityContactRestClient.Create(Id.SubscriptionId, Id.Name, data, cancellationToken); - var operation = new SecurityCenterArmOperation(Response.FromValue(new SecurityContactResource(Client, response), response.GetRawResponse())); + var uri = _securityContactRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(Response.FromValue(new SecurityContactResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecurityOperatorCollection.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecurityOperatorCollection.cs index ddd7a7daea06..9c7300d451d2 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecurityOperatorCollection.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecurityOperatorCollection.cs @@ -88,7 +88,9 @@ public virtual async Task> CreateOrUpdate try { var response = await _securityOperatorRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.Name, securityOperatorName, cancellationToken).ConfigureAwait(false); - var operation = new SecurityCenterArmOperation(Response.FromValue(new SecurityOperatorResource(Client, response), response.GetRawResponse())); + var uri = _securityOperatorRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.Name, securityOperatorName); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(Response.FromValue(new SecurityOperatorResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -135,7 +137,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil w try { var response = _securityOperatorRestClient.CreateOrUpdate(Id.SubscriptionId, Id.Name, securityOperatorName, cancellationToken); - var operation = new SecurityCenterArmOperation(Response.FromValue(new SecurityOperatorResource(Client, response), response.GetRawResponse())); + var uri = _securityOperatorRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.Name, securityOperatorName); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(Response.FromValue(new SecurityOperatorResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecurityOperatorResource.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecurityOperatorResource.cs index 75e8afdc1f02..ccaa923f9ba5 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecurityOperatorResource.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecurityOperatorResource.cs @@ -199,7 +199,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _securityOperatorRestClient.DeleteAsync(Id.SubscriptionId, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new SecurityCenterArmOperation(response); + var uri = _securityOperatorRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -241,7 +243,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _securityOperatorRestClient.Delete(Id.SubscriptionId, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new SecurityCenterArmOperation(response); + var uri = _securityOperatorRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -283,7 +287,9 @@ public virtual async Task> UpdateAsync(Wa try { var response = await _securityOperatorRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new SecurityCenterArmOperation(Response.FromValue(new SecurityOperatorResource(Client, response), response.GetRawResponse())); + var uri = _securityOperatorRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(Response.FromValue(new SecurityOperatorResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -325,7 +331,9 @@ public virtual ArmOperation Update(WaitUntil waitUntil try { var response = _securityOperatorRestClient.CreateOrUpdate(Id.SubscriptionId, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new SecurityCenterArmOperation(Response.FromValue(new SecurityOperatorResource(Client, response), response.GetRawResponse())); + var uri = _securityOperatorRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(Response.FromValue(new SecurityOperatorResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecuritySettingCollection.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecuritySettingCollection.cs index d8af6f53e31f..4113ed4505b5 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecuritySettingCollection.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecuritySettingCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> CreateOrUpdateA try { var response = await _securitySettingSettingsRestClient.UpdateAsync(Id.SubscriptionId, settingName, data, cancellationToken).ConfigureAwait(false); - var operation = new SecurityCenterArmOperation(Response.FromValue(new SecuritySettingResource(Client, response), response.GetRawResponse())); + var uri = _securitySettingSettingsRestClient.CreateUpdateRequestUri(Id.SubscriptionId, settingName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(Response.FromValue(new SecuritySettingResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -137,7 +139,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wa try { var response = _securitySettingSettingsRestClient.Update(Id.SubscriptionId, settingName, data, cancellationToken); - var operation = new SecurityCenterArmOperation(Response.FromValue(new SecuritySettingResource(Client, response), response.GetRawResponse())); + var uri = _securitySettingSettingsRestClient.CreateUpdateRequestUri(Id.SubscriptionId, settingName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(Response.FromValue(new SecuritySettingResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecuritySettingResource.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecuritySettingResource.cs index ef296b91a4bc..ce20a748c569 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecuritySettingResource.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecuritySettingResource.cs @@ -204,7 +204,9 @@ public virtual async Task> UpdateAsync(Wai try { var response = await _securitySettingSettingsRestClient.UpdateAsync(Id.SubscriptionId, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new SecurityCenterArmOperation(Response.FromValue(new SecuritySettingResource(Client, response), response.GetRawResponse())); + var uri = _securitySettingSettingsRestClient.CreateUpdateRequestUri(Id.SubscriptionId, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(Response.FromValue(new SecuritySettingResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -250,7 +252,9 @@ public virtual ArmOperation Update(WaitUntil waitUntil, try { var response = _securitySettingSettingsRestClient.Update(Id.SubscriptionId, Id.Name, data, cancellationToken); - var operation = new SecurityCenterArmOperation(Response.FromValue(new SecuritySettingResource(Client, response), response.GetRawResponse())); + var uri = _securitySettingSettingsRestClient.CreateUpdateRequestUri(Id.SubscriptionId, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(Response.FromValue(new SecuritySettingResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecurityWorkspaceSettingCollection.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecurityWorkspaceSettingCollection.cs index 50ce7cba5006..8e12f31107cd 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecurityWorkspaceSettingCollection.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecurityWorkspaceSettingCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> Create try { var response = await _securityWorkspaceSettingWorkspaceSettingsRestClient.CreateAsync(Id.SubscriptionId, workspaceSettingName, data, cancellationToken).ConfigureAwait(false); - var operation = new SecurityCenterArmOperation(Response.FromValue(new SecurityWorkspaceSettingResource(Client, response), response.GetRawResponse())); + var uri = _securityWorkspaceSettingWorkspaceSettingsRestClient.CreateCreateRequestUri(Id.SubscriptionId, workspaceSettingName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(Response.FromValue(new SecurityWorkspaceSettingResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -140,7 +142,9 @@ public virtual ArmOperation CreateOrUpdate(Wai try { var response = _securityWorkspaceSettingWorkspaceSettingsRestClient.Create(Id.SubscriptionId, workspaceSettingName, data, cancellationToken); - var operation = new SecurityCenterArmOperation(Response.FromValue(new SecurityWorkspaceSettingResource(Client, response), response.GetRawResponse())); + var uri = _securityWorkspaceSettingWorkspaceSettingsRestClient.CreateCreateRequestUri(Id.SubscriptionId, workspaceSettingName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(Response.FromValue(new SecurityWorkspaceSettingResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecurityWorkspaceSettingResource.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecurityWorkspaceSettingResource.cs index 5eece3d1c880..c1909b02f57e 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecurityWorkspaceSettingResource.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecurityWorkspaceSettingResource.cs @@ -199,7 +199,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _securityWorkspaceSettingWorkspaceSettingsRestClient.DeleteAsync(Id.SubscriptionId, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new SecurityCenterArmOperation(response); + var uri = _securityWorkspaceSettingWorkspaceSettingsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -241,7 +243,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _securityWorkspaceSettingWorkspaceSettingsRestClient.Delete(Id.SubscriptionId, Id.Name, cancellationToken); - var operation = new SecurityCenterArmOperation(response); + var uri = _securityWorkspaceSettingWorkspaceSettingsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SensitivitySettingResource.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SensitivitySettingResource.cs index 6fa24693cca0..5a4314b4e7f8 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SensitivitySettingResource.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SensitivitySettingResource.cs @@ -202,7 +202,9 @@ public virtual async Task> CreateOrUpda try { var response = await _sensitivitySettingRestClient.UpdateSensitivitySettingsAsync(content, cancellationToken).ConfigureAwait(false); - var operation = new SecurityCenterArmOperation(Response.FromValue(new SensitivitySettingResource(Client, response), response.GetRawResponse())); + var uri = _sensitivitySettingRestClient.CreateUpdateSensitivitySettingsRequestUri(content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(Response.FromValue(new SensitivitySettingResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -248,7 +250,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil try { var response = _sensitivitySettingRestClient.UpdateSensitivitySettings(content, cancellationToken); - var operation = new SecurityCenterArmOperation(Response.FromValue(new SensitivitySettingResource(Client, response), response.GetRawResponse())); + var uri = _sensitivitySettingRestClient.CreateUpdateSensitivitySettingsRequestUri(content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(Response.FromValue(new SensitivitySettingResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/ServerVulnerabilityAssessmentCollection.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/ServerVulnerabilityAssessmentCollection.cs index b04d59289757..17477da6b4ea 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/ServerVulnerabilityAssessmentCollection.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/ServerVulnerabilityAssessmentCollection.cs @@ -95,7 +95,9 @@ public virtual async Task> C try { var response = await _serverVulnerabilityAssessmentRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, _resourceNamespace, _resourceType, _resourceName, cancellationToken).ConfigureAwait(false); - var operation = new SecurityCenterArmOperation(Response.FromValue(new ServerVulnerabilityAssessmentResource(Client, response), response.GetRawResponse())); + var uri = _serverVulnerabilityAssessmentRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, _resourceNamespace, _resourceType, _resourceName); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(Response.FromValue(new ServerVulnerabilityAssessmentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -137,7 +139,9 @@ public virtual ArmOperation CreateOrUpdat try { var response = _serverVulnerabilityAssessmentRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, _resourceNamespace, _resourceType, _resourceName, cancellationToken); - var operation = new SecurityCenterArmOperation(Response.FromValue(new ServerVulnerabilityAssessmentResource(Client, response), response.GetRawResponse())); + var uri = _serverVulnerabilityAssessmentRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, _resourceNamespace, _resourceType, _resourceName); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(Response.FromValue(new ServerVulnerabilityAssessmentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/ServerVulnerabilityAssessmentResource.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/ServerVulnerabilityAssessmentResource.cs index afc980813add..ee52d3b84a0b 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/ServerVulnerabilityAssessmentResource.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/ServerVulnerabilityAssessmentResource.cs @@ -287,7 +287,9 @@ public virtual async Task> U try { var response = await _serverVulnerabilityAssessmentRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.ResourceType.Namespace, Id.Parent.ResourceType.GetLastType(), Id.Parent.Name, cancellationToken).ConfigureAwait(false); - var operation = new SecurityCenterArmOperation(Response.FromValue(new ServerVulnerabilityAssessmentResource(Client, response), response.GetRawResponse())); + var uri = _serverVulnerabilityAssessmentRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.ResourceType.Namespace, Id.Parent.ResourceType.GetLastType(), Id.Parent.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(Response.FromValue(new ServerVulnerabilityAssessmentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -329,7 +331,9 @@ public virtual ArmOperation Update(WaitUn try { var response = _serverVulnerabilityAssessmentRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.ResourceType.Namespace, Id.Parent.ResourceType.GetLastType(), Id.Parent.Name, cancellationToken); - var operation = new SecurityCenterArmOperation(Response.FromValue(new ServerVulnerabilityAssessmentResource(Client, response), response.GetRawResponse())); + var uri = _serverVulnerabilityAssessmentRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.ResourceType.Namespace, Id.Parent.ResourceType.GetLastType(), Id.Parent.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(Response.FromValue(new ServerVulnerabilityAssessmentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/ServerVulnerabilityAssessmentsSettingCollection.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/ServerVulnerabilityAssessmentsSettingCollection.cs index f5d4b36dbe56..7b7a29ac9ad5 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/ServerVulnerabilityAssessmentsSettingCollection.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/ServerVulnerabilityAssessmentsSettingCollection.cs @@ -90,7 +90,9 @@ public virtual async Task(Response.FromValue(new ServerVulnerabilityAssessmentsSettingResource(Client, response), response.GetRawResponse())); + var uri = _serverVulnerabilityAssessmentsSettingRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, settingKind, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(Response.FromValue(new ServerVulnerabilityAssessmentsSettingResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -137,7 +139,9 @@ public virtual ArmOperation Creat try { var response = _serverVulnerabilityAssessmentsSettingRestClient.CreateOrUpdate(Id.SubscriptionId, settingKind, data, cancellationToken); - var operation = new SecurityCenterArmOperation(Response.FromValue(new ServerVulnerabilityAssessmentsSettingResource(Client, response), response.GetRawResponse())); + var uri = _serverVulnerabilityAssessmentsSettingRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, settingKind, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(Response.FromValue(new ServerVulnerabilityAssessmentsSettingResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/ServerVulnerabilityAssessmentsSettingResource.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/ServerVulnerabilityAssessmentsSettingResource.cs index a53592e523ad..608ed82dd505 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/ServerVulnerabilityAssessmentsSettingResource.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/ServerVulnerabilityAssessmentsSettingResource.cs @@ -200,7 +200,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _serverVulnerabilityAssessmentsSettingRestClient.DeleteAsync(Id.SubscriptionId, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new SecurityCenterArmOperation(response); + var uri = _serverVulnerabilityAssessmentsSettingRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -242,7 +244,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _serverVulnerabilityAssessmentsSettingRestClient.Delete(Id.SubscriptionId, Id.Name, cancellationToken); - var operation = new SecurityCenterArmOperation(response); + var uri = _serverVulnerabilityAssessmentsSettingRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -288,7 +292,9 @@ public virtual async Task(Response.FromValue(new ServerVulnerabilityAssessmentsSettingResource(Client, response), response.GetRawResponse())); + var uri = _serverVulnerabilityAssessmentsSettingRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(Response.FromValue(new ServerVulnerabilityAssessmentsSettingResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -334,7 +340,9 @@ public virtual ArmOperation Updat try { var response = _serverVulnerabilityAssessmentsSettingRestClient.CreateOrUpdate(Id.SubscriptionId, Id.Name, data, cancellationToken); - var operation = new SecurityCenterArmOperation(Response.FromValue(new ServerVulnerabilityAssessmentsSettingResource(Client, response), response.GetRawResponse())); + var uri = _serverVulnerabilityAssessmentsSettingRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(Response.FromValue(new ServerVulnerabilityAssessmentsSettingResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SqlVulnerabilityAssessmentBaselineRuleCollection.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SqlVulnerabilityAssessmentBaselineRuleCollection.cs index e976f7816e87..6f159dc5a009 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SqlVulnerabilityAssessmentBaselineRuleCollection.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SqlVulnerabilityAssessmentBaselineRuleCollection.cs @@ -80,7 +80,9 @@ public virtual async Task(Response.FromValue(new SqlVulnerabilityAssessmentBaselineRuleResource(Client, response), response.GetRawResponse())); + var uri = _sqlVulnerabilityAssessmentBaselineRuleRestClient.CreateCreateOrUpdateRequestUri(Id, ruleId, workspaceId, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(Response.FromValue(new SqlVulnerabilityAssessmentBaselineRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -130,7 +132,9 @@ public virtual ArmOperation Crea try { var response = _sqlVulnerabilityAssessmentBaselineRuleRestClient.CreateOrUpdate(Id, ruleId, workspaceId, content, cancellationToken); - var operation = new SecurityCenterArmOperation(Response.FromValue(new SqlVulnerabilityAssessmentBaselineRuleResource(Client, response), response.GetRawResponse())); + var uri = _sqlVulnerabilityAssessmentBaselineRuleRestClient.CreateCreateOrUpdateRequestUri(Id, ruleId, workspaceId, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(Response.FromValue(new SqlVulnerabilityAssessmentBaselineRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SqlVulnerabilityAssessmentBaselineRuleResource.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SqlVulnerabilityAssessmentBaselineRuleResource.cs index 854d8c570ec5..33f4145daf5a 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SqlVulnerabilityAssessmentBaselineRuleResource.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SqlVulnerabilityAssessmentBaselineRuleResource.cs @@ -202,7 +202,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Guid wo try { var response = await _sqlVulnerabilityAssessmentBaselineRuleRestClient.DeleteAsync(Id.Parent.Parent, Id.Name, workspaceId, cancellationToken).ConfigureAwait(false); - var operation = new SecurityCenterArmOperation(response); + var uri = _sqlVulnerabilityAssessmentBaselineRuleRestClient.CreateDeleteRequestUri(Id.Parent.Parent, Id.Name, workspaceId); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -245,7 +247,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, Guid workspaceId, Cancel try { var response = _sqlVulnerabilityAssessmentBaselineRuleRestClient.Delete(Id.Parent.Parent, Id.Name, workspaceId, cancellationToken); - var operation = new SecurityCenterArmOperation(response); + var uri = _sqlVulnerabilityAssessmentBaselineRuleRestClient.CreateDeleteRequestUri(Id.Parent.Parent, Id.Name, workspaceId); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -292,7 +296,9 @@ public virtual async Task(Response.FromValue(new SqlVulnerabilityAssessmentBaselineRuleResource(Client, response), response.GetRawResponse())); + var uri = _sqlVulnerabilityAssessmentBaselineRuleRestClient.CreateCreateOrUpdateRequestUri(Id.Parent.Parent, Id.Name, workspaceId, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(Response.FromValue(new SqlVulnerabilityAssessmentBaselineRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -339,7 +345,9 @@ public virtual ArmOperation Upda try { var response = _sqlVulnerabilityAssessmentBaselineRuleRestClient.CreateOrUpdate(Id.Parent.Parent, Id.Name, workspaceId, content, cancellationToken); - var operation = new SecurityCenterArmOperation(Response.FromValue(new SqlVulnerabilityAssessmentBaselineRuleResource(Client, response), response.GetRawResponse())); + var uri = _sqlVulnerabilityAssessmentBaselineRuleRestClient.CreateCreateOrUpdateRequestUri(Id.Parent.Parent, Id.Name, workspaceId, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(Response.FromValue(new SqlVulnerabilityAssessmentBaselineRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SubscriptionAssessmentMetadataCollection.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SubscriptionAssessmentMetadataCollection.cs index cd8362c1837a..cb91b1052bf7 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SubscriptionAssessmentMetadataCollection.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SubscriptionAssessmentMetadataCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> try { var response = await _subscriptionAssessmentMetadataAssessmentsMetadataRestClient.CreateInSubscriptionAsync(Id.SubscriptionId, assessmentMetadataName, data, cancellationToken).ConfigureAwait(false); - var operation = new SecurityCenterArmOperation(Response.FromValue(new SubscriptionAssessmentMetadataResource(Client, response), response.GetRawResponse())); + var uri = _subscriptionAssessmentMetadataAssessmentsMetadataRestClient.CreateCreateInSubscriptionRequestUri(Id.SubscriptionId, assessmentMetadataName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(Response.FromValue(new SubscriptionAssessmentMetadataResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -140,7 +142,9 @@ public virtual ArmOperation CreateOrUpda try { var response = _subscriptionAssessmentMetadataAssessmentsMetadataRestClient.CreateInSubscription(Id.SubscriptionId, assessmentMetadataName, data, cancellationToken); - var operation = new SecurityCenterArmOperation(Response.FromValue(new SubscriptionAssessmentMetadataResource(Client, response), response.GetRawResponse())); + var uri = _subscriptionAssessmentMetadataAssessmentsMetadataRestClient.CreateCreateInSubscriptionRequestUri(Id.SubscriptionId, assessmentMetadataName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(Response.FromValue(new SubscriptionAssessmentMetadataResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SubscriptionAssessmentMetadataResource.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SubscriptionAssessmentMetadataResource.cs index aab140c085bc..7d9aa069e2c3 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SubscriptionAssessmentMetadataResource.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SubscriptionAssessmentMetadataResource.cs @@ -199,7 +199,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _subscriptionAssessmentMetadataAssessmentsMetadataRestClient.DeleteInSubscriptionAsync(Id.SubscriptionId, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new SecurityCenterArmOperation(response); + var uri = _subscriptionAssessmentMetadataAssessmentsMetadataRestClient.CreateDeleteInSubscriptionRequestUri(Id.SubscriptionId, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -241,7 +243,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _subscriptionAssessmentMetadataAssessmentsMetadataRestClient.DeleteInSubscription(Id.SubscriptionId, Id.Name, cancellationToken); - var operation = new SecurityCenterArmOperation(response); + var uri = _subscriptionAssessmentMetadataAssessmentsMetadataRestClient.CreateDeleteInSubscriptionRequestUri(Id.SubscriptionId, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -287,7 +291,9 @@ public virtual async Task> try { var response = await _subscriptionAssessmentMetadataAssessmentsMetadataRestClient.CreateInSubscriptionAsync(Id.SubscriptionId, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new SecurityCenterArmOperation(Response.FromValue(new SubscriptionAssessmentMetadataResource(Client, response), response.GetRawResponse())); + var uri = _subscriptionAssessmentMetadataAssessmentsMetadataRestClient.CreateCreateInSubscriptionRequestUri(Id.SubscriptionId, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(Response.FromValue(new SubscriptionAssessmentMetadataResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -333,7 +339,9 @@ public virtual ArmOperation Update(WaitU try { var response = _subscriptionAssessmentMetadataAssessmentsMetadataRestClient.CreateInSubscription(Id.SubscriptionId, Id.Name, data, cancellationToken); - var operation = new SecurityCenterArmOperation(Response.FromValue(new SubscriptionAssessmentMetadataResource(Client, response), response.GetRawResponse())); + var uri = _subscriptionAssessmentMetadataAssessmentsMetadataRestClient.CreateCreateInSubscriptionRequestUri(Id.SubscriptionId, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(Response.FromValue(new SubscriptionAssessmentMetadataResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SubscriptionSecurityApplicationCollection.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SubscriptionSecurityApplicationCollection.cs index 201f8004b57b..447def21fd04 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SubscriptionSecurityApplicationCollection.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SubscriptionSecurityApplicationCollection.cs @@ -96,7 +96,9 @@ public virtual async Task> try { var response = await _subscriptionSecurityApplicationApplicationRestClient.CreateOrUpdateAsync(Id.SubscriptionId, applicationId, data, cancellationToken).ConfigureAwait(false); - var operation = new SecurityCenterArmOperation(Response.FromValue(new SubscriptionSecurityApplicationResource(Client, response), response.GetRawResponse())); + var uri = _subscriptionSecurityApplicationApplicationRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, applicationId, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(Response.FromValue(new SubscriptionSecurityApplicationResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -145,7 +147,9 @@ public virtual ArmOperation CreateOrUpd try { var response = _subscriptionSecurityApplicationApplicationRestClient.CreateOrUpdate(Id.SubscriptionId, applicationId, data, cancellationToken); - var operation = new SecurityCenterArmOperation(Response.FromValue(new SubscriptionSecurityApplicationResource(Client, response), response.GetRawResponse())); + var uri = _subscriptionSecurityApplicationApplicationRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, applicationId, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(Response.FromValue(new SubscriptionSecurityApplicationResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SubscriptionSecurityApplicationResource.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SubscriptionSecurityApplicationResource.cs index 05ccfe1e9478..5ba5d7c95632 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SubscriptionSecurityApplicationResource.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SubscriptionSecurityApplicationResource.cs @@ -199,7 +199,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _subscriptionSecurityApplicationApplicationRestClient.DeleteAsync(Id.SubscriptionId, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new SecurityCenterArmOperation(response); + var uri = _subscriptionSecurityApplicationApplicationRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -241,7 +243,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _subscriptionSecurityApplicationApplicationRestClient.Delete(Id.SubscriptionId, Id.Name, cancellationToken); - var operation = new SecurityCenterArmOperation(response); + var uri = _subscriptionSecurityApplicationApplicationRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -287,7 +291,9 @@ public virtual async Task> try { var response = await _subscriptionSecurityApplicationApplicationRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new SecurityCenterArmOperation(Response.FromValue(new SubscriptionSecurityApplicationResource(Client, response), response.GetRawResponse())); + var uri = _subscriptionSecurityApplicationApplicationRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(Response.FromValue(new SubscriptionSecurityApplicationResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -333,7 +339,9 @@ public virtual ArmOperation Update(Wait try { var response = _subscriptionSecurityApplicationApplicationRestClient.CreateOrUpdate(Id.SubscriptionId, Id.Name, data, cancellationToken); - var operation = new SecurityCenterArmOperation(Response.FromValue(new SubscriptionSecurityApplicationResource(Client, response), response.GetRawResponse())); + var uri = _subscriptionSecurityApplicationApplicationRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityCenterArmOperation(Response.FromValue(new SubscriptionSecurityApplicationResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/LongRunningOperation/SecurityDevOpsArmOperation.cs b/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/LongRunningOperation/SecurityDevOpsArmOperation.cs index 18fe01692f31..eeb9fec163df 100644 --- a/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/LongRunningOperation/SecurityDevOpsArmOperation.cs +++ b/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/LongRunningOperation/SecurityDevOpsArmOperation.cs @@ -20,21 +20,24 @@ internal class SecurityDevOpsArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of SecurityDevOpsArmOperation for mocking. protected SecurityDevOpsArmOperation() { } - internal SecurityDevOpsArmOperation(Response response) + internal SecurityDevOpsArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal SecurityDevOpsArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "SecurityDevOpsArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal SecurityDevOpsArmOperation(ClientDiagnostics clientDiagnostics, HttpPip public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/LongRunningOperation/SecurityDevOpsArmOperationOfT.cs b/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/LongRunningOperation/SecurityDevOpsArmOperationOfT.cs index f309d5dfd9e3..7817c355f45f 100644 --- a/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/LongRunningOperation/SecurityDevOpsArmOperationOfT.cs +++ b/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/LongRunningOperation/SecurityDevOpsArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class SecurityDevOpsArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of SecurityDevOpsArmOperation for mocking. protected SecurityDevOpsArmOperation() { } - internal SecurityDevOpsArmOperation(Response response) + internal SecurityDevOpsArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal SecurityDevOpsArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "SecurityDevOpsArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal SecurityDevOpsArmOperation(IOperationSource source, ClientDiagnostic public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/Models/AzureDevOpsConnectorResource.Serialization.cs b/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/Models/AzureDevOpsConnectorResource.Serialization.cs new file mode 100644 index 000000000000..ad7e6f0daa7d --- /dev/null +++ b/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/Models/AzureDevOpsConnectorResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.SecurityDevOps +{ + public partial class AzureDevOpsConnectorResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + AzureDevOpsConnectorData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + AzureDevOpsConnectorData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/Models/AzureDevOpsOrgResource.Serialization.cs b/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/Models/AzureDevOpsOrgResource.Serialization.cs new file mode 100644 index 000000000000..9fa0ed66f4ce --- /dev/null +++ b/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/Models/AzureDevOpsOrgResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.SecurityDevOps +{ + public partial class AzureDevOpsOrgResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + AzureDevOpsOrgData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + AzureDevOpsOrgData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/Models/AzureDevOpsProjectResource.Serialization.cs b/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/Models/AzureDevOpsProjectResource.Serialization.cs new file mode 100644 index 000000000000..2980e64d3d14 --- /dev/null +++ b/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/Models/AzureDevOpsProjectResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.SecurityDevOps +{ + public partial class AzureDevOpsProjectResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + AzureDevOpsProjectData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + AzureDevOpsProjectData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/Models/AzureDevOpsRepoResource.Serialization.cs b/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/Models/AzureDevOpsRepoResource.Serialization.cs new file mode 100644 index 000000000000..a7d2a6c030c9 --- /dev/null +++ b/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/Models/AzureDevOpsRepoResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.SecurityDevOps +{ + public partial class AzureDevOpsRepoResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + AzureDevOpsRepoData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + AzureDevOpsRepoData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/Models/GitHubConnectorResource.Serialization.cs b/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/Models/GitHubConnectorResource.Serialization.cs new file mode 100644 index 000000000000..4e129743eaf8 --- /dev/null +++ b/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/Models/GitHubConnectorResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.SecurityDevOps +{ + public partial class GitHubConnectorResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + GitHubConnectorData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + GitHubConnectorData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/Models/GitHubOwnerResource.Serialization.cs b/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/Models/GitHubOwnerResource.Serialization.cs new file mode 100644 index 000000000000..afe48b1f2e64 --- /dev/null +++ b/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/Models/GitHubOwnerResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.SecurityDevOps +{ + public partial class GitHubOwnerResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + GitHubOwnerData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + GitHubOwnerData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/Models/GitHubRepoResource.Serialization.cs b/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/Models/GitHubRepoResource.Serialization.cs new file mode 100644 index 000000000000..a4a6931a395f --- /dev/null +++ b/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/Models/GitHubRepoResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.SecurityDevOps +{ + public partial class GitHubRepoResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + GitHubRepoData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + GitHubRepoData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/RestOperations/AzureDevOpsConnectorRestOperations.cs b/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/RestOperations/AzureDevOpsConnectorRestOperations.cs index a8c3fe741959..11c5efafd28d 100644 --- a/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/RestOperations/AzureDevOpsConnectorRestOperations.cs +++ b/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/RestOperations/AzureDevOpsConnectorRestOperations.cs @@ -37,6 +37,19 @@ public AzureDevOpsConnectorRestOperations(HttpPipeline pipeline, string applicat _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.SecurityDevOps/azureDevOpsConnectors", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -108,6 +121,20 @@ public Response ListByResourceGroup(string sub } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string azureDevOpsConnectorName) + { + 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.SecurityDevOps/azureDevOpsConnectors/", false); + uri.AppendPath(azureDevOpsConnectorName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string azureDevOpsConnectorName) { var message = _pipeline.CreateMessage(); @@ -190,6 +217,20 @@ public Response Get(string subscriptionId, string reso } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string azureDevOpsConnectorName, AzureDevOpsConnectorData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.SecurityDevOps/azureDevOpsConnectors/", false); + uri.AppendPath(azureDevOpsConnectorName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string azureDevOpsConnectorName, AzureDevOpsConnectorData data) { var message = _pipeline.CreateMessage(); @@ -268,6 +309,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string azureDevOpsConnectorName, AzureDevOpsConnectorData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.SecurityDevOps/azureDevOpsConnectors/", false); + uri.AppendPath(azureDevOpsConnectorName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string azureDevOpsConnectorName, AzureDevOpsConnectorData data) { var message = _pipeline.CreateMessage(); @@ -346,6 +401,20 @@ public Response Update(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string azureDevOpsConnectorName) + { + 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.SecurityDevOps/azureDevOpsConnectors/", false); + uri.AppendPath(azureDevOpsConnectorName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string azureDevOpsConnectorName) { var message = _pipeline.CreateMessage(); @@ -418,6 +487,17 @@ public Response Delete(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.SecurityDevOps/azureDevOpsConnectors", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -485,6 +565,14 @@ public Response ListBySubscription(string subs } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -555,6 +643,14 @@ public Response ListByResourceGroupNextPage(st } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/RestOperations/AzureDevOpsConnectorStatsRestOperations.cs b/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/RestOperations/AzureDevOpsConnectorStatsRestOperations.cs index eee79c247ac7..1381530258c5 100644 --- a/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/RestOperations/AzureDevOpsConnectorStatsRestOperations.cs +++ b/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/RestOperations/AzureDevOpsConnectorStatsRestOperations.cs @@ -37,6 +37,21 @@ public AzureDevOpsConnectorStatsRestOperations(HttpPipeline pipeline, string app _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string azureDevOpsConnectorName) + { + 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.SecurityDevOps/azureDevOpsConnectors/", false); + uri.AppendPath(azureDevOpsConnectorName, true); + uri.AppendPath("/stats", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string azureDevOpsConnectorName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/RestOperations/AzureDevOpsOrgRestOperations.cs b/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/RestOperations/AzureDevOpsOrgRestOperations.cs index 3eb49b50f273..2c40fc84a9f4 100644 --- a/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/RestOperations/AzureDevOpsOrgRestOperations.cs +++ b/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/RestOperations/AzureDevOpsOrgRestOperations.cs @@ -37,6 +37,21 @@ public AzureDevOpsOrgRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string azureDevOpsConnectorName) + { + 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.SecurityDevOps/azureDevOpsConnectors/", false); + uri.AppendPath(azureDevOpsConnectorName, true); + uri.AppendPath("/orgs", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string azureDevOpsConnectorName) { var message = _pipeline.CreateMessage(); @@ -114,6 +129,22 @@ public Response List(string subscriptionId, string r } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string azureDevOpsConnectorName, string azureDevOpsOrgName) + { + 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.SecurityDevOps/azureDevOpsConnectors/", false); + uri.AppendPath(azureDevOpsConnectorName, true); + uri.AppendPath("/orgs/", false); + uri.AppendPath(azureDevOpsOrgName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string azureDevOpsConnectorName, string azureDevOpsOrgName) { var message = _pipeline.CreateMessage(); @@ -202,6 +233,22 @@ public Response Get(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string azureDevOpsConnectorName, string azureDevOpsOrgName, AzureDevOpsOrgData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.SecurityDevOps/azureDevOpsConnectors/", false); + uri.AppendPath(azureDevOpsConnectorName, true); + uri.AppendPath("/orgs/", false); + uri.AppendPath(azureDevOpsOrgName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string azureDevOpsConnectorName, string azureDevOpsOrgName, AzureDevOpsOrgData data) { var message = _pipeline.CreateMessage(); @@ -286,6 +333,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string azureDevOpsConnectorName, string azureDevOpsOrgName, AzureDevOpsOrgData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.SecurityDevOps/azureDevOpsConnectors/", false); + uri.AppendPath(azureDevOpsConnectorName, true); + uri.AppendPath("/orgs/", false); + uri.AppendPath(azureDevOpsOrgName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string azureDevOpsConnectorName, string azureDevOpsOrgName, AzureDevOpsOrgData data) { var message = _pipeline.CreateMessage(); @@ -368,6 +431,14 @@ public Response Update(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string azureDevOpsConnectorName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string azureDevOpsConnectorName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/RestOperations/AzureDevOpsProjectRestOperations.cs b/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/RestOperations/AzureDevOpsProjectRestOperations.cs index 9230b4fcacc7..147c43a04e99 100644 --- a/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/RestOperations/AzureDevOpsProjectRestOperations.cs +++ b/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/RestOperations/AzureDevOpsProjectRestOperations.cs @@ -37,6 +37,23 @@ public AzureDevOpsProjectRestOperations(HttpPipeline pipeline, string applicatio _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string azureDevOpsConnectorName, string azureDevOpsOrgName) + { + 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.SecurityDevOps/azureDevOpsConnectors/", false); + uri.AppendPath(azureDevOpsConnectorName, true); + uri.AppendPath("/orgs/", false); + uri.AppendPath(azureDevOpsOrgName, true); + uri.AppendPath("/projects", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string azureDevOpsConnectorName, string azureDevOpsOrgName) { var message = _pipeline.CreateMessage(); @@ -120,6 +137,24 @@ public Response List(string subscriptionId, stri } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string azureDevOpsConnectorName, string azureDevOpsOrgName, string azureDevOpsProjectName) + { + 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.SecurityDevOps/azureDevOpsConnectors/", false); + uri.AppendPath(azureDevOpsConnectorName, true); + uri.AppendPath("/orgs/", false); + uri.AppendPath(azureDevOpsOrgName, true); + uri.AppendPath("/projects/", false); + uri.AppendPath(azureDevOpsProjectName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string azureDevOpsConnectorName, string azureDevOpsOrgName, string azureDevOpsProjectName) { var message = _pipeline.CreateMessage(); @@ -214,6 +249,24 @@ public Response Get(string subscriptionId, string resour } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string azureDevOpsConnectorName, string azureDevOpsOrgName, string azureDevOpsProjectName, AzureDevOpsProjectData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.SecurityDevOps/azureDevOpsConnectors/", false); + uri.AppendPath(azureDevOpsConnectorName, true); + uri.AppendPath("/orgs/", false); + uri.AppendPath(azureDevOpsOrgName, true); + uri.AppendPath("/projects/", false); + uri.AppendPath(azureDevOpsProjectName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string azureDevOpsConnectorName, string azureDevOpsOrgName, string azureDevOpsProjectName, AzureDevOpsProjectData data) { var message = _pipeline.CreateMessage(); @@ -304,6 +357,24 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string azureDevOpsConnectorName, string azureDevOpsOrgName, string azureDevOpsProjectName, AzureDevOpsProjectData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.SecurityDevOps/azureDevOpsConnectors/", false); + uri.AppendPath(azureDevOpsConnectorName, true); + uri.AppendPath("/orgs/", false); + uri.AppendPath(azureDevOpsOrgName, true); + uri.AppendPath("/projects/", false); + uri.AppendPath(azureDevOpsProjectName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string azureDevOpsConnectorName, string azureDevOpsOrgName, string azureDevOpsProjectName, AzureDevOpsProjectData data) { var message = _pipeline.CreateMessage(); @@ -392,6 +463,14 @@ public Response Update(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string azureDevOpsConnectorName, string azureDevOpsOrgName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string azureDevOpsConnectorName, string azureDevOpsOrgName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/RestOperations/AzureDevOpsRepoRestOperations.cs b/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/RestOperations/AzureDevOpsRepoRestOperations.cs index e204ba8a9cfd..37d7c4831cde 100644 --- a/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/RestOperations/AzureDevOpsRepoRestOperations.cs +++ b/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/RestOperations/AzureDevOpsRepoRestOperations.cs @@ -37,6 +37,21 @@ public AzureDevOpsRepoRestOperations(HttpPipeline pipeline, string applicationId _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByConnectorRequestUri(string subscriptionId, string resourceGroupName, string azureDevOpsConnectorName) + { + 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.SecurityDevOps/azureDevOpsConnectors/", false); + uri.AppendPath(azureDevOpsConnectorName, true); + uri.AppendPath("/repos", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByConnectorRequest(string subscriptionId, string resourceGroupName, string azureDevOpsConnectorName) { var message = _pipeline.CreateMessage(); @@ -114,6 +129,25 @@ public Response ListByConnector(string subscription } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string azureDevOpsConnectorName, string azureDevOpsOrgName, string azureDevOpsProjectName) + { + 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.SecurityDevOps/azureDevOpsConnectors/", false); + uri.AppendPath(azureDevOpsConnectorName, true); + uri.AppendPath("/orgs/", false); + uri.AppendPath(azureDevOpsOrgName, true); + uri.AppendPath("/projects/", false); + uri.AppendPath(azureDevOpsProjectName, true); + uri.AppendPath("/repos", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string azureDevOpsConnectorName, string azureDevOpsOrgName, string azureDevOpsProjectName) { var message = _pipeline.CreateMessage(); @@ -203,6 +237,26 @@ public Response List(string subscriptionId, string } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string azureDevOpsConnectorName, string azureDevOpsOrgName, string azureDevOpsProjectName, string azureDevOpsRepoName) + { + 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.SecurityDevOps/azureDevOpsConnectors/", false); + uri.AppendPath(azureDevOpsConnectorName, true); + uri.AppendPath("/orgs/", false); + uri.AppendPath(azureDevOpsOrgName, true); + uri.AppendPath("/projects/", false); + uri.AppendPath(azureDevOpsProjectName, true); + uri.AppendPath("/repos/", false); + uri.AppendPath(azureDevOpsRepoName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string azureDevOpsConnectorName, string azureDevOpsOrgName, string azureDevOpsProjectName, string azureDevOpsRepoName) { var message = _pipeline.CreateMessage(); @@ -303,6 +357,26 @@ public Response Get(string subscriptionId, string resourceG } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string azureDevOpsConnectorName, string azureDevOpsOrgName, string azureDevOpsProjectName, string azureDevOpsRepoName, AzureDevOpsRepoData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.SecurityDevOps/azureDevOpsConnectors/", false); + uri.AppendPath(azureDevOpsConnectorName, true); + uri.AppendPath("/orgs/", false); + uri.AppendPath(azureDevOpsOrgName, true); + uri.AppendPath("/projects/", false); + uri.AppendPath(azureDevOpsProjectName, true); + uri.AppendPath("/repos/", false); + uri.AppendPath(azureDevOpsRepoName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string azureDevOpsConnectorName, string azureDevOpsOrgName, string azureDevOpsProjectName, string azureDevOpsRepoName, AzureDevOpsRepoData data) { var message = _pipeline.CreateMessage(); @@ -399,6 +473,26 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string azureDevOpsConnectorName, string azureDevOpsOrgName, string azureDevOpsProjectName, string azureDevOpsRepoName, AzureDevOpsRepoData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.SecurityDevOps/azureDevOpsConnectors/", false); + uri.AppendPath(azureDevOpsConnectorName, true); + uri.AppendPath("/orgs/", false); + uri.AppendPath(azureDevOpsOrgName, true); + uri.AppendPath("/projects/", false); + uri.AppendPath(azureDevOpsProjectName, true); + uri.AppendPath("/repos/", false); + uri.AppendPath(azureDevOpsRepoName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string azureDevOpsConnectorName, string azureDevOpsOrgName, string azureDevOpsProjectName, string azureDevOpsRepoName, AzureDevOpsRepoData data) { var message = _pipeline.CreateMessage(); @@ -493,6 +587,14 @@ public Response Update(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateListByConnectorNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string azureDevOpsConnectorName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByConnectorNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string azureDevOpsConnectorName) { var message = _pipeline.CreateMessage(); @@ -567,6 +669,14 @@ public Response ListByConnectorNextPage(string next } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string azureDevOpsConnectorName, string azureDevOpsOrgName, string azureDevOpsProjectName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string azureDevOpsConnectorName, string azureDevOpsOrgName, string azureDevOpsProjectName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/RestOperations/GitHubConnectorRestOperations.cs b/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/RestOperations/GitHubConnectorRestOperations.cs index 8345a5175fdc..3614f855172d 100644 --- a/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/RestOperations/GitHubConnectorRestOperations.cs +++ b/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/RestOperations/GitHubConnectorRestOperations.cs @@ -37,6 +37,19 @@ public GitHubConnectorRestOperations(HttpPipeline pipeline, string applicationId _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.SecurityDevOps/gitHubConnectors", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -108,6 +121,20 @@ public Response ListByResourceGroup(string subscrip } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string gitHubConnectorName) + { + 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.SecurityDevOps/gitHubConnectors/", false); + uri.AppendPath(gitHubConnectorName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string gitHubConnectorName) { var message = _pipeline.CreateMessage(); @@ -190,6 +217,20 @@ public Response Get(string subscriptionId, string resourceG } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string gitHubConnectorName, GitHubConnectorData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.SecurityDevOps/gitHubConnectors/", false); + uri.AppendPath(gitHubConnectorName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string gitHubConnectorName, GitHubConnectorData data) { var message = _pipeline.CreateMessage(); @@ -268,6 +309,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string gitHubConnectorName, GitHubConnectorData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.SecurityDevOps/gitHubConnectors/", false); + uri.AppendPath(gitHubConnectorName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string gitHubConnectorName, GitHubConnectorData data) { var message = _pipeline.CreateMessage(); @@ -346,6 +401,20 @@ public Response Update(string subscriptionId, string resourceGroupName, string g } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string gitHubConnectorName) + { + 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.SecurityDevOps/gitHubConnectors/", false); + uri.AppendPath(gitHubConnectorName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string gitHubConnectorName) { var message = _pipeline.CreateMessage(); @@ -418,6 +487,17 @@ public Response Delete(string subscriptionId, string resourceGroupName, string g } } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.SecurityDevOps/gitHubConnectors", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -485,6 +565,14 @@ public Response ListBySubscription(string subscript } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -555,6 +643,14 @@ public Response ListByResourceGroupNextPage(string } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/RestOperations/GitHubConnectorStatsRestOperations.cs b/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/RestOperations/GitHubConnectorStatsRestOperations.cs index a302ef628fbf..06dad931c54d 100644 --- a/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/RestOperations/GitHubConnectorStatsRestOperations.cs +++ b/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/RestOperations/GitHubConnectorStatsRestOperations.cs @@ -37,6 +37,21 @@ public GitHubConnectorStatsRestOperations(HttpPipeline pipeline, string applicat _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string gitHubConnectorName) + { + 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.SecurityDevOps/gitHubConnectors/", false); + uri.AppendPath(gitHubConnectorName, true); + uri.AppendPath("/stats", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string gitHubConnectorName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/RestOperations/GitHubOwnerRestOperations.cs b/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/RestOperations/GitHubOwnerRestOperations.cs index db139ba43613..b8b803f806cb 100644 --- a/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/RestOperations/GitHubOwnerRestOperations.cs +++ b/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/RestOperations/GitHubOwnerRestOperations.cs @@ -37,6 +37,21 @@ public GitHubOwnerRestOperations(HttpPipeline pipeline, string applicationId, Ur _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string gitHubConnectorName) + { + 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.SecurityDevOps/gitHubConnectors/", false); + uri.AppendPath(gitHubConnectorName, true); + uri.AppendPath("/owners", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string gitHubConnectorName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response List(string subscriptionId, string reso } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string gitHubConnectorName, string gitHubOwnerName) + { + 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.SecurityDevOps/gitHubConnectors/", false); + uri.AppendPath(gitHubConnectorName, true); + uri.AppendPath("/owners/", false); + uri.AppendPath(gitHubOwnerName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string gitHubConnectorName, string gitHubOwnerName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscriptionId, string resourceGroup } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string gitHubConnectorName, string gitHubOwnerName, GitHubOwnerData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.SecurityDevOps/gitHubConnectors/", false); + uri.AppendPath(gitHubConnectorName, true); + uri.AppendPath("/owners/", false); + uri.AppendPath(gitHubOwnerName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string gitHubConnectorName, string gitHubOwnerName, GitHubOwnerData data) { var message = _pipeline.CreateMessage(); @@ -288,6 +335,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string gitHubConnectorName, string gitHubOwnerName, GitHubOwnerData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.SecurityDevOps/gitHubConnectors/", false); + uri.AppendPath(gitHubConnectorName, true); + uri.AppendPath("/owners/", false); + uri.AppendPath(gitHubOwnerName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string gitHubConnectorName, string gitHubOwnerName, GitHubOwnerData data) { var message = _pipeline.CreateMessage(); @@ -370,6 +433,14 @@ public Response Update(string subscriptionId, string resourceGroupName, string g } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string gitHubConnectorName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string gitHubConnectorName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/RestOperations/GitHubRepoRestOperations.cs b/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/RestOperations/GitHubRepoRestOperations.cs index 07188c9ce901..85ab543c1fd7 100644 --- a/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/RestOperations/GitHubRepoRestOperations.cs +++ b/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/RestOperations/GitHubRepoRestOperations.cs @@ -37,6 +37,21 @@ public GitHubRepoRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByConnectorRequestUri(string subscriptionId, string resourceGroupName, string gitHubConnectorName) + { + 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.SecurityDevOps/gitHubConnectors/", false); + uri.AppendPath(gitHubConnectorName, true); + uri.AppendPath("/repos", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByConnectorRequest(string subscriptionId, string resourceGroupName, string gitHubConnectorName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,23 @@ public Response ListByConnector(string subscriptionId, s } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string gitHubConnectorName, string gitHubOwnerName) + { + 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.SecurityDevOps/gitHubConnectors/", false); + uri.AppendPath(gitHubConnectorName, true); + uri.AppendPath("/owners/", false); + uri.AppendPath(gitHubOwnerName, true); + uri.AppendPath("/repos", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string gitHubConnectorName, string gitHubOwnerName) { var message = _pipeline.CreateMessage(); @@ -201,6 +233,24 @@ public Response List(string subscriptionId, string resou } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string gitHubConnectorName, string gitHubOwnerName, string gitHubRepoName) + { + 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.SecurityDevOps/gitHubConnectors/", false); + uri.AppendPath(gitHubConnectorName, true); + uri.AppendPath("/owners/", false); + uri.AppendPath(gitHubOwnerName, true); + uri.AppendPath("/repos/", false); + uri.AppendPath(gitHubRepoName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string gitHubConnectorName, string gitHubOwnerName, string gitHubRepoName) { var message = _pipeline.CreateMessage(); @@ -295,6 +345,24 @@ public Response Get(string subscriptionId, string resourceGroupN } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string gitHubConnectorName, string gitHubOwnerName, string gitHubRepoName, GitHubRepoData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.SecurityDevOps/gitHubConnectors/", false); + uri.AppendPath(gitHubConnectorName, true); + uri.AppendPath("/owners/", false); + uri.AppendPath(gitHubOwnerName, true); + uri.AppendPath("/repos/", false); + uri.AppendPath(gitHubRepoName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string gitHubConnectorName, string gitHubOwnerName, string gitHubRepoName, GitHubRepoData data) { var message = _pipeline.CreateMessage(); @@ -385,6 +453,24 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string gitHubConnectorName, string gitHubOwnerName, string gitHubRepoName, GitHubRepoData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.SecurityDevOps/gitHubConnectors/", false); + uri.AppendPath(gitHubConnectorName, true); + uri.AppendPath("/owners/", false); + uri.AppendPath(gitHubOwnerName, true); + uri.AppendPath("/repos/", false); + uri.AppendPath(gitHubRepoName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string gitHubConnectorName, string gitHubOwnerName, string gitHubRepoName, GitHubRepoData data) { var message = _pipeline.CreateMessage(); @@ -473,6 +559,14 @@ public Response Update(string subscriptionId, string resourceGroupName, string g } } + internal RequestUriBuilder CreateListByConnectorNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string gitHubConnectorName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByConnectorNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string gitHubConnectorName) { var message = _pipeline.CreateMessage(); @@ -549,6 +643,14 @@ public Response ListByConnectorNextPage(string nextLink, } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string gitHubConnectorName, string gitHubOwnerName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string gitHubConnectorName, string gitHubOwnerName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/LongRunningOperation/SecurityInsightsArmOperation.cs b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/LongRunningOperation/SecurityInsightsArmOperation.cs index ca347122b20c..7dff59b23f88 100644 --- a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/LongRunningOperation/SecurityInsightsArmOperation.cs +++ b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/LongRunningOperation/SecurityInsightsArmOperation.cs @@ -20,21 +20,24 @@ internal class SecurityInsightsArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of SecurityInsightsArmOperation for mocking. protected SecurityInsightsArmOperation() { } - internal SecurityInsightsArmOperation(Response response) + internal SecurityInsightsArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal SecurityInsightsArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "SecurityInsightsArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal SecurityInsightsArmOperation(ClientDiagnostics clientDiagnostics, HttpP public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/LongRunningOperation/SecurityInsightsArmOperationOfT.cs b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/LongRunningOperation/SecurityInsightsArmOperationOfT.cs index 94e49ffbb736..432ce11bd459 100644 --- a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/LongRunningOperation/SecurityInsightsArmOperationOfT.cs +++ b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/LongRunningOperation/SecurityInsightsArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class SecurityInsightsArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of SecurityInsightsArmOperation for mocking. protected SecurityInsightsArmOperation() { } - internal SecurityInsightsArmOperation(Response response) + internal SecurityInsightsArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal SecurityInsightsArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "SecurityInsightsArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal SecurityInsightsArmOperation(IOperationSource source, ClientDiagnost public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityInsightsAlertRuleActionResource.Serialization.cs b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityInsightsAlertRuleActionResource.Serialization.cs new file mode 100644 index 000000000000..0e74063a89da --- /dev/null +++ b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityInsightsAlertRuleActionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.SecurityInsights +{ + public partial class SecurityInsightsAlertRuleActionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SecurityInsightsAlertRuleActionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SecurityInsightsAlertRuleActionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityInsightsAlertRuleResource.Serialization.cs b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityInsightsAlertRuleResource.Serialization.cs new file mode 100644 index 000000000000..ff584f1cd920 --- /dev/null +++ b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityInsightsAlertRuleResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.SecurityInsights +{ + public partial class SecurityInsightsAlertRuleResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SecurityInsightsAlertRuleData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SecurityInsightsAlertRuleData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityInsightsAlertRuleTemplateResource.Serialization.cs b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityInsightsAlertRuleTemplateResource.Serialization.cs new file mode 100644 index 000000000000..4004f5462497 --- /dev/null +++ b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityInsightsAlertRuleTemplateResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.SecurityInsights +{ + public partial class SecurityInsightsAlertRuleTemplateResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SecurityInsightsAlertRuleTemplateData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SecurityInsightsAlertRuleTemplateData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityInsightsAutomationRuleResource.Serialization.cs b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityInsightsAutomationRuleResource.Serialization.cs new file mode 100644 index 000000000000..fa127b0887df --- /dev/null +++ b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityInsightsAutomationRuleResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.SecurityInsights +{ + public partial class SecurityInsightsAutomationRuleResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SecurityInsightsAutomationRuleData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SecurityInsightsAutomationRuleData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityInsightsBookmarkResource.Serialization.cs b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityInsightsBookmarkResource.Serialization.cs new file mode 100644 index 000000000000..69c3bb0b71c3 --- /dev/null +++ b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityInsightsBookmarkResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.SecurityInsights +{ + public partial class SecurityInsightsBookmarkResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SecurityInsightsBookmarkData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SecurityInsightsBookmarkData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityInsightsDataConnectorResource.Serialization.cs b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityInsightsDataConnectorResource.Serialization.cs new file mode 100644 index 000000000000..a9ac0649f557 --- /dev/null +++ b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityInsightsDataConnectorResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.SecurityInsights +{ + public partial class SecurityInsightsDataConnectorResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SecurityInsightsDataConnectorData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SecurityInsightsDataConnectorData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityInsightsIncidentCommentResource.Serialization.cs b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityInsightsIncidentCommentResource.Serialization.cs new file mode 100644 index 000000000000..650c349e675b --- /dev/null +++ b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityInsightsIncidentCommentResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.SecurityInsights +{ + public partial class SecurityInsightsIncidentCommentResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SecurityInsightsIncidentCommentData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SecurityInsightsIncidentCommentData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityInsightsIncidentRelationResource.Serialization.cs b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityInsightsIncidentRelationResource.Serialization.cs new file mode 100644 index 000000000000..28429e3ff105 --- /dev/null +++ b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityInsightsIncidentRelationResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.SecurityInsights +{ + public partial class SecurityInsightsIncidentRelationResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SecurityInsightsIncidentRelationData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SecurityInsightsIncidentRelationData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityInsightsIncidentResource.Serialization.cs b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityInsightsIncidentResource.Serialization.cs new file mode 100644 index 000000000000..5e3f82f39dfa --- /dev/null +++ b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityInsightsIncidentResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.SecurityInsights +{ + public partial class SecurityInsightsIncidentResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SecurityInsightsIncidentData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SecurityInsightsIncidentData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityInsightsSentinelOnboardingStateResource.Serialization.cs b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityInsightsSentinelOnboardingStateResource.Serialization.cs new file mode 100644 index 000000000000..da1b55b15294 --- /dev/null +++ b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityInsightsSentinelOnboardingStateResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.SecurityInsights +{ + public partial class SecurityInsightsSentinelOnboardingStateResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SecurityInsightsSentinelOnboardingStateData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SecurityInsightsSentinelOnboardingStateData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityInsightsThreatIntelligenceIndicatorResource.Serialization.cs b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityInsightsThreatIntelligenceIndicatorResource.Serialization.cs new file mode 100644 index 000000000000..b7750747bb49 --- /dev/null +++ b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityInsightsThreatIntelligenceIndicatorResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.SecurityInsights +{ + public partial class SecurityInsightsThreatIntelligenceIndicatorResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SecurityInsightsThreatIntelligenceIndicatorBaseData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SecurityInsightsThreatIntelligenceIndicatorBaseData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityInsightsWatchlistItemResource.Serialization.cs b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityInsightsWatchlistItemResource.Serialization.cs new file mode 100644 index 000000000000..51d3aa5fe8fc --- /dev/null +++ b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityInsightsWatchlistItemResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.SecurityInsights +{ + public partial class SecurityInsightsWatchlistItemResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SecurityInsightsWatchlistItemData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SecurityInsightsWatchlistItemData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityInsightsWatchlistResource.Serialization.cs b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityInsightsWatchlistResource.Serialization.cs new file mode 100644 index 000000000000..712c28109e5b --- /dev/null +++ b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityInsightsWatchlistResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.SecurityInsights +{ + public partial class SecurityInsightsWatchlistResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SecurityInsightsWatchlistData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SecurityInsightsWatchlistData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityMLAnalyticsSettingResource.Serialization.cs b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityMLAnalyticsSettingResource.Serialization.cs new file mode 100644 index 000000000000..fd95701fcf15 --- /dev/null +++ b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityMLAnalyticsSettingResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.SecurityInsights +{ + public partial class SecurityMLAnalyticsSettingResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SecurityMLAnalyticsSettingData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SecurityMLAnalyticsSettingData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/RestOperations/ActionsRestOperations.cs b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/RestOperations/ActionsRestOperations.cs index e2c4500c2166..8d116ad37260 100644 --- a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/RestOperations/ActionsRestOperations.cs +++ b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/RestOperations/ActionsRestOperations.cs @@ -37,6 +37,23 @@ public ActionsRestOperations(HttpPipeline pipeline, string applicationId, Uri en _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByAlertRuleRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string ruleId) + { + 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.OperationalInsights/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/providers/Microsoft.SecurityInsights/alertRules/", false); + uri.AppendPath(ruleId, true); + uri.AppendPath("/actions", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByAlertRuleRequest(string subscriptionId, string resourceGroupName, string workspaceName, string ruleId) { var message = _pipeline.CreateMessage(); @@ -122,6 +139,24 @@ public Response ListByAlertRule(string subscriptionId, string resou } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string ruleId, string actionId) + { + 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.OperationalInsights/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/providers/Microsoft.SecurityInsights/alertRules/", false); + uri.AppendPath(ruleId, true); + uri.AppendPath("/actions/", false); + uri.AppendPath(actionId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName, string ruleId, string actionId) { var message = _pipeline.CreateMessage(); @@ -216,6 +251,24 @@ public Response Get(string subscriptionId, } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string ruleId, string actionId, SecurityInsightsAlertRuleActionCreateOrUpdateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.OperationalInsights/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/providers/Microsoft.SecurityInsights/alertRules/", false); + uri.AppendPath(ruleId, true); + uri.AppendPath("/actions/", false); + uri.AppendPath(actionId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string ruleId, string actionId, SecurityInsightsAlertRuleActionCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); @@ -316,6 +369,24 @@ public Response CreateOrUpdate(string subsc } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string ruleId, string actionId) + { + 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.OperationalInsights/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/providers/Microsoft.SecurityInsights/alertRules/", false); + uri.AppendPath(ruleId, true); + uri.AppendPath("/actions/", false); + uri.AppendPath(actionId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string workspaceName, string ruleId, string actionId) { var message = _pipeline.CreateMessage(); @@ -398,6 +469,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string w } } + internal RequestUriBuilder CreateListByAlertRuleNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string ruleId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByAlertRuleNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string ruleId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/RestOperations/AlertRuleTemplatesRestOperations.cs b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/RestOperations/AlertRuleTemplatesRestOperations.cs index f9ff0f4a6874..7042ee359d26 100644 --- a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/RestOperations/AlertRuleTemplatesRestOperations.cs +++ b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/RestOperations/AlertRuleTemplatesRestOperations.cs @@ -37,6 +37,21 @@ public AlertRuleTemplatesRestOperations(HttpPipeline pipeline, string applicatio _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string workspaceName) + { + 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.OperationalInsights/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/providers/Microsoft.SecurityInsights/alertRuleTemplates", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response List(string subscriptionId, string resou } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string alertRuleTemplateId) + { + 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.OperationalInsights/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/providers/Microsoft.SecurityInsights/alertRuleTemplates/", false); + uri.AppendPath(alertRuleTemplateId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName, string alertRuleTemplateId) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,14 @@ public Response Get(string subscriptionId } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/RestOperations/AlertRulesRestOperations.cs b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/RestOperations/AlertRulesRestOperations.cs index 1496ac607182..99c5637e208a 100644 --- a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/RestOperations/AlertRulesRestOperations.cs +++ b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/RestOperations/AlertRulesRestOperations.cs @@ -37,6 +37,21 @@ public AlertRulesRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string workspaceName) + { + 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.OperationalInsights/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/providers/Microsoft.SecurityInsights/alertRules", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response List(string subscriptionId, string resourceGroup } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string ruleId) + { + 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.OperationalInsights/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/providers/Microsoft.SecurityInsights/alertRules/", false); + uri.AppendPath(ruleId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName, string ruleId) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscriptionId, string } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string ruleId, SecurityInsightsAlertRuleData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.OperationalInsights/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/providers/Microsoft.SecurityInsights/alertRules/", false); + uri.AppendPath(ruleId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string ruleId, SecurityInsightsAlertRuleData data) { var message = _pipeline.CreateMessage(); @@ -298,6 +345,22 @@ public Response CreateOrUpdate(string subscriptio } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string ruleId) + { + 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.OperationalInsights/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/providers/Microsoft.SecurityInsights/alertRules/", false); + uri.AppendPath(ruleId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string workspaceName, string ruleId) { var message = _pipeline.CreateMessage(); @@ -374,6 +437,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string w } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/RestOperations/AutomationRulesRestOperations.cs b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/RestOperations/AutomationRulesRestOperations.cs index 92b7f21d2dc3..2b5910011e6b 100644 --- a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/RestOperations/AutomationRulesRestOperations.cs +++ b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/RestOperations/AutomationRulesRestOperations.cs @@ -37,6 +37,22 @@ public AutomationRulesRestOperations(HttpPipeline pipeline, string applicationId _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string automationRuleId) + { + 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.OperationalInsights/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/providers/Microsoft.SecurityInsights/automationRules/", false); + uri.AppendPath(automationRuleId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName, string automationRuleId) { var message = _pipeline.CreateMessage(); @@ -125,6 +141,22 @@ public Response Get(string subscriptionId, s } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string automationRuleId, SecurityInsightsAutomationRuleData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.OperationalInsights/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/providers/Microsoft.SecurityInsights/automationRules/", false); + uri.AppendPath(automationRuleId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string automationRuleId, SecurityInsightsAutomationRuleData data) { var message = _pipeline.CreateMessage(); @@ -219,6 +251,22 @@ public Response CreateOrUpdate(string subscr } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string automationRuleId) + { + 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.OperationalInsights/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/providers/Microsoft.SecurityInsights/automationRules/", false); + uri.AppendPath(automationRuleId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string workspaceName, string automationRuleId) { var message = _pipeline.CreateMessage(); @@ -303,6 +351,21 @@ public Response Delete(string subscriptionId, string resourceGroupNa } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string workspaceName) + { + 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.OperationalInsights/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/providers/Microsoft.SecurityInsights/automationRules", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); @@ -382,6 +445,14 @@ public Response List(string subscriptionId, string resource } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/RestOperations/BookmarksRestOperations.cs b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/RestOperations/BookmarksRestOperations.cs index 2f212aca589b..624e4336dbe6 100644 --- a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/RestOperations/BookmarksRestOperations.cs +++ b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/RestOperations/BookmarksRestOperations.cs @@ -37,6 +37,21 @@ public BookmarksRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string workspaceName) + { + 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.OperationalInsights/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/providers/Microsoft.SecurityInsights/bookmarks", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response List(string subscriptionId, string resourceGroupNa } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string bookmarkId) + { + 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.OperationalInsights/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/providers/Microsoft.SecurityInsights/bookmarks/", false); + uri.AppendPath(bookmarkId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName, string bookmarkId) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscriptionId, string } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string bookmarkId, SecurityInsightsBookmarkData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.OperationalInsights/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/providers/Microsoft.SecurityInsights/bookmarks/", false); + uri.AppendPath(bookmarkId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string bookmarkId, SecurityInsightsBookmarkData data) { var message = _pipeline.CreateMessage(); @@ -298,6 +345,22 @@ public Response CreateOrUpdate(string subscription } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string bookmarkId) + { + 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.OperationalInsights/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/providers/Microsoft.SecurityInsights/bookmarks/", false); + uri.AppendPath(bookmarkId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string workspaceName, string bookmarkId) { var message = _pipeline.CreateMessage(); @@ -374,6 +437,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string w } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/RestOperations/DataConnectorsRestOperations.cs b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/RestOperations/DataConnectorsRestOperations.cs index e7ffc5b42ea9..763615586b5a 100644 --- a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/RestOperations/DataConnectorsRestOperations.cs +++ b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/RestOperations/DataConnectorsRestOperations.cs @@ -37,6 +37,21 @@ public DataConnectorsRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string workspaceName) + { + 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.OperationalInsights/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/providers/Microsoft.SecurityInsights/dataConnectors", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response List(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string dataConnectorId) + { + 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.OperationalInsights/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/providers/Microsoft.SecurityInsights/dataConnectors/", false); + uri.AppendPath(dataConnectorId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName, string dataConnectorId) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscriptionId, st } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string dataConnectorId, SecurityInsightsDataConnectorData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.OperationalInsights/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/providers/Microsoft.SecurityInsights/dataConnectors/", false); + uri.AppendPath(dataConnectorId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string dataConnectorId, SecurityInsightsDataConnectorData data) { var message = _pipeline.CreateMessage(); @@ -298,6 +345,22 @@ public Response CreateOrUpdate(string subscri } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string dataConnectorId) + { + 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.OperationalInsights/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/providers/Microsoft.SecurityInsights/dataConnectors/", false); + uri.AppendPath(dataConnectorId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string workspaceName, string dataConnectorId) { var message = _pipeline.CreateMessage(); @@ -374,6 +437,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string w } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/RestOperations/IncidentCommentsRestOperations.cs b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/RestOperations/IncidentCommentsRestOperations.cs index 616cf3c49e1a..532c8f964b53 100644 --- a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/RestOperations/IncidentCommentsRestOperations.cs +++ b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/RestOperations/IncidentCommentsRestOperations.cs @@ -37,6 +37,39 @@ public IncidentCommentsRestOperations(HttpPipeline pipeline, string applicationI _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string incidentId, string filter, string orderBy, int? top, string skipToken) + { + 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.OperationalInsights/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/providers/Microsoft.SecurityInsights/incidents/", false); + uri.AppendPath(incidentId, true); + uri.AppendPath("/comments", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (orderBy != null) + { + uri.AppendQuery("$orderby", orderBy, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string workspaceName, string incidentId, string filter, string orderBy, int? top, string skipToken) { var message = _pipeline.CreateMessage(); @@ -146,6 +179,24 @@ public Response List(string subscriptionId, string resource } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string incidentId, string incidentCommentId) + { + 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.OperationalInsights/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/providers/Microsoft.SecurityInsights/incidents/", false); + uri.AppendPath(incidentId, true); + uri.AppendPath("/comments/", false); + uri.AppendPath(incidentCommentId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName, string incidentId, string incidentCommentId) { var message = _pipeline.CreateMessage(); @@ -240,6 +291,24 @@ public Response Get(string subscriptionId, } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string incidentId, string incidentCommentId, SecurityInsightsIncidentCommentData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.OperationalInsights/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/providers/Microsoft.SecurityInsights/incidents/", false); + uri.AppendPath(incidentId, true); + uri.AppendPath("/comments/", false); + uri.AppendPath(incidentCommentId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string incidentId, string incidentCommentId, SecurityInsightsIncidentCommentData data) { var message = _pipeline.CreateMessage(); @@ -340,6 +409,24 @@ public Response CreateOrUpdate(string subsc } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string incidentId, string incidentCommentId) + { + 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.OperationalInsights/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/providers/Microsoft.SecurityInsights/incidents/", false); + uri.AppendPath(incidentId, true); + uri.AppendPath("/comments/", false); + uri.AppendPath(incidentCommentId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string workspaceName, string incidentId, string incidentCommentId) { var message = _pipeline.CreateMessage(); @@ -422,6 +509,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string w } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string incidentId, string filter, string orderBy, int? top, string skipToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string incidentId, string filter, string orderBy, int? top, string skipToken) { var message = _pipeline.CreateMessage(); diff --git a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/RestOperations/IncidentRelationsRestOperations.cs b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/RestOperations/IncidentRelationsRestOperations.cs index e05db720e828..c1c254f55b77 100644 --- a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/RestOperations/IncidentRelationsRestOperations.cs +++ b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/RestOperations/IncidentRelationsRestOperations.cs @@ -37,6 +37,39 @@ public IncidentRelationsRestOperations(HttpPipeline pipeline, string application _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string incidentId, string filter, string orderBy, int? top, string skipToken) + { + 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.OperationalInsights/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/providers/Microsoft.SecurityInsights/incidents/", false); + uri.AppendPath(incidentId, true); + uri.AppendPath("/relations", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (orderBy != null) + { + uri.AppendQuery("$orderby", orderBy, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string workspaceName, string incidentId, string filter, string orderBy, int? top, string skipToken) { var message = _pipeline.CreateMessage(); @@ -146,6 +179,24 @@ public Response List(string subscriptionId, string resourceGroupNa } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string incidentId, string relationName) + { + 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.OperationalInsights/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/providers/Microsoft.SecurityInsights/incidents/", false); + uri.AppendPath(incidentId, true); + uri.AppendPath("/relations/", false); + uri.AppendPath(relationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName, string incidentId, string relationName) { var message = _pipeline.CreateMessage(); @@ -240,6 +291,24 @@ public Response Get(string subscriptionId, } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string incidentId, string relationName, SecurityInsightsIncidentRelationData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.OperationalInsights/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/providers/Microsoft.SecurityInsights/incidents/", false); + uri.AppendPath(incidentId, true); + uri.AppendPath("/relations/", false); + uri.AppendPath(relationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string incidentId, string relationName, SecurityInsightsIncidentRelationData data) { var message = _pipeline.CreateMessage(); @@ -340,6 +409,24 @@ public Response CreateOrUpdate(string subs } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string incidentId, string relationName) + { + 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.OperationalInsights/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/providers/Microsoft.SecurityInsights/incidents/", false); + uri.AppendPath(incidentId, true); + uri.AppendPath("/relations/", false); + uri.AppendPath(relationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string workspaceName, string incidentId, string relationName) { var message = _pipeline.CreateMessage(); @@ -422,6 +509,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string w } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string incidentId, string filter, string orderBy, int? top, string skipToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string incidentId, string filter, string orderBy, int? top, string skipToken) { var message = _pipeline.CreateMessage(); diff --git a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/RestOperations/IncidentsRestOperations.cs b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/RestOperations/IncidentsRestOperations.cs index eb475ef6119c..9321cf6b16fd 100644 --- a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/RestOperations/IncidentsRestOperations.cs +++ b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/RestOperations/IncidentsRestOperations.cs @@ -37,6 +37,37 @@ public IncidentsRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string filter, string orderBy, int? top, string skipToken) + { + 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.OperationalInsights/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/providers/Microsoft.SecurityInsights/incidents", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (orderBy != null) + { + uri.AppendQuery("$orderby", orderBy, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string workspaceName, string filter, string orderBy, int? top, string skipToken) { var message = _pipeline.CreateMessage(); @@ -140,6 +171,22 @@ public Response List(string subscriptionId, string resourceGroupNa } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string incidentId) + { + 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.OperationalInsights/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/providers/Microsoft.SecurityInsights/incidents/", false); + uri.AppendPath(incidentId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName, string incidentId) { var message = _pipeline.CreateMessage(); @@ -228,6 +275,22 @@ public Response Get(string subscriptionId, string } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string incidentId, SecurityInsightsIncidentData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.OperationalInsights/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/providers/Microsoft.SecurityInsights/incidents/", false); + uri.AppendPath(incidentId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string incidentId, SecurityInsightsIncidentData data) { var message = _pipeline.CreateMessage(); @@ -322,6 +385,22 @@ public Response CreateOrUpdate(string subscription } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string incidentId) + { + 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.OperationalInsights/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/providers/Microsoft.SecurityInsights/incidents/", false); + uri.AppendPath(incidentId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string workspaceName, string incidentId) { var message = _pipeline.CreateMessage(); @@ -398,6 +477,23 @@ public Response Delete(string subscriptionId, string resourceGroupName, string w } } + internal RequestUriBuilder CreateListAlertsRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string incidentId) + { + 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.OperationalInsights/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/providers/Microsoft.SecurityInsights/incidents/", false); + uri.AppendPath(incidentId, true); + uri.AppendPath("/alerts", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListAlertsRequest(string subscriptionId, string resourceGroupName, string workspaceName, string incidentId) { var message = _pipeline.CreateMessage(); @@ -483,6 +579,23 @@ public Response ListAlerts(string subscriptionId, string reso } } + internal RequestUriBuilder CreateListBookmarksRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string incidentId) + { + 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.OperationalInsights/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/providers/Microsoft.SecurityInsights/incidents/", false); + uri.AppendPath(incidentId, true); + uri.AppendPath("/bookmarks", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBookmarksRequest(string subscriptionId, string resourceGroupName, string workspaceName, string incidentId) { var message = _pipeline.CreateMessage(); @@ -568,6 +681,23 @@ public Response ListBookmarks(string subscriptionId, strin } } + internal RequestUriBuilder CreateListEntitiesRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string incidentId) + { + 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.OperationalInsights/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/providers/Microsoft.SecurityInsights/incidents/", false); + uri.AppendPath(incidentId, true); + uri.AppendPath("/entities", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListEntitiesRequest(string subscriptionId, string resourceGroupName, string workspaceName, string incidentId) { var message = _pipeline.CreateMessage(); @@ -653,6 +783,14 @@ public Response ListEntities(string subs } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string filter, string orderBy, int? top, string skipToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string filter, string orderBy, int? top, string skipToken) { var message = _pipeline.CreateMessage(); diff --git a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/RestOperations/SecurityMLAnalyticsSettingsRestOperations.cs b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/RestOperations/SecurityMLAnalyticsSettingsRestOperations.cs index e96c2dcb1dea..5d16c5f6aaf2 100644 --- a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/RestOperations/SecurityMLAnalyticsSettingsRestOperations.cs +++ b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/RestOperations/SecurityMLAnalyticsSettingsRestOperations.cs @@ -37,6 +37,21 @@ public SecurityMLAnalyticsSettingsRestOperations(HttpPipeline pipeline, string a _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string workspaceName) + { + 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.OperationalInsights/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/providers/Microsoft.SecurityInsights/securityMLAnalyticsSettings", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response List(string subscriptionId, str } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string settingsResourceName) + { + 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.OperationalInsights/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/providers/Microsoft.SecurityInsights/securityMLAnalyticsSettings/", false); + uri.AppendPath(settingsResourceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName, string settingsResourceName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscriptionId, strin } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string settingsResourceName, SecurityMLAnalyticsSettingData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.OperationalInsights/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/providers/Microsoft.SecurityInsights/securityMLAnalyticsSettings/", false); + uri.AppendPath(settingsResourceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string settingsResourceName, SecurityMLAnalyticsSettingData data) { var message = _pipeline.CreateMessage(); @@ -298,6 +345,22 @@ public Response CreateOrUpdate(string subscripti } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string settingsResourceName) + { + 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.OperationalInsights/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/providers/Microsoft.SecurityInsights/securityMLAnalyticsSettings/", false); + uri.AppendPath(settingsResourceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string workspaceName, string settingsResourceName) { var message = _pipeline.CreateMessage(); @@ -374,6 +437,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string w } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/RestOperations/SentinelOnboardingStatesRestOperations.cs b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/RestOperations/SentinelOnboardingStatesRestOperations.cs index 75568b8b3f86..ca4ce13a4342 100644 --- a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/RestOperations/SentinelOnboardingStatesRestOperations.cs +++ b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/RestOperations/SentinelOnboardingStatesRestOperations.cs @@ -37,6 +37,22 @@ public SentinelOnboardingStatesRestOperations(HttpPipeline pipeline, string appl _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string sentinelOnboardingStateName) + { + 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.OperationalInsights/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/providers/Microsoft.SecurityInsights/onboardingStates/", false); + uri.AppendPath(sentinelOnboardingStateName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName, string sentinelOnboardingStateName) { var message = _pipeline.CreateMessage(); @@ -125,6 +141,22 @@ public Response Get(string subscrip } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string sentinelOnboardingStateName, SecurityInsightsSentinelOnboardingStateData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.OperationalInsights/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/providers/Microsoft.SecurityInsights/onboardingStates/", false); + uri.AppendPath(sentinelOnboardingStateName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string sentinelOnboardingStateName, SecurityInsightsSentinelOnboardingStateData data) { var message = _pipeline.CreateMessage(); @@ -219,6 +251,22 @@ public Response Create(string subsc } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string sentinelOnboardingStateName) + { + 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.OperationalInsights/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/providers/Microsoft.SecurityInsights/onboardingStates/", false); + uri.AppendPath(sentinelOnboardingStateName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string workspaceName, string sentinelOnboardingStateName) { var message = _pipeline.CreateMessage(); @@ -295,6 +343,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string w } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string workspaceName) + { + 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.OperationalInsights/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/providers/Microsoft.SecurityInsights/onboardingStates", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/RestOperations/ThreatIntelligenceIndicatorMetricsRestOperations.cs b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/RestOperations/ThreatIntelligenceIndicatorMetricsRestOperations.cs index 7d280f9c84a5..e65973924d18 100644 --- a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/RestOperations/ThreatIntelligenceIndicatorMetricsRestOperations.cs +++ b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/RestOperations/ThreatIntelligenceIndicatorMetricsRestOperations.cs @@ -37,6 +37,21 @@ public ThreatIntelligenceIndicatorMetricsRestOperations(HttpPipeline pipeline, s _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string workspaceName) + { + 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.OperationalInsights/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/providers/Microsoft.SecurityInsights/threatIntelligence/main/metrics", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/RestOperations/ThreatIntelligenceIndicatorRestOperations.cs b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/RestOperations/ThreatIntelligenceIndicatorRestOperations.cs index 23fa3c8b7140..92cb7fcc8e6f 100644 --- a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/RestOperations/ThreatIntelligenceIndicatorRestOperations.cs +++ b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/RestOperations/ThreatIntelligenceIndicatorRestOperations.cs @@ -37,6 +37,21 @@ public ThreatIntelligenceIndicatorRestOperations(HttpPipeline pipeline, string a _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateQueryIndicatorsRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, ThreatIntelligenceFilteringCriteria threatIntelligenceFilteringCriteria) + { + 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.OperationalInsights/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/providers/Microsoft.SecurityInsights/threatIntelligence/main/queryIndicators", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateQueryIndicatorsRequest(string subscriptionId, string resourceGroupName, string workspaceName, ThreatIntelligenceFilteringCriteria threatIntelligenceFilteringCriteria) { var message = _pipeline.CreateMessage(); @@ -124,6 +139,14 @@ public Response QueryIndicators(string subscr } } + internal RequestUriBuilder CreateQueryIndicatorsNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, ThreatIntelligenceFilteringCriteria threatIntelligenceFilteringCriteria) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateQueryIndicatorsNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, ThreatIntelligenceFilteringCriteria threatIntelligenceFilteringCriteria) { var message = _pipeline.CreateMessage(); diff --git a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/RestOperations/ThreatIntelligenceIndicatorsRestOperations.cs b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/RestOperations/ThreatIntelligenceIndicatorsRestOperations.cs index 6e7c7135cab1..5ae676a01794 100644 --- a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/RestOperations/ThreatIntelligenceIndicatorsRestOperations.cs +++ b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/RestOperations/ThreatIntelligenceIndicatorsRestOperations.cs @@ -37,6 +37,37 @@ public ThreatIntelligenceIndicatorsRestOperations(HttpPipeline pipeline, string _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string filter, int? top, string skipToken, string orderBy) + { + 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.OperationalInsights/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/providers/Microsoft.SecurityInsights/threatIntelligence/main/indicators", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } + if (orderBy != null) + { + uri.AppendQuery("$orderby", orderBy, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string workspaceName, string filter, int? top, string skipToken, string orderBy) { var message = _pipeline.CreateMessage(); @@ -140,6 +171,22 @@ public Response List(string subscriptionId, s } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string name) + { + 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.OperationalInsights/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/providers/Microsoft.SecurityInsights/threatIntelligence/main/indicators/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName, string name) { var message = _pipeline.CreateMessage(); @@ -228,6 +275,22 @@ public Response Get(string } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string name, SecurityInsightsThreatIntelligenceIndicatorData content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.OperationalInsights/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/providers/Microsoft.SecurityInsights/threatIntelligence/main/indicators/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string name, SecurityInsightsThreatIntelligenceIndicatorData content) { var message = _pipeline.CreateMessage(); @@ -322,6 +385,22 @@ public Response Update(stri } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string name) + { + 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.OperationalInsights/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/providers/Microsoft.SecurityInsights/threatIntelligence/main/indicators/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string workspaceName, string name) { var message = _pipeline.CreateMessage(); @@ -398,6 +477,23 @@ public Response Delete(string subscriptionId, string resourceGroupName, string w } } + internal RequestUriBuilder CreateAppendTagsRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string name, ThreatIntelligenceAppendTags threatIntelligenceAppendTags) + { + 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.OperationalInsights/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/providers/Microsoft.SecurityInsights/threatIntelligence/main/indicators/", false); + uri.AppendPath(name, true); + uri.AppendPath("/appendTags", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateAppendTagsRequest(string subscriptionId, string resourceGroupName, string workspaceName, string name, ThreatIntelligenceAppendTags threatIntelligenceAppendTags) { var message = _pipeline.CreateMessage(); @@ -481,6 +577,14 @@ public Response AppendTags(string subscriptionId, string resourceGroupName, stri } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string filter, int? top, string skipToken, string orderBy) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string filter, int? top, string skipToken, string orderBy) { var message = _pipeline.CreateMessage(); diff --git a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/RestOperations/WatchlistItemsRestOperations.cs b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/RestOperations/WatchlistItemsRestOperations.cs index 8c1e82279dd4..dbdd9fb65598 100644 --- a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/RestOperations/WatchlistItemsRestOperations.cs +++ b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/RestOperations/WatchlistItemsRestOperations.cs @@ -37,6 +37,27 @@ public WatchlistItemsRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string watchlistAlias, string skipToken) + { + 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.OperationalInsights/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/providers/Microsoft.SecurityInsights/watchlists/", false); + uri.AppendPath(watchlistAlias, true); + uri.AppendPath("/watchlistItems", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string workspaceName, string watchlistAlias, string skipToken) { var message = _pipeline.CreateMessage(); @@ -128,6 +149,24 @@ public Response List(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string watchlistAlias, string watchlistItemId) + { + 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.OperationalInsights/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/providers/Microsoft.SecurityInsights/watchlists/", false); + uri.AppendPath(watchlistAlias, true); + uri.AppendPath("/watchlistItems/", false); + uri.AppendPath(watchlistItemId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName, string watchlistAlias, string watchlistItemId) { var message = _pipeline.CreateMessage(); @@ -222,6 +261,24 @@ public Response Get(string subscriptionId, st } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string watchlistAlias, string watchlistItemId) + { + 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.OperationalInsights/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/providers/Microsoft.SecurityInsights/watchlists/", false); + uri.AppendPath(watchlistAlias, true); + uri.AppendPath("/watchlistItems/", false); + uri.AppendPath(watchlistItemId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string workspaceName, string watchlistAlias, string watchlistItemId) { var message = _pipeline.CreateMessage(); @@ -304,6 +361,24 @@ public Response Delete(string subscriptionId, string resourceGroupName, string w } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string watchlistAlias, string watchlistItemId, SecurityInsightsWatchlistItemData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.OperationalInsights/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/providers/Microsoft.SecurityInsights/watchlists/", false); + uri.AppendPath(watchlistAlias, true); + uri.AppendPath("/watchlistItems/", false); + uri.AppendPath(watchlistItemId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string watchlistAlias, string watchlistItemId, SecurityInsightsWatchlistItemData data) { var message = _pipeline.CreateMessage(); @@ -404,6 +479,14 @@ public Response CreateOrUpdate(string subscri } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string watchlistAlias, string skipToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string watchlistAlias, string skipToken) { var message = _pipeline.CreateMessage(); diff --git a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/RestOperations/WatchlistsRestOperations.cs b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/RestOperations/WatchlistsRestOperations.cs index 5a848e11fa50..576bb432f511 100644 --- a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/RestOperations/WatchlistsRestOperations.cs +++ b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/RestOperations/WatchlistsRestOperations.cs @@ -37,6 +37,25 @@ public WatchlistsRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string skipToken) + { + 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.OperationalInsights/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/providers/Microsoft.SecurityInsights/watchlists", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string workspaceName, string skipToken) { var message = _pipeline.CreateMessage(); @@ -122,6 +141,22 @@ public Response List(string subscriptionId, string resourceGroupN } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string watchlistAlias) + { + 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.OperationalInsights/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/providers/Microsoft.SecurityInsights/watchlists/", false); + uri.AppendPath(watchlistAlias, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName, string watchlistAlias) { var message = _pipeline.CreateMessage(); @@ -210,6 +245,22 @@ public Response Get(string subscriptionId, string } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string watchlistAlias) + { + 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.OperationalInsights/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/providers/Microsoft.SecurityInsights/watchlists/", false); + uri.AppendPath(watchlistAlias, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string workspaceName, string watchlistAlias) { var message = _pipeline.CreateMessage(); @@ -286,6 +337,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string w } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string watchlistAlias, SecurityInsightsWatchlistData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.OperationalInsights/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/providers/Microsoft.SecurityInsights/watchlists/", false); + uri.AppendPath(watchlistAlias, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string watchlistAlias, SecurityInsightsWatchlistData data) { var message = _pipeline.CreateMessage(); @@ -380,6 +447,14 @@ public Response CreateOrUpdate(string subscriptio } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string skipToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string skipToken) { var message = _pipeline.CreateMessage(); diff --git a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/SecurityInsightsAlertRuleActionCollection.cs b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/SecurityInsightsAlertRuleActionCollection.cs index dd4277a93cca..8bd8739c850a 100644 --- a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/SecurityInsightsAlertRuleActionCollection.cs +++ b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/SecurityInsightsAlertRuleActionCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> try { var response = await _securityInsightsAlertRuleActionActionsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, actionId, content, cancellationToken).ConfigureAwait(false); - var operation = new SecurityInsightsArmOperation(Response.FromValue(new SecurityInsightsAlertRuleActionResource(Client, response), response.GetRawResponse())); + var uri = _securityInsightsAlertRuleActionActionsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, actionId, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityInsightsArmOperation(Response.FromValue(new SecurityInsightsAlertRuleActionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -140,7 +142,9 @@ public virtual ArmOperation CreateOrUpd try { var response = _securityInsightsAlertRuleActionActionsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, actionId, content, cancellationToken); - var operation = new SecurityInsightsArmOperation(Response.FromValue(new SecurityInsightsAlertRuleActionResource(Client, response), response.GetRawResponse())); + var uri = _securityInsightsAlertRuleActionActionsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, actionId, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityInsightsArmOperation(Response.FromValue(new SecurityInsightsAlertRuleActionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/SecurityInsightsAlertRuleActionResource.cs b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/SecurityInsightsAlertRuleActionResource.cs index d43ab6b0c9a6..a37d96240c0b 100644 --- a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/SecurityInsightsAlertRuleActionResource.cs +++ b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/SecurityInsightsAlertRuleActionResource.cs @@ -202,7 +202,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _securityInsightsAlertRuleActionActionsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new SecurityInsightsArmOperation(response); + var uri = _securityInsightsAlertRuleActionActionsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityInsightsArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -244,7 +246,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _securityInsightsAlertRuleActionActionsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new SecurityInsightsArmOperation(response); + var uri = _securityInsightsAlertRuleActionActionsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityInsightsArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -290,7 +294,9 @@ public virtual async Task> try { var response = await _securityInsightsAlertRuleActionActionsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content, cancellationToken).ConfigureAwait(false); - var operation = new SecurityInsightsArmOperation(Response.FromValue(new SecurityInsightsAlertRuleActionResource(Client, response), response.GetRawResponse())); + var uri = _securityInsightsAlertRuleActionActionsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityInsightsArmOperation(Response.FromValue(new SecurityInsightsAlertRuleActionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -336,7 +342,9 @@ public virtual ArmOperation Update(Wait try { var response = _securityInsightsAlertRuleActionActionsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content, cancellationToken); - var operation = new SecurityInsightsArmOperation(Response.FromValue(new SecurityInsightsAlertRuleActionResource(Client, response), response.GetRawResponse())); + var uri = _securityInsightsAlertRuleActionActionsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityInsightsArmOperation(Response.FromValue(new SecurityInsightsAlertRuleActionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/SecurityInsightsAlertRuleCollection.cs b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/SecurityInsightsAlertRuleCollection.cs index 7a0c04ebbcbd..d2729e4c9dc7 100644 --- a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/SecurityInsightsAlertRuleCollection.cs +++ b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/SecurityInsightsAlertRuleCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> Creat try { var response = await _securityInsightsAlertRuleAlertRulesRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, ruleId, data, cancellationToken).ConfigureAwait(false); - var operation = new SecurityInsightsArmOperation(Response.FromValue(new SecurityInsightsAlertRuleResource(Client, response), response.GetRawResponse())); + var uri = _securityInsightsAlertRuleAlertRulesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, ruleId, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityInsightsArmOperation(Response.FromValue(new SecurityInsightsAlertRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(Wa try { var response = _securityInsightsAlertRuleAlertRulesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, ruleId, data, cancellationToken); - var operation = new SecurityInsightsArmOperation(Response.FromValue(new SecurityInsightsAlertRuleResource(Client, response), response.GetRawResponse())); + var uri = _securityInsightsAlertRuleAlertRulesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, ruleId, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityInsightsArmOperation(Response.FromValue(new SecurityInsightsAlertRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/SecurityInsightsAlertRuleResource.cs b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/SecurityInsightsAlertRuleResource.cs index 07fa6a0763b9..d021333c2161 100644 --- a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/SecurityInsightsAlertRuleResource.cs +++ b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/SecurityInsightsAlertRuleResource.cs @@ -269,7 +269,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _securityInsightsAlertRuleAlertRulesRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new SecurityInsightsArmOperation(response); + var uri = _securityInsightsAlertRuleAlertRulesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityInsightsArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -311,7 +313,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _securityInsightsAlertRuleAlertRulesRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new SecurityInsightsArmOperation(response); + var uri = _securityInsightsAlertRuleAlertRulesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityInsightsArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -357,7 +361,9 @@ public virtual async Task> Updat try { var response = await _securityInsightsAlertRuleAlertRulesRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new SecurityInsightsArmOperation(Response.FromValue(new SecurityInsightsAlertRuleResource(Client, response), response.GetRawResponse())); + var uri = _securityInsightsAlertRuleAlertRulesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityInsightsArmOperation(Response.FromValue(new SecurityInsightsAlertRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -403,7 +409,9 @@ public virtual ArmOperation Update(WaitUntil try { var response = _securityInsightsAlertRuleAlertRulesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new SecurityInsightsArmOperation(Response.FromValue(new SecurityInsightsAlertRuleResource(Client, response), response.GetRawResponse())); + var uri = _securityInsightsAlertRuleAlertRulesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityInsightsArmOperation(Response.FromValue(new SecurityInsightsAlertRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/SecurityInsightsAutomationRuleCollection.cs b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/SecurityInsightsAutomationRuleCollection.cs index 0ad23d61cb2f..78a454c884a4 100644 --- a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/SecurityInsightsAutomationRuleCollection.cs +++ b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/SecurityInsightsAutomationRuleCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> try { var response = await _securityInsightsAutomationRuleAutomationRulesRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, automationRuleId, data, cancellationToken).ConfigureAwait(false); - var operation = new SecurityInsightsArmOperation(Response.FromValue(new SecurityInsightsAutomationRuleResource(Client, response), response.GetRawResponse())); + var uri = _securityInsightsAutomationRuleAutomationRulesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, automationRuleId, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityInsightsArmOperation(Response.FromValue(new SecurityInsightsAutomationRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpda try { var response = _securityInsightsAutomationRuleAutomationRulesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, automationRuleId, data, cancellationToken); - var operation = new SecurityInsightsArmOperation(Response.FromValue(new SecurityInsightsAutomationRuleResource(Client, response), response.GetRawResponse())); + var uri = _securityInsightsAutomationRuleAutomationRulesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, automationRuleId, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityInsightsArmOperation(Response.FromValue(new SecurityInsightsAutomationRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/SecurityInsightsAutomationRuleResource.cs b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/SecurityInsightsAutomationRuleResource.cs index 5d0b739038cb..5505eefc9137 100644 --- a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/SecurityInsightsAutomationRuleResource.cs +++ b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/SecurityInsightsAutomationRuleResource.cs @@ -200,7 +200,9 @@ public virtual async Task> DeleteAsync(WaitUntil waitUn try { var response = await _securityInsightsAutomationRuleAutomationRulesRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new SecurityInsightsArmOperation(response); + var uri = _securityInsightsAutomationRuleAutomationRulesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityInsightsArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -242,7 +244,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, Cancellation try { var response = _securityInsightsAutomationRuleAutomationRulesRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new SecurityInsightsArmOperation(response); + var uri = _securityInsightsAutomationRuleAutomationRulesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityInsightsArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -288,7 +292,9 @@ public virtual async Task> try { var response = await _securityInsightsAutomationRuleAutomationRulesRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new SecurityInsightsArmOperation(Response.FromValue(new SecurityInsightsAutomationRuleResource(Client, response), response.GetRawResponse())); + var uri = _securityInsightsAutomationRuleAutomationRulesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityInsightsArmOperation(Response.FromValue(new SecurityInsightsAutomationRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -334,7 +340,9 @@ public virtual ArmOperation Update(WaitU try { var response = _securityInsightsAutomationRuleAutomationRulesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new SecurityInsightsArmOperation(Response.FromValue(new SecurityInsightsAutomationRuleResource(Client, response), response.GetRawResponse())); + var uri = _securityInsightsAutomationRuleAutomationRulesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityInsightsArmOperation(Response.FromValue(new SecurityInsightsAutomationRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/SecurityInsightsBookmarkCollection.cs b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/SecurityInsightsBookmarkCollection.cs index 93e660e3b7a3..4f11bae40e52 100644 --- a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/SecurityInsightsBookmarkCollection.cs +++ b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/SecurityInsightsBookmarkCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> Create try { var response = await _securityInsightsBookmarkBookmarksRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, bookmarkId, data, cancellationToken).ConfigureAwait(false); - var operation = new SecurityInsightsArmOperation(Response.FromValue(new SecurityInsightsBookmarkResource(Client, response), response.GetRawResponse())); + var uri = _securityInsightsBookmarkBookmarksRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, bookmarkId, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityInsightsArmOperation(Response.FromValue(new SecurityInsightsBookmarkResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(Wai try { var response = _securityInsightsBookmarkBookmarksRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, bookmarkId, data, cancellationToken); - var operation = new SecurityInsightsArmOperation(Response.FromValue(new SecurityInsightsBookmarkResource(Client, response), response.GetRawResponse())); + var uri = _securityInsightsBookmarkBookmarksRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, bookmarkId, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityInsightsArmOperation(Response.FromValue(new SecurityInsightsBookmarkResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/SecurityInsightsBookmarkResource.cs b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/SecurityInsightsBookmarkResource.cs index 93556fac7ae7..bc5b18dfb12a 100644 --- a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/SecurityInsightsBookmarkResource.cs +++ b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/SecurityInsightsBookmarkResource.cs @@ -200,7 +200,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _securityInsightsBookmarkBookmarksRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new SecurityInsightsArmOperation(response); + var uri = _securityInsightsBookmarkBookmarksRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityInsightsArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -242,7 +244,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _securityInsightsBookmarkBookmarksRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new SecurityInsightsArmOperation(response); + var uri = _securityInsightsBookmarkBookmarksRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityInsightsArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -288,7 +292,9 @@ public virtual async Task> Update try { var response = await _securityInsightsBookmarkBookmarksRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new SecurityInsightsArmOperation(Response.FromValue(new SecurityInsightsBookmarkResource(Client, response), response.GetRawResponse())); + var uri = _securityInsightsBookmarkBookmarksRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityInsightsArmOperation(Response.FromValue(new SecurityInsightsBookmarkResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -334,7 +340,9 @@ public virtual ArmOperation Update(WaitUntil w try { var response = _securityInsightsBookmarkBookmarksRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new SecurityInsightsArmOperation(Response.FromValue(new SecurityInsightsBookmarkResource(Client, response), response.GetRawResponse())); + var uri = _securityInsightsBookmarkBookmarksRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityInsightsArmOperation(Response.FromValue(new SecurityInsightsBookmarkResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/SecurityInsightsDataConnectorCollection.cs b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/SecurityInsightsDataConnectorCollection.cs index 72dae97dc60b..a0ec084d1a74 100644 --- a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/SecurityInsightsDataConnectorCollection.cs +++ b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/SecurityInsightsDataConnectorCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> C try { var response = await _securityInsightsDataConnectorDataConnectorsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, dataConnectorId, data, cancellationToken).ConfigureAwait(false); - var operation = new SecurityInsightsArmOperation(Response.FromValue(new SecurityInsightsDataConnectorResource(Client, response), response.GetRawResponse())); + var uri = _securityInsightsDataConnectorDataConnectorsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, dataConnectorId, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityInsightsArmOperation(Response.FromValue(new SecurityInsightsDataConnectorResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdat try { var response = _securityInsightsDataConnectorDataConnectorsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, dataConnectorId, data, cancellationToken); - var operation = new SecurityInsightsArmOperation(Response.FromValue(new SecurityInsightsDataConnectorResource(Client, response), response.GetRawResponse())); + var uri = _securityInsightsDataConnectorDataConnectorsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, dataConnectorId, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityInsightsArmOperation(Response.FromValue(new SecurityInsightsDataConnectorResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/SecurityInsightsDataConnectorResource.cs b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/SecurityInsightsDataConnectorResource.cs index 6d7be2dd712f..f108e05cf3fb 100644 --- a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/SecurityInsightsDataConnectorResource.cs +++ b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/SecurityInsightsDataConnectorResource.cs @@ -200,7 +200,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _securityInsightsDataConnectorDataConnectorsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new SecurityInsightsArmOperation(response); + var uri = _securityInsightsDataConnectorDataConnectorsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityInsightsArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -242,7 +244,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _securityInsightsDataConnectorDataConnectorsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new SecurityInsightsArmOperation(response); + var uri = _securityInsightsDataConnectorDataConnectorsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityInsightsArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -288,7 +292,9 @@ public virtual async Task> U try { var response = await _securityInsightsDataConnectorDataConnectorsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new SecurityInsightsArmOperation(Response.FromValue(new SecurityInsightsDataConnectorResource(Client, response), response.GetRawResponse())); + var uri = _securityInsightsDataConnectorDataConnectorsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityInsightsArmOperation(Response.FromValue(new SecurityInsightsDataConnectorResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -334,7 +340,9 @@ public virtual ArmOperation Update(WaitUn try { var response = _securityInsightsDataConnectorDataConnectorsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new SecurityInsightsArmOperation(Response.FromValue(new SecurityInsightsDataConnectorResource(Client, response), response.GetRawResponse())); + var uri = _securityInsightsDataConnectorDataConnectorsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityInsightsArmOperation(Response.FromValue(new SecurityInsightsDataConnectorResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/SecurityInsightsIncidentCollection.cs b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/SecurityInsightsIncidentCollection.cs index 1677246f7b1b..69b0080197d4 100644 --- a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/SecurityInsightsIncidentCollection.cs +++ b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/SecurityInsightsIncidentCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> Create try { var response = await _securityInsightsIncidentIncidentsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, incidentId, data, cancellationToken).ConfigureAwait(false); - var operation = new SecurityInsightsArmOperation(Response.FromValue(new SecurityInsightsIncidentResource(Client, response), response.GetRawResponse())); + var uri = _securityInsightsIncidentIncidentsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, incidentId, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityInsightsArmOperation(Response.FromValue(new SecurityInsightsIncidentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(Wai try { var response = _securityInsightsIncidentIncidentsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, incidentId, data, cancellationToken); - var operation = new SecurityInsightsArmOperation(Response.FromValue(new SecurityInsightsIncidentResource(Client, response), response.GetRawResponse())); + var uri = _securityInsightsIncidentIncidentsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, incidentId, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityInsightsArmOperation(Response.FromValue(new SecurityInsightsIncidentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/SecurityInsightsIncidentCommentCollection.cs b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/SecurityInsightsIncidentCommentCollection.cs index aea1685d5a40..8cdb4384755e 100644 --- a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/SecurityInsightsIncidentCommentCollection.cs +++ b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/SecurityInsightsIncidentCommentCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> try { var response = await _securityInsightsIncidentCommentIncidentCommentsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, incidentCommentId, data, cancellationToken).ConfigureAwait(false); - var operation = new SecurityInsightsArmOperation(Response.FromValue(new SecurityInsightsIncidentCommentResource(Client, response), response.GetRawResponse())); + var uri = _securityInsightsIncidentCommentIncidentCommentsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, incidentCommentId, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityInsightsArmOperation(Response.FromValue(new SecurityInsightsIncidentCommentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpd try { var response = _securityInsightsIncidentCommentIncidentCommentsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, incidentCommentId, data, cancellationToken); - var operation = new SecurityInsightsArmOperation(Response.FromValue(new SecurityInsightsIncidentCommentResource(Client, response), response.GetRawResponse())); + var uri = _securityInsightsIncidentCommentIncidentCommentsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, incidentCommentId, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityInsightsArmOperation(Response.FromValue(new SecurityInsightsIncidentCommentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/SecurityInsightsIncidentCommentResource.cs b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/SecurityInsightsIncidentCommentResource.cs index e1bcda09611f..f5ce580d60fb 100644 --- a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/SecurityInsightsIncidentCommentResource.cs +++ b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/SecurityInsightsIncidentCommentResource.cs @@ -201,7 +201,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _securityInsightsIncidentCommentIncidentCommentsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new SecurityInsightsArmOperation(response); + var uri = _securityInsightsIncidentCommentIncidentCommentsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityInsightsArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -243,7 +245,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _securityInsightsIncidentCommentIncidentCommentsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new SecurityInsightsArmOperation(response); + var uri = _securityInsightsIncidentCommentIncidentCommentsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityInsightsArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -289,7 +293,9 @@ public virtual async Task> try { var response = await _securityInsightsIncidentCommentIncidentCommentsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new SecurityInsightsArmOperation(Response.FromValue(new SecurityInsightsIncidentCommentResource(Client, response), response.GetRawResponse())); + var uri = _securityInsightsIncidentCommentIncidentCommentsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityInsightsArmOperation(Response.FromValue(new SecurityInsightsIncidentCommentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -335,7 +341,9 @@ public virtual ArmOperation Update(Wait try { var response = _securityInsightsIncidentCommentIncidentCommentsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new SecurityInsightsArmOperation(Response.FromValue(new SecurityInsightsIncidentCommentResource(Client, response), response.GetRawResponse())); + var uri = _securityInsightsIncidentCommentIncidentCommentsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityInsightsArmOperation(Response.FromValue(new SecurityInsightsIncidentCommentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/SecurityInsightsIncidentRelationCollection.cs b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/SecurityInsightsIncidentRelationCollection.cs index ad1c3fbb7db6..204e2a0d5102 100644 --- a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/SecurityInsightsIncidentRelationCollection.cs +++ b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/SecurityInsightsIncidentRelationCollection.cs @@ -90,7 +90,9 @@ public virtual async Task try { var response = await _securityInsightsIncidentRelationIncidentRelationsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, relationName, data, cancellationToken).ConfigureAwait(false); - var operation = new SecurityInsightsArmOperation(Response.FromValue(new SecurityInsightsIncidentRelationResource(Client, response), response.GetRawResponse())); + var uri = _securityInsightsIncidentRelationIncidentRelationsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, relationName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityInsightsArmOperation(Response.FromValue(new SecurityInsightsIncidentRelationResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUp try { var response = _securityInsightsIncidentRelationIncidentRelationsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, relationName, data, cancellationToken); - var operation = new SecurityInsightsArmOperation(Response.FromValue(new SecurityInsightsIncidentRelationResource(Client, response), response.GetRawResponse())); + var uri = _securityInsightsIncidentRelationIncidentRelationsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, relationName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityInsightsArmOperation(Response.FromValue(new SecurityInsightsIncidentRelationResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/SecurityInsightsIncidentRelationResource.cs b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/SecurityInsightsIncidentRelationResource.cs index 54709808edc5..edfb9e5fc2d4 100644 --- a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/SecurityInsightsIncidentRelationResource.cs +++ b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/SecurityInsightsIncidentRelationResource.cs @@ -201,7 +201,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _securityInsightsIncidentRelationIncidentRelationsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new SecurityInsightsArmOperation(response); + var uri = _securityInsightsIncidentRelationIncidentRelationsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityInsightsArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -243,7 +245,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _securityInsightsIncidentRelationIncidentRelationsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new SecurityInsightsArmOperation(response); + var uri = _securityInsightsIncidentRelationIncidentRelationsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityInsightsArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -289,7 +293,9 @@ public virtual async Task try { var response = await _securityInsightsIncidentRelationIncidentRelationsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new SecurityInsightsArmOperation(Response.FromValue(new SecurityInsightsIncidentRelationResource(Client, response), response.GetRawResponse())); + var uri = _securityInsightsIncidentRelationIncidentRelationsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityInsightsArmOperation(Response.FromValue(new SecurityInsightsIncidentRelationResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -335,7 +341,9 @@ public virtual ArmOperation Update(Wai try { var response = _securityInsightsIncidentRelationIncidentRelationsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new SecurityInsightsArmOperation(Response.FromValue(new SecurityInsightsIncidentRelationResource(Client, response), response.GetRawResponse())); + var uri = _securityInsightsIncidentRelationIncidentRelationsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityInsightsArmOperation(Response.FromValue(new SecurityInsightsIncidentRelationResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/SecurityInsightsIncidentResource.cs b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/SecurityInsightsIncidentResource.cs index d9f30e271724..ddc8d4902bdb 100644 --- a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/SecurityInsightsIncidentResource.cs +++ b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/SecurityInsightsIncidentResource.cs @@ -340,7 +340,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _securityInsightsIncidentIncidentsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new SecurityInsightsArmOperation(response); + var uri = _securityInsightsIncidentIncidentsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityInsightsArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -382,7 +384,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _securityInsightsIncidentIncidentsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new SecurityInsightsArmOperation(response); + var uri = _securityInsightsIncidentIncidentsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityInsightsArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -428,7 +432,9 @@ public virtual async Task> Update try { var response = await _securityInsightsIncidentIncidentsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new SecurityInsightsArmOperation(Response.FromValue(new SecurityInsightsIncidentResource(Client, response), response.GetRawResponse())); + var uri = _securityInsightsIncidentIncidentsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityInsightsArmOperation(Response.FromValue(new SecurityInsightsIncidentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -474,7 +480,9 @@ public virtual ArmOperation Update(WaitUntil w try { var response = _securityInsightsIncidentIncidentsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new SecurityInsightsArmOperation(Response.FromValue(new SecurityInsightsIncidentResource(Client, response), response.GetRawResponse())); + var uri = _securityInsightsIncidentIncidentsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityInsightsArmOperation(Response.FromValue(new SecurityInsightsIncidentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/SecurityInsightsSentinelOnboardingStateCollection.cs b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/SecurityInsightsSentinelOnboardingStateCollection.cs index e36685a70d57..fc3d06b108c1 100644 --- a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/SecurityInsightsSentinelOnboardingStateCollection.cs +++ b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/SecurityInsightsSentinelOnboardingStateCollection.cs @@ -90,7 +90,9 @@ public virtual async Task(Response.FromValue(new SecurityInsightsSentinelOnboardingStateResource(Client, response), response.GetRawResponse())); + var uri = _securityInsightsSentinelOnboardingStateSentinelOnboardingStatesRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, sentinelOnboardingStateName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityInsightsArmOperation(Response.FromValue(new SecurityInsightsSentinelOnboardingStateResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation Cre try { var response = _securityInsightsSentinelOnboardingStateSentinelOnboardingStatesRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, sentinelOnboardingStateName, data, cancellationToken); - var operation = new SecurityInsightsArmOperation(Response.FromValue(new SecurityInsightsSentinelOnboardingStateResource(Client, response), response.GetRawResponse())); + var uri = _securityInsightsSentinelOnboardingStateSentinelOnboardingStatesRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, sentinelOnboardingStateName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityInsightsArmOperation(Response.FromValue(new SecurityInsightsSentinelOnboardingStateResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/SecurityInsightsSentinelOnboardingStateResource.cs b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/SecurityInsightsSentinelOnboardingStateResource.cs index 7ac1fb218277..583cb612c45e 100644 --- a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/SecurityInsightsSentinelOnboardingStateResource.cs +++ b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/SecurityInsightsSentinelOnboardingStateResource.cs @@ -200,7 +200,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _securityInsightsSentinelOnboardingStateSentinelOnboardingStatesRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new SecurityInsightsArmOperation(response); + var uri = _securityInsightsSentinelOnboardingStateSentinelOnboardingStatesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityInsightsArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -242,7 +244,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _securityInsightsSentinelOnboardingStateSentinelOnboardingStatesRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new SecurityInsightsArmOperation(response); + var uri = _securityInsightsSentinelOnboardingStateSentinelOnboardingStatesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityInsightsArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -288,7 +292,9 @@ public virtual async Task(Response.FromValue(new SecurityInsightsSentinelOnboardingStateResource(Client, response), response.GetRawResponse())); + var uri = _securityInsightsSentinelOnboardingStateSentinelOnboardingStatesRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityInsightsArmOperation(Response.FromValue(new SecurityInsightsSentinelOnboardingStateResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -334,7 +340,9 @@ public virtual ArmOperation Upd try { var response = _securityInsightsSentinelOnboardingStateSentinelOnboardingStatesRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new SecurityInsightsArmOperation(Response.FromValue(new SecurityInsightsSentinelOnboardingStateResource(Client, response), response.GetRawResponse())); + var uri = _securityInsightsSentinelOnboardingStateSentinelOnboardingStatesRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityInsightsArmOperation(Response.FromValue(new SecurityInsightsSentinelOnboardingStateResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/SecurityInsightsThreatIntelligenceIndicatorResource.cs b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/SecurityInsightsThreatIntelligenceIndicatorResource.cs index c5b53586399b..63ac4317dba4 100644 --- a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/SecurityInsightsThreatIntelligenceIndicatorResource.cs +++ b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/SecurityInsightsThreatIntelligenceIndicatorResource.cs @@ -201,7 +201,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _securityInsightsThreatIntelligenceIndicatorThreatIntelligenceIndicatorsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new SecurityInsightsArmOperation(response); + var uri = _securityInsightsThreatIntelligenceIndicatorThreatIntelligenceIndicatorsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityInsightsArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -243,7 +245,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _securityInsightsThreatIntelligenceIndicatorThreatIntelligenceIndicatorsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Name, cancellationToken); - var operation = new SecurityInsightsArmOperation(response); + var uri = _securityInsightsThreatIntelligenceIndicatorThreatIntelligenceIndicatorsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityInsightsArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/SecurityInsightsWatchlistCollection.cs b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/SecurityInsightsWatchlistCollection.cs index fc28bc410522..2775fd934168 100644 --- a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/SecurityInsightsWatchlistCollection.cs +++ b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/SecurityInsightsWatchlistCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> Creat try { var response = await _securityInsightsWatchlistWatchlistsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, watchlistAlias, data, cancellationToken).ConfigureAwait(false); - var operation = new SecurityInsightsArmOperation(Response.FromValue(new SecurityInsightsWatchlistResource(Client, response), response.GetRawResponse())); + var uri = _securityInsightsWatchlistWatchlistsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, watchlistAlias, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityInsightsArmOperation(Response.FromValue(new SecurityInsightsWatchlistResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(Wa try { var response = _securityInsightsWatchlistWatchlistsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, watchlistAlias, data, cancellationToken); - var operation = new SecurityInsightsArmOperation(Response.FromValue(new SecurityInsightsWatchlistResource(Client, response), response.GetRawResponse())); + var uri = _securityInsightsWatchlistWatchlistsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, watchlistAlias, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityInsightsArmOperation(Response.FromValue(new SecurityInsightsWatchlistResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/SecurityInsightsWatchlistItemCollection.cs b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/SecurityInsightsWatchlistItemCollection.cs index 8b91848edc4a..2a49da86a8ab 100644 --- a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/SecurityInsightsWatchlistItemCollection.cs +++ b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/SecurityInsightsWatchlistItemCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> C try { var response = await _securityInsightsWatchlistItemWatchlistItemsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, watchlistItemId, data, cancellationToken).ConfigureAwait(false); - var operation = new SecurityInsightsArmOperation(Response.FromValue(new SecurityInsightsWatchlistItemResource(Client, response), response.GetRawResponse())); + var uri = _securityInsightsWatchlistItemWatchlistItemsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, watchlistItemId, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityInsightsArmOperation(Response.FromValue(new SecurityInsightsWatchlistItemResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdat try { var response = _securityInsightsWatchlistItemWatchlistItemsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, watchlistItemId, data, cancellationToken); - var operation = new SecurityInsightsArmOperation(Response.FromValue(new SecurityInsightsWatchlistItemResource(Client, response), response.GetRawResponse())); + var uri = _securityInsightsWatchlistItemWatchlistItemsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, watchlistItemId, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityInsightsArmOperation(Response.FromValue(new SecurityInsightsWatchlistItemResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/SecurityInsightsWatchlistItemResource.cs b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/SecurityInsightsWatchlistItemResource.cs index 4860cefc04ad..81100fb6f1b9 100644 --- a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/SecurityInsightsWatchlistItemResource.cs +++ b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/SecurityInsightsWatchlistItemResource.cs @@ -201,7 +201,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _securityInsightsWatchlistItemWatchlistItemsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new SecurityInsightsArmOperation(response); + var uri = _securityInsightsWatchlistItemWatchlistItemsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityInsightsArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -243,7 +245,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _securityInsightsWatchlistItemWatchlistItemsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new SecurityInsightsArmOperation(response); + var uri = _securityInsightsWatchlistItemWatchlistItemsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityInsightsArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -289,7 +293,9 @@ public virtual async Task> U try { var response = await _securityInsightsWatchlistItemWatchlistItemsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new SecurityInsightsArmOperation(Response.FromValue(new SecurityInsightsWatchlistItemResource(Client, response), response.GetRawResponse())); + var uri = _securityInsightsWatchlistItemWatchlistItemsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityInsightsArmOperation(Response.FromValue(new SecurityInsightsWatchlistItemResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -335,7 +341,9 @@ public virtual ArmOperation Update(WaitUn try { var response = _securityInsightsWatchlistItemWatchlistItemsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new SecurityInsightsArmOperation(Response.FromValue(new SecurityInsightsWatchlistItemResource(Client, response), response.GetRawResponse())); + var uri = _securityInsightsWatchlistItemWatchlistItemsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityInsightsArmOperation(Response.FromValue(new SecurityInsightsWatchlistItemResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/SecurityInsightsWatchlistResource.cs b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/SecurityInsightsWatchlistResource.cs index af29896e830d..19cfba754aaf 100644 --- a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/SecurityInsightsWatchlistResource.cs +++ b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/SecurityInsightsWatchlistResource.cs @@ -269,7 +269,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _securityInsightsWatchlistWatchlistsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new SecurityInsightsArmOperation(response); + var uri = _securityInsightsWatchlistWatchlistsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityInsightsArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -311,7 +313,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _securityInsightsWatchlistWatchlistsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new SecurityInsightsArmOperation(response); + var uri = _securityInsightsWatchlistWatchlistsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityInsightsArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -357,7 +361,9 @@ public virtual async Task> Updat try { var response = await _securityInsightsWatchlistWatchlistsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new SecurityInsightsArmOperation(Response.FromValue(new SecurityInsightsWatchlistResource(Client, response), response.GetRawResponse())); + var uri = _securityInsightsWatchlistWatchlistsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityInsightsArmOperation(Response.FromValue(new SecurityInsightsWatchlistResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -403,7 +409,9 @@ public virtual ArmOperation Update(WaitUntil try { var response = _securityInsightsWatchlistWatchlistsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new SecurityInsightsArmOperation(Response.FromValue(new SecurityInsightsWatchlistResource(Client, response), response.GetRawResponse())); + var uri = _securityInsightsWatchlistWatchlistsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityInsightsArmOperation(Response.FromValue(new SecurityInsightsWatchlistResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/SecurityMLAnalyticsSettingCollection.cs b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/SecurityMLAnalyticsSettingCollection.cs index da86b6273306..4ca6d036a51d 100644 --- a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/SecurityMLAnalyticsSettingCollection.cs +++ b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/SecurityMLAnalyticsSettingCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> Crea try { var response = await _securityMLAnalyticsSettingRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, settingsResourceName, data, cancellationToken).ConfigureAwait(false); - var operation = new SecurityInsightsArmOperation(Response.FromValue(new SecurityMLAnalyticsSettingResource(Client, response), response.GetRawResponse())); + var uri = _securityMLAnalyticsSettingRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, settingsResourceName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityInsightsArmOperation(Response.FromValue(new SecurityMLAnalyticsSettingResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(W try { var response = _securityMLAnalyticsSettingRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, settingsResourceName, data, cancellationToken); - var operation = new SecurityInsightsArmOperation(Response.FromValue(new SecurityMLAnalyticsSettingResource(Client, response), response.GetRawResponse())); + var uri = _securityMLAnalyticsSettingRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, settingsResourceName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityInsightsArmOperation(Response.FromValue(new SecurityMLAnalyticsSettingResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/SecurityMLAnalyticsSettingResource.cs b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/SecurityMLAnalyticsSettingResource.cs index 16d341bd82c0..cd90bb5f3fbd 100644 --- a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/SecurityMLAnalyticsSettingResource.cs +++ b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/SecurityMLAnalyticsSettingResource.cs @@ -200,7 +200,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _securityMLAnalyticsSettingRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new SecurityInsightsArmOperation(response); + var uri = _securityMLAnalyticsSettingRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityInsightsArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -242,7 +244,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _securityMLAnalyticsSettingRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new SecurityInsightsArmOperation(response); + var uri = _securityMLAnalyticsSettingRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityInsightsArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -288,7 +292,9 @@ public virtual async Task> Upda try { var response = await _securityMLAnalyticsSettingRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new SecurityInsightsArmOperation(Response.FromValue(new SecurityMLAnalyticsSettingResource(Client, response), response.GetRawResponse())); + var uri = _securityMLAnalyticsSettingRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityInsightsArmOperation(Response.FromValue(new SecurityMLAnalyticsSettingResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -334,7 +340,9 @@ public virtual ArmOperation Update(WaitUntil try { var response = _securityMLAnalyticsSettingRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new SecurityInsightsArmOperation(Response.FromValue(new SecurityMLAnalyticsSettingResource(Client, response), response.GetRawResponse())); + var uri = _securityMLAnalyticsSettingRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SecurityInsightsArmOperation(Response.FromValue(new SecurityMLAnalyticsSettingResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/selfhelp/Azure.ResourceManager.SelfHelp/src/Generated/LongRunningOperation/SelfHelpArmOperationOfT.cs b/sdk/selfhelp/Azure.ResourceManager.SelfHelp/src/Generated/LongRunningOperation/SelfHelpArmOperationOfT.cs index 05c35935d4ae..b1d3bf965be0 100644 --- a/sdk/selfhelp/Azure.ResourceManager.SelfHelp/src/Generated/LongRunningOperation/SelfHelpArmOperationOfT.cs +++ b/sdk/selfhelp/Azure.ResourceManager.SelfHelp/src/Generated/LongRunningOperation/SelfHelpArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class SelfHelpArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of SelfHelpArmOperation for mocking. protected SelfHelpArmOperation() { } - internal SelfHelpArmOperation(Response response) + internal SelfHelpArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal SelfHelpArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "SelfHelpArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal SelfHelpArmOperation(IOperationSource source, ClientDiagnostics clie public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/selfhelp/Azure.ResourceManager.SelfHelp/src/Generated/Models/SelfHelpDiagnosticResource.Serialization.cs b/sdk/selfhelp/Azure.ResourceManager.SelfHelp/src/Generated/Models/SelfHelpDiagnosticResource.Serialization.cs new file mode 100644 index 000000000000..76d6574a711e --- /dev/null +++ b/sdk/selfhelp/Azure.ResourceManager.SelfHelp/src/Generated/Models/SelfHelpDiagnosticResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.SelfHelp +{ + public partial class SelfHelpDiagnosticResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SelfHelpDiagnosticData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SelfHelpDiagnosticData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/selfhelp/Azure.ResourceManager.SelfHelp/src/Generated/Models/SolutionResource.Serialization.cs b/sdk/selfhelp/Azure.ResourceManager.SelfHelp/src/Generated/Models/SolutionResource.Serialization.cs new file mode 100644 index 000000000000..799a25685cfa --- /dev/null +++ b/sdk/selfhelp/Azure.ResourceManager.SelfHelp/src/Generated/Models/SolutionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.SelfHelp +{ + public partial class SolutionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SolutionResourceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SolutionResourceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/selfhelp/Azure.ResourceManager.SelfHelp/src/Generated/Models/TroubleshooterResource.Serialization.cs b/sdk/selfhelp/Azure.ResourceManager.SelfHelp/src/Generated/Models/TroubleshooterResource.Serialization.cs new file mode 100644 index 000000000000..c01ad3d19af2 --- /dev/null +++ b/sdk/selfhelp/Azure.ResourceManager.SelfHelp/src/Generated/Models/TroubleshooterResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.SelfHelp +{ + public partial class TroubleshooterResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + TroubleshooterResourceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + TroubleshooterResourceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/selfhelp/Azure.ResourceManager.SelfHelp/src/Generated/RestOperations/CheckNameAvailabilityRestOperations.cs b/sdk/selfhelp/Azure.ResourceManager.SelfHelp/src/Generated/RestOperations/CheckNameAvailabilityRestOperations.cs index 8afd5c2a01d9..6ac50d914187 100644 --- a/sdk/selfhelp/Azure.ResourceManager.SelfHelp/src/Generated/RestOperations/CheckNameAvailabilityRestOperations.cs +++ b/sdk/selfhelp/Azure.ResourceManager.SelfHelp/src/Generated/RestOperations/CheckNameAvailabilityRestOperations.cs @@ -37,6 +37,17 @@ public CheckNameAvailabilityRestOperations(HttpPipeline pipeline, string applica _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreatePostRequestUri(string scope, SelfHelpNameAvailabilityContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.Help/checkNameAvailability", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreatePostRequest(string scope, SelfHelpNameAvailabilityContent content) { var message = _pipeline.CreateMessage(); diff --git a/sdk/selfhelp/Azure.ResourceManager.SelfHelp/src/Generated/RestOperations/DiagnosticsRestOperations.cs b/sdk/selfhelp/Azure.ResourceManager.SelfHelp/src/Generated/RestOperations/DiagnosticsRestOperations.cs index 3d54a3fa8e56..be1f94ff3087 100644 --- a/sdk/selfhelp/Azure.ResourceManager.SelfHelp/src/Generated/RestOperations/DiagnosticsRestOperations.cs +++ b/sdk/selfhelp/Azure.ResourceManager.SelfHelp/src/Generated/RestOperations/DiagnosticsRestOperations.cs @@ -36,6 +36,18 @@ public DiagnosticsRestOperations(HttpPipeline pipeline, string applicationId, Ur _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateRequestUri(string scope, string diagnosticsResourceName, SelfHelpDiagnosticData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.Help/diagnostics/", false); + uri.AppendPath(diagnosticsResourceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string scope, string diagnosticsResourceName, SelfHelpDiagnosticData data) { var message = _pipeline.CreateMessage(); @@ -108,6 +120,18 @@ public Response Create(string scope, string diagnosticsResourceName, SelfHelpDia } } + internal RequestUriBuilder CreateGetRequestUri(string scope, string diagnosticsResourceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.Help/diagnostics/", false); + uri.AppendPath(diagnosticsResourceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string scope, string diagnosticsResourceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/selfhelp/Azure.ResourceManager.SelfHelp/src/Generated/RestOperations/DiscoverySolutionRestOperations.cs b/sdk/selfhelp/Azure.ResourceManager.SelfHelp/src/Generated/RestOperations/DiscoverySolutionRestOperations.cs index 2471a34da28d..da692b61eba8 100644 --- a/sdk/selfhelp/Azure.ResourceManager.SelfHelp/src/Generated/RestOperations/DiscoverySolutionRestOperations.cs +++ b/sdk/selfhelp/Azure.ResourceManager.SelfHelp/src/Generated/RestOperations/DiscoverySolutionRestOperations.cs @@ -37,6 +37,25 @@ public DiscoverySolutionRestOperations(HttpPipeline pipeline, string application _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string scope, string filter, string skiptoken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.Help/discoverySolutions", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, false); + } + if (skiptoken != null) + { + uri.AppendQuery("$skiptoken", skiptoken, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string scope, string filter, string skiptoken) { var message = _pipeline.CreateMessage(); @@ -114,6 +133,14 @@ public Response List(string scope, string filte } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string scope, string filter, string skiptoken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string scope, string filter, string skiptoken) { var message = _pipeline.CreateMessage(); diff --git a/sdk/selfhelp/Azure.ResourceManager.SelfHelp/src/Generated/RestOperations/SolutionRestOperations.cs b/sdk/selfhelp/Azure.ResourceManager.SelfHelp/src/Generated/RestOperations/SolutionRestOperations.cs index cba36188800f..5156b52f7243 100644 --- a/sdk/selfhelp/Azure.ResourceManager.SelfHelp/src/Generated/RestOperations/SolutionRestOperations.cs +++ b/sdk/selfhelp/Azure.ResourceManager.SelfHelp/src/Generated/RestOperations/SolutionRestOperations.cs @@ -37,6 +37,18 @@ public SolutionRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateRequestUri(string scope, string solutionResourceName, SolutionResourceData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.Help/solutions/", false); + uri.AppendPath(solutionResourceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string scope, string solutionResourceName, SolutionResourceData data) { var message = _pipeline.CreateMessage(); @@ -109,6 +121,18 @@ public Response Create(string scope, string solutionResourceName, SolutionResour } } + internal RequestUriBuilder CreateGetRequestUri(string scope, string solutionResourceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.Help/solutions/", false); + uri.AppendPath(solutionResourceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string scope, string solutionResourceName) { var message = _pipeline.CreateMessage(); @@ -185,6 +209,18 @@ public Response Get(string scope, string solutionResourceN } } + internal RequestUriBuilder CreateUpdateRequestUri(string scope, string solutionResourceName, SolutionResourcePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.Help/solutions/", false); + uri.AppendPath(solutionResourceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string scope, string solutionResourceName, SolutionResourcePatch patch) { var message = _pipeline.CreateMessage(); diff --git a/sdk/selfhelp/Azure.ResourceManager.SelfHelp/src/Generated/RestOperations/TroubleshootersRestOperations.cs b/sdk/selfhelp/Azure.ResourceManager.SelfHelp/src/Generated/RestOperations/TroubleshootersRestOperations.cs index 2fae59ab5ffa..19413f1e7d78 100644 --- a/sdk/selfhelp/Azure.ResourceManager.SelfHelp/src/Generated/RestOperations/TroubleshootersRestOperations.cs +++ b/sdk/selfhelp/Azure.ResourceManager.SelfHelp/src/Generated/RestOperations/TroubleshootersRestOperations.cs @@ -37,6 +37,18 @@ public TroubleshootersRestOperations(HttpPipeline pipeline, string applicationId _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateRequestUri(string scope, string troubleshooterName, TroubleshooterResourceData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.Help/troubleshooters/", false); + uri.AppendPath(troubleshooterName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string scope, string troubleshooterName, TroubleshooterResourceData data) { var message = _pipeline.CreateMessage(); @@ -119,6 +131,18 @@ public Response Create(string scope, string troubles } } + internal RequestUriBuilder CreateGetRequestUri(string scope, string troubleshooterName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.Help/troubleshooters/", false); + uri.AppendPath(troubleshooterName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string scope, string troubleshooterName) { var message = _pipeline.CreateMessage(); @@ -195,6 +219,19 @@ public Response Get(string scope, string troubleshoo } } + internal RequestUriBuilder CreateContinueRequestUri(string scope, string troubleshooterName, ContinueRequestBody continueRequestBody) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.Help/troubleshooters/", false); + uri.AppendPath(troubleshooterName, true); + uri.AppendPath("/continue", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateContinueRequest(string scope, string troubleshooterName, ContinueRequestBody continueRequestBody) { var message = _pipeline.CreateMessage(); @@ -267,6 +304,19 @@ public Response Continue(string scope, string troubleshooterName, ContinueReques } } + internal RequestUriBuilder CreateEndRequestUri(string scope, string troubleshooterName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.Help/troubleshooters/", false); + uri.AppendPath(troubleshooterName, true); + uri.AppendPath("/end", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateEndRequest(string scope, string troubleshooterName) { var message = _pipeline.CreateMessage(); @@ -330,6 +380,19 @@ public Response End(string scope, string troubleshooterName, CancellationToken c } } + internal RequestUriBuilder CreateRestartRequestUri(string scope, string troubleshooterName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(scope, false); + uri.AppendPath("/providers/Microsoft.Help/troubleshooters/", false); + uri.AppendPath(troubleshooterName, true); + uri.AppendPath("/restart", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRestartRequest(string scope, string troubleshooterName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/selfhelp/Azure.ResourceManager.SelfHelp/src/Generated/TroubleshooterResource.cs b/sdk/selfhelp/Azure.ResourceManager.SelfHelp/src/Generated/TroubleshooterResource.cs index dec3a89bcfe2..bfdb2f26969d 100644 --- a/sdk/selfhelp/Azure.ResourceManager.SelfHelp/src/Generated/TroubleshooterResource.cs +++ b/sdk/selfhelp/Azure.ResourceManager.SelfHelp/src/Generated/TroubleshooterResource.cs @@ -203,7 +203,9 @@ public virtual async Task> UpdateAsync(Wait try { var response = await _troubleshooterResourceTroubleshootersRestClient.CreateAsync(Id.Parent, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new SelfHelpArmOperation(Response.FromValue(new TroubleshooterResource(Client, response), response.GetRawResponse())); + var uri = _troubleshooterResourceTroubleshootersRestClient.CreateCreateRequestUri(Id.Parent, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SelfHelpArmOperation(Response.FromValue(new TroubleshooterResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -249,7 +251,9 @@ public virtual ArmOperation Update(WaitUntil waitUntil, try { var response = _troubleshooterResourceTroubleshootersRestClient.Create(Id.Parent, Id.Name, data, cancellationToken); - var operation = new SelfHelpArmOperation(Response.FromValue(new TroubleshooterResource(Client, response), response.GetRawResponse())); + var uri = _troubleshooterResourceTroubleshootersRestClient.CreateCreateRequestUri(Id.Parent, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SelfHelpArmOperation(Response.FromValue(new TroubleshooterResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/selfhelp/Azure.ResourceManager.SelfHelp/src/Generated/TroubleshooterResourceCollection.cs b/sdk/selfhelp/Azure.ResourceManager.SelfHelp/src/Generated/TroubleshooterResourceCollection.cs index 8f5bf60efc57..c03907cfc7fb 100644 --- a/sdk/selfhelp/Azure.ResourceManager.SelfHelp/src/Generated/TroubleshooterResourceCollection.cs +++ b/sdk/selfhelp/Azure.ResourceManager.SelfHelp/src/Generated/TroubleshooterResourceCollection.cs @@ -77,7 +77,9 @@ public virtual async Task> CreateOrUpdateAs try { var response = await _troubleshooterResourceTroubleshootersRestClient.CreateAsync(Id, troubleshooterName, data, cancellationToken).ConfigureAwait(false); - var operation = new SelfHelpArmOperation(Response.FromValue(new TroubleshooterResource(Client, response), response.GetRawResponse())); + var uri = _troubleshooterResourceTroubleshootersRestClient.CreateCreateRequestUri(Id, troubleshooterName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SelfHelpArmOperation(Response.FromValue(new TroubleshooterResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -126,7 +128,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wai try { var response = _troubleshooterResourceTroubleshootersRestClient.Create(Id, troubleshooterName, data, cancellationToken); - var operation = new SelfHelpArmOperation(Response.FromValue(new TroubleshooterResource(Client, response), response.GetRawResponse())); + var uri = _troubleshooterResourceTroubleshootersRestClient.CreateCreateRequestUri(Id, troubleshooterName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SelfHelpArmOperation(Response.FromValue(new TroubleshooterResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/LongRunningOperation/ServiceBusArmOperation.cs b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/LongRunningOperation/ServiceBusArmOperation.cs index 9d386447283e..a735c075c0c7 100644 --- a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/LongRunningOperation/ServiceBusArmOperation.cs +++ b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/LongRunningOperation/ServiceBusArmOperation.cs @@ -20,21 +20,24 @@ internal class ServiceBusArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of ServiceBusArmOperation for mocking. protected ServiceBusArmOperation() { } - internal ServiceBusArmOperation(Response response) + internal ServiceBusArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal ServiceBusArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "ServiceBusArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal ServiceBusArmOperation(ClientDiagnostics clientDiagnostics, HttpPipelin public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/LongRunningOperation/ServiceBusArmOperationOfT.cs b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/LongRunningOperation/ServiceBusArmOperationOfT.cs index 93d80ef572bd..013039cf04e8 100644 --- a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/LongRunningOperation/ServiceBusArmOperationOfT.cs +++ b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/LongRunningOperation/ServiceBusArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class ServiceBusArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of ServiceBusArmOperation for mocking. protected ServiceBusArmOperation() { } - internal ServiceBusArmOperation(Response response) + internal ServiceBusArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal ServiceBusArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "ServiceBusArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal ServiceBusArmOperation(IOperationSource source, ClientDiagnostics cl public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/MigrationConfigurationResource.cs b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/MigrationConfigurationResource.cs index e0065a679393..e571704da945 100644 --- a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/MigrationConfigurationResource.cs +++ b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/MigrationConfigurationResource.cs @@ -201,7 +201,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _migrationConfigurationMigrationConfigsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new ServiceBusArmOperation(response); + var uri = _migrationConfigurationMigrationConfigsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ServiceBusArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -243,7 +245,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _migrationConfigurationMigrationConfigsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new ServiceBusArmOperation(response); + var uri = _migrationConfigurationMigrationConfigsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ServiceBusArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/MigrationConfigurationResource.Serialization.cs b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/MigrationConfigurationResource.Serialization.cs new file mode 100644 index 000000000000..4ea358f1103f --- /dev/null +++ b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/MigrationConfigurationResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ServiceBus +{ + public partial class MigrationConfigurationResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MigrationConfigurationData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MigrationConfigurationData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/ServiceBusDisasterRecoveryAuthorizationRuleResource.Serialization.cs b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/ServiceBusDisasterRecoveryAuthorizationRuleResource.Serialization.cs new file mode 100644 index 000000000000..a71dc761a4f5 --- /dev/null +++ b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/ServiceBusDisasterRecoveryAuthorizationRuleResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ServiceBus +{ + public partial class ServiceBusDisasterRecoveryAuthorizationRuleResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ServiceBusAuthorizationRuleData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ServiceBusAuthorizationRuleData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/ServiceBusDisasterRecoveryResource.Serialization.cs b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/ServiceBusDisasterRecoveryResource.Serialization.cs new file mode 100644 index 000000000000..5f0ed6b08458 --- /dev/null +++ b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/ServiceBusDisasterRecoveryResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ServiceBus +{ + public partial class ServiceBusDisasterRecoveryResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ServiceBusDisasterRecoveryData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ServiceBusDisasterRecoveryData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/ServiceBusNamespaceAuthorizationRuleResource.Serialization.cs b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/ServiceBusNamespaceAuthorizationRuleResource.Serialization.cs new file mode 100644 index 000000000000..eb6a234f939d --- /dev/null +++ b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/ServiceBusNamespaceAuthorizationRuleResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ServiceBus +{ + public partial class ServiceBusNamespaceAuthorizationRuleResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ServiceBusAuthorizationRuleData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ServiceBusAuthorizationRuleData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/ServiceBusNamespaceResource.Serialization.cs b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/ServiceBusNamespaceResource.Serialization.cs new file mode 100644 index 000000000000..fe4f40eebde1 --- /dev/null +++ b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/ServiceBusNamespaceResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ServiceBus +{ + public partial class ServiceBusNamespaceResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ServiceBusNamespaceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ServiceBusNamespaceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/ServiceBusNetworkRuleSetResource.Serialization.cs b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/ServiceBusNetworkRuleSetResource.Serialization.cs new file mode 100644 index 000000000000..dd0ebcb59f4c --- /dev/null +++ b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/ServiceBusNetworkRuleSetResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ServiceBus +{ + public partial class ServiceBusNetworkRuleSetResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ServiceBusNetworkRuleSetData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ServiceBusNetworkRuleSetData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/ServiceBusPrivateEndpointConnectionResource.Serialization.cs b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/ServiceBusPrivateEndpointConnectionResource.Serialization.cs new file mode 100644 index 000000000000..ac7ecffe175e --- /dev/null +++ b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/ServiceBusPrivateEndpointConnectionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ServiceBus +{ + public partial class ServiceBusPrivateEndpointConnectionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ServiceBusPrivateEndpointConnectionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ServiceBusPrivateEndpointConnectionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/ServiceBusQueueAuthorizationRuleResource.Serialization.cs b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/ServiceBusQueueAuthorizationRuleResource.Serialization.cs new file mode 100644 index 000000000000..3baa1508e165 --- /dev/null +++ b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/ServiceBusQueueAuthorizationRuleResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ServiceBus +{ + public partial class ServiceBusQueueAuthorizationRuleResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ServiceBusAuthorizationRuleData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ServiceBusAuthorizationRuleData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/ServiceBusQueueResource.Serialization.cs b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/ServiceBusQueueResource.Serialization.cs new file mode 100644 index 000000000000..0a64bedb9d1c --- /dev/null +++ b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/ServiceBusQueueResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ServiceBus +{ + public partial class ServiceBusQueueResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ServiceBusQueueData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ServiceBusQueueData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/ServiceBusRuleResource.Serialization.cs b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/ServiceBusRuleResource.Serialization.cs new file mode 100644 index 000000000000..68eefa860d88 --- /dev/null +++ b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/ServiceBusRuleResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ServiceBus +{ + public partial class ServiceBusRuleResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ServiceBusRuleData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ServiceBusRuleData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/ServiceBusSubscriptionResource.Serialization.cs b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/ServiceBusSubscriptionResource.Serialization.cs new file mode 100644 index 000000000000..9b7c8f4b3a1a --- /dev/null +++ b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/ServiceBusSubscriptionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ServiceBus +{ + public partial class ServiceBusSubscriptionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ServiceBusSubscriptionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ServiceBusSubscriptionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/ServiceBusTopicAuthorizationRuleResource.Serialization.cs b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/ServiceBusTopicAuthorizationRuleResource.Serialization.cs new file mode 100644 index 000000000000..e33636e08a54 --- /dev/null +++ b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/ServiceBusTopicAuthorizationRuleResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ServiceBus +{ + public partial class ServiceBusTopicAuthorizationRuleResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ServiceBusAuthorizationRuleData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ServiceBusAuthorizationRuleData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/ServiceBusTopicResource.Serialization.cs b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/ServiceBusTopicResource.Serialization.cs new file mode 100644 index 000000000000..59bdeaaaa145 --- /dev/null +++ b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/ServiceBusTopicResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ServiceBus +{ + public partial class ServiceBusTopicResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ServiceBusTopicData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ServiceBusTopicData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/RestOperations/DisasterRecoveryAuthorizationRulesRestOperations.cs b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/RestOperations/DisasterRecoveryAuthorizationRulesRestOperations.cs index 4811586a36d8..f93e41b173cc 100644 --- a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/RestOperations/DisasterRecoveryAuthorizationRulesRestOperations.cs +++ b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/RestOperations/DisasterRecoveryAuthorizationRulesRestOperations.cs @@ -37,6 +37,23 @@ public DisasterRecoveryAuthorizationRulesRestOperations(HttpPipeline pipeline, s _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string @alias) + { + 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.ServiceBus/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/disasterRecoveryConfigs/", false); + uri.AppendPath(@alias, true); + uri.AppendPath("/authorizationRules", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string namespaceName, string @alias) { var message = _pipeline.CreateMessage(); @@ -122,6 +139,24 @@ public Response List(string subscriptionId, strin } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string @alias, string authorizationRuleName) + { + 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.ServiceBus/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/disasterRecoveryConfigs/", false); + uri.AppendPath(@alias, true); + uri.AppendPath("/authorizationRules/", false); + uri.AppendPath(authorizationRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string namespaceName, string @alias, string authorizationRuleName) { var message = _pipeline.CreateMessage(); @@ -216,6 +251,25 @@ public Response Get(string subscriptionId, stri } } + internal RequestUriBuilder CreateListKeysRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string @alias, string authorizationRuleName) + { + 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.ServiceBus/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/disasterRecoveryConfigs/", false); + uri.AppendPath(@alias, true); + uri.AppendPath("/authorizationRules/", false); + uri.AppendPath(authorizationRuleName, true); + uri.AppendPath("/listKeys", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListKeysRequest(string subscriptionId, string resourceGroupName, string namespaceName, string @alias, string authorizationRuleName) { var message = _pipeline.CreateMessage(); @@ -307,6 +361,14 @@ public Response ListKeys(string subscriptionId, string res } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string namespaceName, string @alias) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string namespaceName, string @alias) { var message = _pipeline.CreateMessage(); diff --git a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/RestOperations/DisasterRecoveryConfigsRestOperations.cs b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/RestOperations/DisasterRecoveryConfigsRestOperations.cs index 61014f55fc4f..02d6e90bd4ec 100644 --- a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/RestOperations/DisasterRecoveryConfigsRestOperations.cs +++ b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/RestOperations/DisasterRecoveryConfigsRestOperations.cs @@ -37,6 +37,21 @@ public DisasterRecoveryConfigsRestOperations(HttpPipeline pipeline, string appli _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string namespaceName) + { + 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.ServiceBus/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/disasterRecoveryConfigs", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string namespaceName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response List(string subscriptionId, strin } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string @alias, ServiceBusDisasterRecoveryData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ServiceBus/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/disasterRecoveryConfigs/", false); + uri.AppendPath(@alias, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string namespaceName, string @alias, ServiceBusDisasterRecoveryData data) { var message = _pipeline.CreateMessage(); @@ -212,6 +243,22 @@ public Response CreateOrUpdate(string subscripti } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string @alias) + { + 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.ServiceBus/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/disasterRecoveryConfigs/", false); + uri.AppendPath(@alias, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string namespaceName, string @alias) { var message = _pipeline.CreateMessage(); @@ -288,6 +335,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string n } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string @alias) + { + 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.ServiceBus/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/disasterRecoveryConfigs/", false); + uri.AppendPath(@alias, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string namespaceName, string @alias) { var message = _pipeline.CreateMessage(); @@ -376,6 +439,23 @@ public Response Get(string subscriptionId, strin } } + internal RequestUriBuilder CreateBreakPairingRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string @alias) + { + 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.ServiceBus/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/disasterRecoveryConfigs/", false); + uri.AppendPath(@alias, true); + uri.AppendPath("/breakPairing", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateBreakPairingRequest(string subscriptionId, string resourceGroupName, string namespaceName, string @alias) { var message = _pipeline.CreateMessage(); @@ -451,6 +531,23 @@ public Response BreakPairing(string subscriptionId, string resourceGroupName, st } } + internal RequestUriBuilder CreateFailOverRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string @alias, FailoverProperties failoverProperties) + { + 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.ServiceBus/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/disasterRecoveryConfigs/", false); + uri.AppendPath(@alias, true); + uri.AppendPath("/failover", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateFailOverRequest(string subscriptionId, string resourceGroupName, string namespaceName, string @alias, FailoverProperties failoverProperties) { var message = _pipeline.CreateMessage(); @@ -535,6 +632,21 @@ public Response FailOver(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreateCheckNameAvailabilityRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, ServiceBusNameAvailabilityContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ServiceBus/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/disasterRecoveryConfigs/CheckNameAvailability", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCheckNameAvailabilityRequest(string subscriptionId, string resourceGroupName, string namespaceName, ServiceBusNameAvailabilityContent content) { var message = _pipeline.CreateMessage(); @@ -622,6 +734,14 @@ public Response CheckNameAvailability(string s } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string namespaceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string namespaceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/RestOperations/MigrationConfigsRestOperations.cs b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/RestOperations/MigrationConfigsRestOperations.cs index 5daaf2ceba11..c9da69b93ceb 100644 --- a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/RestOperations/MigrationConfigsRestOperations.cs +++ b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/RestOperations/MigrationConfigsRestOperations.cs @@ -37,6 +37,21 @@ public MigrationConfigsRestOperations(HttpPipeline pipeline, string applicationI _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string namespaceName) + { + 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.ServiceBus/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/migrationConfigurations", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string namespaceName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response List(string subscriptionId, string re } } + internal RequestUriBuilder CreateCreateAndStartMigrationRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, MigrationConfigurationName configName, MigrationConfigurationData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ServiceBus/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/migrationConfigurations/", false); + uri.AppendPath(configName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateAndStartMigrationRequest(string subscriptionId, string resourceGroupName, string namespaceName, MigrationConfigurationName configName, MigrationConfigurationData data) { var message = _pipeline.CreateMessage(); @@ -198,6 +229,22 @@ public Response CreateAndStartMigration(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, MigrationConfigurationName configName) + { + 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.ServiceBus/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/migrationConfigurations/", false); + uri.AppendPath(configName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string namespaceName, MigrationConfigurationName configName) { var message = _pipeline.CreateMessage(); @@ -272,6 +319,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string n } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, MigrationConfigurationName configName) + { + 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.ServiceBus/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/migrationConfigurations/", false); + uri.AppendPath(configName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string namespaceName, MigrationConfigurationName configName) { var message = _pipeline.CreateMessage(); @@ -358,6 +421,23 @@ public Response Get(string subscriptionId, string re } } + internal RequestUriBuilder CreateCompleteMigrationRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, MigrationConfigurationName configName) + { + 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.ServiceBus/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/migrationConfigurations/", false); + uri.AppendPath(configName.ToString(), true); + uri.AppendPath("/upgrade", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCompleteMigrationRequest(string subscriptionId, string resourceGroupName, string namespaceName, MigrationConfigurationName configName) { var message = _pipeline.CreateMessage(); @@ -431,6 +511,23 @@ public Response CompleteMigration(string subscriptionId, string resourceGroupNam } } + internal RequestUriBuilder CreateRevertRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, MigrationConfigurationName configName) + { + 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.ServiceBus/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/migrationConfigurations/", false); + uri.AppendPath(configName.ToString(), true); + uri.AppendPath("/revert", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRevertRequest(string subscriptionId, string resourceGroupName, string namespaceName, MigrationConfigurationName configName) { var message = _pipeline.CreateMessage(); @@ -504,6 +601,14 @@ public Response Revert(string subscriptionId, string resourceGroupName, string n } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string namespaceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string namespaceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/RestOperations/NamespaceAuthorizationRulesRestOperations.cs b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/RestOperations/NamespaceAuthorizationRulesRestOperations.cs index 87c1aa7b4647..1d2c5f378f4f 100644 --- a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/RestOperations/NamespaceAuthorizationRulesRestOperations.cs +++ b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/RestOperations/NamespaceAuthorizationRulesRestOperations.cs @@ -37,6 +37,21 @@ public NamespaceAuthorizationRulesRestOperations(HttpPipeline pipeline, string a _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string namespaceName) + { + 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.ServiceBus/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/AuthorizationRules", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string namespaceName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response List(string subscriptionId, strin } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string authorizationRuleName, ServiceBusAuthorizationRuleData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ServiceBus/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/AuthorizationRules/", false); + uri.AppendPath(authorizationRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string namespaceName, string authorizationRuleName, ServiceBusAuthorizationRuleData data) { var message = _pipeline.CreateMessage(); @@ -208,6 +239,22 @@ public Response CreateOrUpdate(string subscript } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string authorizationRuleName) + { + 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.ServiceBus/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/AuthorizationRules/", false); + uri.AppendPath(authorizationRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string namespaceName, string authorizationRuleName) { var message = _pipeline.CreateMessage(); @@ -284,6 +331,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string n } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string authorizationRuleName) + { + 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.ServiceBus/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/AuthorizationRules/", false); + uri.AppendPath(authorizationRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string namespaceName, string authorizationRuleName) { var message = _pipeline.CreateMessage(); @@ -372,6 +435,23 @@ public Response Get(string subscriptionId, stri } } + internal RequestUriBuilder CreateListKeysRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string authorizationRuleName) + { + 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.ServiceBus/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/AuthorizationRules/", false); + uri.AppendPath(authorizationRuleName, true); + uri.AppendPath("/listKeys", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListKeysRequest(string subscriptionId, string resourceGroupName, string namespaceName, string authorizationRuleName) { var message = _pipeline.CreateMessage(); @@ -457,6 +537,23 @@ public Response ListKeys(string subscriptionId, string res } } + internal RequestUriBuilder CreateRegenerateKeysRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string authorizationRuleName, ServiceBusRegenerateAccessKeyContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ServiceBus/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/AuthorizationRules/", false); + uri.AppendPath(authorizationRuleName, true); + uri.AppendPath("/regenerateKeys", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRegenerateKeysRequest(string subscriptionId, string resourceGroupName, string namespaceName, string authorizationRuleName, ServiceBusRegenerateAccessKeyContent content) { var message = _pipeline.CreateMessage(); @@ -550,6 +647,14 @@ public Response RegenerateKeys(string subscriptionId, stri } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string namespaceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string namespaceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/RestOperations/NamespacesRestOperations.cs b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/RestOperations/NamespacesRestOperations.cs index 211cec946504..112f1d3d694f 100644 --- a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/RestOperations/NamespacesRestOperations.cs +++ b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/RestOperations/NamespacesRestOperations.cs @@ -37,6 +37,17 @@ public NamespacesRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ServiceBus/namespaces", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,19 @@ public Response List(string subscriptionId, CancellationT } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.ServiceBus/namespaces", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -177,6 +201,20 @@ public Response ListByResourceGroup(string subscriptionId } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, ServiceBusNamespaceData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ServiceBus/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string namespaceName, ServiceBusNamespaceData data) { var message = _pipeline.CreateMessage(); @@ -257,6 +295,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string namespaceName) + { + 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.ServiceBus/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string namespaceName) { var message = _pipeline.CreateMessage(); @@ -329,6 +381,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string n } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string namespaceName) + { + 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.ServiceBus/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string namespaceName) { var message = _pipeline.CreateMessage(); @@ -411,6 +477,20 @@ public Response Get(string subscriptionId, string resou } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, ServiceBusNamespacePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ServiceBus/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string namespaceName, ServiceBusNamespacePatch patch) { var message = _pipeline.CreateMessage(); @@ -503,6 +583,21 @@ public Response Update(string subscriptionId, string re } } + internal RequestUriBuilder CreateCreateOrUpdateNetworkRuleSetRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, ServiceBusNetworkRuleSetData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ServiceBus/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/networkRuleSets/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateNetworkRuleSetRequest(string subscriptionId, string resourceGroupName, string namespaceName, ServiceBusNetworkRuleSetData data) { var message = _pipeline.CreateMessage(); @@ -590,6 +685,21 @@ public Response CreateOrUpdateNetworkRuleSet(strin } } + internal RequestUriBuilder CreateGetNetworkRuleSetRequestUri(string subscriptionId, string resourceGroupName, string namespaceName) + { + 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.ServiceBus/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/networkRuleSets/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetNetworkRuleSetRequest(string subscriptionId, string resourceGroupName, string namespaceName) { var message = _pipeline.CreateMessage(); @@ -673,6 +783,21 @@ public Response GetNetworkRuleSet(string subscript } } + internal RequestUriBuilder CreateListNetworkRuleSetsRequestUri(string subscriptionId, string resourceGroupName, string namespaceName) + { + 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.ServiceBus/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/networkRuleSets", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListNetworkRuleSetsRequest(string subscriptionId, string resourceGroupName, string namespaceName) { var message = _pipeline.CreateMessage(); @@ -752,6 +877,17 @@ public Response ListNetworkRuleSets(string subscriptio } } + internal RequestUriBuilder CreateCheckNameAvailabilityRequestUri(string subscriptionId, ServiceBusNameAvailabilityContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ServiceBus/CheckNameAvailability", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCheckNameAvailabilityRequest(string subscriptionId, ServiceBusNameAvailabilityContent content) { var message = _pipeline.CreateMessage(); @@ -827,6 +963,14 @@ public Response CheckNameAvailability(string s } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -895,6 +1039,14 @@ public Response ListNextPage(string nextLink, string subs } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -967,6 +1119,14 @@ public Response ListByResourceGroupNextPage(string nextLi } } + internal RequestUriBuilder CreateListNetworkRuleSetsNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string namespaceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNetworkRuleSetsNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string namespaceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs index b441a5d02d4c..0bb0f1a0d149 100644 --- a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs +++ b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs @@ -37,6 +37,21 @@ public PrivateEndpointConnectionsRestOperations(HttpPipeline pipeline, string ap _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string namespaceName) + { + 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.ServiceBus/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/privateEndpointConnections", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string namespaceName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response List(string subsc } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string privateEndpointConnectionName, ServiceBusPrivateEndpointConnectionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ServiceBus/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string namespaceName, string privateEndpointConnectionName, ServiceBusPrivateEndpointConnectionData data) { var message = _pipeline.CreateMessage(); @@ -212,6 +243,22 @@ public Response CreateOrUpdate(string s } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string privateEndpointConnectionName) + { + 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.ServiceBus/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string namespaceName, string privateEndpointConnectionName) { var message = _pipeline.CreateMessage(); @@ -290,6 +337,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string n } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string privateEndpointConnectionName) + { + 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.ServiceBus/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string namespaceName, string privateEndpointConnectionName) { var message = _pipeline.CreateMessage(); @@ -378,6 +441,14 @@ public Response Get(string subscription } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string namespaceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string namespaceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs index 622e8d842e2b..155bf53565cc 100644 --- a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs +++ b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs @@ -37,6 +37,21 @@ public PrivateLinkResourcesRestOperations(HttpPipeline pipeline, string applicat _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string namespaceName) + { + 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.ServiceBus/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/privateLinkResources", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string namespaceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/RestOperations/QueueAuthorizationRulesRestOperations.cs b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/RestOperations/QueueAuthorizationRulesRestOperations.cs index 7fda0236ea57..43a144414a21 100644 --- a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/RestOperations/QueueAuthorizationRulesRestOperations.cs +++ b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/RestOperations/QueueAuthorizationRulesRestOperations.cs @@ -37,6 +37,23 @@ public QueueAuthorizationRulesRestOperations(HttpPipeline pipeline, string appli _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string queueName) + { + 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.ServiceBus/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/queues/", false); + uri.AppendPath(queueName, true); + uri.AppendPath("/authorizationRules", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string namespaceName, string queueName) { var message = _pipeline.CreateMessage(); @@ -122,6 +139,24 @@ public Response List(string subscriptionId, strin } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string queueName, string authorizationRuleName, ServiceBusAuthorizationRuleData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ServiceBus/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/queues/", false); + uri.AppendPath(queueName, true); + uri.AppendPath("/authorizationRules/", false); + uri.AppendPath(authorizationRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string namespaceName, string queueName, string authorizationRuleName, ServiceBusAuthorizationRuleData data) { var message = _pipeline.CreateMessage(); @@ -220,6 +255,24 @@ public Response CreateOrUpdate(string subscript } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string queueName, string authorizationRuleName) + { + 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.ServiceBus/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/queues/", false); + uri.AppendPath(queueName, true); + uri.AppendPath("/authorizationRules/", false); + uri.AppendPath(authorizationRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string namespaceName, string queueName, string authorizationRuleName) { var message = _pipeline.CreateMessage(); @@ -302,6 +355,24 @@ public Response Delete(string subscriptionId, string resourceGroupName, string n } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string queueName, string authorizationRuleName) + { + 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.ServiceBus/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/queues/", false); + uri.AppendPath(queueName, true); + uri.AppendPath("/authorizationRules/", false); + uri.AppendPath(authorizationRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string namespaceName, string queueName, string authorizationRuleName) { var message = _pipeline.CreateMessage(); @@ -396,6 +467,25 @@ public Response Get(string subscriptionId, stri } } + internal RequestUriBuilder CreateListKeysRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string queueName, string authorizationRuleName) + { + 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.ServiceBus/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/queues/", false); + uri.AppendPath(queueName, true); + uri.AppendPath("/authorizationRules/", false); + uri.AppendPath(authorizationRuleName, true); + uri.AppendPath("/ListKeys", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListKeysRequest(string subscriptionId, string resourceGroupName, string namespaceName, string queueName, string authorizationRuleName) { var message = _pipeline.CreateMessage(); @@ -487,6 +577,25 @@ public Response ListKeys(string subscriptionId, string res } } + internal RequestUriBuilder CreateRegenerateKeysRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string queueName, string authorizationRuleName, ServiceBusRegenerateAccessKeyContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ServiceBus/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/queues/", false); + uri.AppendPath(queueName, true); + uri.AppendPath("/authorizationRules/", false); + uri.AppendPath(authorizationRuleName, true); + uri.AppendPath("/regenerateKeys", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRegenerateKeysRequest(string subscriptionId, string resourceGroupName, string namespaceName, string queueName, string authorizationRuleName, ServiceBusRegenerateAccessKeyContent content) { var message = _pipeline.CreateMessage(); @@ -586,6 +695,14 @@ public Response RegenerateKeys(string subscriptionId, stri } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string namespaceName, string queueName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string namespaceName, string queueName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/RestOperations/QueuesRestOperations.cs b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/RestOperations/QueuesRestOperations.cs index e8a19921d1ec..aa2b97b1312a 100644 --- a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/RestOperations/QueuesRestOperations.cs +++ b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/RestOperations/QueuesRestOperations.cs @@ -37,6 +37,29 @@ public QueuesRestOperations(HttpPipeline pipeline, string applicationId, Uri end _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByNamespaceRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, int? skip, int? top) + { + 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.ServiceBus/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/queues", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (skip != null) + { + uri.AppendQuery("$skip", skip.Value, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + return uri; + } + internal HttpMessage CreateListByNamespaceRequest(string subscriptionId, string resourceGroupName, string namespaceName, int? skip, int? top) { var message = _pipeline.CreateMessage(); @@ -128,6 +151,22 @@ public Response ListByNamespace(string subscriptionId, string } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string queueName, ServiceBusQueueData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ServiceBus/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/queues/", false); + uri.AppendPath(queueName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string namespaceName, string queueName, ServiceBusQueueData data) { var message = _pipeline.CreateMessage(); @@ -220,6 +259,22 @@ public Response CreateOrUpdate(string subscriptionId, strin } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string queueName) + { + 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.ServiceBus/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/queues/", false); + uri.AppendPath(queueName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string namespaceName, string queueName) { var message = _pipeline.CreateMessage(); @@ -296,6 +351,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string n } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string queueName) + { + 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.ServiceBus/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/queues/", false); + uri.AppendPath(queueName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string namespaceName, string queueName) { var message = _pipeline.CreateMessage(); @@ -384,6 +455,14 @@ public Response Get(string subscriptionId, string resourceG } } + internal RequestUriBuilder CreateListByNamespaceNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string namespaceName, int? skip, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByNamespaceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string namespaceName, int? skip, int? top) { var message = _pipeline.CreateMessage(); diff --git a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/RestOperations/RulesRestOperations.cs b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/RestOperations/RulesRestOperations.cs index 7d0fced6e137..1ca6c7b731c6 100644 --- a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/RestOperations/RulesRestOperations.cs +++ b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/RestOperations/RulesRestOperations.cs @@ -37,6 +37,33 @@ public RulesRestOperations(HttpPipeline pipeline, string applicationId, Uri endp _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListBySubscriptionsRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string topicName, string subscriptionName, int? skip, int? top) + { + 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.ServiceBus/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/topics/", false); + uri.AppendPath(topicName, true); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionName, true); + uri.AppendPath("/rules", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (skip != null) + { + uri.AppendQuery("$skip", skip.Value, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + return uri; + } + internal HttpMessage CreateListBySubscriptionsRequest(string subscriptionId, string resourceGroupName, string namespaceName, string topicName, string subscriptionName, int? skip, int? top) { var message = _pipeline.CreateMessage(); @@ -140,6 +167,26 @@ public Response ListBySubscriptions(string subscriptionId, strin } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string topicName, string subscriptionName, string ruleName, ServiceBusRuleData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ServiceBus/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/topics/", false); + uri.AppendPath(topicName, true); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionName, true); + uri.AppendPath("/rules/", false); + uri.AppendPath(ruleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string namespaceName, string topicName, string subscriptionName, string ruleName, ServiceBusRuleData data) { var message = _pipeline.CreateMessage(); @@ -244,6 +291,26 @@ public Response CreateOrUpdate(string subscriptionId, string } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string topicName, string subscriptionName, string ruleName) + { + 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.ServiceBus/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/topics/", false); + uri.AppendPath(topicName, true); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionName, true); + uri.AppendPath("/rules/", false); + uri.AppendPath(ruleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string namespaceName, string topicName, string subscriptionName, string ruleName) { var message = _pipeline.CreateMessage(); @@ -332,6 +399,26 @@ public Response Delete(string subscriptionId, string resourceGroupName, string n } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string topicName, string subscriptionName, string ruleName) + { + 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.ServiceBus/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/topics/", false); + uri.AppendPath(topicName, true); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionName, true); + uri.AppendPath("/rules/", false); + uri.AppendPath(ruleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string namespaceName, string topicName, string subscriptionName, string ruleName) { var message = _pipeline.CreateMessage(); @@ -432,6 +519,14 @@ public Response Get(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateListBySubscriptionsNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string namespaceName, string topicName, string subscriptionName, int? skip, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionsNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string namespaceName, string topicName, string subscriptionName, int? skip, int? top) { var message = _pipeline.CreateMessage(); diff --git a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/RestOperations/SubscriptionsRestOperations.cs b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/RestOperations/SubscriptionsRestOperations.cs index bbb32dcf48fe..45def68a63dd 100644 --- a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/RestOperations/SubscriptionsRestOperations.cs +++ b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/RestOperations/SubscriptionsRestOperations.cs @@ -37,6 +37,31 @@ public SubscriptionsRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByTopicRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string topicName, int? skip, int? top) + { + 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.ServiceBus/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/topics/", false); + uri.AppendPath(topicName, true); + uri.AppendPath("/subscriptions", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (skip != null) + { + uri.AppendQuery("$skip", skip.Value, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + return uri; + } + internal HttpMessage CreateListByTopicRequest(string subscriptionId, string resourceGroupName, string namespaceName, string topicName, int? skip, int? top) { var message = _pipeline.CreateMessage(); @@ -134,6 +159,24 @@ public Response ListByTopic(string subscriptionId, str } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string topicName, string subscriptionName, ServiceBusSubscriptionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ServiceBus/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/topics/", false); + uri.AppendPath(topicName, true); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string namespaceName, string topicName, string subscriptionName, ServiceBusSubscriptionData data) { var message = _pipeline.CreateMessage(); @@ -232,6 +275,24 @@ public Response CreateOrUpdate(string subscriptionId } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string topicName, string subscriptionName) + { + 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.ServiceBus/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/topics/", false); + uri.AppendPath(topicName, true); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string namespaceName, string topicName, string subscriptionName) { var message = _pipeline.CreateMessage(); @@ -314,6 +375,24 @@ public Response Delete(string subscriptionId, string resourceGroupName, string n } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string topicName, string subscriptionName) + { + 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.ServiceBus/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/topics/", false); + uri.AppendPath(topicName, true); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string namespaceName, string topicName, string subscriptionName) { var message = _pipeline.CreateMessage(); @@ -408,6 +487,14 @@ public Response Get(string subscriptionId, string re } } + internal RequestUriBuilder CreateListByTopicNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string namespaceName, string topicName, int? skip, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByTopicNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string namespaceName, string topicName, int? skip, int? top) { var message = _pipeline.CreateMessage(); diff --git a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/RestOperations/TopicAuthorizationRulesRestOperations.cs b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/RestOperations/TopicAuthorizationRulesRestOperations.cs index ba68f1be77e7..d59983aaeb8d 100644 --- a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/RestOperations/TopicAuthorizationRulesRestOperations.cs +++ b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/RestOperations/TopicAuthorizationRulesRestOperations.cs @@ -37,6 +37,23 @@ public TopicAuthorizationRulesRestOperations(HttpPipeline pipeline, string appli _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string topicName) + { + 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.ServiceBus/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/topics/", false); + uri.AppendPath(topicName, true); + uri.AppendPath("/authorizationRules", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string namespaceName, string topicName) { var message = _pipeline.CreateMessage(); @@ -122,6 +139,24 @@ public Response List(string subscriptionId, strin } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string topicName, string authorizationRuleName, ServiceBusAuthorizationRuleData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ServiceBus/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/topics/", false); + uri.AppendPath(topicName, true); + uri.AppendPath("/authorizationRules/", false); + uri.AppendPath(authorizationRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string namespaceName, string topicName, string authorizationRuleName, ServiceBusAuthorizationRuleData data) { var message = _pipeline.CreateMessage(); @@ -220,6 +255,24 @@ public Response CreateOrUpdate(string subscript } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string topicName, string authorizationRuleName) + { + 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.ServiceBus/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/topics/", false); + uri.AppendPath(topicName, true); + uri.AppendPath("/authorizationRules/", false); + uri.AppendPath(authorizationRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string namespaceName, string topicName, string authorizationRuleName) { var message = _pipeline.CreateMessage(); @@ -314,6 +367,24 @@ public Response Get(string subscriptionId, stri } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string topicName, string authorizationRuleName) + { + 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.ServiceBus/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/topics/", false); + uri.AppendPath(topicName, true); + uri.AppendPath("/authorizationRules/", false); + uri.AppendPath(authorizationRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string namespaceName, string topicName, string authorizationRuleName) { var message = _pipeline.CreateMessage(); @@ -396,6 +467,25 @@ public Response Delete(string subscriptionId, string resourceGroupName, string n } } + internal RequestUriBuilder CreateListKeysRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string topicName, string authorizationRuleName) + { + 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.ServiceBus/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/topics/", false); + uri.AppendPath(topicName, true); + uri.AppendPath("/authorizationRules/", false); + uri.AppendPath(authorizationRuleName, true); + uri.AppendPath("/ListKeys", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListKeysRequest(string subscriptionId, string resourceGroupName, string namespaceName, string topicName, string authorizationRuleName) { var message = _pipeline.CreateMessage(); @@ -487,6 +577,25 @@ public Response ListKeys(string subscriptionId, string res } } + internal RequestUriBuilder CreateRegenerateKeysRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string topicName, string authorizationRuleName, ServiceBusRegenerateAccessKeyContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ServiceBus/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/topics/", false); + uri.AppendPath(topicName, true); + uri.AppendPath("/authorizationRules/", false); + uri.AppendPath(authorizationRuleName, true); + uri.AppendPath("/regenerateKeys", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRegenerateKeysRequest(string subscriptionId, string resourceGroupName, string namespaceName, string topicName, string authorizationRuleName, ServiceBusRegenerateAccessKeyContent content) { var message = _pipeline.CreateMessage(); @@ -586,6 +695,14 @@ public Response RegenerateKeys(string subscriptionId, stri } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string namespaceName, string topicName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string namespaceName, string topicName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/RestOperations/TopicsRestOperations.cs b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/RestOperations/TopicsRestOperations.cs index 34067be8d33d..aaa1a8acdb5e 100644 --- a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/RestOperations/TopicsRestOperations.cs +++ b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/RestOperations/TopicsRestOperations.cs @@ -37,6 +37,29 @@ public TopicsRestOperations(HttpPipeline pipeline, string applicationId, Uri end _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByNamespaceRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, int? skip, int? top) + { + 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.ServiceBus/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/topics", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (skip != null) + { + uri.AppendQuery("$skip", skip.Value, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + return uri; + } + internal HttpMessage CreateListByNamespaceRequest(string subscriptionId, string resourceGroupName, string namespaceName, int? skip, int? top) { var message = _pipeline.CreateMessage(); @@ -128,6 +151,22 @@ public Response ListByNamespace(string subscriptionId, string } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string topicName, ServiceBusTopicData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ServiceBus/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/topics/", false); + uri.AppendPath(topicName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string namespaceName, string topicName, ServiceBusTopicData data) { var message = _pipeline.CreateMessage(); @@ -220,6 +259,22 @@ public Response CreateOrUpdate(string subscriptionId, strin } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string topicName) + { + 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.ServiceBus/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/topics/", false); + uri.AppendPath(topicName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string namespaceName, string topicName) { var message = _pipeline.CreateMessage(); @@ -296,6 +351,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string n } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string namespaceName, string topicName) + { + 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.ServiceBus/namespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/topics/", false); + uri.AppendPath(topicName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string namespaceName, string topicName) { var message = _pipeline.CreateMessage(); @@ -384,6 +455,14 @@ public Response Get(string subscriptionId, string resourceG } } + internal RequestUriBuilder CreateListByNamespaceNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string namespaceName, int? skip, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByNamespaceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string namespaceName, int? skip, int? top) { var message = _pipeline.CreateMessage(); diff --git a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/ServiceBusDisasterRecoveryCollection.cs b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/ServiceBusDisasterRecoveryCollection.cs index b1d9303bb7e3..a32cb2df4e3a 100644 --- a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/ServiceBusDisasterRecoveryCollection.cs +++ b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/ServiceBusDisasterRecoveryCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> Crea try { var response = await _serviceBusDisasterRecoveryDisasterRecoveryConfigsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, alias, data, cancellationToken).ConfigureAwait(false); - var operation = new ServiceBusArmOperation(Response.FromValue(new ServiceBusDisasterRecoveryResource(Client, response), response.GetRawResponse())); + var uri = _serviceBusDisasterRecoveryDisasterRecoveryConfigsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, alias, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ServiceBusArmOperation(Response.FromValue(new ServiceBusDisasterRecoveryResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(W try { var response = _serviceBusDisasterRecoveryDisasterRecoveryConfigsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, alias, data, cancellationToken); - var operation = new ServiceBusArmOperation(Response.FromValue(new ServiceBusDisasterRecoveryResource(Client, response), response.GetRawResponse())); + var uri = _serviceBusDisasterRecoveryDisasterRecoveryConfigsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, alias, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ServiceBusArmOperation(Response.FromValue(new ServiceBusDisasterRecoveryResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/ServiceBusDisasterRecoveryResource.cs b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/ServiceBusDisasterRecoveryResource.cs index f187e85cd534..7779377dbffa 100644 --- a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/ServiceBusDisasterRecoveryResource.cs +++ b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/ServiceBusDisasterRecoveryResource.cs @@ -270,7 +270,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _serviceBusDisasterRecoveryDisasterRecoveryConfigsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new ServiceBusArmOperation(response); + var uri = _serviceBusDisasterRecoveryDisasterRecoveryConfigsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ServiceBusArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -312,7 +314,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _serviceBusDisasterRecoveryDisasterRecoveryConfigsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new ServiceBusArmOperation(response); + var uri = _serviceBusDisasterRecoveryDisasterRecoveryConfigsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ServiceBusArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -358,7 +362,9 @@ public virtual async Task> Upda try { var response = await _serviceBusDisasterRecoveryDisasterRecoveryConfigsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new ServiceBusArmOperation(Response.FromValue(new ServiceBusDisasterRecoveryResource(Client, response), response.GetRawResponse())); + var uri = _serviceBusDisasterRecoveryDisasterRecoveryConfigsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ServiceBusArmOperation(Response.FromValue(new ServiceBusDisasterRecoveryResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -404,7 +410,9 @@ public virtual ArmOperation Update(WaitUntil try { var response = _serviceBusDisasterRecoveryDisasterRecoveryConfigsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new ServiceBusArmOperation(Response.FromValue(new ServiceBusDisasterRecoveryResource(Client, response), response.GetRawResponse())); + var uri = _serviceBusDisasterRecoveryDisasterRecoveryConfigsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ServiceBusArmOperation(Response.FromValue(new ServiceBusDisasterRecoveryResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/ServiceBusNamespaceAuthorizationRuleCollection.cs b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/ServiceBusNamespaceAuthorizationRuleCollection.cs index 4d55bddbb49b..d5953cc3cd77 100644 --- a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/ServiceBusNamespaceAuthorizationRuleCollection.cs +++ b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/ServiceBusNamespaceAuthorizationRuleCollection.cs @@ -90,7 +90,9 @@ public virtual async Task(Response.FromValue(new ServiceBusNamespaceAuthorizationRuleResource(Client, response), response.GetRawResponse())); + var uri = _serviceBusNamespaceAuthorizationRuleNamespaceAuthorizationRulesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, authorizationRuleName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ServiceBusArmOperation(Response.FromValue(new ServiceBusNamespaceAuthorizationRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation Create try { var response = _serviceBusNamespaceAuthorizationRuleNamespaceAuthorizationRulesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, authorizationRuleName, data, cancellationToken); - var operation = new ServiceBusArmOperation(Response.FromValue(new ServiceBusNamespaceAuthorizationRuleResource(Client, response), response.GetRawResponse())); + var uri = _serviceBusNamespaceAuthorizationRuleNamespaceAuthorizationRulesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, authorizationRuleName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ServiceBusArmOperation(Response.FromValue(new ServiceBusNamespaceAuthorizationRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/ServiceBusNamespaceAuthorizationRuleResource.cs b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/ServiceBusNamespaceAuthorizationRuleResource.cs index 5465228acc59..9ade5df776e6 100644 --- a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/ServiceBusNamespaceAuthorizationRuleResource.cs +++ b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/ServiceBusNamespaceAuthorizationRuleResource.cs @@ -201,7 +201,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _serviceBusNamespaceAuthorizationRuleNamespaceAuthorizationRulesRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new ServiceBusArmOperation(response); + var uri = _serviceBusNamespaceAuthorizationRuleNamespaceAuthorizationRulesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ServiceBusArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -243,7 +245,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _serviceBusNamespaceAuthorizationRuleNamespaceAuthorizationRulesRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new ServiceBusArmOperation(response); + var uri = _serviceBusNamespaceAuthorizationRuleNamespaceAuthorizationRulesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ServiceBusArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -289,7 +293,9 @@ public virtual async Task(Response.FromValue(new ServiceBusNamespaceAuthorizationRuleResource(Client, response), response.GetRawResponse())); + var uri = _serviceBusNamespaceAuthorizationRuleNamespaceAuthorizationRulesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ServiceBusArmOperation(Response.FromValue(new ServiceBusNamespaceAuthorizationRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -335,7 +341,9 @@ public virtual ArmOperation Update try { var response = _serviceBusNamespaceAuthorizationRuleNamespaceAuthorizationRulesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new ServiceBusArmOperation(Response.FromValue(new ServiceBusNamespaceAuthorizationRuleResource(Client, response), response.GetRawResponse())); + var uri = _serviceBusNamespaceAuthorizationRuleNamespaceAuthorizationRulesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ServiceBusArmOperation(Response.FromValue(new ServiceBusNamespaceAuthorizationRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/ServiceBusNetworkRuleSetResource.cs b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/ServiceBusNetworkRuleSetResource.cs index 670b88b48a68..1757140ad187 100644 --- a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/ServiceBusNetworkRuleSetResource.cs +++ b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/ServiceBusNetworkRuleSetResource.cs @@ -203,7 +203,9 @@ public virtual async Task> Create try { var response = await _serviceBusNetworkRuleSetNamespacesRestClient.CreateOrUpdateNetworkRuleSetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new ServiceBusArmOperation(Response.FromValue(new ServiceBusNetworkRuleSetResource(Client, response), response.GetRawResponse())); + var uri = _serviceBusNetworkRuleSetNamespacesRestClient.CreateCreateOrUpdateNetworkRuleSetRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ServiceBusArmOperation(Response.FromValue(new ServiceBusNetworkRuleSetResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -249,7 +251,9 @@ public virtual ArmOperation CreateOrUpdate(Wai try { var response = _serviceBusNetworkRuleSetNamespacesRestClient.CreateOrUpdateNetworkRuleSet(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, data, cancellationToken); - var operation = new ServiceBusArmOperation(Response.FromValue(new ServiceBusNetworkRuleSetResource(Client, response), response.GetRawResponse())); + var uri = _serviceBusNetworkRuleSetNamespacesRestClient.CreateCreateOrUpdateNetworkRuleSetRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ServiceBusArmOperation(Response.FromValue(new ServiceBusNetworkRuleSetResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/ServiceBusPrivateEndpointConnectionCollection.cs b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/ServiceBusPrivateEndpointConnectionCollection.cs index d15b01a3b731..5a3fd8ef8fcd 100644 --- a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/ServiceBusPrivateEndpointConnectionCollection.cs +++ b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/ServiceBusPrivateEndpointConnectionCollection.cs @@ -90,7 +90,9 @@ public virtual async Task(Response.FromValue(new ServiceBusPrivateEndpointConnectionResource(Client, response), response.GetRawResponse())); + var uri = _serviceBusPrivateEndpointConnectionPrivateEndpointConnectionsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, privateEndpointConnectionName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ServiceBusArmOperation(Response.FromValue(new ServiceBusPrivateEndpointConnectionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateO try { var response = _serviceBusPrivateEndpointConnectionPrivateEndpointConnectionsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, privateEndpointConnectionName, data, cancellationToken); - var operation = new ServiceBusArmOperation(Response.FromValue(new ServiceBusPrivateEndpointConnectionResource(Client, response), response.GetRawResponse())); + var uri = _serviceBusPrivateEndpointConnectionPrivateEndpointConnectionsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, privateEndpointConnectionName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ServiceBusArmOperation(Response.FromValue(new ServiceBusPrivateEndpointConnectionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/ServiceBusPrivateEndpointConnectionResource.cs b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/ServiceBusPrivateEndpointConnectionResource.cs index 0e43f1870eeb..cb80f3579c48 100644 --- a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/ServiceBusPrivateEndpointConnectionResource.cs +++ b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/ServiceBusPrivateEndpointConnectionResource.cs @@ -288,7 +288,9 @@ public virtual async Task(Response.FromValue(new ServiceBusPrivateEndpointConnectionResource(Client, response), response.GetRawResponse())); + var uri = _serviceBusPrivateEndpointConnectionPrivateEndpointConnectionsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ServiceBusArmOperation(Response.FromValue(new ServiceBusPrivateEndpointConnectionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -334,7 +336,9 @@ public virtual ArmOperation Update( try { var response = _serviceBusPrivateEndpointConnectionPrivateEndpointConnectionsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new ServiceBusArmOperation(Response.FromValue(new ServiceBusPrivateEndpointConnectionResource(Client, response), response.GetRawResponse())); + var uri = _serviceBusPrivateEndpointConnectionPrivateEndpointConnectionsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ServiceBusArmOperation(Response.FromValue(new ServiceBusPrivateEndpointConnectionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/ServiceBusQueueAuthorizationRuleCollection.cs b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/ServiceBusQueueAuthorizationRuleCollection.cs index eace5d558d84..6716c9696e88 100644 --- a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/ServiceBusQueueAuthorizationRuleCollection.cs +++ b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/ServiceBusQueueAuthorizationRuleCollection.cs @@ -90,7 +90,9 @@ public virtual async Task try { var response = await _serviceBusQueueAuthorizationRuleQueueAuthorizationRulesRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, authorizationRuleName, data, cancellationToken).ConfigureAwait(false); - var operation = new ServiceBusArmOperation(Response.FromValue(new ServiceBusQueueAuthorizationRuleResource(Client, response), response.GetRawResponse())); + var uri = _serviceBusQueueAuthorizationRuleQueueAuthorizationRulesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, authorizationRuleName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ServiceBusArmOperation(Response.FromValue(new ServiceBusQueueAuthorizationRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUp try { var response = _serviceBusQueueAuthorizationRuleQueueAuthorizationRulesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, authorizationRuleName, data, cancellationToken); - var operation = new ServiceBusArmOperation(Response.FromValue(new ServiceBusQueueAuthorizationRuleResource(Client, response), response.GetRawResponse())); + var uri = _serviceBusQueueAuthorizationRuleQueueAuthorizationRulesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, authorizationRuleName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ServiceBusArmOperation(Response.FromValue(new ServiceBusQueueAuthorizationRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/ServiceBusQueueAuthorizationRuleResource.cs b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/ServiceBusQueueAuthorizationRuleResource.cs index e18d7255831a..2ebae4f91e87 100644 --- a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/ServiceBusQueueAuthorizationRuleResource.cs +++ b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/ServiceBusQueueAuthorizationRuleResource.cs @@ -202,7 +202,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _serviceBusQueueAuthorizationRuleQueueAuthorizationRulesRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new ServiceBusArmOperation(response); + var uri = _serviceBusQueueAuthorizationRuleQueueAuthorizationRulesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ServiceBusArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -244,7 +246,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _serviceBusQueueAuthorizationRuleQueueAuthorizationRulesRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new ServiceBusArmOperation(response); + var uri = _serviceBusQueueAuthorizationRuleQueueAuthorizationRulesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ServiceBusArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -290,7 +294,9 @@ public virtual async Task try { var response = await _serviceBusQueueAuthorizationRuleQueueAuthorizationRulesRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new ServiceBusArmOperation(Response.FromValue(new ServiceBusQueueAuthorizationRuleResource(Client, response), response.GetRawResponse())); + var uri = _serviceBusQueueAuthorizationRuleQueueAuthorizationRulesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ServiceBusArmOperation(Response.FromValue(new ServiceBusQueueAuthorizationRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -336,7 +342,9 @@ public virtual ArmOperation Update(Wai try { var response = _serviceBusQueueAuthorizationRuleQueueAuthorizationRulesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new ServiceBusArmOperation(Response.FromValue(new ServiceBusQueueAuthorizationRuleResource(Client, response), response.GetRawResponse())); + var uri = _serviceBusQueueAuthorizationRuleQueueAuthorizationRulesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ServiceBusArmOperation(Response.FromValue(new ServiceBusQueueAuthorizationRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/ServiceBusQueueCollection.cs b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/ServiceBusQueueCollection.cs index 9db62c965d6b..d976d2dd7826 100644 --- a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/ServiceBusQueueCollection.cs +++ b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/ServiceBusQueueCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> CreateOrUpdateA try { var response = await _serviceBusQueueQueuesRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, queueName, data, cancellationToken).ConfigureAwait(false); - var operation = new ServiceBusArmOperation(Response.FromValue(new ServiceBusQueueResource(Client, response), response.GetRawResponse())); + var uri = _serviceBusQueueQueuesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, queueName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ServiceBusArmOperation(Response.FromValue(new ServiceBusQueueResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wa try { var response = _serviceBusQueueQueuesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, queueName, data, cancellationToken); - var operation = new ServiceBusArmOperation(Response.FromValue(new ServiceBusQueueResource(Client, response), response.GetRawResponse())); + var uri = _serviceBusQueueQueuesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, queueName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ServiceBusArmOperation(Response.FromValue(new ServiceBusQueueResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/ServiceBusQueueResource.cs b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/ServiceBusQueueResource.cs index 26a9123c3772..b2d8d5db9a3b 100644 --- a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/ServiceBusQueueResource.cs +++ b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/ServiceBusQueueResource.cs @@ -269,7 +269,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _serviceBusQueueQueuesRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new ServiceBusArmOperation(response); + var uri = _serviceBusQueueQueuesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ServiceBusArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -311,7 +313,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _serviceBusQueueQueuesRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new ServiceBusArmOperation(response); + var uri = _serviceBusQueueQueuesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ServiceBusArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -357,7 +361,9 @@ public virtual async Task> UpdateAsync(Wai try { var response = await _serviceBusQueueQueuesRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new ServiceBusArmOperation(Response.FromValue(new ServiceBusQueueResource(Client, response), response.GetRawResponse())); + var uri = _serviceBusQueueQueuesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ServiceBusArmOperation(Response.FromValue(new ServiceBusQueueResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -403,7 +409,9 @@ public virtual ArmOperation Update(WaitUntil waitUntil, try { var response = _serviceBusQueueQueuesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new ServiceBusArmOperation(Response.FromValue(new ServiceBusQueueResource(Client, response), response.GetRawResponse())); + var uri = _serviceBusQueueQueuesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ServiceBusArmOperation(Response.FromValue(new ServiceBusQueueResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/ServiceBusRuleCollection.cs b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/ServiceBusRuleCollection.cs index bcfb1493282d..b46695d7284d 100644 --- a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/ServiceBusRuleCollection.cs +++ b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/ServiceBusRuleCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> CreateOrUpdateAs try { var response = await _serviceBusRuleRulesRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, ruleName, data, cancellationToken).ConfigureAwait(false); - var operation = new ServiceBusArmOperation(Response.FromValue(new ServiceBusRuleResource(Client, response), response.GetRawResponse())); + var uri = _serviceBusRuleRulesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, ruleName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ServiceBusArmOperation(Response.FromValue(new ServiceBusRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wai try { var response = _serviceBusRuleRulesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, ruleName, data, cancellationToken); - var operation = new ServiceBusArmOperation(Response.FromValue(new ServiceBusRuleResource(Client, response), response.GetRawResponse())); + var uri = _serviceBusRuleRulesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, ruleName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ServiceBusArmOperation(Response.FromValue(new ServiceBusRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/ServiceBusRuleResource.cs b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/ServiceBusRuleResource.cs index cdfd7d119f81..40a74f26006d 100644 --- a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/ServiceBusRuleResource.cs +++ b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/ServiceBusRuleResource.cs @@ -202,7 +202,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _serviceBusRuleRulesRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new ServiceBusArmOperation(response); + var uri = _serviceBusRuleRulesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ServiceBusArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -244,7 +246,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _serviceBusRuleRulesRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new ServiceBusArmOperation(response); + var uri = _serviceBusRuleRulesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ServiceBusArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -290,7 +294,9 @@ public virtual async Task> UpdateAsync(Wait try { var response = await _serviceBusRuleRulesRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new ServiceBusArmOperation(Response.FromValue(new ServiceBusRuleResource(Client, response), response.GetRawResponse())); + var uri = _serviceBusRuleRulesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ServiceBusArmOperation(Response.FromValue(new ServiceBusRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -336,7 +342,9 @@ public virtual ArmOperation Update(WaitUntil waitUntil, try { var response = _serviceBusRuleRulesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new ServiceBusArmOperation(Response.FromValue(new ServiceBusRuleResource(Client, response), response.GetRawResponse())); + var uri = _serviceBusRuleRulesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ServiceBusArmOperation(Response.FromValue(new ServiceBusRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/ServiceBusSubscriptionCollection.cs b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/ServiceBusSubscriptionCollection.cs index f264512321c5..a7fd705ec3b7 100644 --- a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/ServiceBusSubscriptionCollection.cs +++ b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/ServiceBusSubscriptionCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> CreateOr try { var response = await _serviceBusSubscriptionSubscriptionsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, subscriptionName, data, cancellationToken).ConfigureAwait(false); - var operation = new ServiceBusArmOperation(Response.FromValue(new ServiceBusSubscriptionResource(Client, response), response.GetRawResponse())); + var uri = _serviceBusSubscriptionSubscriptionsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, subscriptionName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ServiceBusArmOperation(Response.FromValue(new ServiceBusSubscriptionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(WaitU try { var response = _serviceBusSubscriptionSubscriptionsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, subscriptionName, data, cancellationToken); - var operation = new ServiceBusArmOperation(Response.FromValue(new ServiceBusSubscriptionResource(Client, response), response.GetRawResponse())); + var uri = _serviceBusSubscriptionSubscriptionsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, subscriptionName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ServiceBusArmOperation(Response.FromValue(new ServiceBusSubscriptionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/ServiceBusSubscriptionResource.cs b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/ServiceBusSubscriptionResource.cs index 0e9990d801e6..c64d3550294b 100644 --- a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/ServiceBusSubscriptionResource.cs +++ b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/ServiceBusSubscriptionResource.cs @@ -270,7 +270,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _serviceBusSubscriptionSubscriptionsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new ServiceBusArmOperation(response); + var uri = _serviceBusSubscriptionSubscriptionsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ServiceBusArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -312,7 +314,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _serviceBusSubscriptionSubscriptionsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new ServiceBusArmOperation(response); + var uri = _serviceBusSubscriptionSubscriptionsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ServiceBusArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -358,7 +362,9 @@ public virtual async Task> UpdateAs try { var response = await _serviceBusSubscriptionSubscriptionsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new ServiceBusArmOperation(Response.FromValue(new ServiceBusSubscriptionResource(Client, response), response.GetRawResponse())); + var uri = _serviceBusSubscriptionSubscriptionsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ServiceBusArmOperation(Response.FromValue(new ServiceBusSubscriptionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -404,7 +410,9 @@ public virtual ArmOperation Update(WaitUntil wai try { var response = _serviceBusSubscriptionSubscriptionsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new ServiceBusArmOperation(Response.FromValue(new ServiceBusSubscriptionResource(Client, response), response.GetRawResponse())); + var uri = _serviceBusSubscriptionSubscriptionsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ServiceBusArmOperation(Response.FromValue(new ServiceBusSubscriptionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/ServiceBusTopicAuthorizationRuleCollection.cs b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/ServiceBusTopicAuthorizationRuleCollection.cs index eb0c38a56493..a88c67734875 100644 --- a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/ServiceBusTopicAuthorizationRuleCollection.cs +++ b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/ServiceBusTopicAuthorizationRuleCollection.cs @@ -90,7 +90,9 @@ public virtual async Task try { var response = await _serviceBusTopicAuthorizationRuleTopicAuthorizationRulesRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, authorizationRuleName, data, cancellationToken).ConfigureAwait(false); - var operation = new ServiceBusArmOperation(Response.FromValue(new ServiceBusTopicAuthorizationRuleResource(Client, response), response.GetRawResponse())); + var uri = _serviceBusTopicAuthorizationRuleTopicAuthorizationRulesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, authorizationRuleName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ServiceBusArmOperation(Response.FromValue(new ServiceBusTopicAuthorizationRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUp try { var response = _serviceBusTopicAuthorizationRuleTopicAuthorizationRulesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, authorizationRuleName, data, cancellationToken); - var operation = new ServiceBusArmOperation(Response.FromValue(new ServiceBusTopicAuthorizationRuleResource(Client, response), response.GetRawResponse())); + var uri = _serviceBusTopicAuthorizationRuleTopicAuthorizationRulesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, authorizationRuleName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ServiceBusArmOperation(Response.FromValue(new ServiceBusTopicAuthorizationRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/ServiceBusTopicAuthorizationRuleResource.cs b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/ServiceBusTopicAuthorizationRuleResource.cs index deba6ea58cb5..7495e0c991d3 100644 --- a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/ServiceBusTopicAuthorizationRuleResource.cs +++ b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/ServiceBusTopicAuthorizationRuleResource.cs @@ -202,7 +202,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _serviceBusTopicAuthorizationRuleTopicAuthorizationRulesRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new ServiceBusArmOperation(response); + var uri = _serviceBusTopicAuthorizationRuleTopicAuthorizationRulesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ServiceBusArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -244,7 +246,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _serviceBusTopicAuthorizationRuleTopicAuthorizationRulesRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new ServiceBusArmOperation(response); + var uri = _serviceBusTopicAuthorizationRuleTopicAuthorizationRulesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ServiceBusArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -290,7 +294,9 @@ public virtual async Task try { var response = await _serviceBusTopicAuthorizationRuleTopicAuthorizationRulesRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new ServiceBusArmOperation(Response.FromValue(new ServiceBusTopicAuthorizationRuleResource(Client, response), response.GetRawResponse())); + var uri = _serviceBusTopicAuthorizationRuleTopicAuthorizationRulesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ServiceBusArmOperation(Response.FromValue(new ServiceBusTopicAuthorizationRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -336,7 +342,9 @@ public virtual ArmOperation Update(Wai try { var response = _serviceBusTopicAuthorizationRuleTopicAuthorizationRulesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new ServiceBusArmOperation(Response.FromValue(new ServiceBusTopicAuthorizationRuleResource(Client, response), response.GetRawResponse())); + var uri = _serviceBusTopicAuthorizationRuleTopicAuthorizationRulesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ServiceBusArmOperation(Response.FromValue(new ServiceBusTopicAuthorizationRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/ServiceBusTopicCollection.cs b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/ServiceBusTopicCollection.cs index 93ba7f5f9c0a..93eec01de9e0 100644 --- a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/ServiceBusTopicCollection.cs +++ b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/ServiceBusTopicCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> CreateOrUpdateA try { var response = await _serviceBusTopicTopicsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, topicName, data, cancellationToken).ConfigureAwait(false); - var operation = new ServiceBusArmOperation(Response.FromValue(new ServiceBusTopicResource(Client, response), response.GetRawResponse())); + var uri = _serviceBusTopicTopicsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, topicName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ServiceBusArmOperation(Response.FromValue(new ServiceBusTopicResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wa try { var response = _serviceBusTopicTopicsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, topicName, data, cancellationToken); - var operation = new ServiceBusArmOperation(Response.FromValue(new ServiceBusTopicResource(Client, response), response.GetRawResponse())); + var uri = _serviceBusTopicTopicsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, topicName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ServiceBusArmOperation(Response.FromValue(new ServiceBusTopicResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/ServiceBusTopicResource.cs b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/ServiceBusTopicResource.cs index 119a64c05eb6..89253c10f03b 100644 --- a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/ServiceBusTopicResource.cs +++ b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/ServiceBusTopicResource.cs @@ -338,7 +338,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _serviceBusTopicTopicsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new ServiceBusArmOperation(response); + var uri = _serviceBusTopicTopicsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ServiceBusArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -380,7 +382,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _serviceBusTopicTopicsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new ServiceBusArmOperation(response); + var uri = _serviceBusTopicTopicsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ServiceBusArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -426,7 +430,9 @@ public virtual async Task> UpdateAsync(Wai try { var response = await _serviceBusTopicTopicsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new ServiceBusArmOperation(Response.FromValue(new ServiceBusTopicResource(Client, response), response.GetRawResponse())); + var uri = _serviceBusTopicTopicsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ServiceBusArmOperation(Response.FromValue(new ServiceBusTopicResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -472,7 +478,9 @@ public virtual ArmOperation Update(WaitUntil waitUntil, try { var response = _serviceBusTopicTopicsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new ServiceBusArmOperation(Response.FromValue(new ServiceBusTopicResource(Client, response), response.GetRawResponse())); + var uri = _serviceBusTopicTopicsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ServiceBusArmOperation(Response.FromValue(new ServiceBusTopicResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Generated/LongRunningOperation/ServiceFabricArmOperation.cs b/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Generated/LongRunningOperation/ServiceFabricArmOperation.cs index 767b027afb2d..c6bc469306c0 100644 --- a/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Generated/LongRunningOperation/ServiceFabricArmOperation.cs +++ b/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Generated/LongRunningOperation/ServiceFabricArmOperation.cs @@ -20,21 +20,24 @@ internal class ServiceFabricArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of ServiceFabricArmOperation for mocking. protected ServiceFabricArmOperation() { } - internal ServiceFabricArmOperation(Response response) + internal ServiceFabricArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal ServiceFabricArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "ServiceFabricArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal ServiceFabricArmOperation(ClientDiagnostics clientDiagnostics, HttpPipe public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Generated/LongRunningOperation/ServiceFabricArmOperationOfT.cs b/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Generated/LongRunningOperation/ServiceFabricArmOperationOfT.cs index f5bdc1a4217d..4be8409db5fc 100644 --- a/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Generated/LongRunningOperation/ServiceFabricArmOperationOfT.cs +++ b/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Generated/LongRunningOperation/ServiceFabricArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class ServiceFabricArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of ServiceFabricArmOperation for mocking. protected ServiceFabricArmOperation() { } - internal ServiceFabricArmOperation(Response response) + internal ServiceFabricArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal ServiceFabricArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "ServiceFabricArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal ServiceFabricArmOperation(IOperationSource source, ClientDiagnostics public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Generated/Models/ServiceFabricApplicationResource.Serialization.cs b/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Generated/Models/ServiceFabricApplicationResource.Serialization.cs new file mode 100644 index 000000000000..4fa54c97ff17 --- /dev/null +++ b/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Generated/Models/ServiceFabricApplicationResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ServiceFabric +{ + public partial class ServiceFabricApplicationResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ServiceFabricApplicationData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ServiceFabricApplicationData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Generated/Models/ServiceFabricApplicationTypeResource.Serialization.cs b/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Generated/Models/ServiceFabricApplicationTypeResource.Serialization.cs new file mode 100644 index 000000000000..8ea595f3d086 --- /dev/null +++ b/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Generated/Models/ServiceFabricApplicationTypeResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ServiceFabric +{ + public partial class ServiceFabricApplicationTypeResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ServiceFabricApplicationTypeData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ServiceFabricApplicationTypeData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Generated/Models/ServiceFabricApplicationTypeVersionResource.Serialization.cs b/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Generated/Models/ServiceFabricApplicationTypeVersionResource.Serialization.cs new file mode 100644 index 000000000000..e6fb58f3d3d6 --- /dev/null +++ b/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Generated/Models/ServiceFabricApplicationTypeVersionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ServiceFabric +{ + public partial class ServiceFabricApplicationTypeVersionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ServiceFabricApplicationTypeVersionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ServiceFabricApplicationTypeVersionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Generated/Models/ServiceFabricClusterResource.Serialization.cs b/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Generated/Models/ServiceFabricClusterResource.Serialization.cs new file mode 100644 index 000000000000..d4447d9733b3 --- /dev/null +++ b/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Generated/Models/ServiceFabricClusterResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ServiceFabric +{ + public partial class ServiceFabricClusterResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ServiceFabricClusterData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ServiceFabricClusterData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Generated/Models/ServiceFabricServiceResource.Serialization.cs b/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Generated/Models/ServiceFabricServiceResource.Serialization.cs new file mode 100644 index 000000000000..eb8d3a09ee35 --- /dev/null +++ b/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Generated/Models/ServiceFabricServiceResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ServiceFabric +{ + public partial class ServiceFabricServiceResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ServiceFabricServiceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ServiceFabricServiceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Generated/Models/ServiceFabricVmSizeResource.Serialization.cs b/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Generated/Models/ServiceFabricVmSizeResource.Serialization.cs new file mode 100644 index 000000000000..892af7850330 --- /dev/null +++ b/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Generated/Models/ServiceFabricVmSizeResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ServiceFabric +{ + public partial class ServiceFabricVmSizeResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ServiceFabricVmSizeResourceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ServiceFabricVmSizeResourceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Generated/RestOperations/ApplicationTypeVersionsRestOperations.cs b/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Generated/RestOperations/ApplicationTypeVersionsRestOperations.cs index b486e2ed0e39..7dea2fead90a 100644 --- a/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Generated/RestOperations/ApplicationTypeVersionsRestOperations.cs +++ b/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Generated/RestOperations/ApplicationTypeVersionsRestOperations.cs @@ -37,6 +37,24 @@ public ApplicationTypeVersionsRestOperations(HttpPipeline pipeline, string appli _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string applicationTypeName, string version) + { + 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.ServiceFabric/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/applicationTypes/", false); + uri.AppendPath(applicationTypeName, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(version, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string clusterName, string applicationTypeName, string version) { var message = _pipeline.CreateMessage(); @@ -131,6 +149,24 @@ public Response Get(string subscription } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string applicationTypeName, string version, ServiceFabricApplicationTypeVersionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ServiceFabric/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/applicationTypes/", false); + uri.AppendPath(applicationTypeName, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(version, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string clusterName, string applicationTypeName, string version, ServiceFabricApplicationTypeVersionData data) { var message = _pipeline.CreateMessage(); @@ -219,6 +255,24 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string applicationTypeName, string version) + { + 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.ServiceFabric/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/applicationTypes/", false); + uri.AppendPath(applicationTypeName, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(version, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string clusterName, string applicationTypeName, string version) { var message = _pipeline.CreateMessage(); @@ -301,6 +355,23 @@ public Response Delete(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string applicationTypeName) + { + 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.ServiceFabric/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/applicationTypes/", false); + uri.AppendPath(applicationTypeName, true); + uri.AppendPath("/versions", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string clusterName, string applicationTypeName) { var message = _pipeline.CreateMessage(); @@ -386,6 +457,14 @@ public Response List(string subscriptio } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string clusterName, string applicationTypeName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string clusterName, string applicationTypeName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Generated/RestOperations/ApplicationTypesRestOperations.cs b/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Generated/RestOperations/ApplicationTypesRestOperations.cs index 72ba46adb297..864079921916 100644 --- a/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Generated/RestOperations/ApplicationTypesRestOperations.cs +++ b/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Generated/RestOperations/ApplicationTypesRestOperations.cs @@ -37,6 +37,22 @@ public ApplicationTypesRestOperations(HttpPipeline pipeline, string applicationI _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string applicationTypeName) + { + 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.ServiceFabric/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/applicationTypes/", false); + uri.AppendPath(applicationTypeName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string clusterName, string applicationTypeName) { var message = _pipeline.CreateMessage(); @@ -125,6 +141,22 @@ public Response Get(string subscriptionId, str } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string applicationTypeName, ServiceFabricApplicationTypeData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ServiceFabric/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/applicationTypes/", false); + uri.AppendPath(applicationTypeName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string clusterName, string applicationTypeName, ServiceFabricApplicationTypeData data) { var message = _pipeline.CreateMessage(); @@ -217,6 +249,22 @@ public Response CreateOrUpdate(string subscrip } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string applicationTypeName) + { + 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.ServiceFabric/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/applicationTypes/", false); + uri.AppendPath(applicationTypeName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string clusterName, string applicationTypeName) { var message = _pipeline.CreateMessage(); @@ -293,6 +341,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string clusterName) + { + 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.ServiceFabric/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/applicationTypes", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string clusterName) { var message = _pipeline.CreateMessage(); @@ -372,6 +435,14 @@ public Response List(string subscriptionId, st } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string clusterName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string clusterName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Generated/RestOperations/ApplicationsRestOperations.cs b/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Generated/RestOperations/ApplicationsRestOperations.cs index bcf11a236081..e240c13a89b4 100644 --- a/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Generated/RestOperations/ApplicationsRestOperations.cs +++ b/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Generated/RestOperations/ApplicationsRestOperations.cs @@ -37,6 +37,22 @@ public ApplicationsRestOperations(HttpPipeline pipeline, string applicationId, U _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string applicationName) + { + 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.ServiceFabric/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/applications/", false); + uri.AppendPath(applicationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string clusterName, string applicationName) { var message = _pipeline.CreateMessage(); @@ -125,6 +141,22 @@ public Response Get(string subscriptionId, string } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string applicationName, ServiceFabricApplicationData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ServiceFabric/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/applications/", false); + uri.AppendPath(applicationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string clusterName, string applicationName, ServiceFabricApplicationData data) { var message = _pipeline.CreateMessage(); @@ -207,6 +239,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string applicationName, ServiceFabricApplicationPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ServiceFabric/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/applications/", false); + uri.AppendPath(applicationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string clusterName, string applicationName, ServiceFabricApplicationPatch patch) { var message = _pipeline.CreateMessage(); @@ -289,6 +337,22 @@ public Response Update(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string applicationName) + { + 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.ServiceFabric/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/applications/", false); + uri.AppendPath(applicationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string clusterName, string applicationName) { var message = _pipeline.CreateMessage(); @@ -365,6 +429,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string clusterName) + { + 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.ServiceFabric/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/applications", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string clusterName) { var message = _pipeline.CreateMessage(); @@ -444,6 +523,14 @@ public Response List(string subscriptionId, string } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string clusterName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string clusterName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Generated/RestOperations/ClusterVersionsRestOperations.cs b/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Generated/RestOperations/ClusterVersionsRestOperations.cs index 74b8b5c86385..e258286ea016 100644 --- a/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Generated/RestOperations/ClusterVersionsRestOperations.cs +++ b/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Generated/RestOperations/ClusterVersionsRestOperations.cs @@ -37,6 +37,20 @@ public ClusterVersionsRestOperations(HttpPipeline pipeline, string applicationId _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, AzureLocation location, string clusterVersion) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ServiceFabric/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/clusterVersions/", false); + uri.AppendPath(clusterVersion, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, AzureLocation location, string clusterVersion) { var message = _pipeline.CreateMessage(); @@ -113,6 +127,22 @@ public Response Get(string subscriptionId, AzureL } } + internal RequestUriBuilder CreateGetByEnvironmentRequestUri(string subscriptionId, AzureLocation location, ClusterVersionsEnvironment environment, string clusterVersion) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ServiceFabric/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/environments/", false); + uri.AppendPath(environment.ToString(), true); + uri.AppendPath("/clusterVersions/", false); + uri.AppendPath(clusterVersion, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetByEnvironmentRequest(string subscriptionId, AzureLocation location, ClusterVersionsEnvironment environment, string clusterVersion) { var message = _pipeline.CreateMessage(); @@ -193,6 +223,19 @@ public Response GetByEnvironment(string subscript } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, AzureLocation location) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ServiceFabric/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/clusterVersions", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, AzureLocation location) { var message = _pipeline.CreateMessage(); @@ -264,6 +307,21 @@ public Response List(string subscriptionId, Azure } } + internal RequestUriBuilder CreateListByEnvironmentRequestUri(string subscriptionId, AzureLocation location, ClusterVersionsEnvironment environment) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ServiceFabric/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/environments/", false); + uri.AppendPath(environment.ToString(), true); + uri.AppendPath("/clusterVersions", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByEnvironmentRequest(string subscriptionId, AzureLocation location, ClusterVersionsEnvironment environment) { var message = _pipeline.CreateMessage(); diff --git a/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Generated/RestOperations/ClustersRestOperations.cs b/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Generated/RestOperations/ClustersRestOperations.cs index b651d1be04b1..834cd315d638 100644 --- a/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Generated/RestOperations/ClustersRestOperations.cs +++ b/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Generated/RestOperations/ClustersRestOperations.cs @@ -37,6 +37,20 @@ public ClustersRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string clusterName) + { + 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.ServiceFabric/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string clusterName) { var message = _pipeline.CreateMessage(); @@ -119,6 +133,20 @@ public Response Get(string subscriptionId, string reso } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string clusterName, ServiceFabricClusterData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ServiceFabric/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string clusterName, ServiceFabricClusterData data) { var message = _pipeline.CreateMessage(); @@ -197,6 +225,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string clusterName, ServiceFabricClusterPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ServiceFabric/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string clusterName, ServiceFabricClusterPatch patch) { var message = _pipeline.CreateMessage(); @@ -275,6 +317,20 @@ public Response Update(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string clusterName) + { + 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.ServiceFabric/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string clusterName) { var message = _pipeline.CreateMessage(); @@ -345,6 +401,19 @@ public Response Delete(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.ServiceFabric/clusters", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -418,6 +487,17 @@ public Response ListByResourceGroup(string subsc } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ServiceFabric/clusters", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -485,6 +565,21 @@ public Response List(string subscriptionId, Canc } } + internal RequestUriBuilder CreateListUpgradableVersionsRequestUri(string subscriptionId, string resourceGroupName, string clusterName, UpgradableVersionsDescription versionsDescription) + { + 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.ServiceFabric/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/listUpgradableVersions", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListUpgradableVersionsRequest(string subscriptionId, string resourceGroupName, string clusterName, UpgradableVersionsDescription versionsDescription) { var message = _pipeline.CreateMessage(); @@ -573,6 +668,14 @@ public Response ListUpgradableVersions(string subsc } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -645,6 +748,14 @@ public Response ListByResourceGroupNextPage(stri } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Generated/RestOperations/ServicesRestOperations.cs b/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Generated/RestOperations/ServicesRestOperations.cs index 0ec28c5342bb..5b7069b5295a 100644 --- a/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Generated/RestOperations/ServicesRestOperations.cs +++ b/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Generated/RestOperations/ServicesRestOperations.cs @@ -37,6 +37,24 @@ public ServicesRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string applicationName, string serviceName) + { + 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.ServiceFabric/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/applications/", false); + uri.AppendPath(applicationName, true); + uri.AppendPath("/services/", false); + uri.AppendPath(serviceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string clusterName, string applicationName, string serviceName) { var message = _pipeline.CreateMessage(); @@ -131,6 +149,24 @@ public Response Get(string subscriptionId, string reso } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string applicationName, string serviceName, ServiceFabricServiceData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ServiceFabric/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/applications/", false); + uri.AppendPath(applicationName, true); + uri.AppendPath("/services/", false); + uri.AppendPath(serviceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string clusterName, string applicationName, string serviceName, ServiceFabricServiceData data) { var message = _pipeline.CreateMessage(); @@ -219,6 +255,24 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string applicationName, string serviceName, ServiceFabricServicePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ServiceFabric/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/applications/", false); + uri.AppendPath(applicationName, true); + uri.AppendPath("/services/", false); + uri.AppendPath(serviceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string clusterName, string applicationName, string serviceName, ServiceFabricServicePatch patch) { var message = _pipeline.CreateMessage(); @@ -307,6 +361,24 @@ public Response Update(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string applicationName, string serviceName) + { + 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.ServiceFabric/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/applications/", false); + uri.AppendPath(applicationName, true); + uri.AppendPath("/services/", false); + uri.AppendPath(serviceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string clusterName, string applicationName, string serviceName) { var message = _pipeline.CreateMessage(); @@ -389,6 +461,23 @@ public Response Delete(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string applicationName) + { + 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.ServiceFabric/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/applications/", false); + uri.AppendPath(applicationName, true); + uri.AppendPath("/services", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string clusterName, string applicationName) { var message = _pipeline.CreateMessage(); @@ -474,6 +563,14 @@ public Response List(string subscriptionId, string resource } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string clusterName, string applicationName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string clusterName, string applicationName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Generated/RestOperations/UnsupportedVmSizesRestOperations.cs b/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Generated/RestOperations/UnsupportedVmSizesRestOperations.cs index c009c37baf7c..b7ab790ca79c 100644 --- a/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Generated/RestOperations/UnsupportedVmSizesRestOperations.cs +++ b/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Generated/RestOperations/UnsupportedVmSizesRestOperations.cs @@ -37,6 +37,19 @@ public UnsupportedVmSizesRestOperations(HttpPipeline pipeline, string applicatio _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, AzureLocation location) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ServiceFabric/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/unsupportedVmSizes", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, AzureLocation location) { var message = _pipeline.CreateMessage(); @@ -108,6 +121,20 @@ public Response List(string subscriptionId, AzureLocation locatio } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, AzureLocation location, string vmSize) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ServiceFabric/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/unsupportedVmSizes/", false); + uri.AppendPath(vmSize, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, AzureLocation location, string vmSize) { var message = _pipeline.CreateMessage(); @@ -188,6 +215,14 @@ public Response Get(string subscriptionId, Azur } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, AzureLocation location) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, AzureLocation location) { var message = _pipeline.CreateMessage(); diff --git a/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Generated/ServiceFabricApplicationTypeCollection.cs b/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Generated/ServiceFabricApplicationTypeCollection.cs index 7dbee8dd8c68..2544519baddb 100644 --- a/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Generated/ServiceFabricApplicationTypeCollection.cs +++ b/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Generated/ServiceFabricApplicationTypeCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> Cr try { var response = await _serviceFabricApplicationTypeApplicationTypesRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, applicationTypeName, data, cancellationToken).ConfigureAwait(false); - var operation = new ServiceFabricArmOperation(Response.FromValue(new ServiceFabricApplicationTypeResource(Client, response), response.GetRawResponse())); + var uri = _serviceFabricApplicationTypeApplicationTypesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, applicationTypeName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ServiceFabricArmOperation(Response.FromValue(new ServiceFabricApplicationTypeResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate try { var response = _serviceFabricApplicationTypeApplicationTypesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, applicationTypeName, data, cancellationToken); - var operation = new ServiceFabricArmOperation(Response.FromValue(new ServiceFabricApplicationTypeResource(Client, response), response.GetRawResponse())); + var uri = _serviceFabricApplicationTypeApplicationTypesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, applicationTypeName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ServiceFabricArmOperation(Response.FromValue(new ServiceFabricApplicationTypeResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Generated/ServiceFabricApplicationTypeResource.cs b/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Generated/ServiceFabricApplicationTypeResource.cs index 9eeccbf08f12..e97f73d160d9 100644 --- a/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Generated/ServiceFabricApplicationTypeResource.cs +++ b/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Generated/ServiceFabricApplicationTypeResource.cs @@ -358,7 +358,9 @@ public virtual async Task> Up try { var response = await _serviceFabricApplicationTypeApplicationTypesRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new ServiceFabricArmOperation(Response.FromValue(new ServiceFabricApplicationTypeResource(Client, response), response.GetRawResponse())); + var uri = _serviceFabricApplicationTypeApplicationTypesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ServiceFabricArmOperation(Response.FromValue(new ServiceFabricApplicationTypeResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -404,7 +406,9 @@ public virtual ArmOperation Update(WaitUnt try { var response = _serviceFabricApplicationTypeApplicationTypesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new ServiceFabricArmOperation(Response.FromValue(new ServiceFabricApplicationTypeResource(Client, response), response.GetRawResponse())); + var uri = _serviceFabricApplicationTypeApplicationTypesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ServiceFabricArmOperation(Response.FromValue(new ServiceFabricApplicationTypeResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Generated/ServiceFabricClusterResource.cs b/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Generated/ServiceFabricClusterResource.cs index 2636978a68a1..b746ad1553af 100644 --- a/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Generated/ServiceFabricClusterResource.cs +++ b/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Generated/ServiceFabricClusterResource.cs @@ -340,7 +340,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _serviceFabricClusterClustersRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new ServiceFabricArmOperation(response); + var uri = _serviceFabricClusterClustersRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ServiceFabricArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -382,7 +384,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _serviceFabricClusterClustersRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); - var operation = new ServiceFabricArmOperation(response); + var uri = _serviceFabricClusterClustersRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ServiceFabricArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/LongRunningOperation/ServiceFabricManagedClustersArmOperation.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/LongRunningOperation/ServiceFabricManagedClustersArmOperation.cs index 0e367e435af0..a9bae84f0add 100644 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/LongRunningOperation/ServiceFabricManagedClustersArmOperation.cs +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/LongRunningOperation/ServiceFabricManagedClustersArmOperation.cs @@ -20,21 +20,24 @@ internal class ServiceFabricManagedClustersArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of ServiceFabricManagedClustersArmOperation for mocking. protected ServiceFabricManagedClustersArmOperation() { } - internal ServiceFabricManagedClustersArmOperation(Response response) + internal ServiceFabricManagedClustersArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal ServiceFabricManagedClustersArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "ServiceFabricManagedClustersArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal ServiceFabricManagedClustersArmOperation(ClientDiagnostics clientDiagno public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/LongRunningOperation/ServiceFabricManagedClustersArmOperationOfT.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/LongRunningOperation/ServiceFabricManagedClustersArmOperationOfT.cs index 39d24982ec33..384ae89129d8 100644 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/LongRunningOperation/ServiceFabricManagedClustersArmOperationOfT.cs +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/LongRunningOperation/ServiceFabricManagedClustersArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class ServiceFabricManagedClustersArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of ServiceFabricManagedClustersArmOperation for mocking. protected ServiceFabricManagedClustersArmOperation() { } - internal ServiceFabricManagedClustersArmOperation(Response response) + internal ServiceFabricManagedClustersArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal ServiceFabricManagedClustersArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "ServiceFabricManagedClustersArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal ServiceFabricManagedClustersArmOperation(IOperationSource source, Cl public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/ServiceFabricManagedApplicationResource.Serialization.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/ServiceFabricManagedApplicationResource.Serialization.cs new file mode 100644 index 000000000000..db7dabdb7ef0 --- /dev/null +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/ServiceFabricManagedApplicationResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ServiceFabricManagedClusters +{ + public partial class ServiceFabricManagedApplicationResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ServiceFabricManagedApplicationData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ServiceFabricManagedApplicationData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/ServiceFabricManagedApplicationTypeResource.Serialization.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/ServiceFabricManagedApplicationTypeResource.Serialization.cs new file mode 100644 index 000000000000..eaae676e4334 --- /dev/null +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/ServiceFabricManagedApplicationTypeResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ServiceFabricManagedClusters +{ + public partial class ServiceFabricManagedApplicationTypeResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ServiceFabricManagedApplicationTypeData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ServiceFabricManagedApplicationTypeData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/ServiceFabricManagedApplicationTypeVersionResource.Serialization.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/ServiceFabricManagedApplicationTypeVersionResource.Serialization.cs new file mode 100644 index 000000000000..85323f232a57 --- /dev/null +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/ServiceFabricManagedApplicationTypeVersionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ServiceFabricManagedClusters +{ + public partial class ServiceFabricManagedApplicationTypeVersionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ServiceFabricManagedApplicationTypeVersionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ServiceFabricManagedApplicationTypeVersionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/ServiceFabricManagedClusterResource.Serialization.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/ServiceFabricManagedClusterResource.Serialization.cs new file mode 100644 index 000000000000..f3e359535992 --- /dev/null +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/ServiceFabricManagedClusterResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ServiceFabricManagedClusters +{ + public partial class ServiceFabricManagedClusterResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ServiceFabricManagedClusterData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ServiceFabricManagedClusterData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/ServiceFabricManagedNodeTypeResource.Serialization.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/ServiceFabricManagedNodeTypeResource.Serialization.cs new file mode 100644 index 000000000000..7e18fb42d297 --- /dev/null +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/ServiceFabricManagedNodeTypeResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ServiceFabricManagedClusters +{ + public partial class ServiceFabricManagedNodeTypeResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ServiceFabricManagedNodeTypeData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ServiceFabricManagedNodeTypeData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/ServiceFabricManagedServiceResource.Serialization.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/ServiceFabricManagedServiceResource.Serialization.cs new file mode 100644 index 000000000000..b1240c712bff --- /dev/null +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/ServiceFabricManagedServiceResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ServiceFabricManagedClusters +{ + public partial class ServiceFabricManagedServiceResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ServiceFabricManagedServiceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ServiceFabricManagedServiceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/RestOperations/ApplicationTypeVersionsRestOperations.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/RestOperations/ApplicationTypeVersionsRestOperations.cs index 33e2b640c80b..e8a1e6c75f94 100644 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/RestOperations/ApplicationTypeVersionsRestOperations.cs +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/RestOperations/ApplicationTypeVersionsRestOperations.cs @@ -37,6 +37,24 @@ public ApplicationTypeVersionsRestOperations(HttpPipeline pipeline, string appli _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string applicationTypeName, string version) + { + 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.ServiceFabric/managedclusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/applicationTypes/", false); + uri.AppendPath(applicationTypeName, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(version, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string clusterName, string applicationTypeName, string version) { var message = _pipeline.CreateMessage(); @@ -131,6 +149,24 @@ public Response Get(string subsc } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string applicationTypeName, string version, ServiceFabricManagedApplicationTypeVersionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ServiceFabric/managedclusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/applicationTypes/", false); + uri.AppendPath(applicationTypeName, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(version, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string clusterName, string applicationTypeName, string version, ServiceFabricManagedApplicationTypeVersionData data) { var message = _pipeline.CreateMessage(); @@ -221,6 +257,24 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string applicationTypeName, string version, ServiceFabricManagedApplicationTypeVersionPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ServiceFabric/managedclusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/applicationTypes/", false); + uri.AppendPath(applicationTypeName, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(version, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string clusterName, string applicationTypeName, string version, ServiceFabricManagedApplicationTypeVersionPatch patch) { var message = _pipeline.CreateMessage(); @@ -319,6 +373,24 @@ public Response Update(string su } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string applicationTypeName, string version) + { + 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.ServiceFabric/managedclusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/applicationTypes/", false); + uri.AppendPath(applicationTypeName, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(version, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string clusterName, string applicationTypeName, string version) { var message = _pipeline.CreateMessage(); @@ -403,6 +475,23 @@ public Response Delete(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateListByApplicationTypesRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string applicationTypeName) + { + 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.ServiceFabric/managedclusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/applicationTypes/", false); + uri.AppendPath(applicationTypeName, true); + uri.AppendPath("/versions", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByApplicationTypesRequest(string subscriptionId, string resourceGroupName, string clusterName, string applicationTypeName) { var message = _pipeline.CreateMessage(); @@ -488,6 +577,14 @@ public Response ListByApplicationTypes(strin } } + internal RequestUriBuilder CreateListByApplicationTypesNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string clusterName, string applicationTypeName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByApplicationTypesNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string clusterName, string applicationTypeName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/RestOperations/ApplicationTypesRestOperations.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/RestOperations/ApplicationTypesRestOperations.cs index 7c02acb9abf4..8f3f136dde36 100644 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/RestOperations/ApplicationTypesRestOperations.cs +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/RestOperations/ApplicationTypesRestOperations.cs @@ -37,6 +37,22 @@ public ApplicationTypesRestOperations(HttpPipeline pipeline, string applicationI _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string applicationTypeName) + { + 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.ServiceFabric/managedclusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/applicationTypes/", false); + uri.AppendPath(applicationTypeName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string clusterName, string applicationTypeName) { var message = _pipeline.CreateMessage(); @@ -125,6 +141,22 @@ public Response Get(string subscription } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string applicationTypeName, ServiceFabricManagedApplicationTypeData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ServiceFabric/managedclusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/applicationTypes/", false); + uri.AppendPath(applicationTypeName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string clusterName, string applicationTypeName, ServiceFabricManagedApplicationTypeData data) { var message = _pipeline.CreateMessage(); @@ -217,6 +249,22 @@ public Response CreateOrUpdate(string s } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string applicationTypeName, ServiceFabricManagedApplicationTypePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ServiceFabric/managedclusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/applicationTypes/", false); + uri.AppendPath(applicationTypeName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string clusterName, string applicationTypeName, ServiceFabricManagedApplicationTypePatch patch) { var message = _pipeline.CreateMessage(); @@ -309,6 +357,22 @@ public Response Update(string subscript } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string applicationTypeName) + { + 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.ServiceFabric/managedclusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/applicationTypes/", false); + uri.AppendPath(applicationTypeName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string clusterName, string applicationTypeName) { var message = _pipeline.CreateMessage(); @@ -387,6 +451,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string clusterName) + { + 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.ServiceFabric/managedclusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/applicationTypes", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string clusterName) { var message = _pipeline.CreateMessage(); @@ -466,6 +545,14 @@ public Response List(string subscriptionId, string } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string clusterName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string clusterName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/RestOperations/ApplicationsRestOperations.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/RestOperations/ApplicationsRestOperations.cs index c06e9cf83058..9dcfc8482ced 100644 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/RestOperations/ApplicationsRestOperations.cs +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/RestOperations/ApplicationsRestOperations.cs @@ -37,6 +37,23 @@ public ApplicationsRestOperations(HttpPipeline pipeline, string applicationId, U _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateReadUpgradeRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string applicationName) + { + 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.ServiceFabric/managedClusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/applications/", false); + uri.AppendPath(applicationName, true); + uri.AppendPath("/fetchUpgradeStatus", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateReadUpgradeRequest(string subscriptionId, string resourceGroupName, string clusterName, string applicationName) { var message = _pipeline.CreateMessage(); @@ -112,6 +129,23 @@ public Response ReadUpgrade(string subscriptionId, string resourceGroupName, str } } + internal RequestUriBuilder CreateStartRollbackRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string applicationName) + { + 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.ServiceFabric/managedClusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/applications/", false); + uri.AppendPath(applicationName, true); + uri.AppendPath("/startRollback", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStartRollbackRequest(string subscriptionId, string resourceGroupName, string clusterName, string applicationName) { var message = _pipeline.CreateMessage(); @@ -187,6 +221,23 @@ public Response StartRollback(string subscriptionId, string resourceGroupName, s } } + internal RequestUriBuilder CreateResumeUpgradeRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string applicationName, RuntimeResumeApplicationUpgradeContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ServiceFabric/managedClusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/applications/", false); + uri.AppendPath(applicationName, true); + uri.AppendPath("/resumeUpgrade", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateResumeUpgradeRequest(string subscriptionId, string resourceGroupName, string clusterName, string applicationName, RuntimeResumeApplicationUpgradeContent content) { var message = _pipeline.CreateMessage(); @@ -270,6 +321,22 @@ public Response ResumeUpgrade(string subscriptionId, string resourceGroupName, s } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string applicationName) + { + 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.ServiceFabric/managedclusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/applications/", false); + uri.AppendPath(applicationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string clusterName, string applicationName) { var message = _pipeline.CreateMessage(); @@ -358,6 +425,22 @@ public Response Get(string subscriptionId, } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string applicationName, ServiceFabricManagedApplicationData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ServiceFabric/managedclusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/applications/", false); + uri.AppendPath(applicationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string clusterName, string applicationName, ServiceFabricManagedApplicationData data) { var message = _pipeline.CreateMessage(); @@ -442,6 +525,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string applicationName, ServiceFabricManagedApplicationPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ServiceFabric/managedclusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/applications/", false); + uri.AppendPath(applicationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string clusterName, string applicationName, ServiceFabricManagedApplicationPatch patch) { var message = _pipeline.CreateMessage(); @@ -534,6 +633,22 @@ public Response Update(string subscriptionI } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string applicationName) + { + 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.ServiceFabric/managedclusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/applications/", false); + uri.AppendPath(applicationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string clusterName, string applicationName) { var message = _pipeline.CreateMessage(); @@ -612,6 +727,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string clusterName) + { + 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.ServiceFabric/managedclusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/applications", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string clusterName) { var message = _pipeline.CreateMessage(); @@ -691,6 +821,14 @@ public Response List(string subscriptionId, string reso } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string clusterName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string clusterName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/RestOperations/ManagedApplyMaintenanceWindowRestOperations.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/RestOperations/ManagedApplyMaintenanceWindowRestOperations.cs index 3ee1eea900c1..fa0c3961c28f 100644 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/RestOperations/ManagedApplyMaintenanceWindowRestOperations.cs +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/RestOperations/ManagedApplyMaintenanceWindowRestOperations.cs @@ -35,6 +35,21 @@ public ManagedApplyMaintenanceWindowRestOperations(HttpPipeline pipeline, string _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreatePostRequestUri(string subscriptionId, string resourceGroupName, string clusterName) + { + 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.ServiceFabric/managedClusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/applyMaintenanceWindow", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreatePostRequest(string subscriptionId, string resourceGroupName, string clusterName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/RestOperations/ManagedAzResiliencyStatusRestOperations.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/RestOperations/ManagedAzResiliencyStatusRestOperations.cs index 2f8b94163f67..3ece4e1c2d14 100644 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/RestOperations/ManagedAzResiliencyStatusRestOperations.cs +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/RestOperations/ManagedAzResiliencyStatusRestOperations.cs @@ -37,6 +37,21 @@ public ManagedAzResiliencyStatusRestOperations(HttpPipeline pipeline, string app _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string clusterName) + { + 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.ServiceFabric/managedClusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/getazresiliencystatus", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string clusterName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/RestOperations/ManagedClusterVersionRestOperations.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/RestOperations/ManagedClusterVersionRestOperations.cs index dec72492a1bd..46750fc0e5c1 100644 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/RestOperations/ManagedClusterVersionRestOperations.cs +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/RestOperations/ManagedClusterVersionRestOperations.cs @@ -38,6 +38,20 @@ public ManagedClusterVersionRestOperations(HttpPipeline pipeline, string applica _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, AzureLocation location, string clusterVersion) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ServiceFabric/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/managedClusterVersions/", false); + uri.AppendPath(clusterVersion, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, AzureLocation location, string clusterVersion) { var message = _pipeline.CreateMessage(); @@ -114,6 +128,22 @@ public Response Get(string subscriptionId, A } } + internal RequestUriBuilder CreateGetByEnvironmentRequestUri(string subscriptionId, AzureLocation location, ManagedClusterVersionEnvironment environment, string clusterVersion) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ServiceFabric/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/environments/", false); + uri.AppendPath(environment.ToString(), true); + uri.AppendPath("/managedClusterVersions/", false); + uri.AppendPath(clusterVersion, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetByEnvironmentRequest(string subscriptionId, AzureLocation location, ManagedClusterVersionEnvironment environment, string clusterVersion) { var message = _pipeline.CreateMessage(); @@ -194,6 +224,19 @@ public Response GetByEnvironment(string subs } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, AzureLocation location) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ServiceFabric/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/managedClusterVersions", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, AzureLocation location) { var message = _pipeline.CreateMessage(); @@ -275,6 +318,21 @@ public Response> List(string s } } + internal RequestUriBuilder CreateListByEnvironmentRequestUri(string subscriptionId, AzureLocation location, ManagedClusterVersionEnvironment environment) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ServiceFabric/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/environments/", false); + uri.AppendPath(environment.ToString(), true); + uri.AppendPath("/managedClusterVersions", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByEnvironmentRequest(string subscriptionId, AzureLocation location, ManagedClusterVersionEnvironment environment) { var message = _pipeline.CreateMessage(); diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/RestOperations/ManagedClustersRestOperations.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/RestOperations/ManagedClustersRestOperations.cs index 4d53d3fa0a46..b533636bf646 100644 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/RestOperations/ManagedClustersRestOperations.cs +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/RestOperations/ManagedClustersRestOperations.cs @@ -37,6 +37,19 @@ public ManagedClustersRestOperations(HttpPipeline pipeline, string applicationId _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.ServiceFabric/managedClusters", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -110,6 +123,17 @@ public Response ListByResourceGroup(string subscriptio } } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ServiceFabric/managedClusters", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -177,6 +201,20 @@ public Response ListBySubscription(string subscription } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string clusterName) + { + 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.ServiceFabric/managedClusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string clusterName) { var message = _pipeline.CreateMessage(); @@ -259,6 +297,20 @@ public Response Get(string subscriptionId, stri } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string clusterName, ServiceFabricManagedClusterData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ServiceFabric/managedClusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string clusterName, ServiceFabricManagedClusterData data) { var message = _pipeline.CreateMessage(); @@ -337,6 +389,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string clusterName, ServiceFabricManagedClusterPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ServiceFabric/managedClusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string clusterName, ServiceFabricManagedClusterPatch patch) { var message = _pipeline.CreateMessage(); @@ -423,6 +489,20 @@ public Response Update(string subscriptionId, s } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string clusterName) + { + 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.ServiceFabric/managedClusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string clusterName) { var message = _pipeline.CreateMessage(); @@ -495,6 +575,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -567,6 +655,14 @@ public Response ListByResourceGroupNextPage(string nex } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/RestOperations/ManagedMaintenanceWindowStatusRestOperations.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/RestOperations/ManagedMaintenanceWindowStatusRestOperations.cs index 24d3239e5674..d61fc02abf9d 100644 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/RestOperations/ManagedMaintenanceWindowStatusRestOperations.cs +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/RestOperations/ManagedMaintenanceWindowStatusRestOperations.cs @@ -37,6 +37,21 @@ public ManagedMaintenanceWindowStatusRestOperations(HttpPipeline pipeline, strin _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string clusterName) + { + 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.ServiceFabric/managedClusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/getMaintenanceWindowStatus", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string clusterName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/RestOperations/ManagedUnsupportedVMSizesRestOperations.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/RestOperations/ManagedUnsupportedVMSizesRestOperations.cs index f8d19bae6994..d84df6ba8ab9 100644 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/RestOperations/ManagedUnsupportedVMSizesRestOperations.cs +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/RestOperations/ManagedUnsupportedVMSizesRestOperations.cs @@ -37,6 +37,19 @@ public ManagedUnsupportedVMSizesRestOperations(HttpPipeline pipeline, string app _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, AzureLocation location) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ServiceFabric/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/managedUnsupportedVMSizes", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, AzureLocation location) { var message = _pipeline.CreateMessage(); @@ -108,6 +121,20 @@ public Response List(string subscriptionId, AzureLocation } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, AzureLocation location, string vmSize) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ServiceFabric/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/managedUnsupportedVMSizes/", false); + uri.AppendPath(vmSize, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, AzureLocation location, string vmSize) { var message = _pipeline.CreateMessage(); @@ -184,6 +211,14 @@ public Response Get(string subscriptionId } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, AzureLocation location) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, AzureLocation location) { var message = _pipeline.CreateMessage(); diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/RestOperations/NodeTypeSkusRestOperations.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/RestOperations/NodeTypeSkusRestOperations.cs index ae6abc45d5e0..a13f30d7a7a1 100644 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/RestOperations/NodeTypeSkusRestOperations.cs +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/RestOperations/NodeTypeSkusRestOperations.cs @@ -37,6 +37,23 @@ public NodeTypeSkusRestOperations(HttpPipeline pipeline, string applicationId, U _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string nodeTypeName) + { + 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.ServiceFabric/managedClusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/nodeTypes/", false); + uri.AppendPath(nodeTypeName, true); + uri.AppendPath("/skus", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string clusterName, string nodeTypeName) { var message = _pipeline.CreateMessage(); @@ -122,6 +139,14 @@ public Response List(string subscriptionId, string resour } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string clusterName, string nodeTypeName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string clusterName, string nodeTypeName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/RestOperations/NodeTypesRestOperations.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/RestOperations/NodeTypesRestOperations.cs index 4e7d943bc98c..54de716e9702 100644 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/RestOperations/NodeTypesRestOperations.cs +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/RestOperations/NodeTypesRestOperations.cs @@ -37,6 +37,21 @@ public NodeTypesRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByManagedClustersRequestUri(string subscriptionId, string resourceGroupName, string clusterName) + { + 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.ServiceFabric/managedClusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/nodeTypes", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByManagedClustersRequest(string subscriptionId, string resourceGroupName, string clusterName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,23 @@ public Response ListByManagedClusters(string subscriptionId, } } + internal RequestUriBuilder CreateRestartRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string nodeTypeName, NodeTypeActionContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ServiceFabric/managedClusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/nodeTypes/", false); + uri.AppendPath(nodeTypeName, true); + uri.AppendPath("/restart", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRestartRequest(string subscriptionId, string resourceGroupName, string clusterName, string nodeTypeName, NodeTypeActionContent content) { var message = _pipeline.CreateMessage(); @@ -201,6 +233,23 @@ public Response Restart(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreateReimageRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string nodeTypeName, NodeTypeActionContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ServiceFabric/managedClusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/nodeTypes/", false); + uri.AppendPath(nodeTypeName, true); + uri.AppendPath("/reimage", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateReimageRequest(string subscriptionId, string resourceGroupName, string clusterName, string nodeTypeName, NodeTypeActionContent content) { var message = _pipeline.CreateMessage(); @@ -286,6 +335,23 @@ public Response Reimage(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreateDeleteNodeRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string nodeTypeName, NodeTypeActionContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ServiceFabric/managedClusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/nodeTypes/", false); + uri.AppendPath(nodeTypeName, true); + uri.AppendPath("/deleteNode", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteNodeRequest(string subscriptionId, string resourceGroupName, string clusterName, string nodeTypeName, NodeTypeActionContent content) { var message = _pipeline.CreateMessage(); @@ -371,6 +437,22 @@ public Response DeleteNode(string subscriptionId, string resourceGroupName, stri } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string nodeTypeName) + { + 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.ServiceFabric/managedClusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/nodeTypes/", false); + uri.AppendPath(nodeTypeName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string clusterName, string nodeTypeName) { var message = _pipeline.CreateMessage(); @@ -459,6 +541,22 @@ public Response Get(string subscriptionId, str } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string nodeTypeName, ServiceFabricManagedNodeTypeData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ServiceFabric/managedClusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/nodeTypes/", false); + uri.AppendPath(nodeTypeName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string clusterName, string nodeTypeName, ServiceFabricManagedNodeTypeData data) { var message = _pipeline.CreateMessage(); @@ -543,6 +641,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string nodeTypeName, ServiceFabricManagedNodeTypePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ServiceFabric/managedClusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/nodeTypes/", false); + uri.AppendPath(nodeTypeName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string clusterName, string nodeTypeName, ServiceFabricManagedNodeTypePatch patch) { var message = _pipeline.CreateMessage(); @@ -637,6 +751,22 @@ public Response Update(string subscriptionId, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string nodeTypeName) + { + 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.ServiceFabric/managedClusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/nodeTypes/", false); + uri.AppendPath(nodeTypeName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string clusterName, string nodeTypeName) { var message = _pipeline.CreateMessage(); @@ -715,6 +845,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateListByManagedClustersNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string clusterName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByManagedClustersNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string clusterName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/RestOperations/ServicesRestOperations.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/RestOperations/ServicesRestOperations.cs index 83bbe43c269c..860fb8c02095 100644 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/RestOperations/ServicesRestOperations.cs +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/RestOperations/ServicesRestOperations.cs @@ -37,6 +37,24 @@ public ServicesRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string applicationName, string serviceName) + { + 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.ServiceFabric/managedclusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/applications/", false); + uri.AppendPath(applicationName, true); + uri.AppendPath("/services/", false); + uri.AppendPath(serviceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string clusterName, string applicationName, string serviceName) { var message = _pipeline.CreateMessage(); @@ -131,6 +149,24 @@ public Response Get(string subscriptionId, stri } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string applicationName, string serviceName, ServiceFabricManagedServiceData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ServiceFabric/managedclusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/applications/", false); + uri.AppendPath(applicationName, true); + uri.AppendPath("/services/", false); + uri.AppendPath(serviceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string clusterName, string applicationName, string serviceName, ServiceFabricManagedServiceData data) { var message = _pipeline.CreateMessage(); @@ -221,6 +257,24 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string applicationName, string serviceName, ServiceFabricManagedServicePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ServiceFabric/managedclusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/applications/", false); + uri.AppendPath(applicationName, true); + uri.AppendPath("/services/", false); + uri.AppendPath(serviceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string clusterName, string applicationName, string serviceName, ServiceFabricManagedServicePatch patch) { var message = _pipeline.CreateMessage(); @@ -319,6 +373,24 @@ public Response Update(string subscriptionId, s } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string applicationName, string serviceName) + { + 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.ServiceFabric/managedclusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/applications/", false); + uri.AppendPath(applicationName, true); + uri.AppendPath("/services/", false); + uri.AppendPath(serviceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string clusterName, string applicationName, string serviceName) { var message = _pipeline.CreateMessage(); @@ -403,6 +475,23 @@ public Response Delete(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateListByApplicationsRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string applicationName) + { + 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.ServiceFabric/managedclusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/applications/", false); + uri.AppendPath(applicationName, true); + uri.AppendPath("/services", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByApplicationsRequest(string subscriptionId, string resourceGroupName, string clusterName, string applicationName) { var message = _pipeline.CreateMessage(); @@ -488,6 +577,14 @@ public Response ListByApplications(string subscriptionId, s } } + internal RequestUriBuilder CreateListByApplicationsNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string clusterName, string applicationName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByApplicationsNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string clusterName, string applicationName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/ServiceFabricManagedApplicationTypeCollection.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/ServiceFabricManagedApplicationTypeCollection.cs index e73797250093..c94e0fda196a 100644 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/ServiceFabricManagedApplicationTypeCollection.cs +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/ServiceFabricManagedApplicationTypeCollection.cs @@ -90,7 +90,9 @@ public virtual async Task(Response.FromValue(new ServiceFabricManagedApplicationTypeResource(Client, response), response.GetRawResponse())); + var uri = _serviceFabricManagedApplicationTypeApplicationTypesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, applicationTypeName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ServiceFabricManagedClustersArmOperation(Response.FromValue(new ServiceFabricManagedApplicationTypeResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateO try { var response = _serviceFabricManagedApplicationTypeApplicationTypesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, applicationTypeName, data, cancellationToken); - var operation = new ServiceFabricManagedClustersArmOperation(Response.FromValue(new ServiceFabricManagedApplicationTypeResource(Client, response), response.GetRawResponse())); + var uri = _serviceFabricManagedApplicationTypeApplicationTypesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, applicationTypeName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new ServiceFabricManagedClustersArmOperation(Response.FromValue(new ServiceFabricManagedApplicationTypeResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/servicelinker/Azure.ResourceManager.ServiceLinker/src/Generated/LongRunningOperation/ServiceLinkerArmOperation.cs b/sdk/servicelinker/Azure.ResourceManager.ServiceLinker/src/Generated/LongRunningOperation/ServiceLinkerArmOperation.cs index 0330554046f8..f78e03998da2 100644 --- a/sdk/servicelinker/Azure.ResourceManager.ServiceLinker/src/Generated/LongRunningOperation/ServiceLinkerArmOperation.cs +++ b/sdk/servicelinker/Azure.ResourceManager.ServiceLinker/src/Generated/LongRunningOperation/ServiceLinkerArmOperation.cs @@ -20,21 +20,24 @@ internal class ServiceLinkerArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of ServiceLinkerArmOperation for mocking. protected ServiceLinkerArmOperation() { } - internal ServiceLinkerArmOperation(Response response) + internal ServiceLinkerArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal ServiceLinkerArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "ServiceLinkerArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal ServiceLinkerArmOperation(ClientDiagnostics clientDiagnostics, HttpPipe public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/servicelinker/Azure.ResourceManager.ServiceLinker/src/Generated/LongRunningOperation/ServiceLinkerArmOperationOfT.cs b/sdk/servicelinker/Azure.ResourceManager.ServiceLinker/src/Generated/LongRunningOperation/ServiceLinkerArmOperationOfT.cs index 315cb3d36a21..8536cbfc329f 100644 --- a/sdk/servicelinker/Azure.ResourceManager.ServiceLinker/src/Generated/LongRunningOperation/ServiceLinkerArmOperationOfT.cs +++ b/sdk/servicelinker/Azure.ResourceManager.ServiceLinker/src/Generated/LongRunningOperation/ServiceLinkerArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class ServiceLinkerArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of ServiceLinkerArmOperation for mocking. protected ServiceLinkerArmOperation() { } - internal ServiceLinkerArmOperation(Response response) + internal ServiceLinkerArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal ServiceLinkerArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "ServiceLinkerArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal ServiceLinkerArmOperation(IOperationSource source, ClientDiagnostics public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/servicelinker/Azure.ResourceManager.ServiceLinker/src/Generated/Models/LinkerResource.Serialization.cs b/sdk/servicelinker/Azure.ResourceManager.ServiceLinker/src/Generated/Models/LinkerResource.Serialization.cs new file mode 100644 index 000000000000..3a96c2dbe6a1 --- /dev/null +++ b/sdk/servicelinker/Azure.ResourceManager.ServiceLinker/src/Generated/Models/LinkerResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ServiceLinker +{ + public partial class LinkerResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + LinkerResourceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + LinkerResourceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/servicelinker/Azure.ResourceManager.ServiceLinker/src/Generated/RestOperations/LinkerRestOperations.cs b/sdk/servicelinker/Azure.ResourceManager.ServiceLinker/src/Generated/RestOperations/LinkerRestOperations.cs index 7c449a18fdf9..dce93201918a 100644 --- a/sdk/servicelinker/Azure.ResourceManager.ServiceLinker/src/Generated/RestOperations/LinkerRestOperations.cs +++ b/sdk/servicelinker/Azure.ResourceManager.ServiceLinker/src/Generated/RestOperations/LinkerRestOperations.cs @@ -37,6 +37,17 @@ public LinkerRestOperations(HttpPipeline pipeline, string applicationId, Uri end _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string resourceUri) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceUri, false); + uri.AppendPath("/providers/Microsoft.ServiceLinker/linkers", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string resourceUri) { var message = _pipeline.CreateMessage(); @@ -102,6 +113,18 @@ public Response List(string resourceUri, CancellationToken cancellat } } + internal RequestUriBuilder CreateGetRequestUri(string resourceUri, string linkerName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceUri, false); + uri.AppendPath("/providers/Microsoft.ServiceLinker/linkers/", false); + uri.AppendPath(linkerName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string resourceUri, string linkerName) { var message = _pipeline.CreateMessage(); @@ -178,6 +201,18 @@ public Response Get(string resourceUri, string linkerName, C } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string resourceUri, string linkerName, LinkerResourceData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceUri, false); + uri.AppendPath("/providers/Microsoft.ServiceLinker/linkers/", false); + uri.AppendPath(linkerName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string resourceUri, string linkerName, LinkerResourceData data) { var message = _pipeline.CreateMessage(); @@ -250,6 +285,18 @@ public Response CreateOrUpdate(string resourceUri, string linkerName, LinkerReso } } + internal RequestUriBuilder CreateDeleteRequestUri(string resourceUri, string linkerName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceUri, false); + uri.AppendPath("/providers/Microsoft.ServiceLinker/linkers/", false); + uri.AppendPath(linkerName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string resourceUri, string linkerName) { var message = _pipeline.CreateMessage(); @@ -316,6 +363,18 @@ public Response Delete(string resourceUri, string linkerName, CancellationToken } } + internal RequestUriBuilder CreateUpdateRequestUri(string resourceUri, string linkerName, LinkerResourcePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceUri, false); + uri.AppendPath("/providers/Microsoft.ServiceLinker/linkers/", false); + uri.AppendPath(linkerName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string resourceUri, string linkerName, LinkerResourcePatch patch) { var message = _pipeline.CreateMessage(); @@ -388,6 +447,19 @@ public Response Update(string resourceUri, string linkerName, LinkerResourcePatc } } + internal RequestUriBuilder CreateValidateRequestUri(string resourceUri, string linkerName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceUri, false); + uri.AppendPath("/providers/Microsoft.ServiceLinker/linkers/", false); + uri.AppendPath(linkerName, true); + uri.AppendPath("/validateLinker", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateValidateRequest(string resourceUri, string linkerName) { var message = _pipeline.CreateMessage(); @@ -453,6 +525,19 @@ public Response Validate(string resourceUri, string linkerName, CancellationToke } } + internal RequestUriBuilder CreateListConfigurationsRequestUri(string resourceUri, string linkerName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceUri, false); + uri.AppendPath("/providers/Microsoft.ServiceLinker/linkers/", false); + uri.AppendPath(linkerName, true); + uri.AppendPath("/listConfigurations", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListConfigurationsRequest(string resourceUri, string linkerName) { var message = _pipeline.CreateMessage(); @@ -526,6 +611,14 @@ public Response ListConfigurations(string resourceUri } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string resourceUri) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string resourceUri) { var message = _pipeline.CreateMessage(); diff --git a/sdk/servicenetworking/Azure.ResourceManager.ServiceNetworking/src/Generated/LongRunningOperation/ServiceNetworkingArmOperation.cs b/sdk/servicenetworking/Azure.ResourceManager.ServiceNetworking/src/Generated/LongRunningOperation/ServiceNetworkingArmOperation.cs index a8aed82effc2..20f96c5772bb 100644 --- a/sdk/servicenetworking/Azure.ResourceManager.ServiceNetworking/src/Generated/LongRunningOperation/ServiceNetworkingArmOperation.cs +++ b/sdk/servicenetworking/Azure.ResourceManager.ServiceNetworking/src/Generated/LongRunningOperation/ServiceNetworkingArmOperation.cs @@ -20,21 +20,24 @@ internal class ServiceNetworkingArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of ServiceNetworkingArmOperation for mocking. protected ServiceNetworkingArmOperation() { } - internal ServiceNetworkingArmOperation(Response response) + internal ServiceNetworkingArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal ServiceNetworkingArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "ServiceNetworkingArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal ServiceNetworkingArmOperation(ClientDiagnostics clientDiagnostics, Http public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/servicenetworking/Azure.ResourceManager.ServiceNetworking/src/Generated/LongRunningOperation/ServiceNetworkingArmOperationOfT.cs b/sdk/servicenetworking/Azure.ResourceManager.ServiceNetworking/src/Generated/LongRunningOperation/ServiceNetworkingArmOperationOfT.cs index 8aa0073036fe..f04d47f1a808 100644 --- a/sdk/servicenetworking/Azure.ResourceManager.ServiceNetworking/src/Generated/LongRunningOperation/ServiceNetworkingArmOperationOfT.cs +++ b/sdk/servicenetworking/Azure.ResourceManager.ServiceNetworking/src/Generated/LongRunningOperation/ServiceNetworkingArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class ServiceNetworkingArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of ServiceNetworkingArmOperation for mocking. protected ServiceNetworkingArmOperation() { } - internal ServiceNetworkingArmOperation(Response response) + internal ServiceNetworkingArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal ServiceNetworkingArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "ServiceNetworkingArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal ServiceNetworkingArmOperation(IOperationSource source, ClientDiagnos public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/servicenetworking/Azure.ResourceManager.ServiceNetworking/src/Generated/Models/AssociationResource.Serialization.cs b/sdk/servicenetworking/Azure.ResourceManager.ServiceNetworking/src/Generated/Models/AssociationResource.Serialization.cs new file mode 100644 index 000000000000..e3f3b134f226 --- /dev/null +++ b/sdk/servicenetworking/Azure.ResourceManager.ServiceNetworking/src/Generated/Models/AssociationResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ServiceNetworking +{ + public partial class AssociationResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + AssociationData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + AssociationData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/servicenetworking/Azure.ResourceManager.ServiceNetworking/src/Generated/Models/FrontendResource.Serialization.cs b/sdk/servicenetworking/Azure.ResourceManager.ServiceNetworking/src/Generated/Models/FrontendResource.Serialization.cs new file mode 100644 index 000000000000..f2a6c7e1d9f4 --- /dev/null +++ b/sdk/servicenetworking/Azure.ResourceManager.ServiceNetworking/src/Generated/Models/FrontendResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ServiceNetworking +{ + public partial class FrontendResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + FrontendData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + FrontendData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/servicenetworking/Azure.ResourceManager.ServiceNetworking/src/Generated/Models/TrafficControllerResource.Serialization.cs b/sdk/servicenetworking/Azure.ResourceManager.ServiceNetworking/src/Generated/Models/TrafficControllerResource.Serialization.cs new file mode 100644 index 000000000000..f85c77140e5f --- /dev/null +++ b/sdk/servicenetworking/Azure.ResourceManager.ServiceNetworking/src/Generated/Models/TrafficControllerResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ServiceNetworking +{ + public partial class TrafficControllerResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + TrafficControllerData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + TrafficControllerData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/servicenetworking/Azure.ResourceManager.ServiceNetworking/src/Generated/RestOperations/AssociationsInterfaceRestOperations.cs b/sdk/servicenetworking/Azure.ResourceManager.ServiceNetworking/src/Generated/RestOperations/AssociationsInterfaceRestOperations.cs index 342fe7a7f0f5..880c28dc52a8 100644 --- a/sdk/servicenetworking/Azure.ResourceManager.ServiceNetworking/src/Generated/RestOperations/AssociationsInterfaceRestOperations.cs +++ b/sdk/servicenetworking/Azure.ResourceManager.ServiceNetworking/src/Generated/RestOperations/AssociationsInterfaceRestOperations.cs @@ -37,6 +37,21 @@ public AssociationsInterfaceRestOperations(HttpPipeline pipeline, string applica _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByTrafficControllerRequestUri(string subscriptionId, string resourceGroupName, string trafficControllerName) + { + 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.ServiceNetworking/trafficControllers/", false); + uri.AppendPath(trafficControllerName, true); + uri.AppendPath("/associations", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByTrafficControllerRequest(string subscriptionId, string resourceGroupName, string trafficControllerName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByTrafficController(string subscripti } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string trafficControllerName, string associationName) + { + 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.ServiceNetworking/trafficControllers/", false); + uri.AppendPath(trafficControllerName, true); + uri.AppendPath("/associations/", false); + uri.AppendPath(associationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string trafficControllerName, string associationName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscriptionId, string resourceGroup } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string trafficControllerName, string associationName, AssociationData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ServiceNetworking/trafficControllers/", false); + uri.AppendPath(trafficControllerName, true); + uri.AppendPath("/associations/", false); + uri.AppendPath(associationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string trafficControllerName, string associationName, AssociationData data) { var message = _pipeline.CreateMessage(); @@ -288,6 +335,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string trafficControllerName, string associationName, AssociationPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ServiceNetworking/trafficControllers/", false); + uri.AppendPath(trafficControllerName, true); + uri.AppendPath("/associations/", false); + uri.AppendPath(associationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string trafficControllerName, string associationName, AssociationPatch patch) { var message = _pipeline.CreateMessage(); @@ -380,6 +443,22 @@ public Response Update(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string trafficControllerName, string associationName) + { + 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.ServiceNetworking/trafficControllers/", false); + uri.AppendPath(trafficControllerName, true); + uri.AppendPath("/associations/", false); + uri.AppendPath(associationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string trafficControllerName, string associationName) { var message = _pipeline.CreateMessage(); @@ -458,6 +537,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string t } } + internal RequestUriBuilder CreateListByTrafficControllerNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string trafficControllerName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByTrafficControllerNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string trafficControllerName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/servicenetworking/Azure.ResourceManager.ServiceNetworking/src/Generated/RestOperations/FrontendsInterfaceRestOperations.cs b/sdk/servicenetworking/Azure.ResourceManager.ServiceNetworking/src/Generated/RestOperations/FrontendsInterfaceRestOperations.cs index 346337712b8e..667c729febbd 100644 --- a/sdk/servicenetworking/Azure.ResourceManager.ServiceNetworking/src/Generated/RestOperations/FrontendsInterfaceRestOperations.cs +++ b/sdk/servicenetworking/Azure.ResourceManager.ServiceNetworking/src/Generated/RestOperations/FrontendsInterfaceRestOperations.cs @@ -37,6 +37,21 @@ public FrontendsInterfaceRestOperations(HttpPipeline pipeline, string applicatio _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByTrafficControllerRequestUri(string subscriptionId, string resourceGroupName, string trafficControllerName) + { + 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.ServiceNetworking/trafficControllers/", false); + uri.AppendPath(trafficControllerName, true); + uri.AppendPath("/frontends", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByTrafficControllerRequest(string subscriptionId, string resourceGroupName, string trafficControllerName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByTrafficController(string subscriptionI } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string trafficControllerName, string frontendName) + { + 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.ServiceNetworking/trafficControllers/", false); + uri.AppendPath(trafficControllerName, true); + uri.AppendPath("/frontends/", false); + uri.AppendPath(frontendName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string trafficControllerName, string frontendName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscriptionId, string resourceGroupNam } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string trafficControllerName, string frontendName, FrontendData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ServiceNetworking/trafficControllers/", false); + uri.AppendPath(trafficControllerName, true); + uri.AppendPath("/frontends/", false); + uri.AppendPath(frontendName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string trafficControllerName, string frontendName, FrontendData data) { var message = _pipeline.CreateMessage(); @@ -288,6 +335,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string trafficControllerName, string frontendName, FrontendPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ServiceNetworking/trafficControllers/", false); + uri.AppendPath(trafficControllerName, true); + uri.AppendPath("/frontends/", false); + uri.AppendPath(frontendName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string trafficControllerName, string frontendName, FrontendPatch patch) { var message = _pipeline.CreateMessage(); @@ -380,6 +443,22 @@ public Response Update(string subscriptionId, string resourceGroup } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string trafficControllerName, string frontendName) + { + 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.ServiceNetworking/trafficControllers/", false); + uri.AppendPath(trafficControllerName, true); + uri.AppendPath("/frontends/", false); + uri.AppendPath(frontendName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string trafficControllerName, string frontendName) { var message = _pipeline.CreateMessage(); @@ -458,6 +537,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string t } } + internal RequestUriBuilder CreateListByTrafficControllerNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string trafficControllerName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByTrafficControllerNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string trafficControllerName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/servicenetworking/Azure.ResourceManager.ServiceNetworking/src/Generated/RestOperations/TrafficControllerInterfaceRestOperations.cs b/sdk/servicenetworking/Azure.ResourceManager.ServiceNetworking/src/Generated/RestOperations/TrafficControllerInterfaceRestOperations.cs index 7edab6faa024..c8bafbed7ffa 100644 --- a/sdk/servicenetworking/Azure.ResourceManager.ServiceNetworking/src/Generated/RestOperations/TrafficControllerInterfaceRestOperations.cs +++ b/sdk/servicenetworking/Azure.ResourceManager.ServiceNetworking/src/Generated/RestOperations/TrafficControllerInterfaceRestOperations.cs @@ -37,6 +37,17 @@ public TrafficControllerInterfaceRestOperations(HttpPipeline pipeline, string ap _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ServiceNetworking/trafficControllers", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,19 @@ public Response ListBySubscription(string subscript } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.ServiceNetworking/trafficControllers", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -177,6 +201,20 @@ public Response ListByResourceGroup(string subscrip } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string trafficControllerName) + { + 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.ServiceNetworking/trafficControllers/", false); + uri.AppendPath(trafficControllerName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string trafficControllerName) { var message = _pipeline.CreateMessage(); @@ -259,6 +297,20 @@ public Response Get(string subscriptionId, string resourc } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string trafficControllerName, TrafficControllerData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ServiceNetworking/trafficControllers/", false); + uri.AppendPath(trafficControllerName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string trafficControllerName, TrafficControllerData data) { var message = _pipeline.CreateMessage(); @@ -337,6 +389,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string trafficControllerName, TrafficControllerPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ServiceNetworking/trafficControllers/", false); + uri.AppendPath(trafficControllerName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string trafficControllerName, TrafficControllerPatch patch) { var message = _pipeline.CreateMessage(); @@ -423,6 +489,20 @@ public Response Update(string subscriptionId, string reso } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string trafficControllerName) + { + 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.ServiceNetworking/trafficControllers/", false); + uri.AppendPath(trafficControllerName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string trafficControllerName) { var message = _pipeline.CreateMessage(); @@ -495,6 +575,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string t } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -563,6 +651,14 @@ public Response ListBySubscriptionNextPage(string n } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/LongRunningOperation/SignalRArmOperation.cs b/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/LongRunningOperation/SignalRArmOperation.cs index 98451db32493..e677463d6794 100644 --- a/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/LongRunningOperation/SignalRArmOperation.cs +++ b/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/LongRunningOperation/SignalRArmOperation.cs @@ -20,21 +20,24 @@ internal class SignalRArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of SignalRArmOperation for mocking. protected SignalRArmOperation() { } - internal SignalRArmOperation(Response response) + internal SignalRArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal SignalRArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "SignalRArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal SignalRArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline p public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/LongRunningOperation/SignalRArmOperationOfT.cs b/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/LongRunningOperation/SignalRArmOperationOfT.cs index 463bb6c76e31..ee0e90b3f9bc 100644 --- a/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/LongRunningOperation/SignalRArmOperationOfT.cs +++ b/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/LongRunningOperation/SignalRArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class SignalRArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of SignalRArmOperation for mocking. protected SignalRArmOperation() { } - internal SignalRArmOperation(Response response) + internal SignalRArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal SignalRArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "SignalRArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal SignalRArmOperation(IOperationSource source, ClientDiagnostics clien public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/Models/SignalRCustomCertificateResource.Serialization.cs b/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/Models/SignalRCustomCertificateResource.Serialization.cs new file mode 100644 index 000000000000..23c4b7d9ea07 --- /dev/null +++ b/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/Models/SignalRCustomCertificateResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.SignalR +{ + public partial class SignalRCustomCertificateResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SignalRCustomCertificateData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SignalRCustomCertificateData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/Models/SignalRCustomDomainResource.Serialization.cs b/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/Models/SignalRCustomDomainResource.Serialization.cs new file mode 100644 index 000000000000..c53656702f3f --- /dev/null +++ b/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/Models/SignalRCustomDomainResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.SignalR +{ + public partial class SignalRCustomDomainResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SignalRCustomDomainData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SignalRCustomDomainData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/Models/SignalRPrivateEndpointConnectionResource.Serialization.cs b/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/Models/SignalRPrivateEndpointConnectionResource.Serialization.cs new file mode 100644 index 000000000000..1dc5b3904367 --- /dev/null +++ b/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/Models/SignalRPrivateEndpointConnectionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.SignalR +{ + public partial class SignalRPrivateEndpointConnectionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SignalRPrivateEndpointConnectionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SignalRPrivateEndpointConnectionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/Models/SignalRResource.Serialization.cs b/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/Models/SignalRResource.Serialization.cs new file mode 100644 index 000000000000..c2beb061af6d --- /dev/null +++ b/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/Models/SignalRResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.SignalR +{ + public partial class SignalRResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SignalRData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SignalRData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/Models/SignalRSharedPrivateLinkResource.Serialization.cs b/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/Models/SignalRSharedPrivateLinkResource.Serialization.cs new file mode 100644 index 000000000000..0e9ff30fb6eb --- /dev/null +++ b/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/Models/SignalRSharedPrivateLinkResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.SignalR +{ + public partial class SignalRSharedPrivateLinkResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SignalRSharedPrivateLinkResourceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SignalRSharedPrivateLinkResourceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/RestOperations/SignalRCustomCertificatesRestOperations.cs b/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/RestOperations/SignalRCustomCertificatesRestOperations.cs index 506d0694917e..25e995943e58 100644 --- a/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/RestOperations/SignalRCustomCertificatesRestOperations.cs +++ b/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/RestOperations/SignalRCustomCertificatesRestOperations.cs @@ -37,6 +37,21 @@ public SignalRCustomCertificatesRestOperations(HttpPipeline pipeline, string app _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string resourceName) + { + 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.SignalRService/signalR/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/customCertificates", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response List(string subscriptionId, } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string certificateName) + { + 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.SignalRService/signalR/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/customCertificates/", false); + uri.AppendPath(certificateName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string resourceName, string certificateName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscriptionId, string } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string certificateName, SignalRCustomCertificateData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.SignalRService/signalR/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/customCertificates/", false); + uri.AppendPath(certificateName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string resourceName, string certificateName, SignalRCustomCertificateData data) { var message = _pipeline.CreateMessage(); @@ -288,6 +335,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string certificateName) + { + 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.SignalRService/signalR/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/customCertificates/", false); + uri.AppendPath(certificateName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string resourceName, string certificateName) { var message = _pipeline.CreateMessage(); @@ -364,6 +427,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string resourceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/RestOperations/SignalRCustomDomainsRestOperations.cs b/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/RestOperations/SignalRCustomDomainsRestOperations.cs index 3b3401d0592d..796c6a326750 100644 --- a/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/RestOperations/SignalRCustomDomainsRestOperations.cs +++ b/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/RestOperations/SignalRCustomDomainsRestOperations.cs @@ -37,6 +37,21 @@ public SignalRCustomDomainsRestOperations(HttpPipeline pipeline, string applicat _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string resourceName) + { + 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.SignalRService/signalR/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/customDomains", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response List(string subscriptionId, strin } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string name) + { + 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.SignalRService/signalR/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/customDomains/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string resourceName, string name) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscriptionId, string resou } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string name, SignalRCustomDomainData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.SignalRService/signalR/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/customDomains/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string resourceName, string name, SignalRCustomDomainData data) { var message = _pipeline.CreateMessage(); @@ -286,6 +333,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string name) + { + 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.SignalRService/signalR/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/customDomains/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string resourceName, string name) { var message = _pipeline.CreateMessage(); @@ -364,6 +427,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string resourceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/RestOperations/SignalRPrivateEndpointConnectionsRestOperations.cs b/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/RestOperations/SignalRPrivateEndpointConnectionsRestOperations.cs index 7caefd6bf3ae..117c4699bc9f 100644 --- a/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/RestOperations/SignalRPrivateEndpointConnectionsRestOperations.cs +++ b/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/RestOperations/SignalRPrivateEndpointConnectionsRestOperations.cs @@ -37,6 +37,21 @@ public SignalRPrivateEndpointConnectionsRestOperations(HttpPipeline pipeline, st _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string resourceName) + { + 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.SignalRService/signalR/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/privateEndpointConnections", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response List(string subscrip } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string privateEndpointConnectionName) + { + 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.SignalRService/signalR/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string resourceName, string privateEndpointConnectionName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscriptionId, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string privateEndpointConnectionName, SignalRPrivateEndpointConnectionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.SignalRService/signalR/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string resourceName, string privateEndpointConnectionName, SignalRPrivateEndpointConnectionData data) { var message = _pipeline.CreateMessage(); @@ -296,6 +343,22 @@ public Response Update(string subscription } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string privateEndpointConnectionName) + { + 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.SignalRService/signalR/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string resourceName, string privateEndpointConnectionName) { var message = _pipeline.CreateMessage(); @@ -374,6 +437,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string resourceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/RestOperations/SignalRPrivateLinkResourcesRestOperations.cs b/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/RestOperations/SignalRPrivateLinkResourcesRestOperations.cs index 0edea5d6f37a..1a0de123b626 100644 --- a/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/RestOperations/SignalRPrivateLinkResourcesRestOperations.cs +++ b/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/RestOperations/SignalRPrivateLinkResourcesRestOperations.cs @@ -37,6 +37,21 @@ public SignalRPrivateLinkResourcesRestOperations(HttpPipeline pipeline, string a _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string resourceName) + { + 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.SignalRService/signalR/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/privateLinkResources", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,14 @@ public Response List(string subscriptionId } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string resourceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/RestOperations/SignalRRestOperations.cs b/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/RestOperations/SignalRRestOperations.cs index c12269e5c291..93f7f82fec99 100644 --- a/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/RestOperations/SignalRRestOperations.cs +++ b/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/RestOperations/SignalRRestOperations.cs @@ -37,6 +37,19 @@ public SignalRRestOperations(HttpPipeline pipeline, string applicationId, Uri en _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCheckNameAvailabilityRequestUri(string subscriptionId, AzureLocation location, SignalRNameAvailabilityContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.SignalRService/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/checkNameAvailability", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCheckNameAvailabilityRequest(string subscriptionId, AzureLocation location, SignalRNameAvailabilityContent content) { var message = _pipeline.CreateMessage(); @@ -116,6 +129,17 @@ public Response CheckNameAvailability(string subs } } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.SignalRService/signalR", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -183,6 +207,19 @@ public Response ListBySubscription(string subscriptionId, C } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.SignalRService/signalR", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -256,6 +293,20 @@ public Response ListByResourceGroup(string subscriptionId, } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string resourceName) + { + 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.SignalRService/signalR/", false); + uri.AppendPath(resourceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); @@ -338,6 +389,20 @@ public Response Get(string subscriptionId, string resourceGroupName } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string resourceName, SignalRData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.SignalRService/signalR/", false); + uri.AppendPath(resourceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string resourceName, SignalRData data) { var message = _pipeline.CreateMessage(); @@ -418,6 +483,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string resourceName) + { + 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.SignalRService/signalR/", false); + uri.AppendPath(resourceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); @@ -490,6 +569,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string resourceName, SignalRData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.SignalRService/signalR/", false); + uri.AppendPath(resourceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string resourceName, SignalRData data) { var message = _pipeline.CreateMessage(); @@ -568,6 +661,21 @@ public Response Update(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateListKeysRequestUri(string subscriptionId, string resourceGroupName, string resourceName) + { + 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.SignalRService/signalR/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/listKeys", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListKeysRequest(string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); @@ -647,6 +755,21 @@ public Response ListKeys(string subscriptionId, string resourceGrou } } + internal RequestUriBuilder CreateRegenerateKeyRequestUri(string subscriptionId, string resourceGroupName, string resourceName, SignalRRegenerateKeyContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.SignalRService/signalR/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/regenerateKey", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRegenerateKeyRequest(string subscriptionId, string resourceGroupName, string resourceName, SignalRRegenerateKeyContent content) { var message = _pipeline.CreateMessage(); @@ -724,6 +847,21 @@ public Response RegenerateKey(string subscriptionId, string resourceGroupName, s } } + internal RequestUriBuilder CreateRestartRequestUri(string subscriptionId, string resourceGroupName, string resourceName) + { + 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.SignalRService/signalR/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/restart", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRestartRequest(string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); @@ -795,6 +933,21 @@ public Response Restart(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreateListSkusRequestUri(string subscriptionId, string resourceGroupName, string resourceName) + { + 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.SignalRService/signalR/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/skus", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListSkusRequest(string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); @@ -874,6 +1027,14 @@ public Response ListSkus(string subscriptionId, string res } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -942,6 +1103,14 @@ public Response ListBySubscriptionNextPage(string nextLink, } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/RestOperations/SignalRSharedPrivateLinkResourcesRestOperations.cs b/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/RestOperations/SignalRSharedPrivateLinkResourcesRestOperations.cs index 55a07cad414f..1d374da822f1 100644 --- a/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/RestOperations/SignalRSharedPrivateLinkResourcesRestOperations.cs +++ b/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/RestOperations/SignalRSharedPrivateLinkResourcesRestOperations.cs @@ -37,6 +37,21 @@ public SignalRSharedPrivateLinkResourcesRestOperations(HttpPipeline pipeline, st _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string resourceName) + { + 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.SignalRService/signalR/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/sharedPrivateLinkResources", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response List(string subscrip } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string sharedPrivateLinkResourceName) + { + 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.SignalRService/signalR/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/sharedPrivateLinkResources/", false); + uri.AppendPath(sharedPrivateLinkResourceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string resourceName, string sharedPrivateLinkResourceName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscriptionId, } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string sharedPrivateLinkResourceName, SignalRSharedPrivateLinkResourceData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.SignalRService/signalR/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/sharedPrivateLinkResources/", false); + uri.AppendPath(sharedPrivateLinkResourceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string resourceName, string sharedPrivateLinkResourceName, SignalRSharedPrivateLinkResourceData data) { var message = _pipeline.CreateMessage(); @@ -288,6 +335,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string sharedPrivateLinkResourceName) + { + 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.SignalRService/signalR/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/sharedPrivateLinkResources/", false); + uri.AppendPath(sharedPrivateLinkResourceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string resourceName, string sharedPrivateLinkResourceName) { var message = _pipeline.CreateMessage(); @@ -366,6 +429,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string resourceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/RestOperations/UsagesRestOperations.cs b/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/RestOperations/UsagesRestOperations.cs index 62bd3767de60..7c82bcbf1052 100644 --- a/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/RestOperations/UsagesRestOperations.cs +++ b/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/RestOperations/UsagesRestOperations.cs @@ -37,6 +37,19 @@ public UsagesRestOperations(HttpPipeline pipeline, string applicationId, Uri end _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, AzureLocation location) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.SignalRService/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/usages", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, AzureLocation location) { var message = _pipeline.CreateMessage(); @@ -108,6 +121,14 @@ public Response List(string subscriptionId, AzureLocation loca } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, AzureLocation location) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, AzureLocation location) { var message = _pipeline.CreateMessage(); diff --git a/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/SignalRCustomCertificateResource.cs b/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/SignalRCustomCertificateResource.cs index 4518d645c623..11e36494868f 100644 --- a/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/SignalRCustomCertificateResource.cs +++ b/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/SignalRCustomCertificateResource.cs @@ -200,7 +200,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _signalRCustomCertificateRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new SignalRArmOperation(response); + var uri = _signalRCustomCertificateRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SignalRArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -242,7 +244,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _signalRCustomCertificateRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new SignalRArmOperation(response); + var uri = _signalRCustomCertificateRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SignalRArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/SignalRPrivateEndpointConnectionCollection.cs b/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/SignalRPrivateEndpointConnectionCollection.cs index d9a217222c52..d96bbbb6cc69 100644 --- a/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/SignalRPrivateEndpointConnectionCollection.cs +++ b/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/SignalRPrivateEndpointConnectionCollection.cs @@ -90,7 +90,9 @@ public virtual async Task try { var response = await _signalRPrivateEndpointConnectionRestClient.UpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, privateEndpointConnectionName, data, cancellationToken).ConfigureAwait(false); - var operation = new SignalRArmOperation(Response.FromValue(new SignalRPrivateEndpointConnectionResource(Client, response), response.GetRawResponse())); + var uri = _signalRPrivateEndpointConnectionRestClient.CreateUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, privateEndpointConnectionName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SignalRArmOperation(Response.FromValue(new SignalRPrivateEndpointConnectionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUp try { var response = _signalRPrivateEndpointConnectionRestClient.Update(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, privateEndpointConnectionName, data, cancellationToken); - var operation = new SignalRArmOperation(Response.FromValue(new SignalRPrivateEndpointConnectionResource(Client, response), response.GetRawResponse())); + var uri = _signalRPrivateEndpointConnectionRestClient.CreateUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, privateEndpointConnectionName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SignalRArmOperation(Response.FromValue(new SignalRPrivateEndpointConnectionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/SignalRPrivateEndpointConnectionResource.cs b/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/SignalRPrivateEndpointConnectionResource.cs index 46f70d21901b..e70d64cc346c 100644 --- a/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/SignalRPrivateEndpointConnectionResource.cs +++ b/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/SignalRPrivateEndpointConnectionResource.cs @@ -288,7 +288,9 @@ public virtual async Task try { var response = await _signalRPrivateEndpointConnectionRestClient.UpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new SignalRArmOperation(Response.FromValue(new SignalRPrivateEndpointConnectionResource(Client, response), response.GetRawResponse())); + var uri = _signalRPrivateEndpointConnectionRestClient.CreateUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SignalRArmOperation(Response.FromValue(new SignalRPrivateEndpointConnectionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -334,7 +336,9 @@ public virtual ArmOperation Update(Wai try { var response = _signalRPrivateEndpointConnectionRestClient.Update(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new SignalRArmOperation(Response.FromValue(new SignalRPrivateEndpointConnectionResource(Client, response), response.GetRawResponse())); + var uri = _signalRPrivateEndpointConnectionRestClient.CreateUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SignalRArmOperation(Response.FromValue(new SignalRPrivateEndpointConnectionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/sphere/Azure.ResourceManager.Sphere/src/Generated/LongRunningOperation/SphereArmOperation.cs b/sdk/sphere/Azure.ResourceManager.Sphere/src/Generated/LongRunningOperation/SphereArmOperation.cs index 82840bdaa209..094be7f3eece 100644 --- a/sdk/sphere/Azure.ResourceManager.Sphere/src/Generated/LongRunningOperation/SphereArmOperation.cs +++ b/sdk/sphere/Azure.ResourceManager.Sphere/src/Generated/LongRunningOperation/SphereArmOperation.cs @@ -20,21 +20,24 @@ internal class SphereArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of SphereArmOperation for mocking. protected SphereArmOperation() { } - internal SphereArmOperation(Response response) + internal SphereArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal SphereArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "SphereArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal SphereArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pi public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/sphere/Azure.ResourceManager.Sphere/src/Generated/LongRunningOperation/SphereArmOperationOfT.cs b/sdk/sphere/Azure.ResourceManager.Sphere/src/Generated/LongRunningOperation/SphereArmOperationOfT.cs index a4177573ffe4..c5c0bb7a987b 100644 --- a/sdk/sphere/Azure.ResourceManager.Sphere/src/Generated/LongRunningOperation/SphereArmOperationOfT.cs +++ b/sdk/sphere/Azure.ResourceManager.Sphere/src/Generated/LongRunningOperation/SphereArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class SphereArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of SphereArmOperation for mocking. protected SphereArmOperation() { } - internal SphereArmOperation(Response response) + internal SphereArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal SphereArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "SphereArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal SphereArmOperation(IOperationSource source, ClientDiagnostics client public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/sphere/Azure.ResourceManager.Sphere/src/Generated/Models/SphereCatalogResource.Serialization.cs b/sdk/sphere/Azure.ResourceManager.Sphere/src/Generated/Models/SphereCatalogResource.Serialization.cs new file mode 100644 index 000000000000..7819d006d633 --- /dev/null +++ b/sdk/sphere/Azure.ResourceManager.Sphere/src/Generated/Models/SphereCatalogResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sphere +{ + public partial class SphereCatalogResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SphereCatalogData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SphereCatalogData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sphere/Azure.ResourceManager.Sphere/src/Generated/Models/SphereCertificateResource.Serialization.cs b/sdk/sphere/Azure.ResourceManager.Sphere/src/Generated/Models/SphereCertificateResource.Serialization.cs new file mode 100644 index 000000000000..21945014c4e8 --- /dev/null +++ b/sdk/sphere/Azure.ResourceManager.Sphere/src/Generated/Models/SphereCertificateResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sphere +{ + public partial class SphereCertificateResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SphereCertificateData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SphereCertificateData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sphere/Azure.ResourceManager.Sphere/src/Generated/Models/SphereDeploymentResource.Serialization.cs b/sdk/sphere/Azure.ResourceManager.Sphere/src/Generated/Models/SphereDeploymentResource.Serialization.cs new file mode 100644 index 000000000000..940c6aa8d218 --- /dev/null +++ b/sdk/sphere/Azure.ResourceManager.Sphere/src/Generated/Models/SphereDeploymentResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sphere +{ + public partial class SphereDeploymentResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SphereDeploymentData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SphereDeploymentData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sphere/Azure.ResourceManager.Sphere/src/Generated/Models/SphereDeviceGroupResource.Serialization.cs b/sdk/sphere/Azure.ResourceManager.Sphere/src/Generated/Models/SphereDeviceGroupResource.Serialization.cs new file mode 100644 index 000000000000..703f04f57fd4 --- /dev/null +++ b/sdk/sphere/Azure.ResourceManager.Sphere/src/Generated/Models/SphereDeviceGroupResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sphere +{ + public partial class SphereDeviceGroupResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SphereDeviceGroupData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SphereDeviceGroupData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sphere/Azure.ResourceManager.Sphere/src/Generated/Models/SphereDeviceResource.Serialization.cs b/sdk/sphere/Azure.ResourceManager.Sphere/src/Generated/Models/SphereDeviceResource.Serialization.cs new file mode 100644 index 000000000000..000ffe3af44e --- /dev/null +++ b/sdk/sphere/Azure.ResourceManager.Sphere/src/Generated/Models/SphereDeviceResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sphere +{ + public partial class SphereDeviceResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SphereDeviceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SphereDeviceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sphere/Azure.ResourceManager.Sphere/src/Generated/Models/SphereImageResource.Serialization.cs b/sdk/sphere/Azure.ResourceManager.Sphere/src/Generated/Models/SphereImageResource.Serialization.cs new file mode 100644 index 000000000000..8b68867ef9ab --- /dev/null +++ b/sdk/sphere/Azure.ResourceManager.Sphere/src/Generated/Models/SphereImageResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sphere +{ + public partial class SphereImageResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SphereImageData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SphereImageData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sphere/Azure.ResourceManager.Sphere/src/Generated/Models/SphereProductResource.Serialization.cs b/sdk/sphere/Azure.ResourceManager.Sphere/src/Generated/Models/SphereProductResource.Serialization.cs new file mode 100644 index 000000000000..5bc27bf21f6b --- /dev/null +++ b/sdk/sphere/Azure.ResourceManager.Sphere/src/Generated/Models/SphereProductResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sphere +{ + public partial class SphereProductResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SphereProductData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SphereProductData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sphere/Azure.ResourceManager.Sphere/src/Generated/RestOperations/CatalogsRestOperations.cs b/sdk/sphere/Azure.ResourceManager.Sphere/src/Generated/RestOperations/CatalogsRestOperations.cs index b895f3b5d905..909ed007d791 100644 --- a/sdk/sphere/Azure.ResourceManager.Sphere/src/Generated/RestOperations/CatalogsRestOperations.cs +++ b/sdk/sphere/Azure.ResourceManager.Sphere/src/Generated/RestOperations/CatalogsRestOperations.cs @@ -37,6 +37,17 @@ public CatalogsRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.AzureSphere/catalogs", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,19 @@ public Response ListBySubscription(string subscriptionId, Can } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.AzureSphere/catalogs", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -177,6 +201,20 @@ public Response ListByResourceGroup(string subscriptionId, st } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string catalogName) + { + 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.AzureSphere/catalogs/", false); + uri.AppendPath(catalogName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string catalogName) { var message = _pipeline.CreateMessage(); @@ -259,6 +297,20 @@ public Response Get(string subscriptionId, string resourceGro } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string catalogName, SphereCatalogData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AzureSphere/catalogs/", false); + uri.AppendPath(catalogName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string catalogName, SphereCatalogData data) { var message = _pipeline.CreateMessage(); @@ -337,6 +389,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string catalogName, SphereCatalogPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AzureSphere/catalogs/", false); + uri.AppendPath(catalogName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string catalogName, SphereCatalogPatch patch) { var message = _pipeline.CreateMessage(); @@ -423,6 +489,20 @@ public Response Update(string subscriptionId, string resource } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string catalogName) + { + 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.AzureSphere/catalogs/", false); + uri.AppendPath(catalogName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string catalogName) { var message = _pipeline.CreateMessage(); @@ -495,6 +575,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateCountDevicesRequestUri(string subscriptionId, string resourceGroupName, string catalogName) + { + 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.AzureSphere/catalogs/", false); + uri.AppendPath(catalogName, true); + uri.AppendPath("/countDevices", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCountDevicesRequest(string subscriptionId, string resourceGroupName, string catalogName) { var message = _pipeline.CreateMessage(); @@ -574,6 +669,37 @@ public Response CountDevices(string subscriptionId, string re } } + internal RequestUriBuilder CreateListDeploymentsRequestUri(string subscriptionId, string resourceGroupName, string catalogName, string filter, int? top, int? skip, int? maxpagesize) + { + 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.AzureSphere/catalogs/", false); + uri.AppendPath(catalogName, true); + uri.AppendPath("/listDeployments", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skip != null) + { + uri.AppendQuery("$skip", skip.Value, true); + } + if (maxpagesize != null) + { + uri.AppendQuery("$maxpagesize", maxpagesize.Value, true); + } + return uri; + } + internal HttpMessage CreateListDeploymentsRequest(string subscriptionId, string resourceGroupName, string catalogName, string filter, int? top, int? skip, int? maxpagesize) { var message = _pipeline.CreateMessage(); @@ -677,6 +803,37 @@ public Response ListDeployments(string subscriptionId, str } } + internal RequestUriBuilder CreateListDeviceGroupsRequestUri(string subscriptionId, string resourceGroupName, string catalogName, ListSphereDeviceGroupsContent content, string filter, int? top, int? skip, int? maxpagesize) + { + 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.AzureSphere/catalogs/", false); + uri.AppendPath(catalogName, true); + uri.AppendPath("/listDeviceGroups", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skip != null) + { + uri.AppendQuery("$skip", skip.Value, true); + } + if (maxpagesize != null) + { + uri.AppendQuery("$maxpagesize", maxpagesize.Value, true); + } + return uri; + } + internal HttpMessage CreateListDeviceGroupsRequest(string subscriptionId, string resourceGroupName, string catalogName, ListSphereDeviceGroupsContent content, string filter, int? top, int? skip, int? maxpagesize) { var message = _pipeline.CreateMessage(); @@ -788,6 +945,37 @@ public Response ListDeviceGroups(string subscriptionId, s } } + internal RequestUriBuilder CreateListDeviceInsightsRequestUri(string subscriptionId, string resourceGroupName, string catalogName, string filter, int? top, int? skip, int? maxpagesize) + { + 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.AzureSphere/catalogs/", false); + uri.AppendPath(catalogName, true); + uri.AppendPath("/listDeviceInsights", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skip != null) + { + uri.AppendQuery("$skip", skip.Value, true); + } + if (maxpagesize != null) + { + uri.AppendQuery("$maxpagesize", maxpagesize.Value, true); + } + return uri; + } + internal HttpMessage CreateListDeviceInsightsRequest(string subscriptionId, string resourceGroupName, string catalogName, string filter, int? top, int? skip, int? maxpagesize) { var message = _pipeline.CreateMessage(); @@ -891,6 +1079,37 @@ public Response ListDeviceInsights(string subscriptionId, st } } + internal RequestUriBuilder CreateListDevicesRequestUri(string subscriptionId, string resourceGroupName, string catalogName, string filter, int? top, int? skip, int? maxpagesize) + { + 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.AzureSphere/catalogs/", false); + uri.AppendPath(catalogName, true); + uri.AppendPath("/listDevices", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skip != null) + { + uri.AppendQuery("$skip", skip.Value, true); + } + if (maxpagesize != null) + { + uri.AppendQuery("$maxpagesize", maxpagesize.Value, true); + } + return uri; + } + internal HttpMessage CreateListDevicesRequest(string subscriptionId, string resourceGroupName, string catalogName, string filter, int? top, int? skip, int? maxpagesize) { var message = _pipeline.CreateMessage(); @@ -994,6 +1213,14 @@ public Response ListDevices(string subscriptionId, string reso } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -1062,6 +1289,14 @@ public Response ListBySubscriptionNextPage(string nextLink, s } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -1134,6 +1369,14 @@ public Response ListByResourceGroupNextPage(string nextLink, } } + internal RequestUriBuilder CreateListDeploymentsNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string catalogName, string filter, int? top, int? skip, int? maxpagesize) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListDeploymentsNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string catalogName, string filter, int? top, int? skip, int? maxpagesize) { var message = _pipeline.CreateMessage(); @@ -1218,6 +1461,14 @@ public Response ListDeploymentsNextPage(string nextLink, s } } + internal RequestUriBuilder CreateListDeviceGroupsNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string catalogName, ListSphereDeviceGroupsContent content, string filter, int? top, int? skip, int? maxpagesize) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListDeviceGroupsNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string catalogName, ListSphereDeviceGroupsContent content, string filter, int? top, int? skip, int? maxpagesize) { var message = _pipeline.CreateMessage(); @@ -1306,6 +1557,14 @@ public Response ListDeviceGroupsNextPage(string nextLink, } } + internal RequestUriBuilder CreateListDeviceInsightsNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string catalogName, string filter, int? top, int? skip, int? maxpagesize) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListDeviceInsightsNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string catalogName, string filter, int? top, int? skip, int? maxpagesize) { var message = _pipeline.CreateMessage(); @@ -1390,6 +1649,14 @@ public Response ListDeviceInsightsNextPage(string nextLink, } } + internal RequestUriBuilder CreateListDevicesNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string catalogName, string filter, int? top, int? skip, int? maxpagesize) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListDevicesNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string catalogName, string filter, int? top, int? skip, int? maxpagesize) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sphere/Azure.ResourceManager.Sphere/src/Generated/RestOperations/CertificatesRestOperations.cs b/sdk/sphere/Azure.ResourceManager.Sphere/src/Generated/RestOperations/CertificatesRestOperations.cs index aec227bcdc5a..009489b69e41 100644 --- a/sdk/sphere/Azure.ResourceManager.Sphere/src/Generated/RestOperations/CertificatesRestOperations.cs +++ b/sdk/sphere/Azure.ResourceManager.Sphere/src/Generated/RestOperations/CertificatesRestOperations.cs @@ -37,6 +37,37 @@ public CertificatesRestOperations(HttpPipeline pipeline, string applicationId, U _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByCatalogRequestUri(string subscriptionId, string resourceGroupName, string catalogName, string filter, int? top, int? skip, int? maxpagesize) + { + 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.AzureSphere/catalogs/", false); + uri.AppendPath(catalogName, true); + uri.AppendPath("/certificates", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skip != null) + { + uri.AppendQuery("$skip", skip.Value, true); + } + if (maxpagesize != null) + { + uri.AppendQuery("$maxpagesize", maxpagesize.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByCatalogRequest(string subscriptionId, string resourceGroupName, string catalogName, string filter, int? top, int? skip, int? maxpagesize) { var message = _pipeline.CreateMessage(); @@ -140,6 +171,22 @@ public Response ListByCatalog(string subscriptionId, stri } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string catalogName, string serialNumber) + { + 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.AzureSphere/catalogs/", false); + uri.AppendPath(catalogName, true); + uri.AppendPath("/certificates/", false); + uri.AppendPath(serialNumber, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string catalogName, string serialNumber) { var message = _pipeline.CreateMessage(); @@ -228,6 +275,23 @@ public Response Get(string subscriptionId, string resourc } } + internal RequestUriBuilder CreateRetrieveCertChainRequestUri(string subscriptionId, string resourceGroupName, string catalogName, string serialNumber) + { + 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.AzureSphere/catalogs/", false); + uri.AppendPath(catalogName, true); + uri.AppendPath("/certificates/", false); + uri.AppendPath(serialNumber, true); + uri.AppendPath("/retrieveCertChain", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRetrieveCertChainRequest(string subscriptionId, string resourceGroupName, string catalogName, string serialNumber) { var message = _pipeline.CreateMessage(); @@ -313,6 +377,23 @@ public Response RetrieveCertChain(string subscript } } + internal RequestUriBuilder CreateRetrieveProofOfPossessionNonceRequestUri(string subscriptionId, string resourceGroupName, string catalogName, string serialNumber, ProofOfPossessionNonceContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AzureSphere/catalogs/", false); + uri.AppendPath(catalogName, true); + uri.AppendPath("/certificates/", false); + uri.AppendPath(serialNumber, true); + uri.AppendPath("/retrieveProofOfPossessionNonce", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRetrieveProofOfPossessionNonceRequest(string subscriptionId, string resourceGroupName, string catalogName, string serialNumber, ProofOfPossessionNonceContent content) { var message = _pipeline.CreateMessage(); @@ -406,6 +487,14 @@ public Response RetrieveProofOfPossessionNonce(s } } + internal RequestUriBuilder CreateListByCatalogNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string catalogName, string filter, int? top, int? skip, int? maxpagesize) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByCatalogNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string catalogName, string filter, int? top, int? skip, int? maxpagesize) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sphere/Azure.ResourceManager.Sphere/src/Generated/RestOperations/DeploymentsRestOperations.cs b/sdk/sphere/Azure.ResourceManager.Sphere/src/Generated/RestOperations/DeploymentsRestOperations.cs index 93e18e7a626d..8bd03bc20ed7 100644 --- a/sdk/sphere/Azure.ResourceManager.Sphere/src/Generated/RestOperations/DeploymentsRestOperations.cs +++ b/sdk/sphere/Azure.ResourceManager.Sphere/src/Generated/RestOperations/DeploymentsRestOperations.cs @@ -37,6 +37,41 @@ public DeploymentsRestOperations(HttpPipeline pipeline, string applicationId, Ur _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByDeviceGroupRequestUri(string subscriptionId, string resourceGroupName, string catalogName, string productName, string deviceGroupName, string filter, int? top, int? skip, int? maxpagesize) + { + 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.AzureSphere/catalogs/", false); + uri.AppendPath(catalogName, true); + uri.AppendPath("/products/", false); + uri.AppendPath(productName, true); + uri.AppendPath("/deviceGroups/", false); + uri.AppendPath(deviceGroupName, true); + uri.AppendPath("/deployments", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skip != null) + { + uri.AppendQuery("$skip", skip.Value, true); + } + if (maxpagesize != null) + { + uri.AppendQuery("$maxpagesize", maxpagesize.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByDeviceGroupRequest(string subscriptionId, string resourceGroupName, string catalogName, string productName, string deviceGroupName, string filter, int? top, int? skip, int? maxpagesize) { var message = _pipeline.CreateMessage(); @@ -152,6 +187,26 @@ public Response ListByDeviceGroup(string subscriptionId, s } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string catalogName, string productName, string deviceGroupName, string deploymentName) + { + 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.AzureSphere/catalogs/", false); + uri.AppendPath(catalogName, true); + uri.AppendPath("/products/", false); + uri.AppendPath(productName, true); + uri.AppendPath("/deviceGroups/", false); + uri.AppendPath(deviceGroupName, true); + uri.AppendPath("/deployments/", false); + uri.AppendPath(deploymentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string catalogName, string productName, string deviceGroupName, string deploymentName) { var message = _pipeline.CreateMessage(); @@ -252,6 +307,26 @@ public Response Get(string subscriptionId, string resource } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string catalogName, string productName, string deviceGroupName, string deploymentName, SphereDeploymentData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AzureSphere/catalogs/", false); + uri.AppendPath(catalogName, true); + uri.AppendPath("/products/", false); + uri.AppendPath(productName, true); + uri.AppendPath("/deviceGroups/", false); + uri.AppendPath(deviceGroupName, true); + uri.AppendPath("/deployments/", false); + uri.AppendPath(deploymentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string catalogName, string productName, string deviceGroupName, string deploymentName, SphereDeploymentData data) { var message = _pipeline.CreateMessage(); @@ -348,6 +423,26 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string catalogName, string productName, string deviceGroupName, string deploymentName) + { + 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.AzureSphere/catalogs/", false); + uri.AppendPath(catalogName, true); + uri.AppendPath("/products/", false); + uri.AppendPath(productName, true); + uri.AppendPath("/deviceGroups/", false); + uri.AppendPath(deviceGroupName, true); + uri.AppendPath("/deployments/", false); + uri.AppendPath(deploymentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string catalogName, string productName, string deviceGroupName, string deploymentName) { var message = _pipeline.CreateMessage(); @@ -438,6 +533,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateListByDeviceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string catalogName, string productName, string deviceGroupName, string filter, int? top, int? skip, int? maxpagesize) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByDeviceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string catalogName, string productName, string deviceGroupName, string filter, int? top, int? skip, int? maxpagesize) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sphere/Azure.ResourceManager.Sphere/src/Generated/RestOperations/DeviceGroupsRestOperations.cs b/sdk/sphere/Azure.ResourceManager.Sphere/src/Generated/RestOperations/DeviceGroupsRestOperations.cs index d308afb857d8..37ca4788001e 100644 --- a/sdk/sphere/Azure.ResourceManager.Sphere/src/Generated/RestOperations/DeviceGroupsRestOperations.cs +++ b/sdk/sphere/Azure.ResourceManager.Sphere/src/Generated/RestOperations/DeviceGroupsRestOperations.cs @@ -37,6 +37,39 @@ public DeviceGroupsRestOperations(HttpPipeline pipeline, string applicationId, U _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByProductRequestUri(string subscriptionId, string resourceGroupName, string catalogName, string productName, string filter, int? top, int? skip, int? maxpagesize) + { + 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.AzureSphere/catalogs/", false); + uri.AppendPath(catalogName, true); + uri.AppendPath("/products/", false); + uri.AppendPath(productName, true); + uri.AppendPath("/deviceGroups", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skip != null) + { + uri.AppendQuery("$skip", skip.Value, true); + } + if (maxpagesize != null) + { + uri.AppendQuery("$maxpagesize", maxpagesize.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByProductRequest(string subscriptionId, string resourceGroupName, string catalogName, string productName, string filter, int? top, int? skip, int? maxpagesize) { var message = _pipeline.CreateMessage(); @@ -146,6 +179,24 @@ public Response ListByProduct(string subscriptionId, stri } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string catalogName, string productName, string deviceGroupName) + { + 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.AzureSphere/catalogs/", false); + uri.AppendPath(catalogName, true); + uri.AppendPath("/products/", false); + uri.AppendPath(productName, true); + uri.AppendPath("/deviceGroups/", false); + uri.AppendPath(deviceGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string catalogName, string productName, string deviceGroupName) { var message = _pipeline.CreateMessage(); @@ -240,6 +291,24 @@ public Response Get(string subscriptionId, string resourc } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string catalogName, string productName, string deviceGroupName, SphereDeviceGroupData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AzureSphere/catalogs/", false); + uri.AppendPath(catalogName, true); + uri.AppendPath("/products/", false); + uri.AppendPath(productName, true); + uri.AppendPath("/deviceGroups/", false); + uri.AppendPath(deviceGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string catalogName, string productName, string deviceGroupName, SphereDeviceGroupData data) { var message = _pipeline.CreateMessage(); @@ -330,6 +399,24 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string catalogName, string productName, string deviceGroupName) + { + 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.AzureSphere/catalogs/", false); + uri.AppendPath(catalogName, true); + uri.AppendPath("/products/", false); + uri.AppendPath(productName, true); + uri.AppendPath("/deviceGroups/", false); + uri.AppendPath(deviceGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string catalogName, string productName, string deviceGroupName) { var message = _pipeline.CreateMessage(); @@ -414,6 +501,24 @@ public Response Delete(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string catalogName, string productName, string deviceGroupName, SphereDeviceGroupPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AzureSphere/catalogs/", false); + uri.AppendPath(catalogName, true); + uri.AppendPath("/products/", false); + uri.AppendPath(productName, true); + uri.AppendPath("/deviceGroups/", false); + uri.AppendPath(deviceGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string catalogName, string productName, string deviceGroupName, SphereDeviceGroupPatch patch) { var message = _pipeline.CreateMessage(); @@ -504,6 +609,25 @@ public Response Update(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateClaimDevicesRequestUri(string subscriptionId, string resourceGroupName, string catalogName, string productName, string deviceGroupName, ClaimSphereDevicesContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AzureSphere/catalogs/", false); + uri.AppendPath(catalogName, true); + uri.AppendPath("/products/", false); + uri.AppendPath(productName, true); + uri.AppendPath("/deviceGroups/", false); + uri.AppendPath(deviceGroupName, true); + uri.AppendPath("/claimDevices", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateClaimDevicesRequest(string subscriptionId, string resourceGroupName, string catalogName, string productName, string deviceGroupName, ClaimSphereDevicesContent content) { var message = _pipeline.CreateMessage(); @@ -593,6 +717,25 @@ public Response ClaimDevices(string subscriptionId, string resourceGroupName, st } } + internal RequestUriBuilder CreateCountDevicesRequestUri(string subscriptionId, string resourceGroupName, string catalogName, string productName, string deviceGroupName) + { + 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.AzureSphere/catalogs/", false); + uri.AppendPath(catalogName, true); + uri.AppendPath("/products/", false); + uri.AppendPath(productName, true); + uri.AppendPath("/deviceGroups/", false); + uri.AppendPath(deviceGroupName, true); + uri.AppendPath("/countDevices", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCountDevicesRequest(string subscriptionId, string resourceGroupName, string catalogName, string productName, string deviceGroupName) { var message = _pipeline.CreateMessage(); @@ -684,6 +827,14 @@ public Response CountDevices(string subscriptionId, string re } } + internal RequestUriBuilder CreateListByProductNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string catalogName, string productName, string filter, int? top, int? skip, int? maxpagesize) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByProductNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string catalogName, string productName, string filter, int? top, int? skip, int? maxpagesize) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sphere/Azure.ResourceManager.Sphere/src/Generated/RestOperations/DevicesRestOperations.cs b/sdk/sphere/Azure.ResourceManager.Sphere/src/Generated/RestOperations/DevicesRestOperations.cs index 71a588251f32..73e3a1db2e78 100644 --- a/sdk/sphere/Azure.ResourceManager.Sphere/src/Generated/RestOperations/DevicesRestOperations.cs +++ b/sdk/sphere/Azure.ResourceManager.Sphere/src/Generated/RestOperations/DevicesRestOperations.cs @@ -37,6 +37,25 @@ public DevicesRestOperations(HttpPipeline pipeline, string applicationId, Uri en _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByDeviceGroupRequestUri(string subscriptionId, string resourceGroupName, string catalogName, string productName, string deviceGroupName) + { + 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.AzureSphere/catalogs/", false); + uri.AppendPath(catalogName, true); + uri.AppendPath("/products/", false); + uri.AppendPath(productName, true); + uri.AppendPath("/deviceGroups/", false); + uri.AppendPath(deviceGroupName, true); + uri.AppendPath("/devices", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByDeviceGroupRequest(string subscriptionId, string resourceGroupName, string catalogName, string productName, string deviceGroupName) { var message = _pipeline.CreateMessage(); @@ -128,6 +147,26 @@ public Response ListByDeviceGroup(string subscriptionId, strin } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string catalogName, string productName, string deviceGroupName, string deviceName) + { + 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.AzureSphere/catalogs/", false); + uri.AppendPath(catalogName, true); + uri.AppendPath("/products/", false); + uri.AppendPath(productName, true); + uri.AppendPath("/deviceGroups/", false); + uri.AppendPath(deviceGroupName, true); + uri.AppendPath("/devices/", false); + uri.AppendPath(deviceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string catalogName, string productName, string deviceGroupName, string deviceName) { var message = _pipeline.CreateMessage(); @@ -228,6 +267,26 @@ public Response Get(string subscriptionId, string resourceGrou } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string catalogName, string productName, string deviceGroupName, string deviceName, SphereDeviceData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AzureSphere/catalogs/", false); + uri.AppendPath(catalogName, true); + uri.AppendPath("/products/", false); + uri.AppendPath(productName, true); + uri.AppendPath("/deviceGroups/", false); + uri.AppendPath(deviceGroupName, true); + uri.AppendPath("/devices/", false); + uri.AppendPath(deviceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string catalogName, string productName, string deviceGroupName, string deviceName, SphereDeviceData data) { var message = _pipeline.CreateMessage(); @@ -324,6 +383,26 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string catalogName, string productName, string deviceGroupName, string deviceName) + { + 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.AzureSphere/catalogs/", false); + uri.AppendPath(catalogName, true); + uri.AppendPath("/products/", false); + uri.AppendPath(productName, true); + uri.AppendPath("/deviceGroups/", false); + uri.AppendPath(deviceGroupName, true); + uri.AppendPath("/devices/", false); + uri.AppendPath(deviceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string catalogName, string productName, string deviceGroupName, string deviceName) { var message = _pipeline.CreateMessage(); @@ -414,6 +493,26 @@ public Response Delete(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string catalogName, string productName, string deviceGroupName, string deviceName, SphereDevicePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AzureSphere/catalogs/", false); + uri.AppendPath(catalogName, true); + uri.AppendPath("/products/", false); + uri.AppendPath(productName, true); + uri.AppendPath("/deviceGroups/", false); + uri.AppendPath(deviceGroupName, true); + uri.AppendPath("/devices/", false); + uri.AppendPath(deviceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string catalogName, string productName, string deviceGroupName, string deviceName, SphereDevicePatch patch) { var message = _pipeline.CreateMessage(); @@ -510,6 +609,27 @@ public Response Update(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateGenerateCapabilityImageRequestUri(string subscriptionId, string resourceGroupName, string catalogName, string productName, string deviceGroupName, string deviceName, GenerateCapabilityImageContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AzureSphere/catalogs/", false); + uri.AppendPath(catalogName, true); + uri.AppendPath("/products/", false); + uri.AppendPath(productName, true); + uri.AppendPath("/deviceGroups/", false); + uri.AppendPath(deviceGroupName, true); + uri.AppendPath("/devices/", false); + uri.AppendPath(deviceName, true); + uri.AppendPath("/generateCapabilityImage", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGenerateCapabilityImageRequest(string subscriptionId, string resourceGroupName, string catalogName, string productName, string deviceGroupName, string deviceName, GenerateCapabilityImageContent content) { var message = _pipeline.CreateMessage(); @@ -607,6 +727,14 @@ public Response GenerateCapabilityImage(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateListByDeviceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string catalogName, string productName, string deviceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByDeviceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string catalogName, string productName, string deviceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sphere/Azure.ResourceManager.Sphere/src/Generated/RestOperations/ImagesRestOperations.cs b/sdk/sphere/Azure.ResourceManager.Sphere/src/Generated/RestOperations/ImagesRestOperations.cs index df0ee2860ba3..44efcbf325ab 100644 --- a/sdk/sphere/Azure.ResourceManager.Sphere/src/Generated/RestOperations/ImagesRestOperations.cs +++ b/sdk/sphere/Azure.ResourceManager.Sphere/src/Generated/RestOperations/ImagesRestOperations.cs @@ -37,6 +37,37 @@ public ImagesRestOperations(HttpPipeline pipeline, string applicationId, Uri end _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByCatalogRequestUri(string subscriptionId, string resourceGroupName, string catalogName, string filter, int? top, int? skip, int? maxpagesize) + { + 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.AzureSphere/catalogs/", false); + uri.AppendPath(catalogName, true); + uri.AppendPath("/images", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skip != null) + { + uri.AppendQuery("$skip", skip.Value, true); + } + if (maxpagesize != null) + { + uri.AppendQuery("$maxpagesize", maxpagesize.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByCatalogRequest(string subscriptionId, string resourceGroupName, string catalogName, string filter, int? top, int? skip, int? maxpagesize) { var message = _pipeline.CreateMessage(); @@ -140,6 +171,22 @@ public Response ListByCatalog(string subscriptionId, string res } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string catalogName, string imageName) + { + 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.AzureSphere/catalogs/", false); + uri.AppendPath(catalogName, true); + uri.AppendPath("/images/", false); + uri.AppendPath(imageName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string catalogName, string imageName) { var message = _pipeline.CreateMessage(); @@ -228,6 +275,22 @@ public Response Get(string subscriptionId, string resourceGroup } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string catalogName, string imageName, SphereImageData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AzureSphere/catalogs/", false); + uri.AppendPath(catalogName, true); + uri.AppendPath("/images/", false); + uri.AppendPath(imageName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string catalogName, string imageName, SphereImageData data) { var message = _pipeline.CreateMessage(); @@ -312,6 +375,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string catalogName, string imageName) + { + 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.AzureSphere/catalogs/", false); + uri.AppendPath(catalogName, true); + uri.AppendPath("/images/", false); + uri.AppendPath(imageName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string catalogName, string imageName) { var message = _pipeline.CreateMessage(); @@ -390,6 +469,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateListByCatalogNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string catalogName, string filter, int? top, int? skip, int? maxpagesize) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByCatalogNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string catalogName, string filter, int? top, int? skip, int? maxpagesize) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sphere/Azure.ResourceManager.Sphere/src/Generated/RestOperations/ProductsRestOperations.cs b/sdk/sphere/Azure.ResourceManager.Sphere/src/Generated/RestOperations/ProductsRestOperations.cs index c6cd153967b5..eeb7257ea786 100644 --- a/sdk/sphere/Azure.ResourceManager.Sphere/src/Generated/RestOperations/ProductsRestOperations.cs +++ b/sdk/sphere/Azure.ResourceManager.Sphere/src/Generated/RestOperations/ProductsRestOperations.cs @@ -37,6 +37,21 @@ public ProductsRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByCatalogRequestUri(string subscriptionId, string resourceGroupName, string catalogName) + { + 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.AzureSphere/catalogs/", false); + uri.AppendPath(catalogName, true); + uri.AppendPath("/products", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByCatalogRequest(string subscriptionId, string resourceGroupName, string catalogName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByCatalog(string subscriptionId, string r } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string catalogName, string productName) + { + 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.AzureSphere/catalogs/", false); + uri.AppendPath(catalogName, true); + uri.AppendPath("/products/", false); + uri.AppendPath(productName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string catalogName, string productName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscriptionId, string resourceGro } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string catalogName, string productName, SphereProductData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AzureSphere/catalogs/", false); + uri.AppendPath(catalogName, true); + uri.AppendPath("/products/", false); + uri.AppendPath(productName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string catalogName, string productName, SphereProductData data) { var message = _pipeline.CreateMessage(); @@ -288,6 +335,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string catalogName, string productName) + { + 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.AzureSphere/catalogs/", false); + uri.AppendPath(catalogName, true); + uri.AppendPath("/products/", false); + uri.AppendPath(productName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string catalogName, string productName) { var message = _pipeline.CreateMessage(); @@ -366,6 +429,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string catalogName, string productName, SphereProductPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AzureSphere/catalogs/", false); + uri.AppendPath(catalogName, true); + uri.AppendPath("/products/", false); + uri.AppendPath(productName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string catalogName, string productName, SphereProductPatch patch) { var message = _pipeline.CreateMessage(); @@ -450,6 +529,23 @@ public Response Update(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateCountDevicesRequestUri(string subscriptionId, string resourceGroupName, string catalogName, string productName) + { + 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.AzureSphere/catalogs/", false); + uri.AppendPath(catalogName, true); + uri.AppendPath("/products/", false); + uri.AppendPath(productName, true); + uri.AppendPath("/countDevices", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCountDevicesRequest(string subscriptionId, string resourceGroupName, string catalogName, string productName) { var message = _pipeline.CreateMessage(); @@ -535,6 +631,23 @@ public Response CountDevices(string subscriptionId, string re } } + internal RequestUriBuilder CreateGenerateDefaultDeviceGroupsRequestUri(string subscriptionId, string resourceGroupName, string catalogName, string productName) + { + 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.AzureSphere/catalogs/", false); + uri.AppendPath(catalogName, true); + uri.AppendPath("/products/", false); + uri.AppendPath(productName, true); + uri.AppendPath("/generateDefaultDeviceGroups", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGenerateDefaultDeviceGroupsRequest(string subscriptionId, string resourceGroupName, string catalogName, string productName) { var message = _pipeline.CreateMessage(); @@ -620,6 +733,14 @@ public Response GenerateDefaultDeviceGroups(string subscr } } + internal RequestUriBuilder CreateListByCatalogNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string catalogName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByCatalogNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string catalogName) { var message = _pipeline.CreateMessage(); @@ -696,6 +817,14 @@ public Response ListByCatalogNextPage(string nextLink, string } } + internal RequestUriBuilder CreateGenerateDefaultDeviceGroupsNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string catalogName, string productName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateGenerateDefaultDeviceGroupsNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string catalogName, string productName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/springappdiscovery/Azure.ResourceManager.SpringAppDiscovery/src/Generated/LongRunningOperation/SpringAppDiscoveryArmOperation.cs b/sdk/springappdiscovery/Azure.ResourceManager.SpringAppDiscovery/src/Generated/LongRunningOperation/SpringAppDiscoveryArmOperation.cs index 3d40f194eba2..0bd0a3d0f040 100644 --- a/sdk/springappdiscovery/Azure.ResourceManager.SpringAppDiscovery/src/Generated/LongRunningOperation/SpringAppDiscoveryArmOperation.cs +++ b/sdk/springappdiscovery/Azure.ResourceManager.SpringAppDiscovery/src/Generated/LongRunningOperation/SpringAppDiscoveryArmOperation.cs @@ -20,21 +20,24 @@ internal class SpringAppDiscoveryArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of SpringAppDiscoveryArmOperation for mocking. protected SpringAppDiscoveryArmOperation() { } - internal SpringAppDiscoveryArmOperation(Response response) + internal SpringAppDiscoveryArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal SpringAppDiscoveryArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "SpringAppDiscoveryArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal SpringAppDiscoveryArmOperation(ClientDiagnostics clientDiagnostics, Htt public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/springappdiscovery/Azure.ResourceManager.SpringAppDiscovery/src/Generated/LongRunningOperation/SpringAppDiscoveryArmOperationOfT.cs b/sdk/springappdiscovery/Azure.ResourceManager.SpringAppDiscovery/src/Generated/LongRunningOperation/SpringAppDiscoveryArmOperationOfT.cs index 14d864317397..446883cc1345 100644 --- a/sdk/springappdiscovery/Azure.ResourceManager.SpringAppDiscovery/src/Generated/LongRunningOperation/SpringAppDiscoveryArmOperationOfT.cs +++ b/sdk/springappdiscovery/Azure.ResourceManager.SpringAppDiscovery/src/Generated/LongRunningOperation/SpringAppDiscoveryArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class SpringAppDiscoveryArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of SpringAppDiscoveryArmOperation for mocking. protected SpringAppDiscoveryArmOperation() { } - internal SpringAppDiscoveryArmOperation(Response response) + internal SpringAppDiscoveryArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal SpringAppDiscoveryArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "SpringAppDiscoveryArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal SpringAppDiscoveryArmOperation(IOperationSource source, ClientDiagno public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/springappdiscovery/Azure.ResourceManager.SpringAppDiscovery/src/Generated/Models/SpringBootAppResource.Serialization.cs b/sdk/springappdiscovery/Azure.ResourceManager.SpringAppDiscovery/src/Generated/Models/SpringBootAppResource.Serialization.cs new file mode 100644 index 000000000000..d0056a6e1560 --- /dev/null +++ b/sdk/springappdiscovery/Azure.ResourceManager.SpringAppDiscovery/src/Generated/Models/SpringBootAppResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.SpringAppDiscovery +{ + public partial class SpringBootAppResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SpringBootAppData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SpringBootAppData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/springappdiscovery/Azure.ResourceManager.SpringAppDiscovery/src/Generated/Models/SpringBootServerResource.Serialization.cs b/sdk/springappdiscovery/Azure.ResourceManager.SpringAppDiscovery/src/Generated/Models/SpringBootServerResource.Serialization.cs new file mode 100644 index 000000000000..156fb290ce5e --- /dev/null +++ b/sdk/springappdiscovery/Azure.ResourceManager.SpringAppDiscovery/src/Generated/Models/SpringBootServerResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.SpringAppDiscovery +{ + public partial class SpringBootServerResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SpringBootServerData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SpringBootServerData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/springappdiscovery/Azure.ResourceManager.SpringAppDiscovery/src/Generated/Models/SpringBootSiteErrorSummaryResource.Serialization.cs b/sdk/springappdiscovery/Azure.ResourceManager.SpringAppDiscovery/src/Generated/Models/SpringBootSiteErrorSummaryResource.Serialization.cs new file mode 100644 index 000000000000..d41a0941aff0 --- /dev/null +++ b/sdk/springappdiscovery/Azure.ResourceManager.SpringAppDiscovery/src/Generated/Models/SpringBootSiteErrorSummaryResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.SpringAppDiscovery +{ + public partial class SpringBootSiteErrorSummaryResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SpringBootSiteErrorSummaryData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SpringBootSiteErrorSummaryData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/springappdiscovery/Azure.ResourceManager.SpringAppDiscovery/src/Generated/Models/SpringBootSiteResource.Serialization.cs b/sdk/springappdiscovery/Azure.ResourceManager.SpringAppDiscovery/src/Generated/Models/SpringBootSiteResource.Serialization.cs new file mode 100644 index 000000000000..5ed743a125a1 --- /dev/null +++ b/sdk/springappdiscovery/Azure.ResourceManager.SpringAppDiscovery/src/Generated/Models/SpringBootSiteResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.SpringAppDiscovery +{ + public partial class SpringBootSiteResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SpringBootSiteData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SpringBootSiteData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/springappdiscovery/Azure.ResourceManager.SpringAppDiscovery/src/Generated/Models/SpringBootSiteSummaryResource.Serialization.cs b/sdk/springappdiscovery/Azure.ResourceManager.SpringAppDiscovery/src/Generated/Models/SpringBootSiteSummaryResource.Serialization.cs new file mode 100644 index 000000000000..722d9a04b79e --- /dev/null +++ b/sdk/springappdiscovery/Azure.ResourceManager.SpringAppDiscovery/src/Generated/Models/SpringBootSiteSummaryResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.SpringAppDiscovery +{ + public partial class SpringBootSiteSummaryResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SpringBootSiteSummaryData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SpringBootSiteSummaryData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/springappdiscovery/Azure.ResourceManager.SpringAppDiscovery/src/Generated/RestOperations/ErrorSummariesRestOperations.cs b/sdk/springappdiscovery/Azure.ResourceManager.SpringAppDiscovery/src/Generated/RestOperations/ErrorSummariesRestOperations.cs index 0538ae054df7..882a8fd5fcba 100644 --- a/sdk/springappdiscovery/Azure.ResourceManager.SpringAppDiscovery/src/Generated/RestOperations/ErrorSummariesRestOperations.cs +++ b/sdk/springappdiscovery/Azure.ResourceManager.SpringAppDiscovery/src/Generated/RestOperations/ErrorSummariesRestOperations.cs @@ -37,6 +37,22 @@ public ErrorSummariesRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string siteName, string errorSummaryName) + { + 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.OffAzureSpringBoot/springbootsites/", false); + uri.AppendPath(siteName, true); + uri.AppendPath("/errorSummaries/", false); + uri.AppendPath(errorSummaryName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string siteName, string errorSummaryName) { var message = _pipeline.CreateMessage(); @@ -125,6 +141,21 @@ public Response Get(string subscriptionId, strin } } + internal RequestUriBuilder CreateListBySiteRequestUri(string subscriptionId, string resourceGroupName, string siteName) + { + 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.OffAzureSpringBoot/springbootsites/", false); + uri.AppendPath(siteName, true); + uri.AppendPath("/errorSummaries", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySiteRequest(string subscriptionId, string resourceGroupName, string siteName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,14 @@ public Response ListBySite(string subscriptionId, string resou } } + internal RequestUriBuilder CreateListBySiteNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string siteName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySiteNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string siteName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/springappdiscovery/Azure.ResourceManager.SpringAppDiscovery/src/Generated/RestOperations/SpringbootappsRestOperations.cs b/sdk/springappdiscovery/Azure.ResourceManager.SpringAppDiscovery/src/Generated/RestOperations/SpringbootappsRestOperations.cs index f031f033b20d..fa1e60846eed 100644 --- a/sdk/springappdiscovery/Azure.ResourceManager.SpringAppDiscovery/src/Generated/RestOperations/SpringbootappsRestOperations.cs +++ b/sdk/springappdiscovery/Azure.ResourceManager.SpringAppDiscovery/src/Generated/RestOperations/SpringbootappsRestOperations.cs @@ -37,6 +37,22 @@ public SpringbootappsRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string siteName, string springbootappsName) + { + 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.OffAzureSpringBoot/springbootsites/", false); + uri.AppendPath(siteName, true); + uri.AppendPath("/springbootapps/", false); + uri.AppendPath(springbootappsName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string siteName, string springbootappsName) { var message = _pipeline.CreateMessage(); @@ -125,6 +141,22 @@ public Response Get(string subscriptionId, string resourceGro } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string siteName, string springbootappsName, SpringBootAppPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.OffAzureSpringBoot/springbootsites/", false); + uri.AppendPath(siteName, true); + uri.AppendPath("/springbootapps/", false); + uri.AppendPath(springbootappsName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string siteName, string springbootappsName, SpringBootAppPatch patch) { var message = _pipeline.CreateMessage(); @@ -209,6 +241,21 @@ public Response Update(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName, string siteName) + { + 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.OffAzureSpringBoot/springbootsites/", false); + uri.AppendPath(siteName, true); + uri.AppendPath("/springbootapps", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName, string siteName) { var message = _pipeline.CreateMessage(); @@ -288,6 +335,19 @@ public Response ListByResourceGroup(string subscriptionId, st } } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId, string siteName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.OffAzureSpringBoot/springbootsites/", false); + uri.AppendPath(siteName, true); + uri.AppendPath("/springbootapps", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId, string siteName) { var message = _pipeline.CreateMessage(); @@ -361,6 +421,14 @@ public Response ListBySubscription(string subscriptionId, str } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string siteName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string siteName) { var message = _pipeline.CreateMessage(); @@ -437,6 +505,14 @@ public Response ListByResourceGroupNextPage(string nextLink, } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId, string siteName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId, string siteName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/springappdiscovery/Azure.ResourceManager.SpringAppDiscovery/src/Generated/RestOperations/SpringbootserversRestOperations.cs b/sdk/springappdiscovery/Azure.ResourceManager.SpringAppDiscovery/src/Generated/RestOperations/SpringbootserversRestOperations.cs index a68cf8b319d2..79541de733c4 100644 --- a/sdk/springappdiscovery/Azure.ResourceManager.SpringAppDiscovery/src/Generated/RestOperations/SpringbootserversRestOperations.cs +++ b/sdk/springappdiscovery/Azure.ResourceManager.SpringAppDiscovery/src/Generated/RestOperations/SpringbootserversRestOperations.cs @@ -37,6 +37,22 @@ public SpringbootserversRestOperations(HttpPipeline pipeline, string application _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string siteName, string springbootserversName) + { + 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.OffAzureSpringBoot/springbootsites/", false); + uri.AppendPath(siteName, true); + uri.AppendPath("/springbootservers/", false); + uri.AppendPath(springbootserversName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string siteName, string springbootserversName) { var message = _pipeline.CreateMessage(); @@ -125,6 +141,22 @@ public Response Get(string subscriptionId, string resource } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string siteName, string springbootserversName, SpringBootServerData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.OffAzureSpringBoot/springbootsites/", false); + uri.AppendPath(siteName, true); + uri.AppendPath("/springbootservers/", false); + uri.AppendPath(springbootserversName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string siteName, string springbootserversName, SpringBootServerData data) { var message = _pipeline.CreateMessage(); @@ -219,6 +251,22 @@ public Response CreateOrUpdate(string subscriptionId, stri } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string siteName, string springbootserversName) + { + 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.OffAzureSpringBoot/springbootsites/", false); + uri.AppendPath(siteName, true); + uri.AppendPath("/springbootservers/", false); + uri.AppendPath(springbootserversName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string siteName, string springbootserversName) { var message = _pipeline.CreateMessage(); @@ -295,6 +343,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string siteName, string springbootserversName, SpringBootServerPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.OffAzureSpringBoot/springbootsites/", false); + uri.AppendPath(siteName, true); + uri.AppendPath("/springbootservers/", false); + uri.AppendPath(springbootserversName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string siteName, string springbootserversName, SpringBootServerPatch patch) { var message = _pipeline.CreateMessage(); @@ -379,6 +443,21 @@ public Response Update(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName, string siteName) + { + 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.OffAzureSpringBoot/springbootsites/", false); + uri.AppendPath(siteName, true); + uri.AppendPath("/springbootservers", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName, string siteName) { var message = _pipeline.CreateMessage(); @@ -458,6 +537,19 @@ public Response ListByResourceGroup(string subscriptionId, } } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId, string siteName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.OffAzureSpringBoot/springbootsites/", false); + uri.AppendPath(siteName, true); + uri.AppendPath("/springbootservers", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId, string siteName) { var message = _pipeline.CreateMessage(); @@ -531,6 +623,14 @@ public Response ListBySubscription(string subscriptionId, } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string siteName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string siteName) { var message = _pipeline.CreateMessage(); @@ -607,6 +707,14 @@ public Response ListByResourceGroupNextPage(string nextLin } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId, string siteName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId, string siteName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/springappdiscovery/Azure.ResourceManager.SpringAppDiscovery/src/Generated/RestOperations/SpringbootsitesRestOperations.cs b/sdk/springappdiscovery/Azure.ResourceManager.SpringAppDiscovery/src/Generated/RestOperations/SpringbootsitesRestOperations.cs index b9e801715ed0..634313f83be6 100644 --- a/sdk/springappdiscovery/Azure.ResourceManager.SpringAppDiscovery/src/Generated/RestOperations/SpringbootsitesRestOperations.cs +++ b/sdk/springappdiscovery/Azure.ResourceManager.SpringAppDiscovery/src/Generated/RestOperations/SpringbootsitesRestOperations.cs @@ -37,6 +37,20 @@ public SpringbootsitesRestOperations(HttpPipeline pipeline, string applicationId _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string springbootsitesName) + { + 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.OffAzureSpringBoot/springbootsites/", false); + uri.AppendPath(springbootsitesName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string springbootsitesName) { var message = _pipeline.CreateMessage(); @@ -119,6 +133,20 @@ public Response Get(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string springbootsitesName, SpringBootSiteData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.OffAzureSpringBoot/springbootsites/", false); + uri.AppendPath(springbootsitesName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string springbootsitesName, SpringBootSiteData data) { var message = _pipeline.CreateMessage(); @@ -207,6 +235,20 @@ public Response CreateOrUpdate(string subscriptionId, string } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string springbootsitesName) + { + 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.OffAzureSpringBoot/springbootsites/", false); + uri.AppendPath(springbootsitesName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string springbootsitesName) { var message = _pipeline.CreateMessage(); @@ -277,6 +319,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string springbootsitesName, SpringBootSitePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.OffAzureSpringBoot/springbootsites/", false); + uri.AppendPath(springbootsitesName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string springbootsitesName, SpringBootSitePatch patch) { var message = _pipeline.CreateMessage(); @@ -355,6 +411,21 @@ public Response Update(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateTriggerRefreshSiteRequestUri(string subscriptionId, string resourceGroupName, string springbootsitesName) + { + 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.OffAzureSpringBoot/springbootsites/", false); + uri.AppendPath(springbootsitesName, true); + uri.AppendPath("/refreshSite", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateTriggerRefreshSiteRequest(string subscriptionId, string resourceGroupName, string springbootsitesName) { var message = _pipeline.CreateMessage(); @@ -424,6 +495,19 @@ public Response TriggerRefreshSite(string subscriptionId, string resourceGroupNa } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.OffAzureSpringBoot/springbootsites", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -497,6 +581,17 @@ public Response ListByResourceGroup(string subscriptionId, s } } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.OffAzureSpringBoot/springbootsites", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -564,6 +659,14 @@ public Response ListBySubscription(string subscriptionId, Ca } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -636,6 +739,14 @@ public Response ListByResourceGroupNextPage(string nextLink, } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/springappdiscovery/Azure.ResourceManager.SpringAppDiscovery/src/Generated/RestOperations/SummariesRestOperations.cs b/sdk/springappdiscovery/Azure.ResourceManager.SpringAppDiscovery/src/Generated/RestOperations/SummariesRestOperations.cs index d0cc3291c352..1a2f455f6763 100644 --- a/sdk/springappdiscovery/Azure.ResourceManager.SpringAppDiscovery/src/Generated/RestOperations/SummariesRestOperations.cs +++ b/sdk/springappdiscovery/Azure.ResourceManager.SpringAppDiscovery/src/Generated/RestOperations/SummariesRestOperations.cs @@ -37,6 +37,22 @@ public SummariesRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string siteName, string summaryName) + { + 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.OffAzureSpringBoot/springbootsites/", false); + uri.AppendPath(siteName, true); + uri.AppendPath("/summaries/", false); + uri.AppendPath(summaryName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string siteName, string summaryName) { var message = _pipeline.CreateMessage(); @@ -125,6 +141,21 @@ public Response Get(string subscriptionId, string res } } + internal RequestUriBuilder CreateListBySiteRequestUri(string subscriptionId, string resourceGroupName, string siteName) + { + 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.OffAzureSpringBoot/springbootsites/", false); + uri.AppendPath(siteName, true); + uri.AppendPath("/summaries", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySiteRequest(string subscriptionId, string resourceGroupName, string siteName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,14 @@ public Response ListBySite(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateListBySiteNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string siteName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySiteNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string siteName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/springappdiscovery/Azure.ResourceManager.SpringAppDiscovery/src/Generated/SpringBootServerCollection.cs b/sdk/springappdiscovery/Azure.ResourceManager.SpringAppDiscovery/src/Generated/SpringBootServerCollection.cs index abf2dfa45521..b38d16502c0c 100644 --- a/sdk/springappdiscovery/Azure.ResourceManager.SpringAppDiscovery/src/Generated/SpringBootServerCollection.cs +++ b/sdk/springappdiscovery/Azure.ResourceManager.SpringAppDiscovery/src/Generated/SpringBootServerCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> CreateOrUpdate try { var response = await _springBootServerspringbootserversRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, springbootserversName, data, cancellationToken).ConfigureAwait(false); - var operation = new SpringAppDiscoveryArmOperation(Response.FromValue(new SpringBootServerResource(Client, response), response.GetRawResponse())); + var uri = _springBootServerspringbootserversRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, springbootserversName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SpringAppDiscoveryArmOperation(Response.FromValue(new SpringBootServerResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil w try { var response = _springBootServerspringbootserversRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, springbootserversName, data, cancellationToken); - var operation = new SpringAppDiscoveryArmOperation(Response.FromValue(new SpringBootServerResource(Client, response), response.GetRawResponse())); + var uri = _springBootServerspringbootserversRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, springbootserversName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SpringAppDiscoveryArmOperation(Response.FromValue(new SpringBootServerResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/springappdiscovery/Azure.ResourceManager.SpringAppDiscovery/src/Generated/SpringBootSiteCollection.cs b/sdk/springappdiscovery/Azure.ResourceManager.SpringAppDiscovery/src/Generated/SpringBootSiteCollection.cs index d565993ab9df..1e74b55798e8 100644 --- a/sdk/springappdiscovery/Azure.ResourceManager.SpringAppDiscovery/src/Generated/SpringBootSiteCollection.cs +++ b/sdk/springappdiscovery/Azure.ResourceManager.SpringAppDiscovery/src/Generated/SpringBootSiteCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> CreateOrUpdateAs try { var response = await _springBootSitespringbootsitesRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, springbootsitesName, data, cancellationToken).ConfigureAwait(false); - var operation = new SpringAppDiscoveryArmOperation(Response.FromValue(new SpringBootSiteResource(Client, response), response.GetRawResponse())); + var uri = _springBootSitespringbootsitesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, springbootsitesName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SpringAppDiscoveryArmOperation(Response.FromValue(new SpringBootSiteResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -140,7 +142,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wai try { var response = _springBootSitespringbootsitesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, springbootsitesName, data, cancellationToken); - var operation = new SpringAppDiscoveryArmOperation(Response.FromValue(new SpringBootSiteResource(Client, response), response.GetRawResponse())); + var uri = _springBootSitespringbootsitesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, springbootsitesName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SpringAppDiscoveryArmOperation(Response.FromValue(new SpringBootSiteResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/DataMaskingPolicyResource.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/DataMaskingPolicyResource.cs index 9f507398d3aa..860558cb47ce 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/DataMaskingPolicyResource.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/DataMaskingPolicyResource.cs @@ -210,7 +210,9 @@ public virtual async Task> CreateOrUpdat try { var response = await _dataMaskingPolicyRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new SqlArmOperation(Response.FromValue(new DataMaskingPolicyResource(Client, response), response.GetRawResponse())); + var uri = _dataMaskingPolicyRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(Response.FromValue(new DataMaskingPolicyResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -256,7 +258,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil try { var response = _dataMaskingPolicyRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, data, cancellationToken); - var operation = new SqlArmOperation(Response.FromValue(new DataMaskingPolicyResource(Client, response), response.GetRawResponse())); + var uri = _dataMaskingPolicyRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(Response.FromValue(new DataMaskingPolicyResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/DatabaseAdvancedThreatProtectionCollection.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/DatabaseAdvancedThreatProtectionCollection.cs index 8ae2e4d66e2f..0271bea0462b 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/DatabaseAdvancedThreatProtectionCollection.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/DatabaseAdvancedThreatProtectionCollection.cs @@ -89,7 +89,9 @@ public virtual async Task try { var response = await _databaseAdvancedThreatProtectionDatabaseAdvancedThreatProtectionSettingsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, advancedThreatProtectionName, data, cancellationToken).ConfigureAwait(false); - var operation = new SqlArmOperation(Response.FromValue(new DatabaseAdvancedThreatProtectionResource(Client, response), response.GetRawResponse())); + var uri = _databaseAdvancedThreatProtectionDatabaseAdvancedThreatProtectionSettingsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, advancedThreatProtectionName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(Response.FromValue(new DatabaseAdvancedThreatProtectionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -136,7 +138,9 @@ public virtual ArmOperation CreateOrUp try { var response = _databaseAdvancedThreatProtectionDatabaseAdvancedThreatProtectionSettingsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, advancedThreatProtectionName, data, cancellationToken); - var operation = new SqlArmOperation(Response.FromValue(new DatabaseAdvancedThreatProtectionResource(Client, response), response.GetRawResponse())); + var uri = _databaseAdvancedThreatProtectionDatabaseAdvancedThreatProtectionSettingsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, advancedThreatProtectionName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(Response.FromValue(new DatabaseAdvancedThreatProtectionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/DatabaseAdvancedThreatProtectionResource.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/DatabaseAdvancedThreatProtectionResource.cs index d0200a3f591b..0f3734f99151 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/DatabaseAdvancedThreatProtectionResource.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/DatabaseAdvancedThreatProtectionResource.cs @@ -206,7 +206,9 @@ public virtual async Task try { var response = await _databaseAdvancedThreatProtectionDatabaseAdvancedThreatProtectionSettingsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new SqlArmOperation(Response.FromValue(new DatabaseAdvancedThreatProtectionResource(Client, response), response.GetRawResponse())); + var uri = _databaseAdvancedThreatProtectionDatabaseAdvancedThreatProtectionSettingsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(Response.FromValue(new DatabaseAdvancedThreatProtectionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -252,7 +254,9 @@ public virtual ArmOperation Update(Wai try { var response = _databaseAdvancedThreatProtectionDatabaseAdvancedThreatProtectionSettingsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new SqlArmOperation(Response.FromValue(new DatabaseAdvancedThreatProtectionResource(Client, response), response.GetRawResponse())); + var uri = _databaseAdvancedThreatProtectionDatabaseAdvancedThreatProtectionSettingsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(Response.FromValue(new DatabaseAdvancedThreatProtectionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ExtendedDatabaseBlobAuditingPolicyCollection.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ExtendedDatabaseBlobAuditingPolicyCollection.cs index 9afba4778aba..d0da8003f26b 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ExtendedDatabaseBlobAuditingPolicyCollection.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ExtendedDatabaseBlobAuditingPolicyCollection.cs @@ -89,7 +89,9 @@ public virtual async Task(Response.FromValue(new ExtendedDatabaseBlobAuditingPolicyResource(Client, response), response.GetRawResponse())); + var uri = _extendedDatabaseBlobAuditingPolicyRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, blobAuditingPolicyName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(Response.FromValue(new ExtendedDatabaseBlobAuditingPolicyResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -136,7 +138,9 @@ public virtual ArmOperation CreateOr try { var response = _extendedDatabaseBlobAuditingPolicyRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, blobAuditingPolicyName, data, cancellationToken); - var operation = new SqlArmOperation(Response.FromValue(new ExtendedDatabaseBlobAuditingPolicyResource(Client, response), response.GetRawResponse())); + var uri = _extendedDatabaseBlobAuditingPolicyRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, blobAuditingPolicyName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(Response.FromValue(new ExtendedDatabaseBlobAuditingPolicyResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ExtendedDatabaseBlobAuditingPolicyResource.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ExtendedDatabaseBlobAuditingPolicyResource.cs index f218c3dd883f..cb6053c619b5 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ExtendedDatabaseBlobAuditingPolicyResource.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ExtendedDatabaseBlobAuditingPolicyResource.cs @@ -206,7 +206,9 @@ public virtual async Task(Response.FromValue(new ExtendedDatabaseBlobAuditingPolicyResource(Client, response), response.GetRawResponse())); + var uri = _extendedDatabaseBlobAuditingPolicyRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(Response.FromValue(new ExtendedDatabaseBlobAuditingPolicyResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -252,7 +254,9 @@ public virtual ArmOperation Update(W try { var response = _extendedDatabaseBlobAuditingPolicyRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new SqlArmOperation(Response.FromValue(new ExtendedDatabaseBlobAuditingPolicyResource(Client, response), response.GetRawResponse())); + var uri = _extendedDatabaseBlobAuditingPolicyRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(Response.FromValue(new ExtendedDatabaseBlobAuditingPolicyResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/GeoBackupPolicyCollection.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/GeoBackupPolicyCollection.cs index c3a29da82738..c9ee0dfd023e 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/GeoBackupPolicyCollection.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/GeoBackupPolicyCollection.cs @@ -89,7 +89,9 @@ public virtual async Task> CreateOrUpdateA try { var response = await _geoBackupPolicyRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, geoBackupPolicyName, data, cancellationToken).ConfigureAwait(false); - var operation = new SqlArmOperation(Response.FromValue(new GeoBackupPolicyResource(Client, response), response.GetRawResponse())); + var uri = _geoBackupPolicyRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, geoBackupPolicyName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(Response.FromValue(new GeoBackupPolicyResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -136,7 +138,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wa try { var response = _geoBackupPolicyRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, geoBackupPolicyName, data, cancellationToken); - var operation = new SqlArmOperation(Response.FromValue(new GeoBackupPolicyResource(Client, response), response.GetRawResponse())); + var uri = _geoBackupPolicyRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, geoBackupPolicyName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(Response.FromValue(new GeoBackupPolicyResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/GeoBackupPolicyResource.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/GeoBackupPolicyResource.cs index 73e54139cb84..23b9a730b005 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/GeoBackupPolicyResource.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/GeoBackupPolicyResource.cs @@ -206,7 +206,9 @@ public virtual async Task> UpdateAsync(Wai try { var response = await _geoBackupPolicyRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new SqlArmOperation(Response.FromValue(new GeoBackupPolicyResource(Client, response), response.GetRawResponse())); + var uri = _geoBackupPolicyRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(Response.FromValue(new GeoBackupPolicyResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -252,7 +254,9 @@ public virtual ArmOperation Update(WaitUntil waitUntil, try { var response = _geoBackupPolicyRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new SqlArmOperation(Response.FromValue(new GeoBackupPolicyResource(Client, response), response.GetRawResponse())); + var uri = _geoBackupPolicyRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(Response.FromValue(new GeoBackupPolicyResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/IPv6FirewallRuleCollection.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/IPv6FirewallRuleCollection.cs index a92d4f4c1305..78ab041811c9 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/IPv6FirewallRuleCollection.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/IPv6FirewallRuleCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> CreateOrUpdate try { var response = await _iPv6FirewallRuleRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, firewallRuleName, data, cancellationToken).ConfigureAwait(false); - var operation = new SqlArmOperation(Response.FromValue(new IPv6FirewallRuleResource(Client, response), response.GetRawResponse())); + var uri = _iPv6FirewallRuleRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, firewallRuleName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(Response.FromValue(new IPv6FirewallRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil w try { var response = _iPv6FirewallRuleRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, firewallRuleName, data, cancellationToken); - var operation = new SqlArmOperation(Response.FromValue(new IPv6FirewallRuleResource(Client, response), response.GetRawResponse())); + var uri = _iPv6FirewallRuleRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, firewallRuleName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(Response.FromValue(new IPv6FirewallRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/IPv6FirewallRuleResource.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/IPv6FirewallRuleResource.cs index a0820bd4da35..49b851cc485d 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/IPv6FirewallRuleResource.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/IPv6FirewallRuleResource.cs @@ -200,7 +200,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _iPv6FirewallRuleRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new SqlArmOperation(response); + var uri = _iPv6FirewallRuleRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -242,7 +244,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _iPv6FirewallRuleRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new SqlArmOperation(response); + var uri = _iPv6FirewallRuleRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -288,7 +292,9 @@ public virtual async Task> UpdateAsync(Wa try { var response = await _iPv6FirewallRuleRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new SqlArmOperation(Response.FromValue(new IPv6FirewallRuleResource(Client, response), response.GetRawResponse())); + var uri = _iPv6FirewallRuleRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(Response.FromValue(new IPv6FirewallRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -334,7 +340,9 @@ public virtual ArmOperation Update(WaitUntil waitUntil try { var response = _iPv6FirewallRuleRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new SqlArmOperation(Response.FromValue(new IPv6FirewallRuleResource(Client, response), response.GetRawResponse())); + var uri = _iPv6FirewallRuleRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(Response.FromValue(new IPv6FirewallRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/LongRunningOperation/SqlArmOperation.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/LongRunningOperation/SqlArmOperation.cs index 5b5717c8522c..ed042dbec46e 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/LongRunningOperation/SqlArmOperation.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/LongRunningOperation/SqlArmOperation.cs @@ -20,21 +20,24 @@ internal class SqlArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of SqlArmOperation for mocking. protected SqlArmOperation() { } - internal SqlArmOperation(Response response) + internal SqlArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal SqlArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "SqlArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal SqlArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipel public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/LongRunningOperation/SqlArmOperationOfT.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/LongRunningOperation/SqlArmOperationOfT.cs index 27ce16dd6f2c..469f7ec0e0ee 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/LongRunningOperation/SqlArmOperationOfT.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/LongRunningOperation/SqlArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class SqlArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of SqlArmOperation for mocking. protected SqlArmOperation() { } - internal SqlArmOperation(Response response) + internal SqlArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal SqlArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "SqlArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal SqlArmOperation(IOperationSource source, ClientDiagnostics clientDia public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/MaintenanceWindowsResource.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/MaintenanceWindowsResource.cs index 84be327cda63..621f6f97478a 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/MaintenanceWindowsResource.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/MaintenanceWindowsResource.cs @@ -214,7 +214,9 @@ public virtual async Task CreateOrUpdateAsync(WaitUntil waitUntil, try { var response = await _maintenanceWindowsMaintenanceWindowsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, maintenanceWindowName, data, cancellationToken).ConfigureAwait(false); - var operation = new SqlArmOperation(response); + var uri = _maintenanceWindowsMaintenanceWindowsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, maintenanceWindowName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -262,7 +264,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string maintenan try { var response = _maintenanceWindowsMaintenanceWindowsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, maintenanceWindowName, data, cancellationToken); - var operation = new SqlArmOperation(response); + var uri = _maintenanceWindowsMaintenanceWindowsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, maintenanceWindowName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedDatabaseAdvancedThreatProtectionCollection.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedDatabaseAdvancedThreatProtectionCollection.cs index cd2c9e85585e..125a28fa08de 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedDatabaseAdvancedThreatProtectionCollection.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedDatabaseAdvancedThreatProtectionCollection.cs @@ -89,7 +89,9 @@ public virtual async Task(Response.FromValue(new ManagedDatabaseAdvancedThreatProtectionResource(Client, response), response.GetRawResponse())); + var uri = _managedDatabaseAdvancedThreatProtectionManagedDatabaseAdvancedThreatProtectionSettingsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, advancedThreatProtectionName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(Response.FromValue(new ManagedDatabaseAdvancedThreatProtectionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -136,7 +138,9 @@ public virtual ArmOperation Cre try { var response = _managedDatabaseAdvancedThreatProtectionManagedDatabaseAdvancedThreatProtectionSettingsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, advancedThreatProtectionName, data, cancellationToken); - var operation = new SqlArmOperation(Response.FromValue(new ManagedDatabaseAdvancedThreatProtectionResource(Client, response), response.GetRawResponse())); + var uri = _managedDatabaseAdvancedThreatProtectionManagedDatabaseAdvancedThreatProtectionSettingsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, advancedThreatProtectionName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(Response.FromValue(new ManagedDatabaseAdvancedThreatProtectionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedDatabaseAdvancedThreatProtectionResource.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedDatabaseAdvancedThreatProtectionResource.cs index 3c01c105edd6..1c9fafbdbfff 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedDatabaseAdvancedThreatProtectionResource.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedDatabaseAdvancedThreatProtectionResource.cs @@ -206,7 +206,9 @@ public virtual async Task(Response.FromValue(new ManagedDatabaseAdvancedThreatProtectionResource(Client, response), response.GetRawResponse())); + var uri = _managedDatabaseAdvancedThreatProtectionManagedDatabaseAdvancedThreatProtectionSettingsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(Response.FromValue(new ManagedDatabaseAdvancedThreatProtectionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -252,7 +254,9 @@ public virtual ArmOperation Upd try { var response = _managedDatabaseAdvancedThreatProtectionManagedDatabaseAdvancedThreatProtectionSettingsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new SqlArmOperation(Response.FromValue(new ManagedDatabaseAdvancedThreatProtectionResource(Client, response), response.GetRawResponse())); + var uri = _managedDatabaseAdvancedThreatProtectionManagedDatabaseAdvancedThreatProtectionSettingsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(Response.FromValue(new ManagedDatabaseAdvancedThreatProtectionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedDatabaseSecurityAlertPolicyCollection.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedDatabaseSecurityAlertPolicyCollection.cs index 2b162156a67b..735da9f818b3 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedDatabaseSecurityAlertPolicyCollection.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedDatabaseSecurityAlertPolicyCollection.cs @@ -89,7 +89,9 @@ public virtual async Task(Response.FromValue(new ManagedDatabaseSecurityAlertPolicyResource(Client, response), response.GetRawResponse())); + var uri = _managedDatabaseSecurityAlertPolicyRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, securityAlertPolicyName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(Response.FromValue(new ManagedDatabaseSecurityAlertPolicyResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -136,7 +138,9 @@ public virtual ArmOperation CreateOr try { var response = _managedDatabaseSecurityAlertPolicyRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, securityAlertPolicyName, data, cancellationToken); - var operation = new SqlArmOperation(Response.FromValue(new ManagedDatabaseSecurityAlertPolicyResource(Client, response), response.GetRawResponse())); + var uri = _managedDatabaseSecurityAlertPolicyRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, securityAlertPolicyName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(Response.FromValue(new ManagedDatabaseSecurityAlertPolicyResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedDatabaseSecurityAlertPolicyResource.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedDatabaseSecurityAlertPolicyResource.cs index 6ccfd47e6afd..ebb1fe66887c 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedDatabaseSecurityAlertPolicyResource.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedDatabaseSecurityAlertPolicyResource.cs @@ -206,7 +206,9 @@ public virtual async Task(Response.FromValue(new ManagedDatabaseSecurityAlertPolicyResource(Client, response), response.GetRawResponse())); + var uri = _managedDatabaseSecurityAlertPolicyRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(Response.FromValue(new ManagedDatabaseSecurityAlertPolicyResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -252,7 +254,9 @@ public virtual ArmOperation Update(W try { var response = _managedDatabaseSecurityAlertPolicyRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new SqlArmOperation(Response.FromValue(new ManagedDatabaseSecurityAlertPolicyResource(Client, response), response.GetRawResponse())); + var uri = _managedDatabaseSecurityAlertPolicyRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(Response.FromValue(new ManagedDatabaseSecurityAlertPolicyResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedDatabaseSensitivityLabelCollection.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedDatabaseSensitivityLabelCollection.cs index 12b893c3cc8a..e4066a2fc414 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedDatabaseSensitivityLabelCollection.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedDatabaseSensitivityLabelCollection.cs @@ -85,7 +85,9 @@ public virtual async Task> try { var response = await _managedDatabaseSensitivityLabelRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new SqlArmOperation(Response.FromValue(new ManagedDatabaseSensitivityLabelResource(Client, response), response.GetRawResponse())); + var uri = _managedDatabaseSensitivityLabelRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(Response.FromValue(new ManagedDatabaseSensitivityLabelResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -131,7 +133,9 @@ public virtual ArmOperation CreateOrUpd try { var response = _managedDatabaseSensitivityLabelRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new SqlArmOperation(Response.FromValue(new ManagedDatabaseSensitivityLabelResource(Client, response), response.GetRawResponse())); + var uri = _managedDatabaseSensitivityLabelRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(Response.FromValue(new ManagedDatabaseSensitivityLabelResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedDatabaseSensitivityLabelResource.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedDatabaseSensitivityLabelResource.cs index 1dbf297508ba..5db40bbde598 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedDatabaseSensitivityLabelResource.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedDatabaseSensitivityLabelResource.cs @@ -205,7 +205,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _managedDatabaseSensitivityLabelRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, cancellationToken).ConfigureAwait(false); - var operation = new SqlArmOperation(response); + var uri = _managedDatabaseSensitivityLabelRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -247,7 +249,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _managedDatabaseSensitivityLabelRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, cancellationToken); - var operation = new SqlArmOperation(response); + var uri = _managedDatabaseSensitivityLabelRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -293,7 +297,9 @@ public virtual async Task> try { var response = await _managedDatabaseSensitivityLabelRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new SqlArmOperation(Response.FromValue(new ManagedDatabaseSensitivityLabelResource(Client, response), response.GetRawResponse())); + var uri = _managedDatabaseSensitivityLabelRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(Response.FromValue(new ManagedDatabaseSensitivityLabelResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -339,7 +345,9 @@ public virtual ArmOperation Update(Wait try { var response = _managedDatabaseSensitivityLabelRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, data, cancellationToken); - var operation = new SqlArmOperation(Response.FromValue(new ManagedDatabaseSensitivityLabelResource(Client, response), response.GetRawResponse())); + var uri = _managedDatabaseSensitivityLabelRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(Response.FromValue(new ManagedDatabaseSensitivityLabelResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedDatabaseVulnerabilityAssessmentCollection.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedDatabaseVulnerabilityAssessmentCollection.cs index 269257e5ff8e..426652292096 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedDatabaseVulnerabilityAssessmentCollection.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedDatabaseVulnerabilityAssessmentCollection.cs @@ -89,7 +89,9 @@ public virtual async Task(Response.FromValue(new ManagedDatabaseVulnerabilityAssessmentResource(Client, response), response.GetRawResponse())); + var uri = _managedDatabaseVulnerabilityAssessmentRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, vulnerabilityAssessmentName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(Response.FromValue(new ManagedDatabaseVulnerabilityAssessmentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -136,7 +138,9 @@ public virtual ArmOperation Crea try { var response = _managedDatabaseVulnerabilityAssessmentRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, vulnerabilityAssessmentName, data, cancellationToken); - var operation = new SqlArmOperation(Response.FromValue(new ManagedDatabaseVulnerabilityAssessmentResource(Client, response), response.GetRawResponse())); + var uri = _managedDatabaseVulnerabilityAssessmentRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, vulnerabilityAssessmentName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(Response.FromValue(new ManagedDatabaseVulnerabilityAssessmentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedDatabaseVulnerabilityAssessmentResource.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedDatabaseVulnerabilityAssessmentResource.cs index 90da4db9b0df..e6403b346815 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedDatabaseVulnerabilityAssessmentResource.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedDatabaseVulnerabilityAssessmentResource.cs @@ -342,7 +342,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _managedDatabaseVulnerabilityAssessmentRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new SqlArmOperation(response); + var uri = _managedDatabaseVulnerabilityAssessmentRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -384,7 +386,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _managedDatabaseVulnerabilityAssessmentRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new SqlArmOperation(response); + var uri = _managedDatabaseVulnerabilityAssessmentRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -430,7 +434,9 @@ public virtual async Task(Response.FromValue(new ManagedDatabaseVulnerabilityAssessmentResource(Client, response), response.GetRawResponse())); + var uri = _managedDatabaseVulnerabilityAssessmentRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(Response.FromValue(new ManagedDatabaseVulnerabilityAssessmentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -476,7 +482,9 @@ public virtual ArmOperation Upda try { var response = _managedDatabaseVulnerabilityAssessmentRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new SqlArmOperation(Response.FromValue(new ManagedDatabaseVulnerabilityAssessmentResource(Client, response), response.GetRawResponse())); + var uri = _managedDatabaseVulnerabilityAssessmentRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(Response.FromValue(new ManagedDatabaseVulnerabilityAssessmentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedDatabaseVulnerabilityAssessmentRuleBaselineCollection.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedDatabaseVulnerabilityAssessmentRuleBaselineCollection.cs index cfefd7a9e3b9..e462da354c31 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedDatabaseVulnerabilityAssessmentRuleBaselineCollection.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedDatabaseVulnerabilityAssessmentRuleBaselineCollection.cs @@ -89,7 +89,9 @@ public virtual async Task(Response.FromValue(new ManagedDatabaseVulnerabilityAssessmentRuleBaselineResource(Client, response), response.GetRawResponse())); + var uri = _managedDatabaseVulnerabilityAssessmentRuleBaselineRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, ruleId, baselineName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(Response.FromValue(new ManagedDatabaseVulnerabilityAssessmentRuleBaselineResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation(Response.FromValue(new ManagedDatabaseVulnerabilityAssessmentRuleBaselineResource(Client, response), response.GetRawResponse())); + var uri = _managedDatabaseVulnerabilityAssessmentRuleBaselineRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, ruleId, baselineName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(Response.FromValue(new ManagedDatabaseVulnerabilityAssessmentRuleBaselineResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedDatabaseVulnerabilityAssessmentRuleBaselineResource.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedDatabaseVulnerabilityAssessmentRuleBaselineResource.cs index 0beef4e41e48..be6de89aeaa7 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedDatabaseVulnerabilityAssessmentRuleBaselineResource.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedDatabaseVulnerabilityAssessmentRuleBaselineResource.cs @@ -204,7 +204,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _managedDatabaseVulnerabilityAssessmentRuleBaselineRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name.ToVulnerabilityAssessmentPolicyBaselineName(), cancellationToken).ConfigureAwait(false); - var operation = new SqlArmOperation(response); + var uri = _managedDatabaseVulnerabilityAssessmentRuleBaselineRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name.ToVulnerabilityAssessmentPolicyBaselineName()); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -246,7 +248,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _managedDatabaseVulnerabilityAssessmentRuleBaselineRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name.ToVulnerabilityAssessmentPolicyBaselineName(), cancellationToken); - var operation = new SqlArmOperation(response); + var uri = _managedDatabaseVulnerabilityAssessmentRuleBaselineRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name.ToVulnerabilityAssessmentPolicyBaselineName()); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -292,7 +296,9 @@ public virtual async Task(Response.FromValue(new ManagedDatabaseVulnerabilityAssessmentRuleBaselineResource(Client, response), response.GetRawResponse())); + var uri = _managedDatabaseVulnerabilityAssessmentRuleBaselineRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name.ToVulnerabilityAssessmentPolicyBaselineName(), data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(Response.FromValue(new ManagedDatabaseVulnerabilityAssessmentRuleBaselineResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -338,7 +344,9 @@ public virtual ArmOperation(Response.FromValue(new ManagedDatabaseVulnerabilityAssessmentRuleBaselineResource(Client, response), response.GetRawResponse())); + var uri = _managedDatabaseVulnerabilityAssessmentRuleBaselineRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name.ToVulnerabilityAssessmentPolicyBaselineName(), data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(Response.FromValue(new ManagedDatabaseVulnerabilityAssessmentRuleBaselineResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceStartStopScheduleCollection.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceStartStopScheduleCollection.cs index 8af6f11ac613..1f1fa70e3437 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceStartStopScheduleCollection.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceStartStopScheduleCollection.cs @@ -89,7 +89,9 @@ public virtual async Task try { var response = await _managedInstanceStartStopScheduleStartStopManagedInstanceSchedulesRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, startStopScheduleName, data, cancellationToken).ConfigureAwait(false); - var operation = new SqlArmOperation(Response.FromValue(new ManagedInstanceStartStopScheduleResource(Client, response), response.GetRawResponse())); + var uri = _managedInstanceStartStopScheduleStartStopManagedInstanceSchedulesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, startStopScheduleName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(Response.FromValue(new ManagedInstanceStartStopScheduleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -136,7 +138,9 @@ public virtual ArmOperation CreateOrUp try { var response = _managedInstanceStartStopScheduleStartStopManagedInstanceSchedulesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, startStopScheduleName, data, cancellationToken); - var operation = new SqlArmOperation(Response.FromValue(new ManagedInstanceStartStopScheduleResource(Client, response), response.GetRawResponse())); + var uri = _managedInstanceStartStopScheduleStartStopManagedInstanceSchedulesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, startStopScheduleName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(Response.FromValue(new ManagedInstanceStartStopScheduleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceStartStopScheduleResource.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceStartStopScheduleResource.cs index 7f4c61c75b5c..9b70b292debd 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceStartStopScheduleResource.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceStartStopScheduleResource.cs @@ -201,7 +201,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _managedInstanceStartStopScheduleStartStopManagedInstanceSchedulesRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new SqlArmOperation(response); + var uri = _managedInstanceStartStopScheduleStartStopManagedInstanceSchedulesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -243,7 +245,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _managedInstanceStartStopScheduleStartStopManagedInstanceSchedulesRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new SqlArmOperation(response); + var uri = _managedInstanceStartStopScheduleStartStopManagedInstanceSchedulesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -289,7 +293,9 @@ public virtual async Task try { var response = await _managedInstanceStartStopScheduleStartStopManagedInstanceSchedulesRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new SqlArmOperation(Response.FromValue(new ManagedInstanceStartStopScheduleResource(Client, response), response.GetRawResponse())); + var uri = _managedInstanceStartStopScheduleStartStopManagedInstanceSchedulesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(Response.FromValue(new ManagedInstanceStartStopScheduleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -335,7 +341,9 @@ public virtual ArmOperation Update(Wai try { var response = _managedInstanceStartStopScheduleStartStopManagedInstanceSchedulesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new SqlArmOperation(Response.FromValue(new ManagedInstanceStartStopScheduleResource(Client, response), response.GetRawResponse())); + var uri = _managedInstanceStartStopScheduleStartStopManagedInstanceSchedulesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(Response.FromValue(new ManagedInstanceStartStopScheduleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceVulnerabilityAssessmentCollection.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceVulnerabilityAssessmentCollection.cs index f39aa2a287c3..3e2a2994320b 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceVulnerabilityAssessmentCollection.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceVulnerabilityAssessmentCollection.cs @@ -89,7 +89,9 @@ public virtual async Task(Response.FromValue(new ManagedInstanceVulnerabilityAssessmentResource(Client, response), response.GetRawResponse())); + var uri = _managedInstanceVulnerabilityAssessmentRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, vulnerabilityAssessmentName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(Response.FromValue(new ManagedInstanceVulnerabilityAssessmentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -136,7 +138,9 @@ public virtual ArmOperation Crea try { var response = _managedInstanceVulnerabilityAssessmentRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, vulnerabilityAssessmentName, data, cancellationToken); - var operation = new SqlArmOperation(Response.FromValue(new ManagedInstanceVulnerabilityAssessmentResource(Client, response), response.GetRawResponse())); + var uri = _managedInstanceVulnerabilityAssessmentRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, vulnerabilityAssessmentName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(Response.FromValue(new ManagedInstanceVulnerabilityAssessmentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceVulnerabilityAssessmentResource.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceVulnerabilityAssessmentResource.cs index 1f41b943a85e..3f95f0c3582a 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceVulnerabilityAssessmentResource.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceVulnerabilityAssessmentResource.cs @@ -201,7 +201,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _managedInstanceVulnerabilityAssessmentRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new SqlArmOperation(response); + var uri = _managedInstanceVulnerabilityAssessmentRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -243,7 +245,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _managedInstanceVulnerabilityAssessmentRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new SqlArmOperation(response); + var uri = _managedInstanceVulnerabilityAssessmentRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -289,7 +293,9 @@ public virtual async Task(Response.FromValue(new ManagedInstanceVulnerabilityAssessmentResource(Client, response), response.GetRawResponse())); + var uri = _managedInstanceVulnerabilityAssessmentRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(Response.FromValue(new ManagedInstanceVulnerabilityAssessmentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -335,7 +341,9 @@ public virtual ArmOperation Upda try { var response = _managedInstanceVulnerabilityAssessmentRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new SqlArmOperation(Response.FromValue(new ManagedInstanceVulnerabilityAssessmentResource(Client, response), response.GetRawResponse())); + var uri = _managedInstanceVulnerabilityAssessmentRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(Response.FromValue(new ManagedInstanceVulnerabilityAssessmentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedTransparentDataEncryptionCollection.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedTransparentDataEncryptionCollection.cs index 9337a161b2b2..fd6b049672f8 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedTransparentDataEncryptionCollection.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedTransparentDataEncryptionCollection.cs @@ -89,7 +89,9 @@ public virtual async Task try { var response = await _managedTransparentDataEncryptionManagedDatabaseTransparentDataEncryptionRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, tdeName, data, cancellationToken).ConfigureAwait(false); - var operation = new SqlArmOperation(Response.FromValue(new ManagedTransparentDataEncryptionResource(Client, response), response.GetRawResponse())); + var uri = _managedTransparentDataEncryptionManagedDatabaseTransparentDataEncryptionRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, tdeName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(Response.FromValue(new ManagedTransparentDataEncryptionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -136,7 +138,9 @@ public virtual ArmOperation CreateOrUp try { var response = _managedTransparentDataEncryptionManagedDatabaseTransparentDataEncryptionRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, tdeName, data, cancellationToken); - var operation = new SqlArmOperation(Response.FromValue(new ManagedTransparentDataEncryptionResource(Client, response), response.GetRawResponse())); + var uri = _managedTransparentDataEncryptionManagedDatabaseTransparentDataEncryptionRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, tdeName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(Response.FromValue(new ManagedTransparentDataEncryptionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedTransparentDataEncryptionResource.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedTransparentDataEncryptionResource.cs index d30e8463fd44..540c746ec296 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedTransparentDataEncryptionResource.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedTransparentDataEncryptionResource.cs @@ -206,7 +206,9 @@ public virtual async Task try { var response = await _managedTransparentDataEncryptionManagedDatabaseTransparentDataEncryptionRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new SqlArmOperation(Response.FromValue(new ManagedTransparentDataEncryptionResource(Client, response), response.GetRawResponse())); + var uri = _managedTransparentDataEncryptionManagedDatabaseTransparentDataEncryptionRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(Response.FromValue(new ManagedTransparentDataEncryptionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -252,7 +254,9 @@ public virtual ArmOperation Update(Wai try { var response = _managedTransparentDataEncryptionManagedDatabaseTransparentDataEncryptionRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new SqlArmOperation(Response.FromValue(new ManagedTransparentDataEncryptionResource(Client, response), response.GetRawResponse())); + var uri = _managedTransparentDataEncryptionManagedDatabaseTransparentDataEncryptionRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(Response.FromValue(new ManagedTransparentDataEncryptionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/BackupShortTermRetentionPolicyResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/BackupShortTermRetentionPolicyResource.Serialization.cs new file mode 100644 index 000000000000..2b183de14a95 --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/BackupShortTermRetentionPolicyResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class BackupShortTermRetentionPolicyResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + BackupShortTermRetentionPolicyData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + BackupShortTermRetentionPolicyData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DataMaskingPolicyResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DataMaskingPolicyResource.Serialization.cs new file mode 100644 index 000000000000..3165ba81ac80 --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DataMaskingPolicyResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class DataMaskingPolicyResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DataMaskingPolicyData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DataMaskingPolicyData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DataWarehouseUserActivityResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DataWarehouseUserActivityResource.Serialization.cs new file mode 100644 index 000000000000..01780fcd5922 --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DataWarehouseUserActivityResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class DataWarehouseUserActivityResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DataWarehouseUserActivityData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DataWarehouseUserActivityData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DatabaseAdvancedThreatProtectionResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DatabaseAdvancedThreatProtectionResource.Serialization.cs new file mode 100644 index 000000000000..ac6d65963314 --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DatabaseAdvancedThreatProtectionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class DatabaseAdvancedThreatProtectionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DatabaseAdvancedThreatProtectionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DatabaseAdvancedThreatProtectionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DeletedServerResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DeletedServerResource.Serialization.cs new file mode 100644 index 000000000000..86091f281d56 --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DeletedServerResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class DeletedServerResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DeletedServerData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DeletedServerData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DistributedAvailabilityGroupResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DistributedAvailabilityGroupResource.Serialization.cs new file mode 100644 index 000000000000..c88e74b5936c --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DistributedAvailabilityGroupResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class DistributedAvailabilityGroupResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DistributedAvailabilityGroupData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DistributedAvailabilityGroupData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ElasticPoolResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ElasticPoolResource.Serialization.cs new file mode 100644 index 000000000000..6561ca15b9fd --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ElasticPoolResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class ElasticPoolResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ElasticPoolData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ElasticPoolData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/EncryptionProtectorResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/EncryptionProtectorResource.Serialization.cs new file mode 100644 index 000000000000..73f7a3a53251 --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/EncryptionProtectorResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class EncryptionProtectorResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + EncryptionProtectorData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + EncryptionProtectorData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/EndpointCertificateResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/EndpointCertificateResource.Serialization.cs new file mode 100644 index 000000000000..eba1cc26f8ec --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/EndpointCertificateResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class EndpointCertificateResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + EndpointCertificateData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + EndpointCertificateData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ExtendedDatabaseBlobAuditingPolicyResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ExtendedDatabaseBlobAuditingPolicyResource.Serialization.cs new file mode 100644 index 000000000000..8cb81aecf494 --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ExtendedDatabaseBlobAuditingPolicyResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class ExtendedDatabaseBlobAuditingPolicyResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ExtendedDatabaseBlobAuditingPolicyData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ExtendedDatabaseBlobAuditingPolicyData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ExtendedServerBlobAuditingPolicyResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ExtendedServerBlobAuditingPolicyResource.Serialization.cs new file mode 100644 index 000000000000..ee6624c434fa --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ExtendedServerBlobAuditingPolicyResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class ExtendedServerBlobAuditingPolicyResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ExtendedServerBlobAuditingPolicyData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ExtendedServerBlobAuditingPolicyData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/FailoverGroupResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/FailoverGroupResource.Serialization.cs new file mode 100644 index 000000000000..d41968f75f1f --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/FailoverGroupResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class FailoverGroupResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + FailoverGroupData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + FailoverGroupData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/GeoBackupPolicyResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/GeoBackupPolicyResource.Serialization.cs new file mode 100644 index 000000000000..3bcf30dbada0 --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/GeoBackupPolicyResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class GeoBackupPolicyResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + GeoBackupPolicyData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + GeoBackupPolicyData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/IPv6FirewallRuleResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/IPv6FirewallRuleResource.Serialization.cs new file mode 100644 index 000000000000..7ba0f5e538da --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/IPv6FirewallRuleResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class IPv6FirewallRuleResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + IPv6FirewallRuleData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + IPv6FirewallRuleData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/InstanceFailoverGroupResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/InstanceFailoverGroupResource.Serialization.cs new file mode 100644 index 000000000000..bef2d545f549 --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/InstanceFailoverGroupResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class InstanceFailoverGroupResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + InstanceFailoverGroupData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + InstanceFailoverGroupData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/InstancePoolResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/InstancePoolResource.Serialization.cs new file mode 100644 index 000000000000..74bcc79aab8a --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/InstancePoolResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class InstancePoolResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + InstancePoolData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + InstancePoolData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/LedgerDigestUploadResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/LedgerDigestUploadResource.Serialization.cs new file mode 100644 index 000000000000..f9cedc013063 --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/LedgerDigestUploadResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class LedgerDigestUploadResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + LedgerDigestUploadData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + LedgerDigestUploadData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/LogicalDatabaseTransparentDataEncryptionResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/LogicalDatabaseTransparentDataEncryptionResource.Serialization.cs new file mode 100644 index 000000000000..9b75467be15b --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/LogicalDatabaseTransparentDataEncryptionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class LogicalDatabaseTransparentDataEncryptionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + LogicalDatabaseTransparentDataEncryptionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + LogicalDatabaseTransparentDataEncryptionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/LongTermRetentionPolicyResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/LongTermRetentionPolicyResource.Serialization.cs new file mode 100644 index 000000000000..bf9253c8020c --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/LongTermRetentionPolicyResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class LongTermRetentionPolicyResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + LongTermRetentionPolicyData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + LongTermRetentionPolicyData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/MaintenanceWindowOptionResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/MaintenanceWindowOptionResource.Serialization.cs new file mode 100644 index 000000000000..1423057659b3 --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/MaintenanceWindowOptionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class MaintenanceWindowOptionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MaintenanceWindowOptionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MaintenanceWindowOptionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/MaintenanceWindowsResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/MaintenanceWindowsResource.Serialization.cs new file mode 100644 index 000000000000..5b6a2ff1a69f --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/MaintenanceWindowsResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class MaintenanceWindowsResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MaintenanceWindowsData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MaintenanceWindowsData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedBackupShortTermRetentionPolicyResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedBackupShortTermRetentionPolicyResource.Serialization.cs new file mode 100644 index 000000000000..cc4fee824ffb --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedBackupShortTermRetentionPolicyResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class ManagedBackupShortTermRetentionPolicyResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ManagedBackupShortTermRetentionPolicyData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ManagedBackupShortTermRetentionPolicyData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedDatabaseAdvancedThreatProtectionResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedDatabaseAdvancedThreatProtectionResource.Serialization.cs new file mode 100644 index 000000000000..fc610f3eb65f --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedDatabaseAdvancedThreatProtectionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class ManagedDatabaseAdvancedThreatProtectionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ManagedDatabaseAdvancedThreatProtectionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ManagedDatabaseAdvancedThreatProtectionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedDatabaseColumnResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedDatabaseColumnResource.Serialization.cs new file mode 100644 index 000000000000..4a08ed753cde --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedDatabaseColumnResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class ManagedDatabaseColumnResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DatabaseColumnData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DatabaseColumnData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedDatabaseResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedDatabaseResource.Serialization.cs new file mode 100644 index 000000000000..0c9988ddc7f7 --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedDatabaseResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class ManagedDatabaseResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ManagedDatabaseData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ManagedDatabaseData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedDatabaseRestoreDetailResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedDatabaseRestoreDetailResource.Serialization.cs new file mode 100644 index 000000000000..c44ab32e3841 --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedDatabaseRestoreDetailResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class ManagedDatabaseRestoreDetailResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ManagedDatabaseRestoreDetailData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ManagedDatabaseRestoreDetailData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedDatabaseSchemaResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedDatabaseSchemaResource.Serialization.cs new file mode 100644 index 000000000000..a143825045c5 --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedDatabaseSchemaResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class ManagedDatabaseSchemaResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DatabaseSchemaData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DatabaseSchemaData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedDatabaseSecurityAlertPolicyResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedDatabaseSecurityAlertPolicyResource.Serialization.cs new file mode 100644 index 000000000000..41c3bc7698cc --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedDatabaseSecurityAlertPolicyResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class ManagedDatabaseSecurityAlertPolicyResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ManagedDatabaseSecurityAlertPolicyData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ManagedDatabaseSecurityAlertPolicyData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedDatabaseSensitivityLabelResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedDatabaseSensitivityLabelResource.Serialization.cs new file mode 100644 index 000000000000..33ff3346f0dc --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedDatabaseSensitivityLabelResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class ManagedDatabaseSensitivityLabelResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SensitivityLabelData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SensitivityLabelData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedDatabaseTableResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedDatabaseTableResource.Serialization.cs new file mode 100644 index 000000000000..ddaa432c42ac --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedDatabaseTableResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class ManagedDatabaseTableResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DatabaseTableData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DatabaseTableData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedDatabaseVulnerabilityAssessmentResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedDatabaseVulnerabilityAssessmentResource.Serialization.cs new file mode 100644 index 000000000000..d2265acbb3a0 --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedDatabaseVulnerabilityAssessmentResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class ManagedDatabaseVulnerabilityAssessmentResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DatabaseVulnerabilityAssessmentData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DatabaseVulnerabilityAssessmentData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedDatabaseVulnerabilityAssessmentRuleBaselineResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedDatabaseVulnerabilityAssessmentRuleBaselineResource.Serialization.cs new file mode 100644 index 000000000000..0a1e8880ca6f --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedDatabaseVulnerabilityAssessmentRuleBaselineResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class ManagedDatabaseVulnerabilityAssessmentRuleBaselineResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DatabaseVulnerabilityAssessmentRuleBaselineData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DatabaseVulnerabilityAssessmentRuleBaselineData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedDatabaseVulnerabilityAssessmentScanResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedDatabaseVulnerabilityAssessmentScanResource.Serialization.cs new file mode 100644 index 000000000000..c6ff8b139cdd --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedDatabaseVulnerabilityAssessmentScanResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class ManagedDatabaseVulnerabilityAssessmentScanResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + VulnerabilityAssessmentScanRecordData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + VulnerabilityAssessmentScanRecordData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceAdministratorResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceAdministratorResource.Serialization.cs new file mode 100644 index 000000000000..b93a761b9670 --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceAdministratorResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class ManagedInstanceAdministratorResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ManagedInstanceAdministratorData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ManagedInstanceAdministratorData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceAdvancedThreatProtectionResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceAdvancedThreatProtectionResource.Serialization.cs new file mode 100644 index 000000000000..0ec9ffcf2998 --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceAdvancedThreatProtectionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class ManagedInstanceAdvancedThreatProtectionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ManagedInstanceAdvancedThreatProtectionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ManagedInstanceAdvancedThreatProtectionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceAzureADOnlyAuthenticationResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceAzureADOnlyAuthenticationResource.Serialization.cs new file mode 100644 index 000000000000..30e729aacde9 --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceAzureADOnlyAuthenticationResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class ManagedInstanceAzureADOnlyAuthenticationResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ManagedInstanceAzureADOnlyAuthenticationData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ManagedInstanceAzureADOnlyAuthenticationData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceDtcResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceDtcResource.Serialization.cs new file mode 100644 index 000000000000..4cb5227201bb --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceDtcResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class ManagedInstanceDtcResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ManagedInstanceDtcData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ManagedInstanceDtcData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceEncryptionProtectorResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceEncryptionProtectorResource.Serialization.cs new file mode 100644 index 000000000000..ba13411c601f --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceEncryptionProtectorResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class ManagedInstanceEncryptionProtectorResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ManagedInstanceEncryptionProtectorData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ManagedInstanceEncryptionProtectorData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceKeyResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceKeyResource.Serialization.cs new file mode 100644 index 000000000000..e952aef09a27 --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceKeyResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class ManagedInstanceKeyResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ManagedInstanceKeyData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ManagedInstanceKeyData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceLongTermRetentionPolicyResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceLongTermRetentionPolicyResource.Serialization.cs new file mode 100644 index 000000000000..edc62d27332d --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceLongTermRetentionPolicyResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class ManagedInstanceLongTermRetentionPolicyResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ManagedInstanceLongTermRetentionPolicyData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ManagedInstanceLongTermRetentionPolicyData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceOperationResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceOperationResource.Serialization.cs new file mode 100644 index 000000000000..866f8b658824 --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceOperationResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class ManagedInstanceOperationResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ManagedInstanceOperationData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ManagedInstanceOperationData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstancePrivateEndpointConnectionResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstancePrivateEndpointConnectionResource.Serialization.cs new file mode 100644 index 000000000000..7662b843c894 --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstancePrivateEndpointConnectionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class ManagedInstancePrivateEndpointConnectionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ManagedInstancePrivateEndpointConnectionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ManagedInstancePrivateEndpointConnectionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstancePrivateLinkResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstancePrivateLinkResource.Serialization.cs new file mode 100644 index 000000000000..048291c1b60d --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstancePrivateLinkResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class ManagedInstancePrivateLinkResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ManagedInstancePrivateLinkData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ManagedInstancePrivateLinkData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceResource.Serialization.cs new file mode 100644 index 000000000000..67b9279073b5 --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class ManagedInstanceResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ManagedInstanceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ManagedInstanceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceServerConfigurationOptionResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceServerConfigurationOptionResource.Serialization.cs new file mode 100644 index 000000000000..4ccd2ef57b1b --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceServerConfigurationOptionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class ManagedInstanceServerConfigurationOptionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ManagedInstanceServerConfigurationOptionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ManagedInstanceServerConfigurationOptionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceServerTrustCertificateResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceServerTrustCertificateResource.Serialization.cs new file mode 100644 index 000000000000..832b5a4f845e --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceServerTrustCertificateResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class ManagedInstanceServerTrustCertificateResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ServerTrustCertificateData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ServerTrustCertificateData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceStartStopScheduleResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceStartStopScheduleResource.Serialization.cs new file mode 100644 index 000000000000..32bf96644876 --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceStartStopScheduleResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class ManagedInstanceStartStopScheduleResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ManagedInstanceStartStopScheduleData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ManagedInstanceStartStopScheduleData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceVulnerabilityAssessmentResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceVulnerabilityAssessmentResource.Serialization.cs new file mode 100644 index 000000000000..7ca3574c6f89 --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceVulnerabilityAssessmentResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class ManagedInstanceVulnerabilityAssessmentResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ManagedInstanceVulnerabilityAssessmentData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ManagedInstanceVulnerabilityAssessmentData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedLedgerDigestUploadResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedLedgerDigestUploadResource.Serialization.cs new file mode 100644 index 000000000000..ba71aab0eda6 --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedLedgerDigestUploadResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class ManagedLedgerDigestUploadResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ManagedLedgerDigestUploadData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ManagedLedgerDigestUploadData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedRestorableDroppedDbBackupShortTermRetentionPolicyResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedRestorableDroppedDbBackupShortTermRetentionPolicyResource.Serialization.cs new file mode 100644 index 000000000000..e231f46a5279 --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedRestorableDroppedDbBackupShortTermRetentionPolicyResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class ManagedRestorableDroppedDbBackupShortTermRetentionPolicyResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ManagedBackupShortTermRetentionPolicyData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ManagedBackupShortTermRetentionPolicyData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedServerDnsAliasResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedServerDnsAliasResource.Serialization.cs new file mode 100644 index 000000000000..698346c05a81 --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedServerDnsAliasResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class ManagedServerDnsAliasResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ManagedServerDnsAliasData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ManagedServerDnsAliasData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedServerSecurityAlertPolicyResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedServerSecurityAlertPolicyResource.Serialization.cs new file mode 100644 index 000000000000..a9aa76809fa5 --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedServerSecurityAlertPolicyResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class ManagedServerSecurityAlertPolicyResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ManagedServerSecurityAlertPolicyData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ManagedServerSecurityAlertPolicyData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedTransparentDataEncryptionResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedTransparentDataEncryptionResource.Serialization.cs new file mode 100644 index 000000000000..a3b19cd53c41 --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedTransparentDataEncryptionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class ManagedTransparentDataEncryptionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ManagedTransparentDataEncryptionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ManagedTransparentDataEncryptionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/OutboundFirewallRuleResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/OutboundFirewallRuleResource.Serialization.cs new file mode 100644 index 000000000000..5853f8db60f0 --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/OutboundFirewallRuleResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class OutboundFirewallRuleResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + OutboundFirewallRuleData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + OutboundFirewallRuleData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/RecommendedActionResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/RecommendedActionResource.Serialization.cs new file mode 100644 index 000000000000..3dd4ff956813 --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/RecommendedActionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class RecommendedActionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + RecommendedActionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + RecommendedActionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/RecoverableDatabaseResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/RecoverableDatabaseResource.Serialization.cs new file mode 100644 index 000000000000..aebf444eb8e6 --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/RecoverableDatabaseResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class RecoverableDatabaseResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + RecoverableDatabaseData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + RecoverableDatabaseData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/RecoverableManagedDatabaseResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/RecoverableManagedDatabaseResource.Serialization.cs new file mode 100644 index 000000000000..65dfcac99487 --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/RecoverableManagedDatabaseResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class RecoverableManagedDatabaseResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + RecoverableManagedDatabaseData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + RecoverableManagedDatabaseData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ResourceGroupLongTermRetentionBackupResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ResourceGroupLongTermRetentionBackupResource.Serialization.cs new file mode 100644 index 000000000000..132de92dd4e5 --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ResourceGroupLongTermRetentionBackupResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class ResourceGroupLongTermRetentionBackupResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + LongTermRetentionBackupData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + LongTermRetentionBackupData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ResourceGroupLongTermRetentionManagedInstanceBackupResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ResourceGroupLongTermRetentionManagedInstanceBackupResource.Serialization.cs new file mode 100644 index 000000000000..b79797a47dcf --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ResourceGroupLongTermRetentionManagedInstanceBackupResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class ResourceGroupLongTermRetentionManagedInstanceBackupResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ManagedInstanceLongTermRetentionBackupData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ManagedInstanceLongTermRetentionBackupData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/RestorableDroppedDatabaseResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/RestorableDroppedDatabaseResource.Serialization.cs new file mode 100644 index 000000000000..7d105ca0fa71 --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/RestorableDroppedDatabaseResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class RestorableDroppedDatabaseResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + RestorableDroppedDatabaseData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + RestorableDroppedDatabaseData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/RestorableDroppedManagedDatabaseResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/RestorableDroppedManagedDatabaseResource.Serialization.cs new file mode 100644 index 000000000000..161f8de831df --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/RestorableDroppedManagedDatabaseResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class RestorableDroppedManagedDatabaseResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + RestorableDroppedManagedDatabaseData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + RestorableDroppedManagedDatabaseData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ServerAdvancedThreatProtectionResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ServerAdvancedThreatProtectionResource.Serialization.cs new file mode 100644 index 000000000000..53ec3f897f74 --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ServerAdvancedThreatProtectionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class ServerAdvancedThreatProtectionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ServerAdvancedThreatProtectionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ServerAdvancedThreatProtectionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ServiceObjectiveResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ServiceObjectiveResource.Serialization.cs new file mode 100644 index 000000000000..8b030f6fbfe1 --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ServiceObjectiveResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class ServiceObjectiveResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ServiceObjectiveData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ServiceObjectiveData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlAgentConfigurationResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlAgentConfigurationResource.Serialization.cs new file mode 100644 index 000000000000..f5d3ac1ad459 --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlAgentConfigurationResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class SqlAgentConfigurationResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SqlAgentConfigurationData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SqlAgentConfigurationData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlDatabaseAdvisorResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlDatabaseAdvisorResource.Serialization.cs new file mode 100644 index 000000000000..b50867643c51 --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlDatabaseAdvisorResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class SqlDatabaseAdvisorResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SqlAdvisorData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SqlAdvisorData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlDatabaseAutomaticTuningResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlDatabaseAutomaticTuningResource.Serialization.cs new file mode 100644 index 000000000000..3ba866c0f6f9 --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlDatabaseAutomaticTuningResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class SqlDatabaseAutomaticTuningResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SqlDatabaseAutomaticTuningData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SqlDatabaseAutomaticTuningData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlDatabaseBlobAuditingPolicyResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlDatabaseBlobAuditingPolicyResource.Serialization.cs new file mode 100644 index 000000000000..8f4e52f0717a --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlDatabaseBlobAuditingPolicyResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class SqlDatabaseBlobAuditingPolicyResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SqlDatabaseBlobAuditingPolicyData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SqlDatabaseBlobAuditingPolicyData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlDatabaseColumnResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlDatabaseColumnResource.Serialization.cs new file mode 100644 index 000000000000..6e07e1339faa --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlDatabaseColumnResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class SqlDatabaseColumnResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DatabaseColumnData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DatabaseColumnData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlDatabaseResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlDatabaseResource.Serialization.cs new file mode 100644 index 000000000000..86f4d5c55c6a --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlDatabaseResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class SqlDatabaseResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SqlDatabaseData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SqlDatabaseData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlDatabaseSchemaResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlDatabaseSchemaResource.Serialization.cs new file mode 100644 index 000000000000..a97a212888ca --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlDatabaseSchemaResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class SqlDatabaseSchemaResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DatabaseSchemaData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DatabaseSchemaData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlDatabaseSecurityAlertPolicyResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlDatabaseSecurityAlertPolicyResource.Serialization.cs new file mode 100644 index 000000000000..94dc691fff65 --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlDatabaseSecurityAlertPolicyResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class SqlDatabaseSecurityAlertPolicyResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SqlDatabaseSecurityAlertPolicyData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SqlDatabaseSecurityAlertPolicyData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlDatabaseSensitivityLabelResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlDatabaseSensitivityLabelResource.Serialization.cs new file mode 100644 index 000000000000..16db1f8d46f5 --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlDatabaseSensitivityLabelResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class SqlDatabaseSensitivityLabelResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SensitivityLabelData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SensitivityLabelData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlDatabaseSqlVulnerabilityAssessmentBaselineResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlDatabaseSqlVulnerabilityAssessmentBaselineResource.Serialization.cs new file mode 100644 index 000000000000..5da9a5585d65 --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlDatabaseSqlVulnerabilityAssessmentBaselineResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class SqlDatabaseSqlVulnerabilityAssessmentBaselineResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SqlVulnerabilityAssessmentBaselineData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SqlVulnerabilityAssessmentBaselineData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlDatabaseSqlVulnerabilityAssessmentBaselineRuleResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlDatabaseSqlVulnerabilityAssessmentBaselineRuleResource.Serialization.cs new file mode 100644 index 000000000000..59d32775c95c --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlDatabaseSqlVulnerabilityAssessmentBaselineRuleResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class SqlDatabaseSqlVulnerabilityAssessmentBaselineRuleResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SqlVulnerabilityAssessmentBaselineRuleData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SqlVulnerabilityAssessmentBaselineRuleData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlDatabaseSqlVulnerabilityAssessmentResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlDatabaseSqlVulnerabilityAssessmentResource.Serialization.cs new file mode 100644 index 000000000000..5fb3404f2857 --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlDatabaseSqlVulnerabilityAssessmentResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class SqlDatabaseSqlVulnerabilityAssessmentResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SqlVulnerabilityAssessmentData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SqlVulnerabilityAssessmentData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlDatabaseSqlVulnerabilityAssessmentScanResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlDatabaseSqlVulnerabilityAssessmentScanResource.Serialization.cs new file mode 100644 index 000000000000..690c38a8f01e --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlDatabaseSqlVulnerabilityAssessmentScanResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class SqlDatabaseSqlVulnerabilityAssessmentScanResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SqlVulnerabilityAssessmentScanData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SqlVulnerabilityAssessmentScanData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlDatabaseSqlVulnerabilityAssessmentScanResultResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlDatabaseSqlVulnerabilityAssessmentScanResultResource.Serialization.cs new file mode 100644 index 000000000000..b9589c957469 --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlDatabaseSqlVulnerabilityAssessmentScanResultResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class SqlDatabaseSqlVulnerabilityAssessmentScanResultResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SqlVulnerabilityAssessmentScanResultData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SqlVulnerabilityAssessmentScanResultData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlDatabaseTableResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlDatabaseTableResource.Serialization.cs new file mode 100644 index 000000000000..492c170dc539 --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlDatabaseTableResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class SqlDatabaseTableResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DatabaseTableData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DatabaseTableData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlDatabaseVulnerabilityAssessmentResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlDatabaseVulnerabilityAssessmentResource.Serialization.cs new file mode 100644 index 000000000000..d017146c6ebf --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlDatabaseVulnerabilityAssessmentResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class SqlDatabaseVulnerabilityAssessmentResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DatabaseVulnerabilityAssessmentData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DatabaseVulnerabilityAssessmentData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlDatabaseVulnerabilityAssessmentRuleBaselineResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlDatabaseVulnerabilityAssessmentRuleBaselineResource.Serialization.cs new file mode 100644 index 000000000000..51d634dbd0fe --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlDatabaseVulnerabilityAssessmentRuleBaselineResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class SqlDatabaseVulnerabilityAssessmentRuleBaselineResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DatabaseVulnerabilityAssessmentRuleBaselineData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DatabaseVulnerabilityAssessmentRuleBaselineData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlDatabaseVulnerabilityAssessmentScanResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlDatabaseVulnerabilityAssessmentScanResource.Serialization.cs new file mode 100644 index 000000000000..f8225b8df4f3 --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlDatabaseVulnerabilityAssessmentScanResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class SqlDatabaseVulnerabilityAssessmentScanResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + VulnerabilityAssessmentScanRecordData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + VulnerabilityAssessmentScanRecordData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlFirewallRuleResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlFirewallRuleResource.Serialization.cs new file mode 100644 index 000000000000..78142d85684a --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlFirewallRuleResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class SqlFirewallRuleResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SqlFirewallRuleData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SqlFirewallRuleData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlPrivateEndpointConnectionResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlPrivateEndpointConnectionResource.Serialization.cs new file mode 100644 index 000000000000..85532f33a21a --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlPrivateEndpointConnectionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class SqlPrivateEndpointConnectionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SqlPrivateEndpointConnectionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SqlPrivateEndpointConnectionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlPrivateLinkResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlPrivateLinkResource.Serialization.cs new file mode 100644 index 000000000000..1e2bae186310 --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlPrivateLinkResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class SqlPrivateLinkResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SqlPrivateLinkResourceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SqlPrivateLinkResourceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerAdvisorResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerAdvisorResource.Serialization.cs new file mode 100644 index 000000000000..84e269c767e3 --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerAdvisorResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class SqlServerAdvisorResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SqlAdvisorData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SqlAdvisorData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerAutomaticTuningResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerAutomaticTuningResource.Serialization.cs new file mode 100644 index 000000000000..381c0cd30ea6 --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerAutomaticTuningResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class SqlServerAutomaticTuningResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SqlServerAutomaticTuningData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SqlServerAutomaticTuningData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerAzureADAdministratorResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerAzureADAdministratorResource.Serialization.cs new file mode 100644 index 000000000000..af39743d9d42 --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerAzureADAdministratorResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class SqlServerAzureADAdministratorResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SqlServerAzureADAdministratorData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SqlServerAzureADAdministratorData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerAzureADOnlyAuthenticationResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerAzureADOnlyAuthenticationResource.Serialization.cs new file mode 100644 index 000000000000..37c424730f2d --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerAzureADOnlyAuthenticationResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class SqlServerAzureADOnlyAuthenticationResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SqlServerAzureADOnlyAuthenticationData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SqlServerAzureADOnlyAuthenticationData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerBlobAuditingPolicyResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerBlobAuditingPolicyResource.Serialization.cs new file mode 100644 index 000000000000..232ecec7396a --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerBlobAuditingPolicyResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class SqlServerBlobAuditingPolicyResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SqlServerBlobAuditingPolicyData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SqlServerBlobAuditingPolicyData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerCommunicationLinkResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerCommunicationLinkResource.Serialization.cs new file mode 100644 index 000000000000..a6b7bec170ab --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerCommunicationLinkResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class SqlServerCommunicationLinkResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SqlServerCommunicationLinkData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SqlServerCommunicationLinkData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerConnectionPolicyResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerConnectionPolicyResource.Serialization.cs new file mode 100644 index 000000000000..a1bd7e0daad4 --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerConnectionPolicyResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class SqlServerConnectionPolicyResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SqlServerConnectionPolicyData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SqlServerConnectionPolicyData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerDatabaseReplicationLinkResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerDatabaseReplicationLinkResource.Serialization.cs new file mode 100644 index 000000000000..ce4353137658 --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerDatabaseReplicationLinkResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class SqlServerDatabaseReplicationLinkResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SqlServerDatabaseReplicationLinkData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SqlServerDatabaseReplicationLinkData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerDatabaseRestorePointResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerDatabaseRestorePointResource.Serialization.cs new file mode 100644 index 000000000000..db0f4b0eaa8e --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerDatabaseRestorePointResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class SqlServerDatabaseRestorePointResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SqlServerDatabaseRestorePointData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SqlServerDatabaseRestorePointData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerDevOpsAuditingSettingResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerDevOpsAuditingSettingResource.Serialization.cs new file mode 100644 index 000000000000..b92d464a3383 --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerDevOpsAuditingSettingResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class SqlServerDevOpsAuditingSettingResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SqlServerDevOpsAuditingSettingData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SqlServerDevOpsAuditingSettingData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerDnsAliasResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerDnsAliasResource.Serialization.cs new file mode 100644 index 000000000000..b7460bc8712f --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerDnsAliasResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class SqlServerDnsAliasResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SqlServerDnsAliasData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SqlServerDnsAliasData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerJobAgentResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerJobAgentResource.Serialization.cs new file mode 100644 index 000000000000..968d5ec84e38 --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerJobAgentResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class SqlServerJobAgentResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SqlServerJobAgentData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SqlServerJobAgentData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerJobCredentialResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerJobCredentialResource.Serialization.cs new file mode 100644 index 000000000000..be026f99b2fd --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerJobCredentialResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class SqlServerJobCredentialResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SqlServerJobCredentialData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SqlServerJobCredentialData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerJobExecutionResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerJobExecutionResource.Serialization.cs new file mode 100644 index 000000000000..5bee89e4c65b --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerJobExecutionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class SqlServerJobExecutionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SqlServerJobExecutionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SqlServerJobExecutionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerJobExecutionStepResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerJobExecutionStepResource.Serialization.cs new file mode 100644 index 000000000000..e3fd889b6cf1 --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerJobExecutionStepResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class SqlServerJobExecutionStepResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SqlServerJobExecutionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SqlServerJobExecutionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerJobExecutionStepTargetResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerJobExecutionStepTargetResource.Serialization.cs new file mode 100644 index 000000000000..23ac8ca698b9 --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerJobExecutionStepTargetResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class SqlServerJobExecutionStepTargetResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SqlServerJobExecutionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SqlServerJobExecutionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerJobResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerJobResource.Serialization.cs new file mode 100644 index 000000000000..49c1f4cda4b7 --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerJobResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class SqlServerJobResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SqlServerJobData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SqlServerJobData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerJobStepResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerJobStepResource.Serialization.cs new file mode 100644 index 000000000000..494e4d8fcdb7 --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerJobStepResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class SqlServerJobStepResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SqlServerJobStepData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SqlServerJobStepData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerJobTargetGroupResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerJobTargetGroupResource.Serialization.cs new file mode 100644 index 000000000000..dea1236ec07b --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerJobTargetGroupResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class SqlServerJobTargetGroupResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SqlServerJobTargetGroupData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SqlServerJobTargetGroupData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerJobVersionResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerJobVersionResource.Serialization.cs new file mode 100644 index 000000000000..ff4d4a834cdf --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerJobVersionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class SqlServerJobVersionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SqlServerJobVersionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SqlServerJobVersionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerJobVersionStepResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerJobVersionStepResource.Serialization.cs new file mode 100644 index 000000000000..edc7b6317bb7 --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerJobVersionStepResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class SqlServerJobVersionStepResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SqlServerJobStepData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SqlServerJobStepData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerKeyResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerKeyResource.Serialization.cs new file mode 100644 index 000000000000..b7996436cae8 --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerKeyResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class SqlServerKeyResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SqlServerKeyData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SqlServerKeyData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerResource.Serialization.cs new file mode 100644 index 000000000000..7bf770c86306 --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class SqlServerResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SqlServerData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SqlServerData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerSecurityAlertPolicyResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerSecurityAlertPolicyResource.Serialization.cs new file mode 100644 index 000000000000..80600f9e3531 --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerSecurityAlertPolicyResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class SqlServerSecurityAlertPolicyResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SqlServerSecurityAlertPolicyData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SqlServerSecurityAlertPolicyData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerSqlVulnerabilityAssessmentBaselineResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerSqlVulnerabilityAssessmentBaselineResource.Serialization.cs new file mode 100644 index 000000000000..086d50796838 --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerSqlVulnerabilityAssessmentBaselineResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class SqlServerSqlVulnerabilityAssessmentBaselineResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SqlVulnerabilityAssessmentBaselineData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SqlVulnerabilityAssessmentBaselineData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerSqlVulnerabilityAssessmentBaselineRuleResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerSqlVulnerabilityAssessmentBaselineRuleResource.Serialization.cs new file mode 100644 index 000000000000..68cf8798e175 --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerSqlVulnerabilityAssessmentBaselineRuleResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class SqlServerSqlVulnerabilityAssessmentBaselineRuleResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SqlVulnerabilityAssessmentBaselineRuleData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SqlVulnerabilityAssessmentBaselineRuleData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerSqlVulnerabilityAssessmentResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerSqlVulnerabilityAssessmentResource.Serialization.cs new file mode 100644 index 000000000000..f7c5002a233f --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerSqlVulnerabilityAssessmentResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class SqlServerSqlVulnerabilityAssessmentResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SqlVulnerabilityAssessmentData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SqlVulnerabilityAssessmentData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerSqlVulnerabilityAssessmentScanResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerSqlVulnerabilityAssessmentScanResource.Serialization.cs new file mode 100644 index 000000000000..b8fe595457d0 --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerSqlVulnerabilityAssessmentScanResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class SqlServerSqlVulnerabilityAssessmentScanResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SqlVulnerabilityAssessmentScanData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SqlVulnerabilityAssessmentScanData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerSqlVulnerabilityAssessmentScanResultResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerSqlVulnerabilityAssessmentScanResultResource.Serialization.cs new file mode 100644 index 000000000000..ea2b782a82dc --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerSqlVulnerabilityAssessmentScanResultResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class SqlServerSqlVulnerabilityAssessmentScanResultResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SqlVulnerabilityAssessmentScanResultData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SqlVulnerabilityAssessmentScanResultData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerTrustGroupResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerTrustGroupResource.Serialization.cs new file mode 100644 index 000000000000..8f05e9e79a77 --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerTrustGroupResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class SqlServerTrustGroupResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SqlServerTrustGroupData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SqlServerTrustGroupData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerVirtualNetworkRuleResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerVirtualNetworkRuleResource.Serialization.cs new file mode 100644 index 000000000000..a4f4fc7fac53 --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerVirtualNetworkRuleResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class SqlServerVirtualNetworkRuleResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SqlServerVirtualNetworkRuleData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SqlServerVirtualNetworkRuleData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerVulnerabilityAssessmentResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerVulnerabilityAssessmentResource.Serialization.cs new file mode 100644 index 000000000000..ec2ebf883ede --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerVulnerabilityAssessmentResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class SqlServerVulnerabilityAssessmentResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SqlServerVulnerabilityAssessmentData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SqlServerVulnerabilityAssessmentData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlTimeZoneResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlTimeZoneResource.Serialization.cs new file mode 100644 index 000000000000..df75ec9df13d --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlTimeZoneResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class SqlTimeZoneResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SqlTimeZoneData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SqlTimeZoneData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SubscriptionLongTermRetentionBackupResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SubscriptionLongTermRetentionBackupResource.Serialization.cs new file mode 100644 index 000000000000..22c45b65f84c --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SubscriptionLongTermRetentionBackupResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class SubscriptionLongTermRetentionBackupResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + LongTermRetentionBackupData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + LongTermRetentionBackupData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SubscriptionLongTermRetentionManagedInstanceBackupResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SubscriptionLongTermRetentionManagedInstanceBackupResource.Serialization.cs new file mode 100644 index 000000000000..7aa6bd6bee31 --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SubscriptionLongTermRetentionManagedInstanceBackupResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class SubscriptionLongTermRetentionManagedInstanceBackupResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ManagedInstanceLongTermRetentionBackupData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ManagedInstanceLongTermRetentionBackupData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SubscriptionUsageResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SubscriptionUsageResource.Serialization.cs new file mode 100644 index 000000000000..10d5ea72e7e0 --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SubscriptionUsageResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class SubscriptionUsageResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SubscriptionUsageData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SubscriptionUsageData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SyncAgentResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SyncAgentResource.Serialization.cs new file mode 100644 index 000000000000..9fc79ba3f153 --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SyncAgentResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class SyncAgentResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SyncAgentData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SyncAgentData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SyncGroupResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SyncGroupResource.Serialization.cs new file mode 100644 index 000000000000..f3f0fc78e7e5 --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SyncGroupResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class SyncGroupResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SyncGroupData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SyncGroupData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SyncMemberResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SyncMemberResource.Serialization.cs new file mode 100644 index 000000000000..f4cd9e641b29 --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SyncMemberResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class SyncMemberResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SyncMemberData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SyncMemberData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/VirtualClusterResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/VirtualClusterResource.Serialization.cs new file mode 100644 index 000000000000..999ceac14e0f --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/VirtualClusterResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class VirtualClusterResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + VirtualClusterData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + VirtualClusterData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/WorkloadClassifierResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/WorkloadClassifierResource.Serialization.cs new file mode 100644 index 000000000000..2791816a3ef6 --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/WorkloadClassifierResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class WorkloadClassifierResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + WorkloadClassifierData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + WorkloadClassifierData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/WorkloadGroupResource.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/WorkloadGroupResource.Serialization.cs new file mode 100644 index 000000000000..16f81c0d6214 --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/WorkloadGroupResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Sql +{ + public partial class WorkloadGroupResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + WorkloadGroupData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + WorkloadGroupData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/BackupShortTermRetentionPoliciesRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/BackupShortTermRetentionPoliciesRestOperations.cs index d323eec2fc2c..51f3724faa80 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/BackupShortTermRetentionPoliciesRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/BackupShortTermRetentionPoliciesRestOperations.cs @@ -37,6 +37,24 @@ public BackupShortTermRetentionPoliciesRestOperations(HttpPipeline pipeline, str _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName, ShortTermRetentionPolicyName policyName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/backupShortTermRetentionPolicies/", false); + uri.AppendPath(policyName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName, ShortTermRetentionPolicyName policyName) { var message = _pipeline.CreateMessage(); @@ -129,6 +147,24 @@ public Response Get(string subscriptionId, s } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName, ShortTermRetentionPolicyName policyName, BackupShortTermRetentionPolicyData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/backupShortTermRetentionPolicies/", false); + uri.AppendPath(policyName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName, ShortTermRetentionPolicyName policyName, BackupShortTermRetentionPolicyData data) { var message = _pipeline.CreateMessage(); @@ -217,6 +253,24 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName, ShortTermRetentionPolicyName policyName, BackupShortTermRetentionPolicyData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/backupShortTermRetentionPolicies/", false); + uri.AppendPath(policyName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName, ShortTermRetentionPolicyName policyName, BackupShortTermRetentionPolicyData data) { var message = _pipeline.CreateMessage(); @@ -305,6 +359,23 @@ public Response Update(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListByDatabaseRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/backupShortTermRetentionPolicies", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByDatabaseRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName) { var message = _pipeline.CreateMessage(); @@ -390,6 +461,14 @@ public Response ListByDatabase(string } } + internal RequestUriBuilder CreateListByDatabaseNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serverName, string databaseName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByDatabaseNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serverName, string databaseName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/CapabilitiesRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/CapabilitiesRestOperations.cs index 88274dabb5af..6baedd637ada 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/CapabilitiesRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/CapabilitiesRestOperations.cs @@ -37,6 +37,23 @@ public CapabilitiesRestOperations(HttpPipeline pipeline, string applicationId, U _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByLocationRequestUri(string subscriptionId, AzureLocation locationName, SqlCapabilityGroup? include) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Sql/locations/", false); + uri.AppendPath(locationName, true); + uri.AppendPath("/capabilities", false); + if (include != null) + { + uri.AppendQuery("include", include.Value.ToString(), true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByLocationRequest(string subscriptionId, AzureLocation locationName, SqlCapabilityGroup? include) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DataMaskingPoliciesRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DataMaskingPoliciesRestOperations.cs index c6f155a3ea1b..780c51fe1ce8 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DataMaskingPoliciesRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DataMaskingPoliciesRestOperations.cs @@ -36,6 +36,24 @@ public DataMaskingPoliciesRestOperations(HttpPipeline pipeline, string applicati _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName, DataMaskingPolicyData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/dataMaskingPolicies/", false); + uri.AppendPath("Default", true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName, DataMaskingPolicyData data) { var message = _pipeline.CreateMessage(); @@ -130,6 +148,24 @@ public Response CreateOrUpdate(string subscriptionId, str } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/dataMaskingPolicies/", false); + uri.AppendPath("Default", true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DataMaskingRulesRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DataMaskingRulesRestOperations.cs index fb32fadcfbba..97e30f0f42ea 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DataMaskingRulesRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DataMaskingRulesRestOperations.cs @@ -37,6 +37,26 @@ public DataMaskingRulesRestOperations(HttpPipeline pipeline, string applicationI _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string dataMaskingRuleName, DataMaskingRule dataMaskingRule) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/dataMaskingPolicies/", false); + uri.AppendPath("Default", true); + uri.AppendPath("/rules/", false); + uri.AppendPath(dataMaskingRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string dataMaskingRuleName, DataMaskingRule dataMaskingRule) { var message = _pipeline.CreateMessage(); @@ -139,6 +159,25 @@ public Response CreateOrUpdate(string subscriptionId, string re } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/dataMaskingPolicies/", false); + uri.AppendPath("Default", true); + uri.AppendPath("/rules", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DataWarehouseUserActivitiesRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DataWarehouseUserActivitiesRestOperations.cs index 6c7cd4ffa6ca..ec18e803fae2 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DataWarehouseUserActivitiesRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DataWarehouseUserActivitiesRestOperations.cs @@ -37,6 +37,24 @@ public DataWarehouseUserActivitiesRestOperations(HttpPipeline pipeline, string a _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName, DataWarehouseUserActivityName dataWarehouseUserActivityName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/dataWarehouseUserActivities/", false); + uri.AppendPath(dataWarehouseUserActivityName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName, DataWarehouseUserActivityName dataWarehouseUserActivityName) { var message = _pipeline.CreateMessage(); @@ -129,6 +147,23 @@ public Response Get(string subscriptionId, string } } + internal RequestUriBuilder CreateListByDatabaseRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/dataWarehouseUserActivities", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByDatabaseRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName) { var message = _pipeline.CreateMessage(); @@ -214,6 +249,14 @@ public Response ListByDatabase(string sub } } + internal RequestUriBuilder CreateListByDatabaseNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serverName, string databaseName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByDatabaseNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serverName, string databaseName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DatabaseAdvancedThreatProtectionSettingsRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DatabaseAdvancedThreatProtectionSettingsRestOperations.cs index c012ffa84e7a..eca0a6f3638e 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DatabaseAdvancedThreatProtectionSettingsRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DatabaseAdvancedThreatProtectionSettingsRestOperations.cs @@ -37,6 +37,23 @@ public DatabaseAdvancedThreatProtectionSettingsRestOperations(HttpPipeline pipel _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByDatabaseRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/advancedThreatProtectionSettings", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByDatabaseRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName) { var message = _pipeline.CreateMessage(); @@ -122,6 +139,24 @@ public Response ListByDatabase(strin } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName, AdvancedThreatProtectionName advancedThreatProtectionName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/advancedThreatProtectionSettings/", false); + uri.AppendPath(advancedThreatProtectionName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName, AdvancedThreatProtectionName advancedThreatProtectionName) { var message = _pipeline.CreateMessage(); @@ -214,6 +249,24 @@ public Response Get(string subscriptionId, } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName, AdvancedThreatProtectionName advancedThreatProtectionName, DatabaseAdvancedThreatProtectionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/advancedThreatProtectionSettings/", false); + uri.AppendPath(advancedThreatProtectionName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName, AdvancedThreatProtectionName advancedThreatProtectionName, DatabaseAdvancedThreatProtectionData data) { var message = _pipeline.CreateMessage(); @@ -312,6 +365,14 @@ public Response CreateOrUpdate(string subs } } + internal RequestUriBuilder CreateListByDatabaseNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serverName, string databaseName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByDatabaseNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serverName, string databaseName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DatabaseAdvisorsRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DatabaseAdvisorsRestOperations.cs index fc0a07956823..e255ff74eadb 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DatabaseAdvisorsRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DatabaseAdvisorsRestOperations.cs @@ -37,6 +37,27 @@ public DatabaseAdvisorsRestOperations(HttpPipeline pipeline, string applicationI _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByDatabaseRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string expand) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/advisors", false); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByDatabaseRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string expand) { var message = _pipeline.CreateMessage(); @@ -138,6 +159,24 @@ public Response> ListByDatabase(string subscriptio } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string advisorName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/advisors/", false); + uri.AppendPath(advisorName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string advisorName) { var message = _pipeline.CreateMessage(); @@ -232,6 +271,24 @@ public Response Get(string subscriptionId, string resourceGroupN } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string advisorName, SqlAdvisorData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/advisors/", false); + uri.AppendPath(advisorName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string advisorName, SqlAdvisorData data) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DatabaseAutomaticTuningRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DatabaseAutomaticTuningRestOperations.cs index d55dc31db924..18a02ec043bc 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DatabaseAutomaticTuningRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DatabaseAutomaticTuningRestOperations.cs @@ -36,6 +36,23 @@ public DatabaseAutomaticTuningRestOperations(HttpPipeline pipeline, string appli _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/automaticTuning/current", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName) { var message = _pipeline.CreateMessage(); @@ -125,6 +142,23 @@ public Response Get(string subscriptionId, strin } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName, SqlDatabaseAutomaticTuningData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/automaticTuning/current", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName, SqlDatabaseAutomaticTuningData data) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DatabaseBlobAuditingPoliciesRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DatabaseBlobAuditingPoliciesRestOperations.cs index 52890f54831e..14da04270e1e 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DatabaseBlobAuditingPoliciesRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DatabaseBlobAuditingPoliciesRestOperations.cs @@ -37,6 +37,23 @@ public DatabaseBlobAuditingPoliciesRestOperations(HttpPipeline pipeline, string _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByDatabaseRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/auditingSettings", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByDatabaseRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName) { var message = _pipeline.CreateMessage(); @@ -122,6 +139,24 @@ public Response ListByDatabase(string subs } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName, BlobAuditingPolicyName blobAuditingPolicyName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/auditingSettings/", false); + uri.AppendPath(blobAuditingPolicyName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName, BlobAuditingPolicyName blobAuditingPolicyName) { var message = _pipeline.CreateMessage(); @@ -214,6 +249,24 @@ public Response Get(string subscriptionId, st } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName, BlobAuditingPolicyName blobAuditingPolicyName, SqlDatabaseBlobAuditingPolicyData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/auditingSettings/", false); + uri.AppendPath(blobAuditingPolicyName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName, BlobAuditingPolicyName blobAuditingPolicyName, SqlDatabaseBlobAuditingPolicyData data) { var message = _pipeline.CreateMessage(); @@ -312,6 +365,14 @@ public Response CreateOrUpdate(string subscri } } + internal RequestUriBuilder CreateListByDatabaseNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serverName, string databaseName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByDatabaseNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serverName, string databaseName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DatabaseColumnsRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DatabaseColumnsRestOperations.cs index abf6efc1a44f..6d1f93bee1c4 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DatabaseColumnsRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DatabaseColumnsRestOperations.cs @@ -38,6 +38,55 @@ public DatabaseColumnsRestOperations(HttpPipeline pipeline, string applicationId _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByDatabaseRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName, IEnumerable schema, IEnumerable table, IEnumerable column, IEnumerable orderBy, string skiptoken) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/columns", false); + if (schema != null && Optional.IsCollectionDefined(schema)) + { + foreach (var param in schema) + { + uri.AppendQuery("schema", param, true); + } + } + if (table != null && Optional.IsCollectionDefined(table)) + { + foreach (var param in table) + { + uri.AppendQuery("table", param, true); + } + } + if (column != null && Optional.IsCollectionDefined(column)) + { + foreach (var param in column) + { + uri.AppendQuery("column", param, true); + } + } + if (orderBy != null && Optional.IsCollectionDefined(orderBy)) + { + foreach (var param in orderBy) + { + uri.AppendQuery("orderBy", param, true); + } + } + if (skiptoken != null) + { + uri.AppendQuery("$skiptoken", skiptoken, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByDatabaseRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName, IEnumerable schema, IEnumerable table, IEnumerable column, IEnumerable orderBy, string skiptoken) { var message = _pipeline.CreateMessage(); @@ -165,6 +214,31 @@ public Response ListByDatabase(string subscriptionId, } } + internal RequestUriBuilder CreateListByTableRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string schemaName, string tableName, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/schemas/", false); + uri.AppendPath(schemaName, true); + uri.AppendPath("/tables/", false); + uri.AppendPath(tableName, true); + uri.AppendPath("/columns", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByTableRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string schemaName, string tableName, string filter) { var message = _pipeline.CreateMessage(); @@ -268,6 +342,28 @@ public Response ListByTable(string subscriptionId, str } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string schemaName, string tableName, string columnName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/schemas/", false); + uri.AppendPath(schemaName, true); + uri.AppendPath("/tables/", false); + uri.AppendPath(tableName, true); + uri.AppendPath("/columns/", false); + uri.AppendPath(columnName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string schemaName, string tableName, string columnName) { var message = _pipeline.CreateMessage(); @@ -374,6 +470,14 @@ public Response Get(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateListByDatabaseNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serverName, string databaseName, IEnumerable schema, IEnumerable table, IEnumerable column, IEnumerable orderBy, string skiptoken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByDatabaseNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serverName, string databaseName, IEnumerable schema, IEnumerable table, IEnumerable column, IEnumerable orderBy, string skiptoken) { var message = _pipeline.CreateMessage(); @@ -464,6 +568,14 @@ public Response ListByDatabaseNextPage(string nextLink } } + internal RequestUriBuilder CreateListByTableNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serverName, string databaseName, string schemaName, string tableName, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByTableNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serverName, string databaseName, string schemaName, string tableName, string filter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DatabaseEncryptionProtectorsRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DatabaseEncryptionProtectorsRestOperations.cs index 6a5572947e08..de19acb1139e 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DatabaseEncryptionProtectorsRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DatabaseEncryptionProtectorsRestOperations.cs @@ -36,6 +36,25 @@ public DatabaseEncryptionProtectorsRestOperations(HttpPipeline pipeline, string _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateRevalidateRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName, EncryptionProtectorName encryptionProtectorName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/encryptionProtector/", false); + uri.AppendPath(encryptionProtectorName.ToString(), true); + uri.AppendPath("/revalidate", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRevalidateRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName, EncryptionProtectorName encryptionProtectorName) { var message = _pipeline.CreateMessage(); @@ -116,6 +135,25 @@ public Response Revalidate(string subscriptionId, string resourceGroupName, stri } } + internal RequestUriBuilder CreateRevertRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName, EncryptionProtectorName encryptionProtectorName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/encryptionProtector/", false); + uri.AppendPath(encryptionProtectorName.ToString(), true); + uri.AppendPath("/revert", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRevertRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName, EncryptionProtectorName encryptionProtectorName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DatabaseExtensionsRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DatabaseExtensionsRestOperations.cs index cbd1db133639..df8af64aa72d 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DatabaseExtensionsRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DatabaseExtensionsRestOperations.cs @@ -37,6 +37,24 @@ public DatabaseExtensionsRestOperations(HttpPipeline pipeline, string applicatio _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string extensionName, SqlDatabaseExtension sqlDatabaseExtension) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/extensions/", false); + uri.AppendPath(extensionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string extensionName, SqlDatabaseExtension sqlDatabaseExtension) { var message = _pipeline.CreateMessage(); @@ -127,6 +145,23 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateListByDatabaseRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/extensions", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByDatabaseRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName) { var message = _pipeline.CreateMessage(); @@ -212,6 +247,14 @@ public Response ListByDatabase(string } } + internal RequestUriBuilder CreateListByDatabaseNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serverName, string databaseName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByDatabaseNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serverName, string databaseName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DatabaseRecommendedActionsRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DatabaseRecommendedActionsRestOperations.cs index 9b4a0fd3c4a5..7ee4231dc2a7 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DatabaseRecommendedActionsRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DatabaseRecommendedActionsRestOperations.cs @@ -37,6 +37,25 @@ public DatabaseRecommendedActionsRestOperations(HttpPipeline pipeline, string ap _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByDatabaseAdvisorRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string advisorName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/advisors/", false); + uri.AppendPath(advisorName, true); + uri.AppendPath("/recommendedActions", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByDatabaseAdvisorRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string advisorName) { var message = _pipeline.CreateMessage(); @@ -138,6 +157,26 @@ public Response> ListByDatabaseAdvisor(stri } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string advisorName, string recommendedActionName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/advisors/", false); + uri.AppendPath(advisorName, true); + uri.AppendPath("/recommendedActions/", false); + uri.AppendPath(recommendedActionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string advisorName, string recommendedActionName) { var message = _pipeline.CreateMessage(); @@ -238,6 +277,26 @@ public Response Get(string subscriptionId, string resourc } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string advisorName, string recommendedActionName, RecommendedActionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/advisors/", false); + uri.AppendPath(advisorName, true); + uri.AppendPath("/recommendedActions/", false); + uri.AppendPath(recommendedActionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string advisorName, string recommendedActionName, RecommendedActionData data) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DatabaseRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DatabaseRestOperations.cs index 028446d9f9ac..78319fd79b45 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DatabaseRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DatabaseRestOperations.cs @@ -37,6 +37,25 @@ public DatabaseRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCancelRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName, Guid operationId) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/operations/", false); + uri.AppendPath(operationId, true); + uri.AppendPath("/cancel", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCancelRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName, Guid operationId) { var message = _pipeline.CreateMessage(); @@ -115,6 +134,23 @@ public Response Cancel(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListByDatabaseRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/operations", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByDatabaseRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName) { var message = _pipeline.CreateMessage(); @@ -200,6 +236,14 @@ public Response ListByDatabase(string subscriptionI } } + internal RequestUriBuilder CreateListByDatabaseNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serverName, string databaseName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByDatabaseNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serverName, string databaseName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DatabaseSchemasRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DatabaseSchemasRestOperations.cs index 367a5afb7afd..d303c77963cb 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DatabaseSchemasRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DatabaseSchemasRestOperations.cs @@ -37,6 +37,27 @@ public DatabaseSchemasRestOperations(HttpPipeline pipeline, string applicationId _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByDatabaseRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/schemas", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByDatabaseRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string filter) { var message = _pipeline.CreateMessage(); @@ -128,6 +149,24 @@ public Response ListByDatabase(string subscriptionId, } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string schemaName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/schemas/", false); + uri.AppendPath(schemaName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string schemaName) { var message = _pipeline.CreateMessage(); @@ -222,6 +261,14 @@ public Response Get(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateListByDatabaseNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serverName, string databaseName, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByDatabaseNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serverName, string databaseName, string filter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DatabaseSecurityAlertPoliciesRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DatabaseSecurityAlertPoliciesRestOperations.cs index b4e56c0ce274..7c04400b4854 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DatabaseSecurityAlertPoliciesRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DatabaseSecurityAlertPoliciesRestOperations.cs @@ -37,6 +37,24 @@ public DatabaseSecurityAlertPoliciesRestOperations(HttpPipeline pipeline, string _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName, SqlSecurityAlertPolicyName securityAlertPolicyName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/securityAlertPolicies/", false); + uri.AppendPath(securityAlertPolicyName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName, SqlSecurityAlertPolicyName securityAlertPolicyName) { var message = _pipeline.CreateMessage(); @@ -129,6 +147,24 @@ public Response Get(string subscriptionId, s } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName, SqlSecurityAlertPolicyName securityAlertPolicyName, SqlDatabaseSecurityAlertPolicyData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/securityAlertPolicies/", false); + uri.AppendPath(securityAlertPolicyName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName, SqlSecurityAlertPolicyName securityAlertPolicyName, SqlDatabaseSecurityAlertPolicyData data) { var message = _pipeline.CreateMessage(); @@ -227,6 +263,23 @@ public Response CreateOrUpdate(string subscr } } + internal RequestUriBuilder CreateListByDatabaseRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/securityAlertPolicies", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByDatabaseRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName) { var message = _pipeline.CreateMessage(); @@ -312,6 +365,14 @@ public Response ListByDatabase(string subscript } } + internal RequestUriBuilder CreateListByDatabaseNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serverName, string databaseName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByDatabaseNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serverName, string databaseName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DatabaseSqlVulnerabilityAssessmentBaselinesRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DatabaseSqlVulnerabilityAssessmentBaselinesRestOperations.cs index f1b8445e9a4a..2a8165f6a52e 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DatabaseSqlVulnerabilityAssessmentBaselinesRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DatabaseSqlVulnerabilityAssessmentBaselinesRestOperations.cs @@ -37,6 +37,25 @@ public DatabaseSqlVulnerabilityAssessmentBaselinesRestOperations(HttpPipeline pi _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListBySqlVulnerabilityAssessmentRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName, VulnerabilityAssessmentName vulnerabilityAssessmentName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/sqlVulnerabilityAssessments/", false); + uri.AppendPath(vulnerabilityAssessmentName.ToString(), true); + uri.AppendPath("/baselines", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySqlVulnerabilityAssessmentRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName, VulnerabilityAssessmentName vulnerabilityAssessmentName) { var message = _pipeline.CreateMessage(); @@ -126,6 +145,26 @@ public Response ListByS } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName, VulnerabilityAssessmentName vulnerabilityAssessmentName, SqlVulnerabilityAssessmentBaselineName baselineName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/sqlVulnerabilityAssessments/", false); + uri.AppendPath(vulnerabilityAssessmentName.ToString(), true); + uri.AppendPath("/baselines/", false); + uri.AppendPath(baselineName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName, VulnerabilityAssessmentName vulnerabilityAssessmentName, SqlVulnerabilityAssessmentBaselineName baselineName) { var message = _pipeline.CreateMessage(); @@ -222,6 +261,26 @@ public Response Get(string subscriptionI } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName, VulnerabilityAssessmentName vulnerabilityAssessmentName, SqlVulnerabilityAssessmentBaselineName baselineName, SqlVulnerabilityAssessmentBaselineCreateOrUpdateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/sqlVulnerabilityAssessments/", false); + uri.AppendPath(vulnerabilityAssessmentName.ToString(), true); + uri.AppendPath("/baselines/", false); + uri.AppendPath(baselineName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName, VulnerabilityAssessmentName vulnerabilityAssessmentName, SqlVulnerabilityAssessmentBaselineName baselineName, SqlVulnerabilityAssessmentBaselineCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); @@ -322,6 +381,14 @@ public Response CreateOrUpdate(string su } } + internal RequestUriBuilder CreateListBySqlVulnerabilityAssessmentNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serverName, string databaseName, VulnerabilityAssessmentName vulnerabilityAssessmentName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySqlVulnerabilityAssessmentNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serverName, string databaseName, VulnerabilityAssessmentName vulnerabilityAssessmentName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DatabaseSqlVulnerabilityAssessmentExecuteScanRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DatabaseSqlVulnerabilityAssessmentExecuteScanRestOperations.cs index 587389236363..2a89039812a0 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DatabaseSqlVulnerabilityAssessmentExecuteScanRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DatabaseSqlVulnerabilityAssessmentExecuteScanRestOperations.cs @@ -36,6 +36,25 @@ public DatabaseSqlVulnerabilityAssessmentExecuteScanRestOperations(HttpPipeline _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateExecuteRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName, VulnerabilityAssessmentName vulnerabilityAssessmentName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/sqlVulnerabilityAssessments/", false); + uri.AppendPath(vulnerabilityAssessmentName.ToString(), true); + uri.AppendPath("/initiateScan", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateExecuteRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName, VulnerabilityAssessmentName vulnerabilityAssessmentName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DatabaseSqlVulnerabilityAssessmentRuleBaselinesRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DatabaseSqlVulnerabilityAssessmentRuleBaselinesRestOperations.cs index 4b833d14f0c3..dd8b439c3d5b 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DatabaseSqlVulnerabilityAssessmentRuleBaselinesRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DatabaseSqlVulnerabilityAssessmentRuleBaselinesRestOperations.cs @@ -37,6 +37,27 @@ public DatabaseSqlVulnerabilityAssessmentRuleBaselinesRestOperations(HttpPipelin _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByBaselineRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName, VulnerabilityAssessmentName vulnerabilityAssessmentName, SqlVulnerabilityAssessmentBaselineName baselineName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/sqlVulnerabilityAssessments/", false); + uri.AppendPath(vulnerabilityAssessmentName.ToString(), true); + uri.AppendPath("/baselines/", false); + uri.AppendPath(baselineName.ToString(), true); + uri.AppendPath("/rules", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByBaselineRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName, VulnerabilityAssessmentName vulnerabilityAssessmentName, SqlVulnerabilityAssessmentBaselineName baselineName) { var message = _pipeline.CreateMessage(); @@ -130,6 +151,28 @@ public Response ListBy } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName, VulnerabilityAssessmentName vulnerabilityAssessmentName, SqlVulnerabilityAssessmentBaselineName baselineName, string ruleId) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/sqlVulnerabilityAssessments/", false); + uri.AppendPath(vulnerabilityAssessmentName.ToString(), true); + uri.AppendPath("/baselines/", false); + uri.AppendPath(baselineName.ToString(), true); + uri.AppendPath("/rules/", false); + uri.AppendPath(ruleId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName, VulnerabilityAssessmentName vulnerabilityAssessmentName, SqlVulnerabilityAssessmentBaselineName baselineName, string ruleId) { var message = _pipeline.CreateMessage(); @@ -232,6 +275,28 @@ public Response Get(string subscript } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName, VulnerabilityAssessmentName vulnerabilityAssessmentName, SqlVulnerabilityAssessmentBaselineName baselineName, string ruleId, SqlVulnerabilityAssessmentBaselineRuleCreateOrUpdateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/sqlVulnerabilityAssessments/", false); + uri.AppendPath(vulnerabilityAssessmentName.ToString(), true); + uri.AppendPath("/baselines/", false); + uri.AppendPath(baselineName.ToString(), true); + uri.AppendPath("/rules/", false); + uri.AppendPath(ruleId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName, VulnerabilityAssessmentName vulnerabilityAssessmentName, SqlVulnerabilityAssessmentBaselineName baselineName, string ruleId, SqlVulnerabilityAssessmentBaselineRuleCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); @@ -338,6 +403,28 @@ public Response CreateOrUpdate(strin } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName, VulnerabilityAssessmentName vulnerabilityAssessmentName, SqlVulnerabilityAssessmentBaselineName baselineName, string ruleId) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/sqlVulnerabilityAssessments/", false); + uri.AppendPath(vulnerabilityAssessmentName.ToString(), true); + uri.AppendPath("/baselines/", false); + uri.AppendPath(baselineName.ToString(), true); + uri.AppendPath("/rules/", false); + uri.AppendPath(ruleId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName, VulnerabilityAssessmentName vulnerabilityAssessmentName, SqlVulnerabilityAssessmentBaselineName baselineName, string ruleId) { var message = _pipeline.CreateMessage(); @@ -427,6 +514,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListByBaselineNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serverName, string databaseName, VulnerabilityAssessmentName vulnerabilityAssessmentName, SqlVulnerabilityAssessmentBaselineName baselineName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByBaselineNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serverName, string databaseName, VulnerabilityAssessmentName vulnerabilityAssessmentName, SqlVulnerabilityAssessmentBaselineName baselineName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DatabaseSqlVulnerabilityAssessmentScanResultRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DatabaseSqlVulnerabilityAssessmentScanResultRestOperations.cs index f06237336d82..52780dc869e1 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DatabaseSqlVulnerabilityAssessmentScanResultRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DatabaseSqlVulnerabilityAssessmentScanResultRestOperations.cs @@ -37,6 +37,27 @@ public DatabaseSqlVulnerabilityAssessmentScanResultRestOperations(HttpPipeline p _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByScanRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName, VulnerabilityAssessmentName vulnerabilityAssessmentName, string scanId) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/sqlVulnerabilityAssessments/", false); + uri.AppendPath(vulnerabilityAssessmentName.ToString(), true); + uri.AppendPath("/scans/", false); + uri.AppendPath(scanId, true); + uri.AppendPath("/scanResults", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByScanRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName, VulnerabilityAssessmentName vulnerabilityAssessmentName, string scanId) { var message = _pipeline.CreateMessage(); @@ -132,6 +153,28 @@ public Response ListByScan(string subs } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName, VulnerabilityAssessmentName vulnerabilityAssessmentName, string scanId, string scanResultId) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/sqlVulnerabilityAssessments/", false); + uri.AppendPath(vulnerabilityAssessmentName.ToString(), true); + uri.AppendPath("/scans/", false); + uri.AppendPath(scanId, true); + uri.AppendPath("/scanResults/", false); + uri.AppendPath(scanResultId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName, VulnerabilityAssessmentName vulnerabilityAssessmentName, string scanId, string scanResultId) { var message = _pipeline.CreateMessage(); @@ -236,6 +279,14 @@ public Response Get(string subscriptio } } + internal RequestUriBuilder CreateListByScanNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serverName, string databaseName, VulnerabilityAssessmentName vulnerabilityAssessmentName, string scanId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByScanNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serverName, string databaseName, VulnerabilityAssessmentName vulnerabilityAssessmentName, string scanId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DatabaseSqlVulnerabilityAssessmentScansRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DatabaseSqlVulnerabilityAssessmentScansRestOperations.cs index 50aeb7364466..93b2d6e34ce7 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DatabaseSqlVulnerabilityAssessmentScansRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DatabaseSqlVulnerabilityAssessmentScansRestOperations.cs @@ -37,6 +37,25 @@ public DatabaseSqlVulnerabilityAssessmentScansRestOperations(HttpPipeline pipeli _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListBySqlVulnerabilityAssessmentsRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName, VulnerabilityAssessmentName vulnerabilityAssessmentName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/sqlVulnerabilityAssessments/", false); + uri.AppendPath(vulnerabilityAssessmentName.ToString(), true); + uri.AppendPath("/scans", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySqlVulnerabilityAssessmentsRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName, VulnerabilityAssessmentName vulnerabilityAssessmentName) { var message = _pipeline.CreateMessage(); @@ -126,6 +145,26 @@ public Response ListBySqlVulnera } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName, VulnerabilityAssessmentName vulnerabilityAssessmentName, string scanId) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/sqlVulnerabilityAssessments/", false); + uri.AppendPath(vulnerabilityAssessmentName.ToString(), true); + uri.AppendPath("/scans/", false); + uri.AppendPath(scanId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName, VulnerabilityAssessmentName vulnerabilityAssessmentName, string scanId) { var message = _pipeline.CreateMessage(); @@ -224,6 +263,14 @@ public Response Get(string subscriptionId, s } } + internal RequestUriBuilder CreateListBySqlVulnerabilityAssessmentsNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serverName, string databaseName, VulnerabilityAssessmentName vulnerabilityAssessmentName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySqlVulnerabilityAssessmentsNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serverName, string databaseName, VulnerabilityAssessmentName vulnerabilityAssessmentName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DatabaseSqlVulnerabilityAssessmentsSettingsRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DatabaseSqlVulnerabilityAssessmentsSettingsRestOperations.cs index dd7d2e80e614..3decd4c91694 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DatabaseSqlVulnerabilityAssessmentsSettingsRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DatabaseSqlVulnerabilityAssessmentsSettingsRestOperations.cs @@ -37,6 +37,23 @@ public DatabaseSqlVulnerabilityAssessmentsSettingsRestOperations(HttpPipeline pi _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByDatabaseRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/sqlVulnerabilityAssessments", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByDatabaseRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName) { var message = _pipeline.CreateMessage(); @@ -122,6 +139,24 @@ public Response ListByDatabase(string subs } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName, VulnerabilityAssessmentName vulnerabilityAssessmentName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/sqlVulnerabilityAssessments/", false); + uri.AppendPath(vulnerabilityAssessmentName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName, VulnerabilityAssessmentName vulnerabilityAssessmentName) { var message = _pipeline.CreateMessage(); @@ -214,6 +249,14 @@ public Response Get(string subscriptionId, strin } } + internal RequestUriBuilder CreateListByDatabaseNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serverName, string databaseName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByDatabaseNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serverName, string databaseName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DatabaseTablesRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DatabaseTablesRestOperations.cs index 68b7b57c0b26..267e291c976c 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DatabaseTablesRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DatabaseTablesRestOperations.cs @@ -37,6 +37,29 @@ public DatabaseTablesRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListBySchemaRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string schemaName, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/schemas/", false); + uri.AppendPath(schemaName, true); + uri.AppendPath("/tables", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySchemaRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string schemaName, string filter) { var message = _pipeline.CreateMessage(); @@ -134,6 +157,26 @@ public Response ListBySchema(string subscriptionId, str } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string schemaName, string tableName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/schemas/", false); + uri.AppendPath(schemaName, true); + uri.AppendPath("/tables/", false); + uri.AppendPath(tableName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string schemaName, string tableName) { var message = _pipeline.CreateMessage(); @@ -234,6 +277,14 @@ public Response Get(string subscriptionId, string resourceGro } } + internal RequestUriBuilder CreateListBySchemaNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serverName, string databaseName, string schemaName, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySchemaNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serverName, string databaseName, string schemaName, string filter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DatabaseUsagesRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DatabaseUsagesRestOperations.cs index 98567111e36f..db7fe7d78269 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DatabaseUsagesRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DatabaseUsagesRestOperations.cs @@ -37,6 +37,23 @@ public DatabaseUsagesRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByDatabaseRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/usages", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByDatabaseRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName) { var message = _pipeline.CreateMessage(); @@ -122,6 +139,14 @@ public Response ListByDatabase(string subscriptionId, s } } + internal RequestUriBuilder CreateListByDatabaseNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serverName, string databaseName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByDatabaseNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serverName, string databaseName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DatabaseVulnerabilityAssessmentRuleBaselinesRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DatabaseVulnerabilityAssessmentRuleBaselinesRestOperations.cs index 83667c186571..f0d0bb672ee3 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DatabaseVulnerabilityAssessmentRuleBaselinesRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DatabaseVulnerabilityAssessmentRuleBaselinesRestOperations.cs @@ -37,6 +37,28 @@ public DatabaseVulnerabilityAssessmentRuleBaselinesRestOperations(HttpPipeline p _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName, VulnerabilityAssessmentName vulnerabilityAssessmentName, string ruleId, VulnerabilityAssessmentPolicyBaselineName baselineName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/vulnerabilityAssessments/", false); + uri.AppendPath(vulnerabilityAssessmentName.ToString(), true); + uri.AppendPath("/rules/", false); + uri.AppendPath(ruleId, true); + uri.AppendPath("/baselines/", false); + uri.AppendPath(baselineName.ToSerialString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName, VulnerabilityAssessmentName vulnerabilityAssessmentName, string ruleId, VulnerabilityAssessmentPolicyBaselineName baselineName) { var message = _pipeline.CreateMessage(); @@ -139,6 +161,28 @@ public Response Get(string subs } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName, VulnerabilityAssessmentName vulnerabilityAssessmentName, string ruleId, VulnerabilityAssessmentPolicyBaselineName baselineName, DatabaseVulnerabilityAssessmentRuleBaselineData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/vulnerabilityAssessments/", false); + uri.AppendPath(vulnerabilityAssessmentName.ToString(), true); + uri.AppendPath("/rules/", false); + uri.AppendPath(ruleId, true); + uri.AppendPath("/baselines/", false); + uri.AppendPath(baselineName.ToSerialString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName, VulnerabilityAssessmentName vulnerabilityAssessmentName, string ruleId, VulnerabilityAssessmentPolicyBaselineName baselineName, DatabaseVulnerabilityAssessmentRuleBaselineData data) { var message = _pipeline.CreateMessage(); @@ -245,6 +289,28 @@ public Response CreateOrUpdate( } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName, VulnerabilityAssessmentName vulnerabilityAssessmentName, string ruleId, VulnerabilityAssessmentPolicyBaselineName baselineName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/vulnerabilityAssessments/", false); + uri.AppendPath(vulnerabilityAssessmentName.ToString(), true); + uri.AppendPath("/rules/", false); + uri.AppendPath(ruleId, true); + uri.AppendPath("/baselines/", false); + uri.AppendPath(baselineName.ToSerialString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName, VulnerabilityAssessmentName vulnerabilityAssessmentName, string ruleId, VulnerabilityAssessmentPolicyBaselineName baselineName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DatabaseVulnerabilityAssessmentScansRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DatabaseVulnerabilityAssessmentScansRestOperations.cs index 49ddae465cc8..de9c08abcb36 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DatabaseVulnerabilityAssessmentScansRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DatabaseVulnerabilityAssessmentScansRestOperations.cs @@ -37,6 +37,27 @@ public DatabaseVulnerabilityAssessmentScansRestOperations(HttpPipeline pipeline, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateInitiateScanRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName, VulnerabilityAssessmentName vulnerabilityAssessmentName, string scanId) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/vulnerabilityAssessments/", false); + uri.AppendPath(vulnerabilityAssessmentName.ToString(), true); + uri.AppendPath("/scans/", false); + uri.AppendPath(scanId, true); + uri.AppendPath("/initiateScan", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateInitiateScanRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName, VulnerabilityAssessmentName vulnerabilityAssessmentName, string scanId) { var message = _pipeline.CreateMessage(); @@ -123,6 +144,25 @@ public Response InitiateScan(string subscriptionId, string resourceGroupName, st } } + internal RequestUriBuilder CreateListByDatabaseRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName, VulnerabilityAssessmentName vulnerabilityAssessmentName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/vulnerabilityAssessments/", false); + uri.AppendPath(vulnerabilityAssessmentName.ToString(), true); + uri.AppendPath("/scans", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByDatabaseRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName, VulnerabilityAssessmentName vulnerabilityAssessmentName) { var message = _pipeline.CreateMessage(); @@ -212,6 +252,26 @@ public Response ListByDatabase(stri } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName, VulnerabilityAssessmentName vulnerabilityAssessmentName, string scanId) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/vulnerabilityAssessments/", false); + uri.AppendPath(vulnerabilityAssessmentName.ToString(), true); + uri.AppendPath("/scans/", false); + uri.AppendPath(scanId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName, VulnerabilityAssessmentName vulnerabilityAssessmentName, string scanId) { var message = _pipeline.CreateMessage(); @@ -310,6 +370,27 @@ public Response Get(string subscriptionId } } + internal RequestUriBuilder CreateExportRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName, VulnerabilityAssessmentName vulnerabilityAssessmentName, string scanId) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/vulnerabilityAssessments/", false); + uri.AppendPath(vulnerabilityAssessmentName.ToString(), true); + uri.AppendPath("/scans/", false); + uri.AppendPath(scanId, true); + uri.AppendPath("/export", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateExportRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName, VulnerabilityAssessmentName vulnerabilityAssessmentName, string scanId) { var message = _pipeline.CreateMessage(); @@ -407,6 +488,14 @@ public Response Export(string subscr } } + internal RequestUriBuilder CreateListByDatabaseNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serverName, string databaseName, VulnerabilityAssessmentName vulnerabilityAssessmentName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByDatabaseNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serverName, string databaseName, VulnerabilityAssessmentName vulnerabilityAssessmentName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DatabaseVulnerabilityAssessmentsRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DatabaseVulnerabilityAssessmentsRestOperations.cs index 7242f63f2329..5fbb5c63aec3 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DatabaseVulnerabilityAssessmentsRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DatabaseVulnerabilityAssessmentsRestOperations.cs @@ -37,6 +37,24 @@ public DatabaseVulnerabilityAssessmentsRestOperations(HttpPipeline pipeline, str _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName, VulnerabilityAssessmentName vulnerabilityAssessmentName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/vulnerabilityAssessments/", false); + uri.AppendPath(vulnerabilityAssessmentName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName, VulnerabilityAssessmentName vulnerabilityAssessmentName) { var message = _pipeline.CreateMessage(); @@ -129,6 +147,24 @@ public Response Get(string subscriptionId, } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName, VulnerabilityAssessmentName vulnerabilityAssessmentName, DatabaseVulnerabilityAssessmentData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/vulnerabilityAssessments/", false); + uri.AppendPath(vulnerabilityAssessmentName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName, VulnerabilityAssessmentName vulnerabilityAssessmentName, DatabaseVulnerabilityAssessmentData data) { var message = _pipeline.CreateMessage(); @@ -227,6 +263,24 @@ public Response CreateOrUpdate(string subsc } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName, VulnerabilityAssessmentName vulnerabilityAssessmentName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/vulnerabilityAssessments/", false); + uri.AppendPath(vulnerabilityAssessmentName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName, VulnerabilityAssessmentName vulnerabilityAssessmentName) { var message = _pipeline.CreateMessage(); @@ -304,6 +358,23 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListByDatabaseRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/vulnerabilityAssessments", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByDatabaseRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName) { var message = _pipeline.CreateMessage(); @@ -389,6 +460,14 @@ public Response ListByDatabase(string } } + internal RequestUriBuilder CreateListByDatabaseNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serverName, string databaseName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByDatabaseNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serverName, string databaseName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DatabasesRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DatabasesRestOperations.cs index e9dfa27491b3..f3a8502b8f62 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DatabasesRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DatabasesRestOperations.cs @@ -37,6 +37,25 @@ public DatabasesRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByServerRequestUri(string subscriptionId, string resourceGroupName, string serverName, string skipToken) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases", false); + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByServerRequest(string subscriptionId, string resourceGroupName, string serverName, string skipToken) { var message = _pipeline.CreateMessage(); @@ -122,6 +141,30 @@ public Response ListByServer(string subscriptionId, string r } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string expand, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string expand, string filter) { var message = _pipeline.CreateMessage(); @@ -222,6 +265,22 @@ public Response Get(string subscriptionId, string resourceGroup } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName, SqlDatabaseData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName, SqlDatabaseData data) { var message = _pipeline.CreateMessage(); @@ -308,6 +367,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName) { var message = _pipeline.CreateMessage(); @@ -385,6 +460,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName, SqlDatabasePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName, SqlDatabasePatch patch) { var message = _pipeline.CreateMessage(); @@ -469,6 +560,23 @@ public Response Update(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateExportRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName, DatabaseExportDefinition databaseExportDefinition) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/export", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateExportRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName, DatabaseExportDefinition databaseExportDefinition) { var message = _pipeline.CreateMessage(); @@ -554,6 +662,27 @@ public Response Export(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateFailoverRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName, ReplicaType? replicaType) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/failover", false); + if (replicaType != null) + { + uri.AppendQuery("replicaType", replicaType.Value.ToString(), true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateFailoverRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName, ReplicaType? replicaType) { var message = _pipeline.CreateMessage(); @@ -636,6 +765,23 @@ public Response Failover(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreateImportRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName, ImportExistingDatabaseDefinition importExistingDatabaseDefinition) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/import", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateImportRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName, ImportExistingDatabaseDefinition importExistingDatabaseDefinition) { var message = _pipeline.CreateMessage(); @@ -721,6 +867,23 @@ public Response Import(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateRenameRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName, SqlResourceMoveDefinition sqlResourceMoveDefinition) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/move", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRenameRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName, SqlResourceMoveDefinition sqlResourceMoveDefinition) { var message = _pipeline.CreateMessage(); @@ -803,6 +966,23 @@ public Response Rename(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreatePauseRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/pause", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreatePauseRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName) { var message = _pipeline.CreateMessage(); @@ -880,6 +1060,23 @@ public Response Pause(string subscriptionId, string resourceGroupName, string se } } + internal RequestUriBuilder CreateResumeRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/resume", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateResumeRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName) { var message = _pipeline.CreateMessage(); @@ -957,6 +1154,23 @@ public Response Resume(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateUpgradeDataWarehouseRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/upgradeDataWarehouse", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpgradeDataWarehouseRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName) { var message = _pipeline.CreateMessage(); @@ -1033,6 +1247,23 @@ public Response UpgradeDataWarehouse(string subscriptionId, string resourceGroup } } + internal RequestUriBuilder CreateListByElasticPoolRequestUri(string subscriptionId, string resourceGroupName, string serverName, string elasticPoolName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/elasticPools/", false); + uri.AppendPath(elasticPoolName, true); + uri.AppendPath("/databases", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByElasticPoolRequest(string subscriptionId, string resourceGroupName, string serverName, string elasticPoolName) { var message = _pipeline.CreateMessage(); @@ -1118,6 +1349,21 @@ public Response ListByElasticPool(string subscriptionId, str } } + internal RequestUriBuilder CreateListInaccessibleByServerRequestUri(string subscriptionId, string resourceGroupName, string serverName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/inaccessibleDatabases", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListInaccessibleByServerRequest(string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); @@ -1197,6 +1443,14 @@ public Response ListInaccessibleByServer(string subscription } } + internal RequestUriBuilder CreateListByServerNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serverName, string skipToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByServerNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serverName, string skipToken) { var message = _pipeline.CreateMessage(); @@ -1275,6 +1529,14 @@ public Response ListByServerNextPage(string nextLink, string } } + internal RequestUriBuilder CreateListByElasticPoolNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serverName, string elasticPoolName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByElasticPoolNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serverName, string elasticPoolName) { var message = _pipeline.CreateMessage(); @@ -1355,6 +1617,14 @@ public Response ListByElasticPoolNextPage(string nextLink, s } } + internal RequestUriBuilder CreateListInaccessibleByServerNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serverName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListInaccessibleByServerNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DeletedServersRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DeletedServersRestOperations.cs index 2e68178d7716..379baa5290a0 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DeletedServersRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DeletedServersRestOperations.cs @@ -37,6 +37,17 @@ public DeletedServersRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Sql/deletedServers", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,20 @@ public Response List(string subscriptionId, Cancellatio } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, AzureLocation locationName, string deletedServerName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Sql/locations/", false); + uri.AppendPath(locationName, true); + uri.AppendPath("/deletedServers/", false); + uri.AppendPath(deletedServerName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, AzureLocation locationName, string deletedServerName) { var message = _pipeline.CreateMessage(); @@ -184,6 +209,19 @@ public Response Get(string subscriptionId, AzureLocation loca } } + internal RequestUriBuilder CreateListByLocationRequestUri(string subscriptionId, AzureLocation locationName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Sql/locations/", false); + uri.AppendPath(locationName, true); + uri.AppendPath("/deletedServers", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByLocationRequest(string subscriptionId, AzureLocation locationName) { var message = _pipeline.CreateMessage(); @@ -255,6 +293,21 @@ public Response ListByLocation(string subscriptionId, A } } + internal RequestUriBuilder CreateRecoverRequestUri(string subscriptionId, AzureLocation locationName, string deletedServerName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Sql/locations/", false); + uri.AppendPath(locationName, true); + uri.AppendPath("/deletedServers/", false); + uri.AppendPath(deletedServerName, true); + uri.AppendPath("/recover", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRecoverRequest(string subscriptionId, AzureLocation locationName, string deletedServerName) { var message = _pipeline.CreateMessage(); @@ -324,6 +377,14 @@ public Response Recover(string subscriptionId, AzureLocation locationName, strin } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -392,6 +453,14 @@ public Response ListNextPage(string nextLink, string su } } + internal RequestUriBuilder CreateListByLocationNextPageRequestUri(string nextLink, string subscriptionId, AzureLocation locationName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByLocationNextPageRequest(string nextLink, string subscriptionId, AzureLocation locationName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DistributedAvailabilityGroupsRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DistributedAvailabilityGroupsRestOperations.cs index 0f518f3fe12a..f7f51a3363eb 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DistributedAvailabilityGroupsRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/DistributedAvailabilityGroupsRestOperations.cs @@ -37,6 +37,21 @@ public DistributedAvailabilityGroupsRestOperations(HttpPipeline pipeline, string _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByInstanceRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName) + { + 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.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/distributedAvailabilityGroups", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByInstanceRequest(string subscriptionId, string resourceGroupName, string managedInstanceName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByInstance(string s } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, string distributedAvailabilityGroupName) + { + 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.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/distributedAvailabilityGroups/", false); + uri.AppendPath(distributedAvailabilityGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, string distributedAvailabilityGroupName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscriptionId, str } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, string distributedAvailabilityGroupName, DistributedAvailabilityGroupData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/distributedAvailabilityGroups/", false); + uri.AppendPath(distributedAvailabilityGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, string distributedAvailabilityGroupName, DistributedAvailabilityGroupData data) { var message = _pipeline.CreateMessage(); @@ -290,6 +337,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, string distributedAvailabilityGroupName) + { + 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.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/distributedAvailabilityGroups/", false); + uri.AppendPath(distributedAvailabilityGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, string distributedAvailabilityGroupName) { var message = _pipeline.CreateMessage(); @@ -367,6 +430,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string m } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, string distributedAvailabilityGroupName, DistributedAvailabilityGroupData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/distributedAvailabilityGroups/", false); + uri.AppendPath(distributedAvailabilityGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, string distributedAvailabilityGroupName, DistributedAvailabilityGroupData data) { var message = _pipeline.CreateMessage(); @@ -451,6 +530,14 @@ public Response Update(string subscriptionId, string resourceGroupName, string m } } + internal RequestUriBuilder CreateListByInstanceNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string managedInstanceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByInstanceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string managedInstanceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ElasticPoolActivitiesRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ElasticPoolActivitiesRestOperations.cs index 462895a0325f..c2bbd53e9072 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ElasticPoolActivitiesRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ElasticPoolActivitiesRestOperations.cs @@ -37,6 +37,23 @@ public ElasticPoolActivitiesRestOperations(HttpPipeline pipeline, string applica _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByElasticPoolRequestUri(string subscriptionId, string resourceGroupName, string serverName, string elasticPoolName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/elasticPools/", false); + uri.AppendPath(elasticPoolName, true); + uri.AppendPath("/elasticPoolActivity", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByElasticPoolRequest(string subscriptionId, string resourceGroupName, string serverName, string elasticPoolName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ElasticPoolDatabaseActivitiesRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ElasticPoolDatabaseActivitiesRestOperations.cs index 11c3f3e1130a..3e15b5bce651 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ElasticPoolDatabaseActivitiesRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ElasticPoolDatabaseActivitiesRestOperations.cs @@ -37,6 +37,23 @@ public ElasticPoolDatabaseActivitiesRestOperations(HttpPipeline pipeline, string _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByElasticPoolRequestUri(string subscriptionId, string resourceGroupName, string serverName, string elasticPoolName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/elasticPools/", false); + uri.AppendPath(elasticPoolName, true); + uri.AppendPath("/elasticPoolDatabaseActivity", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByElasticPoolRequest(string subscriptionId, string resourceGroupName, string serverName, string elasticPoolName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ElasticPoolRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ElasticPoolRestOperations.cs index 93b506622c8c..7ade6dc76e00 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ElasticPoolRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ElasticPoolRestOperations.cs @@ -37,6 +37,25 @@ public ElasticPoolRestOperations(HttpPipeline pipeline, string applicationId, Ur _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCancelRequestUri(string subscriptionId, string resourceGroupName, string serverName, string elasticPoolName, Guid operationId) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/elasticPools/", false); + uri.AppendPath(elasticPoolName, true); + uri.AppendPath("/operations/", false); + uri.AppendPath(operationId, true); + uri.AppendPath("/cancel", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCancelRequest(string subscriptionId, string resourceGroupName, string serverName, string elasticPoolName, Guid operationId) { var message = _pipeline.CreateMessage(); @@ -115,6 +134,23 @@ public Response Cancel(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListByElasticPoolRequestUri(string subscriptionId, string resourceGroupName, string serverName, string elasticPoolName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/elasticPools/", false); + uri.AppendPath(elasticPoolName, true); + uri.AppendPath("/operations", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByElasticPoolRequest(string subscriptionId, string resourceGroupName, string serverName, string elasticPoolName) { var message = _pipeline.CreateMessage(); @@ -200,6 +236,14 @@ public Response ListByElasticPool(string subscri } } + internal RequestUriBuilder CreateListByElasticPoolNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serverName, string elasticPoolName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByElasticPoolNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serverName, string elasticPoolName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ElasticPoolsRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ElasticPoolsRestOperations.cs index a4f73581469b..4831ab11e90c 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ElasticPoolsRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ElasticPoolsRestOperations.cs @@ -37,6 +37,25 @@ public ElasticPoolsRestOperations(HttpPipeline pipeline, string applicationId, U _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByServerRequestUri(string subscriptionId, string resourceGroupName, string serverName, long? skip) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/elasticPools", false); + if (skip != null) + { + uri.AppendQuery("$skip", skip.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByServerRequest(string subscriptionId, string resourceGroupName, string serverName, long? skip) { var message = _pipeline.CreateMessage(); @@ -122,6 +141,22 @@ public Response ListByServer(string subscriptionId, strin } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serverName, string elasticPoolName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/elasticPools/", false); + uri.AppendPath(elasticPoolName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serverName, string elasticPoolName) { var message = _pipeline.CreateMessage(); @@ -210,6 +245,22 @@ public Response Get(string subscriptionId, string resourceGroup } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serverName, string elasticPoolName, ElasticPoolData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/elasticPools/", false); + uri.AppendPath(elasticPoolName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serverName, string elasticPoolName, ElasticPoolData data) { var message = _pipeline.CreateMessage(); @@ -296,6 +347,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string serverName, string elasticPoolName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/elasticPools/", false); + uri.AppendPath(elasticPoolName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string serverName, string elasticPoolName) { var message = _pipeline.CreateMessage(); @@ -373,6 +440,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string serverName, string elasticPoolName, ElasticPoolPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/elasticPools/", false); + uri.AppendPath(elasticPoolName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string serverName, string elasticPoolName, ElasticPoolPatch patch) { var message = _pipeline.CreateMessage(); @@ -457,6 +540,23 @@ public Response Update(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateFailoverRequestUri(string subscriptionId, string resourceGroupName, string serverName, string elasticPoolName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/elasticPools/", false); + uri.AppendPath(elasticPoolName, true); + uri.AppendPath("/failover", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateFailoverRequest(string subscriptionId, string resourceGroupName, string serverName, string elasticPoolName) { var message = _pipeline.CreateMessage(); @@ -533,6 +633,14 @@ public Response Failover(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreateListByServerNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serverName, long? skip) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByServerNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serverName, long? skip) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/EncryptionProtectorsRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/EncryptionProtectorsRestOperations.cs index 1f8ce8cccb24..e91a2eb337c8 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/EncryptionProtectorsRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/EncryptionProtectorsRestOperations.cs @@ -37,6 +37,21 @@ public EncryptionProtectorsRestOperations(HttpPipeline pipeline, string applicat _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByServerRequestUri(string subscriptionId, string resourceGroupName, string serverName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/encryptionProtector", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByServerRequest(string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByServer(string subscriptionI } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serverName, EncryptionProtectorName encryptionProtectorName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/encryptionProtector/", false); + uri.AppendPath(encryptionProtectorName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serverName, EncryptionProtectorName encryptionProtectorName) { var message = _pipeline.CreateMessage(); @@ -202,6 +233,22 @@ public Response Get(string subscriptionId, string resou } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serverName, EncryptionProtectorName encryptionProtectorName, EncryptionProtectorData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/encryptionProtector/", false); + uri.AppendPath(encryptionProtectorName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serverName, EncryptionProtectorName encryptionProtectorName, EncryptionProtectorData data) { var message = _pipeline.CreateMessage(); @@ -284,6 +331,23 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateRevalidateRequestUri(string subscriptionId, string resourceGroupName, string serverName, EncryptionProtectorName encryptionProtectorName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/encryptionProtector/", false); + uri.AppendPath(encryptionProtectorName.ToString(), true); + uri.AppendPath("/revalidate", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRevalidateRequest(string subscriptionId, string resourceGroupName, string serverName, EncryptionProtectorName encryptionProtectorName) { var message = _pipeline.CreateMessage(); @@ -358,6 +422,14 @@ public Response Revalidate(string subscriptionId, string resourceGroupName, stri } } + internal RequestUriBuilder CreateListByServerNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serverName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByServerNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/EndpointCertificatesRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/EndpointCertificatesRestOperations.cs index 0f05a84bc398..4cc5cb5800cb 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/EndpointCertificatesRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/EndpointCertificatesRestOperations.cs @@ -37,6 +37,21 @@ public EndpointCertificatesRestOperations(HttpPipeline pipeline, string applicat _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByInstanceRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName) + { + 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.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/endpointCertificates", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByInstanceRequest(string subscriptionId, string resourceGroupName, string managedInstanceName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByInstance(string subscriptio } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, string endpointType) + { + 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.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/endpointCertificates/", false); + uri.AppendPath(endpointType, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, string endpointType) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,14 @@ public Response Get(string subscriptionId, string resou } } + internal RequestUriBuilder CreateListByInstanceNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string managedInstanceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByInstanceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string managedInstanceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ExtendedDatabaseBlobAuditingPoliciesRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ExtendedDatabaseBlobAuditingPoliciesRestOperations.cs index 7d06a7b7fca1..90bd176cfb1c 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ExtendedDatabaseBlobAuditingPoliciesRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ExtendedDatabaseBlobAuditingPoliciesRestOperations.cs @@ -37,6 +37,23 @@ public ExtendedDatabaseBlobAuditingPoliciesRestOperations(HttpPipeline pipeline, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByDatabaseRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/extendedAuditingSettings", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByDatabaseRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName) { var message = _pipeline.CreateMessage(); @@ -122,6 +139,24 @@ public Response ListByDatabase(str } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName, BlobAuditingPolicyName blobAuditingPolicyName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/extendedAuditingSettings/", false); + uri.AppendPath(blobAuditingPolicyName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName, BlobAuditingPolicyName blobAuditingPolicyName) { var message = _pipeline.CreateMessage(); @@ -214,6 +249,24 @@ public Response Get(string subscriptionI } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName, BlobAuditingPolicyName blobAuditingPolicyName, ExtendedDatabaseBlobAuditingPolicyData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/extendedAuditingSettings/", false); + uri.AppendPath(blobAuditingPolicyName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName, BlobAuditingPolicyName blobAuditingPolicyName, ExtendedDatabaseBlobAuditingPolicyData data) { var message = _pipeline.CreateMessage(); @@ -312,6 +365,14 @@ public Response CreateOrUpdate(string su } } + internal RequestUriBuilder CreateListByDatabaseNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serverName, string databaseName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByDatabaseNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serverName, string databaseName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ExtendedServerBlobAuditingPoliciesRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ExtendedServerBlobAuditingPoliciesRestOperations.cs index 21ebca4e9811..01db07effe6f 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ExtendedServerBlobAuditingPoliciesRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ExtendedServerBlobAuditingPoliciesRestOperations.cs @@ -37,6 +37,21 @@ public ExtendedServerBlobAuditingPoliciesRestOperations(HttpPipeline pipeline, s _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByServerRequestUri(string subscriptionId, string resourceGroupName, string serverName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/extendedAuditingSettings", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByServerRequest(string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByServer(string } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serverName, BlobAuditingPolicyName blobAuditingPolicyName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/extendedAuditingSettings/", false); + uri.AppendPath(blobAuditingPolicyName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serverName, BlobAuditingPolicyName blobAuditingPolicyName) { var message = _pipeline.CreateMessage(); @@ -202,6 +233,22 @@ public Response Get(string subscriptionId, } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serverName, BlobAuditingPolicyName blobAuditingPolicyName, ExtendedServerBlobAuditingPolicyData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/extendedAuditingSettings/", false); + uri.AppendPath(blobAuditingPolicyName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serverName, BlobAuditingPolicyName blobAuditingPolicyName, ExtendedServerBlobAuditingPolicyData data) { var message = _pipeline.CreateMessage(); @@ -284,6 +331,14 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateListByServerNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serverName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByServerNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/FailoverGroupsRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/FailoverGroupsRestOperations.cs index 316fa12bf8bf..c973e55c960e 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/FailoverGroupsRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/FailoverGroupsRestOperations.cs @@ -37,6 +37,21 @@ public FailoverGroupsRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByServerRequestUri(string subscriptionId, string resourceGroupName, string serverName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/failoverGroups", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByServerRequest(string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByServer(string subscriptionId, str } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serverName, string failoverGroupName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/failoverGroups/", false); + uri.AppendPath(failoverGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serverName, string failoverGroupName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscriptionId, string resourceGro } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serverName, string failoverGroupName, FailoverGroupData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/failoverGroups/", false); + uri.AppendPath(failoverGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serverName, string failoverGroupName, FailoverGroupData data) { var message = _pipeline.CreateMessage(); @@ -290,6 +337,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string serverName, string failoverGroupName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/failoverGroups/", false); + uri.AppendPath(failoverGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string serverName, string failoverGroupName) { var message = _pipeline.CreateMessage(); @@ -367,6 +430,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string serverName, string failoverGroupName, FailoverGroupPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/failoverGroups/", false); + uri.AppendPath(failoverGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string serverName, string failoverGroupName, FailoverGroupPatch patch) { var message = _pipeline.CreateMessage(); @@ -451,6 +530,23 @@ public Response Update(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateFailoverRequestUri(string subscriptionId, string resourceGroupName, string serverName, string failoverGroupName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/failoverGroups/", false); + uri.AppendPath(failoverGroupName, true); + uri.AppendPath("/failover", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateFailoverRequest(string subscriptionId, string resourceGroupName, string serverName, string failoverGroupName) { var message = _pipeline.CreateMessage(); @@ -528,6 +624,23 @@ public Response Failover(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreateForceFailoverAllowDataLossRequestUri(string subscriptionId, string resourceGroupName, string serverName, string failoverGroupName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/failoverGroups/", false); + uri.AppendPath(failoverGroupName, true); + uri.AppendPath("/forceFailoverAllowDataLoss", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateForceFailoverAllowDataLossRequest(string subscriptionId, string resourceGroupName, string serverName, string failoverGroupName) { var message = _pipeline.CreateMessage(); @@ -605,6 +718,23 @@ public Response ForceFailoverAllowDataLoss(string subscriptionId, string resourc } } + internal RequestUriBuilder CreateTryPlannedBeforeForcedFailoverRequestUri(string subscriptionId, string resourceGroupName, string serverName, string failoverGroupName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/failoverGroups/", false); + uri.AppendPath(failoverGroupName, true); + uri.AppendPath("/tryPlannedBeforeForcedFailover", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateTryPlannedBeforeForcedFailoverRequest(string subscriptionId, string resourceGroupName, string serverName, string failoverGroupName) { var message = _pipeline.CreateMessage(); @@ -682,6 +812,14 @@ public Response TryPlannedBeforeForcedFailover(string subscriptionId, string res } } + internal RequestUriBuilder CreateListByServerNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serverName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByServerNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/FirewallRulesRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/FirewallRulesRestOperations.cs index ab66e5994dbd..f94a38f2d042 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/FirewallRulesRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/FirewallRulesRestOperations.cs @@ -37,6 +37,22 @@ public FirewallRulesRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serverName, string firewallRuleName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/firewallRules/", false); + uri.AppendPath(firewallRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serverName, string firewallRuleName) { var message = _pipeline.CreateMessage(); @@ -125,6 +141,22 @@ public Response Get(string subscriptionId, string resourceG } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serverName, string firewallRuleName, SqlFirewallRuleData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/firewallRules/", false); + uri.AppendPath(firewallRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serverName, string firewallRuleName, SqlFirewallRuleData data) { var message = _pipeline.CreateMessage(); @@ -219,6 +251,22 @@ public Response CreateOrUpdate(string subscriptionId, strin } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string serverName, string firewallRuleName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/firewallRules/", false); + uri.AppendPath(firewallRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string serverName, string firewallRuleName) { var message = _pipeline.CreateMessage(); @@ -294,6 +342,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListByServerRequestUri(string subscriptionId, string resourceGroupName, string serverName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/firewallRules", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByServerRequest(string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); @@ -373,6 +436,14 @@ public Response ListByServer(string subscriptionId, stri } } + internal RequestUriBuilder CreateListByServerNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serverName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByServerNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/GeoBackupPoliciesRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/GeoBackupPoliciesRestOperations.cs index 2776e84c71f5..b9021d9f85fe 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/GeoBackupPoliciesRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/GeoBackupPoliciesRestOperations.cs @@ -37,6 +37,24 @@ public GeoBackupPoliciesRestOperations(HttpPipeline pipeline, string application _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName, GeoBackupPolicyName geoBackupPolicyName, GeoBackupPolicyData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/geoBackupPolicies/", false); + uri.AppendPath(geoBackupPolicyName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName, GeoBackupPolicyName geoBackupPolicyName, GeoBackupPolicyData data) { var message = _pipeline.CreateMessage(); @@ -135,6 +153,24 @@ public Response CreateOrUpdate(string subscriptionId, strin } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName, GeoBackupPolicyName geoBackupPolicyName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/geoBackupPolicies/", false); + uri.AppendPath(geoBackupPolicyName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName, GeoBackupPolicyName geoBackupPolicyName) { var message = _pipeline.CreateMessage(); @@ -227,6 +263,23 @@ public Response Get(string subscriptionId, string resourceG } } + internal RequestUriBuilder CreateListByDatabaseRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/geoBackupPolicies", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByDatabaseRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/IPv6FirewallRulesRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/IPv6FirewallRulesRestOperations.cs index 14041c74e31d..3d5c08649905 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/IPv6FirewallRulesRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/IPv6FirewallRulesRestOperations.cs @@ -37,6 +37,21 @@ public IPv6FirewallRulesRestOperations(HttpPipeline pipeline, string application _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByServerRequestUri(string subscriptionId, string resourceGroupName, string serverName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/ipv6FirewallRules", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByServerRequest(string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByServer(string subscriptionId, } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serverName, string firewallRuleName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/ipv6FirewallRules/", false); + uri.AppendPath(firewallRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serverName, string firewallRuleName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscriptionId, string resource } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serverName, string firewallRuleName, IPv6FirewallRuleData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/ipv6FirewallRules/", false); + uri.AppendPath(firewallRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serverName, string firewallRuleName, IPv6FirewallRuleData data) { var message = _pipeline.CreateMessage(); @@ -298,6 +345,22 @@ public Response CreateOrUpdate(string subscriptionId, stri } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string serverName, string firewallRuleName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/ipv6FirewallRules/", false); + uri.AppendPath(firewallRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string serverName, string firewallRuleName) { var message = _pipeline.CreateMessage(); @@ -373,6 +436,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListByServerNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serverName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByServerNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/InstanceFailoverGroupsRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/InstanceFailoverGroupsRestOperations.cs index 7b1d4ecaba22..f140f75ba085 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/InstanceFailoverGroupsRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/InstanceFailoverGroupsRestOperations.cs @@ -37,6 +37,21 @@ public InstanceFailoverGroupsRestOperations(HttpPipeline pipeline, string applic _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByLocationRequestUri(string subscriptionId, string resourceGroupName, AzureLocation locationName) + { + 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.Sql/locations/", false); + uri.AppendPath(locationName, true); + uri.AppendPath("/instanceFailoverGroups", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByLocationRequest(string subscriptionId, string resourceGroupName, AzureLocation locationName) { var message = _pipeline.CreateMessage(); @@ -114,6 +129,22 @@ public Response ListByLocation(string subscript } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, AzureLocation locationName, string failoverGroupName) + { + 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.Sql/locations/", false); + uri.AppendPath(locationName, true); + uri.AppendPath("/instanceFailoverGroups/", false); + uri.AppendPath(failoverGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, AzureLocation locationName, string failoverGroupName) { var message = _pipeline.CreateMessage(); @@ -200,6 +231,22 @@ public Response Get(string subscriptionId, string res } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, AzureLocation locationName, string failoverGroupName, InstanceFailoverGroupData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/locations/", false); + uri.AppendPath(locationName, true); + uri.AppendPath("/instanceFailoverGroups/", false); + uri.AppendPath(failoverGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, AzureLocation locationName, string failoverGroupName, InstanceFailoverGroupData data) { var message = _pipeline.CreateMessage(); @@ -284,6 +331,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, AzureLocation locationName, string failoverGroupName) + { + 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.Sql/locations/", false); + uri.AppendPath(locationName, true); + uri.AppendPath("/instanceFailoverGroups/", false); + uri.AppendPath(failoverGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, AzureLocation locationName, string failoverGroupName) { var message = _pipeline.CreateMessage(); @@ -359,6 +422,23 @@ public Response Delete(string subscriptionId, string resourceGroupName, AzureLoc } } + internal RequestUriBuilder CreateFailoverRequestUri(string subscriptionId, string resourceGroupName, AzureLocation locationName, string failoverGroupName) + { + 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.Sql/locations/", false); + uri.AppendPath(locationName, true); + uri.AppendPath("/instanceFailoverGroups/", false); + uri.AppendPath(failoverGroupName, true); + uri.AppendPath("/failover", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateFailoverRequest(string subscriptionId, string resourceGroupName, AzureLocation locationName, string failoverGroupName) { var message = _pipeline.CreateMessage(); @@ -434,6 +514,23 @@ public Response Failover(string subscriptionId, string resourceGroupName, AzureL } } + internal RequestUriBuilder CreateForceFailoverAllowDataLossRequestUri(string subscriptionId, string resourceGroupName, AzureLocation locationName, string failoverGroupName) + { + 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.Sql/locations/", false); + uri.AppendPath(locationName, true); + uri.AppendPath("/instanceFailoverGroups/", false); + uri.AppendPath(failoverGroupName, true); + uri.AppendPath("/forceFailoverAllowDataLoss", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateForceFailoverAllowDataLossRequest(string subscriptionId, string resourceGroupName, AzureLocation locationName, string failoverGroupName) { var message = _pipeline.CreateMessage(); @@ -509,6 +606,14 @@ public Response ForceFailoverAllowDataLoss(string subscriptionId, string resourc } } + internal RequestUriBuilder CreateListByLocationNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, AzureLocation locationName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByLocationNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, AzureLocation locationName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/InstancePoolsRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/InstancePoolsRestOperations.cs index 966c5f4a3938..e6feace7558d 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/InstancePoolsRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/InstancePoolsRestOperations.cs @@ -37,6 +37,17 @@ public InstancePoolsRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Sql/instancePools", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,19 @@ public Response List(string subscriptionId, Cancellation } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.Sql/instancePools", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -177,6 +201,20 @@ public Response ListByResourceGroup(string subscriptionI } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string instancePoolName) + { + 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.Sql/instancePools/", false); + uri.AppendPath(instancePoolName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string instancePoolName) { var message = _pipeline.CreateMessage(); @@ -259,6 +297,20 @@ public Response Get(string subscriptionId, string resourceGrou } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string instancePoolName, InstancePoolData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/instancePools/", false); + uri.AppendPath(instancePoolName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string instancePoolName, InstancePoolData data) { var message = _pipeline.CreateMessage(); @@ -339,6 +391,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string instancePoolName) + { + 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.Sql/instancePools/", false); + uri.AppendPath(instancePoolName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string instancePoolName) { var message = _pipeline.CreateMessage(); @@ -410,6 +476,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string i } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string instancePoolName, InstancePoolPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/instancePools/", false); + uri.AppendPath(instancePoolName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string instancePoolName, InstancePoolPatch patch) { var message = _pipeline.CreateMessage(); @@ -488,6 +568,14 @@ public Response Update(string subscriptionId, string resourceGroupName, string i } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -556,6 +644,14 @@ public Response ListNextPage(string nextLink, string sub } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/JobAgentsRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/JobAgentsRestOperations.cs index 9fce51ac3bbc..279a5e596581 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/JobAgentsRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/JobAgentsRestOperations.cs @@ -37,6 +37,21 @@ public JobAgentsRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByServerRequestUri(string subscriptionId, string resourceGroupName, string serverName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/jobAgents", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByServerRequest(string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByServer(string subscriptionId, string r } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serverName, string jobAgentName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/jobAgents/", false); + uri.AppendPath(jobAgentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serverName, string jobAgentName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscriptionId, string resourc } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serverName, string jobAgentName, SqlServerJobAgentData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/jobAgents/", false); + uri.AppendPath(jobAgentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serverName, string jobAgentName, SqlServerJobAgentData data) { var message = _pipeline.CreateMessage(); @@ -290,6 +337,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string serverName, string jobAgentName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/jobAgents/", false); + uri.AppendPath(jobAgentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string serverName, string jobAgentName) { var message = _pipeline.CreateMessage(); @@ -367,6 +430,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string serverName, string jobAgentName, SqlServerJobAgentPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/jobAgents/", false); + uri.AppendPath(jobAgentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string serverName, string jobAgentName, SqlServerJobAgentPatch patch) { var message = _pipeline.CreateMessage(); @@ -451,6 +530,14 @@ public Response Update(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListByServerNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serverName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByServerNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/JobCredentialsRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/JobCredentialsRestOperations.cs index 5841d3f2947c..d9db8f460400 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/JobCredentialsRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/JobCredentialsRestOperations.cs @@ -37,6 +37,23 @@ public JobCredentialsRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByAgentRequestUri(string subscriptionId, string resourceGroupName, string serverName, string jobAgentName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/jobAgents/", false); + uri.AppendPath(jobAgentName, true); + uri.AppendPath("/credentials", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByAgentRequest(string subscriptionId, string resourceGroupName, string serverName, string jobAgentName) { var message = _pipeline.CreateMessage(); @@ -122,6 +139,24 @@ public Response ListByAgent(string subscriptionId, stri } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serverName, string jobAgentName, string credentialName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/jobAgents/", false); + uri.AppendPath(jobAgentName, true); + uri.AppendPath("/credentials/", false); + uri.AppendPath(credentialName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serverName, string jobAgentName, string credentialName) { var message = _pipeline.CreateMessage(); @@ -216,6 +251,24 @@ public Response Get(string subscriptionId, string re } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serverName, string jobAgentName, string credentialName, SqlServerJobCredentialData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/jobAgents/", false); + uri.AppendPath(jobAgentName, true); + uri.AppendPath("/credentials/", false); + uri.AppendPath(credentialName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serverName, string jobAgentName, string credentialName, SqlServerJobCredentialData data) { var message = _pipeline.CreateMessage(); @@ -316,6 +369,24 @@ public Response CreateOrUpdate(string subscriptionId } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string serverName, string jobAgentName, string credentialName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/jobAgents/", false); + uri.AppendPath(jobAgentName, true); + uri.AppendPath("/credentials/", false); + uri.AppendPath(credentialName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string serverName, string jobAgentName, string credentialName) { var message = _pipeline.CreateMessage(); @@ -397,6 +468,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListByAgentNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serverName, string jobAgentName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByAgentNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serverName, string jobAgentName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/JobExecutionsRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/JobExecutionsRestOperations.cs index 1da0cc5a05b8..568e3ea90dab 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/JobExecutionsRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/JobExecutionsRestOperations.cs @@ -37,6 +37,51 @@ public JobExecutionsRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByAgentRequestUri(string subscriptionId, string resourceGroupName, string serverName, string jobAgentName, DateTimeOffset? createTimeMin, DateTimeOffset? createTimeMax, DateTimeOffset? endTimeMin, DateTimeOffset? endTimeMax, bool? isActive, int? skip, int? top) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/jobAgents/", false); + uri.AppendPath(jobAgentName, true); + uri.AppendPath("/executions", false); + if (createTimeMin != null) + { + uri.AppendQuery("createTimeMin", createTimeMin.Value, "O", true); + } + if (createTimeMax != null) + { + uri.AppendQuery("createTimeMax", createTimeMax.Value, "O", true); + } + if (endTimeMin != null) + { + uri.AppendQuery("endTimeMin", endTimeMin.Value, "O", true); + } + if (endTimeMax != null) + { + uri.AppendQuery("endTimeMax", endTimeMax.Value, "O", true); + } + if (isActive != null) + { + uri.AppendQuery("isActive", isActive.Value, true); + } + if (skip != null) + { + uri.AppendQuery("$skip", skip.Value, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByAgentRequest(string subscriptionId, string resourceGroupName, string serverName, string jobAgentName, DateTimeOffset? createTimeMin, DateTimeOffset? createTimeMax, DateTimeOffset? endTimeMin, DateTimeOffset? endTimeMax, bool? isActive, int? skip, int? top) { var message = _pipeline.CreateMessage(); @@ -164,6 +209,27 @@ public Response ListByAgent(string subscriptionId, strin } } + internal RequestUriBuilder CreateCancelRequestUri(string subscriptionId, string resourceGroupName, string serverName, string jobAgentName, string jobName, Guid jobExecutionId) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/jobAgents/", false); + uri.AppendPath(jobAgentName, true); + uri.AppendPath("/jobs/", false); + uri.AppendPath(jobName, true); + uri.AppendPath("/executions/", false); + uri.AppendPath(jobExecutionId, true); + uri.AppendPath("/cancel", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCancelRequest(string subscriptionId, string resourceGroupName, string serverName, string jobAgentName, string jobName, Guid jobExecutionId) { var message = _pipeline.CreateMessage(); @@ -248,6 +314,25 @@ public Response Cancel(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string serverName, string jobAgentName, string jobName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/jobAgents/", false); + uri.AppendPath(jobAgentName, true); + uri.AppendPath("/jobs/", false); + uri.AppendPath(jobName, true); + uri.AppendPath("/start", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string serverName, string jobAgentName, string jobName) { var message = _pipeline.CreateMessage(); @@ -331,6 +416,53 @@ public Response Create(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListByJobRequestUri(string subscriptionId, string resourceGroupName, string serverName, string jobAgentName, string jobName, DateTimeOffset? createTimeMin, DateTimeOffset? createTimeMax, DateTimeOffset? endTimeMin, DateTimeOffset? endTimeMax, bool? isActive, int? skip, int? top) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/jobAgents/", false); + uri.AppendPath(jobAgentName, true); + uri.AppendPath("/jobs/", false); + uri.AppendPath(jobName, true); + uri.AppendPath("/executions", false); + if (createTimeMin != null) + { + uri.AppendQuery("createTimeMin", createTimeMin.Value, "O", true); + } + if (createTimeMax != null) + { + uri.AppendQuery("createTimeMax", createTimeMax.Value, "O", true); + } + if (endTimeMin != null) + { + uri.AppendQuery("endTimeMin", endTimeMin.Value, "O", true); + } + if (endTimeMax != null) + { + uri.AppendQuery("endTimeMax", endTimeMax.Value, "O", true); + } + if (isActive != null) + { + uri.AppendQuery("isActive", isActive.Value, true); + } + if (skip != null) + { + uri.AppendQuery("$skip", skip.Value, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByJobRequest(string subscriptionId, string resourceGroupName, string serverName, string jobAgentName, string jobName, DateTimeOffset? createTimeMin, DateTimeOffset? createTimeMax, DateTimeOffset? endTimeMin, DateTimeOffset? endTimeMax, bool? isActive, int? skip, int? top) { var message = _pipeline.CreateMessage(); @@ -464,6 +596,26 @@ public Response ListByJob(string subscriptionId, string } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serverName, string jobAgentName, string jobName, Guid jobExecutionId) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/jobAgents/", false); + uri.AppendPath(jobAgentName, true); + uri.AppendPath("/jobs/", false); + uri.AppendPath(jobName, true); + uri.AppendPath("/executions/", false); + uri.AppendPath(jobExecutionId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serverName, string jobAgentName, string jobName, Guid jobExecutionId) { var message = _pipeline.CreateMessage(); @@ -562,6 +714,26 @@ public Response Get(string subscriptionId, string res } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serverName, string jobAgentName, string jobName, Guid jobExecutionId) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/jobAgents/", false); + uri.AppendPath(jobAgentName, true); + uri.AppendPath("/jobs/", false); + uri.AppendPath(jobName, true); + uri.AppendPath("/executions/", false); + uri.AppendPath(jobExecutionId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serverName, string jobAgentName, string jobName, Guid jobExecutionId) { var message = _pipeline.CreateMessage(); @@ -650,6 +822,14 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateListByAgentNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serverName, string jobAgentName, DateTimeOffset? createTimeMin, DateTimeOffset? createTimeMax, DateTimeOffset? endTimeMin, DateTimeOffset? endTimeMax, bool? isActive, int? skip, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByAgentNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serverName, string jobAgentName, DateTimeOffset? createTimeMin, DateTimeOffset? createTimeMax, DateTimeOffset? endTimeMin, DateTimeOffset? endTimeMax, bool? isActive, int? skip, int? top) { var message = _pipeline.CreateMessage(); @@ -744,6 +924,14 @@ public Response ListByAgentNextPage(string nextLink, str } } + internal RequestUriBuilder CreateListByJobNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serverName, string jobAgentName, string jobName, DateTimeOffset? createTimeMin, DateTimeOffset? createTimeMax, DateTimeOffset? endTimeMin, DateTimeOffset? endTimeMax, bool? isActive, int? skip, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByJobNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serverName, string jobAgentName, string jobName, DateTimeOffset? createTimeMin, DateTimeOffset? createTimeMax, DateTimeOffset? endTimeMin, DateTimeOffset? endTimeMax, bool? isActive, int? skip, int? top) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/JobStepExecutionsRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/JobStepExecutionsRestOperations.cs index 31e14cf2b047..ebd5485dcdbd 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/JobStepExecutionsRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/JobStepExecutionsRestOperations.cs @@ -37,6 +37,55 @@ public JobStepExecutionsRestOperations(HttpPipeline pipeline, string application _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByJobExecutionRequestUri(string subscriptionId, string resourceGroupName, string serverName, string jobAgentName, string jobName, Guid jobExecutionId, DateTimeOffset? createTimeMin, DateTimeOffset? createTimeMax, DateTimeOffset? endTimeMin, DateTimeOffset? endTimeMax, bool? isActive, int? skip, int? top) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/jobAgents/", false); + uri.AppendPath(jobAgentName, true); + uri.AppendPath("/jobs/", false); + uri.AppendPath(jobName, true); + uri.AppendPath("/executions/", false); + uri.AppendPath(jobExecutionId, true); + uri.AppendPath("/steps", false); + if (createTimeMin != null) + { + uri.AppendQuery("createTimeMin", createTimeMin.Value, "O", true); + } + if (createTimeMax != null) + { + uri.AppendQuery("createTimeMax", createTimeMax.Value, "O", true); + } + if (endTimeMin != null) + { + uri.AppendQuery("endTimeMin", endTimeMin.Value, "O", true); + } + if (endTimeMax != null) + { + uri.AppendQuery("endTimeMax", endTimeMax.Value, "O", true); + } + if (isActive != null) + { + uri.AppendQuery("isActive", isActive.Value, true); + } + if (skip != null) + { + uri.AppendQuery("$skip", skip.Value, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByJobExecutionRequest(string subscriptionId, string resourceGroupName, string serverName, string jobAgentName, string jobName, Guid jobExecutionId, DateTimeOffset? createTimeMin, DateTimeOffset? createTimeMax, DateTimeOffset? endTimeMin, DateTimeOffset? endTimeMax, bool? isActive, int? skip, int? top) { var message = _pipeline.CreateMessage(); @@ -174,6 +223,28 @@ public Response ListByJobExecution(string subscriptionId } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serverName, string jobAgentName, string jobName, Guid jobExecutionId, string stepName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/jobAgents/", false); + uri.AppendPath(jobAgentName, true); + uri.AppendPath("/jobs/", false); + uri.AppendPath(jobName, true); + uri.AppendPath("/executions/", false); + uri.AppendPath(jobExecutionId, true); + uri.AppendPath("/steps/", false); + uri.AppendPath(stepName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serverName, string jobAgentName, string jobName, Guid jobExecutionId, string stepName) { var message = _pipeline.CreateMessage(); @@ -278,6 +349,14 @@ public Response Get(string subscriptionId, string res } } + internal RequestUriBuilder CreateListByJobExecutionNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serverName, string jobAgentName, string jobName, Guid jobExecutionId, DateTimeOffset? createTimeMin, DateTimeOffset? createTimeMax, DateTimeOffset? endTimeMin, DateTimeOffset? endTimeMax, bool? isActive, int? skip, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByJobExecutionNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serverName, string jobAgentName, string jobName, Guid jobExecutionId, DateTimeOffset? createTimeMin, DateTimeOffset? createTimeMax, DateTimeOffset? endTimeMin, DateTimeOffset? endTimeMax, bool? isActive, int? skip, int? top) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/JobStepsRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/JobStepsRestOperations.cs index 5f3bd0b73cc6..e128a7557eb1 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/JobStepsRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/JobStepsRestOperations.cs @@ -37,6 +37,27 @@ public JobStepsRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByVersionRequestUri(string subscriptionId, string resourceGroupName, string serverName, string jobAgentName, string jobName, int jobVersion) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/jobAgents/", false); + uri.AppendPath(jobAgentName, true); + uri.AppendPath("/jobs/", false); + uri.AppendPath(jobName, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(jobVersion, true); + uri.AppendPath("/steps", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByVersionRequest(string subscriptionId, string resourceGroupName, string serverName, string jobAgentName, string jobName, int jobVersion) { var message = _pipeline.CreateMessage(); @@ -132,6 +153,28 @@ public Response ListByVersion(string subscriptionId, string r } } + internal RequestUriBuilder CreateGetByVersionRequestUri(string subscriptionId, string resourceGroupName, string serverName, string jobAgentName, string jobName, int jobVersion, string stepName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/jobAgents/", false); + uri.AppendPath(jobAgentName, true); + uri.AppendPath("/jobs/", false); + uri.AppendPath(jobName, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(jobVersion, true); + uri.AppendPath("/steps/", false); + uri.AppendPath(stepName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetByVersionRequest(string subscriptionId, string resourceGroupName, string serverName, string jobAgentName, string jobName, int jobVersion, string stepName) { var message = _pipeline.CreateMessage(); @@ -236,6 +279,25 @@ public Response GetByVersion(string subscriptionId, string } } + internal RequestUriBuilder CreateListByJobRequestUri(string subscriptionId, string resourceGroupName, string serverName, string jobAgentName, string jobName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/jobAgents/", false); + uri.AppendPath(jobAgentName, true); + uri.AppendPath("/jobs/", false); + uri.AppendPath(jobName, true); + uri.AppendPath("/steps", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByJobRequest(string subscriptionId, string resourceGroupName, string serverName, string jobAgentName, string jobName) { var message = _pipeline.CreateMessage(); @@ -327,6 +389,26 @@ public Response ListByJob(string subscriptionId, string resou } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serverName, string jobAgentName, string jobName, string stepName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/jobAgents/", false); + uri.AppendPath(jobAgentName, true); + uri.AppendPath("/jobs/", false); + uri.AppendPath(jobName, true); + uri.AppendPath("/steps/", false); + uri.AppendPath(stepName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serverName, string jobAgentName, string jobName, string stepName) { var message = _pipeline.CreateMessage(); @@ -427,6 +509,26 @@ public Response Get(string subscriptionId, string resource } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serverName, string jobAgentName, string jobName, string stepName, SqlServerJobStepData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/jobAgents/", false); + uri.AppendPath(jobAgentName, true); + uri.AppendPath("/jobs/", false); + uri.AppendPath(jobName, true); + uri.AppendPath("/steps/", false); + uri.AppendPath(stepName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serverName, string jobAgentName, string jobName, string stepName, SqlServerJobStepData data) { var message = _pipeline.CreateMessage(); @@ -533,6 +635,26 @@ public Response CreateOrUpdate(string subscriptionId, stri } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string serverName, string jobAgentName, string jobName, string stepName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/jobAgents/", false); + uri.AppendPath(jobAgentName, true); + uri.AppendPath("/jobs/", false); + uri.AppendPath(jobName, true); + uri.AppendPath("/steps/", false); + uri.AppendPath(stepName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string serverName, string jobAgentName, string jobName, string stepName) { var message = _pipeline.CreateMessage(); @@ -620,6 +742,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListByVersionNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serverName, string jobAgentName, string jobName, int jobVersion) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByVersionNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serverName, string jobAgentName, string jobName, int jobVersion) { var message = _pipeline.CreateMessage(); @@ -706,6 +836,14 @@ public Response ListByVersionNextPage(string nextLink, string } } + internal RequestUriBuilder CreateListByJobNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serverName, string jobAgentName, string jobName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByJobNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serverName, string jobAgentName, string jobName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/JobTargetExecutionsRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/JobTargetExecutionsRestOperations.cs index 9efc13a33741..2c53db885577 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/JobTargetExecutionsRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/JobTargetExecutionsRestOperations.cs @@ -37,6 +37,55 @@ public JobTargetExecutionsRestOperations(HttpPipeline pipeline, string applicati _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByJobExecutionRequestUri(string subscriptionId, string resourceGroupName, string serverName, string jobAgentName, string jobName, Guid jobExecutionId, DateTimeOffset? createTimeMin, DateTimeOffset? createTimeMax, DateTimeOffset? endTimeMin, DateTimeOffset? endTimeMax, bool? isActive, int? skip, int? top) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/jobAgents/", false); + uri.AppendPath(jobAgentName, true); + uri.AppendPath("/jobs/", false); + uri.AppendPath(jobName, true); + uri.AppendPath("/executions/", false); + uri.AppendPath(jobExecutionId, true); + uri.AppendPath("/targets", false); + if (createTimeMin != null) + { + uri.AppendQuery("createTimeMin", createTimeMin.Value, "O", true); + } + if (createTimeMax != null) + { + uri.AppendQuery("createTimeMax", createTimeMax.Value, "O", true); + } + if (endTimeMin != null) + { + uri.AppendQuery("endTimeMin", endTimeMin.Value, "O", true); + } + if (endTimeMax != null) + { + uri.AppendQuery("endTimeMax", endTimeMax.Value, "O", true); + } + if (isActive != null) + { + uri.AppendQuery("isActive", isActive.Value, true); + } + if (skip != null) + { + uri.AppendQuery("$skip", skip.Value, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByJobExecutionRequest(string subscriptionId, string resourceGroupName, string serverName, string jobAgentName, string jobName, Guid jobExecutionId, DateTimeOffset? createTimeMin, DateTimeOffset? createTimeMax, DateTimeOffset? endTimeMin, DateTimeOffset? endTimeMax, bool? isActive, int? skip, int? top) { var message = _pipeline.CreateMessage(); @@ -174,6 +223,57 @@ public Response ListByJobExecution(string subscriptionId } } + internal RequestUriBuilder CreateListByStepRequestUri(string subscriptionId, string resourceGroupName, string serverName, string jobAgentName, string jobName, Guid jobExecutionId, string stepName, DateTimeOffset? createTimeMin, DateTimeOffset? createTimeMax, DateTimeOffset? endTimeMin, DateTimeOffset? endTimeMax, bool? isActive, int? skip, int? top) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/jobAgents/", false); + uri.AppendPath(jobAgentName, true); + uri.AppendPath("/jobs/", false); + uri.AppendPath(jobName, true); + uri.AppendPath("/executions/", false); + uri.AppendPath(jobExecutionId, true); + uri.AppendPath("/steps/", false); + uri.AppendPath(stepName, true); + uri.AppendPath("/targets", false); + if (createTimeMin != null) + { + uri.AppendQuery("createTimeMin", createTimeMin.Value, "O", true); + } + if (createTimeMax != null) + { + uri.AppendQuery("createTimeMax", createTimeMax.Value, "O", true); + } + if (endTimeMin != null) + { + uri.AppendQuery("endTimeMin", endTimeMin.Value, "O", true); + } + if (endTimeMax != null) + { + uri.AppendQuery("endTimeMax", endTimeMax.Value, "O", true); + } + if (isActive != null) + { + uri.AppendQuery("isActive", isActive.Value, true); + } + if (skip != null) + { + uri.AppendQuery("$skip", skip.Value, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByStepRequest(string subscriptionId, string resourceGroupName, string serverName, string jobAgentName, string jobName, Guid jobExecutionId, string stepName, DateTimeOffset? createTimeMin, DateTimeOffset? createTimeMax, DateTimeOffset? endTimeMin, DateTimeOffset? endTimeMax, bool? isActive, int? skip, int? top) { var message = _pipeline.CreateMessage(); @@ -317,6 +417,30 @@ public Response ListByStep(string subscriptionId, string } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serverName, string jobAgentName, string jobName, Guid jobExecutionId, string stepName, Guid targetId) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/jobAgents/", false); + uri.AppendPath(jobAgentName, true); + uri.AppendPath("/jobs/", false); + uri.AppendPath(jobName, true); + uri.AppendPath("/executions/", false); + uri.AppendPath(jobExecutionId, true); + uri.AppendPath("/steps/", false); + uri.AppendPath(stepName, true); + uri.AppendPath("/targets/", false); + uri.AppendPath(targetId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serverName, string jobAgentName, string jobName, Guid jobExecutionId, string stepName, Guid targetId) { var message = _pipeline.CreateMessage(); @@ -425,6 +549,14 @@ public Response Get(string subscriptionId, string res } } + internal RequestUriBuilder CreateListByJobExecutionNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serverName, string jobAgentName, string jobName, Guid jobExecutionId, DateTimeOffset? createTimeMin, DateTimeOffset? createTimeMax, DateTimeOffset? endTimeMin, DateTimeOffset? endTimeMax, bool? isActive, int? skip, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByJobExecutionNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serverName, string jobAgentName, string jobName, Guid jobExecutionId, DateTimeOffset? createTimeMin, DateTimeOffset? createTimeMax, DateTimeOffset? endTimeMin, DateTimeOffset? endTimeMax, bool? isActive, int? skip, int? top) { var message = _pipeline.CreateMessage(); @@ -525,6 +657,14 @@ public Response ListByJobExecutionNextPage(string nextLi } } + internal RequestUriBuilder CreateListByStepNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serverName, string jobAgentName, string jobName, Guid jobExecutionId, string stepName, DateTimeOffset? createTimeMin, DateTimeOffset? createTimeMax, DateTimeOffset? endTimeMin, DateTimeOffset? endTimeMax, bool? isActive, int? skip, int? top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByStepNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serverName, string jobAgentName, string jobName, Guid jobExecutionId, string stepName, DateTimeOffset? createTimeMin, DateTimeOffset? createTimeMax, DateTimeOffset? endTimeMin, DateTimeOffset? endTimeMax, bool? isActive, int? skip, int? top) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/JobTargetGroupsRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/JobTargetGroupsRestOperations.cs index 544e7f2eee7b..f49d8401152e 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/JobTargetGroupsRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/JobTargetGroupsRestOperations.cs @@ -37,6 +37,23 @@ public JobTargetGroupsRestOperations(HttpPipeline pipeline, string applicationId _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByAgentRequestUri(string subscriptionId, string resourceGroupName, string serverName, string jobAgentName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/jobAgents/", false); + uri.AppendPath(jobAgentName, true); + uri.AppendPath("/targetGroups", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByAgentRequest(string subscriptionId, string resourceGroupName, string serverName, string jobAgentName) { var message = _pipeline.CreateMessage(); @@ -122,6 +139,24 @@ public Response ListByAgent(string subscriptionId, str } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serverName, string jobAgentName, string targetGroupName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/jobAgents/", false); + uri.AppendPath(jobAgentName, true); + uri.AppendPath("/targetGroups/", false); + uri.AppendPath(targetGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serverName, string jobAgentName, string targetGroupName) { var message = _pipeline.CreateMessage(); @@ -216,6 +251,24 @@ public Response Get(string subscriptionId, string r } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serverName, string jobAgentName, string targetGroupName, SqlServerJobTargetGroupData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/jobAgents/", false); + uri.AppendPath(jobAgentName, true); + uri.AppendPath("/targetGroups/", false); + uri.AppendPath(targetGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serverName, string jobAgentName, string targetGroupName, SqlServerJobTargetGroupData data) { var message = _pipeline.CreateMessage(); @@ -316,6 +369,24 @@ public Response CreateOrUpdate(string subscriptionI } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string serverName, string jobAgentName, string targetGroupName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/jobAgents/", false); + uri.AppendPath(jobAgentName, true); + uri.AppendPath("/targetGroups/", false); + uri.AppendPath(targetGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string serverName, string jobAgentName, string targetGroupName) { var message = _pipeline.CreateMessage(); @@ -397,6 +468,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListByAgentNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serverName, string jobAgentName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByAgentNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serverName, string jobAgentName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/JobVersionsRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/JobVersionsRestOperations.cs index b518b7018ae2..ae55927596f6 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/JobVersionsRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/JobVersionsRestOperations.cs @@ -37,6 +37,25 @@ public JobVersionsRestOperations(HttpPipeline pipeline, string applicationId, Ur _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByJobRequestUri(string subscriptionId, string resourceGroupName, string serverName, string jobAgentName, string jobName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/jobAgents/", false); + uri.AppendPath(jobAgentName, true); + uri.AppendPath("/jobs/", false); + uri.AppendPath(jobName, true); + uri.AppendPath("/versions", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByJobRequest(string subscriptionId, string resourceGroupName, string serverName, string jobAgentName, string jobName) { var message = _pipeline.CreateMessage(); @@ -128,6 +147,26 @@ public Response ListByJob(string subscriptionId, string re } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serverName, string jobAgentName, string jobName, int jobVersion) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/jobAgents/", false); + uri.AppendPath(jobAgentName, true); + uri.AppendPath("/jobs/", false); + uri.AppendPath(jobName, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(jobVersion, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serverName, string jobAgentName, string jobName, int jobVersion) { var message = _pipeline.CreateMessage(); @@ -226,6 +265,14 @@ public Response Get(string subscriptionId, string resou } } + internal RequestUriBuilder CreateListByJobNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serverName, string jobAgentName, string jobName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByJobNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serverName, string jobAgentName, string jobName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/JobsRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/JobsRestOperations.cs index 1c4fd0862ed2..db21727ac52b 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/JobsRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/JobsRestOperations.cs @@ -37,6 +37,23 @@ public JobsRestOperations(HttpPipeline pipeline, string applicationId, Uri endpo _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByAgentRequestUri(string subscriptionId, string resourceGroupName, string serverName, string jobAgentName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/jobAgents/", false); + uri.AppendPath(jobAgentName, true); + uri.AppendPath("/jobs", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByAgentRequest(string subscriptionId, string resourceGroupName, string serverName, string jobAgentName) { var message = _pipeline.CreateMessage(); @@ -122,6 +139,24 @@ public Response ListByAgent(string subscriptionId, string resourc } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serverName, string jobAgentName, string jobName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/jobAgents/", false); + uri.AppendPath(jobAgentName, true); + uri.AppendPath("/jobs/", false); + uri.AppendPath(jobName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serverName, string jobAgentName, string jobName) { var message = _pipeline.CreateMessage(); @@ -216,6 +251,24 @@ public Response Get(string subscriptionId, string resourceGrou } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serverName, string jobAgentName, string jobName, SqlServerJobData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/jobAgents/", false); + uri.AppendPath(jobAgentName, true); + uri.AppendPath("/jobs/", false); + uri.AppendPath(jobName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serverName, string jobAgentName, string jobName, SqlServerJobData data) { var message = _pipeline.CreateMessage(); @@ -316,6 +369,24 @@ public Response CreateOrUpdate(string subscriptionId, string r } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string serverName, string jobAgentName, string jobName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/jobAgents/", false); + uri.AppendPath(jobAgentName, true); + uri.AppendPath("/jobs/", false); + uri.AppendPath(jobName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string serverName, string jobAgentName, string jobName) { var message = _pipeline.CreateMessage(); @@ -397,6 +468,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListByAgentNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serverName, string jobAgentName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByAgentNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serverName, string jobAgentName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/LedgerDigestUploadsRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/LedgerDigestUploadsRestOperations.cs index 2e94d61e1a98..fe10f2d8e37a 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/LedgerDigestUploadsRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/LedgerDigestUploadsRestOperations.cs @@ -37,6 +37,24 @@ public LedgerDigestUploadsRestOperations(HttpPipeline pipeline, string applicati _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName, LedgerDigestUploadsName ledgerDigestUploads) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/ledgerDigestUploads/", false); + uri.AppendPath(ledgerDigestUploads.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName, LedgerDigestUploadsName ledgerDigestUploads) { var message = _pipeline.CreateMessage(); @@ -129,6 +147,24 @@ public Response Get(string subscriptionId, string resour } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName, LedgerDigestUploadsName ledgerDigestUploads, LedgerDigestUploadData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/ledgerDigestUploads/", false); + uri.AppendPath(ledgerDigestUploads.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName, LedgerDigestUploadsName ledgerDigestUploads, LedgerDigestUploadData data) { var message = _pipeline.CreateMessage(); @@ -217,6 +253,23 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateListByDatabaseRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/ledgerDigestUploads", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByDatabaseRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName) { var message = _pipeline.CreateMessage(); @@ -302,6 +355,25 @@ public Response ListByDatabase(string subscriptio } } + internal RequestUriBuilder CreateDisableRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName, LedgerDigestUploadsName ledgerDigestUploads) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/ledgerDigestUploads/", false); + uri.AppendPath(ledgerDigestUploads.ToString(), true); + uri.AppendPath("/disable", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDisableRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName, LedgerDigestUploadsName ledgerDigestUploads) { var message = _pipeline.CreateMessage(); @@ -383,6 +455,14 @@ public Response Disable(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreateListByDatabaseNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serverName, string databaseName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByDatabaseNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serverName, string databaseName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/LongTermRetentionBackupsRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/LongTermRetentionBackupsRestOperations.cs index ce1857e91cbb..87a8361aca05 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/LongTermRetentionBackupsRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/LongTermRetentionBackupsRestOperations.cs @@ -37,6 +37,27 @@ public LongTermRetentionBackupsRestOperations(HttpPipeline pipeline, string appl _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByLocationRequestUri(string subscriptionId, AzureLocation locationName, bool? onlyLatestPerDatabase, SqlDatabaseState? databaseState) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Sql/locations/", false); + uri.AppendPath(locationName, true); + uri.AppendPath("/longTermRetentionBackups", false); + if (onlyLatestPerDatabase != null) + { + uri.AppendQuery("onlyLatestPerDatabase", onlyLatestPerDatabase.Value, true); + } + if (databaseState != null) + { + uri.AppendQuery("databaseState", databaseState.Value.ToString(), true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByLocationRequest(string subscriptionId, AzureLocation locationName, bool? onlyLatestPerDatabase, SqlDatabaseState? databaseState) { var message = _pipeline.CreateMessage(); @@ -120,6 +141,29 @@ public Response ListByLocation(string subscri } } + internal RequestUriBuilder CreateListByServerRequestUri(string subscriptionId, AzureLocation locationName, string longTermRetentionServerName, bool? onlyLatestPerDatabase, SqlDatabaseState? databaseState) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Sql/locations/", false); + uri.AppendPath(locationName, true); + uri.AppendPath("/longTermRetentionServers/", false); + uri.AppendPath(longTermRetentionServerName, true); + uri.AppendPath("/longTermRetentionBackups", false); + if (onlyLatestPerDatabase != null) + { + uri.AppendQuery("onlyLatestPerDatabase", onlyLatestPerDatabase.Value, true); + } + if (databaseState != null) + { + uri.AppendQuery("databaseState", databaseState.Value.ToString(), true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByServerRequest(string subscriptionId, AzureLocation locationName, string longTermRetentionServerName, bool? onlyLatestPerDatabase, SqlDatabaseState? databaseState) { var message = _pipeline.CreateMessage(); @@ -209,6 +253,31 @@ public Response ListByServer(string subscript } } + internal RequestUriBuilder CreateListByDatabaseRequestUri(string subscriptionId, AzureLocation locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, bool? onlyLatestPerDatabase, SqlDatabaseState? databaseState) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Sql/locations/", false); + uri.AppendPath(locationName, true); + uri.AppendPath("/longTermRetentionServers/", false); + uri.AppendPath(longTermRetentionServerName, true); + uri.AppendPath("/longTermRetentionDatabases/", false); + uri.AppendPath(longTermRetentionDatabaseName, true); + uri.AppendPath("/longTermRetentionBackups", false); + if (onlyLatestPerDatabase != null) + { + uri.AppendQuery("onlyLatestPerDatabase", onlyLatestPerDatabase.Value, true); + } + if (databaseState != null) + { + uri.AppendQuery("databaseState", databaseState.Value.ToString(), true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByDatabaseRequest(string subscriptionId, AzureLocation locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, bool? onlyLatestPerDatabase, SqlDatabaseState? databaseState) { var message = _pipeline.CreateMessage(); @@ -304,6 +373,24 @@ public Response ListByDatabase(string subscri } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, AzureLocation locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, string backupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Sql/locations/", false); + uri.AppendPath(locationName, true); + uri.AppendPath("/longTermRetentionServers/", false); + uri.AppendPath(longTermRetentionServerName, true); + uri.AppendPath("/longTermRetentionDatabases/", false); + uri.AppendPath(longTermRetentionDatabaseName, true); + uri.AppendPath("/longTermRetentionBackups/", false); + uri.AppendPath(backupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, AzureLocation locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, string backupName) { var message = _pipeline.CreateMessage(); @@ -396,6 +483,24 @@ public Response Get(string subscriptionId, AzureLoc } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, AzureLocation locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, string backupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Sql/locations/", false); + uri.AppendPath(locationName, true); + uri.AppendPath("/longTermRetentionServers/", false); + uri.AppendPath(longTermRetentionServerName, true); + uri.AppendPath("/longTermRetentionDatabases/", false); + uri.AppendPath(longTermRetentionDatabaseName, true); + uri.AppendPath("/longTermRetentionBackups/", false); + uri.AppendPath(backupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, AzureLocation locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, string backupName) { var message = _pipeline.CreateMessage(); @@ -476,6 +581,25 @@ public Response Delete(string subscriptionId, AzureLocation locationName, string } } + internal RequestUriBuilder CreateChangeAccessTierRequestUri(string subscriptionId, AzureLocation locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, string backupName, ChangeLongTermRetentionBackupAccessTierParameters changeLongTermRetentionBackupAccessTierParameters) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Sql/locations/", false); + uri.AppendPath(locationName, true); + uri.AppendPath("/longTermRetentionServers/", false); + uri.AppendPath(longTermRetentionServerName, true); + uri.AppendPath("/longTermRetentionDatabases/", false); + uri.AppendPath(longTermRetentionDatabaseName, true); + uri.AppendPath("/longTermRetentionBackups/", false); + uri.AppendPath(backupName, true); + uri.AppendPath("/changeAccessTier", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateChangeAccessTierRequest(string subscriptionId, AzureLocation locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, string backupName, ChangeLongTermRetentionBackupAccessTierParameters changeLongTermRetentionBackupAccessTierParameters) { var message = _pipeline.CreateMessage(); @@ -565,6 +689,25 @@ public Response ChangeAccessTier(string subscriptionId, AzureLocation locationNa } } + internal RequestUriBuilder CreateCopyRequestUri(string subscriptionId, AzureLocation locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, string backupName, CopyLongTermRetentionBackupContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Sql/locations/", false); + uri.AppendPath(locationName, true); + uri.AppendPath("/longTermRetentionServers/", false); + uri.AppendPath(longTermRetentionServerName, true); + uri.AppendPath("/longTermRetentionDatabases/", false); + uri.AppendPath(longTermRetentionDatabaseName, true); + uri.AppendPath("/longTermRetentionBackups/", false); + uri.AppendPath(backupName, true); + uri.AppendPath("/copy", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCopyRequest(string subscriptionId, AzureLocation locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, string backupName, CopyLongTermRetentionBackupContent content) { var message = _pipeline.CreateMessage(); @@ -654,6 +797,25 @@ public Response Copy(string subscriptionId, AzureLocation locationName, string l } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, AzureLocation locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, string backupName, UpdateLongTermRetentionBackupContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Sql/locations/", false); + uri.AppendPath(locationName, true); + uri.AppendPath("/longTermRetentionServers/", false); + uri.AppendPath(longTermRetentionServerName, true); + uri.AppendPath("/longTermRetentionDatabases/", false); + uri.AppendPath(longTermRetentionDatabaseName, true); + uri.AppendPath("/longTermRetentionBackups/", false); + uri.AppendPath(backupName, true); + uri.AppendPath("/update", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, AzureLocation locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, string backupName, UpdateLongTermRetentionBackupContent content) { var message = _pipeline.CreateMessage(); @@ -743,6 +905,29 @@ public Response Update(string subscriptionId, AzureLocation locationName, string } } + internal RequestUriBuilder CreateListByResourceGroupLocationRequestUri(string subscriptionId, string resourceGroupName, AzureLocation locationName, bool? onlyLatestPerDatabase, SqlDatabaseState? databaseState) + { + 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.Sql/locations/", false); + uri.AppendPath(locationName, true); + uri.AppendPath("/longTermRetentionBackups", false); + if (onlyLatestPerDatabase != null) + { + uri.AppendQuery("onlyLatestPerDatabase", onlyLatestPerDatabase.Value, true); + } + if (databaseState != null) + { + uri.AppendQuery("databaseState", databaseState.Value.ToString(), true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupLocationRequest(string subscriptionId, string resourceGroupName, AzureLocation locationName, bool? onlyLatestPerDatabase, SqlDatabaseState? databaseState) { var message = _pipeline.CreateMessage(); @@ -832,6 +1017,31 @@ public Response ListByResourceGroupLocation(s } } + internal RequestUriBuilder CreateListByResourceGroupServerRequestUri(string subscriptionId, string resourceGroupName, AzureLocation locationName, string longTermRetentionServerName, bool? onlyLatestPerDatabase, SqlDatabaseState? databaseState) + { + 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.Sql/locations/", false); + uri.AppendPath(locationName, true); + uri.AppendPath("/longTermRetentionServers/", false); + uri.AppendPath(longTermRetentionServerName, true); + uri.AppendPath("/longTermRetentionBackups", false); + if (onlyLatestPerDatabase != null) + { + uri.AppendQuery("onlyLatestPerDatabase", onlyLatestPerDatabase.Value, true); + } + if (databaseState != null) + { + uri.AppendQuery("databaseState", databaseState.Value.ToString(), true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupServerRequest(string subscriptionId, string resourceGroupName, AzureLocation locationName, string longTermRetentionServerName, bool? onlyLatestPerDatabase, SqlDatabaseState? databaseState) { var message = _pipeline.CreateMessage(); @@ -927,6 +1137,33 @@ public Response ListByResourceGroupServer(str } } + internal RequestUriBuilder CreateListByResourceGroupDatabaseRequestUri(string subscriptionId, string resourceGroupName, AzureLocation locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, bool? onlyLatestPerDatabase, SqlDatabaseState? databaseState) + { + 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.Sql/locations/", false); + uri.AppendPath(locationName, true); + uri.AppendPath("/longTermRetentionServers/", false); + uri.AppendPath(longTermRetentionServerName, true); + uri.AppendPath("/longTermRetentionDatabases/", false); + uri.AppendPath(longTermRetentionDatabaseName, true); + uri.AppendPath("/longTermRetentionBackups", false); + if (onlyLatestPerDatabase != null) + { + uri.AppendQuery("onlyLatestPerDatabase", onlyLatestPerDatabase.Value, true); + } + if (databaseState != null) + { + uri.AppendQuery("databaseState", databaseState.Value.ToString(), true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupDatabaseRequest(string subscriptionId, string resourceGroupName, AzureLocation locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, bool? onlyLatestPerDatabase, SqlDatabaseState? databaseState) { var message = _pipeline.CreateMessage(); @@ -1028,6 +1265,26 @@ public Response ListByResourceGroupDatabase(s } } + internal RequestUriBuilder CreateGetByResourceGroupRequestUri(string subscriptionId, string resourceGroupName, AzureLocation locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, string backupName) + { + 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.Sql/locations/", false); + uri.AppendPath(locationName, true); + uri.AppendPath("/longTermRetentionServers/", false); + uri.AppendPath(longTermRetentionServerName, true); + uri.AppendPath("/longTermRetentionDatabases/", false); + uri.AppendPath(longTermRetentionDatabaseName, true); + uri.AppendPath("/longTermRetentionBackups/", false); + uri.AppendPath(backupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetByResourceGroupRequest(string subscriptionId, string resourceGroupName, AzureLocation locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, string backupName) { var message = _pipeline.CreateMessage(); @@ -1126,6 +1383,26 @@ public Response GetByResourceGroup(string subscript } } + internal RequestUriBuilder CreateDeleteByResourceGroupRequestUri(string subscriptionId, string resourceGroupName, AzureLocation locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, string backupName) + { + 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.Sql/locations/", false); + uri.AppendPath(locationName, true); + uri.AppendPath("/longTermRetentionServers/", false); + uri.AppendPath(longTermRetentionServerName, true); + uri.AppendPath("/longTermRetentionDatabases/", false); + uri.AppendPath(longTermRetentionDatabaseName, true); + uri.AppendPath("/longTermRetentionBackups/", false); + uri.AppendPath(backupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteByResourceGroupRequest(string subscriptionId, string resourceGroupName, AzureLocation locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, string backupName) { var message = _pipeline.CreateMessage(); @@ -1212,6 +1489,27 @@ public Response DeleteByResourceGroup(string subscriptionId, string resourceGrou } } + internal RequestUriBuilder CreateChangeAccessTierByResourceGroupRequestUri(string subscriptionId, string resourceGroupName, AzureLocation locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, string backupName, ChangeLongTermRetentionBackupAccessTierParameters changeLongTermRetentionBackupAccessTierParameters) + { + 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.Sql/locations/", false); + uri.AppendPath(locationName, true); + uri.AppendPath("/longTermRetentionServers/", false); + uri.AppendPath(longTermRetentionServerName, true); + uri.AppendPath("/longTermRetentionDatabases/", false); + uri.AppendPath(longTermRetentionDatabaseName, true); + uri.AppendPath("/longTermRetentionBackups/", false); + uri.AppendPath(backupName, true); + uri.AppendPath("/changeAccessTier", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateChangeAccessTierByResourceGroupRequest(string subscriptionId, string resourceGroupName, AzureLocation locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, string backupName, ChangeLongTermRetentionBackupAccessTierParameters changeLongTermRetentionBackupAccessTierParameters) { var message = _pipeline.CreateMessage(); @@ -1307,6 +1605,27 @@ public Response ChangeAccessTierByResourceGroup(string subscriptionId, string re } } + internal RequestUriBuilder CreateCopyByResourceGroupRequestUri(string subscriptionId, string resourceGroupName, AzureLocation locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, string backupName, CopyLongTermRetentionBackupContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/locations/", false); + uri.AppendPath(locationName, true); + uri.AppendPath("/longTermRetentionServers/", false); + uri.AppendPath(longTermRetentionServerName, true); + uri.AppendPath("/longTermRetentionDatabases/", false); + uri.AppendPath(longTermRetentionDatabaseName, true); + uri.AppendPath("/longTermRetentionBackups/", false); + uri.AppendPath(backupName, true); + uri.AppendPath("/copy", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCopyByResourceGroupRequest(string subscriptionId, string resourceGroupName, AzureLocation locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, string backupName, CopyLongTermRetentionBackupContent content) { var message = _pipeline.CreateMessage(); @@ -1402,6 +1721,27 @@ public Response CopyByResourceGroup(string subscriptionId, string resourceGroupN } } + internal RequestUriBuilder CreateUpdateByResourceGroupRequestUri(string subscriptionId, string resourceGroupName, AzureLocation locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, string backupName, UpdateLongTermRetentionBackupContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/locations/", false); + uri.AppendPath(locationName, true); + uri.AppendPath("/longTermRetentionServers/", false); + uri.AppendPath(longTermRetentionServerName, true); + uri.AppendPath("/longTermRetentionDatabases/", false); + uri.AppendPath(longTermRetentionDatabaseName, true); + uri.AppendPath("/longTermRetentionBackups/", false); + uri.AppendPath(backupName, true); + uri.AppendPath("/update", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateByResourceGroupRequest(string subscriptionId, string resourceGroupName, AzureLocation locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, string backupName, UpdateLongTermRetentionBackupContent content) { var message = _pipeline.CreateMessage(); @@ -1497,6 +1837,14 @@ public Response UpdateByResourceGroup(string subscriptionId, string resourceGrou } } + internal RequestUriBuilder CreateListByLocationNextPageRequestUri(string nextLink, string subscriptionId, AzureLocation locationName, bool? onlyLatestPerDatabase, SqlDatabaseState? databaseState) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByLocationNextPageRequest(string nextLink, string subscriptionId, AzureLocation locationName, bool? onlyLatestPerDatabase, SqlDatabaseState? databaseState) { var message = _pipeline.CreateMessage(); @@ -1571,6 +1919,14 @@ public Response ListByLocationNextPage(string } } + internal RequestUriBuilder CreateListByServerNextPageRequestUri(string nextLink, string subscriptionId, AzureLocation locationName, string longTermRetentionServerName, bool? onlyLatestPerDatabase, SqlDatabaseState? databaseState) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByServerNextPageRequest(string nextLink, string subscriptionId, AzureLocation locationName, string longTermRetentionServerName, bool? onlyLatestPerDatabase, SqlDatabaseState? databaseState) { var message = _pipeline.CreateMessage(); @@ -1649,6 +2005,14 @@ public Response ListByServerNextPage(string n } } + internal RequestUriBuilder CreateListByDatabaseNextPageRequestUri(string nextLink, string subscriptionId, AzureLocation locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, bool? onlyLatestPerDatabase, SqlDatabaseState? databaseState) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByDatabaseNextPageRequest(string nextLink, string subscriptionId, AzureLocation locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, bool? onlyLatestPerDatabase, SqlDatabaseState? databaseState) { var message = _pipeline.CreateMessage(); @@ -1731,6 +2095,14 @@ public Response ListByDatabaseNextPage(string } } + internal RequestUriBuilder CreateListByResourceGroupLocationNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, AzureLocation locationName, bool? onlyLatestPerDatabase, SqlDatabaseState? databaseState) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupLocationNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, AzureLocation locationName, bool? onlyLatestPerDatabase, SqlDatabaseState? databaseState) { var message = _pipeline.CreateMessage(); @@ -1809,6 +2181,14 @@ public Response ListByResourceGroupLocationNe } } + internal RequestUriBuilder CreateListByResourceGroupServerNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, AzureLocation locationName, string longTermRetentionServerName, bool? onlyLatestPerDatabase, SqlDatabaseState? databaseState) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupServerNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, AzureLocation locationName, string longTermRetentionServerName, bool? onlyLatestPerDatabase, SqlDatabaseState? databaseState) { var message = _pipeline.CreateMessage(); @@ -1891,6 +2271,14 @@ public Response ListByResourceGroupServerNext } } + internal RequestUriBuilder CreateListByResourceGroupDatabaseNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, AzureLocation locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, bool? onlyLatestPerDatabase, SqlDatabaseState? databaseState) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupDatabaseNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, AzureLocation locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, bool? onlyLatestPerDatabase, SqlDatabaseState? databaseState) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/LongTermRetentionManagedInstanceBackupsRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/LongTermRetentionManagedInstanceBackupsRestOperations.cs index d212543db78f..b3fb8ef38d75 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/LongTermRetentionManagedInstanceBackupsRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/LongTermRetentionManagedInstanceBackupsRestOperations.cs @@ -37,6 +37,24 @@ public LongTermRetentionManagedInstanceBackupsRestOperations(HttpPipeline pipeli _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, AzureLocation locationName, string managedInstanceName, string databaseName, string backupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Sql/locations/", false); + uri.AppendPath(locationName, true); + uri.AppendPath("/longTermRetentionManagedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/longTermRetentionDatabases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/longTermRetentionManagedInstanceBackups/", false); + uri.AppendPath(backupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, AzureLocation locationName, string managedInstanceName, string databaseName, string backupName) { var message = _pipeline.CreateMessage(); @@ -129,6 +147,24 @@ public Response Get(string subscript } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, AzureLocation locationName, string managedInstanceName, string databaseName, string backupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Sql/locations/", false); + uri.AppendPath(locationName, true); + uri.AppendPath("/longTermRetentionManagedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/longTermRetentionDatabases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/longTermRetentionManagedInstanceBackups/", false); + uri.AppendPath(backupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, AzureLocation locationName, string managedInstanceName, string databaseName, string backupName) { var message = _pipeline.CreateMessage(); @@ -208,6 +244,31 @@ public Response Delete(string subscriptionId, AzureLocation locationName, string } } + internal RequestUriBuilder CreateListByDatabaseRequestUri(string subscriptionId, AzureLocation locationName, string managedInstanceName, string databaseName, bool? onlyLatestPerDatabase, SqlDatabaseState? databaseState) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Sql/locations/", false); + uri.AppendPath(locationName, true); + uri.AppendPath("/longTermRetentionManagedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/longTermRetentionDatabases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/longTermRetentionManagedInstanceBackups", false); + if (onlyLatestPerDatabase != null) + { + uri.AppendQuery("onlyLatestPerDatabase", onlyLatestPerDatabase.Value, true); + } + if (databaseState != null) + { + uri.AppendQuery("databaseState", databaseState.Value.ToString(), true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByDatabaseRequest(string subscriptionId, AzureLocation locationName, string managedInstanceName, string databaseName, bool? onlyLatestPerDatabase, SqlDatabaseState? databaseState) { var message = _pipeline.CreateMessage(); @@ -303,6 +364,29 @@ public Response ListByDatabase } } + internal RequestUriBuilder CreateListByInstanceRequestUri(string subscriptionId, AzureLocation locationName, string managedInstanceName, bool? onlyLatestPerDatabase, SqlDatabaseState? databaseState) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Sql/locations/", false); + uri.AppendPath(locationName, true); + uri.AppendPath("/longTermRetentionManagedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/longTermRetentionManagedInstanceBackups", false); + if (onlyLatestPerDatabase != null) + { + uri.AppendQuery("onlyLatestPerDatabase", onlyLatestPerDatabase.Value, true); + } + if (databaseState != null) + { + uri.AppendQuery("databaseState", databaseState.Value.ToString(), true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByInstanceRequest(string subscriptionId, AzureLocation locationName, string managedInstanceName, bool? onlyLatestPerDatabase, SqlDatabaseState? databaseState) { var message = _pipeline.CreateMessage(); @@ -392,6 +476,27 @@ public Response ListByInstance } } + internal RequestUriBuilder CreateListByLocationRequestUri(string subscriptionId, AzureLocation locationName, bool? onlyLatestPerDatabase, SqlDatabaseState? databaseState) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Sql/locations/", false); + uri.AppendPath(locationName, true); + uri.AppendPath("/longTermRetentionManagedInstanceBackups", false); + if (onlyLatestPerDatabase != null) + { + uri.AppendQuery("onlyLatestPerDatabase", onlyLatestPerDatabase.Value, true); + } + if (databaseState != null) + { + uri.AppendQuery("databaseState", databaseState.Value.ToString(), true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByLocationRequest(string subscriptionId, AzureLocation locationName, bool? onlyLatestPerDatabase, SqlDatabaseState? databaseState) { var message = _pipeline.CreateMessage(); @@ -475,6 +580,26 @@ public Response ListByLocation } } + internal RequestUriBuilder CreateGetByResourceGroupRequestUri(string subscriptionId, string resourceGroupName, AzureLocation locationName, string managedInstanceName, string databaseName, string backupName) + { + 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.Sql/locations/", false); + uri.AppendPath(locationName, true); + uri.AppendPath("/longTermRetentionManagedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/longTermRetentionDatabases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/longTermRetentionManagedInstanceBackups/", false); + uri.AppendPath(backupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetByResourceGroupRequest(string subscriptionId, string resourceGroupName, AzureLocation locationName, string managedInstanceName, string databaseName, string backupName) { var message = _pipeline.CreateMessage(); @@ -573,6 +698,26 @@ public Response GetByResourceGroup(s } } + internal RequestUriBuilder CreateDeleteByResourceGroupRequestUri(string subscriptionId, string resourceGroupName, AzureLocation locationName, string managedInstanceName, string databaseName, string backupName) + { + 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.Sql/locations/", false); + uri.AppendPath(locationName, true); + uri.AppendPath("/longTermRetentionManagedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/longTermRetentionDatabases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/longTermRetentionManagedInstanceBackups/", false); + uri.AppendPath(backupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteByResourceGroupRequest(string subscriptionId, string resourceGroupName, AzureLocation locationName, string managedInstanceName, string databaseName, string backupName) { var message = _pipeline.CreateMessage(); @@ -658,6 +803,33 @@ public Response DeleteByResourceGroup(string subscriptionId, string resourceGrou } } + internal RequestUriBuilder CreateListByResourceGroupDatabaseRequestUri(string subscriptionId, string resourceGroupName, AzureLocation locationName, string managedInstanceName, string databaseName, bool? onlyLatestPerDatabase, SqlDatabaseState? databaseState) + { + 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.Sql/locations/", false); + uri.AppendPath(locationName, true); + uri.AppendPath("/longTermRetentionManagedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/longTermRetentionDatabases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/longTermRetentionManagedInstanceBackups", false); + if (onlyLatestPerDatabase != null) + { + uri.AppendQuery("onlyLatestPerDatabase", onlyLatestPerDatabase.Value, true); + } + if (databaseState != null) + { + uri.AppendQuery("databaseState", databaseState.Value.ToString(), true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupDatabaseRequest(string subscriptionId, string resourceGroupName, AzureLocation locationName, string managedInstanceName, string databaseName, bool? onlyLatestPerDatabase, SqlDatabaseState? databaseState) { var message = _pipeline.CreateMessage(); @@ -759,6 +931,31 @@ public Response ListByResource } } + internal RequestUriBuilder CreateListByResourceGroupInstanceRequestUri(string subscriptionId, string resourceGroupName, AzureLocation locationName, string managedInstanceName, bool? onlyLatestPerDatabase, SqlDatabaseState? databaseState) + { + 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.Sql/locations/", false); + uri.AppendPath(locationName, true); + uri.AppendPath("/longTermRetentionManagedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/longTermRetentionManagedInstanceBackups", false); + if (onlyLatestPerDatabase != null) + { + uri.AppendQuery("onlyLatestPerDatabase", onlyLatestPerDatabase.Value, true); + } + if (databaseState != null) + { + uri.AppendQuery("databaseState", databaseState.Value.ToString(), true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupInstanceRequest(string subscriptionId, string resourceGroupName, AzureLocation locationName, string managedInstanceName, bool? onlyLatestPerDatabase, SqlDatabaseState? databaseState) { var message = _pipeline.CreateMessage(); @@ -854,6 +1051,29 @@ public Response ListByResource } } + internal RequestUriBuilder CreateListByResourceGroupLocationRequestUri(string subscriptionId, string resourceGroupName, AzureLocation locationName, bool? onlyLatestPerDatabase, SqlDatabaseState? databaseState) + { + 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.Sql/locations/", false); + uri.AppendPath(locationName, true); + uri.AppendPath("/longTermRetentionManagedInstanceBackups", false); + if (onlyLatestPerDatabase != null) + { + uri.AppendQuery("onlyLatestPerDatabase", onlyLatestPerDatabase.Value, true); + } + if (databaseState != null) + { + uri.AppendQuery("databaseState", databaseState.Value.ToString(), true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupLocationRequest(string subscriptionId, string resourceGroupName, AzureLocation locationName, bool? onlyLatestPerDatabase, SqlDatabaseState? databaseState) { var message = _pipeline.CreateMessage(); @@ -943,6 +1163,14 @@ public Response ListByResource } } + internal RequestUriBuilder CreateListByDatabaseNextPageRequestUri(string nextLink, string subscriptionId, AzureLocation locationName, string managedInstanceName, string databaseName, bool? onlyLatestPerDatabase, SqlDatabaseState? databaseState) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByDatabaseNextPageRequest(string nextLink, string subscriptionId, AzureLocation locationName, string managedInstanceName, string databaseName, bool? onlyLatestPerDatabase, SqlDatabaseState? databaseState) { var message = _pipeline.CreateMessage(); @@ -1025,6 +1253,14 @@ public Response ListByDatabase } } + internal RequestUriBuilder CreateListByInstanceNextPageRequestUri(string nextLink, string subscriptionId, AzureLocation locationName, string managedInstanceName, bool? onlyLatestPerDatabase, SqlDatabaseState? databaseState) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByInstanceNextPageRequest(string nextLink, string subscriptionId, AzureLocation locationName, string managedInstanceName, bool? onlyLatestPerDatabase, SqlDatabaseState? databaseState) { var message = _pipeline.CreateMessage(); @@ -1103,6 +1339,14 @@ public Response ListByInstance } } + internal RequestUriBuilder CreateListByLocationNextPageRequestUri(string nextLink, string subscriptionId, AzureLocation locationName, bool? onlyLatestPerDatabase, SqlDatabaseState? databaseState) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByLocationNextPageRequest(string nextLink, string subscriptionId, AzureLocation locationName, bool? onlyLatestPerDatabase, SqlDatabaseState? databaseState) { var message = _pipeline.CreateMessage(); @@ -1177,6 +1421,14 @@ public Response ListByLocation } } + internal RequestUriBuilder CreateListByResourceGroupDatabaseNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, AzureLocation locationName, string managedInstanceName, string databaseName, bool? onlyLatestPerDatabase, SqlDatabaseState? databaseState) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupDatabaseNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, AzureLocation locationName, string managedInstanceName, string databaseName, bool? onlyLatestPerDatabase, SqlDatabaseState? databaseState) { var message = _pipeline.CreateMessage(); @@ -1263,6 +1515,14 @@ public Response ListByResource } } + internal RequestUriBuilder CreateListByResourceGroupInstanceNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, AzureLocation locationName, string managedInstanceName, bool? onlyLatestPerDatabase, SqlDatabaseState? databaseState) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupInstanceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, AzureLocation locationName, string managedInstanceName, bool? onlyLatestPerDatabase, SqlDatabaseState? databaseState) { var message = _pipeline.CreateMessage(); @@ -1345,6 +1605,14 @@ public Response ListByResource } } + internal RequestUriBuilder CreateListByResourceGroupLocationNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, AzureLocation locationName, bool? onlyLatestPerDatabase, SqlDatabaseState? databaseState) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupLocationNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, AzureLocation locationName, bool? onlyLatestPerDatabase, SqlDatabaseState? databaseState) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/LongTermRetentionPoliciesRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/LongTermRetentionPoliciesRestOperations.cs index f4e2fbd86697..2b2424b94afd 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/LongTermRetentionPoliciesRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/LongTermRetentionPoliciesRestOperations.cs @@ -37,6 +37,23 @@ public LongTermRetentionPoliciesRestOperations(HttpPipeline pipeline, string app _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByDatabaseRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/backupLongTermRetentionPolicies", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByDatabaseRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName) { var message = _pipeline.CreateMessage(); @@ -122,6 +139,24 @@ public Response ListByDatabase(string subscri } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName, LongTermRetentionPolicyName policyName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/backupLongTermRetentionPolicies/", false); + uri.AppendPath(policyName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName, LongTermRetentionPolicyName policyName) { var message = _pipeline.CreateMessage(); @@ -214,6 +249,24 @@ public Response Get(string subscriptionId, string r } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName, LongTermRetentionPolicyName policyName, LongTermRetentionPolicyData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/backupLongTermRetentionPolicies/", false); + uri.AppendPath(policyName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName, LongTermRetentionPolicyName policyName, LongTermRetentionPolicyData data) { var message = _pipeline.CreateMessage(); @@ -302,6 +355,14 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateListByDatabaseNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serverName, string databaseName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByDatabaseNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serverName, string databaseName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/MaintenanceWindowOptionsRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/MaintenanceWindowOptionsRestOperations.cs index ada15a272692..2c1b5b115619 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/MaintenanceWindowOptionsRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/MaintenanceWindowOptionsRestOperations.cs @@ -36,6 +36,24 @@ public MaintenanceWindowOptionsRestOperations(HttpPipeline pipeline, string appl _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string maintenanceWindowOptionsName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/maintenanceWindowOptions/current", false); + uri.AppendQuery("maintenanceWindowOptionsName", maintenanceWindowOptionsName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string maintenanceWindowOptionsName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/MaintenanceWindowsRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/MaintenanceWindowsRestOperations.cs index 4a92455a25f9..14371aaa43d5 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/MaintenanceWindowsRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/MaintenanceWindowsRestOperations.cs @@ -36,6 +36,24 @@ public MaintenanceWindowsRestOperations(HttpPipeline pipeline, string applicatio _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string maintenanceWindowName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/maintenanceWindows/current", false); + uri.AppendQuery("maintenanceWindowName", maintenanceWindowName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string maintenanceWindowName) { var message = _pipeline.CreateMessage(); @@ -130,6 +148,24 @@ public Response Get(string subscriptionId, string resour } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string maintenanceWindowName, MaintenanceWindowsData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/maintenanceWindows/current", false); + uri.AppendQuery("maintenanceWindowName", maintenanceWindowName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string maintenanceWindowName, MaintenanceWindowsData data) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedBackupShortTermRetentionPoliciesRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedBackupShortTermRetentionPoliciesRestOperations.cs index 1a4fd4b51131..a62af2b1d0bd 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedBackupShortTermRetentionPoliciesRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedBackupShortTermRetentionPoliciesRestOperations.cs @@ -37,6 +37,24 @@ public ManagedBackupShortTermRetentionPoliciesRestOperations(HttpPipeline pipeli _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, ManagedShortTermRetentionPolicyName policyName) + { + 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.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/backupShortTermRetentionPolicies/", false); + uri.AppendPath(policyName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, ManagedShortTermRetentionPolicyName policyName) { var message = _pipeline.CreateMessage(); @@ -129,6 +147,24 @@ public Response Get(string subscripti } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, ManagedShortTermRetentionPolicyName policyName, ManagedBackupShortTermRetentionPolicyData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/backupShortTermRetentionPolicies/", false); + uri.AppendPath(policyName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, ManagedShortTermRetentionPolicyName policyName, ManagedBackupShortTermRetentionPolicyData data) { var message = _pipeline.CreateMessage(); @@ -217,6 +253,24 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, ManagedShortTermRetentionPolicyName policyName, ManagedBackupShortTermRetentionPolicyData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/backupShortTermRetentionPolicies/", false); + uri.AppendPath(policyName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, ManagedShortTermRetentionPolicyName policyName, ManagedBackupShortTermRetentionPolicyData data) { var message = _pipeline.CreateMessage(); @@ -305,6 +359,23 @@ public Response Update(string subscriptionId, string resourceGroupName, string m } } + internal RequestUriBuilder CreateListByDatabaseRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName) + { + 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.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/backupShortTermRetentionPolicies", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByDatabaseRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName) { var message = _pipeline.CreateMessage(); @@ -390,6 +461,14 @@ public Response ListByDatabase( } } + internal RequestUriBuilder CreateListByDatabaseNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByDatabaseNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedDatabaseAdvancedThreatProtectionSettingsRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedDatabaseAdvancedThreatProtectionSettingsRestOperations.cs index 1824fc3967e4..4d6b4e3ff8c5 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedDatabaseAdvancedThreatProtectionSettingsRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedDatabaseAdvancedThreatProtectionSettingsRestOperations.cs @@ -37,6 +37,23 @@ public ManagedDatabaseAdvancedThreatProtectionSettingsRestOperations(HttpPipelin _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByDatabaseRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName) + { + 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.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/advancedThreatProtectionSettings", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByDatabaseRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName) { var message = _pipeline.CreateMessage(); @@ -122,6 +139,24 @@ public Response ListByDatabas } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, AdvancedThreatProtectionName advancedThreatProtectionName) + { + 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.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/advancedThreatProtectionSettings/", false); + uri.AppendPath(advancedThreatProtectionName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, AdvancedThreatProtectionName advancedThreatProtectionName) { var message = _pipeline.CreateMessage(); @@ -214,6 +249,24 @@ public Response Get(string subscrip } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, AdvancedThreatProtectionName advancedThreatProtectionName, ManagedDatabaseAdvancedThreatProtectionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/advancedThreatProtectionSettings/", false); + uri.AppendPath(advancedThreatProtectionName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, AdvancedThreatProtectionName advancedThreatProtectionName, ManagedDatabaseAdvancedThreatProtectionData data) { var message = _pipeline.CreateMessage(); @@ -312,6 +365,14 @@ public Response CreateOrUpdate(stri } } + internal RequestUriBuilder CreateListByDatabaseNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByDatabaseNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedDatabaseColumnsRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedDatabaseColumnsRestOperations.cs index cbc817faacf9..8f0be0e6d7bc 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedDatabaseColumnsRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedDatabaseColumnsRestOperations.cs @@ -38,6 +38,55 @@ public ManagedDatabaseColumnsRestOperations(HttpPipeline pipeline, string applic _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByDatabaseRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, IEnumerable schema, IEnumerable table, IEnumerable column, IEnumerable orderBy, string skiptoken) + { + 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.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/columns", false); + if (schema != null && Optional.IsCollectionDefined(schema)) + { + foreach (var param in schema) + { + uri.AppendQuery("schema", param, true); + } + } + if (table != null && Optional.IsCollectionDefined(table)) + { + foreach (var param in table) + { + uri.AppendQuery("table", param, true); + } + } + if (column != null && Optional.IsCollectionDefined(column)) + { + foreach (var param in column) + { + uri.AppendQuery("column", param, true); + } + } + if (orderBy != null && Optional.IsCollectionDefined(orderBy)) + { + foreach (var param in orderBy) + { + uri.AppendQuery("orderBy", param, true); + } + } + if (skiptoken != null) + { + uri.AppendQuery("$skiptoken", skiptoken, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByDatabaseRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, IEnumerable schema, IEnumerable table, IEnumerable column, IEnumerable orderBy, string skiptoken) { var message = _pipeline.CreateMessage(); @@ -165,6 +214,31 @@ public Response ListByDatabase(string subscriptionId, } } + internal RequestUriBuilder CreateListByTableRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, string schemaName, string tableName, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/schemas/", false); + uri.AppendPath(schemaName, true); + uri.AppendPath("/tables/", false); + uri.AppendPath(tableName, true); + uri.AppendPath("/columns", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByTableRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, string schemaName, string tableName, string filter) { var message = _pipeline.CreateMessage(); @@ -268,6 +342,28 @@ public Response ListByTable(string subscriptionId, str } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, string schemaName, string tableName, string columnName) + { + 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.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/schemas/", false); + uri.AppendPath(schemaName, true); + uri.AppendPath("/tables/", false); + uri.AppendPath(tableName, true); + uri.AppendPath("/columns/", false); + uri.AppendPath(columnName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, string schemaName, string tableName, string columnName) { var message = _pipeline.CreateMessage(); @@ -374,6 +470,14 @@ public Response Get(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateListByDatabaseNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, IEnumerable schema, IEnumerable table, IEnumerable column, IEnumerable orderBy, string skiptoken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByDatabaseNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, IEnumerable schema, IEnumerable table, IEnumerable column, IEnumerable orderBy, string skiptoken) { var message = _pipeline.CreateMessage(); @@ -464,6 +568,14 @@ public Response ListByDatabaseNextPage(string nextLink } } + internal RequestUriBuilder CreateListByTableNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, string schemaName, string tableName, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByTableNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, string schemaName, string tableName, string filter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedDatabaseQueriesRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedDatabaseQueriesRestOperations.cs index 0bc48bef5b46..7bc75c1364e4 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedDatabaseQueriesRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedDatabaseQueriesRestOperations.cs @@ -37,6 +37,24 @@ public ManagedDatabaseQueriesRestOperations(HttpPipeline pipeline, string applic _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, string queryId) + { + 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.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/queries/", false); + uri.AppendPath(queryId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, string queryId) { var message = _pipeline.CreateMessage(); @@ -127,6 +145,37 @@ public Response Get(string subscriptionId, string resource } } + internal RequestUriBuilder CreateListByQueryRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, string queryId, string startTime, string endTime, QueryTimeGrainType? interval) + { + 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.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/queries/", false); + uri.AppendPath(queryId, true); + uri.AppendPath("/statistics", false); + if (startTime != null) + { + uri.AppendQuery("startTime", startTime, true); + } + if (endTime != null) + { + uri.AppendQuery("endTime", endTime, true); + } + if (interval != null) + { + uri.AppendQuery("interval", interval.Value.ToString(), true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByQueryRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, string queryId, string startTime, string endTime, QueryTimeGrainType? interval) { var message = _pipeline.CreateMessage(); @@ -236,6 +285,14 @@ public Response ListByQuery(string subscriptionI } } + internal RequestUriBuilder CreateListByQueryNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, string queryId, string startTime, string endTime, QueryTimeGrainType? interval) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByQueryNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, string queryId, string startTime, string endTime, QueryTimeGrainType? interval) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedDatabaseRestoreDetailsRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedDatabaseRestoreDetailsRestOperations.cs index 6f8c0d696111..bfcdc096f17e 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedDatabaseRestoreDetailsRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedDatabaseRestoreDetailsRestOperations.cs @@ -37,6 +37,24 @@ public ManagedDatabaseRestoreDetailsRestOperations(HttpPipeline pipeline, string _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, RestoreDetailsName restoreDetailsName) + { + 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.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/restoreDetails/", false); + uri.AppendPath(restoreDetailsName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, RestoreDetailsName restoreDetailsName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedDatabaseSchemasRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedDatabaseSchemasRestOperations.cs index dd27fa9ec9fe..b96b97155bee 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedDatabaseSchemasRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedDatabaseSchemasRestOperations.cs @@ -37,6 +37,27 @@ public ManagedDatabaseSchemasRestOperations(HttpPipeline pipeline, string applic _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByDatabaseRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/schemas", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByDatabaseRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, string filter) { var message = _pipeline.CreateMessage(); @@ -128,6 +149,24 @@ public Response ListByDatabase(string subscriptionId, } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, string schemaName) + { + 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.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/schemas/", false); + uri.AppendPath(schemaName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, string schemaName) { var message = _pipeline.CreateMessage(); @@ -222,6 +261,14 @@ public Response Get(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateListByDatabaseNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByDatabaseNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, string filter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedDatabaseSecurityAlertPoliciesRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedDatabaseSecurityAlertPoliciesRestOperations.cs index 6c8891a0565d..7c7301c77b5b 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedDatabaseSecurityAlertPoliciesRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedDatabaseSecurityAlertPoliciesRestOperations.cs @@ -37,6 +37,24 @@ public ManagedDatabaseSecurityAlertPoliciesRestOperations(HttpPipeline pipeline, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, SqlSecurityAlertPolicyName securityAlertPolicyName) + { + 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.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/securityAlertPolicies/", false); + uri.AppendPath(securityAlertPolicyName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, SqlSecurityAlertPolicyName securityAlertPolicyName) { var message = _pipeline.CreateMessage(); @@ -129,6 +147,24 @@ public Response Get(string subscriptionI } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, SqlSecurityAlertPolicyName securityAlertPolicyName, ManagedDatabaseSecurityAlertPolicyData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/securityAlertPolicies/", false); + uri.AppendPath(securityAlertPolicyName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, SqlSecurityAlertPolicyName securityAlertPolicyName, ManagedDatabaseSecurityAlertPolicyData data) { var message = _pipeline.CreateMessage(); @@ -227,6 +263,23 @@ public Response CreateOrUpdate(string su } } + internal RequestUriBuilder CreateListByDatabaseRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName) + { + 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.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/securityAlertPolicies", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByDatabaseRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName) { var message = _pipeline.CreateMessage(); @@ -312,6 +365,14 @@ public Response ListByDatabase(str } } + internal RequestUriBuilder CreateListByDatabaseNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByDatabaseNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedDatabaseSecurityEventsRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedDatabaseSecurityEventsRestOperations.cs index f60ccd0e233f..3f79a0a724b4 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedDatabaseSecurityEventsRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedDatabaseSecurityEventsRestOperations.cs @@ -37,6 +37,39 @@ public ManagedDatabaseSecurityEventsRestOperations(HttpPipeline pipeline, string _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByDatabaseRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, string filter, int? skip, int? top, string skiptoken) + { + 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.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/securityEvents", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (skip != null) + { + uri.AppendQuery("$skip", skip.Value, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skiptoken != null) + { + uri.AppendQuery("$skiptoken", skiptoken, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByDatabaseRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, string filter, int? skip, int? top, string skiptoken) { var message = _pipeline.CreateMessage(); @@ -146,6 +179,14 @@ public Response ListByDatabase(string subscriptionId, s } } + internal RequestUriBuilder CreateListByDatabaseNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, string filter, int? skip, int? top, string skiptoken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByDatabaseNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, string filter, int? skip, int? top, string skiptoken) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedDatabaseSensitivityLabelsRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedDatabaseSensitivityLabelsRestOperations.cs index f09ca537fd1e..b4e30252f39f 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedDatabaseSensitivityLabelsRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedDatabaseSensitivityLabelsRestOperations.cs @@ -37,6 +37,30 @@ public ManagedDatabaseSensitivityLabelsRestOperations(HttpPipeline pipeline, str _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, string schemaName, string tableName, string columnName, SensitivityLabelSource sensitivityLabelSource) + { + 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.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/schemas/", false); + uri.AppendPath(schemaName, true); + uri.AppendPath("/tables/", false); + uri.AppendPath(tableName, true); + uri.AppendPath("/columns/", false); + uri.AppendPath(columnName, true); + uri.AppendPath("/sensitivityLabels/", false); + uri.AppendPath(sensitivityLabelSource.ToSerialString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, string schemaName, string tableName, string columnName, SensitivityLabelSource sensitivityLabelSource) { var message = _pipeline.CreateMessage(); @@ -147,6 +171,30 @@ public Response Get(string subscriptionId, string resource } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, string schemaName, string tableName, string columnName, SensitivityLabelData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/schemas/", false); + uri.AppendPath(schemaName, true); + uri.AppendPath("/tables/", false); + uri.AppendPath(tableName, true); + uri.AppendPath("/columns/", false); + uri.AppendPath(columnName, true); + uri.AppendPath("/sensitivityLabels/", false); + uri.AppendPath("current", true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, string schemaName, string tableName, string columnName, SensitivityLabelData data) { var message = _pipeline.CreateMessage(); @@ -261,6 +309,30 @@ public Response CreateOrUpdate(string subscriptionId, stri } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, string schemaName, string tableName, string columnName) + { + 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.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/schemas/", false); + uri.AppendPath(schemaName, true); + uri.AppendPath("/tables/", false); + uri.AppendPath(tableName, true); + uri.AppendPath("/columns/", false); + uri.AppendPath(columnName, true); + uri.AppendPath("/sensitivityLabels/", false); + uri.AppendPath("current", true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, string schemaName, string tableName, string columnName) { var message = _pipeline.CreateMessage(); @@ -354,6 +426,31 @@ public Response Delete(string subscriptionId, string resourceGroupName, string m } } + internal RequestUriBuilder CreateDisableRecommendationRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, string schemaName, string tableName, string columnName) + { + 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.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/schemas/", false); + uri.AppendPath(schemaName, true); + uri.AppendPath("/tables/", false); + uri.AppendPath(tableName, true); + uri.AppendPath("/columns/", false); + uri.AppendPath(columnName, true); + uri.AppendPath("/sensitivityLabels/", false); + uri.AppendPath("recommended", true); + uri.AppendPath("/disable", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDisableRecommendationRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, string schemaName, string tableName, string columnName) { var message = _pipeline.CreateMessage(); @@ -448,6 +545,31 @@ public Response DisableRecommendation(string subscriptionId, string resourceGrou } } + internal RequestUriBuilder CreateEnableRecommendationRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, string schemaName, string tableName, string columnName) + { + 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.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/schemas/", false); + uri.AppendPath(schemaName, true); + uri.AppendPath("/tables/", false); + uri.AppendPath(tableName, true); + uri.AppendPath("/columns/", false); + uri.AppendPath(columnName, true); + uri.AppendPath("/sensitivityLabels/", false); + uri.AppendPath("recommended", true); + uri.AppendPath("/enable", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateEnableRecommendationRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, string schemaName, string tableName, string columnName) { var message = _pipeline.CreateMessage(); @@ -542,6 +664,35 @@ public Response EnableRecommendation(string subscriptionId, string resourceGroup } } + internal RequestUriBuilder CreateListCurrentRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, string skipToken, bool? count, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/currentSensitivityLabels", false); + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } + if (count != null) + { + uri.AppendQuery("$count", count.Value, true); + } + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListCurrentRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, string skipToken, bool? count, string filter) { var message = _pipeline.CreateMessage(); @@ -645,6 +796,23 @@ public Response ListCurrent(string subscriptionId, s } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, SensitivityLabelUpdateList sensitivityLabelUpdateList) + { + 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.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/currentSensitivityLabels", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, SensitivityLabelUpdateList sensitivityLabelUpdateList) { var message = _pipeline.CreateMessage(); @@ -727,6 +895,35 @@ public Response Update(string subscriptionId, string resourceGroupName, string m } } + internal RequestUriBuilder CreateListRecommendedRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, string skipToken, bool? includeDisabledRecommendations, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/recommendedSensitivityLabels", false); + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } + if (includeDisabledRecommendations != null) + { + uri.AppendQuery("includeDisabledRecommendations", includeDisabledRecommendations.Value, true); + } + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRecommendedRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, string skipToken, bool? includeDisabledRecommendations, string filter) { var message = _pipeline.CreateMessage(); @@ -830,6 +1027,23 @@ public Response ListRecommended(string subscriptionI } } + internal RequestUriBuilder CreateUpdateRecommendedRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, RecommendedSensitivityLabelUpdateList recommendedSensitivityLabelUpdateList) + { + 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.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/recommendedSensitivityLabels", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRecommendedRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, RecommendedSensitivityLabelUpdateList recommendedSensitivityLabelUpdateList) { var message = _pipeline.CreateMessage(); @@ -912,6 +1126,14 @@ public Response UpdateRecommended(string subscriptionId, string resourceGroupNam } } + internal RequestUriBuilder CreateListCurrentNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, string skipToken, bool? count, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListCurrentNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, string skipToken, bool? count, string filter) { var message = _pipeline.CreateMessage(); @@ -998,6 +1220,14 @@ public Response ListCurrentNextPage(string nextLink, } } + internal RequestUriBuilder CreateListRecommendedNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, string skipToken, bool? includeDisabledRecommendations, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListRecommendedNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, string skipToken, bool? includeDisabledRecommendations, string filter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedDatabaseTablesRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedDatabaseTablesRestOperations.cs index 417b00c35291..710293f5dde1 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedDatabaseTablesRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedDatabaseTablesRestOperations.cs @@ -37,6 +37,29 @@ public ManagedDatabaseTablesRestOperations(HttpPipeline pipeline, string applica _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListBySchemaRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, string schemaName, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/schemas/", false); + uri.AppendPath(schemaName, true); + uri.AppendPath("/tables", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySchemaRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, string schemaName, string filter) { var message = _pipeline.CreateMessage(); @@ -134,6 +157,26 @@ public Response ListBySchema(string subscriptionId, str } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, string schemaName, string tableName) + { + 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.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/schemas/", false); + uri.AppendPath(schemaName, true); + uri.AppendPath("/tables/", false); + uri.AppendPath(tableName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, string schemaName, string tableName) { var message = _pipeline.CreateMessage(); @@ -234,6 +277,14 @@ public Response Get(string subscriptionId, string resourceGro } } + internal RequestUriBuilder CreateListBySchemaNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, string schemaName, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySchemaNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, string schemaName, string filter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedDatabaseTransparentDataEncryptionRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedDatabaseTransparentDataEncryptionRestOperations.cs index 66ce4de96932..bb9ef01486c0 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedDatabaseTransparentDataEncryptionRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedDatabaseTransparentDataEncryptionRestOperations.cs @@ -37,6 +37,24 @@ public ManagedDatabaseTransparentDataEncryptionRestOperations(HttpPipeline pipel _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, TransparentDataEncryptionName tdeName) + { + 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.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/transparentDataEncryption/", false); + uri.AppendPath(tdeName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, TransparentDataEncryptionName tdeName) { var message = _pipeline.CreateMessage(); @@ -129,6 +147,24 @@ public Response Get(string subscriptionId, } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, TransparentDataEncryptionName tdeName, ManagedTransparentDataEncryptionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/transparentDataEncryption/", false); + uri.AppendPath(tdeName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, TransparentDataEncryptionName tdeName, ManagedTransparentDataEncryptionData data) { var message = _pipeline.CreateMessage(); @@ -227,6 +263,23 @@ public Response CreateOrUpdate(string subs } } + internal RequestUriBuilder CreateListByDatabaseRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName) + { + 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.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/transparentDataEncryption", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByDatabaseRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName) { var message = _pipeline.CreateMessage(); @@ -312,6 +365,14 @@ public Response ListByDatabase(strin } } + internal RequestUriBuilder CreateListByDatabaseNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByDatabaseNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedDatabaseVulnerabilityAssessmentRuleBaselinesRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedDatabaseVulnerabilityAssessmentRuleBaselinesRestOperations.cs index d7df8f0f9ffc..a5af3e9a994f 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedDatabaseVulnerabilityAssessmentRuleBaselinesRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedDatabaseVulnerabilityAssessmentRuleBaselinesRestOperations.cs @@ -37,6 +37,28 @@ public ManagedDatabaseVulnerabilityAssessmentRuleBaselinesRestOperations(HttpPip _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, VulnerabilityAssessmentName vulnerabilityAssessmentName, string ruleId, VulnerabilityAssessmentPolicyBaselineName baselineName) + { + 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.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/vulnerabilityAssessments/", false); + uri.AppendPath(vulnerabilityAssessmentName.ToString(), true); + uri.AppendPath("/rules/", false); + uri.AppendPath(ruleId, true); + uri.AppendPath("/baselines/", false); + uri.AppendPath(baselineName.ToSerialString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, VulnerabilityAssessmentName vulnerabilityAssessmentName, string ruleId, VulnerabilityAssessmentPolicyBaselineName baselineName) { var message = _pipeline.CreateMessage(); @@ -139,6 +161,28 @@ public Response Get(string subs } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, VulnerabilityAssessmentName vulnerabilityAssessmentName, string ruleId, VulnerabilityAssessmentPolicyBaselineName baselineName, DatabaseVulnerabilityAssessmentRuleBaselineData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/vulnerabilityAssessments/", false); + uri.AppendPath(vulnerabilityAssessmentName.ToString(), true); + uri.AppendPath("/rules/", false); + uri.AppendPath(ruleId, true); + uri.AppendPath("/baselines/", false); + uri.AppendPath(baselineName.ToSerialString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, VulnerabilityAssessmentName vulnerabilityAssessmentName, string ruleId, VulnerabilityAssessmentPolicyBaselineName baselineName, DatabaseVulnerabilityAssessmentRuleBaselineData data) { var message = _pipeline.CreateMessage(); @@ -245,6 +289,28 @@ public Response CreateOrUpdate( } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, VulnerabilityAssessmentName vulnerabilityAssessmentName, string ruleId, VulnerabilityAssessmentPolicyBaselineName baselineName) + { + 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.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/vulnerabilityAssessments/", false); + uri.AppendPath(vulnerabilityAssessmentName.ToString(), true); + uri.AppendPath("/rules/", false); + uri.AppendPath(ruleId, true); + uri.AppendPath("/baselines/", false); + uri.AppendPath(baselineName.ToSerialString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, VulnerabilityAssessmentName vulnerabilityAssessmentName, string ruleId, VulnerabilityAssessmentPolicyBaselineName baselineName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedDatabaseVulnerabilityAssessmentScansRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedDatabaseVulnerabilityAssessmentScansRestOperations.cs index 3995db943f82..25f990b2c3bc 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedDatabaseVulnerabilityAssessmentScansRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedDatabaseVulnerabilityAssessmentScansRestOperations.cs @@ -37,6 +37,27 @@ public ManagedDatabaseVulnerabilityAssessmentScansRestOperations(HttpPipeline pi _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateInitiateScanRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, VulnerabilityAssessmentName vulnerabilityAssessmentName, string scanId) + { + 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.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/vulnerabilityAssessments/", false); + uri.AppendPath(vulnerabilityAssessmentName.ToString(), true); + uri.AppendPath("/scans/", false); + uri.AppendPath(scanId, true); + uri.AppendPath("/initiateScan", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateInitiateScanRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, VulnerabilityAssessmentName vulnerabilityAssessmentName, string scanId) { var message = _pipeline.CreateMessage(); @@ -123,6 +144,27 @@ public Response InitiateScan(string subscriptionId, string resourceGroupName, st } } + internal RequestUriBuilder CreateExportRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, VulnerabilityAssessmentName vulnerabilityAssessmentName, string scanId) + { + 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.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/vulnerabilityAssessments/", false); + uri.AppendPath(vulnerabilityAssessmentName.ToString(), true); + uri.AppendPath("/scans/", false); + uri.AppendPath(scanId, true); + uri.AppendPath("/export", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateExportRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, VulnerabilityAssessmentName vulnerabilityAssessmentName, string scanId) { var message = _pipeline.CreateMessage(); @@ -220,6 +262,25 @@ public Response Export(string subscr } } + internal RequestUriBuilder CreateListByDatabaseRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, VulnerabilityAssessmentName vulnerabilityAssessmentName) + { + 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.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/vulnerabilityAssessments/", false); + uri.AppendPath(vulnerabilityAssessmentName.ToString(), true); + uri.AppendPath("/scans", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByDatabaseRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, VulnerabilityAssessmentName vulnerabilityAssessmentName) { var message = _pipeline.CreateMessage(); @@ -309,6 +370,26 @@ public Response ListByDatabase(stri } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, VulnerabilityAssessmentName vulnerabilityAssessmentName, string scanId) + { + 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.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/vulnerabilityAssessments/", false); + uri.AppendPath(vulnerabilityAssessmentName.ToString(), true); + uri.AppendPath("/scans/", false); + uri.AppendPath(scanId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, VulnerabilityAssessmentName vulnerabilityAssessmentName, string scanId) { var message = _pipeline.CreateMessage(); @@ -407,6 +488,14 @@ public Response Get(string subscriptionId } } + internal RequestUriBuilder CreateListByDatabaseNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, VulnerabilityAssessmentName vulnerabilityAssessmentName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByDatabaseNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, VulnerabilityAssessmentName vulnerabilityAssessmentName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedDatabaseVulnerabilityAssessmentsRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedDatabaseVulnerabilityAssessmentsRestOperations.cs index 220f4088457f..86b7d6209986 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedDatabaseVulnerabilityAssessmentsRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedDatabaseVulnerabilityAssessmentsRestOperations.cs @@ -37,6 +37,24 @@ public ManagedDatabaseVulnerabilityAssessmentsRestOperations(HttpPipeline pipeli _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, VulnerabilityAssessmentName vulnerabilityAssessmentName) + { + 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.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/vulnerabilityAssessments/", false); + uri.AppendPath(vulnerabilityAssessmentName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, VulnerabilityAssessmentName vulnerabilityAssessmentName) { var message = _pipeline.CreateMessage(); @@ -129,6 +147,24 @@ public Response Get(string subscriptionId, } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, VulnerabilityAssessmentName vulnerabilityAssessmentName, DatabaseVulnerabilityAssessmentData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/vulnerabilityAssessments/", false); + uri.AppendPath(vulnerabilityAssessmentName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, VulnerabilityAssessmentName vulnerabilityAssessmentName, DatabaseVulnerabilityAssessmentData data) { var message = _pipeline.CreateMessage(); @@ -227,6 +263,24 @@ public Response CreateOrUpdate(string subsc } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, VulnerabilityAssessmentName vulnerabilityAssessmentName) + { + 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.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/vulnerabilityAssessments/", false); + uri.AppendPath(vulnerabilityAssessmentName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, VulnerabilityAssessmentName vulnerabilityAssessmentName) { var message = _pipeline.CreateMessage(); @@ -304,6 +358,23 @@ public Response Delete(string subscriptionId, string resourceGroupName, string m } } + internal RequestUriBuilder CreateListByDatabaseRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName) + { + 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.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/vulnerabilityAssessments", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByDatabaseRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName) { var message = _pipeline.CreateMessage(); @@ -389,6 +460,14 @@ public Response ListByDatabase(string } } + internal RequestUriBuilder CreateListByDatabaseNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByDatabaseNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedDatabasesRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedDatabasesRestOperations.cs index 93c2388616a0..e3468144026b 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedDatabasesRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedDatabasesRestOperations.cs @@ -37,6 +37,21 @@ public ManagedDatabasesRestOperations(HttpPipeline pipeline, string applicationI _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByInstanceRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName) + { + 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.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/databases", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByInstanceRequest(string subscriptionId, string resourceGroupName, string managedInstanceName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByInstance(string subscriptionId, } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName) + { + 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.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscriptionId, string resourceG } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, ManagedDatabaseData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, ManagedDatabaseData data) { var message = _pipeline.CreateMessage(); @@ -290,6 +337,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName) + { + 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.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName) { var message = _pipeline.CreateMessage(); @@ -367,6 +430,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string m } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, ManagedDatabasePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, ManagedDatabasePatch patch) { var message = _pipeline.CreateMessage(); @@ -451,6 +530,23 @@ public Response Update(string subscriptionId, string resourceGroupName, string m } } + internal RequestUriBuilder CreateCancelMoveRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, ManagedDatabaseMoveDefinition managedDatabaseMoveDefinition) + { + 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.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/cancelMove", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCancelMoveRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, ManagedDatabaseMoveDefinition managedDatabaseMoveDefinition) { var message = _pipeline.CreateMessage(); @@ -535,6 +631,23 @@ public Response CancelMove(string subscriptionId, string resourceGroupName, stri } } + internal RequestUriBuilder CreateCompleteMoveRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, ManagedDatabaseMoveDefinition managedDatabaseMoveDefinition) + { + 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.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/completeMove", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCompleteMoveRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, ManagedDatabaseMoveDefinition managedDatabaseMoveDefinition) { var message = _pipeline.CreateMessage(); @@ -619,6 +732,23 @@ public Response CompleteMove(string subscriptionId, string resourceGroupName, st } } + internal RequestUriBuilder CreateCompleteRestoreRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, CompleteDatabaseRestoreDefinition completeDatabaseRestoreDefinition) + { + 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.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/completeRestore", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCompleteRestoreRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, CompleteDatabaseRestoreDefinition completeDatabaseRestoreDefinition) { var message = _pipeline.CreateMessage(); @@ -703,6 +833,23 @@ public Response CompleteRestore(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateStartMoveRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, ManagedDatabaseStartMoveDefinition managedDatabaseStartMoveDefinition) + { + 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.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/startMove", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStartMoveRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, ManagedDatabaseStartMoveDefinition managedDatabaseStartMoveDefinition) { var message = _pipeline.CreateMessage(); @@ -787,6 +934,21 @@ public Response StartMove(string subscriptionId, string resourceGroupName, strin } } + internal RequestUriBuilder CreateListInaccessibleByInstanceRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName) + { + 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.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/inaccessibleManagedDatabases", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListInaccessibleByInstanceRequest(string subscriptionId, string resourceGroupName, string managedInstanceName) { var message = _pipeline.CreateMessage(); @@ -866,6 +1028,14 @@ public Response ListInaccessibleByInstance(string sub } } + internal RequestUriBuilder CreateListByInstanceNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string managedInstanceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByInstanceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string managedInstanceName) { var message = _pipeline.CreateMessage(); @@ -942,6 +1112,14 @@ public Response ListByInstanceNextPage(string nextLin } } + internal RequestUriBuilder CreateListInaccessibleByInstanceNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string managedInstanceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListInaccessibleByInstanceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string managedInstanceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedInstanceAdministratorsRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedInstanceAdministratorsRestOperations.cs index 6ec8214e1d61..6623812b7794 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedInstanceAdministratorsRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedInstanceAdministratorsRestOperations.cs @@ -37,6 +37,21 @@ public ManagedInstanceAdministratorsRestOperations(HttpPipeline pipeline, string _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByInstanceRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName) + { + 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.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/administrators", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByInstanceRequest(string subscriptionId, string resourceGroupName, string managedInstanceName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByInstance(string su } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, SqlAdministratorName administratorName) + { + 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.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/administrators/", false); + uri.AppendPath(administratorName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, SqlAdministratorName administratorName) { var message = _pipeline.CreateMessage(); @@ -202,6 +233,22 @@ public Response Get(string subscriptionId, str } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, SqlAdministratorName administratorName, ManagedInstanceAdministratorData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/administrators/", false); + uri.AppendPath(administratorName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, SqlAdministratorName administratorName, ManagedInstanceAdministratorData data) { var message = _pipeline.CreateMessage(); @@ -286,6 +333,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, SqlAdministratorName administratorName) + { + 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.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/administrators/", false); + uri.AppendPath(administratorName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, SqlAdministratorName administratorName) { var message = _pipeline.CreateMessage(); @@ -359,6 +422,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string m } } + internal RequestUriBuilder CreateListByInstanceNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string managedInstanceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByInstanceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string managedInstanceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedInstanceAdvancedThreatProtectionSettingsRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedInstanceAdvancedThreatProtectionSettingsRestOperations.cs index 4edd92e2c617..4541e952a7de 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedInstanceAdvancedThreatProtectionSettingsRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedInstanceAdvancedThreatProtectionSettingsRestOperations.cs @@ -37,6 +37,21 @@ public ManagedInstanceAdvancedThreatProtectionSettingsRestOperations(HttpPipelin _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByInstanceRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName) + { + 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.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/advancedThreatProtectionSettings", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByInstanceRequest(string subscriptionId, string resourceGroupName, string managedInstanceName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByInstanc } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, AdvancedThreatProtectionName advancedThreatProtectionName) + { + 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.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/advancedThreatProtectionSettings/", false); + uri.AppendPath(advancedThreatProtectionName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, AdvancedThreatProtectionName advancedThreatProtectionName) { var message = _pipeline.CreateMessage(); @@ -202,6 +233,22 @@ public Response Get(string subscrip } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, AdvancedThreatProtectionName advancedThreatProtectionName, ManagedInstanceAdvancedThreatProtectionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/advancedThreatProtectionSettings/", false); + uri.AppendPath(advancedThreatProtectionName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, AdvancedThreatProtectionName advancedThreatProtectionName, ManagedInstanceAdvancedThreatProtectionData data) { var message = _pipeline.CreateMessage(); @@ -284,6 +331,14 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateListByInstanceNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string managedInstanceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByInstanceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string managedInstanceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedInstanceAzureADOnlyAuthenticationsRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedInstanceAzureADOnlyAuthenticationsRestOperations.cs index c7de8fe315ef..0ff7382a433e 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedInstanceAzureADOnlyAuthenticationsRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedInstanceAzureADOnlyAuthenticationsRestOperations.cs @@ -37,6 +37,22 @@ public ManagedInstanceAzureADOnlyAuthenticationsRestOperations(HttpPipeline pipe _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, AuthenticationName authenticationName) + { + 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.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/azureADOnlyAuthentications/", false); + uri.AppendPath(authenticationName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, AuthenticationName authenticationName) { var message = _pipeline.CreateMessage(); @@ -123,6 +139,22 @@ public Response Get(string subscri } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, AuthenticationName authenticationName, ManagedInstanceAzureADOnlyAuthenticationData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/azureADOnlyAuthentications/", false); + uri.AppendPath(authenticationName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, AuthenticationName authenticationName, ManagedInstanceAzureADOnlyAuthenticationData data) { var message = _pipeline.CreateMessage(); @@ -207,6 +239,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, AuthenticationName authenticationName) + { + 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.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/azureADOnlyAuthentications/", false); + uri.AppendPath(authenticationName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, AuthenticationName authenticationName) { var message = _pipeline.CreateMessage(); @@ -282,6 +330,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string m } } + internal RequestUriBuilder CreateListByInstanceRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName) + { + 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.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/azureADOnlyAuthentications", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByInstanceRequest(string subscriptionId, string resourceGroupName, string managedInstanceName) { var message = _pipeline.CreateMessage(); @@ -361,6 +424,14 @@ public Response ListByInstance(string } } + internal RequestUriBuilder CreateListByInstanceNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string managedInstanceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByInstanceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string managedInstanceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedInstanceDtcsRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedInstanceDtcsRestOperations.cs index beda5978e4c0..760e71dd04d8 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedInstanceDtcsRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedInstanceDtcsRestOperations.cs @@ -37,6 +37,21 @@ public ManagedInstanceDtcsRestOperations(HttpPipeline pipeline, string applicati _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByManagedInstanceRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName) + { + 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.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/dtc", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByManagedInstanceRequest(string subscriptionId, string resourceGroupName, string managedInstanceName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByManagedInstance(string subsc } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, DtcName dtcName) + { + 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.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/dtc/", false); + uri.AppendPath(dtcName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, DtcName dtcName) { var message = _pipeline.CreateMessage(); @@ -202,6 +233,22 @@ public Response Get(string subscriptionId, string resour } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, DtcName dtcName, ManagedInstanceDtcData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/dtc/", false); + uri.AppendPath(dtcName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, DtcName dtcName, ManagedInstanceDtcData data) { var message = _pipeline.CreateMessage(); @@ -282,6 +329,14 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateListByManagedInstanceNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string managedInstanceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByManagedInstanceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string managedInstanceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedInstanceEncryptionProtectorsRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedInstanceEncryptionProtectorsRestOperations.cs index 283fbfc61e13..2a01a0affe64 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedInstanceEncryptionProtectorsRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedInstanceEncryptionProtectorsRestOperations.cs @@ -37,6 +37,23 @@ public ManagedInstanceEncryptionProtectorsRestOperations(HttpPipeline pipeline, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateRevalidateRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, EncryptionProtectorName encryptionProtectorName) + { + 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.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/encryptionProtector/", false); + uri.AppendPath(encryptionProtectorName.ToString(), true); + uri.AppendPath("/revalidate", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRevalidateRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, EncryptionProtectorName encryptionProtectorName) { var message = _pipeline.CreateMessage(); @@ -111,6 +128,21 @@ public Response Revalidate(string subscriptionId, string resourceGroupName, stri } } + internal RequestUriBuilder CreateListByInstanceRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName) + { + 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.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/encryptionProtector", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByInstanceRequest(string subscriptionId, string resourceGroupName, string managedInstanceName) { var message = _pipeline.CreateMessage(); @@ -190,6 +222,22 @@ public Response ListByInstance(str } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, EncryptionProtectorName encryptionProtectorName) + { + 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.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/encryptionProtector/", false); + uri.AppendPath(encryptionProtectorName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, EncryptionProtectorName encryptionProtectorName) { var message = _pipeline.CreateMessage(); @@ -276,6 +324,22 @@ public Response Get(string subscriptionI } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, EncryptionProtectorName encryptionProtectorName, ManagedInstanceEncryptionProtectorData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/encryptionProtector/", false); + uri.AppendPath(encryptionProtectorName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, EncryptionProtectorName encryptionProtectorName, ManagedInstanceEncryptionProtectorData data) { var message = _pipeline.CreateMessage(); @@ -358,6 +422,14 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateListByInstanceNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string managedInstanceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByInstanceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string managedInstanceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedInstanceKeysRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedInstanceKeysRestOperations.cs index ef75c09bf692..4f8cb923670a 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedInstanceKeysRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedInstanceKeysRestOperations.cs @@ -37,6 +37,25 @@ public ManagedInstanceKeysRestOperations(HttpPipeline pipeline, string applicati _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByInstanceRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/keys", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByInstanceRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, string filter) { var message = _pipeline.CreateMessage(); @@ -122,6 +141,22 @@ public Response ListByInstance(string subscription } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, string keyName) + { + 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.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/keys/", false); + uri.AppendPath(keyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, string keyName) { var message = _pipeline.CreateMessage(); @@ -210,6 +245,22 @@ public Response Get(string subscriptionId, string resour } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, string keyName, ManagedInstanceKeyData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/keys/", false); + uri.AppendPath(keyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, string keyName, ManagedInstanceKeyData data) { var message = _pipeline.CreateMessage(); @@ -296,6 +347,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, string keyName) + { + 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.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/keys/", false); + uri.AppendPath(keyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, string keyName) { var message = _pipeline.CreateMessage(); @@ -373,6 +440,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string m } } + internal RequestUriBuilder CreateListByInstanceNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string managedInstanceName, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByInstanceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string managedInstanceName, string filter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedInstanceLongTermRetentionPoliciesRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedInstanceLongTermRetentionPoliciesRestOperations.cs index 40918c984f42..dc0711f84409 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedInstanceLongTermRetentionPoliciesRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedInstanceLongTermRetentionPoliciesRestOperations.cs @@ -37,6 +37,24 @@ public ManagedInstanceLongTermRetentionPoliciesRestOperations(HttpPipeline pipel _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, ManagedInstanceLongTermRetentionPolicyName policyName) + { + 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.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/backupLongTermRetentionPolicies/", false); + uri.AppendPath(policyName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, ManagedInstanceLongTermRetentionPolicyName policyName) { var message = _pipeline.CreateMessage(); @@ -129,6 +147,24 @@ public Response Get(string subscript } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, ManagedInstanceLongTermRetentionPolicyName policyName, ManagedInstanceLongTermRetentionPolicyData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/backupLongTermRetentionPolicies/", false); + uri.AppendPath(policyName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, ManagedInstanceLongTermRetentionPolicyName policyName, ManagedInstanceLongTermRetentionPolicyData data) { var message = _pipeline.CreateMessage(); @@ -217,6 +253,23 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateListByDatabaseRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName) + { + 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.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/backupLongTermRetentionPolicies", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByDatabaseRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName) { var message = _pipeline.CreateMessage(); @@ -302,6 +355,14 @@ public Response ListByDatabase } } + internal RequestUriBuilder CreateListByDatabaseNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByDatabaseNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedInstancePrivateEndpointConnectionsRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedInstancePrivateEndpointConnectionsRestOperations.cs index a90e443cea27..6129317e4bf4 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedInstancePrivateEndpointConnectionsRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedInstancePrivateEndpointConnectionsRestOperations.cs @@ -37,6 +37,22 @@ public ManagedInstancePrivateEndpointConnectionsRestOperations(HttpPipeline pipe _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, string privateEndpointConnectionName) + { + 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.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, string privateEndpointConnectionName) { var message = _pipeline.CreateMessage(); @@ -125,6 +141,22 @@ public Response Get(string subscri } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, string privateEndpointConnectionName, ManagedInstancePrivateEndpointConnectionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, string privateEndpointConnectionName, ManagedInstancePrivateEndpointConnectionData data) { var message = _pipeline.CreateMessage(); @@ -209,6 +241,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, string privateEndpointConnectionName) + { + 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.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, string privateEndpointConnectionName) { var message = _pipeline.CreateMessage(); @@ -286,6 +334,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string m } } + internal RequestUriBuilder CreateListByManagedInstanceRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName) + { + 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.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/privateEndpointConnections", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByManagedInstanceRequest(string subscriptionId, string resourceGroupName, string managedInstanceName) { var message = _pipeline.CreateMessage(); @@ -365,6 +428,14 @@ public Response ListByManage } } + internal RequestUriBuilder CreateListByManagedInstanceNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string managedInstanceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByManagedInstanceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string managedInstanceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedInstancePrivateLinkResourcesRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedInstancePrivateLinkResourcesRestOperations.cs index 7c0190faafb5..8fd8b6932cf2 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedInstancePrivateLinkResourcesRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedInstancePrivateLinkResourcesRestOperations.cs @@ -37,6 +37,21 @@ public ManagedInstancePrivateLinkResourcesRestOperations(HttpPipeline pipeline, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByManagedInstanceRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName) + { + 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.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/privateLinkResources", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByManagedInstanceRequest(string subscriptionId, string resourceGroupName, string managedInstanceName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByManagedInstance(stri } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, string groupName) + { + 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.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/privateLinkResources/", false); + uri.AppendPath(groupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, string groupName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,14 @@ public Response Get(string subscriptionId, strin } } + internal RequestUriBuilder CreateListByManagedInstanceNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string managedInstanceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByManagedInstanceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string managedInstanceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedInstanceRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedInstanceRestOperations.cs index 29db94cfcc53..1893ca4c7d3a 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedInstanceRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedInstanceRestOperations.cs @@ -37,6 +37,21 @@ public ManagedInstanceRestOperations(HttpPipeline pipeline, string applicationId _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByManagedInstanceRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName) + { + 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.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/operations", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByManagedInstanceRequest(string subscriptionId, string resourceGroupName, string managedInstanceName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByManagedInstance(string } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, Guid operationId) + { + 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.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/operations/", false); + uri.AppendPath(operationId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, Guid operationId) { var message = _pipeline.CreateMessage(); @@ -202,6 +233,23 @@ public Response Get(string subscriptionId, string } } + internal RequestUriBuilder CreateCancelRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, Guid operationId) + { + 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.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/operations/", false); + uri.AppendPath(operationId, true); + uri.AppendPath("/cancel", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCancelRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, Guid operationId) { var message = _pipeline.CreateMessage(); @@ -274,6 +322,14 @@ public Response Cancel(string subscriptionId, string resourceGroupName, string m } } + internal RequestUriBuilder CreateListByManagedInstanceNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string managedInstanceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByManagedInstanceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string managedInstanceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedInstanceTdeCertificatesRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedInstanceTdeCertificatesRestOperations.cs index cf9da10b9487..c886c9f7601c 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedInstanceTdeCertificatesRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedInstanceTdeCertificatesRestOperations.cs @@ -36,6 +36,21 @@ public ManagedInstanceTdeCertificatesRestOperations(HttpPipeline pipeline, strin _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, TdeCertificate tdeCertificate) + { + 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.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/tdeCertificates", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, TdeCertificate tdeCertificate) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedInstanceVulnerabilityAssessmentsRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedInstanceVulnerabilityAssessmentsRestOperations.cs index 4d4e2780f8ce..10f41e765c13 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedInstanceVulnerabilityAssessmentsRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedInstanceVulnerabilityAssessmentsRestOperations.cs @@ -37,6 +37,22 @@ public ManagedInstanceVulnerabilityAssessmentsRestOperations(HttpPipeline pipeli _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, VulnerabilityAssessmentName vulnerabilityAssessmentName) + { + 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.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/vulnerabilityAssessments/", false); + uri.AppendPath(vulnerabilityAssessmentName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, VulnerabilityAssessmentName vulnerabilityAssessmentName) { var message = _pipeline.CreateMessage(); @@ -123,6 +139,22 @@ public Response Get(string subscript } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, VulnerabilityAssessmentName vulnerabilityAssessmentName, ManagedInstanceVulnerabilityAssessmentData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/vulnerabilityAssessments/", false); + uri.AppendPath(vulnerabilityAssessmentName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, VulnerabilityAssessmentName vulnerabilityAssessmentName, ManagedInstanceVulnerabilityAssessmentData data) { var message = _pipeline.CreateMessage(); @@ -215,6 +247,22 @@ public Response CreateOrUpdate(strin } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, VulnerabilityAssessmentName vulnerabilityAssessmentName) + { + 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.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/vulnerabilityAssessments/", false); + uri.AppendPath(vulnerabilityAssessmentName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, VulnerabilityAssessmentName vulnerabilityAssessmentName) { var message = _pipeline.CreateMessage(); @@ -286,6 +334,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string m } } + internal RequestUriBuilder CreateListByInstanceRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName) + { + 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.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/vulnerabilityAssessments", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByInstanceRequest(string subscriptionId, string resourceGroupName, string managedInstanceName) { var message = _pipeline.CreateMessage(); @@ -365,6 +428,14 @@ public Response ListByInstance } } + internal RequestUriBuilder CreateListByInstanceNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string managedInstanceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByInstanceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string managedInstanceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedInstancesRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedInstancesRestOperations.cs index 41e49aff7a5e..5ca15a9b8739 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedInstancesRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedInstancesRestOperations.cs @@ -37,6 +37,21 @@ public ManagedInstancesRestOperations(HttpPipeline pipeline, string applicationI _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string expand) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Sql/managedInstances", false); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string expand) { var message = _pipeline.CreateMessage(); @@ -110,6 +125,25 @@ public Response List(string subscriptionId, string ex } } + internal RequestUriBuilder CreateListByInstancePoolRequestUri(string subscriptionId, string resourceGroupName, string instancePoolName, string expand) + { + 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.Sql/instancePools/", false); + uri.AppendPath(instancePoolName, true); + uri.AppendPath("/managedInstances", false); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByInstancePoolRequest(string subscriptionId, string resourceGroupName, string instancePoolName, string expand) { var message = _pipeline.CreateMessage(); @@ -195,6 +229,23 @@ public Response ListByInstancePool(string subscriptio } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName, string expand) + { + 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.Sql/managedInstances", false); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName, string expand) { var message = _pipeline.CreateMessage(); @@ -274,6 +325,24 @@ public Response ListByResourceGroup(string subscripti } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, string expand) + { + 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.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, string expand) { var message = _pipeline.CreateMessage(); @@ -362,6 +431,20 @@ public Response Get(string subscriptionId, string resourceG } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, ManagedInstanceData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, ManagedInstanceData data) { var message = _pipeline.CreateMessage(); @@ -442,6 +525,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName) + { + 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.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string managedInstanceName) { var message = _pipeline.CreateMessage(); @@ -513,6 +610,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string m } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, ManagedInstancePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, ManagedInstancePatch patch) { var message = _pipeline.CreateMessage(); @@ -591,6 +702,25 @@ public Response Update(string subscriptionId, string resourceGroupName, string m } } + internal RequestUriBuilder CreateFailoverRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, ReplicaType? replicaType) + { + 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.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/failover", false); + if (replicaType != null) + { + uri.AppendQuery("replicaType", replicaType.Value.ToString(), true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateFailoverRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, ReplicaType? replicaType) { var message = _pipeline.CreateMessage(); @@ -667,6 +797,21 @@ public Response Failover(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreateListOutboundNetworkDependenciesByManagedInstanceRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName) + { + 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.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/outboundNetworkDependenciesEndpoints", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListOutboundNetworkDependenciesByManagedInstanceRequest(string subscriptionId, string resourceGroupName, string managedInstanceName) { var message = _pipeline.CreateMessage(); @@ -746,6 +891,21 @@ public Response ListOutboundNetworkDep } } + internal RequestUriBuilder CreateStartRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName) + { + 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.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/start", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStartRequest(string subscriptionId, string resourceGroupName, string managedInstanceName) { var message = _pipeline.CreateMessage(); @@ -814,6 +974,21 @@ public Response Start(string subscriptionId, string resourceGroupName, string ma } } + internal RequestUriBuilder CreateStopRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName) + { + 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.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/stop", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStopRequest(string subscriptionId, string resourceGroupName, string managedInstanceName) { var message = _pipeline.CreateMessage(); @@ -882,6 +1057,49 @@ public Response Stop(string subscriptionId, string resourceGroupName, string man } } + internal RequestUriBuilder CreateListByManagedInstanceRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, int? numberOfQueries, string databases, string startTime, string endTime, QueryTimeGrainType? interval, AggregationFunctionType? aggregationFunction, SqlMetricType? observationMetric) + { + 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.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/topqueries", false); + if (numberOfQueries != null) + { + uri.AppendQuery("numberOfQueries", numberOfQueries.Value, true); + } + if (databases != null) + { + uri.AppendQuery("databases", databases, true); + } + if (startTime != null) + { + uri.AppendQuery("startTime", startTime, true); + } + if (endTime != null) + { + uri.AppendQuery("endTime", endTime, true); + } + if (interval != null) + { + uri.AppendQuery("interval", interval.Value.ToString(), true); + } + if (aggregationFunction != null) + { + uri.AppendQuery("aggregationFunction", aggregationFunction.Value.ToString(), true); + } + if (observationMetric != null) + { + uri.AppendQuery("observationMetric", observationMetric.Value.ToString(), true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByManagedInstanceRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, int? numberOfQueries, string databases, string startTime, string endTime, QueryTimeGrainType? interval, AggregationFunctionType? aggregationFunction, SqlMetricType? observationMetric) { var message = _pipeline.CreateMessage(); @@ -1003,6 +1221,14 @@ public Response ListByManagedInstance(string subscriptionI } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string expand) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string expand) { var message = _pipeline.CreateMessage(); @@ -1073,6 +1299,14 @@ public Response ListNextPage(string nextLink, string } } + internal RequestUriBuilder CreateListByInstancePoolNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string instancePoolName, string expand) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByInstancePoolNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string instancePoolName, string expand) { var message = _pipeline.CreateMessage(); @@ -1151,6 +1385,14 @@ public Response ListByInstancePoolNextPage(string nex } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string expand) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string expand) { var message = _pipeline.CreateMessage(); @@ -1225,6 +1467,14 @@ public Response ListByResourceGroupNextPage(string ne } } + internal RequestUriBuilder CreateListOutboundNetworkDependenciesByManagedInstanceNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string managedInstanceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListOutboundNetworkDependenciesByManagedInstanceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string managedInstanceName) { var message = _pipeline.CreateMessage(); @@ -1301,6 +1551,14 @@ public Response ListOutboundNetworkDep } } + internal RequestUriBuilder CreateListByManagedInstanceNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string managedInstanceName, int? numberOfQueries, string databases, string startTime, string endTime, QueryTimeGrainType? interval, AggregationFunctionType? aggregationFunction, SqlMetricType? observationMetric) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByManagedInstanceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string managedInstanceName, int? numberOfQueries, string databases, string startTime, string endTime, QueryTimeGrainType? interval, AggregationFunctionType? aggregationFunction, SqlMetricType? observationMetric) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedLedgerDigestUploadsRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedLedgerDigestUploadsRestOperations.cs index 2fb978e1e7de..2bc7b6927625 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedLedgerDigestUploadsRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedLedgerDigestUploadsRestOperations.cs @@ -37,6 +37,23 @@ public ManagedLedgerDigestUploadsRestOperations(HttpPipeline pipeline, string ap _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByDatabaseRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName) + { + 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.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/ledgerDigestUploads", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByDatabaseRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName) { var message = _pipeline.CreateMessage(); @@ -122,6 +139,24 @@ public Response ListByDatabase(string subs } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, ManagedLedgerDigestUploadsName ledgerDigestUploads) + { + 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.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/ledgerDigestUploads/", false); + uri.AppendPath(ledgerDigestUploads.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, ManagedLedgerDigestUploadsName ledgerDigestUploads) { var message = _pipeline.CreateMessage(); @@ -214,6 +249,24 @@ public Response Get(string subscriptionId, string } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, ManagedLedgerDigestUploadsName ledgerDigestUploads, ManagedLedgerDigestUploadData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/ledgerDigestUploads/", false); + uri.AppendPath(ledgerDigestUploads.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, ManagedLedgerDigestUploadsName ledgerDigestUploads, ManagedLedgerDigestUploadData data) { var message = _pipeline.CreateMessage(); @@ -302,6 +355,25 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDisableRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, ManagedLedgerDigestUploadsName ledgerDigestUploads) + { + 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.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/ledgerDigestUploads/", false); + uri.AppendPath(ledgerDigestUploads.ToString(), true); + uri.AppendPath("/disable", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDisableRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, ManagedLedgerDigestUploadsName ledgerDigestUploads) { var message = _pipeline.CreateMessage(); @@ -383,6 +455,14 @@ public Response Disable(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreateListByDatabaseNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByDatabaseNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesRestOperations.cs index c622db2a3279..ba8cf18a48ce 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesRestOperations.cs @@ -37,6 +37,24 @@ public ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesRestOpera _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, string restorableDroppedDatabaseId, ManagedShortTermRetentionPolicyName policyName) + { + 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.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/restorableDroppedDatabases/", false); + uri.AppendPath(restorableDroppedDatabaseId, true); + uri.AppendPath("/backupShortTermRetentionPolicies/", false); + uri.AppendPath(policyName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, string restorableDroppedDatabaseId, ManagedShortTermRetentionPolicyName policyName) { var message = _pipeline.CreateMessage(); @@ -129,6 +147,24 @@ public Response Get(string subscripti } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, string restorableDroppedDatabaseId, ManagedShortTermRetentionPolicyName policyName, ManagedBackupShortTermRetentionPolicyData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/restorableDroppedDatabases/", false); + uri.AppendPath(restorableDroppedDatabaseId, true); + uri.AppendPath("/backupShortTermRetentionPolicies/", false); + uri.AppendPath(policyName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, string restorableDroppedDatabaseId, ManagedShortTermRetentionPolicyName policyName, ManagedBackupShortTermRetentionPolicyData data) { var message = _pipeline.CreateMessage(); @@ -217,6 +253,24 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, string restorableDroppedDatabaseId, ManagedShortTermRetentionPolicyName policyName, ManagedBackupShortTermRetentionPolicyData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/restorableDroppedDatabases/", false); + uri.AppendPath(restorableDroppedDatabaseId, true); + uri.AppendPath("/backupShortTermRetentionPolicies/", false); + uri.AppendPath(policyName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, string restorableDroppedDatabaseId, ManagedShortTermRetentionPolicyName policyName, ManagedBackupShortTermRetentionPolicyData data) { var message = _pipeline.CreateMessage(); @@ -305,6 +359,23 @@ public Response Update(string subscriptionId, string resourceGroupName, string m } } + internal RequestUriBuilder CreateListByRestorableDroppedDatabaseRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, string restorableDroppedDatabaseId) + { + 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.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/restorableDroppedDatabases/", false); + uri.AppendPath(restorableDroppedDatabaseId, true); + uri.AppendPath("/backupShortTermRetentionPolicies", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByRestorableDroppedDatabaseRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, string restorableDroppedDatabaseId) { var message = _pipeline.CreateMessage(); @@ -390,6 +461,14 @@ public Response ListByRestorabl } } + internal RequestUriBuilder CreateListByRestorableDroppedDatabaseNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string managedInstanceName, string restorableDroppedDatabaseId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByRestorableDroppedDatabaseNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string managedInstanceName, string restorableDroppedDatabaseId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedServerDnsAliasesRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedServerDnsAliasesRestOperations.cs index 7deea90d6dd4..484db676bf84 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedServerDnsAliasesRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedServerDnsAliasesRestOperations.cs @@ -37,6 +37,21 @@ public ManagedServerDnsAliasesRestOperations(HttpPipeline pipeline, string appli _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByManagedInstanceRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName) + { + 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.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/dnsAliases", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByManagedInstanceRequest(string subscriptionId, string resourceGroupName, string managedInstanceName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByManagedInstance(string su } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, string dnsAliasName) + { + 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.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/dnsAliases/", false); + uri.AppendPath(dnsAliasName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, string dnsAliasName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscriptionId, string res } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, string dnsAliasName, ManagedServerDnsAliasCreateOrUpdateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/dnsAliases/", false); + uri.AppendPath(dnsAliasName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, string dnsAliasName, ManagedServerDnsAliasCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); @@ -290,6 +337,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, string dnsAliasName) + { + 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.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/dnsAliases/", false); + uri.AppendPath(dnsAliasName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, string dnsAliasName) { var message = _pipeline.CreateMessage(); @@ -367,6 +430,23 @@ public Response Delete(string subscriptionId, string resourceGroupName, string m } } + internal RequestUriBuilder CreateAcquireRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, string dnsAliasName, ManagedServerDnsAliasAcquisition managedServerDnsAliasAcquisition) + { + 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.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/dnsAliases/", false); + uri.AppendPath(dnsAliasName, true); + uri.AppendPath("/acquire", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateAcquireRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, string dnsAliasName, ManagedServerDnsAliasAcquisition managedServerDnsAliasAcquisition) { var message = _pipeline.CreateMessage(); @@ -452,6 +532,14 @@ public Response Acquire(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreateListByManagedInstanceNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string managedInstanceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByManagedInstanceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string managedInstanceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedServerSecurityAlertPoliciesRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedServerSecurityAlertPoliciesRestOperations.cs index 6c020e21ee11..2d87225a086c 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedServerSecurityAlertPoliciesRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ManagedServerSecurityAlertPoliciesRestOperations.cs @@ -37,6 +37,22 @@ public ManagedServerSecurityAlertPoliciesRestOperations(HttpPipeline pipeline, s _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, SqlSecurityAlertPolicyName securityAlertPolicyName) + { + 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.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/securityAlertPolicies/", false); + uri.AppendPath(securityAlertPolicyName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, SqlSecurityAlertPolicyName securityAlertPolicyName) { var message = _pipeline.CreateMessage(); @@ -123,6 +139,22 @@ public Response Get(string subscriptionId, } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, SqlSecurityAlertPolicyName securityAlertPolicyName, ManagedServerSecurityAlertPolicyData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/securityAlertPolicies/", false); + uri.AppendPath(securityAlertPolicyName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, SqlSecurityAlertPolicyName securityAlertPolicyName, ManagedServerSecurityAlertPolicyData data) { var message = _pipeline.CreateMessage(); @@ -205,6 +237,21 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateListByInstanceRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName) + { + 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.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/securityAlertPolicies", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByInstanceRequest(string subscriptionId, string resourceGroupName, string managedInstanceName) { var message = _pipeline.CreateMessage(); @@ -284,6 +331,14 @@ public Response ListByInstance(strin } } + internal RequestUriBuilder CreateListByInstanceNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string managedInstanceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByInstanceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string managedInstanceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/MetricDefinitionsRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/MetricDefinitionsRestOperations.cs index 11d33e7b1dc2..fed35cc3b1ea 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/MetricDefinitionsRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/MetricDefinitionsRestOperations.cs @@ -37,6 +37,23 @@ public MetricDefinitionsRestOperations(HttpPipeline pipeline, string application _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListDatabaseRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/metricDefinitions", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListDatabaseRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName) { var message = _pipeline.CreateMessage(); @@ -122,6 +139,23 @@ public Response ListDatabase(string subscriptionId, } } + internal RequestUriBuilder CreateListElasticPoolRequestUri(string subscriptionId, string resourceGroupName, string serverName, string elasticPoolName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/elasticPools/", false); + uri.AppendPath(elasticPoolName, true); + uri.AppendPath("/metricDefinitions", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListElasticPoolRequest(string subscriptionId, string resourceGroupName, string serverName, string elasticPoolName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/MetricsRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/MetricsRestOperations.cs index 012dd15d0c3c..8321a7d63797 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/MetricsRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/MetricsRestOperations.cs @@ -37,6 +37,24 @@ public MetricsRestOperations(HttpPipeline pipeline, string applicationId, Uri en _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListDatabaseRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/metrics", false); + uri.AppendQuery("api-version", _apiVersion, true); + uri.AppendQuery("$filter", filter, true); + return uri; + } + internal HttpMessage CreateListDatabaseRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string filter) { var message = _pipeline.CreateMessage(); @@ -127,6 +145,24 @@ public Response ListDatabase(string subscriptionId, string } } + internal RequestUriBuilder CreateListElasticPoolRequestUri(string subscriptionId, string resourceGroupName, string serverName, string elasticPoolName, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/elasticPools/", false); + uri.AppendPath(elasticPoolName, true); + uri.AppendPath("/metrics", false); + uri.AppendQuery("api-version", _apiVersion, true); + uri.AppendQuery("$filter", filter, true); + return uri; + } + internal HttpMessage CreateListElasticPoolRequest(string subscriptionId, string resourceGroupName, string serverName, string elasticPoolName, string filter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/OutboundFirewallRulesRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/OutboundFirewallRulesRestOperations.cs index 593661417eb6..0716fc248d5a 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/OutboundFirewallRulesRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/OutboundFirewallRulesRestOperations.cs @@ -37,6 +37,22 @@ public OutboundFirewallRulesRestOperations(HttpPipeline pipeline, string applica _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serverName, string outboundRuleFqdn) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/outboundFirewallRules/", false); + uri.AppendPath(outboundRuleFqdn, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serverName, string outboundRuleFqdn) { var message = _pipeline.CreateMessage(); @@ -125,6 +141,22 @@ public Response Get(string subscriptionId, string reso } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serverName, string outboundRuleFqdn, OutboundFirewallRuleData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/outboundFirewallRules/", false); + uri.AppendPath(outboundRuleFqdn, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serverName, string outboundRuleFqdn, OutboundFirewallRuleData data) { var message = _pipeline.CreateMessage(); @@ -211,6 +243,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string serverName, string outboundRuleFqdn) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/outboundFirewallRules/", false); + uri.AppendPath(outboundRuleFqdn, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string serverName, string outboundRuleFqdn) { var message = _pipeline.CreateMessage(); @@ -288,6 +336,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListByServerRequestUri(string subscriptionId, string resourceGroupName, string serverName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/outboundFirewallRules", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByServerRequest(string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); @@ -367,6 +430,14 @@ public Response ListByServer(string subscription } } + internal RequestUriBuilder CreateListByServerNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serverName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByServerNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs index eb2e623f47c3..e0267eedd710 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs @@ -37,6 +37,21 @@ public PrivateEndpointConnectionsRestOperations(HttpPipeline pipeline, string ap _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByServerRequestUri(string subscriptionId, string resourceGroupName, string serverName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/privateEndpointConnections", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByServerRequest(string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByServer(string subs } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serverName, string privateEndpointConnectionName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serverName, string privateEndpointConnectionName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscriptionId, str } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serverName, string privateEndpointConnectionName, SqlPrivateEndpointConnectionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serverName, string privateEndpointConnectionName, SqlPrivateEndpointConnectionData data) { var message = _pipeline.CreateMessage(); @@ -288,6 +335,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string serverName, string privateEndpointConnectionName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string serverName, string privateEndpointConnectionName) { var message = _pipeline.CreateMessage(); @@ -365,6 +428,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListByServerNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serverName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByServerNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs index 9e5772a4bafc..0e92e04e2f4b 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs @@ -37,6 +37,21 @@ public PrivateLinkResourcesRestOperations(HttpPipeline pipeline, string applicat _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByServerRequestUri(string subscriptionId, string resourceGroupName, string serverName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/privateLinkResources", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByServerRequest(string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByServer(string subscripti } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serverName, string groupName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/privateLinkResources/", false); + uri.AppendPath(groupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serverName, string groupName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,14 @@ public Response Get(string subscriptionId, string re } } + internal RequestUriBuilder CreateListByServerNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serverName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByServerNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/RecoverableDatabasesRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/RecoverableDatabasesRestOperations.cs index 84a930c4b7e2..4aa028a14993 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/RecoverableDatabasesRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/RecoverableDatabasesRestOperations.cs @@ -37,6 +37,21 @@ public RecoverableDatabasesRestOperations(HttpPipeline pipeline, string applicat _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByServerRequestUri(string subscriptionId, string resourceGroupName, string serverName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/recoverableDatabases", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByServerRequest(string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,30 @@ public Response ListByServer(string subscriptionI } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string expand, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/recoverableDatabases/", false); + uri.AppendPath(databaseName, true); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string expand, string filter) { var message = _pipeline.CreateMessage(); @@ -216,6 +255,14 @@ public Response Get(string subscriptionId, string resou } } + internal RequestUriBuilder CreateListByServerNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serverName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByServerNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/RecoverableManagedDatabasesRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/RecoverableManagedDatabasesRestOperations.cs index 0d298dc8cc6a..123861f086d2 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/RecoverableManagedDatabasesRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/RecoverableManagedDatabasesRestOperations.cs @@ -37,6 +37,21 @@ public RecoverableManagedDatabasesRestOperations(HttpPipeline pipeline, string a _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByInstanceRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName) + { + 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.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/recoverableDatabases", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByInstanceRequest(string subscriptionId, string resourceGroupName, string managedInstanceName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByInstance(string subs } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, string recoverableDatabaseName) + { + 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.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/recoverableDatabases/", false); + uri.AppendPath(recoverableDatabaseName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, string recoverableDatabaseName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,14 @@ public Response Get(string subscriptionId, strin } } + internal RequestUriBuilder CreateListByInstanceNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string managedInstanceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByInstanceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string managedInstanceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ReplicationLinksRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ReplicationLinksRestOperations.cs index 5692cb014546..147facb151c4 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ReplicationLinksRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ReplicationLinksRestOperations.cs @@ -37,6 +37,23 @@ public ReplicationLinksRestOperations(HttpPipeline pipeline, string applicationI _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByDatabaseRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/replicationLinks", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByDatabaseRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName) { var message = _pipeline.CreateMessage(); @@ -122,6 +139,24 @@ public Response ListByDatabase(string subscriptionId, } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string linkId) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/replicationLinks/", false); + uri.AppendPath(linkId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string linkId) { var message = _pipeline.CreateMessage(); @@ -216,6 +251,24 @@ public Response Get(string subscriptionId, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string linkId) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/replicationLinks/", false); + uri.AppendPath(linkId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string linkId) { var message = _pipeline.CreateMessage(); @@ -297,6 +350,25 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateFailoverRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string linkId) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/replicationLinks/", false); + uri.AppendPath(linkId, true); + uri.AppendPath("/failover", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateFailoverRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string linkId) { var message = _pipeline.CreateMessage(); @@ -380,6 +452,25 @@ public Response Failover(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreateFailoverAllowDataLossRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string linkId) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/replicationLinks/", false); + uri.AppendPath(linkId, true); + uri.AppendPath("/forceFailoverAllowDataLoss", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateFailoverAllowDataLossRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string linkId) { var message = _pipeline.CreateMessage(); @@ -463,6 +554,21 @@ public Response FailoverAllowDataLoss(string subscriptionId, string resourceGrou } } + internal RequestUriBuilder CreateListByServerRequestUri(string subscriptionId, string resourceGroupName, string serverName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/replicationLinks", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByServerRequest(string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); @@ -542,6 +648,14 @@ public Response ListByServer(string subscriptionId, s } } + internal RequestUriBuilder CreateListByDatabaseNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serverName, string databaseName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByDatabaseNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serverName, string databaseName) { var message = _pipeline.CreateMessage(); @@ -622,6 +736,14 @@ public Response ListByDatabaseNextPage(string nextLin } } + internal RequestUriBuilder CreateListByServerNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serverName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByServerNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/RestorableDroppedDatabasesRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/RestorableDroppedDatabasesRestOperations.cs index dd10f1132707..be57a436c3e5 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/RestorableDroppedDatabasesRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/RestorableDroppedDatabasesRestOperations.cs @@ -37,6 +37,21 @@ public RestorableDroppedDatabasesRestOperations(HttpPipeline pipeline, string ap _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByServerRequestUri(string subscriptionId, string resourceGroupName, string serverName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/restorableDroppedDatabases", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByServerRequest(string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,30 @@ public Response ListByServer(string subscri } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serverName, string restorableDroppedDatabaseId, string expand, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/restorableDroppedDatabases/", false); + uri.AppendPath(restorableDroppedDatabaseId, true); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serverName, string restorableDroppedDatabaseId, string expand, string filter) { var message = _pipeline.CreateMessage(); @@ -216,6 +255,14 @@ public Response Get(string subscriptionId, string } } + internal RequestUriBuilder CreateListByServerNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serverName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByServerNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/RestorableDroppedManagedDatabasesRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/RestorableDroppedManagedDatabasesRestOperations.cs index f9f95ebeea73..6c534f2f6148 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/RestorableDroppedManagedDatabasesRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/RestorableDroppedManagedDatabasesRestOperations.cs @@ -37,6 +37,21 @@ public RestorableDroppedManagedDatabasesRestOperations(HttpPipeline pipeline, st _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByInstanceRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName) + { + 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.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/restorableDroppedDatabases", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByInstanceRequest(string subscriptionId, string resourceGroupName, string managedInstanceName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByInstance(strin } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, string restorableDroppedDatabaseId) + { + 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.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/restorableDroppedDatabases/", false); + uri.AppendPath(restorableDroppedDatabaseId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, string restorableDroppedDatabaseId) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,14 @@ public Response Get(string subscriptionId, } } + internal RequestUriBuilder CreateListByInstanceNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string managedInstanceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByInstanceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string managedInstanceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/RestorePointsRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/RestorePointsRestOperations.cs index 3a8646e68468..2bc0d0d29f89 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/RestorePointsRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/RestorePointsRestOperations.cs @@ -37,6 +37,23 @@ public RestorePointsRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByDatabaseRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/restorePoints", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByDatabaseRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName) { var message = _pipeline.CreateMessage(); @@ -122,6 +139,23 @@ public Response ListByDatabase(string subscriptionId, st } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName, CreateDatabaseRestorePointDefinition createDatabaseRestorePointDefinition) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/restorePoints", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName, CreateDatabaseRestorePointDefinition createDatabaseRestorePointDefinition) { var message = _pipeline.CreateMessage(); @@ -209,6 +243,24 @@ public Response Create(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string restorePointName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/restorePoints/", false); + uri.AppendPath(restorePointName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string restorePointName) { var message = _pipeline.CreateMessage(); @@ -303,6 +355,24 @@ public Response Get(string subscriptionId, st } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string restorePointName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/restorePoints/", false); + uri.AppendPath(restorePointName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string restorePointName) { var message = _pipeline.CreateMessage(); @@ -382,6 +452,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListByDatabaseNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serverName, string databaseName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByDatabaseNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serverName, string databaseName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/SensitivityLabelsRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/SensitivityLabelsRestOperations.cs index 3f55b88f3084..d3885c7f1b8d 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/SensitivityLabelsRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/SensitivityLabelsRestOperations.cs @@ -37,6 +37,35 @@ public SensitivityLabelsRestOperations(HttpPipeline pipeline, string application _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListCurrentByDatabaseRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string skipToken, bool? count, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/currentSensitivityLabels", false); + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } + if (count != null) + { + uri.AppendQuery("$count", count.Value, true); + } + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListCurrentByDatabaseRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string skipToken, bool? count, string filter) { var message = _pipeline.CreateMessage(); @@ -140,6 +169,23 @@ public Response ListCurrentByDatabase(string subscri } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName, SensitivityLabelUpdateList sensitivityLabelUpdateList) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/currentSensitivityLabels", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName, SensitivityLabelUpdateList sensitivityLabelUpdateList) { var message = _pipeline.CreateMessage(); @@ -222,6 +268,35 @@ public Response Update(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListRecommendedByDatabaseRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string skipToken, bool? includeDisabledRecommendations, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/recommendedSensitivityLabels", false); + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } + if (includeDisabledRecommendations != null) + { + uri.AppendQuery("includeDisabledRecommendations", includeDisabledRecommendations.Value, true); + } + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRecommendedByDatabaseRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string skipToken, bool? includeDisabledRecommendations, string filter) { var message = _pipeline.CreateMessage(); @@ -325,6 +400,23 @@ public Response ListRecommendedByDatabase(string sub } } + internal RequestUriBuilder CreateUpdateRecommendedRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName, RecommendedSensitivityLabelUpdateList recommendedSensitivityLabelUpdateList) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/recommendedSensitivityLabels", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRecommendedRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName, RecommendedSensitivityLabelUpdateList recommendedSensitivityLabelUpdateList) { var message = _pipeline.CreateMessage(); @@ -407,6 +499,31 @@ public Response UpdateRecommended(string subscriptionId, string resourceGroupNam } } + internal RequestUriBuilder CreateEnableRecommendationRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string schemaName, string tableName, string columnName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/schemas/", false); + uri.AppendPath(schemaName, true); + uri.AppendPath("/tables/", false); + uri.AppendPath(tableName, true); + uri.AppendPath("/columns/", false); + uri.AppendPath(columnName, true); + uri.AppendPath("/sensitivityLabels/", false); + uri.AppendPath("recommended", true); + uri.AppendPath("/enable", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateEnableRecommendationRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string schemaName, string tableName, string columnName) { var message = _pipeline.CreateMessage(); @@ -501,6 +618,31 @@ public Response EnableRecommendation(string subscriptionId, string resourceGroup } } + internal RequestUriBuilder CreateDisableRecommendationRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string schemaName, string tableName, string columnName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/schemas/", false); + uri.AppendPath(schemaName, true); + uri.AppendPath("/tables/", false); + uri.AppendPath(tableName, true); + uri.AppendPath("/columns/", false); + uri.AppendPath(columnName, true); + uri.AppendPath("/sensitivityLabels/", false); + uri.AppendPath("recommended", true); + uri.AppendPath("/disable", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDisableRecommendationRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string schemaName, string tableName, string columnName) { var message = _pipeline.CreateMessage(); @@ -595,6 +737,30 @@ public Response DisableRecommendation(string subscriptionId, string resourceGrou } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string schemaName, string tableName, string columnName, SensitivityLabelSource sensitivityLabelSource) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/schemas/", false); + uri.AppendPath(schemaName, true); + uri.AppendPath("/tables/", false); + uri.AppendPath(tableName, true); + uri.AppendPath("/columns/", false); + uri.AppendPath(columnName, true); + uri.AppendPath("/sensitivityLabels/", false); + uri.AppendPath(sensitivityLabelSource.ToSerialString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string schemaName, string tableName, string columnName, SensitivityLabelSource sensitivityLabelSource) { var message = _pipeline.CreateMessage(); @@ -705,6 +871,30 @@ public Response Get(string subscriptionId, string resource } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string schemaName, string tableName, string columnName, SensitivityLabelData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/schemas/", false); + uri.AppendPath(schemaName, true); + uri.AppendPath("/tables/", false); + uri.AppendPath(tableName, true); + uri.AppendPath("/columns/", false); + uri.AppendPath(columnName, true); + uri.AppendPath("/sensitivityLabels/", false); + uri.AppendPath("current", true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string schemaName, string tableName, string columnName, SensitivityLabelData data) { var message = _pipeline.CreateMessage(); @@ -819,6 +1009,30 @@ public Response CreateOrUpdate(string subscriptionId, stri } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string schemaName, string tableName, string columnName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/schemas/", false); + uri.AppendPath(schemaName, true); + uri.AppendPath("/tables/", false); + uri.AppendPath(tableName, true); + uri.AppendPath("/columns/", false); + uri.AppendPath(columnName, true); + uri.AppendPath("/sensitivityLabels/", false); + uri.AppendPath("current", true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string schemaName, string tableName, string columnName) { var message = _pipeline.CreateMessage(); @@ -912,6 +1126,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListCurrentByDatabaseNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serverName, string databaseName, string skipToken, bool? count, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListCurrentByDatabaseNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serverName, string databaseName, string skipToken, bool? count, string filter) { var message = _pipeline.CreateMessage(); @@ -998,6 +1220,14 @@ public Response ListCurrentByDatabaseNextPage(string } } + internal RequestUriBuilder CreateListRecommendedByDatabaseNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serverName, string databaseName, string skipToken, bool? includeDisabledRecommendations, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListRecommendedByDatabaseNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serverName, string databaseName, string skipToken, bool? includeDisabledRecommendations, string filter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ServerAdvancedThreatProtectionSettingsRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ServerAdvancedThreatProtectionSettingsRestOperations.cs index ec4bb1dfcc6d..2749007f4961 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ServerAdvancedThreatProtectionSettingsRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ServerAdvancedThreatProtectionSettingsRestOperations.cs @@ -37,6 +37,21 @@ public ServerAdvancedThreatProtectionSettingsRestOperations(HttpPipeline pipelin _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByServerRequestUri(string subscriptionId, string resourceGroupName, string serverName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/advancedThreatProtectionSettings", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByServerRequest(string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByServer(st } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serverName, AdvancedThreatProtectionName advancedThreatProtectionName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/advancedThreatProtectionSettings/", false); + uri.AppendPath(advancedThreatProtectionName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serverName, AdvancedThreatProtectionName advancedThreatProtectionName) { var message = _pipeline.CreateMessage(); @@ -202,6 +233,22 @@ public Response Get(string subscriptionId, s } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serverName, AdvancedThreatProtectionName advancedThreatProtectionName, ServerAdvancedThreatProtectionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/advancedThreatProtectionSettings/", false); + uri.AppendPath(advancedThreatProtectionName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serverName, AdvancedThreatProtectionName advancedThreatProtectionName, ServerAdvancedThreatProtectionData data) { var message = _pipeline.CreateMessage(); @@ -284,6 +331,14 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateListByServerNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serverName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByServerNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ServerAdvisorsRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ServerAdvisorsRestOperations.cs index 6797afceb786..352f490d92ab 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ServerAdvisorsRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ServerAdvisorsRestOperations.cs @@ -37,6 +37,25 @@ public ServerAdvisorsRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByServerRequestUri(string subscriptionId, string resourceGroupName, string serverName, string expand) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/advisors", false); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByServerRequest(string subscriptionId, string resourceGroupName, string serverName, string expand) { var message = _pipeline.CreateMessage(); @@ -132,6 +151,22 @@ public Response> ListByServer(string subscriptionI } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serverName, string advisorName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/advisors/", false); + uri.AppendPath(advisorName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serverName, string advisorName) { var message = _pipeline.CreateMessage(); @@ -220,6 +255,22 @@ public Response Get(string subscriptionId, string resourceGroupN } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string serverName, string advisorName, SqlAdvisorData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/advisors/", false); + uri.AppendPath(advisorName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string serverName, string advisorName, SqlAdvisorData data) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ServerAutomaticTuningRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ServerAutomaticTuningRestOperations.cs index 5f8253697ef3..277b13b293ca 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ServerAutomaticTuningRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ServerAutomaticTuningRestOperations.cs @@ -36,6 +36,21 @@ public ServerAutomaticTuningRestOperations(HttpPipeline pipeline, string applica _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serverName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/automaticTuning/current", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); @@ -119,6 +134,21 @@ public Response Get(string subscriptionId, string } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string serverName, SqlServerAutomaticTuningData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/automaticTuning/current", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string serverName, SqlServerAutomaticTuningData data) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ServerAzureADAdministratorsRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ServerAzureADAdministratorsRestOperations.cs index 81209d5ee60c..b410f01027a9 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ServerAzureADAdministratorsRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ServerAzureADAdministratorsRestOperations.cs @@ -37,6 +37,22 @@ public ServerAzureADAdministratorsRestOperations(HttpPipeline pipeline, string a _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serverName, SqlAdministratorName administratorName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/administrators/", false); + uri.AppendPath(administratorName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serverName, SqlAdministratorName administratorName) { var message = _pipeline.CreateMessage(); @@ -123,6 +139,22 @@ public Response Get(string subscriptionId, st } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serverName, SqlAdministratorName administratorName, SqlServerAzureADAdministratorData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/administrators/", false); + uri.AppendPath(administratorName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serverName, SqlAdministratorName administratorName, SqlServerAzureADAdministratorData data) { var message = _pipeline.CreateMessage(); @@ -207,6 +239,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string serverName, SqlAdministratorName administratorName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/administrators/", false); + uri.AppendPath(administratorName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string serverName, SqlAdministratorName administratorName) { var message = _pipeline.CreateMessage(); @@ -282,6 +330,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListByServerRequestUri(string subscriptionId, string resourceGroupName, string serverName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/administrators", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByServerRequest(string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); @@ -361,6 +424,14 @@ public Response ListByServer(string subscriptionId, str } } + internal RequestUriBuilder CreateListByServerNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serverName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByServerNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ServerAzureADOnlyAuthenticationsRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ServerAzureADOnlyAuthenticationsRestOperations.cs index 357e173f34fe..92b57319a072 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ServerAzureADOnlyAuthenticationsRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ServerAzureADOnlyAuthenticationsRestOperations.cs @@ -37,6 +37,22 @@ public ServerAzureADOnlyAuthenticationsRestOperations(HttpPipeline pipeline, str _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serverName, AuthenticationName authenticationName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/azureADOnlyAuthentications/", false); + uri.AppendPath(authenticationName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serverName, AuthenticationName authenticationName) { var message = _pipeline.CreateMessage(); @@ -123,6 +139,22 @@ public Response Get(string subscriptionI } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serverName, AuthenticationName authenticationName, SqlServerAzureADOnlyAuthenticationData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/azureADOnlyAuthentications/", false); + uri.AppendPath(authenticationName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serverName, AuthenticationName authenticationName, SqlServerAzureADOnlyAuthenticationData data) { var message = _pipeline.CreateMessage(); @@ -207,6 +239,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string serverName, AuthenticationName authenticationName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/azureADOnlyAuthentications/", false); + uri.AppendPath(authenticationName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string serverName, AuthenticationName authenticationName) { var message = _pipeline.CreateMessage(); @@ -282,6 +330,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListByServerRequestUri(string subscriptionId, string resourceGroupName, string serverName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/azureADOnlyAuthentications", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByServerRequest(string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); @@ -361,6 +424,14 @@ public Response ListByServer(string subscriptionId, s } } + internal RequestUriBuilder CreateListByServerNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serverName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByServerNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ServerBlobAuditingPoliciesRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ServerBlobAuditingPoliciesRestOperations.cs index 1529aba60027..eb7a5184738f 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ServerBlobAuditingPoliciesRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ServerBlobAuditingPoliciesRestOperations.cs @@ -37,6 +37,21 @@ public ServerBlobAuditingPoliciesRestOperations(HttpPipeline pipeline, string ap _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByServerRequestUri(string subscriptionId, string resourceGroupName, string serverName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/auditingSettings", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByServerRequest(string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByServer(string subscrip } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serverName, BlobAuditingPolicyName blobAuditingPolicyName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/auditingSettings/", false); + uri.AppendPath(blobAuditingPolicyName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serverName, BlobAuditingPolicyName blobAuditingPolicyName) { var message = _pipeline.CreateMessage(); @@ -202,6 +233,22 @@ public Response Get(string subscriptionId, stri } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serverName, BlobAuditingPolicyName blobAuditingPolicyName, SqlServerBlobAuditingPolicyData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/auditingSettings/", false); + uri.AppendPath(blobAuditingPolicyName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serverName, BlobAuditingPolicyName blobAuditingPolicyName, SqlServerBlobAuditingPolicyData data) { var message = _pipeline.CreateMessage(); @@ -284,6 +331,14 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateListByServerNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serverName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByServerNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ServerCommunicationLinksRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ServerCommunicationLinksRestOperations.cs index 0acfd606cfe6..ec2a11be694e 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ServerCommunicationLinksRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ServerCommunicationLinksRestOperations.cs @@ -37,6 +37,22 @@ public ServerCommunicationLinksRestOperations(HttpPipeline pipeline, string appl _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string serverName, string communicationLinkName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/communicationLinks/", false); + uri.AppendPath(communicationLinkName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string serverName, string communicationLinkName) { var message = _pipeline.CreateMessage(); @@ -110,6 +126,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serverName, string communicationLinkName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/communicationLinks/", false); + uri.AppendPath(communicationLinkName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serverName, string communicationLinkName) { var message = _pipeline.CreateMessage(); @@ -198,6 +230,22 @@ public Response Get(string subscriptionId, strin } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serverName, string communicationLinkName, SqlServerCommunicationLinkData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/communicationLinks/", false); + uri.AppendPath(communicationLinkName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serverName, string communicationLinkName, SqlServerCommunicationLinkData data) { var message = _pipeline.CreateMessage(); @@ -282,6 +330,21 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateListByServerRequestUri(string subscriptionId, string resourceGroupName, string serverName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/communicationLinks", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByServerRequest(string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ServerConfigurationOptionsRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ServerConfigurationOptionsRestOperations.cs index f463204f300f..456aae1e804a 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ServerConfigurationOptionsRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ServerConfigurationOptionsRestOperations.cs @@ -37,6 +37,21 @@ public ServerConfigurationOptionsRestOperations(HttpPipeline pipeline, string ap _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByManagedInstanceRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName) + { + 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.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/serverConfigurationOptions", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByManagedInstanceRequest(string subscriptionId, string resourceGroupName, string managedInstanceName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByManagedInstance(strin } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, ManagedInstanceServerConfigurationOptionName serverConfigurationOptionName) + { + 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.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/serverConfigurationOptions/", false); + uri.AppendPath(serverConfigurationOptionName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, ManagedInstanceServerConfigurationOptionName serverConfigurationOptionName) { var message = _pipeline.CreateMessage(); @@ -202,6 +233,22 @@ public Response Get(string subscri } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, ManagedInstanceServerConfigurationOptionName serverConfigurationOptionName, ManagedInstanceServerConfigurationOptionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/serverConfigurationOptions/", false); + uri.AppendPath(serverConfigurationOptionName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, ManagedInstanceServerConfigurationOptionName serverConfigurationOptionName, ManagedInstanceServerConfigurationOptionData data) { var message = _pipeline.CreateMessage(); @@ -282,6 +329,14 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateListByManagedInstanceNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string managedInstanceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByManagedInstanceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string managedInstanceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ServerConnectionPoliciesRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ServerConnectionPoliciesRestOperations.cs index 18b45326646b..233a6cceb8ba 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ServerConnectionPoliciesRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ServerConnectionPoliciesRestOperations.cs @@ -37,6 +37,22 @@ public ServerConnectionPoliciesRestOperations(HttpPipeline pipeline, string appl _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serverName, ConnectionPolicyName connectionPolicyName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/connectionPolicies/", false); + uri.AppendPath(connectionPolicyName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serverName, ConnectionPolicyName connectionPolicyName) { var message = _pipeline.CreateMessage(); @@ -123,6 +139,22 @@ public Response Get(string subscriptionId, string } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serverName, ConnectionPolicyName connectionPolicyName, SqlServerConnectionPolicyData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/connectionPolicies/", false); + uri.AppendPath(connectionPolicyName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serverName, ConnectionPolicyName connectionPolicyName, SqlServerConnectionPolicyData data) { var message = _pipeline.CreateMessage(); @@ -205,6 +237,21 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateListByServerRequestUri(string subscriptionId, string resourceGroupName, string serverName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/connectionPolicies", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByServerRequest(string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); @@ -284,6 +331,14 @@ public Response ListByServer(string subscripti } } + internal RequestUriBuilder CreateListByServerNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serverName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByServerNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ServerDevOpsAuditSettingsRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ServerDevOpsAuditSettingsRestOperations.cs index fef5c523dacb..6fb258c45756 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ServerDevOpsAuditSettingsRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ServerDevOpsAuditSettingsRestOperations.cs @@ -37,6 +37,21 @@ public ServerDevOpsAuditSettingsRestOperations(HttpPipeline pipeline, string app _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByServerRequestUri(string subscriptionId, string resourceGroupName, string serverName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/devOpsAuditingSettings", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByServerRequest(string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByServer(string subscri } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serverName, string devOpsAuditingSettingsName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/devOpsAuditingSettings/", false); + uri.AppendPath(devOpsAuditingSettingsName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serverName, string devOpsAuditingSettingsName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscriptionId, s } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serverName, string devOpsAuditingSettingsName, SqlServerDevOpsAuditingSettingData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/devOpsAuditingSettings/", false); + uri.AppendPath(devOpsAuditingSettingsName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serverName, string devOpsAuditingSettingsName, SqlServerDevOpsAuditingSettingData data) { var message = _pipeline.CreateMessage(); @@ -288,6 +335,14 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateListByServerNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serverName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByServerNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ServerDnsAliasesRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ServerDnsAliasesRestOperations.cs index cc888a488388..99b53d7fea55 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ServerDnsAliasesRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ServerDnsAliasesRestOperations.cs @@ -37,6 +37,22 @@ public ServerDnsAliasesRestOperations(HttpPipeline pipeline, string applicationI _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serverName, string dnsAliasName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/dnsAliases/", false); + uri.AppendPath(dnsAliasName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serverName, string dnsAliasName) { var message = _pipeline.CreateMessage(); @@ -125,6 +141,22 @@ public Response Get(string subscriptionId, string resourc } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serverName, string dnsAliasName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/dnsAliases/", false); + uri.AppendPath(dnsAliasName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serverName, string dnsAliasName) { var message = _pipeline.CreateMessage(); @@ -203,6 +235,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string serverName, string dnsAliasName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/dnsAliases/", false); + uri.AppendPath(dnsAliasName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string serverName, string dnsAliasName) { var message = _pipeline.CreateMessage(); @@ -280,6 +328,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListByServerRequestUri(string subscriptionId, string resourceGroupName, string serverName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/dnsAliases", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByServerRequest(string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); @@ -359,6 +422,23 @@ public Response ListByServer(string subscriptionId, st } } + internal RequestUriBuilder CreateAcquireRequestUri(string subscriptionId, string resourceGroupName, string serverName, string dnsAliasName, ServerDnsAliasAcquisition serverDnsAliasAcquisition) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/dnsAliases/", false); + uri.AppendPath(dnsAliasName, true); + uri.AppendPath("/acquire", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateAcquireRequest(string subscriptionId, string resourceGroupName, string serverName, string dnsAliasName, ServerDnsAliasAcquisition serverDnsAliasAcquisition) { var message = _pipeline.CreateMessage(); @@ -444,6 +524,14 @@ public Response Acquire(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreateListByServerNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serverName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByServerNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ServerKeysRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ServerKeysRestOperations.cs index bbd280316d49..7226b7812fb4 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ServerKeysRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ServerKeysRestOperations.cs @@ -37,6 +37,21 @@ public ServerKeysRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByServerRequestUri(string subscriptionId, string resourceGroupName, string serverName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/keys", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByServerRequest(string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByServer(string subscriptionId, string } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serverName, string keyName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/keys/", false); + uri.AppendPath(keyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serverName, string keyName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscriptionId, string resourceGrou } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serverName, string keyName, SqlServerKeyData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/keys/", false); + uri.AppendPath(keyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serverName, string keyName, SqlServerKeyData data) { var message = _pipeline.CreateMessage(); @@ -290,6 +337,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string serverName, string keyName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/keys/", false); + uri.AppendPath(keyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string serverName, string keyName) { var message = _pipeline.CreateMessage(); @@ -367,6 +430,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListByServerNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serverName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByServerNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ServerRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ServerRestOperations.cs index ec898612b057..d2ba7290fc1c 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ServerRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ServerRestOperations.cs @@ -37,6 +37,21 @@ public ServerRestOperations(HttpPipeline pipeline, string applicationId, Uri end _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByServerRequestUri(string subscriptionId, string resourceGroupName, string serverName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/operations", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByServerRequest(string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,14 @@ public Response ListByServer(string subscriptionId, s } } + internal RequestUriBuilder CreateListByServerNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serverName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByServerNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ServerSecurityAlertPoliciesRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ServerSecurityAlertPoliciesRestOperations.cs index e37408ab1e92..4d8c62263b41 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ServerSecurityAlertPoliciesRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ServerSecurityAlertPoliciesRestOperations.cs @@ -37,6 +37,22 @@ public ServerSecurityAlertPoliciesRestOperations(HttpPipeline pipeline, string a _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serverName, SqlSecurityAlertPolicyName securityAlertPolicyName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/securityAlertPolicies/", false); + uri.AppendPath(securityAlertPolicyName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serverName, SqlSecurityAlertPolicyName securityAlertPolicyName) { var message = _pipeline.CreateMessage(); @@ -123,6 +139,22 @@ public Response Get(string subscriptionId, str } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serverName, SqlSecurityAlertPolicyName securityAlertPolicyName, SqlServerSecurityAlertPolicyData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/securityAlertPolicies/", false); + uri.AppendPath(securityAlertPolicyName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serverName, SqlSecurityAlertPolicyName securityAlertPolicyName, SqlServerSecurityAlertPolicyData data) { var message = _pipeline.CreateMessage(); @@ -205,6 +237,21 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateListByServerRequestUri(string subscriptionId, string resourceGroupName, string serverName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/securityAlertPolicies", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByServerRequest(string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); @@ -284,6 +331,14 @@ public Response ListByServer(string } } + internal RequestUriBuilder CreateListByServerNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serverName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByServerNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ServerTrustCertificatesRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ServerTrustCertificatesRestOperations.cs index dc8af257e202..3b3d75705b49 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ServerTrustCertificatesRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ServerTrustCertificatesRestOperations.cs @@ -37,6 +37,21 @@ public ServerTrustCertificatesRestOperations(HttpPipeline pipeline, string appli _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByInstanceRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName) + { + 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.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/serverTrustCertificates", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByInstanceRequest(string subscriptionId, string resourceGroupName, string managedInstanceName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByInstance(string subscri } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, string certificateName) + { + 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.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/serverTrustCertificates/", false); + uri.AppendPath(certificateName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, string certificateName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscriptionId, string re } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, string certificateName, ServerTrustCertificateData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/serverTrustCertificates/", false); + uri.AppendPath(certificateName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, string certificateName, ServerTrustCertificateData data) { var message = _pipeline.CreateMessage(); @@ -290,6 +337,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, string certificateName) + { + 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.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/serverTrustCertificates/", false); + uri.AppendPath(certificateName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, string certificateName) { var message = _pipeline.CreateMessage(); @@ -367,6 +430,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string m } } + internal RequestUriBuilder CreateListByInstanceNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string managedInstanceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByInstanceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string managedInstanceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ServerTrustGroupsRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ServerTrustGroupsRestOperations.cs index af64b5d9b85a..74a971cabbde 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ServerTrustGroupsRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ServerTrustGroupsRestOperations.cs @@ -37,6 +37,22 @@ public ServerTrustGroupsRestOperations(HttpPipeline pipeline, string application _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, AzureLocation locationName, string serverTrustGroupName) + { + 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.Sql/locations/", false); + uri.AppendPath(locationName, true); + uri.AppendPath("/serverTrustGroups/", false); + uri.AppendPath(serverTrustGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, AzureLocation locationName, string serverTrustGroupName) { var message = _pipeline.CreateMessage(); @@ -123,6 +139,22 @@ public Response Get(string subscriptionId, string resou } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, AzureLocation locationName, string serverTrustGroupName, SqlServerTrustGroupData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/locations/", false); + uri.AppendPath(locationName, true); + uri.AppendPath("/serverTrustGroups/", false); + uri.AppendPath(serverTrustGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, AzureLocation locationName, string serverTrustGroupName, SqlServerTrustGroupData data) { var message = _pipeline.CreateMessage(); @@ -207,6 +239,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, AzureLocation locationName, string serverTrustGroupName) + { + 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.Sql/locations/", false); + uri.AppendPath(locationName, true); + uri.AppendPath("/serverTrustGroups/", false); + uri.AppendPath(serverTrustGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, AzureLocation locationName, string serverTrustGroupName) { var message = _pipeline.CreateMessage(); @@ -282,6 +330,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, AzureLoc } } + internal RequestUriBuilder CreateListByLocationRequestUri(string subscriptionId, string resourceGroupName, AzureLocation locationName) + { + 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.Sql/locations/", false); + uri.AppendPath(locationName, true); + uri.AppendPath("/serverTrustGroups", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByLocationRequest(string subscriptionId, string resourceGroupName, AzureLocation locationName) { var message = _pipeline.CreateMessage(); @@ -359,6 +422,21 @@ public Response ListByLocation(string subscriptionId } } + internal RequestUriBuilder CreateListByInstanceRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName) + { + 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.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/serverTrustGroups", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByInstanceRequest(string subscriptionId, string resourceGroupName, string managedInstanceName) { var message = _pipeline.CreateMessage(); @@ -438,6 +516,14 @@ public Response ListByInstance(string subscriptionId } } + internal RequestUriBuilder CreateListByLocationNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, AzureLocation locationName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByLocationNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, AzureLocation locationName) { var message = _pipeline.CreateMessage(); @@ -512,6 +598,14 @@ public Response ListByLocationNextPage(string nextLi } } + internal RequestUriBuilder CreateListByInstanceNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string managedInstanceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByInstanceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string managedInstanceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ServerUsagesRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ServerUsagesRestOperations.cs index 5ec6b8804cd6..f97b6e476052 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ServerUsagesRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ServerUsagesRestOperations.cs @@ -37,6 +37,21 @@ public ServerUsagesRestOperations(HttpPipeline pipeline, string applicationId, U _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByServerRequestUri(string subscriptionId, string resourceGroupName, string serverName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/usages", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByServerRequest(string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ServerVulnerabilityAssessmentsRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ServerVulnerabilityAssessmentsRestOperations.cs index 1dcad09fde4b..c9623f525d2b 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ServerVulnerabilityAssessmentsRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ServerVulnerabilityAssessmentsRestOperations.cs @@ -37,6 +37,22 @@ public ServerVulnerabilityAssessmentsRestOperations(HttpPipeline pipeline, strin _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serverName, VulnerabilityAssessmentName vulnerabilityAssessmentName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/vulnerabilityAssessments/", false); + uri.AppendPath(vulnerabilityAssessmentName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serverName, VulnerabilityAssessmentName vulnerabilityAssessmentName) { var message = _pipeline.CreateMessage(); @@ -123,6 +139,22 @@ public Response Get(string subscriptionId, } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serverName, VulnerabilityAssessmentName vulnerabilityAssessmentName, SqlServerVulnerabilityAssessmentData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/vulnerabilityAssessments/", false); + uri.AppendPath(vulnerabilityAssessmentName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serverName, VulnerabilityAssessmentName vulnerabilityAssessmentName, SqlServerVulnerabilityAssessmentData data) { var message = _pipeline.CreateMessage(); @@ -215,6 +247,22 @@ public Response CreateOrUpdate(string subs } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string serverName, VulnerabilityAssessmentName vulnerabilityAssessmentName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/vulnerabilityAssessments/", false); + uri.AppendPath(vulnerabilityAssessmentName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string serverName, VulnerabilityAssessmentName vulnerabilityAssessmentName) { var message = _pipeline.CreateMessage(); @@ -286,6 +334,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListByServerRequestUri(string subscriptionId, string resourceGroupName, string serverName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/vulnerabilityAssessments", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByServerRequest(string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); @@ -365,6 +428,14 @@ public Response ListByServer(string sub } } + internal RequestUriBuilder CreateListByServerNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serverName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByServerNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ServersRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ServersRestOperations.cs index 0c1e7fdc2188..af716b80daca 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ServersRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ServersRestOperations.cs @@ -37,6 +37,17 @@ public ServersRestOperations(HttpPipeline pipeline, string applicationId, Uri en _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCheckNameAvailabilityRequestUri(string subscriptionId, SqlNameAvailabilityContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Sql/checkNameAvailability", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCheckNameAvailabilityRequest(string subscriptionId, SqlNameAvailabilityContent content) { var message = _pipeline.CreateMessage(); @@ -112,6 +123,21 @@ public Response CheckNameAvailability(string subscr } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string expand) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Sql/servers", false); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string expand) { var message = _pipeline.CreateMessage(); @@ -185,6 +211,23 @@ public Response List(string subscriptionId, string expand = nu } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName, string expand) + { + 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.Sql/servers", false); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName, string expand) { var message = _pipeline.CreateMessage(); @@ -264,6 +307,24 @@ public Response ListByResourceGroup(string subscriptionId, str } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serverName, string expand) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serverName, string expand) { var message = _pipeline.CreateMessage(); @@ -352,6 +413,20 @@ public Response Get(string subscriptionId, string resourceGroupNa } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serverName, SqlServerData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serverName, SqlServerData data) { var message = _pipeline.CreateMessage(); @@ -432,6 +507,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string serverName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); @@ -504,6 +593,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string serverName, SqlServerPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string serverName, SqlServerPatch patch) { var message = _pipeline.CreateMessage(); @@ -582,6 +685,21 @@ public Response Update(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateImportDatabaseRequestUri(string subscriptionId, string resourceGroupName, string serverName, DatabaseImportDefinition databaseImportDefinition) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/import", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateImportDatabaseRequest(string subscriptionId, string resourceGroupName, string serverName, DatabaseImportDefinition databaseImportDefinition) { var message = _pipeline.CreateMessage(); @@ -661,6 +779,21 @@ public Response ImportDatabase(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateRefreshStatusRequestUri(string subscriptionId, string resourceGroupName, string serverName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/refreshExternalGovernanceStatus", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRefreshStatusRequest(string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); @@ -732,6 +865,14 @@ public Response RefreshStatus(string subscriptionId, string resourceGroupName, s } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string expand) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string expand) { var message = _pipeline.CreateMessage(); @@ -802,6 +943,14 @@ public Response ListNextPage(string nextLink, string subscript } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string expand) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string expand) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ServiceObjectivesRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ServiceObjectivesRestOperations.cs index 0ee4996741de..2c018357c09e 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ServiceObjectivesRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/ServiceObjectivesRestOperations.cs @@ -37,6 +37,22 @@ public ServiceObjectivesRestOperations(HttpPipeline pipeline, string application _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serverName, string serviceObjectiveName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/serviceObjectives/", false); + uri.AppendPath(serviceObjectiveName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serverName, string serviceObjectiveName) { var message = _pipeline.CreateMessage(); @@ -125,6 +141,21 @@ public Response Get(string subscriptionId, string resource } } + internal RequestUriBuilder CreateListByServerRequestUri(string subscriptionId, string resourceGroupName, string serverName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/serviceObjectives", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByServerRequest(string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/SqlAgentRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/SqlAgentRestOperations.cs index f313d4716ff4..57019c9fbd00 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/SqlAgentRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/SqlAgentRestOperations.cs @@ -36,6 +36,21 @@ public SqlAgentRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName) + { + 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.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/sqlAgent/current", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string managedInstanceName) { var message = _pipeline.CreateMessage(); @@ -119,6 +134,21 @@ public Response Get(string subscriptionId, string res } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, SqlAgentConfigurationData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/sqlAgent/current", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, SqlAgentConfigurationData data) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/SqlVulnerabilityAssessmentBaselineRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/SqlVulnerabilityAssessmentBaselineRestOperations.cs index 69f4c23e16ea..6ec43fb77885 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/SqlVulnerabilityAssessmentBaselineRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/SqlVulnerabilityAssessmentBaselineRestOperations.cs @@ -37,6 +37,24 @@ public SqlVulnerabilityAssessmentBaselineRestOperations(HttpPipeline pipeline, s _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListBySqlVulnerabilityAssessmentRequestUri(string subscriptionId, string resourceGroupName, string serverName, VulnerabilityAssessmentName vulnerabilityAssessmentName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/sqlVulnerabilityAssessments/", false); + uri.AppendPath(vulnerabilityAssessmentName.ToString(), true); + uri.AppendPath("/baselines", false); + uri.AppendQuery("systemDatabaseName", "master", true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySqlVulnerabilityAssessmentRequest(string subscriptionId, string resourceGroupName, string serverName, VulnerabilityAssessmentName vulnerabilityAssessmentName) { var message = _pipeline.CreateMessage(); @@ -121,6 +139,25 @@ public Response ListByS } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serverName, VulnerabilityAssessmentName vulnerabilityAssessmentName, SqlVulnerabilityAssessmentBaselineName baselineName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/sqlVulnerabilityAssessments/", false); + uri.AppendPath(vulnerabilityAssessmentName.ToString(), true); + uri.AppendPath("/baselines/", false); + uri.AppendPath(baselineName.ToString(), true); + uri.AppendQuery("systemDatabaseName", "master", true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serverName, VulnerabilityAssessmentName vulnerabilityAssessmentName, SqlVulnerabilityAssessmentBaselineName baselineName) { var message = _pipeline.CreateMessage(); @@ -212,6 +249,14 @@ public Response Get(string subscriptionI } } + internal RequestUriBuilder CreateListBySqlVulnerabilityAssessmentNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serverName, VulnerabilityAssessmentName vulnerabilityAssessmentName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySqlVulnerabilityAssessmentNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serverName, VulnerabilityAssessmentName vulnerabilityAssessmentName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/SqlVulnerabilityAssessmentBaselinesRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/SqlVulnerabilityAssessmentBaselinesRestOperations.cs index 76a67f3e29f4..e7cf8e1e84de 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/SqlVulnerabilityAssessmentBaselinesRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/SqlVulnerabilityAssessmentBaselinesRestOperations.cs @@ -37,6 +37,25 @@ public SqlVulnerabilityAssessmentBaselinesRestOperations(HttpPipeline pipeline, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serverName, VulnerabilityAssessmentName vulnerabilityAssessmentName, SqlVulnerabilityAssessmentBaselineName baselineName, SqlVulnerabilityAssessmentBaselineCreateOrUpdateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/sqlVulnerabilityAssessments/", false); + uri.AppendPath(vulnerabilityAssessmentName.ToString(), true); + uri.AppendPath("/baselines/", false); + uri.AppendPath(baselineName.ToString(), true); + uri.AppendQuery("systemDatabaseName", "master", true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serverName, VulnerabilityAssessmentName vulnerabilityAssessmentName, SqlVulnerabilityAssessmentBaselineName baselineName, SqlVulnerabilityAssessmentBaselineCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/SqlVulnerabilityAssessmentExecuteScanRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/SqlVulnerabilityAssessmentExecuteScanRestOperations.cs index ae5f0b594c60..f0eebfec9698 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/SqlVulnerabilityAssessmentExecuteScanRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/SqlVulnerabilityAssessmentExecuteScanRestOperations.cs @@ -36,6 +36,24 @@ public SqlVulnerabilityAssessmentExecuteScanRestOperations(HttpPipeline pipeline _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateExecuteRequestUri(string subscriptionId, string resourceGroupName, string serverName, VulnerabilityAssessmentName vulnerabilityAssessmentName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/sqlVulnerabilityAssessments/", false); + uri.AppendPath(vulnerabilityAssessmentName.ToString(), true); + uri.AppendPath("/initiateScan", false); + uri.AppendQuery("systemDatabaseName", "master", true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateExecuteRequest(string subscriptionId, string resourceGroupName, string serverName, VulnerabilityAssessmentName vulnerabilityAssessmentName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/SqlVulnerabilityAssessmentRuleBaselineRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/SqlVulnerabilityAssessmentRuleBaselineRestOperations.cs index 160fab24a469..b1c87fa707f4 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/SqlVulnerabilityAssessmentRuleBaselineRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/SqlVulnerabilityAssessmentRuleBaselineRestOperations.cs @@ -37,6 +37,26 @@ public SqlVulnerabilityAssessmentRuleBaselineRestOperations(HttpPipeline pipelin _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByBaselineRequestUri(string subscriptionId, string resourceGroupName, string serverName, VulnerabilityAssessmentName vulnerabilityAssessmentName, SqlVulnerabilityAssessmentBaselineName baselineName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/sqlVulnerabilityAssessments/", false); + uri.AppendPath(vulnerabilityAssessmentName.ToString(), true); + uri.AppendPath("/baselines/", false); + uri.AppendPath(baselineName.ToString(), true); + uri.AppendPath("/rules", false); + uri.AppendQuery("systemDatabaseName", "master", true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByBaselineRequest(string subscriptionId, string resourceGroupName, string serverName, VulnerabilityAssessmentName vulnerabilityAssessmentName, SqlVulnerabilityAssessmentBaselineName baselineName) { var message = _pipeline.CreateMessage(); @@ -125,6 +145,27 @@ public Response ListBy } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serverName, VulnerabilityAssessmentName vulnerabilityAssessmentName, SqlVulnerabilityAssessmentBaselineName baselineName, string ruleId) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/sqlVulnerabilityAssessments/", false); + uri.AppendPath(vulnerabilityAssessmentName.ToString(), true); + uri.AppendPath("/baselines/", false); + uri.AppendPath(baselineName.ToString(), true); + uri.AppendPath("/rules/", false); + uri.AppendPath(ruleId, true); + uri.AppendQuery("systemDatabaseName", "master", true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serverName, VulnerabilityAssessmentName vulnerabilityAssessmentName, SqlVulnerabilityAssessmentBaselineName baselineName, string ruleId) { var message = _pipeline.CreateMessage(); @@ -222,6 +263,27 @@ public Response Get(string subscript } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serverName, VulnerabilityAssessmentName vulnerabilityAssessmentName, SqlVulnerabilityAssessmentBaselineName baselineName, string ruleId, SqlVulnerabilityAssessmentBaselineRuleCreateOrUpdateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/sqlVulnerabilityAssessments/", false); + uri.AppendPath(vulnerabilityAssessmentName.ToString(), true); + uri.AppendPath("/baselines/", false); + uri.AppendPath(baselineName.ToString(), true); + uri.AppendPath("/rules/", false); + uri.AppendPath(ruleId, true); + uri.AppendQuery("systemDatabaseName", "master", true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serverName, VulnerabilityAssessmentName vulnerabilityAssessmentName, SqlVulnerabilityAssessmentBaselineName baselineName, string ruleId, SqlVulnerabilityAssessmentBaselineRuleCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); @@ -323,6 +385,14 @@ public Response CreateOrUpdate(strin } } + internal RequestUriBuilder CreateListByBaselineNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serverName, VulnerabilityAssessmentName vulnerabilityAssessmentName, SqlVulnerabilityAssessmentBaselineName baselineName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByBaselineNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serverName, VulnerabilityAssessmentName vulnerabilityAssessmentName, SqlVulnerabilityAssessmentBaselineName baselineName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/SqlVulnerabilityAssessmentRuleBaselinesRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/SqlVulnerabilityAssessmentRuleBaselinesRestOperations.cs index d8055c84fae7..6d51f09e6078 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/SqlVulnerabilityAssessmentRuleBaselinesRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/SqlVulnerabilityAssessmentRuleBaselinesRestOperations.cs @@ -36,6 +36,27 @@ public SqlVulnerabilityAssessmentRuleBaselinesRestOperations(HttpPipeline pipeli _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string serverName, VulnerabilityAssessmentName vulnerabilityAssessmentName, SqlVulnerabilityAssessmentBaselineName baselineName, string ruleId) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/sqlVulnerabilityAssessments/", false); + uri.AppendPath(vulnerabilityAssessmentName.ToString(), true); + uri.AppendPath("/baselines/", false); + uri.AppendPath(baselineName.ToString(), true); + uri.AppendPath("/rules/", false); + uri.AppendPath(ruleId, true); + uri.AppendQuery("systemDatabaseName", "master", true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string serverName, VulnerabilityAssessmentName vulnerabilityAssessmentName, SqlVulnerabilityAssessmentBaselineName baselineName, string ruleId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/SqlVulnerabilityAssessmentScanResultRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/SqlVulnerabilityAssessmentScanResultRestOperations.cs index d04e94bb5fd5..f59c52f7f998 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/SqlVulnerabilityAssessmentScanResultRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/SqlVulnerabilityAssessmentScanResultRestOperations.cs @@ -37,6 +37,26 @@ public SqlVulnerabilityAssessmentScanResultRestOperations(HttpPipeline pipeline, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByScanRequestUri(string subscriptionId, string resourceGroupName, string serverName, VulnerabilityAssessmentName vulnerabilityAssessmentName, string scanId) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/sqlVulnerabilityAssessments/", false); + uri.AppendPath(vulnerabilityAssessmentName.ToString(), true); + uri.AppendPath("/scans/", false); + uri.AppendPath(scanId, true); + uri.AppendPath("/scanResults", false); + uri.AppendQuery("systemDatabaseName", "master", true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByScanRequest(string subscriptionId, string resourceGroupName, string serverName, VulnerabilityAssessmentName vulnerabilityAssessmentName, string scanId) { var message = _pipeline.CreateMessage(); @@ -127,6 +147,27 @@ public Response ListByScan(string subs } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serverName, VulnerabilityAssessmentName vulnerabilityAssessmentName, string scanId, string scanResultId) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/sqlVulnerabilityAssessments/", false); + uri.AppendPath(vulnerabilityAssessmentName.ToString(), true); + uri.AppendPath("/scans/", false); + uri.AppendPath(scanId, true); + uri.AppendPath("/scanResults/", false); + uri.AppendPath(scanResultId, true); + uri.AppendQuery("systemDatabaseName", "master", true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serverName, VulnerabilityAssessmentName vulnerabilityAssessmentName, string scanId, string scanResultId) { var message = _pipeline.CreateMessage(); @@ -226,6 +267,14 @@ public Response Get(string subscriptio } } + internal RequestUriBuilder CreateListByScanNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serverName, VulnerabilityAssessmentName vulnerabilityAssessmentName, string scanId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByScanNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serverName, VulnerabilityAssessmentName vulnerabilityAssessmentName, string scanId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/SqlVulnerabilityAssessmentScansRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/SqlVulnerabilityAssessmentScansRestOperations.cs index 9bf9975a2221..0daa64a5f02e 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/SqlVulnerabilityAssessmentScansRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/SqlVulnerabilityAssessmentScansRestOperations.cs @@ -37,6 +37,24 @@ public SqlVulnerabilityAssessmentScansRestOperations(HttpPipeline pipeline, stri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListBySqlVulnerabilityAssessmentsRequestUri(string subscriptionId, string resourceGroupName, string serverName, VulnerabilityAssessmentName vulnerabilityAssessmentName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/sqlVulnerabilityAssessments/", false); + uri.AppendPath(vulnerabilityAssessmentName.ToString(), true); + uri.AppendPath("/scans", false); + uri.AppendQuery("systemDatabaseName", "master", true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySqlVulnerabilityAssessmentsRequest(string subscriptionId, string resourceGroupName, string serverName, VulnerabilityAssessmentName vulnerabilityAssessmentName) { var message = _pipeline.CreateMessage(); @@ -121,6 +139,25 @@ public Response ListBySqlVulnera } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serverName, VulnerabilityAssessmentName vulnerabilityAssessmentName, string scanId) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/sqlVulnerabilityAssessments/", false); + uri.AppendPath(vulnerabilityAssessmentName.ToString(), true); + uri.AppendPath("/scans/", false); + uri.AppendPath(scanId, true); + uri.AppendQuery("systemDatabaseName", "master", true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serverName, VulnerabilityAssessmentName vulnerabilityAssessmentName, string scanId) { var message = _pipeline.CreateMessage(); @@ -214,6 +251,14 @@ public Response Get(string subscriptionId, s } } + internal RequestUriBuilder CreateListBySqlVulnerabilityAssessmentsNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serverName, VulnerabilityAssessmentName vulnerabilityAssessmentName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySqlVulnerabilityAssessmentsNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serverName, VulnerabilityAssessmentName vulnerabilityAssessmentName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/SqlVulnerabilityAssessmentsRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/SqlVulnerabilityAssessmentsRestOperations.cs index 4f84ecf89bc0..22a80d23ebde 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/SqlVulnerabilityAssessmentsRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/SqlVulnerabilityAssessmentsRestOperations.cs @@ -36,6 +36,22 @@ public SqlVulnerabilityAssessmentsRestOperations(HttpPipeline pipeline, string a _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string serverName, VulnerabilityAssessmentName vulnerabilityAssessmentName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/sqlVulnerabilityAssessments/", false); + uri.AppendPath(vulnerabilityAssessmentName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string serverName, VulnerabilityAssessmentName vulnerabilityAssessmentName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/SqlVulnerabilityAssessmentsSettingsRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/SqlVulnerabilityAssessmentsSettingsRestOperations.cs index ba98f21154bd..1cbc8354b74f 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/SqlVulnerabilityAssessmentsSettingsRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/SqlVulnerabilityAssessmentsSettingsRestOperations.cs @@ -37,6 +37,21 @@ public SqlVulnerabilityAssessmentsSettingsRestOperations(HttpPipeline pipeline, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByServerRequestUri(string subscriptionId, string resourceGroupName, string serverName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/sqlVulnerabilityAssessments", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByServerRequest(string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByServer(string subscr } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serverName, VulnerabilityAssessmentName vulnerabilityAssessmentName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/sqlVulnerabilityAssessments/", false); + uri.AppendPath(vulnerabilityAssessmentName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serverName, VulnerabilityAssessmentName vulnerabilityAssessmentName) { var message = _pipeline.CreateMessage(); @@ -202,6 +233,22 @@ public Response Get(string subscriptionId, strin } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serverName, VulnerabilityAssessmentName vulnerabilityAssessmentName, SqlVulnerabilityAssessmentData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/sqlVulnerabilityAssessments/", false); + uri.AppendPath(vulnerabilityAssessmentName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serverName, VulnerabilityAssessmentName vulnerabilityAssessmentName, SqlVulnerabilityAssessmentData data) { var message = _pipeline.CreateMessage(); @@ -294,6 +341,14 @@ public Response CreateOrUpdate(string subscripti } } + internal RequestUriBuilder CreateListByServerNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serverName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByServerNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/StartStopManagedInstanceSchedulesRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/StartStopManagedInstanceSchedulesRestOperations.cs index c3470665fc43..bc50542f9e59 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/StartStopManagedInstanceSchedulesRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/StartStopManagedInstanceSchedulesRestOperations.cs @@ -37,6 +37,21 @@ public StartStopManagedInstanceSchedulesRestOperations(HttpPipeline pipeline, st _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByInstanceRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName) + { + 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.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/startStopSchedules", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByInstanceRequest(string subscriptionId, string resourceGroupName, string managedInstanceName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByInstance(strin } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, ManagedInstanceStartStopScheduleName startStopScheduleName) + { + 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.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/startStopSchedules/", false); + uri.AppendPath(startStopScheduleName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, ManagedInstanceStartStopScheduleName startStopScheduleName) { var message = _pipeline.CreateMessage(); @@ -202,6 +233,22 @@ public Response Get(string subscriptionId, } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, ManagedInstanceStartStopScheduleName startStopScheduleName, ManagedInstanceStartStopScheduleData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/startStopSchedules/", false); + uri.AppendPath(startStopScheduleName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, ManagedInstanceStartStopScheduleName startStopScheduleName, ManagedInstanceStartStopScheduleData data) { var message = _pipeline.CreateMessage(); @@ -294,6 +341,22 @@ public Response CreateOrUpdate(string subs } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, ManagedInstanceStartStopScheduleName startStopScheduleName) + { + 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.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/startStopSchedules/", false); + uri.AppendPath(startStopScheduleName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, ManagedInstanceStartStopScheduleName startStopScheduleName) { var message = _pipeline.CreateMessage(); @@ -367,6 +430,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string m } } + internal RequestUriBuilder CreateListByInstanceNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string managedInstanceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByInstanceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string managedInstanceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/SubscriptionUsagesRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/SubscriptionUsagesRestOperations.cs index 82010f189555..5785e1e5fb74 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/SubscriptionUsagesRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/SubscriptionUsagesRestOperations.cs @@ -37,6 +37,19 @@ public SubscriptionUsagesRestOperations(HttpPipeline pipeline, string applicatio _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByLocationRequestUri(string subscriptionId, AzureLocation locationName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Sql/locations/", false); + uri.AppendPath(locationName, true); + uri.AppendPath("/usages", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByLocationRequest(string subscriptionId, AzureLocation locationName) { var message = _pipeline.CreateMessage(); @@ -108,6 +121,20 @@ public Response ListByLocation(string subscriptionI } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, AzureLocation locationName, string usageName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Sql/locations/", false); + uri.AppendPath(locationName, true); + uri.AppendPath("/usages/", false); + uri.AppendPath(usageName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, AzureLocation locationName, string usageName) { var message = _pipeline.CreateMessage(); @@ -188,6 +215,14 @@ public Response Get(string subscriptionId, AzureLocation } } + internal RequestUriBuilder CreateListByLocationNextPageRequestUri(string nextLink, string subscriptionId, AzureLocation locationName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByLocationNextPageRequest(string nextLink, string subscriptionId, AzureLocation locationName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/SynapseLinkWorkspacesRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/SynapseLinkWorkspacesRestOperations.cs index 0aa03115d139..e4278b7e40fa 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/SynapseLinkWorkspacesRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/SynapseLinkWorkspacesRestOperations.cs @@ -37,6 +37,23 @@ public SynapseLinkWorkspacesRestOperations(HttpPipeline pipeline, string applica _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByDatabaseRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/linkWorkspaces", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByDatabaseRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName) { var message = _pipeline.CreateMessage(); @@ -122,6 +139,14 @@ public Response ListByDatabase(string subscripti } } + internal RequestUriBuilder CreateListByDatabaseNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serverName, string databaseName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByDatabaseNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serverName, string databaseName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/SyncAgentsRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/SyncAgentsRestOperations.cs index a414a254a720..f17c90abef91 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/SyncAgentsRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/SyncAgentsRestOperations.cs @@ -37,6 +37,22 @@ public SyncAgentsRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serverName, string syncAgentName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/syncAgents/", false); + uri.AppendPath(syncAgentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serverName, string syncAgentName) { var message = _pipeline.CreateMessage(); @@ -125,6 +141,22 @@ public Response Get(string subscriptionId, string resourceGroupNa } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serverName, string syncAgentName, SyncAgentData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/syncAgents/", false); + uri.AppendPath(syncAgentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serverName, string syncAgentName, SyncAgentData data) { var message = _pipeline.CreateMessage(); @@ -211,6 +243,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string serverName, string syncAgentName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/syncAgents/", false); + uri.AppendPath(syncAgentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string serverName, string syncAgentName) { var message = _pipeline.CreateMessage(); @@ -288,6 +336,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListByServerRequestUri(string subscriptionId, string resourceGroupName, string serverName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/syncAgents", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByServerRequest(string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); @@ -367,6 +430,23 @@ public Response ListByServer(string subscriptionId, string } } + internal RequestUriBuilder CreateGenerateKeyRequestUri(string subscriptionId, string resourceGroupName, string serverName, string syncAgentName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/syncAgents/", false); + uri.AppendPath(syncAgentName, true); + uri.AppendPath("/generateKey", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGenerateKeyRequest(string subscriptionId, string resourceGroupName, string serverName, string syncAgentName) { var message = _pipeline.CreateMessage(); @@ -452,6 +532,23 @@ public Response GenerateKey(string subscriptionId, strin } } + internal RequestUriBuilder CreateListLinkedDatabasesRequestUri(string subscriptionId, string resourceGroupName, string serverName, string syncAgentName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/syncAgents/", false); + uri.AppendPath(syncAgentName, true); + uri.AppendPath("/linkedDatabases", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListLinkedDatabasesRequest(string subscriptionId, string resourceGroupName, string serverName, string syncAgentName) { var message = _pipeline.CreateMessage(); @@ -537,6 +634,14 @@ public Response ListLinkedDatabases(string su } } + internal RequestUriBuilder CreateListByServerNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serverName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByServerNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); @@ -613,6 +718,14 @@ public Response ListByServerNextPage(string nextLink, strin } } + internal RequestUriBuilder CreateListLinkedDatabasesNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serverName, string syncAgentName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListLinkedDatabasesNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serverName, string syncAgentName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/SyncGroupsRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/SyncGroupsRestOperations.cs index 6220f11c8147..5b90a58307b9 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/SyncGroupsRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/SyncGroupsRestOperations.cs @@ -37,6 +37,19 @@ public SyncGroupsRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListSyncDatabaseIdsRequestUri(string subscriptionId, AzureLocation locationName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Sql/locations/", false); + uri.AppendPath(locationName, true); + uri.AppendPath("/syncDatabaseIds", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListSyncDatabaseIdsRequest(string subscriptionId, AzureLocation locationName) { var message = _pipeline.CreateMessage(); @@ -108,6 +121,25 @@ public Response ListSyncDatabaseIds(string subscriptio } } + internal RequestUriBuilder CreateRefreshHubSchemaRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string syncGroupName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/syncGroups/", false); + uri.AppendPath(syncGroupName, true); + uri.AppendPath("/refreshHubSchema", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRefreshHubSchemaRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string syncGroupName) { var message = _pipeline.CreateMessage(); @@ -190,6 +222,25 @@ public Response RefreshHubSchema(string subscriptionId, string resourceGroupName } } + internal RequestUriBuilder CreateListHubSchemasRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string syncGroupName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/syncGroups/", false); + uri.AppendPath(syncGroupName, true); + uri.AppendPath("/hubSchemas", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListHubSchemasRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string syncGroupName) { var message = _pipeline.CreateMessage(); @@ -281,6 +332,32 @@ public Response ListHubSchemas(string subscr } } + internal RequestUriBuilder CreateListLogsRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string syncGroupName, string startTime, string endTime, SyncGroupLogType type, string continuationToken) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/syncGroups/", false); + uri.AppendPath(syncGroupName, true); + uri.AppendPath("/logs", false); + uri.AppendQuery("startTime", startTime, true); + uri.AppendQuery("endTime", endTime, true); + uri.AppendQuery("type", type.ToString(), true); + if (continuationToken != null) + { + uri.AppendQuery("continuationToken", continuationToken, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListLogsRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string syncGroupName, string startTime, string endTime, SyncGroupLogType type, string continuationToken) { var message = _pipeline.CreateMessage(); @@ -391,6 +468,25 @@ public Response ListLogs(string subscriptionId, string r } } + internal RequestUriBuilder CreateCancelSyncRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string syncGroupName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/syncGroups/", false); + uri.AppendPath(syncGroupName, true); + uri.AppendPath("/cancelSync", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCancelSyncRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string syncGroupName) { var message = _pipeline.CreateMessage(); @@ -471,6 +567,25 @@ public Response CancelSync(string subscriptionId, string resourceGroupName, stri } } + internal RequestUriBuilder CreateTriggerSyncRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string syncGroupName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/syncGroups/", false); + uri.AppendPath(syncGroupName, true); + uri.AppendPath("/triggerSync", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateTriggerSyncRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string syncGroupName) { var message = _pipeline.CreateMessage(); @@ -551,6 +666,24 @@ public Response TriggerSync(string subscriptionId, string resourceGroupName, str } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string syncGroupName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/syncGroups/", false); + uri.AppendPath(syncGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string syncGroupName) { var message = _pipeline.CreateMessage(); @@ -645,6 +778,24 @@ public Response Get(string subscriptionId, string resourceGroupNa } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string syncGroupName, SyncGroupData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/syncGroups/", false); + uri.AppendPath(syncGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string syncGroupName, SyncGroupData data) { var message = _pipeline.CreateMessage(); @@ -737,6 +888,24 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string syncGroupName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/syncGroups/", false); + uri.AppendPath(syncGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string syncGroupName) { var message = _pipeline.CreateMessage(); @@ -820,6 +989,24 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string syncGroupName, SyncGroupData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/syncGroups/", false); + uri.AppendPath(syncGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string syncGroupName, SyncGroupData data) { var message = _pipeline.CreateMessage(); @@ -910,6 +1097,23 @@ public Response Update(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListByDatabaseRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/syncGroups", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByDatabaseRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName) { var message = _pipeline.CreateMessage(); @@ -995,6 +1199,14 @@ public Response ListByDatabase(string subscriptionId, strin } } + internal RequestUriBuilder CreateListSyncDatabaseIdsNextPageRequestUri(string nextLink, string subscriptionId, AzureLocation locationName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListSyncDatabaseIdsNextPageRequest(string nextLink, string subscriptionId, AzureLocation locationName) { var message = _pipeline.CreateMessage(); @@ -1065,6 +1277,14 @@ public Response ListSyncDatabaseIdsNextPage(string nex } } + internal RequestUriBuilder CreateListHubSchemasNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serverName, string databaseName, string syncGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListHubSchemasNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serverName, string databaseName, string syncGroupName) { var message = _pipeline.CreateMessage(); @@ -1149,6 +1369,14 @@ public Response ListHubSchemasNextPage(strin } } + internal RequestUriBuilder CreateListLogsNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serverName, string databaseName, string syncGroupName, string startTime, string endTime, SyncGroupLogType type, string continuationToken) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListLogsNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serverName, string databaseName, string syncGroupName, string startTime, string endTime, SyncGroupLogType type, string continuationToken) { var message = _pipeline.CreateMessage(); @@ -1245,6 +1473,14 @@ public Response ListLogsNextPage(string nextLink, string } } + internal RequestUriBuilder CreateListByDatabaseNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serverName, string databaseName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByDatabaseNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serverName, string databaseName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/SyncMembersRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/SyncMembersRestOperations.cs index 9ac6cd13812b..58699589b2f0 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/SyncMembersRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/SyncMembersRestOperations.cs @@ -37,6 +37,26 @@ public SyncMembersRestOperations(HttpPipeline pipeline, string applicationId, Ur _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string syncGroupName, string syncMemberName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/syncGroups/", false); + uri.AppendPath(syncGroupName, true); + uri.AppendPath("/syncMembers/", false); + uri.AppendPath(syncMemberName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string syncGroupName, string syncMemberName) { var message = _pipeline.CreateMessage(); @@ -137,6 +157,26 @@ public Response Get(string subscriptionId, string resourceGroupN } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string syncGroupName, string syncMemberName, SyncMemberData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/syncGroups/", false); + uri.AppendPath(syncGroupName, true); + uri.AppendPath("/syncMembers/", false); + uri.AppendPath(syncMemberName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string syncGroupName, string syncMemberName, SyncMemberData data) { var message = _pipeline.CreateMessage(); @@ -235,6 +275,26 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string syncGroupName, string syncMemberName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/syncGroups/", false); + uri.AppendPath(syncGroupName, true); + uri.AppendPath("/syncMembers/", false); + uri.AppendPath(syncMemberName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string syncGroupName, string syncMemberName) { var message = _pipeline.CreateMessage(); @@ -324,6 +384,26 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string syncGroupName, string syncMemberName, SyncMemberData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/syncGroups/", false); + uri.AppendPath(syncGroupName, true); + uri.AppendPath("/syncMembers/", false); + uri.AppendPath(syncMemberName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string syncGroupName, string syncMemberName, SyncMemberData data) { var message = _pipeline.CreateMessage(); @@ -420,6 +500,25 @@ public Response Update(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListBySyncGroupRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string syncGroupName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/syncGroups/", false); + uri.AppendPath(syncGroupName, true); + uri.AppendPath("/syncMembers", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySyncGroupRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string syncGroupName) { var message = _pipeline.CreateMessage(); @@ -511,6 +610,27 @@ public Response ListBySyncGroup(string subscriptionId, str } } + internal RequestUriBuilder CreateListMemberSchemasRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string syncGroupName, string syncMemberName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/syncGroups/", false); + uri.AppendPath(syncGroupName, true); + uri.AppendPath("/syncMembers/", false); + uri.AppendPath(syncMemberName, true); + uri.AppendPath("/schemas", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListMemberSchemasRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string syncGroupName, string syncMemberName) { var message = _pipeline.CreateMessage(); @@ -608,6 +728,27 @@ public Response ListMemberSchemas(string sub } } + internal RequestUriBuilder CreateRefreshMemberSchemaRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string syncGroupName, string syncMemberName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/syncGroups/", false); + uri.AppendPath(syncGroupName, true); + uri.AppendPath("/syncMembers/", false); + uri.AppendPath(syncMemberName, true); + uri.AppendPath("/refreshSchema", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRefreshMemberSchemaRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string syncGroupName, string syncMemberName) { var message = _pipeline.CreateMessage(); @@ -696,6 +837,14 @@ public Response RefreshMemberSchema(string subscriptionId, string resourceGroupN } } + internal RequestUriBuilder CreateListBySyncGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serverName, string databaseName, string syncGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySyncGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serverName, string databaseName, string syncGroupName) { var message = _pipeline.CreateMessage(); @@ -780,6 +929,14 @@ public Response ListBySyncGroupNextPage(string nextLink, s } } + internal RequestUriBuilder CreateListMemberSchemasNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serverName, string databaseName, string syncGroupName, string syncMemberName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListMemberSchemasNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serverName, string databaseName, string syncGroupName, string syncMemberName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/TdeCertificatesRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/TdeCertificatesRestOperations.cs index 6136c239a925..9917f09cc080 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/TdeCertificatesRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/TdeCertificatesRestOperations.cs @@ -36,6 +36,21 @@ public TdeCertificatesRestOperations(HttpPipeline pipeline, string applicationId _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string serverName, TdeCertificate tdeCertificate) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/tdeCertificates", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string serverName, TdeCertificate tdeCertificate) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/TimeZonesRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/TimeZonesRestOperations.cs index 62049577c704..36d35990001d 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/TimeZonesRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/TimeZonesRestOperations.cs @@ -37,6 +37,19 @@ public TimeZonesRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByLocationRequestUri(string subscriptionId, AzureLocation locationName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Sql/locations/", false); + uri.AppendPath(locationName, true); + uri.AppendPath("/timeZones", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByLocationRequest(string subscriptionId, AzureLocation locationName) { var message = _pipeline.CreateMessage(); @@ -108,6 +121,20 @@ public Response ListByLocation(string subscriptionId, AzureL } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, AzureLocation locationName, string timeZoneId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Sql/locations/", false); + uri.AppendPath(locationName, true); + uri.AppendPath("/timeZones/", false); + uri.AppendPath(timeZoneId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, AzureLocation locationName, string timeZoneId) { var message = _pipeline.CreateMessage(); @@ -188,6 +215,14 @@ public Response Get(string subscriptionId, AzureLocation locati } } + internal RequestUriBuilder CreateListByLocationNextPageRequestUri(string nextLink, string subscriptionId, AzureLocation locationName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByLocationNextPageRequest(string nextLink, string subscriptionId, AzureLocation locationName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/TransparentDataEncryptionsRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/TransparentDataEncryptionsRestOperations.cs index 22cc6a0865b5..8945e7b08ccd 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/TransparentDataEncryptionsRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/TransparentDataEncryptionsRestOperations.cs @@ -37,6 +37,23 @@ public TransparentDataEncryptionsRestOperations(HttpPipeline pipeline, string ap _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByDatabaseRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/transparentDataEncryption", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByDatabaseRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName) { var message = _pipeline.CreateMessage(); @@ -122,6 +139,24 @@ public Response ListByDataba } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName, TransparentDataEncryptionName tdeName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/transparentDataEncryption/", false); + uri.AppendPath(tdeName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName, TransparentDataEncryptionName tdeName) { var message = _pipeline.CreateMessage(); @@ -214,6 +249,24 @@ public Response Get(string subscri } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName, TransparentDataEncryptionName tdeName, LogicalDatabaseTransparentDataEncryptionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/transparentDataEncryption/", false); + uri.AppendPath(tdeName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName, TransparentDataEncryptionName tdeName, LogicalDatabaseTransparentDataEncryptionData data) { var message = _pipeline.CreateMessage(); @@ -304,6 +357,14 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateListByDatabaseNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serverName, string databaseName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByDatabaseNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serverName, string databaseName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/UsagesRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/UsagesRestOperations.cs index 78abf3cf06a6..d248d10aeace 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/UsagesRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/UsagesRestOperations.cs @@ -37,6 +37,25 @@ public UsagesRestOperations(HttpPipeline pipeline, string applicationId, Uri end _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByInstancePoolRequestUri(string subscriptionId, string resourceGroupName, string instancePoolName, bool? expandChildren) + { + 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.Sql/instancePools/", false); + uri.AppendPath(instancePoolName, true); + uri.AppendPath("/usages", false); + if (expandChildren != null) + { + uri.AppendQuery("expandChildren", expandChildren.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByInstancePoolRequest(string subscriptionId, string resourceGroupName, string instancePoolName, bool? expandChildren) { var message = _pipeline.CreateMessage(); @@ -122,6 +141,14 @@ public Response ListByInstancePool(string subscript } } + internal RequestUriBuilder CreateListByInstancePoolNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string instancePoolName, bool? expandChildren) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByInstancePoolNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string instancePoolName, bool? expandChildren) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/VirtualClustersRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/VirtualClustersRestOperations.cs index 38d9b0c7f955..ae89fdf2e3c1 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/VirtualClustersRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/VirtualClustersRestOperations.cs @@ -37,6 +37,17 @@ public VirtualClustersRestOperations(HttpPipeline pipeline, string applicationId _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Sql/virtualClusters", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,19 @@ public Response List(string subscriptionId, Cancellati } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.Sql/virtualClusters", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -177,6 +201,20 @@ public Response ListByResourceGroup(string subscriptio } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string virtualClusterName) + { + 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.Sql/virtualClusters/", false); + uri.AppendPath(virtualClusterName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string virtualClusterName) { var message = _pipeline.CreateMessage(); @@ -259,6 +297,20 @@ public Response Get(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string virtualClusterName) + { + 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.Sql/virtualClusters/", false); + uri.AppendPath(virtualClusterName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string virtualClusterName) { var message = _pipeline.CreateMessage(); @@ -330,6 +382,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string v } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string virtualClusterName, VirtualClusterPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/virtualClusters/", false); + uri.AppendPath(virtualClusterName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string virtualClusterName, VirtualClusterPatch patch) { var message = _pipeline.CreateMessage(); @@ -408,6 +474,21 @@ public Response Update(string subscriptionId, string resourceGroupName, string v } } + internal RequestUriBuilder CreateUpdateDnsServersRequestUri(string subscriptionId, string resourceGroupName, string virtualClusterName) + { + 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.Sql/virtualClusters/", false); + uri.AppendPath(virtualClusterName, true); + uri.AppendPath("/updateManagedInstanceDnsServers", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateDnsServersRequest(string subscriptionId, string resourceGroupName, string virtualClusterName) { var message = _pipeline.CreateMessage(); @@ -479,6 +560,14 @@ public Response UpdateDnsServers(string subscriptionId, string resourceGroupName } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -547,6 +636,14 @@ public Response ListNextPage(string nextLink, string s } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/VirtualNetworkRulesRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/VirtualNetworkRulesRestOperations.cs index 879b078db9f1..40de29b9ccca 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/VirtualNetworkRulesRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/VirtualNetworkRulesRestOperations.cs @@ -37,6 +37,22 @@ public VirtualNetworkRulesRestOperations(HttpPipeline pipeline, string applicati _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serverName, string virtualNetworkRuleName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/virtualNetworkRules/", false); + uri.AppendPath(virtualNetworkRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serverName, string virtualNetworkRuleName) { var message = _pipeline.CreateMessage(); @@ -125,6 +141,22 @@ public Response Get(string subscriptionId, stri } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serverName, string virtualNetworkRuleName, SqlServerVirtualNetworkRuleData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/virtualNetworkRules/", false); + uri.AppendPath(virtualNetworkRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serverName, string virtualNetworkRuleName, SqlServerVirtualNetworkRuleData data) { var message = _pipeline.CreateMessage(); @@ -211,6 +243,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string serverName, string virtualNetworkRuleName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/virtualNetworkRules/", false); + uri.AppendPath(virtualNetworkRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string serverName, string virtualNetworkRuleName) { var message = _pipeline.CreateMessage(); @@ -288,6 +336,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListByServerRequestUri(string subscriptionId, string resourceGroupName, string serverName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/virtualNetworkRules", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByServerRequest(string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); @@ -367,6 +430,14 @@ public Response ListByServer(string subscriptionId } } + internal RequestUriBuilder CreateListByServerNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serverName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByServerNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serverName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/WorkloadClassifiersRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/WorkloadClassifiersRestOperations.cs index 29a925461914..cfe3753e5a54 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/WorkloadClassifiersRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/WorkloadClassifiersRestOperations.cs @@ -37,6 +37,26 @@ public WorkloadClassifiersRestOperations(HttpPipeline pipeline, string applicati _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string workloadGroupName, string workloadClassifierName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/workloadGroups/", false); + uri.AppendPath(workloadGroupName, true); + uri.AppendPath("/workloadClassifiers/", false); + uri.AppendPath(workloadClassifierName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string workloadGroupName, string workloadClassifierName) { var message = _pipeline.CreateMessage(); @@ -137,6 +157,26 @@ public Response Get(string subscriptionId, string resour } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string workloadGroupName, string workloadClassifierName, WorkloadClassifierData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/workloadGroups/", false); + uri.AppendPath(workloadGroupName, true); + uri.AppendPath("/workloadClassifiers/", false); + uri.AppendPath(workloadClassifierName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string workloadGroupName, string workloadClassifierName, WorkloadClassifierData data) { var message = _pipeline.CreateMessage(); @@ -235,6 +275,26 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string workloadGroupName, string workloadClassifierName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/workloadGroups/", false); + uri.AppendPath(workloadGroupName, true); + uri.AppendPath("/workloadClassifiers/", false); + uri.AppendPath(workloadClassifierName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string workloadGroupName, string workloadClassifierName) { var message = _pipeline.CreateMessage(); @@ -324,6 +384,25 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListByWorkloadGroupRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string workloadGroupName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/workloadGroups/", false); + uri.AppendPath(workloadGroupName, true); + uri.AppendPath("/workloadClassifiers", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByWorkloadGroupRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string workloadGroupName) { var message = _pipeline.CreateMessage(); @@ -415,6 +494,14 @@ public Response ListByWorkloadGroup(string subscri } } + internal RequestUriBuilder CreateListByWorkloadGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serverName, string databaseName, string workloadGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByWorkloadGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serverName, string databaseName, string workloadGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/WorkloadGroupsRestOperations.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/WorkloadGroupsRestOperations.cs index 6d509f32eebd..afe35ddc0557 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/WorkloadGroupsRestOperations.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/WorkloadGroupsRestOperations.cs @@ -37,6 +37,24 @@ public WorkloadGroupsRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string workloadGroupName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/workloadGroups/", false); + uri.AppendPath(workloadGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string workloadGroupName) { var message = _pipeline.CreateMessage(); @@ -131,6 +149,24 @@ public Response Get(string subscriptionId, string resourceGro } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string workloadGroupName, WorkloadGroupData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/workloadGroups/", false); + uri.AppendPath(workloadGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string workloadGroupName, WorkloadGroupData data) { var message = _pipeline.CreateMessage(); @@ -223,6 +259,24 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string workloadGroupName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/workloadGroups/", false); + uri.AppendPath(workloadGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string workloadGroupName) { var message = _pipeline.CreateMessage(); @@ -306,6 +360,23 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListByDatabaseRequestUri(string subscriptionId, string resourceGroupName, string serverName, string databaseName) + { + 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.Sql/servers/", false); + uri.AppendPath(serverName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/workloadGroups", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByDatabaseRequest(string subscriptionId, string resourceGroupName, string serverName, string databaseName) { var message = _pipeline.CreateMessage(); @@ -391,6 +462,14 @@ public Response ListByDatabase(string subscriptionId, s } } + internal RequestUriBuilder CreateListByDatabaseNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string serverName, string databaseName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByDatabaseNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string serverName, string databaseName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlAgentConfigurationResource.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlAgentConfigurationResource.cs index 0da7f1cf182c..1c5384f07981 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlAgentConfigurationResource.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlAgentConfigurationResource.cs @@ -203,7 +203,9 @@ public virtual async Task> CreateOrU try { var response = await _sqlAgentConfigurationSqlAgentRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new SqlArmOperation(Response.FromValue(new SqlAgentConfigurationResource(Client, response), response.GetRawResponse())); + var uri = _sqlAgentConfigurationSqlAgentRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(Response.FromValue(new SqlAgentConfigurationResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -249,7 +251,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUn try { var response = _sqlAgentConfigurationSqlAgentRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, data, cancellationToken); - var operation = new SqlArmOperation(Response.FromValue(new SqlAgentConfigurationResource(Client, response), response.GetRawResponse())); + var uri = _sqlAgentConfigurationSqlAgentRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(Response.FromValue(new SqlAgentConfigurationResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlDatabaseBlobAuditingPolicyCollection.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlDatabaseBlobAuditingPolicyCollection.cs index 5d6624fcfa9b..d6ec8b5753ef 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlDatabaseBlobAuditingPolicyCollection.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlDatabaseBlobAuditingPolicyCollection.cs @@ -89,7 +89,9 @@ public virtual async Task> C try { var response = await _sqlDatabaseBlobAuditingPolicyDatabaseBlobAuditingPoliciesRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, blobAuditingPolicyName, data, cancellationToken).ConfigureAwait(false); - var operation = new SqlArmOperation(Response.FromValue(new SqlDatabaseBlobAuditingPolicyResource(Client, response), response.GetRawResponse())); + var uri = _sqlDatabaseBlobAuditingPolicyDatabaseBlobAuditingPoliciesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, blobAuditingPolicyName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(Response.FromValue(new SqlDatabaseBlobAuditingPolicyResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -136,7 +138,9 @@ public virtual ArmOperation CreateOrUpdat try { var response = _sqlDatabaseBlobAuditingPolicyDatabaseBlobAuditingPoliciesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, blobAuditingPolicyName, data, cancellationToken); - var operation = new SqlArmOperation(Response.FromValue(new SqlDatabaseBlobAuditingPolicyResource(Client, response), response.GetRawResponse())); + var uri = _sqlDatabaseBlobAuditingPolicyDatabaseBlobAuditingPoliciesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, blobAuditingPolicyName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(Response.FromValue(new SqlDatabaseBlobAuditingPolicyResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlDatabaseBlobAuditingPolicyResource.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlDatabaseBlobAuditingPolicyResource.cs index e5899e25a4f2..b4c9367eaa92 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlDatabaseBlobAuditingPolicyResource.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlDatabaseBlobAuditingPolicyResource.cs @@ -206,7 +206,9 @@ public virtual async Task> U try { var response = await _sqlDatabaseBlobAuditingPolicyDatabaseBlobAuditingPoliciesRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new SqlArmOperation(Response.FromValue(new SqlDatabaseBlobAuditingPolicyResource(Client, response), response.GetRawResponse())); + var uri = _sqlDatabaseBlobAuditingPolicyDatabaseBlobAuditingPoliciesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(Response.FromValue(new SqlDatabaseBlobAuditingPolicyResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -252,7 +254,9 @@ public virtual ArmOperation Update(WaitUn try { var response = _sqlDatabaseBlobAuditingPolicyDatabaseBlobAuditingPoliciesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new SqlArmOperation(Response.FromValue(new SqlDatabaseBlobAuditingPolicyResource(Client, response), response.GetRawResponse())); + var uri = _sqlDatabaseBlobAuditingPolicyDatabaseBlobAuditingPoliciesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(Response.FromValue(new SqlDatabaseBlobAuditingPolicyResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlDatabaseSecurityAlertPolicyCollection.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlDatabaseSecurityAlertPolicyCollection.cs index 740e39e512fa..d2e96a10aaf6 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlDatabaseSecurityAlertPolicyCollection.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlDatabaseSecurityAlertPolicyCollection.cs @@ -89,7 +89,9 @@ public virtual async Task> try { var response = await _sqlDatabaseSecurityAlertPolicyDatabaseSecurityAlertPoliciesRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, securityAlertPolicyName, data, cancellationToken).ConfigureAwait(false); - var operation = new SqlArmOperation(Response.FromValue(new SqlDatabaseSecurityAlertPolicyResource(Client, response), response.GetRawResponse())); + var uri = _sqlDatabaseSecurityAlertPolicyDatabaseSecurityAlertPoliciesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, securityAlertPolicyName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(Response.FromValue(new SqlDatabaseSecurityAlertPolicyResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -136,7 +138,9 @@ public virtual ArmOperation CreateOrUpda try { var response = _sqlDatabaseSecurityAlertPolicyDatabaseSecurityAlertPoliciesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, securityAlertPolicyName, data, cancellationToken); - var operation = new SqlArmOperation(Response.FromValue(new SqlDatabaseSecurityAlertPolicyResource(Client, response), response.GetRawResponse())); + var uri = _sqlDatabaseSecurityAlertPolicyDatabaseSecurityAlertPoliciesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, securityAlertPolicyName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(Response.FromValue(new SqlDatabaseSecurityAlertPolicyResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlDatabaseSecurityAlertPolicyResource.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlDatabaseSecurityAlertPolicyResource.cs index 1224368e5ae4..18746e05aa6d 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlDatabaseSecurityAlertPolicyResource.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlDatabaseSecurityAlertPolicyResource.cs @@ -206,7 +206,9 @@ public virtual async Task> try { var response = await _sqlDatabaseSecurityAlertPolicyDatabaseSecurityAlertPoliciesRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new SqlArmOperation(Response.FromValue(new SqlDatabaseSecurityAlertPolicyResource(Client, response), response.GetRawResponse())); + var uri = _sqlDatabaseSecurityAlertPolicyDatabaseSecurityAlertPoliciesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(Response.FromValue(new SqlDatabaseSecurityAlertPolicyResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -252,7 +254,9 @@ public virtual ArmOperation Update(WaitU try { var response = _sqlDatabaseSecurityAlertPolicyDatabaseSecurityAlertPoliciesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new SqlArmOperation(Response.FromValue(new SqlDatabaseSecurityAlertPolicyResource(Client, response), response.GetRawResponse())); + var uri = _sqlDatabaseSecurityAlertPolicyDatabaseSecurityAlertPoliciesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(Response.FromValue(new SqlDatabaseSecurityAlertPolicyResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlDatabaseSensitivityLabelCollection.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlDatabaseSensitivityLabelCollection.cs index 173c51b7bbb0..fdc326c4fe0c 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlDatabaseSensitivityLabelCollection.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlDatabaseSensitivityLabelCollection.cs @@ -85,7 +85,9 @@ public virtual async Task> Cre try { var response = await _sqlDatabaseSensitivityLabelSensitivityLabelsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new SqlArmOperation(Response.FromValue(new SqlDatabaseSensitivityLabelResource(Client, response), response.GetRawResponse())); + var uri = _sqlDatabaseSensitivityLabelSensitivityLabelsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(Response.FromValue(new SqlDatabaseSensitivityLabelResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -131,7 +133,9 @@ public virtual ArmOperation CreateOrUpdate( try { var response = _sqlDatabaseSensitivityLabelSensitivityLabelsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new SqlArmOperation(Response.FromValue(new SqlDatabaseSensitivityLabelResource(Client, response), response.GetRawResponse())); + var uri = _sqlDatabaseSensitivityLabelSensitivityLabelsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(Response.FromValue(new SqlDatabaseSensitivityLabelResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlDatabaseSensitivityLabelResource.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlDatabaseSensitivityLabelResource.cs index 5e278ff6ce0b..78e160b9c095 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlDatabaseSensitivityLabelResource.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlDatabaseSensitivityLabelResource.cs @@ -205,7 +205,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _sqlDatabaseSensitivityLabelSensitivityLabelsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, cancellationToken).ConfigureAwait(false); - var operation = new SqlArmOperation(response); + var uri = _sqlDatabaseSensitivityLabelSensitivityLabelsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -247,7 +249,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _sqlDatabaseSensitivityLabelSensitivityLabelsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, cancellationToken); - var operation = new SqlArmOperation(response); + var uri = _sqlDatabaseSensitivityLabelSensitivityLabelsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -293,7 +297,9 @@ public virtual async Task> Upd try { var response = await _sqlDatabaseSensitivityLabelSensitivityLabelsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new SqlArmOperation(Response.FromValue(new SqlDatabaseSensitivityLabelResource(Client, response), response.GetRawResponse())); + var uri = _sqlDatabaseSensitivityLabelSensitivityLabelsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(Response.FromValue(new SqlDatabaseSensitivityLabelResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -339,7 +345,9 @@ public virtual ArmOperation Update(WaitUnti try { var response = _sqlDatabaseSensitivityLabelSensitivityLabelsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, data, cancellationToken); - var operation = new SqlArmOperation(Response.FromValue(new SqlDatabaseSensitivityLabelResource(Client, response), response.GetRawResponse())); + var uri = _sqlDatabaseSensitivityLabelSensitivityLabelsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(Response.FromValue(new SqlDatabaseSensitivityLabelResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlDatabaseSqlVulnerabilityAssessmentBaselineCollection.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlDatabaseSqlVulnerabilityAssessmentBaselineCollection.cs index 10f90e19b5a6..ba351546f96c 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlDatabaseSqlVulnerabilityAssessmentBaselineCollection.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlDatabaseSqlVulnerabilityAssessmentBaselineCollection.cs @@ -89,7 +89,9 @@ public virtual async Task(Response.FromValue(new SqlDatabaseSqlVulnerabilityAssessmentBaselineResource(Client, response), response.GetRawResponse())); + var uri = _sqlDatabaseSqlVulnerabilityAssessmentBaselineDatabaseSqlVulnerabilityAssessmentBaselinesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, baselineName, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(Response.FromValue(new SqlDatabaseSqlVulnerabilityAssessmentBaselineResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -136,7 +138,9 @@ public virtual ArmOperation(Response.FromValue(new SqlDatabaseSqlVulnerabilityAssessmentBaselineResource(Client, response), response.GetRawResponse())); + var uri = _sqlDatabaseSqlVulnerabilityAssessmentBaselineDatabaseSqlVulnerabilityAssessmentBaselinesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, baselineName, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(Response.FromValue(new SqlDatabaseSqlVulnerabilityAssessmentBaselineResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlDatabaseSqlVulnerabilityAssessmentBaselineResource.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlDatabaseSqlVulnerabilityAssessmentBaselineResource.cs index ccf27b983503..e757f9feac06 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlDatabaseSqlVulnerabilityAssessmentBaselineResource.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlDatabaseSqlVulnerabilityAssessmentBaselineResource.cs @@ -276,7 +276,9 @@ public virtual async Task(Response.FromValue(new SqlDatabaseSqlVulnerabilityAssessmentBaselineResource(Client, response), response.GetRawResponse())); + var uri = _sqlDatabaseSqlVulnerabilityAssessmentBaselineDatabaseSqlVulnerabilityAssessmentBaselinesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(Response.FromValue(new SqlDatabaseSqlVulnerabilityAssessmentBaselineResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -322,7 +324,9 @@ public virtual ArmOperation(Response.FromValue(new SqlDatabaseSqlVulnerabilityAssessmentBaselineResource(Client, response), response.GetRawResponse())); + var uri = _sqlDatabaseSqlVulnerabilityAssessmentBaselineDatabaseSqlVulnerabilityAssessmentBaselinesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(Response.FromValue(new SqlDatabaseSqlVulnerabilityAssessmentBaselineResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlDatabaseSqlVulnerabilityAssessmentBaselineRuleCollection.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlDatabaseSqlVulnerabilityAssessmentBaselineRuleCollection.cs index 3b4ad79fcc01..38872a293424 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlDatabaseSqlVulnerabilityAssessmentBaselineRuleCollection.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlDatabaseSqlVulnerabilityAssessmentBaselineRuleCollection.cs @@ -91,7 +91,9 @@ public virtual async Task(Response.FromValue(new SqlDatabaseSqlVulnerabilityAssessmentBaselineRuleResource(Client, response), response.GetRawResponse())); + var uri = _sqlDatabaseSqlVulnerabilityAssessmentBaselineRuleDatabaseSqlVulnerabilityAssessmentRuleBaselinesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, ruleId, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(Response.FromValue(new SqlDatabaseSqlVulnerabilityAssessmentBaselineRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -140,7 +142,9 @@ public virtual ArmOperation(Response.FromValue(new SqlDatabaseSqlVulnerabilityAssessmentBaselineRuleResource(Client, response), response.GetRawResponse())); + var uri = _sqlDatabaseSqlVulnerabilityAssessmentBaselineRuleDatabaseSqlVulnerabilityAssessmentRuleBaselinesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, ruleId, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(Response.FromValue(new SqlDatabaseSqlVulnerabilityAssessmentBaselineRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlDatabaseSqlVulnerabilityAssessmentBaselineRuleResource.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlDatabaseSqlVulnerabilityAssessmentBaselineRuleResource.cs index 7d23c4660b8c..3b086d040918 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlDatabaseSqlVulnerabilityAssessmentBaselineRuleResource.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlDatabaseSqlVulnerabilityAssessmentBaselineRuleResource.cs @@ -204,7 +204,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _sqlDatabaseSqlVulnerabilityAssessmentBaselineRuleDatabaseSqlVulnerabilityAssessmentRuleBaselinesRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new SqlArmOperation(response); + var uri = _sqlDatabaseSqlVulnerabilityAssessmentBaselineRuleDatabaseSqlVulnerabilityAssessmentRuleBaselinesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -246,7 +248,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _sqlDatabaseSqlVulnerabilityAssessmentBaselineRuleDatabaseSqlVulnerabilityAssessmentRuleBaselinesRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new SqlArmOperation(response); + var uri = _sqlDatabaseSqlVulnerabilityAssessmentBaselineRuleDatabaseSqlVulnerabilityAssessmentRuleBaselinesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -292,7 +296,9 @@ public virtual async Task(Response.FromValue(new SqlDatabaseSqlVulnerabilityAssessmentBaselineRuleResource(Client, response), response.GetRawResponse())); + var uri = _sqlDatabaseSqlVulnerabilityAssessmentBaselineRuleDatabaseSqlVulnerabilityAssessmentRuleBaselinesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(Response.FromValue(new SqlDatabaseSqlVulnerabilityAssessmentBaselineRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -338,7 +344,9 @@ public virtual ArmOperation(Response.FromValue(new SqlDatabaseSqlVulnerabilityAssessmentBaselineRuleResource(Client, response), response.GetRawResponse())); + var uri = _sqlDatabaseSqlVulnerabilityAssessmentBaselineRuleDatabaseSqlVulnerabilityAssessmentRuleBaselinesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(Response.FromValue(new SqlDatabaseSqlVulnerabilityAssessmentBaselineRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlDatabaseVulnerabilityAssessmentCollection.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlDatabaseVulnerabilityAssessmentCollection.cs index 4910df91d413..2830f4cfff9c 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlDatabaseVulnerabilityAssessmentCollection.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlDatabaseVulnerabilityAssessmentCollection.cs @@ -89,7 +89,9 @@ public virtual async Task(Response.FromValue(new SqlDatabaseVulnerabilityAssessmentResource(Client, response), response.GetRawResponse())); + var uri = _sqlDatabaseVulnerabilityAssessmentDatabaseVulnerabilityAssessmentsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, vulnerabilityAssessmentName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(Response.FromValue(new SqlDatabaseVulnerabilityAssessmentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -136,7 +138,9 @@ public virtual ArmOperation CreateOr try { var response = _sqlDatabaseVulnerabilityAssessmentDatabaseVulnerabilityAssessmentsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, vulnerabilityAssessmentName, data, cancellationToken); - var operation = new SqlArmOperation(Response.FromValue(new SqlDatabaseVulnerabilityAssessmentResource(Client, response), response.GetRawResponse())); + var uri = _sqlDatabaseVulnerabilityAssessmentDatabaseVulnerabilityAssessmentsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, vulnerabilityAssessmentName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(Response.FromValue(new SqlDatabaseVulnerabilityAssessmentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlDatabaseVulnerabilityAssessmentResource.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlDatabaseVulnerabilityAssessmentResource.cs index d250d72930b5..b252e110463a 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlDatabaseVulnerabilityAssessmentResource.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlDatabaseVulnerabilityAssessmentResource.cs @@ -342,7 +342,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _sqlDatabaseVulnerabilityAssessmentDatabaseVulnerabilityAssessmentsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new SqlArmOperation(response); + var uri = _sqlDatabaseVulnerabilityAssessmentDatabaseVulnerabilityAssessmentsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -384,7 +386,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _sqlDatabaseVulnerabilityAssessmentDatabaseVulnerabilityAssessmentsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new SqlArmOperation(response); + var uri = _sqlDatabaseVulnerabilityAssessmentDatabaseVulnerabilityAssessmentsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -430,7 +434,9 @@ public virtual async Task(Response.FromValue(new SqlDatabaseVulnerabilityAssessmentResource(Client, response), response.GetRawResponse())); + var uri = _sqlDatabaseVulnerabilityAssessmentDatabaseVulnerabilityAssessmentsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(Response.FromValue(new SqlDatabaseVulnerabilityAssessmentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -476,7 +482,9 @@ public virtual ArmOperation Update(W try { var response = _sqlDatabaseVulnerabilityAssessmentDatabaseVulnerabilityAssessmentsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new SqlArmOperation(Response.FromValue(new SqlDatabaseVulnerabilityAssessmentResource(Client, response), response.GetRawResponse())); + var uri = _sqlDatabaseVulnerabilityAssessmentDatabaseVulnerabilityAssessmentsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(Response.FromValue(new SqlDatabaseVulnerabilityAssessmentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlDatabaseVulnerabilityAssessmentRuleBaselineCollection.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlDatabaseVulnerabilityAssessmentRuleBaselineCollection.cs index e21011b9a7c1..6347c74a9ba0 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlDatabaseVulnerabilityAssessmentRuleBaselineCollection.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlDatabaseVulnerabilityAssessmentRuleBaselineCollection.cs @@ -89,7 +89,9 @@ public virtual async Task(Response.FromValue(new SqlDatabaseVulnerabilityAssessmentRuleBaselineResource(Client, response), response.GetRawResponse())); + var uri = _sqlDatabaseVulnerabilityAssessmentRuleBaselineDatabaseVulnerabilityAssessmentRuleBaselinesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, ruleId, baselineName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(Response.FromValue(new SqlDatabaseVulnerabilityAssessmentRuleBaselineResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation(Response.FromValue(new SqlDatabaseVulnerabilityAssessmentRuleBaselineResource(Client, response), response.GetRawResponse())); + var uri = _sqlDatabaseVulnerabilityAssessmentRuleBaselineDatabaseVulnerabilityAssessmentRuleBaselinesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, ruleId, baselineName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(Response.FromValue(new SqlDatabaseVulnerabilityAssessmentRuleBaselineResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlDatabaseVulnerabilityAssessmentRuleBaselineResource.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlDatabaseVulnerabilityAssessmentRuleBaselineResource.cs index 63322be5f171..60bb7aa2a4ce 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlDatabaseVulnerabilityAssessmentRuleBaselineResource.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlDatabaseVulnerabilityAssessmentRuleBaselineResource.cs @@ -204,7 +204,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _sqlDatabaseVulnerabilityAssessmentRuleBaselineDatabaseVulnerabilityAssessmentRuleBaselinesRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name.ToVulnerabilityAssessmentPolicyBaselineName(), cancellationToken).ConfigureAwait(false); - var operation = new SqlArmOperation(response); + var uri = _sqlDatabaseVulnerabilityAssessmentRuleBaselineDatabaseVulnerabilityAssessmentRuleBaselinesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name.ToVulnerabilityAssessmentPolicyBaselineName()); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -246,7 +248,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _sqlDatabaseVulnerabilityAssessmentRuleBaselineDatabaseVulnerabilityAssessmentRuleBaselinesRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name.ToVulnerabilityAssessmentPolicyBaselineName(), cancellationToken); - var operation = new SqlArmOperation(response); + var uri = _sqlDatabaseVulnerabilityAssessmentRuleBaselineDatabaseVulnerabilityAssessmentRuleBaselinesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name.ToVulnerabilityAssessmentPolicyBaselineName()); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -292,7 +296,9 @@ public virtual async Task(Response.FromValue(new SqlDatabaseVulnerabilityAssessmentRuleBaselineResource(Client, response), response.GetRawResponse())); + var uri = _sqlDatabaseVulnerabilityAssessmentRuleBaselineDatabaseVulnerabilityAssessmentRuleBaselinesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name.ToVulnerabilityAssessmentPolicyBaselineName(), data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(Response.FromValue(new SqlDatabaseVulnerabilityAssessmentRuleBaselineResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -338,7 +344,9 @@ public virtual ArmOperation(Response.FromValue(new SqlDatabaseVulnerabilityAssessmentRuleBaselineResource(Client, response), response.GetRawResponse())); + var uri = _sqlDatabaseVulnerabilityAssessmentRuleBaselineDatabaseVulnerabilityAssessmentRuleBaselinesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name.ToVulnerabilityAssessmentPolicyBaselineName(), data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(Response.FromValue(new SqlDatabaseVulnerabilityAssessmentRuleBaselineResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlFirewallRuleCollection.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlFirewallRuleCollection.cs index bf621553fb64..5c92807b1f50 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlFirewallRuleCollection.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlFirewallRuleCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> CreateOrUpdateA try { var response = await _sqlFirewallRuleFirewallRulesRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, firewallRuleName, data, cancellationToken).ConfigureAwait(false); - var operation = new SqlArmOperation(Response.FromValue(new SqlFirewallRuleResource(Client, response), response.GetRawResponse())); + var uri = _sqlFirewallRuleFirewallRulesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, firewallRuleName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(Response.FromValue(new SqlFirewallRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wa try { var response = _sqlFirewallRuleFirewallRulesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, firewallRuleName, data, cancellationToken); - var operation = new SqlArmOperation(Response.FromValue(new SqlFirewallRuleResource(Client, response), response.GetRawResponse())); + var uri = _sqlFirewallRuleFirewallRulesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, firewallRuleName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(Response.FromValue(new SqlFirewallRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlFirewallRuleResource.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlFirewallRuleResource.cs index cd8b0cfbe6de..cd640e681507 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlFirewallRuleResource.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlFirewallRuleResource.cs @@ -200,7 +200,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _sqlFirewallRuleFirewallRulesRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new SqlArmOperation(response); + var uri = _sqlFirewallRuleFirewallRulesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -242,7 +244,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _sqlFirewallRuleFirewallRulesRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new SqlArmOperation(response); + var uri = _sqlFirewallRuleFirewallRulesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -288,7 +292,9 @@ public virtual async Task> UpdateAsync(Wai try { var response = await _sqlFirewallRuleFirewallRulesRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new SqlArmOperation(Response.FromValue(new SqlFirewallRuleResource(Client, response), response.GetRawResponse())); + var uri = _sqlFirewallRuleFirewallRulesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(Response.FromValue(new SqlFirewallRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -334,7 +340,9 @@ public virtual ArmOperation Update(WaitUntil waitUntil, try { var response = _sqlFirewallRuleFirewallRulesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new SqlArmOperation(Response.FromValue(new SqlFirewallRuleResource(Client, response), response.GetRawResponse())); + var uri = _sqlFirewallRuleFirewallRulesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(Response.FromValue(new SqlFirewallRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerCommunicationLinkResource.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerCommunicationLinkResource.cs index 0351ff4917a3..6a995017b257 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerCommunicationLinkResource.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerCommunicationLinkResource.cs @@ -200,7 +200,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _sqlServerCommunicationLinkServerCommunicationLinksRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new SqlArmOperation(response); + var uri = _sqlServerCommunicationLinkServerCommunicationLinksRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -242,7 +244,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _sqlServerCommunicationLinkServerCommunicationLinksRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new SqlArmOperation(response); + var uri = _sqlServerCommunicationLinkServerCommunicationLinksRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerDatabaseRestorePointResource.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerDatabaseRestorePointResource.cs index 183bffa55e65..4b7d8eb7504b 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerDatabaseRestorePointResource.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerDatabaseRestorePointResource.cs @@ -201,7 +201,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _sqlServerDatabaseRestorePointRestorePointsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new SqlArmOperation(response); + var uri = _sqlServerDatabaseRestorePointRestorePointsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -243,7 +245,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _sqlServerDatabaseRestorePointRestorePointsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new SqlArmOperation(response); + var uri = _sqlServerDatabaseRestorePointRestorePointsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerJobCollection.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerJobCollection.cs index f42705535782..3aa8e8dcc8c0 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerJobCollection.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerJobCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> CreateOrUpdateAsyn try { var response = await _sqlServerJobJobsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, jobName, data, cancellationToken).ConfigureAwait(false); - var operation = new SqlArmOperation(Response.FromValue(new SqlServerJobResource(Client, response), response.GetRawResponse())); + var uri = _sqlServerJobJobsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, jobName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(Response.FromValue(new SqlServerJobResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitU try { var response = _sqlServerJobJobsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, jobName, data, cancellationToken); - var operation = new SqlArmOperation(Response.FromValue(new SqlServerJobResource(Client, response), response.GetRawResponse())); + var uri = _sqlServerJobJobsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, jobName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(Response.FromValue(new SqlServerJobResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerJobCredentialCollection.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerJobCredentialCollection.cs index 8e3611c39b42..cf67513ae002 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerJobCredentialCollection.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerJobCredentialCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> CreateOr try { var response = await _sqlServerJobCredentialJobCredentialsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, credentialName, data, cancellationToken).ConfigureAwait(false); - var operation = new SqlArmOperation(Response.FromValue(new SqlServerJobCredentialResource(Client, response), response.GetRawResponse())); + var uri = _sqlServerJobCredentialJobCredentialsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, credentialName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(Response.FromValue(new SqlServerJobCredentialResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(WaitU try { var response = _sqlServerJobCredentialJobCredentialsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, credentialName, data, cancellationToken); - var operation = new SqlArmOperation(Response.FromValue(new SqlServerJobCredentialResource(Client, response), response.GetRawResponse())); + var uri = _sqlServerJobCredentialJobCredentialsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, credentialName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(Response.FromValue(new SqlServerJobCredentialResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerJobCredentialResource.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerJobCredentialResource.cs index a9315c097de1..a478a6354ebb 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerJobCredentialResource.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerJobCredentialResource.cs @@ -201,7 +201,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _sqlServerJobCredentialJobCredentialsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new SqlArmOperation(response); + var uri = _sqlServerJobCredentialJobCredentialsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -243,7 +245,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _sqlServerJobCredentialJobCredentialsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new SqlArmOperation(response); + var uri = _sqlServerJobCredentialJobCredentialsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -289,7 +293,9 @@ public virtual async Task> UpdateAs try { var response = await _sqlServerJobCredentialJobCredentialsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new SqlArmOperation(Response.FromValue(new SqlServerJobCredentialResource(Client, response), response.GetRawResponse())); + var uri = _sqlServerJobCredentialJobCredentialsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(Response.FromValue(new SqlServerJobCredentialResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -335,7 +341,9 @@ public virtual ArmOperation Update(WaitUntil wai try { var response = _sqlServerJobCredentialJobCredentialsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new SqlArmOperation(Response.FromValue(new SqlServerJobCredentialResource(Client, response), response.GetRawResponse())); + var uri = _sqlServerJobCredentialJobCredentialsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(Response.FromValue(new SqlServerJobCredentialResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerJobResource.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerJobResource.cs index 8db6af2dfc25..d71b573123fe 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerJobResource.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerJobResource.cs @@ -405,7 +405,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _sqlServerJobJobsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new SqlArmOperation(response); + var uri = _sqlServerJobJobsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -447,7 +449,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _sqlServerJobJobsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new SqlArmOperation(response); + var uri = _sqlServerJobJobsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -493,7 +497,9 @@ public virtual async Task> UpdateAsync(WaitUn try { var response = await _sqlServerJobJobsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new SqlArmOperation(Response.FromValue(new SqlServerJobResource(Client, response), response.GetRawResponse())); + var uri = _sqlServerJobJobsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(Response.FromValue(new SqlServerJobResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -539,7 +545,9 @@ public virtual ArmOperation Update(WaitUntil waitUntil, Sq try { var response = _sqlServerJobJobsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new SqlArmOperation(Response.FromValue(new SqlServerJobResource(Client, response), response.GetRawResponse())); + var uri = _sqlServerJobJobsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(Response.FromValue(new SqlServerJobResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerJobStepCollection.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerJobStepCollection.cs index eaebba4a4756..a8195516ec95 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerJobStepCollection.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerJobStepCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> CreateOrUpdate try { var response = await _sqlServerJobStepJobStepsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, stepName, data, cancellationToken).ConfigureAwait(false); - var operation = new SqlArmOperation(Response.FromValue(new SqlServerJobStepResource(Client, response), response.GetRawResponse())); + var uri = _sqlServerJobStepJobStepsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, stepName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(Response.FromValue(new SqlServerJobStepResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil w try { var response = _sqlServerJobStepJobStepsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, stepName, data, cancellationToken); - var operation = new SqlArmOperation(Response.FromValue(new SqlServerJobStepResource(Client, response), response.GetRawResponse())); + var uri = _sqlServerJobStepJobStepsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, stepName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(Response.FromValue(new SqlServerJobStepResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerJobStepResource.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerJobStepResource.cs index 3390f6b79a7f..fa838228bc69 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerJobStepResource.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerJobStepResource.cs @@ -202,7 +202,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _sqlServerJobStepJobStepsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new SqlArmOperation(response); + var uri = _sqlServerJobStepJobStepsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -244,7 +246,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _sqlServerJobStepJobStepsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new SqlArmOperation(response); + var uri = _sqlServerJobStepJobStepsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -290,7 +294,9 @@ public virtual async Task> UpdateAsync(Wa try { var response = await _sqlServerJobStepJobStepsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new SqlArmOperation(Response.FromValue(new SqlServerJobStepResource(Client, response), response.GetRawResponse())); + var uri = _sqlServerJobStepJobStepsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(Response.FromValue(new SqlServerJobStepResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -336,7 +342,9 @@ public virtual ArmOperation Update(WaitUntil waitUntil try { var response = _sqlServerJobStepJobStepsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new SqlArmOperation(Response.FromValue(new SqlServerJobStepResource(Client, response), response.GetRawResponse())); + var uri = _sqlServerJobStepJobStepsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(Response.FromValue(new SqlServerJobStepResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerJobTargetGroupCollection.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerJobTargetGroupCollection.cs index 3a76b7f2bef2..1ba51c7934ec 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerJobTargetGroupCollection.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerJobTargetGroupCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> CreateO try { var response = await _sqlServerJobTargetGroupJobTargetGroupsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, targetGroupName, data, cancellationToken).ConfigureAwait(false); - var operation = new SqlArmOperation(Response.FromValue(new SqlServerJobTargetGroupResource(Client, response), response.GetRawResponse())); + var uri = _sqlServerJobTargetGroupJobTargetGroupsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, targetGroupName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(Response.FromValue(new SqlServerJobTargetGroupResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(Wait try { var response = _sqlServerJobTargetGroupJobTargetGroupsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, targetGroupName, data, cancellationToken); - var operation = new SqlArmOperation(Response.FromValue(new SqlServerJobTargetGroupResource(Client, response), response.GetRawResponse())); + var uri = _sqlServerJobTargetGroupJobTargetGroupsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, targetGroupName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(Response.FromValue(new SqlServerJobTargetGroupResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerJobTargetGroupResource.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerJobTargetGroupResource.cs index 480dd0992e58..edd0f620b0ef 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerJobTargetGroupResource.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerJobTargetGroupResource.cs @@ -201,7 +201,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _sqlServerJobTargetGroupJobTargetGroupsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new SqlArmOperation(response); + var uri = _sqlServerJobTargetGroupJobTargetGroupsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -243,7 +245,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _sqlServerJobTargetGroupJobTargetGroupsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new SqlArmOperation(response); + var uri = _sqlServerJobTargetGroupJobTargetGroupsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -289,7 +293,9 @@ public virtual async Task> UpdateA try { var response = await _sqlServerJobTargetGroupJobTargetGroupsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new SqlArmOperation(Response.FromValue(new SqlServerJobTargetGroupResource(Client, response), response.GetRawResponse())); + var uri = _sqlServerJobTargetGroupJobTargetGroupsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(Response.FromValue(new SqlServerJobTargetGroupResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -335,7 +341,9 @@ public virtual ArmOperation Update(WaitUntil wa try { var response = _sqlServerJobTargetGroupJobTargetGroupsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new SqlArmOperation(Response.FromValue(new SqlServerJobTargetGroupResource(Client, response), response.GetRawResponse())); + var uri = _sqlServerJobTargetGroupJobTargetGroupsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(Response.FromValue(new SqlServerJobTargetGroupResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerSqlVulnerabilityAssessmentBaselineCollection.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerSqlVulnerabilityAssessmentBaselineCollection.cs index 91b6109149e4..bff09356c004 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerSqlVulnerabilityAssessmentBaselineCollection.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerSqlVulnerabilityAssessmentBaselineCollection.cs @@ -94,7 +94,9 @@ public virtual async Task(Response.FromValue(new SqlServerSqlVulnerabilityAssessmentBaselineResource(Client, response), response.GetRawResponse())); + var uri = _sqlServerSqlVulnerabilityAssessmentBaselineSqlVulnerabilityAssessmentBaselinesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, baselineName, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(Response.FromValue(new SqlServerSqlVulnerabilityAssessmentBaselineResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -141,7 +143,9 @@ public virtual ArmOperation try { var response = _sqlServerSqlVulnerabilityAssessmentBaselineSqlVulnerabilityAssessmentBaselinesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, baselineName, content, cancellationToken); - var operation = new SqlArmOperation(Response.FromValue(new SqlServerSqlVulnerabilityAssessmentBaselineResource(Client, response), response.GetRawResponse())); + var uri = _sqlServerSqlVulnerabilityAssessmentBaselineSqlVulnerabilityAssessmentBaselinesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, baselineName, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(Response.FromValue(new SqlServerSqlVulnerabilityAssessmentBaselineResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerSqlVulnerabilityAssessmentBaselineResource.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerSqlVulnerabilityAssessmentBaselineResource.cs index ff4724d11dc0..a589a57b13a1 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerSqlVulnerabilityAssessmentBaselineResource.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerSqlVulnerabilityAssessmentBaselineResource.cs @@ -280,7 +280,9 @@ public virtual async Task(Response.FromValue(new SqlServerSqlVulnerabilityAssessmentBaselineResource(Client, response), response.GetRawResponse())); + var uri = _sqlServerSqlVulnerabilityAssessmentBaselineSqlVulnerabilityAssessmentBaselinesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(Response.FromValue(new SqlServerSqlVulnerabilityAssessmentBaselineResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -326,7 +328,9 @@ public virtual ArmOperation try { var response = _sqlServerSqlVulnerabilityAssessmentBaselineSqlVulnerabilityAssessmentBaselinesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content, cancellationToken); - var operation = new SqlArmOperation(Response.FromValue(new SqlServerSqlVulnerabilityAssessmentBaselineResource(Client, response), response.GetRawResponse())); + var uri = _sqlServerSqlVulnerabilityAssessmentBaselineSqlVulnerabilityAssessmentBaselinesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(Response.FromValue(new SqlServerSqlVulnerabilityAssessmentBaselineResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerSqlVulnerabilityAssessmentBaselineRuleCollection.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerSqlVulnerabilityAssessmentBaselineRuleCollection.cs index b771b976ee1c..7d476fdaeaf1 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerSqlVulnerabilityAssessmentBaselineRuleCollection.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerSqlVulnerabilityAssessmentBaselineRuleCollection.cs @@ -91,7 +91,9 @@ public virtual async Task(Response.FromValue(new SqlServerSqlVulnerabilityAssessmentBaselineRuleResource(Client, response), response.GetRawResponse())); + var uri = _sqlServerSqlVulnerabilityAssessmentBaselineRuleSqlVulnerabilityAssessmentRuleBaselineRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, ruleId, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(Response.FromValue(new SqlServerSqlVulnerabilityAssessmentBaselineRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -140,7 +142,9 @@ public virtual ArmOperation(Response.FromValue(new SqlServerSqlVulnerabilityAssessmentBaselineRuleResource(Client, response), response.GetRawResponse())); + var uri = _sqlServerSqlVulnerabilityAssessmentBaselineRuleSqlVulnerabilityAssessmentRuleBaselineRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, ruleId, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(Response.FromValue(new SqlServerSqlVulnerabilityAssessmentBaselineRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerSqlVulnerabilityAssessmentBaselineRuleResource.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerSqlVulnerabilityAssessmentBaselineRuleResource.cs index 6ab779dd9f55..05c5d59f86f7 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerSqlVulnerabilityAssessmentBaselineRuleResource.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerSqlVulnerabilityAssessmentBaselineRuleResource.cs @@ -208,7 +208,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _sqlServerSqlVulnerabilityAssessmentBaselineRuleSqlVulnerabilityAssessmentRuleBaselinesRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new SqlArmOperation(response); + var uri = _sqlServerSqlVulnerabilityAssessmentBaselineRuleSqlVulnerabilityAssessmentRuleBaselinesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -250,7 +252,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _sqlServerSqlVulnerabilityAssessmentBaselineRuleSqlVulnerabilityAssessmentRuleBaselinesRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new SqlArmOperation(response); + var uri = _sqlServerSqlVulnerabilityAssessmentBaselineRuleSqlVulnerabilityAssessmentRuleBaselinesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -296,7 +300,9 @@ public virtual async Task(Response.FromValue(new SqlServerSqlVulnerabilityAssessmentBaselineRuleResource(Client, response), response.GetRawResponse())); + var uri = _sqlServerSqlVulnerabilityAssessmentBaselineRuleSqlVulnerabilityAssessmentRuleBaselineRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(Response.FromValue(new SqlServerSqlVulnerabilityAssessmentBaselineRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -342,7 +348,9 @@ public virtual ArmOperation(Response.FromValue(new SqlServerSqlVulnerabilityAssessmentBaselineRuleResource(Client, response), response.GetRawResponse())); + var uri = _sqlServerSqlVulnerabilityAssessmentBaselineRuleSqlVulnerabilityAssessmentRuleBaselineRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(Response.FromValue(new SqlServerSqlVulnerabilityAssessmentBaselineRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerSqlVulnerabilityAssessmentCollection.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerSqlVulnerabilityAssessmentCollection.cs index 648549e6353e..27b34e65244d 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerSqlVulnerabilityAssessmentCollection.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerSqlVulnerabilityAssessmentCollection.cs @@ -89,7 +89,9 @@ public virtual async Task(Response.FromValue(new SqlServerSqlVulnerabilityAssessmentResource(Client, response), response.GetRawResponse())); + var uri = _sqlServerSqlVulnerabilityAssessmentSqlVulnerabilityAssessmentsSettingsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, vulnerabilityAssessmentName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(Response.FromValue(new SqlServerSqlVulnerabilityAssessmentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -136,7 +138,9 @@ public virtual ArmOperation CreateO try { var response = _sqlServerSqlVulnerabilityAssessmentSqlVulnerabilityAssessmentsSettingsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, vulnerabilityAssessmentName, data, cancellationToken); - var operation = new SqlArmOperation(Response.FromValue(new SqlServerSqlVulnerabilityAssessmentResource(Client, response), response.GetRawResponse())); + var uri = _sqlServerSqlVulnerabilityAssessmentSqlVulnerabilityAssessmentsSettingsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, vulnerabilityAssessmentName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(Response.FromValue(new SqlServerSqlVulnerabilityAssessmentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerSqlVulnerabilityAssessmentResource.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerSqlVulnerabilityAssessmentResource.cs index f314bff61546..984dc59be7f4 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerSqlVulnerabilityAssessmentResource.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerSqlVulnerabilityAssessmentResource.cs @@ -344,7 +344,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _sqlServerSqlVulnerabilityAssessmentSqlVulnerabilityAssessmentsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new SqlArmOperation(response); + var uri = _sqlServerSqlVulnerabilityAssessmentSqlVulnerabilityAssessmentsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -386,7 +388,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _sqlServerSqlVulnerabilityAssessmentSqlVulnerabilityAssessmentsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new SqlArmOperation(response); + var uri = _sqlServerSqlVulnerabilityAssessmentSqlVulnerabilityAssessmentsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -432,7 +436,9 @@ public virtual async Task(Response.FromValue(new SqlServerSqlVulnerabilityAssessmentResource(Client, response), response.GetRawResponse())); + var uri = _sqlServerSqlVulnerabilityAssessmentSqlVulnerabilityAssessmentsSettingsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(Response.FromValue(new SqlServerSqlVulnerabilityAssessmentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -478,7 +484,9 @@ public virtual ArmOperation Update( try { var response = _sqlServerSqlVulnerabilityAssessmentSqlVulnerabilityAssessmentsSettingsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new SqlArmOperation(Response.FromValue(new SqlServerSqlVulnerabilityAssessmentResource(Client, response), response.GetRawResponse())); + var uri = _sqlServerSqlVulnerabilityAssessmentSqlVulnerabilityAssessmentsSettingsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(Response.FromValue(new SqlServerSqlVulnerabilityAssessmentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerVulnerabilityAssessmentCollection.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerVulnerabilityAssessmentCollection.cs index 2887dc8b3914..659a5d879463 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerVulnerabilityAssessmentCollection.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerVulnerabilityAssessmentCollection.cs @@ -89,7 +89,9 @@ public virtual async Task try { var response = await _sqlServerVulnerabilityAssessmentServerVulnerabilityAssessmentsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, vulnerabilityAssessmentName, data, cancellationToken).ConfigureAwait(false); - var operation = new SqlArmOperation(Response.FromValue(new SqlServerVulnerabilityAssessmentResource(Client, response), response.GetRawResponse())); + var uri = _sqlServerVulnerabilityAssessmentServerVulnerabilityAssessmentsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, vulnerabilityAssessmentName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(Response.FromValue(new SqlServerVulnerabilityAssessmentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -136,7 +138,9 @@ public virtual ArmOperation CreateOrUp try { var response = _sqlServerVulnerabilityAssessmentServerVulnerabilityAssessmentsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, vulnerabilityAssessmentName, data, cancellationToken); - var operation = new SqlArmOperation(Response.FromValue(new SqlServerVulnerabilityAssessmentResource(Client, response), response.GetRawResponse())); + var uri = _sqlServerVulnerabilityAssessmentServerVulnerabilityAssessmentsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, vulnerabilityAssessmentName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(Response.FromValue(new SqlServerVulnerabilityAssessmentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerVulnerabilityAssessmentResource.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerVulnerabilityAssessmentResource.cs index b9559b46e6b8..742a2847fc27 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerVulnerabilityAssessmentResource.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerVulnerabilityAssessmentResource.cs @@ -201,7 +201,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _sqlServerVulnerabilityAssessmentServerVulnerabilityAssessmentsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new SqlArmOperation(response); + var uri = _sqlServerVulnerabilityAssessmentServerVulnerabilityAssessmentsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -243,7 +245,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _sqlServerVulnerabilityAssessmentServerVulnerabilityAssessmentsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new SqlArmOperation(response); + var uri = _sqlServerVulnerabilityAssessmentServerVulnerabilityAssessmentsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -289,7 +293,9 @@ public virtual async Task try { var response = await _sqlServerVulnerabilityAssessmentServerVulnerabilityAssessmentsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new SqlArmOperation(Response.FromValue(new SqlServerVulnerabilityAssessmentResource(Client, response), response.GetRawResponse())); + var uri = _sqlServerVulnerabilityAssessmentServerVulnerabilityAssessmentsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(Response.FromValue(new SqlServerVulnerabilityAssessmentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -335,7 +341,9 @@ public virtual ArmOperation Update(Wai try { var response = _sqlServerVulnerabilityAssessmentServerVulnerabilityAssessmentsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new SqlArmOperation(Response.FromValue(new SqlServerVulnerabilityAssessmentResource(Client, response), response.GetRawResponse())); + var uri = _sqlServerVulnerabilityAssessmentServerVulnerabilityAssessmentsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SqlArmOperation(Response.FromValue(new SqlServerVulnerabilityAssessmentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/sqlvirtualmachine/Azure.ResourceManager.SqlVirtualMachine/src/Generated/LongRunningOperation/SqlVirtualMachineArmOperation.cs b/sdk/sqlvirtualmachine/Azure.ResourceManager.SqlVirtualMachine/src/Generated/LongRunningOperation/SqlVirtualMachineArmOperation.cs index 9f91a5852b53..e6efda6541c9 100644 --- a/sdk/sqlvirtualmachine/Azure.ResourceManager.SqlVirtualMachine/src/Generated/LongRunningOperation/SqlVirtualMachineArmOperation.cs +++ b/sdk/sqlvirtualmachine/Azure.ResourceManager.SqlVirtualMachine/src/Generated/LongRunningOperation/SqlVirtualMachineArmOperation.cs @@ -20,21 +20,24 @@ internal class SqlVirtualMachineArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of SqlVirtualMachineArmOperation for mocking. protected SqlVirtualMachineArmOperation() { } - internal SqlVirtualMachineArmOperation(Response response) + internal SqlVirtualMachineArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal SqlVirtualMachineArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "SqlVirtualMachineArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal SqlVirtualMachineArmOperation(ClientDiagnostics clientDiagnostics, Http public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/sqlvirtualmachine/Azure.ResourceManager.SqlVirtualMachine/src/Generated/LongRunningOperation/SqlVirtualMachineArmOperationOfT.cs b/sdk/sqlvirtualmachine/Azure.ResourceManager.SqlVirtualMachine/src/Generated/LongRunningOperation/SqlVirtualMachineArmOperationOfT.cs index 4ab3c86d5f3e..6f5eeb2b0f50 100644 --- a/sdk/sqlvirtualmachine/Azure.ResourceManager.SqlVirtualMachine/src/Generated/LongRunningOperation/SqlVirtualMachineArmOperationOfT.cs +++ b/sdk/sqlvirtualmachine/Azure.ResourceManager.SqlVirtualMachine/src/Generated/LongRunningOperation/SqlVirtualMachineArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class SqlVirtualMachineArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of SqlVirtualMachineArmOperation for mocking. protected SqlVirtualMachineArmOperation() { } - internal SqlVirtualMachineArmOperation(Response response) + internal SqlVirtualMachineArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal SqlVirtualMachineArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "SqlVirtualMachineArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal SqlVirtualMachineArmOperation(IOperationSource source, ClientDiagnos public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/sqlvirtualmachine/Azure.ResourceManager.SqlVirtualMachine/src/Generated/Models/AvailabilityGroupListenerResource.Serialization.cs b/sdk/sqlvirtualmachine/Azure.ResourceManager.SqlVirtualMachine/src/Generated/Models/AvailabilityGroupListenerResource.Serialization.cs new file mode 100644 index 000000000000..1959f118feaa --- /dev/null +++ b/sdk/sqlvirtualmachine/Azure.ResourceManager.SqlVirtualMachine/src/Generated/Models/AvailabilityGroupListenerResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.SqlVirtualMachine +{ + public partial class AvailabilityGroupListenerResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + AvailabilityGroupListenerData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + AvailabilityGroupListenerData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlvirtualmachine/Azure.ResourceManager.SqlVirtualMachine/src/Generated/Models/SqlVmGroupResource.Serialization.cs b/sdk/sqlvirtualmachine/Azure.ResourceManager.SqlVirtualMachine/src/Generated/Models/SqlVmGroupResource.Serialization.cs new file mode 100644 index 000000000000..8dcc9ecd8c85 --- /dev/null +++ b/sdk/sqlvirtualmachine/Azure.ResourceManager.SqlVirtualMachine/src/Generated/Models/SqlVmGroupResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.SqlVirtualMachine +{ + public partial class SqlVmGroupResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SqlVmGroupData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SqlVmGroupData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlvirtualmachine/Azure.ResourceManager.SqlVirtualMachine/src/Generated/Models/SqlVmResource.Serialization.cs b/sdk/sqlvirtualmachine/Azure.ResourceManager.SqlVirtualMachine/src/Generated/Models/SqlVmResource.Serialization.cs new file mode 100644 index 000000000000..16b3aafee104 --- /dev/null +++ b/sdk/sqlvirtualmachine/Azure.ResourceManager.SqlVirtualMachine/src/Generated/Models/SqlVmResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.SqlVirtualMachine +{ + public partial class SqlVmResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SqlVmData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SqlVmData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/sqlvirtualmachine/Azure.ResourceManager.SqlVirtualMachine/src/Generated/RestOperations/AvailabilityGroupListenersRestOperations.cs b/sdk/sqlvirtualmachine/Azure.ResourceManager.SqlVirtualMachine/src/Generated/RestOperations/AvailabilityGroupListenersRestOperations.cs index 0b97c4882694..c6de1b6649cb 100644 --- a/sdk/sqlvirtualmachine/Azure.ResourceManager.SqlVirtualMachine/src/Generated/RestOperations/AvailabilityGroupListenersRestOperations.cs +++ b/sdk/sqlvirtualmachine/Azure.ResourceManager.SqlVirtualMachine/src/Generated/RestOperations/AvailabilityGroupListenersRestOperations.cs @@ -37,6 +37,26 @@ public AvailabilityGroupListenersRestOperations(HttpPipeline pipeline, string ap _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string sqlVmGroupName, string availabilityGroupListenerName, string expand) + { + 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.SqlVirtualMachine/sqlVirtualMachineGroups/", false); + uri.AppendPath(sqlVmGroupName, true); + uri.AppendPath("/availabilityGroupListeners/", false); + uri.AppendPath(availabilityGroupListenerName, true); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string sqlVmGroupName, string availabilityGroupListenerName, string expand) { var message = _pipeline.CreateMessage(); @@ -131,6 +151,22 @@ public Response Get(string subscriptionId, string } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string sqlVmGroupName, string availabilityGroupListenerName, AvailabilityGroupListenerData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/", false); + uri.AppendPath(sqlVmGroupName, true); + uri.AppendPath("/availabilityGroupListeners/", false); + uri.AppendPath(availabilityGroupListenerName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string sqlVmGroupName, string availabilityGroupListenerName, AvailabilityGroupListenerData data) { var message = _pipeline.CreateMessage(); @@ -215,6 +251,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string sqlVmGroupName, string availabilityGroupListenerName) + { + 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.SqlVirtualMachine/sqlVirtualMachineGroups/", false); + uri.AppendPath(sqlVmGroupName, true); + uri.AppendPath("/availabilityGroupListeners/", false); + uri.AppendPath(availabilityGroupListenerName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string sqlVmGroupName, string availabilityGroupListenerName) { var message = _pipeline.CreateMessage(); @@ -292,6 +344,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListByGroupRequestUri(string subscriptionId, string resourceGroupName, string sqlVmGroupName) + { + 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.SqlVirtualMachine/sqlVirtualMachineGroups/", false); + uri.AppendPath(sqlVmGroupName, true); + uri.AppendPath("/availabilityGroupListeners", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByGroupRequest(string subscriptionId, string resourceGroupName, string sqlVmGroupName) { var message = _pipeline.CreateMessage(); @@ -371,6 +438,14 @@ public Response ListByGroup(string subscrip } } + internal RequestUriBuilder CreateListByGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string sqlVmGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string sqlVmGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlvirtualmachine/Azure.ResourceManager.SqlVirtualMachine/src/Generated/RestOperations/SqlVirtualMachineGroupsRestOperations.cs b/sdk/sqlvirtualmachine/Azure.ResourceManager.SqlVirtualMachine/src/Generated/RestOperations/SqlVirtualMachineGroupsRestOperations.cs index 0d21a172edc1..51f4c9325579 100644 --- a/sdk/sqlvirtualmachine/Azure.ResourceManager.SqlVirtualMachine/src/Generated/RestOperations/SqlVirtualMachineGroupsRestOperations.cs +++ b/sdk/sqlvirtualmachine/Azure.ResourceManager.SqlVirtualMachine/src/Generated/RestOperations/SqlVirtualMachineGroupsRestOperations.cs @@ -37,6 +37,20 @@ public SqlVirtualMachineGroupsRestOperations(HttpPipeline pipeline, string appli _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string sqlVmGroupName) + { + 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.SqlVirtualMachine/sqlVirtualMachineGroups/", false); + uri.AppendPath(sqlVmGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string sqlVmGroupName) { var message = _pipeline.CreateMessage(); @@ -119,6 +133,20 @@ public Response Get(string subscriptionId, string resourceGroupN } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string sqlVmGroupName, SqlVmGroupData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/", false); + uri.AppendPath(sqlVmGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string sqlVmGroupName, SqlVmGroupData data) { var message = _pipeline.CreateMessage(); @@ -197,6 +225,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string sqlVmGroupName) + { + 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.SqlVirtualMachine/sqlVirtualMachineGroups/", false); + uri.AppendPath(sqlVmGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string sqlVmGroupName) { var message = _pipeline.CreateMessage(); @@ -268,6 +310,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string sqlVmGroupName, SqlVmGroupPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/", false); + uri.AppendPath(sqlVmGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string sqlVmGroupName, SqlVmGroupPatch patch) { var message = _pipeline.CreateMessage(); @@ -344,6 +400,19 @@ public Response Update(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.SqlVirtualMachine/sqlVirtualMachineGroups", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -417,6 +486,17 @@ public Response ListByResourceGroup(string subscriptionId, } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -484,6 +564,14 @@ public Response List(string subscriptionId, CancellationTo } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -556,6 +644,14 @@ public Response ListByResourceGroupNextPage(string nextLin } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/sqlvirtualmachine/Azure.ResourceManager.SqlVirtualMachine/src/Generated/RestOperations/SqlVirtualMachinesRestOperations.cs b/sdk/sqlvirtualmachine/Azure.ResourceManager.SqlVirtualMachine/src/Generated/RestOperations/SqlVirtualMachinesRestOperations.cs index 8956d112a0a5..c8d10c24403d 100644 --- a/sdk/sqlvirtualmachine/Azure.ResourceManager.SqlVirtualMachine/src/Generated/RestOperations/SqlVirtualMachinesRestOperations.cs +++ b/sdk/sqlvirtualmachine/Azure.ResourceManager.SqlVirtualMachine/src/Generated/RestOperations/SqlVirtualMachinesRestOperations.cs @@ -37,6 +37,21 @@ public SqlVirtualMachinesRestOperations(HttpPipeline pipeline, string applicatio _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListBySqlVmGroupRequestUri(string subscriptionId, string resourceGroupName, string sqlVmGroupName) + { + 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.SqlVirtualMachine/sqlVirtualMachineGroups/", false); + uri.AppendPath(sqlVmGroupName, true); + uri.AppendPath("/sqlVirtualMachines", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySqlVmGroupRequest(string subscriptionId, string resourceGroupName, string sqlVmGroupName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,17 @@ public Response ListBySqlVmGroup(string subscriptionId, string } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -183,6 +209,24 @@ public Response List(string subscriptionId, CancellationToken c } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string sqlVmName, string expand) + { + 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.SqlVirtualMachine/sqlVirtualMachines/", false); + uri.AppendPath(sqlVmName, true); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string sqlVmName, string expand) { var message = _pipeline.CreateMessage(); @@ -271,6 +315,20 @@ public Response Get(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string sqlVmName, SqlVmData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/", false); + uri.AppendPath(sqlVmName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string sqlVmName, SqlVmData data) { var message = _pipeline.CreateMessage(); @@ -349,6 +407,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string sqlVmName) + { + 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.SqlVirtualMachine/sqlVirtualMachines/", false); + uri.AppendPath(sqlVmName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string sqlVmName) { var message = _pipeline.CreateMessage(); @@ -420,6 +492,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string sqlVmName, SqlVmPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/", false); + uri.AppendPath(sqlVmName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string sqlVmName, SqlVmPatch patch) { var message = _pipeline.CreateMessage(); @@ -496,6 +582,19 @@ public Response Update(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.SqlVirtualMachine/sqlVirtualMachines", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -569,6 +668,21 @@ public Response ListByResourceGroup(string subscriptionId, stri } } + internal RequestUriBuilder CreateRedeployRequestUri(string subscriptionId, string resourceGroupName, string sqlVmName) + { + 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.SqlVirtualMachine/sqlVirtualMachines/", false); + uri.AppendPath(sqlVmName, true); + uri.AppendPath("/redeploy", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRedeployRequest(string subscriptionId, string resourceGroupName, string sqlVmName) { var message = _pipeline.CreateMessage(); @@ -639,6 +753,21 @@ public Response Redeploy(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreateStartAssessmentRequestUri(string subscriptionId, string resourceGroupName, string sqlVmName) + { + 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.SqlVirtualMachine/sqlVirtualMachines/", false); + uri.AppendPath(sqlVmName, true); + uri.AppendPath("/startAssessment", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStartAssessmentRequest(string subscriptionId, string resourceGroupName, string sqlVmName) { var message = _pipeline.CreateMessage(); @@ -709,6 +838,14 @@ public Response StartAssessment(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateListBySqlVmGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string sqlVmGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySqlVmGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string sqlVmGroupName) { var message = _pipeline.CreateMessage(); @@ -785,6 +922,14 @@ public Response ListBySqlVmGroupNextPage(string nextLink, strin } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -853,6 +998,14 @@ public Response ListNextPage(string nextLink, string subscripti } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/BlobContainerCollection.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/BlobContainerCollection.cs index bf288eb2c287..3bee46b17aef 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/BlobContainerCollection.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/BlobContainerCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> CreateOrUpdateAsy try { var response = await _blobContainerRestClient.CreateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, containerName, data, cancellationToken).ConfigureAwait(false); - var operation = new StorageArmOperation(Response.FromValue(new BlobContainerResource(Client, response), response.GetRawResponse())); + var uri = _blobContainerRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, containerName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new StorageArmOperation(Response.FromValue(new BlobContainerResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -140,7 +142,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wait try { var response = _blobContainerRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, containerName, data, cancellationToken); - var operation = new StorageArmOperation(Response.FromValue(new BlobContainerResource(Client, response), response.GetRawResponse())); + var uri = _blobContainerRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, containerName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new StorageArmOperation(Response.FromValue(new BlobContainerResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/BlobContainerResource.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/BlobContainerResource.cs index 35c935c0a5a2..25e7ff1ad6a3 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/BlobContainerResource.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/BlobContainerResource.cs @@ -208,7 +208,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _blobContainerRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new StorageArmOperation(response); + var uri = _blobContainerRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new StorageArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -250,7 +252,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _blobContainerRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Name, cancellationToken); - var operation = new StorageArmOperation(response); + var uri = _blobContainerRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new StorageArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/BlobInventoryPolicyResource.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/BlobInventoryPolicyResource.cs index 3cfeaff21970..ec01823865cb 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/BlobInventoryPolicyResource.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/BlobInventoryPolicyResource.cs @@ -201,7 +201,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _blobInventoryPolicyRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new StorageArmOperation(response); + var uri = _blobInventoryPolicyRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new StorageArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -243,7 +245,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _blobInventoryPolicyRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new StorageArmOperation(response); + var uri = _blobInventoryPolicyRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new StorageArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -289,7 +293,9 @@ public virtual async Task> CreateOrUpd try { var response = await _blobInventoryPolicyRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new StorageArmOperation(Response.FromValue(new BlobInventoryPolicyResource(Client, response), response.GetRawResponse())); + var uri = _blobInventoryPolicyRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new StorageArmOperation(Response.FromValue(new BlobInventoryPolicyResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -335,7 +341,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUnti try { var response = _blobInventoryPolicyRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new StorageArmOperation(Response.FromValue(new BlobInventoryPolicyResource(Client, response), response.GetRawResponse())); + var uri = _blobInventoryPolicyRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new StorageArmOperation(Response.FromValue(new BlobInventoryPolicyResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/BlobServiceResource.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/BlobServiceResource.cs index a207a7f03bd4..5d1dc5a4122d 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/BlobServiceResource.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/BlobServiceResource.cs @@ -272,7 +272,9 @@ public virtual async Task> CreateOrUpdateAsync try { var response = await _blobServiceRestClient.SetServicePropertiesAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new StorageArmOperation(Response.FromValue(new BlobServiceResource(Client, response), response.GetRawResponse())); + var uri = _blobServiceRestClient.CreateSetServicePropertiesRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new StorageArmOperation(Response.FromValue(new BlobServiceResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -318,7 +320,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUn try { var response = _blobServiceRestClient.SetServiceProperties(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, data, cancellationToken); - var operation = new StorageArmOperation(Response.FromValue(new BlobServiceResource(Client, response), response.GetRawResponse())); + var uri = _blobServiceRestClient.CreateSetServicePropertiesRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new StorageArmOperation(Response.FromValue(new BlobServiceResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/EncryptionScopeCollection.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/EncryptionScopeCollection.cs index 308c40cbc4d3..9b978b2b380e 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/EncryptionScopeCollection.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/EncryptionScopeCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> CreateOrUpdateA try { var response = await _encryptionScopeRestClient.PutAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, encryptionScopeName, data, cancellationToken).ConfigureAwait(false); - var operation = new StorageArmOperation(Response.FromValue(new EncryptionScopeResource(Client, response), response.GetRawResponse())); + var uri = _encryptionScopeRestClient.CreatePutRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, encryptionScopeName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new StorageArmOperation(Response.FromValue(new EncryptionScopeResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -140,7 +142,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wa try { var response = _encryptionScopeRestClient.Put(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, encryptionScopeName, data, cancellationToken); - var operation = new StorageArmOperation(Response.FromValue(new EncryptionScopeResource(Client, response), response.GetRawResponse())); + var uri = _encryptionScopeRestClient.CreatePutRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, encryptionScopeName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new StorageArmOperation(Response.FromValue(new EncryptionScopeResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/FileServiceResource.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/FileServiceResource.cs index 777a1242f68e..00adf6880daa 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/FileServiceResource.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/FileServiceResource.cs @@ -276,7 +276,9 @@ public virtual async Task> CreateOrUpdateAsync try { var response = await _fileServiceRestClient.SetServicePropertiesAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new StorageArmOperation(Response.FromValue(new FileServiceResource(Client, response), response.GetRawResponse())); + var uri = _fileServiceRestClient.CreateSetServicePropertiesRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new StorageArmOperation(Response.FromValue(new FileServiceResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -322,7 +324,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUn try { var response = _fileServiceRestClient.SetServiceProperties(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, data, cancellationToken); - var operation = new StorageArmOperation(Response.FromValue(new FileServiceResource(Client, response), response.GetRawResponse())); + var uri = _fileServiceRestClient.CreateSetServicePropertiesRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new StorageArmOperation(Response.FromValue(new FileServiceResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/FileShareCollection.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/FileShareCollection.cs index 41052ecdc34e..0a49ead74c0b 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/FileShareCollection.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/FileShareCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> CreateOrUpdateAsync(W try { var response = await _fileShareRestClient.CreateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, shareName, data, expand, cancellationToken).ConfigureAwait(false); - var operation = new StorageArmOperation(Response.FromValue(new FileShareResource(Client, response), response.GetRawResponse())); + var uri = _fileShareRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, shareName, data, expand); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new StorageArmOperation(Response.FromValue(new FileShareResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -141,7 +143,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUnti try { var response = _fileShareRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, shareName, data, expand, cancellationToken); - var operation = new StorageArmOperation(Response.FromValue(new FileShareResource(Client, response), response.GetRawResponse())); + var uri = _fileShareRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, shareName, data, expand); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new StorageArmOperation(Response.FromValue(new FileShareResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/FileShareResource.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/FileShareResource.cs index 0f20715c342a..3a5c4e9cd148 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/FileShareResource.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/FileShareResource.cs @@ -207,7 +207,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, string try { var response = await _fileShareRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Name, xMsSnapshot, include, cancellationToken).ConfigureAwait(false); - var operation = new StorageArmOperation(response); + var uri = _fileShareRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Name, xMsSnapshot, include); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new StorageArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -251,7 +253,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, string xMsSnapshot = nul try { var response = _fileShareRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Name, xMsSnapshot, include, cancellationToken); - var operation = new StorageArmOperation(response); + var uri = _fileShareRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Name, xMsSnapshot, include); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new StorageArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/ImmutabilityPolicyResource.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/ImmutabilityPolicyResource.cs index eded03bd3332..13a0613532a8 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/ImmutabilityPolicyResource.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/ImmutabilityPolicyResource.cs @@ -203,7 +203,9 @@ public virtual async Task> DeleteAsync( try { var response = await _immutabilityPolicyBlobContainersRestClient.DeleteImmutabilityPolicyAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Name, ifMatch, cancellationToken).ConfigureAwait(false); - var operation = new StorageArmOperation(Response.FromValue(new ImmutabilityPolicyResource(Client, response), response.GetRawResponse())); + var uri = _immutabilityPolicyBlobContainersRestClient.CreateDeleteImmutabilityPolicyRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Name, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new StorageArmOperation(Response.FromValue(new ImmutabilityPolicyResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -246,7 +248,9 @@ public virtual ArmOperation Delete(WaitUntil waitUnt try { var response = _immutabilityPolicyBlobContainersRestClient.DeleteImmutabilityPolicy(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Name, ifMatch, cancellationToken); - var operation = new StorageArmOperation(Response.FromValue(new ImmutabilityPolicyResource(Client, response), response.GetRawResponse())); + var uri = _immutabilityPolicyBlobContainersRestClient.CreateDeleteImmutabilityPolicyRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Name, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new StorageArmOperation(Response.FromValue(new ImmutabilityPolicyResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -293,7 +297,9 @@ public virtual async Task> CreateOrUpda try { var response = await _immutabilityPolicyBlobContainersRestClient.CreateOrUpdateImmutabilityPolicyAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Name, data, ifMatch, cancellationToken).ConfigureAwait(false); - var operation = new StorageArmOperation(Response.FromValue(new ImmutabilityPolicyResource(Client, response), response.GetRawResponse())); + var uri = _immutabilityPolicyBlobContainersRestClient.CreateCreateOrUpdateImmutabilityPolicyRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Name, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new StorageArmOperation(Response.FromValue(new ImmutabilityPolicyResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -340,7 +346,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil try { var response = _immutabilityPolicyBlobContainersRestClient.CreateOrUpdateImmutabilityPolicy(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Name, data, ifMatch, cancellationToken); - var operation = new StorageArmOperation(Response.FromValue(new ImmutabilityPolicyResource(Client, response), response.GetRawResponse())); + var uri = _immutabilityPolicyBlobContainersRestClient.CreateCreateOrUpdateImmutabilityPolicyRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Name, data, ifMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new StorageArmOperation(Response.FromValue(new ImmutabilityPolicyResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/LongRunningOperation/StorageArmOperation.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/LongRunningOperation/StorageArmOperation.cs index 6451f5ef6818..1d130daf3c11 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/LongRunningOperation/StorageArmOperation.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/LongRunningOperation/StorageArmOperation.cs @@ -20,21 +20,24 @@ internal class StorageArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of StorageArmOperation for mocking. protected StorageArmOperation() { } - internal StorageArmOperation(Response response) + internal StorageArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal StorageArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "StorageArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal StorageArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline p public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/LongRunningOperation/StorageArmOperationOfT.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/LongRunningOperation/StorageArmOperationOfT.cs index bfee0b0b599f..2487fed478b1 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/LongRunningOperation/StorageArmOperationOfT.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/LongRunningOperation/StorageArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class StorageArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of StorageArmOperation for mocking. protected StorageArmOperation() { } - internal StorageArmOperation(Response response) + internal StorageArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal StorageArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "StorageArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal StorageArmOperation(IOperationSource source, ClientDiagnostics clien public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/BlobContainerResource.Serialization.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/BlobContainerResource.Serialization.cs new file mode 100644 index 000000000000..b94d70ad3c0c --- /dev/null +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/BlobContainerResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Storage +{ + public partial class BlobContainerResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + BlobContainerData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + BlobContainerData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/BlobInventoryPolicyResource.Serialization.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/BlobInventoryPolicyResource.Serialization.cs new file mode 100644 index 000000000000..aaf9a005a663 --- /dev/null +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/BlobInventoryPolicyResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Storage +{ + public partial class BlobInventoryPolicyResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + BlobInventoryPolicyData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + BlobInventoryPolicyData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/BlobServiceResource.Serialization.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/BlobServiceResource.Serialization.cs new file mode 100644 index 000000000000..53a8fb2db4b0 --- /dev/null +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/BlobServiceResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Storage +{ + public partial class BlobServiceResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + BlobServiceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + BlobServiceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/DeletedAccountResource.Serialization.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/DeletedAccountResource.Serialization.cs new file mode 100644 index 000000000000..2ddc823f09f0 --- /dev/null +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/DeletedAccountResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Storage +{ + public partial class DeletedAccountResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DeletedAccountData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DeletedAccountData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/EncryptionScopeResource.Serialization.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/EncryptionScopeResource.Serialization.cs new file mode 100644 index 000000000000..0f7d09b502c6 --- /dev/null +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/EncryptionScopeResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Storage +{ + public partial class EncryptionScopeResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + EncryptionScopeData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + EncryptionScopeData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/FileServiceResource.Serialization.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/FileServiceResource.Serialization.cs new file mode 100644 index 000000000000..1cdb762feec2 --- /dev/null +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/FileServiceResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Storage +{ + public partial class FileServiceResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + FileServiceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + FileServiceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/FileShareResource.Serialization.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/FileShareResource.Serialization.cs new file mode 100644 index 000000000000..fa8f9a33bb3a --- /dev/null +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/FileShareResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Storage +{ + public partial class FileShareResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + FileShareData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + FileShareData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ImmutabilityPolicyResource.Serialization.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ImmutabilityPolicyResource.Serialization.cs new file mode 100644 index 000000000000..05d28cc69152 --- /dev/null +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ImmutabilityPolicyResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Storage +{ + public partial class ImmutabilityPolicyResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ImmutabilityPolicyData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ImmutabilityPolicyData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ObjectReplicationPolicyResource.Serialization.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ObjectReplicationPolicyResource.Serialization.cs new file mode 100644 index 000000000000..0c970621440d --- /dev/null +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ObjectReplicationPolicyResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Storage +{ + public partial class ObjectReplicationPolicyResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ObjectReplicationPolicyData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ObjectReplicationPolicyData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/QueueServiceResource.Serialization.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/QueueServiceResource.Serialization.cs new file mode 100644 index 000000000000..df005f9a73b1 --- /dev/null +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/QueueServiceResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Storage +{ + public partial class QueueServiceResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + QueueServiceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + QueueServiceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountLocalUserResource.Serialization.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountLocalUserResource.Serialization.cs new file mode 100644 index 000000000000..9426ae09b6b6 --- /dev/null +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountLocalUserResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Storage +{ + public partial class StorageAccountLocalUserResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + StorageAccountLocalUserData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + StorageAccountLocalUserData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountManagementPolicyResource.Serialization.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountManagementPolicyResource.Serialization.cs new file mode 100644 index 000000000000..4875828d5b4f --- /dev/null +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountManagementPolicyResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Storage +{ + public partial class StorageAccountManagementPolicyResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + StorageAccountManagementPolicyData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + StorageAccountManagementPolicyData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountResource.Serialization.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountResource.Serialization.cs new file mode 100644 index 000000000000..785e8047f07c --- /dev/null +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Storage +{ + public partial class StorageAccountResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + StorageAccountData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + StorageAccountData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StoragePrivateEndpointConnectionResource.Serialization.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StoragePrivateEndpointConnectionResource.Serialization.cs new file mode 100644 index 000000000000..5349966d61a6 --- /dev/null +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StoragePrivateEndpointConnectionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Storage +{ + public partial class StoragePrivateEndpointConnectionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + StoragePrivateEndpointConnectionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + StoragePrivateEndpointConnectionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageQueueResource.Serialization.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageQueueResource.Serialization.cs new file mode 100644 index 000000000000..217c5bada599 --- /dev/null +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageQueueResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Storage +{ + public partial class StorageQueueResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + StorageQueueData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + StorageQueueData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/TableResource.Serialization.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/TableResource.Serialization.cs new file mode 100644 index 000000000000..3ab799890882 --- /dev/null +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/TableResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Storage +{ + public partial class TableResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + TableData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + TableData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/TableServiceResource.Serialization.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/TableServiceResource.Serialization.cs new file mode 100644 index 000000000000..9d6ab2106d98 --- /dev/null +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/TableServiceResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Storage +{ + public partial class TableServiceResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + TableServiceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + TableServiceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/ObjectReplicationPolicyCollection.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/ObjectReplicationPolicyCollection.cs index 2e84758e188c..a7dc2898122f 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/ObjectReplicationPolicyCollection.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/ObjectReplicationPolicyCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> CreateO try { var response = await _objectReplicationPolicyRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, objectReplicationPolicyId, data, cancellationToken).ConfigureAwait(false); - var operation = new StorageArmOperation(Response.FromValue(new ObjectReplicationPolicyResource(Client, response), response.GetRawResponse())); + var uri = _objectReplicationPolicyRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, objectReplicationPolicyId, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new StorageArmOperation(Response.FromValue(new ObjectReplicationPolicyResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(Wait try { var response = _objectReplicationPolicyRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, objectReplicationPolicyId, data, cancellationToken); - var operation = new StorageArmOperation(Response.FromValue(new ObjectReplicationPolicyResource(Client, response), response.GetRawResponse())); + var uri = _objectReplicationPolicyRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, objectReplicationPolicyId, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new StorageArmOperation(Response.FromValue(new ObjectReplicationPolicyResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/ObjectReplicationPolicyResource.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/ObjectReplicationPolicyResource.cs index 6576dab7ffd7..e48c2b6dc050 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/ObjectReplicationPolicyResource.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/ObjectReplicationPolicyResource.cs @@ -200,7 +200,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _objectReplicationPolicyRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new StorageArmOperation(response); + var uri = _objectReplicationPolicyRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new StorageArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -242,7 +244,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _objectReplicationPolicyRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new StorageArmOperation(response); + var uri = _objectReplicationPolicyRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new StorageArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -288,7 +292,9 @@ public virtual async Task> UpdateA try { var response = await _objectReplicationPolicyRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new StorageArmOperation(Response.FromValue(new ObjectReplicationPolicyResource(Client, response), response.GetRawResponse())); + var uri = _objectReplicationPolicyRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new StorageArmOperation(Response.FromValue(new ObjectReplicationPolicyResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -334,7 +340,9 @@ public virtual ArmOperation Update(WaitUntil wa try { var response = _objectReplicationPolicyRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new StorageArmOperation(Response.FromValue(new ObjectReplicationPolicyResource(Client, response), response.GetRawResponse())); + var uri = _objectReplicationPolicyRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new StorageArmOperation(Response.FromValue(new ObjectReplicationPolicyResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/QueueServiceResource.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/QueueServiceResource.cs index 0d23ef00e95e..efcec99a071a 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/QueueServiceResource.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/QueueServiceResource.cs @@ -272,7 +272,9 @@ public virtual async Task> CreateOrUpdateAsyn try { var response = await _queueServiceRestClient.SetServicePropertiesAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new StorageArmOperation(Response.FromValue(new QueueServiceResource(Client, response), response.GetRawResponse())); + var uri = _queueServiceRestClient.CreateSetServicePropertiesRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new StorageArmOperation(Response.FromValue(new QueueServiceResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -318,7 +320,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitU try { var response = _queueServiceRestClient.SetServiceProperties(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, data, cancellationToken); - var operation = new StorageArmOperation(Response.FromValue(new QueueServiceResource(Client, response), response.GetRawResponse())); + var uri = _queueServiceRestClient.CreateSetServicePropertiesRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new StorageArmOperation(Response.FromValue(new QueueServiceResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/BlobContainersRestOperations.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/BlobContainersRestOperations.cs index 893a3f93bb6f..fac6db5e9919 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/BlobContainersRestOperations.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/BlobContainersRestOperations.cs @@ -37,6 +37,33 @@ public BlobContainersRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string accountName, string maxpagesize, string filter, BlobContainerState? include) + { + 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.Storage/storageAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/blobServices/default/containers", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (maxpagesize != null) + { + uri.AppendQuery("$maxpagesize", maxpagesize, true); + } + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (include != null) + { + uri.AppendQuery("$include", include.Value.ToString(), true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string accountName, string maxpagesize, string filter, BlobContainerState? include) { var message = _pipeline.CreateMessage(); @@ -134,6 +161,22 @@ public Response List(string subscriptionId, string resourceG } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string accountName, string containerName, BlobContainerData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Storage/storageAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/blobServices/default/containers/", false); + uri.AppendPath(containerName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string accountName, string containerName, BlobContainerData data) { var message = _pipeline.CreateMessage(); @@ -228,6 +271,22 @@ public Response Create(string subscriptionId, string resource } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string accountName, string containerName, BlobContainerData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Storage/storageAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/blobServices/default/containers/", false); + uri.AppendPath(containerName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string accountName, string containerName, BlobContainerData data) { var message = _pipeline.CreateMessage(); @@ -320,6 +379,22 @@ public Response Update(string subscriptionId, string resource } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string accountName, string containerName) + { + 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.Storage/storageAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/blobServices/default/containers/", false); + uri.AppendPath(containerName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string accountName, string containerName) { var message = _pipeline.CreateMessage(); @@ -408,6 +483,22 @@ public Response Get(string subscriptionId, string resourceGro } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string accountName, string containerName) + { + 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.Storage/storageAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/blobServices/default/containers/", false); + uri.AppendPath(containerName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string accountName, string containerName) { var message = _pipeline.CreateMessage(); @@ -483,6 +574,23 @@ public Response Delete(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateSetLegalHoldRequestUri(string subscriptionId, string resourceGroupName, string accountName, string containerName, LegalHold legalHold) + { + 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.Storage/storageAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/blobServices/default/containers/", false); + uri.AppendPath(containerName, true); + uri.AppendPath("/setLegalHold", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateSetLegalHoldRequest(string subscriptionId, string resourceGroupName, string accountName, string containerName, LegalHold legalHold) { var message = _pipeline.CreateMessage(); @@ -576,6 +684,23 @@ public Response SetLegalHold(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateClearLegalHoldRequestUri(string subscriptionId, string resourceGroupName, string accountName, string containerName, LegalHold legalHold) + { + 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.Storage/storageAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/blobServices/default/containers/", false); + uri.AppendPath(containerName, true); + uri.AppendPath("/clearLegalHold", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateClearLegalHoldRequest(string subscriptionId, string resourceGroupName, string accountName, string containerName, LegalHold legalHold) { var message = _pipeline.CreateMessage(); @@ -669,6 +794,24 @@ public Response ClearLegalHold(string subscriptionId, string resource } } + internal RequestUriBuilder CreateCreateOrUpdateImmutabilityPolicyRequestUri(string subscriptionId, string resourceGroupName, string accountName, string containerName, ImmutabilityPolicyData data, ETag? ifMatch) + { + 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.Storage/storageAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/blobServices/default/containers/", false); + uri.AppendPath(containerName, true); + uri.AppendPath("/immutabilityPolicies/", false); + uri.AppendPath("default", true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateImmutabilityPolicyRequest(string subscriptionId, string resourceGroupName, string accountName, string containerName, ImmutabilityPolicyData data, ETag? ifMatch) { var message = _pipeline.CreateMessage(); @@ -769,6 +912,24 @@ public Response CreateOrUpdateImmutabilityPolicy(string } } + internal RequestUriBuilder CreateGetImmutabilityPolicyRequestUri(string subscriptionId, string resourceGroupName, string accountName, string containerName, ETag? ifMatch) + { + 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.Storage/storageAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/blobServices/default/containers/", false); + uri.AppendPath(containerName, true); + uri.AppendPath("/immutabilityPolicies/", false); + uri.AppendPath("default", true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetImmutabilityPolicyRequest(string subscriptionId, string resourceGroupName, string accountName, string containerName, ETag? ifMatch) { var message = _pipeline.CreateMessage(); @@ -865,6 +1026,24 @@ public Response GetImmutabilityPolicy(string subscriptio } } + internal RequestUriBuilder CreateDeleteImmutabilityPolicyRequestUri(string subscriptionId, string resourceGroupName, string accountName, string containerName, ETag ifMatch) + { + 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.Storage/storageAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/blobServices/default/containers/", false); + uri.AppendPath(containerName, true); + uri.AppendPath("/immutabilityPolicies/", false); + uri.AppendPath("default", true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteImmutabilityPolicyRequest(string subscriptionId, string resourceGroupName, string accountName, string containerName, ETag ifMatch) { var message = _pipeline.CreateMessage(); @@ -954,6 +1133,23 @@ public Response DeleteImmutabilityPolicy(string subscrip } } + internal RequestUriBuilder CreateLockImmutabilityPolicyRequestUri(string subscriptionId, string resourceGroupName, string accountName, string containerName, ETag ifMatch) + { + 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.Storage/storageAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/blobServices/default/containers/", false); + uri.AppendPath(containerName, true); + uri.AppendPath("/immutabilityPolicies/default/lock", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateLockImmutabilityPolicyRequest(string subscriptionId, string resourceGroupName, string accountName, string containerName, ETag ifMatch) { var message = _pipeline.CreateMessage(); @@ -1042,6 +1238,23 @@ public Response LockImmutabilityPolicy(string subscripti } } + internal RequestUriBuilder CreateExtendImmutabilityPolicyRequestUri(string subscriptionId, string resourceGroupName, string accountName, string containerName, ETag ifMatch, ImmutabilityPolicyData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Storage/storageAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/blobServices/default/containers/", false); + uri.AppendPath(containerName, true); + uri.AppendPath("/immutabilityPolicies/default/extend", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateExtendImmutabilityPolicyRequest(string subscriptionId, string resourceGroupName, string accountName, string containerName, ETag ifMatch, ImmutabilityPolicyData data) { var message = _pipeline.CreateMessage(); @@ -1139,6 +1352,23 @@ public Response ExtendImmutabilityPolicy(string subscrip } } + internal RequestUriBuilder CreateLeaseRequestUri(string subscriptionId, string resourceGroupName, string accountName, string containerName, LeaseContainerContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Storage/storageAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/blobServices/default/containers/", false); + uri.AppendPath(containerName, true); + uri.AppendPath("/lease", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateLeaseRequest(string subscriptionId, string resourceGroupName, string accountName, string containerName, LeaseContainerContent content) { var message = _pipeline.CreateMessage(); @@ -1233,6 +1463,23 @@ public Response Lease(string subscriptionId, string reso } } + internal RequestUriBuilder CreateObjectLevelWormRequestUri(string subscriptionId, string resourceGroupName, string accountName, string containerName) + { + 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.Storage/storageAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/blobServices/default/containers/", false); + uri.AppendPath(containerName, true); + uri.AppendPath("/migrate", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateObjectLevelWormRequest(string subscriptionId, string resourceGroupName, string accountName, string containerName) { var message = _pipeline.CreateMessage(); @@ -1310,6 +1557,14 @@ public Response ObjectLevelWorm(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string accountName, string maxpagesize, string filter, BlobContainerState? include) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string accountName, string maxpagesize, string filter, BlobContainerState? include) { var message = _pipeline.CreateMessage(); diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/BlobInventoryPoliciesRestOperations.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/BlobInventoryPoliciesRestOperations.cs index ac87f7cd99c7..3466fc2f96f5 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/BlobInventoryPoliciesRestOperations.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/BlobInventoryPoliciesRestOperations.cs @@ -37,6 +37,22 @@ public BlobInventoryPoliciesRestOperations(HttpPipeline pipeline, string applica _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string accountName, BlobInventoryPolicyName blobInventoryPolicyName) + { + 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.Storage/storageAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/inventoryPolicies/", false); + uri.AppendPath(blobInventoryPolicyName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string accountName, BlobInventoryPolicyName blobInventoryPolicyName) { var message = _pipeline.CreateMessage(); @@ -123,6 +139,22 @@ public Response Get(string subscriptionId, string resou } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string accountName, BlobInventoryPolicyName blobInventoryPolicyName, BlobInventoryPolicyData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Storage/storageAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/inventoryPolicies/", false); + uri.AppendPath(blobInventoryPolicyName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string accountName, BlobInventoryPolicyName blobInventoryPolicyName, BlobInventoryPolicyData data) { var message = _pipeline.CreateMessage(); @@ -213,6 +245,22 @@ public Response CreateOrUpdate(string subscriptionId, s } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string accountName, BlobInventoryPolicyName blobInventoryPolicyName) + { + 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.Storage/storageAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/inventoryPolicies/", false); + uri.AppendPath(blobInventoryPolicyName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string accountName, BlobInventoryPolicyName blobInventoryPolicyName) { var message = _pipeline.CreateMessage(); @@ -287,6 +335,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string accountName) + { + 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.Storage/storageAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/inventoryPolicies", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/BlobServicesRestOperations.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/BlobServicesRestOperations.cs index 1fc41c26de4f..84cbd22cbb7a 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/BlobServicesRestOperations.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/BlobServicesRestOperations.cs @@ -37,6 +37,21 @@ public BlobServicesRestOperations(HttpPipeline pipeline, string applicationId, U _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string accountName) + { + 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.Storage/storageAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/blobServices", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response List(string subscriptionId, string resourceGro } } + internal RequestUriBuilder CreateSetServicePropertiesRequestUri(string subscriptionId, string resourceGroupName, string accountName, BlobServiceData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Storage/storageAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/blobServices/", false); + uri.AppendPath("default", true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateSetServicePropertiesRequest(string subscriptionId, string resourceGroupName, string accountName, BlobServiceData data) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response SetServiceProperties(string subscriptionId, str } } + internal RequestUriBuilder CreateGetServicePropertiesRequestUri(string subscriptionId, string resourceGroupName, string accountName) + { + 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.Storage/storageAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/blobServices/", false); + uri.AppendPath("default", true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetServicePropertiesRequest(string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/DeletedAccountsRestOperations.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/DeletedAccountsRestOperations.cs index 23df22eea4a0..9132c650a1ff 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/DeletedAccountsRestOperations.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/DeletedAccountsRestOperations.cs @@ -37,6 +37,17 @@ public DeletedAccountsRestOperations(HttpPipeline pipeline, string applicationId _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Storage/deletedAccounts", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,20 @@ public Response List(string subscriptionId, Cancellati } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, AzureLocation location, string deletedAccountName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Storage/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/deletedAccounts/", false); + uri.AppendPath(deletedAccountName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, AzureLocation location, string deletedAccountName) { var message = _pipeline.CreateMessage(); @@ -184,6 +209,14 @@ public Response Get(string subscriptionId, AzureLocation loc } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/EncryptionScopesRestOperations.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/EncryptionScopesRestOperations.cs index 68cc474c9ca5..8581649486ed 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/EncryptionScopesRestOperations.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/EncryptionScopesRestOperations.cs @@ -37,6 +37,22 @@ public EncryptionScopesRestOperations(HttpPipeline pipeline, string applicationI _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreatePutRequestUri(string subscriptionId, string resourceGroupName, string accountName, string encryptionScopeName, EncryptionScopeData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Storage/storageAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/encryptionScopes/", false); + uri.AppendPath(encryptionScopeName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreatePutRequest(string subscriptionId, string resourceGroupName, string accountName, string encryptionScopeName, EncryptionScopeData data) { var message = _pipeline.CreateMessage(); @@ -131,6 +147,22 @@ public Response Put(string subscriptionId, string resourceG } } + internal RequestUriBuilder CreatePatchRequestUri(string subscriptionId, string resourceGroupName, string accountName, string encryptionScopeName, EncryptionScopeData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Storage/storageAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/encryptionScopes/", false); + uri.AppendPath(encryptionScopeName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreatePatchRequest(string subscriptionId, string resourceGroupName, string accountName, string encryptionScopeName, EncryptionScopeData data) { var message = _pipeline.CreateMessage(); @@ -223,6 +255,22 @@ public Response Patch(string subscriptionId, string resourc } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string accountName, string encryptionScopeName) + { + 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.Storage/storageAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/encryptionScopes/", false); + uri.AppendPath(encryptionScopeName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string accountName, string encryptionScopeName) { var message = _pipeline.CreateMessage(); @@ -311,6 +359,33 @@ public Response Get(string subscriptionId, string resourceG } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string accountName, int? maxpagesize, string filter, EncryptionScopesIncludeType? include) + { + 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.Storage/storageAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/encryptionScopes", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (maxpagesize != null) + { + uri.AppendQuery("$maxpagesize", maxpagesize.Value, true); + } + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (include != null) + { + uri.AppendQuery("$include", include.Value.ToString(), true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string accountName, int? maxpagesize, string filter, EncryptionScopesIncludeType? include) { var message = _pipeline.CreateMessage(); @@ -408,6 +483,14 @@ public Response List(string subscriptionId, string re } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string accountName, int? maxpagesize, string filter, EncryptionScopesIncludeType? include) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string accountName, int? maxpagesize, string filter, EncryptionScopesIncludeType? include) { var message = _pipeline.CreateMessage(); diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/FileServicesRestOperations.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/FileServicesRestOperations.cs index 6f4140155d67..6613b4008ab1 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/FileServicesRestOperations.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/FileServicesRestOperations.cs @@ -37,6 +37,21 @@ public FileServicesRestOperations(HttpPipeline pipeline, string applicationId, U _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string accountName) + { + 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.Storage/storageAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/fileServices", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response List(string subscriptionId, string resourceGro } } + internal RequestUriBuilder CreateSetServicePropertiesRequestUri(string subscriptionId, string resourceGroupName, string accountName, FileServiceData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Storage/storageAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/fileServices/", false); + uri.AppendPath("default", true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateSetServicePropertiesRequest(string subscriptionId, string resourceGroupName, string accountName, FileServiceData data) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response SetServiceProperties(string subscriptionId, str } } + internal RequestUriBuilder CreateGetServicePropertiesRequestUri(string subscriptionId, string resourceGroupName, string accountName) + { + 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.Storage/storageAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/fileServices/", false); + uri.AppendPath("default", true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetServicePropertiesRequest(string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/FileSharesRestOperations.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/FileSharesRestOperations.cs index c0da62225112..3f8c4a3658ab 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/FileSharesRestOperations.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/FileSharesRestOperations.cs @@ -37,6 +37,33 @@ public FileSharesRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string accountName, string maxpagesize, string filter, string expand) + { + 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.Storage/storageAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/fileServices/default/shares", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (maxpagesize != null) + { + uri.AppendQuery("$maxpagesize", maxpagesize, true); + } + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string accountName, string maxpagesize, string filter, string expand) { var message = _pipeline.CreateMessage(); @@ -134,6 +161,26 @@ public Response List(string subscriptionId, string resourceGroup } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string accountName, string shareName, FileShareData data, string expand) + { + 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.Storage/storageAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/fileServices/default/shares/", false); + uri.AppendPath(shareName, true); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string accountName, string shareName, FileShareData data, string expand) { var message = _pipeline.CreateMessage(); @@ -234,6 +281,22 @@ public Response Create(string subscriptionId, string resourceGrou } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string accountName, string shareName, FileShareData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Storage/storageAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/fileServices/default/shares/", false); + uri.AppendPath(shareName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string accountName, string shareName, FileShareData data) { var message = _pipeline.CreateMessage(); @@ -326,6 +389,26 @@ public Response Update(string subscriptionId, string resourceGrou } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string accountName, string shareName, string expand, string xMsSnapshot) + { + 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.Storage/storageAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/fileServices/default/shares/", false); + uri.AppendPath(shareName, true); + uri.AppendQuery("api-version", _apiVersion, true); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string accountName, string shareName, string expand, string xMsSnapshot) { var message = _pipeline.CreateMessage(); @@ -426,6 +509,26 @@ public Response Get(string subscriptionId, string resourceGroupNa } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string accountName, string shareName, string xMsSnapshot, string include) + { + 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.Storage/storageAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/fileServices/default/shares/", false); + uri.AppendPath(shareName, true); + uri.AppendQuery("api-version", _apiVersion, true); + if (include != null) + { + uri.AppendQuery("$include", include, true); + } + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string accountName, string shareName, string xMsSnapshot, string include) { var message = _pipeline.CreateMessage(); @@ -514,6 +617,23 @@ public Response Delete(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateRestoreRequestUri(string subscriptionId, string resourceGroupName, string accountName, string shareName, DeletedShare deletedShare) + { + 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.Storage/storageAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/fileServices/default/shares/", false); + uri.AppendPath(shareName, true); + uri.AppendPath("/restore", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRestoreRequest(string subscriptionId, string resourceGroupName, string accountName, string shareName, DeletedShare deletedShare) { var message = _pipeline.CreateMessage(); @@ -597,6 +717,23 @@ public Response Restore(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreateLeaseRequestUri(string subscriptionId, string resourceGroupName, string accountName, string shareName, LeaseShareContent content, string xMsSnapshot) + { + 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.Storage/storageAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/fileServices/default/shares/", false); + uri.AppendPath(shareName, true); + uri.AppendPath("/lease", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateLeaseRequest(string subscriptionId, string resourceGroupName, string accountName, string shareName, LeaseShareContent content, string xMsSnapshot) { var message = _pipeline.CreateMessage(); @@ -697,6 +834,14 @@ public Response Lease(string subscriptionId, string resource } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string accountName, string maxpagesize, string filter, string expand) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string accountName, string maxpagesize, string filter, string expand) { var message = _pipeline.CreateMessage(); diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/LocalUsersRestOperations.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/LocalUsersRestOperations.cs index 840cf8690997..bd89e285ee70 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/LocalUsersRestOperations.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/LocalUsersRestOperations.cs @@ -37,6 +37,21 @@ public LocalUsersRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string accountName) + { + 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.Storage/storageAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/localUsers", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response List(string subscriptionId, string resourceGroupName } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string accountName, string username) + { + 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.Storage/storageAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/localUsers/", false); + uri.AppendPath(username, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string accountName, string username) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscriptionId, string r } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string accountName, string username, StorageAccountLocalUserData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Storage/storageAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/localUsers/", false); + uri.AppendPath(username, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string accountName, string username, StorageAccountLocalUserData data) { var message = _pipeline.CreateMessage(); @@ -296,6 +343,22 @@ public Response CreateOrUpdate(string subscriptionI } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string accountName, string username) + { + 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.Storage/storageAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/localUsers/", false); + uri.AppendPath(username, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string accountName, string username) { var message = _pipeline.CreateMessage(); @@ -372,6 +435,23 @@ public Response Delete(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateListKeysRequestUri(string subscriptionId, string resourceGroupName, string accountName, string username) + { + 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.Storage/storageAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/localUsers/", false); + uri.AppendPath(username, true); + uri.AppendPath("/listKeys", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListKeysRequest(string subscriptionId, string resourceGroupName, string accountName, string username) { var message = _pipeline.CreateMessage(); @@ -457,6 +537,23 @@ public Response ListKeys(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateRegeneratePasswordRequestUri(string subscriptionId, string resourceGroupName, string accountName, string username) + { + 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.Storage/storageAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/localUsers/", false); + uri.AppendPath(username, true); + uri.AppendPath("/regeneratePassword", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRegeneratePasswordRequest(string subscriptionId, string resourceGroupName, string accountName, string username) { var message = _pipeline.CreateMessage(); diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/ManagementPoliciesRestOperations.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/ManagementPoliciesRestOperations.cs index 319d03138dae..a54f1468a42f 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/ManagementPoliciesRestOperations.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/ManagementPoliciesRestOperations.cs @@ -37,6 +37,22 @@ public ManagementPoliciesRestOperations(HttpPipeline pipeline, string applicatio _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string accountName, ManagementPolicyName managementPolicyName) + { + 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.Storage/storageAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/managementPolicies/", false); + uri.AppendPath(managementPolicyName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string accountName, ManagementPolicyName managementPolicyName) { var message = _pipeline.CreateMessage(); @@ -123,6 +139,22 @@ public Response Get(string subscriptionId, s } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string accountName, ManagementPolicyName managementPolicyName, StorageAccountManagementPolicyData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Storage/storageAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/managementPolicies/", false); + uri.AppendPath(managementPolicyName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string accountName, ManagementPolicyName managementPolicyName, StorageAccountManagementPolicyData data) { var message = _pipeline.CreateMessage(); @@ -213,6 +245,22 @@ public Response CreateOrUpdate(string subscr } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string accountName, ManagementPolicyName managementPolicyName) + { + 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.Storage/storageAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/managementPolicies/", false); + uri.AppendPath(managementPolicyName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string accountName, ManagementPolicyName managementPolicyName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/ObjectReplicationPoliciesRestOperations.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/ObjectReplicationPoliciesRestOperations.cs index 79a50c05d4d9..f7ad58bbe243 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/ObjectReplicationPoliciesRestOperations.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/ObjectReplicationPoliciesRestOperations.cs @@ -37,6 +37,21 @@ public ObjectReplicationPoliciesRestOperations(HttpPipeline pipeline, string app _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string accountName) + { + 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.Storage/storageAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/objectReplicationPolicies", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response List(string subscriptionId, string re } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string accountName, string objectReplicationPolicyId) + { + 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.Storage/storageAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/objectReplicationPolicies/", false); + uri.AppendPath(objectReplicationPolicyId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string accountName, string objectReplicationPolicyId) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscriptionId, string r } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string accountName, string objectReplicationPolicyId, ObjectReplicationPolicyData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Storage/storageAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/objectReplicationPolicies/", false); + uri.AppendPath(objectReplicationPolicyId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string accountName, string objectReplicationPolicyId, ObjectReplicationPolicyData data) { var message = _pipeline.CreateMessage(); @@ -296,6 +343,22 @@ public Response CreateOrUpdate(string subscriptionI } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string accountName, string objectReplicationPolicyId) + { + 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.Storage/storageAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/objectReplicationPolicies/", false); + uri.AppendPath(objectReplicationPolicyId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string accountName, string objectReplicationPolicyId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs index 4ffe4506bb80..7a86f0ed5d3b 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs @@ -37,6 +37,21 @@ public PrivateEndpointConnectionsRestOperations(HttpPipeline pipeline, string ap _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string accountName) + { + 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.Storage/storageAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/privateEndpointConnections", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response List(string subscrip } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string accountName, string privateEndpointConnectionName) + { + 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.Storage/storageAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string accountName, string privateEndpointConnectionName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscriptionId, } } + internal RequestUriBuilder CreatePutRequestUri(string subscriptionId, string resourceGroupName, string accountName, string privateEndpointConnectionName, StoragePrivateEndpointConnectionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Storage/storageAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreatePutRequest(string subscriptionId, string resourceGroupName, string accountName, string privateEndpointConnectionName, StoragePrivateEndpointConnectionData data) { var message = _pipeline.CreateMessage(); @@ -296,6 +343,22 @@ public Response Put(string subscriptionId, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string accountName, string privateEndpointConnectionName) + { + 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.Storage/storageAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string accountName, string privateEndpointConnectionName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs index 7e91d47c615e..35e92cbd0fb1 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs @@ -37,6 +37,21 @@ public PrivateLinkResourcesRestOperations(HttpPipeline pipeline, string applicat _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByStorageAccountRequestUri(string subscriptionId, string resourceGroupName, string accountName) + { + 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.Storage/storageAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/privateLinkResources", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByStorageAccountRequest(string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/QueueRestOperations.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/QueueRestOperations.cs index a2dbfd4aa851..761ba8397ac5 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/QueueRestOperations.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/QueueRestOperations.cs @@ -37,6 +37,22 @@ public QueueRestOperations(HttpPipeline pipeline, string applicationId, Uri endp _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string accountName, string queueName, StorageQueueData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Storage/storageAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/queueServices/default/queues/", false); + uri.AppendPath(queueName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string accountName, string queueName, StorageQueueData data) { var message = _pipeline.CreateMessage(); @@ -129,6 +145,22 @@ public Response Create(string subscriptionId, string resourceG } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string accountName, string queueName, StorageQueueData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Storage/storageAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/queueServices/default/queues/", false); + uri.AppendPath(queueName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string accountName, string queueName, StorageQueueData data) { var message = _pipeline.CreateMessage(); @@ -221,6 +253,22 @@ public Response Update(string subscriptionId, string resourceG } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string accountName, string queueName) + { + 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.Storage/storageAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/queueServices/default/queues/", false); + uri.AppendPath(queueName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string accountName, string queueName) { var message = _pipeline.CreateMessage(); @@ -309,6 +357,22 @@ public Response Get(string subscriptionId, string resourceGrou } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string accountName, string queueName) + { + 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.Storage/storageAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/queueServices/default/queues/", false); + uri.AppendPath(queueName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string accountName, string queueName) { var message = _pipeline.CreateMessage(); @@ -383,6 +447,29 @@ public Response Delete(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string accountName, string maxpagesize, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Storage/storageAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/queueServices/default/queues", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (maxpagesize != null) + { + uri.AppendQuery("$maxpagesize", maxpagesize, true); + } + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string accountName, string maxpagesize, string filter) { var message = _pipeline.CreateMessage(); @@ -474,6 +561,14 @@ public Response List(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string accountName, string maxpagesize, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string accountName, string maxpagesize, string filter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/QueueServicesRestOperations.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/QueueServicesRestOperations.cs index d07150a23a63..3aa77f43938b 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/QueueServicesRestOperations.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/QueueServicesRestOperations.cs @@ -37,6 +37,21 @@ public QueueServicesRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string accountName) + { + 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.Storage/storageAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/queueServices", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response List(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateSetServicePropertiesRequestUri(string subscriptionId, string resourceGroupName, string accountName, QueueServiceData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Storage/storageAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/queueServices/", false); + uri.AppendPath("default", true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateSetServicePropertiesRequest(string subscriptionId, string resourceGroupName, string accountName, QueueServiceData data) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response SetServiceProperties(string subscriptionId, st } } + internal RequestUriBuilder CreateGetServicePropertiesRequestUri(string subscriptionId, string resourceGroupName, string accountName) + { + 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.Storage/storageAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/queueServices/", false); + uri.AppendPath("default", true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetServicePropertiesRequest(string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/SkusRestOperations.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/SkusRestOperations.cs index b7d1131b057a..e3aa5e353b96 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/SkusRestOperations.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/SkusRestOperations.cs @@ -37,6 +37,17 @@ public SkusRestOperations(HttpPipeline pipeline, string applicationId, Uri endpo _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Storage/skus", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/StorageAccountsRestOperations.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/StorageAccountsRestOperations.cs index 542cd133f0c8..0ae4c255d1e0 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/StorageAccountsRestOperations.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/StorageAccountsRestOperations.cs @@ -37,6 +37,17 @@ public StorageAccountsRestOperations(HttpPipeline pipeline, string applicationId _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCheckNameAvailabilityRequestUri(string subscriptionId, StorageAccountNameAvailabilityContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Storage/checkNameAvailability", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCheckNameAvailabilityRequest(string subscriptionId, StorageAccountNameAvailabilityContent content) { var message = _pipeline.CreateMessage(); @@ -112,6 +123,20 @@ public Response CheckNameAvailability(stri } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string accountName, StorageAccountCreateOrUpdateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Storage/storageAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string accountName, StorageAccountCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); @@ -190,6 +215,20 @@ public Response Create(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string accountName) + { + 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.Storage/storageAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); @@ -259,6 +298,24 @@ public Response Delete(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateGetPropertiesRequestUri(string subscriptionId, string resourceGroupName, string accountName, StorageAccountExpand? expand) + { + 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.Storage/storageAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendQuery("api-version", _apiVersion, true); + if (expand != null) + { + uri.AppendQuery("$expand", expand.Value.ToSerialString(), true); + } + return uri; + } + internal HttpMessage CreateGetPropertiesRequest(string subscriptionId, string resourceGroupName, string accountName, StorageAccountExpand? expand) { var message = _pipeline.CreateMessage(); @@ -347,6 +404,20 @@ public Response GetProperties(string subscriptionId, string } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string accountName, StorageAccountPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Storage/storageAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string accountName, StorageAccountPatch patch) { var message = _pipeline.CreateMessage(); @@ -433,6 +504,17 @@ public Response Update(string subscriptionId, string resourc } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Storage/storageAccounts", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -500,6 +582,19 @@ public Response List(string subscriptionId, Cancellati } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.Storage/storageAccounts", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -573,6 +668,25 @@ public Response ListByResourceGroup(string subscriptio } } + internal RequestUriBuilder CreateListKeysRequestUri(string subscriptionId, string resourceGroupName, string accountName, StorageListKeyExpand? expand) + { + 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.Storage/storageAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/listKeys", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (expand != null) + { + uri.AppendQuery("$expand", expand.Value.ToString(), true); + } + return uri; + } + internal HttpMessage CreateListKeysRequest(string subscriptionId, string resourceGroupName, string accountName, StorageListKeyExpand? expand) { var message = _pipeline.CreateMessage(); @@ -658,6 +772,21 @@ public Response ListKeys(string subscriptionId, str } } + internal RequestUriBuilder CreateRegenerateKeyRequestUri(string subscriptionId, string resourceGroupName, string accountName, StorageAccountRegenerateKeyContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Storage/storageAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/regenerateKey", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRegenerateKeyRequest(string subscriptionId, string resourceGroupName, string accountName, StorageAccountRegenerateKeyContent content) { var message = _pipeline.CreateMessage(); @@ -745,6 +874,21 @@ public Response RegenerateKey(string subscriptionId } } + internal RequestUriBuilder CreateListAccountSasRequestUri(string subscriptionId, string resourceGroupName, string accountName, AccountSasContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Storage/storageAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/ListAccountSas", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListAccountSasRequest(string subscriptionId, string resourceGroupName, string accountName, AccountSasContent content) { var message = _pipeline.CreateMessage(); @@ -832,6 +976,21 @@ public Response ListAccountSas(string subscriptionId, strin } } + internal RequestUriBuilder CreateListServiceSasRequestUri(string subscriptionId, string resourceGroupName, string accountName, ServiceSasContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Storage/storageAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/ListServiceSas", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListServiceSasRequest(string subscriptionId, string resourceGroupName, string accountName, ServiceSasContent content) { var message = _pipeline.CreateMessage(); @@ -919,6 +1078,25 @@ public Response ListServiceSas(string subscriptionId, strin } } + internal RequestUriBuilder CreateFailoverRequestUri(string subscriptionId, string resourceGroupName, string accountName, StorageAccountFailoverType? failoverType) + { + 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.Storage/storageAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/failover", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (failoverType != null) + { + uri.AppendQuery("failoverType", failoverType.Value.ToString(), true); + } + return uri; + } + internal HttpMessage CreateFailoverRequest(string subscriptionId, string resourceGroupName, string accountName, StorageAccountFailoverType? failoverType) { var message = _pipeline.CreateMessage(); @@ -995,6 +1173,22 @@ public Response Failover(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreateHierarchicalNamespaceMigrationRequestUri(string subscriptionId, string resourceGroupName, string accountName, string requestType) + { + 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.Storage/storageAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/hnsonmigration", false); + uri.AppendQuery("api-version", _apiVersion, true); + uri.AppendQuery("requestType", requestType, true); + return uri; + } + internal HttpMessage CreateHierarchicalNamespaceMigrationRequest(string subscriptionId, string resourceGroupName, string accountName, string requestType) { var message = _pipeline.CreateMessage(); @@ -1071,6 +1265,21 @@ public Response HierarchicalNamespaceMigration(string subscriptionId, string res } } + internal RequestUriBuilder CreateAbortHierarchicalNamespaceMigrationRequestUri(string subscriptionId, string resourceGroupName, string accountName) + { + 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.Storage/storageAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/aborthnsonmigration", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateAbortHierarchicalNamespaceMigrationRequest(string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); @@ -1142,6 +1351,21 @@ public Response AbortHierarchicalNamespaceMigration(string subscriptionId, strin } } + internal RequestUriBuilder CreateRestoreBlobRangesRequestUri(string subscriptionId, string resourceGroupName, string accountName, BlobRestoreContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Storage/storageAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/restoreBlobRanges", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRestoreBlobRangesRequest(string subscriptionId, string resourceGroupName, string accountName, BlobRestoreContent content) { var message = _pipeline.CreateMessage(); @@ -1221,6 +1445,21 @@ public Response RestoreBlobRanges(string subscriptionId, string resourceGroupNam } } + internal RequestUriBuilder CreateRevokeUserDelegationKeysRequestUri(string subscriptionId, string resourceGroupName, string accountName) + { + 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.Storage/storageAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/revokeUserDelegationKeys", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRevokeUserDelegationKeysRequest(string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); @@ -1289,6 +1528,14 @@ public Response RevokeUserDelegationKeys(string subscriptionId, string resourceG } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -1357,6 +1604,14 @@ public Response ListNextPage(string nextLink, string s } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/TableRestOperations.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/TableRestOperations.cs index fc56263dadc4..ffe3a518c0cb 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/TableRestOperations.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/TableRestOperations.cs @@ -37,6 +37,22 @@ public TableRestOperations(HttpPipeline pipeline, string applicationId, Uri endp _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string accountName, string tableName, TableData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Storage/storageAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/tableServices/default/tables/", false); + uri.AppendPath(tableName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string accountName, string tableName, TableData data) { var message = _pipeline.CreateMessage(); @@ -129,6 +145,22 @@ public Response Create(string subscriptionId, string resourceGroupNam } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string accountName, string tableName, TableData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Storage/storageAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/tableServices/default/tables/", false); + uri.AppendPath(tableName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string accountName, string tableName, TableData data) { var message = _pipeline.CreateMessage(); @@ -221,6 +253,22 @@ public Response Update(string subscriptionId, string resourceGroupNam } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string accountName, string tableName) + { + 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.Storage/storageAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/tableServices/default/tables/", false); + uri.AppendPath(tableName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string accountName, string tableName) { var message = _pipeline.CreateMessage(); @@ -309,6 +357,22 @@ public Response Get(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string accountName, string tableName) + { + 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.Storage/storageAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/tableServices/default/tables/", false); + uri.AppendPath(tableName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string accountName, string tableName) { var message = _pipeline.CreateMessage(); @@ -383,6 +447,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string a } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string accountName) + { + 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.Storage/storageAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/tableServices/default/tables", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); @@ -462,6 +541,14 @@ public Response List(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string accountName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/TableServicesRestOperations.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/TableServicesRestOperations.cs index 79210e4f642f..c426e584c0ed 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/TableServicesRestOperations.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/TableServicesRestOperations.cs @@ -37,6 +37,21 @@ public TableServicesRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string accountName) + { + 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.Storage/storageAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/tableServices", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response List(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateSetServicePropertiesRequestUri(string subscriptionId, string resourceGroupName, string accountName, TableServiceData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Storage/storageAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/tableServices/", false); + uri.AppendPath("default", true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateSetServicePropertiesRequest(string subscriptionId, string resourceGroupName, string accountName, TableServiceData data) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response SetServiceProperties(string subscriptionId, st } } + internal RequestUriBuilder CreateGetServicePropertiesRequestUri(string subscriptionId, string resourceGroupName, string accountName) + { + 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.Storage/storageAccounts/", false); + uri.AppendPath(accountName, true); + uri.AppendPath("/tableServices/", false); + uri.AppendPath("default", true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetServicePropertiesRequest(string subscriptionId, string resourceGroupName, string accountName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/UsagesRestOperations.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/UsagesRestOperations.cs index e4f5c61b6459..a6137ddc8a55 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/UsagesRestOperations.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/UsagesRestOperations.cs @@ -37,6 +37,19 @@ public UsagesRestOperations(HttpPipeline pipeline, string applicationId, Uri end _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByLocationRequestUri(string subscriptionId, AzureLocation location) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Storage/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/usages", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByLocationRequest(string subscriptionId, AzureLocation location) { var message = _pipeline.CreateMessage(); diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StorageAccountLocalUserCollection.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StorageAccountLocalUserCollection.cs index a207456dcdc9..934b437bf138 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StorageAccountLocalUserCollection.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StorageAccountLocalUserCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> CreateO try { var response = await _storageAccountLocalUserLocalUsersRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, username, data, cancellationToken).ConfigureAwait(false); - var operation = new StorageArmOperation(Response.FromValue(new StorageAccountLocalUserResource(Client, response), response.GetRawResponse())); + var uri = _storageAccountLocalUserLocalUsersRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, username, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new StorageArmOperation(Response.FromValue(new StorageAccountLocalUserResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(Wait try { var response = _storageAccountLocalUserLocalUsersRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, username, data, cancellationToken); - var operation = new StorageArmOperation(Response.FromValue(new StorageAccountLocalUserResource(Client, response), response.GetRawResponse())); + var uri = _storageAccountLocalUserLocalUsersRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, username, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new StorageArmOperation(Response.FromValue(new StorageAccountLocalUserResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StorageAccountLocalUserResource.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StorageAccountLocalUserResource.cs index 5d34fc9c1042..6e088645d863 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StorageAccountLocalUserResource.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StorageAccountLocalUserResource.cs @@ -201,7 +201,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _storageAccountLocalUserLocalUsersRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new StorageArmOperation(response); + var uri = _storageAccountLocalUserLocalUsersRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new StorageArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -243,7 +245,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _storageAccountLocalUserLocalUsersRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new StorageArmOperation(response); + var uri = _storageAccountLocalUserLocalUsersRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new StorageArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -289,7 +293,9 @@ public virtual async Task> UpdateA try { var response = await _storageAccountLocalUserLocalUsersRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new StorageArmOperation(Response.FromValue(new StorageAccountLocalUserResource(Client, response), response.GetRawResponse())); + var uri = _storageAccountLocalUserLocalUsersRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new StorageArmOperation(Response.FromValue(new StorageAccountLocalUserResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -335,7 +341,9 @@ public virtual ArmOperation Update(WaitUntil wa try { var response = _storageAccountLocalUserLocalUsersRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new StorageArmOperation(Response.FromValue(new StorageAccountLocalUserResource(Client, response), response.GetRawResponse())); + var uri = _storageAccountLocalUserLocalUsersRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new StorageArmOperation(Response.FromValue(new StorageAccountLocalUserResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StorageAccountManagementPolicyResource.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StorageAccountManagementPolicyResource.cs index 9e769f3e1606..905cfb20850d 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StorageAccountManagementPolicyResource.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StorageAccountManagementPolicyResource.cs @@ -201,7 +201,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _storageAccountManagementPolicyManagementPoliciesRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new StorageArmOperation(response); + var uri = _storageAccountManagementPolicyManagementPoliciesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new StorageArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -243,7 +245,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _storageAccountManagementPolicyManagementPoliciesRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new StorageArmOperation(response); + var uri = _storageAccountManagementPolicyManagementPoliciesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new StorageArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -289,7 +293,9 @@ public virtual async Task> try { var response = await _storageAccountManagementPolicyManagementPoliciesRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new StorageArmOperation(Response.FromValue(new StorageAccountManagementPolicyResource(Client, response), response.GetRawResponse())); + var uri = _storageAccountManagementPolicyManagementPoliciesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new StorageArmOperation(Response.FromValue(new StorageAccountManagementPolicyResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -335,7 +341,9 @@ public virtual ArmOperation CreateOrUpda try { var response = _storageAccountManagementPolicyManagementPoliciesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new StorageArmOperation(Response.FromValue(new StorageAccountManagementPolicyResource(Client, response), response.GetRawResponse())); + var uri = _storageAccountManagementPolicyManagementPoliciesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new StorageArmOperation(Response.FromValue(new StorageAccountManagementPolicyResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StorageAccountResource.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StorageAccountResource.cs index 82950e36a01f..df5819d38b1b 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StorageAccountResource.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StorageAccountResource.cs @@ -527,7 +527,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _storageAccountRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new StorageArmOperation(response); + var uri = _storageAccountRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new StorageArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -569,7 +571,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _storageAccountRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); - var operation = new StorageArmOperation(response); + var uri = _storageAccountRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new StorageArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StoragePrivateEndpointConnectionCollection.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StoragePrivateEndpointConnectionCollection.cs index 5e7a1d214aa4..125dd45e4e03 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StoragePrivateEndpointConnectionCollection.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StoragePrivateEndpointConnectionCollection.cs @@ -90,7 +90,9 @@ public virtual async Task try { var response = await _storagePrivateEndpointConnectionPrivateEndpointConnectionsRestClient.PutAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, privateEndpointConnectionName, data, cancellationToken).ConfigureAwait(false); - var operation = new StorageArmOperation(Response.FromValue(new StoragePrivateEndpointConnectionResource(Client, response), response.GetRawResponse())); + var uri = _storagePrivateEndpointConnectionPrivateEndpointConnectionsRestClient.CreatePutRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, privateEndpointConnectionName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new StorageArmOperation(Response.FromValue(new StoragePrivateEndpointConnectionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUp try { var response = _storagePrivateEndpointConnectionPrivateEndpointConnectionsRestClient.Put(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, privateEndpointConnectionName, data, cancellationToken); - var operation = new StorageArmOperation(Response.FromValue(new StoragePrivateEndpointConnectionResource(Client, response), response.GetRawResponse())); + var uri = _storagePrivateEndpointConnectionPrivateEndpointConnectionsRestClient.CreatePutRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, privateEndpointConnectionName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new StorageArmOperation(Response.FromValue(new StoragePrivateEndpointConnectionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StoragePrivateEndpointConnectionResource.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StoragePrivateEndpointConnectionResource.cs index 873929e60b3d..08f2d44caeec 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StoragePrivateEndpointConnectionResource.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StoragePrivateEndpointConnectionResource.cs @@ -200,7 +200,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _storagePrivateEndpointConnectionPrivateEndpointConnectionsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new StorageArmOperation(response); + var uri = _storagePrivateEndpointConnectionPrivateEndpointConnectionsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new StorageArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -242,7 +244,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _storagePrivateEndpointConnectionPrivateEndpointConnectionsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new StorageArmOperation(response); + var uri = _storagePrivateEndpointConnectionPrivateEndpointConnectionsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new StorageArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -288,7 +292,9 @@ public virtual async Task try { var response = await _storagePrivateEndpointConnectionPrivateEndpointConnectionsRestClient.PutAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new StorageArmOperation(Response.FromValue(new StoragePrivateEndpointConnectionResource(Client, response), response.GetRawResponse())); + var uri = _storagePrivateEndpointConnectionPrivateEndpointConnectionsRestClient.CreatePutRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new StorageArmOperation(Response.FromValue(new StoragePrivateEndpointConnectionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -334,7 +340,9 @@ public virtual ArmOperation Update(Wai try { var response = _storagePrivateEndpointConnectionPrivateEndpointConnectionsRestClient.Put(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new StorageArmOperation(Response.FromValue(new StoragePrivateEndpointConnectionResource(Client, response), response.GetRawResponse())); + var uri = _storagePrivateEndpointConnectionPrivateEndpointConnectionsRestClient.CreatePutRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new StorageArmOperation(Response.FromValue(new StoragePrivateEndpointConnectionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StorageQueueCollection.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StorageQueueCollection.cs index 079c372a94b3..c1a7019c99e4 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StorageQueueCollection.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StorageQueueCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> CreateOrUpdateAsyn try { var response = await _storageQueueQueueRestClient.CreateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, queueName, data, cancellationToken).ConfigureAwait(false); - var operation = new StorageArmOperation(Response.FromValue(new StorageQueueResource(Client, response), response.GetRawResponse())); + var uri = _storageQueueQueueRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, queueName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new StorageArmOperation(Response.FromValue(new StorageQueueResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitU try { var response = _storageQueueQueueRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, queueName, data, cancellationToken); - var operation = new StorageArmOperation(Response.FromValue(new StorageQueueResource(Client, response), response.GetRawResponse())); + var uri = _storageQueueQueueRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, queueName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new StorageArmOperation(Response.FromValue(new StorageQueueResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StorageQueueResource.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StorageQueueResource.cs index 3d293ed544d3..309eaf74795b 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StorageQueueResource.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StorageQueueResource.cs @@ -200,7 +200,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _storageQueueQueueRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new StorageArmOperation(response); + var uri = _storageQueueQueueRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new StorageArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -242,7 +244,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _storageQueueQueueRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Name, cancellationToken); - var operation = new StorageArmOperation(response); + var uri = _storageQueueQueueRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new StorageArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/TableCollection.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/TableCollection.cs index bc7b9228ef8d..516fb9ac400e 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/TableCollection.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/TableCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> CreateOrUpdateAsync(WaitU try { var response = await _tableRestClient.CreateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, tableName, data, cancellationToken).ConfigureAwait(false); - var operation = new StorageArmOperation(Response.FromValue(new TableResource(Client, response), response.GetRawResponse())); + var uri = _tableRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, tableName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new StorageArmOperation(Response.FromValue(new TableResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, s try { var response = _tableRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, tableName, data, cancellationToken); - var operation = new StorageArmOperation(Response.FromValue(new TableResource(Client, response), response.GetRawResponse())); + var uri = _tableRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, tableName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new StorageArmOperation(Response.FromValue(new TableResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/TableResource.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/TableResource.cs index e0bc9a9ac9dc..5a799238f93e 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/TableResource.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/TableResource.cs @@ -200,7 +200,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _tableRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new StorageArmOperation(response); + var uri = _tableRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new StorageArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -242,7 +244,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _tableRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Name, cancellationToken); - var operation = new StorageArmOperation(response); + var uri = _tableRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new StorageArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/TableServiceResource.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/TableServiceResource.cs index 3ada2d538d1a..c26ea50f82e2 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/TableServiceResource.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/TableServiceResource.cs @@ -272,7 +272,9 @@ public virtual async Task> CreateOrUpdateAsyn try { var response = await _tableServiceRestClient.SetServicePropertiesAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new StorageArmOperation(Response.FromValue(new TableServiceResource(Client, response), response.GetRawResponse())); + var uri = _tableServiceRestClient.CreateSetServicePropertiesRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new StorageArmOperation(Response.FromValue(new TableServiceResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -318,7 +320,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitU try { var response = _tableServiceRestClient.SetServiceProperties(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, data, cancellationToken); - var operation = new StorageArmOperation(Response.FromValue(new TableServiceResource(Client, response), response.GetRawResponse())); + var uri = _tableServiceRestClient.CreateSetServicePropertiesRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new StorageArmOperation(Response.FromValue(new TableServiceResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/JobDefinitionCollection.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/JobDefinitionCollection.cs index 1a8d135e23cc..091a2886668f 100644 --- a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/JobDefinitionCollection.cs +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/JobDefinitionCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> CreateOrUpdateAsy try { var response = await _jobDefinitionRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, jobDefinitionName, data, cancellationToken).ConfigureAwait(false); - var operation = new StorageMoverArmOperation(Response.FromValue(new JobDefinitionResource(Client, response), response.GetRawResponse())); + var uri = _jobDefinitionRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, jobDefinitionName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new StorageMoverArmOperation(Response.FromValue(new JobDefinitionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wait try { var response = _jobDefinitionRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, jobDefinitionName, data, cancellationToken); - var operation = new StorageMoverArmOperation(Response.FromValue(new JobDefinitionResource(Client, response), response.GetRawResponse())); + var uri = _jobDefinitionRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, jobDefinitionName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new StorageMoverArmOperation(Response.FromValue(new JobDefinitionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/LongRunningOperation/StorageMoverArmOperation.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/LongRunningOperation/StorageMoverArmOperation.cs index fc6aeaa843e9..7d8503173182 100644 --- a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/LongRunningOperation/StorageMoverArmOperation.cs +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/LongRunningOperation/StorageMoverArmOperation.cs @@ -20,21 +20,24 @@ internal class StorageMoverArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of StorageMoverArmOperation for mocking. protected StorageMoverArmOperation() { } - internal StorageMoverArmOperation(Response response) + internal StorageMoverArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal StorageMoverArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "StorageMoverArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal StorageMoverArmOperation(ClientDiagnostics clientDiagnostics, HttpPipel public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/LongRunningOperation/StorageMoverArmOperationOfT.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/LongRunningOperation/StorageMoverArmOperationOfT.cs index ddd71c620fa1..06c51d9d5369 100644 --- a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/LongRunningOperation/StorageMoverArmOperationOfT.cs +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/LongRunningOperation/StorageMoverArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class StorageMoverArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of StorageMoverArmOperation for mocking. protected StorageMoverArmOperation() { } - internal StorageMoverArmOperation(Response response) + internal StorageMoverArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal StorageMoverArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "StorageMoverArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal StorageMoverArmOperation(IOperationSource source, ClientDiagnostics public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/JobDefinitionResource.Serialization.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/JobDefinitionResource.Serialization.cs new file mode 100644 index 000000000000..c09783963cf0 --- /dev/null +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/JobDefinitionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.StorageMover +{ + public partial class JobDefinitionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + JobDefinitionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + JobDefinitionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/JobRunResource.Serialization.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/JobRunResource.Serialization.cs new file mode 100644 index 000000000000..2587d36aed02 --- /dev/null +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/JobRunResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.StorageMover +{ + public partial class JobRunResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + JobRunData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + JobRunData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/StorageMoverAgentResource.Serialization.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/StorageMoverAgentResource.Serialization.cs new file mode 100644 index 000000000000..191dff2d641d --- /dev/null +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/StorageMoverAgentResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.StorageMover +{ + public partial class StorageMoverAgentResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + StorageMoverAgentData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + StorageMoverAgentData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/StorageMoverEndpointResource.Serialization.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/StorageMoverEndpointResource.Serialization.cs new file mode 100644 index 000000000000..becb742102fc --- /dev/null +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/StorageMoverEndpointResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.StorageMover +{ + public partial class StorageMoverEndpointResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + StorageMoverEndpointData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + StorageMoverEndpointData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/StorageMoverProjectResource.Serialization.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/StorageMoverProjectResource.Serialization.cs new file mode 100644 index 000000000000..e93d931d7cff --- /dev/null +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/StorageMoverProjectResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.StorageMover +{ + public partial class StorageMoverProjectResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + StorageMoverProjectData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + StorageMoverProjectData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/StorageMoverResource.Serialization.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/StorageMoverResource.Serialization.cs new file mode 100644 index 000000000000..db7b8ce400e9 --- /dev/null +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/StorageMoverResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.StorageMover +{ + public partial class StorageMoverResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + StorageMoverData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + StorageMoverData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/RestOperations/AgentsRestOperations.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/RestOperations/AgentsRestOperations.cs index d0ecea09fd03..6086652127cf 100644 --- a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/RestOperations/AgentsRestOperations.cs +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/RestOperations/AgentsRestOperations.cs @@ -37,6 +37,21 @@ public AgentsRestOperations(HttpPipeline pipeline, string applicationId, Uri end _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string storageMoverName) + { + 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.StorageMover/storageMovers/", false); + uri.AppendPath(storageMoverName, true); + uri.AppendPath("/agents", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string storageMoverName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response List(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string storageMoverName, string agentName) + { + 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.StorageMover/storageMovers/", false); + uri.AppendPath(storageMoverName, true); + uri.AppendPath("/agents/", false); + uri.AppendPath(agentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string storageMoverName, string agentName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscriptionId, string resourc } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string storageMoverName, string agentName, StorageMoverAgentData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.StorageMover/storageMovers/", false); + uri.AppendPath(storageMoverName, true); + uri.AppendPath("/agents/", false); + uri.AppendPath(agentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string storageMoverName, string agentName, StorageMoverAgentData data) { var message = _pipeline.CreateMessage(); @@ -296,6 +343,22 @@ public Response CreateOrUpdate(string subscriptionId, str } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string storageMoverName, string agentName, StorageMoverAgentPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.StorageMover/storageMovers/", false); + uri.AppendPath(storageMoverName, true); + uri.AppendPath("/agents/", false); + uri.AppendPath(agentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string storageMoverName, string agentName, StorageMoverAgentPatch patch) { var message = _pipeline.CreateMessage(); @@ -388,6 +451,22 @@ public Response Update(string subscriptionId, string reso } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string storageMoverName, string agentName) + { + 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.StorageMover/storageMovers/", false); + uri.AppendPath(storageMoverName, true); + uri.AppendPath("/agents/", false); + uri.AppendPath(agentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string storageMoverName, string agentName) { var message = _pipeline.CreateMessage(); @@ -466,6 +545,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string storageMoverName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string storageMoverName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/RestOperations/EndpointsRestOperations.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/RestOperations/EndpointsRestOperations.cs index b55611af84f7..c3f279fbff30 100644 --- a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/RestOperations/EndpointsRestOperations.cs +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/RestOperations/EndpointsRestOperations.cs @@ -37,6 +37,21 @@ public EndpointsRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string storageMoverName) + { + 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.StorageMover/storageMovers/", false); + uri.AppendPath(storageMoverName, true); + uri.AppendPath("/endpoints", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string storageMoverName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response List(string subscriptionId, string resourceGroupNa } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string storageMoverName, string endpointName) + { + 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.StorageMover/storageMovers/", false); + uri.AppendPath(storageMoverName, true); + uri.AppendPath("/endpoints/", false); + uri.AppendPath(endpointName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string storageMoverName, string endpointName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscriptionId, string reso } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string storageMoverName, string endpointName, StorageMoverEndpointData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.StorageMover/storageMovers/", false); + uri.AppendPath(storageMoverName, true); + uri.AppendPath("/endpoints/", false); + uri.AppendPath(endpointName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string storageMoverName, string endpointName, StorageMoverEndpointData data) { var message = _pipeline.CreateMessage(); @@ -296,6 +343,22 @@ public Response CreateOrUpdate(string subscriptionId, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string storageMoverName, string endpointName, StorageMoverEndpointPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.StorageMover/storageMovers/", false); + uri.AppendPath(storageMoverName, true); + uri.AppendPath("/endpoints/", false); + uri.AppendPath(endpointName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string storageMoverName, string endpointName, StorageMoverEndpointPatch patch) { var message = _pipeline.CreateMessage(); @@ -388,6 +451,22 @@ public Response Update(string subscriptionId, string r } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string storageMoverName, string endpointName) + { + 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.StorageMover/storageMovers/", false); + uri.AppendPath(storageMoverName, true); + uri.AppendPath("/endpoints/", false); + uri.AppendPath(endpointName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string storageMoverName, string endpointName) { var message = _pipeline.CreateMessage(); @@ -466,6 +545,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string storageMoverName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string storageMoverName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/RestOperations/JobDefinitionsRestOperations.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/RestOperations/JobDefinitionsRestOperations.cs index f0e5e3ce7db1..72f8c521ed43 100644 --- a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/RestOperations/JobDefinitionsRestOperations.cs +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/RestOperations/JobDefinitionsRestOperations.cs @@ -37,6 +37,23 @@ public JobDefinitionsRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string storageMoverName, string projectName) + { + 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.StorageMover/storageMovers/", false); + uri.AppendPath(storageMoverName, true); + uri.AppendPath("/projects/", false); + uri.AppendPath(projectName, true); + uri.AppendPath("/jobDefinitions", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string storageMoverName, string projectName) { var message = _pipeline.CreateMessage(); @@ -122,6 +139,24 @@ public Response List(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string storageMoverName, string projectName, string jobDefinitionName) + { + 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.StorageMover/storageMovers/", false); + uri.AppendPath(storageMoverName, true); + uri.AppendPath("/projects/", false); + uri.AppendPath(projectName, true); + uri.AppendPath("/jobDefinitions/", false); + uri.AppendPath(jobDefinitionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string storageMoverName, string projectName, string jobDefinitionName) { var message = _pipeline.CreateMessage(); @@ -216,6 +251,24 @@ public Response Get(string subscriptionId, string resourceGro } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string storageMoverName, string projectName, string jobDefinitionName, JobDefinitionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.StorageMover/storageMovers/", false); + uri.AppendPath(storageMoverName, true); + uri.AppendPath("/projects/", false); + uri.AppendPath(projectName, true); + uri.AppendPath("/jobDefinitions/", false); + uri.AppendPath(jobDefinitionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string storageMoverName, string projectName, string jobDefinitionName, JobDefinitionData data) { var message = _pipeline.CreateMessage(); @@ -314,6 +367,24 @@ public Response CreateOrUpdate(string subscriptionId, string } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string storageMoverName, string projectName, string jobDefinitionName, JobDefinitionPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.StorageMover/storageMovers/", false); + uri.AppendPath(storageMoverName, true); + uri.AppendPath("/projects/", false); + uri.AppendPath(projectName, true); + uri.AppendPath("/jobDefinitions/", false); + uri.AppendPath(jobDefinitionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string storageMoverName, string projectName, string jobDefinitionName, JobDefinitionPatch patch) { var message = _pipeline.CreateMessage(); @@ -412,6 +483,24 @@ public Response Update(string subscriptionId, string resource } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string storageMoverName, string projectName, string jobDefinitionName) + { + 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.StorageMover/storageMovers/", false); + uri.AppendPath(storageMoverName, true); + uri.AppendPath("/projects/", false); + uri.AppendPath(projectName, true); + uri.AppendPath("/jobDefinitions/", false); + uri.AppendPath(jobDefinitionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string storageMoverName, string projectName, string jobDefinitionName) { var message = _pipeline.CreateMessage(); @@ -496,6 +585,25 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateStartJobRequestUri(string subscriptionId, string resourceGroupName, string storageMoverName, string projectName, string jobDefinitionName) + { + 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.StorageMover/storageMovers/", false); + uri.AppendPath(storageMoverName, true); + uri.AppendPath("/projects/", false); + uri.AppendPath(projectName, true); + uri.AppendPath("/jobDefinitions/", false); + uri.AppendPath(jobDefinitionName, true); + uri.AppendPath("/startJob", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStartJobRequest(string subscriptionId, string resourceGroupName, string storageMoverName, string projectName, string jobDefinitionName) { var message = _pipeline.CreateMessage(); @@ -587,6 +695,25 @@ public Response StartJob(string subscriptionId, string resourc } } + internal RequestUriBuilder CreateStopJobRequestUri(string subscriptionId, string resourceGroupName, string storageMoverName, string projectName, string jobDefinitionName) + { + 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.StorageMover/storageMovers/", false); + uri.AppendPath(storageMoverName, true); + uri.AppendPath("/projects/", false); + uri.AppendPath(projectName, true); + uri.AppendPath("/jobDefinitions/", false); + uri.AppendPath(jobDefinitionName, true); + uri.AppendPath("/stopJob", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStopJobRequest(string subscriptionId, string resourceGroupName, string storageMoverName, string projectName, string jobDefinitionName) { var message = _pipeline.CreateMessage(); @@ -678,6 +805,14 @@ public Response StopJob(string subscriptionId, string resource } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string storageMoverName, string projectName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string storageMoverName, string projectName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/RestOperations/JobRunsRestOperations.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/RestOperations/JobRunsRestOperations.cs index 3079d32b2716..ffc83bfc380d 100644 --- a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/RestOperations/JobRunsRestOperations.cs +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/RestOperations/JobRunsRestOperations.cs @@ -37,6 +37,25 @@ public JobRunsRestOperations(HttpPipeline pipeline, string applicationId, Uri en _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string storageMoverName, string projectName, string jobDefinitionName) + { + 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.StorageMover/storageMovers/", false); + uri.AppendPath(storageMoverName, true); + uri.AppendPath("/projects/", false); + uri.AppendPath(projectName, true); + uri.AppendPath("/jobDefinitions/", false); + uri.AppendPath(jobDefinitionName, true); + uri.AppendPath("/jobRuns", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string storageMoverName, string projectName, string jobDefinitionName) { var message = _pipeline.CreateMessage(); @@ -128,6 +147,26 @@ public Response List(string subscriptionId, string resourceGroupName } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string storageMoverName, string projectName, string jobDefinitionName, string jobRunName) + { + 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.StorageMover/storageMovers/", false); + uri.AppendPath(storageMoverName, true); + uri.AppendPath("/projects/", false); + uri.AppendPath(projectName, true); + uri.AppendPath("/jobDefinitions/", false); + uri.AppendPath(jobDefinitionName, true); + uri.AppendPath("/jobRuns/", false); + uri.AppendPath(jobRunName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string storageMoverName, string projectName, string jobDefinitionName, string jobRunName) { var message = _pipeline.CreateMessage(); @@ -228,6 +267,14 @@ public Response Get(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string storageMoverName, string projectName, string jobDefinitionName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string storageMoverName, string projectName, string jobDefinitionName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/RestOperations/ProjectsRestOperations.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/RestOperations/ProjectsRestOperations.cs index 943a02401c95..4bcabbd4baff 100644 --- a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/RestOperations/ProjectsRestOperations.cs +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/RestOperations/ProjectsRestOperations.cs @@ -37,6 +37,21 @@ public ProjectsRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string storageMoverName) + { + 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.StorageMover/storageMovers/", false); + uri.AppendPath(storageMoverName, true); + uri.AppendPath("/projects", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string storageMoverName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response List(string subscriptionId, string resourceGroupNam } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string storageMoverName, string projectName) + { + 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.StorageMover/storageMovers/", false); + uri.AppendPath(storageMoverName, true); + uri.AppendPath("/projects/", false); + uri.AppendPath(projectName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string storageMoverName, string projectName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscriptionId, string resou } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string storageMoverName, string projectName, StorageMoverProjectData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.StorageMover/storageMovers/", false); + uri.AppendPath(storageMoverName, true); + uri.AppendPath("/projects/", false); + uri.AppendPath(projectName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string storageMoverName, string projectName, StorageMoverProjectData data) { var message = _pipeline.CreateMessage(); @@ -296,6 +343,22 @@ public Response CreateOrUpdate(string subscriptionId, s } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string storageMoverName, string projectName, StorageMoverProjectPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.StorageMover/storageMovers/", false); + uri.AppendPath(storageMoverName, true); + uri.AppendPath("/projects/", false); + uri.AppendPath(projectName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string storageMoverName, string projectName, StorageMoverProjectPatch patch) { var message = _pipeline.CreateMessage(); @@ -388,6 +451,22 @@ public Response Update(string subscriptionId, string re } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string storageMoverName, string projectName) + { + 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.StorageMover/storageMovers/", false); + uri.AppendPath(storageMoverName, true); + uri.AppendPath("/projects/", false); + uri.AppendPath(projectName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string storageMoverName, string projectName) { var message = _pipeline.CreateMessage(); @@ -466,6 +545,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string storageMoverName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string storageMoverName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/RestOperations/StorageMoversRestOperations.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/RestOperations/StorageMoversRestOperations.cs index 8b2720a20127..298a09b01f48 100644 --- a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/RestOperations/StorageMoversRestOperations.cs +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/RestOperations/StorageMoversRestOperations.cs @@ -37,6 +37,17 @@ public StorageMoversRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.StorageMover/storageMovers", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,19 @@ public Response ListBySubscription(string subscriptionId, Canc } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName) + { + 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.StorageMover/storageMovers", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -177,6 +201,20 @@ public Response List(string subscriptionId, string resourceGro } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string storageMoverName) + { + 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.StorageMover/storageMovers/", false); + uri.AppendPath(storageMoverName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string storageMoverName) { var message = _pipeline.CreateMessage(); @@ -259,6 +297,20 @@ public Response Get(string subscriptionId, string resourceGrou } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string storageMoverName, StorageMoverData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.StorageMover/storageMovers/", false); + uri.AppendPath(storageMoverName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string storageMoverName, StorageMoverData data) { var message = _pipeline.CreateMessage(); @@ -345,6 +397,20 @@ public Response CreateOrUpdate(string subscriptionId, string r } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string storageMoverName, StorageMoverPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.StorageMover/storageMovers/", false); + uri.AppendPath(storageMoverName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string storageMoverName, StorageMoverPatch patch) { var message = _pipeline.CreateMessage(); @@ -431,6 +497,20 @@ public Response Update(string subscriptionId, string resourceG } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string storageMoverName) + { + 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.StorageMover/storageMovers/", false); + uri.AppendPath(storageMoverName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string storageMoverName) { var message = _pipeline.CreateMessage(); @@ -503,6 +583,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -571,6 +659,14 @@ public Response ListBySubscriptionNextPage(string nextLink, st } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/StorageMoverAgentCollection.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/StorageMoverAgentCollection.cs index 8a6f9565a893..2a14d53f36b1 100644 --- a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/StorageMoverAgentCollection.cs +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/StorageMoverAgentCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> CreateOrUpdat try { var response = await _storageMoverAgentAgentsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, agentName, data, cancellationToken).ConfigureAwait(false); - var operation = new StorageMoverArmOperation(Response.FromValue(new StorageMoverAgentResource(Client, response), response.GetRawResponse())); + var uri = _storageMoverAgentAgentsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, agentName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new StorageMoverArmOperation(Response.FromValue(new StorageMoverAgentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil try { var response = _storageMoverAgentAgentsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, agentName, data, cancellationToken); - var operation = new StorageMoverArmOperation(Response.FromValue(new StorageMoverAgentResource(Client, response), response.GetRawResponse())); + var uri = _storageMoverAgentAgentsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, agentName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new StorageMoverArmOperation(Response.FromValue(new StorageMoverAgentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/StorageMoverCollection.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/StorageMoverCollection.cs index 264e0ef9d92d..5699ee091de9 100644 --- a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/StorageMoverCollection.cs +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/StorageMoverCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> CreateOrUpdateAsyn try { var response = await _storageMoverRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, storageMoverName, data, cancellationToken).ConfigureAwait(false); - var operation = new StorageMoverArmOperation(Response.FromValue(new StorageMoverResource(Client, response), response.GetRawResponse())); + var uri = _storageMoverRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, storageMoverName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new StorageMoverArmOperation(Response.FromValue(new StorageMoverResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -140,7 +142,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitU try { var response = _storageMoverRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, storageMoverName, data, cancellationToken); - var operation = new StorageMoverArmOperation(Response.FromValue(new StorageMoverResource(Client, response), response.GetRawResponse())); + var uri = _storageMoverRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, storageMoverName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new StorageMoverArmOperation(Response.FromValue(new StorageMoverResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/StorageMoverEndpointCollection.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/StorageMoverEndpointCollection.cs index bc60682da956..ddef01be9244 100644 --- a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/StorageMoverEndpointCollection.cs +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/StorageMoverEndpointCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> CreateOrUp try { var response = await _storageMoverEndpointEndpointsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, endpointName, data, cancellationToken).ConfigureAwait(false); - var operation = new StorageMoverArmOperation(Response.FromValue(new StorageMoverEndpointResource(Client, response), response.GetRawResponse())); + var uri = _storageMoverEndpointEndpointsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, endpointName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new StorageMoverArmOperation(Response.FromValue(new StorageMoverEndpointResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUnt try { var response = _storageMoverEndpointEndpointsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, endpointName, data, cancellationToken); - var operation = new StorageMoverArmOperation(Response.FromValue(new StorageMoverEndpointResource(Client, response), response.GetRawResponse())); + var uri = _storageMoverEndpointEndpointsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, endpointName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new StorageMoverArmOperation(Response.FromValue(new StorageMoverEndpointResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/StorageMoverProjectCollection.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/StorageMoverProjectCollection.cs index 45ef62ae656e..435134f6358c 100644 --- a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/StorageMoverProjectCollection.cs +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/StorageMoverProjectCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> CreateOrUpd try { var response = await _storageMoverProjectProjectsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, projectName, data, cancellationToken).ConfigureAwait(false); - var operation = new StorageMoverArmOperation(Response.FromValue(new StorageMoverProjectResource(Client, response), response.GetRawResponse())); + var uri = _storageMoverProjectProjectsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, projectName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new StorageMoverArmOperation(Response.FromValue(new StorageMoverProjectResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUnti try { var response = _storageMoverProjectProjectsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, projectName, data, cancellationToken); - var operation = new StorageMoverArmOperation(Response.FromValue(new StorageMoverProjectResource(Client, response), response.GetRawResponse())); + var uri = _storageMoverProjectProjectsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, projectName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new StorageMoverArmOperation(Response.FromValue(new StorageMoverProjectResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/storagepool/Azure.ResourceManager.StoragePool/src/Generated/LongRunningOperation/StoragePoolArmOperation.cs b/sdk/storagepool/Azure.ResourceManager.StoragePool/src/Generated/LongRunningOperation/StoragePoolArmOperation.cs index 2ef3ffd3ce88..f475d848ca42 100644 --- a/sdk/storagepool/Azure.ResourceManager.StoragePool/src/Generated/LongRunningOperation/StoragePoolArmOperation.cs +++ b/sdk/storagepool/Azure.ResourceManager.StoragePool/src/Generated/LongRunningOperation/StoragePoolArmOperation.cs @@ -20,21 +20,24 @@ internal class StoragePoolArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of StoragePoolArmOperation for mocking. protected StoragePoolArmOperation() { } - internal StoragePoolArmOperation(Response response) + internal StoragePoolArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal StoragePoolArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "StoragePoolArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal StoragePoolArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeli public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/storagepool/Azure.ResourceManager.StoragePool/src/Generated/LongRunningOperation/StoragePoolArmOperationOfT.cs b/sdk/storagepool/Azure.ResourceManager.StoragePool/src/Generated/LongRunningOperation/StoragePoolArmOperationOfT.cs index ef748b5662d8..90659f1cdd81 100644 --- a/sdk/storagepool/Azure.ResourceManager.StoragePool/src/Generated/LongRunningOperation/StoragePoolArmOperationOfT.cs +++ b/sdk/storagepool/Azure.ResourceManager.StoragePool/src/Generated/LongRunningOperation/StoragePoolArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class StoragePoolArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of StoragePoolArmOperation for mocking. protected StoragePoolArmOperation() { } - internal StoragePoolArmOperation(Response response) + internal StoragePoolArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal StoragePoolArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "StoragePoolArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal StoragePoolArmOperation(IOperationSource source, ClientDiagnostics c public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/storagepool/Azure.ResourceManager.StoragePool/src/Generated/Models/DiskPoolIscsiTargetResource.Serialization.cs b/sdk/storagepool/Azure.ResourceManager.StoragePool/src/Generated/Models/DiskPoolIscsiTargetResource.Serialization.cs new file mode 100644 index 000000000000..5d0f98cd1d71 --- /dev/null +++ b/sdk/storagepool/Azure.ResourceManager.StoragePool/src/Generated/Models/DiskPoolIscsiTargetResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.StoragePool +{ + public partial class DiskPoolIscsiTargetResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DiskPoolIscsiTargetData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DiskPoolIscsiTargetData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/storagepool/Azure.ResourceManager.StoragePool/src/Generated/Models/DiskPoolResource.Serialization.cs b/sdk/storagepool/Azure.ResourceManager.StoragePool/src/Generated/Models/DiskPoolResource.Serialization.cs new file mode 100644 index 000000000000..8c247874738d --- /dev/null +++ b/sdk/storagepool/Azure.ResourceManager.StoragePool/src/Generated/Models/DiskPoolResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.StoragePool +{ + public partial class DiskPoolResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DiskPoolData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DiskPoolData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/storagepool/Azure.ResourceManager.StoragePool/src/Generated/RestOperations/DiskPoolZonesRestOperations.cs b/sdk/storagepool/Azure.ResourceManager.StoragePool/src/Generated/RestOperations/DiskPoolZonesRestOperations.cs index 3b45ac74e6a3..b283a1316908 100644 --- a/sdk/storagepool/Azure.ResourceManager.StoragePool/src/Generated/RestOperations/DiskPoolZonesRestOperations.cs +++ b/sdk/storagepool/Azure.ResourceManager.StoragePool/src/Generated/RestOperations/DiskPoolZonesRestOperations.cs @@ -37,6 +37,19 @@ public DiskPoolZonesRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, AzureLocation location) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.StoragePool/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/diskPoolZones", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, AzureLocation location) { var message = _pipeline.CreateMessage(); @@ -108,6 +121,14 @@ public Response List(string subscriptionId, AzureLocatio } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, AzureLocation location) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, AzureLocation location) { var message = _pipeline.CreateMessage(); diff --git a/sdk/storagepool/Azure.ResourceManager.StoragePool/src/Generated/RestOperations/DiskPoolsRestOperations.cs b/sdk/storagepool/Azure.ResourceManager.StoragePool/src/Generated/RestOperations/DiskPoolsRestOperations.cs index 603a4671aab5..66f5f206c8ed 100644 --- a/sdk/storagepool/Azure.ResourceManager.StoragePool/src/Generated/RestOperations/DiskPoolsRestOperations.cs +++ b/sdk/storagepool/Azure.ResourceManager.StoragePool/src/Generated/RestOperations/DiskPoolsRestOperations.cs @@ -37,6 +37,17 @@ public DiskPoolsRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.StoragePool/diskPools", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,19 @@ public Response ListBySubscription(string subscriptionId, Ca } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.StoragePool/diskPools", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -177,6 +201,20 @@ public Response ListByResourceGroup(string subscriptionId, s } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string diskPoolName, DiskPoolCreateOrUpdateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.StoragePool/diskPools/", false); + uri.AppendPath(diskPoolName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string diskPoolName, DiskPoolCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); @@ -255,6 +293,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string diskPoolName, DiskPoolPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.StoragePool/diskPools/", false); + uri.AppendPath(diskPoolName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string diskPoolName, DiskPoolPatch patch) { var message = _pipeline.CreateMessage(); @@ -333,6 +385,20 @@ public Response Update(string subscriptionId, string resourceGroupName, string d } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string diskPoolName) + { + 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.StoragePool/diskPools/", false); + uri.AppendPath(diskPoolName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string diskPoolName) { var message = _pipeline.CreateMessage(); @@ -405,6 +471,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string d } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string diskPoolName) + { + 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.StoragePool/diskPools/", false); + uri.AppendPath(diskPoolName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string diskPoolName) { var message = _pipeline.CreateMessage(); @@ -487,6 +567,21 @@ public Response Get(string subscriptionId, string resourceGroupNam } } + internal RequestUriBuilder CreateListOutboundNetworkDependenciesEndpointsRequestUri(string subscriptionId, string resourceGroupName, string diskPoolName) + { + 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.StoragePool/diskPools/", false); + uri.AppendPath(diskPoolName, true); + uri.AppendPath("/outboundNetworkDependenciesEndpoints", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListOutboundNetworkDependenciesEndpointsRequest(string subscriptionId, string resourceGroupName, string diskPoolName) { var message = _pipeline.CreateMessage(); @@ -566,6 +661,21 @@ public Response ListOutboundNetworkDependenc } } + internal RequestUriBuilder CreateStartRequestUri(string subscriptionId, string resourceGroupName, string diskPoolName) + { + 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.StoragePool/diskPools/", false); + uri.AppendPath(diskPoolName, true); + uri.AppendPath("/start", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStartRequest(string subscriptionId, string resourceGroupName, string diskPoolName) { var message = _pipeline.CreateMessage(); @@ -637,6 +747,21 @@ public Response Start(string subscriptionId, string resourceGroupName, string di } } + internal RequestUriBuilder CreateDeallocateRequestUri(string subscriptionId, string resourceGroupName, string diskPoolName) + { + 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.StoragePool/diskPools/", false); + uri.AppendPath(diskPoolName, true); + uri.AppendPath("/deallocate", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeallocateRequest(string subscriptionId, string resourceGroupName, string diskPoolName) { var message = _pipeline.CreateMessage(); @@ -708,6 +833,21 @@ public Response Deallocate(string subscriptionId, string resourceGroupName, stri } } + internal RequestUriBuilder CreateUpgradeRequestUri(string subscriptionId, string resourceGroupName, string diskPoolName) + { + 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.StoragePool/diskPools/", false); + uri.AppendPath(diskPoolName, true); + uri.AppendPath("/upgrade", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpgradeRequest(string subscriptionId, string resourceGroupName, string diskPoolName) { var message = _pipeline.CreateMessage(); @@ -779,6 +919,14 @@ public Response Upgrade(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -847,6 +995,14 @@ public Response ListBySubscriptionNextPage(string nextLink, } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -919,6 +1075,14 @@ public Response ListByResourceGroupNextPage(string nextLink, } } + internal RequestUriBuilder CreateListOutboundNetworkDependenciesEndpointsNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string diskPoolName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListOutboundNetworkDependenciesEndpointsNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string diskPoolName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/storagepool/Azure.ResourceManager.StoragePool/src/Generated/RestOperations/IscsiTargetsRestOperations.cs b/sdk/storagepool/Azure.ResourceManager.StoragePool/src/Generated/RestOperations/IscsiTargetsRestOperations.cs index 422d3d44fd41..fa2cd16feaed 100644 --- a/sdk/storagepool/Azure.ResourceManager.StoragePool/src/Generated/RestOperations/IscsiTargetsRestOperations.cs +++ b/sdk/storagepool/Azure.ResourceManager.StoragePool/src/Generated/RestOperations/IscsiTargetsRestOperations.cs @@ -37,6 +37,21 @@ public IscsiTargetsRestOperations(HttpPipeline pipeline, string applicationId, U _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByDiskPoolRequestUri(string subscriptionId, string resourceGroupName, string diskPoolName) + { + 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.StoragePool/diskPools/", false); + uri.AppendPath(diskPoolName, true); + uri.AppendPath("/iscsiTargets", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByDiskPoolRequest(string subscriptionId, string resourceGroupName, string diskPoolName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByDiskPool(string subscriptionId, s } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string diskPoolName, string iscsiTargetName, DiskPoolIscsiTargetCreateOrUpdateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.StoragePool/diskPools/", false); + uri.AppendPath(diskPoolName, true); + uri.AppendPath("/iscsiTargets/", false); + uri.AppendPath(iscsiTargetName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string diskPoolName, string iscsiTargetName, DiskPoolIscsiTargetCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); @@ -200,6 +231,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string diskPoolName, string iscsiTargetName, DiskPoolIscsiTargetPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.StoragePool/diskPools/", false); + uri.AppendPath(diskPoolName, true); + uri.AppendPath("/iscsiTargets/", false); + uri.AppendPath(iscsiTargetName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string diskPoolName, string iscsiTargetName, DiskPoolIscsiTargetPatch patch) { var message = _pipeline.CreateMessage(); @@ -284,6 +331,22 @@ public Response Update(string subscriptionId, string resourceGroupName, string d } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string diskPoolName, string iscsiTargetName) + { + 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.StoragePool/diskPools/", false); + uri.AppendPath(diskPoolName, true); + uri.AppendPath("/iscsiTargets/", false); + uri.AppendPath(iscsiTargetName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string diskPoolName, string iscsiTargetName) { var message = _pipeline.CreateMessage(); @@ -362,6 +425,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string d } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string diskPoolName, string iscsiTargetName) + { + 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.StoragePool/diskPools/", false); + uri.AppendPath(diskPoolName, true); + uri.AppendPath("/iscsiTargets/", false); + uri.AppendPath(iscsiTargetName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string diskPoolName, string iscsiTargetName) { var message = _pipeline.CreateMessage(); @@ -450,6 +529,14 @@ public Response Get(string subscriptionId, string resou } } + internal RequestUriBuilder CreateListByDiskPoolNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string diskPoolName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByDiskPoolNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string diskPoolName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/storagepool/Azure.ResourceManager.StoragePool/src/Generated/RestOperations/ResourceSkusRestOperations.cs b/sdk/storagepool/Azure.ResourceManager.StoragePool/src/Generated/RestOperations/ResourceSkusRestOperations.cs index 9496feaeff3e..f9fceabd7d17 100644 --- a/sdk/storagepool/Azure.ResourceManager.StoragePool/src/Generated/RestOperations/ResourceSkusRestOperations.cs +++ b/sdk/storagepool/Azure.ResourceManager.StoragePool/src/Generated/RestOperations/ResourceSkusRestOperations.cs @@ -37,6 +37,19 @@ public ResourceSkusRestOperations(HttpPipeline pipeline, string applicationId, U _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, AzureLocation location) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.StoragePool/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/skus", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, AzureLocation location) { var message = _pipeline.CreateMessage(); @@ -108,6 +121,14 @@ public Response List(string subscriptionId, AzureLocat } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, AzureLocation location) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, AzureLocation location) { var message = _pipeline.CreateMessage(); diff --git a/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/LongRunningOperation/StorageSyncArmOperation.cs b/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/LongRunningOperation/StorageSyncArmOperation.cs index 79482bf4da23..127d71215d7f 100644 --- a/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/LongRunningOperation/StorageSyncArmOperation.cs +++ b/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/LongRunningOperation/StorageSyncArmOperation.cs @@ -20,21 +20,24 @@ internal class StorageSyncArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of StorageSyncArmOperation for mocking. protected StorageSyncArmOperation() { } - internal StorageSyncArmOperation(Response response) + internal StorageSyncArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal StorageSyncArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "StorageSyncArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal StorageSyncArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeli public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/LongRunningOperation/StorageSyncArmOperationOfT.cs b/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/LongRunningOperation/StorageSyncArmOperationOfT.cs index 5c7bfbf99c82..42ed33954942 100644 --- a/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/LongRunningOperation/StorageSyncArmOperationOfT.cs +++ b/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/LongRunningOperation/StorageSyncArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class StorageSyncArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of StorageSyncArmOperation for mocking. protected StorageSyncArmOperation() { } - internal StorageSyncArmOperation(Response response) + internal StorageSyncArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal StorageSyncArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "StorageSyncArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal StorageSyncArmOperation(IOperationSource source, ClientDiagnostics c public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/Models/CloudEndpointResource.Serialization.cs b/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/Models/CloudEndpointResource.Serialization.cs new file mode 100644 index 000000000000..d3b3aa9dae24 --- /dev/null +++ b/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/Models/CloudEndpointResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.StorageSync +{ + public partial class CloudEndpointResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + CloudEndpointData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + CloudEndpointData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/Models/StorageSyncGroupResource.Serialization.cs b/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/Models/StorageSyncGroupResource.Serialization.cs new file mode 100644 index 000000000000..5377550bab37 --- /dev/null +++ b/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/Models/StorageSyncGroupResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.StorageSync +{ + public partial class StorageSyncGroupResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + StorageSyncGroupData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + StorageSyncGroupData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/Models/StorageSyncPrivateEndpointConnectionResource.Serialization.cs b/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/Models/StorageSyncPrivateEndpointConnectionResource.Serialization.cs new file mode 100644 index 000000000000..3a885b41dfdc --- /dev/null +++ b/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/Models/StorageSyncPrivateEndpointConnectionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.StorageSync +{ + public partial class StorageSyncPrivateEndpointConnectionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + StorageSyncPrivateEndpointConnectionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + StorageSyncPrivateEndpointConnectionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/Models/StorageSyncRegisteredServerResource.Serialization.cs b/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/Models/StorageSyncRegisteredServerResource.Serialization.cs new file mode 100644 index 000000000000..dddae27a2e17 --- /dev/null +++ b/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/Models/StorageSyncRegisteredServerResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.StorageSync +{ + public partial class StorageSyncRegisteredServerResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + StorageSyncRegisteredServerData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + StorageSyncRegisteredServerData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/Models/StorageSyncServerEndpointResource.Serialization.cs b/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/Models/StorageSyncServerEndpointResource.Serialization.cs new file mode 100644 index 000000000000..f7e467edca58 --- /dev/null +++ b/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/Models/StorageSyncServerEndpointResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.StorageSync +{ + public partial class StorageSyncServerEndpointResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + StorageSyncServerEndpointData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + StorageSyncServerEndpointData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/Models/StorageSyncServiceResource.Serialization.cs b/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/Models/StorageSyncServiceResource.Serialization.cs new file mode 100644 index 000000000000..a65deba9f489 --- /dev/null +++ b/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/Models/StorageSyncServiceResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.StorageSync +{ + public partial class StorageSyncServiceResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + StorageSyncServiceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + StorageSyncServiceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/Models/StorageSyncWorkflowResource.Serialization.cs b/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/Models/StorageSyncWorkflowResource.Serialization.cs new file mode 100644 index 000000000000..6dbcd4a0a001 --- /dev/null +++ b/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/Models/StorageSyncWorkflowResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.StorageSync +{ + public partial class StorageSyncWorkflowResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + StorageSyncWorkflowData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + StorageSyncWorkflowData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/RestOperations/CloudEndpointsRestOperations.cs b/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/RestOperations/CloudEndpointsRestOperations.cs index e93f71704823..c09b5f1e56fc 100644 --- a/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/RestOperations/CloudEndpointsRestOperations.cs +++ b/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/RestOperations/CloudEndpointsRestOperations.cs @@ -37,6 +37,24 @@ public CloudEndpointsRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, CloudEndpointCreateOrUpdateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.StorageSync/storageSyncServices/", false); + uri.AppendPath(storageSyncServiceName, true); + uri.AppendPath("/syncGroups/", false); + uri.AppendPath(syncGroupName, true); + uri.AppendPath("/cloudEndpoints/", false); + uri.AppendPath(cloudEndpointName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, CloudEndpointCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); @@ -127,6 +145,24 @@ public Response Create(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName) + { + 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.StorageSync/storageSyncServices/", false); + uri.AppendPath(storageSyncServiceName, true); + uri.AppendPath("/syncGroups/", false); + uri.AppendPath(syncGroupName, true); + uri.AppendPath("/cloudEndpoints/", false); + uri.AppendPath(cloudEndpointName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName) { var message = _pipeline.CreateMessage(); @@ -221,6 +257,24 @@ public Response Get(string subscriptionId, string resourceGro } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName) + { + 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.StorageSync/storageSyncServices/", false); + uri.AppendPath(storageSyncServiceName, true); + uri.AppendPath("/syncGroups/", false); + uri.AppendPath(syncGroupName, true); + uri.AppendPath("/cloudEndpoints/", false); + uri.AppendPath(cloudEndpointName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName) { var message = _pipeline.CreateMessage(); @@ -305,6 +359,23 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListBySyncGroupRequestUri(string subscriptionId, string resourceGroupName, string storageSyncServiceName, string syncGroupName) + { + 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.StorageSync/storageSyncServices/", false); + uri.AppendPath(storageSyncServiceName, true); + uri.AppendPath("/syncGroups/", false); + uri.AppendPath(syncGroupName, true); + uri.AppendPath("/cloudEndpoints", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySyncGroupRequest(string subscriptionId, string resourceGroupName, string storageSyncServiceName, string syncGroupName) { var message = _pipeline.CreateMessage(); @@ -390,6 +461,25 @@ public Response ListBySyncGroup(string subscriptionId, strin } } + internal RequestUriBuilder CreatePreBackupRequestUri(string subscriptionId, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, CloudEndpointBackupContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.StorageSync/storageSyncServices/", false); + uri.AppendPath(storageSyncServiceName, true); + uri.AppendPath("/syncGroups/", false); + uri.AppendPath(syncGroupName, true); + uri.AppendPath("/cloudEndpoints/", false); + uri.AppendPath(cloudEndpointName, true); + uri.AppendPath("/prebackup", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreatePreBackupRequest(string subscriptionId, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, CloudEndpointBackupContent content) { var message = _pipeline.CreateMessage(); @@ -481,6 +571,25 @@ public Response PreBackup(string subscriptionId, string resourceGroupName, strin } } + internal RequestUriBuilder CreatePostBackupRequestUri(string subscriptionId, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, CloudEndpointBackupContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.StorageSync/storageSyncServices/", false); + uri.AppendPath(storageSyncServiceName, true); + uri.AppendPath("/syncGroups/", false); + uri.AppendPath(syncGroupName, true); + uri.AppendPath("/cloudEndpoints/", false); + uri.AppendPath(cloudEndpointName, true); + uri.AppendPath("/postbackup", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreatePostBackupRequest(string subscriptionId, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, CloudEndpointBackupContent content) { var message = _pipeline.CreateMessage(); @@ -572,6 +681,25 @@ public Response PostBackup(string subscriptionId, string resourceGroupName, stri } } + internal RequestUriBuilder CreatePreRestoreRequestUri(string subscriptionId, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, PreRestoreContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.StorageSync/storageSyncServices/", false); + uri.AppendPath(storageSyncServiceName, true); + uri.AppendPath("/syncGroups/", false); + uri.AppendPath(syncGroupName, true); + uri.AppendPath("/cloudEndpoints/", false); + uri.AppendPath(cloudEndpointName, true); + uri.AppendPath("/prerestore", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreatePreRestoreRequest(string subscriptionId, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, PreRestoreContent content) { var message = _pipeline.CreateMessage(); @@ -663,6 +791,25 @@ public Response PreRestore(string subscriptionId, string resourceGroupName, stri } } + internal RequestUriBuilder CreateRestoreheartbeatRequestUri(string subscriptionId, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName) + { + 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.StorageSync/storageSyncServices/", false); + uri.AppendPath(storageSyncServiceName, true); + uri.AppendPath("/syncGroups/", false); + uri.AppendPath(syncGroupName, true); + uri.AppendPath("/cloudEndpoints/", false); + uri.AppendPath(cloudEndpointName, true); + uri.AppendPath("/restoreheartbeat", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRestoreheartbeatRequest(string subscriptionId, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName) { var message = _pipeline.CreateMessage(); @@ -744,6 +891,25 @@ public Response Restoreheartbeat(string subscriptionId, string resourceGroupName } } + internal RequestUriBuilder CreatePostRestoreRequestUri(string subscriptionId, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, PostRestoreContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.StorageSync/storageSyncServices/", false); + uri.AppendPath(storageSyncServiceName, true); + uri.AppendPath("/syncGroups/", false); + uri.AppendPath(syncGroupName, true); + uri.AppendPath("/cloudEndpoints/", false); + uri.AppendPath(cloudEndpointName, true); + uri.AppendPath("/postrestore", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreatePostRestoreRequest(string subscriptionId, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, PostRestoreContent content) { var message = _pipeline.CreateMessage(); @@ -835,6 +1001,25 @@ public Response PostRestore(string subscriptionId, string resourceGroupName, str } } + internal RequestUriBuilder CreateTriggerChangeDetectionRequestUri(string subscriptionId, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, TriggerChangeDetectionContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.StorageSync/storageSyncServices/", false); + uri.AppendPath(storageSyncServiceName, true); + uri.AppendPath("/syncGroups/", false); + uri.AppendPath(syncGroupName, true); + uri.AppendPath("/cloudEndpoints/", false); + uri.AppendPath(cloudEndpointName, true); + uri.AppendPath("/triggerChangeDetection", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateTriggerChangeDetectionRequest(string subscriptionId, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, TriggerChangeDetectionContent content) { var message = _pipeline.CreateMessage(); @@ -926,6 +1111,25 @@ public Response TriggerChangeDetection(string subscriptionId, string resourceGro } } + internal RequestUriBuilder CreateAfsShareMetadataCertificatePublicKeysRequestUri(string subscriptionId, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName) + { + 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.StorageSync/storageSyncServices/", false); + uri.AppendPath(storageSyncServiceName, true); + uri.AppendPath("/syncGroups/", false); + uri.AppendPath(syncGroupName, true); + uri.AppendPath("/cloudEndpoints/", false); + uri.AppendPath(cloudEndpointName, true); + uri.AppendPath("/afsShareMetadataCertificatePublicKeys", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateAfsShareMetadataCertificatePublicKeysRequest(string subscriptionId, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs b/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs index b479999c1ad1..421461d365e7 100644 --- a/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs +++ b/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs @@ -37,6 +37,22 @@ public PrivateEndpointConnectionsRestOperations(HttpPipeline pipeline, string ap _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string storageSyncServiceName, string privateEndpointConnectionName) + { + 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.StorageSync/storageSyncServices/", false); + uri.AppendPath(storageSyncServiceName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string storageSyncServiceName, string privateEndpointConnectionName) { var message = _pipeline.CreateMessage(); @@ -125,6 +141,22 @@ public Response Get(string subscriptio } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string storageSyncServiceName, string privateEndpointConnectionName, StorageSyncPrivateEndpointConnectionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.StorageSync/storageSyncServices/", false); + uri.AppendPath(storageSyncServiceName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string storageSyncServiceName, string privateEndpointConnectionName, StorageSyncPrivateEndpointConnectionData data) { var message = _pipeline.CreateMessage(); @@ -209,6 +241,22 @@ public Response Create(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string storageSyncServiceName, string privateEndpointConnectionName) + { + 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.StorageSync/storageSyncServices/", false); + uri.AppendPath(storageSyncServiceName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string storageSyncServiceName, string privateEndpointConnectionName) { var message = _pipeline.CreateMessage(); @@ -287,6 +335,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListByStorageSyncServiceRequestUri(string subscriptionId, string resourceGroupName, string storageSyncServiceName) + { + 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.StorageSync/storageSyncServices/", false); + uri.AppendPath(storageSyncServiceName, true); + uri.AppendPath("/privateEndpointConnections", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByStorageSyncServiceRequest(string subscriptionId, string resourceGroupName, string storageSyncServiceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs b/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs index 8880c800e068..f97dabcdc3c8 100644 --- a/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs +++ b/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs @@ -37,6 +37,21 @@ public PrivateLinkResourcesRestOperations(HttpPipeline pipeline, string applicat _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByStorageSyncServiceRequestUri(string subscriptionId, string resourceGroupName, string storageSyncServiceName) + { + 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.StorageSync/storageSyncServices/", false); + uri.AppendPath(storageSyncServiceName, true); + uri.AppendPath("/privateLinkResources", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByStorageSyncServiceRequest(string subscriptionId, string resourceGroupName, string storageSyncServiceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/RestOperations/RegisteredServersRestOperations.cs b/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/RestOperations/RegisteredServersRestOperations.cs index 8907951c50cf..257730155ab2 100644 --- a/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/RestOperations/RegisteredServersRestOperations.cs +++ b/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/RestOperations/RegisteredServersRestOperations.cs @@ -37,6 +37,21 @@ public RegisteredServersRestOperations(HttpPipeline pipeline, string application _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByStorageSyncServiceRequestUri(string subscriptionId, string resourceGroupName, string storageSyncServiceName) + { + 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.StorageSync/storageSyncServices/", false); + uri.AppendPath(storageSyncServiceName, true); + uri.AppendPath("/registeredServers", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByStorageSyncServiceRequest(string subscriptionId, string resourceGroupName, string storageSyncServiceName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByStorageSyncService(string subscript } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string storageSyncServiceName, Guid serverId) + { + 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.StorageSync/storageSyncServices/", false); + uri.AppendPath(storageSyncServiceName, true); + uri.AppendPath("/registeredServers/", false); + uri.AppendPath(serverId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string storageSyncServiceName, Guid serverId) { var message = _pipeline.CreateMessage(); @@ -202,6 +233,22 @@ public Response Get(string subscriptionId, stri } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string storageSyncServiceName, Guid serverId, StorageSyncRegisteredServerCreateOrUpdateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.StorageSync/storageSyncServices/", false); + uri.AppendPath(storageSyncServiceName, true); + uri.AppendPath("/registeredServers/", false); + uri.AppendPath(serverId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string storageSyncServiceName, Guid serverId, StorageSyncRegisteredServerCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); @@ -284,6 +331,22 @@ public Response Create(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string storageSyncServiceName, Guid serverId) + { + 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.StorageSync/storageSyncServices/", false); + uri.AppendPath(storageSyncServiceName, true); + uri.AppendPath("/registeredServers/", false); + uri.AppendPath(serverId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string storageSyncServiceName, Guid serverId) { var message = _pipeline.CreateMessage(); @@ -360,6 +423,23 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateTriggerRolloverRequestUri(string subscriptionId, string resourceGroupName, string storageSyncServiceName, Guid serverId, TriggerRolloverContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.StorageSync/storageSyncServices/", false); + uri.AppendPath(storageSyncServiceName, true); + uri.AppendPath("/registeredServers/", false); + uri.AppendPath(serverId, true); + uri.AppendPath("/triggerRollover", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateTriggerRolloverRequest(string subscriptionId, string resourceGroupName, string storageSyncServiceName, Guid serverId, TriggerRolloverContent content) { var message = _pipeline.CreateMessage(); diff --git a/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/RestOperations/ServerEndpointsRestOperations.cs b/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/RestOperations/ServerEndpointsRestOperations.cs index 2722e59d3df2..125f2483239c 100644 --- a/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/RestOperations/ServerEndpointsRestOperations.cs +++ b/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/RestOperations/ServerEndpointsRestOperations.cs @@ -37,6 +37,24 @@ public ServerEndpointsRestOperations(HttpPipeline pipeline, string applicationId _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string serverEndpointName, StorageSyncServerEndpointCreateOrUpdateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.StorageSync/storageSyncServices/", false); + uri.AppendPath(storageSyncServiceName, true); + uri.AppendPath("/syncGroups/", false); + uri.AppendPath(syncGroupName, true); + uri.AppendPath("/serverEndpoints/", false); + uri.AppendPath(serverEndpointName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string serverEndpointName, StorageSyncServerEndpointCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); @@ -127,6 +145,24 @@ public Response Create(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string serverEndpointName, StorageSyncServerEndpointPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.StorageSync/storageSyncServices/", false); + uri.AppendPath(storageSyncServiceName, true); + uri.AppendPath("/syncGroups/", false); + uri.AppendPath(syncGroupName, true); + uri.AppendPath("/serverEndpoints/", false); + uri.AppendPath(serverEndpointName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string serverEndpointName, StorageSyncServerEndpointPatch patch) { var message = _pipeline.CreateMessage(); @@ -217,6 +253,24 @@ public Response Update(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string serverEndpointName) + { + 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.StorageSync/storageSyncServices/", false); + uri.AppendPath(storageSyncServiceName, true); + uri.AppendPath("/syncGroups/", false); + uri.AppendPath(syncGroupName, true); + uri.AppendPath("/serverEndpoints/", false); + uri.AppendPath(serverEndpointName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string serverEndpointName) { var message = _pipeline.CreateMessage(); @@ -311,6 +365,24 @@ public Response Get(string subscriptionId, string } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string serverEndpointName) + { + 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.StorageSync/storageSyncServices/", false); + uri.AppendPath(storageSyncServiceName, true); + uri.AppendPath("/syncGroups/", false); + uri.AppendPath(syncGroupName, true); + uri.AppendPath("/serverEndpoints/", false); + uri.AppendPath(serverEndpointName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string serverEndpointName) { var message = _pipeline.CreateMessage(); @@ -393,6 +465,23 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListBySyncGroupRequestUri(string subscriptionId, string resourceGroupName, string storageSyncServiceName, string syncGroupName) + { + 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.StorageSync/storageSyncServices/", false); + uri.AppendPath(storageSyncServiceName, true); + uri.AppendPath("/syncGroups/", false); + uri.AppendPath(syncGroupName, true); + uri.AppendPath("/serverEndpoints", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySyncGroupRequest(string subscriptionId, string resourceGroupName, string storageSyncServiceName, string syncGroupName) { var message = _pipeline.CreateMessage(); @@ -478,6 +567,25 @@ public Response ListBySyncGroup(string subscriptionId, stri } } + internal RequestUriBuilder CreateRecallActionRequestUri(string subscriptionId, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string serverEndpointName, RecallActionContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.StorageSync/storageSyncServices/", false); + uri.AppendPath(storageSyncServiceName, true); + uri.AppendPath("/syncGroups/", false); + uri.AppendPath(syncGroupName, true); + uri.AppendPath("/serverEndpoints/", false); + uri.AppendPath(serverEndpointName, true); + uri.AppendPath("/recallAction", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRecallActionRequest(string subscriptionId, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string serverEndpointName, RecallActionContent content) { var message = _pipeline.CreateMessage(); diff --git a/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/RestOperations/StorageSyncServicesRestOperations.cs b/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/RestOperations/StorageSyncServicesRestOperations.cs index da119195244a..d5380f877896 100644 --- a/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/RestOperations/StorageSyncServicesRestOperations.cs +++ b/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/RestOperations/StorageSyncServicesRestOperations.cs @@ -37,6 +37,19 @@ public StorageSyncServicesRestOperations(HttpPipeline pipeline, string applicati _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCheckNameAvailabilityRequestUri(string subscriptionId, string locationName, StorageSyncNameAvailabilityContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.StorageSync/locations/", false); + uri.AppendPath(locationName, true); + uri.AppendPath("/checkNameAvailability", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCheckNameAvailabilityRequest(string subscriptionId, string locationName, StorageSyncNameAvailabilityContent content) { var message = _pipeline.CreateMessage(); @@ -118,6 +131,20 @@ public Response CheckNameAvailability(string } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string storageSyncServiceName, StorageSyncServiceCreateOrUpdateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.StorageSync/storageSyncServices/", false); + uri.AppendPath(storageSyncServiceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string storageSyncServiceName, StorageSyncServiceCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); @@ -196,6 +223,20 @@ public Response Create(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string storageSyncServiceName) + { + 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.StorageSync/storageSyncServices/", false); + uri.AppendPath(storageSyncServiceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string storageSyncServiceName) { var message = _pipeline.CreateMessage(); @@ -278,6 +319,20 @@ public Response Get(string subscriptionId, string resour } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string storageSyncServiceName, StorageSyncServicePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.StorageSync/storageSyncServices/", false); + uri.AppendPath(storageSyncServiceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string storageSyncServiceName, StorageSyncServicePatch patch) { var message = _pipeline.CreateMessage(); @@ -356,6 +411,20 @@ public Response Update(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string storageSyncServiceName) + { + 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.StorageSync/storageSyncServices/", false); + uri.AppendPath(storageSyncServiceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string storageSyncServiceName) { var message = _pipeline.CreateMessage(); @@ -428,6 +497,19 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.StorageSync/storageSyncServices", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -501,6 +583,17 @@ public Response ListByResourceGroup(string subscription } } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.StorageSync/storageSyncServices", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/RestOperations/SyncGroupsRestOperations.cs b/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/RestOperations/SyncGroupsRestOperations.cs index 3dd6f6ceae17..b9efb17bc095 100644 --- a/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/RestOperations/SyncGroupsRestOperations.cs +++ b/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/RestOperations/SyncGroupsRestOperations.cs @@ -37,6 +37,21 @@ public SyncGroupsRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByStorageSyncServiceRequestUri(string subscriptionId, string resourceGroupName, string storageSyncServiceName) + { + 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.StorageSync/storageSyncServices/", false); + uri.AppendPath(storageSyncServiceName, true); + uri.AppendPath("/syncGroups", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByStorageSyncServiceRequest(string subscriptionId, string resourceGroupName, string storageSyncServiceName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByStorageSyncService(string subscriptionId, } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string storageSyncServiceName, string syncGroupName, StorageSyncGroupCreateOrUpdateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.StorageSync/storageSyncServices/", false); + uri.AppendPath(storageSyncServiceName, true); + uri.AppendPath("/syncGroups/", false); + uri.AppendPath(syncGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string storageSyncServiceName, string syncGroupName, StorageSyncGroupCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); @@ -208,6 +239,22 @@ public Response Create(string subscriptionId, string resou } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string storageSyncServiceName, string syncGroupName) + { + 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.StorageSync/storageSyncServices/", false); + uri.AppendPath(storageSyncServiceName, true); + uri.AppendPath("/syncGroups/", false); + uri.AppendPath(syncGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string storageSyncServiceName, string syncGroupName) { var message = _pipeline.CreateMessage(); @@ -296,6 +343,22 @@ public Response Get(string subscriptionId, string resource } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string storageSyncServiceName, string syncGroupName) + { + 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.StorageSync/storageSyncServices/", false); + uri.AppendPath(storageSyncServiceName, true); + uri.AppendPath("/syncGroups/", false); + uri.AppendPath(syncGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string storageSyncServiceName, string syncGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/RestOperations/WorkflowsRestOperations.cs b/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/RestOperations/WorkflowsRestOperations.cs index b33aeff0e9fa..6c58c7bd5209 100644 --- a/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/RestOperations/WorkflowsRestOperations.cs +++ b/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/RestOperations/WorkflowsRestOperations.cs @@ -37,6 +37,21 @@ public WorkflowsRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByStorageSyncServiceRequestUri(string subscriptionId, string resourceGroupName, string storageSyncServiceName) + { + 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.StorageSync/storageSyncServices/", false); + uri.AppendPath(storageSyncServiceName, true); + uri.AppendPath("/workflows", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByStorageSyncServiceRequest(string subscriptionId, string resourceGroupName, string storageSyncServiceName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByStorageSyncService(string subscriptionId, s } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string storageSyncServiceName, string workflowId) + { + 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.StorageSync/storageSyncServices/", false); + uri.AppendPath(storageSyncServiceName, true); + uri.AppendPath("/workflows/", false); + uri.AppendPath(workflowId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string storageSyncServiceName, string workflowId) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,23 @@ public Response Get(string subscriptionId, string resou } } + internal RequestUriBuilder CreateAbortRequestUri(string subscriptionId, string resourceGroupName, string storageSyncServiceName, string workflowId) + { + 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.StorageSync/storageSyncServices/", false); + uri.AppendPath(storageSyncServiceName, true); + uri.AppendPath("/workflows/", false); + uri.AppendPath(workflowId, true); + uri.AppendPath("/abort", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateAbortRequest(string subscriptionId, string resourceGroupName, string storageSyncServiceName, string workflowId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/StorageSyncGroupCollection.cs b/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/StorageSyncGroupCollection.cs index 7957cac7fed8..d08143b3b0e7 100644 --- a/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/StorageSyncGroupCollection.cs +++ b/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/StorageSyncGroupCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> CreateOrUpdate try { var response = await _storageSyncGroupSyncGroupsRestClient.CreateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, syncGroupName, content, cancellationToken).ConfigureAwait(false); - var operation = new StorageSyncArmOperation(Response.FromValue(new StorageSyncGroupResource(Client, response), response.GetRawResponse())); + var uri = _storageSyncGroupSyncGroupsRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, syncGroupName, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new StorageSyncArmOperation(Response.FromValue(new StorageSyncGroupResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -140,7 +142,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil w try { var response = _storageSyncGroupSyncGroupsRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, syncGroupName, content, cancellationToken); - var operation = new StorageSyncArmOperation(Response.FromValue(new StorageSyncGroupResource(Client, response), response.GetRawResponse())); + var uri = _storageSyncGroupSyncGroupsRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, syncGroupName, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new StorageSyncArmOperation(Response.FromValue(new StorageSyncGroupResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/StorageSyncGroupResource.cs b/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/StorageSyncGroupResource.cs index d471634ef118..e18f840f7e6b 100644 --- a/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/StorageSyncGroupResource.cs +++ b/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/StorageSyncGroupResource.cs @@ -339,7 +339,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _storageSyncGroupSyncGroupsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new StorageSyncArmOperation(response); + var uri = _storageSyncGroupSyncGroupsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new StorageSyncArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -381,7 +383,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _storageSyncGroupSyncGroupsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new StorageSyncArmOperation(response); + var uri = _storageSyncGroupSyncGroupsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new StorageSyncArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -427,7 +431,9 @@ public virtual async Task> UpdateAsync(Wa try { var response = await _storageSyncGroupSyncGroupsRestClient.CreateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, content, cancellationToken).ConfigureAwait(false); - var operation = new StorageSyncArmOperation(Response.FromValue(new StorageSyncGroupResource(Client, response), response.GetRawResponse())); + var uri = _storageSyncGroupSyncGroupsRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new StorageSyncArmOperation(Response.FromValue(new StorageSyncGroupResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -473,7 +479,9 @@ public virtual ArmOperation Update(WaitUntil waitUntil try { var response = _storageSyncGroupSyncGroupsRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, content, cancellationToken); - var operation = new StorageSyncArmOperation(Response.FromValue(new StorageSyncGroupResource(Client, response), response.GetRawResponse())); + var uri = _storageSyncGroupSyncGroupsRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new StorageSyncArmOperation(Response.FromValue(new StorageSyncGroupResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/LongRunningOperation/StreamAnalyticsArmOperation.cs b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/LongRunningOperation/StreamAnalyticsArmOperation.cs index 0df70ac9af99..aab86c2f1f28 100644 --- a/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/LongRunningOperation/StreamAnalyticsArmOperation.cs +++ b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/LongRunningOperation/StreamAnalyticsArmOperation.cs @@ -20,21 +20,24 @@ internal class StreamAnalyticsArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of StreamAnalyticsArmOperation for mocking. protected StreamAnalyticsArmOperation() { } - internal StreamAnalyticsArmOperation(Response response) + internal StreamAnalyticsArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal StreamAnalyticsArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "StreamAnalyticsArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal StreamAnalyticsArmOperation(ClientDiagnostics clientDiagnostics, HttpPi public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/LongRunningOperation/StreamAnalyticsArmOperationOfT.cs b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/LongRunningOperation/StreamAnalyticsArmOperationOfT.cs index f41d575428d4..7cbca0f33367 100644 --- a/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/LongRunningOperation/StreamAnalyticsArmOperationOfT.cs +++ b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/LongRunningOperation/StreamAnalyticsArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class StreamAnalyticsArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of StreamAnalyticsArmOperation for mocking. protected StreamAnalyticsArmOperation() { } - internal StreamAnalyticsArmOperation(Response response) + internal StreamAnalyticsArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal StreamAnalyticsArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "StreamAnalyticsArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal StreamAnalyticsArmOperation(IOperationSource source, ClientDiagnosti public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/StreamAnalyticsClusterResource.Serialization.cs b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/StreamAnalyticsClusterResource.Serialization.cs new file mode 100644 index 000000000000..4c6a3e71eff6 --- /dev/null +++ b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/StreamAnalyticsClusterResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.StreamAnalytics +{ + public partial class StreamAnalyticsClusterResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + StreamAnalyticsClusterData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + StreamAnalyticsClusterData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/StreamAnalyticsPrivateEndpointResource.Serialization.cs b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/StreamAnalyticsPrivateEndpointResource.Serialization.cs new file mode 100644 index 000000000000..d5265c2fd9fe --- /dev/null +++ b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/StreamAnalyticsPrivateEndpointResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.StreamAnalytics +{ + public partial class StreamAnalyticsPrivateEndpointResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + StreamAnalyticsPrivateEndpointData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + StreamAnalyticsPrivateEndpointData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/StreamingJobFunctionResource.Serialization.cs b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/StreamingJobFunctionResource.Serialization.cs new file mode 100644 index 000000000000..7f86678ec47a --- /dev/null +++ b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/StreamingJobFunctionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.StreamAnalytics +{ + public partial class StreamingJobFunctionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + StreamingJobFunctionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + StreamingJobFunctionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/StreamingJobInputResource.Serialization.cs b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/StreamingJobInputResource.Serialization.cs new file mode 100644 index 000000000000..6008812d94b1 --- /dev/null +++ b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/StreamingJobInputResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.StreamAnalytics +{ + public partial class StreamingJobInputResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + StreamingJobInputData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + StreamingJobInputData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/StreamingJobOutputResource.Serialization.cs b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/StreamingJobOutputResource.Serialization.cs new file mode 100644 index 000000000000..60151648904f --- /dev/null +++ b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/StreamingJobOutputResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.StreamAnalytics +{ + public partial class StreamingJobOutputResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + StreamingJobOutputData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + StreamingJobOutputData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/StreamingJobResource.Serialization.cs b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/StreamingJobResource.Serialization.cs new file mode 100644 index 000000000000..9236101d6d84 --- /dev/null +++ b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/StreamingJobResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.StreamAnalytics +{ + public partial class StreamingJobResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + StreamingJobData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + StreamingJobData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/StreamingJobTransformationResource.Serialization.cs b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/StreamingJobTransformationResource.Serialization.cs new file mode 100644 index 000000000000..91a0f6afb260 --- /dev/null +++ b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/StreamingJobTransformationResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.StreamAnalytics +{ + public partial class StreamingJobTransformationResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + StreamingJobTransformationData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + StreamingJobTransformationData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/RestOperations/ClustersRestOperations.cs b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/RestOperations/ClustersRestOperations.cs index 9a83c4a283fd..2460db5c3d9e 100644 --- a/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/RestOperations/ClustersRestOperations.cs +++ b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/RestOperations/ClustersRestOperations.cs @@ -37,6 +37,20 @@ public ClustersRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string clusterName, StreamAnalyticsClusterData data, string ifMatch, string ifNoneMatch) + { + 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.StreamAnalytics/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string clusterName, StreamAnalyticsClusterData data, string ifMatch, string ifNoneMatch) { var message = _pipeline.CreateMessage(); @@ -127,6 +141,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string clusterName, StreamAnalyticsClusterData data, string ifMatch) + { + 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.StreamAnalytics/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string clusterName, StreamAnalyticsClusterData data, string ifMatch) { var message = _pipeline.CreateMessage(); @@ -211,6 +239,20 @@ public Response Update(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string clusterName) + { + 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.StreamAnalytics/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string clusterName) { var message = _pipeline.CreateMessage(); @@ -293,6 +335,20 @@ public Response Get(string subscriptionId, string re } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string clusterName) + { + 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.StreamAnalytics/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string clusterName) { var message = _pipeline.CreateMessage(); @@ -365,6 +421,17 @@ public Response Delete(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.StreamAnalytics/clusters", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -432,6 +499,19 @@ public Response ListBySubscription(string subs } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.StreamAnalytics/clusters", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -505,6 +585,21 @@ public Response ListByResourceGroup(string sub } } + internal RequestUriBuilder CreateListStreamingJobsRequestUri(string subscriptionId, string resourceGroupName, string clusterName) + { + 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.StreamAnalytics/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/listStreamingJobs", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListStreamingJobsRequest(string subscriptionId, string resourceGroupName, string clusterName) { var message = _pipeline.CreateMessage(); @@ -584,6 +679,14 @@ public Response ListStreamingJobs(string su } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -652,6 +755,14 @@ public Response ListBySubscriptionNextPage(str } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -724,6 +835,14 @@ public Response ListByResourceGroupNextPage(st } } + internal RequestUriBuilder CreateListStreamingJobsNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string clusterName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListStreamingJobsNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string clusterName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/RestOperations/FunctionsRestOperations.cs b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/RestOperations/FunctionsRestOperations.cs index c9f0195b3b9c..960dc08d147b 100644 --- a/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/RestOperations/FunctionsRestOperations.cs +++ b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/RestOperations/FunctionsRestOperations.cs @@ -37,6 +37,22 @@ public FunctionsRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrReplaceRequestUri(string subscriptionId, string resourceGroupName, string jobName, string functionName, StreamingJobFunctionData data, string ifMatch, string ifNoneMatch) + { + 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.StreamAnalytics/streamingjobs/", false); + uri.AppendPath(jobName, true); + uri.AppendPath("/functions/", false); + uri.AppendPath(functionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrReplaceRequest(string subscriptionId, string resourceGroupName, string jobName, string functionName, StreamingJobFunctionData data, string ifMatch, string ifNoneMatch) { var message = _pipeline.CreateMessage(); @@ -143,6 +159,22 @@ public Response CreateOrReplace(string subscriptionId, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string jobName, string functionName, StreamingJobFunctionData data, string ifMatch) + { + 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.StreamAnalytics/streamingjobs/", false); + uri.AppendPath(jobName, true); + uri.AppendPath("/functions/", false); + uri.AppendPath(functionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string jobName, string functionName, StreamingJobFunctionData data, string ifMatch) { var message = _pipeline.CreateMessage(); @@ -241,6 +273,22 @@ public Response Update(string subscriptionId, string r } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string jobName, string functionName) + { + 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.StreamAnalytics/streamingjobs/", false); + uri.AppendPath(jobName, true); + uri.AppendPath("/functions/", false); + uri.AppendPath(functionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string jobName, string functionName) { var message = _pipeline.CreateMessage(); @@ -317,6 +365,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string j } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string jobName, string functionName) + { + 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.StreamAnalytics/streamingjobs/", false); + uri.AppendPath(jobName, true); + uri.AppendPath("/functions/", false); + uri.AppendPath(functionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string jobName, string functionName) { var message = _pipeline.CreateMessage(); @@ -405,6 +469,25 @@ public Response Get(string subscriptionId, string reso } } + internal RequestUriBuilder CreateListByStreamingJobRequestUri(string subscriptionId, string resourceGroupName, string jobName, string select) + { + 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.StreamAnalytics/streamingjobs/", false); + uri.AppendPath(jobName, true); + uri.AppendPath("/functions", false); + if (select != null) + { + uri.AppendQuery("$select", select, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByStreamingJobRequest(string subscriptionId, string resourceGroupName, string jobName, string select) { var message = _pipeline.CreateMessage(); @@ -490,6 +573,23 @@ public Response ListByStreamingJob(string subscr } } + internal RequestUriBuilder CreateTestRequestUri(string subscriptionId, string resourceGroupName, string jobName, string functionName, StreamingJobFunctionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourcegroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.StreamAnalytics/streamingjobs/", false); + uri.AppendPath(jobName, true); + uri.AppendPath("/functions/", false); + uri.AppendPath(functionName, true); + uri.AppendPath("/test", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateTestRequest(string subscriptionId, string resourceGroupName, string jobName, string functionName, StreamingJobFunctionData data) { var message = _pipeline.CreateMessage(); @@ -576,6 +676,23 @@ public Response Test(string subscriptionId, string resourceGroupName, string job } } + internal RequestUriBuilder CreateRetrieveDefaultDefinitionRequestUri(string subscriptionId, string resourceGroupName, string jobName, string functionName, FunctionRetrieveDefaultDefinitionContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourcegroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.StreamAnalytics/streamingjobs/", false); + uri.AppendPath(jobName, true); + uri.AppendPath("/functions/", false); + uri.AppendPath(functionName, true); + uri.AppendPath("/retrieveDefaultDefinition", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRetrieveDefaultDefinitionRequest(string subscriptionId, string resourceGroupName, string jobName, string functionName, FunctionRetrieveDefaultDefinitionContent content) { var message = _pipeline.CreateMessage(); @@ -670,6 +787,14 @@ public Response RetrieveDefaultDefinition(string subsc } } + internal RequestUriBuilder CreateListByStreamingJobNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string jobName, string select) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByStreamingJobNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string jobName, string select) { var message = _pipeline.CreateMessage(); diff --git a/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/RestOperations/InputsRestOperations.cs b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/RestOperations/InputsRestOperations.cs index caaab97693a6..5e95294b827b 100644 --- a/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/RestOperations/InputsRestOperations.cs +++ b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/RestOperations/InputsRestOperations.cs @@ -37,6 +37,22 @@ public InputsRestOperations(HttpPipeline pipeline, string applicationId, Uri end _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrReplaceRequestUri(string subscriptionId, string resourceGroupName, string jobName, string inputName, StreamingJobInputData input, string ifMatch, string ifNoneMatch) + { + 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.StreamAnalytics/streamingjobs/", false); + uri.AppendPath(jobName, true); + uri.AppendPath("/inputs/", false); + uri.AppendPath(inputName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrReplaceRequest(string subscriptionId, string resourceGroupName, string jobName, string inputName, StreamingJobInputData input, string ifMatch, string ifNoneMatch) { var message = _pipeline.CreateMessage(); @@ -143,6 +159,22 @@ public Response CreateOrReplace(string subscriptionId, st } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string jobName, string inputName, StreamingJobInputData input, string ifMatch) + { + 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.StreamAnalytics/streamingjobs/", false); + uri.AppendPath(jobName, true); + uri.AppendPath("/inputs/", false); + uri.AppendPath(inputName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string jobName, string inputName, StreamingJobInputData input, string ifMatch) { var message = _pipeline.CreateMessage(); @@ -241,6 +273,22 @@ public Response Update(string subscriptionId, string reso } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string jobName, string inputName) + { + 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.StreamAnalytics/streamingjobs/", false); + uri.AppendPath(jobName, true); + uri.AppendPath("/inputs/", false); + uri.AppendPath(inputName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string jobName, string inputName) { var message = _pipeline.CreateMessage(); @@ -317,6 +365,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string j } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string jobName, string inputName) + { + 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.StreamAnalytics/streamingjobs/", false); + uri.AppendPath(jobName, true); + uri.AppendPath("/inputs/", false); + uri.AppendPath(inputName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string jobName, string inputName) { var message = _pipeline.CreateMessage(); @@ -405,6 +469,25 @@ public Response Get(string subscriptionId, string resourc } } + internal RequestUriBuilder CreateListByStreamingJobRequestUri(string subscriptionId, string resourceGroupName, string jobName, string select) + { + 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.StreamAnalytics/streamingjobs/", false); + uri.AppendPath(jobName, true); + uri.AppendPath("/inputs", false); + if (select != null) + { + uri.AppendQuery("$select", select, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByStreamingJobRequest(string subscriptionId, string resourceGroupName, string jobName, string select) { var message = _pipeline.CreateMessage(); @@ -490,6 +573,23 @@ public Response ListByStreamingJob(string subscript } } + internal RequestUriBuilder CreateTestRequestUri(string subscriptionId, string resourceGroupName, string jobName, string inputName, StreamingJobInputData input) + { + 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.StreamAnalytics/streamingjobs/", false); + uri.AppendPath(jobName, true); + uri.AppendPath("/inputs/", false); + uri.AppendPath(inputName, true); + uri.AppendPath("/test", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateTestRequest(string subscriptionId, string resourceGroupName, string jobName, string inputName, StreamingJobInputData input) { var message = _pipeline.CreateMessage(); @@ -576,6 +676,14 @@ public Response Test(string subscriptionId, string resourceGroupName, string job } } + internal RequestUriBuilder CreateListByStreamingJobNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string jobName, string select) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByStreamingJobNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string jobName, string select) { var message = _pipeline.CreateMessage(); diff --git a/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/RestOperations/OutputsRestOperations.cs b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/RestOperations/OutputsRestOperations.cs index b90df54fe429..c0fe9256ab35 100644 --- a/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/RestOperations/OutputsRestOperations.cs +++ b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/RestOperations/OutputsRestOperations.cs @@ -37,6 +37,22 @@ public OutputsRestOperations(HttpPipeline pipeline, string applicationId, Uri en _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrReplaceRequestUri(string subscriptionId, string resourceGroupName, string jobName, string outputName, StreamingJobOutputData data, string ifMatch, string ifNoneMatch) + { + 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.StreamAnalytics/streamingjobs/", false); + uri.AppendPath(jobName, true); + uri.AppendPath("/outputs/", false); + uri.AppendPath(outputName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrReplaceRequest(string subscriptionId, string resourceGroupName, string jobName, string outputName, StreamingJobOutputData data, string ifMatch, string ifNoneMatch) { var message = _pipeline.CreateMessage(); @@ -143,6 +159,22 @@ public Response CreateOrReplace(string subscriptionId, s } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string jobName, string outputName, StreamingJobOutputData data, string ifMatch) + { + 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.StreamAnalytics/streamingjobs/", false); + uri.AppendPath(jobName, true); + uri.AppendPath("/outputs/", false); + uri.AppendPath(outputName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string jobName, string outputName, StreamingJobOutputData data, string ifMatch) { var message = _pipeline.CreateMessage(); @@ -241,6 +273,22 @@ public Response Update(string subscriptionId, string res } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string jobName, string outputName) + { + 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.StreamAnalytics/streamingjobs/", false); + uri.AppendPath(jobName, true); + uri.AppendPath("/outputs/", false); + uri.AppendPath(outputName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string jobName, string outputName) { var message = _pipeline.CreateMessage(); @@ -317,6 +365,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string j } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string jobName, string outputName) + { + 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.StreamAnalytics/streamingjobs/", false); + uri.AppendPath(jobName, true); + uri.AppendPath("/outputs/", false); + uri.AppendPath(outputName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string jobName, string outputName) { var message = _pipeline.CreateMessage(); @@ -405,6 +469,25 @@ public Response Get(string subscriptionId, string resour } } + internal RequestUriBuilder CreateListByStreamingJobRequestUri(string subscriptionId, string resourceGroupName, string jobName, string select) + { + 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.StreamAnalytics/streamingjobs/", false); + uri.AppendPath(jobName, true); + uri.AppendPath("/outputs", false); + if (select != null) + { + uri.AppendQuery("$select", select, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByStreamingJobRequest(string subscriptionId, string resourceGroupName, string jobName, string select) { var message = _pipeline.CreateMessage(); @@ -490,6 +573,23 @@ public Response ListByStreamingJob(string subscrip } } + internal RequestUriBuilder CreateTestRequestUri(string subscriptionId, string resourceGroupName, string jobName, string outputName, StreamingJobOutputData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourcegroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.StreamAnalytics/streamingjobs/", false); + uri.AppendPath(jobName, true); + uri.AppendPath("/outputs/", false); + uri.AppendPath(outputName, true); + uri.AppendPath("/test", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateTestRequest(string subscriptionId, string resourceGroupName, string jobName, string outputName, StreamingJobOutputData data) { var message = _pipeline.CreateMessage(); @@ -576,6 +676,14 @@ public Response Test(string subscriptionId, string resourceGroupName, string job } } + internal RequestUriBuilder CreateListByStreamingJobNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string jobName, string select) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByStreamingJobNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string jobName, string select) { var message = _pipeline.CreateMessage(); diff --git a/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/RestOperations/PrivateEndpointsRestOperations.cs b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/RestOperations/PrivateEndpointsRestOperations.cs index 4b49614d8778..48ae17802e56 100644 --- a/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/RestOperations/PrivateEndpointsRestOperations.cs +++ b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/RestOperations/PrivateEndpointsRestOperations.cs @@ -37,6 +37,22 @@ public PrivateEndpointsRestOperations(HttpPipeline pipeline, string applicationI _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string privateEndpointName, StreamAnalyticsPrivateEndpointData data, string ifMatch, string ifNoneMatch) + { + 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.StreamAnalytics/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/privateEndpoints/", false); + uri.AppendPath(privateEndpointName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string clusterName, string privateEndpointName, StreamAnalyticsPrivateEndpointData data, string ifMatch, string ifNoneMatch) { var message = _pipeline.CreateMessage(); @@ -143,6 +159,22 @@ public Response CreateOrUpdate(string subscr } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string privateEndpointName) + { + 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.StreamAnalytics/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/privateEndpoints/", false); + uri.AppendPath(privateEndpointName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string clusterName, string privateEndpointName) { var message = _pipeline.CreateMessage(); @@ -231,6 +263,22 @@ public Response Get(string subscriptionId, s } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string privateEndpointName) + { + 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.StreamAnalytics/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/privateEndpoints/", false); + uri.AppendPath(privateEndpointName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string clusterName, string privateEndpointName) { var message = _pipeline.CreateMessage(); @@ -309,6 +357,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateListByClusterRequestUri(string subscriptionId, string resourceGroupName, string clusterName) + { + 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.StreamAnalytics/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/privateEndpoints", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByClusterRequest(string subscriptionId, string resourceGroupName, string clusterName) { var message = _pipeline.CreateMessage(); @@ -388,6 +451,14 @@ public Response ListByCluster(string s } } + internal RequestUriBuilder CreateListByClusterNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string clusterName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByClusterNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string clusterName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/RestOperations/StreamingJobsRestOperations.cs b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/RestOperations/StreamingJobsRestOperations.cs index d79a75a5620b..dd518c70e117 100644 --- a/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/RestOperations/StreamingJobsRestOperations.cs +++ b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/RestOperations/StreamingJobsRestOperations.cs @@ -37,6 +37,20 @@ public StreamingJobsRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrReplaceRequestUri(string subscriptionId, string resourceGroupName, string jobName, StreamingJobData data, string ifMatch, string ifNoneMatch) + { + 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.StreamAnalytics/streamingjobs/", false); + uri.AppendPath(jobName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrReplaceRequest(string subscriptionId, string resourceGroupName, string jobName, StreamingJobData data, string ifMatch, string ifNoneMatch) { var message = _pipeline.CreateMessage(); @@ -127,6 +141,20 @@ public Response CreateOrReplace(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string jobName, StreamingJobData data, string ifMatch) + { + 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.StreamAnalytics/streamingjobs/", false); + uri.AppendPath(jobName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string jobName, StreamingJobData data, string ifMatch) { var message = _pipeline.CreateMessage(); @@ -219,6 +247,20 @@ public Response Update(string subscriptionId, string resourceG } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string jobName) + { + 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.StreamAnalytics/streamingjobs/", false); + uri.AppendPath(jobName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string jobName) { var message = _pipeline.CreateMessage(); @@ -291,6 +333,24 @@ public Response Delete(string subscriptionId, string resourceGroupName, string j } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string jobName, string expand) + { + 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.StreamAnalytics/streamingjobs/", false); + uri.AppendPath(jobName, true); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string jobName, string expand) { var message = _pipeline.CreateMessage(); @@ -379,6 +439,23 @@ public Response Get(string subscriptionId, string resourceGrou } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName, string expand) + { + 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.StreamAnalytics/streamingjobs", false); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName, string expand) { var message = _pipeline.CreateMessage(); @@ -458,6 +535,21 @@ public Response ListByResourceGroup(string subscriptionI } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string expand) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.StreamAnalytics/streamingjobs", false); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string expand) { var message = _pipeline.CreateMessage(); @@ -531,6 +623,21 @@ public Response List(string subscriptionId, string expan } } + internal RequestUriBuilder CreateStartRequestUri(string subscriptionId, string resourceGroupName, string jobName, StartStreamingJobContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourcegroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.StreamAnalytics/streamingjobs/", false); + uri.AppendPath(jobName, true); + uri.AppendPath("/start", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStartRequest(string subscriptionId, string resourceGroupName, string jobName, StartStreamingJobContent content) { var message = _pipeline.CreateMessage(); @@ -611,6 +718,21 @@ public Response Start(string subscriptionId, string resourceGroupName, string jo } } + internal RequestUriBuilder CreateStopRequestUri(string subscriptionId, string resourceGroupName, string jobName) + { + 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.StreamAnalytics/streamingjobs/", false); + uri.AppendPath(jobName, true); + uri.AppendPath("/stop", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStopRequest(string subscriptionId, string resourceGroupName, string jobName) { var message = _pipeline.CreateMessage(); @@ -682,6 +804,21 @@ public Response Stop(string subscriptionId, string resourceGroupName, string job } } + internal RequestUriBuilder CreateScaleRequestUri(string subscriptionId, string resourceGroupName, string jobName, ScaleStreamingJobContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourcegroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.StreamAnalytics/streamingjobs/", false); + uri.AppendPath(jobName, true); + uri.AppendPath("/scale", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateScaleRequest(string subscriptionId, string resourceGroupName, string jobName, ScaleStreamingJobContent content) { var message = _pipeline.CreateMessage(); @@ -760,6 +897,14 @@ public Response Scale(string subscriptionId, string resourceGroupName, string jo } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string expand) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string expand) { var message = _pipeline.CreateMessage(); @@ -834,6 +979,14 @@ public Response ListByResourceGroupNextPage(string nextL } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string expand) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string expand) { var message = _pipeline.CreateMessage(); diff --git a/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/RestOperations/SubscriptionsRestOperations.cs b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/RestOperations/SubscriptionsRestOperations.cs index 216d933535a6..57790167d4f6 100644 --- a/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/RestOperations/SubscriptionsRestOperations.cs +++ b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/RestOperations/SubscriptionsRestOperations.cs @@ -37,6 +37,19 @@ public SubscriptionsRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListQuotasRequestUri(string subscriptionId, AzureLocation location) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.StreamAnalytics/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/quotas", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListQuotasRequest(string subscriptionId, AzureLocation location) { var message = _pipeline.CreateMessage(); @@ -108,6 +121,19 @@ public Response ListQuotas(string s } } + internal RequestUriBuilder CreateTestQueryRequestUri(string subscriptionId, AzureLocation location, StreamAnalyticsTestQuery testQuery) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.StreamAnalytics/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/testQuery", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateTestQueryRequest(string subscriptionId, AzureLocation location, StreamAnalyticsTestQuery testQuery) { var message = _pipeline.CreateMessage(); @@ -179,6 +205,19 @@ public Response TestQuery(string subscriptionId, AzureLocation location, StreamA } } + internal RequestUriBuilder CreateCompileQueryRequestUri(string subscriptionId, AzureLocation location, StreamAnalyticsCompileQuery compileQuery) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.StreamAnalytics/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/compileQuery", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCompileQueryRequest(string subscriptionId, AzureLocation location, StreamAnalyticsCompileQuery compileQuery) { var message = _pipeline.CreateMessage(); @@ -258,6 +297,19 @@ public Response CompileQuery(string subsc } } + internal RequestUriBuilder CreateSampleInputRequestUri(string subscriptionId, AzureLocation location, StreamAnalyticsSampleInputContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.StreamAnalytics/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/sampleInput", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateSampleInputRequest(string subscriptionId, AzureLocation location, StreamAnalyticsSampleInputContent content) { var message = _pipeline.CreateMessage(); @@ -327,6 +379,19 @@ public Response SampleInput(string subscriptionId, AzureLocation location, Strea } } + internal RequestUriBuilder CreateTestInputRequestUri(string subscriptionId, AzureLocation location, StreamAnalyticsTestContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.StreamAnalytics/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/testInput", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateTestInputRequest(string subscriptionId, AzureLocation location, StreamAnalyticsTestContent content) { var message = _pipeline.CreateMessage(); @@ -396,6 +461,19 @@ public Response TestInput(string subscriptionId, AzureLocation location, StreamA } } + internal RequestUriBuilder CreateTestOutputRequestUri(string subscriptionId, AzureLocation location, StreamAnalyticsTestOutput testOutput) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.StreamAnalytics/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/testOutput", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateTestOutputRequest(string subscriptionId, AzureLocation location, StreamAnalyticsTestOutput testOutput) { var message = _pipeline.CreateMessage(); diff --git a/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/RestOperations/TransformationsRestOperations.cs b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/RestOperations/TransformationsRestOperations.cs index d3523f052716..2ab4875e6712 100644 --- a/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/RestOperations/TransformationsRestOperations.cs +++ b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/RestOperations/TransformationsRestOperations.cs @@ -36,6 +36,22 @@ public TransformationsRestOperations(HttpPipeline pipeline, string applicationId _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrReplaceRequestUri(string subscriptionId, string resourceGroupName, string jobName, string transformationName, StreamingJobTransformationData data, string ifMatch, string ifNoneMatch) + { + 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.StreamAnalytics/streamingjobs/", false); + uri.AppendPath(jobName, true); + uri.AppendPath("/transformations/", false); + uri.AppendPath(transformationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrReplaceRequest(string subscriptionId, string resourceGroupName, string jobName, string transformationName, StreamingJobTransformationData data, string ifMatch, string ifNoneMatch) { var message = _pipeline.CreateMessage(); @@ -142,6 +158,22 @@ public Response CreateOrReplace(string subscript } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string jobName, string transformationName, StreamingJobTransformationData data, string ifMatch) + { + 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.StreamAnalytics/streamingjobs/", false); + uri.AppendPath(jobName, true); + uri.AppendPath("/transformations/", false); + uri.AppendPath(transformationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string jobName, string transformationName, StreamingJobTransformationData data, string ifMatch) { var message = _pipeline.CreateMessage(); @@ -240,6 +272,22 @@ public Response Update(string subscriptionId, st } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string jobName, string transformationName) + { + 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.StreamAnalytics/streamingjobs/", false); + uri.AppendPath(jobName, true); + uri.AppendPath("/transformations/", false); + uri.AppendPath(transformationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string jobName, string transformationName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/StreamAnalyticsPrivateEndpointCollection.cs b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/StreamAnalyticsPrivateEndpointCollection.cs index 862bb8895ae1..703db01df46f 100644 --- a/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/StreamAnalyticsPrivateEndpointCollection.cs +++ b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/StreamAnalyticsPrivateEndpointCollection.cs @@ -92,7 +92,9 @@ public virtual async Task> try { var response = await _streamAnalyticsPrivateEndpointPrivateEndpointsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, privateEndpointName, data, ifMatch, ifNoneMatch, cancellationToken).ConfigureAwait(false); - var operation = new StreamAnalyticsArmOperation(Response.FromValue(new StreamAnalyticsPrivateEndpointResource(Client, response), response.GetRawResponse())); + var uri = _streamAnalyticsPrivateEndpointPrivateEndpointsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, privateEndpointName, data, ifMatch, ifNoneMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new StreamAnalyticsArmOperation(Response.FromValue(new StreamAnalyticsPrivateEndpointResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -143,7 +145,9 @@ public virtual ArmOperation CreateOrUpda try { var response = _streamAnalyticsPrivateEndpointPrivateEndpointsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, privateEndpointName, data, ifMatch, ifNoneMatch, cancellationToken); - var operation = new StreamAnalyticsArmOperation(Response.FromValue(new StreamAnalyticsPrivateEndpointResource(Client, response), response.GetRawResponse())); + var uri = _streamAnalyticsPrivateEndpointPrivateEndpointsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, privateEndpointName, data, ifMatch, ifNoneMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new StreamAnalyticsArmOperation(Response.FromValue(new StreamAnalyticsPrivateEndpointResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/StreamAnalyticsPrivateEndpointResource.cs b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/StreamAnalyticsPrivateEndpointResource.cs index db7a693eac2d..e4dab62abdf5 100644 --- a/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/StreamAnalyticsPrivateEndpointResource.cs +++ b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/StreamAnalyticsPrivateEndpointResource.cs @@ -290,7 +290,9 @@ public virtual async Task> try { var response = await _streamAnalyticsPrivateEndpointPrivateEndpointsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, ifMatch, ifNoneMatch, cancellationToken).ConfigureAwait(false); - var operation = new StreamAnalyticsArmOperation(Response.FromValue(new StreamAnalyticsPrivateEndpointResource(Client, response), response.GetRawResponse())); + var uri = _streamAnalyticsPrivateEndpointPrivateEndpointsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, ifMatch, ifNoneMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new StreamAnalyticsArmOperation(Response.FromValue(new StreamAnalyticsPrivateEndpointResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -338,7 +340,9 @@ public virtual ArmOperation Update(WaitU try { var response = _streamAnalyticsPrivateEndpointPrivateEndpointsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, ifMatch, ifNoneMatch, cancellationToken); - var operation = new StreamAnalyticsArmOperation(Response.FromValue(new StreamAnalyticsPrivateEndpointResource(Client, response), response.GetRawResponse())); + var uri = _streamAnalyticsPrivateEndpointPrivateEndpointsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, ifMatch, ifNoneMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new StreamAnalyticsArmOperation(Response.FromValue(new StreamAnalyticsPrivateEndpointResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/StreamingJobFunctionCollection.cs b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/StreamingJobFunctionCollection.cs index e928b3f33825..6ffd98c659c4 100644 --- a/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/StreamingJobFunctionCollection.cs +++ b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/StreamingJobFunctionCollection.cs @@ -92,7 +92,9 @@ public virtual async Task> CreateOrUp try { var response = await _streamingJobFunctionFunctionsRestClient.CreateOrReplaceAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, functionName, data, ifMatch, ifNoneMatch, cancellationToken).ConfigureAwait(false); - var operation = new StreamAnalyticsArmOperation(Response.FromValue(new StreamingJobFunctionResource(Client, response), response.GetRawResponse())); + var uri = _streamingJobFunctionFunctionsRestClient.CreateCreateOrReplaceRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, functionName, data, ifMatch, ifNoneMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new StreamAnalyticsArmOperation(Response.FromValue(new StreamingJobFunctionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -143,7 +145,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUnt try { var response = _streamingJobFunctionFunctionsRestClient.CreateOrReplace(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, functionName, data, ifMatch, ifNoneMatch, cancellationToken); - var operation = new StreamAnalyticsArmOperation(Response.FromValue(new StreamingJobFunctionResource(Client, response), response.GetRawResponse())); + var uri = _streamingJobFunctionFunctionsRestClient.CreateCreateOrReplaceRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, functionName, data, ifMatch, ifNoneMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new StreamAnalyticsArmOperation(Response.FromValue(new StreamingJobFunctionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/StreamingJobFunctionResource.cs b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/StreamingJobFunctionResource.cs index bf4ff320604e..746ea59f83ce 100644 --- a/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/StreamingJobFunctionResource.cs +++ b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/StreamingJobFunctionResource.cs @@ -201,7 +201,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _streamingJobFunctionFunctionsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new StreamAnalyticsArmOperation(response); + var uri = _streamingJobFunctionFunctionsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new StreamAnalyticsArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -243,7 +245,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _streamingJobFunctionFunctionsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new StreamAnalyticsArmOperation(response); + var uri = _streamingJobFunctionFunctionsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new StreamAnalyticsArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/StreamingJobInputCollection.cs b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/StreamingJobInputCollection.cs index 33b58a89ba86..cd34bfb600e7 100644 --- a/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/StreamingJobInputCollection.cs +++ b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/StreamingJobInputCollection.cs @@ -92,7 +92,9 @@ public virtual async Task> CreateOrUpdat try { var response = await _streamingJobInputInputsRestClient.CreateOrReplaceAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, inputName, input, ifMatch, ifNoneMatch, cancellationToken).ConfigureAwait(false); - var operation = new StreamAnalyticsArmOperation(Response.FromValue(new StreamingJobInputResource(Client, response), response.GetRawResponse())); + var uri = _streamingJobInputInputsRestClient.CreateCreateOrReplaceRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, inputName, input, ifMatch, ifNoneMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new StreamAnalyticsArmOperation(Response.FromValue(new StreamingJobInputResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -143,7 +145,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil try { var response = _streamingJobInputInputsRestClient.CreateOrReplace(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, inputName, input, ifMatch, ifNoneMatch, cancellationToken); - var operation = new StreamAnalyticsArmOperation(Response.FromValue(new StreamingJobInputResource(Client, response), response.GetRawResponse())); + var uri = _streamingJobInputInputsRestClient.CreateCreateOrReplaceRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, inputName, input, ifMatch, ifNoneMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new StreamAnalyticsArmOperation(Response.FromValue(new StreamingJobInputResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/StreamingJobInputResource.cs b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/StreamingJobInputResource.cs index 0b3199cf6d22..ae08a08e03e0 100644 --- a/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/StreamingJobInputResource.cs +++ b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/StreamingJobInputResource.cs @@ -201,7 +201,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _streamingJobInputInputsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new StreamAnalyticsArmOperation(response); + var uri = _streamingJobInputInputsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new StreamAnalyticsArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -243,7 +245,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _streamingJobInputInputsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new StreamAnalyticsArmOperation(response); + var uri = _streamingJobInputInputsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new StreamAnalyticsArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/StreamingJobOutputCollection.cs b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/StreamingJobOutputCollection.cs index 942a9bdaade9..7562e7527353 100644 --- a/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/StreamingJobOutputCollection.cs +++ b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/StreamingJobOutputCollection.cs @@ -92,7 +92,9 @@ public virtual async Task> CreateOrUpda try { var response = await _streamingJobOutputOutputsRestClient.CreateOrReplaceAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, outputName, data, ifMatch, ifNoneMatch, cancellationToken).ConfigureAwait(false); - var operation = new StreamAnalyticsArmOperation(Response.FromValue(new StreamingJobOutputResource(Client, response), response.GetRawResponse())); + var uri = _streamingJobOutputOutputsRestClient.CreateCreateOrReplaceRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, outputName, data, ifMatch, ifNoneMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new StreamAnalyticsArmOperation(Response.FromValue(new StreamingJobOutputResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -143,7 +145,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil try { var response = _streamingJobOutputOutputsRestClient.CreateOrReplace(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, outputName, data, ifMatch, ifNoneMatch, cancellationToken); - var operation = new StreamAnalyticsArmOperation(Response.FromValue(new StreamingJobOutputResource(Client, response), response.GetRawResponse())); + var uri = _streamingJobOutputOutputsRestClient.CreateCreateOrReplaceRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, outputName, data, ifMatch, ifNoneMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new StreamAnalyticsArmOperation(Response.FromValue(new StreamingJobOutputResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/StreamingJobOutputResource.cs b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/StreamingJobOutputResource.cs index 6ff0dd1a1837..9ec460aa53f1 100644 --- a/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/StreamingJobOutputResource.cs +++ b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/StreamingJobOutputResource.cs @@ -201,7 +201,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _streamingJobOutputOutputsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new StreamAnalyticsArmOperation(response); + var uri = _streamingJobOutputOutputsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new StreamAnalyticsArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -243,7 +245,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _streamingJobOutputOutputsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new StreamAnalyticsArmOperation(response); + var uri = _streamingJobOutputOutputsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new StreamAnalyticsArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/StreamingJobTransformationCollection.cs b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/StreamingJobTransformationCollection.cs index 3aafda4b5623..ac94b34ba8bf 100644 --- a/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/StreamingJobTransformationCollection.cs +++ b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/StreamingJobTransformationCollection.cs @@ -89,7 +89,9 @@ public virtual async Task> Crea try { var response = await _streamingJobTransformationTransformationsRestClient.CreateOrReplaceAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, transformationName, data, ifMatch, ifNoneMatch, cancellationToken).ConfigureAwait(false); - var operation = new StreamAnalyticsArmOperation(Response.FromValue(new StreamingJobTransformationResource(Client, response), response.GetRawResponse())); + var uri = _streamingJobTransformationTransformationsRestClient.CreateCreateOrReplaceRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, transformationName, data, ifMatch, ifNoneMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new StreamAnalyticsArmOperation(Response.FromValue(new StreamingJobTransformationResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -140,7 +142,9 @@ public virtual ArmOperation CreateOrUpdate(W try { var response = _streamingJobTransformationTransformationsRestClient.CreateOrReplace(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, transformationName, data, ifMatch, ifNoneMatch, cancellationToken); - var operation = new StreamAnalyticsArmOperation(Response.FromValue(new StreamingJobTransformationResource(Client, response), response.GetRawResponse())); + var uri = _streamingJobTransformationTransformationsRestClient.CreateCreateOrReplaceRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, transformationName, data, ifMatch, ifNoneMatch); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new StreamAnalyticsArmOperation(Response.FromValue(new StreamingJobTransformationResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/subscription/Azure.ResourceManager.Subscription/src/Generated/LongRunningOperation/SubscriptionArmOperation.cs b/sdk/subscription/Azure.ResourceManager.Subscription/src/Generated/LongRunningOperation/SubscriptionArmOperation.cs index 21dc7929434b..5791e142c5d5 100644 --- a/sdk/subscription/Azure.ResourceManager.Subscription/src/Generated/LongRunningOperation/SubscriptionArmOperation.cs +++ b/sdk/subscription/Azure.ResourceManager.Subscription/src/Generated/LongRunningOperation/SubscriptionArmOperation.cs @@ -20,21 +20,24 @@ internal class SubscriptionArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of SubscriptionArmOperation for mocking. protected SubscriptionArmOperation() { } - internal SubscriptionArmOperation(Response response) + internal SubscriptionArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal SubscriptionArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "SubscriptionArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal SubscriptionArmOperation(ClientDiagnostics clientDiagnostics, HttpPipel public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/subscription/Azure.ResourceManager.Subscription/src/Generated/LongRunningOperation/SubscriptionArmOperationOfT.cs b/sdk/subscription/Azure.ResourceManager.Subscription/src/Generated/LongRunningOperation/SubscriptionArmOperationOfT.cs index 13edaa47daad..452510a846e3 100644 --- a/sdk/subscription/Azure.ResourceManager.Subscription/src/Generated/LongRunningOperation/SubscriptionArmOperationOfT.cs +++ b/sdk/subscription/Azure.ResourceManager.Subscription/src/Generated/LongRunningOperation/SubscriptionArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class SubscriptionArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of SubscriptionArmOperation for mocking. protected SubscriptionArmOperation() { } - internal SubscriptionArmOperation(Response response) + internal SubscriptionArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal SubscriptionArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "SubscriptionArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal SubscriptionArmOperation(IOperationSource source, ClientDiagnostics public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/subscription/Azure.ResourceManager.Subscription/src/Generated/Models/BillingAccountPolicyResource.Serialization.cs b/sdk/subscription/Azure.ResourceManager.Subscription/src/Generated/Models/BillingAccountPolicyResource.Serialization.cs new file mode 100644 index 000000000000..9683b21906c2 --- /dev/null +++ b/sdk/subscription/Azure.ResourceManager.Subscription/src/Generated/Models/BillingAccountPolicyResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Subscription +{ + public partial class BillingAccountPolicyResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + BillingAccountPolicyData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + BillingAccountPolicyData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/subscription/Azure.ResourceManager.Subscription/src/Generated/Models/SubscriptionAliasResource.Serialization.cs b/sdk/subscription/Azure.ResourceManager.Subscription/src/Generated/Models/SubscriptionAliasResource.Serialization.cs new file mode 100644 index 000000000000..e7f17a22629f --- /dev/null +++ b/sdk/subscription/Azure.ResourceManager.Subscription/src/Generated/Models/SubscriptionAliasResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Subscription +{ + public partial class SubscriptionAliasResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SubscriptionAliasData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SubscriptionAliasData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/subscription/Azure.ResourceManager.Subscription/src/Generated/Models/TenantPolicyResource.Serialization.cs b/sdk/subscription/Azure.ResourceManager.Subscription/src/Generated/Models/TenantPolicyResource.Serialization.cs new file mode 100644 index 000000000000..ca50406c08b7 --- /dev/null +++ b/sdk/subscription/Azure.ResourceManager.Subscription/src/Generated/Models/TenantPolicyResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Subscription +{ + public partial class TenantPolicyResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + TenantPolicyData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + TenantPolicyData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/subscription/Azure.ResourceManager.Subscription/src/Generated/RestOperations/AliasRestOperations.cs b/sdk/subscription/Azure.ResourceManager.Subscription/src/Generated/RestOperations/AliasRestOperations.cs index 8c3588f4de28..e2df28c026d2 100644 --- a/sdk/subscription/Azure.ResourceManager.Subscription/src/Generated/RestOperations/AliasRestOperations.cs +++ b/sdk/subscription/Azure.ResourceManager.Subscription/src/Generated/RestOperations/AliasRestOperations.cs @@ -37,6 +37,16 @@ public AliasRestOperations(HttpPipeline pipeline, string applicationId, Uri endp _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateRequestUri(string aliasName, SubscriptionAliasCreateOrUpdateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Subscription/aliases/", false); + uri.AppendPath(aliasName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string aliasName, SubscriptionAliasCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); @@ -103,6 +113,16 @@ public Response Create(string aliasName, SubscriptionAliasCreateOrUpdateContent } } + internal RequestUriBuilder CreateGetRequestUri(string aliasName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Subscription/aliases/", false); + uri.AppendPath(aliasName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string aliasName) { var message = _pipeline.CreateMessage(); @@ -173,6 +193,16 @@ public Response Get(string aliasName, CancellationToken c } } + internal RequestUriBuilder CreateDeleteRequestUri(string aliasName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Subscription/aliases/", false); + uri.AppendPath(aliasName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string aliasName) { var message = _pipeline.CreateMessage(); @@ -231,6 +261,15 @@ public Response Delete(string aliasName, CancellationToken cancellationToken = d } } + internal RequestUriBuilder CreateListRequestUri() + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Subscription/aliases", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest() { var message = _pipeline.CreateMessage(); diff --git a/sdk/subscription/Azure.ResourceManager.Subscription/src/Generated/RestOperations/BillingAccountRestOperations.cs b/sdk/subscription/Azure.ResourceManager.Subscription/src/Generated/RestOperations/BillingAccountRestOperations.cs index 13d5c3f4ab1d..8c43f84f8bed 100644 --- a/sdk/subscription/Azure.ResourceManager.Subscription/src/Generated/RestOperations/BillingAccountRestOperations.cs +++ b/sdk/subscription/Azure.ResourceManager.Subscription/src/Generated/RestOperations/BillingAccountRestOperations.cs @@ -36,6 +36,17 @@ public BillingAccountRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetPolicyRequestUri(string billingAccountId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Billing/billingAccounts/", false); + uri.AppendPath(billingAccountId, true); + uri.AppendPath("/providers/Microsoft.Subscription/policies/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetPolicyRequest(string billingAccountId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/subscription/Azure.ResourceManager.Subscription/src/Generated/RestOperations/SubscriptionPolicyRestOperations.cs b/sdk/subscription/Azure.ResourceManager.Subscription/src/Generated/RestOperations/SubscriptionPolicyRestOperations.cs index 4ac0b3b95a0b..50fe3bb3779c 100644 --- a/sdk/subscription/Azure.ResourceManager.Subscription/src/Generated/RestOperations/SubscriptionPolicyRestOperations.cs +++ b/sdk/subscription/Azure.ResourceManager.Subscription/src/Generated/RestOperations/SubscriptionPolicyRestOperations.cs @@ -37,6 +37,15 @@ public SubscriptionPolicyRestOperations(HttpPipeline pipeline, string applicatio _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateAddUpdatePolicyForTenantRequestUri(TenantPolicyCreateOrUpdateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Subscription/policies/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateAddUpdatePolicyForTenantRequest(TenantPolicyCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); @@ -104,6 +113,15 @@ public Response AddUpdatePolicyForTenant(TenantPolicyCreateOrU } } + internal RequestUriBuilder CreateGetPolicyForTenantRequestUri() + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Subscription/policies/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetPolicyForTenantRequest() { var message = _pipeline.CreateMessage(); @@ -163,6 +181,15 @@ public Response GetPolicyForTenant(CancellationToken cancellat } } + internal RequestUriBuilder CreateListPolicyForTenantRequestUri() + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Subscription/policies", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListPolicyForTenantRequest() { var message = _pipeline.CreateMessage(); @@ -218,6 +245,14 @@ public Response ListPolicyForTenant(CancellationToken canc } } + internal RequestUriBuilder CreateListPolicyForTenantNextPageRequestUri(string nextLink) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListPolicyForTenantNextPageRequest(string nextLink) { var message = _pipeline.CreateMessage(); diff --git a/sdk/subscription/Azure.ResourceManager.Subscription/src/Generated/RestOperations/SubscriptionRestOperations.cs b/sdk/subscription/Azure.ResourceManager.Subscription/src/Generated/RestOperations/SubscriptionRestOperations.cs index 99c812ae955a..29ff0ae9f2b7 100644 --- a/sdk/subscription/Azure.ResourceManager.Subscription/src/Generated/RestOperations/SubscriptionRestOperations.cs +++ b/sdk/subscription/Azure.ResourceManager.Subscription/src/Generated/RestOperations/SubscriptionRestOperations.cs @@ -37,6 +37,17 @@ public SubscriptionRestOperations(HttpPipeline pipeline, string applicationId, U _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCancelRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Subscription/cancel", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCancelRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,17 @@ public Response Cancel(string subscriptionId, Cancellati } } + internal RequestUriBuilder CreateRenameRequestUri(string subscriptionId, SubscriptionName body) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Subscription/rename", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRenameRequest(string subscriptionId, SubscriptionName body) { var message = _pipeline.CreateMessage(); @@ -179,6 +201,17 @@ public Response Rename(string subscriptionId, Subscriptio } } + internal RequestUriBuilder CreateEnableRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Subscription/enable", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateEnableRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -246,6 +279,17 @@ public Response Enable(string subscriptionId, Cancellatio } } + internal RequestUriBuilder CreateAcceptOwnershipRequestUri(string subscriptionId, AcceptOwnershipContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Subscription/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/acceptOwnership", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateAcceptOwnershipRequest(string subscriptionId, AcceptOwnershipContent content) { var message = _pipeline.CreateMessage(); @@ -311,6 +355,17 @@ public Response AcceptOwnership(string subscriptionId, AcceptOwnershipContent co } } + internal RequestUriBuilder CreateAcceptOwnershipStatusRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Subscription/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/acceptOwnershipStatus", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateAcceptOwnershipStatusRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/subscription/Azure.ResourceManager.Subscription/src/Generated/SubscriptionAliasResource.cs b/sdk/subscription/Azure.ResourceManager.Subscription/src/Generated/SubscriptionAliasResource.cs index cfed091e2dbe..6189917ce4d5 100644 --- a/sdk/subscription/Azure.ResourceManager.Subscription/src/Generated/SubscriptionAliasResource.cs +++ b/sdk/subscription/Azure.ResourceManager.Subscription/src/Generated/SubscriptionAliasResource.cs @@ -199,7 +199,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _subscriptionAliasAliasRestClient.DeleteAsync(Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new SubscriptionArmOperation(response); + var uri = _subscriptionAliasAliasRestClient.CreateDeleteRequestUri(Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SubscriptionArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -241,7 +243,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _subscriptionAliasAliasRestClient.Delete(Id.Name, cancellationToken); - var operation = new SubscriptionArmOperation(response); + var uri = _subscriptionAliasAliasRestClient.CreateDeleteRequestUri(Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SubscriptionArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/subscription/Azure.ResourceManager.Subscription/src/Generated/TenantPolicyResource.cs b/sdk/subscription/Azure.ResourceManager.Subscription/src/Generated/TenantPolicyResource.cs index 03d78407a234..d8af1cec2715 100644 --- a/sdk/subscription/Azure.ResourceManager.Subscription/src/Generated/TenantPolicyResource.cs +++ b/sdk/subscription/Azure.ResourceManager.Subscription/src/Generated/TenantPolicyResource.cs @@ -202,7 +202,9 @@ public virtual async Task> CreateOrUpdateAsyn try { var response = await _tenantPolicySubscriptionPolicyRestClient.AddUpdatePolicyForTenantAsync(content, cancellationToken).ConfigureAwait(false); - var operation = new SubscriptionArmOperation(Response.FromValue(new TenantPolicyResource(Client, response), response.GetRawResponse())); + var uri = _tenantPolicySubscriptionPolicyRestClient.CreateAddUpdatePolicyForTenantRequestUri(content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SubscriptionArmOperation(Response.FromValue(new TenantPolicyResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -248,7 +250,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitU try { var response = _tenantPolicySubscriptionPolicyRestClient.AddUpdatePolicyForTenant(content, cancellationToken); - var operation = new SubscriptionArmOperation(Response.FromValue(new TenantPolicyResource(Client, response), response.GetRawResponse())); + var uri = _tenantPolicySubscriptionPolicyRestClient.CreateAddUpdatePolicyForTenantRequestUri(content); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SubscriptionArmOperation(Response.FromValue(new TenantPolicyResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/support/Azure.ResourceManager.Support/src/Generated/LongRunningOperation/SupportArmOperationOfT.cs b/sdk/support/Azure.ResourceManager.Support/src/Generated/LongRunningOperation/SupportArmOperationOfT.cs index c6c00ce2bc23..789f24e56351 100644 --- a/sdk/support/Azure.ResourceManager.Support/src/Generated/LongRunningOperation/SupportArmOperationOfT.cs +++ b/sdk/support/Azure.ResourceManager.Support/src/Generated/LongRunningOperation/SupportArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class SupportArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of SupportArmOperation for mocking. protected SupportArmOperation() { } - internal SupportArmOperation(Response response) + internal SupportArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal SupportArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "SupportArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal SupportArmOperation(IOperationSource source, ClientDiagnostics clien public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/ProblemClassificationResource.Serialization.cs b/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/ProblemClassificationResource.Serialization.cs new file mode 100644 index 000000000000..9cb8d7f19ada --- /dev/null +++ b/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/ProblemClassificationResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Support +{ + public partial class ProblemClassificationResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ProblemClassificationData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ProblemClassificationData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/SubscriptionFileWorkspaceResource.Serialization.cs b/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/SubscriptionFileWorkspaceResource.Serialization.cs new file mode 100644 index 000000000000..8d37055e6892 --- /dev/null +++ b/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/SubscriptionFileWorkspaceResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Support +{ + public partial class SubscriptionFileWorkspaceResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + FileWorkspaceDetailData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + FileWorkspaceDetailData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/SubscriptionSupportTicketResource.Serialization.cs b/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/SubscriptionSupportTicketResource.Serialization.cs new file mode 100644 index 000000000000..71cc997a5263 --- /dev/null +++ b/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/SubscriptionSupportTicketResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Support +{ + public partial class SubscriptionSupportTicketResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SupportTicketData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SupportTicketData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/SupportAzureServiceResource.Serialization.cs b/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/SupportAzureServiceResource.Serialization.cs new file mode 100644 index 000000000000..f5c01a29ac67 --- /dev/null +++ b/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/SupportAzureServiceResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Support +{ + public partial class SupportAzureServiceResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SupportAzureServiceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SupportAzureServiceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/SupportTicketChatTranscriptResource.Serialization.cs b/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/SupportTicketChatTranscriptResource.Serialization.cs new file mode 100644 index 000000000000..8a472fdb0d9e --- /dev/null +++ b/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/SupportTicketChatTranscriptResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Support +{ + public partial class SupportTicketChatTranscriptResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ChatTranscriptDetailData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ChatTranscriptDetailData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/SupportTicketCommunicationResource.Serialization.cs b/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/SupportTicketCommunicationResource.Serialization.cs new file mode 100644 index 000000000000..a90c905b9f88 --- /dev/null +++ b/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/SupportTicketCommunicationResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Support +{ + public partial class SupportTicketCommunicationResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SupportTicketCommunicationData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SupportTicketCommunicationData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/SupportTicketFileResource.Serialization.cs b/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/SupportTicketFileResource.Serialization.cs new file mode 100644 index 000000000000..e1d3cef54015 --- /dev/null +++ b/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/SupportTicketFileResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Support +{ + public partial class SupportTicketFileResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SupportFileDetailData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SupportFileDetailData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/SupportTicketNoSubChatTranscriptResource.Serialization.cs b/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/SupportTicketNoSubChatTranscriptResource.Serialization.cs new file mode 100644 index 000000000000..cd7c56cad79d --- /dev/null +++ b/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/SupportTicketNoSubChatTranscriptResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Support +{ + public partial class SupportTicketNoSubChatTranscriptResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ChatTranscriptDetailData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ChatTranscriptDetailData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/SupportTicketNoSubCommunicationResource.Serialization.cs b/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/SupportTicketNoSubCommunicationResource.Serialization.cs new file mode 100644 index 000000000000..7b93b9cd2c6d --- /dev/null +++ b/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/SupportTicketNoSubCommunicationResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Support +{ + public partial class SupportTicketNoSubCommunicationResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SupportTicketCommunicationData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SupportTicketCommunicationData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/SupportTicketNoSubFileResource.Serialization.cs b/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/SupportTicketNoSubFileResource.Serialization.cs new file mode 100644 index 000000000000..6dc7fcef7035 --- /dev/null +++ b/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/SupportTicketNoSubFileResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Support +{ + public partial class SupportTicketNoSubFileResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SupportFileDetailData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SupportFileDetailData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/TenantFileWorkspaceResource.Serialization.cs b/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/TenantFileWorkspaceResource.Serialization.cs new file mode 100644 index 000000000000..507b4f75581b --- /dev/null +++ b/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/TenantFileWorkspaceResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Support +{ + public partial class TenantFileWorkspaceResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + FileWorkspaceDetailData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + FileWorkspaceDetailData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/TenantSupportTicketResource.Serialization.cs b/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/TenantSupportTicketResource.Serialization.cs new file mode 100644 index 000000000000..5e1b6a251887 --- /dev/null +++ b/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/TenantSupportTicketResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Support +{ + public partial class TenantSupportTicketResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SupportTicketData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SupportTicketData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/support/Azure.ResourceManager.Support/src/Generated/RestOperations/ChatTranscriptsNoSubscriptionRestOperations.cs b/sdk/support/Azure.ResourceManager.Support/src/Generated/RestOperations/ChatTranscriptsNoSubscriptionRestOperations.cs index 1cfd82068127..006cc2a86532 100644 --- a/sdk/support/Azure.ResourceManager.Support/src/Generated/RestOperations/ChatTranscriptsNoSubscriptionRestOperations.cs +++ b/sdk/support/Azure.ResourceManager.Support/src/Generated/RestOperations/ChatTranscriptsNoSubscriptionRestOperations.cs @@ -36,6 +36,18 @@ public ChatTranscriptsNoSubscriptionRestOperations(HttpPipeline pipeline, string _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string supportTicketName, string chatTranscriptName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Support/supportTickets/", false); + uri.AppendPath(supportTicketName, true); + uri.AppendPath("/chatTranscripts/", false); + uri.AppendPath(chatTranscriptName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string supportTicketName, string chatTranscriptName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/support/Azure.ResourceManager.Support/src/Generated/RestOperations/ChatTranscriptsRestOperations.cs b/sdk/support/Azure.ResourceManager.Support/src/Generated/RestOperations/ChatTranscriptsRestOperations.cs index 8df007fae5b1..a0ff27e73106 100644 --- a/sdk/support/Azure.ResourceManager.Support/src/Generated/RestOperations/ChatTranscriptsRestOperations.cs +++ b/sdk/support/Azure.ResourceManager.Support/src/Generated/RestOperations/ChatTranscriptsRestOperations.cs @@ -37,6 +37,19 @@ public ChatTranscriptsRestOperations(HttpPipeline pipeline, string applicationId _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string supportTicketName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Support/supportTickets/", false); + uri.AppendPath(supportTicketName, true); + uri.AppendPath("/chatTranscripts", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string supportTicketName) { var message = _pipeline.CreateMessage(); @@ -110,6 +123,20 @@ public Response List(string subscriptionId, string su } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string supportTicketName, string chatTranscriptName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Support/supportTickets/", false); + uri.AppendPath(supportTicketName, true); + uri.AppendPath("/chatTranscripts/", false); + uri.AppendPath(chatTranscriptName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string supportTicketName, string chatTranscriptName) { var message = _pipeline.CreateMessage(); @@ -192,6 +219,14 @@ public Response Get(string subscriptionId, string supp } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string supportTicketName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string supportTicketName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/support/Azure.ResourceManager.Support/src/Generated/RestOperations/CommunicationsNoSubscriptionRestOperations.cs b/sdk/support/Azure.ResourceManager.Support/src/Generated/RestOperations/CommunicationsNoSubscriptionRestOperations.cs index 3d1e5510fce4..6b40615e1ccf 100644 --- a/sdk/support/Azure.ResourceManager.Support/src/Generated/RestOperations/CommunicationsNoSubscriptionRestOperations.cs +++ b/sdk/support/Azure.ResourceManager.Support/src/Generated/RestOperations/CommunicationsNoSubscriptionRestOperations.cs @@ -37,6 +37,17 @@ public CommunicationsNoSubscriptionRestOperations(HttpPipeline pipeline, string _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCheckNameAvailabilityRequestUri(string supportTicketName, SupportNameAvailabilityContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Support/supportTickets/", false); + uri.AppendPath(supportTicketName, true); + uri.AppendPath("/checkNameAvailability", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCheckNameAvailabilityRequest(string supportTicketName, SupportNameAvailabilityContent content) { var message = _pipeline.CreateMessage(); @@ -112,6 +123,18 @@ public Response CheckNameAvailability(string supp } } + internal RequestUriBuilder CreateGetRequestUri(string supportTicketName, string communicationName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Support/supportTickets/", false); + uri.AppendPath(supportTicketName, true); + uri.AppendPath("/communications/", false); + uri.AppendPath(communicationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string supportTicketName, string communicationName) { var message = _pipeline.CreateMessage(); @@ -188,6 +211,18 @@ public Response Get(string supportTicketName, st } } + internal RequestUriBuilder CreateCreateRequestUri(string supportTicketName, string communicationName, SupportTicketCommunicationData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Support/supportTickets/", false); + uri.AppendPath(supportTicketName, true); + uri.AppendPath("/communications/", false); + uri.AppendPath(communicationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string supportTicketName, string communicationName, SupportTicketCommunicationData data) { var message = _pipeline.CreateMessage(); diff --git a/sdk/support/Azure.ResourceManager.Support/src/Generated/RestOperations/CommunicationsRestOperations.cs b/sdk/support/Azure.ResourceManager.Support/src/Generated/RestOperations/CommunicationsRestOperations.cs index dd2dc31f64e1..209009caa727 100644 --- a/sdk/support/Azure.ResourceManager.Support/src/Generated/RestOperations/CommunicationsRestOperations.cs +++ b/sdk/support/Azure.ResourceManager.Support/src/Generated/RestOperations/CommunicationsRestOperations.cs @@ -37,6 +37,19 @@ public CommunicationsRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCheckNameAvailabilityRequestUri(string subscriptionId, string supportTicketName, SupportNameAvailabilityContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Support/supportTickets/", false); + uri.AppendPath(supportTicketName, true); + uri.AppendPath("/checkNameAvailability", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCheckNameAvailabilityRequest(string subscriptionId, string supportTicketName, SupportNameAvailabilityContent content) { var message = _pipeline.CreateMessage(); @@ -118,6 +131,27 @@ public Response CheckNameAvailability(string subs } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string supportTicketName, int? top, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Support/supportTickets/", false); + uri.AppendPath(supportTicketName, true); + uri.AppendPath("/communications", false); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string supportTicketName, int? top, string filter) { var message = _pipeline.CreateMessage(); @@ -203,6 +237,20 @@ public Response List(string subscriptionId, string sup } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string supportTicketName, string communicationName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Support/supportTickets/", false); + uri.AppendPath(supportTicketName, true); + uri.AppendPath("/communications/", false); + uri.AppendPath(communicationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string supportTicketName, string communicationName) { var message = _pipeline.CreateMessage(); @@ -285,6 +333,20 @@ public Response Get(string subscriptionId, strin } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string supportTicketName, string communicationName, SupportTicketCommunicationData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Support/supportTickets/", false); + uri.AppendPath(supportTicketName, true); + uri.AppendPath("/communications/", false); + uri.AppendPath(communicationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string supportTicketName, string communicationName, SupportTicketCommunicationData data) { var message = _pipeline.CreateMessage(); @@ -363,6 +425,14 @@ public Response Create(string subscriptionId, string supportTicketName, string c } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string supportTicketName, int? top, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string supportTicketName, int? top, string filter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/support/Azure.ResourceManager.Support/src/Generated/RestOperations/FileWorkspacesNoSubscriptionRestOperations.cs b/sdk/support/Azure.ResourceManager.Support/src/Generated/RestOperations/FileWorkspacesNoSubscriptionRestOperations.cs index 11147a3bcf2b..d9ec976a2281 100644 --- a/sdk/support/Azure.ResourceManager.Support/src/Generated/RestOperations/FileWorkspacesNoSubscriptionRestOperations.cs +++ b/sdk/support/Azure.ResourceManager.Support/src/Generated/RestOperations/FileWorkspacesNoSubscriptionRestOperations.cs @@ -36,6 +36,16 @@ public FileWorkspacesNoSubscriptionRestOperations(HttpPipeline pipeline, string _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string fileWorkspaceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Support/fileWorkspaces/", false); + uri.AppendPath(fileWorkspaceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string fileWorkspaceName) { var message = _pipeline.CreateMessage(); @@ -106,6 +116,16 @@ public Response Get(string fileWorkspaceName, Cancellat } } + internal RequestUriBuilder CreateCreateRequestUri(string fileWorkspaceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Support/fileWorkspaces/", false); + uri.AppendPath(fileWorkspaceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string fileWorkspaceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/support/Azure.ResourceManager.Support/src/Generated/RestOperations/FileWorkspacesRestOperations.cs b/sdk/support/Azure.ResourceManager.Support/src/Generated/RestOperations/FileWorkspacesRestOperations.cs index b930ca7aa40c..a652a20c9548 100644 --- a/sdk/support/Azure.ResourceManager.Support/src/Generated/RestOperations/FileWorkspacesRestOperations.cs +++ b/sdk/support/Azure.ResourceManager.Support/src/Generated/RestOperations/FileWorkspacesRestOperations.cs @@ -36,6 +36,18 @@ public FileWorkspacesRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string fileWorkspaceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Support/fileWorkspaces/", false); + uri.AppendPath(fileWorkspaceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string fileWorkspaceName) { var message = _pipeline.CreateMessage(); @@ -112,6 +124,18 @@ public Response Get(string subscriptionId, string fileW } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string fileWorkspaceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Support/fileWorkspaces/", false); + uri.AppendPath(fileWorkspaceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string fileWorkspaceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/support/Azure.ResourceManager.Support/src/Generated/RestOperations/FilesNoSubscriptionRestOperations.cs b/sdk/support/Azure.ResourceManager.Support/src/Generated/RestOperations/FilesNoSubscriptionRestOperations.cs index 73d647ade71c..5da97c24bbbb 100644 --- a/sdk/support/Azure.ResourceManager.Support/src/Generated/RestOperations/FilesNoSubscriptionRestOperations.cs +++ b/sdk/support/Azure.ResourceManager.Support/src/Generated/RestOperations/FilesNoSubscriptionRestOperations.cs @@ -37,6 +37,17 @@ public FilesNoSubscriptionRestOperations(HttpPipeline pipeline, string applicati _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string fileWorkspaceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Support/fileWorkspaces/", false); + uri.AppendPath(fileWorkspaceName, true); + uri.AppendPath("/files", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string fileWorkspaceName) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,18 @@ public Response List(string fileWorkspaceName, CancellationToke } } + internal RequestUriBuilder CreateGetRequestUri(string fileWorkspaceName, string fileName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Support/fileWorkspaces/", false); + uri.AppendPath(fileWorkspaceName, true); + uri.AppendPath("/files/", false); + uri.AppendPath(fileName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string fileWorkspaceName, string fileName) { var message = _pipeline.CreateMessage(); @@ -180,6 +203,18 @@ public Response Get(string fileWorkspaceName, string file } } + internal RequestUriBuilder CreateCreateRequestUri(string fileWorkspaceName, string fileName, SupportFileDetailData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Support/fileWorkspaces/", false); + uri.AppendPath(fileWorkspaceName, true); + uri.AppendPath("/files/", false); + uri.AppendPath(fileName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string fileWorkspaceName, string fileName, SupportFileDetailData data) { var message = _pipeline.CreateMessage(); @@ -260,6 +295,19 @@ public Response Create(string fileWorkspaceName, string f } } + internal RequestUriBuilder CreateUploadRequestUri(string fileWorkspaceName, string fileName, UploadFileContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Support/fileWorkspaces/", false); + uri.AppendPath(fileWorkspaceName, true); + uri.AppendPath("/files/", false); + uri.AppendPath(fileName, true); + uri.AppendPath("/upload", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUploadRequest(string fileWorkspaceName, string fileName, UploadFileContent content) { var message = _pipeline.CreateMessage(); @@ -331,6 +379,14 @@ public Response Upload(string fileWorkspaceName, string fileName, UploadFileCont } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string fileWorkspaceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string fileWorkspaceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/support/Azure.ResourceManager.Support/src/Generated/RestOperations/FilesRestOperations.cs b/sdk/support/Azure.ResourceManager.Support/src/Generated/RestOperations/FilesRestOperations.cs index b862bae3ad1d..ff14b8503954 100644 --- a/sdk/support/Azure.ResourceManager.Support/src/Generated/RestOperations/FilesRestOperations.cs +++ b/sdk/support/Azure.ResourceManager.Support/src/Generated/RestOperations/FilesRestOperations.cs @@ -37,6 +37,19 @@ public FilesRestOperations(HttpPipeline pipeline, string applicationId, Uri endp _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string fileWorkspaceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Support/fileWorkspaces/", false); + uri.AppendPath(fileWorkspaceName, true); + uri.AppendPath("/files", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string fileWorkspaceName) { var message = _pipeline.CreateMessage(); @@ -110,6 +123,20 @@ public Response List(string subscriptionId, string fileWorkspac } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string fileWorkspaceName, string fileName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Support/fileWorkspaces/", false); + uri.AppendPath(fileWorkspaceName, true); + uri.AppendPath("/files/", false); + uri.AppendPath(fileName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string fileWorkspaceName, string fileName) { var message = _pipeline.CreateMessage(); @@ -192,6 +219,20 @@ public Response Get(string subscriptionId, string fileWor } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string fileWorkspaceName, string fileName, SupportFileDetailData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Support/fileWorkspaces/", false); + uri.AppendPath(fileWorkspaceName, true); + uri.AppendPath("/files/", false); + uri.AppendPath(fileName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string fileWorkspaceName, string fileName, SupportFileDetailData data) { var message = _pipeline.CreateMessage(); @@ -278,6 +319,21 @@ public Response Create(string subscriptionId, string file } } + internal RequestUriBuilder CreateUploadRequestUri(string subscriptionId, string fileWorkspaceName, string fileName, UploadFileContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Support/fileWorkspaces/", false); + uri.AppendPath(fileWorkspaceName, true); + uri.AppendPath("/files/", false); + uri.AppendPath(fileName, true); + uri.AppendPath("/upload", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUploadRequest(string subscriptionId, string fileWorkspaceName, string fileName, UploadFileContent content) { var message = _pipeline.CreateMessage(); @@ -355,6 +411,14 @@ public Response Upload(string subscriptionId, string fileWorkspaceName, string f } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string fileWorkspaceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string fileWorkspaceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/support/Azure.ResourceManager.Support/src/Generated/RestOperations/ProblemClassificationsRestOperations.cs b/sdk/support/Azure.ResourceManager.Support/src/Generated/RestOperations/ProblemClassificationsRestOperations.cs index 0765f82272f9..4b2244204488 100644 --- a/sdk/support/Azure.ResourceManager.Support/src/Generated/RestOperations/ProblemClassificationsRestOperations.cs +++ b/sdk/support/Azure.ResourceManager.Support/src/Generated/RestOperations/ProblemClassificationsRestOperations.cs @@ -37,6 +37,17 @@ public ProblemClassificationsRestOperations(HttpPipeline pipeline, string applic _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string serviceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Support/services/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/problemClassifications", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string serviceName) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,18 @@ public Response List(string serviceName, Cance } } + internal RequestUriBuilder CreateGetRequestUri(string serviceName, string problemClassificationName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Support/services/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/problemClassifications/", false); + uri.AppendPath(problemClassificationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string serviceName, string problemClassificationName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/support/Azure.ResourceManager.Support/src/Generated/RestOperations/ServicesRestOperations.cs b/sdk/support/Azure.ResourceManager.Support/src/Generated/RestOperations/ServicesRestOperations.cs index a890232b7348..3ddc8574149b 100644 --- a/sdk/support/Azure.ResourceManager.Support/src/Generated/RestOperations/ServicesRestOperations.cs +++ b/sdk/support/Azure.ResourceManager.Support/src/Generated/RestOperations/ServicesRestOperations.cs @@ -37,6 +37,15 @@ public ServicesRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri() + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Support/services", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest() { var message = _pipeline.CreateMessage(); @@ -92,6 +101,16 @@ public Response List(CancellationToken cancellationToken = d } } + internal RequestUriBuilder CreateGetRequestUri(string serviceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Support/services/", false); + uri.AppendPath(serviceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string serviceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/support/Azure.ResourceManager.Support/src/Generated/RestOperations/SupportTicketChatTranscriptsNoSubscriptionRestOperations.cs b/sdk/support/Azure.ResourceManager.Support/src/Generated/RestOperations/SupportTicketChatTranscriptsNoSubscriptionRestOperations.cs index e91b87c9878b..b6fa152fad28 100644 --- a/sdk/support/Azure.ResourceManager.Support/src/Generated/RestOperations/SupportTicketChatTranscriptsNoSubscriptionRestOperations.cs +++ b/sdk/support/Azure.ResourceManager.Support/src/Generated/RestOperations/SupportTicketChatTranscriptsNoSubscriptionRestOperations.cs @@ -37,6 +37,17 @@ public SupportTicketChatTranscriptsNoSubscriptionRestOperations(HttpPipeline pip _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string supportTicketName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Support/supportTickets/", false); + uri.AppendPath(supportTicketName, true); + uri.AppendPath("/chatTranscripts", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string supportTicketName) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,14 @@ public Response List(string supportTicketName, Cancel } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string supportTicketName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string supportTicketName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/support/Azure.ResourceManager.Support/src/Generated/RestOperations/SupportTicketCommunicationsNoSubscriptionRestOperations.cs b/sdk/support/Azure.ResourceManager.Support/src/Generated/RestOperations/SupportTicketCommunicationsNoSubscriptionRestOperations.cs index 932b6d76cb8c..cd1ef7df7c75 100644 --- a/sdk/support/Azure.ResourceManager.Support/src/Generated/RestOperations/SupportTicketCommunicationsNoSubscriptionRestOperations.cs +++ b/sdk/support/Azure.ResourceManager.Support/src/Generated/RestOperations/SupportTicketCommunicationsNoSubscriptionRestOperations.cs @@ -37,6 +37,25 @@ public SupportTicketCommunicationsNoSubscriptionRestOperations(HttpPipeline pipe _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string supportTicketName, int? top, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Support/supportTickets/", false); + uri.AppendPath(supportTicketName, true); + uri.AppendPath("/communications", false); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string supportTicketName, int? top, string filter) { var message = _pipeline.CreateMessage(); @@ -116,6 +135,14 @@ public Response List(string supportTicketName, int? to } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string supportTicketName, int? top, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string supportTicketName, int? top, string filter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/support/Azure.ResourceManager.Support/src/Generated/RestOperations/SupportTicketsNoSubscriptionRestOperations.cs b/sdk/support/Azure.ResourceManager.Support/src/Generated/RestOperations/SupportTicketsNoSubscriptionRestOperations.cs index 2b841c74d2c7..566225360c46 100644 --- a/sdk/support/Azure.ResourceManager.Support/src/Generated/RestOperations/SupportTicketsNoSubscriptionRestOperations.cs +++ b/sdk/support/Azure.ResourceManager.Support/src/Generated/RestOperations/SupportTicketsNoSubscriptionRestOperations.cs @@ -37,6 +37,15 @@ public SupportTicketsNoSubscriptionRestOperations(HttpPipeline pipeline, string _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCheckNameAvailabilityRequestUri(SupportNameAvailabilityContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Support/checkNameAvailability", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCheckNameAvailabilityRequest(SupportNameAvailabilityContent content) { var message = _pipeline.CreateMessage(); @@ -104,6 +113,23 @@ public Response CheckNameAvailability(SupportName } } + internal RequestUriBuilder CreateListRequestUri(int? top, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Support/supportTickets", false); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(int? top, string filter) { var message = _pipeline.CreateMessage(); @@ -171,6 +197,16 @@ public Response List(int? top = null, string filter = } } + internal RequestUriBuilder CreateGetRequestUri(string supportTicketName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Support/supportTickets/", false); + uri.AppendPath(supportTicketName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string supportTicketName) { var message = _pipeline.CreateMessage(); @@ -241,6 +277,16 @@ public Response Get(string supportTicketName, CancellationTok } } + internal RequestUriBuilder CreateUpdateRequestUri(string supportTicketName, UpdateSupportTicket updateSupportTicket) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Support/supportTickets/", false); + uri.AppendPath(supportTicketName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string supportTicketName, UpdateSupportTicket updateSupportTicket) { var message = _pipeline.CreateMessage(); @@ -315,6 +361,16 @@ public Response Update(string supportTicketName, UpdateSuppor } } + internal RequestUriBuilder CreateCreateRequestUri(string supportTicketName, SupportTicketData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Support/supportTickets/", false); + uri.AppendPath(supportTicketName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string supportTicketName, SupportTicketData data) { var message = _pipeline.CreateMessage(); @@ -381,6 +437,14 @@ public Response Create(string supportTicketName, SupportTicketData data, Cancell } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, int? top, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, int? top, string filter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/support/Azure.ResourceManager.Support/src/Generated/RestOperations/SupportTicketsRestOperations.cs b/sdk/support/Azure.ResourceManager.Support/src/Generated/RestOperations/SupportTicketsRestOperations.cs index 88ccf7397542..d43a1cc3b440 100644 --- a/sdk/support/Azure.ResourceManager.Support/src/Generated/RestOperations/SupportTicketsRestOperations.cs +++ b/sdk/support/Azure.ResourceManager.Support/src/Generated/RestOperations/SupportTicketsRestOperations.cs @@ -37,6 +37,17 @@ public SupportTicketsRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCheckNameAvailabilityRequestUri(string subscriptionId, SupportNameAvailabilityContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Support/checkNameAvailability", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCheckNameAvailabilityRequest(string subscriptionId, SupportNameAvailabilityContent content) { var message = _pipeline.CreateMessage(); @@ -112,6 +123,25 @@ public Response CheckNameAvailability(string subs } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, int? top, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Support/supportTickets", false); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, int? top, string filter) { var message = _pipeline.CreateMessage(); @@ -191,6 +221,18 @@ public Response List(string subscriptionId, int? top = } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string supportTicketName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Support/supportTickets/", false); + uri.AppendPath(supportTicketName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string supportTicketName) { var message = _pipeline.CreateMessage(); @@ -267,6 +309,18 @@ public Response Get(string subscriptionId, string supportTick } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string supportTicketName, UpdateSupportTicket updateSupportTicket) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Support/supportTickets/", false); + uri.AppendPath(supportTicketName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string supportTicketName, UpdateSupportTicket updateSupportTicket) { var message = _pipeline.CreateMessage(); @@ -347,6 +401,18 @@ public Response Update(string subscriptionId, string supportT } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string supportTicketName, SupportTicketData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Support/supportTickets/", false); + uri.AppendPath(supportTicketName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string supportTicketName, SupportTicketData data) { var message = _pipeline.CreateMessage(); @@ -419,6 +485,14 @@ public Response Create(string subscriptionId, string supportTicketName, SupportT } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, int? top, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, int? top, string filter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/support/Azure.ResourceManager.Support/src/Generated/SubscriptionFileWorkspaceCollection.cs b/sdk/support/Azure.ResourceManager.Support/src/Generated/SubscriptionFileWorkspaceCollection.cs index 6c5ea3efabc5..84c255163c37 100644 --- a/sdk/support/Azure.ResourceManager.Support/src/Generated/SubscriptionFileWorkspaceCollection.cs +++ b/sdk/support/Azure.ResourceManager.Support/src/Generated/SubscriptionFileWorkspaceCollection.cs @@ -86,7 +86,9 @@ public virtual async Task> Creat try { var response = await _subscriptionFileWorkspaceFileWorkspacesRestClient.CreateAsync(Id.SubscriptionId, fileWorkspaceName, cancellationToken).ConfigureAwait(false); - var operation = new SupportArmOperation(Response.FromValue(new SubscriptionFileWorkspaceResource(Client, response), response.GetRawResponse())); + var uri = _subscriptionFileWorkspaceFileWorkspacesRestClient.CreateCreateRequestUri(Id.SubscriptionId, fileWorkspaceName); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SupportArmOperation(Response.FromValue(new SubscriptionFileWorkspaceResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -133,7 +135,9 @@ public virtual ArmOperation CreateOrUpdate(Wa try { var response = _subscriptionFileWorkspaceFileWorkspacesRestClient.Create(Id.SubscriptionId, fileWorkspaceName, cancellationToken); - var operation = new SupportArmOperation(Response.FromValue(new SubscriptionFileWorkspaceResource(Client, response), response.GetRawResponse())); + var uri = _subscriptionFileWorkspaceFileWorkspacesRestClient.CreateCreateRequestUri(Id.SubscriptionId, fileWorkspaceName); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SupportArmOperation(Response.FromValue(new SubscriptionFileWorkspaceResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/support/Azure.ResourceManager.Support/src/Generated/SubscriptionFileWorkspaceResource.cs b/sdk/support/Azure.ResourceManager.Support/src/Generated/SubscriptionFileWorkspaceResource.cs index 1d4eb0dcb8a7..8558d78ee112 100644 --- a/sdk/support/Azure.ResourceManager.Support/src/Generated/SubscriptionFileWorkspaceResource.cs +++ b/sdk/support/Azure.ResourceManager.Support/src/Generated/SubscriptionFileWorkspaceResource.cs @@ -268,7 +268,9 @@ public virtual async Task> Updat try { var response = await _subscriptionFileWorkspaceFileWorkspacesRestClient.CreateAsync(Id.SubscriptionId, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new SupportArmOperation(Response.FromValue(new SubscriptionFileWorkspaceResource(Client, response), response.GetRawResponse())); + var uri = _subscriptionFileWorkspaceFileWorkspacesRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SupportArmOperation(Response.FromValue(new SubscriptionFileWorkspaceResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -310,7 +312,9 @@ public virtual ArmOperation Update(WaitUntil try { var response = _subscriptionFileWorkspaceFileWorkspacesRestClient.Create(Id.SubscriptionId, Id.Name, cancellationToken); - var operation = new SupportArmOperation(Response.FromValue(new SubscriptionFileWorkspaceResource(Client, response), response.GetRawResponse())); + var uri = _subscriptionFileWorkspaceFileWorkspacesRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SupportArmOperation(Response.FromValue(new SubscriptionFileWorkspaceResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/support/Azure.ResourceManager.Support/src/Generated/SupportTicketFileCollection.cs b/sdk/support/Azure.ResourceManager.Support/src/Generated/SupportTicketFileCollection.cs index ec32609a547b..609953125c32 100644 --- a/sdk/support/Azure.ResourceManager.Support/src/Generated/SupportTicketFileCollection.cs +++ b/sdk/support/Azure.ResourceManager.Support/src/Generated/SupportTicketFileCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> CreateOrUpdat try { var response = await _supportTicketFileFilesRestClient.CreateAsync(Id.SubscriptionId, Id.Name, fileName, data, cancellationToken).ConfigureAwait(false); - var operation = new SupportArmOperation(Response.FromValue(new SupportTicketFileResource(Client, response), response.GetRawResponse())); + var uri = _supportTicketFileFilesRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.Name, fileName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SupportArmOperation(Response.FromValue(new SupportTicketFileResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil try { var response = _supportTicketFileFilesRestClient.Create(Id.SubscriptionId, Id.Name, fileName, data, cancellationToken); - var operation = new SupportArmOperation(Response.FromValue(new SupportTicketFileResource(Client, response), response.GetRawResponse())); + var uri = _supportTicketFileFilesRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.Name, fileName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SupportArmOperation(Response.FromValue(new SupportTicketFileResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/support/Azure.ResourceManager.Support/src/Generated/SupportTicketFileResource.cs b/sdk/support/Azure.ResourceManager.Support/src/Generated/SupportTicketFileResource.cs index 3f8d57cc37e8..6c328931a801 100644 --- a/sdk/support/Azure.ResourceManager.Support/src/Generated/SupportTicketFileResource.cs +++ b/sdk/support/Azure.ResourceManager.Support/src/Generated/SupportTicketFileResource.cs @@ -204,7 +204,9 @@ public virtual async Task> UpdateAsync(W try { var response = await _supportTicketFileFilesRestClient.CreateAsync(Id.SubscriptionId, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new SupportArmOperation(Response.FromValue(new SupportTicketFileResource(Client, response), response.GetRawResponse())); + var uri = _supportTicketFileFilesRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SupportArmOperation(Response.FromValue(new SupportTicketFileResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -250,7 +252,9 @@ public virtual ArmOperation Update(WaitUntil waitUnti try { var response = _supportTicketFileFilesRestClient.Create(Id.SubscriptionId, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new SupportArmOperation(Response.FromValue(new SupportTicketFileResource(Client, response), response.GetRawResponse())); + var uri = _supportTicketFileFilesRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SupportArmOperation(Response.FromValue(new SupportTicketFileResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/support/Azure.ResourceManager.Support/src/Generated/SupportTicketNoSubFileCollection.cs b/sdk/support/Azure.ResourceManager.Support/src/Generated/SupportTicketNoSubFileCollection.cs index 9f635abaec29..9a7b04280245 100644 --- a/sdk/support/Azure.ResourceManager.Support/src/Generated/SupportTicketNoSubFileCollection.cs +++ b/sdk/support/Azure.ResourceManager.Support/src/Generated/SupportTicketNoSubFileCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> CreateOr try { var response = await _supportTicketNoSubFileFilesNoSubscriptionRestClient.CreateAsync(Id.Name, fileName, data, cancellationToken).ConfigureAwait(false); - var operation = new SupportArmOperation(Response.FromValue(new SupportTicketNoSubFileResource(Client, response), response.GetRawResponse())); + var uri = _supportTicketNoSubFileFilesNoSubscriptionRestClient.CreateCreateRequestUri(Id.Name, fileName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SupportArmOperation(Response.FromValue(new SupportTicketNoSubFileResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(WaitU try { var response = _supportTicketNoSubFileFilesNoSubscriptionRestClient.Create(Id.Name, fileName, data, cancellationToken); - var operation = new SupportArmOperation(Response.FromValue(new SupportTicketNoSubFileResource(Client, response), response.GetRawResponse())); + var uri = _supportTicketNoSubFileFilesNoSubscriptionRestClient.CreateCreateRequestUri(Id.Name, fileName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SupportArmOperation(Response.FromValue(new SupportTicketNoSubFileResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/support/Azure.ResourceManager.Support/src/Generated/SupportTicketNoSubFileResource.cs b/sdk/support/Azure.ResourceManager.Support/src/Generated/SupportTicketNoSubFileResource.cs index 92815ab97311..593f35a0e921 100644 --- a/sdk/support/Azure.ResourceManager.Support/src/Generated/SupportTicketNoSubFileResource.cs +++ b/sdk/support/Azure.ResourceManager.Support/src/Generated/SupportTicketNoSubFileResource.cs @@ -203,7 +203,9 @@ public virtual async Task> UpdateAs try { var response = await _supportTicketNoSubFileFilesNoSubscriptionRestClient.CreateAsync(Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new SupportArmOperation(Response.FromValue(new SupportTicketNoSubFileResource(Client, response), response.GetRawResponse())); + var uri = _supportTicketNoSubFileFilesNoSubscriptionRestClient.CreateCreateRequestUri(Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SupportArmOperation(Response.FromValue(new SupportTicketNoSubFileResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -249,7 +251,9 @@ public virtual ArmOperation Update(WaitUntil wai try { var response = _supportTicketNoSubFileFilesNoSubscriptionRestClient.Create(Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new SupportArmOperation(Response.FromValue(new SupportTicketNoSubFileResource(Client, response), response.GetRawResponse())); + var uri = _supportTicketNoSubFileFilesNoSubscriptionRestClient.CreateCreateRequestUri(Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SupportArmOperation(Response.FromValue(new SupportTicketNoSubFileResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/support/Azure.ResourceManager.Support/src/Generated/TenantFileWorkspaceCollection.cs b/sdk/support/Azure.ResourceManager.Support/src/Generated/TenantFileWorkspaceCollection.cs index a0abc088c6fd..ac798d21542e 100644 --- a/sdk/support/Azure.ResourceManager.Support/src/Generated/TenantFileWorkspaceCollection.cs +++ b/sdk/support/Azure.ResourceManager.Support/src/Generated/TenantFileWorkspaceCollection.cs @@ -86,7 +86,9 @@ public virtual async Task> CreateOrUpd try { var response = await _tenantFileWorkspaceFileWorkspacesNoSubscriptionRestClient.CreateAsync(fileWorkspaceName, cancellationToken).ConfigureAwait(false); - var operation = new SupportArmOperation(Response.FromValue(new TenantFileWorkspaceResource(Client, response), response.GetRawResponse())); + var uri = _tenantFileWorkspaceFileWorkspacesNoSubscriptionRestClient.CreateCreateRequestUri(fileWorkspaceName); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SupportArmOperation(Response.FromValue(new TenantFileWorkspaceResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -133,7 +135,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUnti try { var response = _tenantFileWorkspaceFileWorkspacesNoSubscriptionRestClient.Create(fileWorkspaceName, cancellationToken); - var operation = new SupportArmOperation(Response.FromValue(new TenantFileWorkspaceResource(Client, response), response.GetRawResponse())); + var uri = _tenantFileWorkspaceFileWorkspacesNoSubscriptionRestClient.CreateCreateRequestUri(fileWorkspaceName); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SupportArmOperation(Response.FromValue(new TenantFileWorkspaceResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/support/Azure.ResourceManager.Support/src/Generated/TenantFileWorkspaceResource.cs b/sdk/support/Azure.ResourceManager.Support/src/Generated/TenantFileWorkspaceResource.cs index 640a0948c02e..2f515a2587a9 100644 --- a/sdk/support/Azure.ResourceManager.Support/src/Generated/TenantFileWorkspaceResource.cs +++ b/sdk/support/Azure.ResourceManager.Support/src/Generated/TenantFileWorkspaceResource.cs @@ -267,7 +267,9 @@ public virtual async Task> UpdateAsync try { var response = await _tenantFileWorkspaceFileWorkspacesNoSubscriptionRestClient.CreateAsync(Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new SupportArmOperation(Response.FromValue(new TenantFileWorkspaceResource(Client, response), response.GetRawResponse())); + var uri = _tenantFileWorkspaceFileWorkspacesNoSubscriptionRestClient.CreateCreateRequestUri(Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SupportArmOperation(Response.FromValue(new TenantFileWorkspaceResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -309,7 +311,9 @@ public virtual ArmOperation Update(WaitUntil waitUn try { var response = _tenantFileWorkspaceFileWorkspacesNoSubscriptionRestClient.Create(Id.Name, cancellationToken); - var operation = new SupportArmOperation(Response.FromValue(new TenantFileWorkspaceResource(Client, response), response.GetRawResponse())); + var uri = _tenantFileWorkspaceFileWorkspacesNoSubscriptionRestClient.CreateCreateRequestUri(Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SupportArmOperation(Response.FromValue(new TenantFileWorkspaceResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/LongRunningOperation/SynapseArmOperation.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/LongRunningOperation/SynapseArmOperation.cs index 276a23aec223..c7bff2d7b613 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/LongRunningOperation/SynapseArmOperation.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/LongRunningOperation/SynapseArmOperation.cs @@ -20,21 +20,24 @@ internal class SynapseArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of SynapseArmOperation for mocking. protected SynapseArmOperation() { } - internal SynapseArmOperation(Response response) + internal SynapseArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal SynapseArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "SynapseArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal SynapseArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline p public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/LongRunningOperation/SynapseArmOperationOfT.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/LongRunningOperation/SynapseArmOperationOfT.cs index 9cfe765a44a1..83c8d8d53bd2 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/LongRunningOperation/SynapseArmOperationOfT.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/LongRunningOperation/SynapseArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class SynapseArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of SynapseArmOperation for mocking. protected SynapseArmOperation() { } - internal SynapseArmOperation(Response response) + internal SynapseArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal SynapseArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "SynapseArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal SynapseArmOperation(IOperationSource source, ClientDiagnostics clien public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseAadOnlyAuthenticationResource.Serialization.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseAadOnlyAuthenticationResource.Serialization.cs new file mode 100644 index 000000000000..1882b44eed9a --- /dev/null +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseAadOnlyAuthenticationResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Synapse +{ + public partial class SynapseAadOnlyAuthenticationResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SynapseAadOnlyAuthenticationData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SynapseAadOnlyAuthenticationData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseAttachedDatabaseConfigurationResource.Serialization.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseAttachedDatabaseConfigurationResource.Serialization.cs new file mode 100644 index 000000000000..7e6b4cf9fdb4 --- /dev/null +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseAttachedDatabaseConfigurationResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Synapse +{ + public partial class SynapseAttachedDatabaseConfigurationResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SynapseAttachedDatabaseConfigurationData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SynapseAttachedDatabaseConfigurationData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseBigDataPoolInfoResource.Serialization.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseBigDataPoolInfoResource.Serialization.cs new file mode 100644 index 000000000000..87f9dfae3025 --- /dev/null +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseBigDataPoolInfoResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Synapse +{ + public partial class SynapseBigDataPoolInfoResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SynapseBigDataPoolInfoData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SynapseBigDataPoolInfoData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseClusterPrincipalAssignmentResource.Serialization.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseClusterPrincipalAssignmentResource.Serialization.cs new file mode 100644 index 000000000000..fadcfc9a4650 --- /dev/null +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseClusterPrincipalAssignmentResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Synapse +{ + public partial class SynapseClusterPrincipalAssignmentResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SynapseClusterPrincipalAssignmentData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SynapseClusterPrincipalAssignmentData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseDataConnectionResource.Serialization.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseDataConnectionResource.Serialization.cs new file mode 100644 index 000000000000..bf6a6a1efc16 --- /dev/null +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseDataConnectionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Synapse +{ + public partial class SynapseDataConnectionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SynapseDataConnectionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SynapseDataConnectionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseDataMaskingPolicyResource.Serialization.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseDataMaskingPolicyResource.Serialization.cs new file mode 100644 index 000000000000..5ea761c67f10 --- /dev/null +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseDataMaskingPolicyResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Synapse +{ + public partial class SynapseDataMaskingPolicyResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SynapseDataMaskingPolicyData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SynapseDataMaskingPolicyData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseDataMaskingRuleResource.Serialization.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseDataMaskingRuleResource.Serialization.cs new file mode 100644 index 000000000000..3c0d6831bdb5 --- /dev/null +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseDataMaskingRuleResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Synapse +{ + public partial class SynapseDataMaskingRuleResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SynapseDataMaskingRuleData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SynapseDataMaskingRuleData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseDataWarehouseUserActivityResource.Serialization.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseDataWarehouseUserActivityResource.Serialization.cs new file mode 100644 index 000000000000..a2d684e47bf8 --- /dev/null +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseDataWarehouseUserActivityResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Synapse +{ + public partial class SynapseDataWarehouseUserActivityResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SynapseDataWarehouseUserActivityData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SynapseDataWarehouseUserActivityData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseDatabasePrincipalAssignmentResource.Serialization.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseDatabasePrincipalAssignmentResource.Serialization.cs new file mode 100644 index 000000000000..3fcc282f8103 --- /dev/null +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseDatabasePrincipalAssignmentResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Synapse +{ + public partial class SynapseDatabasePrincipalAssignmentResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SynapseDatabasePrincipalAssignmentData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SynapseDatabasePrincipalAssignmentData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseDatabaseResource.Serialization.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseDatabaseResource.Serialization.cs new file mode 100644 index 000000000000..1b2a9ff1cc93 --- /dev/null +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseDatabaseResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Synapse +{ + public partial class SynapseDatabaseResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SynapseDatabaseData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SynapseDatabaseData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseDedicatedSqlMinimalTlsSettingResource.Serialization.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseDedicatedSqlMinimalTlsSettingResource.Serialization.cs new file mode 100644 index 000000000000..99c29a855b93 --- /dev/null +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseDedicatedSqlMinimalTlsSettingResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Synapse +{ + public partial class SynapseDedicatedSqlMinimalTlsSettingResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SynapseDedicatedSqlMinimalTlsSettingData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SynapseDedicatedSqlMinimalTlsSettingData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseEncryptionProtectorResource.Serialization.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseEncryptionProtectorResource.Serialization.cs new file mode 100644 index 000000000000..faf940ee9b6f --- /dev/null +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseEncryptionProtectorResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Synapse +{ + public partial class SynapseEncryptionProtectorResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SynapseEncryptionProtectorData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SynapseEncryptionProtectorData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseExtendedServerBlobAuditingPolicyResource.Serialization.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseExtendedServerBlobAuditingPolicyResource.Serialization.cs new file mode 100644 index 000000000000..02d1a6b4d542 --- /dev/null +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseExtendedServerBlobAuditingPolicyResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Synapse +{ + public partial class SynapseExtendedServerBlobAuditingPolicyResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SynapseExtendedServerBlobAuditingPolicyData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SynapseExtendedServerBlobAuditingPolicyData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseExtendedSqlPoolBlobAuditingPolicyResource.Serialization.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseExtendedSqlPoolBlobAuditingPolicyResource.Serialization.cs new file mode 100644 index 000000000000..2752f2881328 --- /dev/null +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseExtendedSqlPoolBlobAuditingPolicyResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Synapse +{ + public partial class SynapseExtendedSqlPoolBlobAuditingPolicyResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SynapseExtendedSqlPoolBlobAuditingPolicyData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SynapseExtendedSqlPoolBlobAuditingPolicyData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseGeoBackupPolicyResource.Serialization.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseGeoBackupPolicyResource.Serialization.cs new file mode 100644 index 000000000000..b73bd59318cb --- /dev/null +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseGeoBackupPolicyResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Synapse +{ + public partial class SynapseGeoBackupPolicyResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SynapseGeoBackupPolicyData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SynapseGeoBackupPolicyData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseIPFirewallRuleInfoResource.Serialization.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseIPFirewallRuleInfoResource.Serialization.cs new file mode 100644 index 000000000000..629177b9ca98 --- /dev/null +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseIPFirewallRuleInfoResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Synapse +{ + public partial class SynapseIPFirewallRuleInfoResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SynapseIPFirewallRuleInfoData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SynapseIPFirewallRuleInfoData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseIntegrationRuntimeResource.Serialization.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseIntegrationRuntimeResource.Serialization.cs new file mode 100644 index 000000000000..72d694d978ed --- /dev/null +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseIntegrationRuntimeResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Synapse +{ + public partial class SynapseIntegrationRuntimeResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SynapseIntegrationRuntimeData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SynapseIntegrationRuntimeData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseKeyResource.Serialization.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseKeyResource.Serialization.cs new file mode 100644 index 000000000000..d25464099c27 --- /dev/null +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseKeyResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Synapse +{ + public partial class SynapseKeyResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SynapseKeyData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SynapseKeyData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseKustoPoolResource.Serialization.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseKustoPoolResource.Serialization.cs new file mode 100644 index 000000000000..72aa6a3fc607 --- /dev/null +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseKustoPoolResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Synapse +{ + public partial class SynapseKustoPoolResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SynapseKustoPoolData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SynapseKustoPoolData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseLibraryResource.Serialization.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseLibraryResource.Serialization.cs new file mode 100644 index 000000000000..9f2158bb698d --- /dev/null +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseLibraryResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Synapse +{ + public partial class SynapseLibraryResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SynapseLibraryData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SynapseLibraryData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseMaintenanceWindowOptionResource.Serialization.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseMaintenanceWindowOptionResource.Serialization.cs new file mode 100644 index 000000000000..9c7fc9067419 --- /dev/null +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseMaintenanceWindowOptionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Synapse +{ + public partial class SynapseMaintenanceWindowOptionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SynapseMaintenanceWindowOptionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SynapseMaintenanceWindowOptionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseMaintenanceWindowResource.Serialization.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseMaintenanceWindowResource.Serialization.cs new file mode 100644 index 000000000000..40c608d66b46 --- /dev/null +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseMaintenanceWindowResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Synapse +{ + public partial class SynapseMaintenanceWindowResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SynapseMaintenanceWindowData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SynapseMaintenanceWindowData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseManagedIdentitySqlControlSettingResource.Serialization.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseManagedIdentitySqlControlSettingResource.Serialization.cs new file mode 100644 index 000000000000..cf670f4e567c --- /dev/null +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseManagedIdentitySqlControlSettingResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Synapse +{ + public partial class SynapseManagedIdentitySqlControlSettingResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SynapseManagedIdentitySqlControlSettingData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SynapseManagedIdentitySqlControlSettingData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseMetadataSyncConfigurationResource.Serialization.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseMetadataSyncConfigurationResource.Serialization.cs new file mode 100644 index 000000000000..0c13c478de29 --- /dev/null +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseMetadataSyncConfigurationResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Synapse +{ + public partial class SynapseMetadataSyncConfigurationResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SynapseMetadataSyncConfigurationData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SynapseMetadataSyncConfigurationData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapsePrivateEndpointConnectionForPrivateLinkHubResource.Serialization.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapsePrivateEndpointConnectionForPrivateLinkHubResource.Serialization.cs new file mode 100644 index 000000000000..9989554c2bf2 --- /dev/null +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapsePrivateEndpointConnectionForPrivateLinkHubResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Synapse +{ + public partial class SynapsePrivateEndpointConnectionForPrivateLinkHubResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SynapsePrivateEndpointConnectionForPrivateLinkHubData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SynapsePrivateEndpointConnectionForPrivateLinkHubData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapsePrivateEndpointConnectionResource.Serialization.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapsePrivateEndpointConnectionResource.Serialization.cs new file mode 100644 index 000000000000..037749500eb9 --- /dev/null +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapsePrivateEndpointConnectionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Synapse +{ + public partial class SynapsePrivateEndpointConnectionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SynapsePrivateEndpointConnectionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SynapsePrivateEndpointConnectionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapsePrivateLinkHubResource.Serialization.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapsePrivateLinkHubResource.Serialization.cs new file mode 100644 index 000000000000..b835a0f502c2 --- /dev/null +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapsePrivateLinkHubResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Synapse +{ + public partial class SynapsePrivateLinkHubResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SynapsePrivateLinkHubData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SynapsePrivateLinkHubData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapsePrivateLinkResource.Serialization.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapsePrivateLinkResource.Serialization.cs new file mode 100644 index 000000000000..bedaf31e4ee7 --- /dev/null +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapsePrivateLinkResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Synapse +{ + public partial class SynapsePrivateLinkResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SynapsePrivateLinkResourceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SynapsePrivateLinkResourceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseRecoverableSqlPoolResource.Serialization.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseRecoverableSqlPoolResource.Serialization.cs new file mode 100644 index 000000000000..fad06578490f --- /dev/null +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseRecoverableSqlPoolResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Synapse +{ + public partial class SynapseRecoverableSqlPoolResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SynapseRecoverableSqlPoolData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SynapseRecoverableSqlPoolData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseReplicationLinkResource.Serialization.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseReplicationLinkResource.Serialization.cs new file mode 100644 index 000000000000..2b923b3c1d75 --- /dev/null +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseReplicationLinkResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Synapse +{ + public partial class SynapseReplicationLinkResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SynapseReplicationLinkData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SynapseReplicationLinkData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseRestorableDroppedSqlPoolResource.Serialization.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseRestorableDroppedSqlPoolResource.Serialization.cs new file mode 100644 index 000000000000..68dbc8fa7545 --- /dev/null +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseRestorableDroppedSqlPoolResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Synapse +{ + public partial class SynapseRestorableDroppedSqlPoolResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SynapseRestorableDroppedSqlPoolData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SynapseRestorableDroppedSqlPoolData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseRestorePointResource.Serialization.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseRestorePointResource.Serialization.cs new file mode 100644 index 000000000000..b417159f797b --- /dev/null +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseRestorePointResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Synapse +{ + public partial class SynapseRestorePointResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SynapseRestorePointData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SynapseRestorePointData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseSensitivityLabelResource.Serialization.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseSensitivityLabelResource.Serialization.cs new file mode 100644 index 000000000000..7500d8fb5d86 --- /dev/null +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseSensitivityLabelResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Synapse +{ + public partial class SynapseSensitivityLabelResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SynapseSensitivityLabelData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SynapseSensitivityLabelData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseServerBlobAuditingPolicyResource.Serialization.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseServerBlobAuditingPolicyResource.Serialization.cs new file mode 100644 index 000000000000..b42c68dd576e --- /dev/null +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseServerBlobAuditingPolicyResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Synapse +{ + public partial class SynapseServerBlobAuditingPolicyResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SynapseServerBlobAuditingPolicyData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SynapseServerBlobAuditingPolicyData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseServerSecurityAlertPolicyResource.Serialization.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseServerSecurityAlertPolicyResource.Serialization.cs new file mode 100644 index 000000000000..4b96facfc09a --- /dev/null +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseServerSecurityAlertPolicyResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Synapse +{ + public partial class SynapseServerSecurityAlertPolicyResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SynapseServerSecurityAlertPolicyData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SynapseServerSecurityAlertPolicyData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseServerVulnerabilityAssessmentResource.Serialization.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseServerVulnerabilityAssessmentResource.Serialization.cs new file mode 100644 index 000000000000..6367b61a11f8 --- /dev/null +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseServerVulnerabilityAssessmentResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Synapse +{ + public partial class SynapseServerVulnerabilityAssessmentResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SynapseServerVulnerabilityAssessmentData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SynapseServerVulnerabilityAssessmentData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseSparkConfigurationResource.Serialization.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseSparkConfigurationResource.Serialization.cs new file mode 100644 index 000000000000..5e121c0410aa --- /dev/null +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseSparkConfigurationResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Synapse +{ + public partial class SynapseSparkConfigurationResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SynapseSparkConfigurationData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SynapseSparkConfigurationData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseSqlPoolBlobAuditingPolicyResource.Serialization.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseSqlPoolBlobAuditingPolicyResource.Serialization.cs new file mode 100644 index 000000000000..01b52a5bc8cd --- /dev/null +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseSqlPoolBlobAuditingPolicyResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Synapse +{ + public partial class SynapseSqlPoolBlobAuditingPolicyResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SynapseSqlPoolBlobAuditingPolicyData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SynapseSqlPoolBlobAuditingPolicyData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseSqlPoolColumnResource.Serialization.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseSqlPoolColumnResource.Serialization.cs new file mode 100644 index 000000000000..6407c9e78717 --- /dev/null +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseSqlPoolColumnResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Synapse +{ + public partial class SynapseSqlPoolColumnResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SynapseSqlPoolColumnData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SynapseSqlPoolColumnData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseSqlPoolConnectionPolicyResource.Serialization.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseSqlPoolConnectionPolicyResource.Serialization.cs new file mode 100644 index 000000000000..973592d9b626 --- /dev/null +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseSqlPoolConnectionPolicyResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Synapse +{ + public partial class SynapseSqlPoolConnectionPolicyResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SynapseSqlPoolConnectionPolicyData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SynapseSqlPoolConnectionPolicyData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseSqlPoolResource.Serialization.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseSqlPoolResource.Serialization.cs new file mode 100644 index 000000000000..bc02a0287b08 --- /dev/null +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseSqlPoolResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Synapse +{ + public partial class SynapseSqlPoolResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SynapseSqlPoolData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SynapseSqlPoolData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseSqlPoolSchemaResource.Serialization.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseSqlPoolSchemaResource.Serialization.cs new file mode 100644 index 000000000000..cee5a55f9fc7 --- /dev/null +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseSqlPoolSchemaResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Synapse +{ + public partial class SynapseSqlPoolSchemaResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SynapseSqlPoolSchemaData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SynapseSqlPoolSchemaData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseSqlPoolSecurityAlertPolicyResource.Serialization.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseSqlPoolSecurityAlertPolicyResource.Serialization.cs new file mode 100644 index 000000000000..0a4389271b13 --- /dev/null +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseSqlPoolSecurityAlertPolicyResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Synapse +{ + public partial class SynapseSqlPoolSecurityAlertPolicyResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SynapseSqlPoolSecurityAlertPolicyData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SynapseSqlPoolSecurityAlertPolicyData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseSqlPoolTableResource.Serialization.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseSqlPoolTableResource.Serialization.cs new file mode 100644 index 000000000000..a6860ddceb68 --- /dev/null +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseSqlPoolTableResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Synapse +{ + public partial class SynapseSqlPoolTableResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SynapseSqlPoolTableData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SynapseSqlPoolTableData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseSqlPoolVulnerabilityAssessmentResource.Serialization.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseSqlPoolVulnerabilityAssessmentResource.Serialization.cs new file mode 100644 index 000000000000..bffcb7580381 --- /dev/null +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseSqlPoolVulnerabilityAssessmentResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Synapse +{ + public partial class SynapseSqlPoolVulnerabilityAssessmentResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SynapseSqlPoolVulnerabilityAssessmentData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SynapseSqlPoolVulnerabilityAssessmentData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseSqlPoolVulnerabilityAssessmentRuleBaselineResource.Serialization.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseSqlPoolVulnerabilityAssessmentRuleBaselineResource.Serialization.cs new file mode 100644 index 000000000000..9e64e7c0efd6 --- /dev/null +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseSqlPoolVulnerabilityAssessmentRuleBaselineResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Synapse +{ + public partial class SynapseSqlPoolVulnerabilityAssessmentRuleBaselineResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SynapseSqlPoolVulnerabilityAssessmentRuleBaselineData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SynapseSqlPoolVulnerabilityAssessmentRuleBaselineData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseTransparentDataEncryptionResource.Serialization.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseTransparentDataEncryptionResource.Serialization.cs new file mode 100644 index 000000000000..772956f0dbdc --- /dev/null +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseTransparentDataEncryptionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Synapse +{ + public partial class SynapseTransparentDataEncryptionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SynapseTransparentDataEncryptionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SynapseTransparentDataEncryptionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseVulnerabilityAssessmentScanRecordResource.Serialization.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseVulnerabilityAssessmentScanRecordResource.Serialization.cs new file mode 100644 index 000000000000..da3c91ae7b30 --- /dev/null +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseVulnerabilityAssessmentScanRecordResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Synapse +{ + public partial class SynapseVulnerabilityAssessmentScanRecordResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SynapseVulnerabilityAssessmentScanRecordData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SynapseVulnerabilityAssessmentScanRecordData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseWorkloadClassifierResource.Serialization.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseWorkloadClassifierResource.Serialization.cs new file mode 100644 index 000000000000..2697fdb13618 --- /dev/null +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseWorkloadClassifierResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Synapse +{ + public partial class SynapseWorkloadClassifierResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SynapseWorkloadClassifierData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SynapseWorkloadClassifierData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseWorkloadGroupResource.Serialization.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseWorkloadGroupResource.Serialization.cs new file mode 100644 index 000000000000..72acc3449a95 --- /dev/null +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseWorkloadGroupResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Synapse +{ + public partial class SynapseWorkloadGroupResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SynapseWorkloadGroupData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SynapseWorkloadGroupData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseWorkspaceAdministratorResource.Serialization.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseWorkspaceAdministratorResource.Serialization.cs new file mode 100644 index 000000000000..6c90666963b2 --- /dev/null +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseWorkspaceAdministratorResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Synapse +{ + public partial class SynapseWorkspaceAdministratorResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SynapseWorkspaceAadAdminInfoData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SynapseWorkspaceAadAdminInfoData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseWorkspacePrivateLinkResource.Serialization.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseWorkspacePrivateLinkResource.Serialization.cs new file mode 100644 index 000000000000..49901651c0ac --- /dev/null +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseWorkspacePrivateLinkResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Synapse +{ + public partial class SynapseWorkspacePrivateLinkResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SynapsePrivateLinkResourceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SynapsePrivateLinkResourceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseWorkspaceResource.Serialization.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseWorkspaceResource.Serialization.cs new file mode 100644 index 000000000000..7b18a807f736 --- /dev/null +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseWorkspaceResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Synapse +{ + public partial class SynapseWorkspaceResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SynapseWorkspaceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SynapseWorkspaceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseWorkspaceSqlAdministratorResource.Serialization.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseWorkspaceSqlAdministratorResource.Serialization.cs new file mode 100644 index 000000000000..892620569d36 --- /dev/null +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseWorkspaceSqlAdministratorResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Synapse +{ + public partial class SynapseWorkspaceSqlAdministratorResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SynapseWorkspaceAadAdminInfoData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SynapseWorkspaceAadAdminInfoData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/AzureADOnlyAuthenticationsRestOperations.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/AzureADOnlyAuthenticationsRestOperations.cs index f443e13a75d7..5ed210ca1af8 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/AzureADOnlyAuthenticationsRestOperations.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/AzureADOnlyAuthenticationsRestOperations.cs @@ -37,6 +37,22 @@ public AzureADOnlyAuthenticationsRestOperations(HttpPipeline pipeline, string ap _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, SynapseAadOnlyAuthenticationName azureADOnlyAuthenticationName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/azureADOnlyAuthentications/", false); + uri.AppendPath(azureADOnlyAuthenticationName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName, SynapseAadOnlyAuthenticationName azureADOnlyAuthenticationName) { var message = _pipeline.CreateMessage(); @@ -123,6 +139,22 @@ public Response Get(string subscriptionId, str } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, SynapseAadOnlyAuthenticationName azureADOnlyAuthenticationName, SynapseAadOnlyAuthenticationData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/azureADOnlyAuthentications/", false); + uri.AppendPath(azureADOnlyAuthenticationName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string workspaceName, SynapseAadOnlyAuthenticationName azureADOnlyAuthenticationName, SynapseAadOnlyAuthenticationData data) { var message = _pipeline.CreateMessage(); @@ -207,6 +239,21 @@ public Response Create(string subscriptionId, string resourceGroupName, string w } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string workspaceName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/azureADOnlyAuthentications", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); @@ -286,6 +333,14 @@ public Response List(string subscription } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/BigDataPoolsRestOperations.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/BigDataPoolsRestOperations.cs index f2511835f525..b2c63cca5dda 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/BigDataPoolsRestOperations.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/BigDataPoolsRestOperations.cs @@ -37,6 +37,22 @@ public BigDataPoolsRestOperations(HttpPipeline pipeline, string applicationId, U _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string bigDataPoolName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/bigDataPools/", false); + uri.AppendPath(bigDataPoolName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName, string bigDataPoolName) { var message = _pipeline.CreateMessage(); @@ -125,6 +141,22 @@ public Response Get(string subscriptionId, string re } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string bigDataPoolName, SynapseBigDataPoolInfoPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/bigDataPools/", false); + uri.AppendPath(bigDataPoolName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string bigDataPoolName, SynapseBigDataPoolInfoPatch patch) { var message = _pipeline.CreateMessage(); @@ -217,6 +249,26 @@ public Response Update(string subscriptionId, string } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string bigDataPoolName, SynapseBigDataPoolInfoData info, bool? force) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/bigDataPools/", false); + uri.AppendPath(bigDataPoolName, true); + uri.AppendQuery("api-version", _apiVersion, true); + if (force != null) + { + uri.AppendQuery("force", force.Value, true); + } + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string bigDataPoolName, SynapseBigDataPoolInfoData info, bool? force) { var message = _pipeline.CreateMessage(); @@ -307,6 +359,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string bigDataPoolName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/bigDataPools/", false); + uri.AppendPath(bigDataPoolName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string workspaceName, string bigDataPoolName) { var message = _pipeline.CreateMessage(); @@ -385,6 +453,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string w } } + internal RequestUriBuilder CreateListByWorkspaceRequestUri(string subscriptionId, string resourceGroupName, string workspaceName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/bigDataPools", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByWorkspaceRequest(string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); @@ -464,6 +547,14 @@ public Response ListByWorkspace(string subscri } } + internal RequestUriBuilder CreateListByWorkspaceNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByWorkspaceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/DataMaskingPoliciesRestOperations.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/DataMaskingPoliciesRestOperations.cs index 6ceab8ffde15..fe1aec55bbcd 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/DataMaskingPoliciesRestOperations.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/DataMaskingPoliciesRestOperations.cs @@ -36,6 +36,24 @@ public DataMaskingPoliciesRestOperations(HttpPipeline pipeline, string applicati _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, SynapseDataMaskingPolicyData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/sqlPools/", false); + uri.AppendPath(sqlPoolName, true); + uri.AppendPath("/dataMaskingPolicies/", false); + uri.AppendPath("Default", true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, SynapseDataMaskingPolicyData data) { var message = _pipeline.CreateMessage(); @@ -130,6 +148,24 @@ public Response CreateOrUpdate(string subscription } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/sqlPools/", false); + uri.AppendPath(sqlPoolName, true); + uri.AppendPath("/dataMaskingPolicies/", false); + uri.AppendPath("Default", true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/DataMaskingRulesRestOperations.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/DataMaskingRulesRestOperations.cs index 4070e61a3968..bdce277037e9 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/DataMaskingRulesRestOperations.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/DataMaskingRulesRestOperations.cs @@ -37,6 +37,26 @@ public DataMaskingRulesRestOperations(HttpPipeline pipeline, string applicationI _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, string dataMaskingRuleName, SynapseDataMaskingRuleData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/sqlPools/", false); + uri.AppendPath(sqlPoolName, true); + uri.AppendPath("/dataMaskingPolicies/", false); + uri.AppendPath("Default", true); + uri.AppendPath("/rules/", false); + uri.AppendPath(dataMaskingRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, string dataMaskingRuleName, SynapseDataMaskingRuleData data) { var message = _pipeline.CreateMessage(); @@ -139,6 +159,26 @@ public Response CreateOrUpdate(string subscriptionId } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, string dataMaskingRuleName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/sqlPools/", false); + uri.AppendPath(sqlPoolName, true); + uri.AppendPath("/dataMaskingPolicies/", false); + uri.AppendPath("Default", true); + uri.AppendPath("/rules/", false); + uri.AppendPath(dataMaskingRuleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, string dataMaskingRuleName) { var message = _pipeline.CreateMessage(); @@ -235,6 +275,25 @@ public Response Get(string subscriptionId, string re } } + internal RequestUriBuilder CreateListBySqlPoolRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/sqlPools/", false); + uri.AppendPath(sqlPoolName, true); + uri.AppendPath("/dataMaskingPolicies/", false); + uri.AppendPath("Default", true); + uri.AppendPath("/rules", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySqlPoolRequest(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/ExtendedSqlPoolBlobAuditingPoliciesRestOperations.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/ExtendedSqlPoolBlobAuditingPoliciesRestOperations.cs index c8b98930918e..b07a2c649ca4 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/ExtendedSqlPoolBlobAuditingPoliciesRestOperations.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/ExtendedSqlPoolBlobAuditingPoliciesRestOperations.cs @@ -37,6 +37,24 @@ public ExtendedSqlPoolBlobAuditingPoliciesRestOperations(HttpPipeline pipeline, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/sqlPools/", false); + uri.AppendPath(sqlPoolName, true); + uri.AppendPath("/extendedAuditingSettings/", false); + uri.AppendPath("default", true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName) { var message = _pipeline.CreateMessage(); @@ -127,6 +145,24 @@ public Response Get(string subscri } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, SynapseExtendedSqlPoolBlobAuditingPolicyData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/sqlPools/", false); + uri.AppendPath(sqlPoolName, true); + uri.AppendPath("/extendedAuditingSettings/", false); + uri.AppendPath("default", true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, SynapseExtendedSqlPoolBlobAuditingPolicyData data) { var message = _pipeline.CreateMessage(); @@ -223,6 +259,23 @@ public Response CreateOrUpdate(str } } + internal RequestUriBuilder CreateListBySqlPoolRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/sqlPools/", false); + uri.AppendPath(sqlPoolName, true); + uri.AppendPath("/extendedAuditingSettings", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySqlPoolRequest(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName) { var message = _pipeline.CreateMessage(); @@ -308,6 +361,14 @@ public Response ListBySqlPoo } } + internal RequestUriBuilder CreateListBySqlPoolNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySqlPoolNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/IntegrationRuntimeAuthKeysRestOperations.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/IntegrationRuntimeAuthKeysRestOperations.cs index 1c9e5ee3ce59..ee9500650ed5 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/IntegrationRuntimeAuthKeysRestOperations.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/IntegrationRuntimeAuthKeysRestOperations.cs @@ -37,6 +37,23 @@ public IntegrationRuntimeAuthKeysRestOperations(HttpPipeline pipeline, string ap _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateRegenerateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string integrationRuntimeName, IntegrationRuntimeRegenerateKeyContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/integrationRuntimes/", false); + uri.AppendPath(integrationRuntimeName, true); + uri.AppendPath("/regenerateAuthKey", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRegenerateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string integrationRuntimeName, IntegrationRuntimeRegenerateKeyContent content) { var message = _pipeline.CreateMessage(); @@ -130,6 +147,23 @@ public Response Regenerate(string subscriptio } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string integrationRuntimeName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/integrationRuntimes/", false); + uri.AppendPath(integrationRuntimeName, true); + uri.AppendPath("/listAuthKeys", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string workspaceName, string integrationRuntimeName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/IntegrationRuntimeConnectionInfosRestOperations.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/IntegrationRuntimeConnectionInfosRestOperations.cs index 9b6b242157f1..d44c4510916e 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/IntegrationRuntimeConnectionInfosRestOperations.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/IntegrationRuntimeConnectionInfosRestOperations.cs @@ -37,6 +37,23 @@ public IntegrationRuntimeConnectionInfosRestOperations(HttpPipeline pipeline, st _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string integrationRuntimeName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/integrationRuntimes/", false); + uri.AppendPath(integrationRuntimeName, true); + uri.AppendPath("/getConnectionInfo", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName, string integrationRuntimeName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/IntegrationRuntimeCredentialsRestOperations.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/IntegrationRuntimeCredentialsRestOperations.cs index fff2919b3b27..63f412e1d57e 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/IntegrationRuntimeCredentialsRestOperations.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/IntegrationRuntimeCredentialsRestOperations.cs @@ -35,6 +35,23 @@ public IntegrationRuntimeCredentialsRestOperations(HttpPipeline pipeline, string _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateSyncRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string integrationRuntimeName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/integrationRuntimes/", false); + uri.AppendPath(integrationRuntimeName, true); + uri.AppendPath("/syncCredentials", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateSyncRequest(string subscriptionId, string resourceGroupName, string workspaceName, string integrationRuntimeName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/IntegrationRuntimeMonitoringDataRestOperations.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/IntegrationRuntimeMonitoringDataRestOperations.cs index 087d23f4c910..9ab3246d2e4a 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/IntegrationRuntimeMonitoringDataRestOperations.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/IntegrationRuntimeMonitoringDataRestOperations.cs @@ -37,6 +37,23 @@ public IntegrationRuntimeMonitoringDataRestOperations(HttpPipeline pipeline, str _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string integrationRuntimeName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/integrationRuntimes/", false); + uri.AppendPath(integrationRuntimeName, true); + uri.AppendPath("/monitoringData", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string workspaceName, string integrationRuntimeName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/IntegrationRuntimeNodeIpAddressRestOperations.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/IntegrationRuntimeNodeIpAddressRestOperations.cs index 809159cf80a8..02a58ba2500a 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/IntegrationRuntimeNodeIpAddressRestOperations.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/IntegrationRuntimeNodeIpAddressRestOperations.cs @@ -37,6 +37,25 @@ public IntegrationRuntimeNodeIpAddressRestOperations(HttpPipeline pipeline, stri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string integrationRuntimeName, string nodeName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/integrationRuntimes/", false); + uri.AppendPath(integrationRuntimeName, true); + uri.AppendPath("/nodes/", false); + uri.AppendPath(nodeName, true); + uri.AppendPath("/ipAddress", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName, string integrationRuntimeName, string nodeName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/IntegrationRuntimeNodesRestOperations.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/IntegrationRuntimeNodesRestOperations.cs index 42a4b8583d0e..6cd9d42c8ee4 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/IntegrationRuntimeNodesRestOperations.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/IntegrationRuntimeNodesRestOperations.cs @@ -37,6 +37,24 @@ public IntegrationRuntimeNodesRestOperations(HttpPipeline pipeline, string appli _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string integrationRuntimeName, string nodeName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/integrationRuntimes/", false); + uri.AppendPath(integrationRuntimeName, true); + uri.AppendPath("/nodes/", false); + uri.AppendPath(nodeName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName, string integrationRuntimeName, string nodeName) { var message = _pipeline.CreateMessage(); @@ -127,6 +145,24 @@ public Response Get(string subscription } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string integrationRuntimeName, string nodeName, UpdateIntegrationRuntimeNodeContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/integrationRuntimes/", false); + uri.AppendPath(integrationRuntimeName, true); + uri.AppendPath("/nodes/", false); + uri.AppendPath(nodeName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string integrationRuntimeName, string nodeName, UpdateIntegrationRuntimeNodeContent content) { var message = _pipeline.CreateMessage(); @@ -225,6 +261,24 @@ public Response Update(string subscript } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string integrationRuntimeName, string nodeName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/integrationRuntimes/", false); + uri.AppendPath(integrationRuntimeName, true); + uri.AppendPath("/nodes/", false); + uri.AppendPath(nodeName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string workspaceName, string integrationRuntimeName, string nodeName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/IntegrationRuntimeObjectMetadataRestOperations.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/IntegrationRuntimeObjectMetadataRestOperations.cs index da96a133b702..4da7375aa286 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/IntegrationRuntimeObjectMetadataRestOperations.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/IntegrationRuntimeObjectMetadataRestOperations.cs @@ -37,6 +37,23 @@ public IntegrationRuntimeObjectMetadataRestOperations(HttpPipeline pipeline, str _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string integrationRuntimeName, SynapseGetSsisObjectMetadataContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/integrationRuntimes/", false); + uri.AppendPath(integrationRuntimeName, true); + uri.AppendPath("/getObjectMetadata", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string workspaceName, string integrationRuntimeName, SynapseGetSsisObjectMetadataContent content) { var message = _pipeline.CreateMessage(); @@ -131,6 +148,23 @@ public Response List(string subscriptionId, } } + internal RequestUriBuilder CreateRefreshRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string integrationRuntimeName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/integrationRuntimes/", false); + uri.AppendPath(integrationRuntimeName, true); + uri.AppendPath("/refreshObjectMetadata", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRefreshRequest(string subscriptionId, string resourceGroupName, string workspaceName, string integrationRuntimeName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/IntegrationRuntimeStatusRestOperations.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/IntegrationRuntimeStatusRestOperations.cs index 71afdbda5335..03c292999d1b 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/IntegrationRuntimeStatusRestOperations.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/IntegrationRuntimeStatusRestOperations.cs @@ -37,6 +37,23 @@ public IntegrationRuntimeStatusRestOperations(HttpPipeline pipeline, string appl _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string integrationRuntimeName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/integrationRuntimes/", false); + uri.AppendPath(integrationRuntimeName, true); + uri.AppendPath("/getStatus", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName, string integrationRuntimeName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/IntegrationRuntimesRestOperations.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/IntegrationRuntimesRestOperations.cs index a8ec059f70bc..e6223d633635 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/IntegrationRuntimesRestOperations.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/IntegrationRuntimesRestOperations.cs @@ -37,6 +37,22 @@ public IntegrationRuntimesRestOperations(HttpPipeline pipeline, string applicati _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string integrationRuntimeName, SynapseIntegrationRuntimePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/integrationRuntimes/", false); + uri.AppendPath(integrationRuntimeName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string integrationRuntimeName, SynapseIntegrationRuntimePatch patch) { var message = _pipeline.CreateMessage(); @@ -129,6 +145,22 @@ public Response Update(string subscriptionId, str } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string integrationRuntimeName, string ifNoneMatch) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/integrationRuntimes/", false); + uri.AppendPath(integrationRuntimeName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName, string integrationRuntimeName, string ifNoneMatch) { var message = _pipeline.CreateMessage(); @@ -225,6 +257,22 @@ public Response Get(string subscriptionId, string } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string integrationRuntimeName, SynapseIntegrationRuntimeData data, string ifMatch) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/integrationRuntimes/", false); + uri.AppendPath(integrationRuntimeName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string integrationRuntimeName, SynapseIntegrationRuntimeData data, string ifMatch) { var message = _pipeline.CreateMessage(); @@ -315,6 +363,22 @@ public Response Create(string subscriptionId, string resourceGroupName, string w } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string integrationRuntimeName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/integrationRuntimes/", false); + uri.AppendPath(integrationRuntimeName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string workspaceName, string integrationRuntimeName) { var message = _pipeline.CreateMessage(); @@ -393,6 +457,23 @@ public Response Delete(string subscriptionId, string resourceGroupName, string w } } + internal RequestUriBuilder CreateUpgradeRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string integrationRuntimeName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/integrationRuntimes/", false); + uri.AppendPath(integrationRuntimeName, true); + uri.AppendPath("/upgrade", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpgradeRequest(string subscriptionId, string resourceGroupName, string workspaceName, string integrationRuntimeName) { var message = _pipeline.CreateMessage(); @@ -468,6 +549,21 @@ public Response Upgrade(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreateListByWorkspaceRequestUri(string subscriptionId, string resourceGroupName, string workspaceName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/integrationRuntimes", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByWorkspaceRequest(string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); @@ -547,6 +643,23 @@ public Response ListByWorkspace(string subs } } + internal RequestUriBuilder CreateStartRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string integrationRuntimeName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/integrationRuntimes/", false); + uri.AppendPath(integrationRuntimeName, true); + uri.AppendPath("/start", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStartRequest(string subscriptionId, string resourceGroupName, string workspaceName, string integrationRuntimeName) { var message = _pipeline.CreateMessage(); @@ -624,6 +737,23 @@ public Response Start(string subscriptionId, string resourceGroupName, string wo } } + internal RequestUriBuilder CreateStopRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string integrationRuntimeName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/integrationRuntimes/", false); + uri.AppendPath(integrationRuntimeName, true); + uri.AppendPath("/stop", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStopRequest(string subscriptionId, string resourceGroupName, string workspaceName, string integrationRuntimeName) { var message = _pipeline.CreateMessage(); @@ -701,6 +831,23 @@ public Response Stop(string subscriptionId, string resourceGroupName, string wor } } + internal RequestUriBuilder CreateListOutboundNetworkDependenciesEndpointsRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string integrationRuntimeName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/integrationRuntimes/", false); + uri.AppendPath(integrationRuntimeName, true); + uri.AppendPath("/outboundNetworkDependenciesEndpoints", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListOutboundNetworkDependenciesEndpointsRequest(string subscriptionId, string resourceGroupName, string workspaceName, string integrationRuntimeName) { var message = _pipeline.CreateMessage(); @@ -786,6 +933,23 @@ public Response ListByWorkspace(string subs } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string ruleName, SynapseIPFirewallRuleInfoData info) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/firewallRules/", false); + uri.AppendPath(ruleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string ruleName, SynapseIPFirewallRuleInfoData info) { var message = _pipeline.CreateMessage(); @@ -202,6 +233,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string ruleName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/firewallRules/", false); + uri.AppendPath(ruleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string workspaceName, string ruleName) { var message = _pipeline.CreateMessage(); @@ -280,6 +327,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string w } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string ruleName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/firewallRules/", false); + uri.AppendPath(ruleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName, string ruleName) { var message = _pipeline.CreateMessage(); @@ -368,6 +431,21 @@ public Response Get(string subscriptionId, string } } + internal RequestUriBuilder CreateReplaceAllRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, ReplaceAllIPFirewallRulesContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/replaceAllIpFirewallRules", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateReplaceAllRequest(string subscriptionId, string resourceGroupName, string workspaceName, ReplaceAllIPFirewallRulesContent content) { var message = _pipeline.CreateMessage(); @@ -447,6 +525,14 @@ public Response ReplaceAll(string subscriptionId, string resourceGroupName, stri } } + internal RequestUriBuilder CreateListByWorkspaceNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByWorkspaceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/KeysRestOperations.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/KeysRestOperations.cs index 3ccfdedb6715..552d4b072f76 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/KeysRestOperations.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/KeysRestOperations.cs @@ -37,6 +37,21 @@ public KeysRestOperations(HttpPipeline pipeline, string applicationId, Uri endpo _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByWorkspaceRequestUri(string subscriptionId, string resourceGroupName, string workspaceName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/keys", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByWorkspaceRequest(string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByWorkspace(string subscriptionId, string } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string keyName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/keys/", false); + uri.AppendPath(keyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName, string keyName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscriptionId, string resourceGroupN } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string keyName, SynapseKeyData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/keys/", false); + uri.AppendPath(keyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string keyName, SynapseKeyData data) { var message = _pipeline.CreateMessage(); @@ -296,6 +343,22 @@ public Response CreateOrUpdate(string subscriptionId, string res } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string keyName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/keys/", false); + uri.AppendPath(keyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string workspaceName, string keyName) { var message = _pipeline.CreateMessage(); @@ -384,6 +447,14 @@ public Response Delete(string subscriptionId, string resourceGro } } + internal RequestUriBuilder CreateListByWorkspaceNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByWorkspaceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/KustoPoolAttachedDatabaseConfigurationsRestOperations.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/KustoPoolAttachedDatabaseConfigurationsRestOperations.cs index 5e3c45a325bb..60860dc79c31 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/KustoPoolAttachedDatabaseConfigurationsRestOperations.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/KustoPoolAttachedDatabaseConfigurationsRestOperations.cs @@ -37,6 +37,23 @@ public KustoPoolAttachedDatabaseConfigurationsRestOperations(HttpPipeline pipeli _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByKustoPoolRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string kustoPoolName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/kustoPools/", false); + uri.AppendPath(kustoPoolName, true); + uri.AppendPath("/attachedDatabaseConfigurations", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByKustoPoolRequest(string subscriptionId, string resourceGroupName, string workspaceName, string kustoPoolName) { var message = _pipeline.CreateMessage(); @@ -122,6 +139,24 @@ public Response ListByKustoPool( } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string kustoPoolName, string attachedDatabaseConfigurationName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/kustoPools/", false); + uri.AppendPath(kustoPoolName, true); + uri.AppendPath("/attachedDatabaseConfigurations/", false); + uri.AppendPath(attachedDatabaseConfigurationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName, string kustoPoolName, string attachedDatabaseConfigurationName) { var message = _pipeline.CreateMessage(); @@ -216,6 +251,24 @@ public Response Get(string subscriptio } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string kustoPoolName, string attachedDatabaseConfigurationName, SynapseAttachedDatabaseConfigurationData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/kustoPools/", false); + uri.AppendPath(kustoPoolName, true); + uri.AppendPath("/attachedDatabaseConfigurations/", false); + uri.AppendPath(attachedDatabaseConfigurationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string kustoPoolName, string attachedDatabaseConfigurationName, SynapseAttachedDatabaseConfigurationData data) { var message = _pipeline.CreateMessage(); @@ -308,6 +361,24 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string kustoPoolName, string attachedDatabaseConfigurationName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/kustoPools/", false); + uri.AppendPath(kustoPoolName, true); + uri.AppendPath("/attachedDatabaseConfigurations/", false); + uri.AppendPath(attachedDatabaseConfigurationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string workspaceName, string kustoPoolName, string attachedDatabaseConfigurationName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/KustoPoolChildResourceRestOperations.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/KustoPoolChildResourceRestOperations.cs index f5bbb6f8b035..99f99c7eeabf 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/KustoPoolChildResourceRestOperations.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/KustoPoolChildResourceRestOperations.cs @@ -37,6 +37,23 @@ public KustoPoolChildResourceRestOperations(HttpPipeline pipeline, string applic _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCheckNameAvailabilityRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string kustoPoolName, KustoPoolChildResourceNameAvailabilityContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/kustoPools/", false); + uri.AppendPath(kustoPoolName, true); + uri.AppendPath("/checkNameAvailability", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCheckNameAvailabilityRequest(string subscriptionId, string resourceGroupName, string workspaceName, string kustoPoolName, KustoPoolChildResourceNameAvailabilityContent content) { var message = _pipeline.CreateMessage(); diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/KustoPoolDataConnectionsRestOperations.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/KustoPoolDataConnectionsRestOperations.cs index 98d79bfadd20..f6afcb8f34b0 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/KustoPoolDataConnectionsRestOperations.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/KustoPoolDataConnectionsRestOperations.cs @@ -37,6 +37,25 @@ public KustoPoolDataConnectionsRestOperations(HttpPipeline pipeline, string appl _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCheckNameAvailabilityRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string kustoPoolName, string databaseName, KustoPoolDataConnectionNameAvailabilityContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/kustoPools/", false); + uri.AppendPath(kustoPoolName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/checkNameAvailability", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCheckNameAvailabilityRequest(string subscriptionId, string resourceGroupName, string workspaceName, string kustoPoolName, string databaseName, KustoPoolDataConnectionNameAvailabilityContent content) { var message = _pipeline.CreateMessage(); @@ -136,6 +155,25 @@ public Response CheckNameAvailability(string su } } + internal RequestUriBuilder CreateDataConnectionValidationRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string kustoPoolName, string databaseName, SynapseDataConnectionValidation synapseDataConnectionValidation) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/kustoPools/", false); + uri.AppendPath(kustoPoolName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/dataConnectionValidation", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDataConnectionValidationRequest(string subscriptionId, string resourceGroupName, string workspaceName, string kustoPoolName, string databaseName, SynapseDataConnectionValidation synapseDataConnectionValidation) { var message = _pipeline.CreateMessage(); @@ -227,6 +265,25 @@ public Response DataConnectionValidation(string subscriptionId, string resourceG } } + internal RequestUriBuilder CreateListByDatabaseRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string kustoPoolName, string databaseName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/kustoPools/", false); + uri.AppendPath(kustoPoolName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/dataConnections", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByDatabaseRequest(string subscriptionId, string resourceGroupName, string workspaceName, string kustoPoolName, string databaseName) { var message = _pipeline.CreateMessage(); @@ -318,6 +375,26 @@ public Response ListByDatabase(string subscript } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string kustoPoolName, string databaseName, string dataConnectionName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/kustoPools/", false); + uri.AppendPath(kustoPoolName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/dataConnections/", false); + uri.AppendPath(dataConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName, string kustoPoolName, string databaseName, string dataConnectionName) { var message = _pipeline.CreateMessage(); @@ -418,6 +495,26 @@ public Response Get(string subscriptionId, string res } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string kustoPoolName, string databaseName, string dataConnectionName, SynapseDataConnectionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/kustoPools/", false); + uri.AppendPath(kustoPoolName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/dataConnections/", false); + uri.AppendPath(dataConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string kustoPoolName, string databaseName, string dataConnectionName, SynapseDataConnectionData data) { var message = _pipeline.CreateMessage(); @@ -514,6 +611,26 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string kustoPoolName, string databaseName, string dataConnectionName, SynapseDataConnectionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/kustoPools/", false); + uri.AppendPath(kustoPoolName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/dataConnections/", false); + uri.AppendPath(dataConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string kustoPoolName, string databaseName, string dataConnectionName, SynapseDataConnectionData data) { var message = _pipeline.CreateMessage(); @@ -610,6 +727,26 @@ public Response Update(string subscriptionId, string resourceGroupName, string w } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string kustoPoolName, string databaseName, string dataConnectionName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/kustoPools/", false); + uri.AppendPath(kustoPoolName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/dataConnections/", false); + uri.AppendPath(dataConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string workspaceName, string kustoPoolName, string databaseName, string dataConnectionName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/KustoPoolDatabasePrincipalAssignmentsRestOperations.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/KustoPoolDatabasePrincipalAssignmentsRestOperations.cs index 2be41d593e2b..159e8f0f3824 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/KustoPoolDatabasePrincipalAssignmentsRestOperations.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/KustoPoolDatabasePrincipalAssignmentsRestOperations.cs @@ -37,6 +37,25 @@ public KustoPoolDatabasePrincipalAssignmentsRestOperations(HttpPipeline pipeline _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCheckNameAvailabilityRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string kustoPoolName, string databaseName, KustoPoolDatabasePrincipalAssignmentNameAvailabilityContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/kustoPools/", false); + uri.AppendPath(kustoPoolName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/checkPrincipalAssignmentNameAvailability", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCheckNameAvailabilityRequest(string subscriptionId, string resourceGroupName, string workspaceName, string kustoPoolName, string databaseName, KustoPoolDatabasePrincipalAssignmentNameAvailabilityContent content) { var message = _pipeline.CreateMessage(); @@ -136,6 +155,25 @@ public Response CheckNameAvailability(string su } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string kustoPoolName, string databaseName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/kustoPools/", false); + uri.AppendPath(kustoPoolName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/principalAssignments", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string workspaceName, string kustoPoolName, string databaseName) { var message = _pipeline.CreateMessage(); @@ -227,6 +265,26 @@ public Response List(string subscr } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string kustoPoolName, string databaseName, string principalAssignmentName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/kustoPools/", false); + uri.AppendPath(kustoPoolName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/principalAssignments/", false); + uri.AppendPath(principalAssignmentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName, string kustoPoolName, string databaseName, string principalAssignmentName) { var message = _pipeline.CreateMessage(); @@ -327,6 +385,26 @@ public Response Get(string subscriptionI } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string kustoPoolName, string databaseName, string principalAssignmentName, SynapseDatabasePrincipalAssignmentData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/kustoPools/", false); + uri.AppendPath(kustoPoolName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/principalAssignments/", false); + uri.AppendPath(principalAssignmentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string kustoPoolName, string databaseName, string principalAssignmentName, SynapseDatabasePrincipalAssignmentData data) { var message = _pipeline.CreateMessage(); @@ -423,6 +501,26 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string kustoPoolName, string databaseName, string principalAssignmentName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/kustoPools/", false); + uri.AppendPath(kustoPoolName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/principalAssignments/", false); + uri.AppendPath(principalAssignmentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string workspaceName, string kustoPoolName, string databaseName, string principalAssignmentName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/KustoPoolDatabasesRestOperations.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/KustoPoolDatabasesRestOperations.cs index ac5e5000f067..0a6092e90761 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/KustoPoolDatabasesRestOperations.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/KustoPoolDatabasesRestOperations.cs @@ -37,6 +37,23 @@ public KustoPoolDatabasesRestOperations(HttpPipeline pipeline, string applicatio _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByKustoPoolRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string kustoPoolName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/kustoPools/", false); + uri.AppendPath(kustoPoolName, true); + uri.AppendPath("/databases", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByKustoPoolRequest(string subscriptionId, string resourceGroupName, string workspaceName, string kustoPoolName) { var message = _pipeline.CreateMessage(); @@ -122,6 +139,24 @@ public Response ListByKustoPool(string subscriptionId } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string kustoPoolName, string databaseName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/kustoPools/", false); + uri.AppendPath(kustoPoolName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName, string kustoPoolName, string databaseName) { var message = _pipeline.CreateMessage(); @@ -216,6 +251,24 @@ public Response Get(string subscriptionId, string resourceG } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string kustoPoolName, string databaseName, SynapseDatabaseData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/kustoPools/", false); + uri.AppendPath(kustoPoolName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string kustoPoolName, string databaseName, SynapseDatabaseData data) { var message = _pipeline.CreateMessage(); @@ -306,6 +359,24 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string kustoPoolName, string databaseName, SynapseDatabaseData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/kustoPools/", false); + uri.AppendPath(kustoPoolName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string kustoPoolName, string databaseName, SynapseDatabaseData data) { var message = _pipeline.CreateMessage(); @@ -396,6 +467,24 @@ public Response Update(string subscriptionId, string resourceGroupName, string w } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string kustoPoolName, string databaseName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/kustoPools/", false); + uri.AppendPath(kustoPoolName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string workspaceName, string kustoPoolName, string databaseName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/KustoPoolPrincipalAssignmentsRestOperations.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/KustoPoolPrincipalAssignmentsRestOperations.cs index 76bf626e8896..08e43361677d 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/KustoPoolPrincipalAssignmentsRestOperations.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/KustoPoolPrincipalAssignmentsRestOperations.cs @@ -37,6 +37,23 @@ public KustoPoolPrincipalAssignmentsRestOperations(HttpPipeline pipeline, string _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCheckNameAvailabilityRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string kustoPoolName, KustoPoolPrincipalAssignmentNameAvailabilityContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/kustoPools/", false); + uri.AppendPath(kustoPoolName, true); + uri.AppendPath("/checkPrincipalAssignmentNameAvailability", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCheckNameAvailabilityRequest(string subscriptionId, string resourceGroupName, string workspaceName, string kustoPoolName, KustoPoolPrincipalAssignmentNameAvailabilityContent content) { var message = _pipeline.CreateMessage(); @@ -130,6 +147,23 @@ public Response CheckNameAvailability(string su } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string kustoPoolName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/kustoPools/", false); + uri.AppendPath(kustoPoolName, true); + uri.AppendPath("/principalAssignments", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string workspaceName, string kustoPoolName) { var message = _pipeline.CreateMessage(); @@ -215,6 +249,24 @@ public Response List(string subscri } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string kustoPoolName, string principalAssignmentName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/kustoPools/", false); + uri.AppendPath(kustoPoolName, true); + uri.AppendPath("/principalAssignments/", false); + uri.AppendPath(principalAssignmentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName, string kustoPoolName, string principalAssignmentName) { var message = _pipeline.CreateMessage(); @@ -309,6 +361,24 @@ public Response Get(string subscriptionId } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string kustoPoolName, string principalAssignmentName, SynapseClusterPrincipalAssignmentData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/kustoPools/", false); + uri.AppendPath(kustoPoolName, true); + uri.AppendPath("/principalAssignments/", false); + uri.AppendPath(principalAssignmentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string kustoPoolName, string principalAssignmentName, SynapseClusterPrincipalAssignmentData data) { var message = _pipeline.CreateMessage(); @@ -399,6 +469,24 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string kustoPoolName, string principalAssignmentName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/kustoPools/", false); + uri.AppendPath(kustoPoolName, true); + uri.AppendPath("/principalAssignments/", false); + uri.AppendPath(principalAssignmentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string workspaceName, string kustoPoolName, string principalAssignmentName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/KustoPoolPrivateLinkResourcesRestOperations.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/KustoPoolPrivateLinkResourcesRestOperations.cs index cbf3072c1f14..4212a336fa20 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/KustoPoolPrivateLinkResourcesRestOperations.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/KustoPoolPrivateLinkResourcesRestOperations.cs @@ -37,6 +37,23 @@ public KustoPoolPrivateLinkResourcesRestOperations(HttpPipeline pipeline, string _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string kustoPoolName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/kustoPools/", false); + uri.AppendPath(kustoPoolName, true); + uri.AppendPath("/privateLinkResources", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string workspaceName, string kustoPoolName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/KustoPoolsRestOperations.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/KustoPoolsRestOperations.cs index 9953e5ac3ebb..b15f2f4fcae1 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/KustoPoolsRestOperations.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/KustoPoolsRestOperations.cs @@ -37,6 +37,17 @@ public KustoPoolsRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListSkusRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Synapse/skus", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListSkusRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,19 @@ public Response ListSkus(string subscriptionI } } + internal RequestUriBuilder CreateCheckNameAvailabilityRequestUri(string subscriptionId, AzureLocation location, KustoPoolNameAvailabilityContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Synapse/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/kustoPoolCheckNameAvailability", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCheckNameAvailabilityRequest(string subscriptionId, AzureLocation location, KustoPoolNameAvailabilityContent content) { var message = _pipeline.CreateMessage(); @@ -183,6 +207,21 @@ public Response CheckNameAvailability(string su } } + internal RequestUriBuilder CreateListByWorkspaceRequestUri(string subscriptionId, string resourceGroupName, string workspaceName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/kustoPools", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByWorkspaceRequest(string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); @@ -262,6 +301,22 @@ public Response ListByWorkspace(string subscriptionId, stri } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string kustoPoolName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/kustoPools/", false); + uri.AppendPath(kustoPoolName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName, string kustoPoolName) { var message = _pipeline.CreateMessage(); @@ -350,6 +405,22 @@ public Response Get(string subscriptionId, string resource } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string kustoPoolName, SynapseKustoPoolData data, string ifMatch, string ifNoneMatch) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/kustoPools/", false); + uri.AppendPath(kustoPoolName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string kustoPoolName, SynapseKustoPoolData data, string ifMatch, string ifNoneMatch) { var message = _pipeline.CreateMessage(); @@ -446,6 +517,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string kustoPoolName, SynapseKustoPoolPatch patch, string ifMatch) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/kustoPools/", false); + uri.AppendPath(kustoPoolName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string kustoPoolName, SynapseKustoPoolPatch patch, string ifMatch) { var message = _pipeline.CreateMessage(); @@ -536,6 +623,22 @@ public Response Update(string subscriptionId, string resourceGroupName, string w } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string kustoPoolName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/kustoPools/", false); + uri.AppendPath(kustoPoolName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string workspaceName, string kustoPoolName) { var message = _pipeline.CreateMessage(); @@ -614,6 +717,23 @@ public Response Delete(string subscriptionId, string resourceGroupName, string w } } + internal RequestUriBuilder CreateStopRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string kustoPoolName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/kustoPools/", false); + uri.AppendPath(kustoPoolName, true); + uri.AppendPath("/stop", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStopRequest(string subscriptionId, string resourceGroupName, string workspaceName, string kustoPoolName) { var message = _pipeline.CreateMessage(); @@ -691,6 +811,23 @@ public Response Stop(string subscriptionId, string resourceGroupName, string wor } } + internal RequestUriBuilder CreateStartRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string kustoPoolName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/kustoPools/", false); + uri.AppendPath(kustoPoolName, true); + uri.AppendPath("/start", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStartRequest(string subscriptionId, string resourceGroupName, string workspaceName, string kustoPoolName) { var message = _pipeline.CreateMessage(); @@ -768,6 +905,23 @@ public Response Start(string subscriptionId, string resourceGroupName, string wo } } + internal RequestUriBuilder CreateListSkusByResourceRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string kustoPoolName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/kustoPools/", false); + uri.AppendPath(kustoPoolName, true); + uri.AppendPath("/skus", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListSkusByResourceRequest(string subscriptionId, string resourceGroupName, string workspaceName, string kustoPoolName) { var message = _pipeline.CreateMessage(); @@ -853,6 +1007,23 @@ public Response ListSkusByResource(strin } } + internal RequestUriBuilder CreateListLanguageExtensionsRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string kustoPoolName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/kustoPools/", false); + uri.AppendPath(kustoPoolName, true); + uri.AppendPath("/listLanguageExtensions", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListLanguageExtensionsRequest(string subscriptionId, string resourceGroupName, string workspaceName, string kustoPoolName) { var message = _pipeline.CreateMessage(); @@ -938,6 +1109,23 @@ public Response ListLanguageExtensions(string sub } } + internal RequestUriBuilder CreateAddLanguageExtensionsRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string kustoPoolName, SynapseLanguageExtensionsList languageExtensionsToAdd) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/kustoPools/", false); + uri.AppendPath(kustoPoolName, true); + uri.AppendPath("/addLanguageExtensions", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateAddLanguageExtensionsRequest(string subscriptionId, string resourceGroupName, string workspaceName, string kustoPoolName, SynapseLanguageExtensionsList languageExtensionsToAdd) { var message = _pipeline.CreateMessage(); @@ -1023,6 +1211,23 @@ public Response AddLanguageExtensions(string subscriptionId, string resourceGrou } } + internal RequestUriBuilder CreateRemoveLanguageExtensionsRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string kustoPoolName, SynapseLanguageExtensionsList languageExtensionsToRemove) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/kustoPools/", false); + uri.AppendPath(kustoPoolName, true); + uri.AppendPath("/removeLanguageExtensions", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRemoveLanguageExtensionsRequest(string subscriptionId, string resourceGroupName, string workspaceName, string kustoPoolName, SynapseLanguageExtensionsList languageExtensionsToRemove) { var message = _pipeline.CreateMessage(); @@ -1108,6 +1313,23 @@ public Response RemoveLanguageExtensions(string subscriptionId, string resourceG } } + internal RequestUriBuilder CreateListFollowerDatabasesRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string kustoPoolName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/kustoPools/", false); + uri.AppendPath(kustoPoolName, true); + uri.AppendPath("/listFollowerDatabases", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListFollowerDatabasesRequest(string subscriptionId, string resourceGroupName, string workspaceName, string kustoPoolName) { var message = _pipeline.CreateMessage(); @@ -1193,6 +1415,23 @@ public Response ListFollowerDatabases(string } } + internal RequestUriBuilder CreateDetachFollowerDatabasesRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string kustoPoolName, SynapseFollowerDatabaseDefinition followerDatabaseToRemove) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/kustoPools/", false); + uri.AppendPath(kustoPoolName, true); + uri.AppendPath("/detachFollowerDatabases", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDetachFollowerDatabasesRequest(string subscriptionId, string resourceGroupName, string workspaceName, string kustoPoolName, SynapseFollowerDatabaseDefinition followerDatabaseToRemove) { var message = _pipeline.CreateMessage(); diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/LibrariesRestOperations.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/LibrariesRestOperations.cs index f88a6759345d..4f67e447b93e 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/LibrariesRestOperations.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/LibrariesRestOperations.cs @@ -37,6 +37,21 @@ public LibrariesRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByWorkspaceRequestUri(string subscriptionId, string resourceGroupName, string workspaceName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/libraries", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByWorkspaceRequest(string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,14 @@ public Response ListByWorkspace(string subscriptio } } + internal RequestUriBuilder CreateListByWorkspaceNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByWorkspaceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/LibraryRestOperations.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/LibraryRestOperations.cs index 337b2a7285df..95a7fe3e9354 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/LibraryRestOperations.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/LibraryRestOperations.cs @@ -36,6 +36,22 @@ public LibraryRestOperations(HttpPipeline pipeline, string applicationId, Uri en _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string libraryName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/libraries/", false); + uri.AppendPath(libraryName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName, string libraryName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/PrivateEndpointConnectionsPrivateLinkHubRestOperations.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/PrivateEndpointConnectionsPrivateLinkHubRestOperations.cs index c2644feb12f0..bb7a656c6698 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/PrivateEndpointConnectionsPrivateLinkHubRestOperations.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/PrivateEndpointConnectionsPrivateLinkHubRestOperations.cs @@ -37,6 +37,21 @@ public PrivateEndpointConnectionsPrivateLinkHubRestOperations(HttpPipeline pipel _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string privateLinkHubName) + { + 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.Synapse/privateLinkHubs/", false); + uri.AppendPath(privateLinkHubName, true); + uri.AppendPath("/privateEndpointConnections", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string privateLinkHubName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response Lis } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string privateLinkHubName, string privateEndpointConnectionName) + { + 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.Synapse/privateLinkHubs/", false); + uri.AppendPath(privateLinkHubName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string privateLinkHubName, string privateEndpointConnectionName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,14 @@ public Response Get(strin } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string privateLinkHubName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string privateLinkHubName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs index 6bafcafa1787..ad3f8a7d7366 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs @@ -37,6 +37,22 @@ public PrivateEndpointConnectionsRestOperations(HttpPipeline pipeline, string ap _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string privateEndpointConnectionName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName, string privateEndpointConnectionName) { var message = _pipeline.CreateMessage(); @@ -125,6 +141,22 @@ public Response Get(string subscriptionId, } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string privateEndpointConnectionName, SynapsePrivateEndpointConnectionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string privateEndpointConnectionName, SynapsePrivateEndpointConnectionData data) { var message = _pipeline.CreateMessage(); @@ -209,6 +241,22 @@ public Response Create(string subscriptionId, string resourceGroupName, string w } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string privateEndpointConnectionName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string workspaceName, string privateEndpointConnectionName) { var message = _pipeline.CreateMessage(); @@ -287,6 +335,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string w } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string workspaceName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/privateEndpointConnections", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); @@ -366,6 +429,14 @@ public Response List(string subscrip } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/PrivateLinkHubPrivateLinkResourcesRestOperations.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/PrivateLinkHubPrivateLinkResourcesRestOperations.cs index 1ade3cfd52b8..9b76ff804016 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/PrivateLinkHubPrivateLinkResourcesRestOperations.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/PrivateLinkHubPrivateLinkResourcesRestOperations.cs @@ -37,6 +37,21 @@ public PrivateLinkHubPrivateLinkResourcesRestOperations(HttpPipeline pipeline, s _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string privateLinkHubName) + { + 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.Synapse/privateLinkHubs/", false); + uri.AppendPath(privateLinkHubName, true); + uri.AppendPath("/privateLinkResources", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string privateLinkHubName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response List(string subscriptionId } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string privateLinkHubName, string privateLinkResourceName) + { + 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.Synapse/privateLinkHubs/", false); + uri.AppendPath(privateLinkHubName, true); + uri.AppendPath("/privateLinkResources/", false); + uri.AppendPath(privateLinkResourceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string privateLinkHubName, string privateLinkResourceName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,14 @@ public Response Get(string subscriptionId, strin } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string privateLinkHubName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string privateLinkHubName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/PrivateLinkHubsRestOperations.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/PrivateLinkHubsRestOperations.cs index 4348421ea094..ca189039f133 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/PrivateLinkHubsRestOperations.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/PrivateLinkHubsRestOperations.cs @@ -37,6 +37,19 @@ public PrivateLinkHubsRestOperations(HttpPipeline pipeline, string applicationId _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.Synapse/privateLinkHubs", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -110,6 +123,20 @@ public Response ListByResourceGroup(string subs } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string privateLinkHubName) + { + 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.Synapse/privateLinkHubs/", false); + uri.AppendPath(privateLinkHubName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string privateLinkHubName) { var message = _pipeline.CreateMessage(); @@ -192,6 +219,20 @@ public Response Get(string subscriptionId, string res } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string privateLinkHubName, SynapsePrivateLinkHubPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Synapse/privateLinkHubs/", false); + uri.AppendPath(privateLinkHubName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string privateLinkHubName, SynapsePrivateLinkHubPatch patch) { var message = _pipeline.CreateMessage(); @@ -280,6 +321,20 @@ public Response Update(string subscriptionId, string } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string privateLinkHubName, SynapsePrivateLinkHubData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Synapse/privateLinkHubs/", false); + uri.AppendPath(privateLinkHubName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string privateLinkHubName, SynapsePrivateLinkHubData data) { var message = _pipeline.CreateMessage(); @@ -368,6 +423,20 @@ public Response CreateOrUpdate(string subscriptionId, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string privateLinkHubName) + { + 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.Synapse/privateLinkHubs/", false); + uri.AppendPath(privateLinkHubName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string privateLinkHubName) { var message = _pipeline.CreateMessage(); @@ -440,6 +509,17 @@ public Response Delete(string subscriptionId, string resourceGroupName, string p } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Synapse/privateLinkHubs", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -507,6 +587,14 @@ public Response List(string subscriptionId, Can } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -579,6 +667,14 @@ public Response ListByResourceGroupNextPage(str } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs index 1af604d68cd0..fde51e250de8 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs @@ -37,6 +37,21 @@ public PrivateLinkResourcesRestOperations(HttpPipeline pipeline, string applicat _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string workspaceName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/privateLinkResources", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response List(string subscriptionId } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string privateLinkResourceName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/privateLinkResources/", false); + uri.AppendPath(privateLinkResourceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName, string privateLinkResourceName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,14 @@ public Response Get(string subscriptionId, strin } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/RestorableDroppedSqlPoolsRestOperations.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/RestorableDroppedSqlPoolsRestOperations.cs index 3d0c92af97ab..a8a3db589faa 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/RestorableDroppedSqlPoolsRestOperations.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/RestorableDroppedSqlPoolsRestOperations.cs @@ -37,6 +37,22 @@ public RestorableDroppedSqlPoolsRestOperations(HttpPipeline pipeline, string app _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string restorableDroppedSqlPoolId) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/restorableDroppedSqlPools/", false); + uri.AppendPath(restorableDroppedSqlPoolId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName, string restorableDroppedSqlPoolId) { var message = _pipeline.CreateMessage(); @@ -125,6 +141,21 @@ public Response Get(string subscriptionId, } } + internal RequestUriBuilder CreateListByWorkspaceRequestUri(string subscriptionId, string resourceGroupName, string workspaceName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/restorableDroppedSqlPools", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByWorkspaceRequest(string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/SparkConfigurationRestOperations.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/SparkConfigurationRestOperations.cs index 27c9d50bb4dd..a2f16d5b88bc 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/SparkConfigurationRestOperations.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/SparkConfigurationRestOperations.cs @@ -36,6 +36,22 @@ public SparkConfigurationRestOperations(HttpPipeline pipeline, string applicatio _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string sparkConfigurationName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/sparkconfigurations/", false); + uri.AppendPath(sparkConfigurationName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName, string sparkConfigurationName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/SparkConfigurationsRestOperations.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/SparkConfigurationsRestOperations.cs index ffad426a9bb7..67abafad9607 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/SparkConfigurationsRestOperations.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/SparkConfigurationsRestOperations.cs @@ -37,6 +37,21 @@ public SparkConfigurationsRestOperations(HttpPipeline pipeline, string applicati _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByWorkspaceRequestUri(string subscriptionId, string resourceGroupName, string workspaceName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/sparkconfigurations", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByWorkspaceRequest(string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,14 @@ public Response ListByWorkspace(string subs } } + internal RequestUriBuilder CreateListByWorkspaceNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByWorkspaceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/SqlPoolBlobAuditingPoliciesRestOperations.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/SqlPoolBlobAuditingPoliciesRestOperations.cs index 2ed0504e12e3..4d446ad2dc9d 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/SqlPoolBlobAuditingPoliciesRestOperations.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/SqlPoolBlobAuditingPoliciesRestOperations.cs @@ -37,6 +37,24 @@ public SqlPoolBlobAuditingPoliciesRestOperations(HttpPipeline pipeline, string a _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/sqlPools/", false); + uri.AppendPath(sqlPoolName, true); + uri.AppendPath("/auditingSettings/", false); + uri.AppendPath("default", true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName) { var message = _pipeline.CreateMessage(); @@ -127,6 +145,24 @@ public Response Get(string subscriptionId, } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, SynapseSqlPoolBlobAuditingPolicyData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/sqlPools/", false); + uri.AppendPath(sqlPoolName, true); + uri.AppendPath("/auditingSettings/", false); + uri.AppendPath("default", true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, SynapseSqlPoolBlobAuditingPolicyData data) { var message = _pipeline.CreateMessage(); @@ -223,6 +259,23 @@ public Response CreateOrUpdate(string subs } } + internal RequestUriBuilder CreateListBySqlPoolRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/sqlPools/", false); + uri.AppendPath(sqlPoolName, true); + uri.AppendPath("/auditingSettings", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySqlPoolRequest(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName) { var message = _pipeline.CreateMessage(); @@ -308,6 +361,14 @@ public Response ListBySqlPool(string } } + internal RequestUriBuilder CreateListBySqlPoolNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySqlPoolNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/SqlPoolColumnsRestOperations.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/SqlPoolColumnsRestOperations.cs index a40472860954..1f09e831b563 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/SqlPoolColumnsRestOperations.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/SqlPoolColumnsRestOperations.cs @@ -36,6 +36,28 @@ public SqlPoolColumnsRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, string schemaName, string tableName, string columnName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/sqlPools/", false); + uri.AppendPath(sqlPoolName, true); + uri.AppendPath("/schemas/", false); + uri.AppendPath(schemaName, true); + uri.AppendPath("/tables/", false); + uri.AppendPath(tableName, true); + uri.AppendPath("/columns/", false); + uri.AppendPath(columnName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, string schemaName, string tableName, string columnName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/SqlPoolConnectionPoliciesRestOperations.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/SqlPoolConnectionPoliciesRestOperations.cs index 86c5f2ea65a7..21e1a733fcd2 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/SqlPoolConnectionPoliciesRestOperations.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/SqlPoolConnectionPoliciesRestOperations.cs @@ -37,6 +37,24 @@ public SqlPoolConnectionPoliciesRestOperations(HttpPipeline pipeline, string app _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, SqlPoolConnectionPolicyName connectionPolicyName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/sqlPools/", false); + uri.AppendPath(sqlPoolName, true); + uri.AppendPath("/connectionPolicies/", false); + uri.AppendPath(connectionPolicyName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, SqlPoolConnectionPolicyName connectionPolicyName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/SqlPoolDataWarehouseUserActivitiesRestOperations.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/SqlPoolDataWarehouseUserActivitiesRestOperations.cs index a93809e5c579..5c0d855a05f3 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/SqlPoolDataWarehouseUserActivitiesRestOperations.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/SqlPoolDataWarehouseUserActivitiesRestOperations.cs @@ -37,6 +37,24 @@ public SqlPoolDataWarehouseUserActivitiesRestOperations(HttpPipeline pipeline, s _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, SynapseDataWarehouseUserActivityName dataWarehouseUserActivityName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/sqlPools/", false); + uri.AppendPath(sqlPoolName, true); + uri.AppendPath("/dataWarehouseUserActivities/", false); + uri.AppendPath(dataWarehouseUserActivityName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, SynapseDataWarehouseUserActivityName dataWarehouseUserActivityName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/SqlPoolGeoBackupPoliciesRestOperations.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/SqlPoolGeoBackupPoliciesRestOperations.cs index 986280fbd8eb..c1425b52baa5 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/SqlPoolGeoBackupPoliciesRestOperations.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/SqlPoolGeoBackupPoliciesRestOperations.cs @@ -37,6 +37,23 @@ public SqlPoolGeoBackupPoliciesRestOperations(HttpPipeline pipeline, string appl _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/sqlPools/", false); + uri.AppendPath(sqlPoolName, true); + uri.AppendPath("/geoBackupPolicies", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName) { var message = _pipeline.CreateMessage(); @@ -122,6 +139,24 @@ public Response List(string subscriptionId, st } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, SynapseGeoBackupPolicyName geoBackupPolicyName, SynapseGeoBackupPolicyData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/sqlPools/", false); + uri.AppendPath(sqlPoolName, true); + uri.AppendPath("/geoBackupPolicies/", false); + uri.AppendPath(geoBackupPolicyName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, SynapseGeoBackupPolicyName geoBackupPolicyName, SynapseGeoBackupPolicyData data) { var message = _pipeline.CreateMessage(); @@ -220,6 +255,24 @@ public Response CreateOrUpdate(string subscriptionId } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, SynapseGeoBackupPolicyName geoBackupPolicyName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/sqlPools/", false); + uri.AppendPath(sqlPoolName, true); + uri.AppendPath("/geoBackupPolicies/", false); + uri.AppendPath(geoBackupPolicyName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, SynapseGeoBackupPolicyName geoBackupPolicyName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/SqlPoolMaintenanceWindowOptionsRestOperations.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/SqlPoolMaintenanceWindowOptionsRestOperations.cs index aa22bc7a0c12..a633cb3a7e22 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/SqlPoolMaintenanceWindowOptionsRestOperations.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/SqlPoolMaintenanceWindowOptionsRestOperations.cs @@ -36,6 +36,24 @@ public SqlPoolMaintenanceWindowOptionsRestOperations(HttpPipeline pipeline, stri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, string maintenanceWindowOptionsName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/sqlPools/", false); + uri.AppendPath(sqlPoolName, true); + uri.AppendPath("/maintenanceWindowOptions/current", false); + uri.AppendQuery("api-version", _apiVersion, true); + uri.AppendQuery("maintenanceWindowOptionsName", maintenanceWindowOptionsName, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, string maintenanceWindowOptionsName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/SqlPoolMaintenanceWindowsRestOperations.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/SqlPoolMaintenanceWindowsRestOperations.cs index 0590ea9838eb..231f8484a26b 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/SqlPoolMaintenanceWindowsRestOperations.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/SqlPoolMaintenanceWindowsRestOperations.cs @@ -36,6 +36,24 @@ public SqlPoolMaintenanceWindowsRestOperations(HttpPipeline pipeline, string app _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, string maintenanceWindowName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/sqlPools/", false); + uri.AppendPath(sqlPoolName, true); + uri.AppendPath("/maintenancewindows/current", false); + uri.AppendQuery("api-version", _apiVersion, true); + uri.AppendQuery("maintenanceWindowName", maintenanceWindowName, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, string maintenanceWindowName) { var message = _pipeline.CreateMessage(); @@ -130,6 +148,24 @@ public Response Get(string subscriptionId, string } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, string maintenanceWindowName, SynapseMaintenanceWindowData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/sqlPools/", false); + uri.AppendPath(sqlPoolName, true); + uri.AppendPath("/maintenancewindows/current", false); + uri.AppendQuery("api-version", _apiVersion, true); + uri.AppendQuery("maintenanceWindowName", maintenanceWindowName, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, string maintenanceWindowName, SynapseMaintenanceWindowData data) { var message = _pipeline.CreateMessage(); diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/SqlPoolMetadataSyncConfigsRestOperations.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/SqlPoolMetadataSyncConfigsRestOperations.cs index 917cb78779b3..6fc3b69c5b7a 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/SqlPoolMetadataSyncConfigsRestOperations.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/SqlPoolMetadataSyncConfigsRestOperations.cs @@ -36,6 +36,23 @@ public SqlPoolMetadataSyncConfigsRestOperations(HttpPipeline pipeline, string ap _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/sqlPools/", false); + uri.AppendPath(sqlPoolName, true); + uri.AppendPath("/metadataSync/config", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName) { var message = _pipeline.CreateMessage(); @@ -125,6 +142,23 @@ public Response Get(string subscriptionId, } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, SynapseMetadataSyncConfigurationData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/sqlPools/", false); + uri.AppendPath(sqlPoolName, true); + uri.AppendPath("/metadataSync/config", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, SynapseMetadataSyncConfigurationData data) { var message = _pipeline.CreateMessage(); diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/SqlPoolRecommendedSensitivityLabelsRestOperations.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/SqlPoolRecommendedSensitivityLabelsRestOperations.cs index 4a818113e496..e6f5890ad590 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/SqlPoolRecommendedSensitivityLabelsRestOperations.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/SqlPoolRecommendedSensitivityLabelsRestOperations.cs @@ -36,6 +36,23 @@ public SqlPoolRecommendedSensitivityLabelsRestOperations(HttpPipeline pipeline, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, SynapseRecommendedSensitivityLabelUpdateOperationListResult synapseRecommendedSensitivityLabelUpdateOperationListResult) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/sqlPools/", false); + uri.AppendPath(sqlPoolName, true); + uri.AppendPath("/recommendedSensitivityLabels", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, SynapseRecommendedSensitivityLabelUpdateOperationListResult synapseRecommendedSensitivityLabelUpdateOperationListResult) { var message = _pipeline.CreateMessage(); diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/SqlPoolReplicationLinksRestOperations.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/SqlPoolReplicationLinksRestOperations.cs index 28546324ed58..9d28cbbed0b3 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/SqlPoolReplicationLinksRestOperations.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/SqlPoolReplicationLinksRestOperations.cs @@ -37,6 +37,23 @@ public SqlPoolReplicationLinksRestOperations(HttpPipeline pipeline, string appli _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/sqlPools/", false); + uri.AppendPath(sqlPoolName, true); + uri.AppendPath("/replicationLinks", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName) { var message = _pipeline.CreateMessage(); @@ -122,6 +139,24 @@ public Response List(string subscriptionId, st } } + internal RequestUriBuilder CreateGetByNameRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, string linkId) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/sqlPools/", false); + uri.AppendPath(sqlPoolName, true); + uri.AppendPath("/replicationLinks/", false); + uri.AppendPath(linkId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetByNameRequest(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, string linkId) { var message = _pipeline.CreateMessage(); @@ -216,6 +251,14 @@ public Response GetByName(string subscriptionId, str } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/SqlPoolRestorePointsRestOperations.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/SqlPoolRestorePointsRestOperations.cs index 5af15dfa1055..ddcc6808a03a 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/SqlPoolRestorePointsRestOperations.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/SqlPoolRestorePointsRestOperations.cs @@ -37,6 +37,23 @@ public SqlPoolRestorePointsRestOperations(HttpPipeline pipeline, string applicat _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/sqlPools/", false); + uri.AppendPath(sqlPoolName, true); + uri.AppendPath("/restorePoints", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName) { var message = _pipeline.CreateMessage(); @@ -122,6 +139,23 @@ public Response List(string subscriptionId, strin } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, SqlPoolCreateRestorePointContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/sqlPools/", false); + uri.AppendPath(sqlPoolName, true); + uri.AppendPath("/restorePoints", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, SqlPoolCreateRestorePointContent content) { var message = _pipeline.CreateMessage(); @@ -209,6 +243,24 @@ public Response Create(string subscriptionId, string resourceGroupName, string w } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, string restorePointName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/sqlPools/", false); + uri.AppendPath(sqlPoolName, true); + uri.AppendPath("/restorePoints/", false); + uri.AppendPath(restorePointName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, string restorePointName) { var message = _pipeline.CreateMessage(); @@ -303,6 +355,24 @@ public Response Get(string subscriptionId, string resou } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, string restorePointName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/sqlPools/", false); + uri.AppendPath(sqlPoolName, true); + uri.AppendPath("/restorePoints/", false); + uri.AppendPath(restorePointName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, string restorePointName) { var message = _pipeline.CreateMessage(); @@ -384,6 +454,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string w } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/SqlPoolSchemasRestOperations.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/SqlPoolSchemasRestOperations.cs index d94c1a514f3d..cffd39a3df82 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/SqlPoolSchemasRestOperations.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/SqlPoolSchemasRestOperations.cs @@ -37,6 +37,27 @@ public SqlPoolSchemasRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/sqlPools/", false); + uri.AppendPath(sqlPoolName, true); + uri.AppendPath("/schemas", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, string filter) { var message = _pipeline.CreateMessage(); @@ -128,6 +149,24 @@ public Response List(string subscriptionId, string reso } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, string schemaName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/sqlPools/", false); + uri.AppendPath(sqlPoolName, true); + uri.AppendPath("/schemas/", false); + uri.AppendPath(schemaName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, string schemaName) { var message = _pipeline.CreateMessage(); @@ -222,6 +261,14 @@ public Response Get(string subscriptionId, string reso } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, string filter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/SqlPoolSecurityAlertPoliciesRestOperations.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/SqlPoolSecurityAlertPoliciesRestOperations.cs index f1490e76dc89..e938f633c875 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/SqlPoolSecurityAlertPoliciesRestOperations.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/SqlPoolSecurityAlertPoliciesRestOperations.cs @@ -37,6 +37,23 @@ public SqlPoolSecurityAlertPoliciesRestOperations(HttpPipeline pipeline, string _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/sqlPools/", false); + uri.AppendPath(sqlPoolName, true); + uri.AppendPath("/securityAlertPolicies", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName) { var message = _pipeline.CreateMessage(); @@ -122,6 +139,24 @@ public Response List(string subscri } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, SqlPoolSecurityAlertPolicyName securityAlertPolicyName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/sqlPools/", false); + uri.AppendPath(sqlPoolName, true); + uri.AppendPath("/securityAlertPolicies/", false); + uri.AppendPath(securityAlertPolicyName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, SqlPoolSecurityAlertPolicyName securityAlertPolicyName) { var message = _pipeline.CreateMessage(); @@ -214,6 +249,24 @@ public Response Get(string subscriptionId } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, SqlPoolSecurityAlertPolicyName securityAlertPolicyName, SynapseSqlPoolSecurityAlertPolicyData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/sqlPools/", false); + uri.AppendPath(sqlPoolName, true); + uri.AppendPath("/securityAlertPolicies/", false); + uri.AppendPath(securityAlertPolicyName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, SqlPoolSecurityAlertPolicyName securityAlertPolicyName, SynapseSqlPoolSecurityAlertPolicyData data) { var message = _pipeline.CreateMessage(); @@ -312,6 +365,14 @@ public Response CreateOrUpdate(string sub } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/SqlPoolSensitivityLabelsRestOperations.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/SqlPoolSensitivityLabelsRestOperations.cs index cf6f21b306ff..97913a15007c 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/SqlPoolSensitivityLabelsRestOperations.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/SqlPoolSensitivityLabelsRestOperations.cs @@ -37,6 +37,27 @@ public SqlPoolSensitivityLabelsRestOperations(HttpPipeline pipeline, string appl _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListCurrentRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/sqlPools/", false); + uri.AppendPath(sqlPoolName, true); + uri.AppendPath("/currentSensitivityLabels", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + return uri; + } + internal HttpMessage CreateListCurrentRequest(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, string filter) { var message = _pipeline.CreateMessage(); @@ -128,6 +149,23 @@ public Response ListCurrent(string subscripti } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, SynapseSensitivityLabelUpdateListResult synapseSensitivityLabelUpdateListResult) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/sqlPools/", false); + uri.AppendPath(sqlPoolName, true); + uri.AppendPath("/currentSensitivityLabels", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, SynapseSensitivityLabelUpdateListResult synapseSensitivityLabelUpdateListResult) { var message = _pipeline.CreateMessage(); @@ -210,6 +248,35 @@ public Response Update(string subscriptionId, string resourceGroupName, string w } } + internal RequestUriBuilder CreateListRecommendedRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, bool? includeDisabledRecommendations, string skipToken, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/sqlPools/", false); + uri.AppendPath(sqlPoolName, true); + uri.AppendPath("/recommendedSensitivityLabels", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (includeDisabledRecommendations != null) + { + uri.AppendQuery("includeDisabledRecommendations", includeDisabledRecommendations.Value, true); + } + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + return uri; + } + internal HttpMessage CreateListRecommendedRequest(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, bool? includeDisabledRecommendations, string skipToken, string filter) { var message = _pipeline.CreateMessage(); @@ -313,6 +380,30 @@ public Response ListRecommended(string subscr } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, string schemaName, string tableName, string columnName, SynapseSensitivityLabelData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/sqlPools/", false); + uri.AppendPath(sqlPoolName, true); + uri.AppendPath("/schemas/", false); + uri.AppendPath(schemaName, true); + uri.AppendPath("/tables/", false); + uri.AppendPath(tableName, true); + uri.AppendPath("/columns/", false); + uri.AppendPath(columnName, true); + uri.AppendPath("/sensitivityLabels/", false); + uri.AppendPath("current", true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, string schemaName, string tableName, string columnName, SynapseSensitivityLabelData data) { var message = _pipeline.CreateMessage(); @@ -427,6 +518,30 @@ public Response CreateOrUpdate(string subscriptionI } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, string schemaName, string tableName, string columnName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/sqlPools/", false); + uri.AppendPath(sqlPoolName, true); + uri.AppendPath("/schemas/", false); + uri.AppendPath(schemaName, true); + uri.AppendPath("/tables/", false); + uri.AppendPath(tableName, true); + uri.AppendPath("/columns/", false); + uri.AppendPath(columnName, true); + uri.AppendPath("/sensitivityLabels/", false); + uri.AppendPath("current", true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, string schemaName, string tableName, string columnName) { var message = _pipeline.CreateMessage(); @@ -522,6 +637,30 @@ public Response Delete(string subscriptionId, string resourceGroupName, string w } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, string schemaName, string tableName, string columnName, SynapseSensitivityLabelSource sensitivityLabelSource) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/sqlPools/", false); + uri.AppendPath(sqlPoolName, true); + uri.AppendPath("/schemas/", false); + uri.AppendPath(schemaName, true); + uri.AppendPath("/tables/", false); + uri.AppendPath(tableName, true); + uri.AppendPath("/columns/", false); + uri.AppendPath(columnName, true); + uri.AppendPath("/sensitivityLabels/", false); + uri.AppendPath(sensitivityLabelSource.ToSerialString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, string schemaName, string tableName, string columnName, SynapseSensitivityLabelSource sensitivityLabelSource) { var message = _pipeline.CreateMessage(); @@ -632,6 +771,31 @@ public Response Get(string subscriptionId, string r } } + internal RequestUriBuilder CreateEnableRecommendationRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, string schemaName, string tableName, string columnName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/sqlPools/", false); + uri.AppendPath(sqlPoolName, true); + uri.AppendPath("/schemas/", false); + uri.AppendPath(schemaName, true); + uri.AppendPath("/tables/", false); + uri.AppendPath(tableName, true); + uri.AppendPath("/columns/", false); + uri.AppendPath(columnName, true); + uri.AppendPath("/sensitivityLabels/", false); + uri.AppendPath("recommended", true); + uri.AppendPath("/enable", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateEnableRecommendationRequest(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, string schemaName, string tableName, string columnName) { var message = _pipeline.CreateMessage(); @@ -726,6 +890,31 @@ public Response EnableRecommendation(string subscriptionId, string resourceGroup } } + internal RequestUriBuilder CreateDisableRecommendationRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, string schemaName, string tableName, string columnName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/sqlPools/", false); + uri.AppendPath(sqlPoolName, true); + uri.AppendPath("/schemas/", false); + uri.AppendPath(schemaName, true); + uri.AppendPath("/tables/", false); + uri.AppendPath(tableName, true); + uri.AppendPath("/columns/", false); + uri.AppendPath(columnName, true); + uri.AppendPath("/sensitivityLabels/", false); + uri.AppendPath("recommended", true); + uri.AppendPath("/disable", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDisableRecommendationRequest(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, string schemaName, string tableName, string columnName) { var message = _pipeline.CreateMessage(); @@ -820,6 +1009,14 @@ public Response DisableRecommendation(string subscriptionId, string resourceGrou } } + internal RequestUriBuilder CreateListCurrentNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListCurrentNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, string filter) { var message = _pipeline.CreateMessage(); @@ -902,6 +1099,14 @@ public Response ListCurrentNextPage(string ne } } + internal RequestUriBuilder CreateListRecommendedNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, bool? includeDisabledRecommendations, string skipToken, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListRecommendedNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, bool? includeDisabledRecommendations, string skipToken, string filter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/SqlPoolTableColumnsRestOperations.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/SqlPoolTableColumnsRestOperations.cs index 4c0fac4b8f61..a1de4dfd780a 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/SqlPoolTableColumnsRestOperations.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/SqlPoolTableColumnsRestOperations.cs @@ -37,6 +37,31 @@ public SqlPoolTableColumnsRestOperations(HttpPipeline pipeline, string applicati _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByTableNameRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, string schemaName, string tableName, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/sqlPools/", false); + uri.AppendPath(sqlPoolName, true); + uri.AppendPath("/schemas/", false); + uri.AppendPath(schemaName, true); + uri.AppendPath("/tables/", false); + uri.AppendPath(tableName, true); + uri.AppendPath("/columns", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + return uri; + } + internal HttpMessage CreateListByTableNameRequest(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, string schemaName, string tableName, string filter) { var message = _pipeline.CreateMessage(); @@ -140,6 +165,14 @@ public Response ListByTableName(string subscriptionId, } } + internal RequestUriBuilder CreateListByTableNameNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, string schemaName, string tableName, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByTableNameNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, string schemaName, string tableName, string filter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/SqlPoolTablesRestOperations.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/SqlPoolTablesRestOperations.cs index 61fb08de57f8..12fcb5157324 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/SqlPoolTablesRestOperations.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/SqlPoolTablesRestOperations.cs @@ -37,6 +37,29 @@ public SqlPoolTablesRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListBySchemaRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, string schemaName, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/sqlPools/", false); + uri.AppendPath(sqlPoolName, true); + uri.AppendPath("/schemas/", false); + uri.AppendPath(schemaName, true); + uri.AppendPath("/tables", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + return uri; + } + internal HttpMessage CreateListBySchemaRequest(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, string schemaName, string filter) { var message = _pipeline.CreateMessage(); @@ -134,6 +157,26 @@ public Response ListBySchema(string subscriptionId, stri } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, string schemaName, string tableName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/sqlPools/", false); + uri.AppendPath(sqlPoolName, true); + uri.AppendPath("/schemas/", false); + uri.AppendPath(schemaName, true); + uri.AppendPath("/tables/", false); + uri.AppendPath(tableName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, string schemaName, string tableName) { var message = _pipeline.CreateMessage(); @@ -234,6 +277,14 @@ public Response Get(string subscriptionId, string resou } } + internal RequestUriBuilder CreateListBySchemaNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, string schemaName, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySchemaNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, string schemaName, string filter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/SqlPoolTransparentDataEncryptionsRestOperations.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/SqlPoolTransparentDataEncryptionsRestOperations.cs index 9e19e55d3db4..e65db1805167 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/SqlPoolTransparentDataEncryptionsRestOperations.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/SqlPoolTransparentDataEncryptionsRestOperations.cs @@ -37,6 +37,24 @@ public SqlPoolTransparentDataEncryptionsRestOperations(HttpPipeline pipeline, st _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, SynapseTransparentDataEncryptionName transparentDataEncryptionName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/sqlPools/", false); + uri.AppendPath(sqlPoolName, true); + uri.AppendPath("/transparentDataEncryption/", false); + uri.AppendPath(transparentDataEncryptionName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, SynapseTransparentDataEncryptionName transparentDataEncryptionName) { var message = _pipeline.CreateMessage(); @@ -129,6 +147,24 @@ public Response Get(string subscriptionId, } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, SynapseTransparentDataEncryptionName transparentDataEncryptionName, SynapseTransparentDataEncryptionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/sqlPools/", false); + uri.AppendPath(sqlPoolName, true); + uri.AppendPath("/transparentDataEncryption/", false); + uri.AppendPath(transparentDataEncryptionName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, SynapseTransparentDataEncryptionName transparentDataEncryptionName, SynapseTransparentDataEncryptionData data) { var message = _pipeline.CreateMessage(); @@ -227,6 +263,23 @@ public Response CreateOrUpdate(string subs } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/sqlPools/", false); + uri.AppendPath(sqlPoolName, true); + uri.AppendPath("/transparentDataEncryption", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName) { var message = _pipeline.CreateMessage(); @@ -312,6 +365,14 @@ public Response List(string subscrip } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/SqlPoolUsagesRestOperations.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/SqlPoolUsagesRestOperations.cs index 256f14bcf883..26bb3cc3ba31 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/SqlPoolUsagesRestOperations.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/SqlPoolUsagesRestOperations.cs @@ -37,6 +37,23 @@ public SqlPoolUsagesRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/sqlPools/", false); + uri.AppendPath(sqlPoolName, true); + uri.AppendPath("/usages", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName) { var message = _pipeline.CreateMessage(); @@ -122,6 +139,14 @@ public Response List(string subscriptionId, string resou } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/SqlPoolVulnerabilityAssessmentRuleBaselinesRestOperations.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/SqlPoolVulnerabilityAssessmentRuleBaselinesRestOperations.cs index 178d55d12885..0cd563c1baa9 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/SqlPoolVulnerabilityAssessmentRuleBaselinesRestOperations.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/SqlPoolVulnerabilityAssessmentRuleBaselinesRestOperations.cs @@ -37,6 +37,28 @@ public SqlPoolVulnerabilityAssessmentRuleBaselinesRestOperations(HttpPipeline pi _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, SynapseVulnerabilityAssessmentName vulnerabilityAssessmentName, string ruleId, SynapseVulnerabilityAssessmentPolicyBaselineName baselineName, SynapseSqlPoolVulnerabilityAssessmentRuleBaselineData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/sqlPools/", false); + uri.AppendPath(sqlPoolName, true); + uri.AppendPath("/vulnerabilityAssessments/", false); + uri.AppendPath(vulnerabilityAssessmentName.ToString(), true); + uri.AppendPath("/rules/", false); + uri.AppendPath(ruleId, true); + uri.AppendPath("/baselines/", false); + uri.AppendPath(baselineName.ToSerialString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, SynapseVulnerabilityAssessmentName vulnerabilityAssessmentName, string ruleId, SynapseVulnerabilityAssessmentPolicyBaselineName baselineName, SynapseSqlPoolVulnerabilityAssessmentRuleBaselineData data) { var message = _pipeline.CreateMessage(); @@ -143,6 +165,28 @@ public Response CreateOrU } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, SynapseVulnerabilityAssessmentName vulnerabilityAssessmentName, string ruleId, SynapseVulnerabilityAssessmentPolicyBaselineName baselineName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/sqlPools/", false); + uri.AppendPath(sqlPoolName, true); + uri.AppendPath("/vulnerabilityAssessments/", false); + uri.AppendPath(vulnerabilityAssessmentName.ToString(), true); + uri.AppendPath("/rules/", false); + uri.AppendPath(ruleId, true); + uri.AppendPath("/baselines/", false); + uri.AppendPath(baselineName.ToSerialString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, SynapseVulnerabilityAssessmentName vulnerabilityAssessmentName, string ruleId, SynapseVulnerabilityAssessmentPolicyBaselineName baselineName) { var message = _pipeline.CreateMessage(); @@ -232,6 +276,28 @@ public Response Delete(string subscriptionId, string resourceGroupName, string w } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, SynapseVulnerabilityAssessmentName vulnerabilityAssessmentName, string ruleId, SynapseVulnerabilityAssessmentPolicyBaselineName baselineName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/sqlPools/", false); + uri.AppendPath(sqlPoolName, true); + uri.AppendPath("/vulnerabilityAssessments/", false); + uri.AppendPath(vulnerabilityAssessmentName.ToString(), true); + uri.AppendPath("/rules/", false); + uri.AppendPath(ruleId, true); + uri.AppendPath("/baselines/", false); + uri.AppendPath(baselineName.ToSerialString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, SynapseVulnerabilityAssessmentName vulnerabilityAssessmentName, string ruleId, SynapseVulnerabilityAssessmentPolicyBaselineName baselineName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/SqlPoolVulnerabilityAssessmentScansRestOperations.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/SqlPoolVulnerabilityAssessmentScansRestOperations.cs index dcd9bb79676f..132eeecbf3fe 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/SqlPoolVulnerabilityAssessmentScansRestOperations.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/SqlPoolVulnerabilityAssessmentScansRestOperations.cs @@ -37,6 +37,25 @@ public SqlPoolVulnerabilityAssessmentScansRestOperations(HttpPipeline pipeline, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, SynapseVulnerabilityAssessmentName vulnerabilityAssessmentName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/sqlPools/", false); + uri.AppendPath(sqlPoolName, true); + uri.AppendPath("/vulnerabilityAssessments/", false); + uri.AppendPath(vulnerabilityAssessmentName.ToString(), true); + uri.AppendPath("/scans", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, SynapseVulnerabilityAssessmentName vulnerabilityAssessmentName) { var message = _pipeline.CreateMessage(); @@ -126,6 +145,27 @@ public Response List(string } } + internal RequestUriBuilder CreateInitiateScanRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, SynapseVulnerabilityAssessmentName vulnerabilityAssessmentName, string scanId) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/sqlPools/", false); + uri.AppendPath(sqlPoolName, true); + uri.AppendPath("/vulnerabilityAssessments/", false); + uri.AppendPath(vulnerabilityAssessmentName.ToString(), true); + uri.AppendPath("/scans/", false); + uri.AppendPath(scanId, true); + uri.AppendPath("/initiateScan", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateInitiateScanRequest(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, SynapseVulnerabilityAssessmentName vulnerabilityAssessmentName, string scanId) { var message = _pipeline.CreateMessage(); @@ -212,6 +252,27 @@ public Response InitiateScan(string subscriptionId, string resourceGroupName, st } } + internal RequestUriBuilder CreateExportRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, SynapseVulnerabilityAssessmentName vulnerabilityAssessmentName, string scanId) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/sqlPools/", false); + uri.AppendPath(sqlPoolName, true); + uri.AppendPath("/vulnerabilityAssessments/", false); + uri.AppendPath(vulnerabilityAssessmentName.ToString(), true); + uri.AppendPath("/scans/", false); + uri.AppendPath(scanId, true); + uri.AppendPath("/export", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateExportRequest(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, SynapseVulnerabilityAssessmentName vulnerabilityAssessmentName, string scanId) { var message = _pipeline.CreateMessage(); @@ -309,6 +370,26 @@ public Response Export(string subscri } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, SynapseVulnerabilityAssessmentName vulnerabilityAssessmentName, string scanId) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/sqlPools/", false); + uri.AppendPath(sqlPoolName, true); + uri.AppendPath("/vulnerabilityAssessments/", false); + uri.AppendPath(vulnerabilityAssessmentName.ToString(), true); + uri.AppendPath("/scans/", false); + uri.AppendPath(scanId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, SynapseVulnerabilityAssessmentName vulnerabilityAssessmentName, string scanId) { var message = _pipeline.CreateMessage(); @@ -407,6 +488,14 @@ public Response Get(string subscri } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, SynapseVulnerabilityAssessmentName vulnerabilityAssessmentName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, SynapseVulnerabilityAssessmentName vulnerabilityAssessmentName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/SqlPoolVulnerabilityAssessmentsRestOperations.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/SqlPoolVulnerabilityAssessmentsRestOperations.cs index 68731090e6a4..6ddb56acf08c 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/SqlPoolVulnerabilityAssessmentsRestOperations.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/SqlPoolVulnerabilityAssessmentsRestOperations.cs @@ -37,6 +37,23 @@ public SqlPoolVulnerabilityAssessmentsRestOperations(HttpPipeline pipeline, stri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/sqlPools/", false); + uri.AppendPath(sqlPoolName, true); + uri.AppendPath("/vulnerabilityAssessments", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName) { var message = _pipeline.CreateMessage(); @@ -122,6 +139,24 @@ public Response List(string subscripti } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, SynapseVulnerabilityAssessmentName vulnerabilityAssessmentName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/sqlPools/", false); + uri.AppendPath(sqlPoolName, true); + uri.AppendPath("/vulnerabilityAssessments/", false); + uri.AppendPath(vulnerabilityAssessmentName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, SynapseVulnerabilityAssessmentName vulnerabilityAssessmentName) { var message = _pipeline.CreateMessage(); @@ -214,6 +249,24 @@ public Response Get(string subscripti } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, SynapseVulnerabilityAssessmentName vulnerabilityAssessmentName, SynapseSqlPoolVulnerabilityAssessmentData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/sqlPools/", false); + uri.AppendPath(sqlPoolName, true); + uri.AppendPath("/vulnerabilityAssessments/", false); + uri.AppendPath(vulnerabilityAssessmentName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, SynapseVulnerabilityAssessmentName vulnerabilityAssessmentName, SynapseSqlPoolVulnerabilityAssessmentData data) { var message = _pipeline.CreateMessage(); @@ -312,6 +365,24 @@ public Response CreateOrUpdate(string } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, SynapseVulnerabilityAssessmentName vulnerabilityAssessmentName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/sqlPools/", false); + uri.AppendPath(sqlPoolName, true); + uri.AppendPath("/vulnerabilityAssessments/", false); + uri.AppendPath(vulnerabilityAssessmentName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, SynapseVulnerabilityAssessmentName vulnerabilityAssessmentName) { var message = _pipeline.CreateMessage(); @@ -391,6 +462,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string w } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/SqlPoolWorkloadClassifierRestOperations.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/SqlPoolWorkloadClassifierRestOperations.cs index efe3e2aa90ed..357814c23bc0 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/SqlPoolWorkloadClassifierRestOperations.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/SqlPoolWorkloadClassifierRestOperations.cs @@ -37,6 +37,26 @@ public SqlPoolWorkloadClassifierRestOperations(HttpPipeline pipeline, string app _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, string workloadGroupName, string workloadClassifierName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/sqlPools/", false); + uri.AppendPath(sqlPoolName, true); + uri.AppendPath("/workloadGroups/", false); + uri.AppendPath(workloadGroupName, true); + uri.AppendPath("/workloadClassifiers/", false); + uri.AppendPath(workloadClassifierName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, string workloadGroupName, string workloadClassifierName) { var message = _pipeline.CreateMessage(); @@ -137,6 +157,26 @@ public Response Get(string subscriptionId, string } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, string workloadGroupName, string workloadClassifierName, SynapseWorkloadClassifierData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/sqlPools/", false); + uri.AppendPath(sqlPoolName, true); + uri.AppendPath("/workloadGroups/", false); + uri.AppendPath(workloadGroupName, true); + uri.AppendPath("/workloadClassifiers/", false); + uri.AppendPath(workloadClassifierName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, string workloadGroupName, string workloadClassifierName, SynapseWorkloadClassifierData data) { var message = _pipeline.CreateMessage(); @@ -235,6 +275,26 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, string workloadGroupName, string workloadClassifierName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/sqlPools/", false); + uri.AppendPath(sqlPoolName, true); + uri.AppendPath("/workloadGroups/", false); + uri.AppendPath(workloadGroupName, true); + uri.AppendPath("/workloadClassifiers/", false); + uri.AppendPath(workloadClassifierName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, string workloadGroupName, string workloadClassifierName) { var message = _pipeline.CreateMessage(); @@ -324,6 +384,25 @@ public Response Delete(string subscriptionId, string resourceGroupName, string w } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, string workloadGroupName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/sqlPools/", false); + uri.AppendPath(sqlPoolName, true); + uri.AppendPath("/workloadGroups/", false); + uri.AppendPath(workloadGroupName, true); + uri.AppendPath("/workloadClassifiers", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, string workloadGroupName) { var message = _pipeline.CreateMessage(); @@ -415,6 +494,14 @@ public Response List(string subscriptionId, } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, string workloadGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, string workloadGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/SqlPoolWorkloadGroupRestOperations.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/SqlPoolWorkloadGroupRestOperations.cs index c328d7014341..273c7a7631a0 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/SqlPoolWorkloadGroupRestOperations.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/SqlPoolWorkloadGroupRestOperations.cs @@ -37,6 +37,24 @@ public SqlPoolWorkloadGroupRestOperations(HttpPipeline pipeline, string applicat _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, string workloadGroupName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/sqlPools/", false); + uri.AppendPath(sqlPoolName, true); + uri.AppendPath("/workloadGroups/", false); + uri.AppendPath(workloadGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, string workloadGroupName) { var message = _pipeline.CreateMessage(); @@ -131,6 +149,24 @@ public Response Get(string subscriptionId, string reso } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, string workloadGroupName, SynapseWorkloadGroupData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/sqlPools/", false); + uri.AppendPath(sqlPoolName, true); + uri.AppendPath("/workloadGroups/", false); + uri.AppendPath(workloadGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, string workloadGroupName, SynapseWorkloadGroupData data) { var message = _pipeline.CreateMessage(); @@ -223,6 +259,24 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, string workloadGroupName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/sqlPools/", false); + uri.AppendPath(sqlPoolName, true); + uri.AppendPath("/workloadGroups/", false); + uri.AppendPath(workloadGroupName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, string workloadGroupName) { var message = _pipeline.CreateMessage(); @@ -306,6 +360,23 @@ public Response Delete(string subscriptionId, string resourceGroupName, string w } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/sqlPools/", false); + uri.AppendPath(sqlPoolName, true); + uri.AppendPath("/workloadGroups", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName) { var message = _pipeline.CreateMessage(); @@ -391,6 +462,14 @@ public Response List(string subscriptionId, stri } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/SqlPoolsRestOperations.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/SqlPoolsRestOperations.cs index 67632d61eb65..55157bcbb180 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/SqlPoolsRestOperations.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/SqlPoolsRestOperations.cs @@ -37,6 +37,22 @@ public SqlPoolsRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/sqlPools/", false); + uri.AppendPath(sqlPoolName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName) { var message = _pipeline.CreateMessage(); @@ -125,6 +141,22 @@ public Response Get(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, SynapseSqlPoolPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/sqlPools/", false); + uri.AppendPath(sqlPoolName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, SynapseSqlPoolPatch patch) { var message = _pipeline.CreateMessage(); @@ -209,6 +241,22 @@ public Response Update(string subscriptionId, string resourceGroupName, string w } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, SynapseSqlPoolData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/sqlPools/", false); + uri.AppendPath(sqlPoolName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, SynapseSqlPoolData data) { var message = _pipeline.CreateMessage(); @@ -293,6 +341,22 @@ public Response Create(string subscriptionId, string resourceGroupName, string w } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/sqlPools/", false); + uri.AppendPath(sqlPoolName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName) { var message = _pipeline.CreateMessage(); @@ -371,6 +435,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string w } } + internal RequestUriBuilder CreateListByWorkspaceRequestUri(string subscriptionId, string resourceGroupName, string workspaceName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/sqlPools", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByWorkspaceRequest(string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); @@ -450,6 +529,23 @@ public Response ListByWorkspace(string subscriptionId, st } } + internal RequestUriBuilder CreatePauseRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/sqlPools/", false); + uri.AppendPath(sqlPoolName, true); + uri.AppendPath("/pause", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreatePauseRequest(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName) { var message = _pipeline.CreateMessage(); @@ -527,6 +623,23 @@ public Response Pause(string subscriptionId, string resourceGroupName, string wo } } + internal RequestUriBuilder CreateResumeRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/sqlPools/", false); + uri.AppendPath(sqlPoolName, true); + uri.AppendPath("/resume", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateResumeRequest(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName) { var message = _pipeline.CreateMessage(); @@ -604,6 +717,23 @@ public Response Resume(string subscriptionId, string resourceGroupName, string w } } + internal RequestUriBuilder CreateRenameRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, SynapseResourceMoveDefinition synapseResourceMoveDefinition) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/sqlPools/", false); + uri.AppendPath(sqlPoolName, true); + uri.AppendPath("/move", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRenameRequest(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName, SynapseResourceMoveDefinition synapseResourceMoveDefinition) { var message = _pipeline.CreateMessage(); @@ -686,6 +816,14 @@ public Response Rename(string subscriptionId, string resourceGroupName, string w } } + internal RequestUriBuilder CreateListByWorkspaceNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByWorkspaceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/WorkspaceAadAdminsRestOperations.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/WorkspaceAadAdminsRestOperations.cs index 676a86301b67..4ba7d8edd2a2 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/WorkspaceAadAdminsRestOperations.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/WorkspaceAadAdminsRestOperations.cs @@ -36,6 +36,21 @@ public WorkspaceAadAdminsRestOperations(HttpPipeline pipeline, string applicatio _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workspaceName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/administrators/activeDirectory", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); @@ -119,6 +134,21 @@ public Response Get(string subscriptionId, str } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, SynapseWorkspaceAadAdminInfoData info) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/administrators/activeDirectory", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, SynapseWorkspaceAadAdminInfoData info) { var message = _pipeline.CreateMessage(); @@ -198,6 +228,21 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string workspaceName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/administrators/activeDirectory", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/WorkspaceManagedIdentitySqlControlSettingsRestOperations.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/WorkspaceManagedIdentitySqlControlSettingsRestOperations.cs index f65c4115da88..0ae3e2ea9eef 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/WorkspaceManagedIdentitySqlControlSettingsRestOperations.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/WorkspaceManagedIdentitySqlControlSettingsRestOperations.cs @@ -36,6 +36,21 @@ public WorkspaceManagedIdentitySqlControlSettingsRestOperations(HttpPipeline pip _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workspaceName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/managedIdentitySqlControlSettings/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); @@ -119,6 +134,21 @@ public Response Get(string subscrip } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, SynapseManagedIdentitySqlControlSettingData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/managedIdentitySqlControlSettings/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, SynapseManagedIdentitySqlControlSettingData data) { var message = _pipeline.CreateMessage(); diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/WorkspaceManagedSqlServerBlobAuditingPoliciesRestOperations.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/WorkspaceManagedSqlServerBlobAuditingPoliciesRestOperations.cs index 7d5eac1c898d..b420aabfcf0d 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/WorkspaceManagedSqlServerBlobAuditingPoliciesRestOperations.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/WorkspaceManagedSqlServerBlobAuditingPoliciesRestOperations.cs @@ -37,6 +37,22 @@ public WorkspaceManagedSqlServerBlobAuditingPoliciesRestOperations(HttpPipeline _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, SynapseBlobAuditingPolicyName blobAuditingPolicyName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/auditingSettings/", false); + uri.AppendPath(blobAuditingPolicyName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName, SynapseBlobAuditingPolicyName blobAuditingPolicyName) { var message = _pipeline.CreateMessage(); @@ -123,6 +139,22 @@ public Response Get(string subscriptionId, } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, SynapseBlobAuditingPolicyName blobAuditingPolicyName, SynapseServerBlobAuditingPolicyData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/auditingSettings/", false); + uri.AppendPath(blobAuditingPolicyName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, SynapseBlobAuditingPolicyName blobAuditingPolicyName, SynapseServerBlobAuditingPolicyData data) { var message = _pipeline.CreateMessage(); @@ -205,6 +237,21 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateListByWorkspaceRequestUri(string subscriptionId, string resourceGroupName, string workspaceName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/auditingSettings", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByWorkspaceRequest(string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); @@ -284,6 +331,14 @@ public Response ListByWorkspace(strin } } + internal RequestUriBuilder CreateListByWorkspaceNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByWorkspaceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/WorkspaceManagedSqlServerDedicatedSQLMinimalTlsSettingsRestOperations.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/WorkspaceManagedSqlServerDedicatedSQLMinimalTlsSettingsRestOperations.cs index a88a29397ff0..492a0bd801d7 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/WorkspaceManagedSqlServerDedicatedSQLMinimalTlsSettingsRestOperations.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/WorkspaceManagedSqlServerDedicatedSQLMinimalTlsSettingsRestOperations.cs @@ -37,6 +37,22 @@ public WorkspaceManagedSqlServerDedicatedSQLMinimalTlsSettingsRestOperations(Htt _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, SynapseDedicatedSqlMinimalTlsSettingName dedicatedSQLminimalTlsSettingsName, SynapseDedicatedSqlMinimalTlsSettingData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/dedicatedSQLminimalTlsSettings/", false); + uri.AppendPath(dedicatedSQLminimalTlsSettingsName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, SynapseDedicatedSqlMinimalTlsSettingName dedicatedSQLminimalTlsSettingsName, SynapseDedicatedSqlMinimalTlsSettingData data) { var message = _pipeline.CreateMessage(); @@ -119,6 +135,22 @@ public Response Update(string subscriptionId, string resourceGroupName, string w } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string dedicatedSQLminimalTlsSettingsName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/dedicatedSQLminimalTlsSettings/", false); + uri.AppendPath(dedicatedSQLminimalTlsSettingsName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName, string dedicatedSQLminimalTlsSettingsName) { var message = _pipeline.CreateMessage(); @@ -207,6 +239,21 @@ public Response Get(string subscriptio } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string workspaceName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/dedicatedSQLminimalTlsSettings", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); @@ -286,6 +333,14 @@ public Response List(string subs } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/WorkspaceManagedSqlServerEncryptionProtectorRestOperations.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/WorkspaceManagedSqlServerEncryptionProtectorRestOperations.cs index 4db21f8974a6..f397fc3d8427 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/WorkspaceManagedSqlServerEncryptionProtectorRestOperations.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/WorkspaceManagedSqlServerEncryptionProtectorRestOperations.cs @@ -37,6 +37,22 @@ public WorkspaceManagedSqlServerEncryptionProtectorRestOperations(HttpPipeline p _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, SynapseEncryptionProtectorName encryptionProtectorName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/encryptionProtector/", false); + uri.AppendPath(encryptionProtectorName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName, SynapseEncryptionProtectorName encryptionProtectorName) { var message = _pipeline.CreateMessage(); @@ -123,6 +139,22 @@ public Response Get(string subscriptionId, strin } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, SynapseEncryptionProtectorName encryptionProtectorName, SynapseEncryptionProtectorData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/encryptionProtector/", false); + uri.AppendPath(encryptionProtectorName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, SynapseEncryptionProtectorName encryptionProtectorName, SynapseEncryptionProtectorData data) { var message = _pipeline.CreateMessage(); @@ -205,6 +237,21 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string workspaceName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/encryptionProtector", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); @@ -284,6 +331,23 @@ public Response List(string subscriptionId } } + internal RequestUriBuilder CreateRevalidateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, SynapseEncryptionProtectorName encryptionProtectorName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/encryptionProtector/", false); + uri.AppendPath(encryptionProtectorName.ToString(), true); + uri.AppendPath("/revalidate", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRevalidateRequest(string subscriptionId, string resourceGroupName, string workspaceName, SynapseEncryptionProtectorName encryptionProtectorName) { var message = _pipeline.CreateMessage(); @@ -358,6 +422,14 @@ public Response Revalidate(string subscriptionId, string resourceGroupName, stri } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesRestOperations.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesRestOperations.cs index b030db9ffcdd..b9a08f9d8d02 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesRestOperations.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesRestOperations.cs @@ -37,6 +37,22 @@ public WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesRestOperations(HttpP _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, SynapseBlobAuditingPolicyName blobAuditingPolicyName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/extendedAuditingSettings/", false); + uri.AppendPath(blobAuditingPolicyName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName, SynapseBlobAuditingPolicyName blobAuditingPolicyName) { var message = _pipeline.CreateMessage(); @@ -123,6 +139,22 @@ public Response Get(string subscrip } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, SynapseBlobAuditingPolicyName blobAuditingPolicyName, SynapseExtendedServerBlobAuditingPolicyData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/extendedAuditingSettings/", false); + uri.AppendPath(blobAuditingPolicyName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, SynapseBlobAuditingPolicyName blobAuditingPolicyName, SynapseExtendedServerBlobAuditingPolicyData data) { var message = _pipeline.CreateMessage(); @@ -205,6 +237,21 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateListByWorkspaceRequestUri(string subscriptionId, string resourceGroupName, string workspaceName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/extendedAuditingSettings", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByWorkspaceRequest(string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); @@ -284,6 +331,14 @@ public Response ListByWorkspa } } + internal RequestUriBuilder CreateListByWorkspaceNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByWorkspaceNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/WorkspaceManagedSqlServerRecoverableSqlPoolsRestOperations.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/WorkspaceManagedSqlServerRecoverableSqlPoolsRestOperations.cs index 629af9b04c3d..8a8d5cc492d8 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/WorkspaceManagedSqlServerRecoverableSqlPoolsRestOperations.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/WorkspaceManagedSqlServerRecoverableSqlPoolsRestOperations.cs @@ -37,6 +37,21 @@ public WorkspaceManagedSqlServerRecoverableSqlPoolsRestOperations(HttpPipeline p _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string workspaceName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/recoverableSqlPools", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response List(string subscriptionId, } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/recoverableSqlPools/", false); + uri.AppendPath(sqlPoolName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName, string sqlPoolName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,14 @@ public Response Get(string subscriptionId, string } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/WorkspaceManagedSqlServerSecurityAlertPolicyRestOperations.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/WorkspaceManagedSqlServerSecurityAlertPolicyRestOperations.cs index 8cc6f90157bf..c25d4f58b5db 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/WorkspaceManagedSqlServerSecurityAlertPolicyRestOperations.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/WorkspaceManagedSqlServerSecurityAlertPolicyRestOperations.cs @@ -37,6 +37,22 @@ public WorkspaceManagedSqlServerSecurityAlertPolicyRestOperations(HttpPipeline p _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, SqlServerSecurityAlertPolicyName securityAlertPolicyName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/securityAlertPolicies/", false); + uri.AppendPath(securityAlertPolicyName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName, SqlServerSecurityAlertPolicyName securityAlertPolicyName) { var message = _pipeline.CreateMessage(); @@ -123,6 +139,22 @@ public Response Get(string subscriptionId, } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, SqlServerSecurityAlertPolicyName securityAlertPolicyName, SynapseServerSecurityAlertPolicyData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/securityAlertPolicies/", false); + uri.AppendPath(securityAlertPolicyName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, SqlServerSecurityAlertPolicyName securityAlertPolicyName, SynapseServerSecurityAlertPolicyData data) { var message = _pipeline.CreateMessage(); @@ -205,6 +237,21 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string workspaceName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/securityAlertPolicies", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); @@ -284,6 +331,14 @@ public Response List(string subscrip } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/WorkspaceManagedSqlServerUsagesRestOperations.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/WorkspaceManagedSqlServerUsagesRestOperations.cs index 4ff0b5a981ad..c86cbb33ac22 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/WorkspaceManagedSqlServerUsagesRestOperations.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/WorkspaceManagedSqlServerUsagesRestOperations.cs @@ -37,6 +37,21 @@ public WorkspaceManagedSqlServerUsagesRestOperations(HttpPipeline pipeline, stri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string workspaceName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/sqlUsages", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,14 @@ public Response List(string subscriptionId, string } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/WorkspaceManagedSqlServerVulnerabilityAssessmentsRestOperations.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/WorkspaceManagedSqlServerVulnerabilityAssessmentsRestOperations.cs index 196832738bc6..098792b869ed 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/WorkspaceManagedSqlServerVulnerabilityAssessmentsRestOperations.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/WorkspaceManagedSqlServerVulnerabilityAssessmentsRestOperations.cs @@ -37,6 +37,22 @@ public WorkspaceManagedSqlServerVulnerabilityAssessmentsRestOperations(HttpPipel _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, SynapseVulnerabilityAssessmentName vulnerabilityAssessmentName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/vulnerabilityAssessments/", false); + uri.AppendPath(vulnerabilityAssessmentName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName, SynapseVulnerabilityAssessmentName vulnerabilityAssessmentName) { var message = _pipeline.CreateMessage(); @@ -123,6 +139,22 @@ public Response Get(string subscriptio } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, SynapseVulnerabilityAssessmentName vulnerabilityAssessmentName, SynapseServerVulnerabilityAssessmentData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/vulnerabilityAssessments/", false); + uri.AppendPath(vulnerabilityAssessmentName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, SynapseVulnerabilityAssessmentName vulnerabilityAssessmentName, SynapseServerVulnerabilityAssessmentData data) { var message = _pipeline.CreateMessage(); @@ -215,6 +247,22 @@ public Response CreateOrUpdate(string } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, SynapseVulnerabilityAssessmentName vulnerabilityAssessmentName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/vulnerabilityAssessments/", false); + uri.AppendPath(vulnerabilityAssessmentName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string workspaceName, SynapseVulnerabilityAssessmentName vulnerabilityAssessmentName) { var message = _pipeline.CreateMessage(); @@ -288,6 +336,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string w } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string workspaceName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/vulnerabilityAssessments", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); @@ -367,6 +430,14 @@ public Response List(string subs } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/WorkspaceSqlAadAdminsRestOperations.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/WorkspaceSqlAadAdminsRestOperations.cs index 1cd171fc87a5..53df852e9883 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/WorkspaceSqlAadAdminsRestOperations.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/WorkspaceSqlAadAdminsRestOperations.cs @@ -36,6 +36,21 @@ public WorkspaceSqlAadAdminsRestOperations(HttpPipeline pipeline, string applica _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workspaceName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/sqlAdministrators/activeDirectory", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); @@ -119,6 +134,21 @@ public Response Get(string subscriptionId, str } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, SynapseWorkspaceAadAdminInfoData info) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/sqlAdministrators/activeDirectory", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, SynapseWorkspaceAadAdminInfoData info) { var message = _pipeline.CreateMessage(); @@ -198,6 +228,21 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string workspaceName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/sqlAdministrators/activeDirectory", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/WorkspacesRestOperations.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/WorkspacesRestOperations.cs index 677a381e7998..8b1419536c6e 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/WorkspacesRestOperations.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/WorkspacesRestOperations.cs @@ -37,6 +37,19 @@ public WorkspacesRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.Synapse/workspaces", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -110,6 +123,20 @@ public Response ListByResourceGroup(string subscript } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string workspaceName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); @@ -192,6 +219,20 @@ public Response Get(string subscriptionId, string resource } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, SynapseWorkspacePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, SynapseWorkspacePatch patch) { var message = _pipeline.CreateMessage(); @@ -270,6 +311,20 @@ public Response Update(string subscriptionId, string resourceGroupName, string w } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string workspaceName, SynapseWorkspaceData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, SynapseWorkspaceData data) { var message = _pipeline.CreateMessage(); @@ -348,6 +403,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string workspaceName) + { + 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.Synapse/workspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string workspaceName) { var message = _pipeline.CreateMessage(); @@ -420,6 +489,17 @@ public Response Delete(string subscriptionId, string resourceGroupName, string w } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Synapse/workspaces", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -487,6 +567,14 @@ public Response List(string subscriptionId, Cancella } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -559,6 +647,14 @@ public Response ListByResourceGroupNextPage(string n } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseDataMaskingPolicyResource.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseDataMaskingPolicyResource.cs index 2b8ce0e35605..58e6bb8edd45 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseDataMaskingPolicyResource.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseDataMaskingPolicyResource.cs @@ -273,7 +273,9 @@ public virtual async Task> Create try { var response = await _synapseDataMaskingPolicyDataMaskingPoliciesRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new SynapseArmOperation(Response.FromValue(new SynapseDataMaskingPolicyResource(Client, response), response.GetRawResponse())); + var uri = _synapseDataMaskingPolicyDataMaskingPoliciesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SynapseArmOperation(Response.FromValue(new SynapseDataMaskingPolicyResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -319,7 +321,9 @@ public virtual ArmOperation CreateOrUpdate(Wai try { var response = _synapseDataMaskingPolicyDataMaskingPoliciesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, data, cancellationToken); - var operation = new SynapseArmOperation(Response.FromValue(new SynapseDataMaskingPolicyResource(Client, response), response.GetRawResponse())); + var uri = _synapseDataMaskingPolicyDataMaskingPoliciesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SynapseArmOperation(Response.FromValue(new SynapseDataMaskingPolicyResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseDataMaskingRuleCollection.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseDataMaskingRuleCollection.cs index 1fd843dc9ff1..91966d5072c0 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseDataMaskingRuleCollection.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseDataMaskingRuleCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> CreateOr try { var response = await _synapseDataMaskingRuleDataMaskingRulesRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, dataMaskingRuleName, data, cancellationToken).ConfigureAwait(false); - var operation = new SynapseArmOperation(Response.FromValue(new SynapseDataMaskingRuleResource(Client, response), response.GetRawResponse())); + var uri = _synapseDataMaskingRuleDataMaskingRulesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, dataMaskingRuleName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SynapseArmOperation(Response.FromValue(new SynapseDataMaskingRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(WaitU try { var response = _synapseDataMaskingRuleDataMaskingRulesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, dataMaskingRuleName, data, cancellationToken); - var operation = new SynapseArmOperation(Response.FromValue(new SynapseDataMaskingRuleResource(Client, response), response.GetRawResponse())); + var uri = _synapseDataMaskingRuleDataMaskingRulesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, dataMaskingRuleName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SynapseArmOperation(Response.FromValue(new SynapseDataMaskingRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseDataMaskingRuleResource.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseDataMaskingRuleResource.cs index 864a9af45baa..8c04848bb780 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseDataMaskingRuleResource.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseDataMaskingRuleResource.cs @@ -205,7 +205,9 @@ public virtual async Task> UpdateAs try { var response = await _synapseDataMaskingRuleDataMaskingRulesRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new SynapseArmOperation(Response.FromValue(new SynapseDataMaskingRuleResource(Client, response), response.GetRawResponse())); + var uri = _synapseDataMaskingRuleDataMaskingRulesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SynapseArmOperation(Response.FromValue(new SynapseDataMaskingRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -251,7 +253,9 @@ public virtual ArmOperation Update(WaitUntil wai try { var response = _synapseDataMaskingRuleDataMaskingRulesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Name, data, cancellationToken); - var operation = new SynapseArmOperation(Response.FromValue(new SynapseDataMaskingRuleResource(Client, response), response.GetRawResponse())); + var uri = _synapseDataMaskingRuleDataMaskingRulesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SynapseArmOperation(Response.FromValue(new SynapseDataMaskingRuleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseExtendedSqlPoolBlobAuditingPolicyResource.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseExtendedSqlPoolBlobAuditingPolicyResource.cs index 613c9f8f1d62..be3527d3ae40 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseExtendedSqlPoolBlobAuditingPolicyResource.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseExtendedSqlPoolBlobAuditingPolicyResource.cs @@ -204,7 +204,9 @@ public virtual async Task(Response.FromValue(new SynapseExtendedSqlPoolBlobAuditingPolicyResource(Client, response), response.GetRawResponse())); + var uri = _synapseExtendedSqlPoolBlobAuditingPolicyExtendedSqlPoolBlobAuditingPoliciesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SynapseArmOperation(Response.FromValue(new SynapseExtendedSqlPoolBlobAuditingPolicyResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -250,7 +252,9 @@ public virtual ArmOperation Cr try { var response = _synapseExtendedSqlPoolBlobAuditingPolicyExtendedSqlPoolBlobAuditingPoliciesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, data, cancellationToken); - var operation = new SynapseArmOperation(Response.FromValue(new SynapseExtendedSqlPoolBlobAuditingPolicyResource(Client, response), response.GetRawResponse())); + var uri = _synapseExtendedSqlPoolBlobAuditingPolicyExtendedSqlPoolBlobAuditingPoliciesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SynapseArmOperation(Response.FromValue(new SynapseExtendedSqlPoolBlobAuditingPolicyResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseGeoBackupPolicyCollection.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseGeoBackupPolicyCollection.cs index 777378835fce..4a51895f3bf4 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseGeoBackupPolicyCollection.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseGeoBackupPolicyCollection.cs @@ -89,7 +89,9 @@ public virtual async Task> CreateOr try { var response = await _synapseGeoBackupPolicySqlPoolGeoBackupPoliciesRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, geoBackupPolicyName, data, cancellationToken).ConfigureAwait(false); - var operation = new SynapseArmOperation(Response.FromValue(new SynapseGeoBackupPolicyResource(Client, response), response.GetRawResponse())); + var uri = _synapseGeoBackupPolicySqlPoolGeoBackupPoliciesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, geoBackupPolicyName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SynapseArmOperation(Response.FromValue(new SynapseGeoBackupPolicyResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -136,7 +138,9 @@ public virtual ArmOperation CreateOrUpdate(WaitU try { var response = _synapseGeoBackupPolicySqlPoolGeoBackupPoliciesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, geoBackupPolicyName, data, cancellationToken); - var operation = new SynapseArmOperation(Response.FromValue(new SynapseGeoBackupPolicyResource(Client, response), response.GetRawResponse())); + var uri = _synapseGeoBackupPolicySqlPoolGeoBackupPoliciesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, geoBackupPolicyName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SynapseArmOperation(Response.FromValue(new SynapseGeoBackupPolicyResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseGeoBackupPolicyResource.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseGeoBackupPolicyResource.cs index 465d67efe10f..92873d1250d4 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseGeoBackupPolicyResource.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseGeoBackupPolicyResource.cs @@ -206,7 +206,9 @@ public virtual async Task> UpdateAs try { var response = await _synapseGeoBackupPolicySqlPoolGeoBackupPoliciesRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new SynapseArmOperation(Response.FromValue(new SynapseGeoBackupPolicyResource(Client, response), response.GetRawResponse())); + var uri = _synapseGeoBackupPolicySqlPoolGeoBackupPoliciesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SynapseArmOperation(Response.FromValue(new SynapseGeoBackupPolicyResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -252,7 +254,9 @@ public virtual ArmOperation Update(WaitUntil wai try { var response = _synapseGeoBackupPolicySqlPoolGeoBackupPoliciesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new SynapseArmOperation(Response.FromValue(new SynapseGeoBackupPolicyResource(Client, response), response.GetRawResponse())); + var uri = _synapseGeoBackupPolicySqlPoolGeoBackupPoliciesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SynapseArmOperation(Response.FromValue(new SynapseGeoBackupPolicyResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseKeyCollection.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseKeyCollection.cs index c187375bf877..cd72080c674d 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseKeyCollection.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseKeyCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> CreateOrUpdateAsync( try { var response = await _synapseKeyKeysRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, keyName, data, cancellationToken).ConfigureAwait(false); - var operation = new SynapseArmOperation(Response.FromValue(new SynapseKeyResource(Client, response), response.GetRawResponse())); + var uri = _synapseKeyKeysRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, keyName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SynapseArmOperation(Response.FromValue(new SynapseKeyResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUnt try { var response = _synapseKeyKeysRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, keyName, data, cancellationToken); - var operation = new SynapseArmOperation(Response.FromValue(new SynapseKeyResource(Client, response), response.GetRawResponse())); + var uri = _synapseKeyKeysRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, keyName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SynapseArmOperation(Response.FromValue(new SynapseKeyResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseKeyResource.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseKeyResource.cs index ec4fdc99720a..9fb8d37f5183 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseKeyResource.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseKeyResource.cs @@ -200,7 +200,9 @@ public virtual async Task> DeleteAsync(WaitUnti try { var response = await _synapseKeyKeysRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new SynapseArmOperation(Response.FromValue(new SynapseKeyResource(Client, response), response.GetRawResponse())); + var uri = _synapseKeyKeysRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SynapseArmOperation(Response.FromValue(new SynapseKeyResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -242,7 +244,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, Canc try { var response = _synapseKeyKeysRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new SynapseArmOperation(Response.FromValue(new SynapseKeyResource(Client, response), response.GetRawResponse())); + var uri = _synapseKeyKeysRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SynapseArmOperation(Response.FromValue(new SynapseKeyResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -288,7 +292,9 @@ public virtual async Task> UpdateAsync(WaitUnti try { var response = await _synapseKeyKeysRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new SynapseArmOperation(Response.FromValue(new SynapseKeyResource(Client, response), response.GetRawResponse())); + var uri = _synapseKeyKeysRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SynapseArmOperation(Response.FromValue(new SynapseKeyResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -334,7 +340,9 @@ public virtual ArmOperation Update(WaitUntil waitUntil, Syna try { var response = _synapseKeyKeysRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new SynapseArmOperation(Response.FromValue(new SynapseKeyResource(Client, response), response.GetRawResponse())); + var uri = _synapseKeyKeysRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SynapseArmOperation(Response.FromValue(new SynapseKeyResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseMaintenanceWindowResource.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseMaintenanceWindowResource.cs index d1f2ba6ecef8..7951d79aac5c 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseMaintenanceWindowResource.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseMaintenanceWindowResource.cs @@ -214,7 +214,9 @@ public virtual async Task CreateOrUpdateAsync(WaitUntil waitUntil, try { var response = await _synapseMaintenanceWindowSqlPoolMaintenanceWindowsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, maintenanceWindowName, data, cancellationToken).ConfigureAwait(false); - var operation = new SynapseArmOperation(response); + var uri = _synapseMaintenanceWindowSqlPoolMaintenanceWindowsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, maintenanceWindowName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SynapseArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -262,7 +264,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string maintenan try { var response = _synapseMaintenanceWindowSqlPoolMaintenanceWindowsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, maintenanceWindowName, data, cancellationToken); - var operation = new SynapseArmOperation(response); + var uri = _synapseMaintenanceWindowSqlPoolMaintenanceWindowsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, maintenanceWindowName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SynapseArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseMetadataSyncConfigurationResource.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseMetadataSyncConfigurationResource.cs index 82397b2bad43..08c5143155ea 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseMetadataSyncConfigurationResource.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseMetadataSyncConfigurationResource.cs @@ -204,7 +204,9 @@ public virtual async Task try { var response = await _synapseMetadataSyncConfigurationSqlPoolMetadataSyncConfigsRestClient.CreateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new SynapseArmOperation(Response.FromValue(new SynapseMetadataSyncConfigurationResource(Client, response), response.GetRawResponse())); + var uri = _synapseMetadataSyncConfigurationSqlPoolMetadataSyncConfigsRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SynapseArmOperation(Response.FromValue(new SynapseMetadataSyncConfigurationResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -250,7 +252,9 @@ public virtual ArmOperation CreateOrUp try { var response = _synapseMetadataSyncConfigurationSqlPoolMetadataSyncConfigsRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, data, cancellationToken); - var operation = new SynapseArmOperation(Response.FromValue(new SynapseMetadataSyncConfigurationResource(Client, response), response.GetRawResponse())); + var uri = _synapseMetadataSyncConfigurationSqlPoolMetadataSyncConfigsRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SynapseArmOperation(Response.FromValue(new SynapseMetadataSyncConfigurationResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapsePrivateLinkHubCollection.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapsePrivateLinkHubCollection.cs index c7364fd37aa4..74458373a114 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapsePrivateLinkHubCollection.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapsePrivateLinkHubCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> CreateOrU try { var response = await _synapsePrivateLinkHubPrivateLinkHubsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, privateLinkHubName, data, cancellationToken).ConfigureAwait(false); - var operation = new SynapseArmOperation(Response.FromValue(new SynapsePrivateLinkHubResource(Client, response), response.GetRawResponse())); + var uri = _synapsePrivateLinkHubPrivateLinkHubsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, privateLinkHubName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SynapseArmOperation(Response.FromValue(new SynapsePrivateLinkHubResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -140,7 +142,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUn try { var response = _synapsePrivateLinkHubPrivateLinkHubsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, privateLinkHubName, data, cancellationToken); - var operation = new SynapseArmOperation(Response.FromValue(new SynapsePrivateLinkHubResource(Client, response), response.GetRawResponse())); + var uri = _synapsePrivateLinkHubPrivateLinkHubsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, privateLinkHubName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SynapseArmOperation(Response.FromValue(new SynapsePrivateLinkHubResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseRestorePointResource.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseRestorePointResource.cs index a5a5632013ca..3c498d9582c0 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseRestorePointResource.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseRestorePointResource.cs @@ -201,7 +201,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _synapseRestorePointSqlPoolRestorePointsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new SynapseArmOperation(response); + var uri = _synapseRestorePointSqlPoolRestorePointsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SynapseArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -243,7 +245,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _synapseRestorePointSqlPoolRestorePointsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new SynapseArmOperation(response); + var uri = _synapseRestorePointSqlPoolRestorePointsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SynapseArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseSensitivityLabelCollection.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseSensitivityLabelCollection.cs index 37f7dd8087f3..e200bc4cb64b 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseSensitivityLabelCollection.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseSensitivityLabelCollection.cs @@ -85,7 +85,9 @@ public virtual async Task> CreateO try { var response = await _synapseSensitivityLabelSqlPoolSensitivityLabelsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new SynapseArmOperation(Response.FromValue(new SynapseSensitivityLabelResource(Client, response), response.GetRawResponse())); + var uri = _synapseSensitivityLabelSqlPoolSensitivityLabelsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SynapseArmOperation(Response.FromValue(new SynapseSensitivityLabelResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -131,7 +133,9 @@ public virtual ArmOperation CreateOrUpdate(Wait try { var response = _synapseSensitivityLabelSqlPoolSensitivityLabelsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new SynapseArmOperation(Response.FromValue(new SynapseSensitivityLabelResource(Client, response), response.GetRawResponse())); + var uri = _synapseSensitivityLabelSqlPoolSensitivityLabelsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SynapseArmOperation(Response.FromValue(new SynapseSensitivityLabelResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseSensitivityLabelResource.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseSensitivityLabelResource.cs index 1aa8cc81a3ff..45cec09ffd86 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseSensitivityLabelResource.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseSensitivityLabelResource.cs @@ -205,7 +205,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _synapseSensitivityLabelSqlPoolSensitivityLabelsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, cancellationToken).ConfigureAwait(false); - var operation = new SynapseArmOperation(response); + var uri = _synapseSensitivityLabelSqlPoolSensitivityLabelsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SynapseArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -247,7 +249,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _synapseSensitivityLabelSqlPoolSensitivityLabelsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, cancellationToken); - var operation = new SynapseArmOperation(response); + var uri = _synapseSensitivityLabelSqlPoolSensitivityLabelsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SynapseArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -293,7 +297,9 @@ public virtual async Task> UpdateA try { var response = await _synapseSensitivityLabelSqlPoolSensitivityLabelsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new SynapseArmOperation(Response.FromValue(new SynapseSensitivityLabelResource(Client, response), response.GetRawResponse())); + var uri = _synapseSensitivityLabelSqlPoolSensitivityLabelsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SynapseArmOperation(Response.FromValue(new SynapseSensitivityLabelResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -339,7 +345,9 @@ public virtual ArmOperation Update(WaitUntil wa try { var response = _synapseSensitivityLabelSqlPoolSensitivityLabelsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, data, cancellationToken); - var operation = new SynapseArmOperation(Response.FromValue(new SynapseSensitivityLabelResource(Client, response), response.GetRawResponse())); + var uri = _synapseSensitivityLabelSqlPoolSensitivityLabelsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SynapseArmOperation(Response.FromValue(new SynapseSensitivityLabelResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseServerVulnerabilityAssessmentCollection.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseServerVulnerabilityAssessmentCollection.cs index a81585e49855..9f7ab4cc0fae 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseServerVulnerabilityAssessmentCollection.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseServerVulnerabilityAssessmentCollection.cs @@ -89,7 +89,9 @@ public virtual async Task(Response.FromValue(new SynapseServerVulnerabilityAssessmentResource(Client, response), response.GetRawResponse())); + var uri = _synapseServerVulnerabilityAssessmentWorkspaceManagedSqlServerVulnerabilityAssessmentsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, vulnerabilityAssessmentName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SynapseArmOperation(Response.FromValue(new SynapseServerVulnerabilityAssessmentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -136,7 +138,9 @@ public virtual ArmOperation Create try { var response = _synapseServerVulnerabilityAssessmentWorkspaceManagedSqlServerVulnerabilityAssessmentsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, vulnerabilityAssessmentName, data, cancellationToken); - var operation = new SynapseArmOperation(Response.FromValue(new SynapseServerVulnerabilityAssessmentResource(Client, response), response.GetRawResponse())); + var uri = _synapseServerVulnerabilityAssessmentWorkspaceManagedSqlServerVulnerabilityAssessmentsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, vulnerabilityAssessmentName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SynapseArmOperation(Response.FromValue(new SynapseServerVulnerabilityAssessmentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseServerVulnerabilityAssessmentResource.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseServerVulnerabilityAssessmentResource.cs index bd92acf44c4f..b1615004adf3 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseServerVulnerabilityAssessmentResource.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseServerVulnerabilityAssessmentResource.cs @@ -201,7 +201,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _synapseServerVulnerabilityAssessmentWorkspaceManagedSqlServerVulnerabilityAssessmentsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new SynapseArmOperation(response); + var uri = _synapseServerVulnerabilityAssessmentWorkspaceManagedSqlServerVulnerabilityAssessmentsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SynapseArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -243,7 +245,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _synapseServerVulnerabilityAssessmentWorkspaceManagedSqlServerVulnerabilityAssessmentsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new SynapseArmOperation(response); + var uri = _synapseServerVulnerabilityAssessmentWorkspaceManagedSqlServerVulnerabilityAssessmentsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SynapseArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -289,7 +293,9 @@ public virtual async Task(Response.FromValue(new SynapseServerVulnerabilityAssessmentResource(Client, response), response.GetRawResponse())); + var uri = _synapseServerVulnerabilityAssessmentWorkspaceManagedSqlServerVulnerabilityAssessmentsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SynapseArmOperation(Response.FromValue(new SynapseServerVulnerabilityAssessmentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -335,7 +341,9 @@ public virtual ArmOperation Update try { var response = _synapseServerVulnerabilityAssessmentWorkspaceManagedSqlServerVulnerabilityAssessmentsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new SynapseArmOperation(Response.FromValue(new SynapseServerVulnerabilityAssessmentResource(Client, response), response.GetRawResponse())); + var uri = _synapseServerVulnerabilityAssessmentWorkspaceManagedSqlServerVulnerabilityAssessmentsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SynapseArmOperation(Response.FromValue(new SynapseServerVulnerabilityAssessmentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseSqlPoolBlobAuditingPolicyResource.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseSqlPoolBlobAuditingPolicyResource.cs index de9de6738b7f..1b3df862ec90 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseSqlPoolBlobAuditingPolicyResource.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseSqlPoolBlobAuditingPolicyResource.cs @@ -204,7 +204,9 @@ public virtual async Task try { var response = await _synapseSqlPoolBlobAuditingPolicySqlPoolBlobAuditingPoliciesRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new SynapseArmOperation(Response.FromValue(new SynapseSqlPoolBlobAuditingPolicyResource(Client, response), response.GetRawResponse())); + var uri = _synapseSqlPoolBlobAuditingPolicySqlPoolBlobAuditingPoliciesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SynapseArmOperation(Response.FromValue(new SynapseSqlPoolBlobAuditingPolicyResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -250,7 +252,9 @@ public virtual ArmOperation CreateOrUp try { var response = _synapseSqlPoolBlobAuditingPolicySqlPoolBlobAuditingPoliciesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, data, cancellationToken); - var operation = new SynapseArmOperation(Response.FromValue(new SynapseSqlPoolBlobAuditingPolicyResource(Client, response), response.GetRawResponse())); + var uri = _synapseSqlPoolBlobAuditingPolicySqlPoolBlobAuditingPoliciesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SynapseArmOperation(Response.FromValue(new SynapseSqlPoolBlobAuditingPolicyResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseSqlPoolSecurityAlertPolicyCollection.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseSqlPoolSecurityAlertPolicyCollection.cs index b0ac2138473d..76ca42f0f91a 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseSqlPoolSecurityAlertPolicyCollection.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseSqlPoolSecurityAlertPolicyCollection.cs @@ -89,7 +89,9 @@ public virtual async Task(Response.FromValue(new SynapseSqlPoolSecurityAlertPolicyResource(Client, response), response.GetRawResponse())); + var uri = _synapseSqlPoolSecurityAlertPolicySqlPoolSecurityAlertPoliciesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, securityAlertPolicyName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SynapseArmOperation(Response.FromValue(new SynapseSqlPoolSecurityAlertPolicyResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -136,7 +138,9 @@ public virtual ArmOperation CreateOrU try { var response = _synapseSqlPoolSecurityAlertPolicySqlPoolSecurityAlertPoliciesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, securityAlertPolicyName, data, cancellationToken); - var operation = new SynapseArmOperation(Response.FromValue(new SynapseSqlPoolSecurityAlertPolicyResource(Client, response), response.GetRawResponse())); + var uri = _synapseSqlPoolSecurityAlertPolicySqlPoolSecurityAlertPoliciesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, securityAlertPolicyName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SynapseArmOperation(Response.FromValue(new SynapseSqlPoolSecurityAlertPolicyResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseSqlPoolSecurityAlertPolicyResource.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseSqlPoolSecurityAlertPolicyResource.cs index 22c90a4d01cf..88e576156c57 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseSqlPoolSecurityAlertPolicyResource.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseSqlPoolSecurityAlertPolicyResource.cs @@ -206,7 +206,9 @@ public virtual async Task(Response.FromValue(new SynapseSqlPoolSecurityAlertPolicyResource(Client, response), response.GetRawResponse())); + var uri = _synapseSqlPoolSecurityAlertPolicySqlPoolSecurityAlertPoliciesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SynapseArmOperation(Response.FromValue(new SynapseSqlPoolSecurityAlertPolicyResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -252,7 +254,9 @@ public virtual ArmOperation Update(Wa try { var response = _synapseSqlPoolSecurityAlertPolicySqlPoolSecurityAlertPoliciesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new SynapseArmOperation(Response.FromValue(new SynapseSqlPoolSecurityAlertPolicyResource(Client, response), response.GetRawResponse())); + var uri = _synapseSqlPoolSecurityAlertPolicySqlPoolSecurityAlertPoliciesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SynapseArmOperation(Response.FromValue(new SynapseSqlPoolSecurityAlertPolicyResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseSqlPoolVulnerabilityAssessmentCollection.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseSqlPoolVulnerabilityAssessmentCollection.cs index 5a96c60fd951..3358acd49fb7 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseSqlPoolVulnerabilityAssessmentCollection.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseSqlPoolVulnerabilityAssessmentCollection.cs @@ -89,7 +89,9 @@ public virtual async Task(Response.FromValue(new SynapseSqlPoolVulnerabilityAssessmentResource(Client, response), response.GetRawResponse())); + var uri = _synapseSqlPoolVulnerabilityAssessmentSqlPoolVulnerabilityAssessmentsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, vulnerabilityAssessmentName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SynapseArmOperation(Response.FromValue(new SynapseSqlPoolVulnerabilityAssessmentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -136,7 +138,9 @@ public virtual ArmOperation Creat try { var response = _synapseSqlPoolVulnerabilityAssessmentSqlPoolVulnerabilityAssessmentsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, vulnerabilityAssessmentName, data, cancellationToken); - var operation = new SynapseArmOperation(Response.FromValue(new SynapseSqlPoolVulnerabilityAssessmentResource(Client, response), response.GetRawResponse())); + var uri = _synapseSqlPoolVulnerabilityAssessmentSqlPoolVulnerabilityAssessmentsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, vulnerabilityAssessmentName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SynapseArmOperation(Response.FromValue(new SynapseSqlPoolVulnerabilityAssessmentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseSqlPoolVulnerabilityAssessmentResource.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseSqlPoolVulnerabilityAssessmentResource.cs index eb7bb8a4bac5..c385ca458f14 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseSqlPoolVulnerabilityAssessmentResource.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseSqlPoolVulnerabilityAssessmentResource.cs @@ -342,7 +342,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _synapseSqlPoolVulnerabilityAssessmentSqlPoolVulnerabilityAssessmentsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new SynapseArmOperation(response); + var uri = _synapseSqlPoolVulnerabilityAssessmentSqlPoolVulnerabilityAssessmentsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SynapseArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -384,7 +386,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _synapseSqlPoolVulnerabilityAssessmentSqlPoolVulnerabilityAssessmentsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new SynapseArmOperation(response); + var uri = _synapseSqlPoolVulnerabilityAssessmentSqlPoolVulnerabilityAssessmentsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SynapseArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -430,7 +434,9 @@ public virtual async Task(Response.FromValue(new SynapseSqlPoolVulnerabilityAssessmentResource(Client, response), response.GetRawResponse())); + var uri = _synapseSqlPoolVulnerabilityAssessmentSqlPoolVulnerabilityAssessmentsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SynapseArmOperation(Response.FromValue(new SynapseSqlPoolVulnerabilityAssessmentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -476,7 +482,9 @@ public virtual ArmOperation Updat try { var response = _synapseSqlPoolVulnerabilityAssessmentSqlPoolVulnerabilityAssessmentsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new SynapseArmOperation(Response.FromValue(new SynapseSqlPoolVulnerabilityAssessmentResource(Client, response), response.GetRawResponse())); + var uri = _synapseSqlPoolVulnerabilityAssessmentSqlPoolVulnerabilityAssessmentsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SynapseArmOperation(Response.FromValue(new SynapseSqlPoolVulnerabilityAssessmentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseSqlPoolVulnerabilityAssessmentRuleBaselineCollection.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseSqlPoolVulnerabilityAssessmentRuleBaselineCollection.cs index bafcb4133302..12387aaaa6df 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseSqlPoolVulnerabilityAssessmentRuleBaselineCollection.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseSqlPoolVulnerabilityAssessmentRuleBaselineCollection.cs @@ -89,7 +89,9 @@ public virtual async Task(Response.FromValue(new SynapseSqlPoolVulnerabilityAssessmentRuleBaselineResource(Client, response), response.GetRawResponse())); + var uri = _synapseSqlPoolVulnerabilityAssessmentRuleBaselineSqlPoolVulnerabilityAssessmentRuleBaselinesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, ruleId, baselineName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SynapseArmOperation(Response.FromValue(new SynapseSqlPoolVulnerabilityAssessmentRuleBaselineResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation(Response.FromValue(new SynapseSqlPoolVulnerabilityAssessmentRuleBaselineResource(Client, response), response.GetRawResponse())); + var uri = _synapseSqlPoolVulnerabilityAssessmentRuleBaselineSqlPoolVulnerabilityAssessmentRuleBaselinesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, ruleId, baselineName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SynapseArmOperation(Response.FromValue(new SynapseSqlPoolVulnerabilityAssessmentRuleBaselineResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseSqlPoolVulnerabilityAssessmentRuleBaselineResource.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseSqlPoolVulnerabilityAssessmentRuleBaselineResource.cs index 0135fb6b9ad1..8f2cc909d319 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseSqlPoolVulnerabilityAssessmentRuleBaselineResource.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseSqlPoolVulnerabilityAssessmentRuleBaselineResource.cs @@ -204,7 +204,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _synapseSqlPoolVulnerabilityAssessmentRuleBaselineSqlPoolVulnerabilityAssessmentRuleBaselinesRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name.ToSynapseVulnerabilityAssessmentPolicyBaselineName(), cancellationToken).ConfigureAwait(false); - var operation = new SynapseArmOperation(response); + var uri = _synapseSqlPoolVulnerabilityAssessmentRuleBaselineSqlPoolVulnerabilityAssessmentRuleBaselinesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name.ToSynapseVulnerabilityAssessmentPolicyBaselineName()); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SynapseArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -246,7 +248,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _synapseSqlPoolVulnerabilityAssessmentRuleBaselineSqlPoolVulnerabilityAssessmentRuleBaselinesRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name.ToSynapseVulnerabilityAssessmentPolicyBaselineName(), cancellationToken); - var operation = new SynapseArmOperation(response); + var uri = _synapseSqlPoolVulnerabilityAssessmentRuleBaselineSqlPoolVulnerabilityAssessmentRuleBaselinesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name.ToSynapseVulnerabilityAssessmentPolicyBaselineName()); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SynapseArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -292,7 +296,9 @@ public virtual async Task(Response.FromValue(new SynapseSqlPoolVulnerabilityAssessmentRuleBaselineResource(Client, response), response.GetRawResponse())); + var uri = _synapseSqlPoolVulnerabilityAssessmentRuleBaselineSqlPoolVulnerabilityAssessmentRuleBaselinesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name.ToSynapseVulnerabilityAssessmentPolicyBaselineName(), data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SynapseArmOperation(Response.FromValue(new SynapseSqlPoolVulnerabilityAssessmentRuleBaselineResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -338,7 +344,9 @@ public virtual ArmOperation(Response.FromValue(new SynapseSqlPoolVulnerabilityAssessmentRuleBaselineResource(Client, response), response.GetRawResponse())); + var uri = _synapseSqlPoolVulnerabilityAssessmentRuleBaselineSqlPoolVulnerabilityAssessmentRuleBaselinesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name.ToSynapseVulnerabilityAssessmentPolicyBaselineName(), data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SynapseArmOperation(Response.FromValue(new SynapseSqlPoolVulnerabilityAssessmentRuleBaselineResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseTransparentDataEncryptionCollection.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseTransparentDataEncryptionCollection.cs index a9a8f45c8a38..dfe54b01ce5d 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseTransparentDataEncryptionCollection.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseTransparentDataEncryptionCollection.cs @@ -89,7 +89,9 @@ public virtual async Task try { var response = await _synapseTransparentDataEncryptionSqlPoolTransparentDataEncryptionsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, transparentDataEncryptionName, data, cancellationToken).ConfigureAwait(false); - var operation = new SynapseArmOperation(Response.FromValue(new SynapseTransparentDataEncryptionResource(Client, response), response.GetRawResponse())); + var uri = _synapseTransparentDataEncryptionSqlPoolTransparentDataEncryptionsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, transparentDataEncryptionName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SynapseArmOperation(Response.FromValue(new SynapseTransparentDataEncryptionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -136,7 +138,9 @@ public virtual ArmOperation CreateOrUp try { var response = _synapseTransparentDataEncryptionSqlPoolTransparentDataEncryptionsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, transparentDataEncryptionName, data, cancellationToken); - var operation = new SynapseArmOperation(Response.FromValue(new SynapseTransparentDataEncryptionResource(Client, response), response.GetRawResponse())); + var uri = _synapseTransparentDataEncryptionSqlPoolTransparentDataEncryptionsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, transparentDataEncryptionName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SynapseArmOperation(Response.FromValue(new SynapseTransparentDataEncryptionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseTransparentDataEncryptionResource.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseTransparentDataEncryptionResource.cs index 44e894c3caf8..823fc8dbfc8c 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseTransparentDataEncryptionResource.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseTransparentDataEncryptionResource.cs @@ -206,7 +206,9 @@ public virtual async Task try { var response = await _synapseTransparentDataEncryptionSqlPoolTransparentDataEncryptionsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new SynapseArmOperation(Response.FromValue(new SynapseTransparentDataEncryptionResource(Client, response), response.GetRawResponse())); + var uri = _synapseTransparentDataEncryptionSqlPoolTransparentDataEncryptionsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SynapseArmOperation(Response.FromValue(new SynapseTransparentDataEncryptionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -252,7 +254,9 @@ public virtual ArmOperation Update(Wai try { var response = _synapseTransparentDataEncryptionSqlPoolTransparentDataEncryptionsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new SynapseArmOperation(Response.FromValue(new SynapseTransparentDataEncryptionResource(Client, response), response.GetRawResponse())); + var uri = _synapseTransparentDataEncryptionSqlPoolTransparentDataEncryptionsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new SynapseArmOperation(Response.FromValue(new SynapseTransparentDataEncryptionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/src/Generated/LongRunningOperation/TrafficManagerArmOperation.cs b/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/src/Generated/LongRunningOperation/TrafficManagerArmOperation.cs index 51b09ca77fe9..b9fb458528fb 100644 --- a/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/src/Generated/LongRunningOperation/TrafficManagerArmOperation.cs +++ b/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/src/Generated/LongRunningOperation/TrafficManagerArmOperation.cs @@ -20,21 +20,24 @@ internal class TrafficManagerArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of TrafficManagerArmOperation for mocking. protected TrafficManagerArmOperation() { } - internal TrafficManagerArmOperation(Response response) + internal TrafficManagerArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal TrafficManagerArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "TrafficManagerArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal TrafficManagerArmOperation(ClientDiagnostics clientDiagnostics, HttpPip public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/src/Generated/LongRunningOperation/TrafficManagerArmOperationOfT.cs b/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/src/Generated/LongRunningOperation/TrafficManagerArmOperationOfT.cs index a6b2d2fe85d0..06ce07efd549 100644 --- a/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/src/Generated/LongRunningOperation/TrafficManagerArmOperationOfT.cs +++ b/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/src/Generated/LongRunningOperation/TrafficManagerArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class TrafficManagerArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of TrafficManagerArmOperation for mocking. protected TrafficManagerArmOperation() { } - internal TrafficManagerArmOperation(Response response) + internal TrafficManagerArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal TrafficManagerArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "TrafficManagerArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal TrafficManagerArmOperation(IOperationSource source, ClientDiagnostic public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/src/Generated/Models/TrafficManagerEndpointResource.Serialization.cs b/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/src/Generated/Models/TrafficManagerEndpointResource.Serialization.cs new file mode 100644 index 000000000000..274f40fda7e8 --- /dev/null +++ b/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/src/Generated/Models/TrafficManagerEndpointResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.TrafficManager +{ + public partial class TrafficManagerEndpointResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + TrafficManagerEndpointData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + TrafficManagerEndpointData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/src/Generated/Models/TrafficManagerGeographicHierarchyResource.Serialization.cs b/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/src/Generated/Models/TrafficManagerGeographicHierarchyResource.Serialization.cs new file mode 100644 index 000000000000..532b724feeb1 --- /dev/null +++ b/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/src/Generated/Models/TrafficManagerGeographicHierarchyResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.TrafficManager +{ + public partial class TrafficManagerGeographicHierarchyResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + TrafficManagerGeographicHierarchyData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + TrafficManagerGeographicHierarchyData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/src/Generated/Models/TrafficManagerHeatMapResource.Serialization.cs b/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/src/Generated/Models/TrafficManagerHeatMapResource.Serialization.cs new file mode 100644 index 000000000000..fc63be16fdf9 --- /dev/null +++ b/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/src/Generated/Models/TrafficManagerHeatMapResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.TrafficManager +{ + public partial class TrafficManagerHeatMapResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + TrafficManagerHeatMapData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + TrafficManagerHeatMapData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/src/Generated/Models/TrafficManagerProfileResource.Serialization.cs b/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/src/Generated/Models/TrafficManagerProfileResource.Serialization.cs new file mode 100644 index 000000000000..1f21eaf98bb8 --- /dev/null +++ b/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/src/Generated/Models/TrafficManagerProfileResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.TrafficManager +{ + public partial class TrafficManagerProfileResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + TrafficManagerProfileData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + TrafficManagerProfileData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/src/Generated/Models/TrafficManagerUserMetricsResource.Serialization.cs b/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/src/Generated/Models/TrafficManagerUserMetricsResource.Serialization.cs new file mode 100644 index 000000000000..31318e335f9f --- /dev/null +++ b/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/src/Generated/Models/TrafficManagerUserMetricsResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.TrafficManager +{ + public partial class TrafficManagerUserMetricsResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + TrafficManagerUserMetricData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + TrafficManagerUserMetricData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/src/Generated/RestOperations/EndpointsRestOperations.cs b/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/src/Generated/RestOperations/EndpointsRestOperations.cs index 72a92b11c87e..c9ec9e6bc8ec 100644 --- a/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/src/Generated/RestOperations/EndpointsRestOperations.cs +++ b/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/src/Generated/RestOperations/EndpointsRestOperations.cs @@ -36,6 +36,24 @@ public EndpointsRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string profileName, string endpointType, string endpointName, TrafficManagerEndpointData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/trafficmanagerprofiles/", false); + uri.AppendPath(profileName, true); + uri.AppendPath("/", false); + uri.AppendPath(endpointType, true); + uri.AppendPath("/", false); + uri.AppendPath(endpointName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string profileName, string endpointType, string endpointName, TrafficManagerEndpointData data) { var message = _pipeline.CreateMessage(); @@ -134,6 +152,24 @@ public Response Update(string subscriptionId, string } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string profileName, string endpointType, string endpointName) + { + 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.Network/trafficmanagerprofiles/", false); + uri.AppendPath(profileName, true); + uri.AppendPath("/", false); + uri.AppendPath(endpointType, true); + uri.AppendPath("/", false); + uri.AppendPath(endpointName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string profileName, string endpointType, string endpointName) { var message = _pipeline.CreateMessage(); @@ -228,6 +264,24 @@ public Response Get(string subscriptionId, string re } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string profileName, string endpointType, string endpointName, TrafficManagerEndpointData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/trafficmanagerprofiles/", false); + uri.AppendPath(profileName, true); + uri.AppendPath("/", false); + uri.AppendPath(endpointType, true); + uri.AppendPath("/", false); + uri.AppendPath(endpointName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string profileName, string endpointType, string endpointName, TrafficManagerEndpointData data) { var message = _pipeline.CreateMessage(); @@ -328,6 +382,24 @@ public Response CreateOrUpdate(string subscriptionId } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string profileName, string endpointType, string endpointName) + { + 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.Network/trafficmanagerprofiles/", false); + uri.AppendPath(profileName, true); + uri.AppendPath("/", false); + uri.AppendPath(endpointType, true); + uri.AppendPath("/", false); + uri.AppendPath(endpointName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string profileName, string endpointType, string endpointName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/src/Generated/RestOperations/GeographicHierarchiesRestOperations.cs b/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/src/Generated/RestOperations/GeographicHierarchiesRestOperations.cs index 89708372de6c..48a2a8eb7d74 100644 --- a/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/src/Generated/RestOperations/GeographicHierarchiesRestOperations.cs +++ b/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/src/Generated/RestOperations/GeographicHierarchiesRestOperations.cs @@ -36,6 +36,15 @@ public GeographicHierarchiesRestOperations(HttpPipeline pipeline, string applica _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetDefaultRequestUri() + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Network/trafficManagerGeographicHierarchies/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetDefaultRequest() { var message = _pipeline.CreateMessage(); diff --git a/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/src/Generated/RestOperations/HeatMapRestOperations.cs b/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/src/Generated/RestOperations/HeatMapRestOperations.cs index 665595acc514..1ddbb44329a1 100644 --- a/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/src/Generated/RestOperations/HeatMapRestOperations.cs +++ b/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/src/Generated/RestOperations/HeatMapRestOperations.cs @@ -38,6 +38,30 @@ public HeatMapRestOperations(HttpPipeline pipeline, string applicationId, Uri en _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string profileName, TrafficManagerHeatMapType heatMapType, IEnumerable topLeft, IEnumerable botRight) + { + 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.Network/trafficmanagerprofiles/", false); + uri.AppendPath(profileName, true); + uri.AppendPath("/heatMaps/", false); + uri.AppendPath(heatMapType.ToString(), true); + if (topLeft != null && Optional.IsCollectionDefined(topLeft)) + { + uri.AppendQueryDelimited("topLeft", topLeft, ",", true); + } + if (botRight != null && Optional.IsCollectionDefined(botRight)) + { + uri.AppendQueryDelimited("botRight", botRight, ",", true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string profileName, TrafficManagerHeatMapType heatMapType, IEnumerable topLeft, IEnumerable botRight) { var message = _pipeline.CreateMessage(); diff --git a/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/src/Generated/RestOperations/ProfilesRestOperations.cs b/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/src/Generated/RestOperations/ProfilesRestOperations.cs index c7d050920882..a29ed37b139a 100644 --- a/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/src/Generated/RestOperations/ProfilesRestOperations.cs +++ b/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/src/Generated/RestOperations/ProfilesRestOperations.cs @@ -37,6 +37,15 @@ public ProfilesRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCheckTrafficManagerRelativeDnsNameAvailabilityRequestUri(TrafficManagerRelativeDnsNameAvailabilityContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Network/checkTrafficManagerNameAvailability", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCheckTrafficManagerRelativeDnsNameAvailabilityRequest(TrafficManagerRelativeDnsNameAvailabilityContent content) { var message = _pipeline.CreateMessage(); @@ -104,6 +113,17 @@ public Response CheckTrafficManagerRelativ } } + internal RequestUriBuilder CreateCheckTrafficManagerNameAvailabilityV2RequestUri(string subscriptionId, TrafficManagerRelativeDnsNameAvailabilityContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Network/checkTrafficManagerNameAvailabilityV2", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCheckTrafficManagerNameAvailabilityV2Request(string subscriptionId, TrafficManagerRelativeDnsNameAvailabilityContent content) { var message = _pipeline.CreateMessage(); @@ -179,6 +199,19 @@ public Response CheckTrafficManagerNameAva } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.Network/trafficmanagerprofiles", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -252,6 +285,17 @@ public Response ListByResourceGroup(string subs } } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Network/trafficmanagerprofiles", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -319,6 +363,20 @@ public Response ListBySubscription(string subsc } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string profileName) + { + 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.Network/trafficmanagerprofiles/", false); + uri.AppendPath(profileName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string profileName) { var message = _pipeline.CreateMessage(); @@ -401,6 +459,20 @@ public Response Get(string subscriptionId, string res } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string profileName, TrafficManagerProfileData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/trafficmanagerprofiles/", false); + uri.AppendPath(profileName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string profileName, TrafficManagerProfileData data) { var message = _pipeline.CreateMessage(); @@ -489,6 +561,20 @@ public Response CreateOrUpdate(string subscriptionId, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string profileName) + { + 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.Network/trafficmanagerprofiles/", false); + uri.AppendPath(profileName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string profileName) { var message = _pipeline.CreateMessage(); @@ -559,6 +645,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string p } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string profileName, TrafficManagerProfileData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/trafficmanagerprofiles/", false); + uri.AppendPath(profileName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string profileName, TrafficManagerProfileData data) { var message = _pipeline.CreateMessage(); diff --git a/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/src/Generated/RestOperations/TrafficManagerUserMetricsKeysRestOperations.cs b/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/src/Generated/RestOperations/TrafficManagerUserMetricsKeysRestOperations.cs index c9b154c34a56..4126d928ed19 100644 --- a/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/src/Generated/RestOperations/TrafficManagerUserMetricsKeysRestOperations.cs +++ b/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/src/Generated/RestOperations/TrafficManagerUserMetricsKeysRestOperations.cs @@ -36,6 +36,17 @@ public TrafficManagerUserMetricsKeysRestOperations(HttpPipeline pipeline, string _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Network/trafficManagerUserMetricsKeys/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + /// Get the subscription-level key used for Real User Metrics collection. /// The ID of the target subscription. /// The cancellation token to use. @@ -90,6 +101,17 @@ public Response Get(string subscriptionId, Cancell } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Network/trafficManagerUserMetricsKeys/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + /// Create or update a subscription-level key used for Real User Metrics collection. /// The ID of the target subscription. /// The cancellation token to use. @@ -140,6 +162,17 @@ public Response CreateOrUpdate(string subscription } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Network/trafficManagerUserMetricsKeys/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + /// Delete a subscription-level key used for Real User Metrics collection. /// The ID of the target subscription. /// The cancellation token to use. diff --git a/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/src/Generated/TrafficManagerEndpointCollection.cs b/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/src/Generated/TrafficManagerEndpointCollection.cs index 8b96f0cf5161..63ed4d273177 100644 --- a/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/src/Generated/TrafficManagerEndpointCollection.cs +++ b/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/src/Generated/TrafficManagerEndpointCollection.cs @@ -89,7 +89,9 @@ public virtual async Task> CreateOr try { var response = await _trafficManagerEndpointEndpointsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, endpointType, endpointName, data, cancellationToken).ConfigureAwait(false); - var operation = new TrafficManagerArmOperation(Response.FromValue(new TrafficManagerEndpointResource(Client, response), response.GetRawResponse())); + var uri = _trafficManagerEndpointEndpointsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, endpointType, endpointName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new TrafficManagerArmOperation(Response.FromValue(new TrafficManagerEndpointResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -140,7 +142,9 @@ public virtual ArmOperation CreateOrUpdate(WaitU try { var response = _trafficManagerEndpointEndpointsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, endpointType, endpointName, data, cancellationToken); - var operation = new TrafficManagerArmOperation(Response.FromValue(new TrafficManagerEndpointResource(Client, response), response.GetRawResponse())); + var uri = _trafficManagerEndpointEndpointsRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, endpointType, endpointName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new TrafficManagerArmOperation(Response.FromValue(new TrafficManagerEndpointResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/src/Generated/TrafficManagerEndpointResource.cs b/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/src/Generated/TrafficManagerEndpointResource.cs index 40b5f719b621..8cb18184b723 100644 --- a/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/src/Generated/TrafficManagerEndpointResource.cs +++ b/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/src/Generated/TrafficManagerEndpointResource.cs @@ -196,7 +196,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _trafficManagerEndpointEndpointsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.ResourceType.GetLastType(), Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new TrafficManagerArmOperation(response); + var uri = _trafficManagerEndpointEndpointsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.ResourceType.GetLastType(), Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new TrafficManagerArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -238,7 +240,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _trafficManagerEndpointEndpointsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.ResourceType.GetLastType(), Id.Name, cancellationToken); - var operation = new TrafficManagerArmOperation(response); + var uri = _trafficManagerEndpointEndpointsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.ResourceType.GetLastType(), Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new TrafficManagerArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/src/Generated/TrafficManagerProfileCollection.cs b/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/src/Generated/TrafficManagerProfileCollection.cs index b76887047842..701703c45ccd 100644 --- a/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/src/Generated/TrafficManagerProfileCollection.cs +++ b/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/src/Generated/TrafficManagerProfileCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> CreateOrU try { var response = await _trafficManagerProfileProfilesRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, profileName, data, cancellationToken).ConfigureAwait(false); - var operation = new TrafficManagerArmOperation(Response.FromValue(new TrafficManagerProfileResource(Client, response), response.GetRawResponse())); + var uri = _trafficManagerProfileProfilesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, profileName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new TrafficManagerArmOperation(Response.FromValue(new TrafficManagerProfileResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -140,7 +142,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUn try { var response = _trafficManagerProfileProfilesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, profileName, data, cancellationToken); - var operation = new TrafficManagerArmOperation(Response.FromValue(new TrafficManagerProfileResource(Client, response), response.GetRawResponse())); + var uri = _trafficManagerProfileProfilesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, profileName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new TrafficManagerArmOperation(Response.FromValue(new TrafficManagerProfileResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/src/Generated/TrafficManagerProfileResource.cs b/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/src/Generated/TrafficManagerProfileResource.cs index bcc02769eb5c..cb991e4d14ee 100644 --- a/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/src/Generated/TrafficManagerProfileResource.cs +++ b/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/src/Generated/TrafficManagerProfileResource.cs @@ -342,7 +342,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _trafficManagerProfileProfilesRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new TrafficManagerArmOperation(response); + var uri = _trafficManagerProfileProfilesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new TrafficManagerArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -384,7 +386,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _trafficManagerProfileProfilesRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); - var operation = new TrafficManagerArmOperation(response); + var uri = _trafficManagerProfileProfilesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new TrafficManagerArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/src/Generated/TrafficManagerUserMetricsResource.cs b/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/src/Generated/TrafficManagerUserMetricsResource.cs index e7c55f697453..8b5dffb05b14 100644 --- a/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/src/Generated/TrafficManagerUserMetricsResource.cs +++ b/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/src/Generated/TrafficManagerUserMetricsResource.cs @@ -110,7 +110,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _trafficManagerUserMetricsTrafficManagerUserMetricsKeysRestClient.DeleteAsync(Id.SubscriptionId, cancellationToken).ConfigureAwait(false); - var operation = new TrafficManagerArmOperation(response); + var uri = _trafficManagerUserMetricsTrafficManagerUserMetricsKeysRestClient.CreateDeleteRequestUri(Id.SubscriptionId); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new TrafficManagerArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -152,7 +154,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _trafficManagerUserMetricsTrafficManagerUserMetricsKeysRestClient.Delete(Id.SubscriptionId, cancellationToken); - var operation = new TrafficManagerArmOperation(response); + var uri = _trafficManagerUserMetricsTrafficManagerUserMetricsKeysRestClient.CreateDeleteRequestUri(Id.SubscriptionId); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new TrafficManagerArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -194,7 +198,9 @@ public virtual async Task> Creat try { var response = await _trafficManagerUserMetricsTrafficManagerUserMetricsKeysRestClient.CreateOrUpdateAsync(Id.SubscriptionId, cancellationToken).ConfigureAwait(false); - var operation = new TrafficManagerArmOperation(Response.FromValue(new TrafficManagerUserMetricsResource(Client, response), response.GetRawResponse())); + var uri = _trafficManagerUserMetricsTrafficManagerUserMetricsKeysRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new TrafficManagerArmOperation(Response.FromValue(new TrafficManagerUserMetricsResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -236,7 +242,9 @@ public virtual ArmOperation CreateOrUpdate(Wa try { var response = _trafficManagerUserMetricsTrafficManagerUserMetricsKeysRestClient.CreateOrUpdate(Id.SubscriptionId, cancellationToken); - var operation = new TrafficManagerArmOperation(Response.FromValue(new TrafficManagerUserMetricsResource(Client, response), response.GetRawResponse())); + var uri = _trafficManagerUserMetricsTrafficManagerUserMetricsKeysRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new TrafficManagerArmOperation(Response.FromValue(new TrafficManagerUserMetricsResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/LongRunningOperation/VoiceServicesArmOperation.cs b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/LongRunningOperation/VoiceServicesArmOperation.cs index 198d2e1df838..4b20ea94452e 100644 --- a/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/LongRunningOperation/VoiceServicesArmOperation.cs +++ b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/LongRunningOperation/VoiceServicesArmOperation.cs @@ -20,21 +20,24 @@ internal class VoiceServicesArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of VoiceServicesArmOperation for mocking. protected VoiceServicesArmOperation() { } - internal VoiceServicesArmOperation(Response response) + internal VoiceServicesArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal VoiceServicesArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "VoiceServicesArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal VoiceServicesArmOperation(ClientDiagnostics clientDiagnostics, HttpPipe public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/LongRunningOperation/VoiceServicesArmOperationOfT.cs b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/LongRunningOperation/VoiceServicesArmOperationOfT.cs index 3c64c4f50f4b..ae967b2fe269 100644 --- a/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/LongRunningOperation/VoiceServicesArmOperationOfT.cs +++ b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/LongRunningOperation/VoiceServicesArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class VoiceServicesArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of VoiceServicesArmOperation for mocking. protected VoiceServicesArmOperation() { } - internal VoiceServicesArmOperation(Response response) + internal VoiceServicesArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal VoiceServicesArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "VoiceServicesArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal VoiceServicesArmOperation(IOperationSource source, ClientDiagnostics public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Models/VoiceServicesCommunicationsGatewayResource.Serialization.cs b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Models/VoiceServicesCommunicationsGatewayResource.Serialization.cs new file mode 100644 index 000000000000..79fdfb20f556 --- /dev/null +++ b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Models/VoiceServicesCommunicationsGatewayResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.VoiceServices +{ + public partial class VoiceServicesCommunicationsGatewayResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + VoiceServicesCommunicationsGatewayData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + VoiceServicesCommunicationsGatewayData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Models/VoiceServicesTestLineResource.Serialization.cs b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Models/VoiceServicesTestLineResource.Serialization.cs new file mode 100644 index 000000000000..7f88a870aa5a --- /dev/null +++ b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Models/VoiceServicesTestLineResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.VoiceServices +{ + public partial class VoiceServicesTestLineResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + VoiceServicesTestLineData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + VoiceServicesTestLineData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/RestOperations/CommunicationsGatewaysRestOperations.cs b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/RestOperations/CommunicationsGatewaysRestOperations.cs index abe1a97a9e61..0c1470cdfcbc 100644 --- a/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/RestOperations/CommunicationsGatewaysRestOperations.cs +++ b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/RestOperations/CommunicationsGatewaysRestOperations.cs @@ -37,6 +37,17 @@ public CommunicationsGatewaysRestOperations(HttpPipeline pipeline, string applic _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.VoiceServices/communicationsGateways", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,19 @@ public Response ListBySubscription } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.VoiceServices/communicationsGateways", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -177,6 +201,20 @@ public Response ListByResourceGrou } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string communicationsGatewayName) + { + 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.VoiceServices/communicationsGateways/", false); + uri.AppendPath(communicationsGatewayName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string communicationsGatewayName) { var message = _pipeline.CreateMessage(); @@ -259,6 +297,20 @@ public Response Get(string subscriptionI } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string communicationsGatewayName, VoiceServicesCommunicationsGatewayData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.VoiceServices/communicationsGateways/", false); + uri.AppendPath(communicationsGatewayName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string communicationsGatewayName, VoiceServicesCommunicationsGatewayData data) { var message = _pipeline.CreateMessage(); @@ -337,6 +389,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string communicationsGatewayName) + { + 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.VoiceServices/communicationsGateways/", false); + uri.AppendPath(communicationsGatewayName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string communicationsGatewayName) { var message = _pipeline.CreateMessage(); @@ -409,6 +475,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string communicationsGatewayName, VoiceServicesCommunicationsGatewayPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.VoiceServices/communicationsGateways/", false); + uri.AppendPath(communicationsGatewayName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string communicationsGatewayName, VoiceServicesCommunicationsGatewayPatch patch) { var message = _pipeline.CreateMessage(); @@ -495,6 +575,14 @@ public Response Update(string subscripti } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -563,6 +651,14 @@ public Response ListBySubscription } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/RestOperations/NameAvailabilityRestOperations.cs b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/RestOperations/NameAvailabilityRestOperations.cs index 6e4ff3b9d47e..fd6bca3de10c 100644 --- a/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/RestOperations/NameAvailabilityRestOperations.cs +++ b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/RestOperations/NameAvailabilityRestOperations.cs @@ -37,6 +37,19 @@ public NameAvailabilityRestOperations(HttpPipeline pipeline, string applicationI _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCheckLocalRequestUri(string subscriptionId, AzureLocation location, VoiceServicesCheckNameAvailabilityContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.VoiceServices/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/checkNameAvailability", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCheckLocalRequest(string subscriptionId, AzureLocation location, VoiceServicesCheckNameAvailabilityContent content) { var message = _pipeline.CreateMessage(); diff --git a/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/RestOperations/TestLinesRestOperations.cs b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/RestOperations/TestLinesRestOperations.cs index 99d44a3184fd..966722850fb8 100644 --- a/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/RestOperations/TestLinesRestOperations.cs +++ b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/RestOperations/TestLinesRestOperations.cs @@ -37,6 +37,21 @@ public TestLinesRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListByCommunicationsGatewayRequestUri(string subscriptionId, string resourceGroupName, string communicationsGatewayName) + { + 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.VoiceServices/communicationsGateways/", false); + uri.AppendPath(communicationsGatewayName, true); + uri.AppendPath("/testLines", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByCommunicationsGatewayRequest(string subscriptionId, string resourceGroupName, string communicationsGatewayName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response ListByCommunicationsGateway(str } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string communicationsGatewayName, string testLineName) + { + 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.VoiceServices/communicationsGateways/", false); + uri.AppendPath(communicationsGatewayName, true); + uri.AppendPath("/testLines/", false); + uri.AppendPath(testLineName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string communicationsGatewayName, string testLineName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscriptionId, string res } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string communicationsGatewayName, string testLineName, VoiceServicesTestLineData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.VoiceServices/communicationsGateways/", false); + uri.AppendPath(communicationsGatewayName, true); + uri.AppendPath("/testLines/", false); + uri.AppendPath(testLineName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string communicationsGatewayName, string testLineName, VoiceServicesTestLineData data) { var message = _pipeline.CreateMessage(); @@ -288,6 +335,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string communicationsGatewayName, string testLineName) + { + 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.VoiceServices/communicationsGateways/", false); + uri.AppendPath(communicationsGatewayName, true); + uri.AppendPath("/testLines/", false); + uri.AppendPath(testLineName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string communicationsGatewayName, string testLineName) { var message = _pipeline.CreateMessage(); @@ -366,6 +429,22 @@ public Response Delete(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string communicationsGatewayName, string testLineName, VoiceServicesTestLinePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.VoiceServices/communicationsGateways/", false); + uri.AppendPath(communicationsGatewayName, true); + uri.AppendPath("/testLines/", false); + uri.AppendPath(testLineName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string communicationsGatewayName, string testLineName, VoiceServicesTestLinePatch patch) { var message = _pipeline.CreateMessage(); @@ -458,6 +537,14 @@ public Response Update(string subscriptionId, string } } + internal RequestUriBuilder CreateListByCommunicationsGatewayNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string communicationsGatewayName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByCommunicationsGatewayNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string communicationsGatewayName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/LongRunningOperation/WebPubSubArmOperation.cs b/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/LongRunningOperation/WebPubSubArmOperation.cs index ee35c5cb3164..464c03a77e90 100644 --- a/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/LongRunningOperation/WebPubSubArmOperation.cs +++ b/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/LongRunningOperation/WebPubSubArmOperation.cs @@ -20,21 +20,24 @@ internal class WebPubSubArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of WebPubSubArmOperation for mocking. protected WebPubSubArmOperation() { } - internal WebPubSubArmOperation(Response response) + internal WebPubSubArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal WebPubSubArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "WebPubSubArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal WebPubSubArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/LongRunningOperation/WebPubSubArmOperationOfT.cs b/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/LongRunningOperation/WebPubSubArmOperationOfT.cs index 688fedace2f3..b56a7ea3d7e6 100644 --- a/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/LongRunningOperation/WebPubSubArmOperationOfT.cs +++ b/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/LongRunningOperation/WebPubSubArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class WebPubSubArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of WebPubSubArmOperation for mocking. protected WebPubSubArmOperation() { } - internal WebPubSubArmOperation(Response response) + internal WebPubSubArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal WebPubSubArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "WebPubSubArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal WebPubSubArmOperation(IOperationSource source, ClientDiagnostics cli public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/Models/WebPubSubHubResource.Serialization.cs b/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/Models/WebPubSubHubResource.Serialization.cs new file mode 100644 index 000000000000..1ea9a705348d --- /dev/null +++ b/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/Models/WebPubSubHubResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.WebPubSub +{ + public partial class WebPubSubHubResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + WebPubSubHubData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + WebPubSubHubData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/Models/WebPubSubPrivateEndpointConnectionResource.Serialization.cs b/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/Models/WebPubSubPrivateEndpointConnectionResource.Serialization.cs new file mode 100644 index 000000000000..f4ac836fdadb --- /dev/null +++ b/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/Models/WebPubSubPrivateEndpointConnectionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.WebPubSub +{ + public partial class WebPubSubPrivateEndpointConnectionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + WebPubSubPrivateEndpointConnectionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + WebPubSubPrivateEndpointConnectionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/Models/WebPubSubResource.Serialization.cs b/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/Models/WebPubSubResource.Serialization.cs new file mode 100644 index 000000000000..eb70963d79f6 --- /dev/null +++ b/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/Models/WebPubSubResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.WebPubSub +{ + public partial class WebPubSubResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + WebPubSubData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + WebPubSubData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/Models/WebPubSubSharedPrivateLinkResource.Serialization.cs b/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/Models/WebPubSubSharedPrivateLinkResource.Serialization.cs new file mode 100644 index 000000000000..4e056458e0b8 --- /dev/null +++ b/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/Models/WebPubSubSharedPrivateLinkResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.WebPubSub +{ + public partial class WebPubSubSharedPrivateLinkResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + WebPubSubSharedPrivateLinkData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + WebPubSubSharedPrivateLinkData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/RestOperations/UsagesRestOperations.cs b/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/RestOperations/UsagesRestOperations.cs index b3a8d70d4149..cf0b0f9b0ce3 100644 --- a/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/RestOperations/UsagesRestOperations.cs +++ b/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/RestOperations/UsagesRestOperations.cs @@ -37,6 +37,19 @@ public UsagesRestOperations(HttpPipeline pipeline, string applicationId, Uri end _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, AzureLocation location) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.SignalRService/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/usages", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, AzureLocation location) { var message = _pipeline.CreateMessage(); @@ -108,6 +121,14 @@ public Response List(string subscriptionId, AzureLocati } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, AzureLocation location) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, AzureLocation location) { var message = _pipeline.CreateMessage(); diff --git a/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/RestOperations/WebPubSubHubsRestOperations.cs b/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/RestOperations/WebPubSubHubsRestOperations.cs index d78a4884bdf4..4d74c01ec5f6 100644 --- a/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/RestOperations/WebPubSubHubsRestOperations.cs +++ b/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/RestOperations/WebPubSubHubsRestOperations.cs @@ -37,6 +37,21 @@ public WebPubSubHubsRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string resourceName) + { + 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.SignalRService/webPubSub/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/hubs", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response List(string subscriptionId, string resourceGro } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string hubName) + { + 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.SignalRService/webPubSub/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/hubs/", false); + uri.AppendPath(hubName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string resourceName, string hubName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscriptionId, string resourceGrou } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string hubName, WebPubSubHubData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.SignalRService/webPubSub/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/hubs/", false); + uri.AppendPath(hubName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string resourceName, string hubName, WebPubSubHubData data) { var message = _pipeline.CreateMessage(); @@ -288,6 +335,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string hubName) + { + 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.SignalRService/webPubSub/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/hubs/", false); + uri.AppendPath(hubName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string resourceName, string hubName) { var message = _pipeline.CreateMessage(); @@ -366,6 +429,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string resourceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/RestOperations/WebPubSubPrivateEndpointConnectionsRestOperations.cs b/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/RestOperations/WebPubSubPrivateEndpointConnectionsRestOperations.cs index 2ecfb541e48a..0035566bb860 100644 --- a/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/RestOperations/WebPubSubPrivateEndpointConnectionsRestOperations.cs +++ b/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/RestOperations/WebPubSubPrivateEndpointConnectionsRestOperations.cs @@ -37,6 +37,21 @@ public WebPubSubPrivateEndpointConnectionsRestOperations(HttpPipeline pipeline, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string resourceName) + { + 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.SignalRService/webPubSub/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/privateEndpointConnections", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response List(string subscriptionId, strin } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string privateEndpointConnectionName) + { + 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.SignalRService/webPubSub/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string resourceName, string privateEndpointConnectionName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscriptionI } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string privateEndpointConnectionName, WebPubSubPrivateEndpointConnectionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.SignalRService/webPubSub/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string resourceName, string privateEndpointConnectionName, WebPubSubPrivateEndpointConnectionData data) { var message = _pipeline.CreateMessage(); @@ -296,6 +343,22 @@ public Response Update(string subscripti } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string privateEndpointConnectionName) + { + 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.SignalRService/webPubSub/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string resourceName, string privateEndpointConnectionName) { var message = _pipeline.CreateMessage(); @@ -374,6 +437,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string resourceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/RestOperations/WebPubSubPrivateLinkResourcesRestOperations.cs b/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/RestOperations/WebPubSubPrivateLinkResourcesRestOperations.cs index aeb5f50f3826..f62277f6232e 100644 --- a/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/RestOperations/WebPubSubPrivateLinkResourcesRestOperations.cs +++ b/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/RestOperations/WebPubSubPrivateLinkResourcesRestOperations.cs @@ -37,6 +37,21 @@ public WebPubSubPrivateLinkResourcesRestOperations(HttpPipeline pipeline, string _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string resourceName) + { + 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.SignalRService/webPubSub/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/privateLinkResources", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,14 @@ public Response List(string subscriptionId, string reso } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string resourceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/RestOperations/WebPubSubRestOperations.cs b/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/RestOperations/WebPubSubRestOperations.cs index ffa356936470..4dcb6e0027b7 100644 --- a/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/RestOperations/WebPubSubRestOperations.cs +++ b/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/RestOperations/WebPubSubRestOperations.cs @@ -37,6 +37,19 @@ public WebPubSubRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCheckNameAvailabilityRequestUri(string subscriptionId, AzureLocation location, WebPubSubNameAvailabilityContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.SignalRService/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/checkNameAvailability", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCheckNameAvailabilityRequest(string subscriptionId, AzureLocation location, WebPubSubNameAvailabilityContent content) { var message = _pipeline.CreateMessage(); @@ -116,6 +129,17 @@ public Response CheckNameAvailability(string subscrip } } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.SignalRService/webPubSub", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -183,6 +207,19 @@ public Response ListBySubscription(string subscriptionId, } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.SignalRService/webPubSub", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -256,6 +293,20 @@ public Response ListByResourceGroup(string subscriptionId } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string resourceName) + { + 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.SignalRService/webPubSub/", false); + uri.AppendPath(resourceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); @@ -338,6 +389,20 @@ public Response Get(string subscriptionId, string resourceGroupNa } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string resourceName, WebPubSubData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.SignalRService/webPubSub/", false); + uri.AppendPath(resourceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string resourceName, WebPubSubData data) { var message = _pipeline.CreateMessage(); @@ -418,6 +483,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string resourceName) + { + 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.SignalRService/webPubSub/", false); + uri.AppendPath(resourceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); @@ -490,6 +569,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string resourceName, WebPubSubData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.SignalRService/webPubSub/", false); + uri.AppendPath(resourceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string resourceName, WebPubSubData data) { var message = _pipeline.CreateMessage(); @@ -568,6 +661,21 @@ public Response Update(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateListKeysRequestUri(string subscriptionId, string resourceGroupName, string resourceName) + { + 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.SignalRService/webPubSub/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/listKeys", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListKeysRequest(string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); @@ -647,6 +755,21 @@ public Response ListKeys(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateRegenerateKeyRequestUri(string subscriptionId, string resourceGroupName, string resourceName, WebPubSubRegenerateKeyContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.SignalRService/webPubSub/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/regenerateKey", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRegenerateKeyRequest(string subscriptionId, string resourceGroupName, string resourceName, WebPubSubRegenerateKeyContent content) { var message = _pipeline.CreateMessage(); @@ -724,6 +847,21 @@ public Response RegenerateKey(string subscriptionId, string resourceGroupName, s } } + internal RequestUriBuilder CreateRestartRequestUri(string subscriptionId, string resourceGroupName, string resourceName) + { + 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.SignalRService/webPubSub/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/restart", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRestartRequest(string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); @@ -795,6 +933,21 @@ public Response Restart(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreateListSkusRequestUri(string subscriptionId, string resourceGroupName, string resourceName) + { + 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.SignalRService/webPubSub/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/skus", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListSkusRequest(string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); @@ -874,6 +1027,14 @@ public Response ListSkus(string subscriptionId, string resourceGroupNam } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -942,6 +1103,14 @@ public Response ListBySubscriptionNextPage(string nextLin } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/RestOperations/WebPubSubSharedPrivateLinkResourcesRestOperations.cs b/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/RestOperations/WebPubSubSharedPrivateLinkResourcesRestOperations.cs index a234a0ed4d63..e35096b6d8c8 100644 --- a/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/RestOperations/WebPubSubSharedPrivateLinkResourcesRestOperations.cs +++ b/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/RestOperations/WebPubSubSharedPrivateLinkResourcesRestOperations.cs @@ -37,6 +37,21 @@ public WebPubSubSharedPrivateLinkResourcesRestOperations(HttpPipeline pipeline, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string resourceName) + { + 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.SignalRService/webPubSub/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/sharedPrivateLinkResources", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response List(string subscriptionId, strin } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string sharedPrivateLinkResourceName) + { + 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.SignalRService/webPubSub/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/sharedPrivateLinkResources/", false); + uri.AppendPath(sharedPrivateLinkResourceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string resourceName, string sharedPrivateLinkResourceName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscriptionId, strin } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string sharedPrivateLinkResourceName, WebPubSubSharedPrivateLinkData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.SignalRService/webPubSub/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/sharedPrivateLinkResources/", false); + uri.AppendPath(sharedPrivateLinkResourceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string resourceName, string sharedPrivateLinkResourceName, WebPubSubSharedPrivateLinkData data) { var message = _pipeline.CreateMessage(); @@ -288,6 +335,22 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string resourceName, string sharedPrivateLinkResourceName) + { + 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.SignalRService/webPubSub/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/sharedPrivateLinkResources/", false); + uri.AppendPath(sharedPrivateLinkResourceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string resourceName, string sharedPrivateLinkResourceName) { var message = _pipeline.CreateMessage(); @@ -366,6 +429,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string r } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string resourceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/WebPubSubPrivateEndpointConnectionCollection.cs b/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/WebPubSubPrivateEndpointConnectionCollection.cs index 8e68f3b0c852..22cc673009ff 100644 --- a/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/WebPubSubPrivateEndpointConnectionCollection.cs +++ b/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/WebPubSubPrivateEndpointConnectionCollection.cs @@ -90,7 +90,9 @@ public virtual async Task(Response.FromValue(new WebPubSubPrivateEndpointConnectionResource(Client, response), response.GetRawResponse())); + var uri = _webPubSubPrivateEndpointConnectionRestClient.CreateUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, privateEndpointConnectionName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new WebPubSubArmOperation(Response.FromValue(new WebPubSubPrivateEndpointConnectionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOr try { var response = _webPubSubPrivateEndpointConnectionRestClient.Update(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, privateEndpointConnectionName, data, cancellationToken); - var operation = new WebPubSubArmOperation(Response.FromValue(new WebPubSubPrivateEndpointConnectionResource(Client, response), response.GetRawResponse())); + var uri = _webPubSubPrivateEndpointConnectionRestClient.CreateUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, privateEndpointConnectionName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new WebPubSubArmOperation(Response.FromValue(new WebPubSubPrivateEndpointConnectionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/WebPubSubPrivateEndpointConnectionResource.cs b/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/WebPubSubPrivateEndpointConnectionResource.cs index e848fb9fbe41..9e54c15ba193 100644 --- a/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/WebPubSubPrivateEndpointConnectionResource.cs +++ b/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/WebPubSubPrivateEndpointConnectionResource.cs @@ -288,7 +288,9 @@ public virtual async Task(Response.FromValue(new WebPubSubPrivateEndpointConnectionResource(Client, response), response.GetRawResponse())); + var uri = _webPubSubPrivateEndpointConnectionRestClient.CreateUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new WebPubSubArmOperation(Response.FromValue(new WebPubSubPrivateEndpointConnectionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -334,7 +336,9 @@ public virtual ArmOperation Update(W try { var response = _webPubSubPrivateEndpointConnectionRestClient.Update(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new WebPubSubArmOperation(Response.FromValue(new WebPubSubPrivateEndpointConnectionResource(Client, response), response.GetRawResponse())); + var uri = _webPubSubPrivateEndpointConnectionRestClient.CreateUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new WebPubSubArmOperation(Response.FromValue(new WebPubSubPrivateEndpointConnectionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppCertificateCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppCertificateCollection.cs index f84d9e6103c1..50d82d35a411 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppCertificateCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppCertificateCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> CreateOrUpdateAs try { var response = await _appCertificateCertificatesRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, name, data, cancellationToken).ConfigureAwait(false); - var operation = new AppServiceArmOperation(Response.FromValue(new AppCertificateResource(Client, response), response.GetRawResponse())); + var uri = _appCertificateCertificatesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(Response.FromValue(new AppCertificateResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -140,7 +142,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wai try { var response = _appCertificateCertificatesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, name, data, cancellationToken); - var operation = new AppServiceArmOperation(Response.FromValue(new AppCertificateResource(Client, response), response.GetRawResponse())); + var uri = _appCertificateCertificatesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(Response.FromValue(new AppCertificateResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppCertificateResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppCertificateResource.cs index 34cae88ee0d1..3030e5f300cf 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppCertificateResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppCertificateResource.cs @@ -201,7 +201,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _appCertificateCertificatesRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new AppServiceArmOperation(response); + var uri = _appCertificateCertificatesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -243,7 +245,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _appCertificateCertificatesRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); - var operation = new AppServiceArmOperation(response); + var uri = _appCertificateCertificatesRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceCertificateOrderResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceCertificateOrderResource.cs index 2cb65d536f06..9f2ef09ccc76 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceCertificateOrderResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceCertificateOrderResource.cs @@ -346,7 +346,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _appServiceCertificateOrderRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new AppServiceArmOperation(response); + var uri = _appServiceCertificateOrderRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -388,7 +390,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _appServiceCertificateOrderRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); - var operation = new AppServiceArmOperation(response); + var uri = _appServiceCertificateOrderRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceCertificateResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceCertificateResource.cs index 1f7f231aed7e..91261e033b43 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceCertificateResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceCertificateResource.cs @@ -201,7 +201,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _appServiceCertificateAppServiceCertificateOrdersRestClient.DeleteCertificateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new AppServiceArmOperation(response); + var uri = _appServiceCertificateAppServiceCertificateOrdersRestClient.CreateDeleteCertificateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -243,7 +245,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _appServiceCertificateAppServiceCertificateOrdersRestClient.DeleteCertificate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new AppServiceArmOperation(response); + var uri = _appServiceCertificateAppServiceCertificateOrdersRestClient.CreateDeleteCertificateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceDomainResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceDomainResource.cs index 309d619a982c..124f136d26b6 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceDomainResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceDomainResource.cs @@ -271,7 +271,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, bool? f try { var response = await _appServiceDomainDomainsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, forceHardDeleteDomain, cancellationToken).ConfigureAwait(false); - var operation = new AppServiceArmOperation(response); + var uri = _appServiceDomainDomainsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, forceHardDeleteDomain); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -314,7 +316,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, bool? forceHardDeleteDom try { var response = _appServiceDomainDomainsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, forceHardDeleteDomain, cancellationToken); - var operation = new AppServiceArmOperation(response); + var uri = _appServiceDomainDomainsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, forceHardDeleteDomain); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServicePlanHybridConnectionNamespaceRelayResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServicePlanHybridConnectionNamespaceRelayResource.cs index d9f3cdec41d4..8f6b9b2e39c4 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServicePlanHybridConnectionNamespaceRelayResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServicePlanHybridConnectionNamespaceRelayResource.cs @@ -203,7 +203,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _appServicePlanHybridConnectionNamespaceRelayAppServicePlansRestClient.DeleteHybridConnectionAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new AppServiceArmOperation(response); + var uri = _appServicePlanHybridConnectionNamespaceRelayAppServicePlansRestClient.CreateDeleteHybridConnectionRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -245,7 +247,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _appServicePlanHybridConnectionNamespaceRelayAppServicePlansRestClient.DeleteHybridConnection(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new AppServiceArmOperation(response); + var uri = _appServicePlanHybridConnectionNamespaceRelayAppServicePlansRestClient.CreateDeleteHybridConnectionRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServicePlanResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServicePlanResource.cs index 7298a0811973..ec19518e1b7a 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServicePlanResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServicePlanResource.cs @@ -349,7 +349,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _appServicePlanRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new AppServiceArmOperation(response); + var uri = _appServicePlanRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -391,7 +393,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _appServicePlanRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); - var operation = new AppServiceArmOperation(response); + var uri = _appServicePlanRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServicePlanVirtualNetworkConnectionGatewayCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServicePlanVirtualNetworkConnectionGatewayCollection.cs index 4cdae7411d0a..cb689b1a7423 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServicePlanVirtualNetworkConnectionGatewayCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServicePlanVirtualNetworkConnectionGatewayCollection.cs @@ -87,7 +87,9 @@ public virtual async Task(Response.FromValue(new AppServicePlanVirtualNetworkConnectionGatewayResource(Client, response), response.GetRawResponse())); + var uri = _appServicePlanVirtualNetworkConnectionGatewayAppServicePlansRestClient.CreateUpdateVnetGatewayRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, gatewayName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(Response.FromValue(new AppServicePlanVirtualNetworkConnectionGatewayResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -136,7 +138,9 @@ public virtual ArmOperation(Response.FromValue(new AppServicePlanVirtualNetworkConnectionGatewayResource(Client, response), response.GetRawResponse())); + var uri = _appServicePlanVirtualNetworkConnectionGatewayAppServicePlansRestClient.CreateUpdateVnetGatewayRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, gatewayName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(Response.FromValue(new AppServicePlanVirtualNetworkConnectionGatewayResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServicePlanVirtualNetworkConnectionGatewayResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServicePlanVirtualNetworkConnectionGatewayResource.cs index 2a92341f0ec5..76ba3661d73e 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServicePlanVirtualNetworkConnectionGatewayResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServicePlanVirtualNetworkConnectionGatewayResource.cs @@ -205,7 +205,9 @@ public virtual async Task(Response.FromValue(new AppServicePlanVirtualNetworkConnectionGatewayResource(Client, response), response.GetRawResponse())); + var uri = _appServicePlanVirtualNetworkConnectionGatewayAppServicePlansRestClient.CreateUpdateVnetGatewayRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(Response.FromValue(new AppServicePlanVirtualNetworkConnectionGatewayResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -251,7 +253,9 @@ public virtual ArmOperation(Response.FromValue(new AppServicePlanVirtualNetworkConnectionGatewayResource(Client, response), response.GetRawResponse())); + var uri = _appServicePlanVirtualNetworkConnectionGatewayAppServicePlansRestClient.CreateUpdateVnetGatewayRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(Response.FromValue(new AppServicePlanVirtualNetworkConnectionGatewayResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceSourceControlCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceSourceControlCollection.cs index 8bf622b4595b..753b944e0efa 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceSourceControlCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceSourceControlCollection.cs @@ -91,7 +91,9 @@ public virtual async Task> CreateO try { var response = await _appServiceSourceControlRestClient.UpdateSourceControlAsync(sourceControlType, data, cancellationToken).ConfigureAwait(false); - var operation = new AppServiceArmOperation(Response.FromValue(new AppServiceSourceControlResource(Client, response), response.GetRawResponse())); + var uri = _appServiceSourceControlRestClient.CreateUpdateSourceControlRequestUri(sourceControlType, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(Response.FromValue(new AppServiceSourceControlResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -140,7 +142,9 @@ public virtual ArmOperation CreateOrUpdate(Wait try { var response = _appServiceSourceControlRestClient.UpdateSourceControl(sourceControlType, data, cancellationToken); - var operation = new AppServiceArmOperation(Response.FromValue(new AppServiceSourceControlResource(Client, response), response.GetRawResponse())); + var uri = _appServiceSourceControlRestClient.CreateUpdateSourceControlRequestUri(sourceControlType, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(Response.FromValue(new AppServiceSourceControlResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceSourceControlResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceSourceControlResource.cs index 0078b9f1e244..53ec89a98b89 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceSourceControlResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceSourceControlResource.cs @@ -202,7 +202,9 @@ public virtual async Task> UpdateA try { var response = await _appServiceSourceControlRestClient.UpdateSourceControlAsync(Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new AppServiceArmOperation(Response.FromValue(new AppServiceSourceControlResource(Client, response), response.GetRawResponse())); + var uri = _appServiceSourceControlRestClient.CreateUpdateSourceControlRequestUri(Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(Response.FromValue(new AppServiceSourceControlResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -248,7 +250,9 @@ public virtual ArmOperation Update(WaitUntil wa try { var response = _appServiceSourceControlRestClient.UpdateSourceControl(Id.Name, data, cancellationToken); - var operation = new AppServiceArmOperation(Response.FromValue(new AppServiceSourceControlResource(Client, response), response.GetRawResponse())); + var uri = _appServiceSourceControlRestClient.CreateUpdateSourceControlRequestUri(Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(Response.FromValue(new AppServiceSourceControlResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AseV3NetworkingConfigurationResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AseV3NetworkingConfigurationResource.cs index 84e0c1b5d315..8f5323dc73a0 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AseV3NetworkingConfigurationResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AseV3NetworkingConfigurationResource.cs @@ -203,7 +203,9 @@ public virtual async Task> Cr try { var response = await _aseV3NetworkingConfigurationAppServiceEnvironmentsRestClient.UpdateAseNetworkingConfigurationAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new AppServiceArmOperation(Response.FromValue(new AseV3NetworkingConfigurationResource(Client, response), response.GetRawResponse())); + var uri = _aseV3NetworkingConfigurationAppServiceEnvironmentsRestClient.CreateUpdateAseNetworkingConfigurationRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(Response.FromValue(new AseV3NetworkingConfigurationResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -249,7 +251,9 @@ public virtual ArmOperation CreateOrUpdate try { var response = _aseV3NetworkingConfigurationAppServiceEnvironmentsRestClient.UpdateAseNetworkingConfiguration(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, data, cancellationToken); - var operation = new AppServiceArmOperation(Response.FromValue(new AseV3NetworkingConfigurationResource(Client, response), response.GetRawResponse())); + var uri = _aseV3NetworkingConfigurationAppServiceEnvironmentsRestClient.CreateUpdateAseNetworkingConfigurationRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(Response.FromValue(new AseV3NetworkingConfigurationResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/DomainOwnershipIdentifierCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/DomainOwnershipIdentifierCollection.cs index 81d51b442117..0efff16d05c9 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/DomainOwnershipIdentifierCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/DomainOwnershipIdentifierCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> Creat try { var response = await _domainOwnershipIdentifierDomainsRestClient.CreateOrUpdateOwnershipIdentifierAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data, cancellationToken).ConfigureAwait(false); - var operation = new AppServiceArmOperation(Response.FromValue(new DomainOwnershipIdentifierResource(Client, response), response.GetRawResponse())); + var uri = _domainOwnershipIdentifierDomainsRestClient.CreateCreateOrUpdateOwnershipIdentifierRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(Response.FromValue(new DomainOwnershipIdentifierResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(Wa try { var response = _domainOwnershipIdentifierDomainsRestClient.CreateOrUpdateOwnershipIdentifier(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data, cancellationToken); - var operation = new AppServiceArmOperation(Response.FromValue(new DomainOwnershipIdentifierResource(Client, response), response.GetRawResponse())); + var uri = _domainOwnershipIdentifierDomainsRestClient.CreateCreateOrUpdateOwnershipIdentifierRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(Response.FromValue(new DomainOwnershipIdentifierResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/DomainOwnershipIdentifierResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/DomainOwnershipIdentifierResource.cs index ee628cd21c4b..eb2d9ccfcbd0 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/DomainOwnershipIdentifierResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/DomainOwnershipIdentifierResource.cs @@ -200,7 +200,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _domainOwnershipIdentifierDomainsRestClient.DeleteOwnershipIdentifierAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new AppServiceArmOperation(response); + var uri = _domainOwnershipIdentifierDomainsRestClient.CreateDeleteOwnershipIdentifierRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -242,7 +244,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _domainOwnershipIdentifierDomainsRestClient.DeleteOwnershipIdentifier(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new AppServiceArmOperation(response); + var uri = _domainOwnershipIdentifierDomainsRestClient.CreateDeleteOwnershipIdentifierRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/LogsSiteConfigResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/LogsSiteConfigResource.cs index b40aef9f5c98..daf3d1316928 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/LogsSiteConfigResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/LogsSiteConfigResource.cs @@ -203,7 +203,9 @@ public virtual async Task> CreateOrUpdateAs try { var response = await _logsSiteConfigWebAppsRestClient.UpdateDiagnosticLogsConfigAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new AppServiceArmOperation(Response.FromValue(new LogsSiteConfigResource(Client, response), response.GetRawResponse())); + var uri = _logsSiteConfigWebAppsRestClient.CreateUpdateDiagnosticLogsConfigRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(Response.FromValue(new LogsSiteConfigResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -249,7 +251,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wai try { var response = _logsSiteConfigWebAppsRestClient.UpdateDiagnosticLogsConfig(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, data, cancellationToken); - var operation = new AppServiceArmOperation(Response.FromValue(new LogsSiteConfigResource(Client, response), response.GetRawResponse())); + var uri = _logsSiteConfigWebAppsRestClient.CreateUpdateDiagnosticLogsConfigRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(Response.FromValue(new LogsSiteConfigResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/LogsSiteSlotConfigResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/LogsSiteSlotConfigResource.cs index e8bbf6ae58ae..a3168643ea6c 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/LogsSiteSlotConfigResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/LogsSiteSlotConfigResource.cs @@ -204,7 +204,9 @@ public virtual async Task> CreateOrUpda try { var response = await _logsSiteSlotConfigWebAppsRestClient.UpdateDiagnosticLogsConfigSlotAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new AppServiceArmOperation(Response.FromValue(new LogsSiteSlotConfigResource(Client, response), response.GetRawResponse())); + var uri = _logsSiteSlotConfigWebAppsRestClient.CreateUpdateDiagnosticLogsConfigSlotRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(Response.FromValue(new LogsSiteSlotConfigResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -250,7 +252,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil try { var response = _logsSiteSlotConfigWebAppsRestClient.UpdateDiagnosticLogsConfigSlot(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, data, cancellationToken); - var operation = new AppServiceArmOperation(Response.FromValue(new LogsSiteSlotConfigResource(Client, response), response.GetRawResponse())); + var uri = _logsSiteSlotConfigWebAppsRestClient.CreateUpdateDiagnosticLogsConfigSlotRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(Response.FromValue(new LogsSiteSlotConfigResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/LongRunningOperation/AppServiceArmOperation.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/LongRunningOperation/AppServiceArmOperation.cs index e077d3b282a4..24fd9603feee 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/LongRunningOperation/AppServiceArmOperation.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/LongRunningOperation/AppServiceArmOperation.cs @@ -20,21 +20,24 @@ internal class AppServiceArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of AppServiceArmOperation for mocking. protected AppServiceArmOperation() { } - internal AppServiceArmOperation(Response response) + internal AppServiceArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal AppServiceArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "AppServiceArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal AppServiceArmOperation(ClientDiagnostics clientDiagnostics, HttpPipelin public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/LongRunningOperation/AppServiceArmOperationOfT.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/LongRunningOperation/AppServiceArmOperationOfT.cs index 4f8e2336873b..2d9011ee2194 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/LongRunningOperation/AppServiceArmOperationOfT.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/LongRunningOperation/AppServiceArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class AppServiceArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of AppServiceArmOperation for mocking. protected AppServiceArmOperation() { } - internal AppServiceArmOperation(Response response) + internal AppServiceArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal AppServiceArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "AppServiceArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal AppServiceArmOperation(IOperationSource source, ClientDiagnostics cl public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppCertificateResource.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppCertificateResource.Serialization.cs new file mode 100644 index 000000000000..b303baf2ca2c --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppCertificateResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppService +{ + public partial class AppCertificateResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + AppCertificateData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + AppCertificateData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceCertificateOrderResource.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceCertificateOrderResource.Serialization.cs new file mode 100644 index 000000000000..8df189556e72 --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceCertificateOrderResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppService +{ + public partial class AppServiceCertificateOrderResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + AppServiceCertificateOrderData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + AppServiceCertificateOrderData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceCertificateResource.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceCertificateResource.Serialization.cs new file mode 100644 index 000000000000..f5d116084a49 --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceCertificateResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppService +{ + public partial class AppServiceCertificateResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + AppServiceCertificateData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + AppServiceCertificateData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceDomainResource.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceDomainResource.Serialization.cs new file mode 100644 index 000000000000..69549ffd04c7 --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceDomainResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppService +{ + public partial class AppServiceDomainResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + AppServiceDomainData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + AppServiceDomainData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceEnvironmentResource.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceEnvironmentResource.Serialization.cs new file mode 100644 index 000000000000..6e1d79e5e2b5 --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceEnvironmentResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppService +{ + public partial class AppServiceEnvironmentResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + AppServiceEnvironmentData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + AppServiceEnvironmentData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServicePlanHybridConnectionNamespaceRelayResource.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServicePlanHybridConnectionNamespaceRelayResource.Serialization.cs new file mode 100644 index 000000000000..e064db807b4f --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServicePlanHybridConnectionNamespaceRelayResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppService +{ + public partial class AppServicePlanHybridConnectionNamespaceRelayResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + HybridConnectionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + HybridConnectionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServicePlanResource.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServicePlanResource.Serialization.cs new file mode 100644 index 000000000000..517505c01cac --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServicePlanResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppService +{ + public partial class AppServicePlanResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + AppServicePlanData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + AppServicePlanData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServicePlanVirtualNetworkConnectionGatewayResource.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServicePlanVirtualNetworkConnectionGatewayResource.Serialization.cs new file mode 100644 index 000000000000..054353467135 --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServicePlanVirtualNetworkConnectionGatewayResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppService +{ + public partial class AppServicePlanVirtualNetworkConnectionGatewayResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + AppServiceVirtualNetworkGatewayData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + AppServiceVirtualNetworkGatewayData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServicePlanVirtualNetworkConnectionResource.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServicePlanVirtualNetworkConnectionResource.Serialization.cs new file mode 100644 index 000000000000..02b90bf910da --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServicePlanVirtualNetworkConnectionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppService +{ + public partial class AppServicePlanVirtualNetworkConnectionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + AppServiceVirtualNetworkData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + AppServiceVirtualNetworkData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceSourceControlResource.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceSourceControlResource.Serialization.cs new file mode 100644 index 000000000000..fad0a302ae40 --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceSourceControlResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppService +{ + public partial class AppServiceSourceControlResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + AppServiceSourceControlData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + AppServiceSourceControlData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AseV3NetworkingConfigurationResource.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AseV3NetworkingConfigurationResource.Serialization.cs new file mode 100644 index 000000000000..7b057931d31a --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AseV3NetworkingConfigurationResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppService +{ + public partial class AseV3NetworkingConfigurationResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + AseV3NetworkingConfigurationData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + AseV3NetworkingConfigurationData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/CertificateOrderDetectorResource.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/CertificateOrderDetectorResource.Serialization.cs new file mode 100644 index 000000000000..6af060a64533 --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/CertificateOrderDetectorResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppService +{ + public partial class CertificateOrderDetectorResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + AppServiceDetectorData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + AppServiceDetectorData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DeletedSiteResource.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DeletedSiteResource.Serialization.cs new file mode 100644 index 000000000000..f8a38dcc397e --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DeletedSiteResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppService +{ + public partial class DeletedSiteResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DeletedSiteData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DeletedSiteData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DomainOwnershipIdentifierResource.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DomainOwnershipIdentifierResource.Serialization.cs new file mode 100644 index 000000000000..8109a9dd2dd4 --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DomainOwnershipIdentifierResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppService +{ + public partial class DomainOwnershipIdentifierResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DomainOwnershipIdentifierData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DomainOwnershipIdentifierData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/HostingEnvironmentDetectorResource.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/HostingEnvironmentDetectorResource.Serialization.cs new file mode 100644 index 000000000000..6cf1e6fb4223 --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/HostingEnvironmentDetectorResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppService +{ + public partial class HostingEnvironmentDetectorResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + AppServiceDetectorData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + AppServiceDetectorData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/HostingEnvironmentMultiRolePoolResource.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/HostingEnvironmentMultiRolePoolResource.Serialization.cs new file mode 100644 index 000000000000..063392382cd2 --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/HostingEnvironmentMultiRolePoolResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppService +{ + public partial class HostingEnvironmentMultiRolePoolResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + AppServiceWorkerPoolData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + AppServiceWorkerPoolData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/HostingEnvironmentPrivateEndpointConnectionResource.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/HostingEnvironmentPrivateEndpointConnectionResource.Serialization.cs new file mode 100644 index 000000000000..2aa47d74972e --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/HostingEnvironmentPrivateEndpointConnectionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppService +{ + public partial class HostingEnvironmentPrivateEndpointConnectionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + RemotePrivateEndpointConnectionARMResourceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + RemotePrivateEndpointConnectionARMResourceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/HostingEnvironmentRecommendationResource.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/HostingEnvironmentRecommendationResource.Serialization.cs new file mode 100644 index 000000000000..00cab6387b63 --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/HostingEnvironmentRecommendationResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppService +{ + public partial class HostingEnvironmentRecommendationResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + RecommendationRuleData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + RecommendationRuleData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/HostingEnvironmentWorkerPoolResource.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/HostingEnvironmentWorkerPoolResource.Serialization.cs new file mode 100644 index 000000000000..e65ec0d201d1 --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/HostingEnvironmentWorkerPoolResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppService +{ + public partial class HostingEnvironmentWorkerPoolResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + AppServiceWorkerPoolData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + AppServiceWorkerPoolData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/HybridConnectionLimitResource.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/HybridConnectionLimitResource.Serialization.cs new file mode 100644 index 000000000000..24931e2b3361 --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/HybridConnectionLimitResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppService +{ + public partial class HybridConnectionLimitResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + HybridConnectionLimitData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + HybridConnectionLimitData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/KubeEnvironmentResource.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/KubeEnvironmentResource.Serialization.cs new file mode 100644 index 000000000000..f921a2df88d0 --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/KubeEnvironmentResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppService +{ + public partial class KubeEnvironmentResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + KubeEnvironmentData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + KubeEnvironmentData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/LogsSiteConfigResource.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/LogsSiteConfigResource.Serialization.cs new file mode 100644 index 000000000000..c6f1c459b0c1 --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/LogsSiteConfigResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppService +{ + public partial class LogsSiteConfigResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SiteLogsConfigData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SiteLogsConfigData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/LogsSiteSlotConfigResource.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/LogsSiteSlotConfigResource.Serialization.cs new file mode 100644 index 000000000000..2d7d89e87e42 --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/LogsSiteSlotConfigResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppService +{ + public partial class LogsSiteSlotConfigResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SiteLogsConfigData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SiteLogsConfigData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/MigrateMySqlStatusResource.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/MigrateMySqlStatusResource.Serialization.cs new file mode 100644 index 000000000000..55c5c0832272 --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/MigrateMySqlStatusResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppService +{ + public partial class MigrateMySqlStatusResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MigrateMySqlStatusData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MigrateMySqlStatusData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/NetworkFeatureResource.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/NetworkFeatureResource.Serialization.cs new file mode 100644 index 000000000000..e446c76d2f83 --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/NetworkFeatureResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppService +{ + public partial class NetworkFeatureResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + NetworkFeatureData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + NetworkFeatureData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/PublishingUserResource.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/PublishingUserResource.Serialization.cs new file mode 100644 index 000000000000..d3548451b3f1 --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/PublishingUserResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppService +{ + public partial class PublishingUserResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + PublishingUserData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + PublishingUserData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ScmSiteBasicPublishingCredentialsPolicyResource.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ScmSiteBasicPublishingCredentialsPolicyResource.Serialization.cs new file mode 100644 index 000000000000..71d3e14efb18 --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ScmSiteBasicPublishingCredentialsPolicyResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppService +{ + public partial class ScmSiteBasicPublishingCredentialsPolicyResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + CsmPublishingCredentialsPoliciesEntityData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + CsmPublishingCredentialsPoliciesEntityData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ScmSiteSlotBasicPublishingCredentialsPolicyResource.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ScmSiteSlotBasicPublishingCredentialsPolicyResource.Serialization.cs new file mode 100644 index 000000000000..279c34f5e811 --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ScmSiteSlotBasicPublishingCredentialsPolicyResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppService +{ + public partial class ScmSiteSlotBasicPublishingCredentialsPolicyResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + CsmPublishingCredentialsPoliciesEntityData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + CsmPublishingCredentialsPoliciesEntityData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteBackupResource.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteBackupResource.Serialization.cs new file mode 100644 index 000000000000..a2e342ea248f --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteBackupResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppService +{ + public partial class SiteBackupResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + WebAppBackupData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + WebAppBackupData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteConfigAppsettingResource.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteConfigAppsettingResource.Serialization.cs new file mode 100644 index 000000000000..f3de44feff49 --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteConfigAppsettingResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppService +{ + public partial class SiteConfigAppsettingResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ApiKeyVaultReferenceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ApiKeyVaultReferenceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteConfigSnapshotResource.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteConfigSnapshotResource.Serialization.cs new file mode 100644 index 000000000000..683e35049fe3 --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteConfigSnapshotResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppService +{ + public partial class SiteConfigSnapshotResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SiteConfigData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SiteConfigData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteDeploymentResource.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteDeploymentResource.Serialization.cs new file mode 100644 index 000000000000..76eee18e7379 --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteDeploymentResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppService +{ + public partial class SiteDeploymentResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + WebAppDeploymentData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + WebAppDeploymentData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteDetectorResource.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteDetectorResource.Serialization.cs new file mode 100644 index 000000000000..6f284b68ee35 --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteDetectorResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppService +{ + public partial class SiteDetectorResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + AppServiceDetectorData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + AppServiceDetectorData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteDiagnosticAnalysisResource.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteDiagnosticAnalysisResource.Serialization.cs new file mode 100644 index 000000000000..3839155dd691 --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteDiagnosticAnalysisResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppService +{ + public partial class SiteDiagnosticAnalysisResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + WebSiteAnalysisDefinitionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + WebSiteAnalysisDefinitionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteDiagnosticDetectorResource.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteDiagnosticDetectorResource.Serialization.cs new file mode 100644 index 000000000000..66cb84f62b78 --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteDiagnosticDetectorResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppService +{ + public partial class SiteDiagnosticDetectorResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DetectorDefinitionResourceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DetectorDefinitionResourceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteDiagnosticResource.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteDiagnosticResource.Serialization.cs new file mode 100644 index 000000000000..b8f937b44790 --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteDiagnosticResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppService +{ + public partial class SiteDiagnosticResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DiagnosticCategoryData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DiagnosticCategoryData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteDomainOwnershipIdentifierResource.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteDomainOwnershipIdentifierResource.Serialization.cs new file mode 100644 index 000000000000..2adb7a5ddbc6 --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteDomainOwnershipIdentifierResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppService +{ + public partial class SiteDomainOwnershipIdentifierResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + AppServiceIdentifierData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + AppServiceIdentifierData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteExtensionResource.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteExtensionResource.Serialization.cs new file mode 100644 index 000000000000..b94e26fe2340 --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteExtensionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppService +{ + public partial class SiteExtensionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MSDeployStatusData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MSDeployStatusData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteFunctionResource.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteFunctionResource.Serialization.cs new file mode 100644 index 000000000000..a70f719e2fb5 --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteFunctionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppService +{ + public partial class SiteFunctionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + FunctionEnvelopeData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + FunctionEnvelopeData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteHostNameBindingResource.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteHostNameBindingResource.Serialization.cs new file mode 100644 index 000000000000..1e278307c0a9 --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteHostNameBindingResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppService +{ + public partial class SiteHostNameBindingResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + HostNameBindingData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + HostNameBindingData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteHybridConnectionNamespaceRelayResource.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteHybridConnectionNamespaceRelayResource.Serialization.cs new file mode 100644 index 000000000000..b943c00d8699 --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteHybridConnectionNamespaceRelayResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppService +{ + public partial class SiteHybridConnectionNamespaceRelayResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + HybridConnectionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + HybridConnectionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteInstanceExtensionResource.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteInstanceExtensionResource.Serialization.cs new file mode 100644 index 000000000000..8d4b2dc5f592 --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteInstanceExtensionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppService +{ + public partial class SiteInstanceExtensionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MSDeployStatusData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MSDeployStatusData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteInstanceProcessModuleResource.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteInstanceProcessModuleResource.Serialization.cs new file mode 100644 index 000000000000..0b9c4cae756f --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteInstanceProcessModuleResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppService +{ + public partial class SiteInstanceProcessModuleResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ProcessModuleInfoData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ProcessModuleInfoData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteInstanceProcessResource.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteInstanceProcessResource.Serialization.cs new file mode 100644 index 000000000000..68bb1c5bbe41 --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteInstanceProcessResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppService +{ + public partial class SiteInstanceProcessResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ProcessInfoData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ProcessInfoData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteInstanceResource.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteInstanceResource.Serialization.cs new file mode 100644 index 000000000000..c7b770b2291e --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteInstanceResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppService +{ + public partial class SiteInstanceResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + WebSiteInstanceStatusData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + WebSiteInstanceStatusData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteNetworkConfigResource.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteNetworkConfigResource.Serialization.cs new file mode 100644 index 000000000000..e6ee51556e47 --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteNetworkConfigResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppService +{ + public partial class SiteNetworkConfigResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SwiftVirtualNetworkData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SwiftVirtualNetworkData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SitePrivateEndpointConnectionResource.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SitePrivateEndpointConnectionResource.Serialization.cs new file mode 100644 index 000000000000..a51a88fabe97 --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SitePrivateEndpointConnectionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppService +{ + public partial class SitePrivateEndpointConnectionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + RemotePrivateEndpointConnectionARMResourceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + RemotePrivateEndpointConnectionARMResourceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteProcessModuleResource.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteProcessModuleResource.Serialization.cs new file mode 100644 index 000000000000..6080f2736ba2 --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteProcessModuleResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppService +{ + public partial class SiteProcessModuleResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ProcessModuleInfoData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ProcessModuleInfoData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteProcessResource.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteProcessResource.Serialization.cs new file mode 100644 index 000000000000..ca00aeb9fcef --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteProcessResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppService +{ + public partial class SiteProcessResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ProcessInfoData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ProcessInfoData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SitePublicCertificateResource.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SitePublicCertificateResource.Serialization.cs new file mode 100644 index 000000000000..3ffe3c95bb50 --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SitePublicCertificateResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppService +{ + public partial class SitePublicCertificateResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + PublicCertificateData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + PublicCertificateData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteRecommendationResource.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteRecommendationResource.Serialization.cs new file mode 100644 index 000000000000..5349745593f3 --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteRecommendationResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppService +{ + public partial class SiteRecommendationResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + RecommendationRuleData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + RecommendationRuleData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteSlotBackupResource.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteSlotBackupResource.Serialization.cs new file mode 100644 index 000000000000..1219a1fdae74 --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteSlotBackupResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppService +{ + public partial class SiteSlotBackupResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + WebAppBackupData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + WebAppBackupData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteSlotConfigSnapshotResource.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteSlotConfigSnapshotResource.Serialization.cs new file mode 100644 index 000000000000..b0e306637199 --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteSlotConfigSnapshotResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppService +{ + public partial class SiteSlotConfigSnapshotResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SiteConfigData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SiteConfigData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteSlotDeploymentResource.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteSlotDeploymentResource.Serialization.cs new file mode 100644 index 000000000000..59f152a8076d --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteSlotDeploymentResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppService +{ + public partial class SiteSlotDeploymentResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + WebAppDeploymentData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + WebAppDeploymentData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteSlotDetectorResource.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteSlotDetectorResource.Serialization.cs new file mode 100644 index 000000000000..21410be6b970 --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteSlotDetectorResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppService +{ + public partial class SiteSlotDetectorResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + AppServiceDetectorData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + AppServiceDetectorData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteSlotDiagnosticAnalysisResource.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteSlotDiagnosticAnalysisResource.Serialization.cs new file mode 100644 index 000000000000..ee32a286a17e --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteSlotDiagnosticAnalysisResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppService +{ + public partial class SiteSlotDiagnosticAnalysisResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + WebSiteAnalysisDefinitionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + WebSiteAnalysisDefinitionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteSlotDiagnosticDetectorResource.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteSlotDiagnosticDetectorResource.Serialization.cs new file mode 100644 index 000000000000..aea2d106c70a --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteSlotDiagnosticDetectorResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppService +{ + public partial class SiteSlotDiagnosticDetectorResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DetectorDefinitionResourceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DetectorDefinitionResourceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteSlotDiagnosticResource.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteSlotDiagnosticResource.Serialization.cs new file mode 100644 index 000000000000..cfc10374b04c --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteSlotDiagnosticResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppService +{ + public partial class SiteSlotDiagnosticResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + DiagnosticCategoryData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + DiagnosticCategoryData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteSlotDomainOwnershipIdentifierResource.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteSlotDomainOwnershipIdentifierResource.Serialization.cs new file mode 100644 index 000000000000..9694494be395 --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteSlotDomainOwnershipIdentifierResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppService +{ + public partial class SiteSlotDomainOwnershipIdentifierResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + AppServiceIdentifierData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + AppServiceIdentifierData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteSlotExtensionResource.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteSlotExtensionResource.Serialization.cs new file mode 100644 index 000000000000..0315619e98d4 --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteSlotExtensionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppService +{ + public partial class SiteSlotExtensionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MSDeployStatusData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MSDeployStatusData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteSlotFunctionResource.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteSlotFunctionResource.Serialization.cs new file mode 100644 index 000000000000..5bfff79a9f8c --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteSlotFunctionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppService +{ + public partial class SiteSlotFunctionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + FunctionEnvelopeData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + FunctionEnvelopeData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteSlotHostNameBindingResource.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteSlotHostNameBindingResource.Serialization.cs new file mode 100644 index 000000000000..95d8637e52b4 --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteSlotHostNameBindingResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppService +{ + public partial class SiteSlotHostNameBindingResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + HostNameBindingData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + HostNameBindingData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteSlotHybridConnectionNamespaceRelayResource.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteSlotHybridConnectionNamespaceRelayResource.Serialization.cs new file mode 100644 index 000000000000..c25569a7e10c --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteSlotHybridConnectionNamespaceRelayResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppService +{ + public partial class SiteSlotHybridConnectionNamespaceRelayResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + HybridConnectionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + HybridConnectionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteSlotInstanceExtensionResource.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteSlotInstanceExtensionResource.Serialization.cs new file mode 100644 index 000000000000..2197b9ac406d --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteSlotInstanceExtensionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppService +{ + public partial class SiteSlotInstanceExtensionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + MSDeployStatusData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + MSDeployStatusData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteSlotInstanceProcessModuleResource.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteSlotInstanceProcessModuleResource.Serialization.cs new file mode 100644 index 000000000000..18faf6384b29 --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteSlotInstanceProcessModuleResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppService +{ + public partial class SiteSlotInstanceProcessModuleResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ProcessModuleInfoData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ProcessModuleInfoData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteSlotInstanceProcessResource.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteSlotInstanceProcessResource.Serialization.cs new file mode 100644 index 000000000000..c187903f9183 --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteSlotInstanceProcessResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppService +{ + public partial class SiteSlotInstanceProcessResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ProcessInfoData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ProcessInfoData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteSlotInstanceResource.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteSlotInstanceResource.Serialization.cs new file mode 100644 index 000000000000..d573a701645e --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteSlotInstanceResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppService +{ + public partial class SiteSlotInstanceResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + WebSiteInstanceStatusData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + WebSiteInstanceStatusData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteSlotNetworkConfigResource.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteSlotNetworkConfigResource.Serialization.cs new file mode 100644 index 000000000000..cc91e40b0321 --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteSlotNetworkConfigResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppService +{ + public partial class SiteSlotNetworkConfigResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SwiftVirtualNetworkData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SwiftVirtualNetworkData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteSlotPrivateEndpointConnectionResource.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteSlotPrivateEndpointConnectionResource.Serialization.cs new file mode 100644 index 000000000000..dea912409407 --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteSlotPrivateEndpointConnectionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppService +{ + public partial class SiteSlotPrivateEndpointConnectionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + RemotePrivateEndpointConnectionARMResourceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + RemotePrivateEndpointConnectionARMResourceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteSlotProcessModuleResource.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteSlotProcessModuleResource.Serialization.cs new file mode 100644 index 000000000000..7695aa8f3230 --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteSlotProcessModuleResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppService +{ + public partial class SiteSlotProcessModuleResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ProcessModuleInfoData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ProcessModuleInfoData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteSlotProcessResource.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteSlotProcessResource.Serialization.cs new file mode 100644 index 000000000000..6e8d17da6b1c --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteSlotProcessResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppService +{ + public partial class SiteSlotProcessResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ProcessInfoData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ProcessInfoData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteSlotVirtualNetworkConnectionGatewayResource.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteSlotVirtualNetworkConnectionGatewayResource.Serialization.cs new file mode 100644 index 000000000000..778925829f65 --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteSlotVirtualNetworkConnectionGatewayResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppService +{ + public partial class SiteSlotVirtualNetworkConnectionGatewayResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + AppServiceVirtualNetworkGatewayData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + AppServiceVirtualNetworkGatewayData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteSlotVirtualNetworkConnectionResource.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteSlotVirtualNetworkConnectionResource.Serialization.cs new file mode 100644 index 000000000000..a713aaa7f5d9 --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteSlotVirtualNetworkConnectionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppService +{ + public partial class SiteSlotVirtualNetworkConnectionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + AppServiceVirtualNetworkData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + AppServiceVirtualNetworkData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteVirtualNetworkConnectionGatewayResource.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteVirtualNetworkConnectionGatewayResource.Serialization.cs new file mode 100644 index 000000000000..e32cd8cb72df --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteVirtualNetworkConnectionGatewayResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppService +{ + public partial class SiteVirtualNetworkConnectionGatewayResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + AppServiceVirtualNetworkGatewayData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + AppServiceVirtualNetworkGatewayData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteVirtualNetworkConnectionResource.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteVirtualNetworkConnectionResource.Serialization.cs new file mode 100644 index 000000000000..6d1a0ce2ce59 --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteVirtualNetworkConnectionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppService +{ + public partial class SiteVirtualNetworkConnectionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + AppServiceVirtualNetworkData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + AppServiceVirtualNetworkData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SlotConfigNamesResource.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SlotConfigNamesResource.Serialization.cs new file mode 100644 index 000000000000..21bfe8916360 --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SlotConfigNamesResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppService +{ + public partial class SlotConfigNamesResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SlotConfigNamesResourceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SlotConfigNamesResourceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StaticSiteBuildResource.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StaticSiteBuildResource.Serialization.cs new file mode 100644 index 000000000000..8055ed81bd4c --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StaticSiteBuildResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppService +{ + public partial class StaticSiteBuildResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + StaticSiteBuildData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + StaticSiteBuildData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StaticSiteBuildUserProvidedFunctionAppResource.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StaticSiteBuildUserProvidedFunctionAppResource.Serialization.cs new file mode 100644 index 000000000000..47c8be785f5a --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StaticSiteBuildUserProvidedFunctionAppResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppService +{ + public partial class StaticSiteBuildUserProvidedFunctionAppResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + StaticSiteUserProvidedFunctionAppData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + StaticSiteUserProvidedFunctionAppData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StaticSiteCustomDomainOverviewResource.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StaticSiteCustomDomainOverviewResource.Serialization.cs new file mode 100644 index 000000000000..eaf01c2cdb17 --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StaticSiteCustomDomainOverviewResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppService +{ + public partial class StaticSiteCustomDomainOverviewResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + StaticSiteCustomDomainOverviewData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + StaticSiteCustomDomainOverviewData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StaticSitePrivateEndpointConnectionResource.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StaticSitePrivateEndpointConnectionResource.Serialization.cs new file mode 100644 index 000000000000..6e6d6b2411a0 --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StaticSitePrivateEndpointConnectionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppService +{ + public partial class StaticSitePrivateEndpointConnectionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + RemotePrivateEndpointConnectionARMResourceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + RemotePrivateEndpointConnectionARMResourceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StaticSiteResource.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StaticSiteResource.Serialization.cs new file mode 100644 index 000000000000..0538d3ad0d88 --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StaticSiteResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppService +{ + public partial class StaticSiteResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + StaticSiteData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + StaticSiteData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StaticSiteUserProvidedFunctionAppResource.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StaticSiteUserProvidedFunctionAppResource.Serialization.cs new file mode 100644 index 000000000000..34776725ea7a --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StaticSiteUserProvidedFunctionAppResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppService +{ + public partial class StaticSiteUserProvidedFunctionAppResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + StaticSiteUserProvidedFunctionAppData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + StaticSiteUserProvidedFunctionAppData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/TopLevelDomainResource.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/TopLevelDomainResource.Serialization.cs new file mode 100644 index 000000000000..523b4613796d --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/TopLevelDomainResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppService +{ + public partial class TopLevelDomainResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + TopLevelDomainData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + TopLevelDomainData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebSiteConfigConnectionStringResource.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebSiteConfigConnectionStringResource.Serialization.cs new file mode 100644 index 000000000000..fe47633dc11f --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebSiteConfigConnectionStringResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppService +{ + public partial class WebSiteConfigConnectionStringResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ApiKeyVaultReferenceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ApiKeyVaultReferenceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebSiteConfigResource.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebSiteConfigResource.Serialization.cs new file mode 100644 index 000000000000..cf74d257f4c3 --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebSiteConfigResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppService +{ + public partial class WebSiteConfigResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SiteConfigData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SiteConfigData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebSiteContinuousWebJobResource.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebSiteContinuousWebJobResource.Serialization.cs new file mode 100644 index 000000000000..0938950504ef --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebSiteContinuousWebJobResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppService +{ + public partial class WebSiteContinuousWebJobResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ContinuousWebJobData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ContinuousWebJobData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebSiteExtensionResource.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebSiteExtensionResource.Serialization.cs new file mode 100644 index 000000000000..a35a48c20ff5 --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebSiteExtensionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppService +{ + public partial class WebSiteExtensionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SiteExtensionInfoData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SiteExtensionInfoData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebSiteFtpPublishingCredentialsPolicyResource.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebSiteFtpPublishingCredentialsPolicyResource.Serialization.cs new file mode 100644 index 000000000000..39da88bc827b --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebSiteFtpPublishingCredentialsPolicyResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppService +{ + public partial class WebSiteFtpPublishingCredentialsPolicyResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + CsmPublishingCredentialsPoliciesEntityData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + CsmPublishingCredentialsPoliciesEntityData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebSiteHybridConnectionResource.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebSiteHybridConnectionResource.Serialization.cs new file mode 100644 index 000000000000..4b6240adb9c6 --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebSiteHybridConnectionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppService +{ + public partial class WebSiteHybridConnectionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + RelayServiceConnectionEntityData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + RelayServiceConnectionEntityData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebSitePremierAddonResource.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebSitePremierAddonResource.Serialization.cs new file mode 100644 index 000000000000..808776dc5b76 --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebSitePremierAddonResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppService +{ + public partial class WebSitePremierAddonResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + PremierAddOnData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + PremierAddOnData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebSitePrivateAccessResource.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebSitePrivateAccessResource.Serialization.cs new file mode 100644 index 000000000000..3a91ecde055b --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebSitePrivateAccessResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppService +{ + public partial class WebSitePrivateAccessResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + PrivateAccessData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + PrivateAccessData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebSiteResource.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebSiteResource.Serialization.cs new file mode 100644 index 000000000000..ba5127fe03b1 --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebSiteResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppService +{ + public partial class WebSiteResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + WebSiteData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + WebSiteData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebSiteResourceHealthMetadataResource.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebSiteResourceHealthMetadataResource.Serialization.cs new file mode 100644 index 000000000000..5623b93e46bb --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebSiteResourceHealthMetadataResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppService +{ + public partial class WebSiteResourceHealthMetadataResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ResourceHealthMetadataData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ResourceHealthMetadataData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebSiteSlotConfigAppSettingResource.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebSiteSlotConfigAppSettingResource.Serialization.cs new file mode 100644 index 000000000000..bcda36623cd6 --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebSiteSlotConfigAppSettingResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppService +{ + public partial class WebSiteSlotConfigAppSettingResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ApiKeyVaultReferenceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ApiKeyVaultReferenceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebSiteSlotConfigConnectionStringResource.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebSiteSlotConfigConnectionStringResource.Serialization.cs new file mode 100644 index 000000000000..da5ebc9639b6 --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebSiteSlotConfigConnectionStringResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppService +{ + public partial class WebSiteSlotConfigConnectionStringResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ApiKeyVaultReferenceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ApiKeyVaultReferenceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebSiteSlotConfigResource.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebSiteSlotConfigResource.Serialization.cs new file mode 100644 index 000000000000..77f0f5025f0d --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebSiteSlotConfigResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppService +{ + public partial class WebSiteSlotConfigResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SiteConfigData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SiteConfigData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebSiteSlotContinuousWebJobResource.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebSiteSlotContinuousWebJobResource.Serialization.cs new file mode 100644 index 000000000000..c8b8c1ae98ff --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebSiteSlotContinuousWebJobResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppService +{ + public partial class WebSiteSlotContinuousWebJobResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ContinuousWebJobData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ContinuousWebJobData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebSiteSlotExtensionResource.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebSiteSlotExtensionResource.Serialization.cs new file mode 100644 index 000000000000..37a4ddfb75f7 --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebSiteSlotExtensionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppService +{ + public partial class WebSiteSlotExtensionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SiteExtensionInfoData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SiteExtensionInfoData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebSiteSlotFtpPublishingCredentialsPolicyResource.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebSiteSlotFtpPublishingCredentialsPolicyResource.Serialization.cs new file mode 100644 index 000000000000..97caee8a07c7 --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebSiteSlotFtpPublishingCredentialsPolicyResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppService +{ + public partial class WebSiteSlotFtpPublishingCredentialsPolicyResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + CsmPublishingCredentialsPoliciesEntityData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + CsmPublishingCredentialsPoliciesEntityData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebSiteSlotHybridConnectionResource.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebSiteSlotHybridConnectionResource.Serialization.cs new file mode 100644 index 000000000000..e683120e9f68 --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebSiteSlotHybridConnectionResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppService +{ + public partial class WebSiteSlotHybridConnectionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + RelayServiceConnectionEntityData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + RelayServiceConnectionEntityData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebSiteSlotPremierAddOnResource.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebSiteSlotPremierAddOnResource.Serialization.cs new file mode 100644 index 000000000000..6e277e27c028 --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebSiteSlotPremierAddOnResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppService +{ + public partial class WebSiteSlotPremierAddOnResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + PremierAddOnData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + PremierAddOnData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebSiteSlotPrivateAccessResource.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebSiteSlotPrivateAccessResource.Serialization.cs new file mode 100644 index 000000000000..edefe1327479 --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebSiteSlotPrivateAccessResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppService +{ + public partial class WebSiteSlotPrivateAccessResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + PrivateAccessData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + PrivateAccessData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebSiteSlotPublicCertificateResource.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebSiteSlotPublicCertificateResource.Serialization.cs new file mode 100644 index 000000000000..b0f7eaae86f6 --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebSiteSlotPublicCertificateResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppService +{ + public partial class WebSiteSlotPublicCertificateResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + PublicCertificateData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + PublicCertificateData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebSiteSlotResource.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebSiteSlotResource.Serialization.cs new file mode 100644 index 000000000000..156fd19c6df5 --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebSiteSlotResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppService +{ + public partial class WebSiteSlotResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + WebSiteData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + WebSiteData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebSiteSlotResourceHealthMetadataResource.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebSiteSlotResourceHealthMetadataResource.Serialization.cs new file mode 100644 index 000000000000..fef587ce2bd9 --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebSiteSlotResourceHealthMetadataResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppService +{ + public partial class WebSiteSlotResourceHealthMetadataResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + ResourceHealthMetadataData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + ResourceHealthMetadataData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebSiteSlotSourceControlResource.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebSiteSlotSourceControlResource.Serialization.cs new file mode 100644 index 000000000000..f5227d52b631 --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebSiteSlotSourceControlResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppService +{ + public partial class WebSiteSlotSourceControlResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SiteSourceControlData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SiteSourceControlData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebSiteSlotTriggeredWebJobHistoryResource.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebSiteSlotTriggeredWebJobHistoryResource.Serialization.cs new file mode 100644 index 000000000000..3bc1c2695a58 --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebSiteSlotTriggeredWebJobHistoryResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppService +{ + public partial class WebSiteSlotTriggeredWebJobHistoryResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + TriggeredJobHistoryData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + TriggeredJobHistoryData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebSiteSlotTriggeredWebJobResource.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebSiteSlotTriggeredWebJobResource.Serialization.cs new file mode 100644 index 000000000000..b8c8491e57e6 --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebSiteSlotTriggeredWebJobResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppService +{ + public partial class WebSiteSlotTriggeredWebJobResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + TriggeredWebJobData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + TriggeredWebJobData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebSiteSlotWebJobResource.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebSiteSlotWebJobResource.Serialization.cs new file mode 100644 index 000000000000..72d40c3590f4 --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebSiteSlotWebJobResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppService +{ + public partial class WebSiteSlotWebJobResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + WebJobData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + WebJobData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebSiteSourceControlResource.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebSiteSourceControlResource.Serialization.cs new file mode 100644 index 000000000000..df3c07cefefb --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebSiteSourceControlResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppService +{ + public partial class WebSiteSourceControlResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SiteSourceControlData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SiteSourceControlData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebSiteTriggeredWebJobHistoryResource.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebSiteTriggeredWebJobHistoryResource.Serialization.cs new file mode 100644 index 000000000000..2291decef420 --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebSiteTriggeredWebJobHistoryResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppService +{ + public partial class WebSiteTriggeredWebJobHistoryResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + TriggeredJobHistoryData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + TriggeredJobHistoryData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebSiteTriggeredwebJobResource.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebSiteTriggeredwebJobResource.Serialization.cs new file mode 100644 index 000000000000..b293e07ee664 --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebSiteTriggeredwebJobResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppService +{ + public partial class WebSiteTriggeredwebJobResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + TriggeredWebJobData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + TriggeredWebJobData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebSiteWebJobResource.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebSiteWebJobResource.Serialization.cs new file mode 100644 index 000000000000..50f51de49384 --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebSiteWebJobResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.AppService +{ + public partial class WebSiteWebJobResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + WebJobData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + WebJobData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/PublishingUserResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/PublishingUserResource.cs index 8b8e5083a9d0..2caac8d6bd88 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/PublishingUserResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/PublishingUserResource.cs @@ -201,7 +201,9 @@ public virtual async Task> CreateOrUpdateAs try { var response = await _publishingUserRestClient.UpdatePublishingUserAsync(data, cancellationToken).ConfigureAwait(false); - var operation = new AppServiceArmOperation(Response.FromValue(new PublishingUserResource(Client, response), response.GetRawResponse())); + var uri = _publishingUserRestClient.CreateUpdatePublishingUserRequestUri(data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(Response.FromValue(new PublishingUserResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -247,7 +249,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wai try { var response = _publishingUserRestClient.UpdatePublishingUser(data, cancellationToken); - var operation = new AppServiceArmOperation(Response.FromValue(new PublishingUserResource(Client, response), response.GetRawResponse())); + var uri = _publishingUserRestClient.CreateUpdatePublishingUserRequestUri(data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(Response.FromValue(new PublishingUserResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/AppServiceCertificateOrdersRestOperations.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/AppServiceCertificateOrdersRestOperations.cs index d0b50ddb7f90..4e35e8805781 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/AppServiceCertificateOrdersRestOperations.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/AppServiceCertificateOrdersRestOperations.cs @@ -38,6 +38,17 @@ public AppServiceCertificateOrdersRestOperations(HttpPipeline pipeline, string a _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.CertificateRegistration/certificateOrders", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -105,6 +116,17 @@ public Response List(string subscriptionId } } + internal RequestUriBuilder CreateValidatePurchaseInformationRequestUri(string subscriptionId, AppServiceCertificateOrderData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.CertificateRegistration/validateCertificateRegistrationInformation", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateValidatePurchaseInformationRequest(string subscriptionId, AppServiceCertificateOrderData data) { var message = _pipeline.CreateMessage(); @@ -170,6 +192,19 @@ public Response ValidatePurchaseInformation(string subscriptionId, AppServiceCer } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.CertificateRegistration/certificateOrders", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -243,6 +278,20 @@ public Response ListByResourceGroup(string } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string certificateOrderName) + { + 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.CertificateRegistration/certificateOrders/", false); + uri.AppendPath(certificateOrderName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string certificateOrderName) { var message = _pipeline.CreateMessage(); @@ -325,6 +374,20 @@ public Response Get(string subscriptionId, strin } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string certificateOrderName, AppServiceCertificateOrderData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.CertificateRegistration/certificateOrders/", false); + uri.AppendPath(certificateOrderName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string certificateOrderName, AppServiceCertificateOrderData data) { var message = _pipeline.CreateMessage(); @@ -403,6 +466,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string certificateOrderName) + { + 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.CertificateRegistration/certificateOrders/", false); + uri.AppendPath(certificateOrderName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string certificateOrderName) { var message = _pipeline.CreateMessage(); @@ -473,6 +550,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string c } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string certificateOrderName, AppServiceCertificateOrderPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.CertificateRegistration/certificateOrders/", false); + uri.AppendPath(certificateOrderName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string certificateOrderName, AppServiceCertificateOrderPatch patch) { var message = _pipeline.CreateMessage(); @@ -559,6 +650,21 @@ public Response Update(string subscriptionId, st } } + internal RequestUriBuilder CreateListCertificatesRequestUri(string subscriptionId, string resourceGroupName, string certificateOrderName) + { + 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.CertificateRegistration/certificateOrders/", false); + uri.AppendPath(certificateOrderName, true); + uri.AppendPath("/certificates", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListCertificatesRequest(string subscriptionId, string resourceGroupName, string certificateOrderName) { var message = _pipeline.CreateMessage(); @@ -638,6 +744,22 @@ public Response ListCertificates(string subscri } } + internal RequestUriBuilder CreateGetCertificateRequestUri(string subscriptionId, string resourceGroupName, string certificateOrderName, string name) + { + 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.CertificateRegistration/certificateOrders/", false); + uri.AppendPath(certificateOrderName, true); + uri.AppendPath("/certificates/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetCertificateRequest(string subscriptionId, string resourceGroupName, string certificateOrderName, string name) { var message = _pipeline.CreateMessage(); @@ -726,6 +848,22 @@ public Response GetCertificate(string subscriptionId, } } + internal RequestUriBuilder CreateCreateOrUpdateCertificateRequestUri(string subscriptionId, string resourceGroupName, string certificateOrderName, string name, AppServiceCertificateData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.CertificateRegistration/certificateOrders/", false); + uri.AppendPath(certificateOrderName, true); + uri.AppendPath("/certificates/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateCertificateRequest(string subscriptionId, string resourceGroupName, string certificateOrderName, string name, AppServiceCertificateData data) { var message = _pipeline.CreateMessage(); @@ -810,6 +948,22 @@ public Response CreateOrUpdateCertificate(string subscriptionId, string resource } } + internal RequestUriBuilder CreateDeleteCertificateRequestUri(string subscriptionId, string resourceGroupName, string certificateOrderName, string name) + { + 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.CertificateRegistration/certificateOrders/", false); + uri.AppendPath(certificateOrderName, true); + uri.AppendPath("/certificates/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteCertificateRequest(string subscriptionId, string resourceGroupName, string certificateOrderName, string name) { var message = _pipeline.CreateMessage(); @@ -886,6 +1040,22 @@ public Response DeleteCertificate(string subscriptionId, string resourceGroupNam } } + internal RequestUriBuilder CreateUpdateCertificateRequestUri(string subscriptionId, string resourceGroupName, string certificateOrderName, string name, AppServiceCertificatePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.CertificateRegistration/certificateOrders/", false); + uri.AppendPath(certificateOrderName, true); + uri.AppendPath("/certificates/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateCertificateRequest(string subscriptionId, string resourceGroupName, string certificateOrderName, string name, AppServiceCertificatePatch patch) { var message = _pipeline.CreateMessage(); @@ -978,6 +1148,21 @@ public Response UpdateCertificate(string subscription } } + internal RequestUriBuilder CreateReissueRequestUri(string subscriptionId, string resourceGroupName, string certificateOrderName, ReissueCertificateOrderContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.CertificateRegistration/certificateOrders/", false); + uri.AppendPath(certificateOrderName, true); + uri.AppendPath("/reissue", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateReissueRequest(string subscriptionId, string resourceGroupName, string certificateOrderName, ReissueCertificateOrderContent content) { var message = _pipeline.CreateMessage(); @@ -1055,6 +1240,21 @@ public Response Reissue(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreateRenewRequestUri(string subscriptionId, string resourceGroupName, string certificateOrderName, RenewCertificateOrderContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.CertificateRegistration/certificateOrders/", false); + uri.AppendPath(certificateOrderName, true); + uri.AppendPath("/renew", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRenewRequest(string subscriptionId, string resourceGroupName, string certificateOrderName, RenewCertificateOrderContent content) { var message = _pipeline.CreateMessage(); @@ -1132,6 +1332,21 @@ public Response Renew(string subscriptionId, string resourceGroupName, string ce } } + internal RequestUriBuilder CreateResendEmailRequestUri(string subscriptionId, string resourceGroupName, string certificateOrderName) + { + 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.CertificateRegistration/certificateOrders/", false); + uri.AppendPath(certificateOrderName, true); + uri.AppendPath("/resendEmail", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateResendEmailRequest(string subscriptionId, string resourceGroupName, string certificateOrderName) { var message = _pipeline.CreateMessage(); @@ -1201,6 +1416,21 @@ public Response ResendEmail(string subscriptionId, string resourceGroupName, str } } + internal RequestUriBuilder CreateResendRequestEmailsRequestUri(string subscriptionId, string resourceGroupName, string certificateOrderName, AppServiceDomainNameIdentifier nameIdentifier) + { + 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.CertificateRegistration/certificateOrders/", false); + uri.AppendPath(certificateOrderName, true); + uri.AppendPath("/resendRequestEmails", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateResendRequestEmailsRequest(string subscriptionId, string resourceGroupName, string certificateOrderName, AppServiceDomainNameIdentifier nameIdentifier) { var message = _pipeline.CreateMessage(); @@ -1278,6 +1508,21 @@ public Response ResendRequestEmails(string subscriptionId, string resourceGroupN } } + internal RequestUriBuilder CreateRetrieveSiteSealRequestUri(string subscriptionId, string resourceGroupName, string certificateOrderName, SiteSealContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.CertificateRegistration/certificateOrders/", false); + uri.AppendPath(certificateOrderName, true); + uri.AppendPath("/retrieveSiteSeal", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRetrieveSiteSealRequest(string subscriptionId, string resourceGroupName, string certificateOrderName, SiteSealContent content) { var message = _pipeline.CreateMessage(); @@ -1365,6 +1610,21 @@ public Response RetrieveSiteSeal(string subscriptionId, string resourc } } + internal RequestUriBuilder CreateVerifyDomainOwnershipRequestUri(string subscriptionId, string resourceGroupName, string certificateOrderName) + { + 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.CertificateRegistration/certificateOrders/", false); + uri.AppendPath(certificateOrderName, true); + uri.AppendPath("/verifyDomainOwnership", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateVerifyDomainOwnershipRequest(string subscriptionId, string resourceGroupName, string certificateOrderName) { var message = _pipeline.CreateMessage(); @@ -1434,6 +1694,21 @@ public Response VerifyDomainOwnership(string subscriptionId, string resourceGrou } } + internal RequestUriBuilder CreateRetrieveCertificateActionsRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.CertificateRegistration/certificateOrders/", false); + uri.AppendPath(name, true); + uri.AppendPath("/retrieveCertificateActions", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRetrieveCertificateActionsRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -1523,6 +1798,21 @@ public Response> RetrieveCertificateAction } } + internal RequestUriBuilder CreateRetrieveCertificateEmailHistoryRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.CertificateRegistration/certificateOrders/", false); + uri.AppendPath(name, true); + uri.AppendPath("/retrieveEmailHistory", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRetrieveCertificateEmailHistoryRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -1612,6 +1902,14 @@ public Response> RetrieveCertificateEm } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -1680,6 +1978,14 @@ public Response ListNextPage(string nextLi } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -1752,6 +2058,14 @@ public Response ListByResourceGroupNextPag } } + internal RequestUriBuilder CreateListCertificatesNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string certificateOrderName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListCertificatesNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string certificateOrderName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/AppServiceEnvironmentsRestOperations.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/AppServiceEnvironmentsRestOperations.cs index dd71a0b0854d..93bb096799b2 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/AppServiceEnvironmentsRestOperations.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/AppServiceEnvironmentsRestOperations.cs @@ -38,6 +38,17 @@ public AppServiceEnvironmentsRestOperations(HttpPipeline pipeline, string applic _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Web/hostingEnvironments", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -105,6 +116,19 @@ public Response List(string subscriptionId, Can } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.Web/hostingEnvironments", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -178,6 +202,20 @@ public Response ListByResourceGroup(string subs } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.Web/hostingEnvironments/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -260,6 +298,20 @@ public Response Get(string subscriptionId, string res } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string name, AppServiceEnvironmentData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Web/hostingEnvironments/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string name, AppServiceEnvironmentData data) { var message = _pipeline.CreateMessage(); @@ -340,6 +392,24 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string name, bool? forceDelete) + { + 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.Web/hostingEnvironments/", false); + uri.AppendPath(name, true); + if (forceDelete != null) + { + uri.AppendQuery("forceDelete", forceDelete.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string name, bool? forceDelete) { var message = _pipeline.CreateMessage(); @@ -416,6 +486,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string n } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string name, AppServiceEnvironmentPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Web/hostingEnvironments/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string name, AppServiceEnvironmentPatch patch) { var message = _pipeline.CreateMessage(); @@ -506,6 +590,21 @@ public Response Update(string subscriptionId, string } } + internal RequestUriBuilder CreateListCapacitiesRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.Web/hostingEnvironments/", false); + uri.AppendPath(name, true); + uri.AppendPath("/capacities/compute", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListCapacitiesRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -585,6 +684,21 @@ public Response ListCapacities(string subscriptionId, s } } + internal RequestUriBuilder CreateGetVipInfoRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.Web/hostingEnvironments/", false); + uri.AppendPath(name, true); + uri.AppendPath("/capacities/virtualip", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetVipInfoRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -664,6 +778,21 @@ public Response GetVipInfo(string subscripti } } + internal RequestUriBuilder CreateGetAseV3NetworkingConfigurationRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.Web/hostingEnvironments/", false); + uri.AppendPath(name, true); + uri.AppendPath("/configurations/networking", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetAseV3NetworkingConfigurationRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -747,6 +876,21 @@ public Response GetAseV3NetworkingConfiguratio } } + internal RequestUriBuilder CreateUpdateAseNetworkingConfigurationRequestUri(string subscriptionId, string resourceGroupName, string name, AseV3NetworkingConfigurationData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Web/hostingEnvironments/", false); + uri.AppendPath(name, true); + uri.AppendPath("/configurations/networking", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateAseNetworkingConfigurationRequest(string subscriptionId, string resourceGroupName, string name, AseV3NetworkingConfigurationData data) { var message = _pipeline.CreateMessage(); @@ -834,6 +978,21 @@ public Response UpdateAseNetworkingConfigurati } } + internal RequestUriBuilder CreateListDiagnosticsRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.Web/hostingEnvironments/", false); + uri.AppendPath(name, true); + uri.AppendPath("/diagnostics", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListDiagnosticsRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -923,6 +1082,22 @@ public Response> ListDiagnostics(st } } + internal RequestUriBuilder CreateGetDiagnosticsItemRequestUri(string subscriptionId, string resourceGroupName, string name, string diagnosticsName) + { + 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.Web/hostingEnvironments/", false); + uri.AppendPath(name, true); + uri.AppendPath("/diagnostics/", false); + uri.AppendPath(diagnosticsName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetDiagnosticsItemRequest(string subscriptionId, string resourceGroupName, string name, string diagnosticsName) { var message = _pipeline.CreateMessage(); @@ -1007,6 +1182,21 @@ public Response GetDiagnosticsItem(string subscri } } + internal RequestUriBuilder CreateGetInboundNetworkDependenciesEndpointsRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.Web/hostingEnvironments/", false); + uri.AppendPath(name, true); + uri.AppendPath("/inboundNetworkDependenciesEndpoints", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetInboundNetworkDependenciesEndpointsRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -1086,6 +1276,21 @@ public Response GetInboundNetworkDependenc } } + internal RequestUriBuilder CreateListMultiRolePoolsRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.Web/hostingEnvironments/", false); + uri.AppendPath(name, true); + uri.AppendPath("/multiRolePools", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListMultiRolePoolsRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -1165,6 +1370,21 @@ public Response ListMultiRolePools(string subscr } } + internal RequestUriBuilder CreateGetMultiRolePoolRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.Web/hostingEnvironments/", false); + uri.AppendPath(name, true); + uri.AppendPath("/multiRolePools/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetMultiRolePoolRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -1248,6 +1468,21 @@ public Response GetMultiRolePool(string subscriptionId } } + internal RequestUriBuilder CreateCreateOrUpdateMultiRolePoolRequestUri(string subscriptionId, string resourceGroupName, string name, AppServiceWorkerPoolData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Web/hostingEnvironments/", false); + uri.AppendPath(name, true); + uri.AppendPath("/multiRolePools/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateMultiRolePoolRequest(string subscriptionId, string resourceGroupName, string name, AppServiceWorkerPoolData data) { var message = _pipeline.CreateMessage(); @@ -1327,6 +1562,21 @@ public Response CreateOrUpdateMultiRolePool(string subscriptionId, string resour } } + internal RequestUriBuilder CreateUpdateMultiRolePoolRequestUri(string subscriptionId, string resourceGroupName, string name, AppServiceWorkerPoolData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Web/hostingEnvironments/", false); + uri.AppendPath(name, true); + uri.AppendPath("/multiRolePools/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateMultiRolePoolRequest(string subscriptionId, string resourceGroupName, string name, AppServiceWorkerPoolData data) { var message = _pipeline.CreateMessage(); @@ -1416,6 +1666,23 @@ public Response UpdateMultiRolePool(string subscriptio } } + internal RequestUriBuilder CreateListMultiRolePoolInstanceMetricDefinitionsRequestUri(string subscriptionId, string resourceGroupName, string name, string instance) + { + 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.Web/hostingEnvironments/", false); + uri.AppendPath(name, true); + uri.AppendPath("/multiRolePools/default/instances/", false); + uri.AppendPath(instance, true); + uri.AppendPath("/metricdefinitions", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListMultiRolePoolInstanceMetricDefinitionsRequest(string subscriptionId, string resourceGroupName, string name, string instance) { var message = _pipeline.CreateMessage(); @@ -1501,6 +1768,21 @@ public Response ListMultiRolePoolInstanceMet } } + internal RequestUriBuilder CreateListMultiRoleMetricDefinitionsRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.Web/hostingEnvironments/", false); + uri.AppendPath(name, true); + uri.AppendPath("/multiRolePools/default/metricdefinitions", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListMultiRoleMetricDefinitionsRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -1580,6 +1862,21 @@ public Response ListMultiRoleMetricDefinitio } } + internal RequestUriBuilder CreateListMultiRolePoolSkusRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.Web/hostingEnvironments/", false); + uri.AppendPath(name, true); + uri.AppendPath("/multiRolePools/default/skus", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListMultiRolePoolSkusRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -1659,6 +1956,21 @@ public Response ListMultiRolePoolSkus(string su } } + internal RequestUriBuilder CreateListMultiRoleUsagesRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.Web/hostingEnvironments/", false); + uri.AppendPath(name, true); + uri.AppendPath("/multiRolePools/default/usages", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListMultiRoleUsagesRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -1738,6 +2050,21 @@ public Response ListMultiRoleUsages(string subscripti } } + internal RequestUriBuilder CreateListOperationsRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.Web/hostingEnvironments/", false); + uri.AppendPath(name, true); + uri.AppendPath("/operations", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListOperationsRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -1827,6 +2154,21 @@ public Response> ListOperations(string subscr } } + internal RequestUriBuilder CreateGetOutboundNetworkDependenciesEndpointsRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.Web/hostingEnvironments/", false); + uri.AppendPath(name, true); + uri.AppendPath("/outboundNetworkDependenciesEndpoints", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetOutboundNetworkDependenciesEndpointsRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -1906,6 +2248,21 @@ public Response GetOutboundNetworkDepende } } + internal RequestUriBuilder CreateGetPrivateEndpointConnectionListRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.Web/hostingEnvironments/", false); + uri.AppendPath(name, true); + uri.AppendPath("/privateEndpointConnections", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetPrivateEndpointConnectionListRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -1985,6 +2342,22 @@ public Response GetPrivateEndpointCon } } + internal RequestUriBuilder CreateGetPrivateEndpointConnectionRequestUri(string subscriptionId, string resourceGroupName, string name, string privateEndpointConnectionName) + { + 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.Web/hostingEnvironments/", false); + uri.AppendPath(name, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetPrivateEndpointConnectionRequest(string subscriptionId, string resourceGroupName, string name, string privateEndpointConnectionName) { var message = _pipeline.CreateMessage(); @@ -2073,6 +2446,22 @@ public Response GetPrivateEndpoi } } + internal RequestUriBuilder CreateApproveOrRejectPrivateEndpointConnectionRequestUri(string subscriptionId, string resourceGroupName, string name, string privateEndpointConnectionName, PrivateLinkConnectionApprovalRequestInfo info) + { + 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.Web/hostingEnvironments/", false); + uri.AppendPath(name, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateApproveOrRejectPrivateEndpointConnectionRequest(string subscriptionId, string resourceGroupName, string name, string privateEndpointConnectionName, PrivateLinkConnectionApprovalRequestInfo info) { var message = _pipeline.CreateMessage(); @@ -2157,6 +2546,22 @@ public Response ApproveOrRejectPrivateEndpointConnection(string subscriptionId, } } + internal RequestUriBuilder CreateDeletePrivateEndpointConnectionRequestUri(string subscriptionId, string resourceGroupName, string name, string privateEndpointConnectionName) + { + 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.Web/hostingEnvironments/", false); + uri.AppendPath(name, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeletePrivateEndpointConnectionRequest(string subscriptionId, string resourceGroupName, string name, string privateEndpointConnectionName) { var message = _pipeline.CreateMessage(); @@ -2235,6 +2640,21 @@ public Response DeletePrivateEndpointConnection(string subscriptionId, string re } } + internal RequestUriBuilder CreateGetPrivateLinkResourcesRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.Web/hostingEnvironments/", false); + uri.AppendPath(name, true); + uri.AppendPath("/privateLinkResources", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetPrivateLinkResourcesRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -2314,6 +2734,21 @@ public Response GetPrivateLinkResources(string subs } } + internal RequestUriBuilder CreateRebootRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.Web/hostingEnvironments/", false); + uri.AppendPath(name, true); + uri.AppendPath("/reboot", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRebootRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -2383,6 +2818,21 @@ public Response Reboot(string subscriptionId, string resourceGroupName, string n } } + internal RequestUriBuilder CreateListAppServicePlansRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.Web/hostingEnvironments/", false); + uri.AppendPath(name, true); + uri.AppendPath("/serverfarms", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListAppServicePlansRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -2462,6 +2912,25 @@ public Response ListAppServicePlans(string subscriptio } } + internal RequestUriBuilder CreateListWebAppsRequestUri(string subscriptionId, string resourceGroupName, string name, string propertiesToInclude) + { + 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.Web/hostingEnvironments/", false); + uri.AppendPath(name, true); + uri.AppendPath("/sites", false); + if (propertiesToInclude != null) + { + uri.AppendQuery("propertiesToInclude", propertiesToInclude, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListWebAppsRequest(string subscriptionId, string resourceGroupName, string name, string propertiesToInclude) { var message = _pipeline.CreateMessage(); @@ -2547,6 +3016,25 @@ public Response ListWebApps(string subscriptionId, string reso } } + internal RequestUriBuilder CreateListUsagesRequestUri(string subscriptionId, string resourceGroupName, string name, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Web/hostingEnvironments/", false); + uri.AppendPath(name, true); + uri.AppendPath("/usages", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, false); + } + return uri; + } + internal HttpMessage CreateListUsagesRequest(string subscriptionId, string resourceGroupName, string name, string filter) { var message = _pipeline.CreateMessage(); @@ -2632,6 +3120,21 @@ public Response ListUsages(string subscriptionId, strin } } + internal RequestUriBuilder CreateListWorkerPoolsRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.Web/hostingEnvironments/", false); + uri.AppendPath(name, true); + uri.AppendPath("/workerPools", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListWorkerPoolsRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -2711,6 +3214,22 @@ public Response ListWorkerPools(string subscript } } + internal RequestUriBuilder CreateGetWorkerPoolRequestUri(string subscriptionId, string resourceGroupName, string name, string workerPoolName) + { + 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.Web/hostingEnvironments/", false); + uri.AppendPath(name, true); + uri.AppendPath("/workerPools/", false); + uri.AppendPath(workerPoolName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetWorkerPoolRequest(string subscriptionId, string resourceGroupName, string name, string workerPoolName) { var message = _pipeline.CreateMessage(); @@ -2799,6 +3318,22 @@ public Response GetWorkerPool(string subscriptionId, s } } + internal RequestUriBuilder CreateCreateOrUpdateWorkerPoolRequestUri(string subscriptionId, string resourceGroupName, string name, string workerPoolName, AppServiceWorkerPoolData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Web/hostingEnvironments/", false); + uri.AppendPath(name, true); + uri.AppendPath("/workerPools/", false); + uri.AppendPath(workerPoolName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateWorkerPoolRequest(string subscriptionId, string resourceGroupName, string name, string workerPoolName, AppServiceWorkerPoolData data) { var message = _pipeline.CreateMessage(); @@ -2883,6 +3418,22 @@ public Response CreateOrUpdateWorkerPool(string subscriptionId, string resourceG } } + internal RequestUriBuilder CreateUpdateWorkerPoolRequestUri(string subscriptionId, string resourceGroupName, string name, string workerPoolName, AppServiceWorkerPoolData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Web/hostingEnvironments/", false); + uri.AppendPath(name, true); + uri.AppendPath("/workerPools/", false); + uri.AppendPath(workerPoolName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateWorkerPoolRequest(string subscriptionId, string resourceGroupName, string name, string workerPoolName, AppServiceWorkerPoolData data) { var message = _pipeline.CreateMessage(); @@ -2977,6 +3528,25 @@ public Response UpdateWorkerPool(string subscriptionId } } + internal RequestUriBuilder CreateListWorkerPoolInstanceMetricDefinitionsRequestUri(string subscriptionId, string resourceGroupName, string name, string workerPoolName, string instance) + { + 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.Web/hostingEnvironments/", false); + uri.AppendPath(name, true); + uri.AppendPath("/workerPools/", false); + uri.AppendPath(workerPoolName, true); + uri.AppendPath("/instances/", false); + uri.AppendPath(instance, true); + uri.AppendPath("/metricdefinitions", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListWorkerPoolInstanceMetricDefinitionsRequest(string subscriptionId, string resourceGroupName, string name, string workerPoolName, string instance) { var message = _pipeline.CreateMessage(); @@ -3068,6 +3638,23 @@ public Response ListWorkerPoolInstanceMetric } } + internal RequestUriBuilder CreateListWebWorkerMetricDefinitionsRequestUri(string subscriptionId, string resourceGroupName, string name, string workerPoolName) + { + 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.Web/hostingEnvironments/", false); + uri.AppendPath(name, true); + uri.AppendPath("/workerPools/", false); + uri.AppendPath(workerPoolName, true); + uri.AppendPath("/metricdefinitions", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListWebWorkerMetricDefinitionsRequest(string subscriptionId, string resourceGroupName, string name, string workerPoolName) { var message = _pipeline.CreateMessage(); @@ -3153,6 +3740,23 @@ public Response ListWebWorkerMetricDefinitio } } + internal RequestUriBuilder CreateListWorkerPoolSkusRequestUri(string subscriptionId, string resourceGroupName, string name, string workerPoolName) + { + 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.Web/hostingEnvironments/", false); + uri.AppendPath(name, true); + uri.AppendPath("/workerPools/", false); + uri.AppendPath(workerPoolName, true); + uri.AppendPath("/skus", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListWorkerPoolSkusRequest(string subscriptionId, string resourceGroupName, string name, string workerPoolName) { var message = _pipeline.CreateMessage(); @@ -3238,6 +3842,23 @@ public Response ListWorkerPoolSkus(string subsc } } + internal RequestUriBuilder CreateListWebWorkerUsagesRequestUri(string subscriptionId, string resourceGroupName, string name, string workerPoolName) + { + 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.Web/hostingEnvironments/", false); + uri.AppendPath(name, true); + uri.AppendPath("/workerPools/", false); + uri.AppendPath(workerPoolName, true); + uri.AppendPath("/usages", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListWebWorkerUsagesRequest(string subscriptionId, string resourceGroupName, string name, string workerPoolName) { var message = _pipeline.CreateMessage(); @@ -3323,6 +3944,14 @@ public Response ListWebWorkerUsages(string subscripti } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -3391,6 +4020,14 @@ public Response ListNextPage(string nextLink, s } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -3463,6 +4100,14 @@ public Response ListByResourceGroupNextPage(str } } + internal RequestUriBuilder CreateListCapacitiesNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string name) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListCapacitiesNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -3539,6 +4184,14 @@ public Response ListCapacitiesNextPage(string nextLink, } } + internal RequestUriBuilder CreateGetInboundNetworkDependenciesEndpointsNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string name) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateGetInboundNetworkDependenciesEndpointsNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -3615,6 +4268,14 @@ public Response GetInboundNetworkDependenc } } + internal RequestUriBuilder CreateListMultiRolePoolsNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string name) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListMultiRolePoolsNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -3691,6 +4352,14 @@ public Response ListMultiRolePoolsNextPage(strin } } + internal RequestUriBuilder CreateListMultiRolePoolInstanceMetricDefinitionsNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string name, string instance) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListMultiRolePoolInstanceMetricDefinitionsNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string name, string instance) { var message = _pipeline.CreateMessage(); @@ -3771,6 +4440,14 @@ public Response ListMultiRolePoolInstanceMet } } + internal RequestUriBuilder CreateListMultiRoleMetricDefinitionsNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string name) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListMultiRoleMetricDefinitionsNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -3847,6 +4524,14 @@ public Response ListMultiRoleMetricDefinitio } } + internal RequestUriBuilder CreateListMultiRolePoolSkusNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string name) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListMultiRolePoolSkusNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -3923,6 +4608,14 @@ public Response ListMultiRolePoolSkusNextPage(s } } + internal RequestUriBuilder CreateListMultiRoleUsagesNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string name) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListMultiRoleUsagesNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -3999,6 +4692,14 @@ public Response ListMultiRoleUsagesNextPage(string ne } } + internal RequestUriBuilder CreateGetOutboundNetworkDependenciesEndpointsNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string name) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateGetOutboundNetworkDependenciesEndpointsNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -4075,6 +4776,14 @@ public Response GetOutboundNetworkDepende } } + internal RequestUriBuilder CreateGetPrivateEndpointConnectionListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string name) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateGetPrivateEndpointConnectionListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -4151,6 +4860,14 @@ public Response GetPrivateEndpointCon } } + internal RequestUriBuilder CreateListAppServicePlansNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string name) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListAppServicePlansNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -4227,6 +4944,14 @@ public Response ListAppServicePlansNextPage(string nex } } + internal RequestUriBuilder CreateListWebAppsNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string name, string propertiesToInclude) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListWebAppsNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string name, string propertiesToInclude) { var message = _pipeline.CreateMessage(); @@ -4305,6 +5030,14 @@ public Response ListWebAppsNextPage(string nextLink, string su } } + internal RequestUriBuilder CreateListUsagesNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string name, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListUsagesNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string name, string filter) { var message = _pipeline.CreateMessage(); @@ -4383,6 +5116,14 @@ public Response ListUsagesNextPage(string nextLink, str } } + internal RequestUriBuilder CreateListWorkerPoolsNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string name) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListWorkerPoolsNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -4459,6 +5200,14 @@ public Response ListWorkerPoolsNextPage(string n } } + internal RequestUriBuilder CreateListWorkerPoolInstanceMetricDefinitionsNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string name, string workerPoolName, string instance) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListWorkerPoolInstanceMetricDefinitionsNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string name, string workerPoolName, string instance) { var message = _pipeline.CreateMessage(); @@ -4543,6 +5292,14 @@ public Response ListWorkerPoolInstanceMetric } } + internal RequestUriBuilder CreateListWebWorkerMetricDefinitionsNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string name, string workerPoolName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListWebWorkerMetricDefinitionsNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string name, string workerPoolName) { var message = _pipeline.CreateMessage(); @@ -4623,6 +5380,14 @@ public Response ListWebWorkerMetricDefinitio } } + internal RequestUriBuilder CreateListWorkerPoolSkusNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string name, string workerPoolName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListWorkerPoolSkusNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string name, string workerPoolName) { var message = _pipeline.CreateMessage(); @@ -4703,6 +5468,14 @@ public Response ListWorkerPoolSkusNextPage(stri } } + internal RequestUriBuilder CreateListWebWorkerUsagesNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string name, string workerPoolName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListWebWorkerUsagesNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string name, string workerPoolName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/AppServicePlansRestOperations.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/AppServicePlansRestOperations.cs index d1cc5ea79f87..67f9d4317129 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/AppServicePlansRestOperations.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/AppServicePlansRestOperations.cs @@ -38,6 +38,21 @@ public AppServicePlansRestOperations(HttpPipeline pipeline, string applicationId _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, bool? detailed) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Web/serverfarms", false); + if (detailed != null) + { + uri.AppendQuery("detailed", detailed.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, bool? detailed) { var message = _pipeline.CreateMessage(); @@ -117,6 +132,19 @@ public Response List(string subscriptionId, bool? deta } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.Web/serverfarms", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -190,6 +218,20 @@ public Response ListByResourceGroup(string subscriptio } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.Web/serverfarms/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -272,6 +314,20 @@ public Response Get(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string name, AppServicePlanData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Web/serverfarms/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string name, AppServicePlanData data) { var message = _pipeline.CreateMessage(); @@ -350,6 +406,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.Web/serverfarms/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -420,6 +490,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string n } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string name, AppServicePlanPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Web/serverfarms/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string name, AppServicePlanPatch patch) { var message = _pipeline.CreateMessage(); @@ -508,6 +592,21 @@ public Response Update(string subscriptionId, string resourc } } + internal RequestUriBuilder CreateListCapabilitiesRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.Web/serverfarms/", false); + uri.AppendPath(name, true); + uri.AppendPath("/capabilities", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListCapabilitiesRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -597,6 +696,24 @@ public Response> ListCapabilities(string } } + internal RequestUriBuilder CreateGetHybridConnectionRequestUri(string subscriptionId, string resourceGroupName, string name, string namespaceName, string relayName) + { + 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.Web/serverfarms/", false); + uri.AppendPath(name, true); + uri.AppendPath("/hybridConnectionNamespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/relays/", false); + uri.AppendPath(relayName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetHybridConnectionRequest(string subscriptionId, string resourceGroupName, string name, string namespaceName, string relayName) { var message = _pipeline.CreateMessage(); @@ -691,6 +808,24 @@ public Response GetHybridConnection(string subscriptionId, } } + internal RequestUriBuilder CreateDeleteHybridConnectionRequestUri(string subscriptionId, string resourceGroupName, string name, string namespaceName, string relayName) + { + 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.Web/serverfarms/", false); + uri.AppendPath(name, true); + uri.AppendPath("/hybridConnectionNamespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/relays/", false); + uri.AppendPath(relayName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteHybridConnectionRequest(string subscriptionId, string resourceGroupName, string name, string namespaceName, string relayName) { var message = _pipeline.CreateMessage(); @@ -773,6 +908,25 @@ public Response DeleteHybridConnection(string subscriptionId, string resourceGro } } + internal RequestUriBuilder CreateListHybridConnectionKeysRequestUri(string subscriptionId, string resourceGroupName, string name, string namespaceName, string relayName) + { + 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.Web/serverfarms/", false); + uri.AppendPath(name, true); + uri.AppendPath("/hybridConnectionNamespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/relays/", false); + uri.AppendPath(relayName, true); + uri.AppendPath("/listKeys", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListHybridConnectionKeysRequest(string subscriptionId, string resourceGroupName, string name, string namespaceName, string relayName) { var message = _pipeline.CreateMessage(); @@ -864,6 +1018,25 @@ public Response ListHybridConnectionKeys(string subscriptio } } + internal RequestUriBuilder CreateListWebAppsByHybridConnectionRequestUri(string subscriptionId, string resourceGroupName, string name, string namespaceName, string relayName) + { + 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.Web/serverfarms/", false); + uri.AppendPath(name, true); + uri.AppendPath("/hybridConnectionNamespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/relays/", false); + uri.AppendPath(relayName, true); + uri.AppendPath("/sites", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListWebAppsByHybridConnectionRequest(string subscriptionId, string resourceGroupName, string name, string namespaceName, string relayName) { var message = _pipeline.CreateMessage(); @@ -955,6 +1128,21 @@ public Response ListWebAppsByHybridConnection( } } + internal RequestUriBuilder CreateGetHybridConnectionPlanLimitRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.Web/serverfarms/", false); + uri.AppendPath(name, true); + uri.AppendPath("/hybridConnectionPlanLimits/limit", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetHybridConnectionPlanLimitRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -1038,6 +1226,21 @@ public Response GetHybridConnectionPlanLimit(string s } } + internal RequestUriBuilder CreateListHybridConnectionsRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.Web/serverfarms/", false); + uri.AppendPath(name, true); + uri.AppendPath("/hybridConnectionRelays", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListHybridConnectionsRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -1117,6 +1320,25 @@ public Response ListHybridConnections(string subscri } } + internal RequestUriBuilder CreateRestartWebAppsRequestUri(string subscriptionId, string resourceGroupName, string name, bool? softRestart) + { + 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.Web/serverfarms/", false); + uri.AppendPath(name, true); + uri.AppendPath("/restartSites", false); + if (softRestart != null) + { + uri.AppendQuery("softRestart", softRestart.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRestartWebAppsRequest(string subscriptionId, string resourceGroupName, string name, bool? softRestart) { var message = _pipeline.CreateMessage(); @@ -1192,6 +1414,33 @@ public Response RestartWebApps(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateListWebAppsRequestUri(string subscriptionId, string resourceGroupName, string name, string skipToken, string filter, string top) + { + 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.Web/serverfarms/", false); + uri.AppendPath(name, true); + uri.AppendPath("/sites", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (skipToken != null) + { + uri.AppendQuery("$skipToken", skipToken, true); + } + if (filter != null) + { + uri.AppendQuery("$filter", filter, false); + } + if (top != null) + { + uri.AppendQuery("$top", top, true); + } + return uri; + } + internal HttpMessage CreateListWebAppsRequest(string subscriptionId, string resourceGroupName, string name, string skipToken, string filter, string top) { var message = _pipeline.CreateMessage(); @@ -1289,6 +1538,21 @@ public Response ListWebApps(string subscriptionId, string reso } } + internal RequestUriBuilder CreateGetServerFarmSkusRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.Web/serverfarms/", false); + uri.AppendPath(name, true); + uri.AppendPath("/skus", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetServerFarmSkusRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -1366,6 +1630,25 @@ public Response GetServerFarmSkus(string subscriptionId, string reso } } + internal RequestUriBuilder CreateListUsagesRequestUri(string subscriptionId, string resourceGroupName, string name, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Web/serverfarms/", false); + uri.AppendPath(name, true); + uri.AppendPath("/usages", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, false); + } + return uri; + } + internal HttpMessage CreateListUsagesRequest(string subscriptionId, string resourceGroupName, string name, string filter) { var message = _pipeline.CreateMessage(); @@ -1451,6 +1734,21 @@ public Response ListUsages(string subscriptionId, strin } } + internal RequestUriBuilder CreateListVnetsRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.Web/serverfarms/", false); + uri.AppendPath(name, true); + uri.AppendPath("/virtualNetworkConnections", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListVnetsRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -1540,6 +1838,22 @@ public Response> ListVnets(string su } } + internal RequestUriBuilder CreateGetVnetFromServerFarmRequestUri(string subscriptionId, string resourceGroupName, string name, string vnetName) + { + 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.Web/serverfarms/", false); + uri.AppendPath(name, true); + uri.AppendPath("/virtualNetworkConnections/", false); + uri.AppendPath(vnetName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetVnetFromServerFarmRequest(string subscriptionId, string resourceGroupName, string name, string vnetName) { var message = _pipeline.CreateMessage(); @@ -1628,6 +1942,24 @@ public Response GetVnetFromServerFarm(string subsc } } + internal RequestUriBuilder CreateGetVnetGatewayRequestUri(string subscriptionId, string resourceGroupName, string name, string vnetName, string gatewayName) + { + 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.Web/serverfarms/", false); + uri.AppendPath(name, true); + uri.AppendPath("/virtualNetworkConnections/", false); + uri.AppendPath(vnetName, true); + uri.AppendPath("/gateways/", false); + uri.AppendPath(gatewayName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetVnetGatewayRequest(string subscriptionId, string resourceGroupName, string name, string vnetName, string gatewayName) { var message = _pipeline.CreateMessage(); @@ -1722,6 +2054,24 @@ public Response GetVnetGateway(string subsc } } + internal RequestUriBuilder CreateUpdateVnetGatewayRequestUri(string subscriptionId, string resourceGroupName, string name, string vnetName, string gatewayName, AppServiceVirtualNetworkGatewayData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Web/serverfarms/", false); + uri.AppendPath(name, true); + uri.AppendPath("/virtualNetworkConnections/", false); + uri.AppendPath(vnetName, true); + uri.AppendPath("/gateways/", false); + uri.AppendPath(gatewayName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateVnetGatewayRequest(string subscriptionId, string resourceGroupName, string name, string vnetName, string gatewayName, AppServiceVirtualNetworkGatewayData data) { var message = _pipeline.CreateMessage(); @@ -1820,6 +2170,23 @@ public Response UpdateVnetGateway(string su } } + internal RequestUriBuilder CreateListRoutesForVnetRequestUri(string subscriptionId, string resourceGroupName, string name, string vnetName) + { + 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.Web/serverfarms/", false); + uri.AppendPath(name, true); + uri.AppendPath("/virtualNetworkConnections/", false); + uri.AppendPath(vnetName, true); + uri.AppendPath("/routes", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRoutesForVnetRequest(string subscriptionId, string resourceGroupName, string name, string vnetName) { var message = _pipeline.CreateMessage(); @@ -1915,6 +2282,24 @@ public Response> ListRoutesForVnet( } } + internal RequestUriBuilder CreateCreateOrUpdateVnetRouteRequestUri(string subscriptionId, string resourceGroupName, string name, string vnetName, string routeName, AppServiceVirtualNetworkRoute route) + { + 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.Web/serverfarms/", false); + uri.AppendPath(name, true); + uri.AppendPath("/virtualNetworkConnections/", false); + uri.AppendPath(vnetName, true); + uri.AppendPath("/routes/", false); + uri.AppendPath(routeName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateVnetRouteRequest(string subscriptionId, string resourceGroupName, string name, string vnetName, string routeName, AppServiceVirtualNetworkRoute route) { var message = _pipeline.CreateMessage(); @@ -2013,6 +2398,24 @@ public Response CreateOrUpdateVnetRoute(string su } } + internal RequestUriBuilder CreateDeleteVnetRouteRequestUri(string subscriptionId, string resourceGroupName, string name, string vnetName, string routeName) + { + 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.Web/serverfarms/", false); + uri.AppendPath(name, true); + uri.AppendPath("/virtualNetworkConnections/", false); + uri.AppendPath(vnetName, true); + uri.AppendPath("/routes/", false); + uri.AppendPath(routeName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteVnetRouteRequest(string subscriptionId, string resourceGroupName, string name, string vnetName, string routeName) { var message = _pipeline.CreateMessage(); @@ -2093,6 +2496,24 @@ public Response DeleteVnetRoute(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateUpdateVnetRouteRequestUri(string subscriptionId, string resourceGroupName, string name, string vnetName, string routeName, AppServiceVirtualNetworkRoute route) + { + 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.Web/serverfarms/", false); + uri.AppendPath(name, true); + uri.AppendPath("/virtualNetworkConnections/", false); + uri.AppendPath(vnetName, true); + uri.AppendPath("/routes/", false); + uri.AppendPath(routeName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateVnetRouteRequest(string subscriptionId, string resourceGroupName, string name, string vnetName, string routeName, AppServiceVirtualNetworkRoute route) { var message = _pipeline.CreateMessage(); @@ -2191,6 +2612,23 @@ public Response UpdateVnetRoute(string subscripti } } + internal RequestUriBuilder CreateRebootWorkerRequestUri(string subscriptionId, string resourceGroupName, string name, string workerName) + { + 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.Web/serverfarms/", false); + uri.AppendPath(name, true); + uri.AppendPath("/workers/", false); + uri.AppendPath(workerName, true); + uri.AppendPath("/reboot", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRebootWorkerRequest(string subscriptionId, string resourceGroupName, string name, string workerName) { var message = _pipeline.CreateMessage(); @@ -2266,6 +2704,14 @@ public Response RebootWorker(string subscriptionId, string resourceGroupName, st } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, bool? detailed) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, bool? detailed) { var message = _pipeline.CreateMessage(); @@ -2342,6 +2788,14 @@ public Response ListNextPage(string nextLink, string s } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -2414,6 +2868,14 @@ public Response ListByResourceGroupNextPage(string nex } } + internal RequestUriBuilder CreateListWebAppsByHybridConnectionNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string name, string namespaceName, string relayName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListWebAppsByHybridConnectionNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string name, string namespaceName, string relayName) { var message = _pipeline.CreateMessage(); @@ -2498,6 +2960,14 @@ public Response ListWebAppsByHybridConnectionN } } + internal RequestUriBuilder CreateListHybridConnectionsNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string name) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListHybridConnectionsNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -2574,6 +3044,14 @@ public Response ListHybridConnectionsNextPage(string } } + internal RequestUriBuilder CreateListWebAppsNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string name, string skipToken, string filter, string top) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListWebAppsNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string name, string skipToken, string filter, string top) { var message = _pipeline.CreateMessage(); @@ -2656,6 +3134,14 @@ public Response ListWebAppsNextPage(string nextLink, string su } } + internal RequestUriBuilder CreateListUsagesNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string name, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListUsagesNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string name, string filter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/CertificateOrdersDiagnosticsRestOperations.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/CertificateOrdersDiagnosticsRestOperations.cs index 4b1dd15397d4..09e667824f1c 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/CertificateOrdersDiagnosticsRestOperations.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/CertificateOrdersDiagnosticsRestOperations.cs @@ -37,6 +37,21 @@ public CertificateOrdersDiagnosticsRestOperations(HttpPipeline pipeline, string _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListAppServiceCertificateOrderDetectorResponseRequestUri(string subscriptionId, string resourceGroupName, string certificateOrderName) + { + 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.CertificateRegistration/certificateOrders/", false); + uri.AppendPath(certificateOrderName, true); + uri.AppendPath("/detectors", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListAppServiceCertificateOrderDetectorResponseRequest(string subscriptionId, string resourceGroupName, string certificateOrderName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,34 @@ public Response ListAppServiceCertificateOrderDete } } + internal RequestUriBuilder CreateGetAppServiceCertificateOrderDetectorResponseRequestUri(string subscriptionId, string resourceGroupName, string certificateOrderName, string detectorName, DateTimeOffset? startTime, DateTimeOffset? endTime, string timeGrain) + { + 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.CertificateRegistration/certificateOrders/", false); + uri.AppendPath(certificateOrderName, true); + uri.AppendPath("/detectors/", false); + uri.AppendPath(detectorName, true); + if (startTime != null) + { + uri.AppendQuery("startTime", startTime.Value, "O", true); + } + if (endTime != null) + { + uri.AppendQuery("endTime", endTime.Value, "O", true); + } + if (timeGrain != null) + { + uri.AppendQuery("timeGrain", timeGrain, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetAppServiceCertificateOrderDetectorResponseRequest(string subscriptionId, string resourceGroupName, string certificateOrderName, string detectorName, DateTimeOffset? startTime, DateTimeOffset? endTime, string timeGrain) { var message = _pipeline.CreateMessage(); @@ -222,6 +265,14 @@ public Response GetAppServiceCertificateOrderDetectorRes } } + internal RequestUriBuilder CreateListAppServiceCertificateOrderDetectorResponseNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string certificateOrderName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListAppServiceCertificateOrderDetectorResponseNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string certificateOrderName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/CertificateRegistrationProviderRestOperations.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/CertificateRegistrationProviderRestOperations.cs index 8ad4c6b3677c..425c93b072c6 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/CertificateRegistrationProviderRestOperations.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/CertificateRegistrationProviderRestOperations.cs @@ -37,6 +37,15 @@ public CertificateRegistrationProviderRestOperations(HttpPipeline pipeline, stri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListOperationsRequestUri() + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.CertificateRegistration/operations", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListOperationsRequest() { var message = _pipeline.CreateMessage(); @@ -92,6 +101,14 @@ public Response ListOperations(CancellationToken cancell } } + internal RequestUriBuilder CreateListOperationsNextPageRequestUri(string nextLink) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListOperationsNextPageRequest(string nextLink) { var message = _pipeline.CreateMessage(); diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/CertificatesRestOperations.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/CertificatesRestOperations.cs index 5b258f297014..9fa4aa57b243 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/CertificatesRestOperations.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/CertificatesRestOperations.cs @@ -37,6 +37,21 @@ public CertificatesRestOperations(HttpPipeline pipeline, string applicationId, U _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Web/certificates", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, false); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string filter) { var message = _pipeline.CreateMessage(); @@ -110,6 +125,19 @@ public Response List(string subscriptionId, string fil } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.Web/certificates", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -183,6 +211,20 @@ public Response ListByResourceGroup(string subscriptio } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.Web/certificates/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -265,6 +307,20 @@ public Response Get(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string name, AppCertificateData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Web/certificates/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string name, AppCertificateData data) { var message = _pipeline.CreateMessage(); @@ -351,6 +407,20 @@ public Response CreateOrUpdate(string subscriptionId, string } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.Web/certificates/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -421,6 +491,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string n } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string name, AppCertificatePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Web/certificates/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string name, AppCertificatePatch patch) { var message = _pipeline.CreateMessage(); @@ -507,6 +591,14 @@ public Response Update(string subscriptionId, string resourc } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string filter) { var message = _pipeline.CreateMessage(); @@ -577,6 +669,14 @@ public Response ListNextPage(string nextLink, string s } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/DeletedWebAppsRestOperations.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/DeletedWebAppsRestOperations.cs index fca8aa13bf79..58f757b24713 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/DeletedWebAppsRestOperations.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/DeletedWebAppsRestOperations.cs @@ -37,6 +37,17 @@ public DeletedWebAppsRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Web/deletedSites", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,19 @@ public Response List(string subscriptionId, Cancellatio } } + internal RequestUriBuilder CreateListByLocationRequestUri(string subscriptionId, AzureLocation location) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Web/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/deletedSites", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByLocationRequest(string subscriptionId, AzureLocation location) { var message = _pipeline.CreateMessage(); @@ -175,6 +199,20 @@ public Response ListByLocation(string subscriptionId, A } } + internal RequestUriBuilder CreateGetDeletedWebAppByLocationRequestUri(string subscriptionId, AzureLocation location, string deletedSiteId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Web/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/deletedSites/", false); + uri.AppendPath(deletedSiteId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetDeletedWebAppByLocationRequest(string subscriptionId, AzureLocation location, string deletedSiteId) { var message = _pipeline.CreateMessage(); @@ -251,6 +289,14 @@ public Response GetDeletedWebAppByLocation(string subscriptionI } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -319,6 +365,14 @@ public Response ListNextPage(string nextLink, string su } } + internal RequestUriBuilder CreateListByLocationNextPageRequestUri(string nextLink, string subscriptionId, AzureLocation location) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByLocationNextPageRequest(string nextLink, string subscriptionId, AzureLocation location) { var message = _pipeline.CreateMessage(); diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/DiagnosticsRestOperations.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/DiagnosticsRestOperations.cs index 11a652014a21..83aa77527ff5 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/DiagnosticsRestOperations.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/DiagnosticsRestOperations.cs @@ -37,6 +37,21 @@ public DiagnosticsRestOperations(HttpPipeline pipeline, string applicationId, Ur _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListHostingEnvironmentDetectorResponsesRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.Web/hostingEnvironments/", false); + uri.AppendPath(name, true); + uri.AppendPath("/detectors", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListHostingEnvironmentDetectorResponsesRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,34 @@ public Response ListHostingEnvironmentDetectorResp } } + internal RequestUriBuilder CreateGetHostingEnvironmentDetectorResponseRequestUri(string subscriptionId, string resourceGroupName, string name, string detectorName, DateTimeOffset? startTime, DateTimeOffset? endTime, string timeGrain) + { + 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.Web/hostingEnvironments/", false); + uri.AppendPath(name, true); + uri.AppendPath("/detectors/", false); + uri.AppendPath(detectorName, true); + if (startTime != null) + { + uri.AppendQuery("startTime", startTime.Value, "O", true); + } + if (endTime != null) + { + uri.AppendQuery("endTime", endTime.Value, "O", true); + } + if (timeGrain != null) + { + uri.AppendQuery("timeGrain", timeGrain, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetHostingEnvironmentDetectorResponseRequest(string subscriptionId, string resourceGroupName, string name, string detectorName, DateTimeOffset? startTime, DateTimeOffset? endTime, string timeGrain) { var message = _pipeline.CreateMessage(); @@ -222,6 +265,21 @@ public Response GetHostingEnvironmentDetectorResponse(st } } + internal RequestUriBuilder CreateListSiteDetectorResponsesRequestUri(string subscriptionId, string resourceGroupName, string siteName) + { + 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.Web/sites/", false); + uri.AppendPath(siteName, true); + uri.AppendPath("/detectors", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListSiteDetectorResponsesRequest(string subscriptionId, string resourceGroupName, string siteName) { var message = _pipeline.CreateMessage(); @@ -301,6 +359,34 @@ public Response ListSiteDetectorResponses(string s } } + internal RequestUriBuilder CreateGetSiteDetectorResponseRequestUri(string subscriptionId, string resourceGroupName, string siteName, string detectorName, DateTimeOffset? startTime, DateTimeOffset? endTime, string timeGrain) + { + 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.Web/sites/", false); + uri.AppendPath(siteName, true); + uri.AppendPath("/detectors/", false); + uri.AppendPath(detectorName, true); + if (startTime != null) + { + uri.AppendQuery("startTime", startTime.Value, "O", true); + } + if (endTime != null) + { + uri.AppendQuery("endTime", endTime.Value, "O", true); + } + if (timeGrain != null) + { + uri.AppendQuery("timeGrain", timeGrain, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetSiteDetectorResponseRequest(string subscriptionId, string resourceGroupName, string siteName, string detectorName, DateTimeOffset? startTime, DateTimeOffset? endTime, string timeGrain) { var message = _pipeline.CreateMessage(); @@ -407,6 +493,21 @@ public Response GetSiteDetectorResponse(string subscript } } + internal RequestUriBuilder CreateListSiteDiagnosticCategoriesRequestUri(string subscriptionId, string resourceGroupName, string siteName) + { + 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.Web/sites/", false); + uri.AppendPath(siteName, true); + uri.AppendPath("/diagnostics", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListSiteDiagnosticCategoriesRequest(string subscriptionId, string resourceGroupName, string siteName) { var message = _pipeline.CreateMessage(); @@ -486,6 +587,22 @@ public Response ListSiteDiagnosticCategories(strin } } + internal RequestUriBuilder CreateGetSiteDiagnosticCategoryRequestUri(string subscriptionId, string resourceGroupName, string siteName, string diagnosticCategory) + { + 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.Web/sites/", false); + uri.AppendPath(siteName, true); + uri.AppendPath("/diagnostics/", false); + uri.AppendPath(diagnosticCategory, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetSiteDiagnosticCategoryRequest(string subscriptionId, string resourceGroupName, string siteName, string diagnosticCategory) { var message = _pipeline.CreateMessage(); @@ -574,6 +691,23 @@ public Response GetSiteDiagnosticCategory(string subscri } } + internal RequestUriBuilder CreateListSiteAnalysesRequestUri(string subscriptionId, string resourceGroupName, string siteName, string diagnosticCategory) + { + 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.Web/sites/", false); + uri.AppendPath(siteName, true); + uri.AppendPath("/diagnostics/", false); + uri.AppendPath(diagnosticCategory, true); + uri.AppendPath("/analyses", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListSiteAnalysesRequest(string subscriptionId, string resourceGroupName, string siteName, string diagnosticCategory) { var message = _pipeline.CreateMessage(); @@ -659,6 +793,24 @@ public Response ListSiteAnalyses(string sub } } + internal RequestUriBuilder CreateGetSiteAnalysisRequestUri(string subscriptionId, string resourceGroupName, string siteName, string diagnosticCategory, string analysisName) + { + 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.Web/sites/", false); + uri.AppendPath(siteName, true); + uri.AppendPath("/diagnostics/", false); + uri.AppendPath(diagnosticCategory, true); + uri.AppendPath("/analyses/", false); + uri.AppendPath(analysisName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetSiteAnalysisRequest(string subscriptionId, string resourceGroupName, string siteName, string diagnosticCategory, string analysisName) { var message = _pipeline.CreateMessage(); @@ -753,6 +905,37 @@ public Response GetSiteAnalysis(string subscripti } } + internal RequestUriBuilder CreateExecuteSiteAnalysisRequestUri(string subscriptionId, string resourceGroupName, string siteName, string diagnosticCategory, string analysisName, DateTimeOffset? startTime, DateTimeOffset? endTime, string timeGrain) + { + 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.Web/sites/", false); + uri.AppendPath(siteName, true); + uri.AppendPath("/diagnostics/", false); + uri.AppendPath(diagnosticCategory, true); + uri.AppendPath("/analyses/", false); + uri.AppendPath(analysisName, true); + uri.AppendPath("/execute", false); + if (startTime != null) + { + uri.AppendQuery("startTime", startTime.Value, "O", true); + } + if (endTime != null) + { + uri.AppendQuery("endTime", endTime.Value, "O", true); + } + if (timeGrain != null) + { + uri.AppendQuery("timeGrain", timeGrain, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateExecuteSiteAnalysisRequest(string subscriptionId, string resourceGroupName, string siteName, string diagnosticCategory, string analysisName, DateTimeOffset? startTime, DateTimeOffset? endTime, string timeGrain) { var message = _pipeline.CreateMessage(); @@ -862,6 +1045,23 @@ public Response ExecuteSiteAnalysis(string subscriptionId, s } } + internal RequestUriBuilder CreateListSiteDetectorsRequestUri(string subscriptionId, string resourceGroupName, string siteName, string diagnosticCategory) + { + 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.Web/sites/", false); + uri.AppendPath(siteName, true); + uri.AppendPath("/diagnostics/", false); + uri.AppendPath(diagnosticCategory, true); + uri.AppendPath("/detectors", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListSiteDetectorsRequest(string subscriptionId, string resourceGroupName, string siteName, string diagnosticCategory) { var message = _pipeline.CreateMessage(); @@ -947,6 +1147,24 @@ public Response ListSiteDetectors(string subscript } } + internal RequestUriBuilder CreateGetSiteDetectorRequestUri(string subscriptionId, string resourceGroupName, string siteName, string diagnosticCategory, string detectorName) + { + 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.Web/sites/", false); + uri.AppendPath(siteName, true); + uri.AppendPath("/diagnostics/", false); + uri.AppendPath(diagnosticCategory, true); + uri.AppendPath("/detectors/", false); + uri.AppendPath(detectorName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetSiteDetectorRequest(string subscriptionId, string resourceGroupName, string siteName, string diagnosticCategory, string detectorName) { var message = _pipeline.CreateMessage(); @@ -1041,6 +1259,37 @@ public Response GetSiteDetector(string subscript } } + internal RequestUriBuilder CreateExecuteSiteDetectorRequestUri(string subscriptionId, string resourceGroupName, string siteName, string diagnosticCategory, string detectorName, DateTimeOffset? startTime, DateTimeOffset? endTime, string timeGrain) + { + 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.Web/sites/", false); + uri.AppendPath(siteName, true); + uri.AppendPath("/diagnostics/", false); + uri.AppendPath(diagnosticCategory, true); + uri.AppendPath("/detectors/", false); + uri.AppendPath(detectorName, true); + uri.AppendPath("/execute", false); + if (startTime != null) + { + uri.AppendQuery("startTime", startTime.Value, "O", true); + } + if (endTime != null) + { + uri.AppendQuery("endTime", endTime.Value, "O", true); + } + if (timeGrain != null) + { + uri.AppendQuery("timeGrain", timeGrain, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateExecuteSiteDetectorRequest(string subscriptionId, string resourceGroupName, string siteName, string diagnosticCategory, string detectorName, DateTimeOffset? startTime, DateTimeOffset? endTime, string timeGrain) { var message = _pipeline.CreateMessage(); @@ -1150,6 +1399,23 @@ public Response ExecuteSiteDetector(string subscript } } + internal RequestUriBuilder CreateListSiteDetectorResponsesSlotRequestUri(string subscriptionId, string resourceGroupName, string siteName, string slot) + { + 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.Web/sites/", false); + uri.AppendPath(siteName, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/detectors", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListSiteDetectorResponsesSlotRequest(string subscriptionId, string resourceGroupName, string siteName, string slot) { var message = _pipeline.CreateMessage(); @@ -1235,6 +1501,36 @@ public Response ListSiteDetectorResponsesSlot(stri } } + internal RequestUriBuilder CreateGetSiteDetectorResponseSlotRequestUri(string subscriptionId, string resourceGroupName, string siteName, string slot, string detectorName, DateTimeOffset? startTime, DateTimeOffset? endTime, string timeGrain) + { + 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.Web/sites/", false); + uri.AppendPath(siteName, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/detectors/", false); + uri.AppendPath(detectorName, true); + if (startTime != null) + { + uri.AppendQuery("startTime", startTime.Value, "O", true); + } + if (endTime != null) + { + uri.AppendQuery("endTime", endTime.Value, "O", true); + } + if (timeGrain != null) + { + uri.AppendQuery("timeGrain", timeGrain, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetSiteDetectorResponseSlotRequest(string subscriptionId, string resourceGroupName, string siteName, string slot, string detectorName, DateTimeOffset? startTime, DateTimeOffset? endTime, string timeGrain) { var message = _pipeline.CreateMessage(); @@ -1347,6 +1643,23 @@ public Response GetSiteDetectorResponseSlot(string subsc } } + internal RequestUriBuilder CreateListSiteDiagnosticCategoriesSlotRequestUri(string subscriptionId, string resourceGroupName, string siteName, string slot) + { + 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.Web/sites/", false); + uri.AppendPath(siteName, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/diagnostics", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListSiteDiagnosticCategoriesSlotRequest(string subscriptionId, string resourceGroupName, string siteName, string slot) { var message = _pipeline.CreateMessage(); @@ -1432,6 +1745,24 @@ public Response ListSiteDiagnosticCategoriesSlot(s } } + internal RequestUriBuilder CreateGetSiteDiagnosticCategorySlotRequestUri(string subscriptionId, string resourceGroupName, string siteName, string slot, string diagnosticCategory) + { + 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.Web/sites/", false); + uri.AppendPath(siteName, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/diagnostics/", false); + uri.AppendPath(diagnosticCategory, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetSiteDiagnosticCategorySlotRequest(string subscriptionId, string resourceGroupName, string siteName, string slot, string diagnosticCategory) { var message = _pipeline.CreateMessage(); @@ -1526,6 +1857,25 @@ public Response GetSiteDiagnosticCategorySlot(string sub } } + internal RequestUriBuilder CreateListSiteAnalysesSlotRequestUri(string subscriptionId, string resourceGroupName, string siteName, string slot, string diagnosticCategory) + { + 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.Web/sites/", false); + uri.AppendPath(siteName, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/diagnostics/", false); + uri.AppendPath(diagnosticCategory, true); + uri.AppendPath("/analyses", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListSiteAnalysesSlotRequest(string subscriptionId, string resourceGroupName, string siteName, string slot, string diagnosticCategory) { var message = _pipeline.CreateMessage(); @@ -1617,6 +1967,26 @@ public Response ListSiteAnalysesSlot(string } } + internal RequestUriBuilder CreateGetSiteAnalysisSlotRequestUri(string subscriptionId, string resourceGroupName, string siteName, string slot, string diagnosticCategory, string analysisName) + { + 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.Web/sites/", false); + uri.AppendPath(siteName, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/diagnostics/", false); + uri.AppendPath(diagnosticCategory, true); + uri.AppendPath("/analyses/", false); + uri.AppendPath(analysisName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetSiteAnalysisSlotRequest(string subscriptionId, string resourceGroupName, string siteName, string slot, string diagnosticCategory, string analysisName) { var message = _pipeline.CreateMessage(); @@ -1717,6 +2087,39 @@ public Response GetSiteAnalysisSlot(string subscr } } + internal RequestUriBuilder CreateExecuteSiteAnalysisSlotRequestUri(string subscriptionId, string resourceGroupName, string siteName, string slot, string diagnosticCategory, string analysisName, DateTimeOffset? startTime, DateTimeOffset? endTime, string timeGrain) + { + 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.Web/sites/", false); + uri.AppendPath(siteName, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/diagnostics/", false); + uri.AppendPath(diagnosticCategory, true); + uri.AppendPath("/analyses/", false); + uri.AppendPath(analysisName, true); + uri.AppendPath("/execute", false); + if (startTime != null) + { + uri.AppendQuery("startTime", startTime.Value, "O", true); + } + if (endTime != null) + { + uri.AppendQuery("endTime", endTime.Value, "O", true); + } + if (timeGrain != null) + { + uri.AppendQuery("timeGrain", timeGrain, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateExecuteSiteAnalysisSlotRequest(string subscriptionId, string resourceGroupName, string siteName, string slot, string diagnosticCategory, string analysisName, DateTimeOffset? startTime, DateTimeOffset? endTime, string timeGrain) { var message = _pipeline.CreateMessage(); @@ -1832,6 +2235,25 @@ public Response ExecuteSiteAnalysisSlot(string subscriptionI } } + internal RequestUriBuilder CreateListSiteDetectorsSlotRequestUri(string subscriptionId, string resourceGroupName, string siteName, string slot, string diagnosticCategory) + { + 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.Web/sites/", false); + uri.AppendPath(siteName, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/diagnostics/", false); + uri.AppendPath(diagnosticCategory, true); + uri.AppendPath("/detectors", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListSiteDetectorsSlotRequest(string subscriptionId, string resourceGroupName, string siteName, string slot, string diagnosticCategory) { var message = _pipeline.CreateMessage(); @@ -1923,6 +2345,26 @@ public Response ListSiteDetectorsSlot(string subsc } } + internal RequestUriBuilder CreateGetSiteDetectorSlotRequestUri(string subscriptionId, string resourceGroupName, string siteName, string slot, string diagnosticCategory, string detectorName) + { + 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.Web/sites/", false); + uri.AppendPath(siteName, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/diagnostics/", false); + uri.AppendPath(diagnosticCategory, true); + uri.AppendPath("/detectors/", false); + uri.AppendPath(detectorName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetSiteDetectorSlotRequest(string subscriptionId, string resourceGroupName, string siteName, string slot, string diagnosticCategory, string detectorName) { var message = _pipeline.CreateMessage(); @@ -2023,6 +2465,39 @@ public Response GetSiteDetectorSlot(string subsc } } + internal RequestUriBuilder CreateExecuteSiteDetectorSlotRequestUri(string subscriptionId, string resourceGroupName, string siteName, string slot, string diagnosticCategory, string detectorName, DateTimeOffset? startTime, DateTimeOffset? endTime, string timeGrain) + { + 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.Web/sites/", false); + uri.AppendPath(siteName, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/diagnostics/", false); + uri.AppendPath(diagnosticCategory, true); + uri.AppendPath("/detectors/", false); + uri.AppendPath(detectorName, true); + uri.AppendPath("/execute", false); + if (startTime != null) + { + uri.AppendQuery("startTime", startTime.Value, "O", true); + } + if (endTime != null) + { + uri.AppendQuery("endTime", endTime.Value, "O", true); + } + if (timeGrain != null) + { + uri.AppendQuery("timeGrain", timeGrain, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateExecuteSiteDetectorSlotRequest(string subscriptionId, string resourceGroupName, string siteName, string slot, string diagnosticCategory, string detectorName, DateTimeOffset? startTime, DateTimeOffset? endTime, string timeGrain) { var message = _pipeline.CreateMessage(); @@ -2138,6 +2613,14 @@ public Response ExecuteSiteDetectorSlot(string subsc } } + internal RequestUriBuilder CreateListHostingEnvironmentDetectorResponsesNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string name) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListHostingEnvironmentDetectorResponsesNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -2214,6 +2697,14 @@ public Response ListHostingEnvironmentDetectorResp } } + internal RequestUriBuilder CreateListSiteDetectorResponsesNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string siteName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListSiteDetectorResponsesNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string siteName) { var message = _pipeline.CreateMessage(); @@ -2290,6 +2781,14 @@ public Response ListSiteDetectorResponsesNextPage( } } + internal RequestUriBuilder CreateListSiteDiagnosticCategoriesNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string siteName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListSiteDiagnosticCategoriesNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string siteName) { var message = _pipeline.CreateMessage(); @@ -2366,6 +2865,14 @@ public Response ListSiteDiagnosticCategoriesNextPa } } + internal RequestUriBuilder CreateListSiteAnalysesNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string siteName, string diagnosticCategory) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListSiteAnalysesNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string siteName, string diagnosticCategory) { var message = _pipeline.CreateMessage(); @@ -2446,6 +2953,14 @@ public Response ListSiteAnalysesNextPage(st } } + internal RequestUriBuilder CreateListSiteDetectorsNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string siteName, string diagnosticCategory) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListSiteDetectorsNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string siteName, string diagnosticCategory) { var message = _pipeline.CreateMessage(); @@ -2526,6 +3041,14 @@ public Response ListSiteDetectorsNextPage(string n } } + internal RequestUriBuilder CreateListSiteDetectorResponsesSlotNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string siteName, string slot) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListSiteDetectorResponsesSlotNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string siteName, string slot) { var message = _pipeline.CreateMessage(); @@ -2606,6 +3129,14 @@ public Response ListSiteDetectorResponsesSlotNextP } } + internal RequestUriBuilder CreateListSiteDiagnosticCategoriesSlotNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string siteName, string slot) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListSiteDiagnosticCategoriesSlotNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string siteName, string slot) { var message = _pipeline.CreateMessage(); @@ -2686,6 +3217,14 @@ public Response ListSiteDiagnosticCategoriesSlotNe } } + internal RequestUriBuilder CreateListSiteAnalysesSlotNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string siteName, string slot, string diagnosticCategory) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListSiteAnalysesSlotNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string siteName, string slot, string diagnosticCategory) { var message = _pipeline.CreateMessage(); @@ -2770,6 +3309,14 @@ public Response ListSiteAnalysesSlotNextPag } } + internal RequestUriBuilder CreateListSiteDetectorsSlotNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string siteName, string slot, string diagnosticCategory) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListSiteDetectorsSlotNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string siteName, string slot, string diagnosticCategory) { var message = _pipeline.CreateMessage(); diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/DomainRegistrationProviderRestOperations.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/DomainRegistrationProviderRestOperations.cs index a6f103af36a2..227f69dd400d 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/DomainRegistrationProviderRestOperations.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/DomainRegistrationProviderRestOperations.cs @@ -37,6 +37,15 @@ public DomainRegistrationProviderRestOperations(HttpPipeline pipeline, string ap _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListOperationsRequestUri() + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.DomainRegistration/operations", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListOperationsRequest() { var message = _pipeline.CreateMessage(); @@ -92,6 +101,14 @@ public Response ListOperations(CancellationToken cancell } } + internal RequestUriBuilder CreateListOperationsNextPageRequestUri(string nextLink) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListOperationsNextPageRequest(string nextLink) { var message = _pipeline.CreateMessage(); diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/DomainsRestOperations.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/DomainsRestOperations.cs index 0a9c7bda42a8..a45caffeaf09 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/DomainsRestOperations.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/DomainsRestOperations.cs @@ -37,6 +37,17 @@ public DomainsRestOperations(HttpPipeline pipeline, string applicationId, Uri en _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCheckAvailabilityRequestUri(string subscriptionId, AppServiceDomainNameIdentifier identifier) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.DomainRegistration/checkDomainAvailability", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCheckAvailabilityRequest(string subscriptionId, AppServiceDomainNameIdentifier identifier) { var message = _pipeline.CreateMessage(); @@ -112,6 +123,17 @@ public Response CheckAvailability(string subscrip } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.DomainRegistration/domains", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -179,6 +201,17 @@ public Response List(string subscriptionId, Cancella } } + internal RequestUriBuilder CreateGetControlCenterSsoRequestRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.DomainRegistration/generateSsoRequest", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetControlCenterSsoRequestRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -246,6 +279,17 @@ public Response GetControlCenterSsoRequest(st } } + internal RequestUriBuilder CreateListRecommendationsRequestUri(string subscriptionId, DomainRecommendationSearchContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.DomainRegistration/listDomainRecommendations", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRecommendationsRequest(string subscriptionId, DomainRecommendationSearchContent content) { var message = _pipeline.CreateMessage(); @@ -321,6 +365,19 @@ public Response ListRecommendations(st } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.DomainRegistration/domains", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -394,6 +451,20 @@ public Response ListByResourceGroup(string subscript } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string domainName) + { + 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.DomainRegistration/domains/", false); + uri.AppendPath(domainName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string domainName) { var message = _pipeline.CreateMessage(); @@ -476,6 +547,20 @@ public Response Get(string subscriptionId, string resource } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string domainName, AppServiceDomainData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DomainRegistration/domains/", false); + uri.AppendPath(domainName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string domainName, AppServiceDomainData data) { var message = _pipeline.CreateMessage(); @@ -554,6 +639,24 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string domainName, bool? forceHardDeleteDomain) + { + 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.DomainRegistration/domains/", false); + uri.AppendPath(domainName, true); + if (forceHardDeleteDomain != null) + { + uri.AppendQuery("forceHardDeleteDomain", forceHardDeleteDomain.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string domainName, bool? forceHardDeleteDomain) { var message = _pipeline.CreateMessage(); @@ -630,6 +733,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string d } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string domainName, AppServiceDomainPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DomainRegistration/domains/", false); + uri.AppendPath(domainName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string domainName, AppServiceDomainPatch patch) { var message = _pipeline.CreateMessage(); @@ -718,6 +835,21 @@ public Response Update(string subscriptionId, string resou } } + internal RequestUriBuilder CreateListOwnershipIdentifiersRequestUri(string subscriptionId, string resourceGroupName, string domainName) + { + 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.DomainRegistration/domains/", false); + uri.AppendPath(domainName, true); + uri.AppendPath("/domainOwnershipIdentifiers", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListOwnershipIdentifiersRequest(string subscriptionId, string resourceGroupName, string domainName) { var message = _pipeline.CreateMessage(); @@ -797,6 +929,22 @@ public Response ListOwnershipIdentifiers(st } } + internal RequestUriBuilder CreateGetOwnershipIdentifierRequestUri(string subscriptionId, string resourceGroupName, string domainName, string name) + { + 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.DomainRegistration/domains/", false); + uri.AppendPath(domainName, true); + uri.AppendPath("/domainOwnershipIdentifiers/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetOwnershipIdentifierRequest(string subscriptionId, string resourceGroupName, string domainName, string name) { var message = _pipeline.CreateMessage(); @@ -885,6 +1033,22 @@ public Response GetOwnershipIdentifier(string sub } } + internal RequestUriBuilder CreateCreateOrUpdateOwnershipIdentifierRequestUri(string subscriptionId, string resourceGroupName, string domainName, string name, DomainOwnershipIdentifierData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DomainRegistration/domains/", false); + uri.AppendPath(domainName, true); + uri.AppendPath("/domainOwnershipIdentifiers/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateOwnershipIdentifierRequest(string subscriptionId, string resourceGroupName, string domainName, string name, DomainOwnershipIdentifierData data) { var message = _pipeline.CreateMessage(); @@ -977,6 +1141,22 @@ public Response CreateOrUpdateOwnershipIdentifier } } + internal RequestUriBuilder CreateDeleteOwnershipIdentifierRequestUri(string subscriptionId, string resourceGroupName, string domainName, string name) + { + 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.DomainRegistration/domains/", false); + uri.AppendPath(domainName, true); + uri.AppendPath("/domainOwnershipIdentifiers/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteOwnershipIdentifierRequest(string subscriptionId, string resourceGroupName, string domainName, string name) { var message = _pipeline.CreateMessage(); @@ -1053,6 +1233,22 @@ public Response DeleteOwnershipIdentifier(string subscriptionId, string resource } } + internal RequestUriBuilder CreateUpdateOwnershipIdentifierRequestUri(string subscriptionId, string resourceGroupName, string domainName, string name, DomainOwnershipIdentifierData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DomainRegistration/domains/", false); + uri.AppendPath(domainName, true); + uri.AppendPath("/domainOwnershipIdentifiers/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateOwnershipIdentifierRequest(string subscriptionId, string resourceGroupName, string domainName, string name, DomainOwnershipIdentifierData data) { var message = _pipeline.CreateMessage(); @@ -1145,6 +1341,21 @@ public Response UpdateOwnershipIdentifier(string } } + internal RequestUriBuilder CreateRenewRequestUri(string subscriptionId, string resourceGroupName, string domainName) + { + 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.DomainRegistration/domains/", false); + uri.AppendPath(domainName, true); + uri.AppendPath("/renew", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRenewRequest(string subscriptionId, string resourceGroupName, string domainName) { var message = _pipeline.CreateMessage(); @@ -1218,6 +1429,14 @@ public Response Renew(string subscriptionId, string resourceGroupName, string do } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -1286,6 +1505,14 @@ public Response ListNextPage(string nextLink, string } } + internal RequestUriBuilder CreateListRecommendationsNextPageRequestUri(string nextLink, string subscriptionId, DomainRecommendationSearchContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListRecommendationsNextPageRequest(string nextLink, string subscriptionId, DomainRecommendationSearchContent content) { var message = _pipeline.CreateMessage(); @@ -1358,6 +1585,14 @@ public Response ListRecommendationsNex } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -1430,6 +1665,14 @@ public Response ListByResourceGroupNextPage(string n } } + internal RequestUriBuilder CreateListOwnershipIdentifiersNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string domainName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListOwnershipIdentifiersNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string domainName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/GlobalRestOperations.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/GlobalRestOperations.cs index 3a45b069b5c7..787e86f5b0b9 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/GlobalRestOperations.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/GlobalRestOperations.cs @@ -38,6 +38,18 @@ public GlobalRestOperations(HttpPipeline pipeline, string applicationId, Uri end _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetDeletedWebAppRequestUri(string subscriptionId, string deletedSiteId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Web/deletedSites/", false); + uri.AppendPath(deletedSiteId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetDeletedWebAppRequest(string subscriptionId, string deletedSiteId) { var message = _pipeline.CreateMessage(); @@ -114,6 +126,19 @@ public Response GetDeletedWebApp(string subscriptionId, string } } + internal RequestUriBuilder CreateGetDeletedWebAppSnapshotsRequestUri(string subscriptionId, string deletedSiteId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Web/deletedSites/", false); + uri.AppendPath(deletedSiteId, true); + uri.AppendPath("/snapshots", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetDeletedWebAppSnapshotsRequest(string subscriptionId, string deletedSiteId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/KubeEnvironmentsRestOperations.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/KubeEnvironmentsRestOperations.cs index 060e75dc0cec..fa15f65cd4f6 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/KubeEnvironmentsRestOperations.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/KubeEnvironmentsRestOperations.cs @@ -37,6 +37,17 @@ public KubeEnvironmentsRestOperations(HttpPipeline pipeline, string applicationI _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Web/kubeEnvironments", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,19 @@ public Response ListBySubscription(string subscriptio } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.Web/kubeEnvironments", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -177,6 +201,20 @@ public Response ListByResourceGroup(string subscripti } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.Web/kubeEnvironments/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -259,6 +297,20 @@ public Response Get(string subscriptionId, string resourceG } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string name, KubeEnvironmentData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Web/kubeEnvironments/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string name, KubeEnvironmentData data) { var message = _pipeline.CreateMessage(); @@ -337,6 +389,20 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.Web/kubeEnvironments/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -409,6 +475,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string n } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string name, KubeEnvironmentPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Web/kubeEnvironments/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string name, KubeEnvironmentPatch patch) { var message = _pipeline.CreateMessage(); @@ -497,6 +577,14 @@ public Response Update(string subscriptionId, string resour } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -565,6 +653,14 @@ public Response ListBySubscriptionNextPage(string nex } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/ProviderRestOperations.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/ProviderRestOperations.cs index 21198a68b702..7e050c154376 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/ProviderRestOperations.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/ProviderRestOperations.cs @@ -37,6 +37,19 @@ public ProviderRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetAvailableStacksRequestUri(ProviderOSTypeSelected? osTypeSelected) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Web/availableStacks", false); + if (osTypeSelected != null) + { + uri.AppendQuery("osTypeSelected", osTypeSelected.Value.ToString(), true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetAvailableStacksRequest(ProviderOSTypeSelected? osTypeSelected) { var message = _pipeline.CreateMessage(); @@ -98,6 +111,19 @@ public Response GetAvailableStacks(ProviderOSTypeSel } } + internal RequestUriBuilder CreateGetFunctionAppStacksRequestUri(ProviderStackOSType? stackOSType) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Web/functionAppStacks", false); + if (stackOSType != null) + { + uri.AppendQuery("stackOsType", stackOSType.Value.ToString(), true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetFunctionAppStacksRequest(ProviderStackOSType? stackOSType) { var message = _pipeline.CreateMessage(); @@ -159,6 +185,21 @@ public Response GetFunctionAppStacks(ProviderStackOS } } + internal RequestUriBuilder CreateGetFunctionAppStacksForLocationRequestUri(AzureLocation location, ProviderStackOSType? stackOSType) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Web/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/functionAppStacks", false); + if (stackOSType != null) + { + uri.AppendQuery("stackOsType", stackOSType.Value.ToString(), true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetFunctionAppStacksForLocationRequest(AzureLocation location, ProviderStackOSType? stackOSType) { var message = _pipeline.CreateMessage(); @@ -224,6 +265,21 @@ public Response GetFunctionAppStacksForLocation(Azur } } + internal RequestUriBuilder CreateGetWebAppStacksForLocationRequestUri(AzureLocation location, ProviderStackOSType? stackOSType) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Web/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/webAppStacks", false); + if (stackOSType != null) + { + uri.AppendQuery("stackOsType", stackOSType.Value.ToString(), true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetWebAppStacksForLocationRequest(AzureLocation location, ProviderStackOSType? stackOSType) { var message = _pipeline.CreateMessage(); @@ -289,6 +345,15 @@ public Response GetWebAppStacksForLocation(AzureLocation } } + internal RequestUriBuilder CreateListOperationsRequestUri() + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Web/operations", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListOperationsRequest() { var message = _pipeline.CreateMessage(); @@ -344,6 +409,19 @@ public Response ListOperations(CancellationToken cancell } } + internal RequestUriBuilder CreateGetWebAppStacksRequestUri(ProviderStackOSType? stackOSType) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Web/webAppStacks", false); + if (stackOSType != null) + { + uri.AppendQuery("stackOsType", stackOSType.Value.ToString(), true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetWebAppStacksRequest(ProviderStackOSType? stackOSType) { var message = _pipeline.CreateMessage(); @@ -405,6 +483,21 @@ public Response GetWebAppStacks(ProviderStackOSType? stac } } + internal RequestUriBuilder CreateGetAvailableStacksOnPremRequestUri(string subscriptionId, ProviderOSTypeSelected? osTypeSelected) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Web/availableStacks", false); + if (osTypeSelected != null) + { + uri.AppendQuery("osTypeSelected", osTypeSelected.Value.ToString(), true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetAvailableStacksOnPremRequest(string subscriptionId, ProviderOSTypeSelected? osTypeSelected) { var message = _pipeline.CreateMessage(); @@ -478,6 +571,14 @@ public Response GetAvailableStacksOnPrem(string subs } } + internal RequestUriBuilder CreateGetAvailableStacksNextPageRequestUri(string nextLink, ProviderOSTypeSelected? osTypeSelected) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateGetAvailableStacksNextPageRequest(string nextLink, ProviderOSTypeSelected? osTypeSelected) { var message = _pipeline.CreateMessage(); @@ -542,6 +643,14 @@ public Response GetAvailableStacksNextPage(string ne } } + internal RequestUriBuilder CreateGetFunctionAppStacksNextPageRequestUri(string nextLink, ProviderStackOSType? stackOSType) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateGetFunctionAppStacksNextPageRequest(string nextLink, ProviderStackOSType? stackOSType) { var message = _pipeline.CreateMessage(); @@ -606,6 +715,14 @@ public Response GetFunctionAppStacksNextPage(string } } + internal RequestUriBuilder CreateGetFunctionAppStacksForLocationNextPageRequestUri(string nextLink, AzureLocation location, ProviderStackOSType? stackOSType) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateGetFunctionAppStacksForLocationNextPageRequest(string nextLink, AzureLocation location, ProviderStackOSType? stackOSType) { var message = _pipeline.CreateMessage(); @@ -672,6 +789,14 @@ public Response GetFunctionAppStacksForLocationNextP } } + internal RequestUriBuilder CreateGetWebAppStacksForLocationNextPageRequestUri(string nextLink, AzureLocation location, ProviderStackOSType? stackOSType) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateGetWebAppStacksForLocationNextPageRequest(string nextLink, AzureLocation location, ProviderStackOSType? stackOSType) { var message = _pipeline.CreateMessage(); @@ -738,6 +863,14 @@ public Response GetWebAppStacksForLocationNextPage(string } } + internal RequestUriBuilder CreateListOperationsNextPageRequestUri(string nextLink) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListOperationsNextPageRequest(string nextLink) { var message = _pipeline.CreateMessage(); @@ -800,6 +933,14 @@ public Response ListOperationsNextPage(string nextLink, } } + internal RequestUriBuilder CreateGetWebAppStacksNextPageRequestUri(string nextLink, ProviderStackOSType? stackOSType) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateGetWebAppStacksNextPageRequest(string nextLink, ProviderStackOSType? stackOSType) { var message = _pipeline.CreateMessage(); @@ -864,6 +1005,14 @@ public Response GetWebAppStacksNextPage(string nextLink, } } + internal RequestUriBuilder CreateGetAvailableStacksOnPremNextPageRequestUri(string nextLink, string subscriptionId, ProviderOSTypeSelected? osTypeSelected) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateGetAvailableStacksOnPremNextPageRequest(string nextLink, string subscriptionId, ProviderOSTypeSelected? osTypeSelected) { var message = _pipeline.CreateMessage(); diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/RecommendationsRestOperations.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/RecommendationsRestOperations.cs index ad238d15ef7b..4c9253f82868 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/RecommendationsRestOperations.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/RecommendationsRestOperations.cs @@ -37,6 +37,25 @@ public RecommendationsRestOperations(HttpPipeline pipeline, string applicationId _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, bool? featured, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Web/recommendations", false); + if (featured != null) + { + uri.AppendQuery("featured", featured.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, false); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, bool? featured, string filter) { var message = _pipeline.CreateMessage(); @@ -116,6 +135,17 @@ public Response List(string subscriptionId, } } + internal RequestUriBuilder CreateResetAllFiltersRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Web/recommendations/reset", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateResetAllFiltersRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -173,6 +203,19 @@ public Response ResetAllFilters(string subscriptionId, CancellationToken cancell } } + internal RequestUriBuilder CreateDisableRecommendationForSubscriptionRequestUri(string subscriptionId, string name) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Web/recommendations/", false); + uri.AppendPath(name, true); + uri.AppendPath("/disable", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDisableRecommendationForSubscriptionRequest(string subscriptionId, string name) { var message = _pipeline.CreateMessage(); @@ -236,6 +279,29 @@ public Response DisableRecommendationForSubscription(string subscriptionId, stri } } + internal RequestUriBuilder CreateListHistoryForHostingEnvironmentRequestUri(string subscriptionId, string resourceGroupName, string hostingEnvironmentName, bool? expiredOnly, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Web/hostingEnvironments/", false); + uri.AppendPath(hostingEnvironmentName, true); + uri.AppendPath("/recommendationHistory", false); + if (expiredOnly != null) + { + uri.AppendQuery("expiredOnly", expiredOnly.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, false); + } + return uri; + } + internal HttpMessage CreateListHistoryForHostingEnvironmentRequest(string subscriptionId, string resourceGroupName, string hostingEnvironmentName, bool? expiredOnly, string filter) { var message = _pipeline.CreateMessage(); @@ -327,6 +393,29 @@ public Response ListHistoryForHostingEnviron } } + internal RequestUriBuilder CreateListRecommendedRulesForHostingEnvironmentRequestUri(string subscriptionId, string resourceGroupName, string hostingEnvironmentName, bool? featured, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Web/hostingEnvironments/", false); + uri.AppendPath(hostingEnvironmentName, true); + uri.AppendPath("/recommendations", false); + if (featured != null) + { + uri.AppendQuery("featured", featured.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, false); + } + return uri; + } + internal HttpMessage CreateListRecommendedRulesForHostingEnvironmentRequest(string subscriptionId, string resourceGroupName, string hostingEnvironmentName, bool? featured, string filter) { var message = _pipeline.CreateMessage(); @@ -418,6 +507,22 @@ public Response ListRecommendedRulesForHosti } } + internal RequestUriBuilder CreateDisableAllForHostingEnvironmentRequestUri(string subscriptionId, string resourceGroupName, string hostingEnvironmentName, string environmentName) + { + 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.Web/hostingEnvironments/", false); + uri.AppendPath(hostingEnvironmentName, true); + uri.AppendPath("/recommendations/disable", false); + uri.AppendQuery("environmentName", environmentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDisableAllForHostingEnvironmentRequest(string subscriptionId, string resourceGroupName, string hostingEnvironmentName, string environmentName) { var message = _pipeline.CreateMessage(); @@ -492,6 +597,22 @@ public Response DisableAllForHostingEnvironment(string subscriptionId, string re } } + internal RequestUriBuilder CreateResetAllFiltersForHostingEnvironmentRequestUri(string subscriptionId, string resourceGroupName, string hostingEnvironmentName, string environmentName) + { + 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.Web/hostingEnvironments/", false); + uri.AppendPath(hostingEnvironmentName, true); + uri.AppendPath("/recommendations/reset", false); + uri.AppendQuery("environmentName", environmentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateResetAllFiltersForHostingEnvironmentRequest(string subscriptionId, string resourceGroupName, string hostingEnvironmentName, string environmentName) { var message = _pipeline.CreateMessage(); @@ -566,6 +687,30 @@ public Response ResetAllFiltersForHostingEnvironment(string subscriptionId, stri } } + internal RequestUriBuilder CreateGetRuleDetailsByHostingEnvironmentRequestUri(string subscriptionId, string resourceGroupName, string hostingEnvironmentName, string name, bool? updateSeen, string recommendationId) + { + 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.Web/hostingEnvironments/", false); + uri.AppendPath(hostingEnvironmentName, true); + uri.AppendPath("/recommendations/", false); + uri.AppendPath(name, true); + if (updateSeen != null) + { + uri.AppendQuery("updateSeen", updateSeen.Value, true); + } + if (recommendationId != null) + { + uri.AppendQuery("recommendationId", recommendationId, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRuleDetailsByHostingEnvironmentRequest(string subscriptionId, string resourceGroupName, string hostingEnvironmentName, string name, bool? updateSeen, string recommendationId) { var message = _pipeline.CreateMessage(); @@ -666,6 +811,24 @@ public Response GetRuleDetailsByHostingEnvironment(strin } } + internal RequestUriBuilder CreateDisableRecommendationForHostingEnvironmentRequestUri(string subscriptionId, string resourceGroupName, string hostingEnvironmentName, string name, string environmentName) + { + 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.Web/hostingEnvironments/", false); + uri.AppendPath(hostingEnvironmentName, true); + uri.AppendPath("/recommendations/", false); + uri.AppendPath(name, true); + uri.AppendPath("/disable", false); + uri.AppendQuery("environmentName", environmentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDisableRecommendationForHostingEnvironmentRequest(string subscriptionId, string resourceGroupName, string hostingEnvironmentName, string name, string environmentName) { var message = _pipeline.CreateMessage(); @@ -746,6 +909,29 @@ public Response DisableRecommendationForHostingEnvironment(string subscriptionId } } + internal RequestUriBuilder CreateListHistoryForWebAppRequestUri(string subscriptionId, string resourceGroupName, string siteName, bool? expiredOnly, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Web/sites/", false); + uri.AppendPath(siteName, true); + uri.AppendPath("/recommendationHistory", false); + if (expiredOnly != null) + { + uri.AppendQuery("expiredOnly", expiredOnly.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, false); + } + return uri; + } + internal HttpMessage CreateListHistoryForWebAppRequest(string subscriptionId, string resourceGroupName, string siteName, bool? expiredOnly, string filter) { var message = _pipeline.CreateMessage(); @@ -837,6 +1023,29 @@ public Response ListHistoryForWebApp(string } } + internal RequestUriBuilder CreateListRecommendedRulesForWebAppRequestUri(string subscriptionId, string resourceGroupName, string siteName, bool? featured, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Web/sites/", false); + uri.AppendPath(siteName, true); + uri.AppendPath("/recommendations", false); + if (featured != null) + { + uri.AppendQuery("featured", featured.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, false); + } + return uri; + } + internal HttpMessage CreateListRecommendedRulesForWebAppRequest(string subscriptionId, string resourceGroupName, string siteName, bool? featured, string filter) { var message = _pipeline.CreateMessage(); @@ -928,6 +1137,21 @@ public Response ListRecommendedRulesForWebAp } } + internal RequestUriBuilder CreateDisableAllForWebAppRequestUri(string subscriptionId, string resourceGroupName, string siteName) + { + 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.Web/sites/", false); + uri.AppendPath(siteName, true); + uri.AppendPath("/recommendations/disable", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDisableAllForWebAppRequest(string subscriptionId, string resourceGroupName, string siteName) { var message = _pipeline.CreateMessage(); @@ -997,6 +1221,21 @@ public Response DisableAllForWebApp(string subscriptionId, string resourceGroupN } } + internal RequestUriBuilder CreateResetAllFiltersForWebAppRequestUri(string subscriptionId, string resourceGroupName, string siteName) + { + 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.Web/sites/", false); + uri.AppendPath(siteName, true); + uri.AppendPath("/recommendations/reset", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateResetAllFiltersForWebAppRequest(string subscriptionId, string resourceGroupName, string siteName) { var message = _pipeline.CreateMessage(); @@ -1066,6 +1305,30 @@ public Response ResetAllFiltersForWebApp(string subscriptionId, string resourceG } } + internal RequestUriBuilder CreateGetRuleDetailsByWebAppRequestUri(string subscriptionId, string resourceGroupName, string siteName, string name, bool? updateSeen, string recommendationId) + { + 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.Web/sites/", false); + uri.AppendPath(siteName, true); + uri.AppendPath("/recommendations/", false); + uri.AppendPath(name, true); + if (updateSeen != null) + { + uri.AppendQuery("updateSeen", updateSeen.Value, true); + } + if (recommendationId != null) + { + uri.AppendQuery("recommendationId", recommendationId, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRuleDetailsByWebAppRequest(string subscriptionId, string resourceGroupName, string siteName, string name, bool? updateSeen, string recommendationId) { var message = _pipeline.CreateMessage(); @@ -1166,6 +1429,23 @@ public Response GetRuleDetailsByWebApp(string subscripti } } + internal RequestUriBuilder CreateDisableRecommendationForSiteRequestUri(string subscriptionId, string resourceGroupName, string siteName, string name) + { + 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.Web/sites/", false); + uri.AppendPath(siteName, true); + uri.AppendPath("/recommendations/", false); + uri.AppendPath(name, true); + uri.AppendPath("/disable", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDisableRecommendationForSiteRequest(string subscriptionId, string resourceGroupName, string siteName, string name) { var message = _pipeline.CreateMessage(); @@ -1241,6 +1521,14 @@ public Response DisableRecommendationForSite(string subscriptionId, string resou } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, bool? featured, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, bool? featured, string filter) { var message = _pipeline.CreateMessage(); @@ -1313,6 +1601,14 @@ public Response ListNextPage(string nextLink } } + internal RequestUriBuilder CreateListHistoryForHostingEnvironmentNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string hostingEnvironmentName, bool? expiredOnly, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListHistoryForHostingEnvironmentNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string hostingEnvironmentName, bool? expiredOnly, string filter) { var message = _pipeline.CreateMessage(); @@ -1393,6 +1689,14 @@ public Response ListHistoryForHostingEnviron } } + internal RequestUriBuilder CreateListRecommendedRulesForHostingEnvironmentNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string hostingEnvironmentName, bool? featured, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListRecommendedRulesForHostingEnvironmentNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string hostingEnvironmentName, bool? featured, string filter) { var message = _pipeline.CreateMessage(); @@ -1473,6 +1777,14 @@ public Response ListRecommendedRulesForHosti } } + internal RequestUriBuilder CreateListHistoryForWebAppNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string siteName, bool? expiredOnly, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListHistoryForWebAppNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string siteName, bool? expiredOnly, string filter) { var message = _pipeline.CreateMessage(); @@ -1553,6 +1865,14 @@ public Response ListHistoryForWebAppNextPage } } + internal RequestUriBuilder CreateListRecommendedRulesForWebAppNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string siteName, bool? featured, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListRecommendedRulesForWebAppNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string siteName, bool? featured, string filter) { var message = _pipeline.CreateMessage(); diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/ResourceHealthMetadataRestOperations.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/ResourceHealthMetadataRestOperations.cs index 935d1c1d31b6..7c161dc44cf4 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/ResourceHealthMetadataRestOperations.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/ResourceHealthMetadataRestOperations.cs @@ -37,6 +37,17 @@ public ResourceHealthMetadataRestOperations(HttpPipeline pipeline, string applic _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Web/resourceHealthMetadata", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,19 @@ public Response List(string subscriptionId, Ca } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.Web/resourceHealthMetadata", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -177,6 +201,21 @@ public Response ListByResourceGroup(string sub } } + internal RequestUriBuilder CreateListBySiteRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/resourceHealthMetadata", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySiteRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -256,6 +295,21 @@ public Response ListBySite(string subscription } } + internal RequestUriBuilder CreateGetBySiteRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/resourceHealthMetadata/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetBySiteRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -339,6 +393,23 @@ public Response GetBySite(string subscriptionId, str } } + internal RequestUriBuilder CreateListBySiteSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/resourceHealthMetadata", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySiteSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot) { var message = _pipeline.CreateMessage(); @@ -424,6 +495,23 @@ public Response ListBySiteSlot(string subscrip } } + internal RequestUriBuilder CreateGetBySiteSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/resourceHealthMetadata/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetBySiteSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot) { var message = _pipeline.CreateMessage(); @@ -513,6 +601,14 @@ public Response GetBySiteSlot(string subscriptionId, } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -581,6 +677,14 @@ public Response ListNextPage(string nextLink, } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -653,6 +757,14 @@ public Response ListByResourceGroupNextPage(st } } + internal RequestUriBuilder CreateListBySiteNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string name) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySiteNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -729,6 +841,14 @@ public Response ListBySiteNextPage(string next } } + internal RequestUriBuilder CreateListBySiteSlotNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string name, string slot) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySiteSlotNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string name, string slot) { var message = _pipeline.CreateMessage(); diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/StaticSitesRestOperations.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/StaticSitesRestOperations.cs index e56f650b3a09..431d9823eaf9 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/StaticSitesRestOperations.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/StaticSitesRestOperations.cs @@ -37,6 +37,19 @@ public StaticSitesRestOperations(HttpPipeline pipeline, string applicationId, Ur _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreatePreviewWorkflowRequestUri(string subscriptionId, AzureLocation location, StaticSitesWorkflowPreviewContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Web/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/previewStaticSiteWorkflowFile", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreatePreviewWorkflowRequest(string subscriptionId, AzureLocation location, StaticSitesWorkflowPreviewContent content) { var message = _pipeline.CreateMessage(); @@ -116,6 +129,17 @@ public Response PreviewWorkflow(string subscriptionI } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Web/staticSites", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -183,6 +207,19 @@ public Response List(string subscriptionId, CancellationTo } } + internal RequestUriBuilder CreateGetStaticSitesByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.Web/staticSites", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetStaticSitesByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -256,6 +293,20 @@ public Response GetStaticSitesByResourceGroup(string subsc } } + internal RequestUriBuilder CreateGetStaticSiteRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.Web/staticSites/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetStaticSiteRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -338,6 +389,20 @@ public Response GetStaticSite(string subscriptionId, string reso } } + internal RequestUriBuilder CreateCreateOrUpdateStaticSiteRequestUri(string subscriptionId, string resourceGroupName, string name, StaticSiteData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Web/staticSites/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateStaticSiteRequest(string subscriptionId, string resourceGroupName, string name, StaticSiteData data) { var message = _pipeline.CreateMessage(); @@ -416,6 +481,20 @@ public Response CreateOrUpdateStaticSite(string subscriptionId, string resourceG } } + internal RequestUriBuilder CreateDeleteStaticSiteRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.Web/staticSites/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteStaticSiteRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -486,6 +565,20 @@ public Response DeleteStaticSite(string subscriptionId, string resourceGroupName } } + internal RequestUriBuilder CreateUpdateStaticSiteRequestUri(string subscriptionId, string resourceGroupName, string name, StaticSitePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Web/staticSites/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateStaticSiteRequest(string subscriptionId, string resourceGroupName, string name, StaticSitePatch patch) { var message = _pipeline.CreateMessage(); @@ -574,6 +667,23 @@ public Response UpdateStaticSite(string subscriptionId, string r } } + internal RequestUriBuilder CreateListStaticSiteUsersRequestUri(string subscriptionId, string resourceGroupName, string name, string authprovider) + { + 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.Web/staticSites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/authproviders/", false); + uri.AppendPath(authprovider, true); + uri.AppendPath("/listUsers", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListStaticSiteUsersRequest(string subscriptionId, string resourceGroupName, string name, string authprovider) { var message = _pipeline.CreateMessage(); @@ -659,6 +769,24 @@ public Response ListStaticSiteUsers(string subscriptio } } + internal RequestUriBuilder CreateDeleteStaticSiteUserRequestUri(string subscriptionId, string resourceGroupName, string name, string authprovider, string userid) + { + 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.Web/staticSites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/authproviders/", false); + uri.AppendPath(authprovider, true); + uri.AppendPath("/users/", false); + uri.AppendPath(userid, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteStaticSiteUserRequest(string subscriptionId, string resourceGroupName, string name, string authprovider, string userid) { var message = _pipeline.CreateMessage(); @@ -739,6 +867,24 @@ public Response DeleteStaticSiteUser(string subscriptionId, string resourceGroup } } + internal RequestUriBuilder CreateUpdateStaticSiteUserRequestUri(string subscriptionId, string resourceGroupName, string name, string authprovider, string userid, StaticSiteUser staticSiteUserEnvelope) + { + 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.Web/staticSites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/authproviders/", false); + uri.AppendPath(authprovider, true); + uri.AppendPath("/users/", false); + uri.AppendPath(userid, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateStaticSiteUserRequest(string subscriptionId, string resourceGroupName, string name, string authprovider, string userid, StaticSiteUser staticSiteUserEnvelope) { var message = _pipeline.CreateMessage(); @@ -837,6 +983,21 @@ public Response UpdateStaticSiteUser(string subscriptionId, stri } } + internal RequestUriBuilder CreateGetStaticSiteBuildsRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.Web/staticSites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/builds", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetStaticSiteBuildsRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -916,6 +1077,22 @@ public Response GetStaticSiteBuilds(string subscripti } } + internal RequestUriBuilder CreateGetStaticSiteBuildRequestUri(string subscriptionId, string resourceGroupName, string name, string environmentName) + { + 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.Web/staticSites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/builds/", false); + uri.AppendPath(environmentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetStaticSiteBuildRequest(string subscriptionId, string resourceGroupName, string name, string environmentName) { var message = _pipeline.CreateMessage(); @@ -1004,6 +1181,22 @@ public Response GetStaticSiteBuild(string subscriptionId, s } } + internal RequestUriBuilder CreateDeleteStaticSiteBuildRequestUri(string subscriptionId, string resourceGroupName, string name, string environmentName) + { + 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.Web/staticSites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/builds/", false); + uri.AppendPath(environmentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteStaticSiteBuildRequest(string subscriptionId, string resourceGroupName, string name, string environmentName) { var message = _pipeline.CreateMessage(); @@ -1082,6 +1275,23 @@ public Response DeleteStaticSiteBuild(string subscriptionId, string resourceGrou } } + internal RequestUriBuilder CreateCreateOrUpdateStaticSiteBuildAppSettingsRequestUri(string subscriptionId, string resourceGroupName, string name, string environmentName, AppServiceConfigurationDictionary appSettings) + { + 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.Web/staticSites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/builds/", false); + uri.AppendPath(environmentName, true); + uri.AppendPath("/config/appsettings", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateStaticSiteBuildAppSettingsRequest(string subscriptionId, string resourceGroupName, string name, string environmentName, AppServiceConfigurationDictionary appSettings) { var message = _pipeline.CreateMessage(); @@ -1175,6 +1385,23 @@ public Response CreateOrUpdateStaticSiteBuild } } + internal RequestUriBuilder CreateCreateOrUpdateStaticSiteBuildFunctionAppSettingsRequestUri(string subscriptionId, string resourceGroupName, string name, string environmentName, AppServiceConfigurationDictionary appSettings) + { + 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.Web/staticSites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/builds/", false); + uri.AppendPath(environmentName, true); + uri.AppendPath("/config/functionappsettings", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateStaticSiteBuildFunctionAppSettingsRequest(string subscriptionId, string resourceGroupName, string name, string environmentName, AppServiceConfigurationDictionary appSettings) { var message = _pipeline.CreateMessage(); @@ -1268,6 +1495,23 @@ public Response CreateOrUpdateStaticSiteBuild } } + internal RequestUriBuilder CreateListStaticSiteBuildFunctionsRequestUri(string subscriptionId, string resourceGroupName, string name, string environmentName) + { + 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.Web/staticSites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/builds/", false); + uri.AppendPath(environmentName, true); + uri.AppendPath("/functions", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListStaticSiteBuildFunctionsRequest(string subscriptionId, string resourceGroupName, string name, string environmentName) { var message = _pipeline.CreateMessage(); @@ -1353,6 +1597,23 @@ public Response ListStaticSiteBuildFunctio } } + internal RequestUriBuilder CreateListStaticSiteBuildAppSettingsRequestUri(string subscriptionId, string resourceGroupName, string name, string environmentName) + { + 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.Web/staticSites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/builds/", false); + uri.AppendPath(environmentName, true); + uri.AppendPath("/listAppSettings", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListStaticSiteBuildAppSettingsRequest(string subscriptionId, string resourceGroupName, string name, string environmentName) { var message = _pipeline.CreateMessage(); @@ -1438,6 +1699,23 @@ public Response ListStaticSiteBuildAppSetting } } + internal RequestUriBuilder CreateListStaticSiteBuildFunctionAppSettingsRequestUri(string subscriptionId, string resourceGroupName, string name, string environmentName) + { + 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.Web/staticSites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/builds/", false); + uri.AppendPath(environmentName, true); + uri.AppendPath("/listFunctionAppSettings", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListStaticSiteBuildFunctionAppSettingsRequest(string subscriptionId, string resourceGroupName, string name, string environmentName) { var message = _pipeline.CreateMessage(); @@ -1523,6 +1801,23 @@ public Response ListStaticSiteBuildFunctionAp } } + internal RequestUriBuilder CreateGetUserProvidedFunctionAppsForStaticSiteBuildRequestUri(string subscriptionId, string resourceGroupName, string name, string environmentName) + { + 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.Web/staticSites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/builds/", false); + uri.AppendPath(environmentName, true); + uri.AppendPath("/userProvidedFunctionApps", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetUserProvidedFunctionAppsForStaticSiteBuildRequest(string subscriptionId, string resourceGroupName, string name, string environmentName) { var message = _pipeline.CreateMessage(); @@ -1608,6 +1903,24 @@ public Response GetUserProvidedFun } } + internal RequestUriBuilder CreateGetUserProvidedFunctionAppForStaticSiteBuildRequestUri(string subscriptionId, string resourceGroupName, string name, string environmentName, string functionAppName) + { + 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.Web/staticSites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/builds/", false); + uri.AppendPath(environmentName, true); + uri.AppendPath("/userProvidedFunctionApps/", false); + uri.AppendPath(functionAppName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetUserProvidedFunctionAppForStaticSiteBuildRequest(string subscriptionId, string resourceGroupName, string name, string environmentName, string functionAppName) { var message = _pipeline.CreateMessage(); @@ -1702,6 +2015,28 @@ public Response GetUserProvidedFunctionAp } } + internal RequestUriBuilder CreateRegisterUserProvidedFunctionAppWithStaticSiteBuildRequestUri(string subscriptionId, string resourceGroupName, string name, string environmentName, string functionAppName, StaticSiteUserProvidedFunctionAppData data, bool? isForced) + { + 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.Web/staticSites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/builds/", false); + uri.AppendPath(environmentName, true); + uri.AppendPath("/userProvidedFunctionApps/", false); + uri.AppendPath(functionAppName, true); + if (isForced != null) + { + uri.AppendQuery("isForced", isForced.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRegisterUserProvidedFunctionAppWithStaticSiteBuildRequest(string subscriptionId, string resourceGroupName, string name, string environmentName, string functionAppName, StaticSiteUserProvidedFunctionAppData data, bool? isForced) { var message = _pipeline.CreateMessage(); @@ -1798,6 +2133,24 @@ public Response RegisterUserProvidedFunctionAppWithStaticSiteBuild(string subscr } } + internal RequestUriBuilder CreateDetachUserProvidedFunctionAppFromStaticSiteBuildRequestUri(string subscriptionId, string resourceGroupName, string name, string environmentName, string functionAppName) + { + 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.Web/staticSites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/builds/", false); + uri.AppendPath(environmentName, true); + uri.AppendPath("/userProvidedFunctionApps/", false); + uri.AppendPath(functionAppName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDetachUserProvidedFunctionAppFromStaticSiteBuildRequest(string subscriptionId, string resourceGroupName, string name, string environmentName, string functionAppName) { var message = _pipeline.CreateMessage(); @@ -1880,6 +2233,23 @@ public Response DetachUserProvidedFunctionAppFromStaticSiteBuild(string subscrip } } + internal RequestUriBuilder CreateCreateZipDeploymentForStaticSiteBuildRequestUri(string subscriptionId, string resourceGroupName, string name, string environmentName, StaticSiteZipDeployment staticSiteZipDeploymentEnvelope) + { + 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.Web/staticSites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/builds/", false); + uri.AppendPath(environmentName, true); + uri.AppendPath("/zipdeploy", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateZipDeploymentForStaticSiteBuildRequest(string subscriptionId, string resourceGroupName, string name, string environmentName, StaticSiteZipDeployment staticSiteZipDeploymentEnvelope) { var message = _pipeline.CreateMessage(); @@ -1965,6 +2335,21 @@ public Response CreateZipDeploymentForStaticSiteBuild(string subscriptionId, str } } + internal RequestUriBuilder CreateCreateOrUpdateStaticSiteAppSettingsRequestUri(string subscriptionId, string resourceGroupName, string name, AppServiceConfigurationDictionary appSettings) + { + 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.Web/staticSites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/config/appsettings", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateStaticSiteAppSettingsRequest(string subscriptionId, string resourceGroupName, string name, AppServiceConfigurationDictionary appSettings) { var message = _pipeline.CreateMessage(); @@ -2052,6 +2437,21 @@ public Response CreateOrUpdateStaticSiteAppSe } } + internal RequestUriBuilder CreateCreateOrUpdateStaticSiteFunctionAppSettingsRequestUri(string subscriptionId, string resourceGroupName, string name, AppServiceConfigurationDictionary appSettings) + { + 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.Web/staticSites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/config/functionappsettings", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateStaticSiteFunctionAppSettingsRequest(string subscriptionId, string resourceGroupName, string name, AppServiceConfigurationDictionary appSettings) { var message = _pipeline.CreateMessage(); @@ -2139,6 +2539,21 @@ public Response CreateOrUpdateStaticSiteFunct } } + internal RequestUriBuilder CreateCreateUserRolesInvitationLinkRequestUri(string subscriptionId, string resourceGroupName, string name, StaticSiteUserInvitationContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Web/staticSites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/createUserInvitation", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateUserRolesInvitationLinkRequest(string subscriptionId, string resourceGroupName, string name, StaticSiteUserInvitationContent content) { var message = _pipeline.CreateMessage(); @@ -2226,6 +2641,21 @@ public Response CreateUserRolesInvitationLink(st } } + internal RequestUriBuilder CreateListStaticSiteCustomDomainsRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.Web/staticSites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/customDomains", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListStaticSiteCustomDomainsRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -2305,6 +2735,22 @@ public Response ListStaticSiteCustomDo } } + internal RequestUriBuilder CreateGetStaticSiteCustomDomainRequestUri(string subscriptionId, string resourceGroupName, string name, string domainName) + { + 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.Web/staticSites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/customDomains/", false); + uri.AppendPath(domainName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetStaticSiteCustomDomainRequest(string subscriptionId, string resourceGroupName, string name, string domainName) { var message = _pipeline.CreateMessage(); @@ -2393,6 +2839,22 @@ public Response GetStaticSiteCustomDomain(st } } + internal RequestUriBuilder CreateCreateOrUpdateStaticSiteCustomDomainRequestUri(string subscriptionId, string resourceGroupName, string name, string domainName, StaticSiteCustomDomainContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Web/staticSites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/customDomains/", false); + uri.AppendPath(domainName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateStaticSiteCustomDomainRequest(string subscriptionId, string resourceGroupName, string name, string domainName, StaticSiteCustomDomainContent content) { var message = _pipeline.CreateMessage(); @@ -2477,6 +2939,22 @@ public Response CreateOrUpdateStaticSiteCustomDomain(string subscriptionId, stri } } + internal RequestUriBuilder CreateDeleteStaticSiteCustomDomainRequestUri(string subscriptionId, string resourceGroupName, string name, string domainName) + { + 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.Web/staticSites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/customDomains/", false); + uri.AppendPath(domainName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteStaticSiteCustomDomainRequest(string subscriptionId, string resourceGroupName, string name, string domainName) { var message = _pipeline.CreateMessage(); @@ -2553,6 +3031,23 @@ public Response DeleteStaticSiteCustomDomain(string subscriptionId, string resou } } + internal RequestUriBuilder CreateValidateCustomDomainCanBeAddedToStaticSiteRequestUri(string subscriptionId, string resourceGroupName, string name, string domainName, StaticSiteCustomDomainContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Web/staticSites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/customDomains/", false); + uri.AppendPath(domainName, true); + uri.AppendPath("/validate", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateValidateCustomDomainCanBeAddedToStaticSiteRequest(string subscriptionId, string resourceGroupName, string name, string domainName, StaticSiteCustomDomainContent content) { var message = _pipeline.CreateMessage(); @@ -2638,6 +3133,21 @@ public Response ValidateCustomDomainCanBeAddedToStaticSite(string subscriptionId } } + internal RequestUriBuilder CreateDetachStaticSiteRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.Web/staticSites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/detach", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDetachStaticSiteRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -2709,6 +3219,21 @@ public Response DetachStaticSite(string subscriptionId, string resourceGroupName } } + internal RequestUriBuilder CreateListStaticSiteFunctionsRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.Web/staticSites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/functions", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListStaticSiteFunctionsRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -2788,6 +3313,21 @@ public Response ListStaticSiteFunctions(st } } + internal RequestUriBuilder CreateListStaticSiteAppSettingsRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.Web/staticSites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/listAppSettings", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListStaticSiteAppSettingsRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -2867,6 +3407,21 @@ public Response ListStaticSiteAppSettings(str } } + internal RequestUriBuilder CreateListStaticSiteConfiguredRolesRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.Web/staticSites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/listConfiguredRoles", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListStaticSiteConfiguredRolesRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -2946,6 +3501,21 @@ public Response ListStaticSiteConfiguredRoles(string subsc } } + internal RequestUriBuilder CreateListStaticSiteFunctionAppSettingsRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.Web/staticSites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/listFunctionAppSettings", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListStaticSiteFunctionAppSettingsRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -3025,6 +3595,21 @@ public Response ListStaticSiteFunctionAppSett } } + internal RequestUriBuilder CreateListStaticSiteSecretsRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.Web/staticSites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/listSecrets", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListStaticSiteSecretsRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -3104,6 +3689,21 @@ public Response ListStaticSiteSecrets(string } } + internal RequestUriBuilder CreateGetPrivateEndpointConnectionListRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.Web/staticSites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/privateEndpointConnections", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetPrivateEndpointConnectionListRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -3183,6 +3783,22 @@ public Response GetPrivateEndpointCon } } + internal RequestUriBuilder CreateGetPrivateEndpointConnectionRequestUri(string subscriptionId, string resourceGroupName, string name, string privateEndpointConnectionName) + { + 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.Web/staticSites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetPrivateEndpointConnectionRequest(string subscriptionId, string resourceGroupName, string name, string privateEndpointConnectionName) { var message = _pipeline.CreateMessage(); @@ -3271,6 +3887,22 @@ public Response GetPrivateEndpoi } } + internal RequestUriBuilder CreateApproveOrRejectPrivateEndpointConnectionRequestUri(string subscriptionId, string resourceGroupName, string name, string privateEndpointConnectionName, PrivateLinkConnectionApprovalRequestInfo info) + { + 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.Web/staticSites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateApproveOrRejectPrivateEndpointConnectionRequest(string subscriptionId, string resourceGroupName, string name, string privateEndpointConnectionName, PrivateLinkConnectionApprovalRequestInfo info) { var message = _pipeline.CreateMessage(); @@ -3355,6 +3987,22 @@ public Response ApproveOrRejectPrivateEndpointConnection(string subscriptionId, } } + internal RequestUriBuilder CreateDeletePrivateEndpointConnectionRequestUri(string subscriptionId, string resourceGroupName, string name, string privateEndpointConnectionName) + { + 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.Web/staticSites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeletePrivateEndpointConnectionRequest(string subscriptionId, string resourceGroupName, string name, string privateEndpointConnectionName) { var message = _pipeline.CreateMessage(); @@ -3433,6 +4081,21 @@ public Response DeletePrivateEndpointConnection(string subscriptionId, string re } } + internal RequestUriBuilder CreateGetPrivateLinkResourcesRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.Web/staticSites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/privateLinkResources", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetPrivateLinkResourcesRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -3512,6 +4175,21 @@ public Response GetPrivateLinkResources(string subs } } + internal RequestUriBuilder CreateResetStaticSiteApiKeyRequestUri(string subscriptionId, string resourceGroupName, string name, StaticSiteResetContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Web/staticSites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/resetapikey", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateResetStaticSiteApiKeyRequest(string subscriptionId, string resourceGroupName, string name, StaticSiteResetContent content) { var message = _pipeline.CreateMessage(); @@ -3589,6 +4267,21 @@ public Response ResetStaticSiteApiKey(string subscriptionId, string resourceGrou } } + internal RequestUriBuilder CreateGetUserProvidedFunctionAppsForStaticSiteRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.Web/staticSites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/userProvidedFunctionApps", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetUserProvidedFunctionAppsForStaticSiteRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -3668,6 +4361,22 @@ public Response GetUserProvidedFun } } + internal RequestUriBuilder CreateGetUserProvidedFunctionAppForStaticSiteRequestUri(string subscriptionId, string resourceGroupName, string name, string functionAppName) + { + 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.Web/staticSites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/userProvidedFunctionApps/", false); + uri.AppendPath(functionAppName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetUserProvidedFunctionAppForStaticSiteRequest(string subscriptionId, string resourceGroupName, string name, string functionAppName) { var message = _pipeline.CreateMessage(); @@ -3756,6 +4465,26 @@ public Response GetUserProvidedFunctionAp } } + internal RequestUriBuilder CreateRegisterUserProvidedFunctionAppWithStaticSiteRequestUri(string subscriptionId, string resourceGroupName, string name, string functionAppName, StaticSiteUserProvidedFunctionAppData data, bool? isForced) + { + 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.Web/staticSites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/userProvidedFunctionApps/", false); + uri.AppendPath(functionAppName, true); + if (isForced != null) + { + uri.AppendQuery("isForced", isForced.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRegisterUserProvidedFunctionAppWithStaticSiteRequest(string subscriptionId, string resourceGroupName, string name, string functionAppName, StaticSiteUserProvidedFunctionAppData data, bool? isForced) { var message = _pipeline.CreateMessage(); @@ -3846,6 +4575,22 @@ public Response RegisterUserProvidedFunctionAppWithStaticSite(string subscriptio } } + internal RequestUriBuilder CreateDetachUserProvidedFunctionAppFromStaticSiteRequestUri(string subscriptionId, string resourceGroupName, string name, string functionAppName) + { + 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.Web/staticSites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/userProvidedFunctionApps/", false); + uri.AppendPath(functionAppName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDetachUserProvidedFunctionAppFromStaticSiteRequest(string subscriptionId, string resourceGroupName, string name, string functionAppName) { var message = _pipeline.CreateMessage(); @@ -3922,6 +4667,21 @@ public Response DetachUserProvidedFunctionAppFromStaticSite(string subscriptionI } } + internal RequestUriBuilder CreateCreateZipDeploymentForStaticSiteRequestUri(string subscriptionId, string resourceGroupName, string name, StaticSiteZipDeployment staticSiteZipDeploymentEnvelope) + { + 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.Web/staticSites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/zipdeploy", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateZipDeploymentForStaticSiteRequest(string subscriptionId, string resourceGroupName, string name, StaticSiteZipDeployment staticSiteZipDeploymentEnvelope) { var message = _pipeline.CreateMessage(); @@ -4001,6 +4761,14 @@ public Response CreateZipDeploymentForStaticSite(string subscriptionId, string r } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -4069,6 +4837,14 @@ public Response ListNextPage(string nextLink, string subsc } } + internal RequestUriBuilder CreateGetStaticSitesByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateGetStaticSitesByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -4141,6 +4917,14 @@ public Response GetStaticSitesByResourceGroupNextPage(stri } } + internal RequestUriBuilder CreateListStaticSiteUsersNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string name, string authprovider) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListStaticSiteUsersNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string name, string authprovider) { var message = _pipeline.CreateMessage(); @@ -4221,6 +5005,14 @@ public Response ListStaticSiteUsersNextPage(string nex } } + internal RequestUriBuilder CreateGetStaticSiteBuildsNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string name) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateGetStaticSiteBuildsNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -4297,6 +5089,14 @@ public Response GetStaticSiteBuildsNextPage(string ne } } + internal RequestUriBuilder CreateListStaticSiteBuildFunctionsNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string name, string environmentName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListStaticSiteBuildFunctionsNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string name, string environmentName) { var message = _pipeline.CreateMessage(); @@ -4377,6 +5177,14 @@ public Response ListStaticSiteBuildFunctio } } + internal RequestUriBuilder CreateGetUserProvidedFunctionAppsForStaticSiteBuildNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string name, string environmentName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateGetUserProvidedFunctionAppsForStaticSiteBuildNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string name, string environmentName) { var message = _pipeline.CreateMessage(); @@ -4457,6 +5265,14 @@ public Response GetUserProvidedFun } } + internal RequestUriBuilder CreateListStaticSiteCustomDomainsNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string name) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListStaticSiteCustomDomainsNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -4533,6 +5349,14 @@ public Response ListStaticSiteCustomDo } } + internal RequestUriBuilder CreateListStaticSiteFunctionsNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string name) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListStaticSiteFunctionsNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -4609,6 +5433,14 @@ public Response ListStaticSiteFunctionsNex } } + internal RequestUriBuilder CreateGetPrivateEndpointConnectionListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string name) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateGetPrivateEndpointConnectionListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -4685,6 +5517,14 @@ public Response GetPrivateEndpointCon } } + internal RequestUriBuilder CreateGetUserProvidedFunctionAppsForStaticSiteNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string name) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateGetUserProvidedFunctionAppsForStaticSiteNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/TopLevelDomainsRestOperations.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/TopLevelDomainsRestOperations.cs index a97427226a77..23e331a4c343 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/TopLevelDomainsRestOperations.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/TopLevelDomainsRestOperations.cs @@ -37,6 +37,17 @@ public TopLevelDomainsRestOperations(HttpPipeline pipeline, string applicationId _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.DomainRegistration/topLevelDomains", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,18 @@ public Response List(string subscriptionId, Cancellati } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string name) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.DomainRegistration/topLevelDomains/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string name) { var message = _pipeline.CreateMessage(); @@ -180,6 +203,19 @@ public Response Get(string subscriptionId, string name, Canc } } + internal RequestUriBuilder CreateListAgreementsRequestUri(string subscriptionId, string name, TopLevelDomainAgreementOption agreementOption) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.DomainRegistration/topLevelDomains/", false); + uri.AppendPath(name, true); + uri.AppendPath("/listAgreements", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListAgreementsRequest(string subscriptionId, string name, TopLevelDomainAgreementOption agreementOption) { var message = _pipeline.CreateMessage(); @@ -261,6 +297,14 @@ public Response ListAgreements(string subscriptionI } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -329,6 +373,14 @@ public Response ListNextPage(string nextLink, string s } } + internal RequestUriBuilder CreateListAgreementsNextPageRequestUri(string nextLink, string subscriptionId, string name, TopLevelDomainAgreementOption agreementOption) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListAgreementsNextPageRequest(string nextLink, string subscriptionId, string name, TopLevelDomainAgreementOption agreementOption) { var message = _pipeline.CreateMessage(); diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/WebAppsRestOperations.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/WebAppsRestOperations.cs index c7e1f96fef8a..847739c97e57 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/WebAppsRestOperations.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/WebAppsRestOperations.cs @@ -39,6 +39,17 @@ public WebAppsRestOperations(HttpPipeline pipeline, string applicationId, Uri en _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Web/sites", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -106,6 +117,23 @@ public Response List(string subscriptionId, CancellationToken } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName, bool? includeSlots) + { + 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.Web/sites", false); + if (includeSlots != null) + { + uri.AppendQuery("includeSlots", includeSlots.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName, bool? includeSlots) { var message = _pipeline.CreateMessage(); @@ -185,6 +213,20 @@ public Response ListByResourceGroup(string subscriptionId, str } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -267,6 +309,20 @@ public Response Get(string subscriptionId, string resourceGroupName } } + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string name, WebSiteData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string name, WebSiteData data) { var message = _pipeline.CreateMessage(); @@ -345,6 +401,28 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string name, bool? deleteMetrics, bool? deleteEmptyServerFarm) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + if (deleteMetrics != null) + { + uri.AppendQuery("deleteMetrics", deleteMetrics.Value, true); + } + if (deleteEmptyServerFarm != null) + { + uri.AppendQuery("deleteEmptyServerFarm", deleteEmptyServerFarm.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string name, bool? deleteMetrics, bool? deleteEmptyServerFarm) { var message = _pipeline.CreateMessage(); @@ -427,6 +505,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string n } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string name, SitePatchInfo info) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string name, SitePatchInfo info) { var message = _pipeline.CreateMessage(); @@ -515,6 +607,25 @@ public Response Update(string subscriptionId, string resourceGroupN } } + internal RequestUriBuilder CreateAnalyzeCustomHostnameRequestUri(string subscriptionId, string resourceGroupName, string name, string hostName) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/analyzeCustomHostname", false); + if (hostName != null) + { + uri.AppendQuery("hostName", hostName, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateAnalyzeCustomHostnameRequest(string subscriptionId, string resourceGroupName, string name, string hostName) { var message = _pipeline.CreateMessage(); @@ -600,6 +711,21 @@ public Response AnalyzeCustomHostname(string subsc } } + internal RequestUriBuilder CreateApplySlotConfigToProductionRequestUri(string subscriptionId, string resourceGroupName, string name, CsmSlotEntity slotSwapEntity) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/applySlotConfig", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateApplySlotConfigToProductionRequest(string subscriptionId, string resourceGroupName, string name, CsmSlotEntity slotSwapEntity) { var message = _pipeline.CreateMessage(); @@ -677,6 +803,21 @@ public Response ApplySlotConfigToProduction(string subscriptionId, string resour } } + internal RequestUriBuilder CreateBackupRequestUri(string subscriptionId, string resourceGroupName, string name, WebAppBackupInfo info) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/backup", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateBackupRequest(string subscriptionId, string resourceGroupName, string name, WebAppBackupInfo info) { var message = _pipeline.CreateMessage(); @@ -764,6 +905,21 @@ public Response Backup(string subscriptionId, string resourceG } } + internal RequestUriBuilder CreateListBackupsRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/backups", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBackupsRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -843,6 +999,22 @@ public Response ListBackups(string subscriptionId, s } } + internal RequestUriBuilder CreateGetBackupStatusRequestUri(string subscriptionId, string resourceGroupName, string name, string backupId) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/backups/", false); + uri.AppendPath(backupId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetBackupStatusRequest(string subscriptionId, string resourceGroupName, string name, string backupId) { var message = _pipeline.CreateMessage(); @@ -931,6 +1103,22 @@ public Response GetBackupStatus(string subscriptionId, string } } + internal RequestUriBuilder CreateDeleteBackupRequestUri(string subscriptionId, string resourceGroupName, string name, string backupId) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/backups/", false); + uri.AppendPath(backupId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteBackupRequest(string subscriptionId, string resourceGroupName, string name, string backupId) { var message = _pipeline.CreateMessage(); @@ -1005,6 +1193,23 @@ public Response DeleteBackup(string subscriptionId, string resourceGroupName, st } } + internal RequestUriBuilder CreateListBackupStatusSecretsRequestUri(string subscriptionId, string resourceGroupName, string name, string backupId, WebAppBackupInfo info) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/backups/", false); + uri.AppendPath(backupId, true); + uri.AppendPath("/list", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBackupStatusSecretsRequest(string subscriptionId, string resourceGroupName, string name, string backupId, WebAppBackupInfo info) { var message = _pipeline.CreateMessage(); @@ -1098,6 +1303,23 @@ public Response ListBackupStatusSecrets(string subscriptionId, } } + internal RequestUriBuilder CreateRestoreRequestUri(string subscriptionId, string resourceGroupName, string name, string backupId, RestoreRequestInfo info) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/backups/", false); + uri.AppendPath(backupId, true); + uri.AppendPath("/restore", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRestoreRequest(string subscriptionId, string resourceGroupName, string name, string backupId, RestoreRequestInfo info) { var message = _pipeline.CreateMessage(); @@ -1183,6 +1405,21 @@ public Response Restore(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreateListBasicPublishingCredentialsPoliciesRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/basicPublishingCredentialsPolicies", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBasicPublishingCredentialsPoliciesRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -1262,6 +1499,21 @@ public Response ListBasicPublishingCred } } + internal RequestUriBuilder CreateGetFtpAllowedRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/basicPublishingCredentialsPolicies/ftp", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetFtpAllowedRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -1345,6 +1597,21 @@ public Response GetFtpAllowed(string } } + internal RequestUriBuilder CreateUpdateFtpAllowedRequestUri(string subscriptionId, string resourceGroupName, string name, CsmPublishingCredentialsPoliciesEntityData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/basicPublishingCredentialsPolicies/ftp", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateFtpAllowedRequest(string subscriptionId, string resourceGroupName, string name, CsmPublishingCredentialsPoliciesEntityData data) { var message = _pipeline.CreateMessage(); @@ -1432,6 +1699,21 @@ public Response UpdateFtpAllowed(str } } + internal RequestUriBuilder CreateGetScmAllowedRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/basicPublishingCredentialsPolicies/scm", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetScmAllowedRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -1515,6 +1797,21 @@ public Response GetScmAllowed(string } } + internal RequestUriBuilder CreateUpdateScmAllowedRequestUri(string subscriptionId, string resourceGroupName, string name, CsmPublishingCredentialsPoliciesEntityData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/basicPublishingCredentialsPolicies/scm", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateScmAllowedRequest(string subscriptionId, string resourceGroupName, string name, CsmPublishingCredentialsPoliciesEntityData data) { var message = _pipeline.CreateMessage(); @@ -1602,6 +1899,21 @@ public Response UpdateScmAllowed(str } } + internal RequestUriBuilder CreateListConfigurationsRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/config", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListConfigurationsRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -1681,6 +1993,21 @@ public Response ListConfigurations(string subscriptionId, } } + internal RequestUriBuilder CreateUpdateApplicationSettingsRequestUri(string subscriptionId, string resourceGroupName, string name, AppServiceConfigurationDictionary appSettings) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/config/appsettings", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateApplicationSettingsRequest(string subscriptionId, string resourceGroupName, string name, AppServiceConfigurationDictionary appSettings) { var message = _pipeline.CreateMessage(); @@ -1768,6 +2095,21 @@ public Response UpdateApplicationSettings(str } } + internal RequestUriBuilder CreateListApplicationSettingsRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/config/appsettings/list", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListApplicationSettingsRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -1847,6 +2189,21 @@ public Response ListApplicationSettings(strin } } + internal RequestUriBuilder CreateUpdateAuthSettingsRequestUri(string subscriptionId, string resourceGroupName, string name, SiteAuthSettings siteAuthSettings) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/config/authsettings", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateAuthSettingsRequest(string subscriptionId, string resourceGroupName, string name, SiteAuthSettings siteAuthSettings) { var message = _pipeline.CreateMessage(); @@ -1934,6 +2291,21 @@ public Response UpdateAuthSettings(string subscriptionId, stri } } + internal RequestUriBuilder CreateGetAuthSettingsRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/config/authsettings/list", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetAuthSettingsRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -2013,6 +2385,21 @@ public Response GetAuthSettings(string subscriptionId, string } } + internal RequestUriBuilder CreateUpdateAuthSettingsV2RequestUri(string subscriptionId, string resourceGroupName, string name, SiteAuthSettingsV2 siteAuthSettingsV2) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/config/authsettingsV2", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateAuthSettingsV2Request(string subscriptionId, string resourceGroupName, string name, SiteAuthSettingsV2 siteAuthSettingsV2) { var message = _pipeline.CreateMessage(); @@ -2100,6 +2487,21 @@ public Response UpdateAuthSettingsV2(string subscriptionId, } } + internal RequestUriBuilder CreateGetAuthSettingsV2RequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/config/authsettingsV2/list", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetAuthSettingsV2Request(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -2179,6 +2581,21 @@ public Response GetAuthSettingsV2(string subscriptionId, str } } + internal RequestUriBuilder CreateUpdateAzureStorageAccountsRequestUri(string subscriptionId, string resourceGroupName, string name, AzureStoragePropertyDictionary azureStorageAccounts) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/config/azurestorageaccounts", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateAzureStorageAccountsRequest(string subscriptionId, string resourceGroupName, string name, AzureStoragePropertyDictionary azureStorageAccounts) { var message = _pipeline.CreateMessage(); @@ -2266,6 +2683,21 @@ public Response UpdateAzureStorageAccounts(strin } } + internal RequestUriBuilder CreateListAzureStorageAccountsRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/config/azurestorageaccounts/list", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListAzureStorageAccountsRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -2345,6 +2777,21 @@ public Response ListAzureStorageAccounts(string } } + internal RequestUriBuilder CreateUpdateBackupConfigurationRequestUri(string subscriptionId, string resourceGroupName, string name, WebAppBackupInfo info) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/config/backup", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateBackupConfigurationRequest(string subscriptionId, string resourceGroupName, string name, WebAppBackupInfo info) { var message = _pipeline.CreateMessage(); @@ -2432,6 +2879,21 @@ public Response UpdateBackupConfiguration(string subscriptionI } } + internal RequestUriBuilder CreateDeleteBackupConfigurationRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/config/backup", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteBackupConfigurationRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -2501,6 +2963,21 @@ public Response DeleteBackupConfiguration(string subscriptionId, string resource } } + internal RequestUriBuilder CreateGetBackupConfigurationRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/config/backup/list", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetBackupConfigurationRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -2580,6 +3057,21 @@ public Response GetBackupConfiguration(string subscriptionId, } } + internal RequestUriBuilder CreateGetAppSettingsKeyVaultReferencesRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/config/configreferences/appsettings", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetAppSettingsKeyVaultReferencesRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -2659,6 +3151,22 @@ public Response GetAppSettingsKeyVaultRefere } } + internal RequestUriBuilder CreateGetAppSettingKeyVaultReferenceRequestUri(string subscriptionId, string resourceGroupName, string name, string appSettingKey) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/config/configreferences/appsettings/", false); + uri.AppendPath(appSettingKey, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetAppSettingKeyVaultReferenceRequest(string subscriptionId, string resourceGroupName, string name, string appSettingKey) { var message = _pipeline.CreateMessage(); @@ -2747,6 +3255,21 @@ public Response GetAppSettingKeyVaultReference(string } } + internal RequestUriBuilder CreateGetSiteConnectionStringKeyVaultReferencesRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/config/configreferences/connectionstrings", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetSiteConnectionStringKeyVaultReferencesRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -2826,6 +3349,22 @@ public Response GetSiteConnectionStringKeyVa } } + internal RequestUriBuilder CreateGetSiteConnectionStringKeyVaultReferenceRequestUri(string subscriptionId, string resourceGroupName, string name, string connectionStringKey) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/config/configreferences/connectionstrings/", false); + uri.AppendPath(connectionStringKey, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetSiteConnectionStringKeyVaultReferenceRequest(string subscriptionId, string resourceGroupName, string name, string connectionStringKey) { var message = _pipeline.CreateMessage(); @@ -2914,6 +3453,21 @@ public Response GetSiteConnectionStringKeyVaultReferen } } + internal RequestUriBuilder CreateUpdateConnectionStringsRequestUri(string subscriptionId, string resourceGroupName, string name, ConnectionStringDictionary connectionStrings) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/config/connectionstrings", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateConnectionStringsRequest(string subscriptionId, string resourceGroupName, string name, ConnectionStringDictionary connectionStrings) { var message = _pipeline.CreateMessage(); @@ -3001,6 +3555,21 @@ public Response UpdateConnectionStrings(string subsc } } + internal RequestUriBuilder CreateListConnectionStringsRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/config/connectionstrings/list", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListConnectionStringsRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -3080,6 +3649,21 @@ public Response ListConnectionStrings(string subscri } } + internal RequestUriBuilder CreateGetDiagnosticLogsConfigurationRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/config/logs", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetDiagnosticLogsConfigurationRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -3163,6 +3747,21 @@ public Response GetDiagnosticLogsConfiguration(string subscr } } + internal RequestUriBuilder CreateUpdateDiagnosticLogsConfigRequestUri(string subscriptionId, string resourceGroupName, string name, SiteLogsConfigData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/config/logs", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateDiagnosticLogsConfigRequest(string subscriptionId, string resourceGroupName, string name, SiteLogsConfigData data) { var message = _pipeline.CreateMessage(); @@ -3250,6 +3849,21 @@ public Response UpdateDiagnosticLogsConfig(string subscripti } } + internal RequestUriBuilder CreateUpdateMetadataRequestUri(string subscriptionId, string resourceGroupName, string name, AppServiceConfigurationDictionary metadata) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/config/metadata", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateMetadataRequest(string subscriptionId, string resourceGroupName, string name, AppServiceConfigurationDictionary metadata) { var message = _pipeline.CreateMessage(); @@ -3337,6 +3951,21 @@ public Response UpdateMetadata(string subscri } } + internal RequestUriBuilder CreateListMetadataRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/config/metadata/list", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListMetadataRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -3416,6 +4045,21 @@ public Response ListMetadata(string subscript } } + internal RequestUriBuilder CreateListPublishingCredentialsRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/config/publishingcredentials/list", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListPublishingCredentialsRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -3485,6 +4129,21 @@ public Response ListPublishingCredentials(string subscriptionId, string resource } } + internal RequestUriBuilder CreateUpdateSitePushSettingsRequestUri(string subscriptionId, string resourceGroupName, string name, WebAppPushSettings pushSettings) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/config/pushsettings", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateSitePushSettingsRequest(string subscriptionId, string resourceGroupName, string name, WebAppPushSettings pushSettings) { var message = _pipeline.CreateMessage(); @@ -3572,6 +4231,21 @@ public Response UpdateSitePushSettings(string subscriptionId } } + internal RequestUriBuilder CreateListSitePushSettingsRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/config/pushsettings/list", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListSitePushSettingsRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -3651,6 +4325,21 @@ public Response ListSitePushSettings(string subscriptionId, } } + internal RequestUriBuilder CreateListSlotConfigurationNamesRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/config/slotConfigNames", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListSlotConfigurationNamesRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -3734,6 +4423,21 @@ public Response ListSlotConfigurationNames(string s } } + internal RequestUriBuilder CreateUpdateSlotConfigurationNamesRequestUri(string subscriptionId, string resourceGroupName, string name, SlotConfigNamesResourceData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/config/slotConfigNames", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateSlotConfigurationNamesRequest(string subscriptionId, string resourceGroupName, string name, SlotConfigNamesResourceData data) { var message = _pipeline.CreateMessage(); @@ -3821,6 +4525,21 @@ public Response UpdateSlotConfigurationNames(string } } + internal RequestUriBuilder CreateGetConfigurationRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/config/web", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetConfigurationRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -3904,6 +4623,21 @@ public Response GetConfiguration(string subscriptionId, string r } } + internal RequestUriBuilder CreateCreateOrUpdateConfigurationRequestUri(string subscriptionId, string resourceGroupName, string name, SiteConfigData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/config/web", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateConfigurationRequest(string subscriptionId, string resourceGroupName, string name, SiteConfigData data) { var message = _pipeline.CreateMessage(); @@ -3991,6 +4725,21 @@ public Response CreateOrUpdateConfiguration(string subscriptionI } } + internal RequestUriBuilder CreateUpdateConfigurationRequestUri(string subscriptionId, string resourceGroupName, string name, SiteConfigData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/config/web", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateConfigurationRequest(string subscriptionId, string resourceGroupName, string name, SiteConfigData data) { var message = _pipeline.CreateMessage(); @@ -4078,6 +4827,21 @@ public Response UpdateConfiguration(string subscriptionId, strin } } + internal RequestUriBuilder CreateListConfigurationSnapshotInfoRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/config/web/snapshots", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListConfigurationSnapshotInfoRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -4157,6 +4921,22 @@ public Response ListConfigurationSnapsh } } + internal RequestUriBuilder CreateGetConfigurationSnapshotRequestUri(string subscriptionId, string resourceGroupName, string name, string snapshotId) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/config/web/snapshots/", false); + uri.AppendPath(snapshotId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetConfigurationSnapshotRequest(string subscriptionId, string resourceGroupName, string name, string snapshotId) { var message = _pipeline.CreateMessage(); @@ -4245,6 +5025,23 @@ public Response GetConfigurationSnapshot(string subscriptionId, } } + internal RequestUriBuilder CreateRecoverSiteConfigurationSnapshotRequestUri(string subscriptionId, string resourceGroupName, string name, string snapshotId) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/config/web/snapshots/", false); + uri.AppendPath(snapshotId, true); + uri.AppendPath("/recover", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRecoverSiteConfigurationSnapshotRequest(string subscriptionId, string resourceGroupName, string name, string snapshotId) { var message = _pipeline.CreateMessage(); @@ -4320,6 +5117,21 @@ public Response RecoverSiteConfigurationSnapshot(string subscriptionId, string r } } + internal RequestUriBuilder CreateGetWebSiteContainerLogsRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/containerlogs", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetWebSiteContainerLogsRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -4399,6 +5211,21 @@ public Response GetWebSiteContainerLogs(string subscriptionId, string re } } + internal RequestUriBuilder CreateGetContainerLogsZipRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/containerlogs/zip/download", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetContainerLogsZipRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -4478,6 +5305,21 @@ public Response GetContainerLogsZip(string subscriptionId, string resour } } + internal RequestUriBuilder CreateListContinuousWebJobsRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/continuouswebjobs", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListContinuousWebJobsRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -4557,6 +5399,22 @@ public Response ListContinuousWebJobs(string subscri } } + internal RequestUriBuilder CreateGetContinuousWebJobRequestUri(string subscriptionId, string resourceGroupName, string name, string webJobName) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/continuouswebjobs/", false); + uri.AppendPath(webJobName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetContinuousWebJobRequest(string subscriptionId, string resourceGroupName, string name, string webJobName) { var message = _pipeline.CreateMessage(); @@ -4645,6 +5503,22 @@ public Response GetContinuousWebJob(string subscriptionId, } } + internal RequestUriBuilder CreateDeleteContinuousWebJobRequestUri(string subscriptionId, string resourceGroupName, string name, string webJobName) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/continuouswebjobs/", false); + uri.AppendPath(webJobName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteContinuousWebJobRequest(string subscriptionId, string resourceGroupName, string name, string webJobName) { var message = _pipeline.CreateMessage(); @@ -4721,6 +5595,23 @@ public Response DeleteContinuousWebJob(string subscriptionId, string resourceGro } } + internal RequestUriBuilder CreateStartContinuousWebJobRequestUri(string subscriptionId, string resourceGroupName, string name, string webJobName) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/continuouswebjobs/", false); + uri.AppendPath(webJobName, true); + uri.AppendPath("/start", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStartContinuousWebJobRequest(string subscriptionId, string resourceGroupName, string name, string webJobName) { var message = _pipeline.CreateMessage(); @@ -4796,6 +5687,23 @@ public Response StartContinuousWebJob(string subscriptionId, string resourceGrou } } + internal RequestUriBuilder CreateStopContinuousWebJobRequestUri(string subscriptionId, string resourceGroupName, string name, string webJobName) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/continuouswebjobs/", false); + uri.AppendPath(webJobName, true); + uri.AppendPath("/stop", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStopContinuousWebJobRequest(string subscriptionId, string resourceGroupName, string name, string webJobName) { var message = _pipeline.CreateMessage(); @@ -4871,6 +5779,21 @@ public Response StopContinuousWebJob(string subscriptionId, string resourceGroup } } + internal RequestUriBuilder CreateListDeploymentsRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/deployments", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListDeploymentsRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -4950,6 +5873,22 @@ public Response ListDeployments(string subscriptionI } } + internal RequestUriBuilder CreateGetDeploymentRequestUri(string subscriptionId, string resourceGroupName, string name, string id) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/deployments/", false); + uri.AppendPath(id, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetDeploymentRequest(string subscriptionId, string resourceGroupName, string name, string id) { var message = _pipeline.CreateMessage(); @@ -5038,6 +5977,22 @@ public Response GetDeployment(string subscriptionId, strin } } + internal RequestUriBuilder CreateCreateDeploymentRequestUri(string subscriptionId, string resourceGroupName, string name, string id, WebAppDeploymentData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/deployments/", false); + uri.AppendPath(id, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateDeploymentRequest(string subscriptionId, string resourceGroupName, string name, string id, WebAppDeploymentData data) { var message = _pipeline.CreateMessage(); @@ -5130,6 +6085,22 @@ public Response CreateDeployment(string subscriptionId, st } } + internal RequestUriBuilder CreateDeleteDeploymentRequestUri(string subscriptionId, string resourceGroupName, string name, string id) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/deployments/", false); + uri.AppendPath(id, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteDeploymentRequest(string subscriptionId, string resourceGroupName, string name, string id) { var message = _pipeline.CreateMessage(); @@ -5206,6 +6177,23 @@ public Response DeleteDeployment(string subscriptionId, string resourceGroupName } } + internal RequestUriBuilder CreateListDeploymentLogRequestUri(string subscriptionId, string resourceGroupName, string name, string id) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/deployments/", false); + uri.AppendPath(id, true); + uri.AppendPath("/log", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListDeploymentLogRequest(string subscriptionId, string resourceGroupName, string name, string id) { var message = _pipeline.CreateMessage(); @@ -5291,6 +6279,21 @@ public Response ListDeploymentLog(string subscriptionId, s } } + internal RequestUriBuilder CreateDiscoverBackupRequestUri(string subscriptionId, string resourceGroupName, string name, RestoreRequestInfo info) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/discoverbackup", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDiscoverBackupRequest(string subscriptionId, string resourceGroupName, string name, RestoreRequestInfo info) { var message = _pipeline.CreateMessage(); @@ -5378,6 +6381,21 @@ public Response DiscoverBackup(string subscriptionId, string } } + internal RequestUriBuilder CreateListDomainOwnershipIdentifiersRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/domainOwnershipIdentifiers", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListDomainOwnershipIdentifiersRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -5457,6 +6475,22 @@ public Response ListDomainOwnershipIdentifiers(s } } + internal RequestUriBuilder CreateGetDomainOwnershipIdentifierRequestUri(string subscriptionId, string resourceGroupName, string name, string domainOwnershipIdentifierName) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/domainOwnershipIdentifiers/", false); + uri.AppendPath(domainOwnershipIdentifierName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetDomainOwnershipIdentifierRequest(string subscriptionId, string resourceGroupName, string name, string domainOwnershipIdentifierName) { var message = _pipeline.CreateMessage(); @@ -5545,6 +6579,22 @@ public Response GetDomainOwnershipIdentifier(string su } } + internal RequestUriBuilder CreateCreateOrUpdateDomainOwnershipIdentifierRequestUri(string subscriptionId, string resourceGroupName, string name, string domainOwnershipIdentifierName, AppServiceIdentifierData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/domainOwnershipIdentifiers/", false); + uri.AppendPath(domainOwnershipIdentifierName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateDomainOwnershipIdentifierRequest(string subscriptionId, string resourceGroupName, string name, string domainOwnershipIdentifierName, AppServiceIdentifierData data) { var message = _pipeline.CreateMessage(); @@ -5637,6 +6687,22 @@ public Response CreateOrUpdateDomainOwnershipIdentifie } } + internal RequestUriBuilder CreateDeleteDomainOwnershipIdentifierRequestUri(string subscriptionId, string resourceGroupName, string name, string domainOwnershipIdentifierName) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/domainOwnershipIdentifiers/", false); + uri.AppendPath(domainOwnershipIdentifierName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteDomainOwnershipIdentifierRequest(string subscriptionId, string resourceGroupName, string name, string domainOwnershipIdentifierName) { var message = _pipeline.CreateMessage(); @@ -5713,6 +6779,22 @@ public Response DeleteDomainOwnershipIdentifier(string subscriptionId, string re } } + internal RequestUriBuilder CreateUpdateDomainOwnershipIdentifierRequestUri(string subscriptionId, string resourceGroupName, string name, string domainOwnershipIdentifierName, AppServiceIdentifierData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/domainOwnershipIdentifiers/", false); + uri.AppendPath(domainOwnershipIdentifierName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateDomainOwnershipIdentifierRequest(string subscriptionId, string resourceGroupName, string name, string domainOwnershipIdentifierName, AppServiceIdentifierData data) { var message = _pipeline.CreateMessage(); @@ -5805,6 +6887,21 @@ public Response UpdateDomainOwnershipIdentifier(string } } + internal RequestUriBuilder CreateGetMSDeployStatusRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/extensions/MSDeploy", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetMSDeployStatusRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -5888,6 +6985,21 @@ public Response GetMSDeployStatus(string subscriptionId, str } } + internal RequestUriBuilder CreateCreateMSDeployOperationRequestUri(string subscriptionId, string resourceGroupName, string name, WebAppMSDeploy msDeploy) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/extensions/MSDeploy", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateMSDeployOperationRequest(string subscriptionId, string resourceGroupName, string name, WebAppMSDeploy msDeploy) { var message = _pipeline.CreateMessage(); @@ -5965,6 +7077,21 @@ public Response CreateMSDeployOperation(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateGetMSDeployLogRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/extensions/MSDeploy/log", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetMSDeployLogRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -6044,6 +7171,21 @@ public Response GetMSDeployLog(string subscriptionId, string } } + internal RequestUriBuilder CreateListFunctionsRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/functions", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListFunctionsRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -6123,6 +7265,21 @@ public Response ListFunctions(string subscriptionId, } } + internal RequestUriBuilder CreateGetFunctionsAdminTokenRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/functions/admin/token", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetFunctionsAdminTokenRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -6202,6 +7359,22 @@ public Response GetFunctionsAdminToken(string subscriptionId, string res } } + internal RequestUriBuilder CreateGetFunctionRequestUri(string subscriptionId, string resourceGroupName, string name, string functionName) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/functions/", false); + uri.AppendPath(functionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetFunctionRequest(string subscriptionId, string resourceGroupName, string name, string functionName) { var message = _pipeline.CreateMessage(); @@ -6290,6 +7463,22 @@ public Response GetFunction(string subscriptionId, string } } + internal RequestUriBuilder CreateCreateFunctionRequestUri(string subscriptionId, string resourceGroupName, string name, string functionName, FunctionEnvelopeData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/functions/", false); + uri.AppendPath(functionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateFunctionRequest(string subscriptionId, string resourceGroupName, string name, string functionName, FunctionEnvelopeData data) { var message = _pipeline.CreateMessage(); @@ -6372,6 +7561,22 @@ public Response CreateFunction(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteFunctionRequestUri(string subscriptionId, string resourceGroupName, string name, string functionName) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/functions/", false); + uri.AppendPath(functionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteFunctionRequest(string subscriptionId, string resourceGroupName, string name, string functionName) { var message = _pipeline.CreateMessage(); @@ -6446,6 +7651,24 @@ public Response DeleteFunction(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateCreateOrUpdateFunctionSecretRequestUri(string subscriptionId, string resourceGroupName, string name, string functionName, string keyName, WebAppKeyInfo info) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/functions/", false); + uri.AppendPath(functionName, true); + uri.AppendPath("/keys/", false); + uri.AppendPath(keyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateFunctionSecretRequest(string subscriptionId, string resourceGroupName, string name, string functionName, string keyName, WebAppKeyInfo info) { var message = _pipeline.CreateMessage(); @@ -6546,6 +7769,24 @@ public Response CreateOrUpdateFunctionSecret(string subscriptionI } } + internal RequestUriBuilder CreateDeleteFunctionSecretRequestUri(string subscriptionId, string resourceGroupName, string name, string functionName, string keyName) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/functions/", false); + uri.AppendPath(functionName, true); + uri.AppendPath("/keys/", false); + uri.AppendPath(keyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteFunctionSecretRequest(string subscriptionId, string resourceGroupName, string name, string functionName, string keyName) { var message = _pipeline.CreateMessage(); @@ -6626,6 +7867,23 @@ public Response DeleteFunctionSecret(string subscriptionId, string resourceGroup } } + internal RequestUriBuilder CreateListFunctionKeysRequestUri(string subscriptionId, string resourceGroupName, string name, string functionName) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/functions/", false); + uri.AppendPath(functionName, true); + uri.AppendPath("/listkeys", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListFunctionKeysRequest(string subscriptionId, string resourceGroupName, string name, string functionName) { var message = _pipeline.CreateMessage(); @@ -6711,6 +7969,23 @@ public Response ListFunctionKeys(string subsc } } + internal RequestUriBuilder CreateListFunctionSecretsRequestUri(string subscriptionId, string resourceGroupName, string name, string functionName) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/functions/", false); + uri.AppendPath(functionName, true); + uri.AppendPath("/listsecrets", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListFunctionSecretsRequest(string subscriptionId, string resourceGroupName, string name, string functionName) { var message = _pipeline.CreateMessage(); @@ -6796,6 +8071,21 @@ public Response ListFunctionSecrets(string subscriptionId, stri } } + internal RequestUriBuilder CreateListHostKeysRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/host/default/listkeys", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListHostKeysRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -6875,6 +8165,21 @@ public Response ListHostKeys(string subscriptionId, string } } + internal RequestUriBuilder CreateListSyncStatusRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/host/default/listsyncstatus", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListSyncStatusRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -6944,6 +8249,21 @@ public Response ListSyncStatus(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateSyncFunctionsRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/host/default/sync", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateSyncFunctionsRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -7013,6 +8333,24 @@ public Response SyncFunctions(string subscriptionId, string resourceGroupName, s } } + internal RequestUriBuilder CreateCreateOrUpdateHostSecretRequestUri(string subscriptionId, string resourceGroupName, string name, string keyType, string keyName, WebAppKeyInfo info) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/host/default/", false); + uri.AppendPath(keyType, true); + uri.AppendPath("/", false); + uri.AppendPath(keyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateHostSecretRequest(string subscriptionId, string resourceGroupName, string name, string keyType, string keyName, WebAppKeyInfo info) { var message = _pipeline.CreateMessage(); @@ -7113,6 +8451,24 @@ public Response CreateOrUpdateHostSecret(string subscriptionId, s } } + internal RequestUriBuilder CreateDeleteHostSecretRequestUri(string subscriptionId, string resourceGroupName, string name, string keyType, string keyName) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/host/default/", false); + uri.AppendPath(keyType, true); + uri.AppendPath("/", false); + uri.AppendPath(keyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteHostSecretRequest(string subscriptionId, string resourceGroupName, string name, string keyType, string keyName) { var message = _pipeline.CreateMessage(); @@ -7193,6 +8549,21 @@ public Response DeleteHostSecret(string subscriptionId, string resourceGroupName } } + internal RequestUriBuilder CreateListHostNameBindingsRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/hostNameBindings", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListHostNameBindingsRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -7272,6 +8643,22 @@ public Response ListHostNameBindings(string subscript } } + internal RequestUriBuilder CreateGetHostNameBindingRequestUri(string subscriptionId, string resourceGroupName, string name, string hostName) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/hostNameBindings/", false); + uri.AppendPath(hostName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetHostNameBindingRequest(string subscriptionId, string resourceGroupName, string name, string hostName) { var message = _pipeline.CreateMessage(); @@ -7360,6 +8747,22 @@ public Response GetHostNameBinding(string subscriptionId, s } } + internal RequestUriBuilder CreateCreateOrUpdateHostNameBindingRequestUri(string subscriptionId, string resourceGroupName, string name, string hostName, HostNameBindingData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/hostNameBindings/", false); + uri.AppendPath(hostName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateHostNameBindingRequest(string subscriptionId, string resourceGroupName, string name, string hostName, HostNameBindingData data) { var message = _pipeline.CreateMessage(); @@ -7452,6 +8855,22 @@ public Response CreateOrUpdateHostNameBinding(string subscr } } + internal RequestUriBuilder CreateDeleteHostNameBindingRequestUri(string subscriptionId, string resourceGroupName, string name, string hostName) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/hostNameBindings/", false); + uri.AppendPath(hostName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteHostNameBindingRequest(string subscriptionId, string resourceGroupName, string name, string hostName) { var message = _pipeline.CreateMessage(); @@ -7528,6 +8947,24 @@ public Response DeleteHostNameBinding(string subscriptionId, string resourceGrou } } + internal RequestUriBuilder CreateGetHybridConnectionRequestUri(string subscriptionId, string resourceGroupName, string name, string namespaceName, string relayName) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/hybridConnectionNamespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/relays/", false); + uri.AppendPath(relayName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetHybridConnectionRequest(string subscriptionId, string resourceGroupName, string name, string namespaceName, string relayName) { var message = _pipeline.CreateMessage(); @@ -7622,6 +9059,24 @@ public Response GetHybridConnection(string subscriptionId, } } + internal RequestUriBuilder CreateCreateOrUpdateHybridConnectionRequestUri(string subscriptionId, string resourceGroupName, string name, string namespaceName, string relayName, HybridConnectionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/hybridConnectionNamespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/relays/", false); + uri.AppendPath(relayName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateHybridConnectionRequest(string subscriptionId, string resourceGroupName, string name, string namespaceName, string relayName, HybridConnectionData data) { var message = _pipeline.CreateMessage(); @@ -7720,6 +9175,24 @@ public Response CreateOrUpdateHybridConnection(string subs } } + internal RequestUriBuilder CreateDeleteHybridConnectionRequestUri(string subscriptionId, string resourceGroupName, string name, string namespaceName, string relayName) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/hybridConnectionNamespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/relays/", false); + uri.AppendPath(relayName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteHybridConnectionRequest(string subscriptionId, string resourceGroupName, string name, string namespaceName, string relayName) { var message = _pipeline.CreateMessage(); @@ -7800,6 +9273,24 @@ public Response DeleteHybridConnection(string subscriptionId, string resourceGro } } + internal RequestUriBuilder CreateUpdateHybridConnectionRequestUri(string subscriptionId, string resourceGroupName, string name, string namespaceName, string relayName, HybridConnectionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/hybridConnectionNamespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/relays/", false); + uri.AppendPath(relayName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateHybridConnectionRequest(string subscriptionId, string resourceGroupName, string name, string namespaceName, string relayName, HybridConnectionData data) { var message = _pipeline.CreateMessage(); @@ -7898,6 +9389,21 @@ public Response UpdateHybridConnection(string subscription } } + internal RequestUriBuilder CreateListHybridConnectionsRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/hybridConnectionRelays", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListHybridConnectionsRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -7977,6 +9483,21 @@ public Response ListHybridConnections(string subscriptionI } } + internal RequestUriBuilder CreateListRelayServiceConnectionsRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/hybridconnection", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRelayServiceConnectionsRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -8056,6 +9577,22 @@ public Response ListRelayServiceConnections(st } } + internal RequestUriBuilder CreateGetRelayServiceConnectionRequestUri(string subscriptionId, string resourceGroupName, string name, string entityName) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/hybridconnection/", false); + uri.AppendPath(entityName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRelayServiceConnectionRequest(string subscriptionId, string resourceGroupName, string name, string entityName) { var message = _pipeline.CreateMessage(); @@ -8144,6 +9681,22 @@ public Response GetRelayServiceConnection(stri } } + internal RequestUriBuilder CreateCreateOrUpdateRelayServiceConnectionRequestUri(string subscriptionId, string resourceGroupName, string name, string entityName, RelayServiceConnectionEntityData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/hybridconnection/", false); + uri.AppendPath(entityName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRelayServiceConnectionRequest(string subscriptionId, string resourceGroupName, string name, string entityName, RelayServiceConnectionEntityData data) { var message = _pipeline.CreateMessage(); @@ -8236,6 +9789,22 @@ public Response CreateOrUpdateRelayServiceConn } } + internal RequestUriBuilder CreateDeleteRelayServiceConnectionRequestUri(string subscriptionId, string resourceGroupName, string name, string entityName) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/hybridconnection/", false); + uri.AppendPath(entityName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRelayServiceConnectionRequest(string subscriptionId, string resourceGroupName, string name, string entityName) { var message = _pipeline.CreateMessage(); @@ -8310,6 +9879,22 @@ public Response DeleteRelayServiceConnection(string subscriptionId, string resou } } + internal RequestUriBuilder CreateUpdateRelayServiceConnectionRequestUri(string subscriptionId, string resourceGroupName, string name, string entityName, RelayServiceConnectionEntityData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/hybridconnection/", false); + uri.AppendPath(entityName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRelayServiceConnectionRequest(string subscriptionId, string resourceGroupName, string name, string entityName, RelayServiceConnectionEntityData data) { var message = _pipeline.CreateMessage(); @@ -8402,6 +9987,21 @@ public Response UpdateRelayServiceConnection(s } } + internal RequestUriBuilder CreateListInstanceIdentifiersRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/instances", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListInstanceIdentifiersRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -8481,6 +10081,22 @@ public Response ListInstanceIdentifiers(string s } } + internal RequestUriBuilder CreateGetInstanceInfoRequestUri(string subscriptionId, string resourceGroupName, string name, string instanceId) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/instances/", false); + uri.AppendPath(instanceId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetInstanceInfoRequest(string subscriptionId, string resourceGroupName, string name, string instanceId) { var message = _pipeline.CreateMessage(); @@ -8569,6 +10185,23 @@ public Response GetInstanceInfo(string subscriptionId } } + internal RequestUriBuilder CreateGetInstanceMsDeployStatusRequestUri(string subscriptionId, string resourceGroupName, string name, string instanceId) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/instances/", false); + uri.AppendPath(instanceId, true); + uri.AppendPath("/extensions/MSDeploy", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetInstanceMsDeployStatusRequest(string subscriptionId, string resourceGroupName, string name, string instanceId) { var message = _pipeline.CreateMessage(); @@ -8658,6 +10291,23 @@ public Response GetInstanceMsDeployStatus(string subscriptio } } + internal RequestUriBuilder CreateCreateInstanceMSDeployOperationRequestUri(string subscriptionId, string resourceGroupName, string name, string instanceId, WebAppMSDeploy msDeploy) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/instances/", false); + uri.AppendPath(instanceId, true); + uri.AppendPath("/extensions/MSDeploy", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateInstanceMSDeployOperationRequest(string subscriptionId, string resourceGroupName, string name, string instanceId, WebAppMSDeploy msDeploy) { var message = _pipeline.CreateMessage(); @@ -8741,6 +10391,23 @@ public Response CreateInstanceMSDeployOperation(string subscriptionId, string re } } + internal RequestUriBuilder CreateGetInstanceMSDeployLogRequestUri(string subscriptionId, string resourceGroupName, string name, string instanceId) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/instances/", false); + uri.AppendPath(instanceId, true); + uri.AppendPath("/extensions/MSDeploy/log", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetInstanceMSDeployLogRequest(string subscriptionId, string resourceGroupName, string name, string instanceId) { var message = _pipeline.CreateMessage(); @@ -8826,6 +10493,23 @@ public Response GetInstanceMSDeployLog(string subscriptionId, } } + internal RequestUriBuilder CreateListInstanceProcessesRequestUri(string subscriptionId, string resourceGroupName, string name, string instanceId) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/instances/", false); + uri.AppendPath(instanceId, true); + uri.AppendPath("/processes", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListInstanceProcessesRequest(string subscriptionId, string resourceGroupName, string name, string instanceId) { var message = _pipeline.CreateMessage(); @@ -8911,6 +10595,24 @@ public Response ListInstanceProcesses(string subscription } } + internal RequestUriBuilder CreateGetInstanceProcessRequestUri(string subscriptionId, string resourceGroupName, string name, string instanceId, string processId) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/instances/", false); + uri.AppendPath(instanceId, true); + uri.AppendPath("/processes/", false); + uri.AppendPath(processId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetInstanceProcessRequest(string subscriptionId, string resourceGroupName, string name, string instanceId, string processId) { var message = _pipeline.CreateMessage(); @@ -9005,6 +10707,24 @@ public Response GetInstanceProcess(string subscriptionId, strin } } + internal RequestUriBuilder CreateDeleteInstanceProcessRequestUri(string subscriptionId, string resourceGroupName, string name, string instanceId, string processId) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/instances/", false); + uri.AppendPath(instanceId, true); + uri.AppendPath("/processes/", false); + uri.AppendPath(processId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteInstanceProcessRequest(string subscriptionId, string resourceGroupName, string name, string instanceId, string processId) { var message = _pipeline.CreateMessage(); @@ -9085,6 +10805,25 @@ public Response DeleteInstanceProcess(string subscriptionId, string resourceGrou } } + internal RequestUriBuilder CreateGetInstanceProcessDumpRequestUri(string subscriptionId, string resourceGroupName, string name, string instanceId, string processId) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/instances/", false); + uri.AppendPath(instanceId, true); + uri.AppendPath("/processes/", false); + uri.AppendPath(processId, true); + uri.AppendPath("/dump", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetInstanceProcessDumpRequest(string subscriptionId, string resourceGroupName, string name, string instanceId, string processId) { var message = _pipeline.CreateMessage(); @@ -9172,6 +10911,25 @@ public Response GetInstanceProcessDump(string subscriptionId, string res } } + internal RequestUriBuilder CreateListInstanceProcessModulesRequestUri(string subscriptionId, string resourceGroupName, string name, string instanceId, string processId) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/instances/", false); + uri.AppendPath(instanceId, true); + uri.AppendPath("/processes/", false); + uri.AppendPath(processId, true); + uri.AppendPath("/modules", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListInstanceProcessModulesRequest(string subscriptionId, string resourceGroupName, string name, string instanceId, string processId) { var message = _pipeline.CreateMessage(); @@ -9263,6 +11021,26 @@ public Response ListInstanceProcessModules(string s } } + internal RequestUriBuilder CreateGetInstanceProcessModuleRequestUri(string subscriptionId, string resourceGroupName, string name, string instanceId, string processId, string baseAddress) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/instances/", false); + uri.AppendPath(instanceId, true); + uri.AppendPath("/processes/", false); + uri.AppendPath(processId, true); + uri.AppendPath("/modules/", false); + uri.AppendPath(baseAddress, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetInstanceProcessModuleRequest(string subscriptionId, string resourceGroupName, string name, string instanceId, string processId, string baseAddress) { var message = _pipeline.CreateMessage(); @@ -9363,6 +11141,25 @@ public Response GetInstanceProcessModule(string subscript } } + internal RequestUriBuilder CreateListInstanceProcessThreadsRequestUri(string subscriptionId, string resourceGroupName, string name, string instanceId, string processId) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/instances/", false); + uri.AppendPath(instanceId, true); + uri.AppendPath("/processes/", false); + uri.AppendPath(processId, true); + uri.AppendPath("/threads", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListInstanceProcessThreadsRequest(string subscriptionId, string resourceGroupName, string name, string instanceId, string processId) { var message = _pipeline.CreateMessage(); @@ -9454,6 +11251,21 @@ public Response ListInstanceProcessThreads(string s } } + internal RequestUriBuilder CreateIsCloneableRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/iscloneable", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateIsCloneableRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -9533,6 +11345,21 @@ public Response IsCloneable(string subscriptionId, string reso } } + internal RequestUriBuilder CreateListSiteBackupsRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/listbackups", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListSiteBackupsRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -9612,6 +11439,21 @@ public Response ListSiteBackups(string subscriptionI } } + internal RequestUriBuilder CreateListSyncFunctionTriggersRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/listsyncfunctiontriggerstatus", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListSyncFunctionTriggersRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -9691,6 +11533,22 @@ public Response ListSyncFunctionTriggers(string subscriptionId, } } + internal RequestUriBuilder CreateMigrateStorageRequestUri(string subscriptionId, string resourceGroupName, string name, string subscriptionName, StorageMigrationContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/migrate", false); + uri.AppendQuery("subscriptionName", subscriptionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateMigrateStorageRequest(string subscriptionId, string resourceGroupName, string name, string subscriptionName, StorageMigrationContent content) { var message = _pipeline.CreateMessage(); @@ -9773,6 +11631,21 @@ public Response MigrateStorage(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateMigrateMySqlRequestUri(string subscriptionId, string resourceGroupName, string name, MigrateMySqlContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/migratemysql", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateMigrateMySqlRequest(string subscriptionId, string resourceGroupName, string name, MigrateMySqlContent content) { var message = _pipeline.CreateMessage(); @@ -9850,6 +11723,21 @@ public Response MigrateMySql(string subscriptionId, string resourceGroupName, st } } + internal RequestUriBuilder CreateGetMigrateMySqlStatusRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/migratemysql/status", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetMigrateMySqlStatusRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -9929,6 +11817,21 @@ public Response GetMigrateMySqlStatus(string subscriptio } } + internal RequestUriBuilder CreateGetSwiftVirtualNetworkConnectionRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/networkConfig/virtualNetwork", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetSwiftVirtualNetworkConnectionRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -10012,6 +11915,21 @@ public Response GetSwiftVirtualNetworkConnection(string } } + internal RequestUriBuilder CreateCreateOrUpdateSwiftVirtualNetworkConnectionWithCheckRequestUri(string subscriptionId, string resourceGroupName, string name, SwiftVirtualNetworkData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/networkConfig/virtualNetwork", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateSwiftVirtualNetworkConnectionWithCheckRequest(string subscriptionId, string resourceGroupName, string name, SwiftVirtualNetworkData data) { var message = _pipeline.CreateMessage(); @@ -10105,6 +12023,21 @@ public Response CreateOrUpdateSwiftVirtualNetworkConnec } } + internal RequestUriBuilder CreateDeleteSwiftVirtualNetworkRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/networkConfig/virtualNetwork", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteSwiftVirtualNetworkRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -10174,6 +12107,21 @@ public Response DeleteSwiftVirtualNetwork(string subscriptionId, string resource } } + internal RequestUriBuilder CreateUpdateSwiftVirtualNetworkConnectionWithCheckRequestUri(string subscriptionId, string resourceGroupName, string name, SwiftVirtualNetworkData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/networkConfig/virtualNetwork", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateSwiftVirtualNetworkConnectionWithCheckRequest(string subscriptionId, string resourceGroupName, string name, SwiftVirtualNetworkData data) { var message = _pipeline.CreateMessage(); @@ -10267,6 +12215,22 @@ public Response UpdateSwiftVirtualNetworkConnectionWith } } + internal RequestUriBuilder CreateListNetworkFeaturesRequestUri(string subscriptionId, string resourceGroupName, string name, string view) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/networkFeatures/", false); + uri.AppendPath(view, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListNetworkFeaturesRequest(string subscriptionId, string resourceGroupName, string name, string view) { var message = _pipeline.CreateMessage(); @@ -10351,6 +12315,22 @@ public Response ListNetworkFeatures(string subscriptionId, s } } + internal RequestUriBuilder CreateGetNetworkTraceOperationRequestUri(string subscriptionId, string resourceGroupName, string name, string operationId) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/networkTrace/operationresults/", false); + uri.AppendPath(operationId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetNetworkTraceOperationRequest(string subscriptionId, string resourceGroupName, string name, string operationId) { var message = _pipeline.CreateMessage(); @@ -10447,6 +12427,33 @@ public Response> GetNetworkTraceOperation(stri } } + internal RequestUriBuilder CreateStartWebSiteNetworkTraceRequestUri(string subscriptionId, string resourceGroupName, string name, int? durationInSeconds, int? maxFrameLength, string sasUrl) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/networkTrace/start", false); + if (durationInSeconds != null) + { + uri.AppendQuery("durationInSeconds", durationInSeconds.Value, true); + } + if (maxFrameLength != null) + { + uri.AppendQuery("maxFrameLength", maxFrameLength.Value, true); + } + if (sasUrl != null) + { + uri.AppendQuery("sasUrl", sasUrl, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStartWebSiteNetworkTraceRequest(string subscriptionId, string resourceGroupName, string name, int? durationInSeconds, int? maxFrameLength, string sasUrl) { var message = _pipeline.CreateMessage(); @@ -10544,6 +12551,33 @@ public Response StartWebSiteNetworkTrace(string subscriptionId, string r } } + internal RequestUriBuilder CreateStartWebSiteNetworkTraceOperationRequestUri(string subscriptionId, string resourceGroupName, string name, int? durationInSeconds, int? maxFrameLength, string sasUrl) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/networkTrace/startOperation", false); + if (durationInSeconds != null) + { + uri.AppendQuery("durationInSeconds", durationInSeconds.Value, true); + } + if (maxFrameLength != null) + { + uri.AppendQuery("maxFrameLength", maxFrameLength.Value, true); + } + if (sasUrl != null) + { + uri.AppendQuery("sasUrl", sasUrl, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStartWebSiteNetworkTraceOperationRequest(string subscriptionId, string resourceGroupName, string name, int? durationInSeconds, int? maxFrameLength, string sasUrl) { var message = _pipeline.CreateMessage(); @@ -10633,6 +12667,21 @@ public Response StartWebSiteNetworkTraceOperation(string subscriptionId, string } } + internal RequestUriBuilder CreateStopWebSiteNetworkTraceRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/networkTrace/stop", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStopWebSiteNetworkTraceRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -10704,6 +12753,22 @@ public Response StopWebSiteNetworkTrace(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateGetNetworkTracesRequestUri(string subscriptionId, string resourceGroupName, string name, string operationId) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/networkTrace/", false); + uri.AppendPath(operationId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetNetworkTracesRequest(string subscriptionId, string resourceGroupName, string name, string operationId) { var message = _pipeline.CreateMessage(); @@ -10798,6 +12863,22 @@ public Response> GetNetworkTraces(string subsc } } + internal RequestUriBuilder CreateGetNetworkTraceOperationV2RequestUri(string subscriptionId, string resourceGroupName, string name, string operationId) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/networkTraces/current/operationresults/", false); + uri.AppendPath(operationId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetNetworkTraceOperationV2Request(string subscriptionId, string resourceGroupName, string name, string operationId) { var message = _pipeline.CreateMessage(); @@ -10894,6 +12975,22 @@ public Response> GetNetworkTraceOperationV2(st } } + internal RequestUriBuilder CreateGetNetworkTracesV2RequestUri(string subscriptionId, string resourceGroupName, string name, string operationId) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/networkTraces/", false); + uri.AppendPath(operationId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetNetworkTracesV2Request(string subscriptionId, string resourceGroupName, string name, string operationId) { var message = _pipeline.CreateMessage(); @@ -10988,6 +13085,21 @@ public Response> GetNetworkTracesV2(string sub } } + internal RequestUriBuilder CreateGenerateNewSitePublishingPasswordRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/newpassword", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGenerateNewSitePublishingPasswordRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -11059,6 +13171,25 @@ public Response GenerateNewSitePublishingPassword(string subscriptionId, string } } + internal RequestUriBuilder CreateListPerfMonCountersRequestUri(string subscriptionId, string resourceGroupName, string name, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/perfcounters", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, false); + } + return uri; + } + internal HttpMessage CreateListPerfMonCountersRequest(string subscriptionId, string resourceGroupName, string name, string filter) { var message = _pipeline.CreateMessage(); @@ -11144,6 +13275,21 @@ public Response ListPerfMonCounters(string subscriptio } } + internal RequestUriBuilder CreateGetSitePhpErrorLogFlagRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/phplogging", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetSitePhpErrorLogFlagRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -11223,6 +13369,21 @@ public Response GetSitePhpErrorLogFlag(string subscriptionI } } + internal RequestUriBuilder CreateListPremierAddOnsRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/premieraddons", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListPremierAddOnsRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -11302,6 +13463,22 @@ public Response ListPremierAddOns(string subscriptionId, strin } } + internal RequestUriBuilder CreateGetPremierAddOnRequestUri(string subscriptionId, string resourceGroupName, string name, string premierAddOnName) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/premieraddons/", false); + uri.AppendPath(premierAddOnName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetPremierAddOnRequest(string subscriptionId, string resourceGroupName, string name, string premierAddOnName) { var message = _pipeline.CreateMessage(); @@ -11390,6 +13567,22 @@ public Response GetPremierAddOn(string subscriptionId, string } } + internal RequestUriBuilder CreateAddPremierAddOnRequestUri(string subscriptionId, string resourceGroupName, string name, string premierAddOnName, PremierAddOnData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/premieraddons/", false); + uri.AppendPath(premierAddOnName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateAddPremierAddOnRequest(string subscriptionId, string resourceGroupName, string name, string premierAddOnName, PremierAddOnData data) { var message = _pipeline.CreateMessage(); @@ -11482,6 +13675,22 @@ public Response AddPremierAddOn(string subscriptionId, string } } + internal RequestUriBuilder CreateDeletePremierAddOnRequestUri(string subscriptionId, string resourceGroupName, string name, string premierAddOnName) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/premieraddons/", false); + uri.AppendPath(premierAddOnName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeletePremierAddOnRequest(string subscriptionId, string resourceGroupName, string name, string premierAddOnName) { var message = _pipeline.CreateMessage(); @@ -11556,6 +13765,22 @@ public Response DeletePremierAddOn(string subscriptionId, string resourceGroupNa } } + internal RequestUriBuilder CreateUpdatePremierAddOnRequestUri(string subscriptionId, string resourceGroupName, string name, string premierAddOnName, PremierAddOnPatchResource premierAddOn) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/premieraddons/", false); + uri.AppendPath(premierAddOnName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdatePremierAddOnRequest(string subscriptionId, string resourceGroupName, string name, string premierAddOnName, PremierAddOnPatchResource premierAddOn) { var message = _pipeline.CreateMessage(); @@ -11648,6 +13873,21 @@ public Response UpdatePremierAddOn(string subscriptionId, stri } } + internal RequestUriBuilder CreateGetPrivateAccessRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/privateAccess/virtualNetworks", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetPrivateAccessRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -11731,6 +13971,21 @@ public Response GetPrivateAccess(string subscriptionId, strin } } + internal RequestUriBuilder CreatePutPrivateAccessVnetRequestUri(string subscriptionId, string resourceGroupName, string name, PrivateAccessData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/privateAccess/virtualNetworks", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreatePutPrivateAccessVnetRequest(string subscriptionId, string resourceGroupName, string name, PrivateAccessData data) { var message = _pipeline.CreateMessage(); @@ -11818,6 +14073,21 @@ public Response PutPrivateAccessVnet(string subscriptionId, s } } + internal RequestUriBuilder CreateGetPrivateEndpointConnectionListRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/privateEndpointConnections", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetPrivateEndpointConnectionListRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -11897,6 +14167,22 @@ public Response GetPrivateEndpointCon } } + internal RequestUriBuilder CreateGetPrivateEndpointConnectionRequestUri(string subscriptionId, string resourceGroupName, string name, string privateEndpointConnectionName) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetPrivateEndpointConnectionRequest(string subscriptionId, string resourceGroupName, string name, string privateEndpointConnectionName) { var message = _pipeline.CreateMessage(); @@ -11985,6 +14271,22 @@ public Response GetPrivateEndpoi } } + internal RequestUriBuilder CreateApproveOrRejectPrivateEndpointConnectionRequestUri(string subscriptionId, string resourceGroupName, string name, string privateEndpointConnectionName, PrivateLinkConnectionApprovalRequestInfo info) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateApproveOrRejectPrivateEndpointConnectionRequest(string subscriptionId, string resourceGroupName, string name, string privateEndpointConnectionName, PrivateLinkConnectionApprovalRequestInfo info) { var message = _pipeline.CreateMessage(); @@ -12069,6 +14371,22 @@ public Response ApproveOrRejectPrivateEndpointConnection(string subscriptionId, } } + internal RequestUriBuilder CreateDeletePrivateEndpointConnectionRequestUri(string subscriptionId, string resourceGroupName, string name, string privateEndpointConnectionName) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeletePrivateEndpointConnectionRequest(string subscriptionId, string resourceGroupName, string name, string privateEndpointConnectionName) { var message = _pipeline.CreateMessage(); @@ -12147,6 +14465,21 @@ public Response DeletePrivateEndpointConnection(string subscriptionId, string re } } + internal RequestUriBuilder CreateGetPrivateLinkResourcesRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/privateLinkResources", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetPrivateLinkResourcesRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -12226,6 +14559,21 @@ public Response GetPrivateLinkResources(string subs } } + internal RequestUriBuilder CreateListProcessesRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/processes", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListProcessesRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -12305,6 +14653,22 @@ public Response ListProcesses(string subscriptionId, stri } } + internal RequestUriBuilder CreateGetProcessRequestUri(string subscriptionId, string resourceGroupName, string name, string processId) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/processes/", false); + uri.AppendPath(processId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetProcessRequest(string subscriptionId, string resourceGroupName, string name, string processId) { var message = _pipeline.CreateMessage(); @@ -12393,6 +14757,22 @@ public Response GetProcess(string subscriptionId, string resour } } + internal RequestUriBuilder CreateDeleteProcessRequestUri(string subscriptionId, string resourceGroupName, string name, string processId) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/processes/", false); + uri.AppendPath(processId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteProcessRequest(string subscriptionId, string resourceGroupName, string name, string processId) { var message = _pipeline.CreateMessage(); @@ -12467,6 +14847,23 @@ public Response DeleteProcess(string subscriptionId, string resourceGroupName, s } } + internal RequestUriBuilder CreateGetProcessDumpRequestUri(string subscriptionId, string resourceGroupName, string name, string processId) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/processes/", false); + uri.AppendPath(processId, true); + uri.AppendPath("/dump", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetProcessDumpRequest(string subscriptionId, string resourceGroupName, string name, string processId) { var message = _pipeline.CreateMessage(); @@ -12548,6 +14945,23 @@ public Response GetProcessDump(string subscriptionId, string resourceGro } } + internal RequestUriBuilder CreateListProcessModulesRequestUri(string subscriptionId, string resourceGroupName, string name, string processId) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/processes/", false); + uri.AppendPath(processId, true); + uri.AppendPath("/modules", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListProcessModulesRequest(string subscriptionId, string resourceGroupName, string name, string processId) { var message = _pipeline.CreateMessage(); @@ -12633,6 +15047,24 @@ public Response ListProcessModules(string subscript } } + internal RequestUriBuilder CreateGetProcessModuleRequestUri(string subscriptionId, string resourceGroupName, string name, string processId, string baseAddress) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/processes/", false); + uri.AppendPath(processId, true); + uri.AppendPath("/modules/", false); + uri.AppendPath(baseAddress, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetProcessModuleRequest(string subscriptionId, string resourceGroupName, string name, string processId, string baseAddress) { var message = _pipeline.CreateMessage(); @@ -12727,6 +15159,23 @@ public Response GetProcessModule(string subscriptionId, s } } + internal RequestUriBuilder CreateListProcessThreadsRequestUri(string subscriptionId, string resourceGroupName, string name, string processId) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/processes/", false); + uri.AppendPath(processId, true); + uri.AppendPath("/threads", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListProcessThreadsRequest(string subscriptionId, string resourceGroupName, string name, string processId) { var message = _pipeline.CreateMessage(); @@ -12812,6 +15261,21 @@ public Response ListProcessThreads(string subscript } } + internal RequestUriBuilder CreateListPublicCertificatesRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/publicCertificates", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListPublicCertificatesRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -12891,6 +15355,22 @@ public Response ListPublicCertificates(string subsc } } + internal RequestUriBuilder CreateGetPublicCertificateRequestUri(string subscriptionId, string resourceGroupName, string name, string publicCertificateName) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/publicCertificates/", false); + uri.AppendPath(publicCertificateName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetPublicCertificateRequest(string subscriptionId, string resourceGroupName, string name, string publicCertificateName) { var message = _pipeline.CreateMessage(); @@ -12979,6 +15459,22 @@ public Response GetPublicCertificate(string subscriptionI } } + internal RequestUriBuilder CreateCreateOrUpdatePublicCertificateRequestUri(string subscriptionId, string resourceGroupName, string name, string publicCertificateName, PublicCertificateData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/publicCertificates/", false); + uri.AppendPath(publicCertificateName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdatePublicCertificateRequest(string subscriptionId, string resourceGroupName, string name, string publicCertificateName, PublicCertificateData data) { var message = _pipeline.CreateMessage(); @@ -13071,6 +15567,22 @@ public Response CreateOrUpdatePublicCertificate(string su } } + internal RequestUriBuilder CreateDeletePublicCertificateRequestUri(string subscriptionId, string resourceGroupName, string name, string publicCertificateName) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/publicCertificates/", false); + uri.AppendPath(publicCertificateName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeletePublicCertificateRequest(string subscriptionId, string resourceGroupName, string name, string publicCertificateName) { var message = _pipeline.CreateMessage(); @@ -13147,6 +15659,21 @@ public Response DeletePublicCertificate(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateListPublishingProfileXmlWithSecretsRequestUri(string subscriptionId, string resourceGroupName, string name, CsmPublishingProfile publishingProfileOptions) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/publishxml", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListPublishingProfileXmlWithSecretsRequest(string subscriptionId, string resourceGroupName, string name, CsmPublishingProfile publishingProfileOptions) { var message = _pipeline.CreateMessage(); @@ -13230,6 +15757,21 @@ public Response ListPublishingProfileXmlWithSecrets(string subscriptionI } } + internal RequestUriBuilder CreateResetProductionSlotConfigRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/resetSlotConfig", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateResetProductionSlotConfigRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -13299,6 +15841,29 @@ public Response ResetProductionSlotConfig(string subscriptionId, string resource } } + internal RequestUriBuilder CreateRestartRequestUri(string subscriptionId, string resourceGroupName, string name, bool? softRestart, bool? synchronous) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/restart", false); + if (softRestart != null) + { + uri.AppendQuery("softRestart", softRestart.Value, true); + } + if (synchronous != null) + { + uri.AppendQuery("synchronous", synchronous.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRestartRequest(string subscriptionId, string resourceGroupName, string name, bool? softRestart, bool? synchronous) { var message = _pipeline.CreateMessage(); @@ -13380,6 +15945,21 @@ public Response Restart(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreateRestoreFromBackupBlobRequestUri(string subscriptionId, string resourceGroupName, string name, RestoreRequestInfo info) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/restoreFromBackupBlob", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRestoreFromBackupBlobRequest(string subscriptionId, string resourceGroupName, string name, RestoreRequestInfo info) { var message = _pipeline.CreateMessage(); @@ -13459,6 +16039,21 @@ public Response RestoreFromBackupBlob(string subscriptionId, string resourceGrou } } + internal RequestUriBuilder CreateRestoreFromDeletedAppRequestUri(string subscriptionId, string resourceGroupName, string name, DeletedAppRestoreContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/restoreFromDeletedApp", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRestoreFromDeletedAppRequest(string subscriptionId, string resourceGroupName, string name, DeletedAppRestoreContent content) { var message = _pipeline.CreateMessage(); @@ -13538,6 +16133,21 @@ public Response RestoreFromDeletedApp(string subscriptionId, string resourceGrou } } + internal RequestUriBuilder CreateRestoreSnapshotRequestUri(string subscriptionId, string resourceGroupName, string name, SnapshotRestoreRequest restoreRequest) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/restoreSnapshot", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRestoreSnapshotRequest(string subscriptionId, string resourceGroupName, string name, SnapshotRestoreRequest restoreRequest) { var message = _pipeline.CreateMessage(); @@ -13617,6 +16227,21 @@ public Response RestoreSnapshot(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateListSiteExtensionsRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/siteextensions", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListSiteExtensionsRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -13696,6 +16321,22 @@ public Response ListSiteExtensions(string subscript } } + internal RequestUriBuilder CreateGetSiteExtensionRequestUri(string subscriptionId, string resourceGroupName, string name, string siteExtensionId) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/siteextensions/", false); + uri.AppendPath(siteExtensionId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetSiteExtensionRequest(string subscriptionId, string resourceGroupName, string name, string siteExtensionId) { var message = _pipeline.CreateMessage(); @@ -13784,6 +16425,22 @@ public Response GetSiteExtension(string subscriptionId, s } } + internal RequestUriBuilder CreateInstallSiteExtensionRequestUri(string subscriptionId, string resourceGroupName, string name, string siteExtensionId) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/siteextensions/", false); + uri.AppendPath(siteExtensionId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateInstallSiteExtensionRequest(string subscriptionId, string resourceGroupName, string name, string siteExtensionId) { var message = _pipeline.CreateMessage(); @@ -13860,6 +16517,22 @@ public Response InstallSiteExtension(string subscriptionId, string resourceGroup } } + internal RequestUriBuilder CreateDeleteSiteExtensionRequestUri(string subscriptionId, string resourceGroupName, string name, string siteExtensionId) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/siteextensions/", false); + uri.AppendPath(siteExtensionId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteSiteExtensionRequest(string subscriptionId, string resourceGroupName, string name, string siteExtensionId) { var message = _pipeline.CreateMessage(); @@ -13934,6 +16607,21 @@ public Response DeleteSiteExtension(string subscriptionId, string resourceGroupN } } + internal RequestUriBuilder CreateListSlotsRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListSlotsRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -14013,6 +16701,22 @@ public Response ListSlots(string subscriptionId, string resour } } + internal RequestUriBuilder CreateGetSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot) { var message = _pipeline.CreateMessage(); @@ -14101,6 +16805,22 @@ public Response GetSlot(string subscriptionId, string resourceGroup } } + internal RequestUriBuilder CreateCreateOrUpdateSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, WebSiteData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, WebSiteData data) { var message = _pipeline.CreateMessage(); @@ -14185,6 +16905,30 @@ public Response CreateOrUpdateSlot(string subscriptionId, string resourceGroupNa } } + internal RequestUriBuilder CreateDeleteSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, bool? deleteMetrics, bool? deleteEmptyServerFarm) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + if (deleteMetrics != null) + { + uri.AppendQuery("deleteMetrics", deleteMetrics.Value, true); + } + if (deleteEmptyServerFarm != null) + { + uri.AppendQuery("deleteEmptyServerFarm", deleteEmptyServerFarm.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, bool? deleteMetrics, bool? deleteEmptyServerFarm) { var message = _pipeline.CreateMessage(); @@ -14273,6 +17017,22 @@ public Response DeleteSlot(string subscriptionId, string resourceGroupName, stri } } + internal RequestUriBuilder CreateUpdateSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, SitePatchInfo info) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, SitePatchInfo info) { var message = _pipeline.CreateMessage(); @@ -14367,6 +17127,27 @@ public Response UpdateSlot(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateAnalyzeCustomHostnameSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, string hostName) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/analyzeCustomHostname", false); + if (hostName != null) + { + uri.AppendQuery("hostName", hostName, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateAnalyzeCustomHostnameSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, string hostName) { var message = _pipeline.CreateMessage(); @@ -14458,6 +17239,23 @@ public Response AnalyzeCustomHostnameSlot(string s } } + internal RequestUriBuilder CreateApplySlotConfigurationSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, CsmSlotEntity slotSwapEntity) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/applySlotConfig", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateApplySlotConfigurationSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, CsmSlotEntity slotSwapEntity) { var message = _pipeline.CreateMessage(); @@ -14541,6 +17339,23 @@ public Response ApplySlotConfigurationSlot(string subscriptionId, string resourc } } + internal RequestUriBuilder CreateBackupSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, WebAppBackupInfo info) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/backup", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateBackupSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, WebAppBackupInfo info) { var message = _pipeline.CreateMessage(); @@ -14634,6 +17449,23 @@ public Response BackupSlot(string subscriptionId, string resou } } + internal RequestUriBuilder CreateListBackupsSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/backups", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBackupsSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot) { var message = _pipeline.CreateMessage(); @@ -14719,6 +17551,24 @@ public Response ListBackupsSlot(string subscriptionI } } + internal RequestUriBuilder CreateGetBackupStatusSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, string backupId) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/backups/", false); + uri.AppendPath(backupId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetBackupStatusSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, string backupId) { var message = _pipeline.CreateMessage(); @@ -14813,6 +17663,24 @@ public Response GetBackupStatusSlot(string subscriptionId, str } } + internal RequestUriBuilder CreateDeleteBackupSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, string backupId) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/backups/", false); + uri.AppendPath(backupId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteBackupSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, string backupId) { var message = _pipeline.CreateMessage(); @@ -14893,6 +17761,25 @@ public Response DeleteBackupSlot(string subscriptionId, string resourceGroupName } } + internal RequestUriBuilder CreateListBackupStatusSecretsSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, string backupId, WebAppBackupInfo info) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/backups/", false); + uri.AppendPath(backupId, true); + uri.AppendPath("/list", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBackupStatusSecretsSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, string backupId, WebAppBackupInfo info) { var message = _pipeline.CreateMessage(); @@ -14992,6 +17879,25 @@ public Response ListBackupStatusSecretsSlot(string subscriptio } } + internal RequestUriBuilder CreateRestoreSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, string backupId, RestoreRequestInfo info) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/backups/", false); + uri.AppendPath(backupId, true); + uri.AppendPath("/restore", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRestoreSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, string backupId, RestoreRequestInfo info) { var message = _pipeline.CreateMessage(); @@ -15083,6 +17989,23 @@ public Response RestoreSlot(string subscriptionId, string resourceGroupName, str } } + internal RequestUriBuilder CreateListBasicPublishingCredentialsPoliciesSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/basicPublishingCredentialsPolicies", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBasicPublishingCredentialsPoliciesSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot) { var message = _pipeline.CreateMessage(); @@ -15168,6 +18091,23 @@ public Response ListBasicPublishingCred } } + internal RequestUriBuilder CreateGetFtpAllowedSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/basicPublishingCredentialsPolicies/ftp", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetFtpAllowedSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot) { var message = _pipeline.CreateMessage(); @@ -15257,6 +18197,23 @@ public Response GetFtpAllowedSlot(st } } + internal RequestUriBuilder CreateUpdateFtpAllowedSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, CsmPublishingCredentialsPoliciesEntityData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/basicPublishingCredentialsPolicies/ftp", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateFtpAllowedSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, CsmPublishingCredentialsPoliciesEntityData data) { var message = _pipeline.CreateMessage(); @@ -15350,6 +18307,23 @@ public Response UpdateFtpAllowedSlot } } + internal RequestUriBuilder CreateGetScmAllowedSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/basicPublishingCredentialsPolicies/scm", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetScmAllowedSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot) { var message = _pipeline.CreateMessage(); @@ -15439,6 +18413,23 @@ public Response GetScmAllowedSlot(st } } + internal RequestUriBuilder CreateUpdateScmAllowedSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, CsmPublishingCredentialsPoliciesEntityData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/basicPublishingCredentialsPolicies/scm", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateScmAllowedSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, CsmPublishingCredentialsPoliciesEntityData data) { var message = _pipeline.CreateMessage(); @@ -15532,6 +18523,23 @@ public Response UpdateScmAllowedSlot } } + internal RequestUriBuilder CreateListConfigurationsSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/config", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListConfigurationsSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot) { var message = _pipeline.CreateMessage(); @@ -15617,6 +18625,23 @@ public Response ListConfigurationsSlot(string subscription } } + internal RequestUriBuilder CreateUpdateApplicationSettingsSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, AppServiceConfigurationDictionary appSettings) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/config/appsettings", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateApplicationSettingsSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, AppServiceConfigurationDictionary appSettings) { var message = _pipeline.CreateMessage(); @@ -15710,6 +18735,23 @@ public Response UpdateApplicationSettingsSlot } } + internal RequestUriBuilder CreateListApplicationSettingsSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/config/appsettings/list", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListApplicationSettingsSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot) { var message = _pipeline.CreateMessage(); @@ -15795,6 +18837,23 @@ public Response ListApplicationSettingsSlot(s } } + internal RequestUriBuilder CreateUpdateAuthSettingsSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, SiteAuthSettings siteAuthSettings) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/config/authsettings", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateAuthSettingsSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, SiteAuthSettings siteAuthSettings) { var message = _pipeline.CreateMessage(); @@ -15888,6 +18947,23 @@ public Response UpdateAuthSettingsSlot(string subscriptionId, } } + internal RequestUriBuilder CreateGetAuthSettingsSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/config/authsettings/list", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetAuthSettingsSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot) { var message = _pipeline.CreateMessage(); @@ -15973,6 +19049,23 @@ public Response GetAuthSettingsSlot(string subscriptionId, str } } + internal RequestUriBuilder CreateUpdateAuthSettingsV2SlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, SiteAuthSettingsV2 siteAuthSettingsV2) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/config/authsettingsV2", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateAuthSettingsV2SlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, SiteAuthSettingsV2 siteAuthSettingsV2) { var message = _pipeline.CreateMessage(); @@ -16066,6 +19159,23 @@ public Response UpdateAuthSettingsV2Slot(string subscription } } + internal RequestUriBuilder CreateGetAuthSettingsV2SlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/config/authsettingsV2/list", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetAuthSettingsV2SlotRequest(string subscriptionId, string resourceGroupName, string name, string slot) { var message = _pipeline.CreateMessage(); @@ -16151,6 +19261,23 @@ public Response GetAuthSettingsV2Slot(string subscriptionId, } } + internal RequestUriBuilder CreateUpdateAzureStorageAccountsSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, AzureStoragePropertyDictionary azureStorageAccounts) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/config/azurestorageaccounts", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateAzureStorageAccountsSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, AzureStoragePropertyDictionary azureStorageAccounts) { var message = _pipeline.CreateMessage(); @@ -16244,6 +19371,23 @@ public Response UpdateAzureStorageAccountsSlot(s } } + internal RequestUriBuilder CreateListAzureStorageAccountsSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/config/azurestorageaccounts/list", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListAzureStorageAccountsSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot) { var message = _pipeline.CreateMessage(); @@ -16329,6 +19473,23 @@ public Response ListAzureStorageAccountsSlot(str } } + internal RequestUriBuilder CreateUpdateBackupConfigurationSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, WebAppBackupInfo info) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/config/backup", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateBackupConfigurationSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, WebAppBackupInfo info) { var message = _pipeline.CreateMessage(); @@ -16422,6 +19583,23 @@ public Response UpdateBackupConfigurationSlot(string subscript } } + internal RequestUriBuilder CreateDeleteBackupConfigurationSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/config/backup", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteBackupConfigurationSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot) { var message = _pipeline.CreateMessage(); @@ -16497,6 +19675,23 @@ public Response DeleteBackupConfigurationSlot(string subscriptionId, string reso } } + internal RequestUriBuilder CreateGetBackupConfigurationSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/config/backup/list", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetBackupConfigurationSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot) { var message = _pipeline.CreateMessage(); @@ -16582,6 +19777,23 @@ public Response GetBackupConfigurationSlot(string subscription } } + internal RequestUriBuilder CreateGetAppSettingsKeyVaultReferencesSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/config/configreferences/appsettings", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetAppSettingsKeyVaultReferencesSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot) { var message = _pipeline.CreateMessage(); @@ -16667,6 +19879,24 @@ public Response GetAppSettingsKeyVaultRefere } } + internal RequestUriBuilder CreateGetAppSettingKeyVaultReferenceSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, string appSettingKey) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/config/configreferences/appsettings/", false); + uri.AppendPath(appSettingKey, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetAppSettingKeyVaultReferenceSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, string appSettingKey) { var message = _pipeline.CreateMessage(); @@ -16761,6 +19991,23 @@ public Response GetAppSettingKeyVaultReferenceSlot(str } } + internal RequestUriBuilder CreateGetSiteConnectionStringKeyVaultReferencesSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/config/configreferences/connectionstrings", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetSiteConnectionStringKeyVaultReferencesSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot) { var message = _pipeline.CreateMessage(); @@ -16846,6 +20093,24 @@ public Response GetSiteConnectionStringKeyVa } } + internal RequestUriBuilder CreateGetSiteConnectionStringKeyVaultReferenceSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, string connectionStringKey) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/config/configreferences/connectionstrings/", false); + uri.AppendPath(connectionStringKey, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetSiteConnectionStringKeyVaultReferenceSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, string connectionStringKey) { var message = _pipeline.CreateMessage(); @@ -16940,6 +20205,23 @@ public Response GetSiteConnectionStringKeyVaultReferen } } + internal RequestUriBuilder CreateUpdateConnectionStringsSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, ConnectionStringDictionary connectionStrings) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/config/connectionstrings", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateConnectionStringsSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, ConnectionStringDictionary connectionStrings) { var message = _pipeline.CreateMessage(); @@ -17033,6 +20315,23 @@ public Response UpdateConnectionStringsSlot(string s } } + internal RequestUriBuilder CreateListConnectionStringsSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/config/connectionstrings/list", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListConnectionStringsSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot) { var message = _pipeline.CreateMessage(); @@ -17118,6 +20417,23 @@ public Response ListConnectionStringsSlot(string sub } } + internal RequestUriBuilder CreateGetDiagnosticLogsConfigurationSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/config/logs", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetDiagnosticLogsConfigurationSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot) { var message = _pipeline.CreateMessage(); @@ -17207,6 +20523,23 @@ public Response GetDiagnosticLogsConfigurationSlot(string su } } + internal RequestUriBuilder CreateUpdateDiagnosticLogsConfigSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, SiteLogsConfigData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/config/logs", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateDiagnosticLogsConfigSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, SiteLogsConfigData data) { var message = _pipeline.CreateMessage(); @@ -17300,6 +20633,23 @@ public Response UpdateDiagnosticLogsConfigSlot(string subscr } } + internal RequestUriBuilder CreateUpdateMetadataSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, AppServiceConfigurationDictionary metadata) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/config/metadata", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateMetadataSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, AppServiceConfigurationDictionary metadata) { var message = _pipeline.CreateMessage(); @@ -17393,6 +20743,23 @@ public Response UpdateMetadataSlot(string sub } } + internal RequestUriBuilder CreateListMetadataSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/config/metadata/list", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListMetadataSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot) { var message = _pipeline.CreateMessage(); @@ -17478,6 +20845,23 @@ public Response ListMetadataSlot(string subsc } } + internal RequestUriBuilder CreateListPublishingCredentialsSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/config/publishingcredentials/list", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListPublishingCredentialsSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot) { var message = _pipeline.CreateMessage(); @@ -17553,6 +20937,23 @@ public Response ListPublishingCredentialsSlot(string subscriptionId, string reso } } + internal RequestUriBuilder CreateUpdateSitePushSettingsSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, WebAppPushSettings pushSettings) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/config/pushsettings", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateSitePushSettingsSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, WebAppPushSettings pushSettings) { var message = _pipeline.CreateMessage(); @@ -17646,6 +21047,23 @@ public Response UpdateSitePushSettingsSlot(string subscripti } } + internal RequestUriBuilder CreateListSitePushSettingsSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/config/pushsettings/list", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListSitePushSettingsSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot) { var message = _pipeline.CreateMessage(); @@ -17731,6 +21149,23 @@ public Response ListSitePushSettingsSlot(string subscription } } + internal RequestUriBuilder CreateGetConfigurationSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/config/web", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetConfigurationSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot) { var message = _pipeline.CreateMessage(); @@ -17820,6 +21255,23 @@ public Response GetConfigurationSlot(string subscriptionId, stri } } + internal RequestUriBuilder CreateCreateOrUpdateConfigurationSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, SiteConfigData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/config/web", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateConfigurationSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, SiteConfigData data) { var message = _pipeline.CreateMessage(); @@ -17913,6 +21365,23 @@ public Response CreateOrUpdateConfigurationSlot(string subscript } } + internal RequestUriBuilder CreateUpdateConfigurationSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, SiteConfigData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/config/web", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateConfigurationSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, SiteConfigData data) { var message = _pipeline.CreateMessage(); @@ -18006,6 +21475,23 @@ public Response UpdateConfigurationSlot(string subscriptionId, s } } + internal RequestUriBuilder CreateListConfigurationSnapshotInfoSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/config/web/snapshots", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListConfigurationSnapshotInfoSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot) { var message = _pipeline.CreateMessage(); @@ -18091,6 +21577,24 @@ public Response ListConfigurationSnapsh } } + internal RequestUriBuilder CreateGetConfigurationSnapshotSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, string snapshotId) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/config/web/snapshots/", false); + uri.AppendPath(snapshotId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetConfigurationSnapshotSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, string snapshotId) { var message = _pipeline.CreateMessage(); @@ -18185,6 +21689,25 @@ public Response GetConfigurationSnapshotSlot(string subscription } } + internal RequestUriBuilder CreateRecoverSiteConfigurationSnapshotSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, string snapshotId) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/config/web/snapshots/", false); + uri.AppendPath(snapshotId, true); + uri.AppendPath("/recover", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRecoverSiteConfigurationSnapshotSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, string snapshotId) { var message = _pipeline.CreateMessage(); @@ -18266,6 +21789,23 @@ public Response RecoverSiteConfigurationSnapshotSlot(string subscriptionId, stri } } + internal RequestUriBuilder CreateGetWebSiteContainerLogsSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/containerlogs", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetWebSiteContainerLogsSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot) { var message = _pipeline.CreateMessage(); @@ -18351,6 +21891,23 @@ public Response GetWebSiteContainerLogsSlot(string subscriptionId, strin } } + internal RequestUriBuilder CreateGetContainerLogsZipSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/containerlogs/zip/download", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetContainerLogsZipSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot) { var message = _pipeline.CreateMessage(); @@ -18436,6 +21993,23 @@ public Response GetContainerLogsZipSlot(string subscriptionId, string re } } + internal RequestUriBuilder CreateListContinuousWebJobsSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/continuouswebjobs", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListContinuousWebJobsSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot) { var message = _pipeline.CreateMessage(); @@ -18521,6 +22095,24 @@ public Response ListContinuousWebJobsSlot(string sub } } + internal RequestUriBuilder CreateGetContinuousWebJobSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, string webJobName) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/continuouswebjobs/", false); + uri.AppendPath(webJobName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetContinuousWebJobSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, string webJobName) { var message = _pipeline.CreateMessage(); @@ -18615,6 +22207,24 @@ public Response GetContinuousWebJobSlot(string subscriptio } } + internal RequestUriBuilder CreateDeleteContinuousWebJobSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, string webJobName) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/continuouswebjobs/", false); + uri.AppendPath(webJobName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteContinuousWebJobSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, string webJobName) { var message = _pipeline.CreateMessage(); @@ -18697,6 +22307,25 @@ public Response DeleteContinuousWebJobSlot(string subscriptionId, string resourc } } + internal RequestUriBuilder CreateStartContinuousWebJobSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, string webJobName) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/continuouswebjobs/", false); + uri.AppendPath(webJobName, true); + uri.AppendPath("/start", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStartContinuousWebJobSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, string webJobName) { var message = _pipeline.CreateMessage(); @@ -18778,6 +22407,25 @@ public Response StartContinuousWebJobSlot(string subscriptionId, string resource } } + internal RequestUriBuilder CreateStopContinuousWebJobSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, string webJobName) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/continuouswebjobs/", false); + uri.AppendPath(webJobName, true); + uri.AppendPath("/stop", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStopContinuousWebJobSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, string webJobName) { var message = _pipeline.CreateMessage(); @@ -18859,6 +22507,23 @@ public Response StopContinuousWebJobSlot(string subscriptionId, string resourceG } } + internal RequestUriBuilder CreateListDeploymentsSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/deployments", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListDeploymentsSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot) { var message = _pipeline.CreateMessage(); @@ -18944,6 +22609,24 @@ public Response ListDeploymentsSlot(string subscript } } + internal RequestUriBuilder CreateGetDeploymentSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, string id) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/deployments/", false); + uri.AppendPath(id, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetDeploymentSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, string id) { var message = _pipeline.CreateMessage(); @@ -19038,6 +22721,24 @@ public Response GetDeploymentSlot(string subscriptionId, s } } + internal RequestUriBuilder CreateCreateDeploymentSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, string id, WebAppDeploymentData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/deployments/", false); + uri.AppendPath(id, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateDeploymentSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, string id, WebAppDeploymentData data) { var message = _pipeline.CreateMessage(); @@ -19136,6 +22837,24 @@ public Response CreateDeploymentSlot(string subscriptionId } } + internal RequestUriBuilder CreateDeleteDeploymentSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, string id) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/deployments/", false); + uri.AppendPath(id, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteDeploymentSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, string id) { var message = _pipeline.CreateMessage(); @@ -19218,6 +22937,25 @@ public Response DeleteDeploymentSlot(string subscriptionId, string resourceGroup } } + internal RequestUriBuilder CreateListDeploymentLogSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, string id) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/deployments/", false); + uri.AppendPath(id, true); + uri.AppendPath("/log", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListDeploymentLogSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, string id) { var message = _pipeline.CreateMessage(); @@ -19309,6 +23047,23 @@ public Response ListDeploymentLogSlot(string subscriptionI } } + internal RequestUriBuilder CreateDiscoverBackupSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, RestoreRequestInfo info) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/discoverbackup", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDiscoverBackupSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, RestoreRequestInfo info) { var message = _pipeline.CreateMessage(); @@ -19402,6 +23157,23 @@ public Response DiscoverBackupSlot(string subscriptionId, st } } + internal RequestUriBuilder CreateListDomainOwnershipIdentifiersSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/domainOwnershipIdentifiers", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListDomainOwnershipIdentifiersSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot) { var message = _pipeline.CreateMessage(); @@ -19487,6 +23259,24 @@ public Response ListDomainOwnershipIdentifiersSl } } + internal RequestUriBuilder CreateGetDomainOwnershipIdentifierSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, string domainOwnershipIdentifierName) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/domainOwnershipIdentifiers/", false); + uri.AppendPath(domainOwnershipIdentifierName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetDomainOwnershipIdentifierSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, string domainOwnershipIdentifierName) { var message = _pipeline.CreateMessage(); @@ -19581,6 +23371,24 @@ public Response GetDomainOwnershipIdentifierSlot(strin } } + internal RequestUriBuilder CreateCreateOrUpdateDomainOwnershipIdentifierSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, string domainOwnershipIdentifierName, AppServiceIdentifierData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/domainOwnershipIdentifiers/", false); + uri.AppendPath(domainOwnershipIdentifierName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateDomainOwnershipIdentifierSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, string domainOwnershipIdentifierName, AppServiceIdentifierData data) { var message = _pipeline.CreateMessage(); @@ -19679,6 +23487,24 @@ public Response CreateOrUpdateDomainOwnershipIdentifie } } + internal RequestUriBuilder CreateDeleteDomainOwnershipIdentifierSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, string domainOwnershipIdentifierName) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/domainOwnershipIdentifiers/", false); + uri.AppendPath(domainOwnershipIdentifierName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteDomainOwnershipIdentifierSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, string domainOwnershipIdentifierName) { var message = _pipeline.CreateMessage(); @@ -19761,6 +23587,24 @@ public Response DeleteDomainOwnershipIdentifierSlot(string subscriptionId, strin } } + internal RequestUriBuilder CreateUpdateDomainOwnershipIdentifierSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, string domainOwnershipIdentifierName, AppServiceIdentifierData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/domainOwnershipIdentifiers/", false); + uri.AppendPath(domainOwnershipIdentifierName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateDomainOwnershipIdentifierSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, string domainOwnershipIdentifierName, AppServiceIdentifierData data) { var message = _pipeline.CreateMessage(); @@ -19859,6 +23703,23 @@ public Response UpdateDomainOwnershipIdentifierSlot(st } } + internal RequestUriBuilder CreateGetMSDeployStatusSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/extensions/MSDeploy", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetMSDeployStatusSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot) { var message = _pipeline.CreateMessage(); @@ -19948,6 +23809,23 @@ public Response GetMSDeployStatusSlot(string subscriptionId, } } + internal RequestUriBuilder CreateCreateMSDeployOperationSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, WebAppMSDeploy msDeploy) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/extensions/MSDeploy", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateMSDeployOperationSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, WebAppMSDeploy msDeploy) { var message = _pipeline.CreateMessage(); @@ -20031,6 +23909,23 @@ public Response CreateMSDeployOperationSlot(string subscriptionId, string resour } } + internal RequestUriBuilder CreateGetMSDeployLogSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/extensions/MSDeploy/log", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetMSDeployLogSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot) { var message = _pipeline.CreateMessage(); @@ -20116,6 +24011,23 @@ public Response GetMSDeployLogSlot(string subscriptionId, str } } + internal RequestUriBuilder CreateListInstanceFunctionsSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/functions", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListInstanceFunctionsSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot) { var message = _pipeline.CreateMessage(); @@ -20201,6 +24113,23 @@ public Response ListInstanceFunctionsSlot(string sub } } + internal RequestUriBuilder CreateGetFunctionsAdminTokenSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/functions/admin/token", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetFunctionsAdminTokenSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot) { var message = _pipeline.CreateMessage(); @@ -20286,6 +24215,24 @@ public Response GetFunctionsAdminTokenSlot(string subscriptionId, string } } + internal RequestUriBuilder CreateGetInstanceFunctionSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, string functionName) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/functions/", false); + uri.AppendPath(functionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetInstanceFunctionSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, string functionName) { var message = _pipeline.CreateMessage(); @@ -20380,6 +24327,24 @@ public Response GetInstanceFunctionSlot(string subscriptio } } + internal RequestUriBuilder CreateCreateInstanceFunctionSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, string functionName, FunctionEnvelopeData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/functions/", false); + uri.AppendPath(functionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateInstanceFunctionSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, string functionName, FunctionEnvelopeData data) { var message = _pipeline.CreateMessage(); @@ -20468,6 +24433,24 @@ public Response CreateInstanceFunctionSlot(string subscriptionId, string resourc } } + internal RequestUriBuilder CreateDeleteInstanceFunctionSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, string functionName) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/functions/", false); + uri.AppendPath(functionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteInstanceFunctionSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, string functionName) { var message = _pipeline.CreateMessage(); @@ -20548,6 +24531,26 @@ public Response DeleteInstanceFunctionSlot(string subscriptionId, string resourc } } + internal RequestUriBuilder CreateCreateOrUpdateFunctionSecretSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, string functionName, string keyName, WebAppKeyInfo info) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/functions/", false); + uri.AppendPath(functionName, true); + uri.AppendPath("/keys/", false); + uri.AppendPath(keyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateFunctionSecretSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, string functionName, string keyName, WebAppKeyInfo info) { var message = _pipeline.CreateMessage(); @@ -20654,6 +24657,26 @@ public Response CreateOrUpdateFunctionSecretSlot(string subscript } } + internal RequestUriBuilder CreateDeleteFunctionSecretSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, string functionName, string keyName) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/functions/", false); + uri.AppendPath(functionName, true); + uri.AppendPath("/keys/", false); + uri.AppendPath(keyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteFunctionSecretSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, string functionName, string keyName) { var message = _pipeline.CreateMessage(); @@ -20740,6 +24763,25 @@ public Response DeleteFunctionSecretSlot(string subscriptionId, string resourceG } } + internal RequestUriBuilder CreateListFunctionKeysSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, string functionName) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/functions/", false); + uri.AppendPath(functionName, true); + uri.AppendPath("/listkeys", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListFunctionKeysSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, string functionName) { var message = _pipeline.CreateMessage(); @@ -20831,6 +24873,25 @@ public Response ListFunctionKeysSlot(string s } } + internal RequestUriBuilder CreateListFunctionSecretsSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, string functionName) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/functions/", false); + uri.AppendPath(functionName, true); + uri.AppendPath("/listsecrets", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListFunctionSecretsSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, string functionName) { var message = _pipeline.CreateMessage(); @@ -20922,6 +24983,23 @@ public Response ListFunctionSecretsSlot(string subscriptionId, } } + internal RequestUriBuilder CreateListHostKeysSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/host/default/listkeys", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListHostKeysSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot) { var message = _pipeline.CreateMessage(); @@ -21007,6 +25085,23 @@ public Response ListHostKeysSlot(string subscriptionId, str } } + internal RequestUriBuilder CreateListSyncStatusSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/host/default/listsyncstatus", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListSyncStatusSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot) { var message = _pipeline.CreateMessage(); @@ -21082,6 +25177,23 @@ public Response ListSyncStatusSlot(string subscriptionId, string resourceGroupNa } } + internal RequestUriBuilder CreateSyncFunctionsSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/host/default/sync", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateSyncFunctionsSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot) { var message = _pipeline.CreateMessage(); @@ -21157,6 +25269,26 @@ public Response SyncFunctionsSlot(string subscriptionId, string resourceGroupNam } } + internal RequestUriBuilder CreateCreateOrUpdateHostSecretSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, string keyType, string keyName, WebAppKeyInfo info) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/host/default/", false); + uri.AppendPath(keyType, true); + uri.AppendPath("/", false); + uri.AppendPath(keyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateHostSecretSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, string keyType, string keyName, WebAppKeyInfo info) { var message = _pipeline.CreateMessage(); @@ -21263,6 +25395,26 @@ public Response CreateOrUpdateHostSecretSlot(string subscriptionI } } + internal RequestUriBuilder CreateDeleteHostSecretSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, string keyType, string keyName) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/host/default/", false); + uri.AppendPath(keyType, true); + uri.AppendPath("/", false); + uri.AppendPath(keyName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteHostSecretSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, string keyType, string keyName) { var message = _pipeline.CreateMessage(); @@ -21349,6 +25501,23 @@ public Response DeleteHostSecretSlot(string subscriptionId, string resourceGroup } } + internal RequestUriBuilder CreateListHostNameBindingsSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/hostNameBindings", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListHostNameBindingsSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot) { var message = _pipeline.CreateMessage(); @@ -21434,6 +25603,24 @@ public Response ListHostNameBindingsSlot(string subsc } } + internal RequestUriBuilder CreateGetHostNameBindingSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, string hostName) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/hostNameBindings/", false); + uri.AppendPath(hostName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetHostNameBindingSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, string hostName) { var message = _pipeline.CreateMessage(); @@ -21528,6 +25715,24 @@ public Response GetHostNameBindingSlot(string subscriptionI } } + internal RequestUriBuilder CreateCreateOrUpdateHostNameBindingSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, string hostName, HostNameBindingData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/hostNameBindings/", false); + uri.AppendPath(hostName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateHostNameBindingSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, string hostName, HostNameBindingData data) { var message = _pipeline.CreateMessage(); @@ -21626,6 +25831,24 @@ public Response CreateOrUpdateHostNameBindingSlot(string su } } + internal RequestUriBuilder CreateDeleteHostNameBindingSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, string hostName) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/hostNameBindings/", false); + uri.AppendPath(hostName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteHostNameBindingSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, string hostName) { var message = _pipeline.CreateMessage(); @@ -21708,6 +25931,26 @@ public Response DeleteHostNameBindingSlot(string subscriptionId, string resource } } + internal RequestUriBuilder CreateGetHybridConnectionSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, string namespaceName, string relayName) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/hybridConnectionNamespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/relays/", false); + uri.AppendPath(relayName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetHybridConnectionSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, string namespaceName, string relayName) { var message = _pipeline.CreateMessage(); @@ -21808,6 +26051,26 @@ public Response GetHybridConnectionSlot(string subscriptio } } + internal RequestUriBuilder CreateCreateOrUpdateHybridConnectionSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, string namespaceName, string relayName, HybridConnectionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/hybridConnectionNamespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/relays/", false); + uri.AppendPath(relayName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateHybridConnectionSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, string namespaceName, string relayName, HybridConnectionData data) { var message = _pipeline.CreateMessage(); @@ -21912,6 +26175,26 @@ public Response CreateOrUpdateHybridConnectionSlot(string } } + internal RequestUriBuilder CreateDeleteHybridConnectionSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, string namespaceName, string relayName) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/hybridConnectionNamespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/relays/", false); + uri.AppendPath(relayName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteHybridConnectionSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, string namespaceName, string relayName) { var message = _pipeline.CreateMessage(); @@ -21998,6 +26281,26 @@ public Response DeleteHybridConnectionSlot(string subscriptionId, string resourc } } + internal RequestUriBuilder CreateUpdateHybridConnectionSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, string namespaceName, string relayName, HybridConnectionData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/hybridConnectionNamespaces/", false); + uri.AppendPath(namespaceName, true); + uri.AppendPath("/relays/", false); + uri.AppendPath(relayName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateHybridConnectionSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, string namespaceName, string relayName, HybridConnectionData data) { var message = _pipeline.CreateMessage(); @@ -22102,6 +26405,23 @@ public Response UpdateHybridConnectionSlot(string subscrip } } + internal RequestUriBuilder CreateListHybridConnectionsSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/hybridConnectionRelays", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListHybridConnectionsSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot) { var message = _pipeline.CreateMessage(); @@ -22187,6 +26507,23 @@ public Response ListHybridConnectionsSlot(string subscript } } + internal RequestUriBuilder CreateListRelayServiceConnectionsSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/hybridconnection", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRelayServiceConnectionsSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot) { var message = _pipeline.CreateMessage(); @@ -22272,6 +26609,24 @@ public Response ListRelayServiceConnectionsSlo } } + internal RequestUriBuilder CreateGetRelayServiceConnectionSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, string entityName) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/hybridconnection/", false); + uri.AppendPath(entityName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRelayServiceConnectionSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, string entityName) { var message = _pipeline.CreateMessage(); @@ -22366,6 +26721,24 @@ public Response GetRelayServiceConnectionSlot( } } + internal RequestUriBuilder CreateCreateOrUpdateRelayServiceConnectionSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, string entityName, RelayServiceConnectionEntityData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/hybridconnection/", false); + uri.AppendPath(entityName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateRelayServiceConnectionSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, string entityName, RelayServiceConnectionEntityData data) { var message = _pipeline.CreateMessage(); @@ -22464,6 +26837,24 @@ public Response CreateOrUpdateRelayServiceConn } } + internal RequestUriBuilder CreateDeleteRelayServiceConnectionSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, string entityName) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/hybridconnection/", false); + uri.AppendPath(entityName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRelayServiceConnectionSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, string entityName) { var message = _pipeline.CreateMessage(); @@ -22544,6 +26935,24 @@ public Response DeleteRelayServiceConnectionSlot(string subscriptionId, string r } } + internal RequestUriBuilder CreateUpdateRelayServiceConnectionSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, string entityName, RelayServiceConnectionEntityData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/hybridconnection/", false); + uri.AppendPath(entityName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRelayServiceConnectionSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, string entityName, RelayServiceConnectionEntityData data) { var message = _pipeline.CreateMessage(); @@ -22642,6 +27051,23 @@ public Response UpdateRelayServiceConnectionSl } } + internal RequestUriBuilder CreateListInstanceIdentifiersSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/instances", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListInstanceIdentifiersSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot) { var message = _pipeline.CreateMessage(); @@ -22727,6 +27153,24 @@ public Response ListInstanceIdentifiersSlot(stri } } + internal RequestUriBuilder CreateGetInstanceInfoSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, string instanceId) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/instances/", false); + uri.AppendPath(instanceId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetInstanceInfoSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, string instanceId) { var message = _pipeline.CreateMessage(); @@ -22821,6 +27265,25 @@ public Response GetInstanceInfoSlot(string subscripti } } + internal RequestUriBuilder CreateGetInstanceMsDeployStatusSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, string instanceId) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/instances/", false); + uri.AppendPath(instanceId, true); + uri.AppendPath("/extensions/MSDeploy", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetInstanceMsDeployStatusSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, string instanceId) { var message = _pipeline.CreateMessage(); @@ -22916,6 +27379,25 @@ public Response GetInstanceMsDeployStatusSlot(string subscri } } + internal RequestUriBuilder CreateCreateInstanceMSDeployOperationSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, string instanceId, WebAppMSDeploy msDeploy) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/instances/", false); + uri.AppendPath(instanceId, true); + uri.AppendPath("/extensions/MSDeploy", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateInstanceMSDeployOperationSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, string instanceId, WebAppMSDeploy msDeploy) { var message = _pipeline.CreateMessage(); @@ -23005,6 +27487,25 @@ public Response CreateInstanceMSDeployOperationSlot(string subscriptionId, strin } } + internal RequestUriBuilder CreateGetInstanceMSDeployLogSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, string instanceId) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/instances/", false); + uri.AppendPath(instanceId, true); + uri.AppendPath("/extensions/MSDeploy/log", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetInstanceMSDeployLogSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, string instanceId) { var message = _pipeline.CreateMessage(); @@ -23096,6 +27597,25 @@ public Response GetInstanceMSDeployLogSlot(string subscriptio } } + internal RequestUriBuilder CreateListInstanceProcessesSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, string instanceId) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/instances/", false); + uri.AppendPath(instanceId, true); + uri.AppendPath("/processes", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListInstanceProcessesSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, string instanceId) { var message = _pipeline.CreateMessage(); @@ -23187,6 +27707,26 @@ public Response ListInstanceProcessesSlot(string subscrip } } + internal RequestUriBuilder CreateGetInstanceProcessSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, string instanceId, string processId) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/instances/", false); + uri.AppendPath(instanceId, true); + uri.AppendPath("/processes/", false); + uri.AppendPath(processId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetInstanceProcessSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, string instanceId, string processId) { var message = _pipeline.CreateMessage(); @@ -23287,6 +27827,26 @@ public Response GetInstanceProcessSlot(string subscriptionId, s } } + internal RequestUriBuilder CreateDeleteInstanceProcessSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, string instanceId, string processId) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/instances/", false); + uri.AppendPath(instanceId, true); + uri.AppendPath("/processes/", false); + uri.AppendPath(processId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteInstanceProcessSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, string instanceId, string processId) { var message = _pipeline.CreateMessage(); @@ -23373,6 +27933,27 @@ public Response DeleteInstanceProcessSlot(string subscriptionId, string resource } } + internal RequestUriBuilder CreateGetInstanceProcessDumpSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, string instanceId, string processId) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/instances/", false); + uri.AppendPath(instanceId, true); + uri.AppendPath("/processes/", false); + uri.AppendPath(processId, true); + uri.AppendPath("/dump", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetInstanceProcessDumpSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, string instanceId, string processId) { var message = _pipeline.CreateMessage(); @@ -23466,6 +28047,27 @@ public Response GetInstanceProcessDumpSlot(string subscriptionId, string } } + internal RequestUriBuilder CreateListInstanceProcessModulesSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, string instanceId, string processId) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/instances/", false); + uri.AppendPath(instanceId, true); + uri.AppendPath("/processes/", false); + uri.AppendPath(processId, true); + uri.AppendPath("/modules", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListInstanceProcessModulesSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, string instanceId, string processId) { var message = _pipeline.CreateMessage(); @@ -23563,6 +28165,28 @@ public Response ListInstanceProcessModulesSlot(stri } } + internal RequestUriBuilder CreateGetInstanceProcessModuleSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, string instanceId, string processId, string baseAddress) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/instances/", false); + uri.AppendPath(instanceId, true); + uri.AppendPath("/processes/", false); + uri.AppendPath(processId, true); + uri.AppendPath("/modules/", false); + uri.AppendPath(baseAddress, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetInstanceProcessModuleSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, string instanceId, string processId, string baseAddress) { var message = _pipeline.CreateMessage(); @@ -23669,6 +28293,27 @@ public Response GetInstanceProcessModuleSlot(string subsc } } + internal RequestUriBuilder CreateListInstanceProcessThreadsSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, string instanceId, string processId) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/instances/", false); + uri.AppendPath(instanceId, true); + uri.AppendPath("/processes/", false); + uri.AppendPath(processId, true); + uri.AppendPath("/threads", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListInstanceProcessThreadsSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, string instanceId, string processId) { var message = _pipeline.CreateMessage(); @@ -23766,6 +28411,23 @@ public Response ListInstanceProcessThreadsSlot(stri } } + internal RequestUriBuilder CreateIsCloneableSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/iscloneable", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateIsCloneableSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot) { var message = _pipeline.CreateMessage(); @@ -23851,6 +28513,23 @@ public Response IsCloneableSlot(string subscriptionId, string } } + internal RequestUriBuilder CreateListSiteBackupsSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/listbackups", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListSiteBackupsSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot) { var message = _pipeline.CreateMessage(); @@ -23936,6 +28615,23 @@ public Response ListSiteBackupsSlot(string subscript } } + internal RequestUriBuilder CreateListSyncFunctionTriggersSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/listsyncfunctiontriggerstatus", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListSyncFunctionTriggersSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot) { var message = _pipeline.CreateMessage(); @@ -24021,6 +28717,23 @@ public Response ListSyncFunctionTriggersSlot(string subscriptio } } + internal RequestUriBuilder CreateGetMigrateMySqlStatusSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/migratemysql/status", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetMigrateMySqlStatusSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot) { var message = _pipeline.CreateMessage(); @@ -24110,6 +28823,23 @@ public Response GetMigrateMySqlStatusSlot(string subscri } } + internal RequestUriBuilder CreateGetSwiftVirtualNetworkConnectionSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/networkConfig/virtualNetwork", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetSwiftVirtualNetworkConnectionSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot) { var message = _pipeline.CreateMessage(); @@ -24199,6 +28929,23 @@ public Response GetSwiftVirtualNetworkConnectionSlot(st } } + internal RequestUriBuilder CreateCreateOrUpdateSwiftVirtualNetworkConnectionWithCheckSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, SwiftVirtualNetworkData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/networkConfig/virtualNetwork", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateSwiftVirtualNetworkConnectionWithCheckSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, SwiftVirtualNetworkData data) { var message = _pipeline.CreateMessage(); @@ -24298,6 +29045,23 @@ public Response CreateOrUpdateSwiftVirtualNetworkConnec } } + internal RequestUriBuilder CreateDeleteSwiftVirtualNetworkSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/networkConfig/virtualNetwork", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteSwiftVirtualNetworkSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot) { var message = _pipeline.CreateMessage(); @@ -24373,6 +29137,23 @@ public Response DeleteSwiftVirtualNetworkSlot(string subscriptionId, string reso } } + internal RequestUriBuilder CreateUpdateSwiftVirtualNetworkConnectionWithCheckSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, SwiftVirtualNetworkData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/networkConfig/virtualNetwork", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateSwiftVirtualNetworkConnectionWithCheckSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, SwiftVirtualNetworkData data) { var message = _pipeline.CreateMessage(); @@ -24472,6 +29253,24 @@ public Response UpdateSwiftVirtualNetworkConnectionWith } } + internal RequestUriBuilder CreateListNetworkFeaturesSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, string view) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/networkFeatures/", false); + uri.AppendPath(view, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListNetworkFeaturesSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, string view) { var message = _pipeline.CreateMessage(); @@ -24566,6 +29365,24 @@ public Response ListNetworkFeaturesSlot(string subscriptionI } } + internal RequestUriBuilder CreateGetNetworkTraceOperationSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, string operationId) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/networkTrace/operationresults/", false); + uri.AppendPath(operationId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetNetworkTraceOperationSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, string operationId) { var message = _pipeline.CreateMessage(); @@ -24668,6 +29485,35 @@ public Response> GetNetworkTraceOperationSlot( } } + internal RequestUriBuilder CreateStartWebSiteNetworkTraceSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, int? durationInSeconds, int? maxFrameLength, string sasUrl) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/networkTrace/start", false); + if (durationInSeconds != null) + { + uri.AppendQuery("durationInSeconds", durationInSeconds.Value, true); + } + if (maxFrameLength != null) + { + uri.AppendQuery("maxFrameLength", maxFrameLength.Value, true); + } + if (sasUrl != null) + { + uri.AppendQuery("sasUrl", sasUrl, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStartWebSiteNetworkTraceSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, int? durationInSeconds, int? maxFrameLength, string sasUrl) { var message = _pipeline.CreateMessage(); @@ -24771,6 +29617,35 @@ public Response StartWebSiteNetworkTraceSlot(string subscriptionId, stri } } + internal RequestUriBuilder CreateStartWebSiteNetworkTraceOperationSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, int? durationInSeconds, int? maxFrameLength, string sasUrl) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/networkTrace/startOperation", false); + if (durationInSeconds != null) + { + uri.AppendQuery("durationInSeconds", durationInSeconds.Value, true); + } + if (maxFrameLength != null) + { + uri.AppendQuery("maxFrameLength", maxFrameLength.Value, true); + } + if (sasUrl != null) + { + uri.AppendQuery("sasUrl", sasUrl, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStartWebSiteNetworkTraceOperationSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, int? durationInSeconds, int? maxFrameLength, string sasUrl) { var message = _pipeline.CreateMessage(); @@ -24866,6 +29741,23 @@ public Response StartWebSiteNetworkTraceOperationSlot(string subscriptionId, str } } + internal RequestUriBuilder CreateStopWebSiteNetworkTraceSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/networkTrace/stop", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStopWebSiteNetworkTraceSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot) { var message = _pipeline.CreateMessage(); @@ -24943,6 +29835,24 @@ public Response StopWebSiteNetworkTraceSlot(string subscriptionId, string resour } } + internal RequestUriBuilder CreateGetNetworkTracesSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, string operationId) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/networkTrace/", false); + uri.AppendPath(operationId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetNetworkTracesSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, string operationId) { var message = _pipeline.CreateMessage(); @@ -25043,6 +29953,24 @@ public Response> GetNetworkTracesSlot(string s } } + internal RequestUriBuilder CreateGetNetworkTraceOperationSlotV2RequestUri(string subscriptionId, string resourceGroupName, string name, string slot, string operationId) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/networkTraces/current/operationresults/", false); + uri.AppendPath(operationId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetNetworkTraceOperationSlotV2Request(string subscriptionId, string resourceGroupName, string name, string slot, string operationId) { var message = _pipeline.CreateMessage(); @@ -25145,6 +30073,24 @@ public Response> GetNetworkTraceOperationSlotV } } + internal RequestUriBuilder CreateGetNetworkTracesSlotV2RequestUri(string subscriptionId, string resourceGroupName, string name, string slot, string operationId) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/networkTraces/", false); + uri.AppendPath(operationId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetNetworkTracesSlotV2Request(string subscriptionId, string resourceGroupName, string name, string slot, string operationId) { var message = _pipeline.CreateMessage(); @@ -25245,6 +30191,23 @@ public Response> GetNetworkTracesSlotV2(string } } + internal RequestUriBuilder CreateGenerateNewSitePublishingPasswordSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/newpassword", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGenerateNewSitePublishingPasswordSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot) { var message = _pipeline.CreateMessage(); @@ -25322,6 +30285,27 @@ public Response GenerateNewSitePublishingPasswordSlot(string subscriptionId, str } } + internal RequestUriBuilder CreateListPerfMonCountersSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/perfcounters", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, false); + } + return uri; + } + internal HttpMessage CreateListPerfMonCountersSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, string filter) { var message = _pipeline.CreateMessage(); @@ -25413,6 +30397,23 @@ public Response ListPerfMonCountersSlot(string subscri } } + internal RequestUriBuilder CreateGetSitePhpErrorLogFlagSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/phplogging", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetSitePhpErrorLogFlagSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot) { var message = _pipeline.CreateMessage(); @@ -25498,6 +30499,23 @@ public Response GetSitePhpErrorLogFlagSlot(string subscript } } + internal RequestUriBuilder CreateListPremierAddOnsSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/premieraddons", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListPremierAddOnsSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot) { var message = _pipeline.CreateMessage(); @@ -25583,6 +30601,24 @@ public Response ListPremierAddOnsSlot(string subscriptionId, s } } + internal RequestUriBuilder CreateGetPremierAddOnSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, string premierAddOnName) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/premieraddons/", false); + uri.AppendPath(premierAddOnName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetPremierAddOnSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, string premierAddOnName) { var message = _pipeline.CreateMessage(); @@ -25677,6 +30713,24 @@ public Response GetPremierAddOnSlot(string subscriptionId, str } } + internal RequestUriBuilder CreateAddPremierAddOnSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, string premierAddOnName, PremierAddOnData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/premieraddons/", false); + uri.AppendPath(premierAddOnName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateAddPremierAddOnSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, string premierAddOnName, PremierAddOnData data) { var message = _pipeline.CreateMessage(); @@ -25775,6 +30829,24 @@ public Response AddPremierAddOnSlot(string subscriptionId, str } } + internal RequestUriBuilder CreateDeletePremierAddOnSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, string premierAddOnName) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/premieraddons/", false); + uri.AppendPath(premierAddOnName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeletePremierAddOnSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, string premierAddOnName) { var message = _pipeline.CreateMessage(); @@ -25855,6 +30927,24 @@ public Response DeletePremierAddOnSlot(string subscriptionId, string resourceGro } } + internal RequestUriBuilder CreateUpdatePremierAddOnSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, string premierAddOnName, PremierAddOnPatchResource premierAddOn) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/premieraddons/", false); + uri.AppendPath(premierAddOnName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdatePremierAddOnSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, string premierAddOnName, PremierAddOnPatchResource premierAddOn) { var message = _pipeline.CreateMessage(); @@ -25953,6 +31043,23 @@ public Response UpdatePremierAddOnSlot(string subscriptionId, } } + internal RequestUriBuilder CreateGetPrivateAccessSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/privateAccess/virtualNetworks", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetPrivateAccessSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot) { var message = _pipeline.CreateMessage(); @@ -26042,6 +31149,23 @@ public Response GetPrivateAccessSlot(string subscriptionId, s } } + internal RequestUriBuilder CreatePutPrivateAccessVnetSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, PrivateAccessData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/privateAccess/virtualNetworks", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreatePutPrivateAccessVnetSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, PrivateAccessData data) { var message = _pipeline.CreateMessage(); @@ -26135,6 +31259,23 @@ public Response PutPrivateAccessVnetSlot(string subscriptionI } } + internal RequestUriBuilder CreateGetPrivateEndpointConnectionListSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/privateEndpointConnections", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetPrivateEndpointConnectionListSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot) { var message = _pipeline.CreateMessage(); @@ -26220,6 +31361,24 @@ public Response GetPrivateEndpointCon } } + internal RequestUriBuilder CreateGetPrivateEndpointConnectionSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, string privateEndpointConnectionName) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetPrivateEndpointConnectionSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, string privateEndpointConnectionName) { var message = _pipeline.CreateMessage(); @@ -26314,6 +31473,24 @@ public Response GetPrivateEndpoi } } + internal RequestUriBuilder CreateApproveOrRejectPrivateEndpointConnectionSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, string privateEndpointConnectionName, PrivateLinkConnectionApprovalRequestInfo info) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateApproveOrRejectPrivateEndpointConnectionSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, string privateEndpointConnectionName, PrivateLinkConnectionApprovalRequestInfo info) { var message = _pipeline.CreateMessage(); @@ -26404,6 +31581,24 @@ public Response ApproveOrRejectPrivateEndpointConnectionSlot(string subscription } } + internal RequestUriBuilder CreateDeletePrivateEndpointConnectionSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, string privateEndpointConnectionName) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeletePrivateEndpointConnectionSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, string privateEndpointConnectionName) { var message = _pipeline.CreateMessage(); @@ -26488,6 +31683,23 @@ public Response DeletePrivateEndpointConnectionSlot(string subscriptionId, strin } } + internal RequestUriBuilder CreateGetPrivateLinkResourcesSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/privateLinkResources", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetPrivateLinkResourcesSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot) { var message = _pipeline.CreateMessage(); @@ -26573,6 +31785,23 @@ public Response GetPrivateLinkResourcesSlot(string } } + internal RequestUriBuilder CreateListProcessesSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/processes", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListProcessesSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot) { var message = _pipeline.CreateMessage(); @@ -26658,6 +31887,24 @@ public Response ListProcessesSlot(string subscriptionId, } } + internal RequestUriBuilder CreateGetProcessSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, string processId) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/processes/", false); + uri.AppendPath(processId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetProcessSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, string processId) { var message = _pipeline.CreateMessage(); @@ -26752,6 +31999,24 @@ public Response GetProcessSlot(string subscriptionId, string re } } + internal RequestUriBuilder CreateDeleteProcessSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, string processId) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/processes/", false); + uri.AppendPath(processId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteProcessSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, string processId) { var message = _pipeline.CreateMessage(); @@ -26832,6 +32097,25 @@ public Response DeleteProcessSlot(string subscriptionId, string resourceGroupNam } } + internal RequestUriBuilder CreateGetProcessDumpSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, string processId) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/processes/", false); + uri.AppendPath(processId, true); + uri.AppendPath("/dump", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetProcessDumpSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, string processId) { var message = _pipeline.CreateMessage(); @@ -26919,6 +32203,25 @@ public Response GetProcessDumpSlot(string subscriptionId, string resourc } } + internal RequestUriBuilder CreateListProcessModulesSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, string processId) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/processes/", false); + uri.AppendPath(processId, true); + uri.AppendPath("/modules", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListProcessModulesSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, string processId) { var message = _pipeline.CreateMessage(); @@ -27010,6 +32313,26 @@ public Response ListProcessModulesSlot(string subsc } } + internal RequestUriBuilder CreateGetProcessModuleSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, string processId, string baseAddress) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/processes/", false); + uri.AppendPath(processId, true); + uri.AppendPath("/modules/", false); + uri.AppendPath(baseAddress, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetProcessModuleSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, string processId, string baseAddress) { var message = _pipeline.CreateMessage(); @@ -27110,6 +32433,25 @@ public Response GetProcessModuleSlot(string subscriptionI } } + internal RequestUriBuilder CreateListProcessThreadsSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, string processId) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/processes/", false); + uri.AppendPath(processId, true); + uri.AppendPath("/threads", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListProcessThreadsSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, string processId) { var message = _pipeline.CreateMessage(); @@ -27201,6 +32543,23 @@ public Response ListProcessThreadsSlot(string subsc } } + internal RequestUriBuilder CreateListPublicCertificatesSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/publicCertificates", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListPublicCertificatesSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot) { var message = _pipeline.CreateMessage(); @@ -27286,6 +32645,24 @@ public Response ListPublicCertificatesSlot(string s } } + internal RequestUriBuilder CreateGetPublicCertificateSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, string publicCertificateName) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/publicCertificates/", false); + uri.AppendPath(publicCertificateName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetPublicCertificateSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, string publicCertificateName) { var message = _pipeline.CreateMessage(); @@ -27380,6 +32757,24 @@ public Response GetPublicCertificateSlot(string subscript } } + internal RequestUriBuilder CreateCreateOrUpdatePublicCertificateSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, string publicCertificateName, PublicCertificateData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/publicCertificates/", false); + uri.AppendPath(publicCertificateName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdatePublicCertificateSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, string publicCertificateName, PublicCertificateData data) { var message = _pipeline.CreateMessage(); @@ -27478,6 +32873,24 @@ public Response CreateOrUpdatePublicCertificateSlot(strin } } + internal RequestUriBuilder CreateDeletePublicCertificateSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, string publicCertificateName) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/publicCertificates/", false); + uri.AppendPath(publicCertificateName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeletePublicCertificateSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, string publicCertificateName) { var message = _pipeline.CreateMessage(); @@ -27560,6 +32973,23 @@ public Response DeletePublicCertificateSlot(string subscriptionId, string resour } } + internal RequestUriBuilder CreateListPublishingProfileXmlWithSecretsSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, CsmPublishingProfile publishingProfileOptions) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/publishxml", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListPublishingProfileXmlWithSecretsSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, CsmPublishingProfile publishingProfileOptions) { var message = _pipeline.CreateMessage(); @@ -27649,6 +33079,23 @@ public Response ListPublishingProfileXmlWithSecretsSlot(string subscript } } + internal RequestUriBuilder CreateResetSlotConfigurationSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/resetSlotConfig", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateResetSlotConfigurationSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot) { var message = _pipeline.CreateMessage(); @@ -27724,6 +33171,31 @@ public Response ResetSlotConfigurationSlot(string subscriptionId, string resourc } } + internal RequestUriBuilder CreateRestartSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, bool? softRestart, bool? synchronous) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/restart", false); + if (softRestart != null) + { + uri.AppendQuery("softRestart", softRestart.Value, true); + } + if (synchronous != null) + { + uri.AppendQuery("synchronous", synchronous.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRestartSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, bool? softRestart, bool? synchronous) { var message = _pipeline.CreateMessage(); @@ -27811,6 +33283,23 @@ public Response RestartSlot(string subscriptionId, string resourceGroupName, str } } + internal RequestUriBuilder CreateRestoreFromBackupBlobSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, RestoreRequestInfo info) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/restoreFromBackupBlob", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRestoreFromBackupBlobSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, RestoreRequestInfo info) { var message = _pipeline.CreateMessage(); @@ -27896,6 +33385,23 @@ public Response RestoreFromBackupBlobSlot(string subscriptionId, string resource } } + internal RequestUriBuilder CreateRestoreFromDeletedAppSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, DeletedAppRestoreContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/restoreFromDeletedApp", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRestoreFromDeletedAppSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, DeletedAppRestoreContent content) { var message = _pipeline.CreateMessage(); @@ -27981,6 +33487,23 @@ public Response RestoreFromDeletedAppSlot(string subscriptionId, string resource } } + internal RequestUriBuilder CreateRestoreSnapshotSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, SnapshotRestoreRequest restoreRequest) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/restoreSnapshot", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRestoreSnapshotSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, SnapshotRestoreRequest restoreRequest) { var message = _pipeline.CreateMessage(); @@ -28066,6 +33589,23 @@ public Response RestoreSnapshotSlot(string subscriptionId, string resourceGroupN } } + internal RequestUriBuilder CreateListSiteExtensionsSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/siteextensions", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListSiteExtensionsSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot) { var message = _pipeline.CreateMessage(); @@ -28151,6 +33691,24 @@ public Response ListSiteExtensionsSlot(string subsc } } + internal RequestUriBuilder CreateGetSiteExtensionSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, string siteExtensionId) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/siteextensions/", false); + uri.AppendPath(siteExtensionId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetSiteExtensionSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, string siteExtensionId) { var message = _pipeline.CreateMessage(); @@ -28245,6 +33803,24 @@ public Response GetSiteExtensionSlot(string subscriptionI } } + internal RequestUriBuilder CreateInstallSiteExtensionSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, string siteExtensionId) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/siteextensions/", false); + uri.AppendPath(siteExtensionId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateInstallSiteExtensionSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, string siteExtensionId) { var message = _pipeline.CreateMessage(); @@ -28327,6 +33903,24 @@ public Response InstallSiteExtensionSlot(string subscriptionId, string resourceG } } + internal RequestUriBuilder CreateDeleteSiteExtensionSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, string siteExtensionId) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/siteextensions/", false); + uri.AppendPath(siteExtensionId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteSiteExtensionSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, string siteExtensionId) { var message = _pipeline.CreateMessage(); @@ -28407,6 +34001,23 @@ public Response DeleteSiteExtensionSlot(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateListSlotDifferencesSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, CsmSlotEntity slotSwapEntity) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/slotsdiffs", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListSlotDifferencesSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, CsmSlotEntity slotSwapEntity) { var message = _pipeline.CreateMessage(); @@ -28500,6 +34111,23 @@ public Response ListSlotDifferencesSlot(string subscri } } + internal RequestUriBuilder CreateSwapSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, CsmSlotEntity slotSwapEntity) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/slotsswap", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateSwapSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, CsmSlotEntity slotSwapEntity) { var message = _pipeline.CreateMessage(); @@ -28585,6 +34213,23 @@ public Response SwapSlot(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreateListSnapshotsSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/snapshots", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListSnapshotsSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot) { var message = _pipeline.CreateMessage(); @@ -28670,6 +34315,23 @@ public Response ListSnapshotsSlot(string subscriptionId, } } + internal RequestUriBuilder CreateListSnapshotsFromDRSecondarySlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/snapshotsdr", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListSnapshotsFromDRSecondarySlotRequest(string subscriptionId, string resourceGroupName, string name, string slot) { var message = _pipeline.CreateMessage(); @@ -28755,6 +34417,23 @@ public Response ListSnapshotsFromDRSecondarySlot(string s } } + internal RequestUriBuilder CreateGetSourceControlSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/sourcecontrols/web", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetSourceControlSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot) { var message = _pipeline.CreateMessage(); @@ -28848,6 +34527,23 @@ public Response GetSourceControlSlot(string subscriptionI } } + internal RequestUriBuilder CreateCreateOrUpdateSourceControlSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, SiteSourceControlData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/sourcecontrols/web", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateSourceControlSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, SiteSourceControlData data) { var message = _pipeline.CreateMessage(); @@ -28935,6 +34631,27 @@ public Response CreateOrUpdateSourceControlSlot(string subscriptionId, string re } } + internal RequestUriBuilder CreateDeleteSourceControlSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, string additionalFlags) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/sourcecontrols/web", false); + if (additionalFlags != null) + { + uri.AppendQuery("additionalFlags", additionalFlags, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteSourceControlSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, string additionalFlags) { var message = _pipeline.CreateMessage(); @@ -29018,6 +34735,23 @@ public Response DeleteSourceControlSlot(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateUpdateSourceControlSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, SiteSourceControlData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/sourcecontrols/web", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateSourceControlSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, SiteSourceControlData data) { var message = _pipeline.CreateMessage(); @@ -29115,6 +34849,23 @@ public Response UpdateSourceControlSlot(string subscripti } } + internal RequestUriBuilder CreateStartSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/start", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStartSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot) { var message = _pipeline.CreateMessage(); @@ -29190,6 +34941,35 @@ public Response StartSlot(string subscriptionId, string resourceGroupName, strin } } + internal RequestUriBuilder CreateStartNetworkTraceSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, int? durationInSeconds, int? maxFrameLength, string sasUrl) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/startNetworkTrace", false); + if (durationInSeconds != null) + { + uri.AppendQuery("durationInSeconds", durationInSeconds.Value, true); + } + if (maxFrameLength != null) + { + uri.AppendQuery("maxFrameLength", maxFrameLength.Value, true); + } + if (sasUrl != null) + { + uri.AppendQuery("sasUrl", sasUrl, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStartNetworkTraceSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, int? durationInSeconds, int? maxFrameLength, string sasUrl) { var message = _pipeline.CreateMessage(); @@ -29285,6 +35065,23 @@ public Response StartNetworkTraceSlot(string subscriptionId, string resourceGrou } } + internal RequestUriBuilder CreateStopSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/stop", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStopSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot) { var message = _pipeline.CreateMessage(); @@ -29360,6 +35157,23 @@ public Response StopSlot(string subscriptionId, string resourceGroupName, string } } + internal RequestUriBuilder CreateStopNetworkTraceSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/stopNetworkTrace", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStopNetworkTraceSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot) { var message = _pipeline.CreateMessage(); @@ -29437,6 +35251,23 @@ public Response StopNetworkTraceSlot(string subscriptionId, string resourceGroup } } + internal RequestUriBuilder CreateSyncRepositorySlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/sync", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateSyncRepositorySlotRequest(string subscriptionId, string resourceGroupName, string name, string slot) { var message = _pipeline.CreateMessage(); @@ -29512,6 +35343,23 @@ public Response SyncRepositorySlot(string subscriptionId, string resourceGroupNa } } + internal RequestUriBuilder CreateSyncFunctionTriggersSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/syncfunctiontriggers", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateSyncFunctionTriggersSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot) { var message = _pipeline.CreateMessage(); @@ -29587,6 +35435,23 @@ public Response SyncFunctionTriggersSlot(string subscriptionId, string resourceG } } + internal RequestUriBuilder CreateListTriggeredWebJobsSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/triggeredwebjobs", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListTriggeredWebJobsSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot) { var message = _pipeline.CreateMessage(); @@ -29672,6 +35537,24 @@ public Response ListTriggeredWebJobsSlot(string subsc } } + internal RequestUriBuilder CreateGetTriggeredWebJobSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, string webJobName) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/triggeredwebjobs/", false); + uri.AppendPath(webJobName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetTriggeredWebJobSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, string webJobName) { var message = _pipeline.CreateMessage(); @@ -29766,6 +35649,24 @@ public Response GetTriggeredWebJobSlot(string subscriptionI } } + internal RequestUriBuilder CreateDeleteTriggeredWebJobSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, string webJobName) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/triggeredwebjobs/", false); + uri.AppendPath(webJobName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteTriggeredWebJobSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, string webJobName) { var message = _pipeline.CreateMessage(); @@ -29848,6 +35749,25 @@ public Response DeleteTriggeredWebJobSlot(string subscriptionId, string resource } } + internal RequestUriBuilder CreateListTriggeredWebJobHistorySlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, string webJobName) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/triggeredwebjobs/", false); + uri.AppendPath(webJobName, true); + uri.AppendPath("/history", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListTriggeredWebJobHistorySlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, string webJobName) { var message = _pipeline.CreateMessage(); @@ -29939,6 +35859,26 @@ public Response ListTriggeredWebJobHistorySlot(st } } + internal RequestUriBuilder CreateGetTriggeredWebJobHistorySlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, string webJobName, string id) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/triggeredwebjobs/", false); + uri.AppendPath(webJobName, true); + uri.AppendPath("/history/", false); + uri.AppendPath(id, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetTriggeredWebJobHistorySlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, string webJobName, string id) { var message = _pipeline.CreateMessage(); @@ -30039,6 +35979,25 @@ public Response GetTriggeredWebJobHistorySlot(string su } } + internal RequestUriBuilder CreateRunTriggeredWebJobSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, string webJobName) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/triggeredwebjobs/", false); + uri.AppendPath(webJobName, true); + uri.AppendPath("/run", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRunTriggeredWebJobSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, string webJobName) { var message = _pipeline.CreateMessage(); @@ -30120,6 +36079,27 @@ public Response RunTriggeredWebJobSlot(string subscriptionId, string resourceGro } } + internal RequestUriBuilder CreateListUsagesSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/usages", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, false); + } + return uri; + } + internal HttpMessage CreateListUsagesSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, string filter) { var message = _pipeline.CreateMessage(); @@ -30211,6 +36191,23 @@ public Response ListUsagesSlot(string subscriptionId, s } } + internal RequestUriBuilder CreateListVnetConnectionsSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/virtualNetworkConnections", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListVnetConnectionsSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot) { var message = _pipeline.CreateMessage(); @@ -30306,6 +36303,24 @@ public Response> ListVnetConnections } } + internal RequestUriBuilder CreateGetVnetConnectionSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, string vnetName) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/virtualNetworkConnections/", false); + uri.AppendPath(vnetName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetVnetConnectionSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, string vnetName) { var message = _pipeline.CreateMessage(); @@ -30400,6 +36415,24 @@ public Response GetVnetConnectionSlot(string subsc } } + internal RequestUriBuilder CreateCreateOrUpdateVnetConnectionSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, string vnetName, AppServiceVirtualNetworkData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/virtualNetworkConnections/", false); + uri.AppendPath(vnetName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateVnetConnectionSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, string vnetName, AppServiceVirtualNetworkData data) { var message = _pipeline.CreateMessage(); @@ -30498,6 +36531,24 @@ public Response CreateOrUpdateVnetConnectionSlot(s } } + internal RequestUriBuilder CreateDeleteVnetConnectionSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, string vnetName) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/virtualNetworkConnections/", false); + uri.AppendPath(vnetName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteVnetConnectionSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, string vnetName) { var message = _pipeline.CreateMessage(); @@ -30578,6 +36629,24 @@ public Response DeleteVnetConnectionSlot(string subscriptionId, string resourceG } } + internal RequestUriBuilder CreateUpdateVnetConnectionSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, string vnetName, AppServiceVirtualNetworkData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/virtualNetworkConnections/", false); + uri.AppendPath(vnetName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateVnetConnectionSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, string vnetName, AppServiceVirtualNetworkData data) { var message = _pipeline.CreateMessage(); @@ -30676,6 +36745,26 @@ public Response UpdateVnetConnectionSlot(string su } } + internal RequestUriBuilder CreateGetVnetConnectionGatewaySlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, string vnetName, string gatewayName) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/virtualNetworkConnections/", false); + uri.AppendPath(vnetName, true); + uri.AppendPath("/gateways/", false); + uri.AppendPath(gatewayName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetVnetConnectionGatewaySlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, string vnetName, string gatewayName) { var message = _pipeline.CreateMessage(); @@ -30776,6 +36865,26 @@ public Response GetVnetConnectionGatewaySlo } } + internal RequestUriBuilder CreateCreateOrUpdateVnetConnectionGatewaySlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, string vnetName, string gatewayName, AppServiceVirtualNetworkGatewayData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/virtualNetworkConnections/", false); + uri.AppendPath(vnetName, true); + uri.AppendPath("/gateways/", false); + uri.AppendPath(gatewayName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateVnetConnectionGatewaySlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, string vnetName, string gatewayName, AppServiceVirtualNetworkGatewayData data) { var message = _pipeline.CreateMessage(); @@ -30880,6 +36989,26 @@ public Response CreateOrUpdateVnetConnectio } } + internal RequestUriBuilder CreateUpdateVnetConnectionGatewaySlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, string vnetName, string gatewayName, AppServiceVirtualNetworkGatewayData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/virtualNetworkConnections/", false); + uri.AppendPath(vnetName, true); + uri.AppendPath("/gateways/", false); + uri.AppendPath(gatewayName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateVnetConnectionGatewaySlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, string vnetName, string gatewayName, AppServiceVirtualNetworkGatewayData data) { var message = _pipeline.CreateMessage(); @@ -30984,6 +37113,23 @@ public Response UpdateVnetConnectionGateway } } + internal RequestUriBuilder CreateListWebJobsSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/webjobs", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListWebJobsSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot) { var message = _pipeline.CreateMessage(); @@ -31069,6 +37215,24 @@ public Response ListWebJobsSlot(string subscriptionId, string } } + internal RequestUriBuilder CreateGetWebJobSlotRequestUri(string subscriptionId, string resourceGroupName, string name, string slot, string webJobName) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slots/", false); + uri.AppendPath(slot, true); + uri.AppendPath("/webjobs/", false); + uri.AppendPath(webJobName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetWebJobSlotRequest(string subscriptionId, string resourceGroupName, string name, string slot, string webJobName) { var message = _pipeline.CreateMessage(); @@ -31163,6 +37327,21 @@ public Response GetWebJobSlot(string subscriptionId, string resource } } + internal RequestUriBuilder CreateListSlotDifferencesFromProductionRequestUri(string subscriptionId, string resourceGroupName, string name, CsmSlotEntity slotSwapEntity) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slotsdiffs", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListSlotDifferencesFromProductionRequest(string subscriptionId, string resourceGroupName, string name, CsmSlotEntity slotSwapEntity) { var message = _pipeline.CreateMessage(); @@ -31250,6 +37429,21 @@ public Response ListSlotDifferencesFromProduction(stri } } + internal RequestUriBuilder CreateSwapSlotWithProductionRequestUri(string subscriptionId, string resourceGroupName, string name, CsmSlotEntity slotSwapEntity) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/slotsswap", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateSwapSlotWithProductionRequest(string subscriptionId, string resourceGroupName, string name, CsmSlotEntity slotSwapEntity) { var message = _pipeline.CreateMessage(); @@ -31329,6 +37523,21 @@ public Response SwapSlotWithProduction(string subscriptionId, string resourceGro } } + internal RequestUriBuilder CreateListSnapshotsRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/snapshots", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListSnapshotsRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -31408,6 +37617,21 @@ public Response ListSnapshots(string subscriptionId, stri } } + internal RequestUriBuilder CreateListSnapshotsFromDRSecondaryRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/snapshotsdr", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListSnapshotsFromDRSecondaryRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -31487,6 +37711,21 @@ public Response ListSnapshotsFromDRSecondary(string subsc } } + internal RequestUriBuilder CreateGetSourceControlRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/sourcecontrols/web", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetSourceControlRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -31574,6 +37813,21 @@ public Response GetSourceControl(string subscriptionId, s } } + internal RequestUriBuilder CreateCreateOrUpdateSourceControlRequestUri(string subscriptionId, string resourceGroupName, string name, SiteSourceControlData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/sourcecontrols/web", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateSourceControlRequest(string subscriptionId, string resourceGroupName, string name, SiteSourceControlData data) { var message = _pipeline.CreateMessage(); @@ -31655,6 +37909,25 @@ public Response CreateOrUpdateSourceControl(string subscriptionId, string resour } } + internal RequestUriBuilder CreateDeleteSourceControlRequestUri(string subscriptionId, string resourceGroupName, string name, string additionalFlags) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/sourcecontrols/web", false); + if (additionalFlags != null) + { + uri.AppendQuery("additionalFlags", additionalFlags, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteSourceControlRequest(string subscriptionId, string resourceGroupName, string name, string additionalFlags) { var message = _pipeline.CreateMessage(); @@ -31732,6 +38005,21 @@ public Response DeleteSourceControl(string subscriptionId, string resourceGroupN } } + internal RequestUriBuilder CreateUpdateSourceControlRequestUri(string subscriptionId, string resourceGroupName, string name, SiteSourceControlData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/sourcecontrols/web", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateSourceControlRequest(string subscriptionId, string resourceGroupName, string name, SiteSourceControlData data) { var message = _pipeline.CreateMessage(); @@ -31823,6 +38111,21 @@ public Response UpdateSourceControl(string subscriptionId } } + internal RequestUriBuilder CreateStartRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/start", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStartRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -31892,6 +38195,33 @@ public Response Start(string subscriptionId, string resourceGroupName, string na } } + internal RequestUriBuilder CreateStartNetworkTraceRequestUri(string subscriptionId, string resourceGroupName, string name, int? durationInSeconds, int? maxFrameLength, string sasUrl) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/startNetworkTrace", false); + if (durationInSeconds != null) + { + uri.AppendQuery("durationInSeconds", durationInSeconds.Value, true); + } + if (maxFrameLength != null) + { + uri.AppendQuery("maxFrameLength", maxFrameLength.Value, true); + } + if (sasUrl != null) + { + uri.AppendQuery("sasUrl", sasUrl, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStartNetworkTraceRequest(string subscriptionId, string resourceGroupName, string name, int? durationInSeconds, int? maxFrameLength, string sasUrl) { var message = _pipeline.CreateMessage(); @@ -31981,6 +38311,21 @@ public Response StartNetworkTrace(string subscriptionId, string resourceGroupNam } } + internal RequestUriBuilder CreateStopRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/stop", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStopRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -32050,6 +38395,21 @@ public Response Stop(string subscriptionId, string resourceGroupName, string nam } } + internal RequestUriBuilder CreateStopNetworkTraceRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/stopNetworkTrace", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStopNetworkTraceRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -32121,6 +38481,21 @@ public Response StopNetworkTrace(string subscriptionId, string resourceGroupName } } + internal RequestUriBuilder CreateSyncRepositoryRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/sync", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateSyncRepositoryRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -32190,6 +38565,21 @@ public Response SyncRepository(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateSyncFunctionTriggersRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/syncfunctiontriggers", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateSyncFunctionTriggersRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -32261,6 +38651,21 @@ public Response SyncFunctionTriggers(string subscriptionId, string resourceGroup } } + internal RequestUriBuilder CreateListTriggeredWebJobsRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/triggeredwebjobs", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListTriggeredWebJobsRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -32340,6 +38745,22 @@ public Response ListTriggeredWebJobs(string subscript } } + internal RequestUriBuilder CreateGetTriggeredWebJobRequestUri(string subscriptionId, string resourceGroupName, string name, string webJobName) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/triggeredwebjobs/", false); + uri.AppendPath(webJobName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetTriggeredWebJobRequest(string subscriptionId, string resourceGroupName, string name, string webJobName) { var message = _pipeline.CreateMessage(); @@ -32428,6 +38849,22 @@ public Response GetTriggeredWebJob(string subscriptionId, s } } + internal RequestUriBuilder CreateDeleteTriggeredWebJobRequestUri(string subscriptionId, string resourceGroupName, string name, string webJobName) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/triggeredwebjobs/", false); + uri.AppendPath(webJobName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteTriggeredWebJobRequest(string subscriptionId, string resourceGroupName, string name, string webJobName) { var message = _pipeline.CreateMessage(); @@ -32504,6 +38941,23 @@ public Response DeleteTriggeredWebJob(string subscriptionId, string resourceGrou } } + internal RequestUriBuilder CreateListTriggeredWebJobHistoryRequestUri(string subscriptionId, string resourceGroupName, string name, string webJobName) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/triggeredwebjobs/", false); + uri.AppendPath(webJobName, true); + uri.AppendPath("/history", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListTriggeredWebJobHistoryRequest(string subscriptionId, string resourceGroupName, string name, string webJobName) { var message = _pipeline.CreateMessage(); @@ -32589,6 +39043,24 @@ public Response ListTriggeredWebJobHistory(string } } + internal RequestUriBuilder CreateGetTriggeredWebJobHistoryRequestUri(string subscriptionId, string resourceGroupName, string name, string webJobName, string id) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/triggeredwebjobs/", false); + uri.AppendPath(webJobName, true); + uri.AppendPath("/history/", false); + uri.AppendPath(id, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetTriggeredWebJobHistoryRequest(string subscriptionId, string resourceGroupName, string name, string webJobName, string id) { var message = _pipeline.CreateMessage(); @@ -32683,6 +39155,23 @@ public Response GetTriggeredWebJobHistory(string subscr } } + internal RequestUriBuilder CreateRunTriggeredWebJobRequestUri(string subscriptionId, string resourceGroupName, string name, string webJobName) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/triggeredwebjobs/", false); + uri.AppendPath(webJobName, true); + uri.AppendPath("/run", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateRunTriggeredWebJobRequest(string subscriptionId, string resourceGroupName, string name, string webJobName) { var message = _pipeline.CreateMessage(); @@ -32758,6 +39247,25 @@ public Response RunTriggeredWebJob(string subscriptionId, string resourceGroupNa } } + internal RequestUriBuilder CreateListUsagesRequestUri(string subscriptionId, string resourceGroupName, string name, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/usages", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, false); + } + return uri; + } + internal HttpMessage CreateListUsagesRequest(string subscriptionId, string resourceGroupName, string name, string filter) { var message = _pipeline.CreateMessage(); @@ -32843,6 +39351,21 @@ public Response ListUsages(string subscriptionId, strin } } + internal RequestUriBuilder CreateListVnetConnectionsRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/virtualNetworkConnections", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListVnetConnectionsRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -32932,6 +39455,22 @@ public Response> ListVnetConnections } } + internal RequestUriBuilder CreateGetVnetConnectionRequestUri(string subscriptionId, string resourceGroupName, string name, string vnetName) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/virtualNetworkConnections/", false); + uri.AppendPath(vnetName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetVnetConnectionRequest(string subscriptionId, string resourceGroupName, string name, string vnetName) { var message = _pipeline.CreateMessage(); @@ -33020,6 +39559,22 @@ public Response GetVnetConnection(string subscript } } + internal RequestUriBuilder CreateCreateOrUpdateVnetConnectionRequestUri(string subscriptionId, string resourceGroupName, string name, string vnetName, AppServiceVirtualNetworkData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/virtualNetworkConnections/", false); + uri.AppendPath(vnetName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateVnetConnectionRequest(string subscriptionId, string resourceGroupName, string name, string vnetName, AppServiceVirtualNetworkData data) { var message = _pipeline.CreateMessage(); @@ -33112,6 +39667,22 @@ public Response CreateOrUpdateVnetConnection(strin } } + internal RequestUriBuilder CreateDeleteVnetConnectionRequestUri(string subscriptionId, string resourceGroupName, string name, string vnetName) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/virtualNetworkConnections/", false); + uri.AppendPath(vnetName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteVnetConnectionRequest(string subscriptionId, string resourceGroupName, string name, string vnetName) { var message = _pipeline.CreateMessage(); @@ -33186,6 +39757,22 @@ public Response DeleteVnetConnection(string subscriptionId, string resourceGroup } } + internal RequestUriBuilder CreateUpdateVnetConnectionRequestUri(string subscriptionId, string resourceGroupName, string name, string vnetName, AppServiceVirtualNetworkData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/virtualNetworkConnections/", false); + uri.AppendPath(vnetName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateVnetConnectionRequest(string subscriptionId, string resourceGroupName, string name, string vnetName, AppServiceVirtualNetworkData data) { var message = _pipeline.CreateMessage(); @@ -33278,6 +39865,24 @@ public Response UpdateVnetConnection(string subscr } } + internal RequestUriBuilder CreateGetVnetConnectionGatewayRequestUri(string subscriptionId, string resourceGroupName, string name, string vnetName, string gatewayName) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/virtualNetworkConnections/", false); + uri.AppendPath(vnetName, true); + uri.AppendPath("/gateways/", false); + uri.AppendPath(gatewayName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetVnetConnectionGatewayRequest(string subscriptionId, string resourceGroupName, string name, string vnetName, string gatewayName) { var message = _pipeline.CreateMessage(); @@ -33372,6 +39977,24 @@ public Response GetVnetConnectionGateway(st } } + internal RequestUriBuilder CreateCreateOrUpdateVnetConnectionGatewayRequestUri(string subscriptionId, string resourceGroupName, string name, string vnetName, string gatewayName, AppServiceVirtualNetworkGatewayData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/virtualNetworkConnections/", false); + uri.AppendPath(vnetName, true); + uri.AppendPath("/gateways/", false); + uri.AppendPath(gatewayName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateOrUpdateVnetConnectionGatewayRequest(string subscriptionId, string resourceGroupName, string name, string vnetName, string gatewayName, AppServiceVirtualNetworkGatewayData data) { var message = _pipeline.CreateMessage(); @@ -33470,6 +40093,24 @@ public Response CreateOrUpdateVnetConnectio } } + internal RequestUriBuilder CreateUpdateVnetConnectionGatewayRequestUri(string subscriptionId, string resourceGroupName, string name, string vnetName, string gatewayName, AppServiceVirtualNetworkGatewayData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/virtualNetworkConnections/", false); + uri.AppendPath(vnetName, true); + uri.AppendPath("/gateways/", false); + uri.AppendPath(gatewayName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateVnetConnectionGatewayRequest(string subscriptionId, string resourceGroupName, string name, string vnetName, string gatewayName, AppServiceVirtualNetworkGatewayData data) { var message = _pipeline.CreateMessage(); @@ -33568,6 +40209,21 @@ public Response UpdateVnetConnectionGateway } } + internal RequestUriBuilder CreateListWebJobsRequestUri(string subscriptionId, string resourceGroupName, string name) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/webjobs", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListWebJobsRequest(string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -33647,6 +40303,22 @@ public Response ListWebJobs(string subscriptionId, string res } } + internal RequestUriBuilder CreateGetWebJobRequestUri(string subscriptionId, string resourceGroupName, string name, string webJobName) + { + 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.Web/sites/", false); + uri.AppendPath(name, true); + uri.AppendPath("/webjobs/", false); + uri.AppendPath(webJobName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetWebJobRequest(string subscriptionId, string resourceGroupName, string name, string webJobName) { var message = _pipeline.CreateMessage(); @@ -33735,6 +40407,14 @@ public Response GetWebJob(string subscriptionId, string resourceGrou } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -33803,6 +40483,14 @@ public Response ListNextPage(string nextLink, string subscript } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, bool? includeSlots) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, bool? includeSlots) { var message = _pipeline.CreateMessage(); @@ -33877,6 +40565,14 @@ public Response ListByResourceGroupNextPage(string nextLink, s } } + internal RequestUriBuilder CreateListBackupsNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string name) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBackupsNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -33953,6 +40649,14 @@ public Response ListBackupsNextPage(string nextLink, } } + internal RequestUriBuilder CreateListBasicPublishingCredentialsPoliciesNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string name) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBasicPublishingCredentialsPoliciesNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -34029,6 +40733,14 @@ public Response ListBasicPublishingCred } } + internal RequestUriBuilder CreateListConfigurationsNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string name) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListConfigurationsNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -34105,6 +40817,14 @@ public Response ListConfigurationsNextPage(string nextLink } } + internal RequestUriBuilder CreateGetAppSettingsKeyVaultReferencesNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string name) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateGetAppSettingsKeyVaultReferencesNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -34181,6 +40901,14 @@ public Response GetAppSettingsKeyVaultRefere } } + internal RequestUriBuilder CreateGetSiteConnectionStringKeyVaultReferencesNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string name) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateGetSiteConnectionStringKeyVaultReferencesNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -34257,6 +40985,14 @@ public Response GetSiteConnectionStringKeyVa } } + internal RequestUriBuilder CreateListConfigurationSnapshotInfoNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string name) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListConfigurationSnapshotInfoNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -34333,6 +41069,14 @@ public Response ListConfigurationSnapsh } } + internal RequestUriBuilder CreateListContinuousWebJobsNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string name) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListContinuousWebJobsNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -34409,6 +41153,14 @@ public Response ListContinuousWebJobsNextPage(string } } + internal RequestUriBuilder CreateListDeploymentsNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string name) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListDeploymentsNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -34485,6 +41237,14 @@ public Response ListDeploymentsNextPage(string nextL } } + internal RequestUriBuilder CreateListDomainOwnershipIdentifiersNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string name) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListDomainOwnershipIdentifiersNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -34561,6 +41321,14 @@ public Response ListDomainOwnershipIdentifiersNe } } + internal RequestUriBuilder CreateListFunctionsNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string name) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListFunctionsNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -34637,6 +41405,14 @@ public Response ListFunctionsNextPage(string nextLin } } + internal RequestUriBuilder CreateListHostNameBindingsNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string name) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListHostNameBindingsNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -34713,6 +41489,14 @@ public Response ListHostNameBindingsNextPage(string n } } + internal RequestUriBuilder CreateListInstanceIdentifiersNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string name) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListInstanceIdentifiersNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -34789,6 +41573,14 @@ public Response ListInstanceIdentifiersNextPage( } } + internal RequestUriBuilder CreateListInstanceProcessesNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string name, string instanceId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListInstanceProcessesNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string name, string instanceId) { var message = _pipeline.CreateMessage(); @@ -34869,6 +41661,14 @@ public Response ListInstanceProcessesNextPage(string next } } + internal RequestUriBuilder CreateListInstanceProcessModulesNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string name, string instanceId, string processId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListInstanceProcessModulesNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string name, string instanceId, string processId) { var message = _pipeline.CreateMessage(); @@ -34953,6 +41753,14 @@ public Response ListInstanceProcessModulesNextPage( } } + internal RequestUriBuilder CreateListInstanceProcessThreadsNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string name, string instanceId, string processId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListInstanceProcessThreadsNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string name, string instanceId, string processId) { var message = _pipeline.CreateMessage(); @@ -35037,6 +41845,14 @@ public Response ListInstanceProcessThreadsNextPage( } } + internal RequestUriBuilder CreateListSiteBackupsNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string name) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListSiteBackupsNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -35113,6 +41929,14 @@ public Response ListSiteBackupsNextPage(string nextL } } + internal RequestUriBuilder CreateListPerfMonCountersNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string name, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListPerfMonCountersNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string name, string filter) { var message = _pipeline.CreateMessage(); @@ -35191,6 +42015,14 @@ public Response ListPerfMonCountersNextPage(string nex } } + internal RequestUriBuilder CreateGetPrivateEndpointConnectionListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string name) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateGetPrivateEndpointConnectionListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -35267,6 +42099,14 @@ public Response GetPrivateEndpointCon } } + internal RequestUriBuilder CreateListProcessesNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string name) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListProcessesNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -35343,6 +42183,14 @@ public Response ListProcessesNextPage(string nextLink, st } } + internal RequestUriBuilder CreateListProcessModulesNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string name, string processId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListProcessModulesNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string name, string processId) { var message = _pipeline.CreateMessage(); @@ -35423,6 +42271,14 @@ public Response ListProcessModulesNextPage(string n } } + internal RequestUriBuilder CreateListProcessThreadsNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string name, string processId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListProcessThreadsNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string name, string processId) { var message = _pipeline.CreateMessage(); @@ -35503,6 +42359,14 @@ public Response ListProcessThreadsNextPage(string n } } + internal RequestUriBuilder CreateListPublicCertificatesNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string name) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListPublicCertificatesNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -35579,6 +42443,14 @@ public Response ListPublicCertificatesNextPage(stri } } + internal RequestUriBuilder CreateListSiteExtensionsNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string name) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListSiteExtensionsNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -35655,6 +42527,14 @@ public Response ListSiteExtensionsNextPage(string n } } + internal RequestUriBuilder CreateListSlotsNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string name) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListSlotsNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -35731,6 +42611,14 @@ public Response ListSlotsNextPage(string nextLink, string subs } } + internal RequestUriBuilder CreateListBackupsSlotNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string name, string slot) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBackupsSlotNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string name, string slot) { var message = _pipeline.CreateMessage(); @@ -35811,6 +42699,14 @@ public Response ListBackupsSlotNextPage(string nextL } } + internal RequestUriBuilder CreateListBasicPublishingCredentialsPoliciesSlotNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string name, string slot) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBasicPublishingCredentialsPoliciesSlotNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string name, string slot) { var message = _pipeline.CreateMessage(); @@ -35891,6 +42787,14 @@ public Response ListBasicPublishingCred } } + internal RequestUriBuilder CreateListConfigurationsSlotNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string name, string slot) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListConfigurationsSlotNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string name, string slot) { var message = _pipeline.CreateMessage(); @@ -35971,6 +42875,14 @@ public Response ListConfigurationsSlotNextPage(string next } } + internal RequestUriBuilder CreateGetAppSettingsKeyVaultReferencesSlotNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string name, string slot) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateGetAppSettingsKeyVaultReferencesSlotNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string name, string slot) { var message = _pipeline.CreateMessage(); @@ -36051,6 +42963,14 @@ public Response GetAppSettingsKeyVaultRefere } } + internal RequestUriBuilder CreateGetSiteConnectionStringKeyVaultReferencesSlotNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string name, string slot) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateGetSiteConnectionStringKeyVaultReferencesSlotNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string name, string slot) { var message = _pipeline.CreateMessage(); @@ -36131,6 +43051,14 @@ public Response GetSiteConnectionStringKeyVa } } + internal RequestUriBuilder CreateListConfigurationSnapshotInfoSlotNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string name, string slot) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListConfigurationSnapshotInfoSlotNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string name, string slot) { var message = _pipeline.CreateMessage(); @@ -36211,6 +43139,14 @@ public Response ListConfigurationSnapsh } } + internal RequestUriBuilder CreateListContinuousWebJobsSlotNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string name, string slot) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListContinuousWebJobsSlotNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string name, string slot) { var message = _pipeline.CreateMessage(); @@ -36291,6 +43227,14 @@ public Response ListContinuousWebJobsSlotNextPage(st } } + internal RequestUriBuilder CreateListDeploymentsSlotNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string name, string slot) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListDeploymentsSlotNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string name, string slot) { var message = _pipeline.CreateMessage(); @@ -36371,6 +43315,14 @@ public Response ListDeploymentsSlotNextPage(string n } } + internal RequestUriBuilder CreateListDomainOwnershipIdentifiersSlotNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string name, string slot) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListDomainOwnershipIdentifiersSlotNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string name, string slot) { var message = _pipeline.CreateMessage(); @@ -36451,6 +43403,14 @@ public Response ListDomainOwnershipIdentifiersSl } } + internal RequestUriBuilder CreateListInstanceFunctionsSlotNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string name, string slot) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListInstanceFunctionsSlotNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string name, string slot) { var message = _pipeline.CreateMessage(); @@ -36531,6 +43491,14 @@ public Response ListInstanceFunctionsSlotNextPage(st } } + internal RequestUriBuilder CreateListHostNameBindingsSlotNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string name, string slot) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListHostNameBindingsSlotNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string name, string slot) { var message = _pipeline.CreateMessage(); @@ -36611,6 +43579,14 @@ public Response ListHostNameBindingsSlotNextPage(stri } } + internal RequestUriBuilder CreateListInstanceIdentifiersSlotNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string name, string slot) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListInstanceIdentifiersSlotNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string name, string slot) { var message = _pipeline.CreateMessage(); @@ -36691,6 +43667,14 @@ public Response ListInstanceIdentifiersSlotNextP } } + internal RequestUriBuilder CreateListInstanceProcessesSlotNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string name, string slot, string instanceId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListInstanceProcessesSlotNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string name, string slot, string instanceId) { var message = _pipeline.CreateMessage(); @@ -36775,6 +43759,14 @@ public Response ListInstanceProcessesSlotNextPage(string } } + internal RequestUriBuilder CreateListInstanceProcessModulesSlotNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string name, string slot, string instanceId, string processId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListInstanceProcessModulesSlotNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string name, string slot, string instanceId, string processId) { var message = _pipeline.CreateMessage(); @@ -36863,6 +43855,14 @@ public Response ListInstanceProcessModulesSlotNextP } } + internal RequestUriBuilder CreateListInstanceProcessThreadsSlotNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string name, string slot, string instanceId, string processId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListInstanceProcessThreadsSlotNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string name, string slot, string instanceId, string processId) { var message = _pipeline.CreateMessage(); @@ -36951,6 +43951,14 @@ public Response ListInstanceProcessThreadsSlotNextP } } + internal RequestUriBuilder CreateListSiteBackupsSlotNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string name, string slot) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListSiteBackupsSlotNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string name, string slot) { var message = _pipeline.CreateMessage(); @@ -37031,6 +44039,14 @@ public Response ListSiteBackupsSlotNextPage(string n } } + internal RequestUriBuilder CreateListPerfMonCountersSlotNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string name, string slot, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListPerfMonCountersSlotNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string name, string slot, string filter) { var message = _pipeline.CreateMessage(); @@ -37113,6 +44129,14 @@ public Response ListPerfMonCountersSlotNextPage(string } } + internal RequestUriBuilder CreateGetPrivateEndpointConnectionListSlotNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string name, string slot) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateGetPrivateEndpointConnectionListSlotNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string name, string slot) { var message = _pipeline.CreateMessage(); @@ -37193,6 +44217,14 @@ public Response GetPrivateEndpointCon } } + internal RequestUriBuilder CreateListProcessesSlotNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string name, string slot) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListProcessesSlotNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string name, string slot) { var message = _pipeline.CreateMessage(); @@ -37273,6 +44305,14 @@ public Response ListProcessesSlotNextPage(string nextLink } } + internal RequestUriBuilder CreateListProcessModulesSlotNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string name, string slot, string processId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListProcessModulesSlotNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string name, string slot, string processId) { var message = _pipeline.CreateMessage(); @@ -37357,6 +44397,14 @@ public Response ListProcessModulesSlotNextPage(stri } } + internal RequestUriBuilder CreateListProcessThreadsSlotNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string name, string slot, string processId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListProcessThreadsSlotNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string name, string slot, string processId) { var message = _pipeline.CreateMessage(); @@ -37441,6 +44489,14 @@ public Response ListProcessThreadsSlotNextPage(stri } } + internal RequestUriBuilder CreateListPublicCertificatesSlotNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string name, string slot) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListPublicCertificatesSlotNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string name, string slot) { var message = _pipeline.CreateMessage(); @@ -37521,6 +44577,14 @@ public Response ListPublicCertificatesSlotNextPage( } } + internal RequestUriBuilder CreateListSiteExtensionsSlotNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string name, string slot) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListSiteExtensionsSlotNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string name, string slot) { var message = _pipeline.CreateMessage(); @@ -37601,6 +44665,14 @@ public Response ListSiteExtensionsSlotNextPage(stri } } + internal RequestUriBuilder CreateListSlotDifferencesSlotNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string name, string slot, CsmSlotEntity slotSwapEntity) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListSlotDifferencesSlotNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string name, string slot, CsmSlotEntity slotSwapEntity) { var message = _pipeline.CreateMessage(); @@ -37685,6 +44757,14 @@ public Response ListSlotDifferencesSlotNextPage(string } } + internal RequestUriBuilder CreateListSnapshotsSlotNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string name, string slot) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListSnapshotsSlotNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string name, string slot) { var message = _pipeline.CreateMessage(); @@ -37765,6 +44845,14 @@ public Response ListSnapshotsSlotNextPage(string nextLink } } + internal RequestUriBuilder CreateListSnapshotsFromDRSecondarySlotNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string name, string slot) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListSnapshotsFromDRSecondarySlotNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string name, string slot) { var message = _pipeline.CreateMessage(); @@ -37845,6 +44933,14 @@ public Response ListSnapshotsFromDRSecondarySlotNextPage( } } + internal RequestUriBuilder CreateListTriggeredWebJobsSlotNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string name, string slot) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListTriggeredWebJobsSlotNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string name, string slot) { var message = _pipeline.CreateMessage(); @@ -37925,6 +45021,14 @@ public Response ListTriggeredWebJobsSlotNextPage(stri } } + internal RequestUriBuilder CreateListTriggeredWebJobHistorySlotNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string name, string slot, string webJobName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListTriggeredWebJobHistorySlotNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string name, string slot, string webJobName) { var message = _pipeline.CreateMessage(); @@ -38009,6 +45113,14 @@ public Response ListTriggeredWebJobHistorySlotNex } } + internal RequestUriBuilder CreateListUsagesSlotNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string name, string slot, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListUsagesSlotNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string name, string slot, string filter) { var message = _pipeline.CreateMessage(); @@ -38091,6 +45203,14 @@ public Response ListUsagesSlotNextPage(string nextLink, } } + internal RequestUriBuilder CreateListWebJobsSlotNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string name, string slot) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListWebJobsSlotNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string name, string slot) { var message = _pipeline.CreateMessage(); @@ -38171,6 +45291,14 @@ public Response ListWebJobsSlotNextPage(string nextLink, stri } } + internal RequestUriBuilder CreateListSlotDifferencesFromProductionNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string name, CsmSlotEntity slotSwapEntity) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListSlotDifferencesFromProductionNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string name, CsmSlotEntity slotSwapEntity) { var message = _pipeline.CreateMessage(); @@ -38251,6 +45379,14 @@ public Response ListSlotDifferencesFromProductionNextP } } + internal RequestUriBuilder CreateListSnapshotsNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string name) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListSnapshotsNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -38327,6 +45463,14 @@ public Response ListSnapshotsNextPage(string nextLink, st } } + internal RequestUriBuilder CreateListSnapshotsFromDRSecondaryNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string name) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListSnapshotsFromDRSecondaryNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -38403,6 +45547,14 @@ public Response ListSnapshotsFromDRSecondaryNextPage(stri } } + internal RequestUriBuilder CreateListTriggeredWebJobsNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string name) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListTriggeredWebJobsNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); @@ -38479,6 +45631,14 @@ public Response ListTriggeredWebJobsNextPage(string n } } + internal RequestUriBuilder CreateListTriggeredWebJobHistoryNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string name, string webJobName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListTriggeredWebJobHistoryNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string name, string webJobName) { var message = _pipeline.CreateMessage(); @@ -38559,6 +45719,14 @@ public Response ListTriggeredWebJobHistoryNextPag } } + internal RequestUriBuilder CreateListUsagesNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string name, string filter) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListUsagesNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string name, string filter) { var message = _pipeline.CreateMessage(); @@ -38637,6 +45805,14 @@ public Response ListUsagesNextPage(string nextLink, str } } + internal RequestUriBuilder CreateListWebJobsNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string name) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListWebJobsNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string name) { var message = _pipeline.CreateMessage(); diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/WebSiteManagementRestOperations.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/WebSiteManagementRestOperations.cs index a30c6f5ed41c..b6974464d970 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/WebSiteManagementRestOperations.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/WebSiteManagementRestOperations.cs @@ -37,6 +37,15 @@ public WebSiteManagementRestOperations(HttpPipeline pipeline, string application _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetPublishingUserRequestUri() + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Web/publishingUsers/web", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetPublishingUserRequest() { var message = _pipeline.CreateMessage(); @@ -96,6 +105,15 @@ public Response GetPublishingUser(CancellationToken cancella } } + internal RequestUriBuilder CreateUpdatePublishingUserRequestUri(PublishingUserData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Web/publishingUsers/web", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdatePublishingUserRequest(PublishingUserData data) { var message = _pipeline.CreateMessage(); @@ -163,6 +181,15 @@ public Response UpdatePublishingUser(PublishingUserData data } } + internal RequestUriBuilder CreateListSourceControlsRequestUri() + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Web/sourcecontrols", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListSourceControlsRequest() { var message = _pipeline.CreateMessage(); @@ -218,6 +245,16 @@ public Response ListSourceControls(Cancellati } } + internal RequestUriBuilder CreateGetSourceControlRequestUri(string sourceControlType) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Web/sourcecontrols/", false); + uri.AppendPath(sourceControlType, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetSourceControlRequest(string sourceControlType) { var message = _pipeline.CreateMessage(); @@ -288,6 +325,16 @@ public Response GetSourceControl(string sourceContr } } + internal RequestUriBuilder CreateUpdateSourceControlRequestUri(string sourceControlType, AppServiceSourceControlData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Web/sourcecontrols/", false); + uri.AppendPath(sourceControlType, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateSourceControlRequest(string sourceControlType, AppServiceSourceControlData data) { var message = _pipeline.CreateMessage(); @@ -362,6 +409,25 @@ public Response UpdateSourceControl(string sourceCo } } + internal RequestUriBuilder CreateListBillingMetersRequestUri(string subscriptionId, string billingLocation, string osType) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Web/billingMeters", false); + if (billingLocation != null) + { + uri.AppendQuery("billingLocation", billingLocation, true); + } + if (osType != null) + { + uri.AppendQuery("osType", osType, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBillingMetersRequest(string subscriptionId, string billingLocation, string osType) { var message = _pipeline.CreateMessage(); @@ -441,6 +507,17 @@ public Response ListBillingMeters(string subsc } } + internal RequestUriBuilder CreateCheckNameAvailabilityRequestUri(string subscriptionId, ResourceNameAvailabilityContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Web/checknameavailability", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCheckNameAvailabilityRequest(string subscriptionId, ResourceNameAvailabilityContent content) { var message = _pipeline.CreateMessage(); @@ -516,6 +593,17 @@ public Response CheckNameAvailability(string subscript } } + internal RequestUriBuilder CreateGetSubscriptionDeploymentLocationsRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Web/deploymentLocations", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetSubscriptionDeploymentLocationsRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -583,6 +671,33 @@ public Response GetSubscriptionDeploymentLocation } } + internal RequestUriBuilder CreateListGeoRegionsRequestUri(string subscriptionId, AppServiceSkuName? sku, bool? linuxWorkersEnabled, bool? xenonWorkersEnabled, bool? linuxDynamicWorkersEnabled) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Web/geoRegions", false); + if (sku != null) + { + uri.AppendQuery("sku", sku.Value.ToString(), true); + } + if (linuxWorkersEnabled != null) + { + uri.AppendQuery("linuxWorkersEnabled", linuxWorkersEnabled.Value, true); + } + if (xenonWorkersEnabled != null) + { + uri.AppendQuery("xenonWorkersEnabled", xenonWorkersEnabled.Value, true); + } + if (linuxDynamicWorkersEnabled != null) + { + uri.AppendQuery("linuxDynamicWorkersEnabled", linuxDynamicWorkersEnabled.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListGeoRegionsRequest(string subscriptionId, AppServiceSkuName? sku, bool? linuxWorkersEnabled, bool? xenonWorkersEnabled, bool? linuxDynamicWorkersEnabled) { var message = _pipeline.CreateMessage(); @@ -674,6 +789,17 @@ public Response ListGeoRegions(string subscriptio } } + internal RequestUriBuilder CreateListSiteIdentifiersAssignedToHostNameRequestUri(string subscriptionId, AppServiceDomainNameIdentifier nameIdentifier) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Web/listSitesAssignedToHostName", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListSiteIdentifiersAssignedToHostNameRequest(string subscriptionId, AppServiceDomainNameIdentifier nameIdentifier) { var message = _pipeline.CreateMessage(); @@ -749,6 +875,17 @@ public Response ListSiteIdentifiersAssignedToHos } } + internal RequestUriBuilder CreateListPremierAddOnOffersRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Web/premieraddonoffers", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListPremierAddOnOffersRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -816,6 +953,17 @@ public Response ListPremierAddOnOffers(string subsc } } + internal RequestUriBuilder CreateListSkusRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Web/skus", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListSkusRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -883,6 +1031,17 @@ public Response ListSkus(string subscriptionId, Cancellatio } } + internal RequestUriBuilder CreateVerifyHostingEnvironmentVnetRequestUri(string subscriptionId, AppServiceVirtualNetworkValidationContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Web/verifyHostingEnvironmentVnet", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateVerifyHostingEnvironmentVnetRequest(string subscriptionId, AppServiceVirtualNetworkValidationContent content) { var message = _pipeline.CreateMessage(); @@ -958,6 +1117,19 @@ public Response VerifyHostingEnvironment } } + internal RequestUriBuilder CreateValidateRequestUri(string subscriptionId, string resourceGroupName, AppServiceValidateContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Web/validate", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateValidateRequest(string subscriptionId, string resourceGroupName, AppServiceValidateContent content) { var message = _pipeline.CreateMessage(); @@ -1039,6 +1211,14 @@ public Response Validate(string subscriptionId, string } } + internal RequestUriBuilder CreateListSourceControlsNextPageRequestUri(string nextLink) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListSourceControlsNextPageRequest(string nextLink) { var message = _pipeline.CreateMessage(); @@ -1101,6 +1281,14 @@ public Response ListSourceControlsNextPage(st } } + internal RequestUriBuilder CreateListBillingMetersNextPageRequestUri(string nextLink, string subscriptionId, string billingLocation, string osType) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBillingMetersNextPageRequest(string nextLink, string subscriptionId, string billingLocation, string osType) { var message = _pipeline.CreateMessage(); @@ -1173,6 +1361,14 @@ public Response ListBillingMetersNextPage(stri } } + internal RequestUriBuilder CreateListGeoRegionsNextPageRequestUri(string nextLink, string subscriptionId, AppServiceSkuName? sku, bool? linuxWorkersEnabled, bool? xenonWorkersEnabled, bool? linuxDynamicWorkersEnabled) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListGeoRegionsNextPageRequest(string nextLink, string subscriptionId, AppServiceSkuName? sku, bool? linuxWorkersEnabled, bool? xenonWorkersEnabled, bool? linuxDynamicWorkersEnabled) { var message = _pipeline.CreateMessage(); @@ -1249,6 +1445,14 @@ public Response ListGeoRegionsNextPage(string nex } } + internal RequestUriBuilder CreateListSiteIdentifiersAssignedToHostNameNextPageRequestUri(string nextLink, string subscriptionId, AppServiceDomainNameIdentifier nameIdentifier) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListSiteIdentifiersAssignedToHostNameNextPageRequest(string nextLink, string subscriptionId, AppServiceDomainNameIdentifier nameIdentifier) { var message = _pipeline.CreateMessage(); @@ -1321,6 +1525,14 @@ public Response ListSiteIdentifiersAssignedToHos } } + internal RequestUriBuilder CreateListPremierAddOnOffersNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListPremierAddOnOffersNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/ScmSiteBasicPublishingCredentialsPolicyResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/ScmSiteBasicPublishingCredentialsPolicyResource.cs index bd363f159e5b..af43a797fee3 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/ScmSiteBasicPublishingCredentialsPolicyResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/ScmSiteBasicPublishingCredentialsPolicyResource.cs @@ -203,7 +203,9 @@ public virtual async Task(Response.FromValue(new ScmSiteBasicPublishingCredentialsPolicyResource(Client, response), response.GetRawResponse())); + var uri = _scmSiteBasicPublishingCredentialsPolicyWebAppsRestClient.CreateUpdateScmAllowedRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(Response.FromValue(new ScmSiteBasicPublishingCredentialsPolicyResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -249,7 +251,9 @@ public virtual ArmOperation Cre try { var response = _scmSiteBasicPublishingCredentialsPolicyWebAppsRestClient.UpdateScmAllowed(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, data, cancellationToken); - var operation = new AppServiceArmOperation(Response.FromValue(new ScmSiteBasicPublishingCredentialsPolicyResource(Client, response), response.GetRawResponse())); + var uri = _scmSiteBasicPublishingCredentialsPolicyWebAppsRestClient.CreateUpdateScmAllowedRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(Response.FromValue(new ScmSiteBasicPublishingCredentialsPolicyResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/ScmSiteSlotBasicPublishingCredentialsPolicyResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/ScmSiteSlotBasicPublishingCredentialsPolicyResource.cs index a08926027288..56022c49a54b 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/ScmSiteSlotBasicPublishingCredentialsPolicyResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/ScmSiteSlotBasicPublishingCredentialsPolicyResource.cs @@ -204,7 +204,9 @@ public virtual async Task(Response.FromValue(new ScmSiteSlotBasicPublishingCredentialsPolicyResource(Client, response), response.GetRawResponse())); + var uri = _scmSiteSlotBasicPublishingCredentialsPolicyWebAppsRestClient.CreateUpdateScmAllowedSlotRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(Response.FromValue(new ScmSiteSlotBasicPublishingCredentialsPolicyResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -250,7 +252,9 @@ public virtual ArmOperation try { var response = _scmSiteSlotBasicPublishingCredentialsPolicyWebAppsRestClient.UpdateScmAllowedSlot(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, data, cancellationToken); - var operation = new AppServiceArmOperation(Response.FromValue(new ScmSiteSlotBasicPublishingCredentialsPolicyResource(Client, response), response.GetRawResponse())); + var uri = _scmSiteSlotBasicPublishingCredentialsPolicyWebAppsRestClient.CreateUpdateScmAllowedSlotRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(Response.FromValue(new ScmSiteSlotBasicPublishingCredentialsPolicyResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteBackupResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteBackupResource.cs index cfa5b06e44cb..471f98060144 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteBackupResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteBackupResource.cs @@ -201,7 +201,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _siteBackupWebAppsRestClient.DeleteBackupAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new AppServiceArmOperation(response); + var uri = _siteBackupWebAppsRestClient.CreateDeleteBackupRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -243,7 +245,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _siteBackupWebAppsRestClient.DeleteBackup(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new AppServiceArmOperation(response); + var uri = _siteBackupWebAppsRestClient.CreateDeleteBackupRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteDeploymentCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteDeploymentCollection.cs index 860d29fc9b4d..7cb8fa1fe321 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteDeploymentCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteDeploymentCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> CreateOrUpdateAs try { var response = await _siteDeploymentWebAppsRestClient.CreateDeploymentAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, id, data, cancellationToken).ConfigureAwait(false); - var operation = new AppServiceArmOperation(Response.FromValue(new SiteDeploymentResource(Client, response), response.GetRawResponse())); + var uri = _siteDeploymentWebAppsRestClient.CreateCreateDeploymentRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, id, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(Response.FromValue(new SiteDeploymentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wai try { var response = _siteDeploymentWebAppsRestClient.CreateDeployment(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, id, data, cancellationToken); - var operation = new AppServiceArmOperation(Response.FromValue(new SiteDeploymentResource(Client, response), response.GetRawResponse())); + var uri = _siteDeploymentWebAppsRestClient.CreateCreateDeploymentRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, id, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(Response.FromValue(new SiteDeploymentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteDeploymentResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteDeploymentResource.cs index e6d42c61cc8c..1d60fa629691 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteDeploymentResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteDeploymentResource.cs @@ -200,7 +200,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _siteDeploymentWebAppsRestClient.DeleteDeploymentAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new AppServiceArmOperation(response); + var uri = _siteDeploymentWebAppsRestClient.CreateDeleteDeploymentRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -242,7 +244,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _siteDeploymentWebAppsRestClient.DeleteDeployment(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new AppServiceArmOperation(response); + var uri = _siteDeploymentWebAppsRestClient.CreateDeleteDeploymentRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -288,7 +292,9 @@ public virtual async Task> UpdateAsync(Wait try { var response = await _siteDeploymentWebAppsRestClient.CreateDeploymentAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new AppServiceArmOperation(Response.FromValue(new SiteDeploymentResource(Client, response), response.GetRawResponse())); + var uri = _siteDeploymentWebAppsRestClient.CreateCreateDeploymentRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(Response.FromValue(new SiteDeploymentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -334,7 +340,9 @@ public virtual ArmOperation Update(WaitUntil waitUntil, try { var response = _siteDeploymentWebAppsRestClient.CreateDeployment(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new AppServiceArmOperation(Response.FromValue(new SiteDeploymentResource(Client, response), response.GetRawResponse())); + var uri = _siteDeploymentWebAppsRestClient.CreateCreateDeploymentRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(Response.FromValue(new SiteDeploymentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteDomainOwnershipIdentifierCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteDomainOwnershipIdentifierCollection.cs index b23ef82b5084..cf67d494364e 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteDomainOwnershipIdentifierCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteDomainOwnershipIdentifierCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> C try { var response = await _siteDomainOwnershipIdentifierWebAppsRestClient.CreateOrUpdateDomainOwnershipIdentifierAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, domainOwnershipIdentifierName, data, cancellationToken).ConfigureAwait(false); - var operation = new AppServiceArmOperation(Response.FromValue(new SiteDomainOwnershipIdentifierResource(Client, response), response.GetRawResponse())); + var uri = _siteDomainOwnershipIdentifierWebAppsRestClient.CreateCreateOrUpdateDomainOwnershipIdentifierRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, domainOwnershipIdentifierName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(Response.FromValue(new SiteDomainOwnershipIdentifierResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdat try { var response = _siteDomainOwnershipIdentifierWebAppsRestClient.CreateOrUpdateDomainOwnershipIdentifier(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, domainOwnershipIdentifierName, data, cancellationToken); - var operation = new AppServiceArmOperation(Response.FromValue(new SiteDomainOwnershipIdentifierResource(Client, response), response.GetRawResponse())); + var uri = _siteDomainOwnershipIdentifierWebAppsRestClient.CreateCreateOrUpdateDomainOwnershipIdentifierRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, domainOwnershipIdentifierName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(Response.FromValue(new SiteDomainOwnershipIdentifierResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteDomainOwnershipIdentifierResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteDomainOwnershipIdentifierResource.cs index 7cbba83b978b..953c2711e75b 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteDomainOwnershipIdentifierResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteDomainOwnershipIdentifierResource.cs @@ -200,7 +200,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _siteDomainOwnershipIdentifierWebAppsRestClient.DeleteDomainOwnershipIdentifierAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new AppServiceArmOperation(response); + var uri = _siteDomainOwnershipIdentifierWebAppsRestClient.CreateDeleteDomainOwnershipIdentifierRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -242,7 +244,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _siteDomainOwnershipIdentifierWebAppsRestClient.DeleteDomainOwnershipIdentifier(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new AppServiceArmOperation(response); + var uri = _siteDomainOwnershipIdentifierWebAppsRestClient.CreateDeleteDomainOwnershipIdentifierRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteFunctionResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteFunctionResource.cs index 032cee1b406a..10f60e5b24dc 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteFunctionResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteFunctionResource.cs @@ -201,7 +201,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _siteFunctionWebAppsRestClient.DeleteFunctionAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new AppServiceArmOperation(response); + var uri = _siteFunctionWebAppsRestClient.CreateDeleteFunctionRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -243,7 +245,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _siteFunctionWebAppsRestClient.DeleteFunction(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new AppServiceArmOperation(response); + var uri = _siteFunctionWebAppsRestClient.CreateDeleteFunctionRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteHostNameBindingCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteHostNameBindingCollection.cs index e3bfe3d7a1e1..a37dfe40b92a 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteHostNameBindingCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteHostNameBindingCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> CreateOrUpd try { var response = await _siteHostNameBindingWebAppsRestClient.CreateOrUpdateHostNameBindingAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, hostName, data, cancellationToken).ConfigureAwait(false); - var operation = new AppServiceArmOperation(Response.FromValue(new SiteHostNameBindingResource(Client, response), response.GetRawResponse())); + var uri = _siteHostNameBindingWebAppsRestClient.CreateCreateOrUpdateHostNameBindingRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, hostName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(Response.FromValue(new SiteHostNameBindingResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUnti try { var response = _siteHostNameBindingWebAppsRestClient.CreateOrUpdateHostNameBinding(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, hostName, data, cancellationToken); - var operation = new AppServiceArmOperation(Response.FromValue(new SiteHostNameBindingResource(Client, response), response.GetRawResponse())); + var uri = _siteHostNameBindingWebAppsRestClient.CreateCreateOrUpdateHostNameBindingRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, hostName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(Response.FromValue(new SiteHostNameBindingResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteHostNameBindingResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteHostNameBindingResource.cs index c7ef951f2c99..860170852327 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteHostNameBindingResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteHostNameBindingResource.cs @@ -200,7 +200,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _siteHostNameBindingWebAppsRestClient.DeleteHostNameBindingAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new AppServiceArmOperation(response); + var uri = _siteHostNameBindingWebAppsRestClient.CreateDeleteHostNameBindingRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -242,7 +244,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _siteHostNameBindingWebAppsRestClient.DeleteHostNameBinding(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new AppServiceArmOperation(response); + var uri = _siteHostNameBindingWebAppsRestClient.CreateDeleteHostNameBindingRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -288,7 +292,9 @@ public virtual async Task> UpdateAsync try { var response = await _siteHostNameBindingWebAppsRestClient.CreateOrUpdateHostNameBindingAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new AppServiceArmOperation(Response.FromValue(new SiteHostNameBindingResource(Client, response), response.GetRawResponse())); + var uri = _siteHostNameBindingWebAppsRestClient.CreateCreateOrUpdateHostNameBindingRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(Response.FromValue(new SiteHostNameBindingResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -334,7 +340,9 @@ public virtual ArmOperation Update(WaitUntil waitUn try { var response = _siteHostNameBindingWebAppsRestClient.CreateOrUpdateHostNameBinding(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new AppServiceArmOperation(Response.FromValue(new SiteHostNameBindingResource(Client, response), response.GetRawResponse())); + var uri = _siteHostNameBindingWebAppsRestClient.CreateCreateOrUpdateHostNameBindingRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(Response.FromValue(new SiteHostNameBindingResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteHybridConnectionNamespaceRelayCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteHybridConnectionNamespaceRelayCollection.cs index 9baf43d0aa84..7b5e6182caf0 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteHybridConnectionNamespaceRelayCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteHybridConnectionNamespaceRelayCollection.cs @@ -89,7 +89,9 @@ public virtual async Task(Response.FromValue(new SiteHybridConnectionNamespaceRelayResource(Client, response), response.GetRawResponse())); + var uri = _siteHybridConnectionNamespaceRelayWebAppsRestClient.CreateCreateOrUpdateHybridConnectionRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, namespaceName, relayName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(Response.FromValue(new SiteHybridConnectionNamespaceRelayResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -140,7 +142,9 @@ public virtual ArmOperation CreateOr try { var response = _siteHybridConnectionNamespaceRelayWebAppsRestClient.CreateOrUpdateHybridConnection(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, namespaceName, relayName, data, cancellationToken); - var operation = new AppServiceArmOperation(Response.FromValue(new SiteHybridConnectionNamespaceRelayResource(Client, response), response.GetRawResponse())); + var uri = _siteHybridConnectionNamespaceRelayWebAppsRestClient.CreateCreateOrUpdateHybridConnectionRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, namespaceName, relayName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(Response.FromValue(new SiteHybridConnectionNamespaceRelayResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteHybridConnectionNamespaceRelayResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteHybridConnectionNamespaceRelayResource.cs index 45c50c504499..59510f55b523 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteHybridConnectionNamespaceRelayResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteHybridConnectionNamespaceRelayResource.cs @@ -201,7 +201,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _siteHybridConnectionNamespaceRelayWebAppsRestClient.DeleteHybridConnectionAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new AppServiceArmOperation(response); + var uri = _siteHybridConnectionNamespaceRelayWebAppsRestClient.CreateDeleteHybridConnectionRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -243,7 +245,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _siteHybridConnectionNamespaceRelayWebAppsRestClient.DeleteHybridConnection(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new AppServiceArmOperation(response); + var uri = _siteHybridConnectionNamespaceRelayWebAppsRestClient.CreateDeleteHybridConnectionRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteInstanceProcessResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteInstanceProcessResource.cs index d08a3733f8b6..05c28aca66c7 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteInstanceProcessResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteInstanceProcessResource.cs @@ -273,7 +273,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _siteInstanceProcessWebAppsRestClient.DeleteInstanceProcessAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new AppServiceArmOperation(response); + var uri = _siteInstanceProcessWebAppsRestClient.CreateDeleteInstanceProcessRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -315,7 +317,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _siteInstanceProcessWebAppsRestClient.DeleteInstanceProcess(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new AppServiceArmOperation(response); + var uri = _siteInstanceProcessWebAppsRestClient.CreateDeleteInstanceProcessRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteNetworkConfigResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteNetworkConfigResource.cs index d597b25c8aa8..395f74314737 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteNetworkConfigResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteNetworkConfigResource.cs @@ -199,7 +199,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _siteNetworkConfigWebAppsRestClient.DeleteSwiftVirtualNetworkAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, cancellationToken).ConfigureAwait(false); - var operation = new AppServiceArmOperation(response); + var uri = _siteNetworkConfigWebAppsRestClient.CreateDeleteSwiftVirtualNetworkRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -241,7 +243,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _siteNetworkConfigWebAppsRestClient.DeleteSwiftVirtualNetwork(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, cancellationToken); - var operation = new AppServiceArmOperation(response); + var uri = _siteNetworkConfigWebAppsRestClient.CreateDeleteSwiftVirtualNetworkRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -374,7 +378,9 @@ public virtual async Task> CreateOrUpdat try { var response = await _siteNetworkConfigWebAppsRestClient.CreateOrUpdateSwiftVirtualNetworkConnectionWithCheckAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new AppServiceArmOperation(Response.FromValue(new SiteNetworkConfigResource(Client, response), response.GetRawResponse())); + var uri = _siteNetworkConfigWebAppsRestClient.CreateCreateOrUpdateSwiftVirtualNetworkConnectionWithCheckRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(Response.FromValue(new SiteNetworkConfigResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -421,7 +427,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil try { var response = _siteNetworkConfigWebAppsRestClient.CreateOrUpdateSwiftVirtualNetworkConnectionWithCheck(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, data, cancellationToken); - var operation = new AppServiceArmOperation(Response.FromValue(new SiteNetworkConfigResource(Client, response), response.GetRawResponse())); + var uri = _siteNetworkConfigWebAppsRestClient.CreateCreateOrUpdateSwiftVirtualNetworkConnectionWithCheckRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(Response.FromValue(new SiteNetworkConfigResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteProcessResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteProcessResource.cs index c2093209d72e..e3afe54b4aea 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteProcessResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteProcessResource.cs @@ -272,7 +272,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _siteProcessWebAppsRestClient.DeleteProcessAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new AppServiceArmOperation(response); + var uri = _siteProcessWebAppsRestClient.CreateDeleteProcessRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -314,7 +316,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _siteProcessWebAppsRestClient.DeleteProcess(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new AppServiceArmOperation(response); + var uri = _siteProcessWebAppsRestClient.CreateDeleteProcessRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SitePublicCertificateCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SitePublicCertificateCollection.cs index b08f532f4a93..38ccb818acae 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SitePublicCertificateCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SitePublicCertificateCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> CreateOrU try { var response = await _sitePublicCertificateWebAppsRestClient.CreateOrUpdatePublicCertificateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, publicCertificateName, data, cancellationToken).ConfigureAwait(false); - var operation = new AppServiceArmOperation(Response.FromValue(new SitePublicCertificateResource(Client, response), response.GetRawResponse())); + var uri = _sitePublicCertificateWebAppsRestClient.CreateCreateOrUpdatePublicCertificateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, publicCertificateName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(Response.FromValue(new SitePublicCertificateResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUn try { var response = _sitePublicCertificateWebAppsRestClient.CreateOrUpdatePublicCertificate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, publicCertificateName, data, cancellationToken); - var operation = new AppServiceArmOperation(Response.FromValue(new SitePublicCertificateResource(Client, response), response.GetRawResponse())); + var uri = _sitePublicCertificateWebAppsRestClient.CreateCreateOrUpdatePublicCertificateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, publicCertificateName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(Response.FromValue(new SitePublicCertificateResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SitePublicCertificateResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SitePublicCertificateResource.cs index 54b14a92cf70..d3987dc4cb74 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SitePublicCertificateResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SitePublicCertificateResource.cs @@ -200,7 +200,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _sitePublicCertificateWebAppsRestClient.DeletePublicCertificateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new AppServiceArmOperation(response); + var uri = _sitePublicCertificateWebAppsRestClient.CreateDeletePublicCertificateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -242,7 +244,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _sitePublicCertificateWebAppsRestClient.DeletePublicCertificate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new AppServiceArmOperation(response); + var uri = _sitePublicCertificateWebAppsRestClient.CreateDeletePublicCertificateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -288,7 +292,9 @@ public virtual async Task> UpdateAsy try { var response = await _sitePublicCertificateWebAppsRestClient.CreateOrUpdatePublicCertificateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new AppServiceArmOperation(Response.FromValue(new SitePublicCertificateResource(Client, response), response.GetRawResponse())); + var uri = _sitePublicCertificateWebAppsRestClient.CreateCreateOrUpdatePublicCertificateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(Response.FromValue(new SitePublicCertificateResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -334,7 +340,9 @@ public virtual ArmOperation Update(WaitUntil wait try { var response = _sitePublicCertificateWebAppsRestClient.CreateOrUpdatePublicCertificate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new AppServiceArmOperation(Response.FromValue(new SitePublicCertificateResource(Client, response), response.GetRawResponse())); + var uri = _sitePublicCertificateWebAppsRestClient.CreateCreateOrUpdatePublicCertificateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(Response.FromValue(new SitePublicCertificateResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotBackupResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotBackupResource.cs index 178e177e6107..02ed099a3f99 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotBackupResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotBackupResource.cs @@ -202,7 +202,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _siteSlotBackupWebAppsRestClient.DeleteBackupSlotAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new AppServiceArmOperation(response); + var uri = _siteSlotBackupWebAppsRestClient.CreateDeleteBackupSlotRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -244,7 +246,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _siteSlotBackupWebAppsRestClient.DeleteBackupSlot(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new AppServiceArmOperation(response); + var uri = _siteSlotBackupWebAppsRestClient.CreateDeleteBackupSlotRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotDeploymentCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotDeploymentCollection.cs index 6d3a590c8be9..8b339d47d5aa 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotDeploymentCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotDeploymentCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> CreateOrUpda try { var response = await _siteSlotDeploymentWebAppsRestClient.CreateDeploymentSlotAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, id, data, cancellationToken).ConfigureAwait(false); - var operation = new AppServiceArmOperation(Response.FromValue(new SiteSlotDeploymentResource(Client, response), response.GetRawResponse())); + var uri = _siteSlotDeploymentWebAppsRestClient.CreateCreateDeploymentSlotRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, id, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(Response.FromValue(new SiteSlotDeploymentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil try { var response = _siteSlotDeploymentWebAppsRestClient.CreateDeploymentSlot(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, id, data, cancellationToken); - var operation = new AppServiceArmOperation(Response.FromValue(new SiteSlotDeploymentResource(Client, response), response.GetRawResponse())); + var uri = _siteSlotDeploymentWebAppsRestClient.CreateCreateDeploymentSlotRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, id, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(Response.FromValue(new SiteSlotDeploymentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotDeploymentResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotDeploymentResource.cs index ff2b0b5c6194..7987af4a9a7e 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotDeploymentResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotDeploymentResource.cs @@ -201,7 +201,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _siteSlotDeploymentWebAppsRestClient.DeleteDeploymentSlotAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new AppServiceArmOperation(response); + var uri = _siteSlotDeploymentWebAppsRestClient.CreateDeleteDeploymentSlotRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -243,7 +245,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _siteSlotDeploymentWebAppsRestClient.DeleteDeploymentSlot(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new AppServiceArmOperation(response); + var uri = _siteSlotDeploymentWebAppsRestClient.CreateDeleteDeploymentSlotRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -289,7 +293,9 @@ public virtual async Task> UpdateAsync( try { var response = await _siteSlotDeploymentWebAppsRestClient.CreateDeploymentSlotAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new AppServiceArmOperation(Response.FromValue(new SiteSlotDeploymentResource(Client, response), response.GetRawResponse())); + var uri = _siteSlotDeploymentWebAppsRestClient.CreateCreateDeploymentSlotRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(Response.FromValue(new SiteSlotDeploymentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -335,7 +341,9 @@ public virtual ArmOperation Update(WaitUntil waitUnt try { var response = _siteSlotDeploymentWebAppsRestClient.CreateDeploymentSlot(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new AppServiceArmOperation(Response.FromValue(new SiteSlotDeploymentResource(Client, response), response.GetRawResponse())); + var uri = _siteSlotDeploymentWebAppsRestClient.CreateCreateDeploymentSlotRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(Response.FromValue(new SiteSlotDeploymentResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotDomainOwnershipIdentifierCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotDomainOwnershipIdentifierCollection.cs index 682c1d1fb639..42aa37e080de 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotDomainOwnershipIdentifierCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotDomainOwnershipIdentifierCollection.cs @@ -90,7 +90,9 @@ public virtual async Task(Response.FromValue(new SiteSlotDomainOwnershipIdentifierResource(Client, response), response.GetRawResponse())); + var uri = _siteSlotDomainOwnershipIdentifierWebAppsRestClient.CreateCreateOrUpdateDomainOwnershipIdentifierSlotRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, domainOwnershipIdentifierName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(Response.FromValue(new SiteSlotDomainOwnershipIdentifierResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrU try { var response = _siteSlotDomainOwnershipIdentifierWebAppsRestClient.CreateOrUpdateDomainOwnershipIdentifierSlot(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, domainOwnershipIdentifierName, data, cancellationToken); - var operation = new AppServiceArmOperation(Response.FromValue(new SiteSlotDomainOwnershipIdentifierResource(Client, response), response.GetRawResponse())); + var uri = _siteSlotDomainOwnershipIdentifierWebAppsRestClient.CreateCreateOrUpdateDomainOwnershipIdentifierSlotRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, domainOwnershipIdentifierName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(Response.FromValue(new SiteSlotDomainOwnershipIdentifierResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotDomainOwnershipIdentifierResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotDomainOwnershipIdentifierResource.cs index 96c19fb845a1..316d980ba937 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotDomainOwnershipIdentifierResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotDomainOwnershipIdentifierResource.cs @@ -201,7 +201,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _siteSlotDomainOwnershipIdentifierWebAppsRestClient.DeleteDomainOwnershipIdentifierSlotAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new AppServiceArmOperation(response); + var uri = _siteSlotDomainOwnershipIdentifierWebAppsRestClient.CreateDeleteDomainOwnershipIdentifierSlotRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -243,7 +245,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _siteSlotDomainOwnershipIdentifierWebAppsRestClient.DeleteDomainOwnershipIdentifierSlot(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new AppServiceArmOperation(response); + var uri = _siteSlotDomainOwnershipIdentifierWebAppsRestClient.CreateDeleteDomainOwnershipIdentifierSlotRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotFunctionResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotFunctionResource.cs index ec1b969c28ae..6d40e897a340 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotFunctionResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotFunctionResource.cs @@ -202,7 +202,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _siteSlotFunctionWebAppsRestClient.DeleteInstanceFunctionSlotAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new AppServiceArmOperation(response); + var uri = _siteSlotFunctionWebAppsRestClient.CreateDeleteInstanceFunctionSlotRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -244,7 +246,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _siteSlotFunctionWebAppsRestClient.DeleteInstanceFunctionSlot(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new AppServiceArmOperation(response); + var uri = _siteSlotFunctionWebAppsRestClient.CreateDeleteInstanceFunctionSlotRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotHostNameBindingCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotHostNameBindingCollection.cs index 27403b7ea611..a0ecada42e30 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotHostNameBindingCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotHostNameBindingCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> CreateO try { var response = await _siteSlotHostNameBindingWebAppsRestClient.CreateOrUpdateHostNameBindingSlotAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, hostName, data, cancellationToken).ConfigureAwait(false); - var operation = new AppServiceArmOperation(Response.FromValue(new SiteSlotHostNameBindingResource(Client, response), response.GetRawResponse())); + var uri = _siteSlotHostNameBindingWebAppsRestClient.CreateCreateOrUpdateHostNameBindingSlotRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, hostName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(Response.FromValue(new SiteSlotHostNameBindingResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate(Wait try { var response = _siteSlotHostNameBindingWebAppsRestClient.CreateOrUpdateHostNameBindingSlot(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, hostName, data, cancellationToken); - var operation = new AppServiceArmOperation(Response.FromValue(new SiteSlotHostNameBindingResource(Client, response), response.GetRawResponse())); + var uri = _siteSlotHostNameBindingWebAppsRestClient.CreateCreateOrUpdateHostNameBindingSlotRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, hostName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(Response.FromValue(new SiteSlotHostNameBindingResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotHostNameBindingResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotHostNameBindingResource.cs index 6bc3f7fdd242..c9b22b066a4d 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotHostNameBindingResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotHostNameBindingResource.cs @@ -201,7 +201,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _siteSlotHostNameBindingWebAppsRestClient.DeleteHostNameBindingSlotAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new AppServiceArmOperation(response); + var uri = _siteSlotHostNameBindingWebAppsRestClient.CreateDeleteHostNameBindingSlotRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -243,7 +245,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _siteSlotHostNameBindingWebAppsRestClient.DeleteHostNameBindingSlot(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new AppServiceArmOperation(response); + var uri = _siteSlotHostNameBindingWebAppsRestClient.CreateDeleteHostNameBindingSlotRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -289,7 +293,9 @@ public virtual async Task> UpdateA try { var response = await _siteSlotHostNameBindingWebAppsRestClient.CreateOrUpdateHostNameBindingSlotAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new AppServiceArmOperation(Response.FromValue(new SiteSlotHostNameBindingResource(Client, response), response.GetRawResponse())); + var uri = _siteSlotHostNameBindingWebAppsRestClient.CreateCreateOrUpdateHostNameBindingSlotRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(Response.FromValue(new SiteSlotHostNameBindingResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -335,7 +341,9 @@ public virtual ArmOperation Update(WaitUntil wa try { var response = _siteSlotHostNameBindingWebAppsRestClient.CreateOrUpdateHostNameBindingSlot(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new AppServiceArmOperation(Response.FromValue(new SiteSlotHostNameBindingResource(Client, response), response.GetRawResponse())); + var uri = _siteSlotHostNameBindingWebAppsRestClient.CreateCreateOrUpdateHostNameBindingSlotRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(Response.FromValue(new SiteSlotHostNameBindingResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotHybridConnectionNamespaceRelayCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotHybridConnectionNamespaceRelayCollection.cs index 38bd562fe7a9..4ea54a202c87 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotHybridConnectionNamespaceRelayCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotHybridConnectionNamespaceRelayCollection.cs @@ -89,7 +89,9 @@ public virtual async Task(Response.FromValue(new SiteSlotHybridConnectionNamespaceRelayResource(Client, response), response.GetRawResponse())); + var uri = _siteSlotHybridConnectionNamespaceRelayWebAppsRestClient.CreateCreateOrUpdateHybridConnectionSlotRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, namespaceName, relayName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(Response.FromValue(new SiteSlotHybridConnectionNamespaceRelayResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -140,7 +142,9 @@ public virtual ArmOperation Crea try { var response = _siteSlotHybridConnectionNamespaceRelayWebAppsRestClient.CreateOrUpdateHybridConnectionSlot(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, namespaceName, relayName, data, cancellationToken); - var operation = new AppServiceArmOperation(Response.FromValue(new SiteSlotHybridConnectionNamespaceRelayResource(Client, response), response.GetRawResponse())); + var uri = _siteSlotHybridConnectionNamespaceRelayWebAppsRestClient.CreateCreateOrUpdateHybridConnectionSlotRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, namespaceName, relayName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(Response.FromValue(new SiteSlotHybridConnectionNamespaceRelayResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotHybridConnectionNamespaceRelayResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotHybridConnectionNamespaceRelayResource.cs index 53878befce29..99a869516e8d 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotHybridConnectionNamespaceRelayResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotHybridConnectionNamespaceRelayResource.cs @@ -202,7 +202,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _siteSlotHybridConnectionNamespaceRelayWebAppsRestClient.DeleteHybridConnectionSlotAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new AppServiceArmOperation(response); + var uri = _siteSlotHybridConnectionNamespaceRelayWebAppsRestClient.CreateDeleteHybridConnectionSlotRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -244,7 +246,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _siteSlotHybridConnectionNamespaceRelayWebAppsRestClient.DeleteHybridConnectionSlot(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new AppServiceArmOperation(response); + var uri = _siteSlotHybridConnectionNamespaceRelayWebAppsRestClient.CreateDeleteHybridConnectionSlotRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotInstanceProcessResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotInstanceProcessResource.cs index d44da1426348..9f44248f3797 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotInstanceProcessResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotInstanceProcessResource.cs @@ -274,7 +274,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _siteSlotInstanceProcessWebAppsRestClient.DeleteInstanceProcessSlotAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new AppServiceArmOperation(response); + var uri = _siteSlotInstanceProcessWebAppsRestClient.CreateDeleteInstanceProcessSlotRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -316,7 +318,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _siteSlotInstanceProcessWebAppsRestClient.DeleteInstanceProcessSlot(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new AppServiceArmOperation(response); + var uri = _siteSlotInstanceProcessWebAppsRestClient.CreateDeleteInstanceProcessSlotRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotNetworkConfigResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotNetworkConfigResource.cs index c7a3d33f635a..a69ead7b3f5d 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotNetworkConfigResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotNetworkConfigResource.cs @@ -200,7 +200,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _siteSlotNetworkConfigWebAppsRestClient.DeleteSwiftVirtualNetworkSlotAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, cancellationToken).ConfigureAwait(false); - var operation = new AppServiceArmOperation(response); + var uri = _siteSlotNetworkConfigWebAppsRestClient.CreateDeleteSwiftVirtualNetworkSlotRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -242,7 +244,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _siteSlotNetworkConfigWebAppsRestClient.DeleteSwiftVirtualNetworkSlot(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, cancellationToken); - var operation = new AppServiceArmOperation(response); + var uri = _siteSlotNetworkConfigWebAppsRestClient.CreateDeleteSwiftVirtualNetworkSlotRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -375,7 +379,9 @@ public virtual async Task> CreateOrU try { var response = await _siteSlotNetworkConfigWebAppsRestClient.CreateOrUpdateSwiftVirtualNetworkConnectionWithCheckSlotAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new AppServiceArmOperation(Response.FromValue(new SiteSlotNetworkConfigResource(Client, response), response.GetRawResponse())); + var uri = _siteSlotNetworkConfigWebAppsRestClient.CreateCreateOrUpdateSwiftVirtualNetworkConnectionWithCheckSlotRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(Response.FromValue(new SiteSlotNetworkConfigResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -422,7 +428,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUn try { var response = _siteSlotNetworkConfigWebAppsRestClient.CreateOrUpdateSwiftVirtualNetworkConnectionWithCheckSlot(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, data, cancellationToken); - var operation = new AppServiceArmOperation(Response.FromValue(new SiteSlotNetworkConfigResource(Client, response), response.GetRawResponse())); + var uri = _siteSlotNetworkConfigWebAppsRestClient.CreateCreateOrUpdateSwiftVirtualNetworkConnectionWithCheckSlotRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(Response.FromValue(new SiteSlotNetworkConfigResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotProcessResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotProcessResource.cs index ca4888b477bb..36fb51ba1f87 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotProcessResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotProcessResource.cs @@ -273,7 +273,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _siteSlotProcessWebAppsRestClient.DeleteProcessSlotAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new AppServiceArmOperation(response); + var uri = _siteSlotProcessWebAppsRestClient.CreateDeleteProcessSlotRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -315,7 +317,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _siteSlotProcessWebAppsRestClient.DeleteProcessSlot(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new AppServiceArmOperation(response); + var uri = _siteSlotProcessWebAppsRestClient.CreateDeleteProcessSlotRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotVirtualNetworkConnectionCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotVirtualNetworkConnectionCollection.cs index 0be6df6f00bb..d95f0dcf9ac9 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotVirtualNetworkConnectionCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotVirtualNetworkConnectionCollection.cs @@ -90,7 +90,9 @@ public virtual async Task try { var response = await _siteSlotVirtualNetworkConnectionWebAppsRestClient.CreateOrUpdateVnetConnectionSlotAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, vnetName, data, cancellationToken).ConfigureAwait(false); - var operation = new AppServiceArmOperation(Response.FromValue(new SiteSlotVirtualNetworkConnectionResource(Client, response), response.GetRawResponse())); + var uri = _siteSlotVirtualNetworkConnectionWebAppsRestClient.CreateCreateOrUpdateVnetConnectionSlotRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, vnetName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(Response.FromValue(new SiteSlotVirtualNetworkConnectionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUp try { var response = _siteSlotVirtualNetworkConnectionWebAppsRestClient.CreateOrUpdateVnetConnectionSlot(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, vnetName, data, cancellationToken); - var operation = new AppServiceArmOperation(Response.FromValue(new SiteSlotVirtualNetworkConnectionResource(Client, response), response.GetRawResponse())); + var uri = _siteSlotVirtualNetworkConnectionWebAppsRestClient.CreateCreateOrUpdateVnetConnectionSlotRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, vnetName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(Response.FromValue(new SiteSlotVirtualNetworkConnectionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotVirtualNetworkConnectionGatewayCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotVirtualNetworkConnectionGatewayCollection.cs index 186aa52b8bba..27bf980ec292 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotVirtualNetworkConnectionGatewayCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotVirtualNetworkConnectionGatewayCollection.cs @@ -87,7 +87,9 @@ public virtual async Task(Response.FromValue(new SiteSlotVirtualNetworkConnectionGatewayResource(Client, response), response.GetRawResponse())); + var uri = _siteSlotVirtualNetworkConnectionGatewayWebAppsRestClient.CreateCreateOrUpdateVnetConnectionGatewaySlotRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, gatewayName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(Response.FromValue(new SiteSlotVirtualNetworkConnectionGatewayResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -136,7 +138,9 @@ public virtual ArmOperation Cre try { var response = _siteSlotVirtualNetworkConnectionGatewayWebAppsRestClient.CreateOrUpdateVnetConnectionGatewaySlot(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, gatewayName, data, cancellationToken); - var operation = new AppServiceArmOperation(Response.FromValue(new SiteSlotVirtualNetworkConnectionGatewayResource(Client, response), response.GetRawResponse())); + var uri = _siteSlotVirtualNetworkConnectionGatewayWebAppsRestClient.CreateCreateOrUpdateVnetConnectionGatewaySlotRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, gatewayName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(Response.FromValue(new SiteSlotVirtualNetworkConnectionGatewayResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotVirtualNetworkConnectionResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotVirtualNetworkConnectionResource.cs index 9283da916352..f34b60572072 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotVirtualNetworkConnectionResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotVirtualNetworkConnectionResource.cs @@ -270,7 +270,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _siteSlotVirtualNetworkConnectionWebAppsRestClient.DeleteVnetConnectionSlotAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new AppServiceArmOperation(response); + var uri = _siteSlotVirtualNetworkConnectionWebAppsRestClient.CreateDeleteVnetConnectionSlotRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -312,7 +314,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _siteSlotVirtualNetworkConnectionWebAppsRestClient.DeleteVnetConnectionSlot(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new AppServiceArmOperation(response); + var uri = _siteSlotVirtualNetworkConnectionWebAppsRestClient.CreateDeleteVnetConnectionSlotRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteVirtualNetworkConnectionCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteVirtualNetworkConnectionCollection.cs index b8272382a818..a642853ad0b1 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteVirtualNetworkConnectionCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteVirtualNetworkConnectionCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> Cr try { var response = await _siteVirtualNetworkConnectionWebAppsRestClient.CreateOrUpdateVnetConnectionAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, vnetName, data, cancellationToken).ConfigureAwait(false); - var operation = new AppServiceArmOperation(Response.FromValue(new SiteVirtualNetworkConnectionResource(Client, response), response.GetRawResponse())); + var uri = _siteVirtualNetworkConnectionWebAppsRestClient.CreateCreateOrUpdateVnetConnectionRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, vnetName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(Response.FromValue(new SiteVirtualNetworkConnectionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate try { var response = _siteVirtualNetworkConnectionWebAppsRestClient.CreateOrUpdateVnetConnection(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, vnetName, data, cancellationToken); - var operation = new AppServiceArmOperation(Response.FromValue(new SiteVirtualNetworkConnectionResource(Client, response), response.GetRawResponse())); + var uri = _siteVirtualNetworkConnectionWebAppsRestClient.CreateCreateOrUpdateVnetConnectionRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, vnetName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(Response.FromValue(new SiteVirtualNetworkConnectionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteVirtualNetworkConnectionGatewayCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteVirtualNetworkConnectionGatewayCollection.cs index 623ceab10580..e6f9cce74521 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteVirtualNetworkConnectionGatewayCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteVirtualNetworkConnectionGatewayCollection.cs @@ -87,7 +87,9 @@ public virtual async Task(Response.FromValue(new SiteVirtualNetworkConnectionGatewayResource(Client, response), response.GetRawResponse())); + var uri = _siteVirtualNetworkConnectionGatewayWebAppsRestClient.CreateCreateOrUpdateVnetConnectionGatewayRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, gatewayName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(Response.FromValue(new SiteVirtualNetworkConnectionGatewayResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -136,7 +138,9 @@ public virtual ArmOperation CreateO try { var response = _siteVirtualNetworkConnectionGatewayWebAppsRestClient.CreateOrUpdateVnetConnectionGateway(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, gatewayName, data, cancellationToken); - var operation = new AppServiceArmOperation(Response.FromValue(new SiteVirtualNetworkConnectionGatewayResource(Client, response), response.GetRawResponse())); + var uri = _siteVirtualNetworkConnectionGatewayWebAppsRestClient.CreateCreateOrUpdateVnetConnectionGatewayRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, gatewayName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(Response.FromValue(new SiteVirtualNetworkConnectionGatewayResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteVirtualNetworkConnectionResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteVirtualNetworkConnectionResource.cs index 89955bab6355..651d930d1f30 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteVirtualNetworkConnectionResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteVirtualNetworkConnectionResource.cs @@ -269,7 +269,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _siteVirtualNetworkConnectionWebAppsRestClient.DeleteVnetConnectionAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new AppServiceArmOperation(response); + var uri = _siteVirtualNetworkConnectionWebAppsRestClient.CreateDeleteVnetConnectionRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -311,7 +313,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _siteVirtualNetworkConnectionWebAppsRestClient.DeleteVnetConnection(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new AppServiceArmOperation(response); + var uri = _siteVirtualNetworkConnectionWebAppsRestClient.CreateDeleteVnetConnectionRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SlotConfigNamesResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SlotConfigNamesResource.cs index df362f908bcf..424a1d44a11b 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SlotConfigNamesResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SlotConfigNamesResource.cs @@ -203,7 +203,9 @@ public virtual async Task> CreateOrUpdateA try { var response = await _slotConfigNamesResourceWebAppsRestClient.UpdateSlotConfigurationNamesAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new AppServiceArmOperation(Response.FromValue(new SlotConfigNamesResource(Client, response), response.GetRawResponse())); + var uri = _slotConfigNamesResourceWebAppsRestClient.CreateUpdateSlotConfigurationNamesRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(Response.FromValue(new SlotConfigNamesResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -249,7 +251,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wa try { var response = _slotConfigNamesResourceWebAppsRestClient.UpdateSlotConfigurationNames(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, data, cancellationToken); - var operation = new AppServiceArmOperation(Response.FromValue(new SlotConfigNamesResource(Client, response), response.GetRawResponse())); + var uri = _slotConfigNamesResourceWebAppsRestClient.CreateUpdateSlotConfigurationNamesRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(Response.FromValue(new SlotConfigNamesResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteBuildUserProvidedFunctionAppResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteBuildUserProvidedFunctionAppResource.cs index d04aeed56d39..55fb8c92fba6 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteBuildUserProvidedFunctionAppResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteBuildUserProvidedFunctionAppResource.cs @@ -201,7 +201,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _staticSiteBuildUserProvidedFunctionAppStaticSitesRestClient.DetachUserProvidedFunctionAppFromStaticSiteBuildAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new AppServiceArmOperation(response); + var uri = _staticSiteBuildUserProvidedFunctionAppStaticSitesRestClient.CreateDetachUserProvidedFunctionAppFromStaticSiteBuildRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -243,7 +245,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _staticSiteBuildUserProvidedFunctionAppStaticSitesRestClient.DetachUserProvidedFunctionAppFromStaticSiteBuild(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new AppServiceArmOperation(response); + var uri = _staticSiteBuildUserProvidedFunctionAppStaticSitesRestClient.CreateDetachUserProvidedFunctionAppFromStaticSiteBuildRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteUserProvidedFunctionAppResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteUserProvidedFunctionAppResource.cs index 77b83b0bd7ae..72a1b6e35d71 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteUserProvidedFunctionAppResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteUserProvidedFunctionAppResource.cs @@ -200,7 +200,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _staticSiteUserProvidedFunctionAppStaticSitesRestClient.DetachUserProvidedFunctionAppFromStaticSiteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new AppServiceArmOperation(response); + var uri = _staticSiteUserProvidedFunctionAppStaticSitesRestClient.CreateDetachUserProvidedFunctionAppFromStaticSiteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -242,7 +244,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _staticSiteUserProvidedFunctionAppStaticSitesRestClient.DetachUserProvidedFunctionAppFromStaticSite(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new AppServiceArmOperation(response); + var uri = _staticSiteUserProvidedFunctionAppStaticSitesRestClient.CreateDetachUserProvidedFunctionAppFromStaticSiteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteConfigResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteConfigResource.cs index b75400dd19ad..60af045a894d 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteConfigResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteConfigResource.cs @@ -363,7 +363,9 @@ public virtual async Task> CreateOrUpdateAsy try { var response = await _webSiteConfigWebAppsRestClient.CreateOrUpdateConfigurationAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new AppServiceArmOperation(Response.FromValue(new WebSiteConfigResource(Client, response), response.GetRawResponse())); + var uri = _webSiteConfigWebAppsRestClient.CreateCreateOrUpdateConfigurationRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(Response.FromValue(new WebSiteConfigResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -409,7 +411,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wait try { var response = _webSiteConfigWebAppsRestClient.CreateOrUpdateConfiguration(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, data, cancellationToken); - var operation = new AppServiceArmOperation(Response.FromValue(new WebSiteConfigResource(Client, response), response.GetRawResponse())); + var uri = _webSiteConfigWebAppsRestClient.CreateCreateOrUpdateConfigurationRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(Response.FromValue(new WebSiteConfigResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteContinuousWebJobResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteContinuousWebJobResource.cs index f23261a71850..cf91c920759a 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteContinuousWebJobResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteContinuousWebJobResource.cs @@ -200,7 +200,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _webSiteContinuousWebJobWebAppsRestClient.DeleteContinuousWebJobAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new AppServiceArmOperation(response); + var uri = _webSiteContinuousWebJobWebAppsRestClient.CreateDeleteContinuousWebJobRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -242,7 +244,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _webSiteContinuousWebJobWebAppsRestClient.DeleteContinuousWebJob(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new AppServiceArmOperation(response); + var uri = _webSiteContinuousWebJobWebAppsRestClient.CreateDeleteContinuousWebJobRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteExtensionResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteExtensionResource.cs index 6229d60192ca..4383df3970b3 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteExtensionResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteExtensionResource.cs @@ -200,7 +200,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _webSiteExtensionWebAppsRestClient.DeleteSiteExtensionAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new AppServiceArmOperation(response); + var uri = _webSiteExtensionWebAppsRestClient.CreateDeleteSiteExtensionRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -242,7 +244,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _webSiteExtensionWebAppsRestClient.DeleteSiteExtension(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new AppServiceArmOperation(response); + var uri = _webSiteExtensionWebAppsRestClient.CreateDeleteSiteExtensionRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteFtpPublishingCredentialsPolicyResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteFtpPublishingCredentialsPolicyResource.cs index d4afd1add8da..e55f697b126b 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteFtpPublishingCredentialsPolicyResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteFtpPublishingCredentialsPolicyResource.cs @@ -203,7 +203,9 @@ public virtual async Task(Response.FromValue(new WebSiteFtpPublishingCredentialsPolicyResource(Client, response), response.GetRawResponse())); + var uri = _webSiteFtpPublishingCredentialsPolicyWebAppsRestClient.CreateUpdateFtpAllowedRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(Response.FromValue(new WebSiteFtpPublishingCredentialsPolicyResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -249,7 +251,9 @@ public virtual ArmOperation Creat try { var response = _webSiteFtpPublishingCredentialsPolicyWebAppsRestClient.UpdateFtpAllowed(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, data, cancellationToken); - var operation = new AppServiceArmOperation(Response.FromValue(new WebSiteFtpPublishingCredentialsPolicyResource(Client, response), response.GetRawResponse())); + var uri = _webSiteFtpPublishingCredentialsPolicyWebAppsRestClient.CreateUpdateFtpAllowedRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(Response.FromValue(new WebSiteFtpPublishingCredentialsPolicyResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteHybridConnectionCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteHybridConnectionCollection.cs index 420ba7531d7f..e33d91771bdc 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteHybridConnectionCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteHybridConnectionCollection.cs @@ -87,7 +87,9 @@ public virtual async Task> CreateO try { var response = await _webSiteHybridConnectionWebAppsRestClient.CreateOrUpdateRelayServiceConnectionAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, entityName, data, cancellationToken).ConfigureAwait(false); - var operation = new AppServiceArmOperation(Response.FromValue(new WebSiteHybridConnectionResource(Client, response), response.GetRawResponse())); + var uri = _webSiteHybridConnectionWebAppsRestClient.CreateCreateOrUpdateRelayServiceConnectionRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, entityName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(Response.FromValue(new WebSiteHybridConnectionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -136,7 +138,9 @@ public virtual ArmOperation CreateOrUpdate(Wait try { var response = _webSiteHybridConnectionWebAppsRestClient.CreateOrUpdateRelayServiceConnection(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, entityName, data, cancellationToken); - var operation = new AppServiceArmOperation(Response.FromValue(new WebSiteHybridConnectionResource(Client, response), response.GetRawResponse())); + var uri = _webSiteHybridConnectionWebAppsRestClient.CreateCreateOrUpdateRelayServiceConnectionRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, entityName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(Response.FromValue(new WebSiteHybridConnectionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteHybridConnectionResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteHybridConnectionResource.cs index c6f0cfea4202..09f27233be47 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteHybridConnectionResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteHybridConnectionResource.cs @@ -200,7 +200,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _webSiteHybridConnectionWebAppsRestClient.DeleteRelayServiceConnectionAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new AppServiceArmOperation(response); + var uri = _webSiteHybridConnectionWebAppsRestClient.CreateDeleteRelayServiceConnectionRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -242,7 +244,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _webSiteHybridConnectionWebAppsRestClient.DeleteRelayServiceConnection(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new AppServiceArmOperation(response); + var uri = _webSiteHybridConnectionWebAppsRestClient.CreateDeleteRelayServiceConnectionRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSitePremierAddonCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSitePremierAddonCollection.cs index b4dc5bd90fff..4ac28b9c260c 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSitePremierAddonCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSitePremierAddonCollection.cs @@ -87,7 +87,9 @@ public virtual async Task> CreateOrUpd try { var response = await _webSitePremierAddonWebAppsRestClient.AddPremierAddOnAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, premierAddOnName, data, cancellationToken).ConfigureAwait(false); - var operation = new AppServiceArmOperation(Response.FromValue(new WebSitePremierAddonResource(Client, response), response.GetRawResponse())); + var uri = _webSitePremierAddonWebAppsRestClient.CreateAddPremierAddOnRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, premierAddOnName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(Response.FromValue(new WebSitePremierAddonResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -136,7 +138,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUnti try { var response = _webSitePremierAddonWebAppsRestClient.AddPremierAddOn(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, premierAddOnName, data, cancellationToken); - var operation = new AppServiceArmOperation(Response.FromValue(new WebSitePremierAddonResource(Client, response), response.GetRawResponse())); + var uri = _webSitePremierAddonWebAppsRestClient.CreateAddPremierAddOnRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, premierAddOnName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(Response.FromValue(new WebSitePremierAddonResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSitePremierAddonResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSitePremierAddonResource.cs index d30c833032e4..fcbeed4a6aa1 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSitePremierAddonResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSitePremierAddonResource.cs @@ -201,7 +201,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _webSitePremierAddonWebAppsRestClient.DeletePremierAddOnAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new AppServiceArmOperation(response); + var uri = _webSitePremierAddonWebAppsRestClient.CreateDeletePremierAddOnRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -243,7 +245,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _webSitePremierAddonWebAppsRestClient.DeletePremierAddOn(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new AppServiceArmOperation(response); + var uri = _webSitePremierAddonWebAppsRestClient.CreateDeletePremierAddOnRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSitePrivateAccessResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSitePrivateAccessResource.cs index a86fd57a533d..e7bc95511b47 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSitePrivateAccessResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSitePrivateAccessResource.cs @@ -203,7 +203,9 @@ public virtual async Task> CreateOrUp try { var response = await _webSitePrivateAccessWebAppsRestClient.PutPrivateAccessVnetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new AppServiceArmOperation(Response.FromValue(new WebSitePrivateAccessResource(Client, response), response.GetRawResponse())); + var uri = _webSitePrivateAccessWebAppsRestClient.CreatePutPrivateAccessVnetRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(Response.FromValue(new WebSitePrivateAccessResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -249,7 +251,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUnt try { var response = _webSitePrivateAccessWebAppsRestClient.PutPrivateAccessVnet(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, data, cancellationToken); - var operation = new AppServiceArmOperation(Response.FromValue(new WebSitePrivateAccessResource(Client, response), response.GetRawResponse())); + var uri = _webSitePrivateAccessWebAppsRestClient.CreatePutPrivateAccessVnetRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(Response.FromValue(new WebSitePrivateAccessResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteResource.cs index 1da907040d00..35e6172e5d6b 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteResource.cs @@ -1884,7 +1884,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, bool? d try { var response = await _webSiteWebAppsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, deleteMetrics, deleteEmptyServerFarm, cancellationToken).ConfigureAwait(false); - var operation = new AppServiceArmOperation(response); + var uri = _webSiteWebAppsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, deleteMetrics, deleteEmptyServerFarm); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -1928,7 +1930,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, bool? deleteMetrics = nu try { var response = _webSiteWebAppsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, deleteMetrics, deleteEmptyServerFarm, cancellationToken); - var operation = new AppServiceArmOperation(response); + var uri = _webSiteWebAppsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, deleteMetrics, deleteEmptyServerFarm); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotConfigResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotConfigResource.cs index 3c87260b83e4..645b3f9dd917 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotConfigResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotConfigResource.cs @@ -364,7 +364,9 @@ public virtual async Task> CreateOrUpdat try { var response = await _webSiteSlotConfigWebAppsRestClient.CreateOrUpdateConfigurationSlotAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new AppServiceArmOperation(Response.FromValue(new WebSiteSlotConfigResource(Client, response), response.GetRawResponse())); + var uri = _webSiteSlotConfigWebAppsRestClient.CreateCreateOrUpdateConfigurationSlotRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(Response.FromValue(new WebSiteSlotConfigResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -410,7 +412,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil try { var response = _webSiteSlotConfigWebAppsRestClient.CreateOrUpdateConfigurationSlot(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, data, cancellationToken); - var operation = new AppServiceArmOperation(Response.FromValue(new WebSiteSlotConfigResource(Client, response), response.GetRawResponse())); + var uri = _webSiteSlotConfigWebAppsRestClient.CreateCreateOrUpdateConfigurationSlotRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(Response.FromValue(new WebSiteSlotConfigResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotContinuousWebJobResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotContinuousWebJobResource.cs index 99933c59911f..bcb33cb6b34b 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotContinuousWebJobResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotContinuousWebJobResource.cs @@ -201,7 +201,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _webSiteSlotContinuousWebJobWebAppsRestClient.DeleteContinuousWebJobSlotAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new AppServiceArmOperation(response); + var uri = _webSiteSlotContinuousWebJobWebAppsRestClient.CreateDeleteContinuousWebJobSlotRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -243,7 +245,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _webSiteSlotContinuousWebJobWebAppsRestClient.DeleteContinuousWebJobSlot(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new AppServiceArmOperation(response); + var uri = _webSiteSlotContinuousWebJobWebAppsRestClient.CreateDeleteContinuousWebJobSlotRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotExtensionResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotExtensionResource.cs index 91489270655b..f44c3b7818a2 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotExtensionResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotExtensionResource.cs @@ -201,7 +201,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _webSiteSlotExtensionWebAppsRestClient.DeleteSiteExtensionSlotAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new AppServiceArmOperation(response); + var uri = _webSiteSlotExtensionWebAppsRestClient.CreateDeleteSiteExtensionSlotRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -243,7 +245,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _webSiteSlotExtensionWebAppsRestClient.DeleteSiteExtensionSlot(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new AppServiceArmOperation(response); + var uri = _webSiteSlotExtensionWebAppsRestClient.CreateDeleteSiteExtensionSlotRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotFtpPublishingCredentialsPolicyResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotFtpPublishingCredentialsPolicyResource.cs index 87a08a88dad2..ab57f97d61b4 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotFtpPublishingCredentialsPolicyResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotFtpPublishingCredentialsPolicyResource.cs @@ -204,7 +204,9 @@ public virtual async Task(Response.FromValue(new WebSiteSlotFtpPublishingCredentialsPolicyResource(Client, response), response.GetRawResponse())); + var uri = _webSiteSlotFtpPublishingCredentialsPolicyWebAppsRestClient.CreateUpdateFtpAllowedSlotRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(Response.FromValue(new WebSiteSlotFtpPublishingCredentialsPolicyResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -250,7 +252,9 @@ public virtual ArmOperation C try { var response = _webSiteSlotFtpPublishingCredentialsPolicyWebAppsRestClient.UpdateFtpAllowedSlot(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, data, cancellationToken); - var operation = new AppServiceArmOperation(Response.FromValue(new WebSiteSlotFtpPublishingCredentialsPolicyResource(Client, response), response.GetRawResponse())); + var uri = _webSiteSlotFtpPublishingCredentialsPolicyWebAppsRestClient.CreateUpdateFtpAllowedSlotRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(Response.FromValue(new WebSiteSlotFtpPublishingCredentialsPolicyResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotHybridConnectionCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotHybridConnectionCollection.cs index b1153173782d..933e512291e2 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotHybridConnectionCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotHybridConnectionCollection.cs @@ -87,7 +87,9 @@ public virtual async Task> Cre try { var response = await _webSiteSlotHybridConnectionWebAppsRestClient.CreateOrUpdateRelayServiceConnectionSlotAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, entityName, data, cancellationToken).ConfigureAwait(false); - var operation = new AppServiceArmOperation(Response.FromValue(new WebSiteSlotHybridConnectionResource(Client, response), response.GetRawResponse())); + var uri = _webSiteSlotHybridConnectionWebAppsRestClient.CreateCreateOrUpdateRelayServiceConnectionSlotRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, entityName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(Response.FromValue(new WebSiteSlotHybridConnectionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -136,7 +138,9 @@ public virtual ArmOperation CreateOrUpdate( try { var response = _webSiteSlotHybridConnectionWebAppsRestClient.CreateOrUpdateRelayServiceConnectionSlot(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, entityName, data, cancellationToken); - var operation = new AppServiceArmOperation(Response.FromValue(new WebSiteSlotHybridConnectionResource(Client, response), response.GetRawResponse())); + var uri = _webSiteSlotHybridConnectionWebAppsRestClient.CreateCreateOrUpdateRelayServiceConnectionSlotRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, entityName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(Response.FromValue(new WebSiteSlotHybridConnectionResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotHybridConnectionResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotHybridConnectionResource.cs index 872b1b54f2e5..827acad8eea5 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotHybridConnectionResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotHybridConnectionResource.cs @@ -201,7 +201,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _webSiteSlotHybridConnectionWebAppsRestClient.DeleteRelayServiceConnectionSlotAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new AppServiceArmOperation(response); + var uri = _webSiteSlotHybridConnectionWebAppsRestClient.CreateDeleteRelayServiceConnectionSlotRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -243,7 +245,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _webSiteSlotHybridConnectionWebAppsRestClient.DeleteRelayServiceConnectionSlot(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new AppServiceArmOperation(response); + var uri = _webSiteSlotHybridConnectionWebAppsRestClient.CreateDeleteRelayServiceConnectionSlotRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotPremierAddOnCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotPremierAddOnCollection.cs index 7de6468cae1a..8272d7b5102d 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotPremierAddOnCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotPremierAddOnCollection.cs @@ -87,7 +87,9 @@ public virtual async Task> CreateO try { var response = await _webSiteSlotPremierAddOnWebAppsRestClient.AddPremierAddOnSlotAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, premierAddOnName, data, cancellationToken).ConfigureAwait(false); - var operation = new AppServiceArmOperation(Response.FromValue(new WebSiteSlotPremierAddOnResource(Client, response), response.GetRawResponse())); + var uri = _webSiteSlotPremierAddOnWebAppsRestClient.CreateAddPremierAddOnSlotRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, premierAddOnName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(Response.FromValue(new WebSiteSlotPremierAddOnResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -136,7 +138,9 @@ public virtual ArmOperation CreateOrUpdate(Wait try { var response = _webSiteSlotPremierAddOnWebAppsRestClient.AddPremierAddOnSlot(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, premierAddOnName, data, cancellationToken); - var operation = new AppServiceArmOperation(Response.FromValue(new WebSiteSlotPremierAddOnResource(Client, response), response.GetRawResponse())); + var uri = _webSiteSlotPremierAddOnWebAppsRestClient.CreateAddPremierAddOnSlotRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, premierAddOnName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(Response.FromValue(new WebSiteSlotPremierAddOnResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotPremierAddOnResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotPremierAddOnResource.cs index 245fa8eebb9d..d490762ed958 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotPremierAddOnResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotPremierAddOnResource.cs @@ -202,7 +202,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _webSiteSlotPremierAddOnWebAppsRestClient.DeletePremierAddOnSlotAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new AppServiceArmOperation(response); + var uri = _webSiteSlotPremierAddOnWebAppsRestClient.CreateDeletePremierAddOnSlotRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -244,7 +246,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _webSiteSlotPremierAddOnWebAppsRestClient.DeletePremierAddOnSlot(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new AppServiceArmOperation(response); + var uri = _webSiteSlotPremierAddOnWebAppsRestClient.CreateDeletePremierAddOnSlotRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotPrivateAccessResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotPrivateAccessResource.cs index 1a2d42f826fe..8dbaea15b57d 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotPrivateAccessResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotPrivateAccessResource.cs @@ -204,7 +204,9 @@ public virtual async Task> Create try { var response = await _webSiteSlotPrivateAccessWebAppsRestClient.PutPrivateAccessVnetSlotAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new AppServiceArmOperation(Response.FromValue(new WebSiteSlotPrivateAccessResource(Client, response), response.GetRawResponse())); + var uri = _webSiteSlotPrivateAccessWebAppsRestClient.CreatePutPrivateAccessVnetSlotRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(Response.FromValue(new WebSiteSlotPrivateAccessResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -250,7 +252,9 @@ public virtual ArmOperation CreateOrUpdate(Wai try { var response = _webSiteSlotPrivateAccessWebAppsRestClient.PutPrivateAccessVnetSlot(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, data, cancellationToken); - var operation = new AppServiceArmOperation(Response.FromValue(new WebSiteSlotPrivateAccessResource(Client, response), response.GetRawResponse())); + var uri = _webSiteSlotPrivateAccessWebAppsRestClient.CreatePutPrivateAccessVnetSlotRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(Response.FromValue(new WebSiteSlotPrivateAccessResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotPublicCertificateCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotPublicCertificateCollection.cs index 784936a16143..2159c7222c34 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotPublicCertificateCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotPublicCertificateCollection.cs @@ -90,7 +90,9 @@ public virtual async Task> Cr try { var response = await _webSiteSlotPublicCertificateWebAppsRestClient.CreateOrUpdatePublicCertificateSlotAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, publicCertificateName, data, cancellationToken).ConfigureAwait(false); - var operation = new AppServiceArmOperation(Response.FromValue(new WebSiteSlotPublicCertificateResource(Client, response), response.GetRawResponse())); + var uri = _webSiteSlotPublicCertificateWebAppsRestClient.CreateCreateOrUpdatePublicCertificateSlotRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, publicCertificateName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(Response.FromValue(new WebSiteSlotPublicCertificateResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -139,7 +141,9 @@ public virtual ArmOperation CreateOrUpdate try { var response = _webSiteSlotPublicCertificateWebAppsRestClient.CreateOrUpdatePublicCertificateSlot(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, publicCertificateName, data, cancellationToken); - var operation = new AppServiceArmOperation(Response.FromValue(new WebSiteSlotPublicCertificateResource(Client, response), response.GetRawResponse())); + var uri = _webSiteSlotPublicCertificateWebAppsRestClient.CreateCreateOrUpdatePublicCertificateSlotRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, publicCertificateName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(Response.FromValue(new WebSiteSlotPublicCertificateResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotPublicCertificateResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotPublicCertificateResource.cs index 2586dc0deebd..a8ff1c24897c 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotPublicCertificateResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotPublicCertificateResource.cs @@ -201,7 +201,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _webSiteSlotPublicCertificateWebAppsRestClient.DeletePublicCertificateSlotAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new AppServiceArmOperation(response); + var uri = _webSiteSlotPublicCertificateWebAppsRestClient.CreateDeletePublicCertificateSlotRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -243,7 +245,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _webSiteSlotPublicCertificateWebAppsRestClient.DeletePublicCertificateSlot(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new AppServiceArmOperation(response); + var uri = _webSiteSlotPublicCertificateWebAppsRestClient.CreateDeletePublicCertificateSlotRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -289,7 +293,9 @@ public virtual async Task> Up try { var response = await _webSiteSlotPublicCertificateWebAppsRestClient.CreateOrUpdatePublicCertificateSlotAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new AppServiceArmOperation(Response.FromValue(new WebSiteSlotPublicCertificateResource(Client, response), response.GetRawResponse())); + var uri = _webSiteSlotPublicCertificateWebAppsRestClient.CreateCreateOrUpdatePublicCertificateSlotRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(Response.FromValue(new WebSiteSlotPublicCertificateResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -335,7 +341,9 @@ public virtual ArmOperation Update(WaitUnt try { var response = _webSiteSlotPublicCertificateWebAppsRestClient.CreateOrUpdatePublicCertificateSlot(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new AppServiceArmOperation(Response.FromValue(new WebSiteSlotPublicCertificateResource(Client, response), response.GetRawResponse())); + var uri = _webSiteSlotPublicCertificateWebAppsRestClient.CreateCreateOrUpdatePublicCertificateSlotRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(Response.FromValue(new WebSiteSlotPublicCertificateResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotResource.cs index 9e9cdc38da29..ce4f30bb0793 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotResource.cs @@ -1802,7 +1802,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, bool? d try { var response = await _webSiteSlotWebAppsRestClient.DeleteSlotAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, deleteMetrics, deleteEmptyServerFarm, cancellationToken).ConfigureAwait(false); - var operation = new AppServiceArmOperation(response); + var uri = _webSiteSlotWebAppsRestClient.CreateDeleteSlotRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, deleteMetrics, deleteEmptyServerFarm); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -1846,7 +1848,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, bool? deleteMetrics = nu try { var response = _webSiteSlotWebAppsRestClient.DeleteSlot(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, deleteMetrics, deleteEmptyServerFarm, cancellationToken); - var operation = new AppServiceArmOperation(response); + var uri = _webSiteSlotWebAppsRestClient.CreateDeleteSlotRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, deleteMetrics, deleteEmptyServerFarm); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotSourceControlResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotSourceControlResource.cs index 8a5c34097a11..b288bdae4b20 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotSourceControlResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotSourceControlResource.cs @@ -201,7 +201,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, string try { var response = await _webSiteSlotSourceControlWebAppsRestClient.DeleteSourceControlSlotAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, additionalFlags, cancellationToken).ConfigureAwait(false); - var operation = new AppServiceArmOperation(response); + var uri = _webSiteSlotSourceControlWebAppsRestClient.CreateDeleteSourceControlSlotRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, additionalFlags); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -244,7 +246,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, string additionalFlags = try { var response = _webSiteSlotSourceControlWebAppsRestClient.DeleteSourceControlSlot(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, additionalFlags, cancellationToken); - var operation = new AppServiceArmOperation(response); + var uri = _webSiteSlotSourceControlWebAppsRestClient.CreateDeleteSourceControlSlotRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, additionalFlags); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotTriggeredWebJobResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotTriggeredWebJobResource.cs index d942d8a77183..7b7690425eb3 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotTriggeredWebJobResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotTriggeredWebJobResource.cs @@ -270,7 +270,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _webSiteSlotTriggeredWebJobWebAppsRestClient.DeleteTriggeredWebJobSlotAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new AppServiceArmOperation(response); + var uri = _webSiteSlotTriggeredWebJobWebAppsRestClient.CreateDeleteTriggeredWebJobSlotRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -312,7 +314,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _webSiteSlotTriggeredWebJobWebAppsRestClient.DeleteTriggeredWebJobSlot(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new AppServiceArmOperation(response); + var uri = _webSiteSlotTriggeredWebJobWebAppsRestClient.CreateDeleteTriggeredWebJobSlotRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSourceControlResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSourceControlResource.cs index b62f8c01e837..17441b7472f7 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSourceControlResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSourceControlResource.cs @@ -200,7 +200,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, string try { var response = await _webSiteSourceControlWebAppsRestClient.DeleteSourceControlAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, additionalFlags, cancellationToken).ConfigureAwait(false); - var operation = new AppServiceArmOperation(response); + var uri = _webSiteSourceControlWebAppsRestClient.CreateDeleteSourceControlRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, additionalFlags); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -243,7 +245,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, string additionalFlags = try { var response = _webSiteSourceControlWebAppsRestClient.DeleteSourceControl(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, additionalFlags, cancellationToken); - var operation = new AppServiceArmOperation(response); + var uri = _webSiteSourceControlWebAppsRestClient.CreateDeleteSourceControlRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, additionalFlags); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteTriggeredwebJobResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteTriggeredwebJobResource.cs index 5cb4faaf9cec..a594d577e589 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteTriggeredwebJobResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteTriggeredwebJobResource.cs @@ -269,7 +269,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _webSiteTriggeredwebJobWebAppsRestClient.DeleteTriggeredWebJobAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new AppServiceArmOperation(response); + var uri = _webSiteTriggeredwebJobWebAppsRestClient.CreateDeleteTriggeredWebJobRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -311,7 +313,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _webSiteTriggeredwebJobWebAppsRestClient.DeleteTriggeredWebJob(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new AppServiceArmOperation(response); + var uri = _webSiteTriggeredwebJobWebAppsRestClient.CreateDeleteTriggeredWebJobRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AppServiceArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/workloadmonitor/Azure.ResourceManager.WorkloadMonitor/src/Generated/Models/HealthMonitorResource.Serialization.cs b/sdk/workloadmonitor/Azure.ResourceManager.WorkloadMonitor/src/Generated/Models/HealthMonitorResource.Serialization.cs new file mode 100644 index 000000000000..f77aa7fa24ef --- /dev/null +++ b/sdk/workloadmonitor/Azure.ResourceManager.WorkloadMonitor/src/Generated/Models/HealthMonitorResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.WorkloadMonitor +{ + public partial class HealthMonitorResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + HealthMonitorData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + HealthMonitorData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/workloadmonitor/Azure.ResourceManager.WorkloadMonitor/src/Generated/Models/HealthMonitorStateChangeResource.Serialization.cs b/sdk/workloadmonitor/Azure.ResourceManager.WorkloadMonitor/src/Generated/Models/HealthMonitorStateChangeResource.Serialization.cs new file mode 100644 index 000000000000..aa316f45fdc6 --- /dev/null +++ b/sdk/workloadmonitor/Azure.ResourceManager.WorkloadMonitor/src/Generated/Models/HealthMonitorStateChangeResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.WorkloadMonitor +{ + public partial class HealthMonitorStateChangeResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + HealthMonitorStateChangeData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + HealthMonitorStateChangeData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/workloadmonitor/Azure.ResourceManager.WorkloadMonitor/src/Generated/RestOperations/HealthMonitorsRestOperations.cs b/sdk/workloadmonitor/Azure.ResourceManager.WorkloadMonitor/src/Generated/RestOperations/HealthMonitorsRestOperations.cs index 55a761cf8c4d..da51ba27f8aa 100644 --- a/sdk/workloadmonitor/Azure.ResourceManager.WorkloadMonitor/src/Generated/RestOperations/HealthMonitorsRestOperations.cs +++ b/sdk/workloadmonitor/Azure.ResourceManager.WorkloadMonitor/src/Generated/RestOperations/HealthMonitorsRestOperations.cs @@ -37,6 +37,33 @@ public HealthMonitorsRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string providerName, string resourceCollectionName, string resourceName, string filter, string expand) + { + 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/", false); + uri.AppendPath(providerName, true); + uri.AppendPath("/", false); + uri.AppendPath(resourceCollectionName, true); + uri.AppendPath("/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/providers/Microsoft.WorkloadMonitor/monitors", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string providerName, string resourceCollectionName, string resourceName, string filter, string expand) { var message = _pipeline.CreateMessage(); @@ -140,6 +167,30 @@ public Response List(string subscriptionId, string resourceGr } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string providerName, string resourceCollectionName, string resourceName, string monitorId, string expand) + { + 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/", false); + uri.AppendPath(providerName, true); + uri.AppendPath("/", false); + uri.AppendPath(resourceCollectionName, true); + uri.AppendPath("/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/providers/Microsoft.WorkloadMonitor/monitors/", false); + uri.AppendPath(monitorId, true); + uri.AppendQuery("api-version", _apiVersion, true); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string providerName, string resourceCollectionName, string resourceName, string monitorId, string expand) { var message = _pipeline.CreateMessage(); @@ -246,6 +297,43 @@ public Response Get(string subscriptionId, string resourceGro } } + internal RequestUriBuilder CreateListStateChangesRequestUri(string subscriptionId, string resourceGroupName, string providerName, string resourceCollectionName, string resourceName, string monitorId, string filter, string expand, DateTimeOffset? startTimestampUtc, DateTimeOffset? endTimestampUtc) + { + 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/", false); + uri.AppendPath(providerName, true); + uri.AppendPath("/", false); + uri.AppendPath(resourceCollectionName, true); + uri.AppendPath("/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/providers/Microsoft.WorkloadMonitor/monitors/", false); + uri.AppendPath(monitorId, true); + uri.AppendPath("/history", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + if (startTimestampUtc != null) + { + uri.AppendQuery("startTimestampUtc", startTimestampUtc.Value, "O", true); + } + if (endTimestampUtc != null) + { + uri.AppendQuery("endTimestampUtc", endTimestampUtc.Value, "O", true); + } + return uri; + } + internal HttpMessage CreateListStateChangesRequest(string subscriptionId, string resourceGroupName, string providerName, string resourceCollectionName, string resourceName, string monitorId, string filter, string expand, DateTimeOffset? startTimestampUtc, DateTimeOffset? endTimestampUtc) { var message = _pipeline.CreateMessage(); @@ -367,6 +455,32 @@ public Response ListStateChanges(string subscripti } } + internal RequestUriBuilder CreateGetStateChangeRequestUri(string subscriptionId, string resourceGroupName, string providerName, string resourceCollectionName, string resourceName, string monitorId, string timestampUnix, string expand) + { + 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/", false); + uri.AppendPath(providerName, true); + uri.AppendPath("/", false); + uri.AppendPath(resourceCollectionName, true); + uri.AppendPath("/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/providers/Microsoft.WorkloadMonitor/monitors/", false); + uri.AppendPath(monitorId, true); + uri.AppendPath("/history/", false); + uri.AppendPath(timestampUnix, true); + uri.AppendQuery("api-version", _apiVersion, true); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + return uri; + } + internal HttpMessage CreateGetStateChangeRequest(string subscriptionId, string resourceGroupName, string providerName, string resourceCollectionName, string resourceName, string monitorId, string timestampUnix, string expand) { var message = _pipeline.CreateMessage(); @@ -479,6 +593,14 @@ public Response GetStateChange(string subscription } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string providerName, string resourceCollectionName, string resourceName, string filter, string expand) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string providerName, string resourceCollectionName, string resourceName, string filter, string expand) { var message = _pipeline.CreateMessage(); @@ -567,6 +689,14 @@ public Response ListNextPage(string nextLink, string subscrip } } + internal RequestUriBuilder CreateListStateChangesNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string providerName, string resourceCollectionName, string resourceName, string monitorId, string filter, string expand, DateTimeOffset? startTimestampUtc, DateTimeOffset? endTimestampUtc) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListStateChangesNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string providerName, string resourceCollectionName, string resourceName, string monitorId, string filter, string expand, DateTimeOffset? startTimestampUtc, DateTimeOffset? endTimestampUtc) { var message = _pipeline.CreateMessage(); diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/LongRunningOperation/WorkloadsArmOperation.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/LongRunningOperation/WorkloadsArmOperation.cs index 9502e064b240..d99701bbcc38 100644 --- a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/LongRunningOperation/WorkloadsArmOperation.cs +++ b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/LongRunningOperation/WorkloadsArmOperation.cs @@ -20,21 +20,24 @@ internal class WorkloadsArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of WorkloadsArmOperation for mocking. protected WorkloadsArmOperation() { } - internal WorkloadsArmOperation(Response response) + internal WorkloadsArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response); + _operation = OperationInternal.Succeeded(response, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal WorkloadsArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "WorkloadsArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal WorkloadsArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override bool HasCompleted => _operation.HasCompleted; diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/LongRunningOperation/WorkloadsArmOperationOfT.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/LongRunningOperation/WorkloadsArmOperationOfT.cs index 5507ba5e0ba0..c4bb6bb7ffaf 100644 --- a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/LongRunningOperation/WorkloadsArmOperationOfT.cs +++ b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/LongRunningOperation/WorkloadsArmOperationOfT.cs @@ -20,21 +20,24 @@ internal class WorkloadsArmOperation : ArmOperation #pragma warning restore SA1649 // File name should match first type name { private readonly OperationInternal _operation; + private readonly RehydrationToken? _rehydrationToken; /// Initializes a new instance of WorkloadsArmOperation for mocking. protected WorkloadsArmOperation() { } - internal WorkloadsArmOperation(Response response) + internal WorkloadsArmOperation(Response response, RehydrationToken? rehydrationToken = null) { - _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value, rehydrationToken); + _rehydrationToken = rehydrationToken; } internal WorkloadsArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null) { var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "WorkloadsArmOperation", fallbackStrategy: new SequentialDelayStrategy()); + _rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue); } /// @@ -43,6 +46,9 @@ internal WorkloadsArmOperation(IOperationSource source, ClientDiagnostics cli public override string Id => throw new NotImplementedException(); #pragma warning restore CA1822 + /// + public override RehydrationToken? GetRehydrationToken() => _rehydrationToken; + /// public override T Value => _operation.Value; diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/SapApplicationServerInstanceResource.Serialization.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/SapApplicationServerInstanceResource.Serialization.cs new file mode 100644 index 000000000000..1e97658b4236 --- /dev/null +++ b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/SapApplicationServerInstanceResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Workloads +{ + public partial class SapApplicationServerInstanceResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SapApplicationServerInstanceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SapApplicationServerInstanceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/SapCentralServerInstanceResource.Serialization.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/SapCentralServerInstanceResource.Serialization.cs new file mode 100644 index 000000000000..02bdfa762e70 --- /dev/null +++ b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/SapCentralServerInstanceResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Workloads +{ + public partial class SapCentralServerInstanceResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SapCentralServerInstanceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SapCentralServerInstanceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/SapDatabaseInstanceResource.Serialization.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/SapDatabaseInstanceResource.Serialization.cs new file mode 100644 index 000000000000..d3a72e6d233d --- /dev/null +++ b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/SapDatabaseInstanceResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Workloads +{ + public partial class SapDatabaseInstanceResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SapDatabaseInstanceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SapDatabaseInstanceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/SapLandscapeMonitorResource.Serialization.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/SapLandscapeMonitorResource.Serialization.cs new file mode 100644 index 000000000000..7df4f9a6ad08 --- /dev/null +++ b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/SapLandscapeMonitorResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Workloads +{ + public partial class SapLandscapeMonitorResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SapLandscapeMonitorData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SapLandscapeMonitorData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/SapMonitorResource.Serialization.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/SapMonitorResource.Serialization.cs new file mode 100644 index 000000000000..286da704a4c9 --- /dev/null +++ b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/SapMonitorResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Workloads +{ + public partial class SapMonitorResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SapMonitorData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SapMonitorData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/SapProviderInstanceResource.Serialization.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/SapProviderInstanceResource.Serialization.cs new file mode 100644 index 000000000000..a99d9ff7b6f9 --- /dev/null +++ b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/SapProviderInstanceResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Workloads +{ + public partial class SapProviderInstanceResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SapProviderInstanceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SapProviderInstanceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/SapVirtualInstanceResource.Serialization.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/SapVirtualInstanceResource.Serialization.cs new file mode 100644 index 000000000000..77b64e023ec7 --- /dev/null +++ b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/SapVirtualInstanceResource.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Workloads +{ + public partial class SapVirtualInstanceResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStringValue(ModelReaderWriter.Write(Data, options)); + } + + SapVirtualInstanceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(new BinaryData(reader.ValueSequence), options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + return ModelReaderWriter.Write(Data, options); + } + + SapVirtualInstanceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + return ModelReaderWriter.Read(data, options); + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/RestOperations/MonitorsRestOperations.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/RestOperations/MonitorsRestOperations.cs index 0226e9cb7cd2..425f22166a84 100644 --- a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/RestOperations/MonitorsRestOperations.cs +++ b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/RestOperations/MonitorsRestOperations.cs @@ -37,6 +37,17 @@ public MonitorsRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Workloads/monitors", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -104,6 +115,19 @@ public Response List(string subscriptionId, CancellationToken } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.Workloads/monitors", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -177,6 +201,20 @@ public Response ListByResourceGroup(string subscriptionId, st } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string monitorName) + { + 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.Workloads/monitors/", false); + uri.AppendPath(monitorName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string monitorName) { var message = _pipeline.CreateMessage(); @@ -259,6 +297,20 @@ public Response Get(string subscriptionId, string resourceGroupN } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string monitorName, SapMonitorData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Workloads/monitors/", false); + uri.AppendPath(monitorName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string monitorName, SapMonitorData data) { var message = _pipeline.CreateMessage(); @@ -337,6 +389,20 @@ public Response Create(string subscriptionId, string resourceGroupName, string m } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string monitorName) + { + 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.Workloads/monitors/", false); + uri.AppendPath(monitorName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string monitorName) { var message = _pipeline.CreateMessage(); @@ -409,6 +475,20 @@ public Response Delete(string subscriptionId, string resourceGroupName, string m } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string monitorName, SapMonitorPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Workloads/monitors/", false); + uri.AppendPath(monitorName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string monitorName, SapMonitorPatch patch) { var message = _pipeline.CreateMessage(); @@ -495,6 +575,14 @@ public Response Update(string subscriptionId, string resourceGro } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -563,6 +651,14 @@ public Response ListNextPage(string nextLink, string subscrip } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/RestOperations/ProviderInstancesRestOperations.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/RestOperations/ProviderInstancesRestOperations.cs index c276fd43f228..596e38482232 100644 --- a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/RestOperations/ProviderInstancesRestOperations.cs +++ b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/RestOperations/ProviderInstancesRestOperations.cs @@ -37,6 +37,21 @@ public ProviderInstancesRestOperations(HttpPipeline pipeline, string application _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string monitorName) + { + 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.Workloads/monitors/", false); + uri.AppendPath(monitorName, true); + uri.AppendPath("/providerInstances", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string monitorName) { var message = _pipeline.CreateMessage(); @@ -116,6 +131,22 @@ public Response List(string subscriptionId, string r } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string monitorName, string providerInstanceName) + { + 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.Workloads/monitors/", false); + uri.AppendPath(monitorName, true); + uri.AppendPath("/providerInstances/", false); + uri.AppendPath(providerInstanceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string monitorName, string providerInstanceName) { var message = _pipeline.CreateMessage(); @@ -204,6 +235,22 @@ public Response Get(string subscriptionId, string resou } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string monitorName, string providerInstanceName, SapProviderInstanceData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Workloads/monitors/", false); + uri.AppendPath(monitorName, true); + uri.AppendPath("/providerInstances/", false); + uri.AppendPath(providerInstanceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string monitorName, string providerInstanceName, SapProviderInstanceData data) { var message = _pipeline.CreateMessage(); @@ -288,6 +335,22 @@ public Response Create(string subscriptionId, string resourceGroupName, string m } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string monitorName, string providerInstanceName) + { + 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.Workloads/monitors/", false); + uri.AppendPath(monitorName, true); + uri.AppendPath("/providerInstances/", false); + uri.AppendPath(providerInstanceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string monitorName, string providerInstanceName) { var message = _pipeline.CreateMessage(); @@ -366,6 +429,14 @@ public Response Delete(string subscriptionId, string resourceGroupName, string m } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string monitorName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string monitorName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/RestOperations/SAPApplicationServerInstancesRestOperations.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/RestOperations/SAPApplicationServerInstancesRestOperations.cs index deaf7e35c7f6..7a20a371ee92 100644 --- a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/RestOperations/SAPApplicationServerInstancesRestOperations.cs +++ b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/RestOperations/SAPApplicationServerInstancesRestOperations.cs @@ -37,6 +37,22 @@ public SAPApplicationServerInstancesRestOperations(HttpPipeline pipeline, string _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string sapVirtualInstanceName, string applicationInstanceName) + { + 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.Workloads/sapVirtualInstances/", false); + uri.AppendPath(sapVirtualInstanceName, true); + uri.AppendPath("/applicationInstances/", false); + uri.AppendPath(applicationInstanceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string sapVirtualInstanceName, string applicationInstanceName) { var message = _pipeline.CreateMessage(); @@ -125,6 +141,22 @@ public Response Get(string subscriptionId, str } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string sapVirtualInstanceName, string applicationInstanceName, SapApplicationServerInstanceData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Workloads/sapVirtualInstances/", false); + uri.AppendPath(sapVirtualInstanceName, true); + uri.AppendPath("/applicationInstances/", false); + uri.AppendPath(applicationInstanceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string sapVirtualInstanceName, string applicationInstanceName, SapApplicationServerInstanceData data) { var message = _pipeline.CreateMessage(); @@ -209,6 +241,22 @@ public Response Create(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string sapVirtualInstanceName, string applicationInstanceName, SapApplicationServerInstancePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Workloads/sapVirtualInstances/", false); + uri.AppendPath(sapVirtualInstanceName, true); + uri.AppendPath("/applicationInstances/", false); + uri.AppendPath(applicationInstanceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string sapVirtualInstanceName, string applicationInstanceName, SapApplicationServerInstancePatch patch) { var message = _pipeline.CreateMessage(); @@ -293,6 +341,22 @@ public Response Update(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string sapVirtualInstanceName, string applicationInstanceName) + { + 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.Workloads/sapVirtualInstances/", false); + uri.AppendPath(sapVirtualInstanceName, true); + uri.AppendPath("/applicationInstances/", false); + uri.AppendPath(applicationInstanceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string sapVirtualInstanceName, string applicationInstanceName) { var message = _pipeline.CreateMessage(); @@ -371,6 +435,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string sapVirtualInstanceName) + { + 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.Workloads/sapVirtualInstances/", false); + uri.AppendPath(sapVirtualInstanceName, true); + uri.AppendPath("/applicationInstances", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string sapVirtualInstanceName) { var message = _pipeline.CreateMessage(); @@ -450,6 +529,23 @@ public Response List(string subscriptionId, st } } + internal RequestUriBuilder CreateStartInstanceRequestUri(string subscriptionId, string resourceGroupName, string sapVirtualInstanceName, string applicationInstanceName) + { + 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.Workloads/sapVirtualInstances/", false); + uri.AppendPath(sapVirtualInstanceName, true); + uri.AppendPath("/applicationInstances/", false); + uri.AppendPath(applicationInstanceName, true); + uri.AppendPath("/start", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStartInstanceRequest(string subscriptionId, string resourceGroupName, string sapVirtualInstanceName, string applicationInstanceName) { var message = _pipeline.CreateMessage(); @@ -527,6 +623,23 @@ public Response StartInstance(string subscriptionId, string resourceGroupName, s } } + internal RequestUriBuilder CreateStopInstanceRequestUri(string subscriptionId, string resourceGroupName, string sapVirtualInstanceName, string applicationInstanceName, SapStopContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Workloads/sapVirtualInstances/", false); + uri.AppendPath(sapVirtualInstanceName, true); + uri.AppendPath("/applicationInstances/", false); + uri.AppendPath(applicationInstanceName, true); + uri.AppendPath("/stop", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStopInstanceRequest(string subscriptionId, string resourceGroupName, string sapVirtualInstanceName, string applicationInstanceName, SapStopContent content) { var message = _pipeline.CreateMessage(); @@ -613,6 +726,14 @@ public Response StopInstance(string subscriptionId, string resourceGroupName, st } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string sapVirtualInstanceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string sapVirtualInstanceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/RestOperations/SAPCentralInstancesRestOperations.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/RestOperations/SAPCentralInstancesRestOperations.cs index 1d3b947b3267..177a244485c1 100644 --- a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/RestOperations/SAPCentralInstancesRestOperations.cs +++ b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/RestOperations/SAPCentralInstancesRestOperations.cs @@ -37,6 +37,22 @@ public SAPCentralInstancesRestOperations(HttpPipeline pipeline, string applicati _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string sapVirtualInstanceName, string centralInstanceName) + { + 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.Workloads/sapVirtualInstances/", false); + uri.AppendPath(sapVirtualInstanceName, true); + uri.AppendPath("/centralInstances/", false); + uri.AppendPath(centralInstanceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string sapVirtualInstanceName, string centralInstanceName) { var message = _pipeline.CreateMessage(); @@ -125,6 +141,22 @@ public Response Get(string subscriptionId, string } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string sapVirtualInstanceName, string centralInstanceName, SapCentralServerInstanceData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Workloads/sapVirtualInstances/", false); + uri.AppendPath(sapVirtualInstanceName, true); + uri.AppendPath("/centralInstances/", false); + uri.AppendPath(centralInstanceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string sapVirtualInstanceName, string centralInstanceName, SapCentralServerInstanceData data) { var message = _pipeline.CreateMessage(); @@ -209,6 +241,22 @@ public Response Create(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string sapVirtualInstanceName, string centralInstanceName, SapCentralServerInstancePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Workloads/sapVirtualInstances/", false); + uri.AppendPath(sapVirtualInstanceName, true); + uri.AppendPath("/centralInstances/", false); + uri.AppendPath(centralInstanceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string sapVirtualInstanceName, string centralInstanceName, SapCentralServerInstancePatch patch) { var message = _pipeline.CreateMessage(); @@ -293,6 +341,22 @@ public Response Update(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string sapVirtualInstanceName, string centralInstanceName) + { + 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.Workloads/sapVirtualInstances/", false); + uri.AppendPath(sapVirtualInstanceName, true); + uri.AppendPath("/centralInstances/", false); + uri.AppendPath(centralInstanceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string sapVirtualInstanceName, string centralInstanceName) { var message = _pipeline.CreateMessage(); @@ -371,6 +435,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string sapVirtualInstanceName) + { + 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.Workloads/sapVirtualInstances/", false); + uri.AppendPath(sapVirtualInstanceName, true); + uri.AppendPath("/centralInstances", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string sapVirtualInstanceName) { var message = _pipeline.CreateMessage(); @@ -450,6 +529,23 @@ public Response List(string subscriptionId, string resou } } + internal RequestUriBuilder CreateStartInstanceRequestUri(string subscriptionId, string resourceGroupName, string sapVirtualInstanceName, string centralInstanceName) + { + 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.Workloads/sapVirtualInstances/", false); + uri.AppendPath(sapVirtualInstanceName, true); + uri.AppendPath("/centralInstances/", false); + uri.AppendPath(centralInstanceName, true); + uri.AppendPath("/start", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStartInstanceRequest(string subscriptionId, string resourceGroupName, string sapVirtualInstanceName, string centralInstanceName) { var message = _pipeline.CreateMessage(); @@ -527,6 +623,23 @@ public Response StartInstance(string subscriptionId, string resourceGroupName, s } } + internal RequestUriBuilder CreateStopInstanceRequestUri(string subscriptionId, string resourceGroupName, string sapVirtualInstanceName, string centralInstanceName, SapStopContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Workloads/sapVirtualInstances/", false); + uri.AppendPath(sapVirtualInstanceName, true); + uri.AppendPath("/centralInstances/", false); + uri.AppendPath(centralInstanceName, true); + uri.AppendPath("/stop", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStopInstanceRequest(string subscriptionId, string resourceGroupName, string sapVirtualInstanceName, string centralInstanceName, SapStopContent content) { var message = _pipeline.CreateMessage(); @@ -613,6 +726,14 @@ public Response StopInstance(string subscriptionId, string resourceGroupName, st } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string sapVirtualInstanceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string sapVirtualInstanceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/RestOperations/SAPDatabaseInstancesRestOperations.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/RestOperations/SAPDatabaseInstancesRestOperations.cs index 89d43f9550ea..c030cf7560e6 100644 --- a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/RestOperations/SAPDatabaseInstancesRestOperations.cs +++ b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/RestOperations/SAPDatabaseInstancesRestOperations.cs @@ -37,6 +37,22 @@ public SAPDatabaseInstancesRestOperations(HttpPipeline pipeline, string applicat _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string sapVirtualInstanceName, string databaseInstanceName) + { + 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.Workloads/sapVirtualInstances/", false); + uri.AppendPath(sapVirtualInstanceName, true); + uri.AppendPath("/databaseInstances/", false); + uri.AppendPath(databaseInstanceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string sapVirtualInstanceName, string databaseInstanceName) { var message = _pipeline.CreateMessage(); @@ -125,6 +141,22 @@ public Response Get(string subscriptionId, string resou } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string sapVirtualInstanceName, string databaseInstanceName, SapDatabaseInstanceData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Workloads/sapVirtualInstances/", false); + uri.AppendPath(sapVirtualInstanceName, true); + uri.AppendPath("/databaseInstances/", false); + uri.AppendPath(databaseInstanceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string sapVirtualInstanceName, string databaseInstanceName, SapDatabaseInstanceData data) { var message = _pipeline.CreateMessage(); @@ -209,6 +241,22 @@ public Response Create(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string sapVirtualInstanceName, string databaseInstanceName, SapDatabaseInstancePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Workloads/sapVirtualInstances/", false); + uri.AppendPath(sapVirtualInstanceName, true); + uri.AppendPath("/databaseInstances/", false); + uri.AppendPath(databaseInstanceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string sapVirtualInstanceName, string databaseInstanceName, SapDatabaseInstancePatch patch) { var message = _pipeline.CreateMessage(); @@ -293,6 +341,22 @@ public Response Update(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string sapVirtualInstanceName, string databaseInstanceName) + { + 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.Workloads/sapVirtualInstances/", false); + uri.AppendPath(sapVirtualInstanceName, true); + uri.AppendPath("/databaseInstances/", false); + uri.AppendPath(databaseInstanceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string sapVirtualInstanceName, string databaseInstanceName) { var message = _pipeline.CreateMessage(); @@ -371,6 +435,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string sapVirtualInstanceName) + { + 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.Workloads/sapVirtualInstances/", false); + uri.AppendPath(sapVirtualInstanceName, true); + uri.AppendPath("/databaseInstances", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string sapVirtualInstanceName) { var message = _pipeline.CreateMessage(); @@ -450,6 +529,23 @@ public Response List(string subscriptionId, string reso } } + internal RequestUriBuilder CreateStartInstanceRequestUri(string subscriptionId, string resourceGroupName, string sapVirtualInstanceName, string databaseInstanceName) + { + 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.Workloads/sapVirtualInstances/", false); + uri.AppendPath(sapVirtualInstanceName, true); + uri.AppendPath("/databaseInstances/", false); + uri.AppendPath(databaseInstanceName, true); + uri.AppendPath("/start", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStartInstanceRequest(string subscriptionId, string resourceGroupName, string sapVirtualInstanceName, string databaseInstanceName) { var message = _pipeline.CreateMessage(); @@ -527,6 +623,23 @@ public Response StartInstance(string subscriptionId, string resourceGroupName, s } } + internal RequestUriBuilder CreateStopInstanceRequestUri(string subscriptionId, string resourceGroupName, string sapVirtualInstanceName, string databaseInstanceName, SapStopContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Workloads/sapVirtualInstances/", false); + uri.AppendPath(sapVirtualInstanceName, true); + uri.AppendPath("/databaseInstances/", false); + uri.AppendPath(databaseInstanceName, true); + uri.AppendPath("/stop", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStopInstanceRequest(string subscriptionId, string resourceGroupName, string sapVirtualInstanceName, string databaseInstanceName, SapStopContent content) { var message = _pipeline.CreateMessage(); @@ -613,6 +726,14 @@ public Response StopInstance(string subscriptionId, string resourceGroupName, st } } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string sapVirtualInstanceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string sapVirtualInstanceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/RestOperations/SAPVirtualInstancesRestOperations.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/RestOperations/SAPVirtualInstancesRestOperations.cs index 4b0573d80bd9..a1e248b51129 100644 --- a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/RestOperations/SAPVirtualInstancesRestOperations.cs +++ b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/RestOperations/SAPVirtualInstancesRestOperations.cs @@ -37,6 +37,20 @@ public SAPVirtualInstancesRestOperations(HttpPipeline pipeline, string applicati _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string sapVirtualInstanceName, SapVirtualInstanceData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Workloads/sapVirtualInstances/", false); + uri.AppendPath(sapVirtualInstanceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string sapVirtualInstanceName, SapVirtualInstanceData data) { var message = _pipeline.CreateMessage(); @@ -115,6 +129,20 @@ public Response Create(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string sapVirtualInstanceName) + { + 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.Workloads/sapVirtualInstances/", false); + uri.AppendPath(sapVirtualInstanceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string sapVirtualInstanceName) { var message = _pipeline.CreateMessage(); @@ -197,6 +225,20 @@ public Response Get(string subscriptionId, string resour } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string sapVirtualInstanceName, SapVirtualInstancePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Workloads/sapVirtualInstances/", false); + uri.AppendPath(sapVirtualInstanceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string sapVirtualInstanceName, SapVirtualInstancePatch patch) { var message = _pipeline.CreateMessage(); @@ -283,6 +325,20 @@ public Response Update(string subscriptionId, string res } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string sapVirtualInstanceName) + { + 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.Workloads/sapVirtualInstances/", false); + uri.AppendPath(sapVirtualInstanceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string sapVirtualInstanceName) { var message = _pipeline.CreateMessage(); @@ -355,6 +411,19 @@ public Response Delete(string subscriptionId, string resourceGroupName, string s } } + internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) + { + 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.Workloads/sapVirtualInstances", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -428,6 +497,17 @@ public Response ListByResourceGroup(string subscriptionI } } + internal RequestUriBuilder CreateListBySubscriptionRequestUri(string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Workloads/sapVirtualInstances", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); @@ -495,6 +575,21 @@ public Response ListBySubscription(string subscriptionId } } + internal RequestUriBuilder CreateStartRequestUri(string subscriptionId, string resourceGroupName, string sapVirtualInstanceName) + { + 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.Workloads/sapVirtualInstances/", false); + uri.AppendPath(sapVirtualInstanceName, true); + uri.AppendPath("/start", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStartRequest(string subscriptionId, string resourceGroupName, string sapVirtualInstanceName) { var message = _pipeline.CreateMessage(); @@ -566,6 +661,21 @@ public Response Start(string subscriptionId, string resourceGroupName, string sa } } + internal RequestUriBuilder CreateStopRequestUri(string subscriptionId, string resourceGroupName, string sapVirtualInstanceName, SapStopContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Workloads/sapVirtualInstances/", false); + uri.AppendPath(sapVirtualInstanceName, true); + uri.AppendPath("/stop", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateStopRequest(string subscriptionId, string resourceGroupName, string sapVirtualInstanceName, SapStopContent content) { var message = _pipeline.CreateMessage(); @@ -646,6 +756,14 @@ public Response Stop(string subscriptionId, string resourceGroupName, string sap } } + internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); @@ -718,6 +836,14 @@ public Response ListByResourceGroupNextPage(string nextL } } + internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/RestOperations/SapLandscapeMonitorRestOperations.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/RestOperations/SapLandscapeMonitorRestOperations.cs index 95d5ea79ebc9..da96f7fd009d 100644 --- a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/RestOperations/SapLandscapeMonitorRestOperations.cs +++ b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/RestOperations/SapLandscapeMonitorRestOperations.cs @@ -37,6 +37,21 @@ public SapLandscapeMonitorRestOperations(HttpPipeline pipeline, string applicati _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string monitorName) + { + 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.Workloads/monitors/", false); + uri.AppendPath(monitorName, true); + uri.AppendPath("/sapLandscapeMonitor/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string monitorName) { var message = _pipeline.CreateMessage(); @@ -120,6 +135,21 @@ public Response Get(string subscriptionId, string resou } } + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string monitorName, SapLandscapeMonitorData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Workloads/monitors/", false); + uri.AppendPath(monitorName, true); + uri.AppendPath("/sapLandscapeMonitor/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string monitorName, SapLandscapeMonitorData data) { var message = _pipeline.CreateMessage(); @@ -209,6 +239,21 @@ public Response Create(string subscriptionId, string re } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string monitorName) + { + 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.Workloads/monitors/", false); + uri.AppendPath(monitorName, true); + uri.AppendPath("/sapLandscapeMonitor/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string monitorName) { var message = _pipeline.CreateMessage(); @@ -280,6 +325,21 @@ public Response Delete(string subscriptionId, string resourceGroupName, string m } } + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string monitorName, SapLandscapeMonitorData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Workloads/monitors/", false); + uri.AppendPath(monitorName, true); + uri.AppendPath("/sapLandscapeMonitor/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string monitorName, SapLandscapeMonitorData data) { var message = _pipeline.CreateMessage(); @@ -367,6 +427,21 @@ public Response Update(string subscriptionId, string re } } + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string monitorName) + { + 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.Workloads/monitors/", false); + uri.AppendPath(monitorName, true); + uri.AppendPath("/sapLandscapeMonitor", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string monitorName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/RestOperations/WorkloadsRestOperations.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/RestOperations/WorkloadsRestOperations.cs index 231e53d572eb..c95e33aaeab5 100644 --- a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/RestOperations/WorkloadsRestOperations.cs +++ b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/RestOperations/WorkloadsRestOperations.cs @@ -37,6 +37,19 @@ public WorkloadsRestOperations(HttpPipeline pipeline, string applicationId, Uri _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal RequestUriBuilder CreateSapSizingRecommendationsRequestUri(string subscriptionId, AzureLocation location, SapSizingRecommendationContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Workloads/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/sapVirtualInstanceMetadata/default/getSizingRecommendations", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateSapSizingRecommendationsRequest(string subscriptionId, AzureLocation location, SapSizingRecommendationContent content) { var message = _pipeline.CreateMessage(); @@ -117,6 +130,19 @@ public Response SapSizingRecommendations(string s } } + internal RequestUriBuilder CreateSapSupportedSkuRequestUri(string subscriptionId, AzureLocation location, SapSupportedSkusContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Workloads/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/sapVirtualInstanceMetadata/default/getSapSupportedSku", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateSapSupportedSkuRequest(string subscriptionId, AzureLocation location, SapSupportedSkusContent content) { var message = _pipeline.CreateMessage(); @@ -197,6 +223,19 @@ public Response SapSupportedSku(string subscript } } + internal RequestUriBuilder CreateSapDiskConfigurationsRequestUri(string subscriptionId, AzureLocation location, SapDiskConfigurationsContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Workloads/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/sapVirtualInstanceMetadata/default/getDiskConfigurations", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateSapDiskConfigurationsRequest(string subscriptionId, AzureLocation location, SapDiskConfigurationsContent content) { var message = _pipeline.CreateMessage(); @@ -277,6 +316,19 @@ public Response SapDiskConfigurations(string subscr } } + internal RequestUriBuilder CreateSapAvailabilityZoneDetailsRequestUri(string subscriptionId, AzureLocation location, SapAvailabilityZoneDetailsContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Workloads/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/sapVirtualInstanceMetadata/default/getAvailabilityZoneDetails", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + internal HttpMessage CreateSapAvailabilityZoneDetailsRequest(string subscriptionId, AzureLocation location, SapAvailabilityZoneDetailsContent content) { var message = _pipeline.CreateMessage(); diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/SapLandscapeMonitorResource.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/SapLandscapeMonitorResource.cs index 400687eb72dd..335581895bb2 100644 --- a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/SapLandscapeMonitorResource.cs +++ b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/SapLandscapeMonitorResource.cs @@ -199,7 +199,9 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell try { var response = await _sapLandscapeMonitorRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, cancellationToken).ConfigureAwait(false); - var operation = new WorkloadsArmOperation(response); + var uri = _sapLandscapeMonitorRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new WorkloadsArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -241,7 +243,9 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel try { var response = _sapLandscapeMonitorRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, cancellationToken); - var operation = new WorkloadsArmOperation(response); + var uri = _sapLandscapeMonitorRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new WorkloadsArmOperation(response, rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -371,7 +375,9 @@ public virtual async Task> CreateOrUpd try { var response = await _sapLandscapeMonitorRestClient.CreateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new WorkloadsArmOperation(Response.FromValue(new SapLandscapeMonitorResource(Client, response), response.GetRawResponse())); + var uri = _sapLandscapeMonitorRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new WorkloadsArmOperation(Response.FromValue(new SapLandscapeMonitorResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -417,7 +423,9 @@ public virtual ArmOperation CreateOrUpdate(WaitUnti try { var response = _sapLandscapeMonitorRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, data, cancellationToken); - var operation = new WorkloadsArmOperation(Response.FromValue(new SapLandscapeMonitorResource(Client, response), response.GetRawResponse())); + var uri = _sapLandscapeMonitorRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), NextLinkOperationImplementation.HeaderSource.None.ToString(), null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new WorkloadsArmOperation(Response.FromValue(new SapLandscapeMonitorResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation;